]>
Commit | Line | Data |
---|---|---|
4ee9c684 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
a106dabe | 3 | # Generated by GNU Autoconf 2.59 for GNU Fortran Runtime Library 0.3. |
4ee9c684 | 4 | # |
a106dabe | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
4ee9c684 | 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+"$@"}'='"$@"' | |
a106dabe | 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix | |
4ee9c684 | 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. | |
a106dabe | 33 | $as_unset ENV MAIL MAILPATH |
4ee9c684 | 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 | |
a106dabe | 47 | $as_unset $as_var |
4ee9c684 | 48 | fi |
49 | done | |
50 | ||
51 | # Required to use basename. | |
a106dabe | 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
4ee9c684 | 53 | as_expr=expr |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
a106dabe | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
4ee9c684 | 59 | as_basename=basename |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
a106dabe | 66 | as_me=`$as_basename "$0" || |
4ee9c684 | 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
a106dabe | 69 | X"$0" : 'X\(/\)$' \| \ |
70 | . : '\(.\)' 2>/dev/null || | |
4ee9c684 | 71 | echo X/"$0" | |
a106dabe | 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
4ee9c684 | 76 | |
4ee9c684 | 77 | |
a106dabe | 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 | |
ce1a737c | 85 | |
a106dabe | 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 | |
ce1a737c | 97 | fi |
98 | ||
ce1a737c | 99 | |
a106dabe | 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 | |
ce1a737c | 116 | |
a106dabe | 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 | '') | |
4ee9c684 | 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
a106dabe | 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
4ee9c684 | 132 | do |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
a106dabe | 135 | for as_base in sh bash ksh sh5; do |
136 | case $as_dir in | |
4ee9c684 | 137 | /*) |
a106dabe | 138 | if ("$as_dir/$as_base" -c ' |
ce1a737c | 139 | as_lineno_1=$LINENO |
140 | as_lineno_2=$LINENO | |
a106dabe | 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
ce1a737c | 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
a106dabe | 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 | |
4ee9c684 | 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 | |
a106dabe | 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. | |
4ee9c684 | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
a106dabe | 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 | sed '=' <$as_myself | | |
4ee9c684 | 165 | sed ' |
166 | N | |
a106dabe | 167 | s,$,-, |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
4ee9c684 | 170 | t loop |
a106dabe | 171 | s,-$,, |
172 | s,^['$as_cr_digits']*\n,, | |
4ee9c684 | 173 | ' >$as_me.lineno && |
a106dabe | 174 | chmod +x $as_me.lineno || |
4ee9c684 | 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 | |
a106dabe | 180 | # original and so on. Autoconf is especially sensible to this). |
181 | . ./$as_me.lineno | |
4ee9c684 | 182 | # Exit status is that of the last command. |
183 | exit | |
184 | } | |
185 | ||
186 | ||
a106dabe | 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= ;; | |
4ee9c684 | 192 | esac |
193 | ||
a106dabe | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
4ee9c684 | 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 | |
a106dabe | 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 | |
4ee9c684 | 207 | as_ln_s='cp -p' |
a106dabe | 208 | else |
209 | as_ln_s='ln -s' | |
210 | fi | |
4ee9c684 | 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 | |
a106dabe | 216 | rm -f conf$$ conf$$.exe conf$$.file |
4ee9c684 | 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 | ||
a106dabe | 225 | as_executable_p="test -f" |
4ee9c684 | 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 | ||
a106dabe | 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 | |
4ee9c684 | 242 | |
243 | ||
542f9784 | 244 | |
245 | # Check that we are running under the correct shell. | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | ||
248 | case X$lt_ECHO in | |
249 | X*--fallback-echo) | |
250 | # Remove one level of quotation (which was required for Make). | |
251 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
252 | ;; | |
253 | esac | |
254 | ||
255 | ECHO=${lt_ECHO-echo} | |
256 | if test "X$1" = X--no-reexec; then | |
257 | # Discard the --no-reexec flag, and continue. | |
258 | shift | |
259 | elif test "X$1" = X--fallback-echo; then | |
260 | # Avoid inline document here, it may be left over | |
261 | : | |
262 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
263 | # Yippee, $ECHO works! | |
264 | : | |
265 | else | |
266 | # Restart under the correct shell. | |
267 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
268 | fi | |
269 | ||
270 | if test "X$1" = X--fallback-echo; then | |
271 | # used as fallback echo | |
272 | shift | |
273 | cat <<_LT_EOF | |
274 | $* | |
275 | _LT_EOF | |
276 | exit 0 | |
277 | fi | |
278 | ||
279 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
280 | # if CDPATH is set. | |
281 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
282 | ||
283 | if test -z "$lt_ECHO"; then | |
284 | if test "X${echo_test_string+set}" != Xset; then | |
285 | # find a string as large as possible, as long as the shell can cope with it | |
286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
288 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
289 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
290 | then | |
291 | break | |
292 | fi | |
293 | done | |
294 | fi | |
295 | ||
296 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
297 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
298 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
299 | : | |
300 | else | |
301 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
302 | # backslashes. This makes it impossible to quote backslashes using | |
303 | # echo "$something" | sed 's/\\/\\\\/g' | |
304 | # | |
305 | # So, first we look for a working echo in the user's PATH. | |
306 | ||
307 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
308 | for dir in $PATH /usr/ucb; do | |
309 | IFS="$lt_save_ifs" | |
310 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
311 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
312 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
313 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
314 | ECHO="$dir/echo" | |
315 | break | |
316 | fi | |
317 | done | |
318 | IFS="$lt_save_ifs" | |
319 | ||
320 | if test "X$ECHO" = Xecho; then | |
321 | # We didn't find a better echo, so look for alternatives. | |
322 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
323 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
324 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
325 | # This shell has a builtin print -r that does the trick. | |
326 | ECHO='print -r' | |
327 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
328 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
329 | # If we have ksh, try running configure again with it. | |
330 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
331 | export ORIGINAL_CONFIG_SHELL | |
332 | CONFIG_SHELL=/bin/ksh | |
333 | export CONFIG_SHELL | |
334 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
335 | else | |
336 | # Try using printf. | |
337 | ECHO='printf %s\n' | |
338 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
339 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
340 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
341 | # Cool, printf works | |
342 | : | |
343 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
344 | test "X$echo_testing_string" = 'X\t' && | |
345 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
346 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
347 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
348 | export CONFIG_SHELL | |
349 | SHELL="$CONFIG_SHELL" | |
350 | export SHELL | |
351 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
352 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
353 | test "X$echo_testing_string" = 'X\t' && | |
354 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
355 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
356 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
357 | else | |
358 | # maybe with a smaller string... | |
359 | prev=: | |
360 | ||
361 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
362 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
363 | then | |
364 | break | |
365 | fi | |
366 | prev="$cmd" | |
367 | done | |
368 | ||
369 | if test "$prev" != 'sed 50q "$0"'; then | |
370 | echo_test_string=`eval $prev` | |
371 | export echo_test_string | |
372 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
373 | else | |
374 | # Oops. We lost completely, so just stick with echo. | |
375 | ECHO=echo | |
376 | fi | |
377 | fi | |
378 | fi | |
379 | fi | |
380 | fi | |
381 | fi | |
382 | ||
383 | # Copy echo and quote the copy suitably for passing to libtool from | |
384 | # the Makefile, instead of quoting the original, which is used later. | |
385 | lt_ECHO=$ECHO | |
386 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
387 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
388 | fi | |
389 | ||
390 | ||
391 | ||
392 | ||
4ee9c684 | 393 | # Name of the host. |
394 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
395 | # so uname gets run too. | |
396 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
397 | ||
a106dabe | 398 | exec 6>&1 |
399 | ||
4ee9c684 | 400 | # |
401 | # Initializations. | |
402 | # | |
403 | ac_default_prefix=/usr/local | |
404 | ac_config_libobj_dir=. | |
405 | cross_compiling=no | |
406 | subdirs= | |
407 | MFLAGS= | |
408 | MAKEFLAGS= | |
409 | SHELL=${CONFIG_SHELL-/bin/sh} | |
410 | ||
a106dabe | 411 | # Maximum number of lines to put in a shell here document. |
412 | # This variable seems obsolete. It should probably be removed, and | |
413 | # only ac_max_sed_lines should be used. | |
414 | : ${ac_max_here_lines=38} | |
415 | ||
4ee9c684 | 416 | # Identity of this package. |
417 | PACKAGE_NAME='GNU Fortran Runtime Library' | |
418 | PACKAGE_TARNAME='libgfortran' | |
76c0a846 | 419 | PACKAGE_VERSION='0.3' |
420 | PACKAGE_STRING='GNU Fortran Runtime Library 0.3' | |
4ee9c684 | 421 | PACKAGE_BUGREPORT='' |
422 | ||
423 | # Factoring default headers for most tests. | |
424 | ac_includes_default="\ | |
425 | #include <stdio.h> | |
426 | #if HAVE_SYS_TYPES_H | |
427 | # include <sys/types.h> | |
428 | #endif | |
429 | #if HAVE_SYS_STAT_H | |
430 | # include <sys/stat.h> | |
431 | #endif | |
432 | #if STDC_HEADERS | |
433 | # include <stdlib.h> | |
434 | # include <stddef.h> | |
435 | #else | |
436 | # if HAVE_STDLIB_H | |
437 | # include <stdlib.h> | |
438 | # endif | |
439 | #endif | |
440 | #if HAVE_STRING_H | |
441 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
442 | # include <memory.h> | |
443 | # endif | |
444 | # include <string.h> | |
445 | #endif | |
446 | #if HAVE_STRINGS_H | |
447 | # include <strings.h> | |
448 | #endif | |
449 | #if HAVE_INTTYPES_H | |
450 | # include <inttypes.h> | |
a106dabe | 451 | #else |
452 | # if HAVE_STDINT_H | |
453 | # include <stdint.h> | |
454 | # endif | |
4ee9c684 | 455 | #endif |
456 | #if HAVE_UNISTD_H | |
457 | # include <unistd.h> | |
458 | #endif" | |
459 | ||
cd82131f | 460 | 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 build_libsubdir build_subdir host_subdir target_subdir 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AM_FCFLAGS AM_CFLAGS CFLAGS LIBGFOR_USE_SYMVER_TRUE LIBGFOR_USE_SYMVER_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC extra_ldflags_libgfortran FPU_HOST_HEADER LIBOBJS LTLIBOBJS' |
4ee9c684 | 461 | ac_subst_files='' |
462 | ||
463 | # Initialize some variables set by options. | |
464 | ac_init_help= | |
465 | ac_init_version=false | |
466 | # The variables have the same names as the options, with | |
467 | # dashes changed to underlines. | |
468 | cache_file=/dev/null | |
469 | exec_prefix=NONE | |
470 | no_create= | |
471 | no_recursion= | |
472 | prefix=NONE | |
473 | program_prefix=NONE | |
474 | program_suffix=NONE | |
475 | program_transform_name=s,x,x, | |
476 | silent= | |
477 | site= | |
478 | srcdir= | |
479 | verbose= | |
480 | x_includes=NONE | |
481 | x_libraries=NONE | |
482 | ||
483 | # Installation directory options. | |
484 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
485 | # and all the variables that are supposed to be based on exec_prefix | |
486 | # by default will actually change. | |
487 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
488 | bindir='${exec_prefix}/bin' | |
489 | sbindir='${exec_prefix}/sbin' | |
490 | libexecdir='${exec_prefix}/libexec' | |
a106dabe | 491 | datadir='${prefix}/share' |
4ee9c684 | 492 | sysconfdir='${prefix}/etc' |
493 | sharedstatedir='${prefix}/com' | |
494 | localstatedir='${prefix}/var' | |
a106dabe | 495 | libdir='${exec_prefix}/lib' |
4ee9c684 | 496 | includedir='${prefix}/include' |
497 | oldincludedir='/usr/include' | |
a106dabe | 498 | infodir='${prefix}/info' |
499 | mandir='${prefix}/man' | |
4ee9c684 | 500 | |
501 | ac_prev= | |
502 | for ac_option | |
503 | do | |
504 | # If the previous option needs an argument, assign it. | |
505 | if test -n "$ac_prev"; then | |
a106dabe | 506 | eval "$ac_prev=\$ac_option" |
4ee9c684 | 507 | ac_prev= |
508 | continue | |
509 | fi | |
510 | ||
a106dabe | 511 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
4ee9c684 | 512 | |
513 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
514 | ||
a106dabe | 515 | case $ac_option in |
4ee9c684 | 516 | |
517 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
518 | ac_prev=bindir ;; | |
519 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
520 | bindir=$ac_optarg ;; | |
521 | ||
522 | -build | --build | --buil | --bui | --bu) | |
523 | ac_prev=build_alias ;; | |
524 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
525 | build_alias=$ac_optarg ;; | |
526 | ||
527 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
528 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
529 | ac_prev=cache_file ;; | |
530 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
531 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
532 | cache_file=$ac_optarg ;; | |
533 | ||
534 | --config-cache | -C) | |
535 | cache_file=config.cache ;; | |
536 | ||
a106dabe | 537 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
4ee9c684 | 538 | ac_prev=datadir ;; |
a106dabe | 539 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
540 | | --da=*) | |
4ee9c684 | 541 | datadir=$ac_optarg ;; |
542 | ||
543 | -disable-* | --disable-*) | |
544 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
545 | # Reject names that are not valid shell variable names. | |
546 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
547 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
548 | { (exit 1); exit 1; }; } | |
549 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
a106dabe | 550 | eval "enable_$ac_feature=no" ;; |
4ee9c684 | 551 | |
552 | -enable-* | --enable-*) | |
553 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
554 | # Reject names that are not valid shell variable names. | |
555 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
556 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
557 | { (exit 1); exit 1; }; } | |
558 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
a106dabe | 559 | case $ac_option in |
560 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
561 | *) ac_optarg=yes ;; | |
562 | esac | |
563 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
4ee9c684 | 564 | |
565 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
566 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
567 | | --exec | --exe | --ex) | |
568 | ac_prev=exec_prefix ;; | |
569 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
570 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
571 | | --exec=* | --exe=* | --ex=*) | |
572 | exec_prefix=$ac_optarg ;; | |
573 | ||
574 | -gas | --gas | --ga | --g) | |
575 | # Obsolete; use --with-gas. | |
576 | with_gas=yes ;; | |
577 | ||
578 | -help | --help | --hel | --he | -h) | |
579 | ac_init_help=long ;; | |
580 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
581 | ac_init_help=recursive ;; | |
582 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
583 | ac_init_help=short ;; | |
584 | ||
585 | -host | --host | --hos | --ho) | |
586 | ac_prev=host_alias ;; | |
587 | -host=* | --host=* | --hos=* | --ho=*) | |
588 | host_alias=$ac_optarg ;; | |
589 | ||
590 | -includedir | --includedir | --includedi | --included | --include \ | |
591 | | --includ | --inclu | --incl | --inc) | |
592 | ac_prev=includedir ;; | |
593 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
594 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
595 | includedir=$ac_optarg ;; | |
596 | ||
597 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
598 | ac_prev=infodir ;; | |
599 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
600 | infodir=$ac_optarg ;; | |
601 | ||
602 | -libdir | --libdir | --libdi | --libd) | |
603 | ac_prev=libdir ;; | |
604 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
605 | libdir=$ac_optarg ;; | |
606 | ||
607 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
608 | | --libexe | --libex | --libe) | |
609 | ac_prev=libexecdir ;; | |
610 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
611 | | --libexe=* | --libex=* | --libe=*) | |
612 | libexecdir=$ac_optarg ;; | |
613 | ||
614 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
a106dabe | 615 | | --localstate | --localstat | --localsta | --localst \ |
616 | | --locals | --local | --loca | --loc | --lo) | |
4ee9c684 | 617 | ac_prev=localstatedir ;; |
618 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
a106dabe | 619 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
620 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
4ee9c684 | 621 | localstatedir=$ac_optarg ;; |
622 | ||
623 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
624 | ac_prev=mandir ;; | |
625 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
626 | mandir=$ac_optarg ;; | |
627 | ||
628 | -nfp | --nfp | --nf) | |
629 | # Obsolete; use --without-fp. | |
630 | with_fp=no ;; | |
631 | ||
632 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
633 | | --no-cr | --no-c | -n) | |
634 | no_create=yes ;; | |
635 | ||
636 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
637 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
638 | no_recursion=yes ;; | |
639 | ||
640 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
641 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
642 | | --oldin | --oldi | --old | --ol | --o) | |
643 | ac_prev=oldincludedir ;; | |
644 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
645 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
646 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
647 | oldincludedir=$ac_optarg ;; | |
648 | ||
649 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
650 | ac_prev=prefix ;; | |
651 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
652 | prefix=$ac_optarg ;; | |
653 | ||
654 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
655 | | --program-pre | --program-pr | --program-p) | |
656 | ac_prev=program_prefix ;; | |
657 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
658 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
659 | program_prefix=$ac_optarg ;; | |
660 | ||
661 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
662 | | --program-suf | --program-su | --program-s) | |
663 | ac_prev=program_suffix ;; | |
664 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
665 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
666 | program_suffix=$ac_optarg ;; | |
667 | ||
668 | -program-transform-name | --program-transform-name \ | |
669 | | --program-transform-nam | --program-transform-na \ | |
670 | | --program-transform-n | --program-transform- \ | |
671 | | --program-transform | --program-transfor \ | |
672 | | --program-transfo | --program-transf \ | |
673 | | --program-trans | --program-tran \ | |
674 | | --progr-tra | --program-tr | --program-t) | |
675 | ac_prev=program_transform_name ;; | |
676 | -program-transform-name=* | --program-transform-name=* \ | |
677 | | --program-transform-nam=* | --program-transform-na=* \ | |
678 | | --program-transform-n=* | --program-transform-=* \ | |
679 | | --program-transform=* | --program-transfor=* \ | |
680 | | --program-transfo=* | --program-transf=* \ | |
681 | | --program-trans=* | --program-tran=* \ | |
682 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
683 | program_transform_name=$ac_optarg ;; | |
684 | ||
685 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
686 | | -silent | --silent | --silen | --sile | --sil) | |
687 | silent=yes ;; | |
688 | ||
689 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
690 | ac_prev=sbindir ;; | |
691 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
692 | | --sbi=* | --sb=*) | |
693 | sbindir=$ac_optarg ;; | |
694 | ||
695 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
696 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
697 | | --sharedst | --shareds | --shared | --share | --shar \ | |
698 | | --sha | --sh) | |
699 | ac_prev=sharedstatedir ;; | |
700 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
701 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
702 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
703 | | --sha=* | --sh=*) | |
704 | sharedstatedir=$ac_optarg ;; | |
705 | ||
706 | -site | --site | --sit) | |
707 | ac_prev=site ;; | |
708 | -site=* | --site=* | --sit=*) | |
709 | site=$ac_optarg ;; | |
710 | ||
711 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
712 | ac_prev=srcdir ;; | |
713 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
714 | srcdir=$ac_optarg ;; | |
715 | ||
716 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
717 | | --syscon | --sysco | --sysc | --sys | --sy) | |
718 | ac_prev=sysconfdir ;; | |
719 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
720 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
721 | sysconfdir=$ac_optarg ;; | |
722 | ||
723 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
724 | ac_prev=target_alias ;; | |
725 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
726 | target_alias=$ac_optarg ;; | |
727 | ||
728 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
729 | verbose=yes ;; | |
730 | ||
731 | -version | --version | --versio | --versi | --vers | -V) | |
732 | ac_init_version=: ;; | |
733 | ||
734 | -with-* | --with-*) | |
735 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
736 | # Reject names that are not valid shell variable names. | |
737 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
738 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
a106dabe | 741 | case $ac_option in |
742 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
743 | *) ac_optarg=yes ;; | |
744 | esac | |
745 | eval "with_$ac_package='$ac_optarg'" ;; | |
4ee9c684 | 746 | |
747 | -without-* | --without-*) | |
748 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
749 | # Reject names that are not valid shell variable names. | |
750 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
751 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
752 | { (exit 1); exit 1; }; } | |
753 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
a106dabe | 754 | eval "with_$ac_package=no" ;; |
4ee9c684 | 755 | |
756 | --x) | |
757 | # Obsolete; use --with-x. | |
758 | with_x=yes ;; | |
759 | ||
760 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
761 | | --x-incl | --x-inc | --x-in | --x-i) | |
762 | ac_prev=x_includes ;; | |
763 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
764 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
765 | x_includes=$ac_optarg ;; | |
766 | ||
767 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
768 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
769 | ac_prev=x_libraries ;; | |
770 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
771 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
772 | x_libraries=$ac_optarg ;; | |
773 | ||
774 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
775 | Try \`$0 --help' for more information." >&2 | |
776 | { (exit 1); exit 1; }; } | |
777 | ;; | |
778 | ||
779 | *=*) | |
780 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
781 | # Reject names that are not valid shell variable names. | |
782 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
783 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
784 | { (exit 1); exit 1; }; } | |
a106dabe | 785 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
786 | eval "$ac_envvar='$ac_optarg'" | |
4ee9c684 | 787 | export $ac_envvar ;; |
788 | ||
789 | *) | |
790 | # FIXME: should be removed in autoconf 3.0. | |
791 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
792 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
793 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
794 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
795 | ;; | |
796 | ||
797 | esac | |
798 | done | |
799 | ||
800 | if test -n "$ac_prev"; then | |
801 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
802 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
803 | { (exit 1); exit 1; }; } | |
804 | fi | |
805 | ||
a106dabe | 806 | # Be sure to have absolute paths. |
807 | for ac_var in exec_prefix prefix | |
4ee9c684 | 808 | do |
a106dabe | 809 | eval ac_val=$`echo $ac_var` |
4ee9c684 | 810 | case $ac_val in |
a106dabe | 811 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
812 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
813 | { (exit 1); exit 1; }; };; | |
814 | esac | |
815 | done | |
816 | ||
817 | # Be sure to have absolute paths. | |
818 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
819 | localstatedir libdir includedir oldincludedir infodir mandir | |
820 | do | |
821 | eval ac_val=$`echo $ac_var` | |
822 | case $ac_val in | |
823 | [\\/$]* | ?:[\\/]* ) ;; | |
824 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
825 | { (exit 1); exit 1; }; };; | |
4ee9c684 | 826 | esac |
827 | done | |
828 | ||
829 | # There might be people who depend on the old broken behavior: `$host' | |
830 | # used to hold the argument of --host etc. | |
831 | # FIXME: To remove some day. | |
832 | build=$build_alias | |
833 | host=$host_alias | |
834 | target=$target_alias | |
835 | ||
836 | # FIXME: To remove some day. | |
837 | if test "x$host_alias" != x; then | |
838 | if test "x$build_alias" = x; then | |
839 | cross_compiling=maybe | |
840 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
841 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
842 | elif test "x$build_alias" != "x$host_alias"; then | |
843 | cross_compiling=yes | |
844 | fi | |
845 | fi | |
846 | ||
847 | ac_tool_prefix= | |
848 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
849 | ||
850 | test "$silent" = yes && exec 6>/dev/null | |
851 | ||
852 | ||
853 | # Find the source files, if location was not specified. | |
854 | if test -z "$srcdir"; then | |
855 | ac_srcdir_defaulted=yes | |
a106dabe | 856 | # Try the directory containing this script, then its parent. |
857 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
4ee9c684 | 858 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
859 | X"$0" : 'X\(//\)[^/]' \| \ | |
860 | X"$0" : 'X\(//\)$' \| \ | |
a106dabe | 861 | X"$0" : 'X\(/\)' \| \ |
862 | . : '\(.\)' 2>/dev/null || | |
4ee9c684 | 863 | echo X"$0" | |
a106dabe | 864 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
865 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
866 | /^X\(\/\/\)$/{ s//\1/; q; } | |
867 | /^X\(\/\).*/{ s//\1/; q; } | |
868 | s/.*/./; q'` | |
4ee9c684 | 869 | srcdir=$ac_confdir |
a106dabe | 870 | if test ! -r $srcdir/$ac_unique_file; then |
4ee9c684 | 871 | srcdir=.. |
872 | fi | |
873 | else | |
874 | ac_srcdir_defaulted=no | |
875 | fi | |
a106dabe | 876 | if test ! -r $srcdir/$ac_unique_file; then |
877 | if test "$ac_srcdir_defaulted" = yes; then | |
878 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
879 | { (exit 1); exit 1; }; } | |
880 | else | |
881 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
4ee9c684 | 882 | { (exit 1); exit 1; }; } |
a106dabe | 883 | fi |
4ee9c684 | 884 | fi |
a106dabe | 885 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
886 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
4ee9c684 | 887 | { (exit 1); exit 1; }; } |
a106dabe | 888 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
889 | ac_env_build_alias_set=${build_alias+set} | |
890 | ac_env_build_alias_value=$build_alias | |
891 | ac_cv_env_build_alias_set=${build_alias+set} | |
892 | ac_cv_env_build_alias_value=$build_alias | |
893 | ac_env_host_alias_set=${host_alias+set} | |
894 | ac_env_host_alias_value=$host_alias | |
895 | ac_cv_env_host_alias_set=${host_alias+set} | |
896 | ac_cv_env_host_alias_value=$host_alias | |
897 | ac_env_target_alias_set=${target_alias+set} | |
898 | ac_env_target_alias_value=$target_alias | |
899 | ac_cv_env_target_alias_set=${target_alias+set} | |
900 | ac_cv_env_target_alias_value=$target_alias | |
542f9784 | 901 | ac_env_CPP_set=${CPP+set} |
902 | ac_env_CPP_value=$CPP | |
903 | ac_cv_env_CPP_set=${CPP+set} | |
904 | ac_cv_env_CPP_value=$CPP | |
905 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
906 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
907 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
908 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
a106dabe | 909 | ac_env_FC_set=${FC+set} |
910 | ac_env_FC_value=$FC | |
911 | ac_cv_env_FC_set=${FC+set} | |
912 | ac_cv_env_FC_value=$FC | |
913 | ac_env_FCFLAGS_set=${FCFLAGS+set} | |
914 | ac_env_FCFLAGS_value=$FCFLAGS | |
915 | ac_cv_env_FCFLAGS_set=${FCFLAGS+set} | |
916 | ac_cv_env_FCFLAGS_value=$FCFLAGS | |
917 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
918 | ac_env_LDFLAGS_value=$LDFLAGS | |
919 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
920 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
4ee9c684 | 921 | |
922 | # | |
923 | # Report the --help message. | |
924 | # | |
925 | if test "$ac_init_help" = "long"; then | |
926 | # Omit some internal or obsolete options to make the list less imposing. | |
927 | # This message is too long to be a string in the A/UX 3.1 sh. | |
928 | cat <<_ACEOF | |
76c0a846 | 929 | \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems. |
4ee9c684 | 930 | |
931 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
932 | ||
933 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
934 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
935 | ||
936 | Defaults for the options are specified in brackets. | |
937 | ||
938 | Configuration: | |
939 | -h, --help display this help and exit | |
940 | --help=short display options specific to this package | |
941 | --help=recursive display the short help of all the included packages | |
942 | -V, --version display version information and exit | |
943 | -q, --quiet, --silent do not print \`checking...' messages | |
944 | --cache-file=FILE cache test results in FILE [disabled] | |
945 | -C, --config-cache alias for \`--cache-file=config.cache' | |
946 | -n, --no-create do not create output files | |
947 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
948 | ||
a106dabe | 949 | _ACEOF |
950 | ||
951 | cat <<_ACEOF | |
4ee9c684 | 952 | Installation directories: |
953 | --prefix=PREFIX install architecture-independent files in PREFIX | |
954 | [$ac_default_prefix] | |
955 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
956 | [PREFIX] | |
957 | ||
958 | By default, \`make install' will install all the files in | |
959 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
960 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
961 | for instance \`--prefix=\$HOME'. | |
962 | ||
963 | For better control, use the options below. | |
964 | ||
965 | Fine tuning of the installation directories: | |
966 | --bindir=DIR user executables [EPREFIX/bin] | |
967 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
968 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
a106dabe | 969 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
4ee9c684 | 970 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
971 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
972 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
973 | --libdir=DIR object code libraries [EPREFIX/lib] | |
974 | --includedir=DIR C header files [PREFIX/include] | |
975 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
a106dabe | 976 | --infodir=DIR info documentation [PREFIX/info] |
977 | --mandir=DIR man documentation [PREFIX/man] | |
4ee9c684 | 978 | _ACEOF |
979 | ||
980 | cat <<\_ACEOF | |
981 | ||
982 | Program names: | |
983 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
984 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
985 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
986 | ||
987 | System types: | |
988 | --build=BUILD configure for building on BUILD [guessed] | |
989 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
90973b19 | 990 | --target=TARGET configure for building compilers for TARGET [HOST] |
4ee9c684 | 991 | _ACEOF |
992 | fi | |
993 | ||
994 | if test -n "$ac_init_help"; then | |
995 | case $ac_init_help in | |
76c0a846 | 996 | short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";; |
4ee9c684 | 997 | esac |
998 | cat <<\_ACEOF | |
999 | ||
1000 | Optional Features: | |
1001 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1002 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
90973b19 | 1003 | --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory |
4ee9c684 | 1004 | --enable-maintainer-mode enable make rules and dependencies not useful |
1005 | (and sometimes confusing) to the casual installer | |
90973b19 | 1006 | --enable-multilib build many library versions (default) |
2fd61f51 | 1007 | --disable-dependency-tracking speeds up one-time build |
1008 | --enable-dependency-tracking do not reject slow dependency extractors | |
542f9784 | 1009 | --enable-shared[=PKGS] |
1010 | build shared libraries [default=yes] | |
1011 | --enable-static[=PKGS] | |
1012 | build static libraries [default=yes] | |
1013 | --enable-fast-install[=PKGS] | |
1014 | optimize for fast installation [default=yes] | |
4ee9c684 | 1015 | --disable-libtool-lock avoid locking (might break parallel builds) |
90e67cff | 1016 | --disable-largefile omit support for large files |
4ee9c684 | 1017 | |
1018 | Optional Packages: | |
1019 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1020 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
3e427a9c | 1021 | --with-build-libsubdir=DIR Directory where to find libraries for build system |
542f9784 | 1022 | --with-pic try to use only PIC/non-PIC objects [default=use |
1023 | both] | |
1024 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
4ee9c684 | 1025 | |
1026 | Some influential environment variables: | |
1027 | CC C compiler command | |
1028 | CFLAGS C compiler flags | |
1029 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1030 | nonstandard directory <lib dir> | |
a106dabe | 1031 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1032 | headers in a nonstandard directory <include dir> | |
542f9784 | 1033 | CPP C preprocessor |
6d73cceb | 1034 | FC Fortran compiler command |
1035 | FCFLAGS Fortran compiler flags | |
4ee9c684 | 1036 | |
1037 | Use these variables to override the choices made by `configure' or to help | |
1038 | it to find libraries and programs with nonstandard names/locations. | |
1039 | ||
1040 | _ACEOF | |
1041 | fi | |
1042 | ||
1043 | if test "$ac_init_help" = "recursive"; then | |
1044 | # If there are subdirs, report their specific --help. | |
a106dabe | 1045 | ac_popdir=`pwd` |
4ee9c684 | 1046 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
a106dabe | 1047 | test -d $ac_dir || continue |
4ee9c684 | 1048 | ac_builddir=. |
1049 | ||
a106dabe | 1050 | if test "$ac_dir" != .; then |
4ee9c684 | 1051 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
a106dabe | 1052 | # A "../" for each directory in $ac_dir_suffix. |
1053 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1054 | else | |
1055 | ac_dir_suffix= ac_top_builddir= | |
1056 | fi | |
4ee9c684 | 1057 | |
1058 | case $srcdir in | |
a106dabe | 1059 | .) # No --srcdir option. We are building in place. |
4ee9c684 | 1060 | ac_srcdir=. |
a106dabe | 1061 | if test -z "$ac_top_builddir"; then |
1062 | ac_top_srcdir=. | |
1063 | else | |
1064 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1065 | fi ;; | |
1066 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
4ee9c684 | 1067 | ac_srcdir=$srcdir$ac_dir_suffix; |
a106dabe | 1068 | ac_top_srcdir=$srcdir ;; |
1069 | *) # Relative path. | |
1070 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1071 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1072 | esac | |
1073 | ||
1074 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1075 | # the directories may not exist. | |
1076 | case `pwd` in | |
1077 | .) ac_abs_builddir="$ac_dir";; | |
1078 | *) | |
1079 | case "$ac_dir" in | |
1080 | .) ac_abs_builddir=`pwd`;; | |
1081 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1082 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1083 | esac;; | |
1084 | esac | |
1085 | case $ac_abs_builddir in | |
1086 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1087 | *) | |
1088 | case ${ac_top_builddir}. in | |
1089 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1090 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1091 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1092 | esac;; | |
1093 | esac | |
1094 | case $ac_abs_builddir in | |
1095 | .) ac_abs_srcdir=$ac_srcdir;; | |
1096 | *) | |
1097 | case $ac_srcdir in | |
1098 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1099 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1100 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1101 | esac;; | |
1102 | esac | |
1103 | case $ac_abs_builddir in | |
1104 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1105 | *) | |
1106 | case $ac_top_srcdir in | |
1107 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1108 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1109 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1110 | esac;; | |
4ee9c684 | 1111 | esac |
a106dabe | 1112 | |
1113 | cd $ac_dir | |
1114 | # Check for guested configure; otherwise get Cygnus style configure. | |
1115 | if test -f $ac_srcdir/configure.gnu; then | |
1116 | echo | |
1117 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1118 | elif test -f $ac_srcdir/configure; then | |
1119 | echo | |
1120 | $SHELL $ac_srcdir/configure --help=recursive | |
1121 | elif test -f $ac_srcdir/configure.ac || | |
1122 | test -f $ac_srcdir/configure.in; then | |
1123 | echo | |
1124 | $ac_configure --help | |
4ee9c684 | 1125 | else |
1126 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
a106dabe | 1127 | fi |
c0e8efbe | 1128 | cd $ac_popdir |
4ee9c684 | 1129 | done |
1130 | fi | |
1131 | ||
a106dabe | 1132 | test -n "$ac_init_help" && exit 0 |
4ee9c684 | 1133 | if $ac_init_version; then |
1134 | cat <<\_ACEOF | |
76c0a846 | 1135 | GNU Fortran Runtime Library configure 0.3 |
a106dabe | 1136 | generated by GNU Autoconf 2.59 |
4ee9c684 | 1137 | |
a106dabe | 1138 | Copyright (C) 2003 Free Software Foundation, Inc. |
4ee9c684 | 1139 | This configure script is free software; the Free Software Foundation |
1140 | gives unlimited permission to copy, distribute and modify it. | |
1141 | _ACEOF | |
a106dabe | 1142 | exit 0 |
4ee9c684 | 1143 | fi |
a106dabe | 1144 | exec 5>config.log |
1145 | cat >&5 <<_ACEOF | |
4ee9c684 | 1146 | This file contains any messages produced by compilers while |
1147 | running configure, to aid debugging if configure makes a mistake. | |
1148 | ||
76c0a846 | 1149 | It was created by GNU Fortran Runtime Library $as_me 0.3, which was |
a106dabe | 1150 | generated by GNU Autoconf 2.59. Invocation command line was |
4ee9c684 | 1151 | |
1152 | $ $0 $@ | |
1153 | ||
1154 | _ACEOF | |
1155 | { | |
1156 | cat <<_ASUNAME | |
1157 | ## --------- ## | |
1158 | ## Platform. ## | |
1159 | ## --------- ## | |
1160 | ||
1161 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1162 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1163 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1164 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1165 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1166 | ||
1167 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1168 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1169 | ||
1170 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1171 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1172 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
a106dabe | 1173 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
4ee9c684 | 1174 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1175 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1176 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1177 | ||
1178 | _ASUNAME | |
1179 | ||
1180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1181 | for as_dir in $PATH | |
1182 | do | |
1183 | IFS=$as_save_IFS | |
1184 | test -z "$as_dir" && as_dir=. | |
1185 | echo "PATH: $as_dir" | |
1186 | done | |
1187 | ||
1188 | } >&5 | |
1189 | ||
1190 | cat >&5 <<_ACEOF | |
1191 | ||
1192 | ||
1193 | ## ----------- ## | |
1194 | ## Core tests. ## | |
1195 | ## ----------- ## | |
1196 | ||
1197 | _ACEOF | |
1198 | ||
1199 | ||
1200 | # Keep a trace of the command line. | |
1201 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1202 | # Strip out --silent because we don't want to record it for future runs. | |
1203 | # Also quote any args containing shell meta-characters. | |
1204 | # Make two passes to allow for proper duplicate-argument suppression. | |
1205 | ac_configure_args= | |
1206 | ac_configure_args0= | |
1207 | ac_configure_args1= | |
a106dabe | 1208 | ac_sep= |
4ee9c684 | 1209 | ac_must_keep_next=false |
1210 | for ac_pass in 1 2 | |
1211 | do | |
1212 | for ac_arg | |
1213 | do | |
1214 | case $ac_arg in | |
1215 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1216 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1217 | | -silent | --silent | --silen | --sile | --sil) | |
1218 | continue ;; | |
a106dabe | 1219 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
4ee9c684 | 1220 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1221 | esac | |
1222 | case $ac_pass in | |
1223 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1224 | 2) | |
1225 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1226 | if test $ac_must_keep_next = true; then | |
1227 | ac_must_keep_next=false # Got value, back to normal. | |
1228 | else | |
1229 | case $ac_arg in | |
1230 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1231 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1232 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1233 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1234 | case "$ac_configure_args0 " in | |
1235 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1236 | esac | |
1237 | ;; | |
1238 | -* ) ac_must_keep_next=true ;; | |
1239 | esac | |
1240 | fi | |
a106dabe | 1241 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1242 | # Get rid of the leading space. | |
1243 | ac_sep=" " | |
4ee9c684 | 1244 | ;; |
1245 | esac | |
1246 | done | |
1247 | done | |
1248 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1249 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1250 | ||
1251 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1252 | # config.log. We remove comments because anyway the quotes in there | |
1253 | # would cause problems or look ugly. | |
a106dabe | 1254 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1255 | # such as our DU 5.0 friend, will then `close' the trap. | |
4ee9c684 | 1256 | trap 'exit_status=$? |
1257 | # Save into config.log some information that might help in debugging. | |
1258 | { | |
1259 | echo | |
1260 | ||
1261 | cat <<\_ASBOX | |
1262 | ## ---------------- ## | |
1263 | ## Cache variables. ## | |
1264 | ## ---------------- ## | |
1265 | _ASBOX | |
1266 | echo | |
1267 | # The following way of writing the cache mishandles newlines in values, | |
a106dabe | 1268 | { |
4ee9c684 | 1269 | (set) 2>&1 | |
a106dabe | 1270 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1271 | *ac_space=\ *) | |
4ee9c684 | 1272 | sed -n \ |
a106dabe | 1273 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1274 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1275 | ;; | |
4ee9c684 | 1276 | *) |
a106dabe | 1277 | sed -n \ |
1278 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4ee9c684 | 1279 | ;; |
a106dabe | 1280 | esac; |
1281 | } | |
4ee9c684 | 1282 | echo |
1283 | ||
1284 | cat <<\_ASBOX | |
1285 | ## ----------------- ## | |
1286 | ## Output variables. ## | |
1287 | ## ----------------- ## | |
1288 | _ASBOX | |
1289 | echo | |
1290 | for ac_var in $ac_subst_vars | |
1291 | do | |
a106dabe | 1292 | eval ac_val=$`echo $ac_var` |
1293 | echo "$ac_var='"'"'$ac_val'"'"'" | |
4ee9c684 | 1294 | done | sort |
1295 | echo | |
1296 | ||
1297 | if test -n "$ac_subst_files"; then | |
1298 | cat <<\_ASBOX | |
a106dabe | 1299 | ## ------------- ## |
1300 | ## Output files. ## | |
1301 | ## ------------- ## | |
4ee9c684 | 1302 | _ASBOX |
1303 | echo | |
1304 | for ac_var in $ac_subst_files | |
1305 | do | |
a106dabe | 1306 | eval ac_val=$`echo $ac_var` |
1307 | echo "$ac_var='"'"'$ac_val'"'"'" | |
4ee9c684 | 1308 | done | sort |
1309 | echo | |
1310 | fi | |
1311 | ||
1312 | if test -s confdefs.h; then | |
1313 | cat <<\_ASBOX | |
1314 | ## ----------- ## | |
1315 | ## confdefs.h. ## | |
1316 | ## ----------- ## | |
1317 | _ASBOX | |
1318 | echo | |
a106dabe | 1319 | sed "/^$/d" confdefs.h | sort |
4ee9c684 | 1320 | echo |
1321 | fi | |
1322 | test "$ac_signal" != 0 && | |
1323 | echo "$as_me: caught signal $ac_signal" | |
1324 | echo "$as_me: exit $exit_status" | |
1325 | } >&5 | |
a106dabe | 1326 | rm -f core *.core && |
1327 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
4ee9c684 | 1328 | exit $exit_status |
a106dabe | 1329 | ' 0 |
4ee9c684 | 1330 | for ac_signal in 1 2 13 15; do |
1331 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1332 | done | |
1333 | ac_signal=0 | |
1334 | ||
1335 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
a106dabe | 1336 | rm -rf conftest* confdefs.h |
1337 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1338 | echo >confdefs.h | |
4ee9c684 | 1339 | |
1340 | # Predefined preprocessor variables. | |
1341 | ||
1342 | cat >>confdefs.h <<_ACEOF | |
1343 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1344 | _ACEOF | |
1345 | ||
1346 | ||
1347 | cat >>confdefs.h <<_ACEOF | |
1348 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1349 | _ACEOF | |
1350 | ||
1351 | ||
1352 | cat >>confdefs.h <<_ACEOF | |
1353 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1354 | _ACEOF | |
1355 | ||
1356 | ||
1357 | cat >>confdefs.h <<_ACEOF | |
1358 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1359 | _ACEOF | |
1360 | ||
1361 | ||
1362 | cat >>confdefs.h <<_ACEOF | |
1363 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1364 | _ACEOF | |
1365 | ||
1366 | ||
1367 | # Let the site file select an alternate cache file if it wants to. | |
1368 | # Prefer explicitly selected file to automatically selected ones. | |
a106dabe | 1369 | if test -z "$CONFIG_SITE"; then |
1370 | if test "x$prefix" != xNONE; then | |
1371 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1372 | else | |
1373 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1374 | fi | |
4ee9c684 | 1375 | fi |
a106dabe | 1376 | for ac_site_file in $CONFIG_SITE; do |
4ee9c684 | 1377 | if test -r "$ac_site_file"; then |
1378 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1379 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1380 | sed 's/^/| /' "$ac_site_file" >&5 | |
1381 | . "$ac_site_file" | |
1382 | fi | |
1383 | done | |
1384 | ||
1385 | if test -r "$cache_file"; then | |
1386 | # Some versions of bash will fail to source /dev/null (special | |
1387 | # files actually), so we avoid doing that. | |
1388 | if test -f "$cache_file"; then | |
1389 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1390 | echo "$as_me: loading cache $cache_file" >&6;} | |
1391 | case $cache_file in | |
a106dabe | 1392 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1393 | *) . ./$cache_file;; | |
4ee9c684 | 1394 | esac |
1395 | fi | |
1396 | else | |
1397 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1398 | echo "$as_me: creating cache $cache_file" >&6;} | |
1399 | >$cache_file | |
1400 | fi | |
1401 | ||
1402 | # Check that the precious variables saved in the cache have kept the same | |
1403 | # value. | |
1404 | ac_cache_corrupted=false | |
a106dabe | 1405 | for ac_var in `(set) 2>&1 | |
1406 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
4ee9c684 | 1407 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1408 | eval ac_new_set=\$ac_env_${ac_var}_set | |
a106dabe | 1409 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1410 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
4ee9c684 | 1411 | case $ac_old_set,$ac_new_set in |
1412 | set,) | |
1413 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1414 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1415 | ac_cache_corrupted=: ;; | |
1416 | ,set) | |
1417 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1418 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1419 | ac_cache_corrupted=: ;; | |
1420 | ,);; | |
1421 | *) | |
1422 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1423 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1424 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1425 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1426 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1427 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1428 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1429 | ac_cache_corrupted=: | |
1430 | fi;; | |
1431 | esac | |
1432 | # Pass precious variables to config.status. | |
1433 | if test "$ac_new_set" = set; then | |
1434 | case $ac_new_val in | |
a106dabe | 1435 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1436 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4ee9c684 | 1437 | *) ac_arg=$ac_var=$ac_new_val ;; |
1438 | esac | |
1439 | case " $ac_configure_args " in | |
1440 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1441 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1442 | esac | |
1443 | fi | |
1444 | done | |
1445 | if $ac_cache_corrupted; then | |
1446 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1447 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1448 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1449 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1450 | { (exit 1); exit 1; }; } | |
1451 | fi | |
1452 | ||
a106dabe | 1453 | ac_ext=c |
1454 | ac_cpp='$CPP $CPPFLAGS' | |
1455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ee9c684 | 1458 | |
1459 | ||
1460 | ||
1461 | ||
1462 | ||
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | ||
1483 | ||
a106dabe | 1484 | |
1485 | ac_config_headers="$ac_config_headers config.h" | |
90973b19 | 1486 | |
4ee9c684 | 1487 | ac_aux_dir= |
a106dabe | 1488 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1489 | if test -f $ac_dir/install-sh; then | |
4ee9c684 | 1490 | ac_aux_dir=$ac_dir |
1491 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1492 | break | |
a106dabe | 1493 | elif test -f $ac_dir/install.sh; then |
4ee9c684 | 1494 | ac_aux_dir=$ac_dir |
1495 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1496 | break | |
a106dabe | 1497 | elif test -f $ac_dir/shtool; then |
4ee9c684 | 1498 | ac_aux_dir=$ac_dir |
1499 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1500 | break | |
1501 | fi | |
1502 | done | |
1503 | if test -z "$ac_aux_dir"; then | |
a106dabe | 1504 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1505 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
4ee9c684 | 1506 | { (exit 1); exit 1; }; } |
1507 | fi | |
a106dabe | 1508 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1509 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1510 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
4ee9c684 | 1511 | |
90973b19 | 1512 | # Make sure we can run config.sub. |
a106dabe | 1513 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1514 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1515 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
90973b19 | 1516 | { (exit 1); exit 1; }; } |
1517 | ||
a106dabe | 1518 | echo "$as_me:$LINENO: checking build system type" >&5 |
1519 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
90973b19 | 1520 | if test "${ac_cv_build+set}" = set; then |
1521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1522 | else | |
a106dabe | 1523 | ac_cv_build_alias=$build_alias |
1524 | test -z "$ac_cv_build_alias" && | |
1525 | ac_cv_build_alias=`$ac_config_guess` | |
1526 | test -z "$ac_cv_build_alias" && | |
90973b19 | 1527 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1528 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1529 | { (exit 1); exit 1; }; } | |
a106dabe | 1530 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
1531 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1532 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
90973b19 | 1533 | { (exit 1); exit 1; }; } |
1534 | ||
1535 | fi | |
a106dabe | 1536 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1537 | echo "${ECHO_T}$ac_cv_build" >&6 | |
90973b19 | 1538 | build=$ac_cv_build |
a106dabe | 1539 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1540 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1541 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
90973b19 | 1542 | |
1543 | ||
4c82c0dd | 1544 | case ${build_alias} in |
1545 | "") build_noncanonical=${build} ;; | |
1546 | *) build_noncanonical=${build_alias} ;; | |
1547 | esac | |
1548 | ||
1549 | case ${host_alias} in | |
1550 | "") host_noncanonical=${build_noncanonical} ;; | |
1551 | *) host_noncanonical=${host_alias} ;; | |
1552 | esac | |
1553 | ||
1554 | case ${target_alias} in | |
1555 | "") target_noncanonical=${host_noncanonical} ;; | |
1556 | *) target_noncanonical=${target_alias} ;; | |
1557 | esac | |
1558 | ||
3e427a9c | 1559 | |
1560 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
1561 | # have matching libraries, they should use host libraries: Makefile.tpl | |
1562 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
1563 | # However, they still use the build modules, because the corresponding | |
1564 | # host modules (e.g. bison) are only built for the host when bootstrap | |
1565 | # finishes. So: | |
1566 | # - build_subdir is where we find build modules, and never changes. | |
1567 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
1568 | ||
1569 | # Prefix 'build-' so this never conflicts with target_subdir. | |
4c82c0dd | 1570 | build_subdir="build-${build_noncanonical}" |
3e427a9c | 1571 | |
a106dabe | 1572 | # Check whether --with-build-libsubdir or --without-build-libsubdir was given. |
3e427a9c | 1573 | if test "${with_build_libsubdir+set}" = set; then |
a106dabe | 1574 | withval="$with_build_libsubdir" |
1575 | build_libsubdir="$withval" | |
3e427a9c | 1576 | else |
1577 | build_libsubdir="$build_subdir" | |
a106dabe | 1578 | fi; |
4c82c0dd | 1579 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
1580 | if ( test $srcdir = . && test -d gcc ) \ | |
1581 | || test -d $srcdir/../host-${host_noncanonical}; then | |
1582 | host_subdir="host-${host_noncanonical}" | |
1583 | else | |
1584 | host_subdir=. | |
1585 | fi | |
1586 | # No prefix. | |
1587 | target_subdir=${target_noncanonical} | |
1588 | ||
1589 | ||
1590 | # ------- | |
1591 | # Options | |
1592 | # ------- | |
1593 | ||
a106dabe | 1594 | echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5 |
1595 | echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6 | |
1596 | # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. | |
4c82c0dd | 1597 | if test "${enable_version_specific_runtime_libs+set}" = set; then |
a106dabe | 1598 | enableval="$enable_version_specific_runtime_libs" |
1599 | case "$enableval" in | |
4c82c0dd | 1600 | yes) version_specific_libs=yes ;; |
1601 | no) version_specific_libs=no ;; | |
1602 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5 | |
1603 | echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;} | |
1604 | { (exit 1); exit 1; }; };; | |
1605 | esac | |
1606 | else | |
1607 | version_specific_libs=no | |
a106dabe | 1608 | fi; |
1609 | echo "$as_me:$LINENO: result: $version_specific_libs" >&5 | |
1610 | echo "${ECHO_T}$version_specific_libs" >&6 | |
4c82c0dd | 1611 | |
1612 | ||
1613 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
1614 | # | |
1615 | # You will slowly go insane if you do not grok the following fact: when | |
1616 | # building this library, the top-level /target/ becomes the library's /host/. | |
1617 | # | |
1618 | # configure then causes --target to default to --host, exactly like any | |
1619 | # other package using autoconf. Therefore, 'target' and 'host' will | |
1620 | # always be the same. This makes sense both for native and cross compilers | |
1621 | # just think about it for a little while. :-) | |
1622 | # | |
1623 | # Also, if this library is being configured as part of a cross compiler, the | |
1624 | # top-level configure script will pass the "real" host as $with_cross_host. | |
1625 | # | |
1626 | # Do not delete or change the following two lines. For why, see | |
1627 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
a106dabe | 1628 | echo "$as_me:$LINENO: checking host system type" >&5 |
1629 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
90973b19 | 1630 | if test "${ac_cv_host+set}" = set; then |
1631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1632 | else | |
a106dabe | 1633 | ac_cv_host_alias=$host_alias |
1634 | test -z "$ac_cv_host_alias" && | |
1635 | ac_cv_host_alias=$ac_cv_build_alias | |
1636 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1637 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1638 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
90973b19 | 1639 | { (exit 1); exit 1; }; } |
1640 | ||
1641 | fi | |
a106dabe | 1642 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1643 | echo "${ECHO_T}$ac_cv_host" >&6 | |
90973b19 | 1644 | host=$ac_cv_host |
a106dabe | 1645 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1646 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1647 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1648 | ||
1649 | ||
1650 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1651 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
90973b19 | 1652 | if test "${ac_cv_target+set}" = set; then |
1653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1654 | else | |
a106dabe | 1655 | ac_cv_target_alias=$target_alias |
1656 | test "x$ac_cv_target_alias" = "x" && | |
1657 | ac_cv_target_alias=$ac_cv_host_alias | |
1658 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1659 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1660 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
90973b19 | 1661 | { (exit 1); exit 1; }; } |
1662 | ||
1663 | fi | |
a106dabe | 1664 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1665 | echo "${ECHO_T}$ac_cv_target" >&6 | |
90973b19 | 1666 | target=$ac_cv_target |
a106dabe | 1667 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1668 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1669 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
90973b19 | 1670 | |
1671 | ||
1672 | # The aliases save the names the user supplied, while $host etc. | |
1673 | # will get canonicalized. | |
1674 | test -n "$target_alias" && | |
1675 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1676 | NONENONEs,x,x, && | |
1677 | program_prefix=${target_alias}- | |
1678 | target_alias=${target_alias-$host_alias} | |
1679 | ||
1680 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
1681 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
2fd61f51 | 1682 | # 1.9.6: minimum required version |
90973b19 | 1683 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch |
1684 | # of other PACKAGE_* variables will, however, and there's nothing | |
1685 | # we can do about that; they come from AC_INIT). | |
1686 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
1687 | # file in the top srcdir, etc, etc), so stop complaining. | |
90973b19 | 1688 | # -Wall: turns on all automake warnings... |
1689 | # -Wno-portability: ...except this one, since GNU make is required. | |
6745c9de | 1690 | am__api_version="1.9" |
4ee9c684 | 1691 | # Find a good install program. We prefer a C program (faster), |
1692 | # so one script is as good as another. But avoid the broken or | |
1693 | # incompatible versions: | |
1694 | # SysV /etc/install, /usr/sbin/install | |
1695 | # SunOS /usr/etc/install | |
1696 | # IRIX /sbin/install | |
1697 | # AIX /bin/install | |
1698 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1699 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1700 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1701 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1702 | # OS/2's system install, which has a completely different semantic | |
1703 | # ./install, which can be erroneously created by make from ./install.sh. | |
a106dabe | 1704 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1705 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
4ee9c684 | 1706 | if test -z "$INSTALL"; then |
1707 | if test "${ac_cv_path_install+set}" = set; then | |
1708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1709 | else | |
1710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1711 | for as_dir in $PATH | |
1712 | do | |
1713 | IFS=$as_save_IFS | |
1714 | test -z "$as_dir" && as_dir=. | |
1715 | # Account for people who put trailing slashes in PATH elements. | |
1716 | case $as_dir/ in | |
1717 | ./ | .// | /cC/* | \ | |
1718 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1719 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1720 | /usr/ucb/* ) ;; | |
1721 | *) | |
1722 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1723 | # Don't use installbsd from OSF since it installs stuff as root | |
1724 | # by default. | |
1725 | for ac_prog in ginstall scoinst install; do | |
1726 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 1727 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
4ee9c684 | 1728 | if test $ac_prog = install && |
1729 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1730 | # AIX install. It has an incompatible calling convention. | |
1731 | : | |
1732 | elif test $ac_prog = install && | |
1733 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1734 | # program-specific install script used by HP pwplus--don't use. | |
1735 | : | |
1736 | else | |
1737 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1738 | break 3 | |
1739 | fi | |
1740 | fi | |
1741 | done | |
1742 | done | |
1743 | ;; | |
1744 | esac | |
1745 | done | |
1746 | ||
1747 | ||
1748 | fi | |
1749 | if test "${ac_cv_path_install+set}" = set; then | |
1750 | INSTALL=$ac_cv_path_install | |
1751 | else | |
a106dabe | 1752 | # As a last resort, use the slow shell script. We don't cache a |
1753 | # path for INSTALL within a source directory, because that will | |
4ee9c684 | 1754 | # break other packages using the cache if that directory is |
a106dabe | 1755 | # removed, or if the path is relative. |
4ee9c684 | 1756 | INSTALL=$ac_install_sh |
1757 | fi | |
1758 | fi | |
a106dabe | 1759 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1760 | echo "${ECHO_T}$INSTALL" >&6 | |
4ee9c684 | 1761 | |
1762 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1763 | # It thinks the first close brace ends the variable substitution. | |
1764 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1765 | ||
1766 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1767 | ||
1768 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1769 | ||
a106dabe | 1770 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1771 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
4ee9c684 | 1772 | # Just in case |
1773 | sleep 1 | |
1774 | echo timestamp > conftest.file | |
1775 | # Do `set' in a subshell so we don't clobber the current shell's | |
1776 | # arguments. Must try -L first in case configure is actually a | |
1777 | # symlink; some systems play weird games with the mod time of symlinks | |
1778 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1779 | # directory). | |
1780 | if ( | |
1781 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1782 | if test "$*" = "X"; then | |
1783 | # -L didn't work. | |
1784 | set X `ls -t $srcdir/configure conftest.file` | |
1785 | fi | |
1786 | rm -f conftest.file | |
1787 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1788 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1789 | ||
1790 | # If neither matched, then we have a broken ls. This can happen | |
1791 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1792 | # broken ls alias from the environment. This has actually | |
1793 | # happened. Such a system could not be considered "sane". | |
1794 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1795 | alias in your environment" >&5 | |
1796 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1797 | alias in your environment" >&2;} | |
1798 | { (exit 1); exit 1; }; } | |
1799 | fi | |
1800 | ||
1801 | test "$2" = conftest.file | |
1802 | ) | |
1803 | then | |
1804 | # Ok. | |
1805 | : | |
1806 | else | |
1807 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1808 | Check your system clock" >&5 | |
1809 | echo "$as_me: error: newly created file is older than distributed files! | |
1810 | Check your system clock" >&2;} | |
1811 | { (exit 1); exit 1; }; } | |
1812 | fi | |
a106dabe | 1813 | echo "$as_me:$LINENO: result: yes" >&5 |
1814 | echo "${ECHO_T}yes" >&6 | |
4ee9c684 | 1815 | test "$program_prefix" != NONE && |
a106dabe | 1816 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
4ee9c684 | 1817 | # Use a double $ so make ignores it. |
1818 | test "$program_suffix" != NONE && | |
a106dabe | 1819 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
4ee9c684 | 1820 | # Double any \ or $. echo might interpret backslashes. |
1821 | # By default was `s,x,x', remove it if useless. | |
1822 | cat <<\_ACEOF >conftest.sed | |
1823 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1824 | _ACEOF | |
1825 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
a106dabe | 1826 | rm conftest.sed |
4ee9c684 | 1827 | |
1828 | # expand $ac_aux_dir to an absolute path | |
1829 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1830 | ||
1831 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1832 | # Use eval to expand $SHELL | |
1833 | if eval "$MISSING --run true"; then | |
1834 | am_missing_run="$MISSING --run " | |
1835 | else | |
1836 | am_missing_run= | |
1837 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1838 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1839 | fi | |
1840 | ||
cdafa1f6 | 1841 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
6745c9de | 1842 | # We used to keeping the `.' as first argument, in order to |
1843 | # allow $(mkdir_p) to be used without argument. As in | |
4ee9c684 | 1844 | # $(mkdir_p) $(somedir) |
6745c9de | 1845 | # where $(somedir) is conditionally defined. However this is wrong |
1846 | # for two reasons: | |
1847 | # 1. if the package is installed by a user who cannot write `.' | |
1848 | # make install will fail, | |
1849 | # 2. the above comment should most certainly read | |
1850 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1851 | # so it does not work when $(somedir) is undefined and | |
1852 | # $(DESTDIR) is not. | |
1853 | # To support the latter case, we have to write | |
1854 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1855 | # so the `.' trick is pointless. | |
1856 | mkdir_p='mkdir -p --' | |
4ee9c684 | 1857 | else |
1858 | # On NextStep and OpenStep, the `mkdir' command does not | |
1859 | # recognize any option. It will interpret all options as | |
1860 | # directories to create, and then abort because `.' already | |
1861 | # exists. | |
cdafa1f6 | 1862 | for d in ./-p ./--version; |
4ee9c684 | 1863 | do |
1864 | test -d $d && rmdir $d | |
1865 | done | |
1866 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1867 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1868 | mkdir_p='$(mkinstalldirs)' | |
1869 | else | |
1870 | mkdir_p='$(install_sh) -d' | |
1871 | fi | |
1872 | fi | |
1873 | ||
1874 | for ac_prog in gawk mawk nawk awk | |
1875 | do | |
1876 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1877 | set dummy $ac_prog; ac_word=$2 | |
a106dabe | 1878 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 1880 | if test "${ac_cv_prog_AWK+set}" = set; then |
1881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1882 | else | |
1883 | if test -n "$AWK"; then | |
1884 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1885 | else | |
1886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1887 | for as_dir in $PATH | |
1888 | do | |
1889 | IFS=$as_save_IFS | |
1890 | test -z "$as_dir" && as_dir=. | |
1891 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 1892 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 1893 | ac_cv_prog_AWK="$ac_prog" |
1894 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1895 | break 2 | |
1896 | fi | |
1897 | done | |
1898 | done | |
1899 | ||
1900 | fi | |
1901 | fi | |
1902 | AWK=$ac_cv_prog_AWK | |
1903 | if test -n "$AWK"; then | |
a106dabe | 1904 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1905 | echo "${ECHO_T}$AWK" >&6 | |
4ee9c684 | 1906 | else |
a106dabe | 1907 | echo "$as_me:$LINENO: result: no" >&5 |
1908 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 1909 | fi |
1910 | ||
1911 | test -n "$AWK" && break | |
1912 | done | |
1913 | ||
a106dabe | 1914 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1915 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1916 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1917 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
4ee9c684 | 1918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1919 | else | |
1920 | cat >conftest.make <<\_ACEOF | |
1921 | all: | |
a106dabe | 1922 | @echo 'ac_maketemp="$(MAKE)"' |
4ee9c684 | 1923 | _ACEOF |
1924 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
a106dabe | 1925 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
1926 | if test -n "$ac_maketemp"; then | |
1927 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1928 | else | |
1929 | eval ac_cv_prog_make_${ac_make}_set=no | |
1930 | fi | |
4ee9c684 | 1931 | rm -f conftest.make |
1932 | fi | |
a106dabe | 1933 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
1934 | echo "$as_me:$LINENO: result: yes" >&5 | |
1935 | echo "${ECHO_T}yes" >&6 | |
4ee9c684 | 1936 | SET_MAKE= |
1937 | else | |
a106dabe | 1938 | echo "$as_me:$LINENO: result: no" >&5 |
1939 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 1940 | SET_MAKE="MAKE=${MAKE-make}" |
1941 | fi | |
1942 | ||
1943 | rm -rf .tst 2>/dev/null | |
1944 | mkdir .tst 2>/dev/null | |
1945 | if test -d .tst; then | |
1946 | am__leading_dot=. | |
1947 | else | |
1948 | am__leading_dot=_ | |
1949 | fi | |
1950 | rmdir .tst 2>/dev/null | |
1951 | ||
1952 | # test to see if srcdir already configured | |
1953 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1954 | test -f $srcdir/config.status; then | |
1955 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1956 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1957 | { (exit 1); exit 1; }; } | |
1958 | fi | |
1959 | ||
1960 | # test whether we have cygpath | |
1961 | if test -z "$CYGPATH_W"; then | |
1962 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1963 | CYGPATH_W='cygpath -w' | |
1964 | else | |
1965 | CYGPATH_W=echo | |
1966 | fi | |
1967 | fi | |
1968 | ||
1969 | ||
1970 | # Define the identity of the package. | |
1971 | PACKAGE='libgfortran' | |
76c0a846 | 1972 | VERSION='0.3' |
4ee9c684 | 1973 | |
1974 | ||
4ee9c684 | 1975 | # Some tools Automake needs. |
1976 | ||
1977 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1978 | ||
1979 | ||
1980 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1981 | ||
1982 | ||
1983 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1984 | ||
1985 | ||
1986 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1987 | ||
1988 | ||
1989 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1990 | ||
4ee9c684 | 1991 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1992 | ||
1993 | # Installed binaries are usually stripped using `strip' when the user | |
1994 | # run `make install-strip'. However `strip' might not be the right | |
1995 | # tool to use in cross-compilation environments, therefore Automake | |
1996 | # will honor the `STRIP' environment variable to overrule this program. | |
1997 | if test "$cross_compiling" != no; then | |
1998 | if test -n "$ac_tool_prefix"; then | |
1999 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2000 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a106dabe | 2001 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2003 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2005 | else | |
2006 | if test -n "$STRIP"; then | |
2007 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2008 | else | |
2009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2010 | for as_dir in $PATH | |
2011 | do | |
2012 | IFS=$as_save_IFS | |
2013 | test -z "$as_dir" && as_dir=. | |
2014 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 2015 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 2016 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2017 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2018 | break 2 | |
2019 | fi | |
2020 | done | |
2021 | done | |
2022 | ||
2023 | fi | |
2024 | fi | |
2025 | STRIP=$ac_cv_prog_STRIP | |
2026 | if test -n "$STRIP"; then | |
a106dabe | 2027 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
2028 | echo "${ECHO_T}$STRIP" >&6 | |
4ee9c684 | 2029 | else |
a106dabe | 2030 | echo "$as_me:$LINENO: result: no" >&5 |
2031 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2032 | fi |
2033 | ||
2034 | fi | |
2035 | if test -z "$ac_cv_prog_STRIP"; then | |
2036 | ac_ct_STRIP=$STRIP | |
2037 | # Extract the first word of "strip", so it can be a program name with args. | |
2038 | set dummy strip; ac_word=$2 | |
a106dabe | 2039 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2041 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2043 | else | |
2044 | if test -n "$ac_ct_STRIP"; then | |
2045 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2046 | else | |
2047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2048 | for as_dir in $PATH | |
2049 | do | |
2050 | IFS=$as_save_IFS | |
2051 | test -z "$as_dir" && as_dir=. | |
2052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 2053 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 2054 | ac_cv_prog_ac_ct_STRIP="strip" |
2055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2056 | break 2 | |
2057 | fi | |
2058 | done | |
2059 | done | |
2060 | ||
a106dabe | 2061 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
4ee9c684 | 2062 | fi |
2063 | fi | |
2064 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2065 | if test -n "$ac_ct_STRIP"; then | |
a106dabe | 2066 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2067 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
4ee9c684 | 2068 | else |
a106dabe | 2069 | echo "$as_me:$LINENO: result: no" >&5 |
2070 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2071 | fi |
2072 | ||
a106dabe | 2073 | STRIP=$ac_ct_STRIP |
4ee9c684 | 2074 | else |
2075 | STRIP="$ac_cv_prog_STRIP" | |
2076 | fi | |
2077 | ||
2078 | fi | |
2079 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
2080 | ||
2081 | # We need awk for the "check" target. The system "awk" is bad on | |
2082 | # some platforms. | |
6745c9de | 2083 | # Always define AMTAR for backward compatibility. |
2084 | ||
2085 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2086 | ||
2087 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2088 | ||
2089 | ||
4ee9c684 | 2090 | |
2091 | ||
2092 | ||
4ee9c684 | 2093 | |
a106dabe | 2094 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2095 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
2096 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
4ee9c684 | 2097 | if test "${enable_maintainer_mode+set}" = set; then |
a106dabe | 2098 | enableval="$enable_maintainer_mode" |
2099 | USE_MAINTAINER_MODE=$enableval | |
4ee9c684 | 2100 | else |
2101 | USE_MAINTAINER_MODE=no | |
a106dabe | 2102 | fi; |
2103 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
2104 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
4ee9c684 | 2105 | |
2106 | ||
2107 | if test $USE_MAINTAINER_MODE = yes; then | |
2108 | MAINTAINER_MODE_TRUE= | |
2109 | MAINTAINER_MODE_FALSE='#' | |
2110 | else | |
2111 | MAINTAINER_MODE_TRUE='#' | |
2112 | MAINTAINER_MODE_FALSE= | |
2113 | fi | |
2114 | ||
2115 | MAINT=$MAINTAINER_MODE_TRUE | |
2116 | ||
2117 | ||
90973b19 | 2118 | # Default to --enable-multilib |
a106dabe | 2119 | # Check whether --enable-multilib or --disable-multilib was given. |
90973b19 | 2120 | if test "${enable_multilib+set}" = set; then |
a106dabe | 2121 | enableval="$enable_multilib" |
2122 | case "$enableval" in | |
90973b19 | 2123 | yes) multilib=yes ;; |
2124 | no) multilib=no ;; | |
2125 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 | |
2126 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
2127 | { (exit 1); exit 1; }; } ;; | |
2128 | esac | |
2129 | else | |
2130 | multilib=yes | |
a106dabe | 2131 | fi; |
90973b19 | 2132 | |
2133 | # We may get other options which we leave undocumented: | |
2134 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
2135 | # See config-ml.in if you want the gory details. | |
2136 | ||
2137 | if test "$srcdir" = "."; then | |
2138 | if test "$with_target_subdir" != "."; then | |
2139 | multi_basedir="$srcdir/$with_multisrctop../.." | |
2140 | else | |
2141 | multi_basedir="$srcdir/$with_multisrctop.." | |
2142 | fi | |
2143 | else | |
2144 | multi_basedir="$srcdir/.." | |
2145 | fi | |
2146 | ||
2147 | ||
04c8b51e | 2148 | # Even if the default multilib is not a cross compilation, |
2149 | # it may be that some of the other multilibs are. | |
2150 | if test $cross_compiling = no && test $multilib = yes \ | |
2151 | && test "x${with_multisubdir}" != x ; then | |
2152 | cross_compiling=maybe | |
2153 | fi | |
2154 | ||
a106dabe | 2155 | ac_config_commands="$ac_config_commands default-1" |
90973b19 | 2156 | |
2157 | ||
2158 | # Handy for debugging: | |
2159 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
2160 | ||
2161 | # Are we being configured with some form of cross compiler? | |
2162 | # NB: We don't actually need to know this just now, but when, say, a test | |
2163 | # suite is included, we'll have to know. | |
2164 | if test "$build" != "$host"; then | |
2165 | LIBGFOR_IS_NATIVE=false | |
b52ee437 | 2166 | |
90973b19 | 2167 | else |
2168 | LIBGFOR_IS_NATIVE=true | |
2169 | fi | |
2170 | ||
90973b19 | 2171 | # Calculate toolexeclibdir |
2172 | # Also toolexecdir, though it's only used in toolexeclibdir | |
2173 | case ${version_specific_libs} in | |
2174 | yes) | |
2175 | # Need the gcc compiler version to know where to install libraries | |
2176 | # and header files if --enable-version-specific-runtime-libs option | |
2177 | # is selected. | |
2178 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
91a9c151 | 2179 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' |
90973b19 | 2180 | ;; |
2181 | no) | |
2182 | if test -n "$with_cross_host" && | |
2183 | test x"$with_cross_host" != x"no"; then | |
2184 | # Install a library built with a cross compiler in tooldir, not libdir. | |
2185 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
2186 | toolexeclibdir='$(toolexecdir)/lib' | |
2187 | else | |
2188 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
2189 | toolexeclibdir='$(libdir)' | |
2190 | fi | |
2191 | multi_os_directory=`$CC -print-multi-os-directory` | |
2192 | case $multi_os_directory in | |
2193 | .) ;; # Avoid trailing /. | |
2194 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
2195 | esac | |
2196 | ;; | |
2197 | esac | |
2198 | ||
2199 | ||
4ee9c684 | 2200 | |
90973b19 | 2201 | # Check the compiler. |
2202 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
2203 | # We must force CC to /not/ be precious variables; otherwise | |
2204 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
2205 | # As a side effect, we have to subst CFLAGS ourselves. | |
4ee9c684 | 2206 | |
2207 | ||
2208 | ||
4ee9c684 | 2209 | ac_ext=c |
2210 | ac_cpp='$CPP $CPPFLAGS' | |
2211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2214 | if test -n "$ac_tool_prefix"; then | |
2215 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2216 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
a106dabe | 2217 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2218 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2219 | if test "${ac_cv_prog_CC+set}" = set; then |
2220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2221 | else | |
2222 | if test -n "$CC"; then | |
2223 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2224 | else | |
2225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2226 | for as_dir in $PATH | |
2227 | do | |
2228 | IFS=$as_save_IFS | |
2229 | test -z "$as_dir" && as_dir=. | |
2230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 2231 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 2232 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2233 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2234 | break 2 | |
2235 | fi | |
2236 | done | |
2237 | done | |
2238 | ||
2239 | fi | |
2240 | fi | |
2241 | CC=$ac_cv_prog_CC | |
2242 | if test -n "$CC"; then | |
a106dabe | 2243 | echo "$as_me:$LINENO: result: $CC" >&5 |
2244 | echo "${ECHO_T}$CC" >&6 | |
4ee9c684 | 2245 | else |
a106dabe | 2246 | echo "$as_me:$LINENO: result: no" >&5 |
2247 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2248 | fi |
2249 | ||
2250 | fi | |
2251 | if test -z "$ac_cv_prog_CC"; then | |
2252 | ac_ct_CC=$CC | |
2253 | # Extract the first word of "gcc", so it can be a program name with args. | |
2254 | set dummy gcc; ac_word=$2 | |
a106dabe | 2255 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2257 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2259 | else | |
2260 | if test -n "$ac_ct_CC"; then | |
2261 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2262 | else | |
2263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2264 | for as_dir in $PATH | |
2265 | do | |
2266 | IFS=$as_save_IFS | |
2267 | test -z "$as_dir" && as_dir=. | |
2268 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 2269 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 2270 | ac_cv_prog_ac_ct_CC="gcc" |
2271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2272 | break 2 | |
2273 | fi | |
2274 | done | |
2275 | done | |
2276 | ||
2277 | fi | |
2278 | fi | |
2279 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2280 | if test -n "$ac_ct_CC"; then | |
a106dabe | 2281 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2282 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4ee9c684 | 2283 | else |
a106dabe | 2284 | echo "$as_me:$LINENO: result: no" >&5 |
2285 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2286 | fi |
2287 | ||
a106dabe | 2288 | CC=$ac_ct_CC |
4ee9c684 | 2289 | else |
2290 | CC="$ac_cv_prog_CC" | |
2291 | fi | |
2292 | ||
2293 | if test -z "$CC"; then | |
a106dabe | 2294 | if test -n "$ac_tool_prefix"; then |
2295 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4ee9c684 | 2296 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
a106dabe | 2297 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2299 | if test "${ac_cv_prog_CC+set}" = set; then |
2300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2301 | else | |
2302 | if test -n "$CC"; then | |
2303 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2304 | else | |
2305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2306 | for as_dir in $PATH | |
2307 | do | |
2308 | IFS=$as_save_IFS | |
2309 | test -z "$as_dir" && as_dir=. | |
2310 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 2311 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 2312 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2313 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2314 | break 2 | |
2315 | fi | |
2316 | done | |
2317 | done | |
2318 | ||
2319 | fi | |
2320 | fi | |
2321 | CC=$ac_cv_prog_CC | |
2322 | if test -n "$CC"; then | |
a106dabe | 2323 | echo "$as_me:$LINENO: result: $CC" >&5 |
2324 | echo "${ECHO_T}$CC" >&6 | |
4ee9c684 | 2325 | else |
a106dabe | 2326 | echo "$as_me:$LINENO: result: no" >&5 |
2327 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2328 | fi |
2329 | ||
a106dabe | 2330 | fi |
2331 | if test -z "$ac_cv_prog_CC"; then | |
2332 | ac_ct_CC=$CC | |
2333 | # Extract the first word of "cc", so it can be a program name with args. | |
2334 | set dummy cc; ac_word=$2 | |
2335 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2336 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2337 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2339 | else | |
2340 | if test -n "$ac_ct_CC"; then | |
2341 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2342 | else | |
2343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2344 | for as_dir in $PATH | |
2345 | do | |
2346 | IFS=$as_save_IFS | |
2347 | test -z "$as_dir" && as_dir=. | |
2348 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2349 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2350 | ac_cv_prog_ac_ct_CC="cc" | |
2351 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2352 | break 2 | |
ce1a737c | 2353 | fi |
a106dabe | 2354 | done |
2355 | done | |
2356 | ||
2357 | fi | |
2358 | fi | |
2359 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2360 | if test -n "$ac_ct_CC"; then | |
2361 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2362 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2363 | else | |
2364 | echo "$as_me:$LINENO: result: no" >&5 | |
2365 | echo "${ECHO_T}no" >&6 | |
2366 | fi | |
2367 | ||
2368 | CC=$ac_ct_CC | |
2369 | else | |
2370 | CC="$ac_cv_prog_CC" | |
2371 | fi | |
2372 | ||
4ee9c684 | 2373 | fi |
2374 | if test -z "$CC"; then | |
2375 | # Extract the first word of "cc", so it can be a program name with args. | |
2376 | set dummy cc; ac_word=$2 | |
a106dabe | 2377 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2378 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2379 | if test "${ac_cv_prog_CC+set}" = set; then |
2380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2381 | else | |
2382 | if test -n "$CC"; then | |
2383 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2384 | else | |
2385 | ac_prog_rejected=no | |
2386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2387 | for as_dir in $PATH | |
2388 | do | |
2389 | IFS=$as_save_IFS | |
2390 | test -z "$as_dir" && as_dir=. | |
2391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 2392 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 2393 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2394 | ac_prog_rejected=yes | |
2395 | continue | |
2396 | fi | |
2397 | ac_cv_prog_CC="cc" | |
2398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2399 | break 2 | |
2400 | fi | |
2401 | done | |
2402 | done | |
2403 | ||
2404 | if test $ac_prog_rejected = yes; then | |
2405 | # We found a bogon in the path, so make sure we never use it. | |
2406 | set dummy $ac_cv_prog_CC | |
2407 | shift | |
2408 | if test $# != 0; then | |
2409 | # We chose a different compiler from the bogus one. | |
2410 | # However, it has the same basename, so the bogon will be chosen | |
2411 | # first if we set CC to just the basename; use the full file name. | |
2412 | shift | |
2413 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2414 | fi | |
2415 | fi | |
2416 | fi | |
2417 | fi | |
2418 | CC=$ac_cv_prog_CC | |
2419 | if test -n "$CC"; then | |
a106dabe | 2420 | echo "$as_me:$LINENO: result: $CC" >&5 |
2421 | echo "${ECHO_T}$CC" >&6 | |
4ee9c684 | 2422 | else |
a106dabe | 2423 | echo "$as_me:$LINENO: result: no" >&5 |
2424 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2425 | fi |
2426 | ||
2427 | fi | |
2428 | if test -z "$CC"; then | |
2429 | if test -n "$ac_tool_prefix"; then | |
a106dabe | 2430 | for ac_prog in cl |
4ee9c684 | 2431 | do |
2432 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2433 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
a106dabe | 2434 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2436 | if test "${ac_cv_prog_CC+set}" = set; then |
2437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2438 | else | |
2439 | if test -n "$CC"; then | |
2440 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2441 | else | |
2442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2443 | for as_dir in $PATH | |
2444 | do | |
2445 | IFS=$as_save_IFS | |
2446 | test -z "$as_dir" && as_dir=. | |
2447 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 2448 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 2449 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2450 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2451 | break 2 | |
2452 | fi | |
2453 | done | |
2454 | done | |
2455 | ||
2456 | fi | |
2457 | fi | |
2458 | CC=$ac_cv_prog_CC | |
2459 | if test -n "$CC"; then | |
a106dabe | 2460 | echo "$as_me:$LINENO: result: $CC" >&5 |
2461 | echo "${ECHO_T}$CC" >&6 | |
4ee9c684 | 2462 | else |
a106dabe | 2463 | echo "$as_me:$LINENO: result: no" >&5 |
2464 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2465 | fi |
2466 | ||
2467 | test -n "$CC" && break | |
2468 | done | |
2469 | fi | |
2470 | if test -z "$CC"; then | |
2471 | ac_ct_CC=$CC | |
a106dabe | 2472 | for ac_prog in cl |
4ee9c684 | 2473 | do |
2474 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2475 | set dummy $ac_prog; ac_word=$2 | |
a106dabe | 2476 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2478 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2480 | else | |
2481 | if test -n "$ac_ct_CC"; then | |
2482 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2483 | else | |
2484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2485 | for as_dir in $PATH | |
2486 | do | |
2487 | IFS=$as_save_IFS | |
2488 | test -z "$as_dir" && as_dir=. | |
2489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 2490 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 2491 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2492 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2493 | break 2 | |
2494 | fi | |
2495 | done | |
2496 | done | |
2497 | ||
2498 | fi | |
2499 | fi | |
2500 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2501 | if test -n "$ac_ct_CC"; then | |
a106dabe | 2502 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2503 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4ee9c684 | 2504 | else |
a106dabe | 2505 | echo "$as_me:$LINENO: result: no" >&5 |
2506 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2507 | fi |
2508 | ||
2509 | test -n "$ac_ct_CC" && break | |
2510 | done | |
2511 | ||
a106dabe | 2512 | CC=$ac_ct_CC |
4ee9c684 | 2513 | fi |
2514 | ||
2515 | fi | |
2516 | ||
2517 | ||
2518 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2519 | See \`config.log' for more details." >&5 | |
2520 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2521 | See \`config.log' for more details." >&2;} | |
2522 | { (exit 1); exit 1; }; } | |
2523 | ||
2524 | # Provide some information about the compiler. | |
a106dabe | 2525 | echo "$as_me:$LINENO:" \ |
2526 | "checking for C compiler version" >&5 | |
4ee9c684 | 2527 | ac_compiler=`set X $ac_compile; echo $2` |
a106dabe | 2528 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2529 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4ee9c684 | 2530 | ac_status=$? |
2531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2532 | (exit $ac_status); } | |
a106dabe | 2533 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2534 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4ee9c684 | 2535 | ac_status=$? |
2536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2537 | (exit $ac_status); } | |
a106dabe | 2538 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2539 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4ee9c684 | 2540 | ac_status=$? |
2541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2542 | (exit $ac_status); } | |
2543 | ||
2544 | cat >conftest.$ac_ext <<_ACEOF | |
2545 | /* confdefs.h. */ | |
2546 | _ACEOF | |
2547 | cat confdefs.h >>conftest.$ac_ext | |
2548 | cat >>conftest.$ac_ext <<_ACEOF | |
2549 | /* end confdefs.h. */ | |
2550 | ||
b52ee437 | 2551 | int |
2552 | main () | |
2553 | { | |
2554 | ||
2555 | ; | |
2556 | return 0; | |
2557 | } | |
2558 | _ACEOF | |
2559 | # FIXME: Cleanup? | |
2560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2561 | (eval $ac_link) 2>&5 | |
2562 | ac_status=$? | |
2563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2564 | (exit $ac_status); }; then | |
2565 | gcc_no_link=no | |
2566 | else | |
2567 | gcc_no_link=yes | |
2568 | fi | |
2569 | ||
2570 | if test x$gcc_no_link = xyes; then | |
2571 | # Setting cross_compile will disable run tests; it will | |
2572 | # also disable AC_CHECK_FILE but that's generally | |
2573 | # correct if we can't link. | |
2574 | cross_compiling=yes | |
2575 | EXEEXT= | |
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 | ||
4ee9c684 | 2584 | int |
2585 | main () | |
2586 | { | |
2587 | ||
2588 | ; | |
2589 | return 0; | |
2590 | } | |
2591 | _ACEOF | |
2592 | ac_clean_files_save=$ac_clean_files | |
2593 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2594 | # Try to create an executable without -o first, disregard a.out. | |
2595 | # It will help us diagnose broken compilers, and finding out an intuition | |
2596 | # of exeext. | |
a106dabe | 2597 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2598 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
4ee9c684 | 2599 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
a106dabe | 2600 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2601 | (eval $ac_link_default) 2>&5 | |
4ee9c684 | 2602 | ac_status=$? |
2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2604 | (exit $ac_status); }; then | |
a106dabe | 2605 | # Find the output, starting from the most likely. This scheme is |
2606 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2607 | # resort. | |
2608 | ||
2609 | # Be careful to initialize this variable, since it used to be cached. | |
2610 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2611 | ac_cv_exeext= | |
2612 | # b.out is created by i960 compilers. | |
2613 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
4ee9c684 | 2614 | do |
2615 | test -f "$ac_file" || continue | |
2616 | case $ac_file in | |
a106dabe | 2617 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2618 | ;; | |
2619 | conftest.$ac_ext ) | |
2620 | # This is the source file. | |
4ee9c684 | 2621 | ;; |
2622 | [ab].out ) | |
2623 | # We found the default executable, but exeext='' is most | |
2624 | # certainly right. | |
2625 | break;; | |
2626 | *.* ) | |
a106dabe | 2627 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2628 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2629 | # but it would be cool to find out if it's true. Does anybody | |
2630 | # maintain Libtool? --akim. | |
2631 | export ac_cv_exeext | |
4ee9c684 | 2632 | break;; |
2633 | * ) | |
2634 | break;; | |
2635 | esac | |
2636 | done | |
2637 | else | |
2638 | echo "$as_me: failed program was:" >&5 | |
2639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2640 | ||
2641 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2642 | See \`config.log' for more details." >&5 | |
2643 | echo "$as_me: error: C compiler cannot create executables | |
2644 | See \`config.log' for more details." >&2;} | |
2645 | { (exit 77); exit 77; }; } | |
2646 | fi | |
2647 | ||
2648 | ac_exeext=$ac_cv_exeext | |
a106dabe | 2649 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
2650 | echo "${ECHO_T}$ac_file" >&6 | |
4ee9c684 | 2651 | |
a106dabe | 2652 | # Check the compiler produces executables we can run. If not, either |
4ee9c684 | 2653 | # the compiler is broken, or we cross compile. |
a106dabe | 2654 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2655 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
4ee9c684 | 2656 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2657 | # If not cross compiling, check that we can run a simple program. | |
2658 | if test "$cross_compiling" != yes; then | |
2659 | if { ac_try='./$ac_file' | |
a106dabe | 2660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2661 | (eval $ac_try) 2>&5 | |
4ee9c684 | 2662 | ac_status=$? |
2663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2664 | (exit $ac_status); }; }; then | |
2665 | cross_compiling=no | |
2666 | else | |
2667 | if test "$cross_compiling" = maybe; then | |
2668 | cross_compiling=yes | |
2669 | else | |
2670 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2671 | If you meant to cross compile, use \`--host'. | |
2672 | See \`config.log' for more details." >&5 | |
2673 | echo "$as_me: error: cannot run C compiled programs. | |
2674 | If you meant to cross compile, use \`--host'. | |
2675 | See \`config.log' for more details." >&2;} | |
2676 | { (exit 1); exit 1; }; } | |
2677 | fi | |
2678 | fi | |
2679 | fi | |
a106dabe | 2680 | echo "$as_me:$LINENO: result: yes" >&5 |
2681 | echo "${ECHO_T}yes" >&6 | |
4ee9c684 | 2682 | |
2683 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2684 | ac_clean_files=$ac_clean_files_save | |
a106dabe | 2685 | # Check the compiler produces executables we can run. If not, either |
4ee9c684 | 2686 | # the compiler is broken, or we cross compile. |
a106dabe | 2687 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2688 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2689 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2690 | echo "${ECHO_T}$cross_compiling" >&6 | |
2691 | ||
2692 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2693 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2695 | (eval $ac_link) 2>&5 | |
4ee9c684 | 2696 | ac_status=$? |
2697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2698 | (exit $ac_status); }; then | |
2699 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2700 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2701 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2702 | # `rm'. | |
2703 | for ac_file in conftest.exe conftest conftest.*; do | |
2704 | test -f "$ac_file" || continue | |
2705 | case $ac_file in | |
a106dabe | 2706 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
4ee9c684 | 2707 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
a106dabe | 2708 | export ac_cv_exeext |
4ee9c684 | 2709 | break;; |
2710 | * ) break;; | |
2711 | esac | |
2712 | done | |
2713 | else | |
2714 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2715 | See \`config.log' for more details." >&5 | |
2716 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2717 | See \`config.log' for more details." >&2;} | |
2718 | { (exit 1); exit 1; }; } | |
2719 | fi | |
2720 | ||
2721 | rm -f conftest$ac_cv_exeext | |
a106dabe | 2722 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2723 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
4ee9c684 | 2724 | |
2725 | rm -f conftest.$ac_ext | |
2726 | EXEEXT=$ac_cv_exeext | |
2727 | ac_exeext=$EXEEXT | |
b52ee437 | 2728 | fi |
a106dabe | 2729 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2730 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
4ee9c684 | 2731 | if test "${ac_cv_objext+set}" = set; then |
2732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2733 | else | |
2734 | cat >conftest.$ac_ext <<_ACEOF | |
2735 | /* confdefs.h. */ | |
2736 | _ACEOF | |
2737 | cat confdefs.h >>conftest.$ac_ext | |
2738 | cat >>conftest.$ac_ext <<_ACEOF | |
2739 | /* end confdefs.h. */ | |
2740 | ||
2741 | int | |
2742 | main () | |
2743 | { | |
2744 | ||
2745 | ; | |
2746 | return 0; | |
2747 | } | |
2748 | _ACEOF | |
2749 | rm -f conftest.o conftest.obj | |
a106dabe | 2750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2751 | (eval $ac_compile) 2>&5 | |
4ee9c684 | 2752 | ac_status=$? |
2753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2754 | (exit $ac_status); }; then | |
a106dabe | 2755 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
4ee9c684 | 2756 | case $ac_file in |
a106dabe | 2757 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
4ee9c684 | 2758 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2759 | break;; | |
2760 | esac | |
2761 | done | |
2762 | else | |
2763 | echo "$as_me: failed program was:" >&5 | |
2764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2765 | ||
a106dabe | 2766 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2767 | See \`config.log' for more details." >&5 | |
2768 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2769 | See \`config.log' for more details." >&2;} | |
2770 | { (exit 1); exit 1; }; } | |
2771 | fi | |
2772 | ||
2773 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2774 | fi | |
2775 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2776 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2777 | OBJEXT=$ac_cv_objext | |
2778 | ac_objext=$OBJEXT | |
2779 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2780 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2781 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2783 | else | |
2784 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 2785 | /* confdefs.h. */ |
2786 | _ACEOF | |
2787 | cat confdefs.h >>conftest.$ac_ext | |
2788 | cat >>conftest.$ac_ext <<_ACEOF | |
2789 | /* end confdefs.h. */ | |
4ee9c684 | 2790 | |
4ee9c684 | 2791 | int |
2792 | main () | |
2793 | { | |
a106dabe | 2794 | #ifndef __GNUC__ |
2795 | choke me | |
2796 | #endif | |
ce1a737c | 2797 | |
4ee9c684 | 2798 | ; |
2799 | return 0; | |
2800 | } | |
2801 | _ACEOF | |
ce1a737c | 2802 | rm -f conftest.$ac_objext |
a106dabe | 2803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2804 | (eval $ac_compile) 2>conftest.er1 | |
4ee9c684 | 2805 | ac_status=$? |
2806 | grep -v '^ *+' conftest.er1 >conftest.err | |
2807 | rm -f conftest.er1 | |
2808 | cat conftest.err >&5 | |
2809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2810 | (exit $ac_status); } && | |
c0e8efbe | 2811 | { ac_try='test -z "$ac_c_werror_flag" |
2812 | || test ! -s conftest.err' | |
a106dabe | 2813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2814 | (eval $ac_try) 2>&5 | |
4ee9c684 | 2815 | ac_status=$? |
2816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2817 | (exit $ac_status); }; } && | |
2818 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 2819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2820 | (eval $ac_try) 2>&5 | |
4ee9c684 | 2821 | ac_status=$? |
2822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2823 | (exit $ac_status); }; }; then | |
a106dabe | 2824 | ac_compiler_gnu=yes |
4ee9c684 | 2825 | else |
2826 | echo "$as_me: failed program was:" >&5 | |
2827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2828 | ||
a106dabe | 2829 | ac_compiler_gnu=no |
2830 | fi | |
2831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2832 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2833 | ||
2834 | fi | |
2835 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2836 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2837 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2838 | ac_test_CFLAGS=${CFLAGS+set} | |
2839 | ac_save_CFLAGS=$CFLAGS | |
2840 | CFLAGS="-g" | |
2841 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2842 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2843 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2845 | else | |
2846 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 2847 | /* confdefs.h. */ |
2848 | _ACEOF | |
2849 | cat confdefs.h >>conftest.$ac_ext | |
2850 | cat >>conftest.$ac_ext <<_ACEOF | |
2851 | /* end confdefs.h. */ | |
ce1a737c | 2852 | |
4ee9c684 | 2853 | int |
2854 | main () | |
2855 | { | |
ce1a737c | 2856 | |
4ee9c684 | 2857 | ; |
2858 | return 0; | |
2859 | } | |
2860 | _ACEOF | |
2861 | rm -f conftest.$ac_objext | |
a106dabe | 2862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2863 | (eval $ac_compile) 2>conftest.er1 | |
4ee9c684 | 2864 | ac_status=$? |
2865 | grep -v '^ *+' conftest.er1 >conftest.err | |
2866 | rm -f conftest.er1 | |
2867 | cat conftest.err >&5 | |
2868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2869 | (exit $ac_status); } && | |
c0e8efbe | 2870 | { ac_try='test -z "$ac_c_werror_flag" |
2871 | || test ! -s conftest.err' | |
a106dabe | 2872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2873 | (eval $ac_try) 2>&5 | |
4ee9c684 | 2874 | ac_status=$? |
2875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2876 | (exit $ac_status); }; } && | |
2877 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 2878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2879 | (eval $ac_try) 2>&5 | |
4ee9c684 | 2880 | ac_status=$? |
2881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2882 | (exit $ac_status); }; }; then | |
ce1a737c | 2883 | ac_cv_prog_cc_g=yes |
4ee9c684 | 2884 | else |
2885 | echo "$as_me: failed program was:" >&5 | |
2886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2887 | ||
a106dabe | 2888 | ac_cv_prog_cc_g=no |
ce1a737c | 2889 | fi |
a106dabe | 2890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ce1a737c | 2891 | fi |
a106dabe | 2892 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2893 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
ce1a737c | 2894 | if test "$ac_test_CFLAGS" = set; then |
2895 | CFLAGS=$ac_save_CFLAGS | |
2896 | elif test $ac_cv_prog_cc_g = yes; then | |
2897 | if test "$GCC" = yes; then | |
2898 | CFLAGS="-g -O2" | |
2899 | else | |
2900 | CFLAGS="-g" | |
2901 | fi | |
2902 | else | |
2903 | if test "$GCC" = yes; then | |
2904 | CFLAGS="-O2" | |
2905 | else | |
2906 | CFLAGS= | |
2907 | fi | |
2908 | fi | |
a106dabe | 2909 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2910 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2911 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
ce1a737c | 2912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2913 | else | |
a106dabe | 2914 | ac_cv_prog_cc_stdc=no |
ce1a737c | 2915 | ac_save_CC=$CC |
2916 | cat >conftest.$ac_ext <<_ACEOF | |
2917 | /* confdefs.h. */ | |
2918 | _ACEOF | |
2919 | cat confdefs.h >>conftest.$ac_ext | |
2920 | cat >>conftest.$ac_ext <<_ACEOF | |
2921 | /* end confdefs.h. */ | |
2922 | #include <stdarg.h> | |
2923 | #include <stdio.h> | |
2924 | #include <sys/types.h> | |
2925 | #include <sys/stat.h> | |
2926 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2927 | struct buf { int x; }; | |
2928 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2929 | static char *e (p, i) | |
2930 | char **p; | |
2931 | int i; | |
2932 | { | |
2933 | return p[i]; | |
2934 | } | |
2935 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2936 | { | |
2937 | char *s; | |
2938 | va_list v; | |
2939 | va_start (v,p); | |
2940 | s = g (p, va_arg (v,int)); | |
2941 | va_end (v); | |
2942 | return s; | |
2943 | } | |
2944 | ||
2945 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2946 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2947 | These don't provoke an error unfortunately, instead are silently treated | |
a106dabe | 2948 | as 'x'. The following induces an error, until -std1 is added to get |
ce1a737c | 2949 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2950 | array size at least. It's necessary to write '\x00'==0 to get something | |
a106dabe | 2951 | that's true only with -std1. */ |
ce1a737c | 2952 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2953 | ||
ce1a737c | 2954 | int test (int i, double x); |
2955 | struct s1 {int (*f) (int a);}; | |
2956 | struct s2 {int (*f) (double a);}; | |
2957 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2958 | int argc; | |
2959 | char **argv; | |
4ee9c684 | 2960 | int |
2961 | main () | |
2962 | { | |
ce1a737c | 2963 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
4ee9c684 | 2964 | ; |
2965 | return 0; | |
2966 | } | |
2967 | _ACEOF | |
a106dabe | 2968 | # Don't try gcc -ansi; that turns off useful extensions and |
2969 | # breaks some systems' header files. | |
2970 | # AIX -qlanglvl=ansi | |
2971 | # Ultrix and OSF/1 -std1 | |
2972 | # HP-UX 10.20 and later -Ae | |
2973 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2974 | # SVR4 -Xc -D__EXTENSIONS__ | |
2975 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ce1a737c | 2976 | do |
2977 | CC="$ac_save_CC $ac_arg" | |
2978 | rm -f conftest.$ac_objext | |
a106dabe | 2979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2980 | (eval $ac_compile) 2>conftest.er1 | |
4ee9c684 | 2981 | ac_status=$? |
2982 | grep -v '^ *+' conftest.er1 >conftest.err | |
2983 | rm -f conftest.er1 | |
2984 | cat conftest.err >&5 | |
2985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2986 | (exit $ac_status); } && | |
c0e8efbe | 2987 | { ac_try='test -z "$ac_c_werror_flag" |
2988 | || test ! -s conftest.err' | |
a106dabe | 2989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2990 | (eval $ac_try) 2>&5 | |
4ee9c684 | 2991 | ac_status=$? |
2992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2993 | (exit $ac_status); }; } && | |
2994 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 2995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2996 | (eval $ac_try) 2>&5 | |
4ee9c684 | 2997 | ac_status=$? |
2998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2999 | (exit $ac_status); }; }; then | |
a106dabe | 3000 | ac_cv_prog_cc_stdc=$ac_arg |
3001 | break | |
4ee9c684 | 3002 | else |
3003 | echo "$as_me: failed program was:" >&5 | |
3004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3005 | ||
3006 | fi | |
a106dabe | 3007 | rm -f conftest.err conftest.$ac_objext |
4ee9c684 | 3008 | done |
a106dabe | 3009 | rm -f conftest.$ac_ext conftest.$ac_objext |
ce1a737c | 3010 | CC=$ac_save_CC |
3011 | ||
4ee9c684 | 3012 | fi |
a106dabe | 3013 | |
3014 | case "x$ac_cv_prog_cc_stdc" in | |
3015 | x|xno) | |
3016 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3017 | echo "${ECHO_T}none needed" >&6 ;; | |
ce1a737c | 3018 | *) |
a106dabe | 3019 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
3020 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3021 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
ce1a737c | 3022 | esac |
4ee9c684 | 3023 | |
a106dabe | 3024 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3025 | # in C++ we need to declare it. In case someone uses the same compiler | |
3026 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3027 | # the declaration of exit, since it's the most demanding environment. | |
3028 | cat >conftest.$ac_ext <<_ACEOF | |
3029 | #ifndef __cplusplus | |
3030 | choke me | |
3031 | #endif | |
3032 | _ACEOF | |
3033 | rm -f conftest.$ac_objext | |
3034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3035 | (eval $ac_compile) 2>conftest.er1 | |
3036 | ac_status=$? | |
3037 | grep -v '^ *+' conftest.er1 >conftest.err | |
3038 | rm -f conftest.er1 | |
3039 | cat conftest.err >&5 | |
3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3041 | (exit $ac_status); } && | |
c0e8efbe | 3042 | { ac_try='test -z "$ac_c_werror_flag" |
3043 | || test ! -s conftest.err' | |
a106dabe | 3044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3045 | (eval $ac_try) 2>&5 | |
3046 | ac_status=$? | |
3047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3048 | (exit $ac_status); }; } && | |
3049 | { ac_try='test -s conftest.$ac_objext' | |
3050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3051 | (eval $ac_try) 2>&5 | |
3052 | ac_status=$? | |
3053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3054 | (exit $ac_status); }; }; then | |
3055 | for ac_declaration in \ | |
3056 | '' \ | |
3057 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3058 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3059 | 'extern "C" void exit (int) throw ();' \ | |
3060 | 'extern "C" void exit (int);' \ | |
3061 | 'void exit (int);' | |
3062 | do | |
3063 | cat >conftest.$ac_ext <<_ACEOF | |
3064 | /* confdefs.h. */ | |
3065 | _ACEOF | |
3066 | cat confdefs.h >>conftest.$ac_ext | |
3067 | cat >>conftest.$ac_ext <<_ACEOF | |
3068 | /* end confdefs.h. */ | |
3069 | $ac_declaration | |
3070 | #include <stdlib.h> | |
3071 | int | |
3072 | main () | |
3073 | { | |
3074 | exit (42); | |
3075 | ; | |
3076 | return 0; | |
3077 | } | |
3078 | _ACEOF | |
3079 | rm -f conftest.$ac_objext | |
3080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3081 | (eval $ac_compile) 2>conftest.er1 | |
3082 | ac_status=$? | |
3083 | grep -v '^ *+' conftest.er1 >conftest.err | |
3084 | rm -f conftest.er1 | |
3085 | cat conftest.err >&5 | |
3086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3087 | (exit $ac_status); } && | |
c0e8efbe | 3088 | { ac_try='test -z "$ac_c_werror_flag" |
3089 | || test ! -s conftest.err' | |
a106dabe | 3090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3091 | (eval $ac_try) 2>&5 | |
3092 | ac_status=$? | |
3093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3094 | (exit $ac_status); }; } && | |
3095 | { ac_try='test -s conftest.$ac_objext' | |
3096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3097 | (eval $ac_try) 2>&5 | |
3098 | ac_status=$? | |
3099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3100 | (exit $ac_status); }; }; then | |
3101 | : | |
3102 | else | |
3103 | echo "$as_me: failed program was:" >&5 | |
3104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3105 | ||
3106 | continue | |
3107 | fi | |
3108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3109 | cat >conftest.$ac_ext <<_ACEOF | |
3110 | /* confdefs.h. */ | |
3111 | _ACEOF | |
3112 | cat confdefs.h >>conftest.$ac_ext | |
3113 | cat >>conftest.$ac_ext <<_ACEOF | |
3114 | /* end confdefs.h. */ | |
3115 | $ac_declaration | |
3116 | int | |
3117 | main () | |
3118 | { | |
3119 | exit (42); | |
3120 | ; | |
3121 | return 0; | |
3122 | } | |
3123 | _ACEOF | |
3124 | rm -f conftest.$ac_objext | |
3125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3126 | (eval $ac_compile) 2>conftest.er1 | |
3127 | ac_status=$? | |
3128 | grep -v '^ *+' conftest.er1 >conftest.err | |
3129 | rm -f conftest.er1 | |
3130 | cat conftest.err >&5 | |
3131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3132 | (exit $ac_status); } && | |
c0e8efbe | 3133 | { ac_try='test -z "$ac_c_werror_flag" |
3134 | || test ! -s conftest.err' | |
a106dabe | 3135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3136 | (eval $ac_try) 2>&5 | |
3137 | ac_status=$? | |
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3139 | (exit $ac_status); }; } && | |
3140 | { ac_try='test -s conftest.$ac_objext' | |
3141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3142 | (eval $ac_try) 2>&5 | |
3143 | ac_status=$? | |
3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3145 | (exit $ac_status); }; }; then | |
3146 | break | |
3147 | else | |
3148 | echo "$as_me: failed program was:" >&5 | |
3149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3150 | ||
3151 | fi | |
3152 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3153 | done | |
3154 | rm -f conftest* | |
3155 | if test -n "$ac_declaration"; then | |
3156 | echo '#ifdef __cplusplus' >>confdefs.h | |
3157 | echo $ac_declaration >>confdefs.h | |
3158 | echo '#endif' >>confdefs.h | |
3159 | fi | |
3160 | ||
3161 | else | |
3162 | echo "$as_me: failed program was:" >&5 | |
3163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 3164 | |
a106dabe | 3165 | fi |
3166 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4ee9c684 | 3167 | ac_ext=c |
3168 | ac_cpp='$CPP $CPPFLAGS' | |
3169 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3170 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3171 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2fd61f51 | 3172 | DEPDIR="${am__leading_dot}deps" |
3173 | ||
a106dabe | 3174 | ac_config_commands="$ac_config_commands depfiles" |
2fd61f51 | 3175 | |
3176 | ||
3177 | am_make=${MAKE-make} | |
3178 | cat > confinc << 'END' | |
3179 | am__doit: | |
3180 | @echo done | |
3181 | .PHONY: am__doit | |
3182 | END | |
3183 | # If we don't find an include directive, just comment out the code. | |
a106dabe | 3184 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3185 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2fd61f51 | 3186 | am__include="#" |
3187 | am__quote= | |
3188 | _am_result=none | |
3189 | # First try GNU make style include. | |
3190 | echo "include confinc" > confmf | |
3191 | # We grep out `Entering directory' and `Leaving directory' | |
3192 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3193 | # In particular we don't look at `^make:' because GNU make might | |
3194 | # be invoked under some other name (usually "gmake"), in which | |
3195 | # case it prints its new name instead of `make'. | |
3196 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3197 | am__include=include | |
3198 | am__quote= | |
3199 | _am_result=GNU | |
3200 | fi | |
3201 | # Now try BSD make style include. | |
3202 | if test "$am__include" = "#"; then | |
3203 | echo '.include "confinc"' > confmf | |
3204 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3205 | am__include=.include | |
3206 | am__quote="\"" | |
3207 | _am_result=BSD | |
3208 | fi | |
3209 | fi | |
3210 | ||
3211 | ||
a106dabe | 3212 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
3213 | echo "${ECHO_T}$_am_result" >&6 | |
2fd61f51 | 3214 | rm -f confinc confmf |
3215 | ||
a106dabe | 3216 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
2fd61f51 | 3217 | if test "${enable_dependency_tracking+set}" = set; then |
a106dabe | 3218 | enableval="$enable_dependency_tracking" |
2fd61f51 | 3219 | |
a106dabe | 3220 | fi; |
2fd61f51 | 3221 | if test "x$enable_dependency_tracking" != xno; then |
3222 | am_depcomp="$ac_aux_dir/depcomp" | |
3223 | AMDEPBACKSLASH='\' | |
3224 | fi | |
3225 | ||
3226 | ||
3227 | if test "x$enable_dependency_tracking" != xno; then | |
3228 | AMDEP_TRUE= | |
3229 | AMDEP_FALSE='#' | |
3230 | else | |
3231 | AMDEP_TRUE='#' | |
3232 | AMDEP_FALSE= | |
3233 | fi | |
3234 | ||
3235 | ||
3236 | ||
3237 | ||
3238 | depcc="$CC" am_compiler_list= | |
3239 | ||
a106dabe | 3240 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3241 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2fd61f51 | 3242 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3244 | else | |
3245 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3246 | # We make a subdir and do the tests there. Otherwise we can end up | |
3247 | # making bogus files that we don't know about and never remove. For | |
3248 | # instance it was reported that on HP-UX the gcc test will end up | |
3249 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3250 | # in D'. | |
3251 | mkdir conftest.dir | |
3252 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3253 | # using a relative directory. | |
3254 | cp "$am_depcomp" conftest.dir | |
3255 | cd conftest.dir | |
3256 | # We will build objects and dependencies in a subdirectory because | |
3257 | # it helps to detect inapplicable dependency modes. For instance | |
3258 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3259 | # side effect of compilation, but ICC will put the dependencies in | |
3260 | # the current directory while Tru64 will put them in the object | |
3261 | # directory. | |
3262 | mkdir sub | |
3263 | ||
3264 | am_cv_CC_dependencies_compiler_type=none | |
3265 | if test "$am_compiler_list" = ""; then | |
3266 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3267 | fi | |
3268 | for depmode in $am_compiler_list; do | |
3269 | # Setup a source with many dependencies, because some compilers | |
3270 | # like to wrap large dependency lists on column 80 (with \), and | |
3271 | # we should not choose a depcomp mode which is confused by this. | |
3272 | # | |
3273 | # We need to recreate these files for each test, as the compiler may | |
3274 | # overwrite some of them when testing with obscure command lines. | |
3275 | # This happens at least with the AIX C compiler. | |
3276 | : > sub/conftest.c | |
3277 | for i in 1 2 3 4 5 6; do | |
3278 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3279 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3280 | # Solaris 8's {/usr,}/bin/sh. | |
3281 | touch sub/conftst$i.h | |
3282 | done | |
3283 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3284 | ||
3285 | case $depmode in | |
3286 | nosideeffect) | |
3287 | # after this tag, mechanisms are not by side-effect, so they'll | |
3288 | # only be used when explicitly requested | |
3289 | if test "x$enable_dependency_tracking" = xyes; then | |
3290 | continue | |
3291 | else | |
3292 | break | |
3293 | fi | |
3294 | ;; | |
3295 | none) break ;; | |
3296 | esac | |
3297 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3298 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3299 | # handle `-M -o', and we need to detect this. | |
3300 | if depmode=$depmode \ | |
3301 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3302 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3303 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3304 | >/dev/null 2>conftest.err && | |
3305 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3306 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3307 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3308 | # icc doesn't choke on unknown options, it will just issue warnings | |
3309 | # or remarks (even with -Werror). So we grep stderr for any message | |
3310 | # that says an option was ignored or not supported. | |
3311 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3312 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3313 | # The diagnosis changed in icc 8.0: | |
3314 | # icc: Command line remark: option '-MP' not supported | |
3315 | if (grep 'ignoring option' conftest.err || | |
3316 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3317 | am_cv_CC_dependencies_compiler_type=$depmode | |
3318 | break | |
3319 | fi | |
3320 | fi | |
3321 | done | |
3322 | ||
3323 | cd .. | |
3324 | rm -rf conftest.dir | |
3325 | else | |
3326 | am_cv_CC_dependencies_compiler_type=none | |
3327 | fi | |
3328 | ||
3329 | fi | |
a106dabe | 3330 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3331 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
2fd61f51 | 3332 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3333 | ||
3334 | ||
3335 | ||
3336 | if | |
3337 | test "x$enable_dependency_tracking" != xno \ | |
3338 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3339 | am__fastdepCC_TRUE= | |
3340 | am__fastdepCC_FALSE='#' | |
3341 | else | |
3342 | am__fastdepCC_TRUE='#' | |
3343 | am__fastdepCC_FALSE= | |
3344 | fi | |
3345 | ||
4ee9c684 | 3346 | |
4ee9c684 | 3347 | |
4ee9c684 | 3348 | |
d1191d66 | 3349 | # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
90973b19 | 3350 | if test "x$GCC" = "xyes"; then |
9b2d5429 | 3351 | AM_FCFLAGS="-I . -Wall -fno-repack-arrays -fno-underscoring" |
09e5829f | 3352 | ## We like to use C99 routines when available. This makes sure that |
3353 | ## __STDC_VERSION__ is set such that libc includes make them available. | |
50f0ca0a | 3354 | AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings" |
4d631442 | 3355 | ## Compile the following tests with the same system header contents |
3356 | ## that we'll encounter when compiling our own source files. | |
3357 | CFLAGS="-std=gnu99 $CFLAGS" | |
4ee9c684 | 3358 | fi |
3359 | ||
09e5829f | 3360 | |
3361 | ||
5a037dbd | 3362 | |
ce1a737c | 3363 | # Check for symbol versioning (copied from libssp). |
a106dabe | 3364 | echo "$as_me:$LINENO: checking whether symbol versioning is supported" >&5 |
3365 | echo $ECHO_N "checking whether symbol versioning is supported... $ECHO_C" >&6 | |
ce1a737c | 3366 | cat > conftest.map <<EOF |
3367 | FOO_1.0 { | |
3368 | global: *foo*; bar; local: *; | |
3369 | }; | |
3370 | EOF | |
3371 | save_LDFLAGS="$LDFLAGS" | |
3372 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" | |
3373 | ||
3374 | if test x$gcc_no_link = xyes; then | |
3375 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
3376 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
3377 | { (exit 1); exit 1; }; } | |
3378 | fi | |
3379 | cat >conftest.$ac_ext <<_ACEOF | |
3380 | /* confdefs.h. */ | |
3381 | _ACEOF | |
3382 | cat confdefs.h >>conftest.$ac_ext | |
3383 | cat >>conftest.$ac_ext <<_ACEOF | |
3384 | /* end confdefs.h. */ | |
3385 | int foo; | |
3386 | int | |
3387 | main () | |
3388 | { | |
3389 | ||
3390 | ; | |
3391 | return 0; | |
3392 | } | |
3393 | _ACEOF | |
3394 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 3395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3396 | (eval $ac_link) 2>conftest.er1 | |
ce1a737c | 3397 | ac_status=$? |
3398 | grep -v '^ *+' conftest.er1 >conftest.err | |
3399 | rm -f conftest.er1 | |
3400 | cat conftest.err >&5 | |
3401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3402 | (exit $ac_status); } && | |
c0e8efbe | 3403 | { ac_try='test -z "$ac_c_werror_flag" |
3404 | || test ! -s conftest.err' | |
a106dabe | 3405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3406 | (eval $ac_try) 2>&5 | |
ce1a737c | 3407 | ac_status=$? |
3408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3409 | (exit $ac_status); }; } && | |
3410 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 3411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3412 | (eval $ac_try) 2>&5 | |
ce1a737c | 3413 | ac_status=$? |
3414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3415 | (exit $ac_status); }; }; then | |
3416 | gfortran_use_symver=yes | |
3417 | else | |
3418 | echo "$as_me: failed program was:" >&5 | |
3419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3420 | ||
a106dabe | 3421 | gfortran_use_symver=no |
ce1a737c | 3422 | fi |
a106dabe | 3423 | rm -f conftest.err conftest.$ac_objext \ |
ce1a737c | 3424 | conftest$ac_exeext conftest.$ac_ext |
3425 | LDFLAGS="$save_LDFLAGS" | |
a106dabe | 3426 | echo "$as_me:$LINENO: result: $gfortran_use_symver" >&5 |
3427 | echo "${ECHO_T}$gfortran_use_symver" >&6 | |
ce1a737c | 3428 | |
3429 | ||
3430 | if test "x$gfortran_use_symver" = xyes; then | |
3431 | LIBGFOR_USE_SYMVER_TRUE= | |
3432 | LIBGFOR_USE_SYMVER_FALSE='#' | |
3433 | else | |
3434 | LIBGFOR_USE_SYMVER_TRUE='#' | |
3435 | LIBGFOR_USE_SYMVER_FALSE= | |
3436 | fi | |
3437 | ||
3438 | ||
90973b19 | 3439 | # Find other programs we need. |
3440 | if test -n "$ac_tool_prefix"; then | |
3441 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
3442 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
a106dabe | 3443 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3444 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3445 | if test "${ac_cv_prog_AS+set}" = set; then |
4ee9c684 | 3446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3447 | else | |
90973b19 | 3448 | if test -n "$AS"; then |
3449 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
3450 | else | |
3451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3452 | for as_dir in $PATH | |
3453 | do | |
3454 | IFS=$as_save_IFS | |
3455 | test -z "$as_dir" && as_dir=. | |
3456 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 3457 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
90973b19 | 3458 | ac_cv_prog_AS="${ac_tool_prefix}as" |
3459 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3460 | break 2 | |
4ee9c684 | 3461 | fi |
90973b19 | 3462 | done |
3463 | done | |
4ee9c684 | 3464 | |
90973b19 | 3465 | fi |
3466 | fi | |
3467 | AS=$ac_cv_prog_AS | |
3468 | if test -n "$AS"; then | |
a106dabe | 3469 | echo "$as_me:$LINENO: result: $AS" >&5 |
3470 | echo "${ECHO_T}$AS" >&6 | |
4ee9c684 | 3471 | else |
a106dabe | 3472 | echo "$as_me:$LINENO: result: no" >&5 |
3473 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3474 | fi |
3475 | ||
3476 | fi | |
90973b19 | 3477 | if test -z "$ac_cv_prog_AS"; then |
3478 | ac_ct_AS=$AS | |
3479 | # Extract the first word of "as", so it can be a program name with args. | |
3480 | set dummy as; ac_word=$2 | |
a106dabe | 3481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3483 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
3484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3485 | else | |
3486 | if test -n "$ac_ct_AS"; then | |
3487 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
3488 | else | |
3489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3490 | for as_dir in $PATH | |
3491 | do | |
3492 | IFS=$as_save_IFS | |
3493 | test -z "$as_dir" && as_dir=. | |
3494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 3495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
90973b19 | 3496 | ac_cv_prog_ac_ct_AS="as" |
3497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3498 | break 2 | |
3499 | fi | |
3500 | done | |
3501 | done | |
4ee9c684 | 3502 | |
90973b19 | 3503 | fi |
3504 | fi | |
3505 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
3506 | if test -n "$ac_ct_AS"; then | |
a106dabe | 3507 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
3508 | echo "${ECHO_T}$ac_ct_AS" >&6 | |
4ee9c684 | 3509 | else |
a106dabe | 3510 | echo "$as_me:$LINENO: result: no" >&5 |
3511 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3512 | fi |
3513 | ||
a106dabe | 3514 | AS=$ac_ct_AS |
90973b19 | 3515 | else |
3516 | AS="$ac_cv_prog_AS" | |
4ee9c684 | 3517 | fi |
3518 | ||
4ee9c684 | 3519 | if test -n "$ac_tool_prefix"; then |
90973b19 | 3520 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
3521 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a106dabe | 3522 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3524 | if test "${ac_cv_prog_AR+set}" = set; then |
4ee9c684 | 3525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3526 | else | |
90973b19 | 3527 | if test -n "$AR"; then |
3528 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4ee9c684 | 3529 | else |
3530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3531 | for as_dir in $PATH | |
3532 | do | |
3533 | IFS=$as_save_IFS | |
3534 | test -z "$as_dir" && as_dir=. | |
3535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 3536 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
90973b19 | 3537 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
4ee9c684 | 3538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3539 | break 2 | |
3540 | fi | |
3541 | done | |
3542 | done | |
3543 | ||
3544 | fi | |
3545 | fi | |
90973b19 | 3546 | AR=$ac_cv_prog_AR |
3547 | if test -n "$AR"; then | |
a106dabe | 3548 | echo "$as_me:$LINENO: result: $AR" >&5 |
3549 | echo "${ECHO_T}$AR" >&6 | |
4ee9c684 | 3550 | else |
a106dabe | 3551 | echo "$as_me:$LINENO: result: no" >&5 |
3552 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3553 | fi |
3554 | ||
4ee9c684 | 3555 | fi |
90973b19 | 3556 | if test -z "$ac_cv_prog_AR"; then |
3557 | ac_ct_AR=$AR | |
3558 | # Extract the first word of "ar", so it can be a program name with args. | |
3559 | set dummy ar; ac_word=$2 | |
a106dabe | 3560 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3561 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3562 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
4ee9c684 | 3563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3564 | else | |
90973b19 | 3565 | if test -n "$ac_ct_AR"; then |
3566 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4ee9c684 | 3567 | else |
3568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3569 | for as_dir in $PATH | |
3570 | do | |
3571 | IFS=$as_save_IFS | |
3572 | test -z "$as_dir" && as_dir=. | |
3573 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 3574 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
90973b19 | 3575 | ac_cv_prog_ac_ct_AR="ar" |
4ee9c684 | 3576 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3577 | break 2 | |
3578 | fi | |
3579 | done | |
3580 | done | |
3581 | ||
3582 | fi | |
3583 | fi | |
90973b19 | 3584 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
3585 | if test -n "$ac_ct_AR"; then | |
a106dabe | 3586 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
3587 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
4ee9c684 | 3588 | else |
a106dabe | 3589 | echo "$as_me:$LINENO: result: no" >&5 |
3590 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3591 | fi |
3592 | ||
a106dabe | 3593 | AR=$ac_ct_AR |
90973b19 | 3594 | else |
3595 | AR="$ac_cv_prog_AR" | |
4ee9c684 | 3596 | fi |
3597 | ||
90973b19 | 3598 | if test -n "$ac_tool_prefix"; then |
3599 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3600 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
a106dabe | 3601 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3603 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
4ee9c684 | 3604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3605 | else | |
90973b19 | 3606 | if test -n "$RANLIB"; then |
3607 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4ee9c684 | 3608 | else |
90973b19 | 3609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3610 | for as_dir in $PATH | |
3611 | do | |
3612 | IFS=$as_save_IFS | |
3613 | test -z "$as_dir" && as_dir=. | |
3614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 3615 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
90973b19 | 3616 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3618 | break 2 | |
3619 | fi | |
3620 | done | |
3621 | done | |
4ee9c684 | 3622 | |
4ee9c684 | 3623 | fi |
90973b19 | 3624 | fi |
3625 | RANLIB=$ac_cv_prog_RANLIB | |
3626 | if test -n "$RANLIB"; then | |
a106dabe | 3627 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3628 | echo "${ECHO_T}$RANLIB" >&6 | |
90973b19 | 3629 | else |
a106dabe | 3630 | echo "$as_me:$LINENO: result: no" >&5 |
3631 | echo "${ECHO_T}no" >&6 | |
90973b19 | 3632 | fi |
4ee9c684 | 3633 | |
3634 | fi | |
90973b19 | 3635 | if test -z "$ac_cv_prog_RANLIB"; then |
3636 | ac_ct_RANLIB=$RANLIB | |
3637 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3638 | set dummy ranlib; ac_word=$2 | |
a106dabe | 3639 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3641 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
4ee9c684 | 3642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3643 | else | |
90973b19 | 3644 | if test -n "$ac_ct_RANLIB"; then |
3645 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4ee9c684 | 3646 | else |
90973b19 | 3647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3648 | for as_dir in $PATH | |
3649 | do | |
3650 | IFS=$as_save_IFS | |
3651 | test -z "$as_dir" && as_dir=. | |
3652 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 3653 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
90973b19 | 3654 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
3655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3656 | break 2 | |
3657 | fi | |
3658 | done | |
3659 | done | |
4ee9c684 | 3660 | |
a106dabe | 3661 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error" |
4ee9c684 | 3662 | fi |
4ee9c684 | 3663 | fi |
90973b19 | 3664 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3665 | if test -n "$ac_ct_RANLIB"; then | |
a106dabe | 3666 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3667 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4ee9c684 | 3668 | else |
a106dabe | 3669 | echo "$as_me:$LINENO: result: no" >&5 |
3670 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3671 | fi |
3672 | ||
a106dabe | 3673 | RANLIB=$ac_ct_RANLIB |
90973b19 | 3674 | else |
3675 | RANLIB="$ac_cv_prog_RANLIB" | |
4ee9c684 | 3676 | fi |
90973b19 | 3677 | |
a106dabe | 3678 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3679 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3680 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3681 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
4ee9c684 | 3682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3683 | else | |
90973b19 | 3684 | cat >conftest.make <<\_ACEOF |
3685 | all: | |
a106dabe | 3686 | @echo 'ac_maketemp="$(MAKE)"' |
4ee9c684 | 3687 | _ACEOF |
90973b19 | 3688 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a106dabe | 3689 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
3690 | if test -n "$ac_maketemp"; then | |
3691 | eval ac_cv_prog_make_${ac_make}_set=yes | |
3692 | else | |
3693 | eval ac_cv_prog_make_${ac_make}_set=no | |
3694 | fi | |
90973b19 | 3695 | rm -f conftest.make |
3696 | fi | |
a106dabe | 3697 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
3698 | echo "$as_me:$LINENO: result: yes" >&5 | |
3699 | echo "${ECHO_T}yes" >&6 | |
90973b19 | 3700 | SET_MAKE= |
4ee9c684 | 3701 | else |
a106dabe | 3702 | echo "$as_me:$LINENO: result: no" >&5 |
3703 | echo "${ECHO_T}no" >&6 | |
90973b19 | 3704 | SET_MAKE="MAKE=${MAKE-make}" |
4ee9c684 | 3705 | fi |
4ee9c684 | 3706 | |
90973b19 | 3707 | # Find a good install program. We prefer a C program (faster), |
3708 | # so one script is as good as another. But avoid the broken or | |
3709 | # incompatible versions: | |
3710 | # SysV /etc/install, /usr/sbin/install | |
3711 | # SunOS /usr/etc/install | |
3712 | # IRIX /sbin/install | |
3713 | # AIX /bin/install | |
3714 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3715 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3716 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3717 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3718 | # OS/2's system install, which has a completely different semantic | |
3719 | # ./install, which can be erroneously created by make from ./install.sh. | |
a106dabe | 3720 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3721 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
90973b19 | 3722 | if test -z "$INSTALL"; then |
3723 | if test "${ac_cv_path_install+set}" = set; then | |
3724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4ee9c684 | 3725 | else |
90973b19 | 3726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3727 | for as_dir in $PATH | |
3728 | do | |
3729 | IFS=$as_save_IFS | |
3730 | test -z "$as_dir" && as_dir=. | |
3731 | # Account for people who put trailing slashes in PATH elements. | |
3732 | case $as_dir/ in | |
3733 | ./ | .// | /cC/* | \ | |
3734 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3735 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3736 | /usr/ucb/* ) ;; | |
3737 | *) | |
3738 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3739 | # Don't use installbsd from OSF since it installs stuff as root | |
3740 | # by default. | |
3741 | for ac_prog in ginstall scoinst install; do | |
3742 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 3743 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
90973b19 | 3744 | if test $ac_prog = install && |
3745 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3746 | # AIX install. It has an incompatible calling convention. | |
3747 | : | |
3748 | elif test $ac_prog = install && | |
3749 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3750 | # program-specific install script used by HP pwplus--don't use. | |
3751 | : | |
3752 | else | |
3753 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3754 | break 3 | |
3755 | fi | |
3756 | fi | |
3757 | done | |
3758 | done | |
3759 | ;; | |
3760 | esac | |
4ee9c684 | 3761 | done |
4ee9c684 | 3762 | |
4ee9c684 | 3763 | |
3764 | fi | |
90973b19 | 3765 | if test "${ac_cv_path_install+set}" = set; then |
3766 | INSTALL=$ac_cv_path_install | |
4ee9c684 | 3767 | else |
a106dabe | 3768 | # As a last resort, use the slow shell script. We don't cache a |
3769 | # path for INSTALL within a source directory, because that will | |
90973b19 | 3770 | # break other packages using the cache if that directory is |
a106dabe | 3771 | # removed, or if the path is relative. |
90973b19 | 3772 | INSTALL=$ac_install_sh |
4ee9c684 | 3773 | fi |
4ee9c684 | 3774 | fi |
a106dabe | 3775 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3776 | echo "${ECHO_T}$INSTALL" >&6 | |
4ee9c684 | 3777 | |
90973b19 | 3778 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3779 | # It thinks the first close brace ends the variable substitution. | |
3780 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4ee9c684 | 3781 | |
90973b19 | 3782 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4ee9c684 | 3783 | |
90973b19 | 3784 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4ee9c684 | 3785 | |
4ee9c684 | 3786 | |
90973b19 | 3787 | # Configure libtool |
3788 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
542f9784 | 3789 | enable_dlopen=yes |
3790 | ||
3791 | ||
3792 | ||
3793 | ||
3794 | ||
3795 | macro_version='2.1a' | |
3796 | macro_revision='1.2435' | |
3797 | ||
3798 | ||
3799 | ||
3800 | ||
3801 | ||
3802 | ||
3803 | ||
3804 | ||
3805 | ||
3806 | ||
3807 | ||
3808 | ||
3809 | ltmain="$ac_aux_dir/ltmain.sh" | |
3810 | ||
3811 | # Set options | |
3812 | ||
3813 | ||
3814 | enable_win32_dll=no | |
3815 | ||
4ee9c684 | 3816 | |
a106dabe | 3817 | # Check whether --enable-shared or --disable-shared was given. |
90973b19 | 3818 | if test "${enable_shared+set}" = set; then |
a106dabe | 3819 | enableval="$enable_shared" |
3820 | p=${PACKAGE-default} | |
542f9784 | 3821 | case $enableval in |
3822 | yes) enable_shared=yes ;; | |
3823 | no) enable_shared=no ;; | |
3824 | *) | |
3825 | enable_shared=no | |
3826 | # Look at the argument we got. We use all the common list separators. | |
3827 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3828 | for pkg in $enableval; do | |
3829 | IFS="$lt_save_ifs" | |
3830 | if test "X$pkg" = "X$p"; then | |
3831 | enable_shared=yes | |
3832 | fi | |
3833 | done | |
3834 | IFS="$lt_save_ifs" | |
3835 | ;; | |
3836 | esac | |
4ee9c684 | 3837 | else |
90973b19 | 3838 | enable_shared=yes |
a106dabe | 3839 | fi; |
542f9784 | 3840 | |
3841 | ||
3842 | ||
3843 | ||
3844 | ||
3845 | ||
3846 | ||
3847 | ||
a106dabe | 3848 | # Check whether --enable-static or --disable-static was given. |
90973b19 | 3849 | if test "${enable_static+set}" = set; then |
a106dabe | 3850 | enableval="$enable_static" |
3851 | p=${PACKAGE-default} | |
542f9784 | 3852 | case $enableval in |
3853 | yes) enable_static=yes ;; | |
3854 | no) enable_static=no ;; | |
3855 | *) | |
3856 | enable_static=no | |
3857 | # Look at the argument we got. We use all the common list separators. | |
3858 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3859 | for pkg in $enableval; do | |
3860 | IFS="$lt_save_ifs" | |
3861 | if test "X$pkg" = "X$p"; then | |
3862 | enable_static=yes | |
3863 | fi | |
3864 | done | |
3865 | IFS="$lt_save_ifs" | |
3866 | ;; | |
3867 | esac | |
90973b19 | 3868 | else |
3869 | enable_static=yes | |
a106dabe | 3870 | fi; |
542f9784 | 3871 | |
3872 | ||
3873 | ||
3874 | ||
3875 | ||
3876 | ||
3877 | ||
3878 | ||
3879 | ||
3880 | # Check whether --with-pic or --without-pic was given. | |
3881 | if test "${with_pic+set}" = set; then | |
3882 | withval="$with_pic" | |
3883 | pic_mode="$withval" | |
3884 | else | |
3885 | pic_mode=default | |
3886 | fi; | |
3887 | ||
3888 | test -z "$pic_mode" && pic_mode=default | |
3889 | ||
3890 | ||
3891 | ||
3892 | ||
3893 | ||
3894 | ||
3895 | ||
a106dabe | 3896 | # Check whether --enable-fast-install or --disable-fast-install was given. |
90973b19 | 3897 | if test "${enable_fast_install+set}" = set; then |
a106dabe | 3898 | enableval="$enable_fast_install" |
3899 | p=${PACKAGE-default} | |
542f9784 | 3900 | case $enableval in |
3901 | yes) enable_fast_install=yes ;; | |
3902 | no) enable_fast_install=no ;; | |
3903 | *) | |
3904 | enable_fast_install=no | |
3905 | # Look at the argument we got. We use all the common list separators. | |
3906 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3907 | for pkg in $enableval; do | |
3908 | IFS="$lt_save_ifs" | |
3909 | if test "X$pkg" = "X$p"; then | |
3910 | enable_fast_install=yes | |
3911 | fi | |
3912 | done | |
3913 | IFS="$lt_save_ifs" | |
3914 | ;; | |
3915 | esac | |
90973b19 | 3916 | else |
3917 | enable_fast_install=yes | |
a106dabe | 3918 | fi; |
4ee9c684 | 3919 | |
542f9784 | 3920 | |
3921 | ||
3922 | ||
3923 | ||
3924 | ||
3925 | ||
3926 | ||
3927 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
3928 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
3929 | if test "${lt_cv_path_SED+set}" = set; then | |
3930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3931 | else | |
3932 | # Loop through the user's path and test for sed and gsed. | |
3933 | # Then use that list of sed's as ones to test for truncation. | |
3934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3935 | for as_dir in $PATH | |
3936 | do | |
3937 | IFS=$as_save_IFS | |
3938 | test -z "$as_dir" && as_dir=. | |
3939 | for lt_ac_prog in sed gsed; do | |
3940 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3941 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
3942 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
3943 | fi | |
3944 | done | |
3945 | done | |
3946 | done | |
3947 | IFS=$as_save_IFS | |
3948 | lt_ac_max=0 | |
3949 | lt_ac_count=0 | |
3950 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
3951 | # along with /bin/sed that truncates output. | |
3952 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
3953 | test ! -f $lt_ac_sed && continue | |
3954 | cat /dev/null > conftest.in | |
3955 | lt_ac_count=0 | |
3956 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
3957 | # Check for GNU sed and select it if it is found. | |
3958 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
3959 | lt_cv_path_SED=$lt_ac_sed | |
3960 | break | |
3961 | fi | |
3962 | while true; do | |
3963 | cat conftest.in conftest.in >conftest.tmp | |
3964 | mv conftest.tmp conftest.in | |
3965 | cp conftest.in conftest.nl | |
3966 | echo >>conftest.nl | |
3967 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
3968 | cmp -s conftest.out conftest.nl || break | |
3969 | # 10000 chars as input seems more than enough | |
3970 | test $lt_ac_count -gt 10 && break | |
3971 | lt_ac_count=`expr $lt_ac_count + 1` | |
3972 | if test $lt_ac_count -gt $lt_ac_max; then | |
3973 | lt_ac_max=$lt_ac_count | |
3974 | lt_cv_path_SED=$lt_ac_sed | |
3975 | fi | |
3976 | done | |
3977 | done | |
3978 | ||
3979 | fi | |
3980 | ||
3981 | SED=$lt_cv_path_SED | |
3982 | ||
3983 | echo "$as_me:$LINENO: result: $SED" >&5 | |
3984 | echo "${ECHO_T}$SED" >&6 | |
3985 | ||
3986 | test -z "$SED" && SED=sed | |
3987 | Xsed="$SED -e 1s/^X//" | |
3988 | ||
3989 | ||
3990 | ||
3991 | ||
3992 | ||
3993 | ||
3994 | ||
3995 | ||
3996 | ||
3997 | ||
3998 | ||
3999 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
4000 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4001 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4003 | else | |
4004 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4005 | then ac_cv_prog_egrep='grep -E' | |
4006 | else ac_cv_prog_egrep='egrep' | |
4007 | fi | |
4008 | fi | |
4009 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4010 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4011 | EGREP=$ac_cv_prog_egrep | |
4012 | ||
4013 | ||
4014 | echo "$as_me:$LINENO: checking for fgrep" >&5 | |
4015 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 | |
4016 | if test "${ac_cv_prog_fgrep+set}" = set; then | |
4017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4018 | else | |
4019 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 | |
4020 | then ac_cv_prog_fgrep='grep -F' | |
4021 | else ac_cv_prog_fgrep='fgrep' | |
4022 | fi | |
4023 | fi | |
4024 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 | |
4025 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 | |
4026 | FGREP=$ac_cv_prog_fgrep | |
4027 | ||
4028 | ||
4029 | test -z "$GREP" && GREP=grep | |
4030 | ||
4031 | ||
4032 | ||
4033 | ||
4034 | ||
4035 | ||
4036 | ||
4037 | ||
4038 | ||
4039 | ||
4040 | ||
4041 | ||
4042 | ||
4043 | ||
4044 | ||
4045 | ||
4046 | ||
4047 | ||
4048 | ||
a106dabe | 4049 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
90973b19 | 4050 | if test "${with_gnu_ld+set}" = set; then |
a106dabe | 4051 | withval="$with_gnu_ld" |
4052 | test "$withval" = no || with_gnu_ld=yes | |
90973b19 | 4053 | else |
4054 | with_gnu_ld=no | |
a106dabe | 4055 | fi; |
90973b19 | 4056 | ac_prog=ld |
4057 | if test "$GCC" = yes; then | |
4058 | # Check if gcc -print-prog-name=ld gives a path. | |
542f9784 | 4059 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4060 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
90973b19 | 4061 | case $host in |
4062 | *-*-mingw*) | |
4063 | # gcc leaves a trailing carriage return which upsets mingw | |
4064 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4065 | *) | |
4066 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4067 | esac | |
4068 | case $ac_prog in | |
4069 | # Accept absolute paths. | |
542f9784 | 4070 | [\\/]* | ?:[\\/]*) |
90973b19 | 4071 | re_direlt='/[^/][^/]*/\.\./' |
542f9784 | 4072 | # Canonicalize the pathname of ld |
4073 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4074 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4075 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
90973b19 | 4076 | done |
4077 | test -z "$LD" && LD="$ac_prog" | |
4078 | ;; | |
4079 | "") | |
4080 | # If it fails, then pretend we aren't using GCC. | |
4081 | ac_prog=ld | |
4082 | ;; | |
4083 | *) | |
4084 | # If it is relative, then search for the first ld in PATH. | |
4085 | with_gnu_ld=unknown | |
4086 | ;; | |
4087 | esac | |
4088 | elif test "$with_gnu_ld" = yes; then | |
a106dabe | 4089 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4090 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
90973b19 | 4091 | else |
a106dabe | 4092 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4093 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
90973b19 | 4094 | fi |
4095 | if test "${lt_cv_path_LD+set}" = set; then | |
4096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4097 | else | |
4098 | if test -z "$LD"; then | |
542f9784 | 4099 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
90973b19 | 4100 | for ac_dir in $PATH; do |
542f9784 | 4101 | IFS="$lt_save_ifs" |
90973b19 | 4102 | test -z "$ac_dir" && ac_dir=. |
4103 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4104 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4105 | # Check to see if the program is GNU ld. I'd rather use --version, | |
542f9784 | 4106 | # but apparently some variants of GNU ld only accept -v. |
90973b19 | 4107 | # Break only if it was the GNU/non-GNU ld that we prefer. |
542f9784 | 4108 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4109 | *GNU* | *'with BFD'*) | |
90973b19 | 4110 | test "$with_gnu_ld" != no && break |
542f9784 | 4111 | ;; |
4112 | *) | |
90973b19 | 4113 | test "$with_gnu_ld" != yes && break |
542f9784 | 4114 | ;; |
4115 | esac | |
90973b19 | 4116 | fi |
4117 | done | |
542f9784 | 4118 | IFS="$lt_save_ifs" |
90973b19 | 4119 | else |
4120 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4121 | fi | |
4122 | fi | |
4123 | ||
4124 | LD="$lt_cv_path_LD" | |
4125 | if test -n "$LD"; then | |
a106dabe | 4126 | echo "$as_me:$LINENO: result: $LD" >&5 |
4127 | echo "${ECHO_T}$LD" >&6 | |
90973b19 | 4128 | else |
a106dabe | 4129 | echo "$as_me:$LINENO: result: no" >&5 |
4130 | echo "${ECHO_T}no" >&6 | |
90973b19 | 4131 | fi |
4132 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
4133 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4134 | { (exit 1); exit 1; }; } | |
a106dabe | 4135 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4136 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
90973b19 | 4137 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4139 | else | |
542f9784 | 4140 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4141 | case `$LD -v 2>&1 </dev/null` in | |
4142 | *GNU* | *'with BFD'*) | |
90973b19 | 4143 | lt_cv_prog_gnu_ld=yes |
542f9784 | 4144 | ;; |
4145 | *) | |
90973b19 | 4146 | lt_cv_prog_gnu_ld=no |
542f9784 | 4147 | ;; |
4148 | esac | |
90973b19 | 4149 | fi |
a106dabe | 4150 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4151 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
90973b19 | 4152 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4153 | ||
4154 | ||
90973b19 | 4155 | |
542f9784 | 4156 | |
4157 | ||
4158 | ||
4159 | ||
4160 | ||
4161 | ||
4162 | ||
4163 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4164 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 | |
90973b19 | 4165 | if test "${lt_cv_path_NM+set}" = set; then |
4166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4167 | else | |
4168 | if test -n "$NM"; then | |
4169 | # Let the user override the test. | |
4170 | lt_cv_path_NM="$NM" | |
4171 | else | |
542f9784 | 4172 | lt_nm_to_check="${ac_tool_prefix}nm" |
4173 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4174 | lt_nm_to_check="$lt_nm_to_check nm" | |
4175 | fi | |
4176 | for lt_tmp_nm in $lt_nm_to_check; do | |
4177 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4178 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4179 | IFS="$lt_save_ifs" | |
4180 | test -z "$ac_dir" && ac_dir=. | |
4181 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4182 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4183 | # Check to see if the nm accepts a BSD-compat flag. | |
4184 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4185 | # nm: unknown option "B" ignored | |
4186 | # Tru64's nm complains that /dev/null is an invalid object file | |
4187 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4188 | */dev/null* | *'Invalid file or object type'*) | |
4189 | lt_cv_path_NM="$tmp_nm -B" | |
4190 | break | |
4191 | ;; | |
4192 | *) | |
4193 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4194 | */dev/null*) | |
4195 | lt_cv_path_NM="$tmp_nm -p" | |
4196 | break | |
4197 | ;; | |
4198 | *) | |
4199 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4200 | continue # so that we can try to find one that supports BSD flags | |
4201 | ;; | |
4202 | esac | |
4203 | ;; | |
4204 | esac | |
4205 | fi | |
4206 | done | |
4207 | IFS="$lt_save_ifs" | |
4208 | done | |
4209 | : ${lt_cv_path_NM=no} | |
4210 | fi | |
4211 | fi | |
4212 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
4213 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
4214 | if test "$lt_cv_path_NM" != "no"; then | |
4215 | NM="$lt_cv_path_NM" | |
4216 | else | |
4217 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4218 | if test -n "$ac_tool_prefix"; then | |
4219 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4220 | do | |
4221 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4222 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4223 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4224 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4225 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4227 | else | |
4228 | if test -n "$DUMPBIN"; then | |
4229 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4230 | else | |
4231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4232 | for as_dir in $PATH | |
4233 | do | |
4234 | IFS=$as_save_IFS | |
4235 | test -z "$as_dir" && as_dir=. | |
4236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4237 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4238 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4239 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4240 | break 2 | |
4241 | fi | |
4242 | done | |
4243 | done | |
4244 | ||
4245 | fi | |
4246 | fi | |
4247 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4248 | if test -n "$DUMPBIN"; then | |
4249 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4250 | echo "${ECHO_T}$DUMPBIN" >&6 | |
4251 | else | |
4252 | echo "$as_me:$LINENO: result: no" >&5 | |
4253 | echo "${ECHO_T}no" >&6 | |
4254 | fi | |
4255 | ||
4256 | test -n "$DUMPBIN" && break | |
4257 | done | |
4258 | fi | |
4259 | if test -z "$DUMPBIN"; then | |
4260 | ac_ct_DUMPBIN=$DUMPBIN | |
4261 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4262 | do | |
4263 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4264 | set dummy $ac_prog; ac_word=$2 | |
4265 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4267 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4269 | else | |
4270 | if test -n "$ac_ct_DUMPBIN"; then | |
4271 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4272 | else | |
4273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4274 | for as_dir in $PATH | |
4275 | do | |
4276 | IFS=$as_save_IFS | |
4277 | test -z "$as_dir" && as_dir=. | |
4278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4279 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4280 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4282 | break 2 | |
4283 | fi | |
4284 | done | |
4285 | done | |
4286 | ||
4287 | fi | |
4288 | fi | |
4289 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4290 | if test -n "$ac_ct_DUMPBIN"; then | |
4291 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4292 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 | |
4293 | else | |
4294 | echo "$as_me:$LINENO: result: no" >&5 | |
4295 | echo "${ECHO_T}no" >&6 | |
4296 | fi | |
4297 | ||
4298 | test -n "$ac_ct_DUMPBIN" && break | |
4299 | done | |
4300 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" | |
4301 | ||
4302 | DUMPBIN=$ac_ct_DUMPBIN | |
90973b19 | 4303 | fi |
542f9784 | 4304 | |
4305 | ||
4306 | if test "$DUMPBIN" != ":"; then | |
4307 | NM="$DUMPBIN" | |
4308 | fi | |
90973b19 | 4309 | fi |
542f9784 | 4310 | test -z "$NM" && NM=nm |
4311 | ||
4312 | ||
90973b19 | 4313 | |
542f9784 | 4314 | |
4315 | ||
4316 | ||
4317 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 | |
4318 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 | |
4319 | if test "${lt_cv_nm_interface+set}" = set; then | |
4320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4321 | else | |
4322 | lt_cv_nm_interface="BSD nm" | |
4323 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5a037dbd | 4324 | (eval echo "\"\$as_me:4324: $ac_compile\"" >&5) |
542f9784 | 4325 | (eval "$ac_compile" 2>conftest.err) |
4326 | cat conftest.err >&5 | |
5a037dbd | 4327 | (eval echo "\"\$as_me:4327: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
542f9784 | 4328 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4329 | cat conftest.err >&5 | |
5a037dbd | 4330 | (eval echo "\"\$as_me:4330: output\"" >&5) |
542f9784 | 4331 | cat conftest.out >&5 |
4332 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4333 | lt_cv_nm_interface="MS dumpbin" | |
4334 | fi | |
4335 | rm -f conftest* | |
4336 | fi | |
4337 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
4338 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 | |
90973b19 | 4339 | |
a106dabe | 4340 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4341 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
90973b19 | 4342 | LN_S=$as_ln_s |
4343 | if test "$LN_S" = "ln -s"; then | |
a106dabe | 4344 | echo "$as_me:$LINENO: result: yes" >&5 |
4345 | echo "${ECHO_T}yes" >&6 | |
90973b19 | 4346 | else |
a106dabe | 4347 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4348 | echo "${ECHO_T}no, using $LN_S" >&6 | |
90973b19 | 4349 | fi |
4350 | ||
542f9784 | 4351 | # find the maximum length of command line arguments |
4352 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4353 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
4354 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4356 | else | |
4357 | i=0 | |
4358 | teststring="ABCD" | |
4359 | ||
4360 | case $build_os in | |
4361 | msdosdjgpp*) | |
4362 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4363 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4364 | # during glob expansion). Even if it were fixed, the result of this | |
4365 | # check would be larger than it should be. | |
4366 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4367 | ;; | |
4368 | ||
4369 | gnu*) | |
4370 | # Under GNU Hurd, this test is not required because there is | |
4371 | # no limit to the length of command line arguments. | |
4372 | # Libtool will interpret -1 as no limit whatsoever | |
4373 | lt_cv_sys_max_cmd_len=-1; | |
4374 | ;; | |
4375 | ||
4376 | cygwin* | mingw*) | |
4377 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4378 | # about 5 minutes as the teststring grows exponentially. | |
4379 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4380 | # you end up with a "frozen" computer, even though with patience | |
4381 | # the test eventually succeeds (with a max line length of 256k). | |
4382 | # Instead, let's just punt: use the minimum linelength reported by | |
4383 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4384 | lt_cv_sys_max_cmd_len=8192; | |
4385 | ;; | |
4386 | ||
4387 | amigaos*) | |
4388 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4389 | # So we just punt and use a minimum line length of 8192. | |
4390 | lt_cv_sys_max_cmd_len=8192; | |
4391 | ;; | |
4392 | ||
4393 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4394 | # This has been around since 386BSD, at least. Likely further. | |
4395 | if test -x /sbin/sysctl; then | |
4396 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4397 | elif test -x /usr/sbin/sysctl; then | |
4398 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4399 | else | |
4400 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4401 | fi | |
4402 | # And add a safety zone | |
4403 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4404 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4405 | ;; | |
4406 | ||
4407 | interix*) | |
4408 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4409 | lt_cv_sys_max_cmd_len=196608 | |
4410 | ;; | |
4411 | ||
4412 | osf*) | |
4413 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4414 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4415 | # nice to cause kernel panics so lets avoid the loop below. | |
4416 | # First set a reasonable default. | |
4417 | lt_cv_sys_max_cmd_len=16384 | |
4418 | # | |
4419 | if test -x /sbin/sysconfig; then | |
4420 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4421 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4422 | esac | |
4423 | fi | |
4424 | ;; | |
4425 | sco3.2v5*) | |
4426 | lt_cv_sys_max_cmd_len=102400 | |
4427 | ;; | |
4428 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4429 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4430 | if test -n "$kargmax"; then | |
4431 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4432 | else | |
4433 | lt_cv_sys_max_cmd_len=32768 | |
4434 | fi | |
4435 | ;; | |
4436 | *) | |
07c46636 | 4437 | lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null` |
4438 | if test -n $lt_cv_sys_max_cmd_len; then | |
4439 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4440 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4441 | else | |
4442 | # Make teststring a little bigger before we do anything with it. | |
4443 | # a 1K string should be a reasonable start. | |
4444 | for i in 1 2 3 4 5 6 7 8 ; do | |
4445 | teststring=$teststring$teststring | |
4446 | done | |
4447 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4448 | # If test is not a shell built-in, we'll probably end up computing a | |
4449 | # maximum length that is only half of the actual maximum length, but | |
4450 | # we can't tell. | |
4451 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4452 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4453 | test $i != 17 # 1/2 MB should be enough | |
4454 | do | |
4455 | i=`expr $i + 1` | |
4456 | teststring=$teststring$teststring | |
4457 | done | |
4458 | # Only check the string length outside the loop. | |
4459 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4460 | teststring= | |
4461 | # Add a significant safety factor because C++ compilers can tack on | |
4462 | # massive amounts of additional arguments before passing them to the | |
4463 | # linker. It appears as though 1/2 is a usable value. | |
4464 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4465 | fi | |
542f9784 | 4466 | ;; |
4467 | esac | |
4468 | ||
4469 | fi | |
4470 | ||
4471 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4472 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4473 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
4474 | else | |
4475 | echo "$as_me:$LINENO: result: none" >&5 | |
4476 | echo "${ECHO_T}none" >&6 | |
4477 | fi | |
4478 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
4479 | ||
4480 | ||
4481 | ||
4482 | ||
4483 | ||
4484 | ||
4485 | ||
4486 | : ${CP="cp -f"} | |
4487 | : ${MV="mv -f"} | |
4488 | : ${RM="rm -f"} | |
4489 | ||
4490 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 | |
4491 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 | |
4492 | # Try some XSI features | |
4493 | xsi_shell=no | |
4494 | ( _lt_dummy="a/b/c" | |
4495 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4496 | = c,a/b,, ) >/dev/null 2>&1 \ | |
4497 | && xsi_shell=yes | |
4498 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4499 | echo "${ECHO_T}$xsi_shell" >&6 | |
4500 | ||
4501 | ||
4502 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 | |
4503 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 | |
4504 | lt_shell_append=no | |
4505 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4506 | >/dev/null 2>&1 \ | |
4507 | && lt_shell_append=yes | |
4508 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4509 | echo "${ECHO_T}$lt_shell_append" >&6 | |
4510 | ||
4511 | ||
4512 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4513 | lt_unset=unset | |
4514 | else | |
4515 | lt_unset=false | |
4516 | fi | |
4517 | ||
4518 | ||
4519 | ||
4520 | ||
4521 | ||
4522 | # test EBCDIC or ASCII | |
4523 | case `echo X|tr X '\101'` in | |
4524 | A) # ASCII based system | |
4525 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4526 | lt_SP2NL='tr \040 \012' | |
4527 | lt_NL2SP='tr \015\012 \040\040' | |
4528 | ;; | |
4529 | *) # EBCDIC based system | |
4530 | lt_SP2NL='tr \100 \n' | |
4531 | lt_NL2SP='tr \r\n \100\100' | |
4532 | ;; | |
4533 | esac | |
4534 | ||
4535 | ||
4536 | ||
4537 | ||
4538 | ||
4539 | ||
4540 | ||
4541 | ||
4542 | ||
4543 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4544 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
4545 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4547 | else | |
4548 | lt_cv_ld_reload_flag='-r' | |
4549 | fi | |
4550 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4551 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
4552 | reload_flag=$lt_cv_ld_reload_flag | |
4553 | case $reload_flag in | |
4554 | "" | " "*) ;; | |
4555 | *) reload_flag=" $reload_flag" ;; | |
4556 | esac | |
4557 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4558 | case $host_os in | |
4559 | darwin*) | |
4560 | if test "$GCC" = yes; then | |
4561 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4562 | else | |
4563 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4564 | fi | |
4565 | ;; | |
4566 | esac | |
4567 | ||
4568 | ||
4569 | ||
4570 | ||
4571 | ||
4572 | ||
4573 | ||
4574 | ||
4575 | ||
4576 | ||
4577 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
4578 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 | |
90973b19 | 4579 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4581 | else | |
4582 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4583 | lt_cv_file_magic_test_file= | |
4584 | lt_cv_deplibs_check_method='unknown' | |
4585 | # Need to set the preceding variable on all platforms that support | |
4586 | # interlibrary dependencies. | |
4587 | # 'none' -- dependencies not supported. | |
4588 | # `unknown' -- same as none, but documents that we really don't know. | |
4589 | # 'pass_all' -- all dependencies passed with no checks. | |
4590 | # 'test_compile' -- check by making test program. | |
542f9784 | 4591 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4592 | # which responds to the $file_magic_cmd with a given extended regex. | |
90973b19 | 4593 | # If you have `file' or equivalent on your system and you're not sure |
4594 | # whether `pass_all' will *always* work, you probably want this one. | |
4595 | ||
4596 | case $host_os in | |
542f9784 | 4597 | aix4* | aix5*) |
90973b19 | 4598 | lt_cv_deplibs_check_method=pass_all |
4599 | ;; | |
4600 | ||
4601 | beos*) | |
4602 | lt_cv_deplibs_check_method=pass_all | |
4603 | ;; | |
4604 | ||
542f9784 | 4605 | bsdi[45]*) |
90973b19 | 4606 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4607 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4608 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4609 | ;; | |
4610 | ||
542f9784 | 4611 | cygwin*) |
4612 | # func_win32_libid is a shell function defined in ltmain.sh | |
4613 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4614 | lt_cv_file_magic_cmd='func_win32_libid' | |
4615 | ;; | |
4616 | ||
4617 | mingw* | pw32*) | |
4618 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4619 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4620 | # unless we find 'file', for example because we are cross-compiling. | |
4621 | if ( file / ) >/dev/null 2>&1; then | |
4622 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4623 | lt_cv_file_magic_cmd='func_win32_libid' | |
4624 | else | |
4625 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4626 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4627 | fi | |
90973b19 | 4628 | ;; |
4629 | ||
4630 | darwin* | rhapsody*) | |
90973b19 | 4631 | lt_cv_deplibs_check_method=pass_all |
4632 | ;; | |
4633 | ||
542f9784 | 4634 | freebsd* | dragonfly*) |
4635 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
90973b19 | 4636 | case $host_cpu in |
4637 | i*86 ) | |
4638 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4639 | # Let's accept both of them until this is cleared up. | |
542f9784 | 4640 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
90973b19 | 4641 | lt_cv_file_magic_cmd=/usr/bin/file |
4642 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4643 | ;; | |
4644 | esac | |
4645 | else | |
4646 | lt_cv_deplibs_check_method=pass_all | |
4647 | fi | |
4648 | ;; | |
4649 | ||
4650 | gnu*) | |
4651 | lt_cv_deplibs_check_method=pass_all | |
4652 | ;; | |
4653 | ||
542f9784 | 4654 | hpux10.20* | hpux11*) |
4655 | lt_cv_file_magic_cmd=/usr/bin/file | |
90973b19 | 4656 | case $host_cpu in |
90973b19 | 4657 | ia64*) |
4658 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
90973b19 | 4659 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4660 | ;; | |
542f9784 | 4661 | hppa*64*) |
4662 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
4663 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
90973b19 | 4664 | ;; |
4665 | *) | |
542f9784 | 4666 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4667 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
90973b19 | 4668 | ;; |
4669 | esac | |
542f9784 | 4670 | ;; |
4671 | ||
4672 | interix[3-9]*) | |
4673 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4674 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4675 | ;; | |
4676 | ||
4677 | irix5* | irix6* | nonstopux*) | |
4678 | case $LD in | |
4679 | *-32|*"-32 ") libmagic=32-bit;; | |
4680 | *-n32|*"-n32 ") libmagic=N32;; | |
4681 | *-64|*"-64 ") libmagic=64-bit;; | |
4682 | *) libmagic=never-match;; | |
4683 | esac | |
90973b19 | 4684 | lt_cv_deplibs_check_method=pass_all |
4685 | ;; | |
4686 | ||
4687 | # This must be Linux ELF. | |
542f9784 | 4688 | linux* | k*bsd*-gnu) |
7f93fe7a | 4689 | lt_cv_deplibs_check_method=pass_all |
90973b19 | 4690 | ;; |
4691 | ||
542f9784 | 4692 | netbsd*) |
4693 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4694 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
90973b19 | 4695 | else |
542f9784 | 4696 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
90973b19 | 4697 | fi |
4698 | ;; | |
4699 | ||
542f9784 | 4700 | newos6*) |
90973b19 | 4701 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4702 | lt_cv_file_magic_cmd=/usr/bin/file | |
4703 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4704 | ;; | |
4705 | ||
542f9784 | 4706 | *nto* | *qnx*) |
4707 | lt_cv_deplibs_check_method=pass_all | |
4708 | ;; | |
4709 | ||
4710 | openbsd*) | |
4711 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4712 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4713 | else | |
4714 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4715 | fi | |
4716 | ;; | |
4717 | ||
90973b19 | 4718 | osf3* | osf4* | osf5*) |
90973b19 | 4719 | lt_cv_deplibs_check_method=pass_all |
4720 | ;; | |
4721 | ||
542f9784 | 4722 | rdos*) |
90973b19 | 4723 | lt_cv_deplibs_check_method=pass_all |
4724 | ;; | |
4725 | ||
4726 | solaris*) | |
4727 | lt_cv_deplibs_check_method=pass_all | |
90973b19 | 4728 | ;; |
4729 | ||
542f9784 | 4730 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
90973b19 | 4731 | lt_cv_deplibs_check_method=pass_all |
4732 | ;; | |
4733 | ||
542f9784 | 4734 | sysv4 | sysv4.3*) |
90973b19 | 4735 | case $host_vendor in |
90973b19 | 4736 | motorola) |
4737 | 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]' | |
4738 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4739 | ;; | |
542f9784 | 4740 | ncr) |
4741 | lt_cv_deplibs_check_method=pass_all | |
4742 | ;; | |
4743 | sequent) | |
4744 | lt_cv_file_magic_cmd='/bin/file' | |
4745 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4746 | ;; | |
4747 | sni) | |
4748 | lt_cv_file_magic_cmd='/bin/file' | |
4749 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4750 | lt_cv_file_magic_test_file=/lib/libc.so | |
4751 | ;; | |
4752 | siemens) | |
4753 | lt_cv_deplibs_check_method=pass_all | |
4754 | ;; | |
4755 | pc) | |
4756 | lt_cv_deplibs_check_method=pass_all | |
4757 | ;; | |
90973b19 | 4758 | esac |
4759 | ;; | |
542f9784 | 4760 | |
4761 | tpf*) | |
4762 | lt_cv_deplibs_check_method=pass_all | |
4763 | ;; | |
90973b19 | 4764 | esac |
4765 | ||
4766 | fi | |
a106dabe | 4767 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4768 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
90973b19 | 4769 | file_magic_cmd=$lt_cv_file_magic_cmd |
4770 | deplibs_check_method=$lt_cv_deplibs_check_method | |
542f9784 | 4771 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
90973b19 | 4772 | |
4773 | ||
4774 | ||
4775 | ||
90973b19 | 4776 | |
90973b19 | 4777 | |
90973b19 | 4778 | |
90973b19 | 4779 | |
4ee9c684 | 4780 | |
4ee9c684 | 4781 | |
4ee9c684 | 4782 | |
4ee9c684 | 4783 | |
90973b19 | 4784 | if test -n "$ac_tool_prefix"; then |
542f9784 | 4785 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
4786 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a106dabe | 4787 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
542f9784 | 4789 | if test "${ac_cv_prog_AR+set}" = set; then |
90973b19 | 4790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4ee9c684 | 4791 | else |
542f9784 | 4792 | if test -n "$AR"; then |
4793 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
90973b19 | 4794 | else |
4795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4796 | for as_dir in $PATH | |
4797 | do | |
4798 | IFS=$as_save_IFS | |
4799 | test -z "$as_dir" && as_dir=. | |
4800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 4801 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 4802 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
90973b19 | 4803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4804 | break 2 | |
4805 | fi | |
4806 | done | |
4807 | done | |
4ee9c684 | 4808 | |
90973b19 | 4809 | fi |
4810 | fi | |
542f9784 | 4811 | AR=$ac_cv_prog_AR |
4812 | if test -n "$AR"; then | |
4813 | echo "$as_me:$LINENO: result: $AR" >&5 | |
4814 | echo "${ECHO_T}$AR" >&6 | |
90973b19 | 4815 | else |
a106dabe | 4816 | echo "$as_me:$LINENO: result: no" >&5 |
4817 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 4818 | fi |
4819 | ||
90973b19 | 4820 | fi |
542f9784 | 4821 | if test -z "$ac_cv_prog_AR"; then |
4822 | ac_ct_AR=$AR | |
4823 | # Extract the first word of "ar", so it can be a program name with args. | |
4824 | set dummy ar; ac_word=$2 | |
a106dabe | 4825 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
542f9784 | 4827 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
90973b19 | 4828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4829 | else | |
542f9784 | 4830 | if test -n "$ac_ct_AR"; then |
4831 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
90973b19 | 4832 | else |
4833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4834 | for as_dir in $PATH | |
4835 | do | |
4836 | IFS=$as_save_IFS | |
4837 | test -z "$as_dir" && as_dir=. | |
4838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 4839 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 4840 | ac_cv_prog_ac_ct_AR="ar" |
90973b19 | 4841 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4842 | break 2 | |
4843 | fi | |
4844 | done | |
4845 | done | |
4ee9c684 | 4846 | |
542f9784 | 4847 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
90973b19 | 4848 | fi |
4849 | fi | |
542f9784 | 4850 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
4851 | if test -n "$ac_ct_AR"; then | |
4852 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
4853 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
4ee9c684 | 4854 | else |
a106dabe | 4855 | echo "$as_me:$LINENO: result: no" >&5 |
4856 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 4857 | fi |
4ee9c684 | 4858 | |
542f9784 | 4859 | AR=$ac_ct_AR |
90973b19 | 4860 | else |
542f9784 | 4861 | AR="$ac_cv_prog_AR" |
4ee9c684 | 4862 | fi |
4863 | ||
542f9784 | 4864 | test -z "$AR" && AR=ar |
4865 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
4866 | ||
4867 | ||
4868 | ||
4869 | ||
4870 | ||
4871 | ||
4872 | ||
4873 | ||
4874 | ||
4875 | ||
4876 | ||
90973b19 | 4877 | if test -n "$ac_tool_prefix"; then |
4878 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4879 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a106dabe | 4880 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 4882 | if test "${ac_cv_prog_STRIP+set}" = set; then |
4883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4ee9c684 | 4884 | else |
90973b19 | 4885 | if test -n "$STRIP"; then |
4886 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4887 | else | |
4888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4889 | for as_dir in $PATH | |
4890 | do | |
4891 | IFS=$as_save_IFS | |
4892 | test -z "$as_dir" && as_dir=. | |
4893 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 4894 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
90973b19 | 4895 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
4896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4897 | break 2 | |
4898 | fi | |
4899 | done | |
4900 | done | |
4ee9c684 | 4901 | |
90973b19 | 4902 | fi |
4903 | fi | |
4904 | STRIP=$ac_cv_prog_STRIP | |
4905 | if test -n "$STRIP"; then | |
a106dabe | 4906 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
4907 | echo "${ECHO_T}$STRIP" >&6 | |
4ee9c684 | 4908 | else |
a106dabe | 4909 | echo "$as_me:$LINENO: result: no" >&5 |
4910 | echo "${ECHO_T}no" >&6 | |
90973b19 | 4911 | fi |
4ee9c684 | 4912 | |
4ee9c684 | 4913 | fi |
90973b19 | 4914 | if test -z "$ac_cv_prog_STRIP"; then |
4915 | ac_ct_STRIP=$STRIP | |
4916 | # Extract the first word of "strip", so it can be a program name with args. | |
4917 | set dummy strip; ac_word=$2 | |
a106dabe | 4918 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4919 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 4920 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
4921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4922 | else | |
4923 | if test -n "$ac_ct_STRIP"; then | |
4924 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4925 | else | |
4926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4927 | for as_dir in $PATH | |
4928 | do | |
4929 | IFS=$as_save_IFS | |
4930 | test -z "$as_dir" && as_dir=. | |
4931 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a106dabe | 4932 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
90973b19 | 4933 | ac_cv_prog_ac_ct_STRIP="strip" |
4934 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4935 | break 2 | |
4936 | fi | |
4937 | done | |
4938 | done | |
4939 | ||
a106dabe | 4940 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
4ee9c684 | 4941 | fi |
4942 | fi | |
90973b19 | 4943 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
4944 | if test -n "$ac_ct_STRIP"; then | |
a106dabe | 4945 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
4946 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
90973b19 | 4947 | else |
a106dabe | 4948 | echo "$as_me:$LINENO: result: no" >&5 |
4949 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 4950 | fi |
4ee9c684 | 4951 | |
a106dabe | 4952 | STRIP=$ac_ct_STRIP |
90973b19 | 4953 | else |
4954 | STRIP="$ac_cv_prog_STRIP" | |
4ee9c684 | 4955 | fi |
4956 | ||
542f9784 | 4957 | test -z "$STRIP" && STRIP=: |
4ee9c684 | 4958 | |
4959 | ||
4960 | ||
4961 | ||
4962 | ||
4963 | ||
542f9784 | 4964 | if test -n "$ac_tool_prefix"; then |
4965 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4966 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4967 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4968 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4969 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4ee9c684 | 4971 | else |
542f9784 | 4972 | if test -n "$RANLIB"; then |
4973 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4974 | else | |
4975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4976 | for as_dir in $PATH | |
4977 | do | |
4978 | IFS=$as_save_IFS | |
4979 | test -z "$as_dir" && as_dir=. | |
4980 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4981 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4982 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4983 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4984 | break 2 | |
4985 | fi | |
4986 | done | |
4987 | done | |
4988 | ||
4989 | fi | |
4990 | fi | |
4991 | RANLIB=$ac_cv_prog_RANLIB | |
4992 | if test -n "$RANLIB"; then | |
4993 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
4994 | echo "${ECHO_T}$RANLIB" >&6 | |
4995 | else | |
4996 | echo "$as_me:$LINENO: result: no" >&5 | |
4997 | echo "${ECHO_T}no" >&6 | |
4998 | fi | |
4999 | ||
5000 | fi | |
5001 | if test -z "$ac_cv_prog_RANLIB"; then | |
5002 | ac_ct_RANLIB=$RANLIB | |
5003 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5004 | set dummy ranlib; ac_word=$2 | |
5005 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5006 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5007 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5009 | else | |
5010 | if test -n "$ac_ct_RANLIB"; then | |
5011 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5012 | else | |
5013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5014 | for as_dir in $PATH | |
5015 | do | |
5016 | IFS=$as_save_IFS | |
5017 | test -z "$as_dir" && as_dir=. | |
5018 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5019 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5020 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5021 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5022 | break 2 | |
5023 | fi | |
5024 | done | |
5025 | done | |
5026 | ||
5027 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
5028 | fi | |
5029 | fi | |
5030 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5031 | if test -n "$ac_ct_RANLIB"; then | |
5032 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5033 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
5034 | else | |
5035 | echo "$as_me:$LINENO: result: no" >&5 | |
5036 | echo "${ECHO_T}no" >&6 | |
5037 | fi | |
5038 | ||
5039 | RANLIB=$ac_ct_RANLIB | |
5040 | else | |
5041 | RANLIB="$ac_cv_prog_RANLIB" | |
5042 | fi | |
5043 | ||
5044 | test -z "$RANLIB" && RANLIB=: | |
5045 | ||
5046 | ||
5047 | ||
5048 | ||
5049 | ||
5050 | ||
5051 | # Determine commands to create old-style static archives. | |
5052 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
5053 | old_postinstall_cmds='chmod 644 $oldlib' | |
5054 | old_postuninstall_cmds= | |
5055 | ||
5056 | if test -n "$RANLIB"; then | |
5057 | case $host_os in | |
5058 | openbsd*) | |
5059 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5060 | ;; | |
5061 | *) | |
5062 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5063 | ;; | |
5064 | esac | |
5065 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5066 | fi | |
5067 | ||
5068 | ||
5069 | ||
5070 | ||
5071 | ||
5072 | ||
5073 | ||
5074 | ||
5075 | ||
5076 | ||
5077 | ||
5078 | ||
5079 | ||
5080 | ||
5081 | ||
5082 | ||
5083 | ||
5084 | ||
5085 | ||
5086 | ||
5087 | ||
5088 | ||
5089 | ||
5090 | ||
5091 | ||
5092 | ||
5093 | ||
5094 | ||
5095 | ||
5096 | ||
5097 | ||
5098 | ||
5099 | ||
5100 | ||
5101 | # If no C compiler was specified, use CC. | |
5102 | LTCC=${LTCC-"$CC"} | |
5103 | ||
5104 | # If no C compiler flags were specified, use CFLAGS. | |
5105 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5106 | ||
5107 | # Allow CC to be a program name with arguments. | |
5108 | compiler=$CC | |
5109 | ||
5110 | ||
5111 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5112 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5113 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5114 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5116 | else | |
5117 | ||
5118 | # These are sane defaults that work on at least a few old systems. | |
5119 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5120 | ||
5121 | # Character class describing NM global symbol codes. | |
5122 | symcode='[BCDEGRST]' | |
5123 | ||
5124 | # Regexp to match symbols that can be accessed directly from C. | |
5125 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5126 | ||
5127 | # Define system-specific variables. | |
5128 | case $host_os in | |
5129 | aix*) | |
5130 | symcode='[BCDT]' | |
5131 | ;; | |
5132 | cygwin* | mingw* | pw32*) | |
5133 | symcode='[ABCDGISTW]' | |
5134 | ;; | |
5135 | hpux*) | |
5136 | if test "$host_cpu" = ia64; then | |
5137 | symcode='[ABCDEGRST]' | |
5138 | fi | |
5139 | ;; | |
5140 | irix* | nonstopux*) | |
5141 | symcode='[BCDEGRST]' | |
5142 | ;; | |
5143 | osf*) | |
5144 | symcode='[BCDEGQRST]' | |
5145 | ;; | |
5146 | solaris*) | |
5147 | symcode='[BDRT]' | |
5148 | ;; | |
5149 | sco3.2v5*) | |
5150 | symcode='[DT]' | |
5151 | ;; | |
5152 | sysv4.2uw2*) | |
5153 | symcode='[DT]' | |
5154 | ;; | |
5155 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5156 | symcode='[ABDT]' | |
5157 | ;; | |
5158 | sysv4) | |
5159 | symcode='[DFNSTU]' | |
5160 | ;; | |
5161 | esac | |
5162 | ||
5163 | # If we're using GNU nm, then use its standard symbol codes. | |
5164 | case `$NM -V 2>&1` in | |
5165 | *GNU* | *'with BFD'*) | |
5166 | symcode='[ABCDGIRSTW]' ;; | |
5167 | esac | |
5168 | ||
5169 | # Transform an extracted symbol line into a proper C declaration. | |
5170 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5171 | # so use this general approach. | |
5172 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5173 | ||
5174 | # Transform an extracted symbol line into symbol name and symbol address | |
5175 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5176 | ||
5177 | # Handle CRLF in mingw tool chain | |
5178 | opt_cr= | |
5179 | case $build_os in | |
5180 | mingw*) | |
5181 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5182 | ;; | |
5183 | esac | |
5184 | ||
5185 | # Try without a prefix underscore, then with it. | |
5186 | for ac_symprfx in "" "_"; do | |
5187 | ||
5188 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5189 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5190 | ||
5191 | # Write the raw and C identifiers. | |
5192 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5193 | # Fake it for dumpbin and say T for any non-static function | |
5194 | # and D for any global variable. | |
5195 | # Also find C++ and __fastcall symbols from MSVC++, | |
5196 | # which start with @ or ?. | |
5197 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5198 | " {last_section=section; section=\$ 3};"\ | |
5199 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5200 | " \$ 0!~/External *\|/{next};"\ | |
5201 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5202 | " {if(hide[section]) next};"\ | |
5203 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5204 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5205 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5206 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5207 | " ' prfx=^$ac_symprfx" | |
5208 | else | |
5209 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5210 | fi | |
5211 | ||
5212 | # Check to see that the pipe works correctly. | |
5213 | pipe_works=no | |
5214 | ||
5215 | rm -f conftest* | |
5216 | cat > conftest.$ac_ext <<_LT_EOF | |
5217 | #ifdef __cplusplus | |
5218 | extern "C" { | |
5219 | #endif | |
5220 | char nm_test_var; | |
5221 | void nm_test_func(void); | |
5222 | void nm_test_func(void){} | |
5223 | #ifdef __cplusplus | |
5224 | } | |
5225 | #endif | |
5226 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5227 | _LT_EOF | |
5228 | ||
5229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5230 | (eval $ac_compile) 2>&5 | |
5231 | ac_status=$? | |
5232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5233 | (exit $ac_status); }; then | |
5234 | # Now try to grab the symbols. | |
5235 | nlist=conftest.nm | |
5236 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5237 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5238 | ac_status=$? | |
5239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5240 | (exit $ac_status); } && test -s "$nlist"; then | |
5241 | # Try sorting and uniquifying the output. | |
5242 | if sort "$nlist" | uniq > "$nlist"T; then | |
5243 | mv -f "$nlist"T "$nlist" | |
5244 | else | |
5245 | rm -f "$nlist"T | |
5246 | fi | |
5247 | ||
5248 | # Make sure that we snagged all the symbols we need. | |
5249 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5250 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5251 | cat <<_LT_EOF > conftest.$ac_ext | |
5252 | #ifdef __cplusplus | |
5253 | extern "C" { | |
5254 | #endif | |
5255 | ||
5256 | _LT_EOF | |
5257 | # Now generate the symbol file. | |
5258 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5259 | ||
5260 | cat <<_LT_EOF >> conftest.$ac_ext | |
5261 | ||
5262 | /* The mapping between symbol names and symbols. */ | |
5263 | const struct { | |
5264 | const char *name; | |
5265 | void *address; | |
5266 | } | |
5267 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5268 | { | |
5269 | { "@PROGRAM@", (void *) 0 }, | |
5270 | _LT_EOF | |
5271 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5272 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5273 | {0, (void *) 0} | |
5274 | }; | |
5275 | ||
5276 | /* This works around a problem in FreeBSD linker */ | |
5277 | #ifdef FREEBSD_WORKAROUND | |
5278 | static const void *lt_preloaded_setup() { | |
5279 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5280 | } | |
5281 | #endif | |
5282 | ||
5283 | #ifdef __cplusplus | |
5284 | } | |
5285 | #endif | |
5286 | _LT_EOF | |
5287 | # Now try linking the two files. | |
5288 | mv conftest.$ac_objext conftstm.$ac_objext | |
5289 | lt_save_LIBS="$LIBS" | |
5290 | lt_save_CFLAGS="$CFLAGS" | |
5291 | LIBS="conftstm.$ac_objext" | |
5292 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5294 | (eval $ac_link) 2>&5 | |
5295 | ac_status=$? | |
5296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5297 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5298 | pipe_works=yes | |
5299 | fi | |
5300 | LIBS="$lt_save_LIBS" | |
5301 | CFLAGS="$lt_save_CFLAGS" | |
5302 | else | |
5303 | echo "cannot find nm_test_func in $nlist" >&5 | |
5304 | fi | |
5305 | else | |
5306 | echo "cannot find nm_test_var in $nlist" >&5 | |
5307 | fi | |
5308 | else | |
5309 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5310 | fi | |
5311 | else | |
5312 | echo "$progname: failed program was:" >&5 | |
5313 | cat conftest.$ac_ext >&5 | |
5314 | fi | |
5315 | rm -f conftest* conftst* | |
5316 | ||
5317 | # Do not use the global_symbol_pipe unless it works. | |
5318 | if test "$pipe_works" = yes; then | |
5319 | break | |
5320 | else | |
5321 | lt_cv_sys_global_symbol_pipe= | |
5322 | fi | |
5323 | done | |
5324 | ||
5325 | fi | |
5326 | ||
5327 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5328 | lt_cv_sys_global_symbol_to_cdecl= | |
5329 | fi | |
5330 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5331 | echo "$as_me:$LINENO: result: failed" >&5 | |
5332 | echo "${ECHO_T}failed" >&6 | |
5333 | else | |
5334 | echo "$as_me:$LINENO: result: ok" >&5 | |
5335 | echo "${ECHO_T}ok" >&6 | |
5336 | fi | |
5337 | ||
5338 | ||
5339 | ||
5340 | ||
5341 | ||
5342 | ||
5343 | ||
5344 | ||
5345 | ||
5346 | ||
5347 | ||
5348 | ||
5349 | ||
5350 | ||
5351 | ||
5352 | ||
5353 | ||
5354 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
5355 | if test "${enable_libtool_lock+set}" = set; then | |
5356 | enableval="$enable_libtool_lock" | |
5357 | ||
a106dabe | 5358 | fi; |
542f9784 | 5359 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4ee9c684 | 5360 | |
90973b19 | 5361 | # Some flags need to be propagated to the compiler or linker for good |
5362 | # libtool support. | |
5363 | case $host in | |
542f9784 | 5364 | ia64-*-hpux*) |
90973b19 | 5365 | # Find out which ABI we are using. |
542f9784 | 5366 | echo 'int i;' > conftest.$ac_ext |
90973b19 | 5367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5368 | (eval $ac_compile) 2>&5 | |
4ee9c684 | 5369 | ac_status=$? |
5370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 5371 | (exit $ac_status); }; then |
90973b19 | 5372 | case `/usr/bin/file conftest.$ac_objext` in |
542f9784 | 5373 | *ELF-32*) |
5374 | HPUX_IA64_MODE="32" | |
5375 | ;; | |
5376 | *ELF-64*) | |
5377 | HPUX_IA64_MODE="64" | |
5378 | ;; | |
90973b19 | 5379 | esac |
90973b19 | 5380 | fi |
5381 | rm -rf conftest* | |
5382 | ;; | |
542f9784 | 5383 | *-*-irix6*) |
90973b19 | 5384 | # Find out which ABI we are using. |
5a037dbd | 5385 | echo '#line 5385 "configure"' > conftest.$ac_ext |
90973b19 | 5386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5387 | (eval $ac_compile) 2>&5 | |
4ee9c684 | 5388 | ac_status=$? |
5389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 5390 | (exit $ac_status); }; then |
542f9784 | 5391 | if test "$lt_cv_prog_gnu_ld" = yes; then |
5392 | case `/usr/bin/file conftest.$ac_objext` in | |
5393 | *32-bit*) | |
5394 | LD="${LD-ld} -melf32bsmip" | |
5395 | ;; | |
5396 | *N32*) | |
5397 | LD="${LD-ld} -melf32bmipn32" | |
5398 | ;; | |
5399 | *64-bit*) | |
5400 | LD="${LD-ld} -melf64bmip" | |
5401 | ;; | |
5402 | esac | |
5403 | else | |
5404 | case `/usr/bin/file conftest.$ac_objext` in | |
5405 | *32-bit*) | |
5406 | LD="${LD-ld} -32" | |
5407 | ;; | |
5408 | *N32*) | |
5409 | LD="${LD-ld} -n32" | |
5410 | ;; | |
5411 | *64-bit*) | |
5412 | LD="${LD-ld} -64" | |
5413 | ;; | |
5414 | esac | |
5415 | fi | |
90973b19 | 5416 | fi |
5417 | rm -rf conftest* | |
5418 | ;; | |
4ee9c684 | 5419 | |
542f9784 | 5420 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
5421 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
90973b19 | 5422 | # Find out which ABI we are using. |
5423 | echo 'int i;' > conftest.$ac_ext | |
5424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5425 | (eval $ac_compile) 2>&5 | |
4ee9c684 | 5426 | ac_status=$? |
4ee9c684 | 5427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
90973b19 | 5428 | (exit $ac_status); }; then |
542f9784 | 5429 | case `/usr/bin/file conftest.o` in |
5430 | *32-bit*) | |
5431 | case $host in | |
5432 | x86_64-*kfreebsd*-gnu) | |
5433 | LD="${LD-ld} -m elf_i386_fbsd" | |
5434 | ;; | |
5435 | x86_64-*linux*) | |
5436 | LD="${LD-ld} -m elf_i386" | |
5437 | ;; | |
5438 | ppc64-*linux*|powerpc64-*linux*) | |
5439 | LD="${LD-ld} -m elf32ppclinux" | |
5440 | ;; | |
5441 | s390x-*linux*) | |
5442 | LD="${LD-ld} -m elf_s390" | |
5443 | ;; | |
5444 | sparc64-*linux*) | |
5445 | LD="${LD-ld} -m elf32_sparc" | |
5446 | ;; | |
5447 | esac | |
5448 | ;; | |
5449 | *64-bit*) | |
5450 | case $host in | |
5451 | x86_64-*kfreebsd*-gnu) | |
5452 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5453 | ;; | |
5454 | x86_64-*linux*) | |
5455 | LD="${LD-ld} -m elf_x86_64" | |
5456 | ;; | |
5457 | ppc*-*linux*|powerpc*-*linux*) | |
5458 | LD="${LD-ld} -m elf64ppc" | |
5459 | ;; | |
5460 | s390*-*linux*|s390*-*tpf*) | |
5461 | LD="${LD-ld} -m elf64_s390" | |
5462 | ;; | |
5463 | sparc*-*linux*) | |
5464 | LD="${LD-ld} -m elf64_sparc" | |
5465 | ;; | |
5466 | esac | |
5467 | ;; | |
90973b19 | 5468 | esac |
4ee9c684 | 5469 | fi |
90973b19 | 5470 | rm -rf conftest* |
5471 | ;; | |
4ee9c684 | 5472 | |
90973b19 | 5473 | *-*-sco3.2v5*) |
5474 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5475 | SAVE_CFLAGS="$CFLAGS" | |
5476 | CFLAGS="$CFLAGS -belf" | |
a106dabe | 5477 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
5478 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
90973b19 | 5479 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
4ee9c684 | 5480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5481 | else | |
542f9784 | 5482 | ac_ext=c |
90973b19 | 5483 | ac_cpp='$CPP $CPPFLAGS' |
5484 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5485 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5486 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ee9c684 | 5487 | |
b52ee437 | 5488 | if test x$gcc_no_link = xyes; then |
5489 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
5490 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
5491 | { (exit 1); exit 1; }; } | |
5492 | fi | |
5493 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 5494 | /* confdefs.h. */ |
5495 | _ACEOF | |
5496 | cat confdefs.h >>conftest.$ac_ext | |
5497 | cat >>conftest.$ac_ext <<_ACEOF | |
5498 | /* end confdefs.h. */ | |
4ee9c684 | 5499 | |
5500 | int | |
5501 | main () | |
5502 | { | |
90973b19 | 5503 | |
4ee9c684 | 5504 | ; |
5505 | return 0; | |
5506 | } | |
5507 | _ACEOF | |
5508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 5509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5510 | (eval $ac_link) 2>conftest.er1 | |
4ee9c684 | 5511 | ac_status=$? |
5512 | grep -v '^ *+' conftest.er1 >conftest.err | |
5513 | rm -f conftest.er1 | |
5514 | cat conftest.err >&5 | |
5515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5516 | (exit $ac_status); } && | |
c0e8efbe | 5517 | { ac_try='test -z "$ac_c_werror_flag" |
5518 | || test ! -s conftest.err' | |
a106dabe | 5519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5520 | (eval $ac_try) 2>&5 | |
4ee9c684 | 5521 | ac_status=$? |
5522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5523 | (exit $ac_status); }; } && | |
5524 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 5525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5526 | (eval $ac_try) 2>&5 | |
4ee9c684 | 5527 | ac_status=$? |
5528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5529 | (exit $ac_status); }; }; then | |
90973b19 | 5530 | lt_cv_cc_needs_belf=yes |
4ee9c684 | 5531 | else |
5532 | echo "$as_me: failed program was:" >&5 | |
5533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5534 | ||
a106dabe | 5535 | lt_cv_cc_needs_belf=no |
4ee9c684 | 5536 | fi |
a106dabe | 5537 | rm -f conftest.err conftest.$ac_objext \ |
4ee9c684 | 5538 | conftest$ac_exeext conftest.$ac_ext |
90973b19 | 5539 | ac_ext=c |
5540 | ac_cpp='$CPP $CPPFLAGS' | |
5541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5544 | ||
4ee9c684 | 5545 | fi |
a106dabe | 5546 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
5547 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
90973b19 | 5548 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
5549 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5550 | CFLAGS="$SAVE_CFLAGS" | |
5551 | fi | |
5552 | ;; | |
542f9784 | 5553 | sparc*-*solaris*) |
5554 | # Find out which ABI we are using. | |
5555 | echo 'int i;' > conftest.$ac_ext | |
5556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5557 | (eval $ac_compile) 2>&5 | |
5558 | ac_status=$? | |
5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5560 | (exit $ac_status); }; then | |
5561 | case `/usr/bin/file conftest.o` in | |
5562 | *64-bit*) | |
5563 | case $lt_cv_prog_gnu_ld in | |
5564 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5565 | *) LD="${LD-ld} -64" ;; | |
5566 | esac | |
5567 | ;; | |
5568 | esac | |
5569 | fi | |
5570 | rm -rf conftest* | |
5571 | ;; | |
90973b19 | 5572 | esac |
5573 | ||
542f9784 | 5574 | need_locks="$enable_libtool_lock" |
90973b19 | 5575 | |
542f9784 | 5576 | ac_ext=c |
5577 | ac_cpp='$CPP $CPPFLAGS' | |
5578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5581 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5582 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5583 | # On Suns, sometimes $CPP names a directory. | |
5584 | if test -n "$CPP" && test -d "$CPP"; then | |
5585 | CPP= | |
5586 | fi | |
5587 | if test -z "$CPP"; then | |
5588 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5590 | else | |
5591 | # Double quotes because CPP needs to be expanded | |
5592 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5593 | do | |
5594 | ac_preproc_ok=false | |
5595 | for ac_c_preproc_warn_flag in '' yes | |
5596 | do | |
5597 | # Use a header file that comes with gcc, so configuring glibc | |
5598 | # with a fresh cross-compiler works. | |
5599 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5600 | # <limits.h> exists even on freestanding compilers. | |
5601 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5602 | # not just through cpp. "Syntax error" is here to catch this case. | |
5603 | cat >conftest.$ac_ext <<_ACEOF | |
5604 | /* confdefs.h. */ | |
4ee9c684 | 5605 | _ACEOF |
542f9784 | 5606 | cat confdefs.h >>conftest.$ac_ext |
5607 | cat >>conftest.$ac_ext <<_ACEOF | |
5608 | /* end confdefs.h. */ | |
5609 | #ifdef __STDC__ | |
5610 | # include <limits.h> | |
5611 | #else | |
5612 | # include <assert.h> | |
5613 | #endif | |
5614 | Syntax error | |
5615 | _ACEOF | |
5616 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5617 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5618 | ac_status=$? | |
5619 | grep -v '^ *+' conftest.er1 >conftest.err | |
5620 | rm -f conftest.er1 | |
5621 | cat conftest.err >&5 | |
5622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5623 | (exit $ac_status); } >/dev/null; then | |
5624 | if test -s conftest.err; then | |
5625 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5626 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
90973b19 | 5627 | else |
542f9784 | 5628 | ac_cpp_err= |
90973b19 | 5629 | fi |
542f9784 | 5630 | else |
5631 | ac_cpp_err=yes | |
4ee9c684 | 5632 | fi |
542f9784 | 5633 | if test -z "$ac_cpp_err"; then |
5634 | : | |
5635 | else | |
5636 | echo "$as_me: failed program was:" >&5 | |
5637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 5638 | |
542f9784 | 5639 | # Broken: fails on valid input. |
5640 | continue | |
5641 | fi | |
5642 | rm -f conftest.err conftest.$ac_ext | |
90973b19 | 5643 | |
542f9784 | 5644 | # OK, works on sane cases. Now check whether non-existent headers |
5645 | # can be detected and how. | |
5646 | cat >conftest.$ac_ext <<_ACEOF | |
5647 | /* confdefs.h. */ | |
5648 | _ACEOF | |
5649 | cat confdefs.h >>conftest.$ac_ext | |
5650 | cat >>conftest.$ac_ext <<_ACEOF | |
5651 | /* end confdefs.h. */ | |
5652 | #include <ac_nonexistent.h> | |
5653 | _ACEOF | |
5654 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5655 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5656 | ac_status=$? | |
5657 | grep -v '^ *+' conftest.er1 >conftest.err | |
5658 | rm -f conftest.er1 | |
5659 | cat conftest.err >&5 | |
5660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5661 | (exit $ac_status); } >/dev/null; then | |
5662 | if test -s conftest.err; then | |
5663 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5664 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5665 | else | |
5666 | ac_cpp_err= | |
90973b19 | 5667 | fi |
5668 | else | |
542f9784 | 5669 | ac_cpp_err=yes |
90973b19 | 5670 | fi |
542f9784 | 5671 | if test -z "$ac_cpp_err"; then |
5672 | # Broken: success on invalid input. | |
5673 | continue | |
5674 | else | |
5675 | echo "$as_me: failed program was:" >&5 | |
5676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 5677 | |
542f9784 | 5678 | # Passes both tests. |
5679 | ac_preproc_ok=: | |
5680 | break | |
5681 | fi | |
5682 | rm -f conftest.err conftest.$ac_ext | |
4ee9c684 | 5683 | |
542f9784 | 5684 | done |
5685 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5686 | rm -f conftest.err conftest.$ac_ext | |
5687 | if $ac_preproc_ok; then | |
5688 | break | |
5689 | fi | |
4ee9c684 | 5690 | |
542f9784 | 5691 | done |
5692 | ac_cv_prog_CPP=$CPP | |
90973b19 | 5693 | |
542f9784 | 5694 | fi |
5695 | CPP=$ac_cv_prog_CPP | |
90973b19 | 5696 | else |
542f9784 | 5697 | ac_cv_prog_CPP=$CPP |
5698 | fi | |
5699 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5700 | echo "${ECHO_T}$CPP" >&6 | |
5701 | ac_preproc_ok=false | |
5702 | for ac_c_preproc_warn_flag in '' yes | |
90973b19 | 5703 | do |
542f9784 | 5704 | # Use a header file that comes with gcc, so configuring glibc |
5705 | # with a fresh cross-compiler works. | |
5706 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5707 | # <limits.h> exists even on freestanding compilers. | |
5708 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5709 | # not just through cpp. "Syntax error" is here to catch this case. | |
5710 | cat >conftest.$ac_ext <<_ACEOF | |
5711 | /* confdefs.h. */ | |
5712 | _ACEOF | |
5713 | cat confdefs.h >>conftest.$ac_ext | |
5714 | cat >>conftest.$ac_ext <<_ACEOF | |
5715 | /* end confdefs.h. */ | |
5716 | #ifdef __STDC__ | |
5717 | # include <limits.h> | |
5718 | #else | |
5719 | # include <assert.h> | |
5720 | #endif | |
5721 | Syntax error | |
5722 | _ACEOF | |
5723 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5724 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5725 | ac_status=$? | |
5726 | grep -v '^ *+' conftest.er1 >conftest.err | |
5727 | rm -f conftest.er1 | |
5728 | cat conftest.err >&5 | |
5729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5730 | (exit $ac_status); } >/dev/null; then | |
5731 | if test -s conftest.err; then | |
5732 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5733 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5734 | else | |
5735 | ac_cpp_err= | |
90973b19 | 5736 | fi |
90973b19 | 5737 | else |
542f9784 | 5738 | ac_cpp_err=yes |
90973b19 | 5739 | fi |
542f9784 | 5740 | if test -z "$ac_cpp_err"; then |
5741 | : | |
90973b19 | 5742 | else |
542f9784 | 5743 | echo "$as_me: failed program was:" >&5 |
5744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
90973b19 | 5745 | |
542f9784 | 5746 | # Broken: fails on valid input. |
5747 | continue | |
90973b19 | 5748 | fi |
542f9784 | 5749 | rm -f conftest.err conftest.$ac_ext |
90973b19 | 5750 | |
542f9784 | 5751 | # OK, works on sane cases. Now check whether non-existent headers |
5752 | # can be detected and how. | |
4ee9c684 | 5753 | cat >conftest.$ac_ext <<_ACEOF |
542f9784 | 5754 | /* confdefs.h. */ |
4ee9c684 | 5755 | _ACEOF |
542f9784 | 5756 | cat confdefs.h >>conftest.$ac_ext |
5757 | cat >>conftest.$ac_ext <<_ACEOF | |
5758 | /* end confdefs.h. */ | |
5759 | #include <ac_nonexistent.h> | |
5760 | _ACEOF | |
5761 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5762 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4ee9c684 | 5763 | ac_status=$? |
5764 | grep -v '^ *+' conftest.er1 >conftest.err | |
5765 | rm -f conftest.er1 | |
5766 | cat conftest.err >&5 | |
5767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
542f9784 | 5768 | (exit $ac_status); } >/dev/null; then |
5769 | if test -s conftest.err; then | |
5770 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5771 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5772 | else | |
5773 | ac_cpp_err= | |
5774 | fi | |
5775 | else | |
5776 | ac_cpp_err=yes | |
5777 | fi | |
5778 | if test -z "$ac_cpp_err"; then | |
5779 | # Broken: success on invalid input. | |
5780 | continue | |
4ee9c684 | 5781 | else |
5782 | echo "$as_me: failed program was:" >&5 | |
5783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5784 | ||
542f9784 | 5785 | # Passes both tests. |
5786 | ac_preproc_ok=: | |
5787 | break | |
4ee9c684 | 5788 | fi |
542f9784 | 5789 | rm -f conftest.err conftest.$ac_ext |
4ee9c684 | 5790 | |
542f9784 | 5791 | done |
5792 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5793 | rm -f conftest.err conftest.$ac_ext | |
5794 | if $ac_preproc_ok; then | |
5795 | : | |
5796 | else | |
5797 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
5798 | See \`config.log' for more details." >&5 | |
5799 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5800 | See \`config.log' for more details." >&2;} | |
5801 | { (exit 1); exit 1; }; } | |
4ee9c684 | 5802 | fi |
542f9784 | 5803 | |
5804 | ac_ext=c | |
5805 | ac_cpp='$CPP $CPPFLAGS' | |
5806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5809 | ||
5810 | ||
5811 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
5812 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5813 | if test "${ac_cv_header_stdc+set}" = set; then | |
4ee9c684 | 5814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5815 | else | |
542f9784 | 5816 | cat >conftest.$ac_ext <<_ACEOF |
5817 | /* confdefs.h. */ | |
5818 | _ACEOF | |
5819 | cat confdefs.h >>conftest.$ac_ext | |
5820 | cat >>conftest.$ac_ext <<_ACEOF | |
5821 | /* end confdefs.h. */ | |
5822 | #include <stdlib.h> | |
5823 | #include <stdarg.h> | |
5824 | #include <string.h> | |
5825 | #include <float.h> | |
4ee9c684 | 5826 | |
542f9784 | 5827 | int |
5828 | main () | |
5829 | { | |
5830 | ||
5831 | ; | |
5832 | return 0; | |
5833 | } | |
4ee9c684 | 5834 | _ACEOF |
5835 | rm -f conftest.$ac_objext | |
a106dabe | 5836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5837 | (eval $ac_compile) 2>conftest.er1 | |
4ee9c684 | 5838 | ac_status=$? |
5839 | grep -v '^ *+' conftest.er1 >conftest.err | |
5840 | rm -f conftest.er1 | |
5841 | cat conftest.err >&5 | |
5842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5843 | (exit $ac_status); } && | |
542f9784 | 5844 | { ac_try='test -z "$ac_c_werror_flag" |
c0e8efbe | 5845 | || test ! -s conftest.err' |
a106dabe | 5846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5847 | (eval $ac_try) 2>&5 | |
4ee9c684 | 5848 | ac_status=$? |
5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5850 | (exit $ac_status); }; } && | |
5851 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 5852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5853 | (eval $ac_try) 2>&5 | |
4ee9c684 | 5854 | ac_status=$? |
5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5856 | (exit $ac_status); }; }; then | |
542f9784 | 5857 | ac_cv_header_stdc=yes |
4ee9c684 | 5858 | else |
5859 | echo "$as_me: failed program was:" >&5 | |
5860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5861 | ||
542f9784 | 5862 | ac_cv_header_stdc=no |
4ee9c684 | 5863 | fi |
a106dabe | 5864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 5865 | |
542f9784 | 5866 | if test $ac_cv_header_stdc = yes; then |
5867 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5868 | cat >conftest.$ac_ext <<_ACEOF | |
5869 | /* confdefs.h. */ | |
5870 | _ACEOF | |
5871 | cat confdefs.h >>conftest.$ac_ext | |
5872 | cat >>conftest.$ac_ext <<_ACEOF | |
5873 | /* end confdefs.h. */ | |
5874 | #include <string.h> | |
5875 | ||
5876 | _ACEOF | |
5877 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5878 | $EGREP "memchr" >/dev/null 2>&1; then | |
5879 | : | |
90973b19 | 5880 | else |
542f9784 | 5881 | ac_cv_header_stdc=no |
4ee9c684 | 5882 | fi |
542f9784 | 5883 | rm -f conftest* |
4ee9c684 | 5884 | |
542f9784 | 5885 | fi |
9cf1c244 | 5886 | |
542f9784 | 5887 | if test $ac_cv_header_stdc = yes; then |
5888 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5889 | cat >conftest.$ac_ext <<_ACEOF | |
5890 | /* confdefs.h. */ | |
5891 | _ACEOF | |
5892 | cat confdefs.h >>conftest.$ac_ext | |
5893 | cat >>conftest.$ac_ext <<_ACEOF | |
5894 | /* end confdefs.h. */ | |
5895 | #include <stdlib.h> | |
2e4ef4e4 | 5896 | |
542f9784 | 5897 | _ACEOF |
5898 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5899 | $EGREP "free" >/dev/null 2>&1; then | |
5900 | : | |
5901 | else | |
5902 | ac_cv_header_stdc=no | |
5903 | fi | |
5904 | rm -f conftest* | |
2e4ef4e4 | 5905 | |
542f9784 | 5906 | fi |
2e4ef4e4 | 5907 | |
542f9784 | 5908 | if test $ac_cv_header_stdc = yes; then |
5909 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5910 | if test "$cross_compiling" = yes; then | |
5911 | : | |
5912 | else | |
5913 | cat >conftest.$ac_ext <<_ACEOF | |
5914 | /* confdefs.h. */ | |
5915 | _ACEOF | |
5916 | cat confdefs.h >>conftest.$ac_ext | |
5917 | cat >>conftest.$ac_ext <<_ACEOF | |
5918 | /* end confdefs.h. */ | |
5919 | #include <ctype.h> | |
5920 | #if ((' ' & 0x0FF) == 0x020) | |
5921 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5922 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5923 | #else | |
5924 | # define ISLOWER(c) \ | |
5925 | (('a' <= (c) && (c) <= 'i') \ | |
5926 | || ('j' <= (c) && (c) <= 'r') \ | |
5927 | || ('s' <= (c) && (c) <= 'z')) | |
5928 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5929 | #endif | |
2e4ef4e4 | 5930 | |
542f9784 | 5931 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5932 | int | |
5933 | main () | |
5934 | { | |
5935 | int i; | |
5936 | for (i = 0; i < 256; i++) | |
5937 | if (XOR (islower (i), ISLOWER (i)) | |
5938 | || toupper (i) != TOUPPER (i)) | |
5939 | exit(2); | |
5940 | exit (0); | |
5941 | } | |
2e4ef4e4 | 5942 | _ACEOF |
542f9784 | 5943 | rm -f conftest$ac_exeext |
5944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5945 | (eval $ac_link) 2>&5 | |
2e4ef4e4 | 5946 | ac_status=$? |
5947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
542f9784 | 5948 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a106dabe | 5949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5950 | (eval $ac_try) 2>&5 | |
2e4ef4e4 | 5951 | ac_status=$? |
5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5953 | (exit $ac_status); }; }; then | |
542f9784 | 5954 | : |
2e4ef4e4 | 5955 | else |
542f9784 | 5956 | echo "$as_me: program exited with status $ac_status" >&5 |
5957 | echo "$as_me: failed program was:" >&5 | |
2e4ef4e4 | 5958 | sed 's/^/| /' conftest.$ac_ext >&5 |
5959 | ||
542f9784 | 5960 | ( exit $ac_status ) |
5961 | ac_cv_header_stdc=no | |
5962 | fi | |
5963 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5964 | fi | |
5965 | fi | |
5966 | fi | |
5967 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5968 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5969 | if test $ac_cv_header_stdc = yes; then | |
5970 | ||
5971 | cat >>confdefs.h <<\_ACEOF | |
5972 | #define STDC_HEADERS 1 | |
5973 | _ACEOF | |
2e4ef4e4 | 5974 | |
5975 | fi | |
2e4ef4e4 | 5976 | |
542f9784 | 5977 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
2e4ef4e4 | 5978 | |
5979 | ||
90e67cff | 5980 | |
90e67cff | 5981 | |
542f9784 | 5982 | |
5983 | ||
5984 | ||
5985 | ||
5986 | ||
5987 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5988 | inttypes.h stdint.h unistd.h | |
5989 | do | |
5990 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5991 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5992 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5993 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
90e67cff | 5994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5995 | else | |
542f9784 | 5996 | cat >conftest.$ac_ext <<_ACEOF |
90e67cff | 5997 | /* confdefs.h. */ |
5998 | _ACEOF | |
5999 | cat confdefs.h >>conftest.$ac_ext | |
6000 | cat >>conftest.$ac_ext <<_ACEOF | |
6001 | /* end confdefs.h. */ | |
542f9784 | 6002 | $ac_includes_default |
90e67cff | 6003 | |
542f9784 | 6004 | #include <$ac_header> |
90e67cff | 6005 | _ACEOF |
542f9784 | 6006 | rm -f conftest.$ac_objext |
a106dabe | 6007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6008 | (eval $ac_compile) 2>conftest.er1 | |
90e67cff | 6009 | ac_status=$? |
6010 | grep -v '^ *+' conftest.er1 >conftest.err | |
6011 | rm -f conftest.er1 | |
6012 | cat conftest.err >&5 | |
6013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6014 | (exit $ac_status); } && | |
c0e8efbe | 6015 | { ac_try='test -z "$ac_c_werror_flag" |
6016 | || test ! -s conftest.err' | |
a106dabe | 6017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6018 | (eval $ac_try) 2>&5 | |
90e67cff | 6019 | ac_status=$? |
6020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6021 | (exit $ac_status); }; } && | |
6022 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 6023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6024 | (eval $ac_try) 2>&5 | |
90e67cff | 6025 | ac_status=$? |
6026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6027 | (exit $ac_status); }; }; then | |
542f9784 | 6028 | eval "$as_ac_Header=yes" |
90e67cff | 6029 | else |
6030 | echo "$as_me: failed program was:" >&5 | |
6031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6032 | ||
542f9784 | 6033 | eval "$as_ac_Header=no" |
90e67cff | 6034 | fi |
542f9784 | 6035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6036 | fi | |
6037 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6038 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6039 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6040 | cat >>confdefs.h <<_ACEOF | |
6041 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6042 | _ACEOF | |
6043 | ||
6044 | fi | |
6045 | ||
6046 | done | |
6047 | ||
6048 | ||
6049 | ||
6050 | for ac_header in dlfcn.h | |
6051 | do | |
6052 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6053 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6054 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6055 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6057 | else | |
6058 | cat >conftest.$ac_ext <<_ACEOF | |
6059 | /* confdefs.h. */ | |
6060 | _ACEOF | |
6061 | cat confdefs.h >>conftest.$ac_ext | |
6062 | cat >>conftest.$ac_ext <<_ACEOF | |
6063 | /* end confdefs.h. */ | |
6064 | $ac_includes_default | |
6065 | ||
6066 | #include <$ac_header> | |
6067 | _ACEOF | |
6068 | rm -f conftest.$ac_objext | |
a106dabe | 6069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6070 | (eval $ac_compile) 2>conftest.er1 | |
90e67cff | 6071 | ac_status=$? |
6072 | grep -v '^ *+' conftest.er1 >conftest.err | |
6073 | rm -f conftest.er1 | |
6074 | cat conftest.err >&5 | |
6075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6076 | (exit $ac_status); } && | |
c0e8efbe | 6077 | { ac_try='test -z "$ac_c_werror_flag" |
6078 | || test ! -s conftest.err' | |
a106dabe | 6079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6080 | (eval $ac_try) 2>&5 | |
90e67cff | 6081 | ac_status=$? |
6082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6083 | (exit $ac_status); }; } && | |
6084 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 6085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6086 | (eval $ac_try) 2>&5 | |
90e67cff | 6087 | ac_status=$? |
6088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6089 | (exit $ac_status); }; }; then | |
542f9784 | 6090 | eval "$as_ac_Header=yes" |
90e67cff | 6091 | else |
6092 | echo "$as_me: failed program was:" >&5 | |
6093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6094 | ||
542f9784 | 6095 | eval "$as_ac_Header=no" |
90e67cff | 6096 | fi |
542f9784 | 6097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
90e67cff | 6098 | fi |
542f9784 | 6099 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6100 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6101 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6102 | cat >>confdefs.h <<_ACEOF | |
6103 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
90e67cff | 6104 | _ACEOF |
90e67cff | 6105 | |
542f9784 | 6106 | fi |
6107 | ||
6108 | done | |
6109 | ||
6110 | ||
6111 | ||
6112 | # This can be used to rebuild libtool when needed | |
6113 | LIBTOOL_DEPS="$ltmain" | |
6114 | ||
6115 | # Always use our own libtool. | |
6116 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6117 | ||
6118 | ||
6119 | ||
6120 | ||
6121 | ||
6122 | ||
6123 | ||
6124 | ||
6125 | ||
6126 | ||
6127 | ||
6128 | ||
6129 | ||
6130 | ||
6131 | ||
6132 | ||
6133 | ||
6134 | ||
6135 | ||
6136 | ||
6137 | ||
6138 | ||
6139 | ||
6140 | ||
6141 | ||
6142 | test -z "$LN_S" && LN_S="ln -s" | |
6143 | ||
6144 | ||
6145 | ||
6146 | ||
6147 | ||
90e67cff | 6148 | |
542f9784 | 6149 | |
6150 | ||
6151 | ||
6152 | ||
6153 | ||
6154 | ||
6155 | ||
6156 | ||
6157 | if test -n "${ZSH_VERSION+set}" ; then | |
6158 | setopt NO_GLOB_SUBST | |
90e67cff | 6159 | fi |
90e67cff | 6160 | |
542f9784 | 6161 | echo "$as_me:$LINENO: checking for objdir" >&5 |
6162 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
6163 | if test "${lt_cv_objdir+set}" = set; then | |
6164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90e67cff | 6165 | else |
542f9784 | 6166 | rm -f .libs 2>/dev/null |
6167 | mkdir .libs 2>/dev/null | |
6168 | if test -d .libs; then | |
6169 | lt_cv_objdir=.libs | |
6170 | else | |
6171 | # MS-DOS does not allow filenames that begin with a dot. | |
6172 | lt_cv_objdir=_libs | |
90e67cff | 6173 | fi |
542f9784 | 6174 | rmdir .libs 2>/dev/null |
90e67cff | 6175 | fi |
542f9784 | 6176 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6177 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
6178 | objdir=$lt_cv_objdir | |
6179 | ||
6180 | ||
6181 | ||
6182 | ||
90e67cff | 6183 | |
6184 | cat >>confdefs.h <<_ACEOF | |
542f9784 | 6185 | #define LT_OBJDIR "$lt_cv_objdir/" |
90e67cff | 6186 | _ACEOF |
6187 | ||
542f9784 | 6188 | |
6189 | ||
6190 | ||
6191 | ||
6192 | ||
6193 | ||
6194 | ||
6195 | ||
6196 | ||
6197 | ||
6198 | ||
6199 | ||
6200 | ||
6201 | ||
6202 | ||
6203 | ||
6204 | case $host_os in | |
6205 | aix3*) | |
6206 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6207 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6208 | # vanish in a puff of smoke. | |
6209 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6210 | COLLECT_NAMES= | |
6211 | export COLLECT_NAMES | |
6212 | fi | |
6213 | ;; | |
6214 | esac | |
6215 | ||
6216 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6217 | # metacharacters that are still active within double-quoted strings. | |
6218 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6219 | ||
6220 | # Same as above, but do not quote variable references. | |
6221 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6222 | ||
6223 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6224 | # double_quote_subst'ed string. | |
6225 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6226 | ||
6227 | # Sed substitution to delay expansion of an escaped single quote. | |
6228 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6229 | ||
6230 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6231 | no_glob_subst='s/\*/\\\*/g' | |
6232 | ||
6233 | # Global variables: | |
6234 | ofile=libtool | |
6235 | can_build_shared=yes | |
6236 | ||
6237 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6238 | # which needs '.lib'). | |
6239 | libext=a | |
6240 | ||
6241 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6242 | ||
6243 | old_CC="$CC" | |
6244 | old_CFLAGS="$CFLAGS" | |
6245 | ||
6246 | # Set sane defaults for various variables | |
6247 | test -z "$CC" && CC=cc | |
6248 | test -z "$LTCC" && LTCC=$CC | |
6249 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6250 | test -z "$LD" && LD=ld | |
6251 | test -z "$ac_objext" && ac_objext=o | |
6252 | ||
6253 | for cc_temp in $compiler""; do | |
6254 | case $cc_temp in | |
6255 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6256 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6257 | \-*) ;; | |
6258 | *) break;; | |
6259 | esac | |
6260 | done | |
6261 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6262 | ||
6263 | ||
6264 | # Only perform the check for file, if the check method requires it | |
6265 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6266 | case $deplibs_check_method in | |
6267 | file_magic*) | |
6268 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6269 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
6270 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
6271 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
90e67cff | 6272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6273 | else | |
542f9784 | 6274 | case $MAGIC_CMD in |
6275 | [\\/*] | ?:[\\/]*) | |
6276 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6277 | ;; | |
6278 | *) | |
6279 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6280 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6281 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6282 | for ac_dir in $ac_dummy; do | |
6283 | IFS="$lt_save_ifs" | |
6284 | test -z "$ac_dir" && ac_dir=. | |
6285 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6286 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6287 | if test -n "$file_magic_test_file"; then | |
6288 | case $deplibs_check_method in | |
6289 | "file_magic "*) | |
6290 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6291 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6292 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6293 | $EGREP "$file_magic_regex" > /dev/null; then | |
6294 | : | |
6295 | else | |
6296 | cat <<_LT_EOF 1>&2 | |
90e67cff | 6297 | |
542f9784 | 6298 | *** Warning: the command libtool uses to detect shared libraries, |
6299 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6300 | *** The result is that libtool may fail to recognize shared libraries | |
6301 | *** as such. This will affect the creation of libtool libraries that | |
6302 | *** depend on shared libraries, but programs linked with such libtool | |
6303 | *** libraries will work regardless of this problem. Nevertheless, you | |
6304 | *** may want to report the problem to your system manager and/or to | |
6305 | *** bug-libtool@gnu.org | |
6306 | ||
6307 | _LT_EOF | |
6308 | fi ;; | |
6309 | esac | |
6310 | fi | |
6311 | break | |
6312 | fi | |
6313 | done | |
6314 | IFS="$lt_save_ifs" | |
6315 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6316 | ;; | |
6317 | esac | |
6318 | fi | |
6319 | ||
6320 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6321 | if test -n "$MAGIC_CMD"; then | |
6322 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6323 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6324 | else | |
6325 | echo "$as_me:$LINENO: result: no" >&5 | |
6326 | echo "${ECHO_T}no" >&6 | |
6327 | fi | |
6328 | ||
6329 | ||
6330 | ||
6331 | ||
6332 | ||
6333 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6334 | if test -n "$ac_tool_prefix"; then | |
6335 | echo "$as_me:$LINENO: checking for file" >&5 | |
6336 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
6337 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6339 | else | |
6340 | case $MAGIC_CMD in | |
6341 | [\\/*] | ?:[\\/]*) | |
6342 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6343 | ;; | |
6344 | *) | |
6345 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6346 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6347 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6348 | for ac_dir in $ac_dummy; do | |
6349 | IFS="$lt_save_ifs" | |
6350 | test -z "$ac_dir" && ac_dir=. | |
6351 | if test -f $ac_dir/file; then | |
6352 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6353 | if test -n "$file_magic_test_file"; then | |
6354 | case $deplibs_check_method in | |
6355 | "file_magic "*) | |
6356 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6357 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6358 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6359 | $EGREP "$file_magic_regex" > /dev/null; then | |
6360 | : | |
6361 | else | |
6362 | cat <<_LT_EOF 1>&2 | |
6363 | ||
6364 | *** Warning: the command libtool uses to detect shared libraries, | |
6365 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6366 | *** The result is that libtool may fail to recognize shared libraries | |
6367 | *** as such. This will affect the creation of libtool libraries that | |
6368 | *** depend on shared libraries, but programs linked with such libtool | |
6369 | *** libraries will work regardless of this problem. Nevertheless, you | |
6370 | *** may want to report the problem to your system manager and/or to | |
6371 | *** bug-libtool@gnu.org | |
6372 | ||
6373 | _LT_EOF | |
6374 | fi ;; | |
6375 | esac | |
6376 | fi | |
6377 | break | |
6378 | fi | |
6379 | done | |
6380 | IFS="$lt_save_ifs" | |
6381 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6382 | ;; | |
6383 | esac | |
6384 | fi | |
6385 | ||
6386 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6387 | if test -n "$MAGIC_CMD"; then | |
6388 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6389 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6390 | else | |
6391 | echo "$as_me:$LINENO: result: no" >&5 | |
6392 | echo "${ECHO_T}no" >&6 | |
6393 | fi | |
6394 | ||
6395 | ||
6396 | else | |
6397 | MAGIC_CMD=: | |
6398 | fi | |
6399 | fi | |
6400 | ||
6401 | fi | |
6402 | ;; | |
6403 | esac | |
6404 | ||
6405 | # Use C for the default configuration in the libtool script | |
6406 | ||
6407 | lt_save_CC="$CC" | |
6408 | ac_ext=c | |
6409 | ac_cpp='$CPP $CPPFLAGS' | |
6410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6413 | ||
6414 | ||
6415 | # Source file extension for C test sources. | |
6416 | ac_ext=c | |
6417 | ||
6418 | # Object file extension for compiled C test sources. | |
6419 | objext=o | |
6420 | objext=$objext | |
6421 | ||
6422 | # Code to be used in simple compile tests | |
6423 | lt_simple_compile_test_code="int some_variable = 0;" | |
6424 | ||
6425 | # Code to be used in simple link tests | |
6426 | lt_simple_link_test_code='int main(){return(0);}' | |
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
6434 | # If no C compiler was specified, use CC. | |
6435 | LTCC=${LTCC-"$CC"} | |
6436 | ||
6437 | # If no C compiler flags were specified, use CFLAGS. | |
6438 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6439 | ||
6440 | # Allow CC to be a program name with arguments. | |
6441 | compiler=$CC | |
6442 | ||
6443 | # Save the default compiler, since it gets overwritten when the other | |
6444 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6445 | compiler_DEFAULT=$CC | |
6446 | ||
6447 | # save warnings/boilerplate of simple test code | |
6448 | ac_outfile=conftest.$ac_objext | |
6449 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6450 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6451 | _lt_compiler_boilerplate=`cat conftest.err` | |
6452 | $RM conftest* | |
6453 | ||
6454 | ac_outfile=conftest.$ac_objext | |
6455 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
6456 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6457 | _lt_linker_boilerplate=`cat conftest.err` | |
6458 | $RM conftest* | |
6459 | ||
6460 | ||
6461 | ## CAVEAT EMPTOR: | |
6462 | ## There is no encapsulation within the following macros, do not change | |
6463 | ## the running order or otherwise move them around unless you know exactly | |
6464 | ## what you are doing... | |
6465 | if test -n "$compiler"; then | |
6466 | ||
6467 | lt_prog_compiler_no_builtin_flag= | |
6468 | ||
6469 | if test "$GCC" = yes; then | |
6470 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6471 | ||
6472 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6473 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
6474 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
6475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6476 | else | |
6477 | lt_cv_prog_compiler_rtti_exceptions=no | |
6478 | ac_outfile=conftest.$ac_objext | |
6479 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6480 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6481 | # Insert the option either (1) after the last *FLAGS variable, or | |
6482 | # (2) before a word containing "conftest.", or (3) at the end. | |
6483 | # Note that $ac_compile itself does not contain backslashes and begins | |
6484 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6485 | # The option is referenced via a variable to avoid confusing sed. | |
6486 | lt_compile=`echo "$ac_compile" | $SED \ | |
6487 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6488 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6489 | -e 's:$: $lt_compiler_flag:'` | |
5a037dbd | 6490 | (eval echo "\"\$as_me:6490: $lt_compile\"" >&5) |
542f9784 | 6491 | (eval "$lt_compile" 2>conftest.err) |
6492 | ac_status=$? | |
6493 | cat conftest.err >&5 | |
5a037dbd | 6494 | echo "$as_me:6494: \$? = $ac_status" >&5 |
542f9784 | 6495 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6496 | # The compiler can only warn and ignore the option if not recognized | |
6497 | # So say no if there are warnings other than the usual output. | |
6498 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6499 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6500 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6501 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6502 | fi | |
6503 | fi | |
6504 | $RM conftest* | |
6505 | ||
6506 | fi | |
6507 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6508 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
6509 | ||
6510 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6511 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6512 | else | |
6513 | : | |
6514 | fi | |
6515 | ||
6516 | fi | |
6517 | ||
6518 | ||
6519 | ||
6520 | ||
6521 | ||
6522 | ||
6523 | lt_prog_compiler_wl= | |
6524 | lt_prog_compiler_pic= | |
6525 | lt_prog_compiler_static= | |
6526 | ||
6527 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
6528 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
6529 | ||
6530 | if test "$GCC" = yes; then | |
6531 | lt_prog_compiler_wl='-Wl,' | |
6532 | lt_prog_compiler_static='-static' | |
6533 | ||
6534 | case $host_os in | |
6535 | aix*) | |
6536 | # All AIX code is PIC. | |
6537 | if test "$host_cpu" = ia64; then | |
6538 | # AIX 5 now supports IA64 processor | |
6539 | lt_prog_compiler_static='-Bstatic' | |
6540 | fi | |
6541 | ;; | |
6542 | ||
6543 | amigaos*) | |
6544 | if test "$host_cpu" = m68k; then | |
6545 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6546 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6547 | # like `-m68040'. | |
6548 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6549 | fi | |
6550 | ;; | |
6551 | ||
6552 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6553 | # PIC is the default for these OSes. | |
6554 | ;; | |
6555 | ||
6556 | mingw* | cygwin* | pw32* | os2*) | |
6557 | # This hack is so that the source file can tell whether it is being | |
6558 | # built for inclusion in a dll (and should export symbols for example). | |
6559 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
6560 | # (--disable-auto-import) libraries | |
6561 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6562 | ;; | |
6563 | ||
6564 | darwin* | rhapsody*) | |
6565 | # PIC is the default on this platform | |
6566 | # Common symbols not allowed in MH_DYLIB files | |
6567 | lt_prog_compiler_pic='-fno-common' | |
6568 | ;; | |
6569 | ||
6570 | hpux*) | |
6571 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6572 | # not for PA HP-UX. | |
6573 | case $host_cpu in | |
6574 | hppa*64*|ia64*) | |
6575 | # +Z the default | |
6576 | ;; | |
6577 | *) | |
6578 | lt_prog_compiler_pic='-fPIC' | |
6579 | ;; | |
6580 | esac | |
6581 | ;; | |
6582 | ||
6583 | interix[3-9]*) | |
6584 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6585 | # Instead, we relocate shared libraries at runtime. | |
6586 | ;; | |
6587 | ||
6588 | msdosdjgpp*) | |
6589 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6590 | # on systems that don't support them. | |
6591 | lt_prog_compiler_can_build_shared=no | |
6592 | enable_shared=no | |
6593 | ;; | |
6594 | ||
6595 | *nto* | *qnx*) | |
6596 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6597 | # it will coredump. | |
6598 | lt_prog_compiler_pic='-fPIC -shared' | |
6599 | ;; | |
6600 | ||
6601 | sysv4*MP*) | |
6602 | if test -d /usr/nec; then | |
6603 | lt_prog_compiler_pic=-Kconform_pic | |
6604 | fi | |
6605 | ;; | |
6606 | ||
6607 | *) | |
6608 | lt_prog_compiler_pic='-fPIC' | |
6609 | ;; | |
6610 | esac | |
6611 | else | |
6612 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6613 | case $host_os in | |
6614 | aix*) | |
6615 | lt_prog_compiler_wl='-Wl,' | |
6616 | if test "$host_cpu" = ia64; then | |
6617 | # AIX 5 now supports IA64 processor | |
6618 | lt_prog_compiler_static='-Bstatic' | |
6619 | else | |
6620 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6621 | fi | |
6622 | ;; | |
6623 | darwin*) | |
6624 | # PIC is the default on this platform | |
6625 | # Common symbols not allowed in MH_DYLIB files | |
6626 | case $cc_basename in | |
6627 | xlc*) | |
6628 | lt_prog_compiler_pic='-qnocommon' | |
6629 | lt_prog_compiler_wl='-Wl,' | |
6630 | ;; | |
6631 | esac | |
6632 | ;; | |
6633 | ||
6634 | mingw* | cygwin* | pw32* | os2*) | |
6635 | # This hack is so that the source file can tell whether it is being | |
6636 | # built for inclusion in a dll (and should export symbols for example). | |
6637 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6638 | ;; | |
6639 | ||
6640 | hpux9* | hpux10* | hpux11*) | |
6641 | lt_prog_compiler_wl='-Wl,' | |
6642 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6643 | # not for PA HP-UX. | |
6644 | case $host_cpu in | |
6645 | hppa*64*|ia64*) | |
6646 | # +Z the default | |
6647 | ;; | |
6648 | *) | |
6649 | lt_prog_compiler_pic='+Z' | |
6650 | ;; | |
6651 | esac | |
6652 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6653 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6654 | ;; | |
6655 | ||
6656 | irix5* | irix6* | nonstopux*) | |
6657 | lt_prog_compiler_wl='-Wl,' | |
6658 | # PIC (with -KPIC) is the default. | |
6659 | lt_prog_compiler_static='-non_shared' | |
6660 | ;; | |
6661 | ||
6662 | linux* | k*bsd*-gnu) | |
6663 | case $cc_basename in | |
6664 | icc* | ecc*) | |
6665 | lt_prog_compiler_wl='-Wl,' | |
6666 | lt_prog_compiler_pic='-KPIC' | |
6667 | lt_prog_compiler_static='-static' | |
6668 | ;; | |
6669 | pgcc* | pgf77* | pgf90* | pgf95*) | |
6670 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
6671 | # which looks to be a dead project) | |
6672 | lt_prog_compiler_wl='-Wl,' | |
6673 | lt_prog_compiler_pic='-fpic' | |
6674 | lt_prog_compiler_static='-Bstatic' | |
6675 | ;; | |
6676 | ccc*) | |
6677 | lt_prog_compiler_wl='-Wl,' | |
6678 | # All Alpha code is PIC. | |
6679 | lt_prog_compiler_static='-non_shared' | |
6680 | ;; | |
6681 | *) | |
6682 | case `$CC -V 2>&1 | sed 5q` in | |
6683 | *Sun\ C*) | |
6684 | # Sun C 5.9 | |
6685 | lt_prog_compiler_pic='-KPIC' | |
6686 | lt_prog_compiler_static='-Bstatic' | |
6687 | lt_prog_compiler_wl='-Wl,' | |
6688 | ;; | |
6689 | *Sun\ F*) | |
6690 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
6691 | lt_prog_compiler_pic='-KPIC' | |
6692 | lt_prog_compiler_static='-Bstatic' | |
6693 | lt_prog_compiler_wl='' | |
6694 | ;; | |
6695 | esac | |
6696 | ;; | |
6697 | esac | |
6698 | ;; | |
6699 | ||
6700 | newsos6) | |
6701 | lt_prog_compiler_pic='-KPIC' | |
6702 | lt_prog_compiler_static='-Bstatic' | |
6703 | ;; | |
6704 | ||
6705 | *nto* | *qnx*) | |
6706 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6707 | # it will coredump. | |
6708 | lt_prog_compiler_pic='-fPIC -shared' | |
6709 | ;; | |
6710 | ||
6711 | osf3* | osf4* | osf5*) | |
6712 | lt_prog_compiler_wl='-Wl,' | |
6713 | # All OSF/1 code is PIC. | |
6714 | lt_prog_compiler_static='-non_shared' | |
6715 | ;; | |
6716 | ||
6717 | rdos*) | |
6718 | lt_prog_compiler_static='-non_shared' | |
6719 | ;; | |
6720 | ||
6721 | solaris*) | |
6722 | lt_prog_compiler_pic='-KPIC' | |
6723 | lt_prog_compiler_static='-Bstatic' | |
6724 | case $cc_basename in | |
6725 | f77* | f90* | f95*) | |
6726 | lt_prog_compiler_wl='-Qoption ld ';; | |
6727 | *) | |
6728 | lt_prog_compiler_wl='-Wl,';; | |
6729 | esac | |
6730 | ;; | |
6731 | ||
6732 | sunos4*) | |
6733 | lt_prog_compiler_wl='-Qoption ld ' | |
6734 | lt_prog_compiler_pic='-PIC' | |
6735 | lt_prog_compiler_static='-Bstatic' | |
6736 | ;; | |
6737 | ||
6738 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
6739 | lt_prog_compiler_wl='-Wl,' | |
6740 | lt_prog_compiler_pic='-KPIC' | |
6741 | lt_prog_compiler_static='-Bstatic' | |
6742 | ;; | |
6743 | ||
6744 | sysv4*MP*) | |
6745 | if test -d /usr/nec ;then | |
6746 | lt_prog_compiler_pic='-Kconform_pic' | |
6747 | lt_prog_compiler_static='-Bstatic' | |
6748 | fi | |
6749 | ;; | |
6750 | ||
6751 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
6752 | lt_prog_compiler_wl='-Wl,' | |
6753 | lt_prog_compiler_pic='-KPIC' | |
6754 | lt_prog_compiler_static='-Bstatic' | |
6755 | ;; | |
6756 | ||
6757 | unicos*) | |
6758 | lt_prog_compiler_wl='-Wl,' | |
6759 | lt_prog_compiler_can_build_shared=no | |
6760 | ;; | |
6761 | ||
6762 | uts4*) | |
6763 | lt_prog_compiler_pic='-pic' | |
6764 | lt_prog_compiler_static='-Bstatic' | |
6765 | ;; | |
6766 | ||
6767 | *) | |
6768 | lt_prog_compiler_can_build_shared=no | |
6769 | ;; | |
6770 | esac | |
6771 | fi | |
6772 | ||
6773 | case $host_os in | |
6774 | # For platforms which do not support PIC, -DPIC is meaningless: | |
6775 | *djgpp*) | |
6776 | lt_prog_compiler_pic= | |
6777 | ;; | |
6778 | *) | |
6779 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
6780 | ;; | |
6781 | esac | |
6782 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
6783 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
6784 | ||
6785 | ||
6786 | ||
6787 | ||
6788 | ||
6789 | ||
6790 | # | |
6791 | # Check to make sure the PIC flag actually works. | |
6792 | # | |
6793 | if test -n "$lt_prog_compiler_pic"; then | |
6794 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
6795 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
6796 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
6797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6798 | else | |
6799 | lt_prog_compiler_pic_works=no | |
6800 | ac_outfile=conftest.$ac_objext | |
6801 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6802 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
6803 | # Insert the option either (1) after the last *FLAGS variable, or | |
6804 | # (2) before a word containing "conftest.", or (3) at the end. | |
6805 | # Note that $ac_compile itself does not contain backslashes and begins | |
6806 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6807 | # The option is referenced via a variable to avoid confusing sed. | |
6808 | lt_compile=`echo "$ac_compile" | $SED \ | |
6809 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6810 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6811 | -e 's:$: $lt_compiler_flag:'` | |
5a037dbd | 6812 | (eval echo "\"\$as_me:6812: $lt_compile\"" >&5) |
542f9784 | 6813 | (eval "$lt_compile" 2>conftest.err) |
6814 | ac_status=$? | |
6815 | cat conftest.err >&5 | |
5a037dbd | 6816 | echo "$as_me:6816: \$? = $ac_status" >&5 |
542f9784 | 6817 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6818 | # The compiler can only warn and ignore the option if not recognized | |
6819 | # So say no if there are warnings other than the usual output. | |
6820 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6821 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6822 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6823 | lt_prog_compiler_pic_works=yes | |
6824 | fi | |
6825 | fi | |
6826 | $RM conftest* | |
6827 | ||
6828 | fi | |
6829 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
6830 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
6831 | ||
6832 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
6833 | case $lt_prog_compiler_pic in | |
6834 | "" | " "*) ;; | |
6835 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
6836 | esac | |
6837 | else | |
6838 | lt_prog_compiler_pic= | |
6839 | lt_prog_compiler_can_build_shared=no | |
6840 | fi | |
6841 | ||
6842 | fi | |
6843 | ||
6844 | ||
6845 | ||
6846 | ||
6847 | ||
6848 | ||
6849 | # | |
6850 | # Check to make sure the static flag actually works. | |
6851 | # | |
6852 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
6853 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
6854 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
6855 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
6856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6857 | else | |
6858 | lt_prog_compiler_static_works=no | |
6859 | save_LDFLAGS="$LDFLAGS" | |
6860 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
6861 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
6862 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
6863 | # The linker can only warn and ignore the option if not recognized | |
6864 | # So say no if there are warnings | |
6865 | if test -s conftest.err; then | |
6866 | # Append any errors to the config.log. | |
6867 | cat conftest.err 1>&5 | |
6868 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
6869 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6870 | if diff conftest.exp conftest.er2 >/dev/null; then | |
6871 | lt_prog_compiler_static_works=yes | |
6872 | fi | |
6873 | else | |
6874 | lt_prog_compiler_static_works=yes | |
6875 | fi | |
6876 | fi | |
6877 | $RM conftest* | |
6878 | LDFLAGS="$save_LDFLAGS" | |
6879 | ||
6880 | fi | |
6881 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
6882 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
6883 | ||
6884 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
6885 | : | |
6886 | else | |
6887 | lt_prog_compiler_static= | |
6888 | fi | |
6889 | ||
6890 | ||
6891 | ||
6892 | ||
6893 | ||
6894 | ||
6895 | ||
6896 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
6897 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
6898 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
6899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6900 | else | |
6901 | lt_cv_prog_compiler_c_o=no | |
6902 | $RM -r conftest 2>/dev/null | |
6903 | mkdir conftest | |
6904 | cd conftest | |
6905 | mkdir out | |
6906 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6907 | ||
6908 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
6909 | # Insert the option either (1) after the last *FLAGS variable, or | |
6910 | # (2) before a word containing "conftest.", or (3) at the end. | |
6911 | # Note that $ac_compile itself does not contain backslashes and begins | |
6912 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6913 | lt_compile=`echo "$ac_compile" | $SED \ | |
6914 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6915 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6916 | -e 's:$: $lt_compiler_flag:'` | |
5a037dbd | 6917 | (eval echo "\"\$as_me:6917: $lt_compile\"" >&5) |
542f9784 | 6918 | (eval "$lt_compile" 2>out/conftest.err) |
6919 | ac_status=$? | |
6920 | cat out/conftest.err >&5 | |
5a037dbd | 6921 | echo "$as_me:6921: \$? = $ac_status" >&5 |
542f9784 | 6922 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
6923 | then | |
6924 | # The compiler can only warn and ignore the option if not recognized | |
6925 | # So say no if there are warnings | |
6926 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
6927 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
6928 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
6929 | lt_cv_prog_compiler_c_o=yes | |
6930 | fi | |
6931 | fi | |
6932 | chmod u+w . 2>&5 | |
6933 | $RM conftest* | |
6934 | # SGI C++ compiler will create directory out/ii_files/ for | |
6935 | # template instantiation | |
6936 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
6937 | $RM out/* && rmdir out | |
6938 | cd .. | |
6939 | $RM -r conftest | |
6940 | $RM conftest* | |
6941 | ||
6942 | fi | |
6943 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
6944 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
6945 | ||
6946 | ||
6947 | ||
6948 | ||
6949 | ||
6950 | ||
6951 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
6952 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
6953 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
6954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6955 | else | |
6956 | lt_cv_prog_compiler_c_o=no | |
6957 | $RM -r conftest 2>/dev/null | |
6958 | mkdir conftest | |
6959 | cd conftest | |
6960 | mkdir out | |
6961 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6962 | ||
6963 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
6964 | # Insert the option either (1) after the last *FLAGS variable, or | |
6965 | # (2) before a word containing "conftest.", or (3) at the end. | |
6966 | # Note that $ac_compile itself does not contain backslashes and begins | |
6967 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6968 | lt_compile=`echo "$ac_compile" | $SED \ | |
6969 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6970 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6971 | -e 's:$: $lt_compiler_flag:'` | |
5a037dbd | 6972 | (eval echo "\"\$as_me:6972: $lt_compile\"" >&5) |
542f9784 | 6973 | (eval "$lt_compile" 2>out/conftest.err) |
6974 | ac_status=$? | |
6975 | cat out/conftest.err >&5 | |
5a037dbd | 6976 | echo "$as_me:6976: \$? = $ac_status" >&5 |
542f9784 | 6977 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
6978 | then | |
6979 | # The compiler can only warn and ignore the option if not recognized | |
6980 | # So say no if there are warnings | |
6981 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
6982 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
6983 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
6984 | lt_cv_prog_compiler_c_o=yes | |
6985 | fi | |
6986 | fi | |
6987 | chmod u+w . 2>&5 | |
6988 | $RM conftest* | |
6989 | # SGI C++ compiler will create directory out/ii_files/ for | |
6990 | # template instantiation | |
6991 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
6992 | $RM out/* && rmdir out | |
6993 | cd .. | |
6994 | $RM -r conftest | |
6995 | $RM conftest* | |
6996 | ||
6997 | fi | |
6998 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
6999 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
7000 | ||
7001 | ||
7002 | ||
7003 | ||
7004 | hard_links="nottested" | |
7005 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7006 | # do not overwrite the value of need_locks provided by the user | |
7007 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7008 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
7009 | hard_links=yes | |
7010 | $RM conftest* | |
7011 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7012 | touch conftest.a | |
7013 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7014 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7015 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7016 | echo "${ECHO_T}$hard_links" >&6 | |
7017 | if test "$hard_links" = no; then | |
7018 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7019 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7020 | need_locks=warn | |
7021 | fi | |
7022 | else | |
7023 | need_locks=no | |
7024 | fi | |
7025 | ||
7026 | ||
7027 | ||
7028 | ||
7029 | ||
7030 | ||
7031 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7032 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
7033 | ||
7034 | runpath_var= | |
7035 | allow_undefined_flag= | |
7036 | always_export_symbols=no | |
7037 | archive_cmds= | |
7038 | archive_expsym_cmds= | |
7039 | compiler_needs_object=no | |
7040 | enable_shared_with_static_runtimes=no | |
7041 | export_dynamic_flag_spec= | |
7042 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7043 | hardcode_automatic=no | |
7044 | hardcode_direct=no | |
7045 | hardcode_direct_absolute=no | |
7046 | hardcode_libdir_flag_spec= | |
7047 | hardcode_libdir_flag_spec_ld= | |
7048 | hardcode_libdir_separator= | |
7049 | hardcode_minus_L=no | |
7050 | hardcode_shlibpath_var=unsupported | |
7051 | inherit_rpath=no | |
7052 | link_all_deplibs=unknown | |
7053 | module_cmds= | |
7054 | module_expsym_cmds= | |
7055 | old_archive_from_new_cmds= | |
7056 | old_archive_from_expsyms_cmds= | |
7057 | thread_safe_flag_spec= | |
7058 | whole_archive_flag_spec= | |
7059 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7060 | # included in the symbol list | |
7061 | include_expsyms= | |
7062 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7063 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7064 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7065 | # as well as any symbol that contains `d'. | |
7066 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
7067 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7068 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7069 | # the symbol is explicitly referenced. Since portable code cannot | |
7070 | # rely on this symbol name, it's probably fine to never include it in | |
7071 | # preloaded symbol tables. | |
7072 | extract_expsyms_cmds= | |
7073 | ||
7074 | case $host_os in | |
7075 | cygwin* | mingw* | pw32*) | |
7076 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7077 | # When not using gcc, we currently assume that we are using | |
7078 | # Microsoft Visual C++. | |
7079 | if test "$GCC" != yes; then | |
7080 | with_gnu_ld=no | |
7081 | fi | |
7082 | ;; | |
7083 | interix*) | |
7084 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7085 | with_gnu_ld=yes | |
7086 | ;; | |
7087 | openbsd*) | |
7088 | with_gnu_ld=no | |
7089 | ;; | |
7090 | esac | |
7091 | ||
7092 | ld_shlibs=yes | |
7093 | if test "$with_gnu_ld" = yes; then | |
7094 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7095 | wlarc='${wl}' | |
7096 | ||
7097 | # Set some defaults for GNU ld with shared library support. These | |
7098 | # are reset later if shared libraries are not supported. Putting them | |
7099 | # here allows them to be overridden if necessary. | |
7100 | runpath_var=LD_RUN_PATH | |
7101 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7102 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7103 | # ancient GNU ld didn't support --whole-archive et. al. | |
7104 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7105 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7106 | else | |
7107 | whole_archive_flag_spec= | |
7108 | fi | |
7109 | supports_anon_versioning=no | |
7110 | case `$LD -v 2>&1` in | |
7111 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7112 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7113 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7114 | *\ 2.11.*) ;; # other 2.11 versions | |
7115 | *) supports_anon_versioning=yes ;; | |
7116 | esac | |
7117 | ||
7118 | # See if GNU ld supports shared libraries. | |
7119 | case $host_os in | |
7120 | aix3* | aix4* | aix5*) | |
7121 | # On AIX/PPC, the GNU linker is very broken | |
7122 | if test "$host_cpu" != ia64; then | |
7123 | ld_shlibs=no | |
7124 | cat <<_LT_EOF 1>&2 | |
7125 | ||
7126 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7127 | *** to be unable to reliably create shared libraries on AIX. | |
7128 | *** Therefore, libtool is disabling shared libraries support. If you | |
7129 | *** really care for shared libraries, you may want to modify your PATH | |
7130 | *** so that a non-GNU linker is found, and then restart. | |
7131 | ||
7132 | _LT_EOF | |
7133 | fi | |
7134 | ;; | |
7135 | ||
7136 | amigaos*) | |
7137 | if test "$host_cpu" = m68k; then | |
7138 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
7139 | hardcode_libdir_flag_spec='-L$libdir' | |
7140 | hardcode_minus_L=yes | |
7141 | fi | |
7142 | ||
7143 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
7144 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
7145 | # to version 4, is to share data among multiple programs linked | |
7146 | # with the same dynamic library. Since this doesn't match the | |
7147 | # behavior of shared libraries on other platforms, we can't use | |
7148 | # them. | |
7149 | ld_shlibs=no | |
7150 | ;; | |
7151 | ||
7152 | beos*) | |
7153 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7154 | allow_undefined_flag=unsupported | |
7155 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7156 | # support --undefined. This deserves some investigation. FIXME | |
7157 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7158 | else | |
7159 | ld_shlibs=no | |
7160 | fi | |
7161 | ;; | |
7162 | ||
7163 | cygwin* | mingw* | pw32*) | |
7164 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7165 | # as there is no search path for DLLs. | |
7166 | hardcode_libdir_flag_spec='-L$libdir' | |
7167 | allow_undefined_flag=unsupported | |
7168 | always_export_symbols=no | |
7169 | enable_shared_with_static_runtimes=yes | |
7170 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7171 | ||
7172 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7173 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7174 | # If the export-symbols file already is a .def file (1st line | |
7175 | # is EXPORTS), use it as is; otherwise, prepend... | |
7176 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7177 | cp $export_symbols $output_objdir/$soname.def; | |
7178 | else | |
7179 | echo EXPORTS > $output_objdir/$soname.def; | |
7180 | cat $export_symbols >> $output_objdir/$soname.def; | |
7181 | fi~ | |
7182 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7183 | else | |
7184 | ld_shlibs=no | |
7185 | fi | |
7186 | ;; | |
7187 | ||
7188 | interix[3-9]*) | |
7189 | hardcode_direct=no | |
7190 | hardcode_shlibpath_var=no | |
7191 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7192 | export_dynamic_flag_spec='${wl}-E' | |
7193 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7194 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7195 | # default) and relocated if they conflict, which is a slow very memory | |
7196 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7197 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7198 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7199 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7200 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7201 | ;; | |
7202 | ||
7203 | gnu* | linux* | tpf* | k*bsd*-gnu) | |
7204 | tmp_diet=no | |
7205 | if test "$host_os" = linux-dietlibc; then | |
7206 | case $cc_basename in | |
7207 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7208 | esac | |
7209 | fi | |
7210 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7211 | && test "$tmp_diet" = no | |
7212 | then | |
7213 | tmp_addflag= | |
7214 | case $cc_basename,$host_cpu in | |
7215 | pgcc*) # Portland Group C compiler | |
7216 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7217 | tmp_addflag=' $pic_flag' | |
7218 | ;; | |
7219 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7220 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7221 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7222 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7223 | tmp_addflag=' -i_dynamic' ;; | |
7224 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7225 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7226 | ifc* | ifort*) # Intel Fortran compiler | |
7227 | tmp_addflag=' -nofor_main' ;; | |
7228 | esac | |
7229 | case `$CC -V 2>&1 | sed 5q` in | |
7230 | *Sun\ C*) # Sun C 5.9 | |
7231 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7232 | compiler_needs_object=yes | |
7233 | tmp_sharedflag='-G' ;; | |
7234 | *Sun\ F*) # Sun Fortran 8.3 | |
7235 | tmp_sharedflag='-G' ;; | |
7236 | *) | |
7237 | tmp_sharedflag='-shared' ;; | |
7238 | esac | |
7239 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7240 | ||
7241 | if test "x$supports_anon_versioning" = xyes; then | |
7242 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7243 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7244 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7245 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7246 | fi | |
7247 | else | |
7248 | ld_shlibs=no | |
7249 | fi | |
7250 | ;; | |
7251 | ||
7252 | netbsd*) | |
7253 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7254 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7255 | wlarc= | |
7256 | else | |
7257 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7258 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7259 | fi | |
7260 | ;; | |
7261 | ||
7262 | solaris*) | |
7263 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7264 | ld_shlibs=no | |
7265 | cat <<_LT_EOF 1>&2 | |
7266 | ||
7267 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7268 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7269 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7270 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7271 | *** your PATH or compiler configuration so that the native linker is | |
7272 | *** used, and then restart. | |
7273 | ||
7274 | _LT_EOF | |
7275 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7276 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7277 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7278 | else | |
7279 | ld_shlibs=no | |
7280 | fi | |
7281 | ;; | |
7282 | ||
7283 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7284 | case `$LD -v 2>&1` in | |
7285 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7286 | ld_shlibs=no | |
7287 | cat <<_LT_EOF 1>&2 | |
7288 | ||
7289 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7290 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7291 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7292 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7293 | *** your PATH or compiler configuration so that the native linker is | |
7294 | *** used, and then restart. | |
7295 | ||
7296 | _LT_EOF | |
7297 | ;; | |
7298 | *) | |
7299 | # For security reasons, it is highly recommended that you always | |
7300 | # use absolute paths for naming shared libraries, and exclude the | |
7301 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7302 | # requires that you compile everything twice, which is a pain. | |
7303 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7304 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7305 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7306 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7307 | else | |
7308 | ld_shlibs=no | |
7309 | fi | |
7310 | ;; | |
7311 | esac | |
7312 | ;; | |
7313 | ||
7314 | sunos4*) | |
7315 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7316 | wlarc= | |
7317 | hardcode_direct=yes | |
7318 | hardcode_shlibpath_var=no | |
7319 | ;; | |
7320 | ||
7321 | *) | |
7322 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7323 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7324 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7325 | else | |
7326 | ld_shlibs=no | |
7327 | fi | |
7328 | ;; | |
7329 | esac | |
7330 | ||
7331 | if test "$ld_shlibs" = no; then | |
7332 | runpath_var= | |
7333 | hardcode_libdir_flag_spec= | |
7334 | export_dynamic_flag_spec= | |
7335 | whole_archive_flag_spec= | |
7336 | fi | |
7337 | else | |
7338 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7339 | case $host_os in | |
7340 | aix3*) | |
7341 | allow_undefined_flag=unsupported | |
7342 | always_export_symbols=yes | |
7343 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
7344 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7345 | # are no directories specified by -L. | |
7346 | hardcode_minus_L=yes | |
7347 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7348 | # Neither direct hardcoding nor static linking is supported with a | |
7349 | # broken collect2. | |
7350 | hardcode_direct=unsupported | |
7351 | fi | |
7352 | ;; | |
7353 | ||
7354 | aix4* | aix5*) | |
7355 | if test "$host_cpu" = ia64; then | |
7356 | # On IA64, the linker does run time linking by default, so we don't | |
7357 | # have to do anything special. | |
7358 | aix_use_runtimelinking=no | |
7359 | exp_sym_flag='-Bexport' | |
7360 | no_entry_flag="" | |
7361 | else | |
7362 | # If we're using GNU nm, then we don't want the "-C" option. | |
7363 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7364 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
7365 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
7366 | else | |
7367 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
7368 | fi | |
7369 | aix_use_runtimelinking=no | |
7370 | ||
7371 | # Test if we are trying to use run time linking or normal | |
7372 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7373 | # need to do runtime linking. | |
7374 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
7375 | for ld_flag in $LDFLAGS; do | |
7376 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7377 | aix_use_runtimelinking=yes | |
7378 | break | |
7379 | fi | |
7380 | done | |
7381 | ;; | |
7382 | esac | |
7383 | ||
7384 | exp_sym_flag='-bexport' | |
7385 | no_entry_flag='-bnoentry' | |
7386 | fi | |
7387 | ||
7388 | # When large executables or shared objects are built, AIX ld can | |
7389 | # have problems creating the table of contents. If linking a library | |
7390 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7391 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7392 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7393 | ||
7394 | archive_cmds='' | |
7395 | hardcode_direct=yes | |
7396 | hardcode_direct_absolute=yes | |
7397 | hardcode_libdir_separator=':' | |
7398 | link_all_deplibs=yes | |
7399 | file_list_spec='${wl}-f,' | |
7400 | ||
7401 | if test "$GCC" = yes; then | |
7402 | case $host_os in aix4.[012]|aix4.[012].*) | |
7403 | # We only want to do this on AIX 4.2 and lower, the check | |
7404 | # below for broken collect2 doesn't work under 4.3+ | |
7405 | collect2name=`${CC} -print-prog-name=collect2` | |
7406 | if test -f "$collect2name" && | |
7407 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
7408 | then | |
7409 | # We have reworked collect2 | |
7410 | : | |
7411 | else | |
7412 | # We have old collect2 | |
7413 | hardcode_direct=unsupported | |
7414 | # It fails to find uninstalled libraries when the uninstalled | |
7415 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7416 | # to unsupported forces relinking | |
7417 | hardcode_minus_L=yes | |
7418 | hardcode_libdir_flag_spec='-L$libdir' | |
7419 | hardcode_libdir_separator= | |
7420 | fi | |
7421 | ;; | |
7422 | esac | |
7423 | shared_flag='-shared' | |
7424 | if test "$aix_use_runtimelinking" = yes; then | |
7425 | shared_flag="$shared_flag "'${wl}-G' | |
7426 | fi | |
7427 | else | |
7428 | # not using gcc | |
7429 | if test "$host_cpu" = ia64; then | |
7430 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7431 | # chokes on -Wl,-G. The following line is correct: | |
7432 | shared_flag='-G' | |
7433 | else | |
7434 | if test "$aix_use_runtimelinking" = yes; then | |
7435 | shared_flag='${wl}-G' | |
7436 | else | |
7437 | shared_flag='${wl}-bM:SRE' | |
7438 | fi | |
7439 | fi | |
7440 | fi | |
7441 | ||
7442 | # It seems that -bexpall does not export symbols beginning with | |
7443 | # underscore (_), so it is better to generate a list of symbols to export. | |
7444 | always_export_symbols=yes | |
7445 | if test "$aix_use_runtimelinking" = yes; then | |
7446 | # Warning - without using the other runtime loading flags (-brtl), | |
7447 | # -berok will link without error, but may produce a broken library. | |
7448 | allow_undefined_flag='-berok' | |
7449 | # Determine the default libpath from the value encoded in an | |
7450 | # empty executable. | |
7451 | if test x$gcc_no_link = xyes; then | |
7452 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7453 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7454 | { (exit 1); exit 1; }; } | |
7455 | fi | |
7456 | cat >conftest.$ac_ext <<_ACEOF | |
7457 | /* confdefs.h. */ | |
7458 | _ACEOF | |
7459 | cat confdefs.h >>conftest.$ac_ext | |
7460 | cat >>conftest.$ac_ext <<_ACEOF | |
7461 | /* end confdefs.h. */ | |
7462 | ||
7463 | int | |
7464 | main () | |
7465 | { | |
7466 | ||
7467 | ; | |
7468 | return 0; | |
7469 | } | |
7470 | _ACEOF | |
7471 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7473 | (eval $ac_link) 2>conftest.er1 | |
7474 | ac_status=$? | |
7475 | grep -v '^ *+' conftest.er1 >conftest.err | |
7476 | rm -f conftest.er1 | |
7477 | cat conftest.err >&5 | |
7478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7479 | (exit $ac_status); } && | |
7480 | { ac_try='test -z "$ac_c_werror_flag" | |
7481 | || test ! -s conftest.err' | |
7482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7483 | (eval $ac_try) 2>&5 | |
7484 | ac_status=$? | |
7485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7486 | (exit $ac_status); }; } && | |
7487 | { ac_try='test -s conftest$ac_exeext' | |
7488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7489 | (eval $ac_try) 2>&5 | |
7490 | ac_status=$? | |
7491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7492 | (exit $ac_status); }; }; then | |
7493 | ||
7494 | lt_aix_libpath_sed=' | |
7495 | /Import File Strings/,/^$/ { | |
7496 | /^0/ { | |
7497 | s/^0 *\(.*\)$/\1/ | |
7498 | p | |
7499 | } | |
7500 | }' | |
7501 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7502 | # Check for a 64-bit object if we didn't find anything. | |
7503 | if test -z "$aix_libpath"; then | |
7504 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7505 | fi | |
7506 | else | |
7507 | echo "$as_me: failed program was:" >&5 | |
7508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7509 | ||
7510 | fi | |
7511 | rm -f conftest.err conftest.$ac_objext \ | |
7512 | conftest$ac_exeext conftest.$ac_ext | |
7513 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7514 | ||
7515 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7516 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
7517 | else | |
7518 | if test "$host_cpu" = ia64; then | |
7519 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7520 | allow_undefined_flag="-z nodefs" | |
7521 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
7522 | else | |
7523 | # Determine the default libpath from the value encoded in an | |
7524 | # empty executable. | |
7525 | if test x$gcc_no_link = xyes; then | |
7526 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7527 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7528 | { (exit 1); exit 1; }; } | |
7529 | fi | |
7530 | cat >conftest.$ac_ext <<_ACEOF | |
7531 | /* confdefs.h. */ | |
7532 | _ACEOF | |
7533 | cat confdefs.h >>conftest.$ac_ext | |
7534 | cat >>conftest.$ac_ext <<_ACEOF | |
7535 | /* end confdefs.h. */ | |
7536 | ||
7537 | int | |
7538 | main () | |
7539 | { | |
7540 | ||
7541 | ; | |
7542 | return 0; | |
7543 | } | |
7544 | _ACEOF | |
7545 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7547 | (eval $ac_link) 2>conftest.er1 | |
7548 | ac_status=$? | |
7549 | grep -v '^ *+' conftest.er1 >conftest.err | |
7550 | rm -f conftest.er1 | |
7551 | cat conftest.err >&5 | |
7552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7553 | (exit $ac_status); } && | |
7554 | { ac_try='test -z "$ac_c_werror_flag" | |
7555 | || test ! -s conftest.err' | |
7556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7557 | (eval $ac_try) 2>&5 | |
7558 | ac_status=$? | |
7559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7560 | (exit $ac_status); }; } && | |
7561 | { ac_try='test -s conftest$ac_exeext' | |
7562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7563 | (eval $ac_try) 2>&5 | |
7564 | ac_status=$? | |
7565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7566 | (exit $ac_status); }; }; then | |
7567 | ||
7568 | lt_aix_libpath_sed=' | |
7569 | /Import File Strings/,/^$/ { | |
7570 | /^0/ { | |
7571 | s/^0 *\(.*\)$/\1/ | |
7572 | p | |
7573 | } | |
7574 | }' | |
7575 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7576 | # Check for a 64-bit object if we didn't find anything. | |
7577 | if test -z "$aix_libpath"; then | |
7578 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7579 | fi | |
7580 | else | |
7581 | echo "$as_me: failed program was:" >&5 | |
7582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7583 | ||
7584 | fi | |
7585 | rm -f conftest.err conftest.$ac_objext \ | |
7586 | conftest$ac_exeext conftest.$ac_ext | |
7587 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7588 | ||
7589 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7590 | # Warning - without using the other run time loading flags, | |
7591 | # -berok will link without error, but may produce a broken library. | |
7592 | no_undefined_flag=' ${wl}-bernotok' | |
7593 | allow_undefined_flag=' ${wl}-berok' | |
7594 | # Exported symbols can be pulled into shared objects from archives | |
7595 | whole_archive_flag_spec='$convenience' | |
7596 | archive_cmds_need_lc=yes | |
7597 | # This is similar to how AIX traditionally builds its shared libraries. | |
7598 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
7599 | fi | |
7600 | fi | |
7601 | ;; | |
7602 | ||
7603 | amigaos*) | |
7604 | if test "$host_cpu" = m68k; then | |
7605 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
7606 | hardcode_libdir_flag_spec='-L$libdir' | |
7607 | hardcode_minus_L=yes | |
7608 | fi | |
7609 | # see comment about different semantics on the GNU ld section | |
7610 | ld_shlibs=no | |
7611 | ;; | |
7612 | ||
7613 | bsdi[45]*) | |
7614 | export_dynamic_flag_spec=-rdynamic | |
7615 | ;; | |
7616 | ||
7617 | cygwin* | mingw* | pw32*) | |
7618 | # When not using gcc, we currently assume that we are using | |
7619 | # Microsoft Visual C++. | |
7620 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7621 | # no search path for DLLs. | |
7622 | hardcode_libdir_flag_spec=' ' | |
7623 | allow_undefined_flag=unsupported | |
7624 | # Tell ltmain to make .lib files, not .a files. | |
7625 | libext=lib | |
7626 | # Tell ltmain to make .dll files, not .so files. | |
7627 | shrext_cmds=".dll" | |
7628 | # FIXME: Setting linknames here is a bad hack. | |
7629 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7630 | # The linker will automatically build a .lib file if we build a DLL. | |
7631 | old_archive_from_new_cmds='true' | |
7632 | # FIXME: Should let the user specify the lib program. | |
7633 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
7634 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7635 | enable_shared_with_static_runtimes=yes | |
7636 | ;; | |
7637 | ||
7638 | darwin* | rhapsody*) | |
7639 | case $host_os in | |
7640 | rhapsody* | darwin1.[012]) | |
7641 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
7642 | ;; | |
7643 | *) # Darwin 1.3 on | |
7644 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | |
7645 | 10.[012]) | |
7646 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
7647 | ;; | |
7648 | 10.*) | |
7649 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
7650 | ;; | |
7651 | esac | |
7652 | ;; | |
7653 | esac | |
7654 | archive_cmds_need_lc=no | |
7655 | hardcode_direct=no | |
7656 | hardcode_automatic=yes | |
7657 | hardcode_shlibpath_var=unsupported | |
7658 | whole_archive_flag_spec='' | |
7659 | link_all_deplibs=yes | |
7660 | if test "$GCC" = yes ; then | |
7661 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
7662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7663 | else | |
7664 | lt_cv_apple_cc_single_mod=no | |
7665 | if test -z "${LT_MULTI_MODULE}"; then | |
7666 | # By default we will add the -single_module flag. You can override | |
7667 | # by either setting the environment variable LT_MULTI_MODULE | |
7668 | # non-empty at configure time, or by adding -multi-module to the | |
7669 | # link flags. | |
7670 | echo "int foo(void){return 1;}" > conftest.c | |
7671 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7672 | -dynamiclib ${wl}-single_module conftest.c | |
7673 | if test -f libconftest.dylib; then | |
7674 | lt_cv_apple_cc_single_mod=yes | |
7675 | rm libconftest.dylib | |
7676 | fi | |
7677 | rm conftest.$ac_ext | |
7678 | fi | |
7679 | fi | |
7680 | ||
7681 | output_verbose_link_cmd=echo | |
7682 | if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then | |
7683 | archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
7684 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7685 | else | |
7686 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
7687 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7688 | fi | |
7689 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
7690 | module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7691 | else | |
7692 | case $cc_basename in | |
7693 | xlc*) | |
7694 | output_verbose_link_cmd=echo | |
7695 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring' | |
7696 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
7697 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
7698 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7699 | module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7700 | ;; | |
7701 | *) | |
7702 | ld_shlibs=no | |
7703 | ;; | |
7704 | esac | |
7705 | fi | |
7706 | ;; | |
7707 | ||
7708 | dgux*) | |
7709 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7710 | hardcode_libdir_flag_spec='-L$libdir' | |
7711 | hardcode_shlibpath_var=no | |
7712 | ;; | |
7713 | ||
7714 | freebsd1*) | |
7715 | ld_shlibs=no | |
7716 | ;; | |
7717 | ||
7718 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7719 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
7720 | # does not break anything, and helps significantly (at the cost of a little | |
7721 | # extra space). | |
7722 | freebsd2.2*) | |
7723 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
7724 | hardcode_libdir_flag_spec='-R$libdir' | |
7725 | hardcode_direct=yes | |
7726 | hardcode_shlibpath_var=no | |
7727 | ;; | |
7728 | ||
7729 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7730 | freebsd2*) | |
7731 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7732 | hardcode_direct=yes | |
7733 | hardcode_minus_L=yes | |
7734 | hardcode_shlibpath_var=no | |
7735 | ;; | |
7736 | ||
7737 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
7738 | freebsd* | dragonfly*) | |
7739 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
7740 | hardcode_libdir_flag_spec='-R$libdir' | |
7741 | hardcode_direct=yes | |
7742 | hardcode_shlibpath_var=no | |
7743 | ;; | |
7744 | ||
7745 | hpux9*) | |
7746 | if test "$GCC" = yes; then | |
7747 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
7748 | else | |
7749 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
7750 | fi | |
7751 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7752 | hardcode_libdir_separator=: | |
7753 | hardcode_direct=yes | |
7754 | ||
7755 | # hardcode_minus_L: Not really in the search PATH, | |
7756 | # but as the default location of the library. | |
7757 | hardcode_minus_L=yes | |
7758 | export_dynamic_flag_spec='${wl}-E' | |
7759 | ;; | |
7760 | ||
7761 | hpux10*) | |
7762 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7763 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7764 | else | |
7765 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
7766 | fi | |
7767 | if test "$with_gnu_ld" = no; then | |
7768 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7769 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
7770 | hardcode_libdir_separator=: | |
7771 | hardcode_direct=yes | |
7772 | hardcode_direct_absolute=yes | |
7773 | export_dynamic_flag_spec='${wl}-E' | |
7774 | # hardcode_minus_L: Not really in the search PATH, | |
7775 | # but as the default location of the library. | |
7776 | hardcode_minus_L=yes | |
7777 | fi | |
7778 | ;; | |
7779 | ||
7780 | hpux11*) | |
7781 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7782 | case $host_cpu in | |
7783 | hppa*64*) | |
7784 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7785 | ;; | |
7786 | ia64*) | |
7787 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
7788 | ;; | |
7789 | *) | |
7790 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7791 | ;; | |
7792 | esac | |
7793 | else | |
7794 | case $host_cpu in | |
7795 | hppa*64*) | |
7796 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7797 | ;; | |
7798 | ia64*) | |
7799 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
7800 | ;; | |
7801 | *) | |
7802 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7803 | ;; | |
7804 | esac | |
7805 | fi | |
7806 | if test "$with_gnu_ld" = no; then | |
7807 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7808 | hardcode_libdir_separator=: | |
7809 | ||
7810 | case $host_cpu in | |
7811 | hppa*64*|ia64*) | |
7812 | hardcode_direct=no | |
7813 | hardcode_shlibpath_var=no | |
7814 | ;; | |
7815 | *) | |
7816 | hardcode_direct=yes | |
7817 | hardcode_direct_absolute=yes | |
7818 | export_dynamic_flag_spec='${wl}-E' | |
7819 | ||
7820 | # hardcode_minus_L: Not really in the search PATH, | |
7821 | # but as the default location of the library. | |
7822 | hardcode_minus_L=yes | |
7823 | ;; | |
7824 | esac | |
7825 | fi | |
7826 | ;; | |
7827 | ||
7828 | irix5* | irix6* | nonstopux*) | |
7829 | if test "$GCC" = yes; then | |
7830 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
7831 | # Try to use the -exported_symbol ld option, if it does not | |
7832 | # work, assume that -exports_file does not work either and | |
7833 | # implicitly export all symbols. | |
7834 | save_LDFLAGS="$LDFLAGS" | |
7835 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
7836 | if test x$gcc_no_link = xyes; then | |
7837 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7838 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7839 | { (exit 1); exit 1; }; } | |
7840 | fi | |
7841 | cat >conftest.$ac_ext <<_ACEOF | |
7842 | int foo(void) {} | |
7843 | _ACEOF | |
7844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7846 | (eval $ac_link) 2>conftest.er1 | |
7847 | ac_status=$? | |
7848 | grep -v '^ *+' conftest.er1 >conftest.err | |
7849 | rm -f conftest.er1 | |
7850 | cat conftest.err >&5 | |
7851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7852 | (exit $ac_status); } && | |
7853 | { ac_try='test -z "$ac_c_werror_flag" | |
7854 | || test ! -s conftest.err' | |
7855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7856 | (eval $ac_try) 2>&5 | |
7857 | ac_status=$? | |
7858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7859 | (exit $ac_status); }; } && | |
7860 | { ac_try='test -s conftest$ac_exeext' | |
7861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7862 | (eval $ac_try) 2>&5 | |
7863 | ac_status=$? | |
7864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7865 | (exit $ac_status); }; }; then | |
7866 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
7867 | ||
7868 | else | |
7869 | echo "$as_me: failed program was:" >&5 | |
7870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7871 | ||
7872 | fi | |
7873 | rm -f conftest.err conftest.$ac_objext \ | |
7874 | conftest$ac_exeext conftest.$ac_ext | |
7875 | LDFLAGS="$save_LDFLAGS" | |
7876 | else | |
7877 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
7878 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
7879 | fi | |
7880 | archive_cmds_need_lc='no' | |
7881 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7882 | hardcode_libdir_separator=: | |
7883 | inherit_rpath=yes | |
7884 | link_all_deplibs=yes | |
7885 | ;; | |
7886 | ||
7887 | netbsd*) | |
7888 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7889 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
7890 | else | |
7891 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
7892 | fi | |
7893 | hardcode_libdir_flag_spec='-R$libdir' | |
7894 | hardcode_direct=yes | |
7895 | hardcode_shlibpath_var=no | |
7896 | ;; | |
7897 | ||
7898 | newsos6) | |
7899 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7900 | hardcode_direct=yes | |
7901 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7902 | hardcode_libdir_separator=: | |
7903 | hardcode_shlibpath_var=no | |
7904 | ;; | |
7905 | ||
7906 | *nto* | *qnx*) | |
7907 | ;; | |
7908 | ||
7909 | openbsd*) | |
7910 | hardcode_direct=yes | |
7911 | hardcode_shlibpath_var=no | |
7912 | hardcode_direct_absolute=yes | |
7913 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7914 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
7915 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
7916 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7917 | export_dynamic_flag_spec='${wl}-E' | |
7918 | else | |
7919 | case $host_os in | |
7920 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
7921 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7922 | hardcode_libdir_flag_spec='-R$libdir' | |
7923 | ;; | |
7924 | *) | |
7925 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
7926 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7927 | ;; | |
7928 | esac | |
7929 | fi | |
7930 | ;; | |
7931 | ||
7932 | os2*) | |
7933 | hardcode_libdir_flag_spec='-L$libdir' | |
7934 | hardcode_minus_L=yes | |
7935 | allow_undefined_flag=unsupported | |
7936 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
7937 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
7938 | ;; | |
7939 | ||
7940 | osf3*) | |
7941 | if test "$GCC" = yes; then | |
7942 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
7943 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
7944 | else | |
7945 | allow_undefined_flag=' -expect_unresolved \*' | |
7946 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
7947 | fi | |
7948 | archive_cmds_need_lc='no' | |
7949 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7950 | hardcode_libdir_separator=: | |
7951 | ;; | |
7952 | ||
7953 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
7954 | if test "$GCC" = yes; then | |
7955 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
7956 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
7957 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7958 | else | |
7959 | allow_undefined_flag=' -expect_unresolved \*' | |
7960 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
7961 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
7962 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
7963 | ||
7964 | # Both c and cxx compiler support -rpath directly | |
7965 | hardcode_libdir_flag_spec='-rpath $libdir' | |
7966 | fi | |
7967 | archive_cmds_need_lc='no' | |
7968 | hardcode_libdir_separator=: | |
7969 | ;; | |
7970 | ||
7971 | solaris*) | |
7972 | no_undefined_flag=' -z defs' | |
7973 | if test "$GCC" = yes; then | |
7974 | wlarc='${wl}' | |
7975 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7976 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
7977 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
7978 | else | |
7979 | case `$CC -V 2>&1` in | |
7980 | *"Compilers 5.0"*) | |
7981 | wlarc='' | |
7982 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7983 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
7984 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
7985 | ;; | |
7986 | *) | |
7987 | wlarc='${wl}' | |
7988 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
7989 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
7990 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
7991 | ;; | |
7992 | esac | |
7993 | fi | |
7994 | hardcode_libdir_flag_spec='-R$libdir' | |
7995 | hardcode_shlibpath_var=no | |
7996 | case $host_os in | |
7997 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
7998 | *) | |
7999 | # The compiler driver will combine and reorder linker options, | |
8000 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8001 | # but is careful enough not to reorder. | |
8002 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8003 | if test "$GCC" = yes; then | |
8004 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8005 | else | |
8006 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8007 | fi | |
8008 | ;; | |
8009 | esac | |
8010 | link_all_deplibs=yes | |
8011 | ;; | |
8012 | ||
8013 | sunos4*) | |
8014 | if test "x$host_vendor" = xsequent; then | |
8015 | # Use $CC to link under sequent, because it throws in some extra .o | |
8016 | # files that make .init and .fini sections work. | |
8017 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8018 | else | |
8019 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8020 | fi | |
8021 | hardcode_libdir_flag_spec='-L$libdir' | |
8022 | hardcode_direct=yes | |
8023 | hardcode_minus_L=yes | |
8024 | hardcode_shlibpath_var=no | |
8025 | ;; | |
8026 | ||
8027 | sysv4) | |
8028 | case $host_vendor in | |
8029 | sni) | |
8030 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8031 | hardcode_direct=yes # is this really true??? | |
8032 | ;; | |
8033 | siemens) | |
8034 | ## LD is ld it makes a PLAMLIB | |
8035 | ## CC just makes a GrossModule. | |
8036 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8037 | reload_cmds='$CC -r -o $output$reload_objs' | |
8038 | hardcode_direct=no | |
8039 | ;; | |
8040 | motorola) | |
8041 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8042 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8043 | ;; | |
8044 | esac | |
8045 | runpath_var='LD_RUN_PATH' | |
8046 | hardcode_shlibpath_var=no | |
8047 | ;; | |
8048 | ||
8049 | sysv4.3*) | |
8050 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8051 | hardcode_shlibpath_var=no | |
8052 | export_dynamic_flag_spec='-Bexport' | |
8053 | ;; | |
8054 | ||
8055 | sysv4*MP*) | |
8056 | if test -d /usr/nec; then | |
8057 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8058 | hardcode_shlibpath_var=no | |
8059 | runpath_var=LD_RUN_PATH | |
8060 | hardcode_runpath_var=yes | |
8061 | ld_shlibs=yes | |
8062 | fi | |
8063 | ;; | |
8064 | ||
8065 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8066 | no_undefined_flag='${wl}-z,text' | |
8067 | archive_cmds_need_lc=no | |
8068 | hardcode_shlibpath_var=no | |
8069 | runpath_var='LD_RUN_PATH' | |
8070 | ||
8071 | if test "$GCC" = yes; then | |
8072 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8073 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8074 | else | |
8075 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8076 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8077 | fi | |
8078 | ;; | |
8079 | ||
8080 | sysv5* | sco3.2v5* | sco5v6*) | |
8081 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8082 | # link with -lc, and that would cause any symbols used from libc to | |
8083 | # always be unresolved, which means just about no library would | |
8084 | # ever link correctly. If we're not using GNU ld we use -z text | |
8085 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8086 | # as -z defs. | |
8087 | no_undefined_flag='${wl}-z,text' | |
8088 | allow_undefined_flag='${wl}-z,nodefs' | |
8089 | archive_cmds_need_lc=no | |
8090 | hardcode_shlibpath_var=no | |
8091 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8092 | hardcode_libdir_separator=':' | |
8093 | link_all_deplibs=yes | |
8094 | export_dynamic_flag_spec='${wl}-Bexport' | |
8095 | runpath_var='LD_RUN_PATH' | |
8096 | ||
8097 | if test "$GCC" = yes; then | |
8098 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8099 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8100 | else | |
8101 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8102 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8103 | fi | |
8104 | ;; | |
8105 | ||
8106 | uts4*) | |
8107 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8108 | hardcode_libdir_flag_spec='-L$libdir' | |
8109 | hardcode_shlibpath_var=no | |
8110 | ;; | |
8111 | ||
8112 | *) | |
8113 | ld_shlibs=no | |
8114 | ;; | |
8115 | esac | |
8116 | ||
8117 | if test x$host_vendor = xsni; then | |
8118 | case $host in | |
8119 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8120 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8121 | ;; | |
8122 | esac | |
8123 | fi | |
8124 | fi | |
8125 | ||
8126 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
8127 | echo "${ECHO_T}$ld_shlibs" >&6 | |
8128 | test "$ld_shlibs" = no && can_build_shared=no | |
8129 | ||
8130 | with_gnu_ld=$with_gnu_ld | |
8131 | ||
8132 | ||
8133 | ||
8134 | ||
8135 | ||
8136 | ||
8137 | ||
8138 | ||
8139 | ||
8140 | ||
8141 | ||
8142 | ||
8143 | ||
8144 | ||
8145 | ||
8146 | # | |
8147 | # Do we need to explicitly link libc? | |
8148 | # | |
8149 | case "x$archive_cmds_need_lc" in | |
8150 | x|xyes) | |
8151 | # Assume -lc should be added | |
8152 | archive_cmds_need_lc=yes | |
8153 | ||
8154 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8155 | case $archive_cmds in | |
8156 | *'~'*) | |
8157 | # FIXME: we may have to deal with multi-command sequences. | |
8158 | ;; | |
8159 | '$CC '*) | |
8160 | # Test whether the compiler implicitly links with -lc since on some | |
8161 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8162 | # to ld, don't add -lc before -lgcc. | |
8163 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
8164 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
8165 | $RM conftest* | |
8166 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8167 | ||
8168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8169 | (eval $ac_compile) 2>&5 | |
8170 | ac_status=$? | |
8171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8172 | (exit $ac_status); } 2>conftest.err; then | |
8173 | soname=conftest | |
8174 | lib=conftest | |
8175 | libobjs=conftest.$ac_objext | |
8176 | deplibs= | |
8177 | wl=$lt_prog_compiler_wl | |
8178 | pic_flag=$lt_prog_compiler_pic | |
8179 | compiler_flags=-v | |
8180 | linker_flags=-v | |
8181 | verstring= | |
8182 | output_objdir=. | |
8183 | libname=conftest | |
8184 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8185 | allow_undefined_flag= | |
8186 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
8187 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8188 | ac_status=$? | |
8189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8190 | (exit $ac_status); } | |
8191 | then | |
8192 | archive_cmds_need_lc=no | |
8193 | else | |
8194 | archive_cmds_need_lc=yes | |
8195 | fi | |
8196 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8197 | else | |
8198 | cat conftest.err 1>&5 | |
8199 | fi | |
8200 | $RM conftest* | |
8201 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
8202 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
8203 | ;; | |
8204 | esac | |
8205 | fi | |
8206 | ;; | |
8207 | esac | |
8208 | ||
8209 | ||
8210 | ||
8211 | ||
8212 | ||
8213 | ||
8214 | ||
8215 | ||
8216 | ||
8217 | ||
8218 | ||
8219 | ||
8220 | ||
8221 | ||
8222 | ||
8223 | ||
8224 | ||
8225 | ||
8226 | ||
8227 | ||
8228 | ||
8229 | ||
8230 | ||
8231 | ||
8232 | ||
8233 | ||
8234 | ||
8235 | ||
8236 | ||
8237 | ||
8238 | ||
8239 | ||
8240 | ||
8241 | ||
8242 | ||
8243 | ||
8244 | ||
8245 | ||
8246 | ||
8247 | ||
8248 | ||
8249 | ||
8250 | ||
8251 | ||
8252 | ||
8253 | ||
8254 | ||
8255 | ||
8256 | ||
8257 | ||
8258 | ||
8259 | ||
8260 | ||
8261 | ||
8262 | ||
8263 | ||
8264 | ||
8265 | ||
8266 | ||
8267 | ||
8268 | ||
8269 | ||
8270 | ||
8271 | ||
8272 | ||
8273 | ||
8274 | ||
8275 | ||
8276 | ||
8277 | ||
8278 | ||
8279 | ||
8280 | ||
8281 | ||
8282 | ||
8283 | ||
8284 | ||
8285 | ||
8286 | ||
8287 | ||
8288 | ||
8289 | ||
8290 | ||
8291 | ||
8292 | ||
8293 | ||
8294 | ||
8295 | ||
8296 | ||
8297 | ||
8298 | ||
8299 | ||
8300 | ||
8301 | ||
8302 | ||
8303 | ||
8304 | ||
8305 | ||
8306 | ||
8307 | ||
8308 | ||
8309 | ||
8310 | ||
8311 | ||
8312 | ||
8313 | ||
8314 | ||
8315 | ||
8316 | ||
8317 | ||
8318 | ||
8319 | ||
8320 | ||
8321 | ||
8322 | ||
8323 | ||
8324 | ||
8325 | ||
8326 | ||
8327 | ||
8328 | ||
8329 | ||
8330 | ||
8331 | ||
8332 | ||
8333 | ||
8334 | ||
8335 | ||
8336 | ||
8337 | ||
8338 | ||
8339 | ||
8340 | ||
8341 | ||
8342 | ||
8343 | ||
8344 | ||
8345 | ||
8346 | ||
8347 | ||
8348 | ||
8349 | ||
8350 | ||
8351 | ||
8352 | ||
8353 | ||
8354 | ||
8355 | ||
8356 | ||
8357 | ||
8358 | ||
8359 | ||
8360 | ||
8361 | ||
8362 | ||
8363 | ||
8364 | ||
8365 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
8366 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
8367 | withGCC=$GCC | |
8368 | if test "$withGCC" = yes; then | |
8369 | case $host_os in | |
8370 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8371 | *) lt_awk_arg="/^libraries:/" ;; | |
8372 | esac | |
8373 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8374 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8375 | # if the path contains ";" then we assume it to be the separator | |
8376 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8377 | # assumed that no part of a normal pathname contains ";" but that should | |
8378 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8379 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8380 | else | |
8381 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8382 | fi | |
8383 | # Ok, now we have the path, separated by spaces, we can step through it | |
8384 | # and add multilib dir if necessary. | |
8385 | lt_tmp_lt_search_path_spec= | |
8386 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8387 | for lt_sys_path in $lt_search_path_spec; do | |
8388 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8389 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
8390 | else | |
8391 | test -d "$lt_sys_path" && \ | |
8392 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
8393 | fi | |
8394 | done | |
8395 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
8396 | BEGIN {RS=" "; FS="/|\n";} { | |
8397 | lt_foo=""; | |
8398 | lt_count=0; | |
8399 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
8400 | if ($lt_i != "" && $lt_i != ".") { | |
8401 | if ($lt_i == "..") { | |
8402 | lt_count++; | |
8403 | } else { | |
8404 | if (lt_count == 0) { | |
8405 | lt_foo="/" $lt_i lt_foo; | |
8406 | } else { | |
8407 | lt_count--; | |
8408 | } | |
8409 | } | |
8410 | } | |
8411 | } | |
8412 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
8413 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
8414 | }'` | |
8415 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
8416 | else | |
8417 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8418 | fi | |
8419 | library_names_spec= | |
8420 | libname_spec='lib$name' | |
8421 | soname_spec= | |
8422 | shrext_cmds=".so" | |
8423 | postinstall_cmds= | |
8424 | postuninstall_cmds= | |
8425 | finish_cmds= | |
8426 | finish_eval= | |
8427 | shlibpath_var= | |
8428 | shlibpath_overrides_runpath=unknown | |
8429 | version_type=none | |
8430 | dynamic_linker="$host_os ld.so" | |
8431 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8432 | need_lib_prefix=unknown | |
8433 | hardcode_into_libs=no | |
8434 | ||
8435 | # when you set need_version to no, make sure it does not cause -set_version | |
8436 | # flags to be left without arguments | |
8437 | need_version=unknown | |
8438 | ||
8439 | case $host_os in | |
8440 | aix3*) | |
8441 | version_type=linux | |
8442 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8443 | shlibpath_var=LIBPATH | |
8444 | ||
8445 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8446 | soname_spec='${libname}${release}${shared_ext}$major' | |
8447 | ;; | |
8448 | ||
8449 | aix4* | aix5*) | |
8450 | version_type=linux | |
8451 | need_lib_prefix=no | |
8452 | need_version=no | |
8453 | hardcode_into_libs=yes | |
8454 | if test "$host_cpu" = ia64; then | |
8455 | # AIX 5 supports IA64 | |
8456 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8457 | shlibpath_var=LD_LIBRARY_PATH | |
8458 | else | |
8459 | # With GCC up to 2.95.x, collect2 would create an import file | |
8460 | # for dependence libraries. The import file would start with | |
8461 | # the line `#! .'. This would cause the generated library to | |
8462 | # depend on `.', always an invalid library. This was fixed in | |
8463 | # development snapshots of GCC prior to 3.0. | |
8464 | case $host_os in | |
8465 | aix4 | aix4.[01] | aix4.[01].*) | |
8466 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8467 | echo ' yes ' | |
8468 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
8469 | : | |
8470 | else | |
8471 | can_build_shared=no | |
8472 | fi | |
8473 | ;; | |
8474 | esac | |
8475 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8476 | # soname into executable. Probably we can add versioning support to | |
8477 | # collect2, so additional links can be useful in future. | |
8478 | if test "$aix_use_runtimelinking" = yes; then | |
8479 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8480 | # instead of lib<name>.a to let people know that these are not | |
8481 | # typical AIX shared libraries. | |
8482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8483 | else | |
8484 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8485 | # and later when we are not doing run time linking. | |
8486 | library_names_spec='${libname}${release}.a $libname.a' | |
8487 | soname_spec='${libname}${release}${shared_ext}$major' | |
8488 | fi | |
8489 | shlibpath_var=LIBPATH | |
8490 | fi | |
8491 | ;; | |
8492 | ||
8493 | amigaos*) | |
8494 | if test "$host_cpu" = m68k; then | |
8495 | library_names_spec='$libname.ixlibrary $libname.a' | |
8496 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8497 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
8498 | else | |
8499 | dynamic_linker=no | |
8500 | fi | |
8501 | ;; | |
8502 | ||
8503 | beos*) | |
8504 | library_names_spec='${libname}${shared_ext}' | |
8505 | dynamic_linker="$host_os ld.so" | |
8506 | shlibpath_var=LIBRARY_PATH | |
8507 | ;; | |
8508 | ||
8509 | bsdi[45]*) | |
8510 | version_type=linux | |
8511 | need_version=no | |
8512 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8513 | soname_spec='${libname}${release}${shared_ext}$major' | |
8514 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8515 | shlibpath_var=LD_LIBRARY_PATH | |
8516 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8517 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8518 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8519 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8520 | # libtool to hard-code these into programs | |
8521 | ;; | |
8522 | ||
8523 | cygwin* | mingw* | pw32*) | |
8524 | version_type=windows | |
8525 | shrext_cmds=".dll" | |
8526 | need_version=no | |
8527 | need_lib_prefix=no | |
8528 | ||
8529 | case $withGCC,$host_os in | |
8530 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
8531 | library_names_spec='$libname.dll.a' | |
8532 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8533 | postinstall_cmds='base_file=`basename \${file}`~ | |
8534 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
8535 | dldir=$destdir/`dirname \$dlpath`~ | |
8536 | test -d \$dldir || mkdir -p \$dldir~ | |
8537 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8538 | chmod a+x \$dldir/$dlname~ | |
8539 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
8540 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
8541 | fi' | |
8542 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8543 | dlpath=$dir/\$dldll~ | |
8544 | $RM \$dlpath' | |
8545 | shlibpath_overrides_runpath=yes | |
8546 | ||
8547 | case $host_os in | |
8548 | cygwin*) | |
8549 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8550 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8551 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8552 | ;; | |
8553 | mingw*) | |
8554 | # MinGW DLLs use traditional 'lib' prefix | |
8555 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8556 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8557 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
8558 | # It is most probably a Windows format PATH printed by | |
8559 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8560 | # path with ; separators, and with drive letters. We can handle the | |
8561 | # drive letters (cygwin fileutils understands them), so leave them, | |
8562 | # especially as we might pass files found there to a mingw objdump, | |
8563 | # which wouldn't understand a cygwinified path. Ahh. | |
8564 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8565 | else | |
8566 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8567 | fi | |
8568 | ;; | |
8569 | pw32*) | |
8570 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8571 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8572 | ;; | |
8573 | esac | |
8574 | ;; | |
8575 | ||
8576 | *) | |
8577 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8578 | ;; | |
8579 | esac | |
8580 | dynamic_linker='Win32 ld.exe' | |
8581 | # FIXME: first we should search . and the directory the executable is in | |
8582 | shlibpath_var=PATH | |
8583 | ;; | |
8584 | ||
8585 | darwin* | rhapsody*) | |
8586 | dynamic_linker="$host_os dyld" | |
8587 | version_type=darwin | |
8588 | need_lib_prefix=no | |
8589 | need_version=no | |
8590 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8591 | soname_spec='${libname}${release}${major}$shared_ext' | |
8592 | shlibpath_overrides_runpath=yes | |
8593 | shlibpath_var=DYLD_LIBRARY_PATH | |
8594 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8595 | ||
8596 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
8597 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8598 | ;; | |
8599 | ||
8600 | dgux*) | |
8601 | version_type=linux | |
8602 | need_lib_prefix=no | |
8603 | need_version=no | |
8604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8605 | soname_spec='${libname}${release}${shared_ext}$major' | |
8606 | shlibpath_var=LD_LIBRARY_PATH | |
8607 | ;; | |
8608 | ||
8609 | freebsd1*) | |
8610 | dynamic_linker=no | |
8611 | ;; | |
8612 | ||
8613 | freebsd* | dragonfly*) | |
8614 | # DragonFly does not have aout. When/if they implement a new | |
8615 | # versioning mechanism, adjust this. | |
8616 | if test -x /usr/bin/objformat; then | |
8617 | objformat=`/usr/bin/objformat` | |
8618 | else | |
8619 | case $host_os in | |
8620 | freebsd[123]*) objformat=aout ;; | |
8621 | *) objformat=elf ;; | |
8622 | esac | |
8623 | fi | |
8624 | version_type=freebsd-$objformat | |
8625 | case $version_type in | |
8626 | freebsd-elf*) | |
8627 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8628 | need_version=no | |
8629 | need_lib_prefix=no | |
8630 | ;; | |
8631 | freebsd-*) | |
8632 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8633 | need_version=yes | |
8634 | ;; | |
8635 | esac | |
8636 | shlibpath_var=LD_LIBRARY_PATH | |
8637 | case $host_os in | |
8638 | freebsd2*) | |
8639 | shlibpath_overrides_runpath=yes | |
8640 | ;; | |
8641 | freebsd3.[01]* | freebsdelf3.[01]*) | |
8642 | shlibpath_overrides_runpath=yes | |
8643 | hardcode_into_libs=yes | |
8644 | ;; | |
8645 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8646 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8647 | shlibpath_overrides_runpath=no | |
8648 | hardcode_into_libs=yes | |
8649 | ;; | |
8650 | *) # from 4.6 on, and DragonFly | |
8651 | shlibpath_overrides_runpath=yes | |
8652 | hardcode_into_libs=yes | |
8653 | ;; | |
8654 | esac | |
8655 | ;; | |
8656 | ||
8657 | gnu*) | |
8658 | version_type=linux | |
8659 | need_lib_prefix=no | |
8660 | need_version=no | |
8661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
8662 | soname_spec='${libname}${release}${shared_ext}$major' | |
8663 | shlibpath_var=LD_LIBRARY_PATH | |
8664 | hardcode_into_libs=yes | |
8665 | ;; | |
8666 | ||
8667 | hpux9* | hpux10* | hpux11*) | |
8668 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
8669 | # link against other versions. | |
8670 | version_type=sunos | |
8671 | need_lib_prefix=no | |
8672 | need_version=no | |
8673 | case $host_cpu in | |
8674 | ia64*) | |
8675 | shrext_cmds='.so' | |
8676 | hardcode_into_libs=yes | |
8677 | dynamic_linker="$host_os dld.so" | |
8678 | shlibpath_var=LD_LIBRARY_PATH | |
8679 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8680 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8681 | soname_spec='${libname}${release}${shared_ext}$major' | |
8682 | if test "X$HPUX_IA64_MODE" = X32; then | |
8683 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
8684 | else | |
8685 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8686 | fi | |
8687 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8688 | ;; | |
8689 | hppa*64*) | |
8690 | shrext_cmds='.sl' | |
8691 | hardcode_into_libs=yes | |
8692 | dynamic_linker="$host_os dld.sl" | |
8693 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8694 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8695 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8696 | soname_spec='${libname}${release}${shared_ext}$major' | |
8697 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8698 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8699 | ;; | |
8700 | *) | |
8701 | shrext_cmds='.sl' | |
8702 | dynamic_linker="$host_os dld.sl" | |
8703 | shlibpath_var=SHLIB_PATH | |
8704 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8705 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8706 | soname_spec='${libname}${release}${shared_ext}$major' | |
8707 | ;; | |
8708 | esac | |
8709 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8710 | postinstall_cmds='chmod 555 $lib' | |
8711 | ;; | |
8712 | ||
8713 | interix[3-9]*) | |
8714 | version_type=linux | |
8715 | need_lib_prefix=no | |
8716 | need_version=no | |
8717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8718 | soname_spec='${libname}${release}${shared_ext}$major' | |
8719 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8720 | shlibpath_var=LD_LIBRARY_PATH | |
8721 | shlibpath_overrides_runpath=no | |
8722 | hardcode_into_libs=yes | |
8723 | ;; | |
8724 | ||
8725 | irix5* | irix6* | nonstopux*) | |
8726 | case $host_os in | |
8727 | nonstopux*) version_type=nonstopux ;; | |
8728 | *) | |
8729 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
8730 | version_type=linux | |
8731 | else | |
8732 | version_type=irix | |
8733 | fi ;; | |
8734 | esac | |
8735 | need_lib_prefix=no | |
8736 | need_version=no | |
8737 | soname_spec='${libname}${release}${shared_ext}$major' | |
8738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8739 | case $host_os in | |
8740 | irix5* | nonstopux*) | |
8741 | libsuff= shlibsuff= | |
8742 | ;; | |
8743 | *) | |
8744 | case $LD in # libtool.m4 will add one of these switches to LD | |
8745 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
8746 | libsuff= shlibsuff= libmagic=32-bit;; | |
8747 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
8748 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
8749 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
8750 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
8751 | *) libsuff= shlibsuff= libmagic=never-match;; | |
8752 | esac | |
8753 | ;; | |
8754 | esac | |
8755 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
8756 | shlibpath_overrides_runpath=no | |
8757 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
8758 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
8759 | hardcode_into_libs=yes | |
8760 | ;; | |
8761 | ||
8762 | # No shared lib support for Linux oldld, aout, or coff. | |
8763 | linux*oldld* | linux*aout* | linux*coff*) | |
8764 | dynamic_linker=no | |
8765 | ;; | |
8766 | ||
8767 | # This must be Linux ELF. | |
8768 | linux* | k*bsd*-gnu) | |
8769 | version_type=linux | |
8770 | need_lib_prefix=no | |
8771 | need_version=no | |
8772 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8773 | soname_spec='${libname}${release}${shared_ext}$major' | |
8774 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
8775 | shlibpath_var=LD_LIBRARY_PATH | |
8776 | shlibpath_overrides_runpath=no | |
8777 | # Some binutils ld are patched to set DT_RUNPATH | |
8778 | save_LDFLAGS=$LDFLAGS | |
8779 | save_libdir=$libdir | |
8780 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
8781 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
8782 | if test x$gcc_no_link = xyes; then | |
8783 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8784 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8785 | { (exit 1); exit 1; }; } | |
8786 | fi | |
8787 | cat >conftest.$ac_ext <<_ACEOF | |
8788 | /* confdefs.h. */ | |
8789 | _ACEOF | |
8790 | cat confdefs.h >>conftest.$ac_ext | |
8791 | cat >>conftest.$ac_ext <<_ACEOF | |
8792 | /* end confdefs.h. */ | |
8793 | ||
8794 | int | |
8795 | main () | |
8796 | { | |
8797 | ||
8798 | ; | |
8799 | return 0; | |
8800 | } | |
8801 | _ACEOF | |
8802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8804 | (eval $ac_link) 2>conftest.er1 | |
8805 | ac_status=$? | |
8806 | grep -v '^ *+' conftest.er1 >conftest.err | |
8807 | rm -f conftest.er1 | |
8808 | cat conftest.err >&5 | |
8809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8810 | (exit $ac_status); } && | |
8811 | { ac_try='test -z "$ac_c_werror_flag" | |
8812 | || test ! -s conftest.err' | |
8813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8814 | (eval $ac_try) 2>&5 | |
8815 | ac_status=$? | |
8816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8817 | (exit $ac_status); }; } && | |
8818 | { ac_try='test -s conftest$ac_exeext' | |
8819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8820 | (eval $ac_try) 2>&5 | |
8821 | ac_status=$? | |
8822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8823 | (exit $ac_status); }; }; then | |
8824 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then | |
8825 | shlibpath_overrides_runpath=yes | |
8826 | fi | |
8827 | ||
8828 | else | |
8829 | echo "$as_me: failed program was:" >&5 | |
8830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8831 | ||
8832 | fi | |
8833 | rm -f conftest.err conftest.$ac_objext \ | |
8834 | conftest$ac_exeext conftest.$ac_ext | |
8835 | LDFLAGS=$save_LDFLAGS | |
8836 | libdir=$save_libdir | |
8837 | ||
8838 | # This implies no fast_install, which is unacceptable. | |
8839 | # Some rework will be needed to allow for fast_install | |
8840 | # before this can be enabled. | |
8841 | hardcode_into_libs=yes | |
8842 | ||
8843 | # Append ld.so.conf contents to the search path | |
8844 | if test -f /etc/ld.so.conf; then | |
8845 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
8846 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
8847 | fi | |
8848 | ||
8849 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
8850 | # powerpc, because MkLinux only supported shared libraries with the | |
8851 | # GNU dynamic linker. Since this was broken with cross compilers, | |
8852 | # most powerpc-linux boxes support dynamic linking these days and | |
8853 | # people can always --disable-shared, the test was removed, and we | |
8854 | # assume the GNU/Linux dynamic linker is in use. | |
8855 | dynamic_linker='GNU/Linux ld.so' | |
8856 | ;; | |
8857 | ||
8858 | netbsd*) | |
8859 | version_type=sunos | |
8860 | need_lib_prefix=no | |
8861 | need_version=no | |
8862 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8863 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
8864 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
8865 | dynamic_linker='NetBSD (a.out) ld.so' | |
8866 | else | |
8867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8868 | soname_spec='${libname}${release}${shared_ext}$major' | |
8869 | dynamic_linker='NetBSD ld.elf_so' | |
8870 | fi | |
8871 | shlibpath_var=LD_LIBRARY_PATH | |
8872 | shlibpath_overrides_runpath=yes | |
8873 | hardcode_into_libs=yes | |
8874 | ;; | |
8875 | ||
8876 | newsos6) | |
8877 | version_type=linux | |
8878 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8879 | shlibpath_var=LD_LIBRARY_PATH | |
8880 | shlibpath_overrides_runpath=yes | |
8881 | ;; | |
8882 | ||
8883 | *nto* | *qnx*) | |
8884 | version_type=qnx | |
8885 | need_lib_prefix=no | |
8886 | need_version=no | |
8887 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8888 | soname_spec='${libname}${release}${shared_ext}$major' | |
8889 | shlibpath_var=LD_LIBRARY_PATH | |
8890 | shlibpath_overrides_runpath=no | |
8891 | hardcode_into_libs=yes | |
8892 | dynamic_linker='ldqnx.so' | |
8893 | ;; | |
8894 | ||
8895 | openbsd*) | |
8896 | version_type=sunos | |
8897 | sys_lib_dlsearch_path_spec="/usr/lib" | |
8898 | need_lib_prefix=no | |
8899 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
8900 | case $host_os in | |
8901 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
8902 | *) need_version=no ;; | |
8903 | esac | |
8904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
8905 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
8906 | shlibpath_var=LD_LIBRARY_PATH | |
8907 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8908 | case $host_os in | |
8909 | openbsd2.[89] | openbsd2.[89].*) | |
8910 | shlibpath_overrides_runpath=no | |
8911 | ;; | |
8912 | *) | |
8913 | shlibpath_overrides_runpath=yes | |
8914 | ;; | |
8915 | esac | |
8916 | else | |
8917 | shlibpath_overrides_runpath=yes | |
8918 | fi | |
8919 | ;; | |
8920 | ||
8921 | os2*) | |
8922 | libname_spec='$name' | |
8923 | shrext_cmds=".dll" | |
8924 | need_lib_prefix=no | |
8925 | library_names_spec='$libname${shared_ext} $libname.a' | |
8926 | dynamic_linker='OS/2 ld.exe' | |
8927 | shlibpath_var=LIBPATH | |
8928 | ;; | |
8929 | ||
8930 | osf3* | osf4* | osf5*) | |
8931 | version_type=osf | |
8932 | need_lib_prefix=no | |
8933 | need_version=no | |
8934 | soname_spec='${libname}${release}${shared_ext}$major' | |
8935 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8936 | shlibpath_var=LD_LIBRARY_PATH | |
8937 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
8938 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
8939 | ;; | |
8940 | ||
8941 | rdos*) | |
8942 | dynamic_linker=no | |
8943 | ;; | |
8944 | ||
8945 | solaris*) | |
8946 | version_type=linux | |
8947 | need_lib_prefix=no | |
8948 | need_version=no | |
8949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8950 | soname_spec='${libname}${release}${shared_ext}$major' | |
8951 | shlibpath_var=LD_LIBRARY_PATH | |
8952 | shlibpath_overrides_runpath=yes | |
8953 | hardcode_into_libs=yes | |
8954 | # ldd complains unless libraries are executable | |
8955 | postinstall_cmds='chmod +x $lib' | |
8956 | ;; | |
8957 | ||
8958 | sunos4*) | |
8959 | version_type=sunos | |
8960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
8961 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
8962 | shlibpath_var=LD_LIBRARY_PATH | |
8963 | shlibpath_overrides_runpath=yes | |
8964 | if test "$with_gnu_ld" = yes; then | |
8965 | need_lib_prefix=no | |
8966 | fi | |
8967 | need_version=yes | |
8968 | ;; | |
8969 | ||
8970 | sysv4 | sysv4.3*) | |
8971 | version_type=linux | |
8972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8973 | soname_spec='${libname}${release}${shared_ext}$major' | |
8974 | shlibpath_var=LD_LIBRARY_PATH | |
8975 | case $host_vendor in | |
8976 | sni) | |
8977 | shlibpath_overrides_runpath=no | |
8978 | need_lib_prefix=no | |
8979 | runpath_var=LD_RUN_PATH | |
8980 | ;; | |
8981 | siemens) | |
8982 | need_lib_prefix=no | |
8983 | ;; | |
8984 | motorola) | |
8985 | need_lib_prefix=no | |
8986 | need_version=no | |
8987 | shlibpath_overrides_runpath=no | |
8988 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
8989 | ;; | |
8990 | esac | |
8991 | ;; | |
8992 | ||
8993 | sysv4*MP*) | |
8994 | if test -d /usr/nec ;then | |
8995 | version_type=linux | |
8996 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
8997 | soname_spec='$libname${shared_ext}.$major' | |
8998 | shlibpath_var=LD_LIBRARY_PATH | |
8999 | fi | |
9000 | ;; | |
9001 | ||
9002 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9003 | version_type=freebsd-elf | |
9004 | need_lib_prefix=no | |
9005 | need_version=no | |
9006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9007 | soname_spec='${libname}${release}${shared_ext}$major' | |
9008 | shlibpath_var=LD_LIBRARY_PATH | |
9009 | shlibpath_overrides_runpath=yes | |
9010 | hardcode_into_libs=yes | |
9011 | if test "$with_gnu_ld" = yes; then | |
9012 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9013 | else | |
9014 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9015 | case $host_os in | |
9016 | sco3.2v5*) | |
9017 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9018 | ;; | |
9019 | esac | |
9020 | fi | |
9021 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9022 | ;; | |
9023 | ||
9024 | tpf*) | |
9025 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9026 | version_type=linux | |
9027 | need_lib_prefix=no | |
9028 | need_version=no | |
9029 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9030 | shlibpath_var=LD_LIBRARY_PATH | |
9031 | shlibpath_overrides_runpath=no | |
9032 | hardcode_into_libs=yes | |
9033 | ;; | |
9034 | ||
9035 | uts4*) | |
9036 | version_type=linux | |
9037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9038 | soname_spec='${libname}${release}${shared_ext}$major' | |
9039 | shlibpath_var=LD_LIBRARY_PATH | |
9040 | ;; | |
9041 | ||
9042 | *) | |
9043 | dynamic_linker=no | |
9044 | ;; | |
9045 | esac | |
9046 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
9047 | echo "${ECHO_T}$dynamic_linker" >&6 | |
9048 | test "$dynamic_linker" = no && can_build_shared=no | |
9049 | ||
9050 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9051 | if test "$GCC" = yes; then | |
9052 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9053 | fi | |
9054 | ||
9055 | ||
9056 | ||
9057 | ||
9058 | ||
9059 | ||
9060 | ||
9061 | ||
9062 | ||
9063 | ||
9064 | ||
9065 | ||
9066 | ||
9067 | ||
9068 | ||
9069 | ||
9070 | ||
9071 | ||
9072 | ||
9073 | ||
9074 | ||
9075 | ||
9076 | ||
9077 | ||
9078 | ||
9079 | ||
9080 | ||
9081 | ||
9082 | ||
9083 | ||
9084 | ||
9085 | ||
9086 | ||
9087 | ||
9088 | ||
9089 | ||
9090 | ||
9091 | ||
9092 | ||
9093 | ||
9094 | ||
9095 | ||
9096 | ||
9097 | ||
9098 | ||
9099 | ||
9100 | ||
9101 | ||
9102 | ||
9103 | ||
9104 | ||
9105 | ||
9106 | ||
9107 | ||
9108 | ||
9109 | ||
9110 | ||
9111 | ||
9112 | ||
9113 | ||
9114 | ||
9115 | ||
9116 | ||
9117 | ||
9118 | ||
9119 | ||
9120 | ||
9121 | ||
9122 | ||
9123 | ||
9124 | ||
9125 | ||
9126 | ||
9127 | ||
9128 | ||
9129 | ||
9130 | ||
9131 | ||
9132 | ||
9133 | ||
9134 | ||
9135 | ||
9136 | ||
9137 | ||
9138 | ||
9139 | ||
9140 | ||
9141 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
9142 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
9143 | hardcode_action= | |
9144 | if test -n "$hardcode_libdir_flag_spec" || | |
9145 | test -n "$runpath_var" || | |
9146 | test "X$hardcode_automatic" = "Xyes" ; then | |
9147 | ||
9148 | # We can hardcode non-existent directories. | |
9149 | if test "$hardcode_direct" != no && | |
9150 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9151 | # have to relink, otherwise we might link with an installed library | |
9152 | # when we should be linking with a yet-to-be-installed one | |
9153 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9154 | test "$hardcode_minus_L" != no; then | |
9155 | # Linking always hardcodes the temporary library directory. | |
9156 | hardcode_action=relink | |
9157 | else | |
9158 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9159 | hardcode_action=immediate | |
9160 | fi | |
9161 | else | |
9162 | # We cannot hardcode anything, or else we can only hardcode existing | |
9163 | # directories. | |
9164 | hardcode_action=unsupported | |
9165 | fi | |
9166 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
9167 | echo "${ECHO_T}$hardcode_action" >&6 | |
9168 | ||
9169 | if test "$hardcode_action" = relink || | |
9170 | test "$inherit_rpath" = yes; then | |
9171 | # Fast installation is not supported | |
9172 | enable_fast_install=no | |
9173 | elif test "$shlibpath_overrides_runpath" = yes || | |
9174 | test "$enable_shared" = no; then | |
9175 | # Fast installation is not necessary | |
9176 | enable_fast_install=needless | |
9177 | fi | |
9178 | ||
9179 | ||
9180 | ||
9181 | ||
9182 | ||
9183 | ||
9184 | if test "x$enable_dlopen" != xyes; then | |
9185 | enable_dlopen=unknown | |
9186 | enable_dlopen_self=unknown | |
9187 | enable_dlopen_self_static=unknown | |
9188 | else | |
9189 | lt_cv_dlopen=no | |
9190 | lt_cv_dlopen_libs= | |
9191 | ||
9192 | case $host_os in | |
9193 | beos*) | |
9194 | lt_cv_dlopen="load_add_on" | |
9195 | lt_cv_dlopen_libs= | |
9196 | lt_cv_dlopen_self=yes | |
9197 | ;; | |
9198 | ||
9199 | mingw* | pw32*) | |
9200 | lt_cv_dlopen="LoadLibrary" | |
9201 | lt_cv_dlopen_libs= | |
9202 | ;; | |
9203 | ||
9204 | cygwin*) | |
9205 | lt_cv_dlopen="dlopen" | |
9206 | lt_cv_dlopen_libs= | |
9207 | ;; | |
9208 | ||
9209 | darwin*) | |
9210 | # if libdl is installed we need to link against it | |
9211 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9212 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9213 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9215 | else | |
9216 | ac_check_lib_save_LIBS=$LIBS | |
9217 | LIBS="-ldl $LIBS" | |
9218 | if test x$gcc_no_link = xyes; then | |
9219 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9220 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9221 | { (exit 1); exit 1; }; } | |
9222 | fi | |
9223 | cat >conftest.$ac_ext <<_ACEOF | |
9224 | /* confdefs.h. */ | |
9225 | _ACEOF | |
9226 | cat confdefs.h >>conftest.$ac_ext | |
9227 | cat >>conftest.$ac_ext <<_ACEOF | |
9228 | /* end confdefs.h. */ | |
9229 | ||
9230 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9231 | #ifdef __cplusplus | |
9232 | extern "C" | |
9233 | #endif | |
9234 | /* We use char because int might match the return type of a gcc2 | |
9235 | builtin and then its argument prototype would still apply. */ | |
9236 | char dlopen (); | |
9237 | int | |
9238 | main () | |
9239 | { | |
9240 | dlopen (); | |
9241 | ; | |
9242 | return 0; | |
9243 | } | |
9244 | _ACEOF | |
9245 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9247 | (eval $ac_link) 2>conftest.er1 | |
9248 | ac_status=$? | |
9249 | grep -v '^ *+' conftest.er1 >conftest.err | |
9250 | rm -f conftest.er1 | |
9251 | cat conftest.err >&5 | |
9252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9253 | (exit $ac_status); } && | |
9254 | { ac_try='test -z "$ac_c_werror_flag" | |
9255 | || test ! -s conftest.err' | |
9256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9257 | (eval $ac_try) 2>&5 | |
9258 | ac_status=$? | |
9259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9260 | (exit $ac_status); }; } && | |
9261 | { ac_try='test -s conftest$ac_exeext' | |
9262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9263 | (eval $ac_try) 2>&5 | |
9264 | ac_status=$? | |
9265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9266 | (exit $ac_status); }; }; then | |
9267 | ac_cv_lib_dl_dlopen=yes | |
9268 | else | |
9269 | echo "$as_me: failed program was:" >&5 | |
9270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9271 | ||
9272 | ac_cv_lib_dl_dlopen=no | |
9273 | fi | |
9274 | rm -f conftest.err conftest.$ac_objext \ | |
9275 | conftest$ac_exeext conftest.$ac_ext | |
9276 | LIBS=$ac_check_lib_save_LIBS | |
9277 | fi | |
9278 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9279 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9280 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9281 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9282 | else | |
9283 | ||
9284 | lt_cv_dlopen="dyld" | |
9285 | lt_cv_dlopen_libs= | |
9286 | lt_cv_dlopen_self=yes | |
9287 | ||
9288 | fi | |
9289 | ||
9290 | ;; | |
9291 | ||
9292 | *) | |
9293 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
9294 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
9295 | if test "${ac_cv_func_shl_load+set}" = set; then | |
9296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9297 | else | |
9298 | if test x$gcc_no_link = xyes; then | |
9299 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9300 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9301 | { (exit 1); exit 1; }; } | |
9302 | fi | |
9303 | cat >conftest.$ac_ext <<_ACEOF | |
9304 | /* confdefs.h. */ | |
9305 | _ACEOF | |
9306 | cat confdefs.h >>conftest.$ac_ext | |
9307 | cat >>conftest.$ac_ext <<_ACEOF | |
9308 | /* end confdefs.h. */ | |
9309 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
9310 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9311 | #define shl_load innocuous_shl_load | |
9312 | ||
9313 | /* System header to define __stub macros and hopefully few prototypes, | |
9314 | which can conflict with char shl_load (); below. | |
9315 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9316 | <limits.h> exists even on freestanding compilers. */ | |
9317 | ||
9318 | #ifdef __STDC__ | |
9319 | # include <limits.h> | |
9320 | #else | |
9321 | # include <assert.h> | |
9322 | #endif | |
9323 | ||
9324 | #undef shl_load | |
9325 | ||
9326 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9327 | #ifdef __cplusplus | |
9328 | extern "C" | |
9329 | { | |
9330 | #endif | |
9331 | /* We use char because int might match the return type of a gcc2 | |
9332 | builtin and then its argument prototype would still apply. */ | |
9333 | char shl_load (); | |
9334 | /* The GNU C library defines this for functions which it implements | |
9335 | to always fail with ENOSYS. Some functions are actually named | |
9336 | something starting with __ and the normal name is an alias. */ | |
9337 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
9338 | choke me | |
9339 | #else | |
9340 | char (*f) () = shl_load; | |
9341 | #endif | |
9342 | #ifdef __cplusplus | |
9343 | } | |
9344 | #endif | |
9345 | ||
9346 | int | |
9347 | main () | |
9348 | { | |
9349 | return f != shl_load; | |
9350 | ; | |
9351 | return 0; | |
9352 | } | |
9353 | _ACEOF | |
9354 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9356 | (eval $ac_link) 2>conftest.er1 | |
9357 | ac_status=$? | |
9358 | grep -v '^ *+' conftest.er1 >conftest.err | |
9359 | rm -f conftest.er1 | |
9360 | cat conftest.err >&5 | |
9361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9362 | (exit $ac_status); } && | |
9363 | { ac_try='test -z "$ac_c_werror_flag" | |
9364 | || test ! -s conftest.err' | |
9365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9366 | (eval $ac_try) 2>&5 | |
9367 | ac_status=$? | |
9368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9369 | (exit $ac_status); }; } && | |
9370 | { ac_try='test -s conftest$ac_exeext' | |
9371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9372 | (eval $ac_try) 2>&5 | |
9373 | ac_status=$? | |
9374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9375 | (exit $ac_status); }; }; then | |
9376 | ac_cv_func_shl_load=yes | |
9377 | else | |
9378 | echo "$as_me: failed program was:" >&5 | |
9379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9380 | ||
9381 | ac_cv_func_shl_load=no | |
9382 | fi | |
9383 | rm -f conftest.err conftest.$ac_objext \ | |
9384 | conftest$ac_exeext conftest.$ac_ext | |
9385 | fi | |
9386 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
9387 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
9388 | if test $ac_cv_func_shl_load = yes; then | |
9389 | lt_cv_dlopen="shl_load" | |
9390 | else | |
9391 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
9392 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
9393 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
9394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9395 | else | |
9396 | ac_check_lib_save_LIBS=$LIBS | |
9397 | LIBS="-ldld $LIBS" | |
9398 | if test x$gcc_no_link = xyes; then | |
9399 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9400 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9401 | { (exit 1); exit 1; }; } | |
9402 | fi | |
9403 | cat >conftest.$ac_ext <<_ACEOF | |
9404 | /* confdefs.h. */ | |
9405 | _ACEOF | |
9406 | cat confdefs.h >>conftest.$ac_ext | |
9407 | cat >>conftest.$ac_ext <<_ACEOF | |
9408 | /* end confdefs.h. */ | |
9409 | ||
9410 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9411 | #ifdef __cplusplus | |
9412 | extern "C" | |
9413 | #endif | |
9414 | /* We use char because int might match the return type of a gcc2 | |
9415 | builtin and then its argument prototype would still apply. */ | |
9416 | char shl_load (); | |
9417 | int | |
9418 | main () | |
9419 | { | |
9420 | shl_load (); | |
9421 | ; | |
9422 | return 0; | |
9423 | } | |
9424 | _ACEOF | |
9425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9427 | (eval $ac_link) 2>conftest.er1 | |
9428 | ac_status=$? | |
9429 | grep -v '^ *+' conftest.er1 >conftest.err | |
9430 | rm -f conftest.er1 | |
9431 | cat conftest.err >&5 | |
9432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9433 | (exit $ac_status); } && | |
9434 | { ac_try='test -z "$ac_c_werror_flag" | |
9435 | || test ! -s conftest.err' | |
9436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9437 | (eval $ac_try) 2>&5 | |
9438 | ac_status=$? | |
9439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9440 | (exit $ac_status); }; } && | |
9441 | { ac_try='test -s conftest$ac_exeext' | |
9442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9443 | (eval $ac_try) 2>&5 | |
9444 | ac_status=$? | |
9445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9446 | (exit $ac_status); }; }; then | |
9447 | ac_cv_lib_dld_shl_load=yes | |
9448 | else | |
9449 | echo "$as_me: failed program was:" >&5 | |
9450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9451 | ||
9452 | ac_cv_lib_dld_shl_load=no | |
9453 | fi | |
9454 | rm -f conftest.err conftest.$ac_objext \ | |
9455 | conftest$ac_exeext conftest.$ac_ext | |
9456 | LIBS=$ac_check_lib_save_LIBS | |
9457 | fi | |
9458 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
9459 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
9460 | if test $ac_cv_lib_dld_shl_load = yes; then | |
9461 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
9462 | else | |
9463 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
9464 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
9465 | if test "${ac_cv_func_dlopen+set}" = set; then | |
9466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9467 | else | |
9468 | if test x$gcc_no_link = xyes; then | |
9469 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9470 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9471 | { (exit 1); exit 1; }; } | |
9472 | fi | |
9473 | cat >conftest.$ac_ext <<_ACEOF | |
9474 | /* confdefs.h. */ | |
9475 | _ACEOF | |
9476 | cat confdefs.h >>conftest.$ac_ext | |
9477 | cat >>conftest.$ac_ext <<_ACEOF | |
9478 | /* end confdefs.h. */ | |
9479 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
9480 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9481 | #define dlopen innocuous_dlopen | |
9482 | ||
9483 | /* System header to define __stub macros and hopefully few prototypes, | |
9484 | which can conflict with char dlopen (); below. | |
9485 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9486 | <limits.h> exists even on freestanding compilers. */ | |
9487 | ||
9488 | #ifdef __STDC__ | |
9489 | # include <limits.h> | |
9490 | #else | |
9491 | # include <assert.h> | |
9492 | #endif | |
9493 | ||
9494 | #undef dlopen | |
9495 | ||
9496 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9497 | #ifdef __cplusplus | |
9498 | extern "C" | |
9499 | { | |
9500 | #endif | |
9501 | /* We use char because int might match the return type of a gcc2 | |
9502 | builtin and then its argument prototype would still apply. */ | |
9503 | char dlopen (); | |
9504 | /* The GNU C library defines this for functions which it implements | |
9505 | to always fail with ENOSYS. Some functions are actually named | |
9506 | something starting with __ and the normal name is an alias. */ | |
9507 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
9508 | choke me | |
9509 | #else | |
9510 | char (*f) () = dlopen; | |
9511 | #endif | |
9512 | #ifdef __cplusplus | |
9513 | } | |
9514 | #endif | |
9515 | ||
9516 | int | |
9517 | main () | |
9518 | { | |
9519 | return f != dlopen; | |
9520 | ; | |
9521 | return 0; | |
9522 | } | |
9523 | _ACEOF | |
9524 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9526 | (eval $ac_link) 2>conftest.er1 | |
9527 | ac_status=$? | |
9528 | grep -v '^ *+' conftest.er1 >conftest.err | |
9529 | rm -f conftest.er1 | |
9530 | cat conftest.err >&5 | |
9531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9532 | (exit $ac_status); } && | |
9533 | { ac_try='test -z "$ac_c_werror_flag" | |
9534 | || test ! -s conftest.err' | |
9535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9536 | (eval $ac_try) 2>&5 | |
9537 | ac_status=$? | |
9538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9539 | (exit $ac_status); }; } && | |
9540 | { ac_try='test -s conftest$ac_exeext' | |
9541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9542 | (eval $ac_try) 2>&5 | |
9543 | ac_status=$? | |
9544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9545 | (exit $ac_status); }; }; then | |
9546 | ac_cv_func_dlopen=yes | |
9547 | else | |
9548 | echo "$as_me: failed program was:" >&5 | |
9549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9550 | ||
9551 | ac_cv_func_dlopen=no | |
9552 | fi | |
9553 | rm -f conftest.err conftest.$ac_objext \ | |
9554 | conftest$ac_exeext conftest.$ac_ext | |
9555 | fi | |
9556 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
9557 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
9558 | if test $ac_cv_func_dlopen = yes; then | |
9559 | lt_cv_dlopen="dlopen" | |
9560 | else | |
9561 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9562 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9563 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9565 | else | |
9566 | ac_check_lib_save_LIBS=$LIBS | |
9567 | LIBS="-ldl $LIBS" | |
9568 | if test x$gcc_no_link = xyes; then | |
9569 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9570 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9571 | { (exit 1); exit 1; }; } | |
9572 | fi | |
9573 | cat >conftest.$ac_ext <<_ACEOF | |
9574 | /* confdefs.h. */ | |
9575 | _ACEOF | |
9576 | cat confdefs.h >>conftest.$ac_ext | |
9577 | cat >>conftest.$ac_ext <<_ACEOF | |
9578 | /* end confdefs.h. */ | |
9579 | ||
9580 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9581 | #ifdef __cplusplus | |
9582 | extern "C" | |
9583 | #endif | |
9584 | /* We use char because int might match the return type of a gcc2 | |
9585 | builtin and then its argument prototype would still apply. */ | |
9586 | char dlopen (); | |
9587 | int | |
9588 | main () | |
9589 | { | |
9590 | dlopen (); | |
9591 | ; | |
9592 | return 0; | |
9593 | } | |
9594 | _ACEOF | |
9595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9597 | (eval $ac_link) 2>conftest.er1 | |
9598 | ac_status=$? | |
9599 | grep -v '^ *+' conftest.er1 >conftest.err | |
9600 | rm -f conftest.er1 | |
9601 | cat conftest.err >&5 | |
9602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9603 | (exit $ac_status); } && | |
9604 | { ac_try='test -z "$ac_c_werror_flag" | |
9605 | || test ! -s conftest.err' | |
9606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9607 | (eval $ac_try) 2>&5 | |
9608 | ac_status=$? | |
9609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9610 | (exit $ac_status); }; } && | |
9611 | { ac_try='test -s conftest$ac_exeext' | |
9612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9613 | (eval $ac_try) 2>&5 | |
9614 | ac_status=$? | |
9615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9616 | (exit $ac_status); }; }; then | |
9617 | ac_cv_lib_dl_dlopen=yes | |
9618 | else | |
9619 | echo "$as_me: failed program was:" >&5 | |
9620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9621 | ||
9622 | ac_cv_lib_dl_dlopen=no | |
9623 | fi | |
9624 | rm -f conftest.err conftest.$ac_objext \ | |
9625 | conftest$ac_exeext conftest.$ac_ext | |
9626 | LIBS=$ac_check_lib_save_LIBS | |
9627 | fi | |
9628 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9629 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9630 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9631 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9632 | else | |
9633 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
9634 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
9635 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
9636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9637 | else | |
9638 | ac_check_lib_save_LIBS=$LIBS | |
9639 | LIBS="-lsvld $LIBS" | |
9640 | if test x$gcc_no_link = xyes; then | |
9641 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9642 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9643 | { (exit 1); exit 1; }; } | |
9644 | fi | |
9645 | cat >conftest.$ac_ext <<_ACEOF | |
9646 | /* confdefs.h. */ | |
9647 | _ACEOF | |
9648 | cat confdefs.h >>conftest.$ac_ext | |
9649 | cat >>conftest.$ac_ext <<_ACEOF | |
9650 | /* end confdefs.h. */ | |
9651 | ||
9652 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9653 | #ifdef __cplusplus | |
9654 | extern "C" | |
9655 | #endif | |
9656 | /* We use char because int might match the return type of a gcc2 | |
9657 | builtin and then its argument prototype would still apply. */ | |
9658 | char dlopen (); | |
9659 | int | |
9660 | main () | |
9661 | { | |
9662 | dlopen (); | |
9663 | ; | |
9664 | return 0; | |
9665 | } | |
9666 | _ACEOF | |
9667 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9669 | (eval $ac_link) 2>conftest.er1 | |
9670 | ac_status=$? | |
9671 | grep -v '^ *+' conftest.er1 >conftest.err | |
9672 | rm -f conftest.er1 | |
9673 | cat conftest.err >&5 | |
9674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9675 | (exit $ac_status); } && | |
9676 | { ac_try='test -z "$ac_c_werror_flag" | |
9677 | || test ! -s conftest.err' | |
9678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9679 | (eval $ac_try) 2>&5 | |
9680 | ac_status=$? | |
9681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9682 | (exit $ac_status); }; } && | |
9683 | { ac_try='test -s conftest$ac_exeext' | |
9684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9685 | (eval $ac_try) 2>&5 | |
9686 | ac_status=$? | |
9687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9688 | (exit $ac_status); }; }; then | |
9689 | ac_cv_lib_svld_dlopen=yes | |
9690 | else | |
9691 | echo "$as_me: failed program was:" >&5 | |
9692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9693 | ||
9694 | ac_cv_lib_svld_dlopen=no | |
9695 | fi | |
9696 | rm -f conftest.err conftest.$ac_objext \ | |
9697 | conftest$ac_exeext conftest.$ac_ext | |
9698 | LIBS=$ac_check_lib_save_LIBS | |
9699 | fi | |
9700 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
9701 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
9702 | if test $ac_cv_lib_svld_dlopen = yes; then | |
9703 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9704 | else | |
9705 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
9706 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
9707 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
9708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9709 | else | |
9710 | ac_check_lib_save_LIBS=$LIBS | |
9711 | LIBS="-ldld $LIBS" | |
9712 | if test x$gcc_no_link = xyes; then | |
9713 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9714 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9715 | { (exit 1); exit 1; }; } | |
9716 | fi | |
9717 | cat >conftest.$ac_ext <<_ACEOF | |
9718 | /* confdefs.h. */ | |
9719 | _ACEOF | |
9720 | cat confdefs.h >>conftest.$ac_ext | |
9721 | cat >>conftest.$ac_ext <<_ACEOF | |
9722 | /* end confdefs.h. */ | |
9723 | ||
9724 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9725 | #ifdef __cplusplus | |
9726 | extern "C" | |
9727 | #endif | |
9728 | /* We use char because int might match the return type of a gcc2 | |
9729 | builtin and then its argument prototype would still apply. */ | |
9730 | char dld_link (); | |
9731 | int | |
9732 | main () | |
9733 | { | |
9734 | dld_link (); | |
9735 | ; | |
9736 | return 0; | |
9737 | } | |
9738 | _ACEOF | |
9739 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9741 | (eval $ac_link) 2>conftest.er1 | |
9742 | ac_status=$? | |
9743 | grep -v '^ *+' conftest.er1 >conftest.err | |
9744 | rm -f conftest.er1 | |
9745 | cat conftest.err >&5 | |
9746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9747 | (exit $ac_status); } && | |
9748 | { ac_try='test -z "$ac_c_werror_flag" | |
9749 | || test ! -s conftest.err' | |
9750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9751 | (eval $ac_try) 2>&5 | |
9752 | ac_status=$? | |
9753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9754 | (exit $ac_status); }; } && | |
9755 | { ac_try='test -s conftest$ac_exeext' | |
9756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9757 | (eval $ac_try) 2>&5 | |
9758 | ac_status=$? | |
9759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9760 | (exit $ac_status); }; }; then | |
9761 | ac_cv_lib_dld_dld_link=yes | |
9762 | else | |
9763 | echo "$as_me: failed program was:" >&5 | |
9764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9765 | ||
9766 | ac_cv_lib_dld_dld_link=no | |
9767 | fi | |
9768 | rm -f conftest.err conftest.$ac_objext \ | |
9769 | conftest$ac_exeext conftest.$ac_ext | |
9770 | LIBS=$ac_check_lib_save_LIBS | |
9771 | fi | |
9772 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
9773 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
9774 | if test $ac_cv_lib_dld_dld_link = yes; then | |
9775 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
9776 | fi | |
9777 | ||
9778 | ||
9779 | fi | |
9780 | ||
9781 | ||
9782 | fi | |
9783 | ||
9784 | ||
9785 | fi | |
9786 | ||
9787 | ||
9788 | fi | |
9789 | ||
9790 | ||
9791 | fi | |
9792 | ||
9793 | ;; | |
9794 | esac | |
9795 | ||
9796 | if test "x$lt_cv_dlopen" != xno; then | |
9797 | enable_dlopen=yes | |
9798 | else | |
9799 | enable_dlopen=no | |
9800 | fi | |
9801 | ||
9802 | case $lt_cv_dlopen in | |
9803 | dlopen) | |
9804 | save_CPPFLAGS="$CPPFLAGS" | |
9805 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9806 | ||
9807 | save_LDFLAGS="$LDFLAGS" | |
9808 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
9809 | ||
9810 | save_LIBS="$LIBS" | |
9811 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
9812 | ||
9813 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
9814 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
9815 | if test "${lt_cv_dlopen_self+set}" = set; then | |
9816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9817 | else | |
9818 | if test "$cross_compiling" = yes; then : | |
9819 | lt_cv_dlopen_self=cross | |
9820 | else | |
9821 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9822 | lt_status=$lt_dlunknown | |
9823 | cat > conftest.$ac_ext <<_LT_EOF | |
5a037dbd | 9824 | #line 9824 "configure" |
542f9784 | 9825 | #include "confdefs.h" |
9826 | ||
9827 | #if HAVE_DLFCN_H | |
9828 | #include <dlfcn.h> | |
9829 | #endif | |
9830 | ||
9831 | #include <stdio.h> | |
9832 | ||
9833 | #ifdef RTLD_GLOBAL | |
9834 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9835 | #else | |
9836 | # ifdef DL_GLOBAL | |
9837 | # define LT_DLGLOBAL DL_GLOBAL | |
9838 | # else | |
9839 | # define LT_DLGLOBAL 0 | |
9840 | # endif | |
9841 | #endif | |
9842 | ||
9843 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9844 | find out it does not work in some platform. */ | |
9845 | #ifndef LT_DLLAZY_OR_NOW | |
9846 | # ifdef RTLD_LAZY | |
9847 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9848 | # else | |
9849 | # ifdef DL_LAZY | |
9850 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9851 | # else | |
9852 | # ifdef RTLD_NOW | |
9853 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9854 | # else | |
9855 | # ifdef DL_NOW | |
9856 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9857 | # else | |
9858 | # define LT_DLLAZY_OR_NOW 0 | |
9859 | # endif | |
9860 | # endif | |
9861 | # endif | |
9862 | # endif | |
9863 | #endif | |
9864 | ||
9865 | #ifdef __cplusplus | |
9866 | extern "C" void exit (int); | |
9867 | #endif | |
9868 | ||
9869 | void fnord() { int i=42;} | |
9870 | int main () | |
9871 | { | |
9872 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9873 | int status = $lt_dlunknown; | |
9874 | ||
9875 | if (self) | |
9876 | { | |
9877 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9878 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9879 | /* dlclose (self); */ | |
9880 | } | |
9881 | else | |
9882 | puts (dlerror ()); | |
9883 | ||
9884 | exit (status); | |
9885 | } | |
9886 | _LT_EOF | |
9887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9888 | (eval $ac_link) 2>&5 | |
9889 | ac_status=$? | |
9890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9891 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9892 | (./conftest; exit; ) >&5 2>/dev/null | |
9893 | lt_status=$? | |
9894 | case x$lt_status in | |
9895 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
9896 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
9897 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
9898 | esac | |
9899 | else : | |
9900 | # compilation failed | |
9901 | lt_cv_dlopen_self=no | |
9902 | fi | |
9903 | fi | |
9904 | rm -fr conftest* | |
9905 | ||
9906 | ||
9907 | fi | |
9908 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
9909 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
9910 | ||
9911 | if test "x$lt_cv_dlopen_self" = xyes; then | |
9912 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
9913 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
9914 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
9915 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
9916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9917 | else | |
9918 | if test "$cross_compiling" = yes; then : | |
9919 | lt_cv_dlopen_self_static=cross | |
9920 | else | |
9921 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9922 | lt_status=$lt_dlunknown | |
9923 | cat > conftest.$ac_ext <<_LT_EOF | |
5a037dbd | 9924 | #line 9924 "configure" |
542f9784 | 9925 | #include "confdefs.h" |
9926 | ||
9927 | #if HAVE_DLFCN_H | |
9928 | #include <dlfcn.h> | |
9929 | #endif | |
9930 | ||
9931 | #include <stdio.h> | |
9932 | ||
9933 | #ifdef RTLD_GLOBAL | |
9934 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9935 | #else | |
9936 | # ifdef DL_GLOBAL | |
9937 | # define LT_DLGLOBAL DL_GLOBAL | |
9938 | # else | |
9939 | # define LT_DLGLOBAL 0 | |
9940 | # endif | |
9941 | #endif | |
9942 | ||
9943 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9944 | find out it does not work in some platform. */ | |
9945 | #ifndef LT_DLLAZY_OR_NOW | |
9946 | # ifdef RTLD_LAZY | |
9947 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9948 | # else | |
9949 | # ifdef DL_LAZY | |
9950 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9951 | # else | |
9952 | # ifdef RTLD_NOW | |
9953 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9954 | # else | |
9955 | # ifdef DL_NOW | |
9956 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9957 | # else | |
9958 | # define LT_DLLAZY_OR_NOW 0 | |
9959 | # endif | |
9960 | # endif | |
9961 | # endif | |
9962 | # endif | |
9963 | #endif | |
9964 | ||
9965 | #ifdef __cplusplus | |
9966 | extern "C" void exit (int); | |
9967 | #endif | |
9968 | ||
9969 | void fnord() { int i=42;} | |
9970 | int main () | |
9971 | { | |
9972 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9973 | int status = $lt_dlunknown; | |
9974 | ||
9975 | if (self) | |
9976 | { | |
9977 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9978 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9979 | /* dlclose (self); */ | |
9980 | } | |
9981 | else | |
9982 | puts (dlerror ()); | |
9983 | ||
9984 | exit (status); | |
9985 | } | |
9986 | _LT_EOF | |
9987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9988 | (eval $ac_link) 2>&5 | |
9989 | ac_status=$? | |
9990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9991 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9992 | (./conftest; exit; ) >&5 2>/dev/null | |
9993 | lt_status=$? | |
9994 | case x$lt_status in | |
9995 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
9996 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
9997 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
9998 | esac | |
9999 | else : | |
10000 | # compilation failed | |
10001 | lt_cv_dlopen_self_static=no | |
10002 | fi | |
10003 | fi | |
10004 | rm -fr conftest* | |
10005 | ||
10006 | ||
10007 | fi | |
10008 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
10009 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
10010 | fi | |
10011 | ||
10012 | CPPFLAGS="$save_CPPFLAGS" | |
10013 | LDFLAGS="$save_LDFLAGS" | |
10014 | LIBS="$save_LIBS" | |
10015 | ;; | |
10016 | esac | |
10017 | ||
10018 | case $lt_cv_dlopen_self in | |
10019 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10020 | *) enable_dlopen_self=unknown ;; | |
10021 | esac | |
10022 | ||
10023 | case $lt_cv_dlopen_self_static in | |
10024 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10025 | *) enable_dlopen_self_static=unknown ;; | |
10026 | esac | |
10027 | fi | |
10028 | ||
10029 | ||
10030 | ||
10031 | ||
10032 | ||
10033 | ||
10034 | ||
10035 | ||
10036 | ||
10037 | ||
10038 | ||
10039 | ||
10040 | ||
10041 | ||
10042 | ||
10043 | ||
10044 | ||
10045 | striplib= | |
10046 | old_striplib= | |
10047 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
10048 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
10049 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
10050 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10051 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10052 | echo "$as_me:$LINENO: result: yes" >&5 | |
10053 | echo "${ECHO_T}yes" >&6 | |
10054 | else | |
10055 | # FIXME - insert some real tests, host_os isn't really good enough | |
10056 | case $host_os in | |
10057 | darwin*) | |
10058 | if test -n "$STRIP" ; then | |
10059 | striplib="$STRIP -x" | |
10060 | old_striplib="$STRIP -S" | |
10061 | echo "$as_me:$LINENO: result: yes" >&5 | |
10062 | echo "${ECHO_T}yes" >&6 | |
10063 | else | |
10064 | echo "$as_me:$LINENO: result: no" >&5 | |
10065 | echo "${ECHO_T}no" >&6 | |
10066 | fi | |
10067 | ;; | |
10068 | *) | |
10069 | echo "$as_me:$LINENO: result: no" >&5 | |
10070 | echo "${ECHO_T}no" >&6 | |
10071 | ;; | |
10072 | esac | |
10073 | fi | |
10074 | ||
10075 | ||
10076 | ||
10077 | ||
10078 | ||
10079 | ||
10080 | ||
10081 | ||
10082 | ||
10083 | ||
10084 | ||
10085 | ||
10086 | # Report which library types will actually be built | |
10087 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
10088 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
10089 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
10090 | echo "${ECHO_T}$can_build_shared" >&6 | |
10091 | ||
10092 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
10093 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
10094 | test "$can_build_shared" = "no" && enable_shared=no | |
10095 | ||
10096 | # On AIX, shared libraries and static libraries use the same namespace, and | |
10097 | # are all built from PIC. | |
10098 | case $host_os in | |
10099 | aix3*) | |
10100 | test "$enable_shared" = yes && enable_static=no | |
10101 | if test -n "$RANLIB"; then | |
10102 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10103 | postinstall_cmds='$RANLIB $lib' | |
10104 | fi | |
10105 | ;; | |
10106 | ||
10107 | aix4* | aix5*) | |
10108 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
10109 | test "$enable_shared" = yes && enable_static=no | |
10110 | fi | |
10111 | ;; | |
10112 | esac | |
10113 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
10114 | echo "${ECHO_T}$enable_shared" >&6 | |
10115 | ||
10116 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
10117 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
10118 | # Make sure either enable_shared or enable_static is yes. | |
10119 | test "$enable_shared" = yes || enable_static=yes | |
10120 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
10121 | echo "${ECHO_T}$enable_static" >&6 | |
10122 | ||
10123 | ||
10124 | ||
10125 | ||
10126 | fi | |
10127 | ac_ext=c | |
10128 | ac_cpp='$CPP $CPPFLAGS' | |
10129 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10130 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10131 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10132 | ||
10133 | CC="$lt_save_CC" | |
10134 | ||
10135 | ||
10136 | ||
10137 | ||
10138 | ||
10139 | ||
10140 | ||
10141 | ||
10142 | ||
10143 | ||
10144 | ||
10145 | ||
10146 | ||
10147 | ac_config_commands="$ac_config_commands libtool" | |
10148 | ||
10149 | ||
10150 | ||
10151 | ||
10152 | # Only expand once: | |
10153 | ||
10154 | ||
10155 | ||
10156 | ||
10157 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 | |
10158 | ||
10159 | # We need gfortran to compile parts of the library | |
10160 | #AC_PROG_FC(gfortran) | |
10161 | FC="$GFORTRAN" | |
10162 | ac_ext=${FC_SRCEXT-f} | |
10163 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
10164 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
10165 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
10166 | if test -n "$ac_tool_prefix"; then | |
10167 | for ac_prog in gfortran | |
10168 | do | |
10169 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10170 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10171 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10172 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10173 | if test "${ac_cv_prog_FC+set}" = set; then | |
10174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10175 | else | |
10176 | if test -n "$FC"; then | |
10177 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
10178 | else | |
10179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10180 | for as_dir in $PATH | |
10181 | do | |
10182 | IFS=$as_save_IFS | |
10183 | test -z "$as_dir" && as_dir=. | |
10184 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10185 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10186 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" | |
10187 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10188 | break 2 | |
10189 | fi | |
10190 | done | |
10191 | done | |
10192 | ||
10193 | fi | |
10194 | fi | |
10195 | FC=$ac_cv_prog_FC | |
10196 | if test -n "$FC"; then | |
10197 | echo "$as_me:$LINENO: result: $FC" >&5 | |
10198 | echo "${ECHO_T}$FC" >&6 | |
10199 | else | |
10200 | echo "$as_me:$LINENO: result: no" >&5 | |
10201 | echo "${ECHO_T}no" >&6 | |
10202 | fi | |
10203 | ||
10204 | test -n "$FC" && break | |
10205 | done | |
10206 | fi | |
10207 | if test -z "$FC"; then | |
10208 | ac_ct_FC=$FC | |
10209 | for ac_prog in gfortran | |
10210 | do | |
10211 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10212 | set dummy $ac_prog; ac_word=$2 | |
10213 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10215 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then | |
10216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10217 | else | |
10218 | if test -n "$ac_ct_FC"; then | |
10219 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
10220 | else | |
10221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10222 | for as_dir in $PATH | |
10223 | do | |
10224 | IFS=$as_save_IFS | |
10225 | test -z "$as_dir" && as_dir=. | |
10226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10227 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10228 | ac_cv_prog_ac_ct_FC="$ac_prog" | |
10229 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10230 | break 2 | |
10231 | fi | |
10232 | done | |
10233 | done | |
10234 | ||
10235 | fi | |
10236 | fi | |
10237 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
10238 | if test -n "$ac_ct_FC"; then | |
10239 | echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 | |
10240 | echo "${ECHO_T}$ac_ct_FC" >&6 | |
10241 | else | |
10242 | echo "$as_me:$LINENO: result: no" >&5 | |
10243 | echo "${ECHO_T}no" >&6 | |
10244 | fi | |
10245 | ||
10246 | test -n "$ac_ct_FC" && break | |
10247 | done | |
10248 | ||
10249 | FC=$ac_ct_FC | |
10250 | fi | |
10251 | ||
10252 | ||
10253 | # Provide some information about the compiler. | |
5a037dbd | 10254 | echo "$as_me:10254:" \ |
542f9784 | 10255 | "checking for Fortran compiler version" >&5 |
10256 | ac_compiler=`set X $ac_compile; echo $2` | |
10257 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10258 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10259 | ac_status=$? | |
10260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10261 | (exit $ac_status); } | |
10262 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10263 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10264 | ac_status=$? | |
10265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10266 | (exit $ac_status); } | |
10267 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10268 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10269 | ac_status=$? | |
10270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10271 | (exit $ac_status); } | |
10272 | rm -f a.out | |
10273 | ||
10274 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
10275 | # input file. (Note that this only needs to work for GNU compilers.) | |
10276 | ac_save_ext=$ac_ext | |
10277 | ac_ext=F | |
10278 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 | |
10279 | echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 | |
10280 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then | |
10281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10282 | else | |
10283 | cat >conftest.$ac_ext <<_ACEOF | |
10284 | program main | |
10285 | #ifndef __GNUC__ | |
10286 | choke me | |
10287 | #endif | |
10288 | ||
10289 | end | |
10290 | _ACEOF | |
10291 | rm -f conftest.$ac_objext | |
10292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10293 | (eval $ac_compile) 2>conftest.er1 | |
10294 | ac_status=$? | |
10295 | grep -v '^ *+' conftest.er1 >conftest.err | |
10296 | rm -f conftest.er1 | |
10297 | cat conftest.err >&5 | |
10298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10299 | (exit $ac_status); } && | |
10300 | { ac_try='test -z "$ac_fc_werror_flag" | |
10301 | || test ! -s conftest.err' | |
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); }; } && | |
10307 | { ac_try='test -s conftest.$ac_objext' | |
10308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10309 | (eval $ac_try) 2>&5 | |
10310 | ac_status=$? | |
10311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10312 | (exit $ac_status); }; }; then | |
10313 | ac_compiler_gnu=yes | |
10314 | else | |
10315 | echo "$as_me: failed program was:" >&5 | |
10316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10317 | ||
10318 | ac_compiler_gnu=no | |
10319 | fi | |
10320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10321 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu | |
10322 | ||
10323 | fi | |
10324 | echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 | |
10325 | echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 | |
10326 | ac_ext=$ac_save_ext | |
10327 | ac_test_FFLAGS=${FCFLAGS+set} | |
10328 | ac_save_FFLAGS=$FCFLAGS | |
10329 | FCFLAGS= | |
10330 | echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 | |
10331 | echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 | |
10332 | if test "${ac_cv_prog_fc_g+set}" = set; then | |
10333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10334 | else | |
10335 | FCFLAGS=-g | |
10336 | cat >conftest.$ac_ext <<_ACEOF | |
10337 | program main | |
10338 | ||
10339 | end | |
10340 | _ACEOF | |
10341 | rm -f conftest.$ac_objext | |
10342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10343 | (eval $ac_compile) 2>conftest.er1 | |
10344 | ac_status=$? | |
10345 | grep -v '^ *+' conftest.er1 >conftest.err | |
10346 | rm -f conftest.er1 | |
10347 | cat conftest.err >&5 | |
10348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10349 | (exit $ac_status); } && | |
10350 | { ac_try='test -z "$ac_fc_werror_flag" | |
10351 | || test ! -s conftest.err' | |
10352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10353 | (eval $ac_try) 2>&5 | |
10354 | ac_status=$? | |
10355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10356 | (exit $ac_status); }; } && | |
10357 | { ac_try='test -s conftest.$ac_objext' | |
10358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10359 | (eval $ac_try) 2>&5 | |
10360 | ac_status=$? | |
10361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10362 | (exit $ac_status); }; }; then | |
10363 | ac_cv_prog_fc_g=yes | |
10364 | else | |
10365 | echo "$as_me: failed program was:" >&5 | |
10366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10367 | ||
10368 | ac_cv_prog_fc_g=no | |
10369 | fi | |
10370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10371 | ||
10372 | fi | |
10373 | echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 | |
10374 | echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 | |
10375 | if test "$ac_test_FFLAGS" = set; then | |
10376 | FCFLAGS=$ac_save_FFLAGS | |
10377 | elif test $ac_cv_prog_fc_g = yes; then | |
10378 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
10379 | FCFLAGS="-g -O2" | |
10380 | else | |
10381 | FCFLAGS="-g" | |
10382 | fi | |
10383 | else | |
10384 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
10385 | FCFLAGS="-O2" | |
10386 | else | |
10387 | FCFLAGS= | |
10388 | fi | |
10389 | fi | |
10390 | ||
10391 | ac_ext=c | |
10392 | ac_cpp='$CPP $CPPFLAGS' | |
10393 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10394 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10395 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10396 | ||
10397 | ||
10398 | ac_ext=${FC_SRCEXT-f} | |
10399 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
10400 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
10401 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
10402 | if test -n "$ac_tool_prefix"; then | |
10403 | for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77 | |
10404 | do | |
10405 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10406 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10407 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10409 | if test "${ac_cv_prog_FC+set}" = set; then | |
10410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10411 | else | |
10412 | if test -n "$FC"; then | |
10413 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
10414 | else | |
10415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10416 | for as_dir in $PATH | |
10417 | do | |
10418 | IFS=$as_save_IFS | |
10419 | test -z "$as_dir" && as_dir=. | |
10420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10421 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10422 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" | |
10423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10424 | break 2 | |
10425 | fi | |
10426 | done | |
10427 | done | |
10428 | ||
10429 | fi | |
10430 | fi | |
10431 | FC=$ac_cv_prog_FC | |
10432 | if test -n "$FC"; then | |
10433 | echo "$as_me:$LINENO: result: $FC" >&5 | |
10434 | echo "${ECHO_T}$FC" >&6 | |
10435 | else | |
10436 | echo "$as_me:$LINENO: result: no" >&5 | |
10437 | echo "${ECHO_T}no" >&6 | |
10438 | fi | |
10439 | ||
10440 | test -n "$FC" && break | |
10441 | done | |
10442 | fi | |
10443 | if test -z "$FC"; then | |
10444 | ac_ct_FC=$FC | |
10445 | for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77 | |
10446 | do | |
10447 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10448 | set dummy $ac_prog; ac_word=$2 | |
10449 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10451 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then | |
10452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10453 | else | |
10454 | if test -n "$ac_ct_FC"; then | |
10455 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
10456 | else | |
10457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10458 | for as_dir in $PATH | |
10459 | do | |
10460 | IFS=$as_save_IFS | |
10461 | test -z "$as_dir" && as_dir=. | |
10462 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10463 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10464 | ac_cv_prog_ac_ct_FC="$ac_prog" | |
10465 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10466 | break 2 | |
10467 | fi | |
10468 | done | |
10469 | done | |
10470 | ||
10471 | fi | |
10472 | fi | |
10473 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
10474 | if test -n "$ac_ct_FC"; then | |
10475 | echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 | |
10476 | echo "${ECHO_T}$ac_ct_FC" >&6 | |
10477 | else | |
10478 | echo "$as_me:$LINENO: result: no" >&5 | |
10479 | echo "${ECHO_T}no" >&6 | |
10480 | fi | |
10481 | ||
10482 | test -n "$ac_ct_FC" && break | |
10483 | done | |
10484 | ||
10485 | FC=$ac_ct_FC | |
10486 | fi | |
10487 | ||
10488 | ||
10489 | # Provide some information about the compiler. | |
5a037dbd | 10490 | echo "$as_me:10490:" \ |
542f9784 | 10491 | "checking for Fortran compiler version" >&5 |
10492 | ac_compiler=`set X $ac_compile; echo $2` | |
10493 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10494 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10495 | ac_status=$? | |
10496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10497 | (exit $ac_status); } | |
10498 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10499 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10500 | ac_status=$? | |
10501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10502 | (exit $ac_status); } | |
10503 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10504 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10505 | ac_status=$? | |
10506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10507 | (exit $ac_status); } | |
10508 | rm -f a.out | |
10509 | ||
10510 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
10511 | # input file. (Note that this only needs to work for GNU compilers.) | |
10512 | ac_save_ext=$ac_ext | |
10513 | ac_ext=F | |
10514 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 | |
10515 | echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 | |
10516 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then | |
10517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10518 | else | |
10519 | cat >conftest.$ac_ext <<_ACEOF | |
10520 | program main | |
10521 | #ifndef __GNUC__ | |
10522 | choke me | |
10523 | #endif | |
10524 | ||
10525 | end | |
10526 | _ACEOF | |
10527 | rm -f conftest.$ac_objext | |
10528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10529 | (eval $ac_compile) 2>conftest.er1 | |
10530 | ac_status=$? | |
10531 | grep -v '^ *+' conftest.er1 >conftest.err | |
10532 | rm -f conftest.er1 | |
10533 | cat conftest.err >&5 | |
10534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10535 | (exit $ac_status); } && | |
10536 | { ac_try='test -z "$ac_fc_werror_flag" | |
10537 | || test ! -s conftest.err' | |
10538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10539 | (eval $ac_try) 2>&5 | |
10540 | ac_status=$? | |
10541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10542 | (exit $ac_status); }; } && | |
10543 | { ac_try='test -s conftest.$ac_objext' | |
10544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10545 | (eval $ac_try) 2>&5 | |
10546 | ac_status=$? | |
10547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10548 | (exit $ac_status); }; }; then | |
10549 | ac_compiler_gnu=yes | |
10550 | else | |
10551 | echo "$as_me: failed program was:" >&5 | |
10552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10553 | ||
10554 | ac_compiler_gnu=no | |
10555 | fi | |
10556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10557 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu | |
10558 | ||
10559 | fi | |
10560 | echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 | |
10561 | echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 | |
10562 | ac_ext=$ac_save_ext | |
10563 | ac_test_FFLAGS=${FCFLAGS+set} | |
10564 | ac_save_FFLAGS=$FCFLAGS | |
10565 | FCFLAGS= | |
10566 | echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 | |
10567 | echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 | |
10568 | if test "${ac_cv_prog_fc_g+set}" = set; then | |
10569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10570 | else | |
10571 | FCFLAGS=-g | |
10572 | cat >conftest.$ac_ext <<_ACEOF | |
10573 | program main | |
10574 | ||
10575 | end | |
10576 | _ACEOF | |
10577 | rm -f conftest.$ac_objext | |
10578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10579 | (eval $ac_compile) 2>conftest.er1 | |
10580 | ac_status=$? | |
10581 | grep -v '^ *+' conftest.er1 >conftest.err | |
10582 | rm -f conftest.er1 | |
10583 | cat conftest.err >&5 | |
10584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10585 | (exit $ac_status); } && | |
10586 | { ac_try='test -z "$ac_fc_werror_flag" | |
10587 | || test ! -s conftest.err' | |
10588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10589 | (eval $ac_try) 2>&5 | |
10590 | ac_status=$? | |
10591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10592 | (exit $ac_status); }; } && | |
10593 | { ac_try='test -s conftest.$ac_objext' | |
10594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10595 | (eval $ac_try) 2>&5 | |
10596 | ac_status=$? | |
10597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10598 | (exit $ac_status); }; }; then | |
10599 | ac_cv_prog_fc_g=yes | |
10600 | else | |
10601 | echo "$as_me: failed program was:" >&5 | |
10602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10603 | ||
10604 | ac_cv_prog_fc_g=no | |
10605 | fi | |
10606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10607 | ||
10608 | fi | |
10609 | echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 | |
10610 | echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 | |
10611 | if test "$ac_test_FFLAGS" = set; then | |
10612 | FCFLAGS=$ac_save_FFLAGS | |
10613 | elif test $ac_cv_prog_fc_g = yes; then | |
10614 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
10615 | FCFLAGS="-g -O2" | |
10616 | else | |
10617 | FCFLAGS="-g" | |
10618 | fi | |
10619 | else | |
10620 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
10621 | FCFLAGS="-O2" | |
10622 | else | |
10623 | FCFLAGS= | |
10624 | fi | |
10625 | fi | |
10626 | ||
10627 | ac_ext=c | |
10628 | ac_cpp='$CPP $CPPFLAGS' | |
10629 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10630 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10631 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10632 | ||
10633 | if test -z "$FC" || test "X$FC" = "Xno"; then | |
10634 | _lt_disable_FC=yes | |
10635 | fi | |
10636 | ||
10637 | ||
10638 | ||
10639 | ac_ext=${FC_SRCEXT-f} | |
10640 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
10641 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
10642 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
10643 | ||
10644 | ||
10645 | archive_cmds_need_lc_FC=no | |
10646 | allow_undefined_flag_FC= | |
10647 | always_export_symbols_FC=no | |
10648 | archive_expsym_cmds_FC= | |
10649 | export_dynamic_flag_spec_FC= | |
10650 | hardcode_direct_FC=no | |
10651 | hardcode_direct_absolute_FC=no | |
10652 | hardcode_libdir_flag_spec_FC= | |
10653 | hardcode_libdir_flag_spec_ld_FC= | |
10654 | hardcode_libdir_separator_FC= | |
10655 | hardcode_minus_L_FC=no | |
10656 | hardcode_automatic_FC=no | |
10657 | inherit_rpath_FC=no | |
10658 | module_cmds_FC= | |
10659 | module_expsym_cmds_FC= | |
10660 | link_all_deplibs_FC=unknown | |
10661 | old_archive_cmds_FC=$old_archive_cmds | |
10662 | no_undefined_flag_FC= | |
10663 | whole_archive_flag_spec_FC= | |
10664 | enable_shared_with_static_runtimes_FC=no | |
10665 | ||
10666 | # Source file extension for fc test sources. | |
10667 | ac_ext=${ac_fc_srcext-f} | |
10668 | ||
10669 | # Object file extension for compiled fc test sources. | |
10670 | objext=o | |
10671 | objext_FC=$objext | |
10672 | ||
10673 | # No sense in running all these tests if we already determined that | |
10674 | # the FC compiler isn't working. Some variables (like enable_shared) | |
10675 | # are currently assumed to apply to all compilers on this platform, | |
10676 | # and will be corrupted by setting them based on a non-working compiler. | |
10677 | if test "$_lt_disable_FC" != yes; then | |
10678 | # Code to be used in simple compile tests | |
10679 | lt_simple_compile_test_code="\ | |
10680 | subroutine t | |
10681 | return | |
10682 | end | |
10683 | " | |
10684 | ||
10685 | # Code to be used in simple link tests | |
10686 | lt_simple_link_test_code="\ | |
10687 | program t | |
10688 | end | |
10689 | " | |
10690 | ||
10691 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
10692 | ||
10693 | ||
10694 | ||
10695 | ||
10696 | ||
10697 | ||
10698 | # If no C compiler was specified, use CC. | |
10699 | LTCC=${LTCC-"$CC"} | |
10700 | ||
10701 | # If no C compiler flags were specified, use CFLAGS. | |
10702 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
10703 | ||
10704 | # Allow CC to be a program name with arguments. | |
10705 | compiler=$CC | |
10706 | ||
10707 | ||
10708 | # save warnings/boilerplate of simple test code | |
10709 | ac_outfile=conftest.$ac_objext | |
10710 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
10711 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10712 | _lt_compiler_boilerplate=`cat conftest.err` | |
10713 | $RM conftest* | |
10714 | ||
10715 | ac_outfile=conftest.$ac_objext | |
10716 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
10717 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10718 | _lt_linker_boilerplate=`cat conftest.err` | |
10719 | $RM conftest* | |
10720 | ||
10721 | ||
10722 | # Allow CC to be a program name with arguments. | |
10723 | lt_save_CC="$CC" | |
10724 | CC=${FC-"f95"} | |
10725 | compiler=$CC | |
10726 | compiler_FC=$CC | |
10727 | for cc_temp in $compiler""; do | |
10728 | case $cc_temp in | |
10729 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
10730 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
10731 | \-*) ;; | |
10732 | *) break;; | |
10733 | esac | |
10734 | done | |
10735 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
10736 | ||
10737 | ||
10738 | if test -n "$compiler"; then | |
10739 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
10740 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
10741 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
10742 | echo "${ECHO_T}$can_build_shared" >&6 | |
10743 | ||
10744 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
10745 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
10746 | test "$can_build_shared" = "no" && enable_shared=no | |
10747 | ||
10748 | # On AIX, shared libraries and static libraries use the same namespace, and | |
10749 | # are all built from PIC. | |
10750 | case $host_os in | |
10751 | aix3*) | |
10752 | test "$enable_shared" = yes && enable_static=no | |
10753 | if test -n "$RANLIB"; then | |
10754 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10755 | postinstall_cmds='$RANLIB $lib' | |
10756 | fi | |
10757 | ;; | |
10758 | aix4* | aix5*) | |
10759 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
10760 | test "$enable_shared" = yes && enable_static=no | |
10761 | fi | |
10762 | ;; | |
10763 | esac | |
10764 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
10765 | echo "${ECHO_T}$enable_shared" >&6 | |
10766 | ||
10767 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
10768 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
10769 | # Make sure either enable_shared or enable_static is yes. | |
10770 | test "$enable_shared" = yes || enable_static=yes | |
10771 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
10772 | echo "${ECHO_T}$enable_static" >&6 | |
10773 | ||
10774 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
10775 | LD_FC="$LD" | |
10776 | ||
10777 | ## CAVEAT EMPTOR: | |
10778 | ## There is no encapsulation within the following macros, do not change | |
10779 | ## the running order or otherwise move them around unless you know exactly | |
10780 | ## what you are doing... | |
10781 | # Dependencies to place before and after the object being linked: | |
10782 | predep_objects_FC= | |
10783 | postdep_objects_FC= | |
10784 | predeps_FC= | |
10785 | postdeps_FC= | |
10786 | compiler_lib_search_path_FC= | |
10787 | ||
10788 | cat > conftest.$ac_ext <<_LT_EOF | |
10789 | subroutine foo | |
10790 | implicit none | |
10791 | integer a | |
10792 | a=0 | |
10793 | return | |
10794 | end | |
10795 | _LT_EOF | |
10796 | ||
10797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10798 | (eval $ac_compile) 2>&5 | |
10799 | ac_status=$? | |
10800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10801 | (exit $ac_status); }; then | |
10802 | # Parse the compiler output and extract the necessary | |
10803 | # objects, libraries and library flags. | |
10804 | ||
10805 | # Sentinel used to keep track of whether or not we are before | |
10806 | # the conftest object file. | |
10807 | pre_test_object_deps_done=no | |
10808 | ||
10809 | # The `*' in the case matches for architectures that use `case' in | |
10810 | # $output_verbose_cmd can trigger glob expansion during the loop | |
10811 | # eval without this substitution. | |
10812 | output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | |
10813 | ||
10814 | for p in `eval $output_verbose_link_cmd`; do | |
10815 | case $p in | |
10816 | ||
10817 | -L* | -R* | -l*) | |
10818 | # Some compilers place space between "-{L,R}" and the path. | |
10819 | # Remove the space. | |
10820 | if test $p = "-L" || | |
10821 | test $p = "-R"; then | |
10822 | prev=$p | |
10823 | continue | |
10824 | else | |
10825 | prev= | |
10826 | fi | |
10827 | ||
10828 | if test "$pre_test_object_deps_done" = no; then | |
10829 | case $p in | |
10830 | -L* | -R*) | |
10831 | # Internal compiler library paths should come after those | |
10832 | # provided the user. The postdeps already come after the | |
10833 | # user supplied libs so there is no need to process them. | |
10834 | if test -z "$compiler_lib_search_path_FC"; then | |
10835 | compiler_lib_search_path_FC="${prev}${p}" | |
10836 | else | |
10837 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
10838 | fi | |
10839 | ;; | |
10840 | # The "-l" case would never come before the object being | |
10841 | # linked, so don't bother handling this case. | |
10842 | esac | |
10843 | else | |
10844 | if test -z "$postdeps_FC"; then | |
10845 | postdeps_FC="${prev}${p}" | |
10846 | else | |
10847 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
10848 | fi | |
10849 | fi | |
10850 | ;; | |
10851 | ||
10852 | *.$objext) | |
10853 | # This assumes that the test object file only shows up | |
10854 | # once in the compiler output. | |
10855 | if test "$p" = "conftest.$objext"; then | |
10856 | pre_test_object_deps_done=yes | |
10857 | continue | |
10858 | fi | |
10859 | ||
10860 | if test "$pre_test_object_deps_done" = no; then | |
10861 | if test -z "$predep_objects_FC"; then | |
10862 | predep_objects_FC="$p" | |
10863 | else | |
10864 | predep_objects_FC="$predep_objects_FC $p" | |
10865 | fi | |
10866 | else | |
10867 | if test -z "$postdep_objects_FC"; then | |
10868 | postdep_objects_FC="$p" | |
10869 | else | |
10870 | postdep_objects_FC="$postdep_objects_FC $p" | |
10871 | fi | |
10872 | fi | |
10873 | ;; | |
10874 | ||
10875 | *) ;; # Ignore the rest. | |
10876 | ||
10877 | esac | |
10878 | done | |
10879 | ||
10880 | # Clean up. | |
10881 | rm -f a.out a.exe | |
10882 | else | |
10883 | echo "libtool.m4: error: problem compiling FC test program" | |
10884 | fi | |
10885 | ||
10886 | $RM -f confest.$objext | |
10887 | ||
10888 | # PORTME: override above test on systems where it is broken | |
10889 | ||
10890 | ||
10891 | case " $postdeps_FC " in | |
10892 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
10893 | esac | |
10894 | ||
10895 | ||
10896 | ||
10897 | ||
10898 | ||
10899 | ||
10900 | ||
10901 | ||
10902 | ||
10903 | ||
10904 | ||
10905 | ||
10906 | ||
10907 | ||
10908 | ||
10909 | ||
10910 | ||
10911 | ||
10912 | ||
10913 | ||
10914 | ||
10915 | ||
10916 | ||
10917 | ||
10918 | ||
10919 | ||
10920 | lt_prog_compiler_wl_FC= | |
10921 | lt_prog_compiler_pic_FC= | |
10922 | lt_prog_compiler_static_FC= | |
10923 | ||
10924 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
10925 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
10926 | ||
10927 | if test "$GCC" = yes; then | |
10928 | lt_prog_compiler_wl_FC='-Wl,' | |
10929 | lt_prog_compiler_static_FC='-static' | |
10930 | ||
10931 | case $host_os in | |
10932 | aix*) | |
10933 | # All AIX code is PIC. | |
10934 | if test "$host_cpu" = ia64; then | |
10935 | # AIX 5 now supports IA64 processor | |
10936 | lt_prog_compiler_static_FC='-Bstatic' | |
10937 | fi | |
10938 | ;; | |
10939 | ||
10940 | amigaos*) | |
10941 | if test "$host_cpu" = m68k; then | |
10942 | # FIXME: we need at least 68020 code to build shared libraries, but | |
10943 | # adding the `-m68020' flag to GCC prevents building anything better, | |
10944 | # like `-m68040'. | |
10945 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
10946 | fi | |
10947 | ;; | |
10948 | ||
10949 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
10950 | # PIC is the default for these OSes. | |
10951 | ;; | |
10952 | ||
10953 | mingw* | cygwin* | pw32* | os2*) | |
10954 | # This hack is so that the source file can tell whether it is being | |
10955 | # built for inclusion in a dll (and should export symbols for example). | |
10956 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
10957 | # (--disable-auto-import) libraries | |
10958 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
10959 | ;; | |
10960 | ||
10961 | darwin* | rhapsody*) | |
10962 | # PIC is the default on this platform | |
10963 | # Common symbols not allowed in MH_DYLIB files | |
10964 | lt_prog_compiler_pic_FC='-fno-common' | |
10965 | ;; | |
10966 | ||
10967 | hpux*) | |
10968 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
10969 | # not for PA HP-UX. | |
10970 | case $host_cpu in | |
10971 | hppa*64*|ia64*) | |
10972 | # +Z the default | |
10973 | ;; | |
10974 | *) | |
10975 | lt_prog_compiler_pic_FC='-fPIC' | |
10976 | ;; | |
10977 | esac | |
10978 | ;; | |
10979 | ||
10980 | interix[3-9]*) | |
10981 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
10982 | # Instead, we relocate shared libraries at runtime. | |
10983 | ;; | |
10984 | ||
10985 | msdosdjgpp*) | |
10986 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
10987 | # on systems that don't support them. | |
10988 | lt_prog_compiler_can_build_shared_FC=no | |
10989 | enable_shared=no | |
10990 | ;; | |
10991 | ||
10992 | *nto* | *qnx*) | |
10993 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
10994 | # it will coredump. | |
10995 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
10996 | ;; | |
10997 | ||
10998 | sysv4*MP*) | |
10999 | if test -d /usr/nec; then | |
11000 | lt_prog_compiler_pic_FC=-Kconform_pic | |
11001 | fi | |
11002 | ;; | |
11003 | ||
11004 | *) | |
11005 | lt_prog_compiler_pic_FC='-fPIC' | |
11006 | ;; | |
11007 | esac | |
11008 | else | |
11009 | # PORTME Check for flag to pass linker flags through the system compiler. | |
11010 | case $host_os in | |
11011 | aix*) | |
11012 | lt_prog_compiler_wl_FC='-Wl,' | |
11013 | if test "$host_cpu" = ia64; then | |
11014 | # AIX 5 now supports IA64 processor | |
11015 | lt_prog_compiler_static_FC='-Bstatic' | |
11016 | else | |
11017 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
11018 | fi | |
11019 | ;; | |
11020 | darwin*) | |
11021 | # PIC is the default on this platform | |
11022 | # Common symbols not allowed in MH_DYLIB files | |
11023 | case $cc_basename in | |
11024 | xlc*) | |
11025 | lt_prog_compiler_pic_FC='-qnocommon' | |
11026 | lt_prog_compiler_wl_FC='-Wl,' | |
11027 | ;; | |
11028 | esac | |
11029 | ;; | |
11030 | ||
11031 | mingw* | cygwin* | pw32* | os2*) | |
11032 | # This hack is so that the source file can tell whether it is being | |
11033 | # built for inclusion in a dll (and should export symbols for example). | |
11034 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
11035 | ;; | |
11036 | ||
11037 | hpux9* | hpux10* | hpux11*) | |
11038 | lt_prog_compiler_wl_FC='-Wl,' | |
11039 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
11040 | # not for PA HP-UX. | |
11041 | case $host_cpu in | |
11042 | hppa*64*|ia64*) | |
11043 | # +Z the default | |
11044 | ;; | |
11045 | *) | |
11046 | lt_prog_compiler_pic_FC='+Z' | |
11047 | ;; | |
11048 | esac | |
11049 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
11050 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
11051 | ;; | |
11052 | ||
11053 | irix5* | irix6* | nonstopux*) | |
11054 | lt_prog_compiler_wl_FC='-Wl,' | |
11055 | # PIC (with -KPIC) is the default. | |
11056 | lt_prog_compiler_static_FC='-non_shared' | |
11057 | ;; | |
11058 | ||
11059 | linux* | k*bsd*-gnu) | |
11060 | case $cc_basename in | |
11061 | icc* | ecc*) | |
11062 | lt_prog_compiler_wl_FC='-Wl,' | |
11063 | lt_prog_compiler_pic_FC='-KPIC' | |
11064 | lt_prog_compiler_static_FC='-static' | |
11065 | ;; | |
11066 | pgcc* | pgf77* | pgf90* | pgf95*) | |
11067 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
11068 | # which looks to be a dead project) | |
11069 | lt_prog_compiler_wl_FC='-Wl,' | |
11070 | lt_prog_compiler_pic_FC='-fpic' | |
11071 | lt_prog_compiler_static_FC='-Bstatic' | |
11072 | ;; | |
11073 | ccc*) | |
11074 | lt_prog_compiler_wl_FC='-Wl,' | |
11075 | # All Alpha code is PIC. | |
11076 | lt_prog_compiler_static_FC='-non_shared' | |
11077 | ;; | |
11078 | *) | |
11079 | case `$CC -V 2>&1 | sed 5q` in | |
11080 | *Sun\ C*) | |
11081 | # Sun C 5.9 | |
11082 | lt_prog_compiler_pic_FC='-KPIC' | |
11083 | lt_prog_compiler_static_FC='-Bstatic' | |
11084 | lt_prog_compiler_wl_FC='-Wl,' | |
11085 | ;; | |
11086 | *Sun\ F*) | |
11087 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
11088 | lt_prog_compiler_pic_FC='-KPIC' | |
11089 | lt_prog_compiler_static_FC='-Bstatic' | |
11090 | lt_prog_compiler_wl_FC='' | |
11091 | ;; | |
11092 | esac | |
11093 | ;; | |
11094 | esac | |
11095 | ;; | |
11096 | ||
11097 | newsos6) | |
11098 | lt_prog_compiler_pic_FC='-KPIC' | |
11099 | lt_prog_compiler_static_FC='-Bstatic' | |
11100 | ;; | |
11101 | ||
11102 | *nto* | *qnx*) | |
11103 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
11104 | # it will coredump. | |
11105 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
11106 | ;; | |
11107 | ||
11108 | osf3* | osf4* | osf5*) | |
11109 | lt_prog_compiler_wl_FC='-Wl,' | |
11110 | # All OSF/1 code is PIC. | |
11111 | lt_prog_compiler_static_FC='-non_shared' | |
11112 | ;; | |
11113 | ||
11114 | rdos*) | |
11115 | lt_prog_compiler_static_FC='-non_shared' | |
11116 | ;; | |
11117 | ||
11118 | solaris*) | |
11119 | lt_prog_compiler_pic_FC='-KPIC' | |
11120 | lt_prog_compiler_static_FC='-Bstatic' | |
11121 | case $cc_basename in | |
11122 | f77* | f90* | f95*) | |
11123 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
11124 | *) | |
11125 | lt_prog_compiler_wl_FC='-Wl,';; | |
11126 | esac | |
11127 | ;; | |
11128 | ||
11129 | sunos4*) | |
11130 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
11131 | lt_prog_compiler_pic_FC='-PIC' | |
11132 | lt_prog_compiler_static_FC='-Bstatic' | |
11133 | ;; | |
11134 | ||
11135 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
11136 | lt_prog_compiler_wl_FC='-Wl,' | |
11137 | lt_prog_compiler_pic_FC='-KPIC' | |
11138 | lt_prog_compiler_static_FC='-Bstatic' | |
11139 | ;; | |
11140 | ||
11141 | sysv4*MP*) | |
11142 | if test -d /usr/nec ;then | |
11143 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
11144 | lt_prog_compiler_static_FC='-Bstatic' | |
11145 | fi | |
11146 | ;; | |
11147 | ||
11148 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
11149 | lt_prog_compiler_wl_FC='-Wl,' | |
11150 | lt_prog_compiler_pic_FC='-KPIC' | |
11151 | lt_prog_compiler_static_FC='-Bstatic' | |
11152 | ;; | |
11153 | ||
11154 | unicos*) | |
11155 | lt_prog_compiler_wl_FC='-Wl,' | |
11156 | lt_prog_compiler_can_build_shared_FC=no | |
11157 | ;; | |
11158 | ||
11159 | uts4*) | |
11160 | lt_prog_compiler_pic_FC='-pic' | |
11161 | lt_prog_compiler_static_FC='-Bstatic' | |
11162 | ;; | |
11163 | ||
11164 | *) | |
11165 | lt_prog_compiler_can_build_shared_FC=no | |
11166 | ;; | |
11167 | esac | |
11168 | fi | |
11169 | ||
11170 | case $host_os in | |
11171 | # For platforms which do not support PIC, -DPIC is meaningless: | |
11172 | *djgpp*) | |
11173 | lt_prog_compiler_pic_FC= | |
11174 | ;; | |
11175 | *) | |
11176 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
11177 | ;; | |
11178 | esac | |
11179 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5 | |
11180 | echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6 | |
11181 | ||
11182 | ||
11183 | ||
11184 | # | |
11185 | # Check to make sure the PIC flag actually works. | |
11186 | # | |
11187 | if test -n "$lt_prog_compiler_pic_FC"; then | |
11188 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 | |
11189 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6 | |
11190 | if test "${lt_prog_compiler_pic_works_FC+set}" = set; then | |
11191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11192 | else | |
11193 | lt_prog_compiler_pic_works_FC=no | |
11194 | ac_outfile=conftest.$ac_objext | |
11195 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11196 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
11197 | # Insert the option either (1) after the last *FLAGS variable, or | |
11198 | # (2) before a word containing "conftest.", or (3) at the end. | |
11199 | # Note that $ac_compile itself does not contain backslashes and begins | |
11200 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11201 | # The option is referenced via a variable to avoid confusing sed. | |
11202 | lt_compile=`echo "$ac_compile" | $SED \ | |
11203 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11204 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11205 | -e 's:$: $lt_compiler_flag:'` | |
5a037dbd | 11206 | (eval echo "\"\$as_me:11206: $lt_compile\"" >&5) |
542f9784 | 11207 | (eval "$lt_compile" 2>conftest.err) |
11208 | ac_status=$? | |
11209 | cat conftest.err >&5 | |
5a037dbd | 11210 | echo "$as_me:11210: \$? = $ac_status" >&5 |
542f9784 | 11211 | if (exit $ac_status) && test -s "$ac_outfile"; then |
11212 | # The compiler can only warn and ignore the option if not recognized | |
11213 | # So say no if there are warnings other than the usual output. | |
11214 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
11215 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11216 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
11217 | lt_prog_compiler_pic_works_FC=yes | |
11218 | fi | |
11219 | fi | |
11220 | $RM conftest* | |
11221 | ||
11222 | fi | |
11223 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5 | |
11224 | echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6 | |
11225 | ||
11226 | if test x"$lt_prog_compiler_pic_works_FC" = xyes; then | |
11227 | case $lt_prog_compiler_pic_FC in | |
11228 | "" | " "*) ;; | |
11229 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
11230 | esac | |
11231 | else | |
11232 | lt_prog_compiler_pic_FC= | |
11233 | lt_prog_compiler_can_build_shared_FC=no | |
11234 | fi | |
11235 | ||
11236 | fi | |
11237 | ||
11238 | ||
11239 | ||
11240 | # | |
11241 | # Check to make sure the static flag actually works. | |
11242 | # | |
11243 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
11244 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
11245 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
11246 | if test "${lt_prog_compiler_static_works_FC+set}" = set; then | |
11247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11248 | else | |
11249 | lt_prog_compiler_static_works_FC=no | |
11250 | save_LDFLAGS="$LDFLAGS" | |
11251 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
11252 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11253 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11254 | # The linker can only warn and ignore the option if not recognized | |
11255 | # So say no if there are warnings | |
11256 | if test -s conftest.err; then | |
11257 | # Append any errors to the config.log. | |
11258 | cat conftest.err 1>&5 | |
11259 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
11260 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11261 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11262 | lt_prog_compiler_static_works_FC=yes | |
11263 | fi | |
11264 | else | |
11265 | lt_prog_compiler_static_works_FC=yes | |
11266 | fi | |
11267 | fi | |
11268 | $RM conftest* | |
11269 | LDFLAGS="$save_LDFLAGS" | |
11270 | ||
11271 | fi | |
11272 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5 | |
11273 | echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6 | |
11274 | ||
11275 | if test x"$lt_prog_compiler_static_works_FC" = xyes; then | |
11276 | : | |
11277 | else | |
11278 | lt_prog_compiler_static_FC= | |
11279 | fi | |
11280 | ||
11281 | ||
11282 | ||
11283 | ||
11284 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
11285 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
11286 | if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then | |
11287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11288 | else | |
11289 | lt_cv_prog_compiler_c_o_FC=no | |
11290 | $RM -r conftest 2>/dev/null | |
11291 | mkdir conftest | |
11292 | cd conftest | |
11293 | mkdir out | |
11294 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11295 | ||
11296 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
11297 | # Insert the option either (1) after the last *FLAGS variable, or | |
11298 | # (2) before a word containing "conftest.", or (3) at the end. | |
11299 | # Note that $ac_compile itself does not contain backslashes and begins | |
11300 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11301 | lt_compile=`echo "$ac_compile" | $SED \ | |
11302 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11303 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11304 | -e 's:$: $lt_compiler_flag:'` | |
5a037dbd | 11305 | (eval echo "\"\$as_me:11305: $lt_compile\"" >&5) |
542f9784 | 11306 | (eval "$lt_compile" 2>out/conftest.err) |
11307 | ac_status=$? | |
11308 | cat out/conftest.err >&5 | |
5a037dbd | 11309 | echo "$as_me:11309: \$? = $ac_status" >&5 |
542f9784 | 11310 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11311 | then | |
11312 | # The compiler can only warn and ignore the option if not recognized | |
11313 | # So say no if there are warnings | |
11314 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
11315 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
11316 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
11317 | lt_cv_prog_compiler_c_o_FC=yes | |
11318 | fi | |
11319 | fi | |
11320 | chmod u+w . 2>&5 | |
11321 | $RM conftest* | |
11322 | # SGI C++ compiler will create directory out/ii_files/ for | |
11323 | # template instantiation | |
11324 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
11325 | $RM out/* && rmdir out | |
11326 | cd .. | |
11327 | $RM -r conftest | |
11328 | $RM conftest* | |
11329 | ||
11330 | fi | |
11331 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5 | |
11332 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6 | |
11333 | ||
11334 | ||
11335 | ||
11336 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
11337 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
11338 | if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then | |
11339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11340 | else | |
11341 | lt_cv_prog_compiler_c_o_FC=no | |
11342 | $RM -r conftest 2>/dev/null | |
11343 | mkdir conftest | |
11344 | cd conftest | |
11345 | mkdir out | |
11346 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11347 | ||
11348 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
11349 | # Insert the option either (1) after the last *FLAGS variable, or | |
11350 | # (2) before a word containing "conftest.", or (3) at the end. | |
11351 | # Note that $ac_compile itself does not contain backslashes and begins | |
11352 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11353 | lt_compile=`echo "$ac_compile" | $SED \ | |
11354 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11355 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11356 | -e 's:$: $lt_compiler_flag:'` | |
5a037dbd | 11357 | (eval echo "\"\$as_me:11357: $lt_compile\"" >&5) |
542f9784 | 11358 | (eval "$lt_compile" 2>out/conftest.err) |
11359 | ac_status=$? | |
11360 | cat out/conftest.err >&5 | |
5a037dbd | 11361 | echo "$as_me:11361: \$? = $ac_status" >&5 |
542f9784 | 11362 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11363 | then | |
11364 | # The compiler can only warn and ignore the option if not recognized | |
11365 | # So say no if there are warnings | |
11366 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
11367 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
11368 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
11369 | lt_cv_prog_compiler_c_o_FC=yes | |
11370 | fi | |
11371 | fi | |
11372 | chmod u+w . 2>&5 | |
11373 | $RM conftest* | |
11374 | # SGI C++ compiler will create directory out/ii_files/ for | |
11375 | # template instantiation | |
11376 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
11377 | $RM out/* && rmdir out | |
11378 | cd .. | |
11379 | $RM -r conftest | |
11380 | $RM conftest* | |
11381 | ||
11382 | fi | |
11383 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5 | |
11384 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6 | |
11385 | ||
11386 | ||
11387 | ||
11388 | ||
11389 | hard_links="nottested" | |
11390 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
11391 | # do not overwrite the value of need_locks provided by the user | |
11392 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
11393 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
11394 | hard_links=yes | |
11395 | $RM conftest* | |
11396 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11397 | touch conftest.a | |
11398 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
11399 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11400 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
11401 | echo "${ECHO_T}$hard_links" >&6 | |
11402 | if test "$hard_links" = no; then | |
11403 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
11404 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
11405 | need_locks=warn | |
11406 | fi | |
11407 | else | |
11408 | need_locks=no | |
11409 | fi | |
11410 | ||
11411 | ||
11412 | ||
11413 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11414 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
11415 | ||
11416 | runpath_var= | |
11417 | allow_undefined_flag_FC= | |
11418 | always_export_symbols_FC=no | |
11419 | archive_cmds_FC= | |
11420 | archive_expsym_cmds_FC= | |
11421 | compiler_needs_object_FC=no | |
11422 | enable_shared_with_static_runtimes_FC=no | |
11423 | export_dynamic_flag_spec_FC= | |
11424 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
11425 | hardcode_automatic_FC=no | |
11426 | hardcode_direct_FC=no | |
11427 | hardcode_direct_absolute_FC=no | |
11428 | hardcode_libdir_flag_spec_FC= | |
11429 | hardcode_libdir_flag_spec_ld_FC= | |
11430 | hardcode_libdir_separator_FC= | |
11431 | hardcode_minus_L_FC=no | |
11432 | hardcode_shlibpath_var_FC=unsupported | |
11433 | inherit_rpath_FC=no | |
11434 | link_all_deplibs_FC=unknown | |
11435 | module_cmds_FC= | |
11436 | module_expsym_cmds_FC= | |
11437 | old_archive_from_new_cmds_FC= | |
11438 | old_archive_from_expsyms_cmds_FC= | |
11439 | thread_safe_flag_spec_FC= | |
11440 | whole_archive_flag_spec_FC= | |
11441 | # include_expsyms should be a list of space-separated symbols to be *always* | |
11442 | # included in the symbol list | |
11443 | include_expsyms_FC= | |
11444 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
11445 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
11446 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
11447 | # as well as any symbol that contains `d'. | |
11448 | exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_" | |
11449 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
11450 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
11451 | # the symbol is explicitly referenced. Since portable code cannot | |
11452 | # rely on this symbol name, it's probably fine to never include it in | |
11453 | # preloaded symbol tables. | |
11454 | extract_expsyms_cmds= | |
11455 | ||
11456 | case $host_os in | |
11457 | cygwin* | mingw* | pw32*) | |
11458 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
11459 | # When not using gcc, we currently assume that we are using | |
11460 | # Microsoft Visual C++. | |
11461 | if test "$GCC" != yes; then | |
11462 | with_gnu_ld=no | |
11463 | fi | |
11464 | ;; | |
11465 | interix*) | |
11466 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
11467 | with_gnu_ld=yes | |
11468 | ;; | |
11469 | openbsd*) | |
11470 | with_gnu_ld=no | |
11471 | ;; | |
11472 | esac | |
11473 | ||
11474 | ld_shlibs_FC=yes | |
11475 | if test "$with_gnu_ld" = yes; then | |
11476 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
11477 | wlarc='${wl}' | |
11478 | ||
11479 | # Set some defaults for GNU ld with shared library support. These | |
11480 | # are reset later if shared libraries are not supported. Putting them | |
11481 | # here allows them to be overridden if necessary. | |
11482 | runpath_var=LD_RUN_PATH | |
11483 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
11484 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
11485 | # ancient GNU ld didn't support --whole-archive et. al. | |
11486 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
11487 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11488 | else | |
11489 | whole_archive_flag_spec_FC= | |
11490 | fi | |
11491 | supports_anon_versioning=no | |
11492 | case `$LD -v 2>&1` in | |
11493 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
11494 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
11495 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
11496 | *\ 2.11.*) ;; # other 2.11 versions | |
11497 | *) supports_anon_versioning=yes ;; | |
11498 | esac | |
11499 | ||
11500 | # See if GNU ld supports shared libraries. | |
11501 | case $host_os in | |
11502 | aix3* | aix4* | aix5*) | |
11503 | # On AIX/PPC, the GNU linker is very broken | |
11504 | if test "$host_cpu" != ia64; then | |
11505 | ld_shlibs_FC=no | |
11506 | cat <<_LT_EOF 1>&2 | |
11507 | ||
11508 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
11509 | *** to be unable to reliably create shared libraries on AIX. | |
11510 | *** Therefore, libtool is disabling shared libraries support. If you | |
11511 | *** really care for shared libraries, you may want to modify your PATH | |
11512 | *** so that a non-GNU linker is found, and then restart. | |
11513 | ||
11514 | _LT_EOF | |
11515 | fi | |
11516 | ;; | |
11517 | ||
11518 | amigaos*) | |
11519 | if test "$host_cpu" = m68k; then | |
11520 | archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
11521 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
11522 | hardcode_minus_L_FC=yes | |
11523 | fi | |
11524 | ||
11525 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
11526 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
11527 | # to version 4, is to share data among multiple programs linked | |
11528 | # with the same dynamic library. Since this doesn't match the | |
11529 | # behavior of shared libraries on other platforms, we can't use | |
11530 | # them. | |
11531 | ld_shlibs_FC=no | |
11532 | ;; | |
11533 | ||
11534 | beos*) | |
11535 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11536 | allow_undefined_flag_FC=unsupported | |
11537 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11538 | # support --undefined. This deserves some investigation. FIXME | |
11539 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11540 | else | |
11541 | ld_shlibs_FC=no | |
11542 | fi | |
11543 | ;; | |
11544 | ||
11545 | cygwin* | mingw* | pw32*) | |
11546 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, | |
11547 | # as there is no search path for DLLs. | |
11548 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
11549 | allow_undefined_flag_FC=unsupported | |
11550 | always_export_symbols_FC=no | |
11551 | enable_shared_with_static_runtimes_FC=yes | |
11552 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
11553 | ||
11554 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
11555 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
11556 | # If the export-symbols file already is a .def file (1st line | |
11557 | # is EXPORTS), use it as is; otherwise, prepend... | |
11558 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
11559 | cp $export_symbols $output_objdir/$soname.def; | |
11560 | else | |
11561 | echo EXPORTS > $output_objdir/$soname.def; | |
11562 | cat $export_symbols >> $output_objdir/$soname.def; | |
11563 | fi~ | |
11564 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
11565 | else | |
11566 | ld_shlibs_FC=no | |
11567 | fi | |
11568 | ;; | |
11569 | ||
11570 | interix[3-9]*) | |
11571 | hardcode_direct_FC=no | |
11572 | hardcode_shlibpath_var_FC=no | |
11573 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
11574 | export_dynamic_flag_spec_FC='${wl}-E' | |
11575 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
11576 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
11577 | # default) and relocated if they conflict, which is a slow very memory | |
11578 | # consuming and fragmenting process. To avoid this, we pick a random, | |
11579 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
11580 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
11581 | archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
11582 | archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
11583 | ;; | |
11584 | ||
11585 | gnu* | linux* | tpf* | k*bsd*-gnu) | |
11586 | tmp_diet=no | |
11587 | if test "$host_os" = linux-dietlibc; then | |
11588 | case $cc_basename in | |
11589 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
11590 | esac | |
11591 | fi | |
11592 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
11593 | && test "$tmp_diet" = no | |
11594 | then | |
11595 | tmp_addflag= | |
11596 | case $cc_basename,$host_cpu in | |
11597 | pgcc*) # Portland Group C compiler | |
11598 | whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
11599 | tmp_addflag=' $pic_flag' | |
11600 | ;; | |
11601 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
11602 | whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
11603 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
11604 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
11605 | tmp_addflag=' -i_dynamic' ;; | |
11606 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
11607 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
11608 | ifc* | ifort*) # Intel Fortran compiler | |
11609 | tmp_addflag=' -nofor_main' ;; | |
11610 | esac | |
11611 | case `$CC -V 2>&1 | sed 5q` in | |
11612 | *Sun\ C*) # Sun C 5.9 | |
11613 | whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
11614 | compiler_needs_object_FC=yes | |
11615 | tmp_sharedflag='-G' ;; | |
11616 | *Sun\ F*) # Sun Fortran 8.3 | |
11617 | tmp_sharedflag='-G' ;; | |
11618 | *) | |
11619 | tmp_sharedflag='-shared' ;; | |
11620 | esac | |
11621 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11622 | ||
11623 | if test "x$supports_anon_versioning" = xyes; then | |
11624 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
11625 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
11626 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
11627 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
11628 | fi | |
11629 | else | |
11630 | ld_shlibs_FC=no | |
11631 | fi | |
11632 | ;; | |
11633 | ||
11634 | netbsd*) | |
11635 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11636 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
11637 | wlarc= | |
11638 | else | |
11639 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11640 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11641 | fi | |
11642 | ;; | |
11643 | ||
11644 | solaris*) | |
11645 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
11646 | ld_shlibs_FC=no | |
11647 | cat <<_LT_EOF 1>&2 | |
11648 | ||
11649 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
11650 | *** create shared libraries on Solaris systems. Therefore, libtool | |
11651 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
11652 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
11653 | *** your PATH or compiler configuration so that the native linker is | |
11654 | *** used, and then restart. | |
11655 | ||
11656 | _LT_EOF | |
11657 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11658 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11659 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11660 | else | |
11661 | ld_shlibs_FC=no | |
11662 | fi | |
11663 | ;; | |
11664 | ||
11665 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
11666 | case `$LD -v 2>&1` in | |
11667 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
11668 | ld_shlibs_FC=no | |
11669 | cat <<_LT_EOF 1>&2 | |
11670 | ||
11671 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
11672 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
11673 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
11674 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
11675 | *** your PATH or compiler configuration so that the native linker is | |
11676 | *** used, and then restart. | |
11677 | ||
11678 | _LT_EOF | |
11679 | ;; | |
11680 | *) | |
11681 | # For security reasons, it is highly recommended that you always | |
11682 | # use absolute paths for naming shared libraries, and exclude the | |
11683 | # DT_RUNPATH tag from executables and libraries. But doing so | |
11684 | # requires that you compile everything twice, which is a pain. | |
11685 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11686 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
11687 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11688 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11689 | else | |
11690 | ld_shlibs_FC=no | |
11691 | fi | |
11692 | ;; | |
11693 | esac | |
11694 | ;; | |
11695 | ||
11696 | sunos4*) | |
11697 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11698 | wlarc= | |
11699 | hardcode_direct_FC=yes | |
11700 | hardcode_shlibpath_var_FC=no | |
11701 | ;; | |
11702 | ||
11703 | *) | |
11704 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11705 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11706 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11707 | else | |
11708 | ld_shlibs_FC=no | |
11709 | fi | |
11710 | ;; | |
11711 | esac | |
11712 | ||
11713 | if test "$ld_shlibs_FC" = no; then | |
11714 | runpath_var= | |
11715 | hardcode_libdir_flag_spec_FC= | |
11716 | export_dynamic_flag_spec_FC= | |
11717 | whole_archive_flag_spec_FC= | |
11718 | fi | |
11719 | else | |
11720 | # PORTME fill in a description of your system's linker (not GNU ld) | |
11721 | case $host_os in | |
11722 | aix3*) | |
11723 | allow_undefined_flag_FC=unsupported | |
11724 | always_export_symbols_FC=yes | |
11725 | archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
11726 | # Note: this linker hardcodes the directories in LIBPATH if there | |
11727 | # are no directories specified by -L. | |
11728 | hardcode_minus_L_FC=yes | |
11729 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
11730 | # Neither direct hardcoding nor static linking is supported with a | |
11731 | # broken collect2. | |
11732 | hardcode_direct_FC=unsupported | |
11733 | fi | |
11734 | ;; | |
11735 | ||
11736 | aix4* | aix5*) | |
11737 | if test "$host_cpu" = ia64; then | |
11738 | # On IA64, the linker does run time linking by default, so we don't | |
11739 | # have to do anything special. | |
11740 | aix_use_runtimelinking=no | |
11741 | exp_sym_flag='-Bexport' | |
11742 | no_entry_flag="" | |
11743 | else | |
11744 | # If we're using GNU nm, then we don't want the "-C" option. | |
11745 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
11746 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
11747 | export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
11748 | else | |
11749 | export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
11750 | fi | |
11751 | aix_use_runtimelinking=no | |
11752 | ||
11753 | # Test if we are trying to use run time linking or normal | |
11754 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
11755 | # need to do runtime linking. | |
11756 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
11757 | for ld_flag in $LDFLAGS; do | |
11758 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
11759 | aix_use_runtimelinking=yes | |
11760 | break | |
11761 | fi | |
11762 | done | |
11763 | ;; | |
11764 | esac | |
11765 | ||
11766 | exp_sym_flag='-bexport' | |
11767 | no_entry_flag='-bnoentry' | |
11768 | fi | |
11769 | ||
11770 | # When large executables or shared objects are built, AIX ld can | |
11771 | # have problems creating the table of contents. If linking a library | |
11772 | # or program results in "error TOC overflow" add -mminimal-toc to | |
11773 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11774 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11775 | ||
11776 | archive_cmds_FC='' | |
11777 | hardcode_direct_FC=yes | |
11778 | hardcode_direct_absolute_FC=yes | |
11779 | hardcode_libdir_separator_FC=':' | |
11780 | link_all_deplibs_FC=yes | |
11781 | file_list_spec_FC='${wl}-f,' | |
11782 | ||
11783 | if test "$GCC" = yes; then | |
11784 | case $host_os in aix4.[012]|aix4.[012].*) | |
11785 | # We only want to do this on AIX 4.2 and lower, the check | |
11786 | # below for broken collect2 doesn't work under 4.3+ | |
11787 | collect2name=`${CC} -print-prog-name=collect2` | |
11788 | if test -f "$collect2name" && | |
11789 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
11790 | then | |
11791 | # We have reworked collect2 | |
11792 | : | |
11793 | else | |
11794 | # We have old collect2 | |
11795 | hardcode_direct_FC=unsupported | |
11796 | # It fails to find uninstalled libraries when the uninstalled | |
11797 | # path is not listed in the libpath. Setting hardcode_minus_L | |
11798 | # to unsupported forces relinking | |
11799 | hardcode_minus_L_FC=yes | |
11800 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
11801 | hardcode_libdir_separator_FC= | |
11802 | fi | |
11803 | ;; | |
11804 | esac | |
11805 | shared_flag='-shared' | |
11806 | if test "$aix_use_runtimelinking" = yes; then | |
11807 | shared_flag="$shared_flag "'${wl}-G' | |
11808 | fi | |
11809 | else | |
11810 | # not using gcc | |
11811 | if test "$host_cpu" = ia64; then | |
11812 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11813 | # chokes on -Wl,-G. The following line is correct: | |
11814 | shared_flag='-G' | |
11815 | else | |
11816 | if test "$aix_use_runtimelinking" = yes; then | |
11817 | shared_flag='${wl}-G' | |
11818 | else | |
11819 | shared_flag='${wl}-bM:SRE' | |
11820 | fi | |
11821 | fi | |
11822 | fi | |
11823 | ||
11824 | # It seems that -bexpall does not export symbols beginning with | |
11825 | # underscore (_), so it is better to generate a list of symbols to export. | |
11826 | always_export_symbols_FC=yes | |
11827 | if test "$aix_use_runtimelinking" = yes; then | |
11828 | # Warning - without using the other runtime loading flags (-brtl), | |
11829 | # -berok will link without error, but may produce a broken library. | |
11830 | allow_undefined_flag_FC='-berok' | |
11831 | # Determine the default libpath from the value encoded in an | |
11832 | # empty executable. | |
11833 | if test x$gcc_no_link = xyes; then | |
11834 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11835 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11836 | { (exit 1); exit 1; }; } | |
11837 | fi | |
11838 | cat >conftest.$ac_ext <<_ACEOF | |
11839 | program main | |
11840 | ||
11841 | end | |
11842 | _ACEOF | |
11843 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11845 | (eval $ac_link) 2>conftest.er1 | |
90e67cff | 11846 | ac_status=$? |
11847 | grep -v '^ *+' conftest.er1 >conftest.err | |
11848 | rm -f conftest.er1 | |
11849 | cat conftest.err >&5 | |
11850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11851 | (exit $ac_status); } && | |
542f9784 | 11852 | { ac_try='test -z "$ac_fc_werror_flag" |
11853 | || test ! -s conftest.err' | |
11854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11855 | (eval $ac_try) 2>&5 | |
11856 | ac_status=$? | |
11857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11858 | (exit $ac_status); }; } && | |
11859 | { ac_try='test -s conftest$ac_exeext' | |
11860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11861 | (eval $ac_try) 2>&5 | |
11862 | ac_status=$? | |
11863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11864 | (exit $ac_status); }; }; then | |
11865 | ||
11866 | lt_aix_libpath_sed=' | |
11867 | /Import File Strings/,/^$/ { | |
11868 | /^0/ { | |
11869 | s/^0 *\(.*\)$/\1/ | |
11870 | p | |
11871 | } | |
11872 | }' | |
11873 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11874 | # Check for a 64-bit object if we didn't find anything. | |
11875 | if test -z "$aix_libpath"; then | |
11876 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11877 | fi | |
11878 | else | |
11879 | echo "$as_me: failed program was:" >&5 | |
11880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11881 | ||
11882 | fi | |
11883 | rm -f conftest.err conftest.$ac_objext \ | |
11884 | conftest$ac_exeext conftest.$ac_ext | |
11885 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11886 | ||
11887 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11888 | archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
11889 | else | |
11890 | if test "$host_cpu" = ia64; then | |
11891 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
11892 | allow_undefined_flag_FC="-z nodefs" | |
11893 | archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
11894 | else | |
11895 | # Determine the default libpath from the value encoded in an | |
11896 | # empty executable. | |
11897 | if test x$gcc_no_link = xyes; then | |
11898 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11899 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11900 | { (exit 1); exit 1; }; } | |
11901 | fi | |
11902 | cat >conftest.$ac_ext <<_ACEOF | |
11903 | program main | |
11904 | ||
11905 | end | |
11906 | _ACEOF | |
11907 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11909 | (eval $ac_link) 2>conftest.er1 | |
11910 | ac_status=$? | |
11911 | grep -v '^ *+' conftest.er1 >conftest.err | |
11912 | rm -f conftest.er1 | |
11913 | cat conftest.err >&5 | |
11914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11915 | (exit $ac_status); } && | |
11916 | { ac_try='test -z "$ac_fc_werror_flag" | |
11917 | || test ! -s conftest.err' | |
11918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11919 | (eval $ac_try) 2>&5 | |
11920 | ac_status=$? | |
11921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11922 | (exit $ac_status); }; } && | |
11923 | { ac_try='test -s conftest$ac_exeext' | |
11924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11925 | (eval $ac_try) 2>&5 | |
11926 | ac_status=$? | |
11927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11928 | (exit $ac_status); }; }; then | |
11929 | ||
11930 | lt_aix_libpath_sed=' | |
11931 | /Import File Strings/,/^$/ { | |
11932 | /^0/ { | |
11933 | s/^0 *\(.*\)$/\1/ | |
11934 | p | |
11935 | } | |
11936 | }' | |
11937 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11938 | # Check for a 64-bit object if we didn't find anything. | |
11939 | if test -z "$aix_libpath"; then | |
11940 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11941 | fi | |
11942 | else | |
11943 | echo "$as_me: failed program was:" >&5 | |
11944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11945 | ||
11946 | fi | |
11947 | rm -f conftest.err conftest.$ac_objext \ | |
11948 | conftest$ac_exeext conftest.$ac_ext | |
11949 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11950 | ||
11951 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11952 | # Warning - without using the other run time loading flags, | |
11953 | # -berok will link without error, but may produce a broken library. | |
11954 | no_undefined_flag_FC=' ${wl}-bernotok' | |
11955 | allow_undefined_flag_FC=' ${wl}-berok' | |
11956 | # Exported symbols can be pulled into shared objects from archives | |
11957 | whole_archive_flag_spec_FC='$convenience' | |
11958 | archive_cmds_need_lc_FC=yes | |
11959 | # This is similar to how AIX traditionally builds its shared libraries. | |
11960 | archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
11961 | fi | |
11962 | fi | |
11963 | ;; | |
11964 | ||
11965 | amigaos*) | |
11966 | if test "$host_cpu" = m68k; then | |
11967 | archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
11968 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
11969 | hardcode_minus_L_FC=yes | |
11970 | fi | |
11971 | # see comment about different semantics on the GNU ld section | |
11972 | ld_shlibs_FC=no | |
11973 | ;; | |
11974 | ||
11975 | bsdi[45]*) | |
11976 | export_dynamic_flag_spec_FC=-rdynamic | |
11977 | ;; | |
11978 | ||
11979 | cygwin* | mingw* | pw32*) | |
11980 | # When not using gcc, we currently assume that we are using | |
11981 | # Microsoft Visual C++. | |
11982 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
11983 | # no search path for DLLs. | |
11984 | hardcode_libdir_flag_spec_FC=' ' | |
11985 | allow_undefined_flag_FC=unsupported | |
11986 | # Tell ltmain to make .lib files, not .a files. | |
11987 | libext=lib | |
11988 | # Tell ltmain to make .dll files, not .so files. | |
11989 | shrext_cmds=".dll" | |
11990 | # FIXME: Setting linknames here is a bad hack. | |
11991 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
11992 | # The linker will automatically build a .lib file if we build a DLL. | |
11993 | old_archive_from_new_cmds_FC='true' | |
11994 | # FIXME: Should let the user specify the lib program. | |
11995 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
11996 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
11997 | enable_shared_with_static_runtimes_FC=yes | |
11998 | ;; | |
11999 | ||
12000 | darwin* | rhapsody*) | |
12001 | case $host_os in | |
12002 | rhapsody* | darwin1.[012]) | |
12003 | allow_undefined_flag_FC='${wl}-undefined ${wl}suppress' | |
12004 | ;; | |
12005 | *) # Darwin 1.3 on | |
12006 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | |
12007 | 10.[012]) | |
12008 | allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
12009 | ;; | |
12010 | 10.*) | |
12011 | allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup' | |
12012 | ;; | |
12013 | esac | |
12014 | ;; | |
12015 | esac | |
12016 | archive_cmds_need_lc_FC=no | |
12017 | hardcode_direct_FC=no | |
12018 | hardcode_automatic_FC=yes | |
12019 | hardcode_shlibpath_var_FC=unsupported | |
12020 | whole_archive_flag_spec_FC='' | |
12021 | link_all_deplibs_FC=yes | |
12022 | if test "$GCC" = yes ; then | |
12023 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
12024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12025 | else | |
12026 | lt_cv_apple_cc_single_mod=no | |
12027 | if test -z "${LT_MULTI_MODULE}"; then | |
12028 | # By default we will add the -single_module flag. You can override | |
12029 | # by either setting the environment variable LT_MULTI_MODULE | |
12030 | # non-empty at configure time, or by adding -multi-module to the | |
12031 | # link flags. | |
12032 | echo "int foo(void){return 1;}" > conftest.c | |
12033 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
12034 | -dynamiclib ${wl}-single_module conftest.c | |
12035 | if test -f libconftest.dylib; then | |
12036 | lt_cv_apple_cc_single_mod=yes | |
12037 | rm libconftest.dylib | |
12038 | fi | |
12039 | rm conftest.$ac_ext | |
12040 | fi | |
12041 | fi | |
12042 | ||
12043 | output_verbose_link_cmd=echo | |
12044 | if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then | |
12045 | archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
12046 | archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
12047 | else | |
12048 | archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
12049 | archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
12050 | fi | |
12051 | module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
12052 | module_expsym_cmds_FC='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
12053 | else | |
12054 | case $cc_basename in | |
12055 | xlc*) | |
12056 | output_verbose_link_cmd=echo | |
12057 | archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring' | |
12058 | module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
12059 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
12060 | archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
12061 | module_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
12062 | ;; | |
12063 | *) | |
12064 | ld_shlibs_FC=no | |
12065 | ;; | |
12066 | esac | |
12067 | fi | |
12068 | ;; | |
12069 | ||
12070 | dgux*) | |
12071 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12072 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12073 | hardcode_shlibpath_var_FC=no | |
12074 | ;; | |
12075 | ||
12076 | freebsd1*) | |
12077 | ld_shlibs_FC=no | |
12078 | ;; | |
12079 | ||
12080 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
12081 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
12082 | # does not break anything, and helps significantly (at the cost of a little | |
12083 | # extra space). | |
12084 | freebsd2.2*) | |
12085 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
12086 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
12087 | hardcode_direct_FC=yes | |
12088 | hardcode_shlibpath_var_FC=no | |
12089 | ;; | |
12090 | ||
12091 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
12092 | freebsd2*) | |
12093 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12094 | hardcode_direct_FC=yes | |
12095 | hardcode_minus_L_FC=yes | |
12096 | hardcode_shlibpath_var_FC=no | |
12097 | ;; | |
12098 | ||
12099 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
12100 | freebsd* | dragonfly*) | |
12101 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
12102 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
12103 | hardcode_direct_FC=yes | |
12104 | hardcode_shlibpath_var_FC=no | |
12105 | ;; | |
12106 | ||
12107 | hpux9*) | |
12108 | if test "$GCC" = yes; then | |
12109 | archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
12110 | else | |
12111 | archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
12112 | fi | |
12113 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
12114 | hardcode_libdir_separator_FC=: | |
12115 | hardcode_direct_FC=yes | |
12116 | ||
12117 | # hardcode_minus_L: Not really in the search PATH, | |
12118 | # but as the default location of the library. | |
12119 | hardcode_minus_L_FC=yes | |
12120 | export_dynamic_flag_spec_FC='${wl}-E' | |
12121 | ;; | |
12122 | ||
12123 | hpux10*) | |
12124 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
12125 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
12126 | else | |
12127 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
12128 | fi | |
12129 | if test "$with_gnu_ld" = no; then | |
12130 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
12131 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
12132 | hardcode_libdir_separator_FC=: | |
12133 | hardcode_direct_FC=yes | |
12134 | hardcode_direct_absolute_FC=yes | |
12135 | export_dynamic_flag_spec_FC='${wl}-E' | |
12136 | # hardcode_minus_L: Not really in the search PATH, | |
12137 | # but as the default location of the library. | |
12138 | hardcode_minus_L_FC=yes | |
12139 | fi | |
12140 | ;; | |
12141 | ||
12142 | hpux11*) | |
12143 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
12144 | case $host_cpu in | |
12145 | hppa*64*) | |
12146 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12147 | ;; | |
12148 | ia64*) | |
12149 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
12150 | ;; | |
12151 | *) | |
12152 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
12153 | ;; | |
12154 | esac | |
12155 | else | |
12156 | case $host_cpu in | |
12157 | hppa*64*) | |
12158 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12159 | ;; | |
12160 | ia64*) | |
12161 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
12162 | ;; | |
12163 | *) | |
12164 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
12165 | ;; | |
12166 | esac | |
12167 | fi | |
12168 | if test "$with_gnu_ld" = no; then | |
12169 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
12170 | hardcode_libdir_separator_FC=: | |
12171 | ||
12172 | case $host_cpu in | |
12173 | hppa*64*|ia64*) | |
12174 | hardcode_direct_FC=no | |
12175 | hardcode_shlibpath_var_FC=no | |
12176 | ;; | |
12177 | *) | |
12178 | hardcode_direct_FC=yes | |
12179 | hardcode_direct_absolute_FC=yes | |
12180 | export_dynamic_flag_spec_FC='${wl}-E' | |
12181 | ||
12182 | # hardcode_minus_L: Not really in the search PATH, | |
12183 | # but as the default location of the library. | |
12184 | hardcode_minus_L_FC=yes | |
12185 | ;; | |
12186 | esac | |
12187 | fi | |
12188 | ;; | |
12189 | ||
12190 | irix5* | irix6* | nonstopux*) | |
12191 | if test "$GCC" = yes; then | |
12192 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12193 | # Try to use the -exported_symbol ld option, if it does not | |
12194 | # work, assume that -exports_file does not work either and | |
12195 | # implicitly export all symbols. | |
12196 | save_LDFLAGS="$LDFLAGS" | |
12197 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
12198 | if test x$gcc_no_link = xyes; then | |
12199 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12200 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12201 | { (exit 1); exit 1; }; } | |
12202 | fi | |
12203 | cat >conftest.$ac_ext <<_ACEOF | |
12204 | int foo(void) {} | |
12205 | _ACEOF | |
12206 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12208 | (eval $ac_link) 2>conftest.er1 | |
12209 | ac_status=$? | |
12210 | grep -v '^ *+' conftest.er1 >conftest.err | |
12211 | rm -f conftest.er1 | |
12212 | cat conftest.err >&5 | |
12213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12214 | (exit $ac_status); } && | |
12215 | { ac_try='test -z "$ac_fc_werror_flag" | |
c0e8efbe | 12216 | || test ! -s conftest.err' |
a106dabe | 12217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12218 | (eval $ac_try) 2>&5 | |
90e67cff | 12219 | ac_status=$? |
12220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
542f9784 | 12221 | (exit $ac_status); }; } && |
12222 | { ac_try='test -s conftest$ac_exeext' | |
12223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12224 | (eval $ac_try) 2>&5 | |
12225 | ac_status=$? | |
12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12227 | (exit $ac_status); }; }; then | |
12228 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
12229 | ||
12230 | else | |
12231 | echo "$as_me: failed program was:" >&5 | |
12232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12233 | ||
12234 | fi | |
12235 | rm -f conftest.err conftest.$ac_objext \ | |
12236 | conftest$ac_exeext conftest.$ac_ext | |
12237 | LDFLAGS="$save_LDFLAGS" | |
12238 | else | |
12239 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12240 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
12241 | fi | |
12242 | archive_cmds_need_lc_FC='no' | |
12243 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
12244 | hardcode_libdir_separator_FC=: | |
12245 | inherit_rpath_FC=yes | |
12246 | link_all_deplibs_FC=yes | |
12247 | ;; | |
12248 | ||
12249 | netbsd*) | |
12250 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12251 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
12252 | else | |
12253 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
12254 | fi | |
12255 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
12256 | hardcode_direct_FC=yes | |
12257 | hardcode_shlibpath_var_FC=no | |
12258 | ;; | |
12259 | ||
12260 | newsos6) | |
12261 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12262 | hardcode_direct_FC=yes | |
12263 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
12264 | hardcode_libdir_separator_FC=: | |
12265 | hardcode_shlibpath_var_FC=no | |
12266 | ;; | |
12267 | ||
12268 | *nto* | *qnx*) | |
12269 | ;; | |
12270 | ||
12271 | openbsd*) | |
12272 | hardcode_direct_FC=yes | |
12273 | hardcode_shlibpath_var_FC=no | |
12274 | hardcode_direct_absolute_FC=yes | |
12275 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12276 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
12277 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
12278 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
12279 | export_dynamic_flag_spec_FC='${wl}-E' | |
12280 | else | |
12281 | case $host_os in | |
12282 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
12283 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12284 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
12285 | ;; | |
12286 | *) | |
12287 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
12288 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
12289 | ;; | |
12290 | esac | |
12291 | fi | |
12292 | ;; | |
12293 | ||
12294 | os2*) | |
12295 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12296 | hardcode_minus_L_FC=yes | |
12297 | allow_undefined_flag_FC=unsupported | |
12298 | archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
12299 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
12300 | ;; | |
12301 | ||
12302 | osf3*) | |
12303 | if test "$GCC" = yes; then | |
12304 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
12305 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12306 | else | |
12307 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
12308 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12309 | fi | |
12310 | archive_cmds_need_lc_FC='no' | |
12311 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
12312 | hardcode_libdir_separator_FC=: | |
12313 | ;; | |
12314 | ||
12315 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
12316 | if test "$GCC" = yes; then | |
12317 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
12318 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12319 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
12320 | else | |
12321 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
12322 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12323 | archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
12324 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
12325 | ||
12326 | # Both c and cxx compiler support -rpath directly | |
12327 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
12328 | fi | |
12329 | archive_cmds_need_lc_FC='no' | |
12330 | hardcode_libdir_separator_FC=: | |
12331 | ;; | |
12332 | ||
12333 | solaris*) | |
12334 | no_undefined_flag_FC=' -z defs' | |
12335 | if test "$GCC" = yes; then | |
12336 | wlarc='${wl}' | |
12337 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12338 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12339 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
12340 | else | |
12341 | case `$CC -V 2>&1` in | |
12342 | *"Compilers 5.0"*) | |
12343 | wlarc='' | |
12344 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12345 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12346 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
12347 | ;; | |
12348 | *) | |
12349 | wlarc='${wl}' | |
12350 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
12351 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12352 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
12353 | ;; | |
12354 | esac | |
12355 | fi | |
12356 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
12357 | hardcode_shlibpath_var_FC=no | |
12358 | case $host_os in | |
12359 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12360 | *) | |
12361 | # The compiler driver will combine and reorder linker options, | |
12362 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
12363 | # but is careful enough not to reorder. | |
12364 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
12365 | if test "$GCC" = yes; then | |
12366 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
12367 | else | |
12368 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
12369 | fi | |
12370 | ;; | |
12371 | esac | |
12372 | link_all_deplibs_FC=yes | |
12373 | ;; | |
12374 | ||
12375 | sunos4*) | |
12376 | if test "x$host_vendor" = xsequent; then | |
12377 | # Use $CC to link under sequent, because it throws in some extra .o | |
12378 | # files that make .init and .fini sections work. | |
12379 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
12380 | else | |
12381 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
12382 | fi | |
12383 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12384 | hardcode_direct_FC=yes | |
12385 | hardcode_minus_L_FC=yes | |
12386 | hardcode_shlibpath_var_FC=no | |
12387 | ;; | |
12388 | ||
12389 | sysv4) | |
12390 | case $host_vendor in | |
12391 | sni) | |
12392 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12393 | hardcode_direct_FC=yes # is this really true??? | |
12394 | ;; | |
12395 | siemens) | |
12396 | ## LD is ld it makes a PLAMLIB | |
12397 | ## CC just makes a GrossModule. | |
12398 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
12399 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
12400 | hardcode_direct_FC=no | |
12401 | ;; | |
12402 | motorola) | |
12403 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12404 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
12405 | ;; | |
12406 | esac | |
12407 | runpath_var='LD_RUN_PATH' | |
12408 | hardcode_shlibpath_var_FC=no | |
12409 | ;; | |
12410 | ||
12411 | sysv4.3*) | |
12412 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12413 | hardcode_shlibpath_var_FC=no | |
12414 | export_dynamic_flag_spec_FC='-Bexport' | |
12415 | ;; | |
12416 | ||
12417 | sysv4*MP*) | |
12418 | if test -d /usr/nec; then | |
12419 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12420 | hardcode_shlibpath_var_FC=no | |
12421 | runpath_var=LD_RUN_PATH | |
12422 | hardcode_runpath_var=yes | |
12423 | ld_shlibs_FC=yes | |
12424 | fi | |
12425 | ;; | |
12426 | ||
12427 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
12428 | no_undefined_flag_FC='${wl}-z,text' | |
12429 | archive_cmds_need_lc_FC=no | |
12430 | hardcode_shlibpath_var_FC=no | |
12431 | runpath_var='LD_RUN_PATH' | |
12432 | ||
12433 | if test "$GCC" = yes; then | |
12434 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12435 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12436 | else | |
12437 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12438 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12439 | fi | |
12440 | ;; | |
12441 | ||
12442 | sysv5* | sco3.2v5* | sco5v6*) | |
12443 | # Note: We can NOT use -z defs as we might desire, because we do not | |
12444 | # link with -lc, and that would cause any symbols used from libc to | |
12445 | # always be unresolved, which means just about no library would | |
12446 | # ever link correctly. If we're not using GNU ld we use -z text | |
12447 | # though, which does catch some bad symbols but isn't as heavy-handed | |
12448 | # as -z defs. | |
12449 | no_undefined_flag_FC='${wl}-z,text' | |
12450 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
12451 | archive_cmds_need_lc_FC=no | |
12452 | hardcode_shlibpath_var_FC=no | |
12453 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
12454 | hardcode_libdir_separator_FC=':' | |
12455 | link_all_deplibs_FC=yes | |
12456 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
12457 | runpath_var='LD_RUN_PATH' | |
12458 | ||
12459 | if test "$GCC" = yes; then | |
12460 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12461 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12462 | else | |
12463 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12464 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12465 | fi | |
12466 | ;; | |
12467 | ||
12468 | uts4*) | |
12469 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12470 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12471 | hardcode_shlibpath_var_FC=no | |
12472 | ;; | |
12473 | ||
12474 | *) | |
12475 | ld_shlibs_FC=no | |
12476 | ;; | |
12477 | esac | |
12478 | ||
12479 | if test x$host_vendor = xsni; then | |
12480 | case $host in | |
12481 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
12482 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
12483 | ;; | |
12484 | esac | |
12485 | fi | |
12486 | fi | |
12487 | ||
12488 | echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5 | |
12489 | echo "${ECHO_T}$ld_shlibs_FC" >&6 | |
12490 | test "$ld_shlibs_FC" = no && can_build_shared=no | |
12491 | ||
12492 | with_gnu_ld_FC=$with_gnu_ld | |
12493 | ||
12494 | ||
12495 | ||
12496 | ||
12497 | ||
12498 | ||
12499 | # | |
12500 | # Do we need to explicitly link libc? | |
12501 | # | |
12502 | case "x$archive_cmds_need_lc_FC" in | |
12503 | x|xyes) | |
12504 | # Assume -lc should be added | |
12505 | archive_cmds_need_lc_FC=yes | |
12506 | ||
12507 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12508 | case $archive_cmds_FC in | |
12509 | *'~'*) | |
12510 | # FIXME: we may have to deal with multi-command sequences. | |
12511 | ;; | |
12512 | '$CC '*) | |
12513 | # Test whether the compiler implicitly links with -lc since on some | |
12514 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12515 | # to ld, don't add -lc before -lgcc. | |
12516 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
12517 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
12518 | $RM conftest* | |
12519 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12520 | ||
12521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12522 | (eval $ac_compile) 2>&5 | |
12523 | ac_status=$? | |
12524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12525 | (exit $ac_status); } 2>conftest.err; then | |
12526 | soname=conftest | |
12527 | lib=conftest | |
12528 | libobjs=conftest.$ac_objext | |
12529 | deplibs= | |
12530 | wl=$lt_prog_compiler_wl_FC | |
12531 | pic_flag=$lt_prog_compiler_pic_FC | |
12532 | compiler_flags=-v | |
12533 | linker_flags=-v | |
12534 | verstring= | |
12535 | output_objdir=. | |
12536 | libname=conftest | |
12537 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
12538 | allow_undefined_flag_FC= | |
12539 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
12540 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
90e67cff | 12541 | ac_status=$? |
12542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
542f9784 | 12543 | (exit $ac_status); } |
12544 | then | |
12545 | archive_cmds_need_lc_FC=no | |
12546 | else | |
12547 | archive_cmds_need_lc_FC=yes | |
12548 | fi | |
12549 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
12550 | else | |
12551 | cat conftest.err 1>&5 | |
12552 | fi | |
12553 | $RM conftest* | |
12554 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5 | |
12555 | echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6 | |
12556 | ;; | |
12557 | esac | |
12558 | fi | |
12559 | ;; | |
12560 | esac | |
90e67cff | 12561 | |
90e67cff | 12562 | |
542f9784 | 12563 | |
12564 | ||
12565 | ||
12566 | ||
12567 | ||
12568 | ||
12569 | ||
12570 | ||
12571 | ||
12572 | ||
12573 | ||
12574 | ||
12575 | ||
12576 | ||
12577 | ||
12578 | ||
12579 | ||
12580 | ||
12581 | ||
12582 | ||
12583 | ||
12584 | ||
12585 | ||
12586 | ||
12587 | ||
12588 | ||
12589 | ||
12590 | ||
12591 | ||
12592 | ||
12593 | ||
12594 | ||
12595 | ||
12596 | ||
12597 | ||
12598 | ||
12599 | ||
12600 | ||
12601 | ||
12602 | ||
12603 | ||
12604 | ||
12605 | ||
12606 | ||
12607 | ||
12608 | ||
12609 | ||
12610 | ||
12611 | ||
12612 | ||
12613 | ||
12614 | ||
12615 | ||
12616 | ||
12617 | ||
12618 | ||
12619 | ||
12620 | ||
12621 | ||
12622 | ||
12623 | ||
12624 | ||
12625 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
12626 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
12627 | withGCC=$ac_cv_fc_compiler_gnu | |
12628 | library_names_spec= | |
12629 | libname_spec='lib$name' | |
12630 | soname_spec= | |
12631 | shrext_cmds=".so" | |
12632 | postinstall_cmds= | |
12633 | postuninstall_cmds= | |
12634 | finish_cmds= | |
12635 | finish_eval= | |
12636 | shlibpath_var= | |
12637 | shlibpath_overrides_runpath=unknown | |
12638 | version_type=none | |
12639 | dynamic_linker="$host_os ld.so" | |
12640 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12641 | need_lib_prefix=unknown | |
12642 | hardcode_into_libs=no | |
12643 | ||
12644 | # when you set need_version to no, make sure it does not cause -set_version | |
12645 | # flags to be left without arguments | |
12646 | need_version=unknown | |
12647 | ||
12648 | case $host_os in | |
12649 | aix3*) | |
12650 | version_type=linux | |
12651 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
12652 | shlibpath_var=LIBPATH | |
12653 | ||
12654 | # AIX 3 has no versioning support, so we append a major version to the name. | |
12655 | soname_spec='${libname}${release}${shared_ext}$major' | |
12656 | ;; | |
12657 | ||
12658 | aix4* | aix5*) | |
12659 | version_type=linux | |
12660 | need_lib_prefix=no | |
12661 | need_version=no | |
12662 | hardcode_into_libs=yes | |
12663 | if test "$host_cpu" = ia64; then | |
12664 | # AIX 5 supports IA64 | |
12665 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
12666 | shlibpath_var=LD_LIBRARY_PATH | |
12667 | else | |
12668 | # With GCC up to 2.95.x, collect2 would create an import file | |
12669 | # for dependence libraries. The import file would start with | |
12670 | # the line `#! .'. This would cause the generated library to | |
12671 | # depend on `.', always an invalid library. This was fixed in | |
12672 | # development snapshots of GCC prior to 3.0. | |
12673 | case $host_os in | |
12674 | aix4 | aix4.[01] | aix4.[01].*) | |
12675 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
12676 | echo ' yes ' | |
12677 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
12678 | : | |
12679 | else | |
12680 | can_build_shared=no | |
12681 | fi | |
12682 | ;; | |
12683 | esac | |
12684 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
12685 | # soname into executable. Probably we can add versioning support to | |
12686 | # collect2, so additional links can be useful in future. | |
12687 | if test "$aix_use_runtimelinking" = yes; then | |
12688 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
12689 | # instead of lib<name>.a to let people know that these are not | |
12690 | # typical AIX shared libraries. | |
12691 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12692 | else | |
12693 | # We preserve .a as extension for shared libraries through AIX4.2 | |
12694 | # and later when we are not doing run time linking. | |
12695 | library_names_spec='${libname}${release}.a $libname.a' | |
12696 | soname_spec='${libname}${release}${shared_ext}$major' | |
12697 | fi | |
12698 | shlibpath_var=LIBPATH | |
12699 | fi | |
12700 | ;; | |
12701 | ||
12702 | amigaos*) | |
12703 | if test "$host_cpu" = m68k; then | |
12704 | library_names_spec='$libname.ixlibrary $libname.a' | |
12705 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
12706 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
12707 | else | |
12708 | dynamic_linker=no | |
12709 | fi | |
12710 | ;; | |
12711 | ||
12712 | beos*) | |
12713 | library_names_spec='${libname}${shared_ext}' | |
12714 | dynamic_linker="$host_os ld.so" | |
12715 | shlibpath_var=LIBRARY_PATH | |
12716 | ;; | |
12717 | ||
12718 | bsdi[45]*) | |
12719 | version_type=linux | |
12720 | need_version=no | |
12721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12722 | soname_spec='${libname}${release}${shared_ext}$major' | |
12723 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
12724 | shlibpath_var=LD_LIBRARY_PATH | |
12725 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
12726 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
12727 | # the default ld.so.conf also contains /usr/contrib/lib and | |
12728 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
12729 | # libtool to hard-code these into programs | |
12730 | ;; | |
12731 | ||
12732 | cygwin* | mingw* | pw32*) | |
12733 | version_type=windows | |
12734 | shrext_cmds=".dll" | |
12735 | need_version=no | |
12736 | need_lib_prefix=no | |
12737 | ||
12738 | case $withGCC,$host_os in | |
12739 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
12740 | library_names_spec='$libname.dll.a' | |
12741 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
12742 | postinstall_cmds='base_file=`basename \${file}`~ | |
12743 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
12744 | dldir=$destdir/`dirname \$dlpath`~ | |
12745 | test -d \$dldir || mkdir -p \$dldir~ | |
12746 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
12747 | chmod a+x \$dldir/$dlname~ | |
12748 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
12749 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
12750 | fi' | |
12751 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
12752 | dlpath=$dir/\$dldll~ | |
12753 | $RM \$dlpath' | |
12754 | shlibpath_overrides_runpath=yes | |
12755 | ||
12756 | case $host_os in | |
12757 | cygwin*) | |
12758 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
12759 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12760 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
12761 | ;; | |
12762 | mingw*) | |
12763 | # MinGW DLLs use traditional 'lib' prefix | |
12764 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12765 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
12766 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
12767 | # It is most probably a Windows format PATH printed by | |
12768 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
12769 | # path with ; separators, and with drive letters. We can handle the | |
12770 | # drive letters (cygwin fileutils understands them), so leave them, | |
12771 | # especially as we might pass files found there to a mingw objdump, | |
12772 | # which wouldn't understand a cygwinified path. Ahh. | |
12773 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
12774 | else | |
12775 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
12776 | fi | |
12777 | ;; | |
12778 | pw32*) | |
12779 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
12780 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12781 | ;; | |
12782 | esac | |
12783 | ;; | |
12784 | ||
12785 | *) | |
12786 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
12787 | ;; | |
12788 | esac | |
12789 | dynamic_linker='Win32 ld.exe' | |
12790 | # FIXME: first we should search . and the directory the executable is in | |
12791 | shlibpath_var=PATH | |
12792 | ;; | |
12793 | ||
12794 | darwin* | rhapsody*) | |
12795 | dynamic_linker="$host_os dyld" | |
12796 | version_type=darwin | |
12797 | need_lib_prefix=no | |
12798 | need_version=no | |
12799 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
12800 | soname_spec='${libname}${release}${major}$shared_ext' | |
12801 | shlibpath_overrides_runpath=yes | |
12802 | shlibpath_var=DYLD_LIBRARY_PATH | |
12803 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
12804 | ||
12805 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
12806 | ;; | |
12807 | ||
12808 | dgux*) | |
12809 | version_type=linux | |
12810 | need_lib_prefix=no | |
12811 | need_version=no | |
12812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
12813 | soname_spec='${libname}${release}${shared_ext}$major' | |
12814 | shlibpath_var=LD_LIBRARY_PATH | |
12815 | ;; | |
12816 | ||
12817 | freebsd1*) | |
12818 | dynamic_linker=no | |
12819 | ;; | |
12820 | ||
12821 | freebsd* | dragonfly*) | |
12822 | # DragonFly does not have aout. When/if they implement a new | |
12823 | # versioning mechanism, adjust this. | |
12824 | if test -x /usr/bin/objformat; then | |
12825 | objformat=`/usr/bin/objformat` | |
12826 | else | |
12827 | case $host_os in | |
12828 | freebsd[123]*) objformat=aout ;; | |
12829 | *) objformat=elf ;; | |
12830 | esac | |
12831 | fi | |
12832 | version_type=freebsd-$objformat | |
12833 | case $version_type in | |
12834 | freebsd-elf*) | |
12835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12836 | need_version=no | |
12837 | need_lib_prefix=no | |
12838 | ;; | |
12839 | freebsd-*) | |
12840 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
12841 | need_version=yes | |
12842 | ;; | |
12843 | esac | |
12844 | shlibpath_var=LD_LIBRARY_PATH | |
12845 | case $host_os in | |
12846 | freebsd2*) | |
12847 | shlibpath_overrides_runpath=yes | |
12848 | ;; | |
12849 | freebsd3.[01]* | freebsdelf3.[01]*) | |
12850 | shlibpath_overrides_runpath=yes | |
12851 | hardcode_into_libs=yes | |
12852 | ;; | |
12853 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
12854 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12855 | shlibpath_overrides_runpath=no | |
12856 | hardcode_into_libs=yes | |
12857 | ;; | |
12858 | *) # from 4.6 on, and DragonFly | |
12859 | shlibpath_overrides_runpath=yes | |
12860 | hardcode_into_libs=yes | |
12861 | ;; | |
12862 | esac | |
12863 | ;; | |
12864 | ||
12865 | gnu*) | |
12866 | version_type=linux | |
12867 | need_lib_prefix=no | |
12868 | need_version=no | |
12869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
12870 | soname_spec='${libname}${release}${shared_ext}$major' | |
12871 | shlibpath_var=LD_LIBRARY_PATH | |
12872 | hardcode_into_libs=yes | |
12873 | ;; | |
12874 | ||
12875 | hpux9* | hpux10* | hpux11*) | |
12876 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
12877 | # link against other versions. | |
12878 | version_type=sunos | |
12879 | need_lib_prefix=no | |
12880 | need_version=no | |
12881 | case $host_cpu in | |
12882 | ia64*) | |
12883 | shrext_cmds='.so' | |
12884 | hardcode_into_libs=yes | |
12885 | dynamic_linker="$host_os dld.so" | |
12886 | shlibpath_var=LD_LIBRARY_PATH | |
12887 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12888 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12889 | soname_spec='${libname}${release}${shared_ext}$major' | |
12890 | if test "X$HPUX_IA64_MODE" = X32; then | |
12891 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
12892 | else | |
12893 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
12894 | fi | |
12895 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12896 | ;; | |
12897 | hppa*64*) | |
12898 | shrext_cmds='.sl' | |
12899 | hardcode_into_libs=yes | |
12900 | dynamic_linker="$host_os dld.sl" | |
12901 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12902 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12903 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12904 | soname_spec='${libname}${release}${shared_ext}$major' | |
12905 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
12906 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12907 | ;; | |
12908 | *) | |
12909 | shrext_cmds='.sl' | |
12910 | dynamic_linker="$host_os dld.sl" | |
12911 | shlibpath_var=SHLIB_PATH | |
12912 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12913 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12914 | soname_spec='${libname}${release}${shared_ext}$major' | |
12915 | ;; | |
12916 | esac | |
12917 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
12918 | postinstall_cmds='chmod 555 $lib' | |
12919 | ;; | |
12920 | ||
12921 | interix[3-9]*) | |
12922 | version_type=linux | |
12923 | need_lib_prefix=no | |
12924 | need_version=no | |
12925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12926 | soname_spec='${libname}${release}${shared_ext}$major' | |
12927 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12928 | shlibpath_var=LD_LIBRARY_PATH | |
12929 | shlibpath_overrides_runpath=no | |
12930 | hardcode_into_libs=yes | |
12931 | ;; | |
12932 | ||
12933 | irix5* | irix6* | nonstopux*) | |
12934 | case $host_os in | |
12935 | nonstopux*) version_type=nonstopux ;; | |
12936 | *) | |
12937 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
12938 | version_type=linux | |
12939 | else | |
12940 | version_type=irix | |
12941 | fi ;; | |
12942 | esac | |
12943 | need_lib_prefix=no | |
12944 | need_version=no | |
12945 | soname_spec='${libname}${release}${shared_ext}$major' | |
12946 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12947 | case $host_os in | |
12948 | irix5* | nonstopux*) | |
12949 | libsuff= shlibsuff= | |
12950 | ;; | |
12951 | *) | |
12952 | case $LD in # libtool.m4 will add one of these switches to LD | |
12953 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12954 | libsuff= shlibsuff= libmagic=32-bit;; | |
12955 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12956 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12957 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12958 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12959 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12960 | esac | |
12961 | ;; | |
12962 | esac | |
12963 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12964 | shlibpath_overrides_runpath=no | |
12965 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12966 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12967 | hardcode_into_libs=yes | |
12968 | ;; | |
12969 | ||
12970 | # No shared lib support for Linux oldld, aout, or coff. | |
12971 | linux*oldld* | linux*aout* | linux*coff*) | |
12972 | dynamic_linker=no | |
12973 | ;; | |
12974 | ||
12975 | # This must be Linux ELF. | |
12976 | linux* | k*bsd*-gnu) | |
12977 | version_type=linux | |
12978 | need_lib_prefix=no | |
12979 | need_version=no | |
12980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12981 | soname_spec='${libname}${release}${shared_ext}$major' | |
12982 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12983 | shlibpath_var=LD_LIBRARY_PATH | |
12984 | shlibpath_overrides_runpath=no | |
12985 | # Some binutils ld are patched to set DT_RUNPATH | |
12986 | save_LDFLAGS=$LDFLAGS | |
12987 | save_libdir=$libdir | |
12988 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
12989 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
12990 | if test x$gcc_no_link = xyes; then | |
12991 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12992 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12993 | { (exit 1); exit 1; }; } | |
12994 | fi | |
12995 | cat >conftest.$ac_ext <<_ACEOF | |
12996 | program main | |
12997 | ||
12998 | end | |
90e67cff | 12999 | _ACEOF |
542f9784 | 13000 | rm -f conftest.$ac_objext conftest$ac_exeext |
13001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13002 | (eval $ac_link) 2>conftest.er1 | |
90e67cff | 13003 | ac_status=$? |
13004 | grep -v '^ *+' conftest.er1 >conftest.err | |
13005 | rm -f conftest.er1 | |
13006 | cat conftest.err >&5 | |
13007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13008 | (exit $ac_status); } && | |
542f9784 | 13009 | { ac_try='test -z "$ac_fc_werror_flag" |
c0e8efbe | 13010 | || test ! -s conftest.err' |
a106dabe | 13011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13012 | (eval $ac_try) 2>&5 | |
90e67cff | 13013 | ac_status=$? |
13014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13015 | (exit $ac_status); }; } && | |
542f9784 | 13016 | { ac_try='test -s conftest$ac_exeext' |
a106dabe | 13017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13018 | (eval $ac_try) 2>&5 | |
90e67cff | 13019 | ac_status=$? |
13020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13021 | (exit $ac_status); }; }; then | |
542f9784 | 13022 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then |
13023 | shlibpath_overrides_runpath=yes | |
13024 | fi | |
13025 | ||
90e67cff | 13026 | else |
13027 | echo "$as_me: failed program was:" >&5 | |
13028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13029 | ||
13030 | fi | |
542f9784 | 13031 | rm -f conftest.err conftest.$ac_objext \ |
13032 | conftest$ac_exeext conftest.$ac_ext | |
13033 | LDFLAGS=$save_LDFLAGS | |
13034 | libdir=$save_libdir | |
13035 | ||
13036 | # This implies no fast_install, which is unacceptable. | |
13037 | # Some rework will be needed to allow for fast_install | |
13038 | # before this can be enabled. | |
13039 | hardcode_into_libs=yes | |
13040 | ||
13041 | # Append ld.so.conf contents to the search path | |
13042 | if test -f /etc/ld.so.conf; then | |
13043 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
13044 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
13045 | fi | |
13046 | ||
13047 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
13048 | # powerpc, because MkLinux only supported shared libraries with the | |
13049 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13050 | # most powerpc-linux boxes support dynamic linking these days and | |
13051 | # people can always --disable-shared, the test was removed, and we | |
13052 | # assume the GNU/Linux dynamic linker is in use. | |
13053 | dynamic_linker='GNU/Linux ld.so' | |
13054 | ;; | |
13055 | ||
13056 | netbsd*) | |
13057 | version_type=sunos | |
13058 | need_lib_prefix=no | |
13059 | need_version=no | |
13060 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13062 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13063 | dynamic_linker='NetBSD (a.out) ld.so' | |
13064 | else | |
13065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13066 | soname_spec='${libname}${release}${shared_ext}$major' | |
13067 | dynamic_linker='NetBSD ld.elf_so' | |
13068 | fi | |
13069 | shlibpath_var=LD_LIBRARY_PATH | |
13070 | shlibpath_overrides_runpath=yes | |
13071 | hardcode_into_libs=yes | |
13072 | ;; | |
13073 | ||
13074 | newsos6) | |
13075 | version_type=linux | |
13076 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13077 | shlibpath_var=LD_LIBRARY_PATH | |
13078 | shlibpath_overrides_runpath=yes | |
13079 | ;; | |
13080 | ||
13081 | *nto* | *qnx*) | |
13082 | version_type=qnx | |
13083 | need_lib_prefix=no | |
13084 | need_version=no | |
13085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13086 | soname_spec='${libname}${release}${shared_ext}$major' | |
13087 | shlibpath_var=LD_LIBRARY_PATH | |
13088 | shlibpath_overrides_runpath=no | |
13089 | hardcode_into_libs=yes | |
13090 | dynamic_linker='ldqnx.so' | |
13091 | ;; | |
13092 | ||
13093 | openbsd*) | |
13094 | version_type=sunos | |
13095 | sys_lib_dlsearch_path_spec="/usr/lib" | |
13096 | need_lib_prefix=no | |
13097 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
13098 | case $host_os in | |
13099 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
13100 | *) need_version=no ;; | |
13101 | esac | |
13102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13103 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13104 | shlibpath_var=LD_LIBRARY_PATH | |
13105 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13106 | case $host_os in | |
13107 | openbsd2.[89] | openbsd2.[89].*) | |
13108 | shlibpath_overrides_runpath=no | |
13109 | ;; | |
13110 | *) | |
13111 | shlibpath_overrides_runpath=yes | |
13112 | ;; | |
13113 | esac | |
13114 | else | |
13115 | shlibpath_overrides_runpath=yes | |
13116 | fi | |
13117 | ;; | |
13118 | ||
13119 | os2*) | |
13120 | libname_spec='$name' | |
13121 | shrext_cmds=".dll" | |
13122 | need_lib_prefix=no | |
13123 | library_names_spec='$libname${shared_ext} $libname.a' | |
13124 | dynamic_linker='OS/2 ld.exe' | |
13125 | shlibpath_var=LIBPATH | |
13126 | ;; | |
13127 | ||
13128 | osf3* | osf4* | osf5*) | |
13129 | version_type=osf | |
13130 | need_lib_prefix=no | |
13131 | need_version=no | |
13132 | soname_spec='${libname}${release}${shared_ext}$major' | |
13133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13134 | shlibpath_var=LD_LIBRARY_PATH | |
13135 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13136 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13137 | ;; | |
13138 | ||
13139 | rdos*) | |
13140 | dynamic_linker=no | |
13141 | ;; | |
13142 | ||
13143 | solaris*) | |
13144 | version_type=linux | |
13145 | need_lib_prefix=no | |
13146 | need_version=no | |
13147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13148 | soname_spec='${libname}${release}${shared_ext}$major' | |
13149 | shlibpath_var=LD_LIBRARY_PATH | |
13150 | shlibpath_overrides_runpath=yes | |
13151 | hardcode_into_libs=yes | |
13152 | # ldd complains unless libraries are executable | |
13153 | postinstall_cmds='chmod +x $lib' | |
13154 | ;; | |
13155 | ||
13156 | sunos4*) | |
13157 | version_type=sunos | |
13158 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13159 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
13160 | shlibpath_var=LD_LIBRARY_PATH | |
13161 | shlibpath_overrides_runpath=yes | |
13162 | if test "$with_gnu_ld" = yes; then | |
13163 | need_lib_prefix=no | |
13164 | fi | |
13165 | need_version=yes | |
13166 | ;; | |
13167 | ||
13168 | sysv4 | sysv4.3*) | |
13169 | version_type=linux | |
13170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13171 | soname_spec='${libname}${release}${shared_ext}$major' | |
13172 | shlibpath_var=LD_LIBRARY_PATH | |
13173 | case $host_vendor in | |
13174 | sni) | |
13175 | shlibpath_overrides_runpath=no | |
13176 | need_lib_prefix=no | |
13177 | runpath_var=LD_RUN_PATH | |
13178 | ;; | |
13179 | siemens) | |
13180 | need_lib_prefix=no | |
13181 | ;; | |
13182 | motorola) | |
13183 | need_lib_prefix=no | |
13184 | need_version=no | |
13185 | shlibpath_overrides_runpath=no | |
13186 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13187 | ;; | |
13188 | esac | |
13189 | ;; | |
13190 | ||
13191 | sysv4*MP*) | |
13192 | if test -d /usr/nec ;then | |
13193 | version_type=linux | |
13194 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
13195 | soname_spec='$libname${shared_ext}.$major' | |
13196 | shlibpath_var=LD_LIBRARY_PATH | |
13197 | fi | |
13198 | ;; | |
13199 | ||
13200 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
13201 | version_type=freebsd-elf | |
13202 | need_lib_prefix=no | |
13203 | need_version=no | |
13204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13205 | soname_spec='${libname}${release}${shared_ext}$major' | |
13206 | shlibpath_var=LD_LIBRARY_PATH | |
13207 | shlibpath_overrides_runpath=yes | |
13208 | hardcode_into_libs=yes | |
13209 | if test "$with_gnu_ld" = yes; then | |
13210 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
13211 | else | |
13212 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
13213 | case $host_os in | |
13214 | sco3.2v5*) | |
13215 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
13216 | ;; | |
13217 | esac | |
13218 | fi | |
13219 | sys_lib_dlsearch_path_spec='/usr/lib' | |
13220 | ;; | |
13221 | ||
13222 | tpf*) | |
13223 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
13224 | version_type=linux | |
13225 | need_lib_prefix=no | |
13226 | need_version=no | |
13227 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13228 | shlibpath_var=LD_LIBRARY_PATH | |
13229 | shlibpath_overrides_runpath=no | |
13230 | hardcode_into_libs=yes | |
13231 | ;; | |
13232 | ||
13233 | uts4*) | |
13234 | version_type=linux | |
13235 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13236 | soname_spec='${libname}${release}${shared_ext}$major' | |
13237 | shlibpath_var=LD_LIBRARY_PATH | |
13238 | ;; | |
13239 | ||
13240 | *) | |
13241 | dynamic_linker=no | |
13242 | ;; | |
13243 | esac | |
13244 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
13245 | echo "${ECHO_T}$dynamic_linker" >&6 | |
13246 | test "$dynamic_linker" = no && can_build_shared=no | |
13247 | ||
13248 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
13249 | if test "$GCC" = yes; then | |
13250 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
90e67cff | 13251 | fi |
90e67cff | 13252 | |
90e67cff | 13253 | |
542f9784 | 13254 | |
13255 | ||
13256 | ||
13257 | ||
13258 | ||
13259 | ||
13260 | ||
13261 | ||
13262 | ||
13263 | ||
13264 | ||
13265 | ||
13266 | ||
13267 | ||
13268 | ||
13269 | ||
13270 | ||
13271 | ||
13272 | ||
13273 | ||
13274 | ||
13275 | ||
13276 | ||
13277 | ||
13278 | ||
13279 | ||
13280 | ||
13281 | ||
13282 | ||
13283 | ||
13284 | ||
13285 | ||
13286 | ||
13287 | ||
13288 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
13289 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
13290 | hardcode_action_FC= | |
13291 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
13292 | test -n "$runpath_var_FC" || | |
13293 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
13294 | ||
13295 | # We can hardcode non-existent directories. | |
13296 | if test "$hardcode_direct_FC" != no && | |
13297 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
13298 | # have to relink, otherwise we might link with an installed library | |
13299 | # when we should be linking with a yet-to-be-installed one | |
13300 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
13301 | test "$hardcode_minus_L_FC" != no; then | |
13302 | # Linking always hardcodes the temporary library directory. | |
13303 | hardcode_action_FC=relink | |
13304 | else | |
13305 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
13306 | hardcode_action_FC=immediate | |
13307 | fi | |
13308 | else | |
13309 | # We cannot hardcode anything, or else we can only hardcode existing | |
13310 | # directories. | |
13311 | hardcode_action_FC=unsupported | |
90e67cff | 13312 | fi |
542f9784 | 13313 | echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5 |
13314 | echo "${ECHO_T}$hardcode_action_FC" >&6 | |
13315 | ||
13316 | if test "$hardcode_action_FC" = relink || | |
13317 | test "$inherit_rpath_FC" = yes; then | |
13318 | # Fast installation is not supported | |
13319 | enable_fast_install=no | |
13320 | elif test "$shlibpath_overrides_runpath" = yes || | |
13321 | test "$enable_shared" = no; then | |
13322 | # Fast installation is not necessary | |
13323 | enable_fast_install=needless | |
90e67cff | 13324 | fi |
13325 | ||
542f9784 | 13326 | |
13327 | ||
13328 | ||
13329 | ||
13330 | ||
13331 | ||
13332 | fi # test -n "$compiler" | |
13333 | ||
13334 | CC="$lt_save_CC" | |
13335 | fi # test "$_lt_disable_FC" != yes | |
13336 | ||
5c88bcbb | 13337 | ac_ext=c |
90973b19 | 13338 | ac_cpp='$CPP $CPPFLAGS' |
13339 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13340 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13341 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
542f9784 | 13342 | |
13343 | ||
13344 | ||
13345 | # extra LD Flags which are required for targets | |
13346 | case "${host}" in | |
13347 | *-darwin*) | |
13348 | # Darwin needs -single_module when linking libgfortran | |
13349 | extra_ldflags_libgfortran=-Wl,-single_module | |
13350 | ;; | |
13351 | esac | |
13352 | ||
13353 | ||
13354 | # We need a working compiler at that point, otherwise give a clear | |
13355 | # error message and bail out. | |
13356 | ||
13357 | echo "$as_me:$LINENO: checking whether the GNU Fortran compiler is working" >&5 | |
13358 | echo $ECHO_N "checking whether the GNU Fortran compiler is working... $ECHO_C" >&6 | |
13359 | ac_ext=${FC_SRCEXT-f} | |
13360 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
13361 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
13362 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
13363 | ||
13364 | cat >conftest.$ac_ext <<_ACEOF | |
13365 | ||
13366 | program foo | |
13367 | real, parameter :: bar = sin (12.34 / 2.5) | |
13368 | end program foo | |
4ee9c684 | 13369 | _ACEOF |
542f9784 | 13370 | rm -f conftest.$ac_objext |
13371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13372 | (eval $ac_compile) 2>conftest.er1 | |
4ee9c684 | 13373 | ac_status=$? |
90973b19 | 13374 | grep -v '^ *+' conftest.er1 >conftest.err |
13375 | rm -f conftest.er1 | |
13376 | cat conftest.err >&5 | |
4ee9c684 | 13377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 13378 | (exit $ac_status); } && |
13379 | { ac_try='test -z "$ac_fc_werror_flag" | |
13380 | || test ! -s conftest.err' | |
13381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13382 | (eval $ac_try) 2>&5 | |
4ee9c684 | 13383 | ac_status=$? |
4ee9c684 | 13384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 13385 | (exit $ac_status); }; } && |
13386 | { ac_try='test -s conftest.$ac_objext' | |
13387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13388 | (eval $ac_try) 2>&5 | |
13389 | ac_status=$? | |
13390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13391 | (exit $ac_status); }; }; then | |
13392 | echo "$as_me:$LINENO: result: yes" >&5 | |
13393 | echo "${ECHO_T}yes" >&6 | |
4ee9c684 | 13394 | else |
13395 | echo "$as_me: failed program was:" >&5 | |
13396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13397 | ||
542f9784 | 13398 | echo "$as_me:$LINENO: result: no" >&5 |
13399 | echo "${ECHO_T}no" >&6 | |
13400 | { { echo "$as_me:$LINENO: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" >&5 | |
13401 | echo "$as_me: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" >&2;} | |
13402 | { (exit 1); exit 1; }; } | |
4ee9c684 | 13403 | |
90973b19 | 13404 | fi |
542f9784 | 13405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13406 | ac_ext=c | |
13407 | ac_cpp='$CPP $CPPFLAGS' | |
13408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
90973b19 | 13411 | |
90973b19 | 13412 | |
542f9784 | 13413 | |
13414 | # Check whether --enable-largefile or --disable-largefile was given. | |
13415 | if test "${enable_largefile+set}" = set; then | |
13416 | enableval="$enable_largefile" | |
13417 | ||
13418 | fi; | |
13419 | if test "$enable_largefile" != no; then | |
13420 | ||
13421 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
13422 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
13423 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
13424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90973b19 | 13425 | else |
542f9784 | 13426 | ac_cv_sys_largefile_CC=no |
13427 | if test "$GCC" != yes; then | |
13428 | ac_save_CC=$CC | |
13429 | while :; do | |
13430 | # IRIX 6.2 and later do not support large files by default, | |
13431 | # so use the C compiler's -n32 option if that helps. | |
13432 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 13433 | /* confdefs.h. */ |
13434 | _ACEOF | |
13435 | cat confdefs.h >>conftest.$ac_ext | |
13436 | cat >>conftest.$ac_ext <<_ACEOF | |
13437 | /* end confdefs.h. */ | |
542f9784 | 13438 | #include <sys/types.h> |
13439 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13440 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13441 | since some C++ compilers masquerading as C compilers | |
13442 | incorrectly reject 9223372036854775807. */ | |
13443 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13444 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13445 | && LARGE_OFF_T % 2147483647 == 1) | |
13446 | ? 1 : -1]; | |
13447 | int | |
13448 | main () | |
13449 | { | |
13450 | ||
13451 | ; | |
13452 | return 0; | |
13453 | } | |
4ee9c684 | 13454 | _ACEOF |
542f9784 | 13455 | rm -f conftest.$ac_objext |
13456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13457 | (eval $ac_compile) 2>conftest.er1 | |
4ee9c684 | 13458 | ac_status=$? |
13459 | grep -v '^ *+' conftest.er1 >conftest.err | |
13460 | rm -f conftest.er1 | |
13461 | cat conftest.err >&5 | |
13462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
542f9784 | 13463 | (exit $ac_status); } && |
13464 | { ac_try='test -z "$ac_c_werror_flag" | |
13465 | || test ! -s conftest.err' | |
13466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13467 | (eval $ac_try) 2>&5 | |
13468 | ac_status=$? | |
13469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13470 | (exit $ac_status); }; } && | |
13471 | { ac_try='test -s conftest.$ac_objext' | |
13472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13473 | (eval $ac_try) 2>&5 | |
13474 | ac_status=$? | |
13475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13476 | (exit $ac_status); }; }; then | |
13477 | break | |
4ee9c684 | 13478 | else |
13479 | echo "$as_me: failed program was:" >&5 | |
13480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13481 | ||
4ee9c684 | 13482 | fi |
542f9784 | 13483 | rm -f conftest.err conftest.$ac_objext |
13484 | CC="$CC -n32" | |
13485 | rm -f conftest.$ac_objext | |
13486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13487 | (eval $ac_compile) 2>conftest.er1 | |
90973b19 | 13488 | ac_status=$? |
13489 | grep -v '^ *+' conftest.er1 >conftest.err | |
13490 | rm -f conftest.er1 | |
13491 | cat conftest.err >&5 | |
13492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
542f9784 | 13493 | (exit $ac_status); } && |
13494 | { ac_try='test -z "$ac_c_werror_flag" | |
13495 | || test ! -s conftest.err' | |
13496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13497 | (eval $ac_try) 2>&5 | |
13498 | ac_status=$? | |
13499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13500 | (exit $ac_status); }; } && | |
13501 | { ac_try='test -s conftest.$ac_objext' | |
13502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13503 | (eval $ac_try) 2>&5 | |
13504 | ac_status=$? | |
13505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13506 | (exit $ac_status); }; }; then | |
13507 | ac_cv_sys_largefile_CC=' -n32'; break | |
90973b19 | 13508 | else |
13509 | echo "$as_me: failed program was:" >&5 | |
13510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 13511 | |
ce1a737c | 13512 | fi |
542f9784 | 13513 | rm -f conftest.err conftest.$ac_objext |
13514 | break | |
13515 | done | |
13516 | CC=$ac_save_CC | |
13517 | rm -f conftest.$ac_ext | |
90973b19 | 13518 | fi |
ce1a737c | 13519 | fi |
542f9784 | 13520 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
13521 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | |
13522 | if test "$ac_cv_sys_largefile_CC" != no; then | |
13523 | CC=$CC$ac_cv_sys_largefile_CC | |
13524 | fi | |
ce1a737c | 13525 | |
542f9784 | 13526 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
13527 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
13528 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4ee9c684 | 13529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4ee9c684 | 13530 | else |
542f9784 | 13531 | while :; do |
13532 | ac_cv_sys_file_offset_bits=no | |
90973b19 | 13533 | cat >conftest.$ac_ext <<_ACEOF |
4ee9c684 | 13534 | /* confdefs.h. */ |
13535 | _ACEOF | |
13536 | cat confdefs.h >>conftest.$ac_ext | |
13537 | cat >>conftest.$ac_ext <<_ACEOF | |
13538 | /* end confdefs.h. */ | |
542f9784 | 13539 | #include <sys/types.h> |
13540 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13541 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13542 | since some C++ compilers masquerading as C compilers | |
13543 | incorrectly reject 9223372036854775807. */ | |
13544 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13545 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13546 | && LARGE_OFF_T % 2147483647 == 1) | |
13547 | ? 1 : -1]; | |
90973b19 | 13548 | int |
13549 | main () | |
13550 | { | |
13551 | ||
13552 | ; | |
13553 | return 0; | |
13554 | } | |
4ee9c684 | 13555 | _ACEOF |
13556 | rm -f conftest.$ac_objext | |
a106dabe | 13557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13558 | (eval $ac_compile) 2>conftest.er1 | |
4ee9c684 | 13559 | ac_status=$? |
13560 | grep -v '^ *+' conftest.er1 >conftest.err | |
13561 | rm -f conftest.er1 | |
13562 | cat conftest.err >&5 | |
13563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13564 | (exit $ac_status); } && | |
c0e8efbe | 13565 | { ac_try='test -z "$ac_c_werror_flag" |
13566 | || test ! -s conftest.err' | |
a106dabe | 13567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13568 | (eval $ac_try) 2>&5 | |
4ee9c684 | 13569 | ac_status=$? |
13570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13571 | (exit $ac_status); }; } && | |
13572 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 13573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13574 | (eval $ac_try) 2>&5 | |
4ee9c684 | 13575 | ac_status=$? |
13576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13577 | (exit $ac_status); }; }; then | |
542f9784 | 13578 | break |
4ee9c684 | 13579 | else |
13580 | echo "$as_me: failed program was:" >&5 | |
13581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13582 | ||
4ee9c684 | 13583 | fi |
a106dabe | 13584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
90973b19 | 13585 | cat >conftest.$ac_ext <<_ACEOF |
4ee9c684 | 13586 | /* confdefs.h. */ |
13587 | _ACEOF | |
13588 | cat confdefs.h >>conftest.$ac_ext | |
13589 | cat >>conftest.$ac_ext <<_ACEOF | |
13590 | /* end confdefs.h. */ | |
542f9784 | 13591 | #define _FILE_OFFSET_BITS 64 |
13592 | #include <sys/types.h> | |
13593 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13594 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13595 | since some C++ compilers masquerading as C compilers | |
13596 | incorrectly reject 9223372036854775807. */ | |
13597 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13598 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13599 | && LARGE_OFF_T % 2147483647 == 1) | |
13600 | ? 1 : -1]; | |
13601 | int | |
13602 | main () | |
13603 | { | |
90973b19 | 13604 | |
542f9784 | 13605 | ; |
13606 | return 0; | |
13607 | } | |
4ee9c684 | 13608 | _ACEOF |
542f9784 | 13609 | rm -f conftest.$ac_objext |
13610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13611 | (eval $ac_compile) 2>conftest.er1 | |
13612 | ac_status=$? | |
13613 | grep -v '^ *+' conftest.er1 >conftest.err | |
13614 | rm -f conftest.er1 | |
13615 | cat conftest.err >&5 | |
13616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13617 | (exit $ac_status); } && | |
13618 | { ac_try='test -z "$ac_c_werror_flag" | |
13619 | || test ! -s conftest.err' | |
13620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13621 | (eval $ac_try) 2>&5 | |
13622 | ac_status=$? | |
13623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13624 | (exit $ac_status); }; } && | |
13625 | { ac_try='test -s conftest.$ac_objext' | |
13626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13627 | (eval $ac_try) 2>&5 | |
13628 | ac_status=$? | |
13629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13630 | (exit $ac_status); }; }; then | |
13631 | ac_cv_sys_file_offset_bits=64; break | |
4ee9c684 | 13632 | else |
542f9784 | 13633 | echo "$as_me: failed program was:" >&5 |
13634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
90973b19 | 13635 | |
13636 | fi | |
542f9784 | 13637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13638 | break | |
13639 | done | |
13640 | fi | |
13641 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
13642 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
13643 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
90973b19 | 13644 | |
542f9784 | 13645 | cat >>confdefs.h <<_ACEOF |
13646 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
90973b19 | 13647 | _ACEOF |
90973b19 | 13648 | |
90973b19 | 13649 | fi |
13650 | rm -f conftest* | |
542f9784 | 13651 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
13652 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
13653 | if test "${ac_cv_sys_large_files+set}" = set; then | |
13654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90973b19 | 13655 | else |
542f9784 | 13656 | while :; do |
13657 | ac_cv_sys_large_files=no | |
90973b19 | 13658 | cat >conftest.$ac_ext <<_ACEOF |
13659 | /* confdefs.h. */ | |
13660 | _ACEOF | |
13661 | cat confdefs.h >>conftest.$ac_ext | |
13662 | cat >>conftest.$ac_ext <<_ACEOF | |
13663 | /* end confdefs.h. */ | |
542f9784 | 13664 | #include <sys/types.h> |
13665 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13666 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13667 | since some C++ compilers masquerading as C compilers | |
13668 | incorrectly reject 9223372036854775807. */ | |
13669 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13670 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13671 | && LARGE_OFF_T % 2147483647 == 1) | |
13672 | ? 1 : -1]; | |
90973b19 | 13673 | int |
13674 | main () | |
13675 | { | |
542f9784 | 13676 | |
13677 | ; | |
13678 | return 0; | |
90973b19 | 13679 | } |
13680 | _ACEOF | |
542f9784 | 13681 | rm -f conftest.$ac_objext |
13682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13683 | (eval $ac_compile) 2>conftest.er1 | |
90973b19 | 13684 | ac_status=$? |
542f9784 | 13685 | grep -v '^ *+' conftest.er1 >conftest.err |
13686 | rm -f conftest.er1 | |
13687 | cat conftest.err >&5 | |
90973b19 | 13688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 13689 | (exit $ac_status); } && |
13690 | { ac_try='test -z "$ac_c_werror_flag" | |
13691 | || test ! -s conftest.err' | |
13692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13693 | (eval $ac_try) 2>&5 | |
13694 | ac_status=$? | |
13695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13696 | (exit $ac_status); }; } && | |
13697 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 13698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13699 | (eval $ac_try) 2>&5 | |
90973b19 | 13700 | ac_status=$? |
13701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13702 | (exit $ac_status); }; }; then | |
542f9784 | 13703 | break |
90973b19 | 13704 | else |
542f9784 | 13705 | echo "$as_me: failed program was:" >&5 |
4ee9c684 | 13706 | sed 's/^/| /' conftest.$ac_ext >&5 |
13707 | ||
90973b19 | 13708 | fi |
542f9784 | 13709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
90973b19 | 13710 | cat >conftest.$ac_ext <<_ACEOF |
13711 | /* confdefs.h. */ | |
13712 | _ACEOF | |
13713 | cat confdefs.h >>conftest.$ac_ext | |
13714 | cat >>conftest.$ac_ext <<_ACEOF | |
13715 | /* end confdefs.h. */ | |
542f9784 | 13716 | #define _LARGE_FILES 1 |
13717 | #include <sys/types.h> | |
13718 | /* Check that off_t can represent 2**63 - 1 correctly. | |
13719 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
13720 | since some C++ compilers masquerading as C compilers | |
13721 | incorrectly reject 9223372036854775807. */ | |
13722 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
13723 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
13724 | && LARGE_OFF_T % 2147483647 == 1) | |
13725 | ? 1 : -1]; | |
13726 | int | |
13727 | main () | |
13728 | { | |
90973b19 | 13729 | |
542f9784 | 13730 | ; |
13731 | return 0; | |
13732 | } | |
90973b19 | 13733 | _ACEOF |
13734 | rm -f conftest.$ac_objext | |
a106dabe | 13735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13736 | (eval $ac_compile) 2>conftest.er1 | |
90973b19 | 13737 | ac_status=$? |
13738 | grep -v '^ *+' conftest.er1 >conftest.err | |
13739 | rm -f conftest.er1 | |
13740 | cat conftest.err >&5 | |
13741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13742 | (exit $ac_status); } && | |
c0e8efbe | 13743 | { ac_try='test -z "$ac_c_werror_flag" |
13744 | || test ! -s conftest.err' | |
a106dabe | 13745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13746 | (eval $ac_try) 2>&5 | |
90973b19 | 13747 | ac_status=$? |
13748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13749 | (exit $ac_status); }; } && | |
13750 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 13751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13752 | (eval $ac_try) 2>&5 | |
90973b19 | 13753 | ac_status=$? |
13754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13755 | (exit $ac_status); }; }; then | |
542f9784 | 13756 | ac_cv_sys_large_files=1; break |
90973b19 | 13757 | else |
13758 | echo "$as_me: failed program was:" >&5 | |
13759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13760 | ||
90973b19 | 13761 | fi |
a106dabe | 13762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 13763 | break |
13764 | done | |
4ee9c684 | 13765 | fi |
542f9784 | 13766 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
13767 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
13768 | if test "$ac_cv_sys_large_files" != no; then | |
13769 | ||
13770 | cat >>confdefs.h <<_ACEOF | |
13771 | #define _LARGE_FILES $ac_cv_sys_large_files | |
4ee9c684 | 13772 | _ACEOF |
13773 | ||
13774 | fi | |
542f9784 | 13775 | rm -f conftest* |
13776 | fi | |
90973b19 | 13777 | |
a106dabe | 13778 | echo "$as_me:$LINENO: checking for off_t" >&5 |
13779 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
90973b19 | 13780 | if test "${ac_cv_type_off_t+set}" = set; then |
4ee9c684 | 13781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13782 | else | |
90973b19 | 13783 | cat >conftest.$ac_ext <<_ACEOF |
13784 | /* confdefs.h. */ | |
13785 | _ACEOF | |
13786 | cat confdefs.h >>conftest.$ac_ext | |
13787 | cat >>conftest.$ac_ext <<_ACEOF | |
13788 | /* end confdefs.h. */ | |
13789 | $ac_includes_default | |
4ee9c684 | 13790 | int |
13791 | main () | |
13792 | { | |
a106dabe | 13793 | if ((off_t *) 0) |
90973b19 | 13794 | return 0; |
a106dabe | 13795 | if (sizeof (off_t)) |
90973b19 | 13796 | return 0; |
4ee9c684 | 13797 | ; |
13798 | return 0; | |
13799 | } | |
13800 | _ACEOF | |
90973b19 | 13801 | rm -f conftest.$ac_objext |
a106dabe | 13802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13803 | (eval $ac_compile) 2>conftest.er1 | |
4ee9c684 | 13804 | ac_status=$? |
13805 | grep -v '^ *+' conftest.er1 >conftest.err | |
13806 | rm -f conftest.er1 | |
13807 | cat conftest.err >&5 | |
13808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13809 | (exit $ac_status); } && | |
c0e8efbe | 13810 | { ac_try='test -z "$ac_c_werror_flag" |
13811 | || test ! -s conftest.err' | |
a106dabe | 13812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13813 | (eval $ac_try) 2>&5 | |
4ee9c684 | 13814 | ac_status=$? |
13815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13816 | (exit $ac_status); }; } && | |
90973b19 | 13817 | { ac_try='test -s conftest.$ac_objext' |
a106dabe | 13818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13819 | (eval $ac_try) 2>&5 | |
4ee9c684 | 13820 | ac_status=$? |
13821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13822 | (exit $ac_status); }; }; then | |
90973b19 | 13823 | ac_cv_type_off_t=yes |
4ee9c684 | 13824 | else |
13825 | echo "$as_me: failed program was:" >&5 | |
13826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13827 | ||
a106dabe | 13828 | ac_cv_type_off_t=no |
4ee9c684 | 13829 | fi |
a106dabe | 13830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 13831 | fi |
a106dabe | 13832 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
13833 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
90973b19 | 13834 | if test $ac_cv_type_off_t = yes; then |
13835 | : | |
13836 | else | |
13837 | ||
13838 | cat >>confdefs.h <<_ACEOF | |
a106dabe | 13839 | #define off_t long |
4ee9c684 | 13840 | _ACEOF |
13841 | ||
13842 | fi | |
4ee9c684 | 13843 | |
90973b19 | 13844 | |
13845 | # check header files | |
a106dabe | 13846 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
13847 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
90973b19 | 13848 | if test "${ac_cv_header_stdc+set}" = set; then |
4ee9c684 | 13849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13850 | else | |
13851 | cat >conftest.$ac_ext <<_ACEOF | |
13852 | /* confdefs.h. */ | |
13853 | _ACEOF | |
13854 | cat confdefs.h >>conftest.$ac_ext | |
13855 | cat >>conftest.$ac_ext <<_ACEOF | |
13856 | /* end confdefs.h. */ | |
90973b19 | 13857 | #include <stdlib.h> |
13858 | #include <stdarg.h> | |
13859 | #include <string.h> | |
13860 | #include <float.h> | |
13861 | ||
4ee9c684 | 13862 | int |
13863 | main () | |
13864 | { | |
90973b19 | 13865 | |
4ee9c684 | 13866 | ; |
13867 | return 0; | |
13868 | } | |
13869 | _ACEOF | |
13870 | rm -f conftest.$ac_objext | |
a106dabe | 13871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13872 | (eval $ac_compile) 2>conftest.er1 | |
4ee9c684 | 13873 | ac_status=$? |
13874 | grep -v '^ *+' conftest.er1 >conftest.err | |
13875 | rm -f conftest.er1 | |
13876 | cat conftest.err >&5 | |
13877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13878 | (exit $ac_status); } && | |
c0e8efbe | 13879 | { ac_try='test -z "$ac_c_werror_flag" |
13880 | || test ! -s conftest.err' | |
a106dabe | 13881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13882 | (eval $ac_try) 2>&5 | |
4ee9c684 | 13883 | ac_status=$? |
13884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13885 | (exit $ac_status); }; } && | |
13886 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 13887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13888 | (eval $ac_try) 2>&5 | |
4ee9c684 | 13889 | ac_status=$? |
13890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13891 | (exit $ac_status); }; }; then | |
90973b19 | 13892 | ac_cv_header_stdc=yes |
4ee9c684 | 13893 | else |
13894 | echo "$as_me: failed program was:" >&5 | |
13895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13896 | ||
a106dabe | 13897 | ac_cv_header_stdc=no |
4ee9c684 | 13898 | fi |
a106dabe | 13899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
90973b19 | 13900 | |
13901 | if test $ac_cv_header_stdc = yes; then | |
13902 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4ee9c684 | 13903 | cat >conftest.$ac_ext <<_ACEOF |
13904 | /* confdefs.h. */ | |
13905 | _ACEOF | |
13906 | cat confdefs.h >>conftest.$ac_ext | |
13907 | cat >>conftest.$ac_ext <<_ACEOF | |
13908 | /* end confdefs.h. */ | |
90973b19 | 13909 | #include <string.h> |
4ee9c684 | 13910 | |
4ee9c684 | 13911 | _ACEOF |
90973b19 | 13912 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13913 | $EGREP "memchr" >/dev/null 2>&1; then | |
13914 | : | |
4ee9c684 | 13915 | else |
90973b19 | 13916 | ac_cv_header_stdc=no |
4ee9c684 | 13917 | fi |
90973b19 | 13918 | rm -f conftest* |
13919 | ||
4ee9c684 | 13920 | fi |
4ee9c684 | 13921 | |
90973b19 | 13922 | if test $ac_cv_header_stdc = yes; then |
13923 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
13924 | cat >conftest.$ac_ext <<_ACEOF | |
13925 | /* confdefs.h. */ | |
13926 | _ACEOF | |
13927 | cat confdefs.h >>conftest.$ac_ext | |
13928 | cat >>conftest.$ac_ext <<_ACEOF | |
13929 | /* end confdefs.h. */ | |
13930 | #include <stdlib.h> | |
13931 | ||
4ee9c684 | 13932 | _ACEOF |
90973b19 | 13933 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13934 | $EGREP "free" >/dev/null 2>&1; then | |
13935 | : | |
13936 | else | |
13937 | ac_cv_header_stdc=no | |
13938 | fi | |
13939 | rm -f conftest* | |
4ee9c684 | 13940 | |
90973b19 | 13941 | fi |
4ee9c684 | 13942 | |
90973b19 | 13943 | if test $ac_cv_header_stdc = yes; then |
13944 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
13945 | if test "$cross_compiling" = yes; then | |
13946 | : | |
4ee9c684 | 13947 | else |
13948 | cat >conftest.$ac_ext <<_ACEOF | |
13949 | /* confdefs.h. */ | |
13950 | _ACEOF | |
13951 | cat confdefs.h >>conftest.$ac_ext | |
13952 | cat >>conftest.$ac_ext <<_ACEOF | |
13953 | /* end confdefs.h. */ | |
90973b19 | 13954 | #include <ctype.h> |
13955 | #if ((' ' & 0x0FF) == 0x020) | |
13956 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
13957 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4ee9c684 | 13958 | #else |
90973b19 | 13959 | # define ISLOWER(c) \ |
13960 | (('a' <= (c) && (c) <= 'i') \ | |
13961 | || ('j' <= (c) && (c) <= 'r') \ | |
13962 | || ('s' <= (c) && (c) <= 'z')) | |
13963 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4ee9c684 | 13964 | #endif |
13965 | ||
90973b19 | 13966 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4ee9c684 | 13967 | int |
13968 | main () | |
13969 | { | |
90973b19 | 13970 | int i; |
13971 | for (i = 0; i < 256; i++) | |
13972 | if (XOR (islower (i), ISLOWER (i)) | |
13973 | || toupper (i) != TOUPPER (i)) | |
a106dabe | 13974 | exit(2); |
13975 | exit (0); | |
4ee9c684 | 13976 | } |
13977 | _ACEOF | |
90973b19 | 13978 | rm -f conftest$ac_exeext |
a106dabe | 13979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13980 | (eval $ac_link) 2>&5 | |
4ee9c684 | 13981 | ac_status=$? |
13982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
90973b19 | 13983 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a106dabe | 13984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13985 | (eval $ac_try) 2>&5 | |
4ee9c684 | 13986 | ac_status=$? |
90973b19 | 13987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13988 | (exit $ac_status); }; }; then | |
13989 | : | |
4ee9c684 | 13990 | else |
90973b19 | 13991 | echo "$as_me: program exited with status $ac_status" >&5 |
13992 | echo "$as_me: failed program was:" >&5 | |
13993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 13994 | |
90973b19 | 13995 | ( exit $ac_status ) |
13996 | ac_cv_header_stdc=no | |
4ee9c684 | 13997 | fi |
a106dabe | 13998 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 13999 | fi |
14000 | fi | |
4ee9c684 | 14001 | fi |
a106dabe | 14002 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
14003 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
90973b19 | 14004 | if test $ac_cv_header_stdc = yes; then |
4ee9c684 | 14005 | |
90973b19 | 14006 | cat >>confdefs.h <<\_ACEOF |
14007 | #define STDC_HEADERS 1 | |
14008 | _ACEOF | |
4ee9c684 | 14009 | |
14010 | fi | |
14011 | ||
a106dabe | 14012 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
14013 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
e93cd318 | 14014 | if test "${ac_cv_header_time+set}" = set; then |
14015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14016 | else | |
14017 | cat >conftest.$ac_ext <<_ACEOF | |
14018 | /* confdefs.h. */ | |
14019 | _ACEOF | |
14020 | cat confdefs.h >>conftest.$ac_ext | |
14021 | cat >>conftest.$ac_ext <<_ACEOF | |
14022 | /* end confdefs.h. */ | |
14023 | #include <sys/types.h> | |
14024 | #include <sys/time.h> | |
14025 | #include <time.h> | |
14026 | ||
14027 | int | |
14028 | main () | |
14029 | { | |
14030 | if ((struct tm *) 0) | |
14031 | return 0; | |
14032 | ; | |
14033 | return 0; | |
14034 | } | |
14035 | _ACEOF | |
14036 | rm -f conftest.$ac_objext | |
a106dabe | 14037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14038 | (eval $ac_compile) 2>conftest.er1 | |
e93cd318 | 14039 | ac_status=$? |
14040 | grep -v '^ *+' conftest.er1 >conftest.err | |
14041 | rm -f conftest.er1 | |
14042 | cat conftest.err >&5 | |
14043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14044 | (exit $ac_status); } && | |
c0e8efbe | 14045 | { ac_try='test -z "$ac_c_werror_flag" |
14046 | || test ! -s conftest.err' | |
a106dabe | 14047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14048 | (eval $ac_try) 2>&5 | |
e93cd318 | 14049 | ac_status=$? |
14050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14051 | (exit $ac_status); }; } && | |
14052 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 14053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14054 | (eval $ac_try) 2>&5 | |
e93cd318 | 14055 | ac_status=$? |
14056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14057 | (exit $ac_status); }; }; then | |
14058 | ac_cv_header_time=yes | |
14059 | else | |
14060 | echo "$as_me: failed program was:" >&5 | |
14061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14062 | ||
a106dabe | 14063 | ac_cv_header_time=no |
e93cd318 | 14064 | fi |
a106dabe | 14065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e93cd318 | 14066 | fi |
a106dabe | 14067 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
14068 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
e93cd318 | 14069 | if test $ac_cv_header_time = yes; then |
14070 | ||
14071 | cat >>confdefs.h <<\_ACEOF | |
14072 | #define TIME_WITH_SYS_TIME 1 | |
14073 | _ACEOF | |
14074 | ||
14075 | fi | |
14076 | ||
4ee9c684 | 14077 | |
14078 | ||
4ee9c684 | 14079 | |
4ee9c684 | 14080 | |
5a037dbd | 14081 | |
14082 | ||
14083 | for ac_header in stdio.h stdlib.h string.h unistd.h signal.h stdarg.h | |
90973b19 | 14084 | do |
14085 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a106dabe | 14086 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14087 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14088 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14089 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
90973b19 | 14090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14091 | fi | |
a106dabe | 14092 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14093 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 14094 | else |
90973b19 | 14095 | # Is the header compilable? |
a106dabe | 14096 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14097 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
90973b19 | 14098 | cat >conftest.$ac_ext <<_ACEOF |
14099 | /* confdefs.h. */ | |
14100 | _ACEOF | |
14101 | cat confdefs.h >>conftest.$ac_ext | |
14102 | cat >>conftest.$ac_ext <<_ACEOF | |
14103 | /* end confdefs.h. */ | |
14104 | $ac_includes_default | |
14105 | #include <$ac_header> | |
14106 | _ACEOF | |
14107 | rm -f conftest.$ac_objext | |
a106dabe | 14108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14109 | (eval $ac_compile) 2>conftest.er1 | |
90973b19 | 14110 | ac_status=$? |
14111 | grep -v '^ *+' conftest.er1 >conftest.err | |
14112 | rm -f conftest.er1 | |
14113 | cat conftest.err >&5 | |
14114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14115 | (exit $ac_status); } && | |
c0e8efbe | 14116 | { ac_try='test -z "$ac_c_werror_flag" |
14117 | || test ! -s conftest.err' | |
a106dabe | 14118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14119 | (eval $ac_try) 2>&5 | |
90973b19 | 14120 | ac_status=$? |
14121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14122 | (exit $ac_status); }; } && | |
14123 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 14124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14125 | (eval $ac_try) 2>&5 | |
90973b19 | 14126 | ac_status=$? |
14127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14128 | (exit $ac_status); }; }; then | |
14129 | ac_header_compiler=yes | |
4ee9c684 | 14130 | else |
90973b19 | 14131 | echo "$as_me: failed program was:" >&5 |
14132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14133 | ||
a106dabe | 14134 | ac_header_compiler=no |
4ee9c684 | 14135 | fi |
a106dabe | 14136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14137 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14138 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
90973b19 | 14139 | |
14140 | # Is the header present? | |
a106dabe | 14141 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14142 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
90973b19 | 14143 | cat >conftest.$ac_ext <<_ACEOF |
14144 | /* confdefs.h. */ | |
14145 | _ACEOF | |
14146 | cat confdefs.h >>conftest.$ac_ext | |
14147 | cat >>conftest.$ac_ext <<_ACEOF | |
14148 | /* end confdefs.h. */ | |
14149 | #include <$ac_header> | |
14150 | _ACEOF | |
a106dabe | 14151 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
14152 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
90973b19 | 14153 | ac_status=$? |
14154 | grep -v '^ *+' conftest.er1 >conftest.err | |
14155 | rm -f conftest.er1 | |
14156 | cat conftest.err >&5 | |
14157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14158 | (exit $ac_status); } >/dev/null; then | |
14159 | if test -s conftest.err; then | |
14160 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14161 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14162 | else | |
14163 | ac_cpp_err= | |
14164 | fi | |
4ee9c684 | 14165 | else |
90973b19 | 14166 | ac_cpp_err=yes |
4ee9c684 | 14167 | fi |
90973b19 | 14168 | if test -z "$ac_cpp_err"; then |
14169 | ac_header_preproc=yes | |
4ee9c684 | 14170 | else |
90973b19 | 14171 | echo "$as_me: failed program was:" >&5 |
14172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14173 | ||
14174 | ac_header_preproc=no | |
4ee9c684 | 14175 | fi |
90973b19 | 14176 | rm -f conftest.err conftest.$ac_ext |
a106dabe | 14177 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14178 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
90973b19 | 14179 | |
14180 | # So? What about this header? | |
14181 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14182 | yes:no: ) | |
14183 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14184 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14185 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14186 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14187 | ac_header_preproc=yes | |
14188 | ;; | |
14189 | no:yes:* ) | |
14190 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14191 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14192 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14193 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14194 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14195 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14196 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14197 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14198 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14199 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14200 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14201 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a106dabe | 14202 | ( |
14203 | cat <<\_ASBOX | |
14204 | ## ------------------------------------------------------ ## | |
14205 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
14206 | ## ------------------------------------------------------ ## | |
14207 | _ASBOX | |
14208 | ) | | |
14209 | sed "s/^/$as_me: WARNING: /" >&2 | |
90973b19 | 14210 | ;; |
14211 | esac | |
a106dabe | 14212 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14213 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14214 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4ee9c684 | 14215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14216 | else | |
90973b19 | 14217 | eval "$as_ac_Header=\$ac_header_preproc" |
4ee9c684 | 14218 | fi |
a106dabe | 14219 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14220 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 14221 | |
90973b19 | 14222 | fi |
14223 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14224 | cat >>confdefs.h <<_ACEOF | |
14225 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14226 | _ACEOF | |
4ee9c684 | 14227 | |
4ee9c684 | 14228 | fi |
4ee9c684 | 14229 | |
90973b19 | 14230 | done |
14231 | ||
14232 | ||
14233 | ||
14234 | ||
14235 | ||
35a46568 | 14236 | for ac_header in time.h sys/time.h sys/times.h sys/resource.h |
90973b19 | 14237 | do |
14238 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a106dabe | 14239 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14240 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14241 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14242 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
d2455565 | 14243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14244 | fi | |
a106dabe | 14245 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14246 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
d2455565 | 14247 | else |
14248 | # Is the header compilable? | |
a106dabe | 14249 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14250 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
d2455565 | 14251 | cat >conftest.$ac_ext <<_ACEOF |
14252 | /* confdefs.h. */ | |
14253 | _ACEOF | |
14254 | cat confdefs.h >>conftest.$ac_ext | |
14255 | cat >>conftest.$ac_ext <<_ACEOF | |
14256 | /* end confdefs.h. */ | |
14257 | $ac_includes_default | |
14258 | #include <$ac_header> | |
14259 | _ACEOF | |
14260 | rm -f conftest.$ac_objext | |
a106dabe | 14261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14262 | (eval $ac_compile) 2>conftest.er1 | |
d2455565 | 14263 | ac_status=$? |
14264 | grep -v '^ *+' conftest.er1 >conftest.err | |
14265 | rm -f conftest.er1 | |
14266 | cat conftest.err >&5 | |
14267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14268 | (exit $ac_status); } && | |
c0e8efbe | 14269 | { ac_try='test -z "$ac_c_werror_flag" |
14270 | || test ! -s conftest.err' | |
a106dabe | 14271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14272 | (eval $ac_try) 2>&5 | |
d2455565 | 14273 | ac_status=$? |
14274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14275 | (exit $ac_status); }; } && | |
14276 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 14277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14278 | (eval $ac_try) 2>&5 | |
d2455565 | 14279 | ac_status=$? |
14280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14281 | (exit $ac_status); }; }; then | |
14282 | ac_header_compiler=yes | |
14283 | else | |
14284 | echo "$as_me: failed program was:" >&5 | |
14285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14286 | ||
a106dabe | 14287 | ac_header_compiler=no |
d2455565 | 14288 | fi |
a106dabe | 14289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14290 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14291 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
d2455565 | 14292 | |
14293 | # Is the header present? | |
a106dabe | 14294 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14295 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
d2455565 | 14296 | cat >conftest.$ac_ext <<_ACEOF |
14297 | /* confdefs.h. */ | |
14298 | _ACEOF | |
14299 | cat confdefs.h >>conftest.$ac_ext | |
14300 | cat >>conftest.$ac_ext <<_ACEOF | |
14301 | /* end confdefs.h. */ | |
14302 | #include <$ac_header> | |
14303 | _ACEOF | |
a106dabe | 14304 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
14305 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
d2455565 | 14306 | ac_status=$? |
14307 | grep -v '^ *+' conftest.er1 >conftest.err | |
14308 | rm -f conftest.er1 | |
14309 | cat conftest.err >&5 | |
14310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14311 | (exit $ac_status); } >/dev/null; then | |
14312 | if test -s conftest.err; then | |
14313 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14314 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14315 | else | |
14316 | ac_cpp_err= | |
14317 | fi | |
14318 | else | |
14319 | ac_cpp_err=yes | |
14320 | fi | |
14321 | if test -z "$ac_cpp_err"; then | |
14322 | ac_header_preproc=yes | |
14323 | else | |
14324 | echo "$as_me: failed program was:" >&5 | |
14325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14326 | ||
14327 | ac_header_preproc=no | |
14328 | fi | |
14329 | rm -f conftest.err conftest.$ac_ext | |
a106dabe | 14330 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14331 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
d2455565 | 14332 | |
14333 | # So? What about this header? | |
14334 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14335 | yes:no: ) | |
14336 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14337 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14338 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14339 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14340 | ac_header_preproc=yes | |
14341 | ;; | |
14342 | no:yes:* ) | |
14343 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14344 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14345 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14346 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14347 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14348 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14349 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14350 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14351 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14352 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14353 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14354 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a106dabe | 14355 | ( |
14356 | cat <<\_ASBOX | |
14357 | ## ------------------------------------------------------ ## | |
14358 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
14359 | ## ------------------------------------------------------ ## | |
14360 | _ASBOX | |
14361 | ) | | |
14362 | sed "s/^/$as_me: WARNING: /" >&2 | |
d2455565 | 14363 | ;; |
14364 | esac | |
a106dabe | 14365 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14366 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14367 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
d2455565 | 14368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14369 | else | |
14370 | eval "$as_ac_Header=\$ac_header_preproc" | |
14371 | fi | |
a106dabe | 14372 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14373 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
d2455565 | 14374 | |
14375 | fi | |
14376 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14377 | cat >>confdefs.h <<_ACEOF | |
14378 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14379 | _ACEOF | |
14380 | ||
14381 | fi | |
14382 | ||
14383 | done | |
14384 | ||
14385 | ||
771c1b50 | 14386 | |
14387 | ||
334f03a1 | 14388 | |
d2fc5bb1 | 14389 | |
14390 | for ac_header in sys/types.h sys/stat.h sys/wait.h floatingpoint.h ieeefp.h | |
aaa798ba | 14391 | do |
14392 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a106dabe | 14393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14394 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14395 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14396 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
aaa798ba | 14397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14398 | fi | |
a106dabe | 14399 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14400 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
aaa798ba | 14401 | else |
14402 | # Is the header compilable? | |
a106dabe | 14403 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14404 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
aaa798ba | 14405 | cat >conftest.$ac_ext <<_ACEOF |
14406 | /* confdefs.h. */ | |
14407 | _ACEOF | |
14408 | cat confdefs.h >>conftest.$ac_ext | |
14409 | cat >>conftest.$ac_ext <<_ACEOF | |
14410 | /* end confdefs.h. */ | |
14411 | $ac_includes_default | |
14412 | #include <$ac_header> | |
14413 | _ACEOF | |
14414 | rm -f conftest.$ac_objext | |
a106dabe | 14415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14416 | (eval $ac_compile) 2>conftest.er1 | |
aaa798ba | 14417 | ac_status=$? |
14418 | grep -v '^ *+' conftest.er1 >conftest.err | |
14419 | rm -f conftest.er1 | |
14420 | cat conftest.err >&5 | |
14421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14422 | (exit $ac_status); } && | |
c0e8efbe | 14423 | { ac_try='test -z "$ac_c_werror_flag" |
14424 | || test ! -s conftest.err' | |
a106dabe | 14425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14426 | (eval $ac_try) 2>&5 | |
aaa798ba | 14427 | ac_status=$? |
14428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14429 | (exit $ac_status); }; } && | |
14430 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 14431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14432 | (eval $ac_try) 2>&5 | |
aaa798ba | 14433 | ac_status=$? |
14434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14435 | (exit $ac_status); }; }; then | |
14436 | ac_header_compiler=yes | |
14437 | else | |
14438 | echo "$as_me: failed program was:" >&5 | |
14439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14440 | ||
a106dabe | 14441 | ac_header_compiler=no |
aaa798ba | 14442 | fi |
a106dabe | 14443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14444 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14445 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
aaa798ba | 14446 | |
14447 | # Is the header present? | |
a106dabe | 14448 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14449 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
aaa798ba | 14450 | cat >conftest.$ac_ext <<_ACEOF |
14451 | /* confdefs.h. */ | |
14452 | _ACEOF | |
14453 | cat confdefs.h >>conftest.$ac_ext | |
14454 | cat >>conftest.$ac_ext <<_ACEOF | |
14455 | /* end confdefs.h. */ | |
14456 | #include <$ac_header> | |
14457 | _ACEOF | |
a106dabe | 14458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
14459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
aaa798ba | 14460 | ac_status=$? |
14461 | grep -v '^ *+' conftest.er1 >conftest.err | |
14462 | rm -f conftest.er1 | |
14463 | cat conftest.err >&5 | |
14464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14465 | (exit $ac_status); } >/dev/null; then | |
14466 | if test -s conftest.err; then | |
14467 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14468 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14469 | else | |
14470 | ac_cpp_err= | |
14471 | fi | |
14472 | else | |
14473 | ac_cpp_err=yes | |
14474 | fi | |
14475 | if test -z "$ac_cpp_err"; then | |
14476 | ac_header_preproc=yes | |
14477 | else | |
14478 | echo "$as_me: failed program was:" >&5 | |
14479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14480 | ||
14481 | ac_header_preproc=no | |
14482 | fi | |
14483 | rm -f conftest.err conftest.$ac_ext | |
a106dabe | 14484 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14485 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
aaa798ba | 14486 | |
14487 | # So? What about this header? | |
14488 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14489 | yes:no: ) | |
14490 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14491 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14492 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14493 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14494 | ac_header_preproc=yes | |
14495 | ;; | |
14496 | no:yes:* ) | |
14497 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14498 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14499 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14500 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14501 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14502 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14503 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14504 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14505 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14506 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14507 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14508 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a106dabe | 14509 | ( |
14510 | cat <<\_ASBOX | |
14511 | ## ------------------------------------------------------ ## | |
14512 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
14513 | ## ------------------------------------------------------ ## | |
14514 | _ASBOX | |
14515 | ) | | |
14516 | sed "s/^/$as_me: WARNING: /" >&2 | |
aaa798ba | 14517 | ;; |
14518 | esac | |
a106dabe | 14519 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14520 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14521 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
aaa798ba | 14522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14523 | else | |
14524 | eval "$as_ac_Header=\$ac_header_preproc" | |
14525 | fi | |
a106dabe | 14526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14527 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
aaa798ba | 14528 | |
14529 | fi | |
14530 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14531 | cat >>confdefs.h <<_ACEOF | |
14532 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14533 | _ACEOF | |
14534 | ||
14535 | fi | |
14536 | ||
14537 | done | |
14538 | ||
14539 | ||
14540 | ||
14541 | ||
99798ba4 | 14542 | |
c0e8efbe | 14543 | |
14544 | for ac_header in fenv.h fptrap.h float.h execinfo.h pwd.h | |
d2455565 | 14545 | do |
14546 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a106dabe | 14547 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14548 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14549 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14550 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4ee9c684 | 14551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
90973b19 | 14552 | fi |
a106dabe | 14553 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14554 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 14555 | else |
90973b19 | 14556 | # Is the header compilable? |
a106dabe | 14557 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14558 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
90973b19 | 14559 | cat >conftest.$ac_ext <<_ACEOF |
14560 | /* confdefs.h. */ | |
14561 | _ACEOF | |
14562 | cat confdefs.h >>conftest.$ac_ext | |
14563 | cat >>conftest.$ac_ext <<_ACEOF | |
14564 | /* end confdefs.h. */ | |
14565 | $ac_includes_default | |
14566 | #include <$ac_header> | |
14567 | _ACEOF | |
14568 | rm -f conftest.$ac_objext | |
a106dabe | 14569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14570 | (eval $ac_compile) 2>conftest.er1 | |
90973b19 | 14571 | ac_status=$? |
14572 | grep -v '^ *+' conftest.er1 >conftest.err | |
14573 | rm -f conftest.er1 | |
14574 | cat conftest.err >&5 | |
14575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14576 | (exit $ac_status); } && | |
c0e8efbe | 14577 | { ac_try='test -z "$ac_c_werror_flag" |
14578 | || test ! -s conftest.err' | |
a106dabe | 14579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14580 | (eval $ac_try) 2>&5 | |
90973b19 | 14581 | ac_status=$? |
14582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14583 | (exit $ac_status); }; } && | |
14584 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 14585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14586 | (eval $ac_try) 2>&5 | |
90973b19 | 14587 | ac_status=$? |
14588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14589 | (exit $ac_status); }; }; then | |
14590 | ac_header_compiler=yes | |
4ee9c684 | 14591 | else |
90973b19 | 14592 | echo "$as_me: failed program was:" >&5 |
14593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 14594 | |
a106dabe | 14595 | ac_header_compiler=no |
90973b19 | 14596 | fi |
a106dabe | 14597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14598 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14599 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4ee9c684 | 14600 | |
90973b19 | 14601 | # Is the header present? |
a106dabe | 14602 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14603 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
90973b19 | 14604 | cat >conftest.$ac_ext <<_ACEOF |
14605 | /* confdefs.h. */ | |
14606 | _ACEOF | |
14607 | cat confdefs.h >>conftest.$ac_ext | |
14608 | cat >>conftest.$ac_ext <<_ACEOF | |
14609 | /* end confdefs.h. */ | |
14610 | #include <$ac_header> | |
14611 | _ACEOF | |
a106dabe | 14612 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
14613 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
90973b19 | 14614 | ac_status=$? |
14615 | grep -v '^ *+' conftest.er1 >conftest.err | |
14616 | rm -f conftest.er1 | |
14617 | cat conftest.err >&5 | |
14618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14619 | (exit $ac_status); } >/dev/null; then | |
14620 | if test -s conftest.err; then | |
14621 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14622 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14623 | else | |
14624 | ac_cpp_err= | |
14625 | fi | |
4ee9c684 | 14626 | else |
90973b19 | 14627 | ac_cpp_err=yes |
4ee9c684 | 14628 | fi |
90973b19 | 14629 | if test -z "$ac_cpp_err"; then |
14630 | ac_header_preproc=yes | |
4ee9c684 | 14631 | else |
90973b19 | 14632 | echo "$as_me: failed program was:" >&5 |
14633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 14634 | |
90973b19 | 14635 | ac_header_preproc=no |
14636 | fi | |
14637 | rm -f conftest.err conftest.$ac_ext | |
a106dabe | 14638 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14639 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4ee9c684 | 14640 | |
90973b19 | 14641 | # So? What about this header? |
14642 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14643 | yes:no: ) | |
14644 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14645 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14646 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14647 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14648 | ac_header_preproc=yes | |
4ee9c684 | 14649 | ;; |
90973b19 | 14650 | no:yes:* ) |
14651 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14652 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14653 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14654 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14655 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14656 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14657 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14658 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14659 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14660 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14661 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14662 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a106dabe | 14663 | ( |
14664 | cat <<\_ASBOX | |
14665 | ## ------------------------------------------------------ ## | |
14666 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
14667 | ## ------------------------------------------------------ ## | |
14668 | _ASBOX | |
14669 | ) | | |
14670 | sed "s/^/$as_me: WARNING: /" >&2 | |
4ee9c684 | 14671 | ;; |
90973b19 | 14672 | esac |
a106dabe | 14673 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14674 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14675 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
90973b19 | 14676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14677 | else | |
14678 | eval "$as_ac_Header=\$ac_header_preproc" | |
14679 | fi | |
a106dabe | 14680 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14681 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 14682 | |
90973b19 | 14683 | fi |
14684 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14685 | cat >>confdefs.h <<_ACEOF | |
14686 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14687 | _ACEOF | |
4ee9c684 | 14688 | |
90973b19 | 14689 | fi |
4ee9c684 | 14690 | |
90973b19 | 14691 | done |
4ee9c684 | 14692 | |
90973b19 | 14693 | if test "${ac_cv_header_complex_h+set}" = set; then |
a106dabe | 14694 | echo "$as_me:$LINENO: checking for complex.h" >&5 |
14695 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
90973b19 | 14696 | if test "${ac_cv_header_complex_h+set}" = set; then |
14697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14698 | fi | |
a106dabe | 14699 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 |
14700 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
90973b19 | 14701 | else |
14702 | # Is the header compilable? | |
a106dabe | 14703 | echo "$as_me:$LINENO: checking complex.h usability" >&5 |
14704 | echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6 | |
90973b19 | 14705 | cat >conftest.$ac_ext <<_ACEOF |
14706 | /* confdefs.h. */ | |
14707 | _ACEOF | |
14708 | cat confdefs.h >>conftest.$ac_ext | |
14709 | cat >>conftest.$ac_ext <<_ACEOF | |
14710 | /* end confdefs.h. */ | |
14711 | $ac_includes_default | |
14712 | #include <complex.h> | |
14713 | _ACEOF | |
14714 | rm -f conftest.$ac_objext | |
a106dabe | 14715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14716 | (eval $ac_compile) 2>conftest.er1 | |
90973b19 | 14717 | ac_status=$? |
14718 | grep -v '^ *+' conftest.er1 >conftest.err | |
14719 | rm -f conftest.er1 | |
14720 | cat conftest.err >&5 | |
14721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14722 | (exit $ac_status); } && | |
c0e8efbe | 14723 | { ac_try='test -z "$ac_c_werror_flag" |
14724 | || test ! -s conftest.err' | |
a106dabe | 14725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14726 | (eval $ac_try) 2>&5 | |
90973b19 | 14727 | ac_status=$? |
14728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14729 | (exit $ac_status); }; } && | |
14730 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 14731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14732 | (eval $ac_try) 2>&5 | |
90973b19 | 14733 | ac_status=$? |
14734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14735 | (exit $ac_status); }; }; then | |
14736 | ac_header_compiler=yes | |
14737 | else | |
14738 | echo "$as_me: failed program was:" >&5 | |
14739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 14740 | |
a106dabe | 14741 | ac_header_compiler=no |
90973b19 | 14742 | fi |
a106dabe | 14743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14744 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14745 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4ee9c684 | 14746 | |
90973b19 | 14747 | # Is the header present? |
a106dabe | 14748 | echo "$as_me:$LINENO: checking complex.h presence" >&5 |
14749 | echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6 | |
90973b19 | 14750 | cat >conftest.$ac_ext <<_ACEOF |
14751 | /* confdefs.h. */ | |
14752 | _ACEOF | |
14753 | cat confdefs.h >>conftest.$ac_ext | |
14754 | cat >>conftest.$ac_ext <<_ACEOF | |
14755 | /* end confdefs.h. */ | |
14756 | #include <complex.h> | |
14757 | _ACEOF | |
a106dabe | 14758 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
14759 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
90973b19 | 14760 | ac_status=$? |
14761 | grep -v '^ *+' conftest.er1 >conftest.err | |
14762 | rm -f conftest.er1 | |
14763 | cat conftest.err >&5 | |
14764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14765 | (exit $ac_status); } >/dev/null; then | |
14766 | if test -s conftest.err; then | |
14767 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14768 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4ee9c684 | 14769 | else |
90973b19 | 14770 | ac_cpp_err= |
4ee9c684 | 14771 | fi |
90973b19 | 14772 | else |
14773 | ac_cpp_err=yes | |
14774 | fi | |
14775 | if test -z "$ac_cpp_err"; then | |
14776 | ac_header_preproc=yes | |
14777 | else | |
14778 | echo "$as_me: failed program was:" >&5 | |
14779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 14780 | |
90973b19 | 14781 | ac_header_preproc=no |
14782 | fi | |
14783 | rm -f conftest.err conftest.$ac_ext | |
a106dabe | 14784 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14785 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4ee9c684 | 14786 | |
90973b19 | 14787 | # So? What about this header? |
14788 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14789 | yes:no: ) | |
14790 | { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14791 | echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14792 | { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5 | |
14793 | echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;} | |
14794 | ac_header_preproc=yes | |
4ee9c684 | 14795 | ;; |
90973b19 | 14796 | no:yes:* ) |
14797 | { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5 | |
14798 | echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;} | |
14799 | { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5 | |
14800 | echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;} | |
14801 | { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5 | |
14802 | echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;} | |
14803 | { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14804 | echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14805 | { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5 | |
14806 | echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;} | |
14807 | { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5 | |
14808 | echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;} | |
a106dabe | 14809 | ( |
14810 | cat <<\_ASBOX | |
14811 | ## ------------------------------------------------------ ## | |
14812 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
14813 | ## ------------------------------------------------------ ## | |
14814 | _ASBOX | |
14815 | ) | | |
14816 | sed "s/^/$as_me: WARNING: /" >&2 | |
4ee9c684 | 14817 | ;; |
4ee9c684 | 14818 | esac |
a106dabe | 14819 | echo "$as_me:$LINENO: checking for complex.h" >&5 |
14820 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
90973b19 | 14821 | if test "${ac_cv_header_complex_h+set}" = set; then |
14822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14823 | else | |
14824 | ac_cv_header_complex_h=$ac_header_preproc | |
14825 | fi | |
a106dabe | 14826 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 |
14827 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
4ee9c684 | 14828 | |
14829 | fi | |
90973b19 | 14830 | if test $ac_cv_header_complex_h = yes; then |
4ee9c684 | 14831 | |
90973b19 | 14832 | cat >>confdefs.h <<\_ACEOF |
14833 | #define HAVE_COMPLEX_H 1 | |
14834 | _ACEOF | |
4ee9c684 | 14835 | |
90973b19 | 14836 | fi |
4ee9c684 | 14837 | |
14838 | ||
4ee9c684 | 14839 | |
56c15991 | 14840 | |
14841 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
14842 | ||
14843 | acx_cv_header_stdint=stddef.h | |
14844 | acx_cv_header_stdint_kind="(already complete)" | |
14845 | for i in stdint.h $inttype_headers; do | |
14846 | unset ac_cv_type_uintptr_t | |
14847 | unset ac_cv_type_uintmax_t | |
14848 | unset ac_cv_type_int_least32_t | |
14849 | unset ac_cv_type_int_fast32_t | |
14850 | unset ac_cv_type_uint64_t | |
14851 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
a106dabe | 14852 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 |
14853 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
56c15991 | 14854 | if test "${ac_cv_type_uintmax_t+set}" = set; then |
14855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14856 | else | |
14857 | cat >conftest.$ac_ext <<_ACEOF | |
14858 | /* confdefs.h. */ | |
14859 | _ACEOF | |
14860 | cat confdefs.h >>conftest.$ac_ext | |
14861 | cat >>conftest.$ac_ext <<_ACEOF | |
14862 | /* end confdefs.h. */ | |
14863 | #include <sys/types.h> | |
14864 | #include <$i> | |
14865 | ||
14866 | int | |
14867 | main () | |
14868 | { | |
a106dabe | 14869 | if ((uintmax_t *) 0) |
56c15991 | 14870 | return 0; |
a106dabe | 14871 | if (sizeof (uintmax_t)) |
56c15991 | 14872 | return 0; |
14873 | ; | |
14874 | return 0; | |
14875 | } | |
14876 | _ACEOF | |
14877 | rm -f conftest.$ac_objext | |
a106dabe | 14878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14879 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 14880 | ac_status=$? |
14881 | grep -v '^ *+' conftest.er1 >conftest.err | |
14882 | rm -f conftest.er1 | |
14883 | cat conftest.err >&5 | |
14884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14885 | (exit $ac_status); } && | |
c0e8efbe | 14886 | { ac_try='test -z "$ac_c_werror_flag" |
14887 | || test ! -s conftest.err' | |
a106dabe | 14888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14889 | (eval $ac_try) 2>&5 | |
56c15991 | 14890 | ac_status=$? |
14891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14892 | (exit $ac_status); }; } && | |
14893 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 14894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14895 | (eval $ac_try) 2>&5 | |
56c15991 | 14896 | ac_status=$? |
14897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14898 | (exit $ac_status); }; }; then | |
14899 | ac_cv_type_uintmax_t=yes | |
14900 | else | |
14901 | echo "$as_me: failed program was:" >&5 | |
14902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14903 | ||
a106dabe | 14904 | ac_cv_type_uintmax_t=no |
56c15991 | 14905 | fi |
a106dabe | 14906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 14907 | fi |
a106dabe | 14908 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 |
14909 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
56c15991 | 14910 | if test $ac_cv_type_uintmax_t = yes; then |
14911 | acx_cv_header_stdint=$i | |
14912 | else | |
14913 | continue | |
14914 | fi | |
14915 | ||
a106dabe | 14916 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
14917 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
56c15991 | 14918 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
14919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14920 | else | |
14921 | cat >conftest.$ac_ext <<_ACEOF | |
14922 | /* confdefs.h. */ | |
14923 | _ACEOF | |
14924 | cat confdefs.h >>conftest.$ac_ext | |
14925 | cat >>conftest.$ac_ext <<_ACEOF | |
14926 | /* end confdefs.h. */ | |
14927 | #include <sys/types.h> | |
14928 | #include <$i> | |
14929 | ||
14930 | int | |
14931 | main () | |
14932 | { | |
a106dabe | 14933 | if ((uintptr_t *) 0) |
56c15991 | 14934 | return 0; |
a106dabe | 14935 | if (sizeof (uintptr_t)) |
56c15991 | 14936 | return 0; |
14937 | ; | |
14938 | return 0; | |
14939 | } | |
14940 | _ACEOF | |
14941 | rm -f conftest.$ac_objext | |
a106dabe | 14942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14943 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 14944 | ac_status=$? |
14945 | grep -v '^ *+' conftest.er1 >conftest.err | |
14946 | rm -f conftest.er1 | |
14947 | cat conftest.err >&5 | |
14948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14949 | (exit $ac_status); } && | |
c0e8efbe | 14950 | { ac_try='test -z "$ac_c_werror_flag" |
14951 | || test ! -s conftest.err' | |
a106dabe | 14952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14953 | (eval $ac_try) 2>&5 | |
56c15991 | 14954 | ac_status=$? |
14955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14956 | (exit $ac_status); }; } && | |
14957 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 14958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14959 | (eval $ac_try) 2>&5 | |
56c15991 | 14960 | ac_status=$? |
14961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14962 | (exit $ac_status); }; }; then | |
14963 | ac_cv_type_uintptr_t=yes | |
14964 | else | |
14965 | echo "$as_me: failed program was:" >&5 | |
14966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14967 | ||
a106dabe | 14968 | ac_cv_type_uintptr_t=no |
56c15991 | 14969 | fi |
a106dabe | 14970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 14971 | fi |
a106dabe | 14972 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
14973 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
56c15991 | 14974 | if test $ac_cv_type_uintptr_t = yes; then |
14975 | : | |
14976 | else | |
14977 | acx_cv_header_stdint_kind="(mostly complete)" | |
14978 | fi | |
14979 | ||
a106dabe | 14980 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 |
14981 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
56c15991 | 14982 | if test "${ac_cv_type_int_least32_t+set}" = set; then |
14983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14984 | else | |
14985 | cat >conftest.$ac_ext <<_ACEOF | |
14986 | /* confdefs.h. */ | |
14987 | _ACEOF | |
14988 | cat confdefs.h >>conftest.$ac_ext | |
14989 | cat >>conftest.$ac_ext <<_ACEOF | |
14990 | /* end confdefs.h. */ | |
14991 | #include <sys/types.h> | |
14992 | #include <$i> | |
14993 | ||
14994 | int | |
14995 | main () | |
14996 | { | |
a106dabe | 14997 | if ((int_least32_t *) 0) |
56c15991 | 14998 | return 0; |
a106dabe | 14999 | if (sizeof (int_least32_t)) |
56c15991 | 15000 | return 0; |
15001 | ; | |
15002 | return 0; | |
15003 | } | |
15004 | _ACEOF | |
15005 | rm -f conftest.$ac_objext | |
a106dabe | 15006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15007 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 15008 | ac_status=$? |
15009 | grep -v '^ *+' conftest.er1 >conftest.err | |
15010 | rm -f conftest.er1 | |
15011 | cat conftest.err >&5 | |
15012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15013 | (exit $ac_status); } && | |
c0e8efbe | 15014 | { ac_try='test -z "$ac_c_werror_flag" |
15015 | || test ! -s conftest.err' | |
a106dabe | 15016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15017 | (eval $ac_try) 2>&5 | |
56c15991 | 15018 | ac_status=$? |
15019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15020 | (exit $ac_status); }; } && | |
15021 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 15022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15023 | (eval $ac_try) 2>&5 | |
56c15991 | 15024 | ac_status=$? |
15025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15026 | (exit $ac_status); }; }; then | |
15027 | ac_cv_type_int_least32_t=yes | |
15028 | else | |
15029 | echo "$as_me: failed program was:" >&5 | |
15030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15031 | ||
a106dabe | 15032 | ac_cv_type_int_least32_t=no |
56c15991 | 15033 | fi |
a106dabe | 15034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15035 | fi |
a106dabe | 15036 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 |
15037 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
56c15991 | 15038 | if test $ac_cv_type_int_least32_t = yes; then |
15039 | : | |
15040 | else | |
15041 | acx_cv_header_stdint_kind="(mostly complete)" | |
15042 | fi | |
15043 | ||
a106dabe | 15044 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 |
15045 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
56c15991 | 15046 | if test "${ac_cv_type_int_fast32_t+set}" = set; then |
15047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15048 | else | |
15049 | cat >conftest.$ac_ext <<_ACEOF | |
15050 | /* confdefs.h. */ | |
15051 | _ACEOF | |
15052 | cat confdefs.h >>conftest.$ac_ext | |
15053 | cat >>conftest.$ac_ext <<_ACEOF | |
15054 | /* end confdefs.h. */ | |
15055 | #include <sys/types.h> | |
15056 | #include <$i> | |
15057 | ||
15058 | int | |
15059 | main () | |
15060 | { | |
a106dabe | 15061 | if ((int_fast32_t *) 0) |
56c15991 | 15062 | return 0; |
a106dabe | 15063 | if (sizeof (int_fast32_t)) |
56c15991 | 15064 | return 0; |
15065 | ; | |
15066 | return 0; | |
15067 | } | |
15068 | _ACEOF | |
15069 | rm -f conftest.$ac_objext | |
a106dabe | 15070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15071 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 15072 | ac_status=$? |
15073 | grep -v '^ *+' conftest.er1 >conftest.err | |
15074 | rm -f conftest.er1 | |
15075 | cat conftest.err >&5 | |
15076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15077 | (exit $ac_status); } && | |
c0e8efbe | 15078 | { ac_try='test -z "$ac_c_werror_flag" |
15079 | || test ! -s conftest.err' | |
a106dabe | 15080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15081 | (eval $ac_try) 2>&5 | |
56c15991 | 15082 | ac_status=$? |
15083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15084 | (exit $ac_status); }; } && | |
15085 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 15086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15087 | (eval $ac_try) 2>&5 | |
56c15991 | 15088 | ac_status=$? |
15089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15090 | (exit $ac_status); }; }; then | |
15091 | ac_cv_type_int_fast32_t=yes | |
15092 | else | |
15093 | echo "$as_me: failed program was:" >&5 | |
15094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15095 | ||
a106dabe | 15096 | ac_cv_type_int_fast32_t=no |
56c15991 | 15097 | fi |
a106dabe | 15098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15099 | fi |
a106dabe | 15100 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 |
15101 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
56c15991 | 15102 | if test $ac_cv_type_int_fast32_t = yes; then |
15103 | : | |
15104 | else | |
15105 | acx_cv_header_stdint_kind="(mostly complete)" | |
15106 | fi | |
15107 | ||
a106dabe | 15108 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
15109 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
56c15991 | 15110 | if test "${ac_cv_type_uint64_t+set}" = set; then |
15111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15112 | else | |
15113 | cat >conftest.$ac_ext <<_ACEOF | |
15114 | /* confdefs.h. */ | |
15115 | _ACEOF | |
15116 | cat confdefs.h >>conftest.$ac_ext | |
15117 | cat >>conftest.$ac_ext <<_ACEOF | |
15118 | /* end confdefs.h. */ | |
15119 | #include <sys/types.h> | |
15120 | #include <$i> | |
15121 | ||
15122 | int | |
15123 | main () | |
15124 | { | |
a106dabe | 15125 | if ((uint64_t *) 0) |
56c15991 | 15126 | return 0; |
a106dabe | 15127 | if (sizeof (uint64_t)) |
56c15991 | 15128 | return 0; |
15129 | ; | |
15130 | return 0; | |
15131 | } | |
15132 | _ACEOF | |
15133 | rm -f conftest.$ac_objext | |
a106dabe | 15134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15135 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 15136 | ac_status=$? |
15137 | grep -v '^ *+' conftest.er1 >conftest.err | |
15138 | rm -f conftest.er1 | |
15139 | cat conftest.err >&5 | |
15140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15141 | (exit $ac_status); } && | |
c0e8efbe | 15142 | { ac_try='test -z "$ac_c_werror_flag" |
15143 | || test ! -s conftest.err' | |
a106dabe | 15144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15145 | (eval $ac_try) 2>&5 | |
56c15991 | 15146 | ac_status=$? |
15147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15148 | (exit $ac_status); }; } && | |
15149 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 15150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15151 | (eval $ac_try) 2>&5 | |
56c15991 | 15152 | ac_status=$? |
15153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15154 | (exit $ac_status); }; }; then | |
15155 | ac_cv_type_uint64_t=yes | |
15156 | else | |
15157 | echo "$as_me: failed program was:" >&5 | |
15158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15159 | ||
a106dabe | 15160 | ac_cv_type_uint64_t=no |
56c15991 | 15161 | fi |
a106dabe | 15162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15163 | fi |
a106dabe | 15164 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
15165 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
56c15991 | 15166 | if test $ac_cv_type_uint64_t = yes; then |
15167 | : | |
15168 | else | |
15169 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
15170 | fi | |
15171 | ||
15172 | break | |
15173 | done | |
15174 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16af3de2 | 15175 | acx_cv_header_stdint_kind="(lacks uintmax_t)" |
56c15991 | 15176 | for i in stdint.h $inttype_headers; do |
16af3de2 | 15177 | unset ac_cv_type_uintptr_t |
56c15991 | 15178 | unset ac_cv_type_uint32_t |
15179 | unset ac_cv_type_uint64_t | |
15180 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
a106dabe | 15181 | echo "$as_me:$LINENO: checking for uint32_t" >&5 |
15182 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
56c15991 | 15183 | if test "${ac_cv_type_uint32_t+set}" = set; then |
15184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15185 | else | |
15186 | cat >conftest.$ac_ext <<_ACEOF | |
15187 | /* confdefs.h. */ | |
15188 | _ACEOF | |
15189 | cat confdefs.h >>conftest.$ac_ext | |
15190 | cat >>conftest.$ac_ext <<_ACEOF | |
15191 | /* end confdefs.h. */ | |
15192 | #include <sys/types.h> | |
15193 | #include <$i> | |
15194 | ||
15195 | int | |
15196 | main () | |
15197 | { | |
a106dabe | 15198 | if ((uint32_t *) 0) |
56c15991 | 15199 | return 0; |
a106dabe | 15200 | if (sizeof (uint32_t)) |
56c15991 | 15201 | return 0; |
15202 | ; | |
15203 | return 0; | |
15204 | } | |
15205 | _ACEOF | |
15206 | rm -f conftest.$ac_objext | |
a106dabe | 15207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15208 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 15209 | ac_status=$? |
15210 | grep -v '^ *+' conftest.er1 >conftest.err | |
15211 | rm -f conftest.er1 | |
15212 | cat conftest.err >&5 | |
15213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15214 | (exit $ac_status); } && | |
c0e8efbe | 15215 | { ac_try='test -z "$ac_c_werror_flag" |
15216 | || test ! -s conftest.err' | |
a106dabe | 15217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15218 | (eval $ac_try) 2>&5 | |
56c15991 | 15219 | ac_status=$? |
15220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15221 | (exit $ac_status); }; } && | |
15222 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 15223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15224 | (eval $ac_try) 2>&5 | |
56c15991 | 15225 | ac_status=$? |
15226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15227 | (exit $ac_status); }; }; then | |
15228 | ac_cv_type_uint32_t=yes | |
15229 | else | |
15230 | echo "$as_me: failed program was:" >&5 | |
15231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15232 | ||
a106dabe | 15233 | ac_cv_type_uint32_t=no |
56c15991 | 15234 | fi |
a106dabe | 15235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15236 | fi |
a106dabe | 15237 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
15238 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
56c15991 | 15239 | if test $ac_cv_type_uint32_t = yes; then |
15240 | acx_cv_header_stdint=$i | |
15241 | else | |
15242 | continue | |
15243 | fi | |
15244 | ||
a106dabe | 15245 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
15246 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
56c15991 | 15247 | if test "${ac_cv_type_uint64_t+set}" = set; then |
15248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15249 | else | |
15250 | cat >conftest.$ac_ext <<_ACEOF | |
15251 | /* confdefs.h. */ | |
15252 | _ACEOF | |
15253 | cat confdefs.h >>conftest.$ac_ext | |
15254 | cat >>conftest.$ac_ext <<_ACEOF | |
15255 | /* end confdefs.h. */ | |
15256 | #include <sys/types.h> | |
15257 | #include <$i> | |
15258 | ||
15259 | int | |
15260 | main () | |
15261 | { | |
a106dabe | 15262 | if ((uint64_t *) 0) |
56c15991 | 15263 | return 0; |
a106dabe | 15264 | if (sizeof (uint64_t)) |
56c15991 | 15265 | return 0; |
15266 | ; | |
15267 | return 0; | |
15268 | } | |
15269 | _ACEOF | |
15270 | rm -f conftest.$ac_objext | |
a106dabe | 15271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15272 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 15273 | ac_status=$? |
15274 | grep -v '^ *+' conftest.er1 >conftest.err | |
15275 | rm -f conftest.er1 | |
15276 | cat conftest.err >&5 | |
15277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15278 | (exit $ac_status); } && | |
c0e8efbe | 15279 | { ac_try='test -z "$ac_c_werror_flag" |
15280 | || test ! -s conftest.err' | |
a106dabe | 15281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15282 | (eval $ac_try) 2>&5 | |
56c15991 | 15283 | ac_status=$? |
15284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15285 | (exit $ac_status); }; } && | |
15286 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 15287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15288 | (eval $ac_try) 2>&5 | |
56c15991 | 15289 | ac_status=$? |
15290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15291 | (exit $ac_status); }; }; then | |
15292 | ac_cv_type_uint64_t=yes | |
15293 | else | |
15294 | echo "$as_me: failed program was:" >&5 | |
15295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15296 | ||
a106dabe | 15297 | ac_cv_type_uint64_t=no |
56c15991 | 15298 | fi |
a106dabe | 15299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15300 | fi |
a106dabe | 15301 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
15302 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
16af3de2 | 15303 | |
a106dabe | 15304 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
15305 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
16af3de2 | 15306 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
15307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
997107e3 | 15308 | else |
16af3de2 | 15309 | cat >conftest.$ac_ext <<_ACEOF |
15310 | /* confdefs.h. */ | |
15311 | _ACEOF | |
15312 | cat confdefs.h >>conftest.$ac_ext | |
15313 | cat >>conftest.$ac_ext <<_ACEOF | |
15314 | /* end confdefs.h. */ | |
15315 | #include <sys/types.h> | |
15316 | #include <$i> | |
15317 | ||
15318 | int | |
15319 | main () | |
15320 | { | |
a106dabe | 15321 | if ((uintptr_t *) 0) |
16af3de2 | 15322 | return 0; |
a106dabe | 15323 | if (sizeof (uintptr_t)) |
16af3de2 | 15324 | return 0; |
15325 | ; | |
15326 | return 0; | |
15327 | } | |
15328 | _ACEOF | |
15329 | rm -f conftest.$ac_objext | |
a106dabe | 15330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15331 | (eval $ac_compile) 2>conftest.er1 | |
16af3de2 | 15332 | ac_status=$? |
15333 | grep -v '^ *+' conftest.er1 >conftest.err | |
15334 | rm -f conftest.er1 | |
15335 | cat conftest.err >&5 | |
15336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15337 | (exit $ac_status); } && | |
c0e8efbe | 15338 | { ac_try='test -z "$ac_c_werror_flag" |
15339 | || test ! -s conftest.err' | |
a106dabe | 15340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15341 | (eval $ac_try) 2>&5 | |
16af3de2 | 15342 | ac_status=$? |
15343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15344 | (exit $ac_status); }; } && | |
15345 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 15346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15347 | (eval $ac_try) 2>&5 | |
16af3de2 | 15348 | ac_status=$? |
15349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15350 | (exit $ac_status); }; }; then | |
15351 | ac_cv_type_uintptr_t=yes | |
15352 | else | |
15353 | echo "$as_me: failed program was:" >&5 | |
15354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15355 | ||
a106dabe | 15356 | ac_cv_type_uintptr_t=no |
16af3de2 | 15357 | fi |
a106dabe | 15358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
997107e3 | 15359 | fi |
a106dabe | 15360 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
15361 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
56c15991 | 15362 | |
15363 | break | |
15364 | done | |
15365 | fi | |
15366 | if test "$acx_cv_header_stdint" = stddef.h; then | |
15367 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
15368 | for i in sys/types.h $inttype_headers; do | |
15369 | unset ac_cv_type_u_int32_t | |
15370 | unset ac_cv_type_u_int64_t | |
15371 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
a106dabe | 15372 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
15373 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
56c15991 | 15374 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
15375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15376 | else | |
15377 | cat >conftest.$ac_ext <<_ACEOF | |
15378 | /* confdefs.h. */ | |
15379 | _ACEOF | |
15380 | cat confdefs.h >>conftest.$ac_ext | |
15381 | cat >>conftest.$ac_ext <<_ACEOF | |
15382 | /* end confdefs.h. */ | |
15383 | #include <sys/types.h> | |
15384 | #include <$i> | |
15385 | ||
15386 | int | |
15387 | main () | |
15388 | { | |
a106dabe | 15389 | if ((u_int32_t *) 0) |
56c15991 | 15390 | return 0; |
a106dabe | 15391 | if (sizeof (u_int32_t)) |
56c15991 | 15392 | return 0; |
15393 | ; | |
15394 | return 0; | |
15395 | } | |
15396 | _ACEOF | |
15397 | rm -f conftest.$ac_objext | |
a106dabe | 15398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15399 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 15400 | ac_status=$? |
15401 | grep -v '^ *+' conftest.er1 >conftest.err | |
15402 | rm -f conftest.er1 | |
15403 | cat conftest.err >&5 | |
15404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15405 | (exit $ac_status); } && | |
c0e8efbe | 15406 | { ac_try='test -z "$ac_c_werror_flag" |
15407 | || test ! -s conftest.err' | |
a106dabe | 15408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15409 | (eval $ac_try) 2>&5 | |
56c15991 | 15410 | ac_status=$? |
15411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15412 | (exit $ac_status); }; } && | |
15413 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 15414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15415 | (eval $ac_try) 2>&5 | |
56c15991 | 15416 | ac_status=$? |
15417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15418 | (exit $ac_status); }; }; then | |
15419 | ac_cv_type_u_int32_t=yes | |
15420 | else | |
15421 | echo "$as_me: failed program was:" >&5 | |
15422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15423 | ||
a106dabe | 15424 | ac_cv_type_u_int32_t=no |
56c15991 | 15425 | fi |
a106dabe | 15426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15427 | fi |
a106dabe | 15428 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
15429 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
56c15991 | 15430 | if test $ac_cv_type_u_int32_t = yes; then |
15431 | acx_cv_header_stdint=$i | |
15432 | else | |
15433 | continue | |
15434 | fi | |
15435 | ||
a106dabe | 15436 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
15437 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
56c15991 | 15438 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
15439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15440 | else | |
15441 | cat >conftest.$ac_ext <<_ACEOF | |
15442 | /* confdefs.h. */ | |
15443 | _ACEOF | |
15444 | cat confdefs.h >>conftest.$ac_ext | |
15445 | cat >>conftest.$ac_ext <<_ACEOF | |
15446 | /* end confdefs.h. */ | |
15447 | #include <sys/types.h> | |
15448 | #include <$i> | |
15449 | ||
15450 | int | |
15451 | main () | |
15452 | { | |
a106dabe | 15453 | if ((u_int64_t *) 0) |
56c15991 | 15454 | return 0; |
a106dabe | 15455 | if (sizeof (u_int64_t)) |
56c15991 | 15456 | return 0; |
15457 | ; | |
15458 | return 0; | |
15459 | } | |
15460 | _ACEOF | |
15461 | rm -f conftest.$ac_objext | |
a106dabe | 15462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15463 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 15464 | ac_status=$? |
15465 | grep -v '^ *+' conftest.er1 >conftest.err | |
15466 | rm -f conftest.er1 | |
15467 | cat conftest.err >&5 | |
15468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15469 | (exit $ac_status); } && | |
c0e8efbe | 15470 | { ac_try='test -z "$ac_c_werror_flag" |
15471 | || test ! -s conftest.err' | |
a106dabe | 15472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15473 | (eval $ac_try) 2>&5 | |
56c15991 | 15474 | ac_status=$? |
15475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15476 | (exit $ac_status); }; } && | |
15477 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 15478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15479 | (eval $ac_try) 2>&5 | |
56c15991 | 15480 | ac_status=$? |
15481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15482 | (exit $ac_status); }; }; then | |
15483 | ac_cv_type_u_int64_t=yes | |
15484 | else | |
15485 | echo "$as_me: failed program was:" >&5 | |
15486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15487 | ||
a106dabe | 15488 | ac_cv_type_u_int64_t=no |
56c15991 | 15489 | fi |
a106dabe | 15490 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15491 | fi |
a106dabe | 15492 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
15493 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
56c15991 | 15494 | |
15495 | break | |
15496 | done | |
15497 | fi | |
15498 | if test "$acx_cv_header_stdint" = stddef.h; then | |
15499 | acx_cv_header_stdint_kind="(using manual detection)" | |
15500 | fi | |
15501 | ||
15502 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
15503 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
15504 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
15505 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
15506 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
15507 | ||
15508 | # ----------------- Summarize what we found so far | |
15509 | ||
a106dabe | 15510 | echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5 |
15511 | echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6 | |
56c15991 | 15512 | |
a106dabe | 15513 | case `$as_basename gstdint.h || |
56c15991 | 15514 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ |
15515 | Xgstdint.h : 'X\(//\)$' \| \ | |
a106dabe | 15516 | Xgstdint.h : 'X\(/\)$' \| \ |
15517 | . : '\(.\)' 2>/dev/null || | |
56c15991 | 15518 | echo X/gstdint.h | |
a106dabe | 15519 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
15520 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
15521 | /^X\/\(\/\).*/{ s//\1/; q; } | |
15522 | s/.*/./; q'` in | |
56c15991 | 15523 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 |
15524 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
15525 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
15526 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
15527 | *) ;; | |
15528 | esac | |
15529 | ||
a106dabe | 15530 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
15531 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 | |
56c15991 | 15532 | |
15533 | # ----------------- done included file, check C basic types -------- | |
15534 | ||
15535 | # Lacking an uintptr_t? Test size of void * | |
15536 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
a106dabe | 15537 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 |
15538 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
56c15991 | 15539 | if test "${ac_cv_type_void_p+set}" = set; then |
15540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15541 | else | |
15542 | cat >conftest.$ac_ext <<_ACEOF | |
15543 | /* confdefs.h. */ | |
15544 | _ACEOF | |
15545 | cat confdefs.h >>conftest.$ac_ext | |
15546 | cat >>conftest.$ac_ext <<_ACEOF | |
15547 | /* end confdefs.h. */ | |
15548 | $ac_includes_default | |
15549 | int | |
15550 | main () | |
15551 | { | |
a106dabe | 15552 | if ((void * *) 0) |
56c15991 | 15553 | return 0; |
a106dabe | 15554 | if (sizeof (void *)) |
56c15991 | 15555 | return 0; |
15556 | ; | |
15557 | return 0; | |
15558 | } | |
15559 | _ACEOF | |
15560 | rm -f conftest.$ac_objext | |
a106dabe | 15561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15562 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 15563 | ac_status=$? |
15564 | grep -v '^ *+' conftest.er1 >conftest.err | |
15565 | rm -f conftest.er1 | |
15566 | cat conftest.err >&5 | |
15567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15568 | (exit $ac_status); } && | |
c0e8efbe | 15569 | { ac_try='test -z "$ac_c_werror_flag" |
15570 | || test ! -s conftest.err' | |
a106dabe | 15571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15572 | (eval $ac_try) 2>&5 | |
56c15991 | 15573 | ac_status=$? |
15574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15575 | (exit $ac_status); }; } && | |
15576 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 15577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15578 | (eval $ac_try) 2>&5 | |
56c15991 | 15579 | ac_status=$? |
15580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15581 | (exit $ac_status); }; }; then | |
15582 | ac_cv_type_void_p=yes | |
15583 | else | |
15584 | echo "$as_me: failed program was:" >&5 | |
15585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15586 | ||
a106dabe | 15587 | ac_cv_type_void_p=no |
56c15991 | 15588 | fi |
a106dabe | 15589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15590 | fi |
a106dabe | 15591 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
15592 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
56c15991 | 15593 | |
a106dabe | 15594 | echo "$as_me:$LINENO: checking size of void *" >&5 |
15595 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
56c15991 | 15596 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
15597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15598 | else | |
15599 | if test "$ac_cv_type_void_p" = yes; then | |
a106dabe | 15600 | # The cast to unsigned long works around a bug in the HP C Compiler |
56c15991 | 15601 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
15602 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15603 | # This bug is HP SR number 8606223364. | |
15604 | if test "$cross_compiling" = yes; then | |
15605 | # Depending upon the size, compute the lo and hi bounds. | |
15606 | cat >conftest.$ac_ext <<_ACEOF | |
15607 | /* confdefs.h. */ | |
15608 | _ACEOF | |
15609 | cat confdefs.h >>conftest.$ac_ext | |
15610 | cat >>conftest.$ac_ext <<_ACEOF | |
15611 | /* end confdefs.h. */ | |
15612 | $ac_includes_default | |
15613 | int | |
15614 | main () | |
15615 | { | |
a106dabe | 15616 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
56c15991 | 15617 | test_array [0] = 0 |
15618 | ||
15619 | ; | |
15620 | return 0; | |
15621 | } | |
15622 | _ACEOF | |
15623 | rm -f conftest.$ac_objext | |
a106dabe | 15624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15625 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 15626 | ac_status=$? |
15627 | grep -v '^ *+' conftest.er1 >conftest.err | |
15628 | rm -f conftest.er1 | |
15629 | cat conftest.err >&5 | |
15630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15631 | (exit $ac_status); } && | |
c0e8efbe | 15632 | { ac_try='test -z "$ac_c_werror_flag" |
15633 | || test ! -s conftest.err' | |
a106dabe | 15634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15635 | (eval $ac_try) 2>&5 | |
56c15991 | 15636 | ac_status=$? |
15637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15638 | (exit $ac_status); }; } && | |
15639 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 15640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15641 | (eval $ac_try) 2>&5 | |
56c15991 | 15642 | ac_status=$? |
15643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15644 | (exit $ac_status); }; }; then | |
15645 | ac_lo=0 ac_mid=0 | |
15646 | while :; do | |
15647 | cat >conftest.$ac_ext <<_ACEOF | |
15648 | /* confdefs.h. */ | |
15649 | _ACEOF | |
15650 | cat confdefs.h >>conftest.$ac_ext | |
15651 | cat >>conftest.$ac_ext <<_ACEOF | |
15652 | /* end confdefs.h. */ | |
15653 | $ac_includes_default | |
15654 | int | |
15655 | main () | |
15656 | { | |
a106dabe | 15657 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
56c15991 | 15658 | test_array [0] = 0 |
15659 | ||
15660 | ; | |
15661 | return 0; | |
15662 | } | |
15663 | _ACEOF | |
15664 | rm -f conftest.$ac_objext | |
a106dabe | 15665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15666 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 15667 | ac_status=$? |
15668 | grep -v '^ *+' conftest.er1 >conftest.err | |
15669 | rm -f conftest.er1 | |
15670 | cat conftest.err >&5 | |
15671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15672 | (exit $ac_status); } && | |
c0e8efbe | 15673 | { ac_try='test -z "$ac_c_werror_flag" |
15674 | || test ! -s conftest.err' | |
a106dabe | 15675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15676 | (eval $ac_try) 2>&5 | |
56c15991 | 15677 | ac_status=$? |
15678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15679 | (exit $ac_status); }; } && | |
15680 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 15681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15682 | (eval $ac_try) 2>&5 | |
56c15991 | 15683 | ac_status=$? |
15684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15685 | (exit $ac_status); }; }; then | |
15686 | ac_hi=$ac_mid; break | |
15687 | else | |
15688 | echo "$as_me: failed program was:" >&5 | |
15689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15690 | ||
a106dabe | 15691 | ac_lo=`expr $ac_mid + 1` |
15692 | if test $ac_lo -le $ac_mid; then | |
15693 | ac_lo= ac_hi= | |
15694 | break | |
15695 | fi | |
15696 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
56c15991 | 15697 | fi |
a106dabe | 15698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15699 | done |
15700 | else | |
15701 | echo "$as_me: failed program was:" >&5 | |
15702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15703 | ||
a106dabe | 15704 | cat >conftest.$ac_ext <<_ACEOF |
56c15991 | 15705 | /* confdefs.h. */ |
15706 | _ACEOF | |
15707 | cat confdefs.h >>conftest.$ac_ext | |
15708 | cat >>conftest.$ac_ext <<_ACEOF | |
15709 | /* end confdefs.h. */ | |
15710 | $ac_includes_default | |
15711 | int | |
15712 | main () | |
15713 | { | |
a106dabe | 15714 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
56c15991 | 15715 | test_array [0] = 0 |
15716 | ||
15717 | ; | |
15718 | return 0; | |
15719 | } | |
15720 | _ACEOF | |
15721 | rm -f conftest.$ac_objext | |
a106dabe | 15722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15723 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 15724 | ac_status=$? |
15725 | grep -v '^ *+' conftest.er1 >conftest.err | |
15726 | rm -f conftest.er1 | |
15727 | cat conftest.err >&5 | |
15728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15729 | (exit $ac_status); } && | |
c0e8efbe | 15730 | { ac_try='test -z "$ac_c_werror_flag" |
15731 | || test ! -s conftest.err' | |
a106dabe | 15732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15733 | (eval $ac_try) 2>&5 | |
56c15991 | 15734 | ac_status=$? |
15735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15736 | (exit $ac_status); }; } && | |
15737 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 15738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15739 | (eval $ac_try) 2>&5 | |
56c15991 | 15740 | ac_status=$? |
15741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15742 | (exit $ac_status); }; }; then | |
15743 | ac_hi=-1 ac_mid=-1 | |
15744 | while :; do | |
15745 | cat >conftest.$ac_ext <<_ACEOF | |
15746 | /* confdefs.h. */ | |
15747 | _ACEOF | |
15748 | cat confdefs.h >>conftest.$ac_ext | |
15749 | cat >>conftest.$ac_ext <<_ACEOF | |
15750 | /* end confdefs.h. */ | |
15751 | $ac_includes_default | |
15752 | int | |
15753 | main () | |
15754 | { | |
a106dabe | 15755 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
56c15991 | 15756 | test_array [0] = 0 |
15757 | ||
15758 | ; | |
15759 | return 0; | |
15760 | } | |
15761 | _ACEOF | |
15762 | rm -f conftest.$ac_objext | |
a106dabe | 15763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15764 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 15765 | ac_status=$? |
15766 | grep -v '^ *+' conftest.er1 >conftest.err | |
15767 | rm -f conftest.er1 | |
15768 | cat conftest.err >&5 | |
15769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15770 | (exit $ac_status); } && | |
c0e8efbe | 15771 | { ac_try='test -z "$ac_c_werror_flag" |
15772 | || test ! -s conftest.err' | |
a106dabe | 15773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15774 | (eval $ac_try) 2>&5 | |
56c15991 | 15775 | ac_status=$? |
15776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15777 | (exit $ac_status); }; } && | |
15778 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 15779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15780 | (eval $ac_try) 2>&5 | |
56c15991 | 15781 | ac_status=$? |
15782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15783 | (exit $ac_status); }; }; then | |
15784 | ac_lo=$ac_mid; break | |
15785 | else | |
15786 | echo "$as_me: failed program was:" >&5 | |
15787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15788 | ||
a106dabe | 15789 | ac_hi=`expr '(' $ac_mid ')' - 1` |
15790 | if test $ac_mid -le $ac_hi; then | |
15791 | ac_lo= ac_hi= | |
15792 | break | |
15793 | fi | |
15794 | ac_mid=`expr 2 '*' $ac_mid` | |
56c15991 | 15795 | fi |
a106dabe | 15796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15797 | done |
15798 | else | |
15799 | echo "$as_me: failed program was:" >&5 | |
15800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15801 | ||
a106dabe | 15802 | ac_lo= ac_hi= |
56c15991 | 15803 | fi |
a106dabe | 15804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15805 | fi |
a106dabe | 15806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15807 | # Binary search between lo and hi bounds. |
15808 | while test "x$ac_lo" != "x$ac_hi"; do | |
15809 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15810 | cat >conftest.$ac_ext <<_ACEOF | |
15811 | /* confdefs.h. */ | |
15812 | _ACEOF | |
15813 | cat confdefs.h >>conftest.$ac_ext | |
15814 | cat >>conftest.$ac_ext <<_ACEOF | |
15815 | /* end confdefs.h. */ | |
15816 | $ac_includes_default | |
15817 | int | |
15818 | main () | |
15819 | { | |
a106dabe | 15820 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
56c15991 | 15821 | test_array [0] = 0 |
15822 | ||
15823 | ; | |
15824 | return 0; | |
15825 | } | |
15826 | _ACEOF | |
15827 | rm -f conftest.$ac_objext | |
a106dabe | 15828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15829 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 15830 | ac_status=$? |
15831 | grep -v '^ *+' conftest.er1 >conftest.err | |
15832 | rm -f conftest.er1 | |
15833 | cat conftest.err >&5 | |
15834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15835 | (exit $ac_status); } && | |
c0e8efbe | 15836 | { ac_try='test -z "$ac_c_werror_flag" |
15837 | || test ! -s conftest.err' | |
a106dabe | 15838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15839 | (eval $ac_try) 2>&5 | |
56c15991 | 15840 | ac_status=$? |
15841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15842 | (exit $ac_status); }; } && | |
15843 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 15844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15845 | (eval $ac_try) 2>&5 | |
56c15991 | 15846 | ac_status=$? |
15847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15848 | (exit $ac_status); }; }; then | |
15849 | ac_hi=$ac_mid | |
15850 | else | |
15851 | echo "$as_me: failed program was:" >&5 | |
15852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15853 | ||
a106dabe | 15854 | ac_lo=`expr '(' $ac_mid ')' + 1` |
56c15991 | 15855 | fi |
a106dabe | 15856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15857 | done |
15858 | case $ac_lo in | |
15859 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
a106dabe | 15860 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
56c15991 | 15861 | See \`config.log' for more details." >&5 |
a106dabe | 15862 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
56c15991 | 15863 | See \`config.log' for more details." >&2;} |
a106dabe | 15864 | { (exit 1); exit 1; }; } ;; |
56c15991 | 15865 | esac |
a106dabe | 15866 | else |
15867 | if test "$cross_compiling" = yes; then | |
c0e8efbe | 15868 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15869 | See \`config.log' for more details." >&5 | |
15870 | echo "$as_me: error: cannot run test program while cross compiling | |
15871 | See \`config.log' for more details." >&2;} | |
a106dabe | 15872 | { (exit 1); exit 1; }; } |
56c15991 | 15873 | else |
15874 | cat >conftest.$ac_ext <<_ACEOF | |
15875 | /* confdefs.h. */ | |
15876 | _ACEOF | |
15877 | cat confdefs.h >>conftest.$ac_ext | |
15878 | cat >>conftest.$ac_ext <<_ACEOF | |
15879 | /* end confdefs.h. */ | |
15880 | $ac_includes_default | |
a106dabe | 15881 | long longval () { return (long) (sizeof (void *)); } |
15882 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
56c15991 | 15883 | #include <stdio.h> |
15884 | #include <stdlib.h> | |
15885 | int | |
15886 | main () | |
15887 | { | |
15888 | ||
15889 | FILE *f = fopen ("conftest.val", "w"); | |
15890 | if (! f) | |
a106dabe | 15891 | exit (1); |
15892 | if (((long) (sizeof (void *))) < 0) | |
56c15991 | 15893 | { |
a106dabe | 15894 | long i = longval (); |
15895 | if (i != ((long) (sizeof (void *)))) | |
15896 | exit (1); | |
56c15991 | 15897 | fprintf (f, "%ld\n", i); |
15898 | } | |
15899 | else | |
15900 | { | |
a106dabe | 15901 | unsigned long i = ulongval (); |
15902 | if (i != ((long) (sizeof (void *)))) | |
15903 | exit (1); | |
56c15991 | 15904 | fprintf (f, "%lu\n", i); |
15905 | } | |
a106dabe | 15906 | exit (ferror (f) || fclose (f) != 0); |
56c15991 | 15907 | |
15908 | ; | |
15909 | return 0; | |
15910 | } | |
15911 | _ACEOF | |
15912 | rm -f conftest$ac_exeext | |
a106dabe | 15913 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15914 | (eval $ac_link) 2>&5 | |
56c15991 | 15915 | ac_status=$? |
15916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15917 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a106dabe | 15918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15919 | (eval $ac_try) 2>&5 | |
56c15991 | 15920 | ac_status=$? |
15921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15922 | (exit $ac_status); }; }; then | |
15923 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15924 | else | |
15925 | echo "$as_me: program exited with status $ac_status" >&5 | |
15926 | echo "$as_me: failed program was:" >&5 | |
15927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15928 | ||
15929 | ( exit $ac_status ) | |
a106dabe | 15930 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
56c15991 | 15931 | See \`config.log' for more details." >&5 |
a106dabe | 15932 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
56c15991 | 15933 | See \`config.log' for more details." >&2;} |
a106dabe | 15934 | { (exit 1); exit 1; }; } |
15935 | fi | |
15936 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
56c15991 | 15937 | fi |
15938 | fi | |
15939 | rm -f conftest.val | |
15940 | else | |
15941 | ac_cv_sizeof_void_p=0 | |
15942 | fi | |
15943 | fi | |
a106dabe | 15944 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
15945 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
56c15991 | 15946 | cat >>confdefs.h <<_ACEOF |
15947 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15948 | _ACEOF | |
15949 | ||
15950 | ;; | |
15951 | esac | |
15952 | ||
15953 | # Lacking an uint64_t? Test size of long | |
15954 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
a106dabe | 15955 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 |
15956 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
56c15991 | 15957 | if test "${ac_cv_type_long+set}" = set; then |
15958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15959 | else | |
15960 | cat >conftest.$ac_ext <<_ACEOF | |
15961 | /* confdefs.h. */ | |
15962 | _ACEOF | |
15963 | cat confdefs.h >>conftest.$ac_ext | |
15964 | cat >>conftest.$ac_ext <<_ACEOF | |
15965 | /* end confdefs.h. */ | |
15966 | $ac_includes_default | |
15967 | int | |
15968 | main () | |
15969 | { | |
a106dabe | 15970 | if ((long *) 0) |
56c15991 | 15971 | return 0; |
a106dabe | 15972 | if (sizeof (long)) |
56c15991 | 15973 | return 0; |
15974 | ; | |
15975 | return 0; | |
15976 | } | |
15977 | _ACEOF | |
15978 | rm -f conftest.$ac_objext | |
a106dabe | 15979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15980 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 15981 | ac_status=$? |
15982 | grep -v '^ *+' conftest.er1 >conftest.err | |
15983 | rm -f conftest.er1 | |
15984 | cat conftest.err >&5 | |
15985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15986 | (exit $ac_status); } && | |
c0e8efbe | 15987 | { ac_try='test -z "$ac_c_werror_flag" |
15988 | || test ! -s conftest.err' | |
a106dabe | 15989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15990 | (eval $ac_try) 2>&5 | |
56c15991 | 15991 | ac_status=$? |
15992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15993 | (exit $ac_status); }; } && | |
15994 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 15995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15996 | (eval $ac_try) 2>&5 | |
56c15991 | 15997 | ac_status=$? |
15998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15999 | (exit $ac_status); }; }; then | |
16000 | ac_cv_type_long=yes | |
16001 | else | |
16002 | echo "$as_me: failed program was:" >&5 | |
16003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16004 | ||
a106dabe | 16005 | ac_cv_type_long=no |
56c15991 | 16006 | fi |
a106dabe | 16007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16008 | fi |
a106dabe | 16009 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
16010 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
56c15991 | 16011 | |
a106dabe | 16012 | echo "$as_me:$LINENO: checking size of long" >&5 |
16013 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
56c15991 | 16014 | if test "${ac_cv_sizeof_long+set}" = set; then |
16015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16016 | else | |
16017 | if test "$ac_cv_type_long" = yes; then | |
a106dabe | 16018 | # The cast to unsigned long works around a bug in the HP C Compiler |
56c15991 | 16019 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
16020 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16021 | # This bug is HP SR number 8606223364. | |
16022 | if test "$cross_compiling" = yes; then | |
16023 | # Depending upon the size, compute the lo and hi bounds. | |
16024 | cat >conftest.$ac_ext <<_ACEOF | |
16025 | /* confdefs.h. */ | |
16026 | _ACEOF | |
16027 | cat confdefs.h >>conftest.$ac_ext | |
16028 | cat >>conftest.$ac_ext <<_ACEOF | |
16029 | /* end confdefs.h. */ | |
16030 | $ac_includes_default | |
16031 | int | |
16032 | main () | |
16033 | { | |
a106dabe | 16034 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
56c15991 | 16035 | test_array [0] = 0 |
16036 | ||
16037 | ; | |
16038 | return 0; | |
16039 | } | |
16040 | _ACEOF | |
16041 | rm -f conftest.$ac_objext | |
a106dabe | 16042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16043 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 16044 | ac_status=$? |
16045 | grep -v '^ *+' conftest.er1 >conftest.err | |
16046 | rm -f conftest.er1 | |
16047 | cat conftest.err >&5 | |
16048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16049 | (exit $ac_status); } && | |
c0e8efbe | 16050 | { ac_try='test -z "$ac_c_werror_flag" |
16051 | || test ! -s conftest.err' | |
a106dabe | 16052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16053 | (eval $ac_try) 2>&5 | |
56c15991 | 16054 | ac_status=$? |
16055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16056 | (exit $ac_status); }; } && | |
16057 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 16058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16059 | (eval $ac_try) 2>&5 | |
56c15991 | 16060 | ac_status=$? |
16061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16062 | (exit $ac_status); }; }; then | |
16063 | ac_lo=0 ac_mid=0 | |
16064 | while :; do | |
16065 | cat >conftest.$ac_ext <<_ACEOF | |
16066 | /* confdefs.h. */ | |
16067 | _ACEOF | |
16068 | cat confdefs.h >>conftest.$ac_ext | |
16069 | cat >>conftest.$ac_ext <<_ACEOF | |
16070 | /* end confdefs.h. */ | |
16071 | $ac_includes_default | |
16072 | int | |
16073 | main () | |
16074 | { | |
a106dabe | 16075 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
56c15991 | 16076 | test_array [0] = 0 |
16077 | ||
16078 | ; | |
16079 | return 0; | |
16080 | } | |
16081 | _ACEOF | |
16082 | rm -f conftest.$ac_objext | |
a106dabe | 16083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16084 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 16085 | ac_status=$? |
16086 | grep -v '^ *+' conftest.er1 >conftest.err | |
16087 | rm -f conftest.er1 | |
16088 | cat conftest.err >&5 | |
16089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16090 | (exit $ac_status); } && | |
c0e8efbe | 16091 | { ac_try='test -z "$ac_c_werror_flag" |
16092 | || test ! -s conftest.err' | |
a106dabe | 16093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16094 | (eval $ac_try) 2>&5 | |
56c15991 | 16095 | ac_status=$? |
16096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16097 | (exit $ac_status); }; } && | |
16098 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 16099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16100 | (eval $ac_try) 2>&5 | |
56c15991 | 16101 | ac_status=$? |
16102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16103 | (exit $ac_status); }; }; then | |
16104 | ac_hi=$ac_mid; break | |
16105 | else | |
16106 | echo "$as_me: failed program was:" >&5 | |
16107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16108 | ||
a106dabe | 16109 | ac_lo=`expr $ac_mid + 1` |
16110 | if test $ac_lo -le $ac_mid; then | |
16111 | ac_lo= ac_hi= | |
16112 | break | |
16113 | fi | |
16114 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
56c15991 | 16115 | fi |
a106dabe | 16116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16117 | done |
16118 | else | |
16119 | echo "$as_me: failed program was:" >&5 | |
16120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16121 | ||
a106dabe | 16122 | cat >conftest.$ac_ext <<_ACEOF |
56c15991 | 16123 | /* confdefs.h. */ |
16124 | _ACEOF | |
16125 | cat confdefs.h >>conftest.$ac_ext | |
16126 | cat >>conftest.$ac_ext <<_ACEOF | |
16127 | /* end confdefs.h. */ | |
16128 | $ac_includes_default | |
16129 | int | |
16130 | main () | |
16131 | { | |
a106dabe | 16132 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
56c15991 | 16133 | test_array [0] = 0 |
16134 | ||
16135 | ; | |
16136 | return 0; | |
16137 | } | |
16138 | _ACEOF | |
16139 | rm -f conftest.$ac_objext | |
a106dabe | 16140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16141 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 16142 | ac_status=$? |
16143 | grep -v '^ *+' conftest.er1 >conftest.err | |
16144 | rm -f conftest.er1 | |
16145 | cat conftest.err >&5 | |
16146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16147 | (exit $ac_status); } && | |
c0e8efbe | 16148 | { ac_try='test -z "$ac_c_werror_flag" |
16149 | || test ! -s conftest.err' | |
a106dabe | 16150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16151 | (eval $ac_try) 2>&5 | |
56c15991 | 16152 | ac_status=$? |
16153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16154 | (exit $ac_status); }; } && | |
16155 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 16156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16157 | (eval $ac_try) 2>&5 | |
56c15991 | 16158 | ac_status=$? |
16159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16160 | (exit $ac_status); }; }; then | |
16161 | ac_hi=-1 ac_mid=-1 | |
16162 | while :; do | |
16163 | cat >conftest.$ac_ext <<_ACEOF | |
16164 | /* confdefs.h. */ | |
16165 | _ACEOF | |
16166 | cat confdefs.h >>conftest.$ac_ext | |
16167 | cat >>conftest.$ac_ext <<_ACEOF | |
16168 | /* end confdefs.h. */ | |
16169 | $ac_includes_default | |
16170 | int | |
16171 | main () | |
16172 | { | |
a106dabe | 16173 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
56c15991 | 16174 | test_array [0] = 0 |
16175 | ||
16176 | ; | |
16177 | return 0; | |
16178 | } | |
16179 | _ACEOF | |
16180 | rm -f conftest.$ac_objext | |
a106dabe | 16181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16182 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 16183 | ac_status=$? |
16184 | grep -v '^ *+' conftest.er1 >conftest.err | |
16185 | rm -f conftest.er1 | |
16186 | cat conftest.err >&5 | |
16187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16188 | (exit $ac_status); } && | |
c0e8efbe | 16189 | { ac_try='test -z "$ac_c_werror_flag" |
16190 | || test ! -s conftest.err' | |
a106dabe | 16191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16192 | (eval $ac_try) 2>&5 | |
56c15991 | 16193 | ac_status=$? |
16194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16195 | (exit $ac_status); }; } && | |
16196 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 16197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16198 | (eval $ac_try) 2>&5 | |
56c15991 | 16199 | ac_status=$? |
16200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16201 | (exit $ac_status); }; }; then | |
16202 | ac_lo=$ac_mid; break | |
16203 | else | |
16204 | echo "$as_me: failed program was:" >&5 | |
16205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16206 | ||
a106dabe | 16207 | ac_hi=`expr '(' $ac_mid ')' - 1` |
16208 | if test $ac_mid -le $ac_hi; then | |
16209 | ac_lo= ac_hi= | |
16210 | break | |
16211 | fi | |
16212 | ac_mid=`expr 2 '*' $ac_mid` | |
56c15991 | 16213 | fi |
a106dabe | 16214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16215 | done |
16216 | else | |
16217 | echo "$as_me: failed program was:" >&5 | |
16218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16219 | ||
a106dabe | 16220 | ac_lo= ac_hi= |
56c15991 | 16221 | fi |
a106dabe | 16222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16223 | fi |
a106dabe | 16224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16225 | # Binary search between lo and hi bounds. |
16226 | while test "x$ac_lo" != "x$ac_hi"; do | |
16227 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16228 | cat >conftest.$ac_ext <<_ACEOF | |
16229 | /* confdefs.h. */ | |
16230 | _ACEOF | |
16231 | cat confdefs.h >>conftest.$ac_ext | |
16232 | cat >>conftest.$ac_ext <<_ACEOF | |
16233 | /* end confdefs.h. */ | |
16234 | $ac_includes_default | |
16235 | int | |
16236 | main () | |
16237 | { | |
a106dabe | 16238 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
56c15991 | 16239 | test_array [0] = 0 |
16240 | ||
16241 | ; | |
16242 | return 0; | |
16243 | } | |
16244 | _ACEOF | |
16245 | rm -f conftest.$ac_objext | |
a106dabe | 16246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16247 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 16248 | ac_status=$? |
16249 | grep -v '^ *+' conftest.er1 >conftest.err | |
16250 | rm -f conftest.er1 | |
16251 | cat conftest.err >&5 | |
16252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16253 | (exit $ac_status); } && | |
c0e8efbe | 16254 | { ac_try='test -z "$ac_c_werror_flag" |
16255 | || test ! -s conftest.err' | |
a106dabe | 16256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16257 | (eval $ac_try) 2>&5 | |
56c15991 | 16258 | ac_status=$? |
16259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16260 | (exit $ac_status); }; } && | |
16261 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 16262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16263 | (eval $ac_try) 2>&5 | |
56c15991 | 16264 | ac_status=$? |
16265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16266 | (exit $ac_status); }; }; then | |
16267 | ac_hi=$ac_mid | |
16268 | else | |
16269 | echo "$as_me: failed program was:" >&5 | |
16270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16271 | ||
a106dabe | 16272 | ac_lo=`expr '(' $ac_mid ')' + 1` |
56c15991 | 16273 | fi |
a106dabe | 16274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16275 | done |
16276 | case $ac_lo in | |
16277 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
a106dabe | 16278 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
56c15991 | 16279 | See \`config.log' for more details." >&5 |
a106dabe | 16280 | echo "$as_me: error: cannot compute sizeof (long), 77 |
56c15991 | 16281 | See \`config.log' for more details." >&2;} |
a106dabe | 16282 | { (exit 1); exit 1; }; } ;; |
56c15991 | 16283 | esac |
a106dabe | 16284 | else |
16285 | if test "$cross_compiling" = yes; then | |
c0e8efbe | 16286 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16287 | See \`config.log' for more details." >&5 | |
16288 | echo "$as_me: error: cannot run test program while cross compiling | |
16289 | See \`config.log' for more details." >&2;} | |
a106dabe | 16290 | { (exit 1); exit 1; }; } |
56c15991 | 16291 | else |
16292 | cat >conftest.$ac_ext <<_ACEOF | |
16293 | /* confdefs.h. */ | |
16294 | _ACEOF | |
16295 | cat confdefs.h >>conftest.$ac_ext | |
16296 | cat >>conftest.$ac_ext <<_ACEOF | |
16297 | /* end confdefs.h. */ | |
16298 | $ac_includes_default | |
a106dabe | 16299 | long longval () { return (long) (sizeof (long)); } |
16300 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
56c15991 | 16301 | #include <stdio.h> |
16302 | #include <stdlib.h> | |
16303 | int | |
16304 | main () | |
16305 | { | |
16306 | ||
16307 | FILE *f = fopen ("conftest.val", "w"); | |
16308 | if (! f) | |
a106dabe | 16309 | exit (1); |
16310 | if (((long) (sizeof (long))) < 0) | |
56c15991 | 16311 | { |
a106dabe | 16312 | long i = longval (); |
16313 | if (i != ((long) (sizeof (long)))) | |
16314 | exit (1); | |
56c15991 | 16315 | fprintf (f, "%ld\n", i); |
16316 | } | |
16317 | else | |
16318 | { | |
a106dabe | 16319 | unsigned long i = ulongval (); |
16320 | if (i != ((long) (sizeof (long)))) | |
16321 | exit (1); | |
56c15991 | 16322 | fprintf (f, "%lu\n", i); |
16323 | } | |
a106dabe | 16324 | exit (ferror (f) || fclose (f) != 0); |
56c15991 | 16325 | |
16326 | ; | |
16327 | return 0; | |
16328 | } | |
16329 | _ACEOF | |
16330 | rm -f conftest$ac_exeext | |
a106dabe | 16331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16332 | (eval $ac_link) 2>&5 | |
56c15991 | 16333 | ac_status=$? |
16334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16335 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a106dabe | 16336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16337 | (eval $ac_try) 2>&5 | |
56c15991 | 16338 | ac_status=$? |
16339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16340 | (exit $ac_status); }; }; then | |
16341 | ac_cv_sizeof_long=`cat conftest.val` | |
16342 | else | |
16343 | echo "$as_me: program exited with status $ac_status" >&5 | |
16344 | echo "$as_me: failed program was:" >&5 | |
16345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16346 | ||
16347 | ( exit $ac_status ) | |
a106dabe | 16348 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
56c15991 | 16349 | See \`config.log' for more details." >&5 |
a106dabe | 16350 | echo "$as_me: error: cannot compute sizeof (long), 77 |
56c15991 | 16351 | See \`config.log' for more details." >&2;} |
a106dabe | 16352 | { (exit 1); exit 1; }; } |
16353 | fi | |
16354 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
56c15991 | 16355 | fi |
16356 | fi | |
16357 | rm -f conftest.val | |
16358 | else | |
16359 | ac_cv_sizeof_long=0 | |
16360 | fi | |
16361 | fi | |
a106dabe | 16362 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
16363 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
56c15991 | 16364 | cat >>confdefs.h <<_ACEOF |
16365 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16366 | _ACEOF | |
16367 | ||
16368 | ;; | |
16369 | esac | |
16370 | ||
16371 | if test $acx_cv_header_stdint = stddef.h; then | |
16372 | # Lacking a good header? Test size of everything and deduce all types. | |
a106dabe | 16373 | echo "$as_me:$LINENO: checking for int" >&5 |
16374 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
56c15991 | 16375 | if test "${ac_cv_type_int+set}" = set; then |
16376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16377 | else | |
16378 | cat >conftest.$ac_ext <<_ACEOF | |
16379 | /* confdefs.h. */ | |
16380 | _ACEOF | |
16381 | cat confdefs.h >>conftest.$ac_ext | |
16382 | cat >>conftest.$ac_ext <<_ACEOF | |
16383 | /* end confdefs.h. */ | |
16384 | $ac_includes_default | |
16385 | int | |
16386 | main () | |
16387 | { | |
a106dabe | 16388 | if ((int *) 0) |
56c15991 | 16389 | return 0; |
a106dabe | 16390 | if (sizeof (int)) |
56c15991 | 16391 | return 0; |
16392 | ; | |
16393 | return 0; | |
16394 | } | |
16395 | _ACEOF | |
16396 | rm -f conftest.$ac_objext | |
a106dabe | 16397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16398 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 16399 | ac_status=$? |
16400 | grep -v '^ *+' conftest.er1 >conftest.err | |
16401 | rm -f conftest.er1 | |
16402 | cat conftest.err >&5 | |
16403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16404 | (exit $ac_status); } && | |
c0e8efbe | 16405 | { ac_try='test -z "$ac_c_werror_flag" |
16406 | || test ! -s conftest.err' | |
a106dabe | 16407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16408 | (eval $ac_try) 2>&5 | |
56c15991 | 16409 | ac_status=$? |
16410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16411 | (exit $ac_status); }; } && | |
16412 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 16413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16414 | (eval $ac_try) 2>&5 | |
56c15991 | 16415 | ac_status=$? |
16416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16417 | (exit $ac_status); }; }; then | |
16418 | ac_cv_type_int=yes | |
16419 | else | |
16420 | echo "$as_me: failed program was:" >&5 | |
16421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16422 | ||
a106dabe | 16423 | ac_cv_type_int=no |
56c15991 | 16424 | fi |
a106dabe | 16425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16426 | fi |
a106dabe | 16427 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
16428 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
56c15991 | 16429 | |
a106dabe | 16430 | echo "$as_me:$LINENO: checking size of int" >&5 |
16431 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
56c15991 | 16432 | if test "${ac_cv_sizeof_int+set}" = set; then |
16433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16434 | else | |
16435 | if test "$ac_cv_type_int" = yes; then | |
a106dabe | 16436 | # The cast to unsigned long works around a bug in the HP C Compiler |
56c15991 | 16437 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
16438 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16439 | # This bug is HP SR number 8606223364. | |
16440 | if test "$cross_compiling" = yes; then | |
16441 | # Depending upon the size, compute the lo and hi bounds. | |
16442 | cat >conftest.$ac_ext <<_ACEOF | |
16443 | /* confdefs.h. */ | |
16444 | _ACEOF | |
16445 | cat confdefs.h >>conftest.$ac_ext | |
16446 | cat >>conftest.$ac_ext <<_ACEOF | |
16447 | /* end confdefs.h. */ | |
16448 | $ac_includes_default | |
16449 | int | |
16450 | main () | |
16451 | { | |
a106dabe | 16452 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
56c15991 | 16453 | test_array [0] = 0 |
16454 | ||
16455 | ; | |
16456 | return 0; | |
16457 | } | |
16458 | _ACEOF | |
16459 | rm -f conftest.$ac_objext | |
a106dabe | 16460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16461 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 16462 | ac_status=$? |
16463 | grep -v '^ *+' conftest.er1 >conftest.err | |
16464 | rm -f conftest.er1 | |
16465 | cat conftest.err >&5 | |
16466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16467 | (exit $ac_status); } && | |
c0e8efbe | 16468 | { ac_try='test -z "$ac_c_werror_flag" |
16469 | || test ! -s conftest.err' | |
a106dabe | 16470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16471 | (eval $ac_try) 2>&5 | |
56c15991 | 16472 | ac_status=$? |
16473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16474 | (exit $ac_status); }; } && | |
16475 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 16476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16477 | (eval $ac_try) 2>&5 | |
56c15991 | 16478 | ac_status=$? |
16479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16480 | (exit $ac_status); }; }; then | |
16481 | ac_lo=0 ac_mid=0 | |
16482 | while :; do | |
16483 | cat >conftest.$ac_ext <<_ACEOF | |
16484 | /* confdefs.h. */ | |
16485 | _ACEOF | |
16486 | cat confdefs.h >>conftest.$ac_ext | |
16487 | cat >>conftest.$ac_ext <<_ACEOF | |
16488 | /* end confdefs.h. */ | |
16489 | $ac_includes_default | |
16490 | int | |
16491 | main () | |
16492 | { | |
a106dabe | 16493 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
56c15991 | 16494 | test_array [0] = 0 |
16495 | ||
16496 | ; | |
16497 | return 0; | |
16498 | } | |
16499 | _ACEOF | |
16500 | rm -f conftest.$ac_objext | |
a106dabe | 16501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16502 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 16503 | ac_status=$? |
16504 | grep -v '^ *+' conftest.er1 >conftest.err | |
16505 | rm -f conftest.er1 | |
16506 | cat conftest.err >&5 | |
16507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16508 | (exit $ac_status); } && | |
c0e8efbe | 16509 | { ac_try='test -z "$ac_c_werror_flag" |
16510 | || test ! -s conftest.err' | |
a106dabe | 16511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16512 | (eval $ac_try) 2>&5 | |
56c15991 | 16513 | ac_status=$? |
16514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16515 | (exit $ac_status); }; } && | |
16516 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 16517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16518 | (eval $ac_try) 2>&5 | |
56c15991 | 16519 | ac_status=$? |
16520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16521 | (exit $ac_status); }; }; then | |
16522 | ac_hi=$ac_mid; break | |
16523 | else | |
16524 | echo "$as_me: failed program was:" >&5 | |
16525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16526 | ||
a106dabe | 16527 | ac_lo=`expr $ac_mid + 1` |
16528 | if test $ac_lo -le $ac_mid; then | |
16529 | ac_lo= ac_hi= | |
16530 | break | |
16531 | fi | |
16532 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
56c15991 | 16533 | fi |
a106dabe | 16534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16535 | done |
16536 | else | |
16537 | echo "$as_me: failed program was:" >&5 | |
16538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16539 | ||
a106dabe | 16540 | cat >conftest.$ac_ext <<_ACEOF |
56c15991 | 16541 | /* confdefs.h. */ |
16542 | _ACEOF | |
16543 | cat confdefs.h >>conftest.$ac_ext | |
16544 | cat >>conftest.$ac_ext <<_ACEOF | |
16545 | /* end confdefs.h. */ | |
16546 | $ac_includes_default | |
16547 | int | |
16548 | main () | |
16549 | { | |
a106dabe | 16550 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
56c15991 | 16551 | test_array [0] = 0 |
16552 | ||
16553 | ; | |
16554 | return 0; | |
16555 | } | |
16556 | _ACEOF | |
16557 | rm -f conftest.$ac_objext | |
a106dabe | 16558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16559 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 16560 | ac_status=$? |
16561 | grep -v '^ *+' conftest.er1 >conftest.err | |
16562 | rm -f conftest.er1 | |
16563 | cat conftest.err >&5 | |
16564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16565 | (exit $ac_status); } && | |
c0e8efbe | 16566 | { ac_try='test -z "$ac_c_werror_flag" |
16567 | || test ! -s conftest.err' | |
a106dabe | 16568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16569 | (eval $ac_try) 2>&5 | |
56c15991 | 16570 | ac_status=$? |
16571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16572 | (exit $ac_status); }; } && | |
16573 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 16574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16575 | (eval $ac_try) 2>&5 | |
56c15991 | 16576 | ac_status=$? |
16577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16578 | (exit $ac_status); }; }; then | |
16579 | ac_hi=-1 ac_mid=-1 | |
16580 | while :; do | |
16581 | cat >conftest.$ac_ext <<_ACEOF | |
16582 | /* confdefs.h. */ | |
16583 | _ACEOF | |
16584 | cat confdefs.h >>conftest.$ac_ext | |
16585 | cat >>conftest.$ac_ext <<_ACEOF | |
16586 | /* end confdefs.h. */ | |
16587 | $ac_includes_default | |
16588 | int | |
16589 | main () | |
16590 | { | |
a106dabe | 16591 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
56c15991 | 16592 | test_array [0] = 0 |
16593 | ||
16594 | ; | |
16595 | return 0; | |
16596 | } | |
16597 | _ACEOF | |
16598 | rm -f conftest.$ac_objext | |
a106dabe | 16599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16600 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 16601 | ac_status=$? |
16602 | grep -v '^ *+' conftest.er1 >conftest.err | |
16603 | rm -f conftest.er1 | |
16604 | cat conftest.err >&5 | |
16605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16606 | (exit $ac_status); } && | |
c0e8efbe | 16607 | { ac_try='test -z "$ac_c_werror_flag" |
16608 | || test ! -s conftest.err' | |
a106dabe | 16609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16610 | (eval $ac_try) 2>&5 | |
56c15991 | 16611 | ac_status=$? |
16612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16613 | (exit $ac_status); }; } && | |
16614 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 16615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16616 | (eval $ac_try) 2>&5 | |
56c15991 | 16617 | ac_status=$? |
16618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16619 | (exit $ac_status); }; }; then | |
16620 | ac_lo=$ac_mid; break | |
16621 | else | |
16622 | echo "$as_me: failed program was:" >&5 | |
16623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16624 | ||
a106dabe | 16625 | ac_hi=`expr '(' $ac_mid ')' - 1` |
16626 | if test $ac_mid -le $ac_hi; then | |
16627 | ac_lo= ac_hi= | |
16628 | break | |
16629 | fi | |
16630 | ac_mid=`expr 2 '*' $ac_mid` | |
56c15991 | 16631 | fi |
a106dabe | 16632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16633 | done |
16634 | else | |
16635 | echo "$as_me: failed program was:" >&5 | |
16636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16637 | ||
a106dabe | 16638 | ac_lo= ac_hi= |
56c15991 | 16639 | fi |
a106dabe | 16640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16641 | fi |
a106dabe | 16642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16643 | # Binary search between lo and hi bounds. |
16644 | while test "x$ac_lo" != "x$ac_hi"; do | |
16645 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16646 | cat >conftest.$ac_ext <<_ACEOF | |
16647 | /* confdefs.h. */ | |
16648 | _ACEOF | |
16649 | cat confdefs.h >>conftest.$ac_ext | |
16650 | cat >>conftest.$ac_ext <<_ACEOF | |
16651 | /* end confdefs.h. */ | |
16652 | $ac_includes_default | |
16653 | int | |
16654 | main () | |
16655 | { | |
a106dabe | 16656 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
56c15991 | 16657 | test_array [0] = 0 |
16658 | ||
16659 | ; | |
16660 | return 0; | |
16661 | } | |
16662 | _ACEOF | |
16663 | rm -f conftest.$ac_objext | |
a106dabe | 16664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16665 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 16666 | ac_status=$? |
16667 | grep -v '^ *+' conftest.er1 >conftest.err | |
16668 | rm -f conftest.er1 | |
16669 | cat conftest.err >&5 | |
16670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16671 | (exit $ac_status); } && | |
c0e8efbe | 16672 | { ac_try='test -z "$ac_c_werror_flag" |
16673 | || test ! -s conftest.err' | |
a106dabe | 16674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16675 | (eval $ac_try) 2>&5 | |
56c15991 | 16676 | ac_status=$? |
16677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16678 | (exit $ac_status); }; } && | |
16679 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 16680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16681 | (eval $ac_try) 2>&5 | |
56c15991 | 16682 | ac_status=$? |
16683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16684 | (exit $ac_status); }; }; then | |
16685 | ac_hi=$ac_mid | |
16686 | else | |
16687 | echo "$as_me: failed program was:" >&5 | |
16688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16689 | ||
a106dabe | 16690 | ac_lo=`expr '(' $ac_mid ')' + 1` |
56c15991 | 16691 | fi |
a106dabe | 16692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16693 | done |
16694 | case $ac_lo in | |
16695 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
a106dabe | 16696 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
56c15991 | 16697 | See \`config.log' for more details." >&5 |
a106dabe | 16698 | echo "$as_me: error: cannot compute sizeof (int), 77 |
56c15991 | 16699 | See \`config.log' for more details." >&2;} |
a106dabe | 16700 | { (exit 1); exit 1; }; } ;; |
56c15991 | 16701 | esac |
a106dabe | 16702 | else |
16703 | if test "$cross_compiling" = yes; then | |
c0e8efbe | 16704 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16705 | See \`config.log' for more details." >&5 | |
16706 | echo "$as_me: error: cannot run test program while cross compiling | |
16707 | See \`config.log' for more details." >&2;} | |
a106dabe | 16708 | { (exit 1); exit 1; }; } |
56c15991 | 16709 | else |
16710 | cat >conftest.$ac_ext <<_ACEOF | |
16711 | /* confdefs.h. */ | |
16712 | _ACEOF | |
16713 | cat confdefs.h >>conftest.$ac_ext | |
16714 | cat >>conftest.$ac_ext <<_ACEOF | |
16715 | /* end confdefs.h. */ | |
16716 | $ac_includes_default | |
a106dabe | 16717 | long longval () { return (long) (sizeof (int)); } |
16718 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
56c15991 | 16719 | #include <stdio.h> |
16720 | #include <stdlib.h> | |
16721 | int | |
16722 | main () | |
16723 | { | |
16724 | ||
16725 | FILE *f = fopen ("conftest.val", "w"); | |
16726 | if (! f) | |
a106dabe | 16727 | exit (1); |
16728 | if (((long) (sizeof (int))) < 0) | |
56c15991 | 16729 | { |
a106dabe | 16730 | long i = longval (); |
16731 | if (i != ((long) (sizeof (int)))) | |
16732 | exit (1); | |
56c15991 | 16733 | fprintf (f, "%ld\n", i); |
16734 | } | |
16735 | else | |
16736 | { | |
a106dabe | 16737 | unsigned long i = ulongval (); |
16738 | if (i != ((long) (sizeof (int)))) | |
16739 | exit (1); | |
56c15991 | 16740 | fprintf (f, "%lu\n", i); |
16741 | } | |
a106dabe | 16742 | exit (ferror (f) || fclose (f) != 0); |
56c15991 | 16743 | |
16744 | ; | |
16745 | return 0; | |
16746 | } | |
16747 | _ACEOF | |
16748 | rm -f conftest$ac_exeext | |
a106dabe | 16749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16750 | (eval $ac_link) 2>&5 | |
56c15991 | 16751 | ac_status=$? |
16752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16753 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a106dabe | 16754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16755 | (eval $ac_try) 2>&5 | |
56c15991 | 16756 | ac_status=$? |
16757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16758 | (exit $ac_status); }; }; then | |
16759 | ac_cv_sizeof_int=`cat conftest.val` | |
16760 | else | |
16761 | echo "$as_me: program exited with status $ac_status" >&5 | |
16762 | echo "$as_me: failed program was:" >&5 | |
16763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16764 | ||
16765 | ( exit $ac_status ) | |
a106dabe | 16766 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
56c15991 | 16767 | See \`config.log' for more details." >&5 |
a106dabe | 16768 | echo "$as_me: error: cannot compute sizeof (int), 77 |
56c15991 | 16769 | See \`config.log' for more details." >&2;} |
a106dabe | 16770 | { (exit 1); exit 1; }; } |
16771 | fi | |
16772 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
56c15991 | 16773 | fi |
16774 | fi | |
16775 | rm -f conftest.val | |
16776 | else | |
16777 | ac_cv_sizeof_int=0 | |
16778 | fi | |
16779 | fi | |
a106dabe | 16780 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
16781 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
56c15991 | 16782 | cat >>confdefs.h <<_ACEOF |
16783 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16784 | _ACEOF | |
16785 | ||
16786 | ||
a106dabe | 16787 | echo "$as_me:$LINENO: checking for short" >&5 |
16788 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
56c15991 | 16789 | if test "${ac_cv_type_short+set}" = set; then |
16790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16791 | else | |
16792 | cat >conftest.$ac_ext <<_ACEOF | |
16793 | /* confdefs.h. */ | |
16794 | _ACEOF | |
16795 | cat confdefs.h >>conftest.$ac_ext | |
16796 | cat >>conftest.$ac_ext <<_ACEOF | |
16797 | /* end confdefs.h. */ | |
16798 | $ac_includes_default | |
16799 | int | |
16800 | main () | |
16801 | { | |
a106dabe | 16802 | if ((short *) 0) |
56c15991 | 16803 | return 0; |
a106dabe | 16804 | if (sizeof (short)) |
56c15991 | 16805 | return 0; |
16806 | ; | |
16807 | return 0; | |
16808 | } | |
16809 | _ACEOF | |
16810 | rm -f conftest.$ac_objext | |
a106dabe | 16811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16812 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 16813 | ac_status=$? |
16814 | grep -v '^ *+' conftest.er1 >conftest.err | |
16815 | rm -f conftest.er1 | |
16816 | cat conftest.err >&5 | |
16817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16818 | (exit $ac_status); } && | |
c0e8efbe | 16819 | { ac_try='test -z "$ac_c_werror_flag" |
16820 | || test ! -s conftest.err' | |
a106dabe | 16821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16822 | (eval $ac_try) 2>&5 | |
56c15991 | 16823 | ac_status=$? |
16824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16825 | (exit $ac_status); }; } && | |
16826 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 16827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16828 | (eval $ac_try) 2>&5 | |
56c15991 | 16829 | ac_status=$? |
16830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16831 | (exit $ac_status); }; }; then | |
16832 | ac_cv_type_short=yes | |
16833 | else | |
16834 | echo "$as_me: failed program was:" >&5 | |
16835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16836 | ||
a106dabe | 16837 | ac_cv_type_short=no |
56c15991 | 16838 | fi |
a106dabe | 16839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16840 | fi |
a106dabe | 16841 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
16842 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
56c15991 | 16843 | |
a106dabe | 16844 | echo "$as_me:$LINENO: checking size of short" >&5 |
16845 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
56c15991 | 16846 | if test "${ac_cv_sizeof_short+set}" = set; then |
16847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16848 | else | |
16849 | if test "$ac_cv_type_short" = yes; then | |
a106dabe | 16850 | # The cast to unsigned long works around a bug in the HP C Compiler |
56c15991 | 16851 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
16852 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16853 | # This bug is HP SR number 8606223364. | |
16854 | if test "$cross_compiling" = yes; then | |
16855 | # Depending upon the size, compute the lo and hi bounds. | |
16856 | cat >conftest.$ac_ext <<_ACEOF | |
16857 | /* confdefs.h. */ | |
16858 | _ACEOF | |
16859 | cat confdefs.h >>conftest.$ac_ext | |
16860 | cat >>conftest.$ac_ext <<_ACEOF | |
16861 | /* end confdefs.h. */ | |
16862 | $ac_includes_default | |
16863 | int | |
16864 | main () | |
16865 | { | |
a106dabe | 16866 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
56c15991 | 16867 | test_array [0] = 0 |
16868 | ||
16869 | ; | |
16870 | return 0; | |
16871 | } | |
16872 | _ACEOF | |
16873 | rm -f conftest.$ac_objext | |
a106dabe | 16874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16875 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 16876 | ac_status=$? |
16877 | grep -v '^ *+' conftest.er1 >conftest.err | |
16878 | rm -f conftest.er1 | |
16879 | cat conftest.err >&5 | |
16880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16881 | (exit $ac_status); } && | |
c0e8efbe | 16882 | { ac_try='test -z "$ac_c_werror_flag" |
16883 | || test ! -s conftest.err' | |
a106dabe | 16884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16885 | (eval $ac_try) 2>&5 | |
56c15991 | 16886 | ac_status=$? |
16887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16888 | (exit $ac_status); }; } && | |
16889 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 16890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16891 | (eval $ac_try) 2>&5 | |
56c15991 | 16892 | ac_status=$? |
16893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16894 | (exit $ac_status); }; }; then | |
16895 | ac_lo=0 ac_mid=0 | |
16896 | while :; do | |
16897 | cat >conftest.$ac_ext <<_ACEOF | |
16898 | /* confdefs.h. */ | |
16899 | _ACEOF | |
16900 | cat confdefs.h >>conftest.$ac_ext | |
16901 | cat >>conftest.$ac_ext <<_ACEOF | |
16902 | /* end confdefs.h. */ | |
16903 | $ac_includes_default | |
16904 | int | |
16905 | main () | |
16906 | { | |
a106dabe | 16907 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
56c15991 | 16908 | test_array [0] = 0 |
16909 | ||
16910 | ; | |
16911 | return 0; | |
16912 | } | |
16913 | _ACEOF | |
16914 | rm -f conftest.$ac_objext | |
a106dabe | 16915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16916 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 16917 | ac_status=$? |
16918 | grep -v '^ *+' conftest.er1 >conftest.err | |
16919 | rm -f conftest.er1 | |
16920 | cat conftest.err >&5 | |
16921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16922 | (exit $ac_status); } && | |
c0e8efbe | 16923 | { ac_try='test -z "$ac_c_werror_flag" |
16924 | || test ! -s conftest.err' | |
a106dabe | 16925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16926 | (eval $ac_try) 2>&5 | |
56c15991 | 16927 | ac_status=$? |
16928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16929 | (exit $ac_status); }; } && | |
16930 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 16931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16932 | (eval $ac_try) 2>&5 | |
56c15991 | 16933 | ac_status=$? |
16934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16935 | (exit $ac_status); }; }; then | |
16936 | ac_hi=$ac_mid; break | |
16937 | else | |
16938 | echo "$as_me: failed program was:" >&5 | |
16939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16940 | ||
a106dabe | 16941 | ac_lo=`expr $ac_mid + 1` |
16942 | if test $ac_lo -le $ac_mid; then | |
16943 | ac_lo= ac_hi= | |
16944 | break | |
16945 | fi | |
16946 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
56c15991 | 16947 | fi |
a106dabe | 16948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16949 | done |
16950 | else | |
16951 | echo "$as_me: failed program was:" >&5 | |
16952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16953 | ||
a106dabe | 16954 | cat >conftest.$ac_ext <<_ACEOF |
56c15991 | 16955 | /* confdefs.h. */ |
16956 | _ACEOF | |
16957 | cat confdefs.h >>conftest.$ac_ext | |
16958 | cat >>conftest.$ac_ext <<_ACEOF | |
16959 | /* end confdefs.h. */ | |
16960 | $ac_includes_default | |
16961 | int | |
16962 | main () | |
16963 | { | |
a106dabe | 16964 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
56c15991 | 16965 | test_array [0] = 0 |
16966 | ||
16967 | ; | |
16968 | return 0; | |
16969 | } | |
16970 | _ACEOF | |
16971 | rm -f conftest.$ac_objext | |
a106dabe | 16972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16973 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 16974 | ac_status=$? |
16975 | grep -v '^ *+' conftest.er1 >conftest.err | |
16976 | rm -f conftest.er1 | |
16977 | cat conftest.err >&5 | |
16978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16979 | (exit $ac_status); } && | |
c0e8efbe | 16980 | { ac_try='test -z "$ac_c_werror_flag" |
16981 | || test ! -s conftest.err' | |
a106dabe | 16982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16983 | (eval $ac_try) 2>&5 | |
56c15991 | 16984 | ac_status=$? |
16985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16986 | (exit $ac_status); }; } && | |
16987 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 16988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16989 | (eval $ac_try) 2>&5 | |
56c15991 | 16990 | ac_status=$? |
16991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16992 | (exit $ac_status); }; }; then | |
16993 | ac_hi=-1 ac_mid=-1 | |
16994 | while :; do | |
16995 | cat >conftest.$ac_ext <<_ACEOF | |
16996 | /* confdefs.h. */ | |
16997 | _ACEOF | |
16998 | cat confdefs.h >>conftest.$ac_ext | |
16999 | cat >>conftest.$ac_ext <<_ACEOF | |
17000 | /* end confdefs.h. */ | |
17001 | $ac_includes_default | |
17002 | int | |
17003 | main () | |
17004 | { | |
a106dabe | 17005 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
56c15991 | 17006 | test_array [0] = 0 |
17007 | ||
17008 | ; | |
17009 | return 0; | |
17010 | } | |
17011 | _ACEOF | |
17012 | rm -f conftest.$ac_objext | |
a106dabe | 17013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17014 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 17015 | ac_status=$? |
17016 | grep -v '^ *+' conftest.er1 >conftest.err | |
17017 | rm -f conftest.er1 | |
17018 | cat conftest.err >&5 | |
17019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17020 | (exit $ac_status); } && | |
c0e8efbe | 17021 | { ac_try='test -z "$ac_c_werror_flag" |
17022 | || test ! -s conftest.err' | |
a106dabe | 17023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17024 | (eval $ac_try) 2>&5 | |
56c15991 | 17025 | ac_status=$? |
17026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17027 | (exit $ac_status); }; } && | |
17028 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 17029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17030 | (eval $ac_try) 2>&5 | |
56c15991 | 17031 | ac_status=$? |
17032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17033 | (exit $ac_status); }; }; then | |
17034 | ac_lo=$ac_mid; break | |
17035 | else | |
17036 | echo "$as_me: failed program was:" >&5 | |
17037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17038 | ||
a106dabe | 17039 | ac_hi=`expr '(' $ac_mid ')' - 1` |
17040 | if test $ac_mid -le $ac_hi; then | |
17041 | ac_lo= ac_hi= | |
17042 | break | |
17043 | fi | |
17044 | ac_mid=`expr 2 '*' $ac_mid` | |
56c15991 | 17045 | fi |
a106dabe | 17046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17047 | done |
17048 | else | |
17049 | echo "$as_me: failed program was:" >&5 | |
17050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17051 | ||
a106dabe | 17052 | ac_lo= ac_hi= |
56c15991 | 17053 | fi |
a106dabe | 17054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17055 | fi |
a106dabe | 17056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17057 | # Binary search between lo and hi bounds. |
17058 | while test "x$ac_lo" != "x$ac_hi"; do | |
17059 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17060 | cat >conftest.$ac_ext <<_ACEOF | |
17061 | /* confdefs.h. */ | |
17062 | _ACEOF | |
17063 | cat confdefs.h >>conftest.$ac_ext | |
17064 | cat >>conftest.$ac_ext <<_ACEOF | |
17065 | /* end confdefs.h. */ | |
17066 | $ac_includes_default | |
17067 | int | |
17068 | main () | |
17069 | { | |
a106dabe | 17070 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
56c15991 | 17071 | test_array [0] = 0 |
17072 | ||
17073 | ; | |
17074 | return 0; | |
17075 | } | |
17076 | _ACEOF | |
17077 | rm -f conftest.$ac_objext | |
a106dabe | 17078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17079 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 17080 | ac_status=$? |
17081 | grep -v '^ *+' conftest.er1 >conftest.err | |
17082 | rm -f conftest.er1 | |
17083 | cat conftest.err >&5 | |
17084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17085 | (exit $ac_status); } && | |
c0e8efbe | 17086 | { ac_try='test -z "$ac_c_werror_flag" |
17087 | || test ! -s conftest.err' | |
a106dabe | 17088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17089 | (eval $ac_try) 2>&5 | |
56c15991 | 17090 | ac_status=$? |
17091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17092 | (exit $ac_status); }; } && | |
17093 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 17094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17095 | (eval $ac_try) 2>&5 | |
56c15991 | 17096 | ac_status=$? |
17097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17098 | (exit $ac_status); }; }; then | |
17099 | ac_hi=$ac_mid | |
17100 | else | |
17101 | echo "$as_me: failed program was:" >&5 | |
17102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17103 | ||
a106dabe | 17104 | ac_lo=`expr '(' $ac_mid ')' + 1` |
56c15991 | 17105 | fi |
a106dabe | 17106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17107 | done |
17108 | case $ac_lo in | |
17109 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
a106dabe | 17110 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
56c15991 | 17111 | See \`config.log' for more details." >&5 |
a106dabe | 17112 | echo "$as_me: error: cannot compute sizeof (short), 77 |
56c15991 | 17113 | See \`config.log' for more details." >&2;} |
a106dabe | 17114 | { (exit 1); exit 1; }; } ;; |
56c15991 | 17115 | esac |
a106dabe | 17116 | else |
17117 | if test "$cross_compiling" = yes; then | |
c0e8efbe | 17118 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17119 | See \`config.log' for more details." >&5 | |
17120 | echo "$as_me: error: cannot run test program while cross compiling | |
17121 | See \`config.log' for more details." >&2;} | |
a106dabe | 17122 | { (exit 1); exit 1; }; } |
56c15991 | 17123 | else |
17124 | cat >conftest.$ac_ext <<_ACEOF | |
17125 | /* confdefs.h. */ | |
17126 | _ACEOF | |
17127 | cat confdefs.h >>conftest.$ac_ext | |
17128 | cat >>conftest.$ac_ext <<_ACEOF | |
17129 | /* end confdefs.h. */ | |
17130 | $ac_includes_default | |
a106dabe | 17131 | long longval () { return (long) (sizeof (short)); } |
17132 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
56c15991 | 17133 | #include <stdio.h> |
17134 | #include <stdlib.h> | |
17135 | int | |
17136 | main () | |
17137 | { | |
17138 | ||
17139 | FILE *f = fopen ("conftest.val", "w"); | |
17140 | if (! f) | |
a106dabe | 17141 | exit (1); |
17142 | if (((long) (sizeof (short))) < 0) | |
56c15991 | 17143 | { |
a106dabe | 17144 | long i = longval (); |
17145 | if (i != ((long) (sizeof (short)))) | |
17146 | exit (1); | |
56c15991 | 17147 | fprintf (f, "%ld\n", i); |
17148 | } | |
17149 | else | |
17150 | { | |
a106dabe | 17151 | unsigned long i = ulongval (); |
17152 | if (i != ((long) (sizeof (short)))) | |
17153 | exit (1); | |
56c15991 | 17154 | fprintf (f, "%lu\n", i); |
17155 | } | |
a106dabe | 17156 | exit (ferror (f) || fclose (f) != 0); |
56c15991 | 17157 | |
17158 | ; | |
17159 | return 0; | |
17160 | } | |
17161 | _ACEOF | |
17162 | rm -f conftest$ac_exeext | |
a106dabe | 17163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
17164 | (eval $ac_link) 2>&5 | |
56c15991 | 17165 | ac_status=$? |
17166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17167 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a106dabe | 17168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17169 | (eval $ac_try) 2>&5 | |
56c15991 | 17170 | ac_status=$? |
17171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17172 | (exit $ac_status); }; }; then | |
17173 | ac_cv_sizeof_short=`cat conftest.val` | |
17174 | else | |
17175 | echo "$as_me: program exited with status $ac_status" >&5 | |
17176 | echo "$as_me: failed program was:" >&5 | |
17177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17178 | ||
17179 | ( exit $ac_status ) | |
a106dabe | 17180 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
56c15991 | 17181 | See \`config.log' for more details." >&5 |
a106dabe | 17182 | echo "$as_me: error: cannot compute sizeof (short), 77 |
56c15991 | 17183 | See \`config.log' for more details." >&2;} |
a106dabe | 17184 | { (exit 1); exit 1; }; } |
17185 | fi | |
17186 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
56c15991 | 17187 | fi |
17188 | fi | |
17189 | rm -f conftest.val | |
17190 | else | |
17191 | ac_cv_sizeof_short=0 | |
17192 | fi | |
17193 | fi | |
a106dabe | 17194 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
17195 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
56c15991 | 17196 | cat >>confdefs.h <<_ACEOF |
17197 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
17198 | _ACEOF | |
17199 | ||
17200 | ||
a106dabe | 17201 | echo "$as_me:$LINENO: checking for char" >&5 |
17202 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
56c15991 | 17203 | if test "${ac_cv_type_char+set}" = set; then |
17204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17205 | else | |
17206 | cat >conftest.$ac_ext <<_ACEOF | |
17207 | /* confdefs.h. */ | |
17208 | _ACEOF | |
17209 | cat confdefs.h >>conftest.$ac_ext | |
17210 | cat >>conftest.$ac_ext <<_ACEOF | |
17211 | /* end confdefs.h. */ | |
17212 | $ac_includes_default | |
17213 | int | |
17214 | main () | |
17215 | { | |
a106dabe | 17216 | if ((char *) 0) |
56c15991 | 17217 | return 0; |
a106dabe | 17218 | if (sizeof (char)) |
56c15991 | 17219 | return 0; |
17220 | ; | |
17221 | return 0; | |
17222 | } | |
17223 | _ACEOF | |
17224 | rm -f conftest.$ac_objext | |
a106dabe | 17225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17226 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 17227 | ac_status=$? |
17228 | grep -v '^ *+' conftest.er1 >conftest.err | |
17229 | rm -f conftest.er1 | |
17230 | cat conftest.err >&5 | |
17231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17232 | (exit $ac_status); } && | |
c0e8efbe | 17233 | { ac_try='test -z "$ac_c_werror_flag" |
17234 | || test ! -s conftest.err' | |
a106dabe | 17235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17236 | (eval $ac_try) 2>&5 | |
56c15991 | 17237 | ac_status=$? |
17238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17239 | (exit $ac_status); }; } && | |
17240 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 17241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17242 | (eval $ac_try) 2>&5 | |
56c15991 | 17243 | ac_status=$? |
17244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17245 | (exit $ac_status); }; }; then | |
17246 | ac_cv_type_char=yes | |
17247 | else | |
17248 | echo "$as_me: failed program was:" >&5 | |
17249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17250 | ||
a106dabe | 17251 | ac_cv_type_char=no |
56c15991 | 17252 | fi |
a106dabe | 17253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17254 | fi |
a106dabe | 17255 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
17256 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
56c15991 | 17257 | |
a106dabe | 17258 | echo "$as_me:$LINENO: checking size of char" >&5 |
17259 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
56c15991 | 17260 | if test "${ac_cv_sizeof_char+set}" = set; then |
17261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17262 | else | |
17263 | if test "$ac_cv_type_char" = yes; then | |
a106dabe | 17264 | # The cast to unsigned long works around a bug in the HP C Compiler |
56c15991 | 17265 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
17266 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17267 | # This bug is HP SR number 8606223364. | |
17268 | if test "$cross_compiling" = yes; then | |
17269 | # Depending upon the size, compute the lo and hi bounds. | |
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 | $ac_includes_default | |
17277 | int | |
17278 | main () | |
17279 | { | |
a106dabe | 17280 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
56c15991 | 17281 | test_array [0] = 0 |
17282 | ||
17283 | ; | |
17284 | return 0; | |
17285 | } | |
17286 | _ACEOF | |
17287 | rm -f conftest.$ac_objext | |
a106dabe | 17288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17289 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 17290 | ac_status=$? |
17291 | grep -v '^ *+' conftest.er1 >conftest.err | |
17292 | rm -f conftest.er1 | |
17293 | cat conftest.err >&5 | |
17294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17295 | (exit $ac_status); } && | |
c0e8efbe | 17296 | { ac_try='test -z "$ac_c_werror_flag" |
17297 | || test ! -s conftest.err' | |
a106dabe | 17298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17299 | (eval $ac_try) 2>&5 | |
56c15991 | 17300 | ac_status=$? |
17301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17302 | (exit $ac_status); }; } && | |
17303 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 17304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17305 | (eval $ac_try) 2>&5 | |
56c15991 | 17306 | ac_status=$? |
17307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17308 | (exit $ac_status); }; }; then | |
17309 | ac_lo=0 ac_mid=0 | |
17310 | while :; do | |
17311 | cat >conftest.$ac_ext <<_ACEOF | |
17312 | /* confdefs.h. */ | |
17313 | _ACEOF | |
17314 | cat confdefs.h >>conftest.$ac_ext | |
17315 | cat >>conftest.$ac_ext <<_ACEOF | |
17316 | /* end confdefs.h. */ | |
17317 | $ac_includes_default | |
17318 | int | |
17319 | main () | |
17320 | { | |
a106dabe | 17321 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
56c15991 | 17322 | test_array [0] = 0 |
17323 | ||
17324 | ; | |
17325 | return 0; | |
17326 | } | |
17327 | _ACEOF | |
17328 | rm -f conftest.$ac_objext | |
a106dabe | 17329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17330 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 17331 | ac_status=$? |
17332 | grep -v '^ *+' conftest.er1 >conftest.err | |
17333 | rm -f conftest.er1 | |
17334 | cat conftest.err >&5 | |
17335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17336 | (exit $ac_status); } && | |
c0e8efbe | 17337 | { ac_try='test -z "$ac_c_werror_flag" |
17338 | || test ! -s conftest.err' | |
a106dabe | 17339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17340 | (eval $ac_try) 2>&5 | |
56c15991 | 17341 | ac_status=$? |
17342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17343 | (exit $ac_status); }; } && | |
17344 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 17345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17346 | (eval $ac_try) 2>&5 | |
56c15991 | 17347 | ac_status=$? |
17348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17349 | (exit $ac_status); }; }; then | |
17350 | ac_hi=$ac_mid; break | |
17351 | else | |
17352 | echo "$as_me: failed program was:" >&5 | |
17353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17354 | ||
a106dabe | 17355 | ac_lo=`expr $ac_mid + 1` |
17356 | if test $ac_lo -le $ac_mid; then | |
17357 | ac_lo= ac_hi= | |
17358 | break | |
17359 | fi | |
17360 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
56c15991 | 17361 | fi |
a106dabe | 17362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17363 | done |
17364 | else | |
17365 | echo "$as_me: failed program was:" >&5 | |
17366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17367 | ||
a106dabe | 17368 | cat >conftest.$ac_ext <<_ACEOF |
56c15991 | 17369 | /* confdefs.h. */ |
17370 | _ACEOF | |
17371 | cat confdefs.h >>conftest.$ac_ext | |
17372 | cat >>conftest.$ac_ext <<_ACEOF | |
17373 | /* end confdefs.h. */ | |
17374 | $ac_includes_default | |
17375 | int | |
17376 | main () | |
17377 | { | |
a106dabe | 17378 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
56c15991 | 17379 | test_array [0] = 0 |
17380 | ||
17381 | ; | |
17382 | return 0; | |
17383 | } | |
17384 | _ACEOF | |
17385 | rm -f conftest.$ac_objext | |
a106dabe | 17386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17387 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 17388 | ac_status=$? |
17389 | grep -v '^ *+' conftest.er1 >conftest.err | |
17390 | rm -f conftest.er1 | |
17391 | cat conftest.err >&5 | |
17392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17393 | (exit $ac_status); } && | |
c0e8efbe | 17394 | { ac_try='test -z "$ac_c_werror_flag" |
17395 | || test ! -s conftest.err' | |
a106dabe | 17396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17397 | (eval $ac_try) 2>&5 | |
56c15991 | 17398 | ac_status=$? |
17399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17400 | (exit $ac_status); }; } && | |
17401 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 17402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17403 | (eval $ac_try) 2>&5 | |
56c15991 | 17404 | ac_status=$? |
17405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17406 | (exit $ac_status); }; }; then | |
17407 | ac_hi=-1 ac_mid=-1 | |
17408 | while :; do | |
17409 | cat >conftest.$ac_ext <<_ACEOF | |
17410 | /* confdefs.h. */ | |
17411 | _ACEOF | |
17412 | cat confdefs.h >>conftest.$ac_ext | |
17413 | cat >>conftest.$ac_ext <<_ACEOF | |
17414 | /* end confdefs.h. */ | |
17415 | $ac_includes_default | |
17416 | int | |
17417 | main () | |
17418 | { | |
a106dabe | 17419 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
56c15991 | 17420 | test_array [0] = 0 |
17421 | ||
17422 | ; | |
17423 | return 0; | |
17424 | } | |
17425 | _ACEOF | |
17426 | rm -f conftest.$ac_objext | |
a106dabe | 17427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17428 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 17429 | ac_status=$? |
17430 | grep -v '^ *+' conftest.er1 >conftest.err | |
17431 | rm -f conftest.er1 | |
17432 | cat conftest.err >&5 | |
17433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17434 | (exit $ac_status); } && | |
c0e8efbe | 17435 | { ac_try='test -z "$ac_c_werror_flag" |
17436 | || test ! -s conftest.err' | |
a106dabe | 17437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17438 | (eval $ac_try) 2>&5 | |
56c15991 | 17439 | ac_status=$? |
17440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17441 | (exit $ac_status); }; } && | |
17442 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 17443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17444 | (eval $ac_try) 2>&5 | |
56c15991 | 17445 | ac_status=$? |
17446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17447 | (exit $ac_status); }; }; then | |
17448 | ac_lo=$ac_mid; break | |
17449 | else | |
17450 | echo "$as_me: failed program was:" >&5 | |
17451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17452 | ||
a106dabe | 17453 | ac_hi=`expr '(' $ac_mid ')' - 1` |
17454 | if test $ac_mid -le $ac_hi; then | |
17455 | ac_lo= ac_hi= | |
17456 | break | |
17457 | fi | |
17458 | ac_mid=`expr 2 '*' $ac_mid` | |
56c15991 | 17459 | fi |
a106dabe | 17460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17461 | done |
17462 | else | |
17463 | echo "$as_me: failed program was:" >&5 | |
17464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17465 | ||
a106dabe | 17466 | ac_lo= ac_hi= |
56c15991 | 17467 | fi |
a106dabe | 17468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17469 | fi |
a106dabe | 17470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17471 | # Binary search between lo and hi bounds. |
17472 | while test "x$ac_lo" != "x$ac_hi"; do | |
17473 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17474 | cat >conftest.$ac_ext <<_ACEOF | |
17475 | /* confdefs.h. */ | |
17476 | _ACEOF | |
17477 | cat confdefs.h >>conftest.$ac_ext | |
17478 | cat >>conftest.$ac_ext <<_ACEOF | |
17479 | /* end confdefs.h. */ | |
17480 | $ac_includes_default | |
17481 | int | |
17482 | main () | |
17483 | { | |
a106dabe | 17484 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
56c15991 | 17485 | test_array [0] = 0 |
17486 | ||
17487 | ; | |
17488 | return 0; | |
17489 | } | |
17490 | _ACEOF | |
17491 | rm -f conftest.$ac_objext | |
a106dabe | 17492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17493 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 17494 | ac_status=$? |
17495 | grep -v '^ *+' conftest.er1 >conftest.err | |
17496 | rm -f conftest.er1 | |
17497 | cat conftest.err >&5 | |
17498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17499 | (exit $ac_status); } && | |
c0e8efbe | 17500 | { ac_try='test -z "$ac_c_werror_flag" |
17501 | || test ! -s conftest.err' | |
a106dabe | 17502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17503 | (eval $ac_try) 2>&5 | |
56c15991 | 17504 | ac_status=$? |
17505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17506 | (exit $ac_status); }; } && | |
17507 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 17508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17509 | (eval $ac_try) 2>&5 | |
56c15991 | 17510 | ac_status=$? |
17511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17512 | (exit $ac_status); }; }; then | |
17513 | ac_hi=$ac_mid | |
17514 | else | |
17515 | echo "$as_me: failed program was:" >&5 | |
17516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17517 | ||
a106dabe | 17518 | ac_lo=`expr '(' $ac_mid ')' + 1` |
56c15991 | 17519 | fi |
a106dabe | 17520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17521 | done |
17522 | case $ac_lo in | |
17523 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
a106dabe | 17524 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
56c15991 | 17525 | See \`config.log' for more details." >&5 |
a106dabe | 17526 | echo "$as_me: error: cannot compute sizeof (char), 77 |
56c15991 | 17527 | See \`config.log' for more details." >&2;} |
a106dabe | 17528 | { (exit 1); exit 1; }; } ;; |
56c15991 | 17529 | esac |
a106dabe | 17530 | else |
17531 | if test "$cross_compiling" = yes; then | |
c0e8efbe | 17532 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17533 | See \`config.log' for more details." >&5 | |
17534 | echo "$as_me: error: cannot run test program while cross compiling | |
17535 | See \`config.log' for more details." >&2;} | |
a106dabe | 17536 | { (exit 1); exit 1; }; } |
56c15991 | 17537 | else |
17538 | cat >conftest.$ac_ext <<_ACEOF | |
17539 | /* confdefs.h. */ | |
17540 | _ACEOF | |
17541 | cat confdefs.h >>conftest.$ac_ext | |
17542 | cat >>conftest.$ac_ext <<_ACEOF | |
17543 | /* end confdefs.h. */ | |
17544 | $ac_includes_default | |
a106dabe | 17545 | long longval () { return (long) (sizeof (char)); } |
17546 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
56c15991 | 17547 | #include <stdio.h> |
17548 | #include <stdlib.h> | |
17549 | int | |
17550 | main () | |
17551 | { | |
17552 | ||
17553 | FILE *f = fopen ("conftest.val", "w"); | |
17554 | if (! f) | |
a106dabe | 17555 | exit (1); |
17556 | if (((long) (sizeof (char))) < 0) | |
56c15991 | 17557 | { |
a106dabe | 17558 | long i = longval (); |
17559 | if (i != ((long) (sizeof (char)))) | |
17560 | exit (1); | |
56c15991 | 17561 | fprintf (f, "%ld\n", i); |
17562 | } | |
17563 | else | |
17564 | { | |
a106dabe | 17565 | unsigned long i = ulongval (); |
17566 | if (i != ((long) (sizeof (char)))) | |
17567 | exit (1); | |
56c15991 | 17568 | fprintf (f, "%lu\n", i); |
17569 | } | |
a106dabe | 17570 | exit (ferror (f) || fclose (f) != 0); |
56c15991 | 17571 | |
17572 | ; | |
17573 | return 0; | |
17574 | } | |
17575 | _ACEOF | |
17576 | rm -f conftest$ac_exeext | |
a106dabe | 17577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
17578 | (eval $ac_link) 2>&5 | |
56c15991 | 17579 | ac_status=$? |
17580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17581 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a106dabe | 17582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17583 | (eval $ac_try) 2>&5 | |
56c15991 | 17584 | ac_status=$? |
17585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17586 | (exit $ac_status); }; }; then | |
17587 | ac_cv_sizeof_char=`cat conftest.val` | |
17588 | else | |
17589 | echo "$as_me: program exited with status $ac_status" >&5 | |
17590 | echo "$as_me: failed program was:" >&5 | |
17591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17592 | ||
17593 | ( exit $ac_status ) | |
a106dabe | 17594 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
56c15991 | 17595 | See \`config.log' for more details." >&5 |
a106dabe | 17596 | echo "$as_me: error: cannot compute sizeof (char), 77 |
56c15991 | 17597 | See \`config.log' for more details." >&2;} |
a106dabe | 17598 | { (exit 1); exit 1; }; } |
17599 | fi | |
17600 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
56c15991 | 17601 | fi |
17602 | fi | |
17603 | rm -f conftest.val | |
17604 | else | |
17605 | ac_cv_sizeof_char=0 | |
17606 | fi | |
17607 | fi | |
a106dabe | 17608 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
17609 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
56c15991 | 17610 | cat >>confdefs.h <<_ACEOF |
17611 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
17612 | _ACEOF | |
17613 | ||
17614 | ||
17615 | ||
a106dabe | 17616 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 |
17617 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 | |
56c15991 | 17618 | case "$ac_cv_sizeof_char" in |
17619 | 1) acx_cv_type_int8_t=char ;; | |
17620 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
17621 | echo "$as_me: error: no 8-bit type" >&2;} | |
17622 | { (exit please report a bug); exit please report a bug; }; } | |
17623 | esac | |
a106dabe | 17624 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 |
17625 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
56c15991 | 17626 | |
a106dabe | 17627 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 |
17628 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 | |
56c15991 | 17629 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in |
17630 | 2:*) acx_cv_type_int16_t=int ;; | |
17631 | *:2) acx_cv_type_int16_t=short ;; | |
17632 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
17633 | echo "$as_me: error: no 16-bit type" >&2;} | |
17634 | { (exit please report a bug); exit please report a bug; }; } | |
17635 | esac | |
a106dabe | 17636 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 |
17637 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
56c15991 | 17638 | |
a106dabe | 17639 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 |
17640 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 | |
56c15991 | 17641 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in |
17642 | 4:*) acx_cv_type_int32_t=int ;; | |
17643 | *:4) acx_cv_type_int32_t=long ;; | |
17644 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
17645 | echo "$as_me: error: no 32-bit type" >&2;} | |
17646 | { (exit please report a bug); exit please report a bug; }; } | |
17647 | esac | |
a106dabe | 17648 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 |
17649 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
56c15991 | 17650 | fi |
17651 | ||
17652 | # These tests are here to make the output prettier | |
17653 | ||
17654 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
17655 | case "$ac_cv_sizeof_long" in | |
17656 | 8) acx_cv_type_int64_t=long ;; | |
17657 | esac | |
a106dabe | 17658 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 |
17659 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 | |
17660 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
17661 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
56c15991 | 17662 | fi |
17663 | ||
17664 | # Now we can use the above types | |
17665 | ||
17666 | if test "$ac_cv_type_uintptr_t" != yes; then | |
a106dabe | 17667 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 |
17668 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 | |
56c15991 | 17669 | case $ac_cv_sizeof_void_p in |
17670 | 2) acx_cv_type_intptr_t=int16_t ;; | |
17671 | 4) acx_cv_type_intptr_t=int32_t ;; | |
17672 | 8) acx_cv_type_intptr_t=int64_t ;; | |
17673 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
17674 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
17675 | { (exit please report a bug); exit please report a bug; }; } | |
17676 | esac | |
a106dabe | 17677 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 |
17678 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
56c15991 | 17679 | fi |
17680 | ||
17681 | # ----------------- done all checks, emit header ------------- | |
a106dabe | 17682 | ac_config_commands="$ac_config_commands gstdint.h" |
56c15991 | 17683 | |
17684 | ||
17685 | ||
17686 | ||
a106dabe | 17687 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
17688 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
771c1b50 | 17689 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
17690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17691 | else | |
17692 | cat >conftest.$ac_ext <<_ACEOF | |
17693 | /* confdefs.h. */ | |
17694 | _ACEOF | |
17695 | cat confdefs.h >>conftest.$ac_ext | |
17696 | cat >>conftest.$ac_ext <<_ACEOF | |
17697 | /* end confdefs.h. */ | |
17698 | $ac_includes_default | |
17699 | int | |
17700 | main () | |
17701 | { | |
17702 | static struct stat ac_aggr; | |
17703 | if (ac_aggr.st_blksize) | |
17704 | return 0; | |
17705 | ; | |
17706 | return 0; | |
17707 | } | |
17708 | _ACEOF | |
17709 | rm -f conftest.$ac_objext | |
a106dabe | 17710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17711 | (eval $ac_compile) 2>conftest.er1 | |
771c1b50 | 17712 | ac_status=$? |
17713 | grep -v '^ *+' conftest.er1 >conftest.err | |
17714 | rm -f conftest.er1 | |
17715 | cat conftest.err >&5 | |
17716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17717 | (exit $ac_status); } && | |
c0e8efbe | 17718 | { ac_try='test -z "$ac_c_werror_flag" |
17719 | || test ! -s conftest.err' | |
a106dabe | 17720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17721 | (eval $ac_try) 2>&5 | |
771c1b50 | 17722 | ac_status=$? |
17723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17724 | (exit $ac_status); }; } && | |
17725 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 17726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17727 | (eval $ac_try) 2>&5 | |
771c1b50 | 17728 | ac_status=$? |
17729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17730 | (exit $ac_status); }; }; then | |
17731 | ac_cv_member_struct_stat_st_blksize=yes | |
17732 | else | |
17733 | echo "$as_me: failed program was:" >&5 | |
17734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17735 | ||
a106dabe | 17736 | cat >conftest.$ac_ext <<_ACEOF |
771c1b50 | 17737 | /* confdefs.h. */ |
17738 | _ACEOF | |
17739 | cat confdefs.h >>conftest.$ac_ext | |
17740 | cat >>conftest.$ac_ext <<_ACEOF | |
17741 | /* end confdefs.h. */ | |
17742 | $ac_includes_default | |
17743 | int | |
17744 | main () | |
17745 | { | |
17746 | static struct stat ac_aggr; | |
17747 | if (sizeof ac_aggr.st_blksize) | |
17748 | return 0; | |
17749 | ; | |
17750 | return 0; | |
17751 | } | |
17752 | _ACEOF | |
17753 | rm -f conftest.$ac_objext | |
a106dabe | 17754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17755 | (eval $ac_compile) 2>conftest.er1 | |
771c1b50 | 17756 | ac_status=$? |
17757 | grep -v '^ *+' conftest.er1 >conftest.err | |
17758 | rm -f conftest.er1 | |
17759 | cat conftest.err >&5 | |
17760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17761 | (exit $ac_status); } && | |
c0e8efbe | 17762 | { ac_try='test -z "$ac_c_werror_flag" |
17763 | || test ! -s conftest.err' | |
a106dabe | 17764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17765 | (eval $ac_try) 2>&5 | |
771c1b50 | 17766 | ac_status=$? |
17767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17768 | (exit $ac_status); }; } && | |
17769 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 17770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17771 | (eval $ac_try) 2>&5 | |
771c1b50 | 17772 | ac_status=$? |
17773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17774 | (exit $ac_status); }; }; then | |
17775 | ac_cv_member_struct_stat_st_blksize=yes | |
17776 | else | |
17777 | echo "$as_me: failed program was:" >&5 | |
17778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17779 | ||
a106dabe | 17780 | ac_cv_member_struct_stat_st_blksize=no |
771c1b50 | 17781 | fi |
a106dabe | 17782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
771c1b50 | 17783 | fi |
a106dabe | 17784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
771c1b50 | 17785 | fi |
a106dabe | 17786 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
17787 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
771c1b50 | 17788 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
17789 | ||
17790 | cat >>confdefs.h <<_ACEOF | |
17791 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
17792 | _ACEOF | |
17793 | ||
17794 | ||
17795 | fi | |
17796 | ||
a106dabe | 17797 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
17798 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
771c1b50 | 17799 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
17800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17801 | else | |
17802 | cat >conftest.$ac_ext <<_ACEOF | |
17803 | /* confdefs.h. */ | |
17804 | _ACEOF | |
17805 | cat confdefs.h >>conftest.$ac_ext | |
17806 | cat >>conftest.$ac_ext <<_ACEOF | |
17807 | /* end confdefs.h. */ | |
17808 | $ac_includes_default | |
17809 | int | |
17810 | main () | |
17811 | { | |
17812 | static struct stat ac_aggr; | |
17813 | if (ac_aggr.st_blocks) | |
17814 | return 0; | |
17815 | ; | |
17816 | return 0; | |
17817 | } | |
17818 | _ACEOF | |
17819 | rm -f conftest.$ac_objext | |
a106dabe | 17820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17821 | (eval $ac_compile) 2>conftest.er1 | |
771c1b50 | 17822 | ac_status=$? |
17823 | grep -v '^ *+' conftest.er1 >conftest.err | |
17824 | rm -f conftest.er1 | |
17825 | cat conftest.err >&5 | |
17826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17827 | (exit $ac_status); } && | |
c0e8efbe | 17828 | { ac_try='test -z "$ac_c_werror_flag" |
17829 | || test ! -s conftest.err' | |
a106dabe | 17830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17831 | (eval $ac_try) 2>&5 | |
771c1b50 | 17832 | ac_status=$? |
17833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17834 | (exit $ac_status); }; } && | |
17835 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 17836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17837 | (eval $ac_try) 2>&5 | |
771c1b50 | 17838 | ac_status=$? |
17839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17840 | (exit $ac_status); }; }; then | |
17841 | ac_cv_member_struct_stat_st_blocks=yes | |
17842 | else | |
17843 | echo "$as_me: failed program was:" >&5 | |
17844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17845 | ||
a106dabe | 17846 | cat >conftest.$ac_ext <<_ACEOF |
771c1b50 | 17847 | /* confdefs.h. */ |
17848 | _ACEOF | |
17849 | cat confdefs.h >>conftest.$ac_ext | |
17850 | cat >>conftest.$ac_ext <<_ACEOF | |
17851 | /* end confdefs.h. */ | |
17852 | $ac_includes_default | |
17853 | int | |
17854 | main () | |
17855 | { | |
17856 | static struct stat ac_aggr; | |
17857 | if (sizeof ac_aggr.st_blocks) | |
17858 | return 0; | |
17859 | ; | |
17860 | return 0; | |
17861 | } | |
17862 | _ACEOF | |
17863 | rm -f conftest.$ac_objext | |
a106dabe | 17864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17865 | (eval $ac_compile) 2>conftest.er1 | |
771c1b50 | 17866 | ac_status=$? |
17867 | grep -v '^ *+' conftest.er1 >conftest.err | |
17868 | rm -f conftest.er1 | |
17869 | cat conftest.err >&5 | |
17870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17871 | (exit $ac_status); } && | |
c0e8efbe | 17872 | { ac_try='test -z "$ac_c_werror_flag" |
17873 | || test ! -s conftest.err' | |
a106dabe | 17874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17875 | (eval $ac_try) 2>&5 | |
771c1b50 | 17876 | ac_status=$? |
17877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17878 | (exit $ac_status); }; } && | |
17879 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 17880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17881 | (eval $ac_try) 2>&5 | |
771c1b50 | 17882 | ac_status=$? |
17883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17884 | (exit $ac_status); }; }; then | |
17885 | ac_cv_member_struct_stat_st_blocks=yes | |
17886 | else | |
17887 | echo "$as_me: failed program was:" >&5 | |
17888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17889 | ||
a106dabe | 17890 | ac_cv_member_struct_stat_st_blocks=no |
771c1b50 | 17891 | fi |
a106dabe | 17892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
771c1b50 | 17893 | fi |
a106dabe | 17894 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
771c1b50 | 17895 | fi |
a106dabe | 17896 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
17897 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
771c1b50 | 17898 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
17899 | ||
17900 | cat >>confdefs.h <<_ACEOF | |
17901 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
17902 | _ACEOF | |
17903 | ||
17904 | ||
17905 | fi | |
17906 | ||
a106dabe | 17907 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
17908 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
771c1b50 | 17909 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
17910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17911 | else | |
17912 | cat >conftest.$ac_ext <<_ACEOF | |
17913 | /* confdefs.h. */ | |
17914 | _ACEOF | |
17915 | cat confdefs.h >>conftest.$ac_ext | |
17916 | cat >>conftest.$ac_ext <<_ACEOF | |
17917 | /* end confdefs.h. */ | |
17918 | $ac_includes_default | |
17919 | int | |
17920 | main () | |
17921 | { | |
17922 | static struct stat ac_aggr; | |
17923 | if (ac_aggr.st_rdev) | |
17924 | return 0; | |
17925 | ; | |
17926 | return 0; | |
17927 | } | |
17928 | _ACEOF | |
17929 | rm -f conftest.$ac_objext | |
a106dabe | 17930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17931 | (eval $ac_compile) 2>conftest.er1 | |
771c1b50 | 17932 | ac_status=$? |
17933 | grep -v '^ *+' conftest.er1 >conftest.err | |
17934 | rm -f conftest.er1 | |
17935 | cat conftest.err >&5 | |
17936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17937 | (exit $ac_status); } && | |
c0e8efbe | 17938 | { ac_try='test -z "$ac_c_werror_flag" |
17939 | || test ! -s conftest.err' | |
a106dabe | 17940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17941 | (eval $ac_try) 2>&5 | |
771c1b50 | 17942 | ac_status=$? |
17943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17944 | (exit $ac_status); }; } && | |
17945 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 17946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17947 | (eval $ac_try) 2>&5 | |
771c1b50 | 17948 | ac_status=$? |
17949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17950 | (exit $ac_status); }; }; then | |
17951 | ac_cv_member_struct_stat_st_rdev=yes | |
17952 | else | |
17953 | echo "$as_me: failed program was:" >&5 | |
17954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17955 | ||
a106dabe | 17956 | cat >conftest.$ac_ext <<_ACEOF |
771c1b50 | 17957 | /* confdefs.h. */ |
17958 | _ACEOF | |
17959 | cat confdefs.h >>conftest.$ac_ext | |
17960 | cat >>conftest.$ac_ext <<_ACEOF | |
17961 | /* end confdefs.h. */ | |
17962 | $ac_includes_default | |
17963 | int | |
17964 | main () | |
17965 | { | |
17966 | static struct stat ac_aggr; | |
17967 | if (sizeof ac_aggr.st_rdev) | |
17968 | return 0; | |
17969 | ; | |
17970 | return 0; | |
17971 | } | |
17972 | _ACEOF | |
17973 | rm -f conftest.$ac_objext | |
a106dabe | 17974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17975 | (eval $ac_compile) 2>conftest.er1 | |
771c1b50 | 17976 | ac_status=$? |
17977 | grep -v '^ *+' conftest.er1 >conftest.err | |
17978 | rm -f conftest.er1 | |
17979 | cat conftest.err >&5 | |
17980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17981 | (exit $ac_status); } && | |
c0e8efbe | 17982 | { ac_try='test -z "$ac_c_werror_flag" |
17983 | || test ! -s conftest.err' | |
a106dabe | 17984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17985 | (eval $ac_try) 2>&5 | |
771c1b50 | 17986 | ac_status=$? |
17987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17988 | (exit $ac_status); }; } && | |
17989 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 17990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17991 | (eval $ac_try) 2>&5 | |
771c1b50 | 17992 | ac_status=$? |
17993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17994 | (exit $ac_status); }; }; then | |
17995 | ac_cv_member_struct_stat_st_rdev=yes | |
17996 | else | |
17997 | echo "$as_me: failed program was:" >&5 | |
17998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17999 | ||
a106dabe | 18000 | ac_cv_member_struct_stat_st_rdev=no |
771c1b50 | 18001 | fi |
a106dabe | 18002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
771c1b50 | 18003 | fi |
a106dabe | 18004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
771c1b50 | 18005 | fi |
a106dabe | 18006 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
18007 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 | |
771c1b50 | 18008 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
18009 | ||
18010 | cat >>confdefs.h <<_ACEOF | |
18011 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
18012 | _ACEOF | |
18013 | ||
18014 | ||
18015 | fi | |
18016 | ||
18017 | ||
90973b19 | 18018 | # Check for library functions. |
18019 | ||
18020 | ||
7dfba97b | 18021 | |
5e7b82bb | 18022 | |
c436f700 | 18023 | |
a54b1ce7 | 18024 | |
18025 | ||
14c3c235 | 18026 | |
18027 | for ac_func in getrusage times mkstemp strtof strtold snprintf ftruncate chsize | |
90973b19 | 18028 | do |
18029 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a106dabe | 18030 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18031 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18032 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4ee9c684 | 18033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18034 | else | |
b52ee437 | 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 | |
4dd3972f | 18041 | /* confdefs.h. */ |
18042 | _ACEOF | |
18043 | cat confdefs.h >>conftest.$ac_ext | |
18044 | cat >>conftest.$ac_ext <<_ACEOF | |
18045 | /* end confdefs.h. */ | |
18046 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18047 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18048 | #define $ac_func innocuous_$ac_func | |
18049 | ||
18050 | /* System header to define __stub macros and hopefully few prototypes, | |
18051 | which can conflict with char $ac_func (); below. | |
18052 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18053 | <limits.h> exists even on freestanding compilers. */ | |
18054 | ||
18055 | #ifdef __STDC__ | |
18056 | # include <limits.h> | |
18057 | #else | |
18058 | # include <assert.h> | |
18059 | #endif | |
18060 | ||
18061 | #undef $ac_func | |
18062 | ||
a106dabe | 18063 | /* Override any gcc2 internal prototype to avoid an error. */ |
4dd3972f | 18064 | #ifdef __cplusplus |
18065 | extern "C" | |
a106dabe | 18066 | { |
4dd3972f | 18067 | #endif |
a106dabe | 18068 | /* We use char because int might match the return type of a gcc2 |
18069 | builtin and then its argument prototype would still apply. */ | |
4dd3972f | 18070 | char $ac_func (); |
18071 | /* The GNU C library defines this for functions which it implements | |
18072 | to always fail with ENOSYS. Some functions are actually named | |
18073 | something starting with __ and the normal name is an alias. */ | |
a106dabe | 18074 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
4dd3972f | 18075 | choke me |
a106dabe | 18076 | #else |
18077 | char (*f) () = $ac_func; | |
18078 | #endif | |
18079 | #ifdef __cplusplus | |
18080 | } | |
4dd3972f | 18081 | #endif |
18082 | ||
18083 | int | |
18084 | main () | |
18085 | { | |
a106dabe | 18086 | return f != $ac_func; |
4dd3972f | 18087 | ; |
18088 | return 0; | |
18089 | } | |
18090 | _ACEOF | |
18091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 18092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18093 | (eval $ac_link) 2>conftest.er1 | |
4dd3972f | 18094 | ac_status=$? |
18095 | grep -v '^ *+' conftest.er1 >conftest.err | |
18096 | rm -f conftest.er1 | |
18097 | cat conftest.err >&5 | |
18098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18099 | (exit $ac_status); } && | |
c0e8efbe | 18100 | { ac_try='test -z "$ac_c_werror_flag" |
18101 | || test ! -s conftest.err' | |
a106dabe | 18102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18103 | (eval $ac_try) 2>&5 | |
4dd3972f | 18104 | ac_status=$? |
18105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18106 | (exit $ac_status); }; } && | |
18107 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 18108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18109 | (eval $ac_try) 2>&5 | |
4dd3972f | 18110 | ac_status=$? |
18111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18112 | (exit $ac_status); }; }; then | |
18113 | eval "$as_ac_var=yes" | |
18114 | else | |
18115 | echo "$as_me: failed program was:" >&5 | |
18116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18117 | ||
a106dabe | 18118 | eval "$as_ac_var=no" |
6745c9de | 18119 | fi |
a106dabe | 18120 | rm -f conftest.err conftest.$ac_objext \ |
4dd3972f | 18121 | conftest$ac_exeext conftest.$ac_ext |
18122 | fi | |
a106dabe | 18123 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18124 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4dd3972f | 18125 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18126 | cat >>confdefs.h <<_ACEOF | |
18127 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18128 | _ACEOF | |
18129 | ||
18130 | fi | |
18131 | done | |
18132 | ||
18133 | ||
18134 | ||
18135 | ||
18136 | ||
18137 | ||
18138 | ||
18139 | ||
18140 | ||
18141 | for ac_func in chdir strerror getlogin gethostname kill link symlink perror | |
18142 | do | |
18143 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a106dabe | 18144 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18145 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18146 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4dd3972f | 18147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18148 | else | |
b52ee437 | 18149 | if test x$gcc_no_link = xyes; then |
18150 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18151 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18152 | { (exit 1); exit 1; }; } | |
18153 | fi | |
18154 | cat >conftest.$ac_ext <<_ACEOF | |
90973b19 | 18155 | /* confdefs.h. */ |
18156 | _ACEOF | |
18157 | cat confdefs.h >>conftest.$ac_ext | |
18158 | cat >>conftest.$ac_ext <<_ACEOF | |
18159 | /* end confdefs.h. */ | |
18160 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18161 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18162 | #define $ac_func innocuous_$ac_func | |
4ee9c684 | 18163 | |
90973b19 | 18164 | /* System header to define __stub macros and hopefully few prototypes, |
18165 | which can conflict with char $ac_func (); below. | |
18166 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18167 | <limits.h> exists even on freestanding compilers. */ | |
4ee9c684 | 18168 | |
90973b19 | 18169 | #ifdef __STDC__ |
18170 | # include <limits.h> | |
18171 | #else | |
18172 | # include <assert.h> | |
18173 | #endif | |
4ee9c684 | 18174 | |
90973b19 | 18175 | #undef $ac_func |
18176 | ||
a106dabe | 18177 | /* Override any gcc2 internal prototype to avoid an error. */ |
90973b19 | 18178 | #ifdef __cplusplus |
18179 | extern "C" | |
a106dabe | 18180 | { |
90973b19 | 18181 | #endif |
a106dabe | 18182 | /* We use char because int might match the return type of a gcc2 |
18183 | builtin and then its argument prototype would still apply. */ | |
90973b19 | 18184 | char $ac_func (); |
18185 | /* The GNU C library defines this for functions which it implements | |
18186 | to always fail with ENOSYS. Some functions are actually named | |
18187 | something starting with __ and the normal name is an alias. */ | |
a106dabe | 18188 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
90973b19 | 18189 | choke me |
a106dabe | 18190 | #else |
18191 | char (*f) () = $ac_func; | |
18192 | #endif | |
18193 | #ifdef __cplusplus | |
18194 | } | |
90973b19 | 18195 | #endif |
18196 | ||
18197 | int | |
18198 | main () | |
18199 | { | |
a106dabe | 18200 | return f != $ac_func; |
90973b19 | 18201 | ; |
18202 | return 0; | |
18203 | } | |
18204 | _ACEOF | |
18205 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 18206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18207 | (eval $ac_link) 2>conftest.er1 | |
90973b19 | 18208 | ac_status=$? |
18209 | grep -v '^ *+' conftest.er1 >conftest.err | |
18210 | rm -f conftest.er1 | |
18211 | cat conftest.err >&5 | |
18212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18213 | (exit $ac_status); } && | |
c0e8efbe | 18214 | { ac_try='test -z "$ac_c_werror_flag" |
18215 | || test ! -s conftest.err' | |
a106dabe | 18216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18217 | (eval $ac_try) 2>&5 | |
4dd3972f | 18218 | ac_status=$? |
18219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18220 | (exit $ac_status); }; } && | |
18221 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 18222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18223 | (eval $ac_try) 2>&5 | |
4dd3972f | 18224 | ac_status=$? |
18225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18226 | (exit $ac_status); }; }; then | |
18227 | eval "$as_ac_var=yes" | |
18228 | else | |
18229 | echo "$as_me: failed program was:" >&5 | |
18230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18231 | ||
a106dabe | 18232 | eval "$as_ac_var=no" |
4dd3972f | 18233 | fi |
a106dabe | 18234 | rm -f conftest.err conftest.$ac_objext \ |
4dd3972f | 18235 | conftest$ac_exeext conftest.$ac_ext |
18236 | fi | |
a106dabe | 18237 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18238 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4dd3972f | 18239 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18240 | cat >>confdefs.h <<_ACEOF | |
18241 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18242 | _ACEOF | |
18243 | ||
18244 | fi | |
18245 | done | |
18246 | ||
18247 | ||
18248 | ||
f2c0a16d | 18249 | |
247981ce | 18250 | |
18251 | ||
b902b078 | 18252 | |
c7347b39 | 18253 | |
d2fc5bb1 | 18254 | |
18255 | ||
18256 | ||
18257 | for ac_func in sleep time ttyname signal alarm ctime clock access fork execl | |
18258 | do | |
18259 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a106dabe | 18260 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18261 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18262 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
d2fc5bb1 | 18263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18264 | else | |
18265 | if test x$gcc_no_link = xyes; then | |
18266 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18267 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18268 | { (exit 1); exit 1; }; } | |
18269 | fi | |
18270 | cat >conftest.$ac_ext <<_ACEOF | |
18271 | /* confdefs.h. */ | |
18272 | _ACEOF | |
18273 | cat confdefs.h >>conftest.$ac_ext | |
18274 | cat >>conftest.$ac_ext <<_ACEOF | |
18275 | /* end confdefs.h. */ | |
18276 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18277 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18278 | #define $ac_func innocuous_$ac_func | |
18279 | ||
18280 | /* System header to define __stub macros and hopefully few prototypes, | |
18281 | which can conflict with char $ac_func (); below. | |
18282 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18283 | <limits.h> exists even on freestanding compilers. */ | |
18284 | ||
18285 | #ifdef __STDC__ | |
18286 | # include <limits.h> | |
18287 | #else | |
18288 | # include <assert.h> | |
18289 | #endif | |
18290 | ||
18291 | #undef $ac_func | |
18292 | ||
a106dabe | 18293 | /* Override any gcc2 internal prototype to avoid an error. */ |
d2fc5bb1 | 18294 | #ifdef __cplusplus |
18295 | extern "C" | |
a106dabe | 18296 | { |
d2fc5bb1 | 18297 | #endif |
a106dabe | 18298 | /* We use char because int might match the return type of a gcc2 |
18299 | builtin and then its argument prototype would still apply. */ | |
d2fc5bb1 | 18300 | char $ac_func (); |
18301 | /* The GNU C library defines this for functions which it implements | |
18302 | to always fail with ENOSYS. Some functions are actually named | |
18303 | something starting with __ and the normal name is an alias. */ | |
a106dabe | 18304 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
d2fc5bb1 | 18305 | choke me |
a106dabe | 18306 | #else |
18307 | char (*f) () = $ac_func; | |
18308 | #endif | |
18309 | #ifdef __cplusplus | |
18310 | } | |
d2fc5bb1 | 18311 | #endif |
18312 | ||
18313 | int | |
18314 | main () | |
18315 | { | |
a106dabe | 18316 | return f != $ac_func; |
d2fc5bb1 | 18317 | ; |
18318 | return 0; | |
18319 | } | |
18320 | _ACEOF | |
18321 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 18322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18323 | (eval $ac_link) 2>conftest.er1 | |
d2fc5bb1 | 18324 | ac_status=$? |
18325 | grep -v '^ *+' conftest.er1 >conftest.err | |
18326 | rm -f conftest.er1 | |
18327 | cat conftest.err >&5 | |
18328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18329 | (exit $ac_status); } && | |
c0e8efbe | 18330 | { ac_try='test -z "$ac_c_werror_flag" |
18331 | || test ! -s conftest.err' | |
a106dabe | 18332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18333 | (eval $ac_try) 2>&5 | |
d2fc5bb1 | 18334 | ac_status=$? |
18335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18336 | (exit $ac_status); }; } && | |
18337 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 18338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18339 | (eval $ac_try) 2>&5 | |
d2fc5bb1 | 18340 | ac_status=$? |
18341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18342 | (exit $ac_status); }; }; then | |
18343 | eval "$as_ac_var=yes" | |
18344 | else | |
18345 | echo "$as_me: failed program was:" >&5 | |
18346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18347 | ||
a106dabe | 18348 | eval "$as_ac_var=no" |
d2fc5bb1 | 18349 | fi |
a106dabe | 18350 | rm -f conftest.err conftest.$ac_objext \ |
d2fc5bb1 | 18351 | conftest$ac_exeext conftest.$ac_ext |
18352 | fi | |
a106dabe | 18353 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18354 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
d2fc5bb1 | 18355 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18356 | cat >>confdefs.h <<_ACEOF | |
18357 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18358 | _ACEOF | |
18359 | ||
18360 | fi | |
18361 | done | |
18362 | ||
18363 | ||
16af3de2 | 18364 | |
b7fcd3f9 | 18365 | |
e93cd318 | 18366 | |
99798ba4 | 18367 | |
18368 | ||
18369 | ||
18370 | ||
18371 | ||
18372 | for ac_func in wait setmode execvp pipe dup2 close fdopen strcasestr getrlimit | |
18373 | do | |
18374 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a106dabe | 18375 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18376 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18377 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
c634bedf | 18378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18379 | else | |
18380 | if test x$gcc_no_link = xyes; then | |
18381 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18382 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18383 | { (exit 1); exit 1; }; } | |
18384 | fi | |
18385 | cat >conftest.$ac_ext <<_ACEOF | |
18386 | /* confdefs.h. */ | |
18387 | _ACEOF | |
18388 | cat confdefs.h >>conftest.$ac_ext | |
18389 | cat >>conftest.$ac_ext <<_ACEOF | |
18390 | /* end confdefs.h. */ | |
18391 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18392 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18393 | #define $ac_func innocuous_$ac_func | |
18394 | ||
18395 | /* System header to define __stub macros and hopefully few prototypes, | |
18396 | which can conflict with char $ac_func (); below. | |
18397 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18398 | <limits.h> exists even on freestanding compilers. */ | |
18399 | ||
18400 | #ifdef __STDC__ | |
18401 | # include <limits.h> | |
18402 | #else | |
18403 | # include <assert.h> | |
18404 | #endif | |
18405 | ||
18406 | #undef $ac_func | |
18407 | ||
a106dabe | 18408 | /* Override any gcc2 internal prototype to avoid an error. */ |
c634bedf | 18409 | #ifdef __cplusplus |
18410 | extern "C" | |
a106dabe | 18411 | { |
c634bedf | 18412 | #endif |
a106dabe | 18413 | /* We use char because int might match the return type of a gcc2 |
18414 | builtin and then its argument prototype would still apply. */ | |
c634bedf | 18415 | char $ac_func (); |
18416 | /* The GNU C library defines this for functions which it implements | |
18417 | to always fail with ENOSYS. Some functions are actually named | |
18418 | something starting with __ and the normal name is an alias. */ | |
a106dabe | 18419 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
c634bedf | 18420 | choke me |
a106dabe | 18421 | #else |
18422 | char (*f) () = $ac_func; | |
18423 | #endif | |
18424 | #ifdef __cplusplus | |
18425 | } | |
c634bedf | 18426 | #endif |
18427 | ||
18428 | int | |
18429 | main () | |
18430 | { | |
a106dabe | 18431 | return f != $ac_func; |
c634bedf | 18432 | ; |
18433 | return 0; | |
18434 | } | |
18435 | _ACEOF | |
18436 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 18437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18438 | (eval $ac_link) 2>conftest.er1 | |
c634bedf | 18439 | ac_status=$? |
18440 | grep -v '^ *+' conftest.er1 >conftest.err | |
18441 | rm -f conftest.er1 | |
18442 | cat conftest.err >&5 | |
18443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18444 | (exit $ac_status); } && | |
c0e8efbe | 18445 | { ac_try='test -z "$ac_c_werror_flag" |
18446 | || test ! -s conftest.err' | |
a106dabe | 18447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18448 | (eval $ac_try) 2>&5 | |
c634bedf | 18449 | ac_status=$? |
18450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18451 | (exit $ac_status); }; } && | |
18452 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 18453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18454 | (eval $ac_try) 2>&5 | |
c634bedf | 18455 | ac_status=$? |
18456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18457 | (exit $ac_status); }; }; then | |
18458 | eval "$as_ac_var=yes" | |
18459 | else | |
18460 | echo "$as_me: failed program was:" >&5 | |
18461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18462 | ||
a106dabe | 18463 | eval "$as_ac_var=no" |
c634bedf | 18464 | fi |
a106dabe | 18465 | rm -f conftest.err conftest.$ac_objext \ |
c634bedf | 18466 | conftest$ac_exeext conftest.$ac_ext |
18467 | fi | |
a106dabe | 18468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18469 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
c634bedf | 18470 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18471 | cat >>confdefs.h <<_ACEOF | |
18472 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18473 | _ACEOF | |
18474 | ||
18475 | fi | |
18476 | done | |
18477 | ||
18478 | ||
74b918e9 | 18479 | |
18480 | ||
18481 | ||
c0e8efbe | 18482 | |
5a037dbd | 18483 | |
e0582811 | 18484 | |
18485 | ||
18486 | for ac_func in gettimeofday stat fstat lstat getpwuid vsnprintf dup getcwd | |
c634bedf | 18487 | do |
18488 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a106dabe | 18489 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18490 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18491 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
99798ba4 | 18492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18493 | else | |
18494 | if test x$gcc_no_link = xyes; then | |
18495 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18496 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18497 | { (exit 1); exit 1; }; } | |
18498 | fi | |
18499 | cat >conftest.$ac_ext <<_ACEOF | |
18500 | /* confdefs.h. */ | |
18501 | _ACEOF | |
18502 | cat confdefs.h >>conftest.$ac_ext | |
18503 | cat >>conftest.$ac_ext <<_ACEOF | |
18504 | /* end confdefs.h. */ | |
18505 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18506 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18507 | #define $ac_func innocuous_$ac_func | |
18508 | ||
18509 | /* System header to define __stub macros and hopefully few prototypes, | |
18510 | which can conflict with char $ac_func (); below. | |
18511 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18512 | <limits.h> exists even on freestanding compilers. */ | |
18513 | ||
18514 | #ifdef __STDC__ | |
18515 | # include <limits.h> | |
18516 | #else | |
18517 | # include <assert.h> | |
18518 | #endif | |
18519 | ||
18520 | #undef $ac_func | |
18521 | ||
a106dabe | 18522 | /* Override any gcc2 internal prototype to avoid an error. */ |
99798ba4 | 18523 | #ifdef __cplusplus |
18524 | extern "C" | |
a106dabe | 18525 | { |
99798ba4 | 18526 | #endif |
a106dabe | 18527 | /* We use char because int might match the return type of a gcc2 |
18528 | builtin and then its argument prototype would still apply. */ | |
99798ba4 | 18529 | char $ac_func (); |
18530 | /* The GNU C library defines this for functions which it implements | |
18531 | to always fail with ENOSYS. Some functions are actually named | |
18532 | something starting with __ and the normal name is an alias. */ | |
a106dabe | 18533 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
99798ba4 | 18534 | choke me |
a106dabe | 18535 | #else |
18536 | char (*f) () = $ac_func; | |
18537 | #endif | |
18538 | #ifdef __cplusplus | |
18539 | } | |
99798ba4 | 18540 | #endif |
18541 | ||
18542 | int | |
18543 | main () | |
18544 | { | |
a106dabe | 18545 | return f != $ac_func; |
99798ba4 | 18546 | ; |
18547 | return 0; | |
18548 | } | |
18549 | _ACEOF | |
18550 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 18551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18552 | (eval $ac_link) 2>conftest.er1 | |
99798ba4 | 18553 | ac_status=$? |
18554 | grep -v '^ *+' conftest.er1 >conftest.err | |
18555 | rm -f conftest.er1 | |
18556 | cat conftest.err >&5 | |
18557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18558 | (exit $ac_status); } && | |
c0e8efbe | 18559 | { ac_try='test -z "$ac_c_werror_flag" |
18560 | || test ! -s conftest.err' | |
a106dabe | 18561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18562 | (eval $ac_try) 2>&5 | |
99798ba4 | 18563 | ac_status=$? |
18564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18565 | (exit $ac_status); }; } && | |
18566 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 18567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18568 | (eval $ac_try) 2>&5 | |
99798ba4 | 18569 | ac_status=$? |
18570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18571 | (exit $ac_status); }; }; then | |
18572 | eval "$as_ac_var=yes" | |
18573 | else | |
18574 | echo "$as_me: failed program was:" >&5 | |
18575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18576 | ||
a106dabe | 18577 | eval "$as_ac_var=no" |
99798ba4 | 18578 | fi |
a106dabe | 18579 | rm -f conftest.err conftest.$ac_objext \ |
99798ba4 | 18580 | conftest$ac_exeext conftest.$ac_ext |
18581 | fi | |
a106dabe | 18582 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18583 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
99798ba4 | 18584 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18585 | cat >>confdefs.h <<_ACEOF | |
18586 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18587 | _ACEOF | |
18588 | ||
18589 | fi | |
18590 | done | |
18591 | ||
18592 | ||
18593 | # Check for glibc backtrace functions | |
18594 | ||
18595 | ||
18596 | for ac_func in backtrace backtrace_symbols | |
4dd3972f | 18597 | do |
18598 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a106dabe | 18599 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18600 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18601 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4dd3972f | 18602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18603 | else | |
b52ee437 | 18604 | if test x$gcc_no_link = xyes; then |
18605 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18606 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18607 | { (exit 1); exit 1; }; } | |
18608 | fi | |
18609 | cat >conftest.$ac_ext <<_ACEOF | |
4dd3972f | 18610 | /* confdefs.h. */ |
18611 | _ACEOF | |
18612 | cat confdefs.h >>conftest.$ac_ext | |
18613 | cat >>conftest.$ac_ext <<_ACEOF | |
18614 | /* end confdefs.h. */ | |
18615 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18616 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18617 | #define $ac_func innocuous_$ac_func | |
18618 | ||
18619 | /* System header to define __stub macros and hopefully few prototypes, | |
18620 | which can conflict with char $ac_func (); below. | |
18621 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18622 | <limits.h> exists even on freestanding compilers. */ | |
18623 | ||
18624 | #ifdef __STDC__ | |
18625 | # include <limits.h> | |
18626 | #else | |
18627 | # include <assert.h> | |
18628 | #endif | |
18629 | ||
18630 | #undef $ac_func | |
18631 | ||
a106dabe | 18632 | /* Override any gcc2 internal prototype to avoid an error. */ |
4dd3972f | 18633 | #ifdef __cplusplus |
18634 | extern "C" | |
a106dabe | 18635 | { |
4dd3972f | 18636 | #endif |
a106dabe | 18637 | /* We use char because int might match the return type of a gcc2 |
18638 | builtin and then its argument prototype would still apply. */ | |
4dd3972f | 18639 | char $ac_func (); |
18640 | /* The GNU C library defines this for functions which it implements | |
18641 | to always fail with ENOSYS. Some functions are actually named | |
18642 | something starting with __ and the normal name is an alias. */ | |
a106dabe | 18643 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
4dd3972f | 18644 | choke me |
a106dabe | 18645 | #else |
18646 | char (*f) () = $ac_func; | |
18647 | #endif | |
18648 | #ifdef __cplusplus | |
18649 | } | |
4dd3972f | 18650 | #endif |
18651 | ||
18652 | int | |
18653 | main () | |
18654 | { | |
a106dabe | 18655 | return f != $ac_func; |
4dd3972f | 18656 | ; |
18657 | return 0; | |
18658 | } | |
18659 | _ACEOF | |
18660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 18661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18662 | (eval $ac_link) 2>conftest.er1 | |
4dd3972f | 18663 | ac_status=$? |
18664 | grep -v '^ *+' conftest.er1 >conftest.err | |
18665 | rm -f conftest.er1 | |
18666 | cat conftest.err >&5 | |
18667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18668 | (exit $ac_status); } && | |
c0e8efbe | 18669 | { ac_try='test -z "$ac_c_werror_flag" |
18670 | || test ! -s conftest.err' | |
a106dabe | 18671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18672 | (eval $ac_try) 2>&5 | |
90973b19 | 18673 | ac_status=$? |
18674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18675 | (exit $ac_status); }; } && | |
18676 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 18677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18678 | (eval $ac_try) 2>&5 | |
90973b19 | 18679 | ac_status=$? |
18680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18681 | (exit $ac_status); }; }; then | |
18682 | eval "$as_ac_var=yes" | |
4ee9c684 | 18683 | else |
90973b19 | 18684 | echo "$as_me: failed program was:" >&5 |
18685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18686 | ||
a106dabe | 18687 | eval "$as_ac_var=no" |
90973b19 | 18688 | fi |
a106dabe | 18689 | rm -f conftest.err conftest.$ac_objext \ |
90973b19 | 18690 | conftest$ac_exeext conftest.$ac_ext |
4ee9c684 | 18691 | fi |
a106dabe | 18692 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18693 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
90973b19 | 18694 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18695 | cat >>confdefs.h <<_ACEOF | |
18696 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18697 | _ACEOF | |
4ee9c684 | 18698 | |
4ee9c684 | 18699 | fi |
90973b19 | 18700 | done |
4ee9c684 | 18701 | |
4ee9c684 | 18702 | |
16af3de2 | 18703 | # Check for types |
a106dabe | 18704 | echo "$as_me:$LINENO: checking for intptr_t" >&5 |
18705 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 | |
16af3de2 | 18706 | if test "${ac_cv_type_intptr_t+set}" = set; then |
18707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18708 | else | |
18709 | cat >conftest.$ac_ext <<_ACEOF | |
18710 | /* confdefs.h. */ | |
18711 | _ACEOF | |
18712 | cat confdefs.h >>conftest.$ac_ext | |
18713 | cat >>conftest.$ac_ext <<_ACEOF | |
18714 | /* end confdefs.h. */ | |
18715 | $ac_includes_default | |
18716 | int | |
18717 | main () | |
18718 | { | |
a106dabe | 18719 | if ((intptr_t *) 0) |
16af3de2 | 18720 | return 0; |
a106dabe | 18721 | if (sizeof (intptr_t)) |
16af3de2 | 18722 | return 0; |
18723 | ; | |
18724 | return 0; | |
18725 | } | |
18726 | _ACEOF | |
18727 | rm -f conftest.$ac_objext | |
a106dabe | 18728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18729 | (eval $ac_compile) 2>conftest.er1 | |
16af3de2 | 18730 | ac_status=$? |
18731 | grep -v '^ *+' conftest.er1 >conftest.err | |
18732 | rm -f conftest.er1 | |
18733 | cat conftest.err >&5 | |
18734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18735 | (exit $ac_status); } && | |
c0e8efbe | 18736 | { ac_try='test -z "$ac_c_werror_flag" |
18737 | || test ! -s conftest.err' | |
a106dabe | 18738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18739 | (eval $ac_try) 2>&5 | |
16af3de2 | 18740 | ac_status=$? |
18741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18742 | (exit $ac_status); }; } && | |
18743 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 18744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18745 | (eval $ac_try) 2>&5 | |
16af3de2 | 18746 | ac_status=$? |
18747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18748 | (exit $ac_status); }; }; then | |
18749 | ac_cv_type_intptr_t=yes | |
18750 | else | |
18751 | echo "$as_me: failed program was:" >&5 | |
18752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18753 | ||
a106dabe | 18754 | ac_cv_type_intptr_t=no |
16af3de2 | 18755 | fi |
a106dabe | 18756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16af3de2 | 18757 | fi |
a106dabe | 18758 | echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
18759 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 | |
16af3de2 | 18760 | if test $ac_cv_type_intptr_t = yes; then |
18761 | ||
18762 | cat >>confdefs.h <<_ACEOF | |
18763 | #define HAVE_INTPTR_T 1 | |
18764 | _ACEOF | |
18765 | ||
18766 | ||
18767 | fi | |
18768 | ||
18769 | ||
adad6c74 | 18770 | # Check libc for getgid, getpid, getuid |
a106dabe | 18771 | echo "$as_me:$LINENO: checking for getgid in -lc" >&5 |
18772 | echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6 | |
adad6c74 | 18773 | if test "${ac_cv_lib_c_getgid+set}" = set; then |
18774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18775 | else | |
18776 | ac_check_lib_save_LIBS=$LIBS | |
18777 | LIBS="-lc $LIBS" | |
b52ee437 | 18778 | if test x$gcc_no_link = xyes; then |
18779 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18780 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18781 | { (exit 1); exit 1; }; } | |
18782 | fi | |
adad6c74 | 18783 | cat >conftest.$ac_ext <<_ACEOF |
18784 | /* confdefs.h. */ | |
18785 | _ACEOF | |
18786 | cat confdefs.h >>conftest.$ac_ext | |
18787 | cat >>conftest.$ac_ext <<_ACEOF | |
18788 | /* end confdefs.h. */ | |
18789 | ||
a106dabe | 18790 | /* Override any gcc2 internal prototype to avoid an error. */ |
adad6c74 | 18791 | #ifdef __cplusplus |
18792 | extern "C" | |
18793 | #endif | |
a106dabe | 18794 | /* We use char because int might match the return type of a gcc2 |
18795 | builtin and then its argument prototype would still apply. */ | |
adad6c74 | 18796 | char getgid (); |
18797 | int | |
18798 | main () | |
18799 | { | |
a106dabe | 18800 | getgid (); |
adad6c74 | 18801 | ; |
18802 | return 0; | |
18803 | } | |
18804 | _ACEOF | |
18805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 18806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18807 | (eval $ac_link) 2>conftest.er1 | |
adad6c74 | 18808 | ac_status=$? |
18809 | grep -v '^ *+' conftest.er1 >conftest.err | |
18810 | rm -f conftest.er1 | |
18811 | cat conftest.err >&5 | |
18812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18813 | (exit $ac_status); } && | |
c0e8efbe | 18814 | { ac_try='test -z "$ac_c_werror_flag" |
18815 | || test ! -s conftest.err' | |
a106dabe | 18816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18817 | (eval $ac_try) 2>&5 | |
adad6c74 | 18818 | ac_status=$? |
18819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18820 | (exit $ac_status); }; } && | |
18821 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 18822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18823 | (eval $ac_try) 2>&5 | |
adad6c74 | 18824 | ac_status=$? |
18825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18826 | (exit $ac_status); }; }; then | |
18827 | ac_cv_lib_c_getgid=yes | |
18828 | else | |
18829 | echo "$as_me: failed program was:" >&5 | |
18830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18831 | ||
a106dabe | 18832 | ac_cv_lib_c_getgid=no |
adad6c74 | 18833 | fi |
a106dabe | 18834 | rm -f conftest.err conftest.$ac_objext \ |
adad6c74 | 18835 | conftest$ac_exeext conftest.$ac_ext |
18836 | LIBS=$ac_check_lib_save_LIBS | |
18837 | fi | |
a106dabe | 18838 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5 |
18839 | echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6 | |
adad6c74 | 18840 | if test $ac_cv_lib_c_getgid = yes; then |
18841 | ||
18842 | cat >>confdefs.h <<\_ACEOF | |
18843 | #define HAVE_GETGID 1 | |
18844 | _ACEOF | |
18845 | ||
18846 | fi | |
18847 | ||
a106dabe | 18848 | echo "$as_me:$LINENO: checking for getpid in -lc" >&5 |
18849 | echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6 | |
adad6c74 | 18850 | if test "${ac_cv_lib_c_getpid+set}" = set; then |
18851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18852 | else | |
18853 | ac_check_lib_save_LIBS=$LIBS | |
18854 | LIBS="-lc $LIBS" | |
b52ee437 | 18855 | if test x$gcc_no_link = xyes; then |
18856 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18857 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18858 | { (exit 1); exit 1; }; } | |
18859 | fi | |
adad6c74 | 18860 | cat >conftest.$ac_ext <<_ACEOF |
18861 | /* confdefs.h. */ | |
18862 | _ACEOF | |
18863 | cat confdefs.h >>conftest.$ac_ext | |
18864 | cat >>conftest.$ac_ext <<_ACEOF | |
18865 | /* end confdefs.h. */ | |
18866 | ||
a106dabe | 18867 | /* Override any gcc2 internal prototype to avoid an error. */ |
adad6c74 | 18868 | #ifdef __cplusplus |
18869 | extern "C" | |
18870 | #endif | |
a106dabe | 18871 | /* We use char because int might match the return type of a gcc2 |
18872 | builtin and then its argument prototype would still apply. */ | |
adad6c74 | 18873 | char getpid (); |
18874 | int | |
18875 | main () | |
18876 | { | |
a106dabe | 18877 | getpid (); |
adad6c74 | 18878 | ; |
18879 | return 0; | |
18880 | } | |
18881 | _ACEOF | |
18882 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 18883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18884 | (eval $ac_link) 2>conftest.er1 | |
adad6c74 | 18885 | ac_status=$? |
18886 | grep -v '^ *+' conftest.er1 >conftest.err | |
18887 | rm -f conftest.er1 | |
18888 | cat conftest.err >&5 | |
18889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18890 | (exit $ac_status); } && | |
c0e8efbe | 18891 | { ac_try='test -z "$ac_c_werror_flag" |
18892 | || test ! -s conftest.err' | |
a106dabe | 18893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18894 | (eval $ac_try) 2>&5 | |
adad6c74 | 18895 | ac_status=$? |
18896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18897 | (exit $ac_status); }; } && | |
18898 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 18899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18900 | (eval $ac_try) 2>&5 | |
adad6c74 | 18901 | ac_status=$? |
18902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18903 | (exit $ac_status); }; }; then | |
18904 | ac_cv_lib_c_getpid=yes | |
18905 | else | |
18906 | echo "$as_me: failed program was:" >&5 | |
18907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18908 | ||
a106dabe | 18909 | ac_cv_lib_c_getpid=no |
adad6c74 | 18910 | fi |
a106dabe | 18911 | rm -f conftest.err conftest.$ac_objext \ |
adad6c74 | 18912 | conftest$ac_exeext conftest.$ac_ext |
18913 | LIBS=$ac_check_lib_save_LIBS | |
18914 | fi | |
a106dabe | 18915 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5 |
18916 | echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6 | |
adad6c74 | 18917 | if test $ac_cv_lib_c_getpid = yes; then |
18918 | ||
18919 | cat >>confdefs.h <<\_ACEOF | |
18920 | #define HAVE_GETPID 1 | |
18921 | _ACEOF | |
18922 | ||
18923 | fi | |
18924 | ||
a106dabe | 18925 | echo "$as_me:$LINENO: checking for getppid in -lc" >&5 |
18926 | echo $ECHO_N "checking for getppid in -lc... $ECHO_C" >&6 | |
99798ba4 | 18927 | if test "${ac_cv_lib_c_getppid+set}" = set; then |
18928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18929 | else | |
18930 | ac_check_lib_save_LIBS=$LIBS | |
18931 | LIBS="-lc $LIBS" | |
18932 | if test x$gcc_no_link = xyes; then | |
18933 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18934 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18935 | { (exit 1); exit 1; }; } | |
18936 | fi | |
18937 | cat >conftest.$ac_ext <<_ACEOF | |
18938 | /* confdefs.h. */ | |
18939 | _ACEOF | |
18940 | cat confdefs.h >>conftest.$ac_ext | |
18941 | cat >>conftest.$ac_ext <<_ACEOF | |
18942 | /* end confdefs.h. */ | |
18943 | ||
a106dabe | 18944 | /* Override any gcc2 internal prototype to avoid an error. */ |
99798ba4 | 18945 | #ifdef __cplusplus |
18946 | extern "C" | |
18947 | #endif | |
a106dabe | 18948 | /* We use char because int might match the return type of a gcc2 |
18949 | builtin and then its argument prototype would still apply. */ | |
99798ba4 | 18950 | char getppid (); |
18951 | int | |
18952 | main () | |
18953 | { | |
a106dabe | 18954 | getppid (); |
99798ba4 | 18955 | ; |
18956 | return 0; | |
18957 | } | |
18958 | _ACEOF | |
18959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 18960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18961 | (eval $ac_link) 2>conftest.er1 | |
99798ba4 | 18962 | ac_status=$? |
18963 | grep -v '^ *+' conftest.er1 >conftest.err | |
18964 | rm -f conftest.er1 | |
18965 | cat conftest.err >&5 | |
18966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18967 | (exit $ac_status); } && | |
c0e8efbe | 18968 | { ac_try='test -z "$ac_c_werror_flag" |
18969 | || test ! -s conftest.err' | |
a106dabe | 18970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18971 | (eval $ac_try) 2>&5 | |
99798ba4 | 18972 | ac_status=$? |
18973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18974 | (exit $ac_status); }; } && | |
18975 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 18976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18977 | (eval $ac_try) 2>&5 | |
99798ba4 | 18978 | ac_status=$? |
18979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18980 | (exit $ac_status); }; }; then | |
18981 | ac_cv_lib_c_getppid=yes | |
18982 | else | |
18983 | echo "$as_me: failed program was:" >&5 | |
18984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18985 | ||
a106dabe | 18986 | ac_cv_lib_c_getppid=no |
99798ba4 | 18987 | fi |
a106dabe | 18988 | rm -f conftest.err conftest.$ac_objext \ |
99798ba4 | 18989 | conftest$ac_exeext conftest.$ac_ext |
18990 | LIBS=$ac_check_lib_save_LIBS | |
18991 | fi | |
a106dabe | 18992 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getppid" >&5 |
18993 | echo "${ECHO_T}$ac_cv_lib_c_getppid" >&6 | |
99798ba4 | 18994 | if test $ac_cv_lib_c_getppid = yes; then |
18995 | ||
18996 | cat >>confdefs.h <<\_ACEOF | |
18997 | #define HAVE_GETPPID 1 | |
18998 | _ACEOF | |
18999 | ||
19000 | fi | |
19001 | ||
a106dabe | 19002 | echo "$as_me:$LINENO: checking for getuid in -lc" >&5 |
19003 | echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6 | |
adad6c74 | 19004 | if test "${ac_cv_lib_c_getuid+set}" = set; then |
19005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19006 | else | |
19007 | ac_check_lib_save_LIBS=$LIBS | |
19008 | LIBS="-lc $LIBS" | |
b52ee437 | 19009 | if test x$gcc_no_link = xyes; then |
19010 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19011 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19012 | { (exit 1); exit 1; }; } | |
19013 | fi | |
adad6c74 | 19014 | cat >conftest.$ac_ext <<_ACEOF |
19015 | /* confdefs.h. */ | |
19016 | _ACEOF | |
19017 | cat confdefs.h >>conftest.$ac_ext | |
19018 | cat >>conftest.$ac_ext <<_ACEOF | |
19019 | /* end confdefs.h. */ | |
19020 | ||
a106dabe | 19021 | /* Override any gcc2 internal prototype to avoid an error. */ |
adad6c74 | 19022 | #ifdef __cplusplus |
19023 | extern "C" | |
19024 | #endif | |
a106dabe | 19025 | /* We use char because int might match the return type of a gcc2 |
19026 | builtin and then its argument prototype would still apply. */ | |
adad6c74 | 19027 | char getuid (); |
19028 | int | |
19029 | main () | |
19030 | { | |
a106dabe | 19031 | getuid (); |
adad6c74 | 19032 | ; |
19033 | return 0; | |
19034 | } | |
19035 | _ACEOF | |
19036 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 19037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19038 | (eval $ac_link) 2>conftest.er1 | |
adad6c74 | 19039 | ac_status=$? |
19040 | grep -v '^ *+' conftest.er1 >conftest.err | |
19041 | rm -f conftest.er1 | |
19042 | cat conftest.err >&5 | |
19043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19044 | (exit $ac_status); } && | |
c0e8efbe | 19045 | { ac_try='test -z "$ac_c_werror_flag" |
19046 | || test ! -s conftest.err' | |
a106dabe | 19047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19048 | (eval $ac_try) 2>&5 | |
adad6c74 | 19049 | ac_status=$? |
19050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19051 | (exit $ac_status); }; } && | |
19052 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 19053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19054 | (eval $ac_try) 2>&5 | |
adad6c74 | 19055 | ac_status=$? |
19056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19057 | (exit $ac_status); }; }; then | |
19058 | ac_cv_lib_c_getuid=yes | |
19059 | else | |
19060 | echo "$as_me: failed program was:" >&5 | |
19061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19062 | ||
a106dabe | 19063 | ac_cv_lib_c_getuid=no |
adad6c74 | 19064 | fi |
a106dabe | 19065 | rm -f conftest.err conftest.$ac_objext \ |
adad6c74 | 19066 | conftest$ac_exeext conftest.$ac_ext |
19067 | LIBS=$ac_check_lib_save_LIBS | |
19068 | fi | |
a106dabe | 19069 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5 |
19070 | echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6 | |
adad6c74 | 19071 | if test $ac_cv_lib_c_getuid = yes; then |
19072 | ||
19073 | cat >>confdefs.h <<\_ACEOF | |
19074 | #define HAVE_GETUID 1 | |
19075 | _ACEOF | |
19076 | ||
19077 | fi | |
19078 | ||
c0e8efbe | 19079 | echo "$as_me:$LINENO: checking for geteuid in -lc" >&5 |
19080 | echo $ECHO_N "checking for geteuid in -lc... $ECHO_C" >&6 | |
19081 | if test "${ac_cv_lib_c_geteuid+set}" = set; then | |
19082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19083 | else | |
19084 | ac_check_lib_save_LIBS=$LIBS | |
19085 | LIBS="-lc $LIBS" | |
19086 | if test x$gcc_no_link = xyes; then | |
19087 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19088 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19089 | { (exit 1); exit 1; }; } | |
19090 | fi | |
19091 | cat >conftest.$ac_ext <<_ACEOF | |
19092 | /* confdefs.h. */ | |
19093 | _ACEOF | |
19094 | cat confdefs.h >>conftest.$ac_ext | |
19095 | cat >>conftest.$ac_ext <<_ACEOF | |
19096 | /* end confdefs.h. */ | |
19097 | ||
19098 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19099 | #ifdef __cplusplus | |
19100 | extern "C" | |
19101 | #endif | |
19102 | /* We use char because int might match the return type of a gcc2 | |
19103 | builtin and then its argument prototype would still apply. */ | |
19104 | char geteuid (); | |
19105 | int | |
19106 | main () | |
19107 | { | |
19108 | geteuid (); | |
19109 | ; | |
19110 | return 0; | |
19111 | } | |
19112 | _ACEOF | |
19113 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19115 | (eval $ac_link) 2>conftest.er1 | |
19116 | ac_status=$? | |
19117 | grep -v '^ *+' conftest.er1 >conftest.err | |
19118 | rm -f conftest.er1 | |
19119 | cat conftest.err >&5 | |
19120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19121 | (exit $ac_status); } && | |
19122 | { ac_try='test -z "$ac_c_werror_flag" | |
19123 | || test ! -s conftest.err' | |
19124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19125 | (eval $ac_try) 2>&5 | |
19126 | ac_status=$? | |
19127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19128 | (exit $ac_status); }; } && | |
19129 | { ac_try='test -s conftest$ac_exeext' | |
19130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19131 | (eval $ac_try) 2>&5 | |
19132 | ac_status=$? | |
19133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19134 | (exit $ac_status); }; }; then | |
19135 | ac_cv_lib_c_geteuid=yes | |
19136 | else | |
19137 | echo "$as_me: failed program was:" >&5 | |
19138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19139 | ||
19140 | ac_cv_lib_c_geteuid=no | |
19141 | fi | |
19142 | rm -f conftest.err conftest.$ac_objext \ | |
19143 | conftest$ac_exeext conftest.$ac_ext | |
19144 | LIBS=$ac_check_lib_save_LIBS | |
19145 | fi | |
19146 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_geteuid" >&5 | |
19147 | echo "${ECHO_T}$ac_cv_lib_c_geteuid" >&6 | |
19148 | if test $ac_cv_lib_c_geteuid = yes; then | |
19149 | ||
19150 | cat >>confdefs.h <<\_ACEOF | |
19151 | #define HAVE_GETEUID 1 | |
19152 | _ACEOF | |
19153 | ||
19154 | fi | |
19155 | ||
adad6c74 | 19156 | |
8f838781 | 19157 | # Check for C99 (and other IEEE) math functions |
a106dabe | 19158 | echo "$as_me:$LINENO: checking for acosf in -lm" >&5 |
19159 | echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6 | |
8f838781 | 19160 | if test "${ac_cv_lib_m_acosf+set}" = set; then |
19161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19162 | else | |
19163 | ac_check_lib_save_LIBS=$LIBS | |
19164 | LIBS="-lm $LIBS" | |
b52ee437 | 19165 | if test x$gcc_no_link = xyes; then |
19166 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19167 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19168 | { (exit 1); exit 1; }; } | |
19169 | fi | |
8f838781 | 19170 | cat >conftest.$ac_ext <<_ACEOF |
19171 | /* confdefs.h. */ | |
19172 | _ACEOF | |
19173 | cat confdefs.h >>conftest.$ac_ext | |
19174 | cat >>conftest.$ac_ext <<_ACEOF | |
19175 | /* end confdefs.h. */ | |
19176 | ||
a106dabe | 19177 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 19178 | #ifdef __cplusplus |
19179 | extern "C" | |
19180 | #endif | |
a106dabe | 19181 | /* We use char because int might match the return type of a gcc2 |
19182 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 19183 | char acosf (); |
19184 | int | |
19185 | main () | |
19186 | { | |
a106dabe | 19187 | acosf (); |
8f838781 | 19188 | ; |
19189 | return 0; | |
19190 | } | |
19191 | _ACEOF | |
19192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 19193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19194 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 19195 | ac_status=$? |
19196 | grep -v '^ *+' conftest.er1 >conftest.err | |
19197 | rm -f conftest.er1 | |
19198 | cat conftest.err >&5 | |
19199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19200 | (exit $ac_status); } && | |
c0e8efbe | 19201 | { ac_try='test -z "$ac_c_werror_flag" |
19202 | || test ! -s conftest.err' | |
a106dabe | 19203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19204 | (eval $ac_try) 2>&5 | |
8f838781 | 19205 | ac_status=$? |
19206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19207 | (exit $ac_status); }; } && | |
19208 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 19209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19210 | (eval $ac_try) 2>&5 | |
8f838781 | 19211 | ac_status=$? |
19212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19213 | (exit $ac_status); }; }; then | |
19214 | ac_cv_lib_m_acosf=yes | |
19215 | else | |
19216 | echo "$as_me: failed program was:" >&5 | |
19217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19218 | ||
a106dabe | 19219 | ac_cv_lib_m_acosf=no |
8f838781 | 19220 | fi |
a106dabe | 19221 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 19222 | conftest$ac_exeext conftest.$ac_ext |
19223 | LIBS=$ac_check_lib_save_LIBS | |
19224 | fi | |
a106dabe | 19225 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5 |
19226 | echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6 | |
8f838781 | 19227 | if test $ac_cv_lib_m_acosf = yes; then |
19228 | ||
19229 | cat >>confdefs.h <<\_ACEOF | |
19230 | #define HAVE_ACOSF 1 | |
19231 | _ACEOF | |
19232 | ||
19233 | fi | |
19234 | ||
a106dabe | 19235 | echo "$as_me:$LINENO: checking for acos in -lm" >&5 |
19236 | echo $ECHO_N "checking for acos in -lm... $ECHO_C" >&6 | |
d213114b | 19237 | if test "${ac_cv_lib_m_acos+set}" = set; then |
b52ee437 | 19238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19239 | else | |
19240 | ac_check_lib_save_LIBS=$LIBS | |
19241 | LIBS="-lm $LIBS" | |
19242 | if test x$gcc_no_link = xyes; then | |
19243 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19244 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19245 | { (exit 1); exit 1; }; } | |
19246 | fi | |
19247 | cat >conftest.$ac_ext <<_ACEOF | |
19248 | /* confdefs.h. */ | |
19249 | _ACEOF | |
19250 | cat confdefs.h >>conftest.$ac_ext | |
19251 | cat >>conftest.$ac_ext <<_ACEOF | |
19252 | /* end confdefs.h. */ | |
19253 | ||
a106dabe | 19254 | /* Override any gcc2 internal prototype to avoid an error. */ |
b52ee437 | 19255 | #ifdef __cplusplus |
19256 | extern "C" | |
19257 | #endif | |
a106dabe | 19258 | /* We use char because int might match the return type of a gcc2 |
19259 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19260 | char acos (); |
b52ee437 | 19261 | int |
19262 | main () | |
19263 | { | |
a106dabe | 19264 | acos (); |
b52ee437 | 19265 | ; |
19266 | return 0; | |
19267 | } | |
19268 | _ACEOF | |
19269 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 19270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19271 | (eval $ac_link) 2>conftest.er1 | |
b52ee437 | 19272 | ac_status=$? |
19273 | grep -v '^ *+' conftest.er1 >conftest.err | |
19274 | rm -f conftest.er1 | |
19275 | cat conftest.err >&5 | |
19276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19277 | (exit $ac_status); } && | |
c0e8efbe | 19278 | { ac_try='test -z "$ac_c_werror_flag" |
19279 | || test ! -s conftest.err' | |
a106dabe | 19280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19281 | (eval $ac_try) 2>&5 | |
b52ee437 | 19282 | ac_status=$? |
19283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19284 | (exit $ac_status); }; } && | |
19285 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 19286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19287 | (eval $ac_try) 2>&5 | |
b52ee437 | 19288 | ac_status=$? |
19289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19290 | (exit $ac_status); }; }; then | |
d213114b | 19291 | ac_cv_lib_m_acos=yes |
b52ee437 | 19292 | else |
19293 | echo "$as_me: failed program was:" >&5 | |
19294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19295 | ||
a106dabe | 19296 | ac_cv_lib_m_acos=no |
b52ee437 | 19297 | fi |
a106dabe | 19298 | rm -f conftest.err conftest.$ac_objext \ |
b52ee437 | 19299 | conftest$ac_exeext conftest.$ac_ext |
19300 | LIBS=$ac_check_lib_save_LIBS | |
19301 | fi | |
a106dabe | 19302 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5 |
19303 | echo "${ECHO_T}$ac_cv_lib_m_acos" >&6 | |
d213114b | 19304 | if test $ac_cv_lib_m_acos = yes; then |
b52ee437 | 19305 | |
19306 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 19307 | #define HAVE_ACOS 1 |
b52ee437 | 19308 | _ACEOF |
19309 | ||
19310 | fi | |
19311 | ||
a106dabe | 19312 | echo "$as_me:$LINENO: checking for acosl in -lm" >&5 |
19313 | echo $ECHO_N "checking for acosl in -lm... $ECHO_C" >&6 | |
d213114b | 19314 | if test "${ac_cv_lib_m_acosl+set}" = set; then |
8f838781 | 19315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19316 | else | |
19317 | ac_check_lib_save_LIBS=$LIBS | |
19318 | LIBS="-lm $LIBS" | |
b52ee437 | 19319 | if test x$gcc_no_link = xyes; then |
19320 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19321 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19322 | { (exit 1); exit 1; }; } | |
19323 | fi | |
8f838781 | 19324 | cat >conftest.$ac_ext <<_ACEOF |
19325 | /* confdefs.h. */ | |
19326 | _ACEOF | |
19327 | cat confdefs.h >>conftest.$ac_ext | |
19328 | cat >>conftest.$ac_ext <<_ACEOF | |
19329 | /* end confdefs.h. */ | |
19330 | ||
a106dabe | 19331 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 19332 | #ifdef __cplusplus |
19333 | extern "C" | |
19334 | #endif | |
a106dabe | 19335 | /* We use char because int might match the return type of a gcc2 |
19336 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19337 | char acosl (); |
8f838781 | 19338 | int |
19339 | main () | |
19340 | { | |
a106dabe | 19341 | acosl (); |
8f838781 | 19342 | ; |
19343 | return 0; | |
19344 | } | |
19345 | _ACEOF | |
19346 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 19347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19348 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 19349 | ac_status=$? |
19350 | grep -v '^ *+' conftest.er1 >conftest.err | |
19351 | rm -f conftest.er1 | |
19352 | cat conftest.err >&5 | |
19353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19354 | (exit $ac_status); } && | |
c0e8efbe | 19355 | { ac_try='test -z "$ac_c_werror_flag" |
19356 | || test ! -s conftest.err' | |
a106dabe | 19357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19358 | (eval $ac_try) 2>&5 | |
8f838781 | 19359 | ac_status=$? |
19360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19361 | (exit $ac_status); }; } && | |
19362 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 19363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19364 | (eval $ac_try) 2>&5 | |
8f838781 | 19365 | ac_status=$? |
19366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19367 | (exit $ac_status); }; }; then | |
d213114b | 19368 | ac_cv_lib_m_acosl=yes |
8f838781 | 19369 | else |
19370 | echo "$as_me: failed program was:" >&5 | |
19371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19372 | ||
a106dabe | 19373 | ac_cv_lib_m_acosl=no |
8f838781 | 19374 | fi |
a106dabe | 19375 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 19376 | conftest$ac_exeext conftest.$ac_ext |
19377 | LIBS=$ac_check_lib_save_LIBS | |
19378 | fi | |
a106dabe | 19379 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosl" >&5 |
19380 | echo "${ECHO_T}$ac_cv_lib_m_acosl" >&6 | |
d213114b | 19381 | if test $ac_cv_lib_m_acosl = yes; then |
8f838781 | 19382 | |
19383 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 19384 | #define HAVE_ACOSL 1 |
8f838781 | 19385 | _ACEOF |
19386 | ||
19387 | fi | |
19388 | ||
a106dabe | 19389 | echo "$as_me:$LINENO: checking for acoshf in -lm" >&5 |
19390 | echo $ECHO_N "checking for acoshf in -lm... $ECHO_C" >&6 | |
d213114b | 19391 | if test "${ac_cv_lib_m_acoshf+set}" = set; then |
b52ee437 | 19392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19393 | else | |
19394 | ac_check_lib_save_LIBS=$LIBS | |
19395 | LIBS="-lm $LIBS" | |
19396 | if test x$gcc_no_link = xyes; then | |
19397 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19398 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19399 | { (exit 1); exit 1; }; } | |
19400 | fi | |
19401 | cat >conftest.$ac_ext <<_ACEOF | |
19402 | /* confdefs.h. */ | |
19403 | _ACEOF | |
19404 | cat confdefs.h >>conftest.$ac_ext | |
19405 | cat >>conftest.$ac_ext <<_ACEOF | |
19406 | /* end confdefs.h. */ | |
19407 | ||
a106dabe | 19408 | /* Override any gcc2 internal prototype to avoid an error. */ |
b52ee437 | 19409 | #ifdef __cplusplus |
19410 | extern "C" | |
19411 | #endif | |
a106dabe | 19412 | /* We use char because int might match the return type of a gcc2 |
19413 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19414 | char acoshf (); |
b52ee437 | 19415 | int |
19416 | main () | |
19417 | { | |
a106dabe | 19418 | acoshf (); |
b52ee437 | 19419 | ; |
19420 | return 0; | |
19421 | } | |
19422 | _ACEOF | |
19423 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 19424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19425 | (eval $ac_link) 2>conftest.er1 | |
b52ee437 | 19426 | ac_status=$? |
19427 | grep -v '^ *+' conftest.er1 >conftest.err | |
19428 | rm -f conftest.er1 | |
19429 | cat conftest.err >&5 | |
19430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19431 | (exit $ac_status); } && | |
c0e8efbe | 19432 | { ac_try='test -z "$ac_c_werror_flag" |
19433 | || test ! -s conftest.err' | |
a106dabe | 19434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19435 | (eval $ac_try) 2>&5 | |
b52ee437 | 19436 | ac_status=$? |
19437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19438 | (exit $ac_status); }; } && | |
19439 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 19440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19441 | (eval $ac_try) 2>&5 | |
b52ee437 | 19442 | ac_status=$? |
19443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19444 | (exit $ac_status); }; }; then | |
d213114b | 19445 | ac_cv_lib_m_acoshf=yes |
b52ee437 | 19446 | else |
19447 | echo "$as_me: failed program was:" >&5 | |
19448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19449 | ||
a106dabe | 19450 | ac_cv_lib_m_acoshf=no |
b52ee437 | 19451 | fi |
a106dabe | 19452 | rm -f conftest.err conftest.$ac_objext \ |
b52ee437 | 19453 | conftest$ac_exeext conftest.$ac_ext |
19454 | LIBS=$ac_check_lib_save_LIBS | |
19455 | fi | |
a106dabe | 19456 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshf" >&5 |
19457 | echo "${ECHO_T}$ac_cv_lib_m_acoshf" >&6 | |
d213114b | 19458 | if test $ac_cv_lib_m_acoshf = yes; then |
b52ee437 | 19459 | |
19460 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 19461 | #define HAVE_ACOSHF 1 |
b52ee437 | 19462 | _ACEOF |
19463 | ||
19464 | fi | |
19465 | ||
a106dabe | 19466 | echo "$as_me:$LINENO: checking for acosh in -lm" >&5 |
19467 | echo $ECHO_N "checking for acosh in -lm... $ECHO_C" >&6 | |
d213114b | 19468 | if test "${ac_cv_lib_m_acosh+set}" = set; then |
8f838781 | 19469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19470 | else | |
19471 | ac_check_lib_save_LIBS=$LIBS | |
19472 | LIBS="-lm $LIBS" | |
b52ee437 | 19473 | if test x$gcc_no_link = xyes; then |
19474 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19475 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19476 | { (exit 1); exit 1; }; } | |
19477 | fi | |
8f838781 | 19478 | cat >conftest.$ac_ext <<_ACEOF |
19479 | /* confdefs.h. */ | |
19480 | _ACEOF | |
19481 | cat confdefs.h >>conftest.$ac_ext | |
19482 | cat >>conftest.$ac_ext <<_ACEOF | |
19483 | /* end confdefs.h. */ | |
19484 | ||
a106dabe | 19485 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 19486 | #ifdef __cplusplus |
19487 | extern "C" | |
19488 | #endif | |
a106dabe | 19489 | /* We use char because int might match the return type of a gcc2 |
19490 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19491 | char acosh (); |
8f838781 | 19492 | int |
19493 | main () | |
19494 | { | |
a106dabe | 19495 | acosh (); |
8f838781 | 19496 | ; |
19497 | return 0; | |
19498 | } | |
19499 | _ACEOF | |
19500 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 19501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19502 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 19503 | ac_status=$? |
19504 | grep -v '^ *+' conftest.er1 >conftest.err | |
19505 | rm -f conftest.er1 | |
19506 | cat conftest.err >&5 | |
19507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19508 | (exit $ac_status); } && | |
c0e8efbe | 19509 | { ac_try='test -z "$ac_c_werror_flag" |
19510 | || test ! -s conftest.err' | |
a106dabe | 19511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19512 | (eval $ac_try) 2>&5 | |
8f838781 | 19513 | ac_status=$? |
19514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19515 | (exit $ac_status); }; } && | |
19516 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 19517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19518 | (eval $ac_try) 2>&5 | |
8f838781 | 19519 | ac_status=$? |
19520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19521 | (exit $ac_status); }; }; then | |
d213114b | 19522 | ac_cv_lib_m_acosh=yes |
8f838781 | 19523 | else |
19524 | echo "$as_me: failed program was:" >&5 | |
19525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19526 | ||
a106dabe | 19527 | ac_cv_lib_m_acosh=no |
8f838781 | 19528 | fi |
a106dabe | 19529 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 19530 | conftest$ac_exeext conftest.$ac_ext |
19531 | LIBS=$ac_check_lib_save_LIBS | |
19532 | fi | |
a106dabe | 19533 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosh" >&5 |
19534 | echo "${ECHO_T}$ac_cv_lib_m_acosh" >&6 | |
d213114b | 19535 | if test $ac_cv_lib_m_acosh = yes; then |
8f838781 | 19536 | |
19537 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 19538 | #define HAVE_ACOSH 1 |
8f838781 | 19539 | _ACEOF |
19540 | ||
19541 | fi | |
19542 | ||
a106dabe | 19543 | echo "$as_me:$LINENO: checking for acoshl in -lm" >&5 |
19544 | echo $ECHO_N "checking for acoshl in -lm... $ECHO_C" >&6 | |
d213114b | 19545 | if test "${ac_cv_lib_m_acoshl+set}" = set; then |
8f838781 | 19546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19547 | else | |
19548 | ac_check_lib_save_LIBS=$LIBS | |
19549 | LIBS="-lm $LIBS" | |
b52ee437 | 19550 | if test x$gcc_no_link = xyes; then |
19551 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19552 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19553 | { (exit 1); exit 1; }; } | |
19554 | fi | |
8f838781 | 19555 | cat >conftest.$ac_ext <<_ACEOF |
19556 | /* confdefs.h. */ | |
19557 | _ACEOF | |
19558 | cat confdefs.h >>conftest.$ac_ext | |
19559 | cat >>conftest.$ac_ext <<_ACEOF | |
19560 | /* end confdefs.h. */ | |
19561 | ||
a106dabe | 19562 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 19563 | #ifdef __cplusplus |
19564 | extern "C" | |
19565 | #endif | |
a106dabe | 19566 | /* We use char because int might match the return type of a gcc2 |
19567 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19568 | char acoshl (); |
8f838781 | 19569 | int |
19570 | main () | |
19571 | { | |
a106dabe | 19572 | acoshl (); |
8f838781 | 19573 | ; |
19574 | return 0; | |
19575 | } | |
19576 | _ACEOF | |
19577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 19578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19579 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 19580 | ac_status=$? |
19581 | grep -v '^ *+' conftest.er1 >conftest.err | |
19582 | rm -f conftest.er1 | |
19583 | cat conftest.err >&5 | |
19584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19585 | (exit $ac_status); } && | |
c0e8efbe | 19586 | { ac_try='test -z "$ac_c_werror_flag" |
19587 | || test ! -s conftest.err' | |
a106dabe | 19588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19589 | (eval $ac_try) 2>&5 | |
8f838781 | 19590 | ac_status=$? |
19591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19592 | (exit $ac_status); }; } && | |
19593 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 19594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19595 | (eval $ac_try) 2>&5 | |
8f838781 | 19596 | ac_status=$? |
19597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19598 | (exit $ac_status); }; }; then | |
d213114b | 19599 | ac_cv_lib_m_acoshl=yes |
8f838781 | 19600 | else |
19601 | echo "$as_me: failed program was:" >&5 | |
19602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19603 | ||
a106dabe | 19604 | ac_cv_lib_m_acoshl=no |
8f838781 | 19605 | fi |
a106dabe | 19606 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 19607 | conftest$ac_exeext conftest.$ac_ext |
19608 | LIBS=$ac_check_lib_save_LIBS | |
19609 | fi | |
a106dabe | 19610 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshl" >&5 |
19611 | echo "${ECHO_T}$ac_cv_lib_m_acoshl" >&6 | |
d213114b | 19612 | if test $ac_cv_lib_m_acoshl = yes; then |
8f838781 | 19613 | |
19614 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 19615 | #define HAVE_ACOSHL 1 |
8f838781 | 19616 | _ACEOF |
19617 | ||
19618 | fi | |
19619 | ||
a106dabe | 19620 | echo "$as_me:$LINENO: checking for asinf in -lm" >&5 |
19621 | echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6 | |
d213114b | 19622 | if test "${ac_cv_lib_m_asinf+set}" = set; then |
b52ee437 | 19623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19624 | else | |
19625 | ac_check_lib_save_LIBS=$LIBS | |
19626 | LIBS="-lm $LIBS" | |
19627 | if test x$gcc_no_link = xyes; then | |
19628 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19629 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19630 | { (exit 1); exit 1; }; } | |
19631 | fi | |
19632 | cat >conftest.$ac_ext <<_ACEOF | |
19633 | /* confdefs.h. */ | |
19634 | _ACEOF | |
19635 | cat confdefs.h >>conftest.$ac_ext | |
19636 | cat >>conftest.$ac_ext <<_ACEOF | |
19637 | /* end confdefs.h. */ | |
19638 | ||
a106dabe | 19639 | /* Override any gcc2 internal prototype to avoid an error. */ |
b52ee437 | 19640 | #ifdef __cplusplus |
19641 | extern "C" | |
19642 | #endif | |
a106dabe | 19643 | /* We use char because int might match the return type of a gcc2 |
19644 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19645 | char asinf (); |
b52ee437 | 19646 | int |
19647 | main () | |
19648 | { | |
a106dabe | 19649 | asinf (); |
b52ee437 | 19650 | ; |
19651 | return 0; | |
19652 | } | |
19653 | _ACEOF | |
19654 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 19655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19656 | (eval $ac_link) 2>conftest.er1 | |
b52ee437 | 19657 | ac_status=$? |
19658 | grep -v '^ *+' conftest.er1 >conftest.err | |
19659 | rm -f conftest.er1 | |
19660 | cat conftest.err >&5 | |
19661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19662 | (exit $ac_status); } && | |
c0e8efbe | 19663 | { ac_try='test -z "$ac_c_werror_flag" |
19664 | || test ! -s conftest.err' | |
a106dabe | 19665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19666 | (eval $ac_try) 2>&5 | |
b52ee437 | 19667 | ac_status=$? |
19668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19669 | (exit $ac_status); }; } && | |
19670 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 19671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19672 | (eval $ac_try) 2>&5 | |
b52ee437 | 19673 | ac_status=$? |
19674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19675 | (exit $ac_status); }; }; then | |
d213114b | 19676 | ac_cv_lib_m_asinf=yes |
b52ee437 | 19677 | else |
19678 | echo "$as_me: failed program was:" >&5 | |
19679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19680 | ||
a106dabe | 19681 | ac_cv_lib_m_asinf=no |
b52ee437 | 19682 | fi |
a106dabe | 19683 | rm -f conftest.err conftest.$ac_objext \ |
b52ee437 | 19684 | conftest$ac_exeext conftest.$ac_ext |
19685 | LIBS=$ac_check_lib_save_LIBS | |
19686 | fi | |
a106dabe | 19687 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5 |
19688 | echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6 | |
d213114b | 19689 | if test $ac_cv_lib_m_asinf = yes; then |
b52ee437 | 19690 | |
19691 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 19692 | #define HAVE_ASINF 1 |
b52ee437 | 19693 | _ACEOF |
19694 | ||
19695 | fi | |
19696 | ||
a106dabe | 19697 | echo "$as_me:$LINENO: checking for asin in -lm" >&5 |
19698 | echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6 | |
d213114b | 19699 | if test "${ac_cv_lib_m_asin+set}" = set; then |
8f838781 | 19700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19701 | else | |
19702 | ac_check_lib_save_LIBS=$LIBS | |
19703 | LIBS="-lm $LIBS" | |
b52ee437 | 19704 | if test x$gcc_no_link = xyes; then |
19705 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19706 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19707 | { (exit 1); exit 1; }; } | |
19708 | fi | |
8f838781 | 19709 | cat >conftest.$ac_ext <<_ACEOF |
19710 | /* confdefs.h. */ | |
19711 | _ACEOF | |
19712 | cat confdefs.h >>conftest.$ac_ext | |
19713 | cat >>conftest.$ac_ext <<_ACEOF | |
19714 | /* end confdefs.h. */ | |
19715 | ||
a106dabe | 19716 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 19717 | #ifdef __cplusplus |
19718 | extern "C" | |
19719 | #endif | |
a106dabe | 19720 | /* We use char because int might match the return type of a gcc2 |
19721 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19722 | char asin (); |
8f838781 | 19723 | int |
19724 | main () | |
19725 | { | |
a106dabe | 19726 | asin (); |
8f838781 | 19727 | ; |
19728 | return 0; | |
19729 | } | |
19730 | _ACEOF | |
19731 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 19732 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19733 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 19734 | ac_status=$? |
19735 | grep -v '^ *+' conftest.er1 >conftest.err | |
19736 | rm -f conftest.er1 | |
19737 | cat conftest.err >&5 | |
19738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19739 | (exit $ac_status); } && | |
c0e8efbe | 19740 | { ac_try='test -z "$ac_c_werror_flag" |
19741 | || test ! -s conftest.err' | |
a106dabe | 19742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19743 | (eval $ac_try) 2>&5 | |
8f838781 | 19744 | ac_status=$? |
19745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19746 | (exit $ac_status); }; } && | |
19747 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 19748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19749 | (eval $ac_try) 2>&5 | |
8f838781 | 19750 | ac_status=$? |
19751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19752 | (exit $ac_status); }; }; then | |
d213114b | 19753 | ac_cv_lib_m_asin=yes |
8f838781 | 19754 | else |
19755 | echo "$as_me: failed program was:" >&5 | |
19756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19757 | ||
a106dabe | 19758 | ac_cv_lib_m_asin=no |
8f838781 | 19759 | fi |
a106dabe | 19760 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 19761 | conftest$ac_exeext conftest.$ac_ext |
19762 | LIBS=$ac_check_lib_save_LIBS | |
19763 | fi | |
a106dabe | 19764 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5 |
19765 | echo "${ECHO_T}$ac_cv_lib_m_asin" >&6 | |
d213114b | 19766 | if test $ac_cv_lib_m_asin = yes; then |
8f838781 | 19767 | |
19768 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 19769 | #define HAVE_ASIN 1 |
8f838781 | 19770 | _ACEOF |
19771 | ||
19772 | fi | |
19773 | ||
a106dabe | 19774 | echo "$as_me:$LINENO: checking for asinl in -lm" >&5 |
19775 | echo $ECHO_N "checking for asinl in -lm... $ECHO_C" >&6 | |
d213114b | 19776 | if test "${ac_cv_lib_m_asinl+set}" = set; then |
8f838781 | 19777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19778 | else | |
19779 | ac_check_lib_save_LIBS=$LIBS | |
19780 | LIBS="-lm $LIBS" | |
b52ee437 | 19781 | if test x$gcc_no_link = xyes; then |
19782 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19783 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19784 | { (exit 1); exit 1; }; } | |
19785 | fi | |
8f838781 | 19786 | cat >conftest.$ac_ext <<_ACEOF |
19787 | /* confdefs.h. */ | |
19788 | _ACEOF | |
19789 | cat confdefs.h >>conftest.$ac_ext | |
19790 | cat >>conftest.$ac_ext <<_ACEOF | |
19791 | /* end confdefs.h. */ | |
19792 | ||
a106dabe | 19793 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 19794 | #ifdef __cplusplus |
19795 | extern "C" | |
19796 | #endif | |
a106dabe | 19797 | /* We use char because int might match the return type of a gcc2 |
19798 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19799 | char asinl (); |
8f838781 | 19800 | int |
19801 | main () | |
19802 | { | |
a106dabe | 19803 | asinl (); |
8f838781 | 19804 | ; |
19805 | return 0; | |
19806 | } | |
19807 | _ACEOF | |
19808 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 19809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19810 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 19811 | ac_status=$? |
19812 | grep -v '^ *+' conftest.er1 >conftest.err | |
19813 | rm -f conftest.er1 | |
19814 | cat conftest.err >&5 | |
19815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19816 | (exit $ac_status); } && | |
c0e8efbe | 19817 | { ac_try='test -z "$ac_c_werror_flag" |
19818 | || test ! -s conftest.err' | |
a106dabe | 19819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19820 | (eval $ac_try) 2>&5 | |
8f838781 | 19821 | ac_status=$? |
19822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19823 | (exit $ac_status); }; } && | |
19824 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 19825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19826 | (eval $ac_try) 2>&5 | |
8f838781 | 19827 | ac_status=$? |
19828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19829 | (exit $ac_status); }; }; then | |
d213114b | 19830 | ac_cv_lib_m_asinl=yes |
8f838781 | 19831 | else |
19832 | echo "$as_me: failed program was:" >&5 | |
19833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19834 | ||
a106dabe | 19835 | ac_cv_lib_m_asinl=no |
8f838781 | 19836 | fi |
a106dabe | 19837 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 19838 | conftest$ac_exeext conftest.$ac_ext |
19839 | LIBS=$ac_check_lib_save_LIBS | |
19840 | fi | |
a106dabe | 19841 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinl" >&5 |
19842 | echo "${ECHO_T}$ac_cv_lib_m_asinl" >&6 | |
d213114b | 19843 | if test $ac_cv_lib_m_asinl = yes; then |
8f838781 | 19844 | |
19845 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 19846 | #define HAVE_ASINL 1 |
8f838781 | 19847 | _ACEOF |
19848 | ||
19849 | fi | |
19850 | ||
a106dabe | 19851 | echo "$as_me:$LINENO: checking for asinhf in -lm" >&5 |
19852 | echo $ECHO_N "checking for asinhf in -lm... $ECHO_C" >&6 | |
d213114b | 19853 | if test "${ac_cv_lib_m_asinhf+set}" = set; then |
8f838781 | 19854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19855 | else | |
19856 | ac_check_lib_save_LIBS=$LIBS | |
19857 | LIBS="-lm $LIBS" | |
b52ee437 | 19858 | if test x$gcc_no_link = xyes; then |
19859 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19860 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19861 | { (exit 1); exit 1; }; } | |
19862 | fi | |
8f838781 | 19863 | cat >conftest.$ac_ext <<_ACEOF |
19864 | /* confdefs.h. */ | |
19865 | _ACEOF | |
19866 | cat confdefs.h >>conftest.$ac_ext | |
19867 | cat >>conftest.$ac_ext <<_ACEOF | |
19868 | /* end confdefs.h. */ | |
19869 | ||
a106dabe | 19870 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 19871 | #ifdef __cplusplus |
19872 | extern "C" | |
19873 | #endif | |
a106dabe | 19874 | /* We use char because int might match the return type of a gcc2 |
19875 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19876 | char asinhf (); |
8f838781 | 19877 | int |
19878 | main () | |
19879 | { | |
a106dabe | 19880 | asinhf (); |
8f838781 | 19881 | ; |
19882 | return 0; | |
19883 | } | |
19884 | _ACEOF | |
19885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 19886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19887 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 19888 | ac_status=$? |
19889 | grep -v '^ *+' conftest.er1 >conftest.err | |
19890 | rm -f conftest.er1 | |
19891 | cat conftest.err >&5 | |
19892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19893 | (exit $ac_status); } && | |
c0e8efbe | 19894 | { ac_try='test -z "$ac_c_werror_flag" |
19895 | || test ! -s conftest.err' | |
a106dabe | 19896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19897 | (eval $ac_try) 2>&5 | |
8f838781 | 19898 | ac_status=$? |
19899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19900 | (exit $ac_status); }; } && | |
19901 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 19902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19903 | (eval $ac_try) 2>&5 | |
8f838781 | 19904 | ac_status=$? |
19905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19906 | (exit $ac_status); }; }; then | |
d213114b | 19907 | ac_cv_lib_m_asinhf=yes |
8f838781 | 19908 | else |
19909 | echo "$as_me: failed program was:" >&5 | |
19910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19911 | ||
a106dabe | 19912 | ac_cv_lib_m_asinhf=no |
8f838781 | 19913 | fi |
a106dabe | 19914 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 19915 | conftest$ac_exeext conftest.$ac_ext |
19916 | LIBS=$ac_check_lib_save_LIBS | |
19917 | fi | |
a106dabe | 19918 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhf" >&5 |
19919 | echo "${ECHO_T}$ac_cv_lib_m_asinhf" >&6 | |
d213114b | 19920 | if test $ac_cv_lib_m_asinhf = yes; then |
8f838781 | 19921 | |
19922 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 19923 | #define HAVE_ASINHF 1 |
8f838781 | 19924 | _ACEOF |
19925 | ||
19926 | fi | |
19927 | ||
a106dabe | 19928 | echo "$as_me:$LINENO: checking for asinh in -lm" >&5 |
19929 | echo $ECHO_N "checking for asinh in -lm... $ECHO_C" >&6 | |
d213114b | 19930 | if test "${ac_cv_lib_m_asinh+set}" = set; then |
8f838781 | 19931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19932 | else | |
19933 | ac_check_lib_save_LIBS=$LIBS | |
19934 | LIBS="-lm $LIBS" | |
b52ee437 | 19935 | if test x$gcc_no_link = xyes; then |
19936 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19937 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19938 | { (exit 1); exit 1; }; } | |
19939 | fi | |
8f838781 | 19940 | cat >conftest.$ac_ext <<_ACEOF |
19941 | /* confdefs.h. */ | |
19942 | _ACEOF | |
19943 | cat confdefs.h >>conftest.$ac_ext | |
19944 | cat >>conftest.$ac_ext <<_ACEOF | |
19945 | /* end confdefs.h. */ | |
19946 | ||
a106dabe | 19947 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 19948 | #ifdef __cplusplus |
19949 | extern "C" | |
19950 | #endif | |
a106dabe | 19951 | /* We use char because int might match the return type of a gcc2 |
19952 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19953 | char asinh (); |
8f838781 | 19954 | int |
19955 | main () | |
19956 | { | |
a106dabe | 19957 | asinh (); |
8f838781 | 19958 | ; |
19959 | return 0; | |
19960 | } | |
19961 | _ACEOF | |
19962 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 19963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19964 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 19965 | ac_status=$? |
19966 | grep -v '^ *+' conftest.er1 >conftest.err | |
19967 | rm -f conftest.er1 | |
19968 | cat conftest.err >&5 | |
19969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19970 | (exit $ac_status); } && | |
c0e8efbe | 19971 | { ac_try='test -z "$ac_c_werror_flag" |
19972 | || test ! -s conftest.err' | |
a106dabe | 19973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19974 | (eval $ac_try) 2>&5 | |
8f838781 | 19975 | ac_status=$? |
19976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19977 | (exit $ac_status); }; } && | |
19978 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 19979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19980 | (eval $ac_try) 2>&5 | |
8f838781 | 19981 | ac_status=$? |
19982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19983 | (exit $ac_status); }; }; then | |
d213114b | 19984 | ac_cv_lib_m_asinh=yes |
8f838781 | 19985 | else |
19986 | echo "$as_me: failed program was:" >&5 | |
19987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19988 | ||
a106dabe | 19989 | ac_cv_lib_m_asinh=no |
8f838781 | 19990 | fi |
a106dabe | 19991 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 19992 | conftest$ac_exeext conftest.$ac_ext |
19993 | LIBS=$ac_check_lib_save_LIBS | |
19994 | fi | |
a106dabe | 19995 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinh" >&5 |
19996 | echo "${ECHO_T}$ac_cv_lib_m_asinh" >&6 | |
d213114b | 19997 | if test $ac_cv_lib_m_asinh = yes; then |
8f838781 | 19998 | |
19999 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20000 | #define HAVE_ASINH 1 |
8f838781 | 20001 | _ACEOF |
20002 | ||
20003 | fi | |
20004 | ||
a106dabe | 20005 | echo "$as_me:$LINENO: checking for asinhl in -lm" >&5 |
20006 | echo $ECHO_N "checking for asinhl in -lm... $ECHO_C" >&6 | |
d213114b | 20007 | if test "${ac_cv_lib_m_asinhl+set}" = set; then |
8f838781 | 20008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20009 | else | |
20010 | ac_check_lib_save_LIBS=$LIBS | |
20011 | LIBS="-lm $LIBS" | |
b52ee437 | 20012 | if test x$gcc_no_link = xyes; then |
20013 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20014 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20015 | { (exit 1); exit 1; }; } | |
20016 | fi | |
8f838781 | 20017 | cat >conftest.$ac_ext <<_ACEOF |
20018 | /* confdefs.h. */ | |
20019 | _ACEOF | |
20020 | cat confdefs.h >>conftest.$ac_ext | |
20021 | cat >>conftest.$ac_ext <<_ACEOF | |
20022 | /* end confdefs.h. */ | |
20023 | ||
a106dabe | 20024 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20025 | #ifdef __cplusplus |
20026 | extern "C" | |
20027 | #endif | |
a106dabe | 20028 | /* We use char because int might match the return type of a gcc2 |
20029 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20030 | char asinhl (); |
8f838781 | 20031 | int |
20032 | main () | |
20033 | { | |
a106dabe | 20034 | asinhl (); |
8f838781 | 20035 | ; |
20036 | return 0; | |
20037 | } | |
20038 | _ACEOF | |
20039 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 20040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20041 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 20042 | ac_status=$? |
20043 | grep -v '^ *+' conftest.er1 >conftest.err | |
20044 | rm -f conftest.er1 | |
20045 | cat conftest.err >&5 | |
20046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20047 | (exit $ac_status); } && | |
c0e8efbe | 20048 | { ac_try='test -z "$ac_c_werror_flag" |
20049 | || test ! -s conftest.err' | |
a106dabe | 20050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20051 | (eval $ac_try) 2>&5 | |
8f838781 | 20052 | ac_status=$? |
20053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20054 | (exit $ac_status); }; } && | |
20055 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 20056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20057 | (eval $ac_try) 2>&5 | |
8f838781 | 20058 | ac_status=$? |
20059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20060 | (exit $ac_status); }; }; then | |
d213114b | 20061 | ac_cv_lib_m_asinhl=yes |
8f838781 | 20062 | else |
20063 | echo "$as_me: failed program was:" >&5 | |
20064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20065 | ||
a106dabe | 20066 | ac_cv_lib_m_asinhl=no |
8f838781 | 20067 | fi |
a106dabe | 20068 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20069 | conftest$ac_exeext conftest.$ac_ext |
20070 | LIBS=$ac_check_lib_save_LIBS | |
20071 | fi | |
a106dabe | 20072 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhl" >&5 |
20073 | echo "${ECHO_T}$ac_cv_lib_m_asinhl" >&6 | |
d213114b | 20074 | if test $ac_cv_lib_m_asinhl = yes; then |
8f838781 | 20075 | |
20076 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20077 | #define HAVE_ASINHL 1 |
8f838781 | 20078 | _ACEOF |
20079 | ||
20080 | fi | |
20081 | ||
a106dabe | 20082 | echo "$as_me:$LINENO: checking for atan2f in -lm" >&5 |
20083 | echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6 | |
d213114b | 20084 | if test "${ac_cv_lib_m_atan2f+set}" = set; then |
334f03a1 | 20085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20086 | else | |
20087 | ac_check_lib_save_LIBS=$LIBS | |
20088 | LIBS="-lm $LIBS" | |
b52ee437 | 20089 | if test x$gcc_no_link = xyes; then |
20090 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20091 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20092 | { (exit 1); exit 1; }; } | |
20093 | fi | |
334f03a1 | 20094 | cat >conftest.$ac_ext <<_ACEOF |
20095 | /* confdefs.h. */ | |
20096 | _ACEOF | |
20097 | cat confdefs.h >>conftest.$ac_ext | |
20098 | cat >>conftest.$ac_ext <<_ACEOF | |
20099 | /* end confdefs.h. */ | |
20100 | ||
a106dabe | 20101 | /* Override any gcc2 internal prototype to avoid an error. */ |
334f03a1 | 20102 | #ifdef __cplusplus |
20103 | extern "C" | |
20104 | #endif | |
a106dabe | 20105 | /* We use char because int might match the return type of a gcc2 |
20106 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20107 | char atan2f (); |
334f03a1 | 20108 | int |
20109 | main () | |
20110 | { | |
a106dabe | 20111 | atan2f (); |
334f03a1 | 20112 | ; |
20113 | return 0; | |
20114 | } | |
20115 | _ACEOF | |
20116 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 20117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20118 | (eval $ac_link) 2>conftest.er1 | |
334f03a1 | 20119 | ac_status=$? |
20120 | grep -v '^ *+' conftest.er1 >conftest.err | |
20121 | rm -f conftest.er1 | |
20122 | cat conftest.err >&5 | |
20123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20124 | (exit $ac_status); } && | |
c0e8efbe | 20125 | { ac_try='test -z "$ac_c_werror_flag" |
20126 | || test ! -s conftest.err' | |
a106dabe | 20127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20128 | (eval $ac_try) 2>&5 | |
334f03a1 | 20129 | ac_status=$? |
20130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20131 | (exit $ac_status); }; } && | |
20132 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 20133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20134 | (eval $ac_try) 2>&5 | |
334f03a1 | 20135 | ac_status=$? |
20136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20137 | (exit $ac_status); }; }; then | |
d213114b | 20138 | ac_cv_lib_m_atan2f=yes |
334f03a1 | 20139 | else |
20140 | echo "$as_me: failed program was:" >&5 | |
20141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20142 | ||
a106dabe | 20143 | ac_cv_lib_m_atan2f=no |
334f03a1 | 20144 | fi |
a106dabe | 20145 | rm -f conftest.err conftest.$ac_objext \ |
334f03a1 | 20146 | conftest$ac_exeext conftest.$ac_ext |
20147 | LIBS=$ac_check_lib_save_LIBS | |
20148 | fi | |
a106dabe | 20149 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5 |
20150 | echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6 | |
d213114b | 20151 | if test $ac_cv_lib_m_atan2f = yes; then |
334f03a1 | 20152 | |
20153 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20154 | #define HAVE_ATAN2F 1 |
334f03a1 | 20155 | _ACEOF |
20156 | ||
20157 | fi | |
20158 | ||
a106dabe | 20159 | echo "$as_me:$LINENO: checking for atan2 in -lm" >&5 |
20160 | echo $ECHO_N "checking for atan2 in -lm... $ECHO_C" >&6 | |
d213114b | 20161 | if test "${ac_cv_lib_m_atan2+set}" = set; then |
8f838781 | 20162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20163 | else | |
20164 | ac_check_lib_save_LIBS=$LIBS | |
20165 | LIBS="-lm $LIBS" | |
b52ee437 | 20166 | if test x$gcc_no_link = xyes; then |
20167 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20168 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20169 | { (exit 1); exit 1; }; } | |
20170 | fi | |
8f838781 | 20171 | cat >conftest.$ac_ext <<_ACEOF |
20172 | /* confdefs.h. */ | |
20173 | _ACEOF | |
20174 | cat confdefs.h >>conftest.$ac_ext | |
20175 | cat >>conftest.$ac_ext <<_ACEOF | |
20176 | /* end confdefs.h. */ | |
20177 | ||
a106dabe | 20178 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20179 | #ifdef __cplusplus |
20180 | extern "C" | |
20181 | #endif | |
a106dabe | 20182 | /* We use char because int might match the return type of a gcc2 |
20183 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20184 | char atan2 (); |
8f838781 | 20185 | int |
20186 | main () | |
20187 | { | |
a106dabe | 20188 | atan2 (); |
8f838781 | 20189 | ; |
20190 | return 0; | |
20191 | } | |
20192 | _ACEOF | |
20193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 20194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20195 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 20196 | ac_status=$? |
20197 | grep -v '^ *+' conftest.er1 >conftest.err | |
20198 | rm -f conftest.er1 | |
20199 | cat conftest.err >&5 | |
20200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20201 | (exit $ac_status); } && | |
c0e8efbe | 20202 | { ac_try='test -z "$ac_c_werror_flag" |
20203 | || test ! -s conftest.err' | |
a106dabe | 20204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20205 | (eval $ac_try) 2>&5 | |
8f838781 | 20206 | ac_status=$? |
20207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20208 | (exit $ac_status); }; } && | |
20209 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 20210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20211 | (eval $ac_try) 2>&5 | |
8f838781 | 20212 | ac_status=$? |
20213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20214 | (exit $ac_status); }; }; then | |
d213114b | 20215 | ac_cv_lib_m_atan2=yes |
8f838781 | 20216 | else |
20217 | echo "$as_me: failed program was:" >&5 | |
20218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20219 | ||
a106dabe | 20220 | ac_cv_lib_m_atan2=no |
8f838781 | 20221 | fi |
a106dabe | 20222 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20223 | conftest$ac_exeext conftest.$ac_ext |
20224 | LIBS=$ac_check_lib_save_LIBS | |
20225 | fi | |
a106dabe | 20226 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2" >&5 |
20227 | echo "${ECHO_T}$ac_cv_lib_m_atan2" >&6 | |
d213114b | 20228 | if test $ac_cv_lib_m_atan2 = yes; then |
8f838781 | 20229 | |
20230 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20231 | #define HAVE_ATAN2 1 |
8f838781 | 20232 | _ACEOF |
20233 | ||
20234 | fi | |
20235 | ||
a106dabe | 20236 | echo "$as_me:$LINENO: checking for atan2l in -lm" >&5 |
20237 | echo $ECHO_N "checking for atan2l in -lm... $ECHO_C" >&6 | |
d213114b | 20238 | if test "${ac_cv_lib_m_atan2l+set}" = set; then |
8f838781 | 20239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20240 | else | |
20241 | ac_check_lib_save_LIBS=$LIBS | |
20242 | LIBS="-lm $LIBS" | |
b52ee437 | 20243 | if test x$gcc_no_link = xyes; then |
20244 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20245 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20246 | { (exit 1); exit 1; }; } | |
20247 | fi | |
8f838781 | 20248 | cat >conftest.$ac_ext <<_ACEOF |
20249 | /* confdefs.h. */ | |
20250 | _ACEOF | |
20251 | cat confdefs.h >>conftest.$ac_ext | |
20252 | cat >>conftest.$ac_ext <<_ACEOF | |
20253 | /* end confdefs.h. */ | |
20254 | ||
a106dabe | 20255 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20256 | #ifdef __cplusplus |
20257 | extern "C" | |
20258 | #endif | |
a106dabe | 20259 | /* We use char because int might match the return type of a gcc2 |
20260 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20261 | char atan2l (); |
8f838781 | 20262 | int |
20263 | main () | |
20264 | { | |
a106dabe | 20265 | atan2l (); |
8f838781 | 20266 | ; |
20267 | return 0; | |
20268 | } | |
20269 | _ACEOF | |
20270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 20271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20272 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 20273 | ac_status=$? |
20274 | grep -v '^ *+' conftest.er1 >conftest.err | |
20275 | rm -f conftest.er1 | |
20276 | cat conftest.err >&5 | |
20277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20278 | (exit $ac_status); } && | |
c0e8efbe | 20279 | { ac_try='test -z "$ac_c_werror_flag" |
20280 | || test ! -s conftest.err' | |
a106dabe | 20281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20282 | (eval $ac_try) 2>&5 | |
8f838781 | 20283 | ac_status=$? |
20284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20285 | (exit $ac_status); }; } && | |
20286 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 20287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20288 | (eval $ac_try) 2>&5 | |
8f838781 | 20289 | ac_status=$? |
20290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20291 | (exit $ac_status); }; }; then | |
d213114b | 20292 | ac_cv_lib_m_atan2l=yes |
8f838781 | 20293 | else |
20294 | echo "$as_me: failed program was:" >&5 | |
20295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20296 | ||
a106dabe | 20297 | ac_cv_lib_m_atan2l=no |
8f838781 | 20298 | fi |
a106dabe | 20299 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20300 | conftest$ac_exeext conftest.$ac_ext |
20301 | LIBS=$ac_check_lib_save_LIBS | |
20302 | fi | |
a106dabe | 20303 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2l" >&5 |
20304 | echo "${ECHO_T}$ac_cv_lib_m_atan2l" >&6 | |
d213114b | 20305 | if test $ac_cv_lib_m_atan2l = yes; then |
8f838781 | 20306 | |
20307 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20308 | #define HAVE_ATAN2L 1 |
8f838781 | 20309 | _ACEOF |
20310 | ||
20311 | fi | |
20312 | ||
a106dabe | 20313 | echo "$as_me:$LINENO: checking for atanf in -lm" >&5 |
20314 | echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6 | |
d213114b | 20315 | if test "${ac_cv_lib_m_atanf+set}" = set; then |
8f838781 | 20316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20317 | else | |
20318 | ac_check_lib_save_LIBS=$LIBS | |
20319 | LIBS="-lm $LIBS" | |
b52ee437 | 20320 | if test x$gcc_no_link = xyes; then |
20321 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20322 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20323 | { (exit 1); exit 1; }; } | |
20324 | fi | |
8f838781 | 20325 | cat >conftest.$ac_ext <<_ACEOF |
20326 | /* confdefs.h. */ | |
20327 | _ACEOF | |
20328 | cat confdefs.h >>conftest.$ac_ext | |
20329 | cat >>conftest.$ac_ext <<_ACEOF | |
20330 | /* end confdefs.h. */ | |
20331 | ||
a106dabe | 20332 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20333 | #ifdef __cplusplus |
20334 | extern "C" | |
20335 | #endif | |
a106dabe | 20336 | /* We use char because int might match the return type of a gcc2 |
20337 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20338 | char atanf (); |
8f838781 | 20339 | int |
20340 | main () | |
20341 | { | |
a106dabe | 20342 | atanf (); |
8f838781 | 20343 | ; |
20344 | return 0; | |
20345 | } | |
20346 | _ACEOF | |
20347 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 20348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20349 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 20350 | ac_status=$? |
20351 | grep -v '^ *+' conftest.er1 >conftest.err | |
20352 | rm -f conftest.er1 | |
20353 | cat conftest.err >&5 | |
20354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20355 | (exit $ac_status); } && | |
c0e8efbe | 20356 | { ac_try='test -z "$ac_c_werror_flag" |
20357 | || test ! -s conftest.err' | |
a106dabe | 20358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20359 | (eval $ac_try) 2>&5 | |
8f838781 | 20360 | ac_status=$? |
20361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20362 | (exit $ac_status); }; } && | |
20363 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 20364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20365 | (eval $ac_try) 2>&5 | |
8f838781 | 20366 | ac_status=$? |
20367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20368 | (exit $ac_status); }; }; then | |
d213114b | 20369 | ac_cv_lib_m_atanf=yes |
8f838781 | 20370 | else |
20371 | echo "$as_me: failed program was:" >&5 | |
20372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20373 | ||
a106dabe | 20374 | ac_cv_lib_m_atanf=no |
8f838781 | 20375 | fi |
a106dabe | 20376 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20377 | conftest$ac_exeext conftest.$ac_ext |
20378 | LIBS=$ac_check_lib_save_LIBS | |
20379 | fi | |
a106dabe | 20380 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5 |
20381 | echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6 | |
d213114b | 20382 | if test $ac_cv_lib_m_atanf = yes; then |
8f838781 | 20383 | |
20384 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20385 | #define HAVE_ATANF 1 |
8f838781 | 20386 | _ACEOF |
20387 | ||
20388 | fi | |
20389 | ||
a106dabe | 20390 | echo "$as_me:$LINENO: checking for atan in -lm" >&5 |
20391 | echo $ECHO_N "checking for atan in -lm... $ECHO_C" >&6 | |
d213114b | 20392 | if test "${ac_cv_lib_m_atan+set}" = set; then |
8f838781 | 20393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20394 | else | |
20395 | ac_check_lib_save_LIBS=$LIBS | |
20396 | LIBS="-lm $LIBS" | |
b52ee437 | 20397 | if test x$gcc_no_link = xyes; then |
20398 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20399 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20400 | { (exit 1); exit 1; }; } | |
20401 | fi | |
8f838781 | 20402 | cat >conftest.$ac_ext <<_ACEOF |
20403 | /* confdefs.h. */ | |
20404 | _ACEOF | |
20405 | cat confdefs.h >>conftest.$ac_ext | |
20406 | cat >>conftest.$ac_ext <<_ACEOF | |
20407 | /* end confdefs.h. */ | |
20408 | ||
a106dabe | 20409 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20410 | #ifdef __cplusplus |
20411 | extern "C" | |
20412 | #endif | |
a106dabe | 20413 | /* We use char because int might match the return type of a gcc2 |
20414 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20415 | char atan (); |
8f838781 | 20416 | int |
20417 | main () | |
20418 | { | |
a106dabe | 20419 | atan (); |
8f838781 | 20420 | ; |
20421 | return 0; | |
20422 | } | |
20423 | _ACEOF | |
20424 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 20425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20426 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 20427 | ac_status=$? |
20428 | grep -v '^ *+' conftest.er1 >conftest.err | |
20429 | rm -f conftest.er1 | |
20430 | cat conftest.err >&5 | |
20431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20432 | (exit $ac_status); } && | |
c0e8efbe | 20433 | { ac_try='test -z "$ac_c_werror_flag" |
20434 | || test ! -s conftest.err' | |
a106dabe | 20435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20436 | (eval $ac_try) 2>&5 | |
8f838781 | 20437 | ac_status=$? |
20438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20439 | (exit $ac_status); }; } && | |
20440 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 20441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20442 | (eval $ac_try) 2>&5 | |
8f838781 | 20443 | ac_status=$? |
20444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20445 | (exit $ac_status); }; }; then | |
d213114b | 20446 | ac_cv_lib_m_atan=yes |
8f838781 | 20447 | else |
20448 | echo "$as_me: failed program was:" >&5 | |
20449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20450 | ||
a106dabe | 20451 | ac_cv_lib_m_atan=no |
8f838781 | 20452 | fi |
a106dabe | 20453 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20454 | conftest$ac_exeext conftest.$ac_ext |
20455 | LIBS=$ac_check_lib_save_LIBS | |
20456 | fi | |
a106dabe | 20457 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan" >&5 |
20458 | echo "${ECHO_T}$ac_cv_lib_m_atan" >&6 | |
d213114b | 20459 | if test $ac_cv_lib_m_atan = yes; then |
8f838781 | 20460 | |
20461 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20462 | #define HAVE_ATAN 1 |
8f838781 | 20463 | _ACEOF |
20464 | ||
20465 | fi | |
20466 | ||
a106dabe | 20467 | echo "$as_me:$LINENO: checking for atanl in -lm" >&5 |
20468 | echo $ECHO_N "checking for atanl in -lm... $ECHO_C" >&6 | |
d213114b | 20469 | if test "${ac_cv_lib_m_atanl+set}" = set; then |
8f838781 | 20470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20471 | else | |
20472 | ac_check_lib_save_LIBS=$LIBS | |
20473 | LIBS="-lm $LIBS" | |
b52ee437 | 20474 | if test x$gcc_no_link = xyes; then |
20475 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20476 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20477 | { (exit 1); exit 1; }; } | |
20478 | fi | |
8f838781 | 20479 | cat >conftest.$ac_ext <<_ACEOF |
20480 | /* confdefs.h. */ | |
20481 | _ACEOF | |
20482 | cat confdefs.h >>conftest.$ac_ext | |
20483 | cat >>conftest.$ac_ext <<_ACEOF | |
20484 | /* end confdefs.h. */ | |
20485 | ||
a106dabe | 20486 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20487 | #ifdef __cplusplus |
20488 | extern "C" | |
20489 | #endif | |
a106dabe | 20490 | /* We use char because int might match the return type of a gcc2 |
20491 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20492 | char atanl (); |
8f838781 | 20493 | int |
20494 | main () | |
20495 | { | |
a106dabe | 20496 | atanl (); |
8f838781 | 20497 | ; |
20498 | return 0; | |
20499 | } | |
20500 | _ACEOF | |
20501 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 20502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20503 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 20504 | ac_status=$? |
20505 | grep -v '^ *+' conftest.er1 >conftest.err | |
20506 | rm -f conftest.er1 | |
20507 | cat conftest.err >&5 | |
20508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20509 | (exit $ac_status); } && | |
c0e8efbe | 20510 | { ac_try='test -z "$ac_c_werror_flag" |
20511 | || test ! -s conftest.err' | |
a106dabe | 20512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20513 | (eval $ac_try) 2>&5 | |
8f838781 | 20514 | ac_status=$? |
20515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20516 | (exit $ac_status); }; } && | |
20517 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 20518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20519 | (eval $ac_try) 2>&5 | |
8f838781 | 20520 | ac_status=$? |
20521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20522 | (exit $ac_status); }; }; then | |
d213114b | 20523 | ac_cv_lib_m_atanl=yes |
8f838781 | 20524 | else |
20525 | echo "$as_me: failed program was:" >&5 | |
20526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20527 | ||
a106dabe | 20528 | ac_cv_lib_m_atanl=no |
8f838781 | 20529 | fi |
a106dabe | 20530 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20531 | conftest$ac_exeext conftest.$ac_ext |
20532 | LIBS=$ac_check_lib_save_LIBS | |
20533 | fi | |
a106dabe | 20534 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanl" >&5 |
20535 | echo "${ECHO_T}$ac_cv_lib_m_atanl" >&6 | |
d213114b | 20536 | if test $ac_cv_lib_m_atanl = yes; then |
8f838781 | 20537 | |
20538 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20539 | #define HAVE_ATANL 1 |
8f838781 | 20540 | _ACEOF |
20541 | ||
20542 | fi | |
20543 | ||
a106dabe | 20544 | echo "$as_me:$LINENO: checking for atanhf in -lm" >&5 |
20545 | echo $ECHO_N "checking for atanhf in -lm... $ECHO_C" >&6 | |
d213114b | 20546 | if test "${ac_cv_lib_m_atanhf+set}" = set; then |
14c3c235 | 20547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20548 | else | |
20549 | ac_check_lib_save_LIBS=$LIBS | |
20550 | LIBS="-lm $LIBS" | |
b52ee437 | 20551 | if test x$gcc_no_link = xyes; then |
20552 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20553 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20554 | { (exit 1); exit 1; }; } | |
20555 | fi | |
14c3c235 | 20556 | cat >conftest.$ac_ext <<_ACEOF |
20557 | /* confdefs.h. */ | |
20558 | _ACEOF | |
20559 | cat confdefs.h >>conftest.$ac_ext | |
20560 | cat >>conftest.$ac_ext <<_ACEOF | |
20561 | /* end confdefs.h. */ | |
20562 | ||
a106dabe | 20563 | /* Override any gcc2 internal prototype to avoid an error. */ |
14c3c235 | 20564 | #ifdef __cplusplus |
20565 | extern "C" | |
20566 | #endif | |
a106dabe | 20567 | /* We use char because int might match the return type of a gcc2 |
20568 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20569 | char atanhf (); |
14c3c235 | 20570 | int |
20571 | main () | |
20572 | { | |
a106dabe | 20573 | atanhf (); |
14c3c235 | 20574 | ; |
20575 | return 0; | |
20576 | } | |
20577 | _ACEOF | |
20578 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 20579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20580 | (eval $ac_link) 2>conftest.er1 | |
14c3c235 | 20581 | ac_status=$? |
20582 | grep -v '^ *+' conftest.er1 >conftest.err | |
20583 | rm -f conftest.er1 | |
20584 | cat conftest.err >&5 | |
20585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20586 | (exit $ac_status); } && | |
c0e8efbe | 20587 | { ac_try='test -z "$ac_c_werror_flag" |
20588 | || test ! -s conftest.err' | |
a106dabe | 20589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20590 | (eval $ac_try) 2>&5 | |
14c3c235 | 20591 | ac_status=$? |
20592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20593 | (exit $ac_status); }; } && | |
20594 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 20595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20596 | (eval $ac_try) 2>&5 | |
14c3c235 | 20597 | ac_status=$? |
20598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20599 | (exit $ac_status); }; }; then | |
d213114b | 20600 | ac_cv_lib_m_atanhf=yes |
14c3c235 | 20601 | else |
20602 | echo "$as_me: failed program was:" >&5 | |
20603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20604 | ||
a106dabe | 20605 | ac_cv_lib_m_atanhf=no |
14c3c235 | 20606 | fi |
a106dabe | 20607 | rm -f conftest.err conftest.$ac_objext \ |
14c3c235 | 20608 | conftest$ac_exeext conftest.$ac_ext |
20609 | LIBS=$ac_check_lib_save_LIBS | |
20610 | fi | |
a106dabe | 20611 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhf" >&5 |
20612 | echo "${ECHO_T}$ac_cv_lib_m_atanhf" >&6 | |
d213114b | 20613 | if test $ac_cv_lib_m_atanhf = yes; then |
14c3c235 | 20614 | |
20615 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20616 | #define HAVE_ATANHF 1 |
14c3c235 | 20617 | _ACEOF |
20618 | ||
20619 | fi | |
20620 | ||
a106dabe | 20621 | echo "$as_me:$LINENO: checking for atanh in -lm" >&5 |
20622 | echo $ECHO_N "checking for atanh in -lm... $ECHO_C" >&6 | |
d213114b | 20623 | if test "${ac_cv_lib_m_atanh+set}" = set; then |
8f838781 | 20624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20625 | else | |
20626 | ac_check_lib_save_LIBS=$LIBS | |
20627 | LIBS="-lm $LIBS" | |
b52ee437 | 20628 | if test x$gcc_no_link = xyes; then |
20629 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20630 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20631 | { (exit 1); exit 1; }; } | |
20632 | fi | |
8f838781 | 20633 | cat >conftest.$ac_ext <<_ACEOF |
20634 | /* confdefs.h. */ | |
20635 | _ACEOF | |
20636 | cat confdefs.h >>conftest.$ac_ext | |
20637 | cat >>conftest.$ac_ext <<_ACEOF | |
20638 | /* end confdefs.h. */ | |
20639 | ||
a106dabe | 20640 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20641 | #ifdef __cplusplus |
20642 | extern "C" | |
20643 | #endif | |
a106dabe | 20644 | /* We use char because int might match the return type of a gcc2 |
20645 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20646 | char atanh (); |
8f838781 | 20647 | int |
20648 | main () | |
20649 | { | |
a106dabe | 20650 | atanh (); |
8f838781 | 20651 | ; |
20652 | return 0; | |
20653 | } | |
20654 | _ACEOF | |
20655 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 20656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20657 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 20658 | ac_status=$? |
20659 | grep -v '^ *+' conftest.er1 >conftest.err | |
20660 | rm -f conftest.er1 | |
20661 | cat conftest.err >&5 | |
20662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20663 | (exit $ac_status); } && | |
c0e8efbe | 20664 | { ac_try='test -z "$ac_c_werror_flag" |
20665 | || test ! -s conftest.err' | |
a106dabe | 20666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20667 | (eval $ac_try) 2>&5 | |
8f838781 | 20668 | ac_status=$? |
20669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20670 | (exit $ac_status); }; } && | |
20671 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 20672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20673 | (eval $ac_try) 2>&5 | |
8f838781 | 20674 | ac_status=$? |
20675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20676 | (exit $ac_status); }; }; then | |
d213114b | 20677 | ac_cv_lib_m_atanh=yes |
8f838781 | 20678 | else |
20679 | echo "$as_me: failed program was:" >&5 | |
20680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20681 | ||
a106dabe | 20682 | ac_cv_lib_m_atanh=no |
8f838781 | 20683 | fi |
a106dabe | 20684 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20685 | conftest$ac_exeext conftest.$ac_ext |
20686 | LIBS=$ac_check_lib_save_LIBS | |
20687 | fi | |
a106dabe | 20688 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanh" >&5 |
20689 | echo "${ECHO_T}$ac_cv_lib_m_atanh" >&6 | |
d213114b | 20690 | if test $ac_cv_lib_m_atanh = yes; then |
8f838781 | 20691 | |
20692 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20693 | #define HAVE_ATANH 1 |
8f838781 | 20694 | _ACEOF |
20695 | ||
20696 | fi | |
20697 | ||
a106dabe | 20698 | echo "$as_me:$LINENO: checking for atanhl in -lm" >&5 |
20699 | echo $ECHO_N "checking for atanhl in -lm... $ECHO_C" >&6 | |
d213114b | 20700 | if test "${ac_cv_lib_m_atanhl+set}" = set; then |
8f838781 | 20701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20702 | else | |
20703 | ac_check_lib_save_LIBS=$LIBS | |
20704 | LIBS="-lm $LIBS" | |
b52ee437 | 20705 | if test x$gcc_no_link = xyes; then |
20706 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20707 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20708 | { (exit 1); exit 1; }; } | |
20709 | fi | |
8f838781 | 20710 | cat >conftest.$ac_ext <<_ACEOF |
20711 | /* confdefs.h. */ | |
20712 | _ACEOF | |
20713 | cat confdefs.h >>conftest.$ac_ext | |
20714 | cat >>conftest.$ac_ext <<_ACEOF | |
20715 | /* end confdefs.h. */ | |
20716 | ||
a106dabe | 20717 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20718 | #ifdef __cplusplus |
20719 | extern "C" | |
20720 | #endif | |
a106dabe | 20721 | /* We use char because int might match the return type of a gcc2 |
20722 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20723 | char atanhl (); |
8f838781 | 20724 | int |
20725 | main () | |
20726 | { | |
a106dabe | 20727 | atanhl (); |
8f838781 | 20728 | ; |
20729 | return 0; | |
20730 | } | |
20731 | _ACEOF | |
20732 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 20733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20734 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 20735 | ac_status=$? |
20736 | grep -v '^ *+' conftest.er1 >conftest.err | |
20737 | rm -f conftest.er1 | |
20738 | cat conftest.err >&5 | |
20739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20740 | (exit $ac_status); } && | |
c0e8efbe | 20741 | { ac_try='test -z "$ac_c_werror_flag" |
20742 | || test ! -s conftest.err' | |
a106dabe | 20743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20744 | (eval $ac_try) 2>&5 | |
8f838781 | 20745 | ac_status=$? |
20746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20747 | (exit $ac_status); }; } && | |
20748 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 20749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20750 | (eval $ac_try) 2>&5 | |
8f838781 | 20751 | ac_status=$? |
20752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20753 | (exit $ac_status); }; }; then | |
d213114b | 20754 | ac_cv_lib_m_atanhl=yes |
8f838781 | 20755 | else |
20756 | echo "$as_me: failed program was:" >&5 | |
20757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20758 | ||
a106dabe | 20759 | ac_cv_lib_m_atanhl=no |
8f838781 | 20760 | fi |
a106dabe | 20761 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20762 | conftest$ac_exeext conftest.$ac_ext |
20763 | LIBS=$ac_check_lib_save_LIBS | |
20764 | fi | |
a106dabe | 20765 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhl" >&5 |
20766 | echo "${ECHO_T}$ac_cv_lib_m_atanhl" >&6 | |
d213114b | 20767 | if test $ac_cv_lib_m_atanhl = yes; then |
8f838781 | 20768 | |
20769 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20770 | #define HAVE_ATANHL 1 |
8f838781 | 20771 | _ACEOF |
20772 | ||
20773 | fi | |
20774 | ||
a106dabe | 20775 | echo "$as_me:$LINENO: checking for cargf in -lm" >&5 |
20776 | echo $ECHO_N "checking for cargf in -lm... $ECHO_C" >&6 | |
d213114b | 20777 | if test "${ac_cv_lib_m_cargf+set}" = set; then |
a2d7a3ff | 20778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20779 | else | |
20780 | ac_check_lib_save_LIBS=$LIBS | |
20781 | LIBS="-lm $LIBS" | |
b52ee437 | 20782 | if test x$gcc_no_link = xyes; then |
20783 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20784 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20785 | { (exit 1); exit 1; }; } | |
20786 | fi | |
a2d7a3ff | 20787 | cat >conftest.$ac_ext <<_ACEOF |
20788 | /* confdefs.h. */ | |
20789 | _ACEOF | |
20790 | cat confdefs.h >>conftest.$ac_ext | |
20791 | cat >>conftest.$ac_ext <<_ACEOF | |
20792 | /* end confdefs.h. */ | |
20793 | ||
a106dabe | 20794 | /* Override any gcc2 internal prototype to avoid an error. */ |
a2d7a3ff | 20795 | #ifdef __cplusplus |
20796 | extern "C" | |
20797 | #endif | |
a106dabe | 20798 | /* We use char because int might match the return type of a gcc2 |
20799 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20800 | char cargf (); |
a2d7a3ff | 20801 | int |
20802 | main () | |
20803 | { | |
a106dabe | 20804 | cargf (); |
a2d7a3ff | 20805 | ; |
20806 | return 0; | |
20807 | } | |
20808 | _ACEOF | |
20809 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 20810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20811 | (eval $ac_link) 2>conftest.er1 | |
a2d7a3ff | 20812 | ac_status=$? |
20813 | grep -v '^ *+' conftest.er1 >conftest.err | |
20814 | rm -f conftest.er1 | |
20815 | cat conftest.err >&5 | |
20816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20817 | (exit $ac_status); } && | |
c0e8efbe | 20818 | { ac_try='test -z "$ac_c_werror_flag" |
20819 | || test ! -s conftest.err' | |
a106dabe | 20820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20821 | (eval $ac_try) 2>&5 | |
a2d7a3ff | 20822 | ac_status=$? |
20823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20824 | (exit $ac_status); }; } && | |
20825 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 20826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20827 | (eval $ac_try) 2>&5 | |
a2d7a3ff | 20828 | ac_status=$? |
20829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20830 | (exit $ac_status); }; }; then | |
d213114b | 20831 | ac_cv_lib_m_cargf=yes |
a2d7a3ff | 20832 | else |
20833 | echo "$as_me: failed program was:" >&5 | |
20834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20835 | ||
a106dabe | 20836 | ac_cv_lib_m_cargf=no |
a2d7a3ff | 20837 | fi |
a106dabe | 20838 | rm -f conftest.err conftest.$ac_objext \ |
a2d7a3ff | 20839 | conftest$ac_exeext conftest.$ac_ext |
20840 | LIBS=$ac_check_lib_save_LIBS | |
20841 | fi | |
a106dabe | 20842 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cargf" >&5 |
20843 | echo "${ECHO_T}$ac_cv_lib_m_cargf" >&6 | |
d213114b | 20844 | if test $ac_cv_lib_m_cargf = yes; then |
a2d7a3ff | 20845 | |
20846 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20847 | #define HAVE_CARGF 1 |
a2d7a3ff | 20848 | _ACEOF |
20849 | ||
20850 | fi | |
20851 | ||
a106dabe | 20852 | echo "$as_me:$LINENO: checking for carg in -lm" >&5 |
20853 | echo $ECHO_N "checking for carg in -lm... $ECHO_C" >&6 | |
d213114b | 20854 | if test "${ac_cv_lib_m_carg+set}" = set; then |
a31bd8a4 | 20855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20856 | else | |
20857 | ac_check_lib_save_LIBS=$LIBS | |
20858 | LIBS="-lm $LIBS" | |
b52ee437 | 20859 | if test x$gcc_no_link = xyes; then |
20860 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20861 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20862 | { (exit 1); exit 1; }; } | |
20863 | fi | |
a31bd8a4 | 20864 | cat >conftest.$ac_ext <<_ACEOF |
20865 | /* confdefs.h. */ | |
20866 | _ACEOF | |
20867 | cat confdefs.h >>conftest.$ac_ext | |
20868 | cat >>conftest.$ac_ext <<_ACEOF | |
20869 | /* end confdefs.h. */ | |
20870 | ||
a106dabe | 20871 | /* Override any gcc2 internal prototype to avoid an error. */ |
a31bd8a4 | 20872 | #ifdef __cplusplus |
20873 | extern "C" | |
20874 | #endif | |
a106dabe | 20875 | /* We use char because int might match the return type of a gcc2 |
20876 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20877 | char carg (); |
8f838781 | 20878 | int |
20879 | main () | |
20880 | { | |
a106dabe | 20881 | carg (); |
8f838781 | 20882 | ; |
20883 | return 0; | |
20884 | } | |
20885 | _ACEOF | |
20886 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 20887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20888 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 20889 | ac_status=$? |
20890 | grep -v '^ *+' conftest.er1 >conftest.err | |
20891 | rm -f conftest.er1 | |
20892 | cat conftest.err >&5 | |
20893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20894 | (exit $ac_status); } && | |
c0e8efbe | 20895 | { ac_try='test -z "$ac_c_werror_flag" |
20896 | || test ! -s conftest.err' | |
a106dabe | 20897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20898 | (eval $ac_try) 2>&5 | |
8f838781 | 20899 | ac_status=$? |
20900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20901 | (exit $ac_status); }; } && | |
20902 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 20903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20904 | (eval $ac_try) 2>&5 | |
8f838781 | 20905 | ac_status=$? |
20906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20907 | (exit $ac_status); }; }; then | |
d213114b | 20908 | ac_cv_lib_m_carg=yes |
8f838781 | 20909 | else |
20910 | echo "$as_me: failed program was:" >&5 | |
20911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20912 | ||
a106dabe | 20913 | ac_cv_lib_m_carg=no |
8f838781 | 20914 | fi |
a106dabe | 20915 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20916 | conftest$ac_exeext conftest.$ac_ext |
20917 | LIBS=$ac_check_lib_save_LIBS | |
20918 | fi | |
a106dabe | 20919 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_carg" >&5 |
20920 | echo "${ECHO_T}$ac_cv_lib_m_carg" >&6 | |
d213114b | 20921 | if test $ac_cv_lib_m_carg = yes; then |
8f838781 | 20922 | |
20923 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20924 | #define HAVE_CARG 1 |
8f838781 | 20925 | _ACEOF |
20926 | ||
20927 | fi | |
20928 | ||
a106dabe | 20929 | echo "$as_me:$LINENO: checking for cargl in -lm" >&5 |
20930 | echo $ECHO_N "checking for cargl in -lm... $ECHO_C" >&6 | |
d213114b | 20931 | if test "${ac_cv_lib_m_cargl+set}" = set; then |
8f838781 | 20932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20933 | else | |
20934 | ac_check_lib_save_LIBS=$LIBS | |
20935 | LIBS="-lm $LIBS" | |
b52ee437 | 20936 | if test x$gcc_no_link = xyes; then |
20937 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20938 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20939 | { (exit 1); exit 1; }; } | |
20940 | fi | |
8f838781 | 20941 | cat >conftest.$ac_ext <<_ACEOF |
20942 | /* confdefs.h. */ | |
20943 | _ACEOF | |
20944 | cat confdefs.h >>conftest.$ac_ext | |
20945 | cat >>conftest.$ac_ext <<_ACEOF | |
20946 | /* end confdefs.h. */ | |
20947 | ||
a106dabe | 20948 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20949 | #ifdef __cplusplus |
20950 | extern "C" | |
20951 | #endif | |
a106dabe | 20952 | /* We use char because int might match the return type of a gcc2 |
20953 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20954 | char cargl (); |
a31bd8a4 | 20955 | int |
20956 | main () | |
20957 | { | |
a106dabe | 20958 | cargl (); |
a31bd8a4 | 20959 | ; |
20960 | return 0; | |
20961 | } | |
20962 | _ACEOF | |
20963 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 20964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
20965 | (eval $ac_link) 2>conftest.er1 | |
a31bd8a4 | 20966 | ac_status=$? |
20967 | grep -v '^ *+' conftest.er1 >conftest.err | |
20968 | rm -f conftest.er1 | |
20969 | cat conftest.err >&5 | |
20970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20971 | (exit $ac_status); } && | |
c0e8efbe | 20972 | { ac_try='test -z "$ac_c_werror_flag" |
20973 | || test ! -s conftest.err' | |
a106dabe | 20974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20975 | (eval $ac_try) 2>&5 | |
a31bd8a4 | 20976 | ac_status=$? |
20977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20978 | (exit $ac_status); }; } && | |
20979 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 20980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20981 | (eval $ac_try) 2>&5 | |
a31bd8a4 | 20982 | ac_status=$? |
20983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20984 | (exit $ac_status); }; }; then | |
d213114b | 20985 | ac_cv_lib_m_cargl=yes |
a31bd8a4 | 20986 | else |
20987 | echo "$as_me: failed program was:" >&5 | |
20988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20989 | ||
a106dabe | 20990 | ac_cv_lib_m_cargl=no |
a31bd8a4 | 20991 | fi |
a106dabe | 20992 | rm -f conftest.err conftest.$ac_objext \ |
a31bd8a4 | 20993 | conftest$ac_exeext conftest.$ac_ext |
20994 | LIBS=$ac_check_lib_save_LIBS | |
20995 | fi | |
a106dabe | 20996 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cargl" >&5 |
20997 | echo "${ECHO_T}$ac_cv_lib_m_cargl" >&6 | |
d213114b | 20998 | if test $ac_cv_lib_m_cargl = yes; then |
a31bd8a4 | 20999 | |
21000 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21001 | #define HAVE_CARGL 1 |
a31bd8a4 | 21002 | _ACEOF |
21003 | ||
21004 | fi | |
21005 | ||
a106dabe | 21006 | echo "$as_me:$LINENO: checking for ceilf in -lm" >&5 |
21007 | echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6 | |
d213114b | 21008 | if test "${ac_cv_lib_m_ceilf+set}" = set; then |
a31bd8a4 | 21009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21010 | else | |
21011 | ac_check_lib_save_LIBS=$LIBS | |
21012 | LIBS="-lm $LIBS" | |
b52ee437 | 21013 | if test x$gcc_no_link = xyes; then |
21014 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21015 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21016 | { (exit 1); exit 1; }; } | |
21017 | fi | |
a31bd8a4 | 21018 | cat >conftest.$ac_ext <<_ACEOF |
21019 | /* confdefs.h. */ | |
21020 | _ACEOF | |
21021 | cat confdefs.h >>conftest.$ac_ext | |
21022 | cat >>conftest.$ac_ext <<_ACEOF | |
21023 | /* end confdefs.h. */ | |
21024 | ||
a106dabe | 21025 | /* Override any gcc2 internal prototype to avoid an error. */ |
a31bd8a4 | 21026 | #ifdef __cplusplus |
21027 | extern "C" | |
21028 | #endif | |
a106dabe | 21029 | /* We use char because int might match the return type of a gcc2 |
21030 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21031 | char ceilf (); |
a31bd8a4 | 21032 | int |
21033 | main () | |
21034 | { | |
a106dabe | 21035 | ceilf (); |
a31bd8a4 | 21036 | ; |
21037 | return 0; | |
21038 | } | |
21039 | _ACEOF | |
21040 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 21041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21042 | (eval $ac_link) 2>conftest.er1 | |
a31bd8a4 | 21043 | ac_status=$? |
21044 | grep -v '^ *+' conftest.er1 >conftest.err | |
21045 | rm -f conftest.er1 | |
21046 | cat conftest.err >&5 | |
21047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21048 | (exit $ac_status); } && | |
c0e8efbe | 21049 | { ac_try='test -z "$ac_c_werror_flag" |
21050 | || test ! -s conftest.err' | |
a106dabe | 21051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21052 | (eval $ac_try) 2>&5 | |
a31bd8a4 | 21053 | ac_status=$? |
21054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21055 | (exit $ac_status); }; } && | |
21056 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 21057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21058 | (eval $ac_try) 2>&5 | |
a31bd8a4 | 21059 | ac_status=$? |
21060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21061 | (exit $ac_status); }; }; then | |
d213114b | 21062 | ac_cv_lib_m_ceilf=yes |
a31bd8a4 | 21063 | else |
21064 | echo "$as_me: failed program was:" >&5 | |
21065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21066 | ||
a106dabe | 21067 | ac_cv_lib_m_ceilf=no |
a31bd8a4 | 21068 | fi |
a106dabe | 21069 | rm -f conftest.err conftest.$ac_objext \ |
a31bd8a4 | 21070 | conftest$ac_exeext conftest.$ac_ext |
21071 | LIBS=$ac_check_lib_save_LIBS | |
21072 | fi | |
a106dabe | 21073 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5 |
21074 | echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6 | |
d213114b | 21075 | if test $ac_cv_lib_m_ceilf = yes; then |
a31bd8a4 | 21076 | |
21077 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21078 | #define HAVE_CEILF 1 |
a31bd8a4 | 21079 | _ACEOF |
21080 | ||
21081 | fi | |
21082 | ||
a106dabe | 21083 | echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
21084 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6 | |
d213114b | 21085 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
97844b15 | 21086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21087 | else | |
21088 | ac_check_lib_save_LIBS=$LIBS | |
21089 | LIBS="-lm $LIBS" | |
b52ee437 | 21090 | if test x$gcc_no_link = xyes; then |
21091 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21092 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21093 | { (exit 1); exit 1; }; } | |
21094 | fi | |
97844b15 | 21095 | cat >conftest.$ac_ext <<_ACEOF |
21096 | /* confdefs.h. */ | |
21097 | _ACEOF | |
21098 | cat confdefs.h >>conftest.$ac_ext | |
21099 | cat >>conftest.$ac_ext <<_ACEOF | |
21100 | /* end confdefs.h. */ | |
21101 | ||
a106dabe | 21102 | /* Override any gcc2 internal prototype to avoid an error. */ |
97844b15 | 21103 | #ifdef __cplusplus |
21104 | extern "C" | |
21105 | #endif | |
a106dabe | 21106 | /* We use char because int might match the return type of a gcc2 |
21107 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21108 | char ceil (); |
97844b15 | 21109 | int |
21110 | main () | |
21111 | { | |
a106dabe | 21112 | ceil (); |
97844b15 | 21113 | ; |
21114 | return 0; | |
21115 | } | |
21116 | _ACEOF | |
21117 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 21118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21119 | (eval $ac_link) 2>conftest.er1 | |
97844b15 | 21120 | ac_status=$? |
21121 | grep -v '^ *+' conftest.er1 >conftest.err | |
21122 | rm -f conftest.er1 | |
21123 | cat conftest.err >&5 | |
21124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21125 | (exit $ac_status); } && | |
c0e8efbe | 21126 | { ac_try='test -z "$ac_c_werror_flag" |
21127 | || test ! -s conftest.err' | |
a106dabe | 21128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21129 | (eval $ac_try) 2>&5 | |
97844b15 | 21130 | ac_status=$? |
21131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21132 | (exit $ac_status); }; } && | |
21133 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 21134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21135 | (eval $ac_try) 2>&5 | |
97844b15 | 21136 | ac_status=$? |
21137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21138 | (exit $ac_status); }; }; then | |
d213114b | 21139 | ac_cv_lib_m_ceil=yes |
97844b15 | 21140 | else |
21141 | echo "$as_me: failed program was:" >&5 | |
21142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21143 | ||
a106dabe | 21144 | ac_cv_lib_m_ceil=no |
97844b15 | 21145 | fi |
a106dabe | 21146 | rm -f conftest.err conftest.$ac_objext \ |
97844b15 | 21147 | conftest$ac_exeext conftest.$ac_ext |
21148 | LIBS=$ac_check_lib_save_LIBS | |
21149 | fi | |
a106dabe | 21150 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
21151 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6 | |
d213114b | 21152 | if test $ac_cv_lib_m_ceil = yes; then |
97844b15 | 21153 | |
21154 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21155 | #define HAVE_CEIL 1 |
97844b15 | 21156 | _ACEOF |
21157 | ||
21158 | fi | |
21159 | ||
a106dabe | 21160 | echo "$as_me:$LINENO: checking for ceill in -lm" >&5 |
21161 | echo $ECHO_N "checking for ceill in -lm... $ECHO_C" >&6 | |
d213114b | 21162 | if test "${ac_cv_lib_m_ceill+set}" = set; then |
4db2deda | 21163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21164 | else | |
21165 | ac_check_lib_save_LIBS=$LIBS | |
21166 | LIBS="-lm $LIBS" | |
b52ee437 | 21167 | if test x$gcc_no_link = xyes; then |
21168 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21169 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21170 | { (exit 1); exit 1; }; } | |
21171 | fi | |
4db2deda | 21172 | cat >conftest.$ac_ext <<_ACEOF |
21173 | /* confdefs.h. */ | |
21174 | _ACEOF | |
21175 | cat confdefs.h >>conftest.$ac_ext | |
21176 | cat >>conftest.$ac_ext <<_ACEOF | |
21177 | /* end confdefs.h. */ | |
21178 | ||
a106dabe | 21179 | /* Override any gcc2 internal prototype to avoid an error. */ |
4db2deda | 21180 | #ifdef __cplusplus |
21181 | extern "C" | |
21182 | #endif | |
a106dabe | 21183 | /* We use char because int might match the return type of a gcc2 |
21184 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21185 | char ceill (); |
4db2deda | 21186 | int |
21187 | main () | |
21188 | { | |
a106dabe | 21189 | ceill (); |
4db2deda | 21190 | ; |
21191 | return 0; | |
21192 | } | |
21193 | _ACEOF | |
21194 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 21195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21196 | (eval $ac_link) 2>conftest.er1 | |
4db2deda | 21197 | ac_status=$? |
21198 | grep -v '^ *+' conftest.er1 >conftest.err | |
21199 | rm -f conftest.er1 | |
21200 | cat conftest.err >&5 | |
21201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21202 | (exit $ac_status); } && | |
c0e8efbe | 21203 | { ac_try='test -z "$ac_c_werror_flag" |
21204 | || test ! -s conftest.err' | |
a106dabe | 21205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21206 | (eval $ac_try) 2>&5 | |
4db2deda | 21207 | ac_status=$? |
21208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21209 | (exit $ac_status); }; } && | |
21210 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 21211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21212 | (eval $ac_try) 2>&5 | |
4db2deda | 21213 | ac_status=$? |
21214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21215 | (exit $ac_status); }; }; then | |
d213114b | 21216 | ac_cv_lib_m_ceill=yes |
4db2deda | 21217 | else |
21218 | echo "$as_me: failed program was:" >&5 | |
21219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21220 | ||
a106dabe | 21221 | ac_cv_lib_m_ceill=no |
4db2deda | 21222 | fi |
a106dabe | 21223 | rm -f conftest.err conftest.$ac_objext \ |
4db2deda | 21224 | conftest$ac_exeext conftest.$ac_ext |
21225 | LIBS=$ac_check_lib_save_LIBS | |
21226 | fi | |
a106dabe | 21227 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceill" >&5 |
21228 | echo "${ECHO_T}$ac_cv_lib_m_ceill" >&6 | |
d213114b | 21229 | if test $ac_cv_lib_m_ceill = yes; then |
4db2deda | 21230 | |
21231 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21232 | #define HAVE_CEILL 1 |
4db2deda | 21233 | _ACEOF |
21234 | ||
21235 | fi | |
21236 | ||
a106dabe | 21237 | echo "$as_me:$LINENO: checking for copysignf in -lm" >&5 |
21238 | echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6 | |
d213114b | 21239 | if test "${ac_cv_lib_m_copysignf+set}" = set; then |
4db2deda | 21240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21241 | else | |
21242 | ac_check_lib_save_LIBS=$LIBS | |
21243 | LIBS="-lm $LIBS" | |
b52ee437 | 21244 | if test x$gcc_no_link = xyes; then |
21245 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21246 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21247 | { (exit 1); exit 1; }; } | |
21248 | fi | |
4db2deda | 21249 | cat >conftest.$ac_ext <<_ACEOF |
21250 | /* confdefs.h. */ | |
21251 | _ACEOF | |
21252 | cat confdefs.h >>conftest.$ac_ext | |
21253 | cat >>conftest.$ac_ext <<_ACEOF | |
21254 | /* end confdefs.h. */ | |
21255 | ||
a106dabe | 21256 | /* Override any gcc2 internal prototype to avoid an error. */ |
4db2deda | 21257 | #ifdef __cplusplus |
21258 | extern "C" | |
21259 | #endif | |
a106dabe | 21260 | /* We use char because int might match the return type of a gcc2 |
21261 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21262 | char copysignf (); |
4db2deda | 21263 | int |
21264 | main () | |
21265 | { | |
a106dabe | 21266 | copysignf (); |
4db2deda | 21267 | ; |
21268 | return 0; | |
21269 | } | |
21270 | _ACEOF | |
21271 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 21272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21273 | (eval $ac_link) 2>conftest.er1 | |
4db2deda | 21274 | ac_status=$? |
21275 | grep -v '^ *+' conftest.er1 >conftest.err | |
21276 | rm -f conftest.er1 | |
21277 | cat conftest.err >&5 | |
21278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21279 | (exit $ac_status); } && | |
c0e8efbe | 21280 | { ac_try='test -z "$ac_c_werror_flag" |
21281 | || test ! -s conftest.err' | |
a106dabe | 21282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21283 | (eval $ac_try) 2>&5 | |
4db2deda | 21284 | ac_status=$? |
21285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21286 | (exit $ac_status); }; } && | |
21287 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 21288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21289 | (eval $ac_try) 2>&5 | |
4db2deda | 21290 | ac_status=$? |
21291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21292 | (exit $ac_status); }; }; then | |
d213114b | 21293 | ac_cv_lib_m_copysignf=yes |
4db2deda | 21294 | else |
21295 | echo "$as_me: failed program was:" >&5 | |
21296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21297 | ||
a106dabe | 21298 | ac_cv_lib_m_copysignf=no |
4db2deda | 21299 | fi |
a106dabe | 21300 | rm -f conftest.err conftest.$ac_objext \ |
4db2deda | 21301 | conftest$ac_exeext conftest.$ac_ext |
21302 | LIBS=$ac_check_lib_save_LIBS | |
21303 | fi | |
a106dabe | 21304 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5 |
21305 | echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6 | |
d213114b | 21306 | if test $ac_cv_lib_m_copysignf = yes; then |
4db2deda | 21307 | |
21308 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21309 | #define HAVE_COPYSIGNF 1 |
8f838781 | 21310 | _ACEOF |
21311 | ||
21312 | fi | |
21313 | ||
a106dabe | 21314 | echo "$as_me:$LINENO: checking for copysign in -lm" >&5 |
21315 | echo $ECHO_N "checking for copysign in -lm... $ECHO_C" >&6 | |
d213114b | 21316 | if test "${ac_cv_lib_m_copysign+set}" = set; then |
8f838781 | 21317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21318 | else | |
21319 | ac_check_lib_save_LIBS=$LIBS | |
21320 | LIBS="-lm $LIBS" | |
b52ee437 | 21321 | if test x$gcc_no_link = xyes; then |
21322 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21323 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21324 | { (exit 1); exit 1; }; } | |
21325 | fi | |
8f838781 | 21326 | cat >conftest.$ac_ext <<_ACEOF |
21327 | /* confdefs.h. */ | |
21328 | _ACEOF | |
21329 | cat confdefs.h >>conftest.$ac_ext | |
21330 | cat >>conftest.$ac_ext <<_ACEOF | |
21331 | /* end confdefs.h. */ | |
21332 | ||
a106dabe | 21333 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 21334 | #ifdef __cplusplus |
21335 | extern "C" | |
21336 | #endif | |
a106dabe | 21337 | /* We use char because int might match the return type of a gcc2 |
21338 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21339 | char copysign (); |
8f838781 | 21340 | int |
21341 | main () | |
21342 | { | |
a106dabe | 21343 | copysign (); |
8f838781 | 21344 | ; |
21345 | return 0; | |
21346 | } | |
21347 | _ACEOF | |
21348 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 21349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21350 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 21351 | ac_status=$? |
21352 | grep -v '^ *+' conftest.er1 >conftest.err | |
21353 | rm -f conftest.er1 | |
21354 | cat conftest.err >&5 | |
21355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21356 | (exit $ac_status); } && | |
c0e8efbe | 21357 | { ac_try='test -z "$ac_c_werror_flag" |
21358 | || test ! -s conftest.err' | |
a106dabe | 21359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21360 | (eval $ac_try) 2>&5 | |
8f838781 | 21361 | ac_status=$? |
21362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21363 | (exit $ac_status); }; } && | |
21364 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 21365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21366 | (eval $ac_try) 2>&5 | |
8f838781 | 21367 | ac_status=$? |
21368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21369 | (exit $ac_status); }; }; then | |
d213114b | 21370 | ac_cv_lib_m_copysign=yes |
8f838781 | 21371 | else |
21372 | echo "$as_me: failed program was:" >&5 | |
21373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21374 | ||
a106dabe | 21375 | ac_cv_lib_m_copysign=no |
8f838781 | 21376 | fi |
a106dabe | 21377 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 21378 | conftest$ac_exeext conftest.$ac_ext |
21379 | LIBS=$ac_check_lib_save_LIBS | |
21380 | fi | |
a106dabe | 21381 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysign" >&5 |
21382 | echo "${ECHO_T}$ac_cv_lib_m_copysign" >&6 | |
d213114b | 21383 | if test $ac_cv_lib_m_copysign = yes; then |
8f838781 | 21384 | |
21385 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21386 | #define HAVE_COPYSIGN 1 |
8f838781 | 21387 | _ACEOF |
21388 | ||
21389 | fi | |
21390 | ||
a106dabe | 21391 | echo "$as_me:$LINENO: checking for copysignl in -lm" >&5 |
21392 | echo $ECHO_N "checking for copysignl in -lm... $ECHO_C" >&6 | |
d213114b | 21393 | if test "${ac_cv_lib_m_copysignl+set}" = set; then |
8f838781 | 21394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21395 | else | |
21396 | ac_check_lib_save_LIBS=$LIBS | |
21397 | LIBS="-lm $LIBS" | |
b52ee437 | 21398 | if test x$gcc_no_link = xyes; then |
21399 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21400 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21401 | { (exit 1); exit 1; }; } | |
21402 | fi | |
8f838781 | 21403 | cat >conftest.$ac_ext <<_ACEOF |
21404 | /* confdefs.h. */ | |
21405 | _ACEOF | |
21406 | cat confdefs.h >>conftest.$ac_ext | |
21407 | cat >>conftest.$ac_ext <<_ACEOF | |
21408 | /* end confdefs.h. */ | |
21409 | ||
a106dabe | 21410 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 21411 | #ifdef __cplusplus |
21412 | extern "C" | |
21413 | #endif | |
a106dabe | 21414 | /* We use char because int might match the return type of a gcc2 |
21415 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21416 | char copysignl (); |
8f838781 | 21417 | int |
21418 | main () | |
21419 | { | |
a106dabe | 21420 | copysignl (); |
8f838781 | 21421 | ; |
21422 | return 0; | |
21423 | } | |
21424 | _ACEOF | |
21425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 21426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21427 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 21428 | ac_status=$? |
21429 | grep -v '^ *+' conftest.er1 >conftest.err | |
21430 | rm -f conftest.er1 | |
21431 | cat conftest.err >&5 | |
21432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21433 | (exit $ac_status); } && | |
c0e8efbe | 21434 | { ac_try='test -z "$ac_c_werror_flag" |
21435 | || test ! -s conftest.err' | |
a106dabe | 21436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21437 | (eval $ac_try) 2>&5 | |
8f838781 | 21438 | ac_status=$? |
21439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21440 | (exit $ac_status); }; } && | |
21441 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 21442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21443 | (eval $ac_try) 2>&5 | |
8f838781 | 21444 | ac_status=$? |
21445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21446 | (exit $ac_status); }; }; then | |
d213114b | 21447 | ac_cv_lib_m_copysignl=yes |
8f838781 | 21448 | else |
21449 | echo "$as_me: failed program was:" >&5 | |
21450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21451 | ||
a106dabe | 21452 | ac_cv_lib_m_copysignl=no |
8f838781 | 21453 | fi |
a106dabe | 21454 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 21455 | conftest$ac_exeext conftest.$ac_ext |
21456 | LIBS=$ac_check_lib_save_LIBS | |
21457 | fi | |
a106dabe | 21458 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignl" >&5 |
21459 | echo "${ECHO_T}$ac_cv_lib_m_copysignl" >&6 | |
d213114b | 21460 | if test $ac_cv_lib_m_copysignl = yes; then |
8f838781 | 21461 | |
21462 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21463 | #define HAVE_COPYSIGNL 1 |
8f838781 | 21464 | _ACEOF |
21465 | ||
21466 | fi | |
21467 | ||
a106dabe | 21468 | echo "$as_me:$LINENO: checking for cosf in -lm" >&5 |
21469 | echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6 | |
d213114b | 21470 | if test "${ac_cv_lib_m_cosf+set}" = set; then |
8f838781 | 21471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21472 | else | |
21473 | ac_check_lib_save_LIBS=$LIBS | |
21474 | LIBS="-lm $LIBS" | |
b52ee437 | 21475 | if test x$gcc_no_link = xyes; then |
21476 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21477 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21478 | { (exit 1); exit 1; }; } | |
21479 | fi | |
8f838781 | 21480 | cat >conftest.$ac_ext <<_ACEOF |
21481 | /* confdefs.h. */ | |
21482 | _ACEOF | |
21483 | cat confdefs.h >>conftest.$ac_ext | |
21484 | cat >>conftest.$ac_ext <<_ACEOF | |
21485 | /* end confdefs.h. */ | |
21486 | ||
a106dabe | 21487 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 21488 | #ifdef __cplusplus |
21489 | extern "C" | |
21490 | #endif | |
a106dabe | 21491 | /* We use char because int might match the return type of a gcc2 |
21492 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21493 | char cosf (); |
8f838781 | 21494 | int |
21495 | main () | |
21496 | { | |
a106dabe | 21497 | cosf (); |
8f838781 | 21498 | ; |
21499 | return 0; | |
21500 | } | |
21501 | _ACEOF | |
21502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 21503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21504 | (eval $ac_link) 2>conftest.er1 | |
8f838781 | 21505 | ac_status=$? |
21506 | grep -v '^ *+' conftest.er1 >conftest.err | |
21507 | rm -f conftest.er1 | |
21508 | cat conftest.err >&5 | |
21509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21510 | (exit $ac_status); } && | |
c0e8efbe | 21511 | { ac_try='test -z "$ac_c_werror_flag" |
21512 | || test ! -s conftest.err' | |
a106dabe | 21513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21514 | (eval $ac_try) 2>&5 | |
8f838781 | 21515 | ac_status=$? |
21516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21517 | (exit $ac_status); }; } && | |
21518 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 21519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21520 | (eval $ac_try) 2>&5 | |
8f838781 | 21521 | ac_status=$? |
21522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21523 | (exit $ac_status); }; }; then | |
d213114b | 21524 | ac_cv_lib_m_cosf=yes |
8f838781 | 21525 | else |
21526 | echo "$as_me: failed program was:" >&5 | |
21527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21528 | ||
a106dabe | 21529 | ac_cv_lib_m_cosf=no |
8f838781 | 21530 | fi |
a106dabe | 21531 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 21532 | conftest$ac_exeext conftest.$ac_ext |
21533 | LIBS=$ac_check_lib_save_LIBS | |
21534 | fi | |
a106dabe | 21535 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5 |
21536 | echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6 | |
d213114b | 21537 | if test $ac_cv_lib_m_cosf = yes; then |
8f838781 | 21538 | |
21539 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21540 | #define HAVE_COSF 1 |
4db2deda | 21541 | _ACEOF |
21542 | ||
21543 | fi | |
21544 | ||
a106dabe | 21545 | echo "$as_me:$LINENO: checking for cos in -lm" >&5 |
21546 | echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 | |
d213114b | 21547 | if test "${ac_cv_lib_m_cos+set}" = set; then |
50f0ca0a | 21548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21549 | else | |
21550 | ac_check_lib_save_LIBS=$LIBS | |
21551 | LIBS="-lm $LIBS" | |
b52ee437 | 21552 | if test x$gcc_no_link = xyes; then |
21553 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21554 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21555 | { (exit 1); exit 1; }; } | |
21556 | fi | |
50f0ca0a | 21557 | cat >conftest.$ac_ext <<_ACEOF |
21558 | /* confdefs.h. */ | |
21559 | _ACEOF | |
21560 | cat confdefs.h >>conftest.$ac_ext | |
21561 | cat >>conftest.$ac_ext <<_ACEOF | |
21562 | /* end confdefs.h. */ | |
21563 | ||
a106dabe | 21564 | /* Override any gcc2 internal prototype to avoid an error. */ |
50f0ca0a | 21565 | #ifdef __cplusplus |
21566 | extern "C" | |
21567 | #endif | |
a106dabe | 21568 | /* We use char because int might match the return type of a gcc2 |
21569 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21570 | char cos (); |
50f0ca0a | 21571 | int |
21572 | main () | |
21573 | { | |
a106dabe | 21574 | cos (); |
50f0ca0a | 21575 | ; |
21576 | return 0; | |
21577 | } | |
21578 | _ACEOF | |
21579 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 21580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21581 | (eval $ac_link) 2>conftest.er1 | |
50f0ca0a | 21582 | ac_status=$? |
21583 | grep -v '^ *+' conftest.er1 >conftest.err | |
21584 | rm -f conftest.er1 | |
21585 | cat conftest.err >&5 | |
21586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21587 | (exit $ac_status); } && | |
c0e8efbe | 21588 | { ac_try='test -z "$ac_c_werror_flag" |
21589 | || test ! -s conftest.err' | |
a106dabe | 21590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21591 | (eval $ac_try) 2>&5 | |
50f0ca0a | 21592 | ac_status=$? |
21593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21594 | (exit $ac_status); }; } && | |
21595 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 21596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21597 | (eval $ac_try) 2>&5 | |
50f0ca0a | 21598 | ac_status=$? |
21599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21600 | (exit $ac_status); }; }; then | |
d213114b | 21601 | ac_cv_lib_m_cos=yes |
50f0ca0a | 21602 | else |
21603 | echo "$as_me: failed program was:" >&5 | |
21604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21605 | ||
a106dabe | 21606 | ac_cv_lib_m_cos=no |
50f0ca0a | 21607 | fi |
a106dabe | 21608 | rm -f conftest.err conftest.$ac_objext \ |
50f0ca0a | 21609 | conftest$ac_exeext conftest.$ac_ext |
21610 | LIBS=$ac_check_lib_save_LIBS | |
21611 | fi | |
a106dabe | 21612 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 |
21613 | echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 | |
d213114b | 21614 | if test $ac_cv_lib_m_cos = yes; then |
50f0ca0a | 21615 | |
21616 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21617 | #define HAVE_COS 1 |
21618 | _ACEOF | |
21619 | ||
21620 | fi | |
21621 | ||
a106dabe | 21622 | echo "$as_me:$LINENO: checking for cosl in -lm" >&5 |
21623 | echo $ECHO_N "checking for cosl in -lm... $ECHO_C" >&6 | |
d213114b | 21624 | if test "${ac_cv_lib_m_cosl+set}" = set; then |
21625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21626 | else | |
21627 | ac_check_lib_save_LIBS=$LIBS | |
21628 | LIBS="-lm $LIBS" | |
21629 | if test x$gcc_no_link = xyes; then | |
21630 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21631 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21632 | { (exit 1); exit 1; }; } | |
21633 | fi | |
21634 | cat >conftest.$ac_ext <<_ACEOF | |
21635 | /* confdefs.h. */ | |
21636 | _ACEOF | |
21637 | cat confdefs.h >>conftest.$ac_ext | |
21638 | cat >>conftest.$ac_ext <<_ACEOF | |
21639 | /* end confdefs.h. */ | |
21640 | ||
a106dabe | 21641 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 21642 | #ifdef __cplusplus |
21643 | extern "C" | |
21644 | #endif | |
a106dabe | 21645 | /* We use char because int might match the return type of a gcc2 |
21646 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21647 | char cosl (); |
21648 | int | |
21649 | main () | |
21650 | { | |
a106dabe | 21651 | cosl (); |
d213114b | 21652 | ; |
21653 | return 0; | |
21654 | } | |
21655 | _ACEOF | |
21656 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 21657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21658 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 21659 | ac_status=$? |
21660 | grep -v '^ *+' conftest.er1 >conftest.err | |
21661 | rm -f conftest.er1 | |
21662 | cat conftest.err >&5 | |
21663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21664 | (exit $ac_status); } && | |
c0e8efbe | 21665 | { ac_try='test -z "$ac_c_werror_flag" |
21666 | || test ! -s conftest.err' | |
a106dabe | 21667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21668 | (eval $ac_try) 2>&5 | |
d213114b | 21669 | ac_status=$? |
21670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21671 | (exit $ac_status); }; } && | |
21672 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 21673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21674 | (eval $ac_try) 2>&5 | |
d213114b | 21675 | ac_status=$? |
21676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21677 | (exit $ac_status); }; }; then | |
21678 | ac_cv_lib_m_cosl=yes | |
21679 | else | |
21680 | echo "$as_me: failed program was:" >&5 | |
21681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21682 | ||
a106dabe | 21683 | ac_cv_lib_m_cosl=no |
d213114b | 21684 | fi |
a106dabe | 21685 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 21686 | conftest$ac_exeext conftest.$ac_ext |
21687 | LIBS=$ac_check_lib_save_LIBS | |
21688 | fi | |
a106dabe | 21689 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosl" >&5 |
21690 | echo "${ECHO_T}$ac_cv_lib_m_cosl" >&6 | |
d213114b | 21691 | if test $ac_cv_lib_m_cosl = yes; then |
21692 | ||
21693 | cat >>confdefs.h <<\_ACEOF | |
21694 | #define HAVE_COSL 1 | |
21695 | _ACEOF | |
21696 | ||
21697 | fi | |
21698 | ||
a106dabe | 21699 | echo "$as_me:$LINENO: checking for ccosf in -lm" >&5 |
21700 | echo $ECHO_N "checking for ccosf in -lm... $ECHO_C" >&6 | |
d213114b | 21701 | if test "${ac_cv_lib_m_ccosf+set}" = set; then |
21702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21703 | else | |
21704 | ac_check_lib_save_LIBS=$LIBS | |
21705 | LIBS="-lm $LIBS" | |
21706 | if test x$gcc_no_link = xyes; then | |
21707 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21708 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21709 | { (exit 1); exit 1; }; } | |
21710 | fi | |
21711 | cat >conftest.$ac_ext <<_ACEOF | |
21712 | /* confdefs.h. */ | |
21713 | _ACEOF | |
21714 | cat confdefs.h >>conftest.$ac_ext | |
21715 | cat >>conftest.$ac_ext <<_ACEOF | |
21716 | /* end confdefs.h. */ | |
21717 | ||
a106dabe | 21718 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 21719 | #ifdef __cplusplus |
21720 | extern "C" | |
21721 | #endif | |
a106dabe | 21722 | /* We use char because int might match the return type of a gcc2 |
21723 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21724 | char ccosf (); |
21725 | int | |
21726 | main () | |
21727 | { | |
a106dabe | 21728 | ccosf (); |
d213114b | 21729 | ; |
21730 | return 0; | |
21731 | } | |
21732 | _ACEOF | |
21733 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 21734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21735 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 21736 | ac_status=$? |
21737 | grep -v '^ *+' conftest.er1 >conftest.err | |
21738 | rm -f conftest.er1 | |
21739 | cat conftest.err >&5 | |
21740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21741 | (exit $ac_status); } && | |
c0e8efbe | 21742 | { ac_try='test -z "$ac_c_werror_flag" |
21743 | || test ! -s conftest.err' | |
a106dabe | 21744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21745 | (eval $ac_try) 2>&5 | |
d213114b | 21746 | ac_status=$? |
21747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21748 | (exit $ac_status); }; } && | |
21749 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 21750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21751 | (eval $ac_try) 2>&5 | |
d213114b | 21752 | ac_status=$? |
21753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21754 | (exit $ac_status); }; }; then | |
21755 | ac_cv_lib_m_ccosf=yes | |
21756 | else | |
21757 | echo "$as_me: failed program was:" >&5 | |
21758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21759 | ||
a106dabe | 21760 | ac_cv_lib_m_ccosf=no |
d213114b | 21761 | fi |
a106dabe | 21762 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 21763 | conftest$ac_exeext conftest.$ac_ext |
21764 | LIBS=$ac_check_lib_save_LIBS | |
21765 | fi | |
a106dabe | 21766 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosf" >&5 |
21767 | echo "${ECHO_T}$ac_cv_lib_m_ccosf" >&6 | |
d213114b | 21768 | if test $ac_cv_lib_m_ccosf = yes; then |
21769 | ||
21770 | cat >>confdefs.h <<\_ACEOF | |
21771 | #define HAVE_CCOSF 1 | |
21772 | _ACEOF | |
21773 | ||
21774 | fi | |
21775 | ||
a106dabe | 21776 | echo "$as_me:$LINENO: checking for ccos in -lm" >&5 |
21777 | echo $ECHO_N "checking for ccos in -lm... $ECHO_C" >&6 | |
d213114b | 21778 | if test "${ac_cv_lib_m_ccos+set}" = set; then |
21779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21780 | else | |
21781 | ac_check_lib_save_LIBS=$LIBS | |
21782 | LIBS="-lm $LIBS" | |
21783 | if test x$gcc_no_link = xyes; then | |
21784 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21785 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21786 | { (exit 1); exit 1; }; } | |
21787 | fi | |
21788 | cat >conftest.$ac_ext <<_ACEOF | |
21789 | /* confdefs.h. */ | |
21790 | _ACEOF | |
21791 | cat confdefs.h >>conftest.$ac_ext | |
21792 | cat >>conftest.$ac_ext <<_ACEOF | |
21793 | /* end confdefs.h. */ | |
21794 | ||
a106dabe | 21795 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 21796 | #ifdef __cplusplus |
21797 | extern "C" | |
21798 | #endif | |
a106dabe | 21799 | /* We use char because int might match the return type of a gcc2 |
21800 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21801 | char ccos (); |
21802 | int | |
21803 | main () | |
21804 | { | |
a106dabe | 21805 | ccos (); |
d213114b | 21806 | ; |
21807 | return 0; | |
21808 | } | |
21809 | _ACEOF | |
21810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 21811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21812 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 21813 | ac_status=$? |
21814 | grep -v '^ *+' conftest.er1 >conftest.err | |
21815 | rm -f conftest.er1 | |
21816 | cat conftest.err >&5 | |
21817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21818 | (exit $ac_status); } && | |
c0e8efbe | 21819 | { ac_try='test -z "$ac_c_werror_flag" |
21820 | || test ! -s conftest.err' | |
a106dabe | 21821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21822 | (eval $ac_try) 2>&5 | |
d213114b | 21823 | ac_status=$? |
21824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21825 | (exit $ac_status); }; } && | |
21826 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 21827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21828 | (eval $ac_try) 2>&5 | |
d213114b | 21829 | ac_status=$? |
21830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21831 | (exit $ac_status); }; }; then | |
21832 | ac_cv_lib_m_ccos=yes | |
21833 | else | |
21834 | echo "$as_me: failed program was:" >&5 | |
21835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21836 | ||
a106dabe | 21837 | ac_cv_lib_m_ccos=no |
d213114b | 21838 | fi |
a106dabe | 21839 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 21840 | conftest$ac_exeext conftest.$ac_ext |
21841 | LIBS=$ac_check_lib_save_LIBS | |
21842 | fi | |
a106dabe | 21843 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccos" >&5 |
21844 | echo "${ECHO_T}$ac_cv_lib_m_ccos" >&6 | |
d213114b | 21845 | if test $ac_cv_lib_m_ccos = yes; then |
21846 | ||
21847 | cat >>confdefs.h <<\_ACEOF | |
21848 | #define HAVE_CCOS 1 | |
21849 | _ACEOF | |
21850 | ||
21851 | fi | |
21852 | ||
a106dabe | 21853 | echo "$as_me:$LINENO: checking for ccosl in -lm" >&5 |
21854 | echo $ECHO_N "checking for ccosl in -lm... $ECHO_C" >&6 | |
d213114b | 21855 | if test "${ac_cv_lib_m_ccosl+set}" = set; then |
21856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21857 | else | |
21858 | ac_check_lib_save_LIBS=$LIBS | |
21859 | LIBS="-lm $LIBS" | |
21860 | if test x$gcc_no_link = xyes; then | |
21861 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21862 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21863 | { (exit 1); exit 1; }; } | |
21864 | fi | |
21865 | cat >conftest.$ac_ext <<_ACEOF | |
21866 | /* confdefs.h. */ | |
21867 | _ACEOF | |
21868 | cat confdefs.h >>conftest.$ac_ext | |
21869 | cat >>conftest.$ac_ext <<_ACEOF | |
21870 | /* end confdefs.h. */ | |
21871 | ||
a106dabe | 21872 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 21873 | #ifdef __cplusplus |
21874 | extern "C" | |
21875 | #endif | |
a106dabe | 21876 | /* We use char because int might match the return type of a gcc2 |
21877 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21878 | char ccosl (); |
21879 | int | |
21880 | main () | |
21881 | { | |
a106dabe | 21882 | ccosl (); |
d213114b | 21883 | ; |
21884 | return 0; | |
21885 | } | |
21886 | _ACEOF | |
21887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 21888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21889 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 21890 | ac_status=$? |
21891 | grep -v '^ *+' conftest.er1 >conftest.err | |
21892 | rm -f conftest.er1 | |
21893 | cat conftest.err >&5 | |
21894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21895 | (exit $ac_status); } && | |
c0e8efbe | 21896 | { ac_try='test -z "$ac_c_werror_flag" |
21897 | || test ! -s conftest.err' | |
a106dabe | 21898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21899 | (eval $ac_try) 2>&5 | |
d213114b | 21900 | ac_status=$? |
21901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21902 | (exit $ac_status); }; } && | |
21903 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 21904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21905 | (eval $ac_try) 2>&5 | |
d213114b | 21906 | ac_status=$? |
21907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21908 | (exit $ac_status); }; }; then | |
21909 | ac_cv_lib_m_ccosl=yes | |
21910 | else | |
21911 | echo "$as_me: failed program was:" >&5 | |
21912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21913 | ||
a106dabe | 21914 | ac_cv_lib_m_ccosl=no |
d213114b | 21915 | fi |
a106dabe | 21916 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 21917 | conftest$ac_exeext conftest.$ac_ext |
21918 | LIBS=$ac_check_lib_save_LIBS | |
21919 | fi | |
a106dabe | 21920 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosl" >&5 |
21921 | echo "${ECHO_T}$ac_cv_lib_m_ccosl" >&6 | |
d213114b | 21922 | if test $ac_cv_lib_m_ccosl = yes; then |
21923 | ||
21924 | cat >>confdefs.h <<\_ACEOF | |
21925 | #define HAVE_CCOSL 1 | |
21926 | _ACEOF | |
21927 | ||
21928 | fi | |
21929 | ||
a106dabe | 21930 | echo "$as_me:$LINENO: checking for coshf in -lm" >&5 |
21931 | echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6 | |
d213114b | 21932 | if test "${ac_cv_lib_m_coshf+set}" = set; then |
21933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21934 | else | |
21935 | ac_check_lib_save_LIBS=$LIBS | |
21936 | LIBS="-lm $LIBS" | |
21937 | if test x$gcc_no_link = xyes; then | |
21938 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21939 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21940 | { (exit 1); exit 1; }; } | |
21941 | fi | |
21942 | cat >conftest.$ac_ext <<_ACEOF | |
21943 | /* confdefs.h. */ | |
21944 | _ACEOF | |
21945 | cat confdefs.h >>conftest.$ac_ext | |
21946 | cat >>conftest.$ac_ext <<_ACEOF | |
21947 | /* end confdefs.h. */ | |
21948 | ||
a106dabe | 21949 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 21950 | #ifdef __cplusplus |
21951 | extern "C" | |
21952 | #endif | |
a106dabe | 21953 | /* We use char because int might match the return type of a gcc2 |
21954 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21955 | char coshf (); |
21956 | int | |
21957 | main () | |
21958 | { | |
a106dabe | 21959 | coshf (); |
d213114b | 21960 | ; |
21961 | return 0; | |
21962 | } | |
21963 | _ACEOF | |
21964 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 21965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
21966 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 21967 | ac_status=$? |
21968 | grep -v '^ *+' conftest.er1 >conftest.err | |
21969 | rm -f conftest.er1 | |
21970 | cat conftest.err >&5 | |
21971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21972 | (exit $ac_status); } && | |
c0e8efbe | 21973 | { ac_try='test -z "$ac_c_werror_flag" |
21974 | || test ! -s conftest.err' | |
a106dabe | 21975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21976 | (eval $ac_try) 2>&5 | |
d213114b | 21977 | ac_status=$? |
21978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21979 | (exit $ac_status); }; } && | |
21980 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 21981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21982 | (eval $ac_try) 2>&5 | |
d213114b | 21983 | ac_status=$? |
21984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21985 | (exit $ac_status); }; }; then | |
21986 | ac_cv_lib_m_coshf=yes | |
21987 | else | |
21988 | echo "$as_me: failed program was:" >&5 | |
21989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21990 | ||
a106dabe | 21991 | ac_cv_lib_m_coshf=no |
d213114b | 21992 | fi |
a106dabe | 21993 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 21994 | conftest$ac_exeext conftest.$ac_ext |
21995 | LIBS=$ac_check_lib_save_LIBS | |
21996 | fi | |
a106dabe | 21997 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5 |
21998 | echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6 | |
d213114b | 21999 | if test $ac_cv_lib_m_coshf = yes; then |
22000 | ||
22001 | cat >>confdefs.h <<\_ACEOF | |
22002 | #define HAVE_COSHF 1 | |
22003 | _ACEOF | |
22004 | ||
22005 | fi | |
22006 | ||
a106dabe | 22007 | echo "$as_me:$LINENO: checking for cosh in -lm" >&5 |
22008 | echo $ECHO_N "checking for cosh in -lm... $ECHO_C" >&6 | |
d213114b | 22009 | if test "${ac_cv_lib_m_cosh+set}" = set; then |
22010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22011 | else | |
22012 | ac_check_lib_save_LIBS=$LIBS | |
22013 | LIBS="-lm $LIBS" | |
22014 | if test x$gcc_no_link = xyes; then | |
22015 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22016 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22017 | { (exit 1); exit 1; }; } | |
22018 | fi | |
22019 | cat >conftest.$ac_ext <<_ACEOF | |
22020 | /* confdefs.h. */ | |
22021 | _ACEOF | |
22022 | cat confdefs.h >>conftest.$ac_ext | |
22023 | cat >>conftest.$ac_ext <<_ACEOF | |
22024 | /* end confdefs.h. */ | |
22025 | ||
a106dabe | 22026 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22027 | #ifdef __cplusplus |
22028 | extern "C" | |
22029 | #endif | |
a106dabe | 22030 | /* We use char because int might match the return type of a gcc2 |
22031 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22032 | char cosh (); |
22033 | int | |
22034 | main () | |
22035 | { | |
a106dabe | 22036 | cosh (); |
d213114b | 22037 | ; |
22038 | return 0; | |
22039 | } | |
22040 | _ACEOF | |
22041 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 22042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22043 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 22044 | ac_status=$? |
22045 | grep -v '^ *+' conftest.er1 >conftest.err | |
22046 | rm -f conftest.er1 | |
22047 | cat conftest.err >&5 | |
22048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22049 | (exit $ac_status); } && | |
c0e8efbe | 22050 | { ac_try='test -z "$ac_c_werror_flag" |
22051 | || test ! -s conftest.err' | |
a106dabe | 22052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22053 | (eval $ac_try) 2>&5 | |
d213114b | 22054 | ac_status=$? |
22055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22056 | (exit $ac_status); }; } && | |
22057 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 22058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22059 | (eval $ac_try) 2>&5 | |
d213114b | 22060 | ac_status=$? |
22061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22062 | (exit $ac_status); }; }; then | |
22063 | ac_cv_lib_m_cosh=yes | |
22064 | else | |
22065 | echo "$as_me: failed program was:" >&5 | |
22066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22067 | ||
a106dabe | 22068 | ac_cv_lib_m_cosh=no |
d213114b | 22069 | fi |
a106dabe | 22070 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22071 | conftest$ac_exeext conftest.$ac_ext |
22072 | LIBS=$ac_check_lib_save_LIBS | |
22073 | fi | |
a106dabe | 22074 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosh" >&5 |
22075 | echo "${ECHO_T}$ac_cv_lib_m_cosh" >&6 | |
d213114b | 22076 | if test $ac_cv_lib_m_cosh = yes; then |
22077 | ||
22078 | cat >>confdefs.h <<\_ACEOF | |
22079 | #define HAVE_COSH 1 | |
22080 | _ACEOF | |
22081 | ||
22082 | fi | |
22083 | ||
a106dabe | 22084 | echo "$as_me:$LINENO: checking for coshl in -lm" >&5 |
22085 | echo $ECHO_N "checking for coshl in -lm... $ECHO_C" >&6 | |
d213114b | 22086 | if test "${ac_cv_lib_m_coshl+set}" = set; then |
22087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22088 | else | |
22089 | ac_check_lib_save_LIBS=$LIBS | |
22090 | LIBS="-lm $LIBS" | |
22091 | if test x$gcc_no_link = xyes; then | |
22092 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22093 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22094 | { (exit 1); exit 1; }; } | |
22095 | fi | |
22096 | cat >conftest.$ac_ext <<_ACEOF | |
22097 | /* confdefs.h. */ | |
22098 | _ACEOF | |
22099 | cat confdefs.h >>conftest.$ac_ext | |
22100 | cat >>conftest.$ac_ext <<_ACEOF | |
22101 | /* end confdefs.h. */ | |
22102 | ||
a106dabe | 22103 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22104 | #ifdef __cplusplus |
22105 | extern "C" | |
22106 | #endif | |
a106dabe | 22107 | /* We use char because int might match the return type of a gcc2 |
22108 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22109 | char coshl (); |
22110 | int | |
22111 | main () | |
22112 | { | |
a106dabe | 22113 | coshl (); |
d213114b | 22114 | ; |
22115 | return 0; | |
22116 | } | |
22117 | _ACEOF | |
22118 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 22119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22120 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 22121 | ac_status=$? |
22122 | grep -v '^ *+' conftest.er1 >conftest.err | |
22123 | rm -f conftest.er1 | |
22124 | cat conftest.err >&5 | |
22125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22126 | (exit $ac_status); } && | |
c0e8efbe | 22127 | { ac_try='test -z "$ac_c_werror_flag" |
22128 | || test ! -s conftest.err' | |
a106dabe | 22129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22130 | (eval $ac_try) 2>&5 | |
d213114b | 22131 | ac_status=$? |
22132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22133 | (exit $ac_status); }; } && | |
22134 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 22135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22136 | (eval $ac_try) 2>&5 | |
d213114b | 22137 | ac_status=$? |
22138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22139 | (exit $ac_status); }; }; then | |
22140 | ac_cv_lib_m_coshl=yes | |
22141 | else | |
22142 | echo "$as_me: failed program was:" >&5 | |
22143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22144 | ||
a106dabe | 22145 | ac_cv_lib_m_coshl=no |
d213114b | 22146 | fi |
a106dabe | 22147 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22148 | conftest$ac_exeext conftest.$ac_ext |
22149 | LIBS=$ac_check_lib_save_LIBS | |
22150 | fi | |
a106dabe | 22151 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshl" >&5 |
22152 | echo "${ECHO_T}$ac_cv_lib_m_coshl" >&6 | |
d213114b | 22153 | if test $ac_cv_lib_m_coshl = yes; then |
22154 | ||
22155 | cat >>confdefs.h <<\_ACEOF | |
22156 | #define HAVE_COSHL 1 | |
22157 | _ACEOF | |
22158 | ||
22159 | fi | |
22160 | ||
a106dabe | 22161 | echo "$as_me:$LINENO: checking for ccoshf in -lm" >&5 |
22162 | echo $ECHO_N "checking for ccoshf in -lm... $ECHO_C" >&6 | |
d213114b | 22163 | if test "${ac_cv_lib_m_ccoshf+set}" = set; then |
22164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22165 | else | |
22166 | ac_check_lib_save_LIBS=$LIBS | |
22167 | LIBS="-lm $LIBS" | |
22168 | if test x$gcc_no_link = xyes; then | |
22169 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22170 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22171 | { (exit 1); exit 1; }; } | |
22172 | fi | |
22173 | cat >conftest.$ac_ext <<_ACEOF | |
22174 | /* confdefs.h. */ | |
22175 | _ACEOF | |
22176 | cat confdefs.h >>conftest.$ac_ext | |
22177 | cat >>conftest.$ac_ext <<_ACEOF | |
22178 | /* end confdefs.h. */ | |
22179 | ||
a106dabe | 22180 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22181 | #ifdef __cplusplus |
22182 | extern "C" | |
22183 | #endif | |
a106dabe | 22184 | /* We use char because int might match the return type of a gcc2 |
22185 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22186 | char ccoshf (); |
22187 | int | |
22188 | main () | |
22189 | { | |
a106dabe | 22190 | ccoshf (); |
d213114b | 22191 | ; |
22192 | return 0; | |
22193 | } | |
22194 | _ACEOF | |
22195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 22196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22197 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 22198 | ac_status=$? |
22199 | grep -v '^ *+' conftest.er1 >conftest.err | |
22200 | rm -f conftest.er1 | |
22201 | cat conftest.err >&5 | |
22202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22203 | (exit $ac_status); } && | |
c0e8efbe | 22204 | { ac_try='test -z "$ac_c_werror_flag" |
22205 | || test ! -s conftest.err' | |
a106dabe | 22206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22207 | (eval $ac_try) 2>&5 | |
d213114b | 22208 | ac_status=$? |
22209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22210 | (exit $ac_status); }; } && | |
22211 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 22212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22213 | (eval $ac_try) 2>&5 | |
d213114b | 22214 | ac_status=$? |
22215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22216 | (exit $ac_status); }; }; then | |
22217 | ac_cv_lib_m_ccoshf=yes | |
22218 | else | |
22219 | echo "$as_me: failed program was:" >&5 | |
22220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22221 | ||
a106dabe | 22222 | ac_cv_lib_m_ccoshf=no |
d213114b | 22223 | fi |
a106dabe | 22224 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22225 | conftest$ac_exeext conftest.$ac_ext |
22226 | LIBS=$ac_check_lib_save_LIBS | |
22227 | fi | |
a106dabe | 22228 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccoshf" >&5 |
22229 | echo "${ECHO_T}$ac_cv_lib_m_ccoshf" >&6 | |
d213114b | 22230 | if test $ac_cv_lib_m_ccoshf = yes; then |
22231 | ||
22232 | cat >>confdefs.h <<\_ACEOF | |
22233 | #define HAVE_CCOSHF 1 | |
22234 | _ACEOF | |
22235 | ||
22236 | fi | |
22237 | ||
a106dabe | 22238 | echo "$as_me:$LINENO: checking for ccosh in -lm" >&5 |
22239 | echo $ECHO_N "checking for ccosh in -lm... $ECHO_C" >&6 | |
d213114b | 22240 | if test "${ac_cv_lib_m_ccosh+set}" = set; then |
22241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22242 | else | |
22243 | ac_check_lib_save_LIBS=$LIBS | |
22244 | LIBS="-lm $LIBS" | |
22245 | if test x$gcc_no_link = xyes; then | |
22246 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22247 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22248 | { (exit 1); exit 1; }; } | |
22249 | fi | |
22250 | cat >conftest.$ac_ext <<_ACEOF | |
22251 | /* confdefs.h. */ | |
22252 | _ACEOF | |
22253 | cat confdefs.h >>conftest.$ac_ext | |
22254 | cat >>conftest.$ac_ext <<_ACEOF | |
22255 | /* end confdefs.h. */ | |
22256 | ||
a106dabe | 22257 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22258 | #ifdef __cplusplus |
22259 | extern "C" | |
22260 | #endif | |
a106dabe | 22261 | /* We use char because int might match the return type of a gcc2 |
22262 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22263 | char ccosh (); |
22264 | int | |
22265 | main () | |
22266 | { | |
a106dabe | 22267 | ccosh (); |
d213114b | 22268 | ; |
22269 | return 0; | |
22270 | } | |
22271 | _ACEOF | |
22272 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 22273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22274 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 22275 | ac_status=$? |
22276 | grep -v '^ *+' conftest.er1 >conftest.err | |
22277 | rm -f conftest.er1 | |
22278 | cat conftest.err >&5 | |
22279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22280 | (exit $ac_status); } && | |
c0e8efbe | 22281 | { ac_try='test -z "$ac_c_werror_flag" |
22282 | || test ! -s conftest.err' | |
a106dabe | 22283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22284 | (eval $ac_try) 2>&5 | |
d213114b | 22285 | ac_status=$? |
22286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22287 | (exit $ac_status); }; } && | |
22288 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 22289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22290 | (eval $ac_try) 2>&5 | |
d213114b | 22291 | ac_status=$? |
22292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22293 | (exit $ac_status); }; }; then | |
22294 | ac_cv_lib_m_ccosh=yes | |
22295 | else | |
22296 | echo "$as_me: failed program was:" >&5 | |
22297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22298 | ||
a106dabe | 22299 | ac_cv_lib_m_ccosh=no |
d213114b | 22300 | fi |
a106dabe | 22301 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22302 | conftest$ac_exeext conftest.$ac_ext |
22303 | LIBS=$ac_check_lib_save_LIBS | |
22304 | fi | |
a106dabe | 22305 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosh" >&5 |
22306 | echo "${ECHO_T}$ac_cv_lib_m_ccosh" >&6 | |
d213114b | 22307 | if test $ac_cv_lib_m_ccosh = yes; then |
22308 | ||
22309 | cat >>confdefs.h <<\_ACEOF | |
22310 | #define HAVE_CCOSH 1 | |
22311 | _ACEOF | |
22312 | ||
22313 | fi | |
22314 | ||
a106dabe | 22315 | echo "$as_me:$LINENO: checking for ccoshl in -lm" >&5 |
22316 | echo $ECHO_N "checking for ccoshl in -lm... $ECHO_C" >&6 | |
d213114b | 22317 | if test "${ac_cv_lib_m_ccoshl+set}" = set; then |
22318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22319 | else | |
22320 | ac_check_lib_save_LIBS=$LIBS | |
22321 | LIBS="-lm $LIBS" | |
22322 | if test x$gcc_no_link = xyes; then | |
22323 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22324 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22325 | { (exit 1); exit 1; }; } | |
22326 | fi | |
22327 | cat >conftest.$ac_ext <<_ACEOF | |
22328 | /* confdefs.h. */ | |
22329 | _ACEOF | |
22330 | cat confdefs.h >>conftest.$ac_ext | |
22331 | cat >>conftest.$ac_ext <<_ACEOF | |
22332 | /* end confdefs.h. */ | |
22333 | ||
a106dabe | 22334 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22335 | #ifdef __cplusplus |
22336 | extern "C" | |
22337 | #endif | |
a106dabe | 22338 | /* We use char because int might match the return type of a gcc2 |
22339 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22340 | char ccoshl (); |
22341 | int | |
22342 | main () | |
22343 | { | |
a106dabe | 22344 | ccoshl (); |
d213114b | 22345 | ; |
22346 | return 0; | |
22347 | } | |
22348 | _ACEOF | |
22349 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 22350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22351 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 22352 | ac_status=$? |
22353 | grep -v '^ *+' conftest.er1 >conftest.err | |
22354 | rm -f conftest.er1 | |
22355 | cat conftest.err >&5 | |
22356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22357 | (exit $ac_status); } && | |
c0e8efbe | 22358 | { ac_try='test -z "$ac_c_werror_flag" |
22359 | || test ! -s conftest.err' | |
a106dabe | 22360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22361 | (eval $ac_try) 2>&5 | |
d213114b | 22362 | ac_status=$? |
22363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22364 | (exit $ac_status); }; } && | |
22365 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 22366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22367 | (eval $ac_try) 2>&5 | |
d213114b | 22368 | ac_status=$? |
22369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22370 | (exit $ac_status); }; }; then | |
22371 | ac_cv_lib_m_ccoshl=yes | |
22372 | else | |
22373 | echo "$as_me: failed program was:" >&5 | |
22374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22375 | ||
a106dabe | 22376 | ac_cv_lib_m_ccoshl=no |
d213114b | 22377 | fi |
a106dabe | 22378 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22379 | conftest$ac_exeext conftest.$ac_ext |
22380 | LIBS=$ac_check_lib_save_LIBS | |
22381 | fi | |
a106dabe | 22382 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccoshl" >&5 |
22383 | echo "${ECHO_T}$ac_cv_lib_m_ccoshl" >&6 | |
d213114b | 22384 | if test $ac_cv_lib_m_ccoshl = yes; then |
22385 | ||
22386 | cat >>confdefs.h <<\_ACEOF | |
22387 | #define HAVE_CCOSHL 1 | |
22388 | _ACEOF | |
22389 | ||
22390 | fi | |
22391 | ||
a106dabe | 22392 | echo "$as_me:$LINENO: checking for expf in -lm" >&5 |
22393 | echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6 | |
d213114b | 22394 | if test "${ac_cv_lib_m_expf+set}" = set; then |
22395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22396 | else | |
22397 | ac_check_lib_save_LIBS=$LIBS | |
22398 | LIBS="-lm $LIBS" | |
22399 | if test x$gcc_no_link = xyes; then | |
22400 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22401 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22402 | { (exit 1); exit 1; }; } | |
22403 | fi | |
22404 | cat >conftest.$ac_ext <<_ACEOF | |
22405 | /* confdefs.h. */ | |
22406 | _ACEOF | |
22407 | cat confdefs.h >>conftest.$ac_ext | |
22408 | cat >>conftest.$ac_ext <<_ACEOF | |
22409 | /* end confdefs.h. */ | |
22410 | ||
a106dabe | 22411 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22412 | #ifdef __cplusplus |
22413 | extern "C" | |
22414 | #endif | |
a106dabe | 22415 | /* We use char because int might match the return type of a gcc2 |
22416 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22417 | char expf (); |
22418 | int | |
22419 | main () | |
22420 | { | |
a106dabe | 22421 | expf (); |
d213114b | 22422 | ; |
22423 | return 0; | |
22424 | } | |
22425 | _ACEOF | |
22426 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 22427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22428 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 22429 | ac_status=$? |
22430 | grep -v '^ *+' conftest.er1 >conftest.err | |
22431 | rm -f conftest.er1 | |
22432 | cat conftest.err >&5 | |
22433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22434 | (exit $ac_status); } && | |
c0e8efbe | 22435 | { ac_try='test -z "$ac_c_werror_flag" |
22436 | || test ! -s conftest.err' | |
a106dabe | 22437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22438 | (eval $ac_try) 2>&5 | |
d213114b | 22439 | ac_status=$? |
22440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22441 | (exit $ac_status); }; } && | |
22442 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 22443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22444 | (eval $ac_try) 2>&5 | |
d213114b | 22445 | ac_status=$? |
22446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22447 | (exit $ac_status); }; }; then | |
22448 | ac_cv_lib_m_expf=yes | |
22449 | else | |
22450 | echo "$as_me: failed program was:" >&5 | |
22451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22452 | ||
a106dabe | 22453 | ac_cv_lib_m_expf=no |
d213114b | 22454 | fi |
a106dabe | 22455 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22456 | conftest$ac_exeext conftest.$ac_ext |
22457 | LIBS=$ac_check_lib_save_LIBS | |
22458 | fi | |
a106dabe | 22459 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5 |
22460 | echo "${ECHO_T}$ac_cv_lib_m_expf" >&6 | |
d213114b | 22461 | if test $ac_cv_lib_m_expf = yes; then |
22462 | ||
22463 | cat >>confdefs.h <<\_ACEOF | |
22464 | #define HAVE_EXPF 1 | |
22465 | _ACEOF | |
22466 | ||
22467 | fi | |
22468 | ||
a106dabe | 22469 | echo "$as_me:$LINENO: checking for exp in -lm" >&5 |
22470 | echo $ECHO_N "checking for exp in -lm... $ECHO_C" >&6 | |
d213114b | 22471 | if test "${ac_cv_lib_m_exp+set}" = set; then |
22472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22473 | else | |
22474 | ac_check_lib_save_LIBS=$LIBS | |
22475 | LIBS="-lm $LIBS" | |
22476 | if test x$gcc_no_link = xyes; then | |
22477 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22478 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22479 | { (exit 1); exit 1; }; } | |
22480 | fi | |
22481 | cat >conftest.$ac_ext <<_ACEOF | |
22482 | /* confdefs.h. */ | |
22483 | _ACEOF | |
22484 | cat confdefs.h >>conftest.$ac_ext | |
22485 | cat >>conftest.$ac_ext <<_ACEOF | |
22486 | /* end confdefs.h. */ | |
22487 | ||
a106dabe | 22488 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22489 | #ifdef __cplusplus |
22490 | extern "C" | |
22491 | #endif | |
a106dabe | 22492 | /* We use char because int might match the return type of a gcc2 |
22493 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22494 | char exp (); |
22495 | int | |
22496 | main () | |
22497 | { | |
a106dabe | 22498 | exp (); |
d213114b | 22499 | ; |
22500 | return 0; | |
22501 | } | |
22502 | _ACEOF | |
22503 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 22504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22505 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 22506 | ac_status=$? |
22507 | grep -v '^ *+' conftest.er1 >conftest.err | |
22508 | rm -f conftest.er1 | |
22509 | cat conftest.err >&5 | |
22510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22511 | (exit $ac_status); } && | |
c0e8efbe | 22512 | { ac_try='test -z "$ac_c_werror_flag" |
22513 | || test ! -s conftest.err' | |
a106dabe | 22514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22515 | (eval $ac_try) 2>&5 | |
d213114b | 22516 | ac_status=$? |
22517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22518 | (exit $ac_status); }; } && | |
22519 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 22520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22521 | (eval $ac_try) 2>&5 | |
d213114b | 22522 | ac_status=$? |
22523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22524 | (exit $ac_status); }; }; then | |
22525 | ac_cv_lib_m_exp=yes | |
22526 | else | |
22527 | echo "$as_me: failed program was:" >&5 | |
22528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22529 | ||
a106dabe | 22530 | ac_cv_lib_m_exp=no |
d213114b | 22531 | fi |
a106dabe | 22532 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22533 | conftest$ac_exeext conftest.$ac_ext |
22534 | LIBS=$ac_check_lib_save_LIBS | |
22535 | fi | |
a106dabe | 22536 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp" >&5 |
22537 | echo "${ECHO_T}$ac_cv_lib_m_exp" >&6 | |
d213114b | 22538 | if test $ac_cv_lib_m_exp = yes; then |
22539 | ||
22540 | cat >>confdefs.h <<\_ACEOF | |
22541 | #define HAVE_EXP 1 | |
22542 | _ACEOF | |
22543 | ||
22544 | fi | |
22545 | ||
a106dabe | 22546 | echo "$as_me:$LINENO: checking for expl in -lm" >&5 |
22547 | echo $ECHO_N "checking for expl in -lm... $ECHO_C" >&6 | |
d213114b | 22548 | if test "${ac_cv_lib_m_expl+set}" = set; then |
22549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22550 | else | |
22551 | ac_check_lib_save_LIBS=$LIBS | |
22552 | LIBS="-lm $LIBS" | |
22553 | if test x$gcc_no_link = xyes; then | |
22554 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22555 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22556 | { (exit 1); exit 1; }; } | |
22557 | fi | |
22558 | cat >conftest.$ac_ext <<_ACEOF | |
22559 | /* confdefs.h. */ | |
22560 | _ACEOF | |
22561 | cat confdefs.h >>conftest.$ac_ext | |
22562 | cat >>conftest.$ac_ext <<_ACEOF | |
22563 | /* end confdefs.h. */ | |
22564 | ||
a106dabe | 22565 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22566 | #ifdef __cplusplus |
22567 | extern "C" | |
22568 | #endif | |
a106dabe | 22569 | /* We use char because int might match the return type of a gcc2 |
22570 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22571 | char expl (); |
22572 | int | |
22573 | main () | |
22574 | { | |
a106dabe | 22575 | expl (); |
d213114b | 22576 | ; |
22577 | return 0; | |
22578 | } | |
22579 | _ACEOF | |
22580 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 22581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22582 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 22583 | ac_status=$? |
22584 | grep -v '^ *+' conftest.er1 >conftest.err | |
22585 | rm -f conftest.er1 | |
22586 | cat conftest.err >&5 | |
22587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22588 | (exit $ac_status); } && | |
c0e8efbe | 22589 | { ac_try='test -z "$ac_c_werror_flag" |
22590 | || test ! -s conftest.err' | |
a106dabe | 22591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22592 | (eval $ac_try) 2>&5 | |
d213114b | 22593 | ac_status=$? |
22594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22595 | (exit $ac_status); }; } && | |
22596 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 22597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22598 | (eval $ac_try) 2>&5 | |
d213114b | 22599 | ac_status=$? |
22600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22601 | (exit $ac_status); }; }; then | |
22602 | ac_cv_lib_m_expl=yes | |
22603 | else | |
22604 | echo "$as_me: failed program was:" >&5 | |
22605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22606 | ||
a106dabe | 22607 | ac_cv_lib_m_expl=no |
d213114b | 22608 | fi |
a106dabe | 22609 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22610 | conftest$ac_exeext conftest.$ac_ext |
22611 | LIBS=$ac_check_lib_save_LIBS | |
22612 | fi | |
a106dabe | 22613 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_expl" >&5 |
22614 | echo "${ECHO_T}$ac_cv_lib_m_expl" >&6 | |
d213114b | 22615 | if test $ac_cv_lib_m_expl = yes; then |
22616 | ||
22617 | cat >>confdefs.h <<\_ACEOF | |
22618 | #define HAVE_EXPL 1 | |
22619 | _ACEOF | |
22620 | ||
22621 | fi | |
22622 | ||
a106dabe | 22623 | echo "$as_me:$LINENO: checking for cexpf in -lm" >&5 |
22624 | echo $ECHO_N "checking for cexpf in -lm... $ECHO_C" >&6 | |
d213114b | 22625 | if test "${ac_cv_lib_m_cexpf+set}" = set; then |
22626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22627 | else | |
22628 | ac_check_lib_save_LIBS=$LIBS | |
22629 | LIBS="-lm $LIBS" | |
22630 | if test x$gcc_no_link = xyes; then | |
22631 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22632 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22633 | { (exit 1); exit 1; }; } | |
22634 | fi | |
22635 | cat >conftest.$ac_ext <<_ACEOF | |
22636 | /* confdefs.h. */ | |
22637 | _ACEOF | |
22638 | cat confdefs.h >>conftest.$ac_ext | |
22639 | cat >>conftest.$ac_ext <<_ACEOF | |
22640 | /* end confdefs.h. */ | |
22641 | ||
a106dabe | 22642 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22643 | #ifdef __cplusplus |
22644 | extern "C" | |
22645 | #endif | |
a106dabe | 22646 | /* We use char because int might match the return type of a gcc2 |
22647 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22648 | char cexpf (); |
22649 | int | |
22650 | main () | |
22651 | { | |
a106dabe | 22652 | cexpf (); |
d213114b | 22653 | ; |
22654 | return 0; | |
22655 | } | |
22656 | _ACEOF | |
22657 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 22658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22659 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 22660 | ac_status=$? |
22661 | grep -v '^ *+' conftest.er1 >conftest.err | |
22662 | rm -f conftest.er1 | |
22663 | cat conftest.err >&5 | |
22664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22665 | (exit $ac_status); } && | |
c0e8efbe | 22666 | { ac_try='test -z "$ac_c_werror_flag" |
22667 | || test ! -s conftest.err' | |
a106dabe | 22668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22669 | (eval $ac_try) 2>&5 | |
d213114b | 22670 | ac_status=$? |
22671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22672 | (exit $ac_status); }; } && | |
22673 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 22674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22675 | (eval $ac_try) 2>&5 | |
d213114b | 22676 | ac_status=$? |
22677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22678 | (exit $ac_status); }; }; then | |
22679 | ac_cv_lib_m_cexpf=yes | |
22680 | else | |
22681 | echo "$as_me: failed program was:" >&5 | |
22682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22683 | ||
a106dabe | 22684 | ac_cv_lib_m_cexpf=no |
d213114b | 22685 | fi |
a106dabe | 22686 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22687 | conftest$ac_exeext conftest.$ac_ext |
22688 | LIBS=$ac_check_lib_save_LIBS | |
22689 | fi | |
a106dabe | 22690 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexpf" >&5 |
22691 | echo "${ECHO_T}$ac_cv_lib_m_cexpf" >&6 | |
d213114b | 22692 | if test $ac_cv_lib_m_cexpf = yes; then |
22693 | ||
22694 | cat >>confdefs.h <<\_ACEOF | |
22695 | #define HAVE_CEXPF 1 | |
22696 | _ACEOF | |
22697 | ||
22698 | fi | |
22699 | ||
a106dabe | 22700 | echo "$as_me:$LINENO: checking for cexp in -lm" >&5 |
22701 | echo $ECHO_N "checking for cexp in -lm... $ECHO_C" >&6 | |
d213114b | 22702 | if test "${ac_cv_lib_m_cexp+set}" = set; then |
22703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22704 | else | |
22705 | ac_check_lib_save_LIBS=$LIBS | |
22706 | LIBS="-lm $LIBS" | |
22707 | if test x$gcc_no_link = xyes; then | |
22708 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22709 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22710 | { (exit 1); exit 1; }; } | |
22711 | fi | |
22712 | cat >conftest.$ac_ext <<_ACEOF | |
22713 | /* confdefs.h. */ | |
22714 | _ACEOF | |
22715 | cat confdefs.h >>conftest.$ac_ext | |
22716 | cat >>conftest.$ac_ext <<_ACEOF | |
22717 | /* end confdefs.h. */ | |
22718 | ||
a106dabe | 22719 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22720 | #ifdef __cplusplus |
22721 | extern "C" | |
22722 | #endif | |
a106dabe | 22723 | /* We use char because int might match the return type of a gcc2 |
22724 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22725 | char cexp (); |
22726 | int | |
22727 | main () | |
22728 | { | |
a106dabe | 22729 | cexp (); |
d213114b | 22730 | ; |
22731 | return 0; | |
22732 | } | |
22733 | _ACEOF | |
22734 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 22735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22736 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 22737 | ac_status=$? |
22738 | grep -v '^ *+' conftest.er1 >conftest.err | |
22739 | rm -f conftest.er1 | |
22740 | cat conftest.err >&5 | |
22741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22742 | (exit $ac_status); } && | |
c0e8efbe | 22743 | { ac_try='test -z "$ac_c_werror_flag" |
22744 | || test ! -s conftest.err' | |
a106dabe | 22745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22746 | (eval $ac_try) 2>&5 | |
d213114b | 22747 | ac_status=$? |
22748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22749 | (exit $ac_status); }; } && | |
22750 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 22751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22752 | (eval $ac_try) 2>&5 | |
d213114b | 22753 | ac_status=$? |
22754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22755 | (exit $ac_status); }; }; then | |
22756 | ac_cv_lib_m_cexp=yes | |
22757 | else | |
22758 | echo "$as_me: failed program was:" >&5 | |
22759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22760 | ||
a106dabe | 22761 | ac_cv_lib_m_cexp=no |
d213114b | 22762 | fi |
a106dabe | 22763 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22764 | conftest$ac_exeext conftest.$ac_ext |
22765 | LIBS=$ac_check_lib_save_LIBS | |
22766 | fi | |
a106dabe | 22767 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexp" >&5 |
22768 | echo "${ECHO_T}$ac_cv_lib_m_cexp" >&6 | |
d213114b | 22769 | if test $ac_cv_lib_m_cexp = yes; then |
22770 | ||
22771 | cat >>confdefs.h <<\_ACEOF | |
22772 | #define HAVE_CEXP 1 | |
22773 | _ACEOF | |
22774 | ||
22775 | fi | |
22776 | ||
a106dabe | 22777 | echo "$as_me:$LINENO: checking for cexpl in -lm" >&5 |
22778 | echo $ECHO_N "checking for cexpl in -lm... $ECHO_C" >&6 | |
d213114b | 22779 | if test "${ac_cv_lib_m_cexpl+set}" = set; then |
22780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22781 | else | |
22782 | ac_check_lib_save_LIBS=$LIBS | |
22783 | LIBS="-lm $LIBS" | |
22784 | if test x$gcc_no_link = xyes; then | |
22785 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22786 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22787 | { (exit 1); exit 1; }; } | |
22788 | fi | |
22789 | cat >conftest.$ac_ext <<_ACEOF | |
22790 | /* confdefs.h. */ | |
22791 | _ACEOF | |
22792 | cat confdefs.h >>conftest.$ac_ext | |
22793 | cat >>conftest.$ac_ext <<_ACEOF | |
22794 | /* end confdefs.h. */ | |
22795 | ||
a106dabe | 22796 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22797 | #ifdef __cplusplus |
22798 | extern "C" | |
22799 | #endif | |
a106dabe | 22800 | /* We use char because int might match the return type of a gcc2 |
22801 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22802 | char cexpl (); |
22803 | int | |
22804 | main () | |
22805 | { | |
a106dabe | 22806 | cexpl (); |
d213114b | 22807 | ; |
22808 | return 0; | |
22809 | } | |
22810 | _ACEOF | |
22811 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 22812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22813 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 22814 | ac_status=$? |
22815 | grep -v '^ *+' conftest.er1 >conftest.err | |
22816 | rm -f conftest.er1 | |
22817 | cat conftest.err >&5 | |
22818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22819 | (exit $ac_status); } && | |
c0e8efbe | 22820 | { ac_try='test -z "$ac_c_werror_flag" |
22821 | || test ! -s conftest.err' | |
a106dabe | 22822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22823 | (eval $ac_try) 2>&5 | |
d213114b | 22824 | ac_status=$? |
22825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22826 | (exit $ac_status); }; } && | |
22827 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 22828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22829 | (eval $ac_try) 2>&5 | |
d213114b | 22830 | ac_status=$? |
22831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22832 | (exit $ac_status); }; }; then | |
22833 | ac_cv_lib_m_cexpl=yes | |
22834 | else | |
22835 | echo "$as_me: failed program was:" >&5 | |
22836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22837 | ||
a106dabe | 22838 | ac_cv_lib_m_cexpl=no |
d213114b | 22839 | fi |
a106dabe | 22840 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22841 | conftest$ac_exeext conftest.$ac_ext |
22842 | LIBS=$ac_check_lib_save_LIBS | |
22843 | fi | |
a106dabe | 22844 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexpl" >&5 |
22845 | echo "${ECHO_T}$ac_cv_lib_m_cexpl" >&6 | |
d213114b | 22846 | if test $ac_cv_lib_m_cexpl = yes; then |
22847 | ||
22848 | cat >>confdefs.h <<\_ACEOF | |
22849 | #define HAVE_CEXPL 1 | |
22850 | _ACEOF | |
22851 | ||
22852 | fi | |
22853 | ||
a106dabe | 22854 | echo "$as_me:$LINENO: checking for fabsf in -lm" >&5 |
22855 | echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6 | |
d213114b | 22856 | if test "${ac_cv_lib_m_fabsf+set}" = set; then |
22857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22858 | else | |
22859 | ac_check_lib_save_LIBS=$LIBS | |
22860 | LIBS="-lm $LIBS" | |
22861 | if test x$gcc_no_link = xyes; then | |
22862 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22863 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22864 | { (exit 1); exit 1; }; } | |
22865 | fi | |
22866 | cat >conftest.$ac_ext <<_ACEOF | |
22867 | /* confdefs.h. */ | |
22868 | _ACEOF | |
22869 | cat confdefs.h >>conftest.$ac_ext | |
22870 | cat >>conftest.$ac_ext <<_ACEOF | |
22871 | /* end confdefs.h. */ | |
22872 | ||
a106dabe | 22873 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22874 | #ifdef __cplusplus |
22875 | extern "C" | |
22876 | #endif | |
a106dabe | 22877 | /* We use char because int might match the return type of a gcc2 |
22878 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22879 | char fabsf (); |
22880 | int | |
22881 | main () | |
22882 | { | |
a106dabe | 22883 | fabsf (); |
d213114b | 22884 | ; |
22885 | return 0; | |
22886 | } | |
22887 | _ACEOF | |
22888 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 22889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22890 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 22891 | ac_status=$? |
22892 | grep -v '^ *+' conftest.er1 >conftest.err | |
22893 | rm -f conftest.er1 | |
22894 | cat conftest.err >&5 | |
22895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22896 | (exit $ac_status); } && | |
c0e8efbe | 22897 | { ac_try='test -z "$ac_c_werror_flag" |
22898 | || test ! -s conftest.err' | |
a106dabe | 22899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22900 | (eval $ac_try) 2>&5 | |
d213114b | 22901 | ac_status=$? |
22902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22903 | (exit $ac_status); }; } && | |
22904 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 22905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22906 | (eval $ac_try) 2>&5 | |
d213114b | 22907 | ac_status=$? |
22908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22909 | (exit $ac_status); }; }; then | |
22910 | ac_cv_lib_m_fabsf=yes | |
22911 | else | |
22912 | echo "$as_me: failed program was:" >&5 | |
22913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22914 | ||
a106dabe | 22915 | ac_cv_lib_m_fabsf=no |
d213114b | 22916 | fi |
a106dabe | 22917 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22918 | conftest$ac_exeext conftest.$ac_ext |
22919 | LIBS=$ac_check_lib_save_LIBS | |
22920 | fi | |
a106dabe | 22921 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5 |
22922 | echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6 | |
d213114b | 22923 | if test $ac_cv_lib_m_fabsf = yes; then |
22924 | ||
22925 | cat >>confdefs.h <<\_ACEOF | |
22926 | #define HAVE_FABSF 1 | |
22927 | _ACEOF | |
22928 | ||
22929 | fi | |
22930 | ||
a106dabe | 22931 | echo "$as_me:$LINENO: checking for fabs in -lm" >&5 |
22932 | echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6 | |
d213114b | 22933 | if test "${ac_cv_lib_m_fabs+set}" = set; then |
22934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22935 | else | |
22936 | ac_check_lib_save_LIBS=$LIBS | |
22937 | LIBS="-lm $LIBS" | |
22938 | if test x$gcc_no_link = xyes; then | |
22939 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22940 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22941 | { (exit 1); exit 1; }; } | |
22942 | fi | |
22943 | cat >conftest.$ac_ext <<_ACEOF | |
22944 | /* confdefs.h. */ | |
22945 | _ACEOF | |
22946 | cat confdefs.h >>conftest.$ac_ext | |
22947 | cat >>conftest.$ac_ext <<_ACEOF | |
22948 | /* end confdefs.h. */ | |
22949 | ||
a106dabe | 22950 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22951 | #ifdef __cplusplus |
22952 | extern "C" | |
22953 | #endif | |
a106dabe | 22954 | /* We use char because int might match the return type of a gcc2 |
22955 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22956 | char fabs (); |
22957 | int | |
22958 | main () | |
22959 | { | |
a106dabe | 22960 | fabs (); |
d213114b | 22961 | ; |
22962 | return 0; | |
22963 | } | |
22964 | _ACEOF | |
22965 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 22966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
22967 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 22968 | ac_status=$? |
22969 | grep -v '^ *+' conftest.er1 >conftest.err | |
22970 | rm -f conftest.er1 | |
22971 | cat conftest.err >&5 | |
22972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22973 | (exit $ac_status); } && | |
c0e8efbe | 22974 | { ac_try='test -z "$ac_c_werror_flag" |
22975 | || test ! -s conftest.err' | |
a106dabe | 22976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22977 | (eval $ac_try) 2>&5 | |
d213114b | 22978 | ac_status=$? |
22979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22980 | (exit $ac_status); }; } && | |
22981 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 22982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22983 | (eval $ac_try) 2>&5 | |
d213114b | 22984 | ac_status=$? |
22985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22986 | (exit $ac_status); }; }; then | |
22987 | ac_cv_lib_m_fabs=yes | |
22988 | else | |
22989 | echo "$as_me: failed program was:" >&5 | |
22990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22991 | ||
a106dabe | 22992 | ac_cv_lib_m_fabs=no |
d213114b | 22993 | fi |
a106dabe | 22994 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22995 | conftest$ac_exeext conftest.$ac_ext |
22996 | LIBS=$ac_check_lib_save_LIBS | |
22997 | fi | |
a106dabe | 22998 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5 |
22999 | echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6 | |
d213114b | 23000 | if test $ac_cv_lib_m_fabs = yes; then |
23001 | ||
23002 | cat >>confdefs.h <<\_ACEOF | |
23003 | #define HAVE_FABS 1 | |
23004 | _ACEOF | |
23005 | ||
23006 | fi | |
23007 | ||
a106dabe | 23008 | echo "$as_me:$LINENO: checking for fabsl in -lm" >&5 |
23009 | echo $ECHO_N "checking for fabsl in -lm... $ECHO_C" >&6 | |
d213114b | 23010 | if test "${ac_cv_lib_m_fabsl+set}" = set; then |
23011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23012 | else | |
23013 | ac_check_lib_save_LIBS=$LIBS | |
23014 | LIBS="-lm $LIBS" | |
23015 | if test x$gcc_no_link = xyes; then | |
23016 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23017 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23018 | { (exit 1); exit 1; }; } | |
23019 | fi | |
23020 | cat >conftest.$ac_ext <<_ACEOF | |
23021 | /* confdefs.h. */ | |
23022 | _ACEOF | |
23023 | cat confdefs.h >>conftest.$ac_ext | |
23024 | cat >>conftest.$ac_ext <<_ACEOF | |
23025 | /* end confdefs.h. */ | |
23026 | ||
a106dabe | 23027 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23028 | #ifdef __cplusplus |
23029 | extern "C" | |
23030 | #endif | |
a106dabe | 23031 | /* We use char because int might match the return type of a gcc2 |
23032 | builtin and then its argument prototype would still apply. */ | |
d213114b | 23033 | char fabsl (); |
23034 | int | |
23035 | main () | |
23036 | { | |
a106dabe | 23037 | fabsl (); |
d213114b | 23038 | ; |
23039 | return 0; | |
23040 | } | |
23041 | _ACEOF | |
23042 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 23043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23044 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 23045 | ac_status=$? |
23046 | grep -v '^ *+' conftest.er1 >conftest.err | |
23047 | rm -f conftest.er1 | |
23048 | cat conftest.err >&5 | |
23049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23050 | (exit $ac_status); } && | |
c0e8efbe | 23051 | { ac_try='test -z "$ac_c_werror_flag" |
23052 | || test ! -s conftest.err' | |
a106dabe | 23053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23054 | (eval $ac_try) 2>&5 | |
d213114b | 23055 | ac_status=$? |
23056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23057 | (exit $ac_status); }; } && | |
23058 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 23059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23060 | (eval $ac_try) 2>&5 | |
d213114b | 23061 | ac_status=$? |
23062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23063 | (exit $ac_status); }; }; then | |
23064 | ac_cv_lib_m_fabsl=yes | |
23065 | else | |
23066 | echo "$as_me: failed program was:" >&5 | |
23067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23068 | ||
a106dabe | 23069 | ac_cv_lib_m_fabsl=no |
d213114b | 23070 | fi |
a106dabe | 23071 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23072 | conftest$ac_exeext conftest.$ac_ext |
23073 | LIBS=$ac_check_lib_save_LIBS | |
23074 | fi | |
a106dabe | 23075 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsl" >&5 |
23076 | echo "${ECHO_T}$ac_cv_lib_m_fabsl" >&6 | |
d213114b | 23077 | if test $ac_cv_lib_m_fabsl = yes; then |
23078 | ||
23079 | cat >>confdefs.h <<\_ACEOF | |
23080 | #define HAVE_FABSL 1 | |
23081 | _ACEOF | |
23082 | ||
23083 | fi | |
23084 | ||
a106dabe | 23085 | echo "$as_me:$LINENO: checking for cabsf in -lm" >&5 |
23086 | echo $ECHO_N "checking for cabsf in -lm... $ECHO_C" >&6 | |
d213114b | 23087 | if test "${ac_cv_lib_m_cabsf+set}" = set; then |
23088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23089 | else | |
23090 | ac_check_lib_save_LIBS=$LIBS | |
23091 | LIBS="-lm $LIBS" | |
23092 | if test x$gcc_no_link = xyes; then | |
23093 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23094 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23095 | { (exit 1); exit 1; }; } | |
23096 | fi | |
23097 | cat >conftest.$ac_ext <<_ACEOF | |
23098 | /* confdefs.h. */ | |
23099 | _ACEOF | |
23100 | cat confdefs.h >>conftest.$ac_ext | |
23101 | cat >>conftest.$ac_ext <<_ACEOF | |
23102 | /* end confdefs.h. */ | |
23103 | ||
a106dabe | 23104 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23105 | #ifdef __cplusplus |
23106 | extern "C" | |
23107 | #endif | |
a106dabe | 23108 | /* We use char because int might match the return type of a gcc2 |
23109 | builtin and then its argument prototype would still apply. */ | |
d213114b | 23110 | char cabsf (); |
23111 | int | |
23112 | main () | |
23113 | { | |
a106dabe | 23114 | cabsf (); |
d213114b | 23115 | ; |
23116 | return 0; | |
23117 | } | |
23118 | _ACEOF | |
23119 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 23120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23121 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 23122 | ac_status=$? |
23123 | grep -v '^ *+' conftest.er1 >conftest.err | |
23124 | rm -f conftest.er1 | |
23125 | cat conftest.err >&5 | |
23126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23127 | (exit $ac_status); } && | |
c0e8efbe | 23128 | { ac_try='test -z "$ac_c_werror_flag" |
23129 | || test ! -s conftest.err' | |
a106dabe | 23130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23131 | (eval $ac_try) 2>&5 | |
d213114b | 23132 | ac_status=$? |
23133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23134 | (exit $ac_status); }; } && | |
23135 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 23136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23137 | (eval $ac_try) 2>&5 | |
d213114b | 23138 | ac_status=$? |
23139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23140 | (exit $ac_status); }; }; then | |
23141 | ac_cv_lib_m_cabsf=yes | |
23142 | else | |
23143 | echo "$as_me: failed program was:" >&5 | |
23144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23145 | ||
a106dabe | 23146 | ac_cv_lib_m_cabsf=no |
d213114b | 23147 | fi |
a106dabe | 23148 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23149 | conftest$ac_exeext conftest.$ac_ext |
23150 | LIBS=$ac_check_lib_save_LIBS | |
23151 | fi | |
a106dabe | 23152 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabsf" >&5 |
23153 | echo "${ECHO_T}$ac_cv_lib_m_cabsf" >&6 | |
d213114b | 23154 | if test $ac_cv_lib_m_cabsf = yes; then |
23155 | ||
23156 | cat >>confdefs.h <<\_ACEOF | |
23157 | #define HAVE_CABSF 1 | |
23158 | _ACEOF | |
23159 | ||
23160 | fi | |
23161 | ||
a106dabe | 23162 | echo "$as_me:$LINENO: checking for cabs in -lm" >&5 |
23163 | echo $ECHO_N "checking for cabs in -lm... $ECHO_C" >&6 | |
d213114b | 23164 | if test "${ac_cv_lib_m_cabs+set}" = set; then |
23165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23166 | else | |
23167 | ac_check_lib_save_LIBS=$LIBS | |
23168 | LIBS="-lm $LIBS" | |
23169 | if test x$gcc_no_link = xyes; then | |
23170 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23171 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23172 | { (exit 1); exit 1; }; } | |
23173 | fi | |
23174 | cat >conftest.$ac_ext <<_ACEOF | |
23175 | /* confdefs.h. */ | |
23176 | _ACEOF | |
23177 | cat confdefs.h >>conftest.$ac_ext | |
23178 | cat >>conftest.$ac_ext <<_ACEOF | |
23179 | /* end confdefs.h. */ | |
23180 | ||
a106dabe | 23181 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23182 | #ifdef __cplusplus |
23183 | extern "C" | |
23184 | #endif | |
a106dabe | 23185 | /* We use char because int might match the return type of a gcc2 |
23186 | builtin and then its argument prototype would still apply. */ | |
d213114b | 23187 | char cabs (); |
23188 | int | |
23189 | main () | |
23190 | { | |
a106dabe | 23191 | cabs (); |
d213114b | 23192 | ; |
23193 | return 0; | |
23194 | } | |
23195 | _ACEOF | |
23196 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 23197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23198 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 23199 | ac_status=$? |
23200 | grep -v '^ *+' conftest.er1 >conftest.err | |
23201 | rm -f conftest.er1 | |
23202 | cat conftest.err >&5 | |
23203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23204 | (exit $ac_status); } && | |
c0e8efbe | 23205 | { ac_try='test -z "$ac_c_werror_flag" |
23206 | || test ! -s conftest.err' | |
a106dabe | 23207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23208 | (eval $ac_try) 2>&5 | |
d213114b | 23209 | ac_status=$? |
23210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23211 | (exit $ac_status); }; } && | |
23212 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 23213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23214 | (eval $ac_try) 2>&5 | |
d213114b | 23215 | ac_status=$? |
23216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23217 | (exit $ac_status); }; }; then | |
23218 | ac_cv_lib_m_cabs=yes | |
23219 | else | |
23220 | echo "$as_me: failed program was:" >&5 | |
23221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23222 | ||
a106dabe | 23223 | ac_cv_lib_m_cabs=no |
d213114b | 23224 | fi |
a106dabe | 23225 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23226 | conftest$ac_exeext conftest.$ac_ext |
23227 | LIBS=$ac_check_lib_save_LIBS | |
23228 | fi | |
a106dabe | 23229 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabs" >&5 |
23230 | echo "${ECHO_T}$ac_cv_lib_m_cabs" >&6 | |
d213114b | 23231 | if test $ac_cv_lib_m_cabs = yes; then |
23232 | ||
23233 | cat >>confdefs.h <<\_ACEOF | |
23234 | #define HAVE_CABS 1 | |
23235 | _ACEOF | |
23236 | ||
23237 | fi | |
23238 | ||
a106dabe | 23239 | echo "$as_me:$LINENO: checking for cabsl in -lm" >&5 |
23240 | echo $ECHO_N "checking for cabsl in -lm... $ECHO_C" >&6 | |
d213114b | 23241 | if test "${ac_cv_lib_m_cabsl+set}" = set; then |
23242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23243 | else | |
23244 | ac_check_lib_save_LIBS=$LIBS | |
23245 | LIBS="-lm $LIBS" | |
23246 | if test x$gcc_no_link = xyes; then | |
23247 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23248 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23249 | { (exit 1); exit 1; }; } | |
23250 | fi | |
23251 | cat >conftest.$ac_ext <<_ACEOF | |
23252 | /* confdefs.h. */ | |
23253 | _ACEOF | |
23254 | cat confdefs.h >>conftest.$ac_ext | |
23255 | cat >>conftest.$ac_ext <<_ACEOF | |
23256 | /* end confdefs.h. */ | |
23257 | ||
a106dabe | 23258 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23259 | #ifdef __cplusplus |
23260 | extern "C" | |
23261 | #endif | |
a106dabe | 23262 | /* We use char because int might match the return type of a gcc2 |
23263 | builtin and then its argument prototype would still apply. */ | |
d213114b | 23264 | char cabsl (); |
23265 | int | |
23266 | main () | |
23267 | { | |
a106dabe | 23268 | cabsl (); |
d213114b | 23269 | ; |
23270 | return 0; | |
23271 | } | |
23272 | _ACEOF | |
23273 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 23274 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23275 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 23276 | ac_status=$? |
23277 | grep -v '^ *+' conftest.er1 >conftest.err | |
23278 | rm -f conftest.er1 | |
23279 | cat conftest.err >&5 | |
23280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23281 | (exit $ac_status); } && | |
c0e8efbe | 23282 | { ac_try='test -z "$ac_c_werror_flag" |
23283 | || test ! -s conftest.err' | |
a106dabe | 23284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23285 | (eval $ac_try) 2>&5 | |
d213114b | 23286 | ac_status=$? |
23287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23288 | (exit $ac_status); }; } && | |
23289 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 23290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23291 | (eval $ac_try) 2>&5 | |
d213114b | 23292 | ac_status=$? |
23293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23294 | (exit $ac_status); }; }; then | |
23295 | ac_cv_lib_m_cabsl=yes | |
23296 | else | |
23297 | echo "$as_me: failed program was:" >&5 | |
23298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23299 | ||
a106dabe | 23300 | ac_cv_lib_m_cabsl=no |
d213114b | 23301 | fi |
a106dabe | 23302 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23303 | conftest$ac_exeext conftest.$ac_ext |
23304 | LIBS=$ac_check_lib_save_LIBS | |
23305 | fi | |
a106dabe | 23306 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabsl" >&5 |
23307 | echo "${ECHO_T}$ac_cv_lib_m_cabsl" >&6 | |
d213114b | 23308 | if test $ac_cv_lib_m_cabsl = yes; then |
23309 | ||
23310 | cat >>confdefs.h <<\_ACEOF | |
23311 | #define HAVE_CABSL 1 | |
23312 | _ACEOF | |
23313 | ||
23314 | fi | |
23315 | ||
a106dabe | 23316 | echo "$as_me:$LINENO: checking for floorf in -lm" >&5 |
23317 | echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6 | |
d213114b | 23318 | if test "${ac_cv_lib_m_floorf+set}" = set; then |
23319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23320 | else | |
23321 | ac_check_lib_save_LIBS=$LIBS | |
23322 | LIBS="-lm $LIBS" | |
23323 | if test x$gcc_no_link = xyes; then | |
23324 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23325 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23326 | { (exit 1); exit 1; }; } | |
23327 | fi | |
23328 | cat >conftest.$ac_ext <<_ACEOF | |
23329 | /* confdefs.h. */ | |
23330 | _ACEOF | |
23331 | cat confdefs.h >>conftest.$ac_ext | |
23332 | cat >>conftest.$ac_ext <<_ACEOF | |
23333 | /* end confdefs.h. */ | |
23334 | ||
a106dabe | 23335 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23336 | #ifdef __cplusplus |
23337 | extern "C" | |
23338 | #endif | |
a106dabe | 23339 | /* We use char because int might match the return type of a gcc2 |
23340 | builtin and then its argument prototype would still apply. */ | |
d213114b | 23341 | char floorf (); |
23342 | int | |
23343 | main () | |
23344 | { | |
a106dabe | 23345 | floorf (); |
d213114b | 23346 | ; |
23347 | return 0; | |
23348 | } | |
23349 | _ACEOF | |
23350 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 23351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23352 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 23353 | ac_status=$? |
23354 | grep -v '^ *+' conftest.er1 >conftest.err | |
23355 | rm -f conftest.er1 | |
23356 | cat conftest.err >&5 | |
23357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23358 | (exit $ac_status); } && | |
c0e8efbe | 23359 | { ac_try='test -z "$ac_c_werror_flag" |
23360 | || test ! -s conftest.err' | |
a106dabe | 23361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23362 | (eval $ac_try) 2>&5 | |
d213114b | 23363 | ac_status=$? |
23364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23365 | (exit $ac_status); }; } && | |
23366 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 23367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23368 | (eval $ac_try) 2>&5 | |
d213114b | 23369 | ac_status=$? |
23370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23371 | (exit $ac_status); }; }; then | |
23372 | ac_cv_lib_m_floorf=yes | |
23373 | else | |
23374 | echo "$as_me: failed program was:" >&5 | |
23375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23376 | ||
a106dabe | 23377 | ac_cv_lib_m_floorf=no |
d213114b | 23378 | fi |
a106dabe | 23379 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23380 | conftest$ac_exeext conftest.$ac_ext |
23381 | LIBS=$ac_check_lib_save_LIBS | |
23382 | fi | |
a106dabe | 23383 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5 |
23384 | echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6 | |
d213114b | 23385 | if test $ac_cv_lib_m_floorf = yes; then |
23386 | ||
23387 | cat >>confdefs.h <<\_ACEOF | |
23388 | #define HAVE_FLOORF 1 | |
23389 | _ACEOF | |
23390 | ||
23391 | fi | |
23392 | ||
a106dabe | 23393 | echo "$as_me:$LINENO: checking for floor in -lm" >&5 |
23394 | echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6 | |
d213114b | 23395 | if test "${ac_cv_lib_m_floor+set}" = set; then |
23396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23397 | else | |
23398 | ac_check_lib_save_LIBS=$LIBS | |
23399 | LIBS="-lm $LIBS" | |
23400 | if test x$gcc_no_link = xyes; then | |
23401 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23402 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23403 | { (exit 1); exit 1; }; } | |
23404 | fi | |
23405 | cat >conftest.$ac_ext <<_ACEOF | |
23406 | /* confdefs.h. */ | |
23407 | _ACEOF | |
23408 | cat confdefs.h >>conftest.$ac_ext | |
23409 | cat >>conftest.$ac_ext <<_ACEOF | |
23410 | /* end confdefs.h. */ | |
23411 | ||
a106dabe | 23412 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23413 | #ifdef __cplusplus |
23414 | extern "C" | |
23415 | #endif | |
a106dabe | 23416 | /* We use char because int might match the return type of a gcc2 |
23417 | builtin and then its argument prototype would still apply. */ | |
d213114b | 23418 | char floor (); |
23419 | int | |
23420 | main () | |
23421 | { | |
a106dabe | 23422 | floor (); |
d213114b | 23423 | ; |
23424 | return 0; | |
23425 | } | |
23426 | _ACEOF | |
23427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 23428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23429 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 23430 | ac_status=$? |
23431 | grep -v '^ *+' conftest.er1 >conftest.err | |
23432 | rm -f conftest.er1 | |
23433 | cat conftest.err >&5 | |
23434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23435 | (exit $ac_status); } && | |
c0e8efbe | 23436 | { ac_try='test -z "$ac_c_werror_flag" |
23437 | || test ! -s conftest.err' | |
a106dabe | 23438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23439 | (eval $ac_try) 2>&5 | |
d213114b | 23440 | ac_status=$? |
23441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23442 | (exit $ac_status); }; } && | |
23443 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 23444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23445 | (eval $ac_try) 2>&5 | |
d213114b | 23446 | ac_status=$? |
23447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23448 | (exit $ac_status); }; }; then | |
23449 | ac_cv_lib_m_floor=yes | |
23450 | else | |
23451 | echo "$as_me: failed program was:" >&5 | |
23452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23453 | ||
a106dabe | 23454 | ac_cv_lib_m_floor=no |
d213114b | 23455 | fi |
a106dabe | 23456 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23457 | conftest$ac_exeext conftest.$ac_ext |
23458 | LIBS=$ac_check_lib_save_LIBS | |
23459 | fi | |
a106dabe | 23460 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 |
23461 | echo "${ECHO_T}$ac_cv_lib_m_floor" >&6 | |
d213114b | 23462 | if test $ac_cv_lib_m_floor = yes; then |
23463 | ||
23464 | cat >>confdefs.h <<\_ACEOF | |
23465 | #define HAVE_FLOOR 1 | |
23466 | _ACEOF | |
23467 | ||
23468 | fi | |
23469 | ||
a106dabe | 23470 | echo "$as_me:$LINENO: checking for floorl in -lm" >&5 |
23471 | echo $ECHO_N "checking for floorl in -lm... $ECHO_C" >&6 | |
d213114b | 23472 | if test "${ac_cv_lib_m_floorl+set}" = set; then |
23473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23474 | else | |
23475 | ac_check_lib_save_LIBS=$LIBS | |
23476 | LIBS="-lm $LIBS" | |
23477 | if test x$gcc_no_link = xyes; then | |
23478 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23479 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23480 | { (exit 1); exit 1; }; } | |
23481 | fi | |
23482 | cat >conftest.$ac_ext <<_ACEOF | |
23483 | /* confdefs.h. */ | |
23484 | _ACEOF | |
23485 | cat confdefs.h >>conftest.$ac_ext | |
23486 | cat >>conftest.$ac_ext <<_ACEOF | |
23487 | /* end confdefs.h. */ | |
23488 | ||
a106dabe | 23489 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23490 | #ifdef __cplusplus |
23491 | extern "C" | |
23492 | #endif | |
a106dabe | 23493 | /* We use char because int might match the return type of a gcc2 |
23494 | builtin and then its argument prototype would still apply. */ | |
d213114b | 23495 | char floorl (); |
23496 | int | |
23497 | main () | |
23498 | { | |
a106dabe | 23499 | floorl (); |
d213114b | 23500 | ; |
23501 | return 0; | |
23502 | } | |
23503 | _ACEOF | |
23504 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 23505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23506 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 23507 | ac_status=$? |
23508 | grep -v '^ *+' conftest.er1 >conftest.err | |
23509 | rm -f conftest.er1 | |
23510 | cat conftest.err >&5 | |
23511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23512 | (exit $ac_status); } && | |
c0e8efbe | 23513 | { ac_try='test -z "$ac_c_werror_flag" |
23514 | || test ! -s conftest.err' | |
a106dabe | 23515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23516 | (eval $ac_try) 2>&5 | |
d213114b | 23517 | ac_status=$? |
23518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23519 | (exit $ac_status); }; } && | |
23520 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 23521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23522 | (eval $ac_try) 2>&5 | |
d213114b | 23523 | ac_status=$? |
23524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23525 | (exit $ac_status); }; }; then | |
23526 | ac_cv_lib_m_floorl=yes | |
23527 | else | |
23528 | echo "$as_me: failed program was:" >&5 | |
23529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23530 | ||
a106dabe | 23531 | ac_cv_lib_m_floorl=no |
d213114b | 23532 | fi |
a106dabe | 23533 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23534 | conftest$ac_exeext conftest.$ac_ext |
23535 | LIBS=$ac_check_lib_save_LIBS | |
23536 | fi | |
a106dabe | 23537 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorl" >&5 |
23538 | echo "${ECHO_T}$ac_cv_lib_m_floorl" >&6 | |
d213114b | 23539 | if test $ac_cv_lib_m_floorl = yes; then |
23540 | ||
23541 | cat >>confdefs.h <<\_ACEOF | |
23542 | #define HAVE_FLOORL 1 | |
23543 | _ACEOF | |
23544 | ||
23545 | fi | |
23546 | ||
a106dabe | 23547 | echo "$as_me:$LINENO: checking for fmodf in -lm" >&5 |
23548 | echo $ECHO_N "checking for fmodf in -lm... $ECHO_C" >&6 | |
71d5b534 | 23549 | if test "${ac_cv_lib_m_fmodf+set}" = set; then |
23550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23551 | else | |
23552 | ac_check_lib_save_LIBS=$LIBS | |
23553 | LIBS="-lm $LIBS" | |
23554 | if test x$gcc_no_link = xyes; then | |
23555 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23556 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23557 | { (exit 1); exit 1; }; } | |
23558 | fi | |
23559 | cat >conftest.$ac_ext <<_ACEOF | |
23560 | /* confdefs.h. */ | |
23561 | _ACEOF | |
23562 | cat confdefs.h >>conftest.$ac_ext | |
23563 | cat >>conftest.$ac_ext <<_ACEOF | |
23564 | /* end confdefs.h. */ | |
23565 | ||
a106dabe | 23566 | /* Override any gcc2 internal prototype to avoid an error. */ |
71d5b534 | 23567 | #ifdef __cplusplus |
23568 | extern "C" | |
23569 | #endif | |
a106dabe | 23570 | /* We use char because int might match the return type of a gcc2 |
23571 | builtin and then its argument prototype would still apply. */ | |
71d5b534 | 23572 | char fmodf (); |
23573 | int | |
23574 | main () | |
23575 | { | |
a106dabe | 23576 | fmodf (); |
71d5b534 | 23577 | ; |
23578 | return 0; | |
23579 | } | |
23580 | _ACEOF | |
23581 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 23582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23583 | (eval $ac_link) 2>conftest.er1 | |
71d5b534 | 23584 | ac_status=$? |
23585 | grep -v '^ *+' conftest.er1 >conftest.err | |
23586 | rm -f conftest.er1 | |
23587 | cat conftest.err >&5 | |
23588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23589 | (exit $ac_status); } && | |
c0e8efbe | 23590 | { ac_try='test -z "$ac_c_werror_flag" |
23591 | || test ! -s conftest.err' | |
a106dabe | 23592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23593 | (eval $ac_try) 2>&5 | |
71d5b534 | 23594 | ac_status=$? |
23595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23596 | (exit $ac_status); }; } && | |
23597 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 23598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23599 | (eval $ac_try) 2>&5 | |
71d5b534 | 23600 | ac_status=$? |
23601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23602 | (exit $ac_status); }; }; then | |
23603 | ac_cv_lib_m_fmodf=yes | |
23604 | else | |
23605 | echo "$as_me: failed program was:" >&5 | |
23606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23607 | ||
a106dabe | 23608 | ac_cv_lib_m_fmodf=no |
71d5b534 | 23609 | fi |
a106dabe | 23610 | rm -f conftest.err conftest.$ac_objext \ |
71d5b534 | 23611 | conftest$ac_exeext conftest.$ac_ext |
23612 | LIBS=$ac_check_lib_save_LIBS | |
23613 | fi | |
a106dabe | 23614 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmodf" >&5 |
23615 | echo "${ECHO_T}$ac_cv_lib_m_fmodf" >&6 | |
71d5b534 | 23616 | if test $ac_cv_lib_m_fmodf = yes; then |
23617 | ||
23618 | cat >>confdefs.h <<\_ACEOF | |
23619 | #define HAVE_FMODF 1 | |
23620 | _ACEOF | |
23621 | ||
23622 | fi | |
23623 | ||
a106dabe | 23624 | echo "$as_me:$LINENO: checking for fmod in -lm" >&5 |
23625 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6 | |
71d5b534 | 23626 | if test "${ac_cv_lib_m_fmod+set}" = set; then |
23627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23628 | else | |
23629 | ac_check_lib_save_LIBS=$LIBS | |
23630 | LIBS="-lm $LIBS" | |
23631 | if test x$gcc_no_link = xyes; then | |
23632 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23633 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23634 | { (exit 1); exit 1; }; } | |
23635 | fi | |
23636 | cat >conftest.$ac_ext <<_ACEOF | |
23637 | /* confdefs.h. */ | |
23638 | _ACEOF | |
23639 | cat confdefs.h >>conftest.$ac_ext | |
23640 | cat >>conftest.$ac_ext <<_ACEOF | |
23641 | /* end confdefs.h. */ | |
23642 | ||
a106dabe | 23643 | /* Override any gcc2 internal prototype to avoid an error. */ |
71d5b534 | 23644 | #ifdef __cplusplus |
23645 | extern "C" | |
23646 | #endif | |
a106dabe | 23647 | /* We use char because int might match the return type of a gcc2 |
23648 | builtin and then its argument prototype would still apply. */ | |
71d5b534 | 23649 | char fmod (); |
23650 | int | |
23651 | main () | |
23652 | { | |
a106dabe | 23653 | fmod (); |
71d5b534 | 23654 | ; |
23655 | return 0; | |
23656 | } | |
23657 | _ACEOF | |
23658 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 23659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23660 | (eval $ac_link) 2>conftest.er1 | |
71d5b534 | 23661 | ac_status=$? |
23662 | grep -v '^ *+' conftest.er1 >conftest.err | |
23663 | rm -f conftest.er1 | |
23664 | cat conftest.err >&5 | |
23665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23666 | (exit $ac_status); } && | |
c0e8efbe | 23667 | { ac_try='test -z "$ac_c_werror_flag" |
23668 | || test ! -s conftest.err' | |
a106dabe | 23669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23670 | (eval $ac_try) 2>&5 | |
71d5b534 | 23671 | ac_status=$? |
23672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23673 | (exit $ac_status); }; } && | |
23674 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 23675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23676 | (eval $ac_try) 2>&5 | |
71d5b534 | 23677 | ac_status=$? |
23678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23679 | (exit $ac_status); }; }; then | |
23680 | ac_cv_lib_m_fmod=yes | |
23681 | else | |
23682 | echo "$as_me: failed program was:" >&5 | |
23683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23684 | ||
a106dabe | 23685 | ac_cv_lib_m_fmod=no |
71d5b534 | 23686 | fi |
a106dabe | 23687 | rm -f conftest.err conftest.$ac_objext \ |
71d5b534 | 23688 | conftest$ac_exeext conftest.$ac_ext |
23689 | LIBS=$ac_check_lib_save_LIBS | |
23690 | fi | |
a106dabe | 23691 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 |
23692 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6 | |
71d5b534 | 23693 | if test $ac_cv_lib_m_fmod = yes; then |
23694 | ||
23695 | cat >>confdefs.h <<\_ACEOF | |
23696 | #define HAVE_FMOD 1 | |
23697 | _ACEOF | |
23698 | ||
23699 | fi | |
23700 | ||
a106dabe | 23701 | echo "$as_me:$LINENO: checking for fmodl in -lm" >&5 |
23702 | echo $ECHO_N "checking for fmodl in -lm... $ECHO_C" >&6 | |
71d5b534 | 23703 | if test "${ac_cv_lib_m_fmodl+set}" = set; then |
23704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23705 | else | |
23706 | ac_check_lib_save_LIBS=$LIBS | |
23707 | LIBS="-lm $LIBS" | |
23708 | if test x$gcc_no_link = xyes; then | |
23709 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23710 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23711 | { (exit 1); exit 1; }; } | |
23712 | fi | |
23713 | cat >conftest.$ac_ext <<_ACEOF | |
23714 | /* confdefs.h. */ | |
23715 | _ACEOF | |
23716 | cat confdefs.h >>conftest.$ac_ext | |
23717 | cat >>conftest.$ac_ext <<_ACEOF | |
23718 | /* end confdefs.h. */ | |
23719 | ||
a106dabe | 23720 | /* Override any gcc2 internal prototype to avoid an error. */ |
71d5b534 | 23721 | #ifdef __cplusplus |
23722 | extern "C" | |
23723 | #endif | |
a106dabe | 23724 | /* We use char because int might match the return type of a gcc2 |
23725 | builtin and then its argument prototype would still apply. */ | |
71d5b534 | 23726 | char fmodl (); |
23727 | int | |
23728 | main () | |
23729 | { | |
a106dabe | 23730 | fmodl (); |
71d5b534 | 23731 | ; |
23732 | return 0; | |
23733 | } | |
23734 | _ACEOF | |
23735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 23736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23737 | (eval $ac_link) 2>conftest.er1 | |
71d5b534 | 23738 | ac_status=$? |
23739 | grep -v '^ *+' conftest.er1 >conftest.err | |
23740 | rm -f conftest.er1 | |
23741 | cat conftest.err >&5 | |
23742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23743 | (exit $ac_status); } && | |
c0e8efbe | 23744 | { ac_try='test -z "$ac_c_werror_flag" |
23745 | || test ! -s conftest.err' | |
a106dabe | 23746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23747 | (eval $ac_try) 2>&5 | |
71d5b534 | 23748 | ac_status=$? |
23749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23750 | (exit $ac_status); }; } && | |
23751 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 23752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23753 | (eval $ac_try) 2>&5 | |
71d5b534 | 23754 | ac_status=$? |
23755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23756 | (exit $ac_status); }; }; then | |
23757 | ac_cv_lib_m_fmodl=yes | |
23758 | else | |
23759 | echo "$as_me: failed program was:" >&5 | |
23760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23761 | ||
a106dabe | 23762 | ac_cv_lib_m_fmodl=no |
71d5b534 | 23763 | fi |
a106dabe | 23764 | rm -f conftest.err conftest.$ac_objext \ |
71d5b534 | 23765 | conftest$ac_exeext conftest.$ac_ext |
23766 | LIBS=$ac_check_lib_save_LIBS | |
23767 | fi | |
a106dabe | 23768 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmodl" >&5 |
23769 | echo "${ECHO_T}$ac_cv_lib_m_fmodl" >&6 | |
71d5b534 | 23770 | if test $ac_cv_lib_m_fmodl = yes; then |
23771 | ||
23772 | cat >>confdefs.h <<\_ACEOF | |
23773 | #define HAVE_FMODL 1 | |
23774 | _ACEOF | |
23775 | ||
23776 | fi | |
23777 | ||
a106dabe | 23778 | echo "$as_me:$LINENO: checking for frexpf in -lm" >&5 |
23779 | echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6 | |
d213114b | 23780 | if test "${ac_cv_lib_m_frexpf+set}" = set; then |
23781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23782 | else | |
23783 | ac_check_lib_save_LIBS=$LIBS | |
23784 | LIBS="-lm $LIBS" | |
23785 | if test x$gcc_no_link = xyes; then | |
23786 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23787 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23788 | { (exit 1); exit 1; }; } | |
23789 | fi | |
23790 | cat >conftest.$ac_ext <<_ACEOF | |
23791 | /* confdefs.h. */ | |
23792 | _ACEOF | |
23793 | cat confdefs.h >>conftest.$ac_ext | |
23794 | cat >>conftest.$ac_ext <<_ACEOF | |
23795 | /* end confdefs.h. */ | |
23796 | ||
a106dabe | 23797 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23798 | #ifdef __cplusplus |
23799 | extern "C" | |
23800 | #endif | |
a106dabe | 23801 | /* We use char because int might match the return type of a gcc2 |
23802 | builtin and then its argument prototype would still apply. */ | |
d213114b | 23803 | char frexpf (); |
23804 | int | |
23805 | main () | |
23806 | { | |
a106dabe | 23807 | frexpf (); |
d213114b | 23808 | ; |
23809 | return 0; | |
23810 | } | |
23811 | _ACEOF | |
23812 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 23813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23814 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 23815 | ac_status=$? |
23816 | grep -v '^ *+' conftest.er1 >conftest.err | |
23817 | rm -f conftest.er1 | |
23818 | cat conftest.err >&5 | |
23819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23820 | (exit $ac_status); } && | |
c0e8efbe | 23821 | { ac_try='test -z "$ac_c_werror_flag" |
23822 | || test ! -s conftest.err' | |
a106dabe | 23823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23824 | (eval $ac_try) 2>&5 | |
d213114b | 23825 | ac_status=$? |
23826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23827 | (exit $ac_status); }; } && | |
23828 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 23829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23830 | (eval $ac_try) 2>&5 | |
d213114b | 23831 | ac_status=$? |
23832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23833 | (exit $ac_status); }; }; then | |
23834 | ac_cv_lib_m_frexpf=yes | |
23835 | else | |
23836 | echo "$as_me: failed program was:" >&5 | |
23837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23838 | ||
a106dabe | 23839 | ac_cv_lib_m_frexpf=no |
d213114b | 23840 | fi |
a106dabe | 23841 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23842 | conftest$ac_exeext conftest.$ac_ext |
23843 | LIBS=$ac_check_lib_save_LIBS | |
23844 | fi | |
a106dabe | 23845 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5 |
23846 | echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6 | |
d213114b | 23847 | if test $ac_cv_lib_m_frexpf = yes; then |
23848 | ||
23849 | cat >>confdefs.h <<\_ACEOF | |
23850 | #define HAVE_FREXPF 1 | |
23851 | _ACEOF | |
23852 | ||
23853 | fi | |
23854 | ||
a106dabe | 23855 | echo "$as_me:$LINENO: checking for frexp in -lm" >&5 |
23856 | echo $ECHO_N "checking for frexp in -lm... $ECHO_C" >&6 | |
d213114b | 23857 | if test "${ac_cv_lib_m_frexp+set}" = set; then |
23858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23859 | else | |
23860 | ac_check_lib_save_LIBS=$LIBS | |
23861 | LIBS="-lm $LIBS" | |
23862 | if test x$gcc_no_link = xyes; then | |
23863 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23864 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23865 | { (exit 1); exit 1; }; } | |
23866 | fi | |
23867 | cat >conftest.$ac_ext <<_ACEOF | |
23868 | /* confdefs.h. */ | |
23869 | _ACEOF | |
23870 | cat confdefs.h >>conftest.$ac_ext | |
23871 | cat >>conftest.$ac_ext <<_ACEOF | |
23872 | /* end confdefs.h. */ | |
23873 | ||
a106dabe | 23874 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23875 | #ifdef __cplusplus |
23876 | extern "C" | |
23877 | #endif | |
a106dabe | 23878 | /* We use char because int might match the return type of a gcc2 |
23879 | builtin and then its argument prototype would still apply. */ | |
d213114b | 23880 | char frexp (); |
23881 | int | |
23882 | main () | |
23883 | { | |
a106dabe | 23884 | frexp (); |
d213114b | 23885 | ; |
23886 | return 0; | |
23887 | } | |
23888 | _ACEOF | |
23889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 23890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23891 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 23892 | ac_status=$? |
23893 | grep -v '^ *+' conftest.er1 >conftest.err | |
23894 | rm -f conftest.er1 | |
23895 | cat conftest.err >&5 | |
23896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23897 | (exit $ac_status); } && | |
c0e8efbe | 23898 | { ac_try='test -z "$ac_c_werror_flag" |
23899 | || test ! -s conftest.err' | |
a106dabe | 23900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23901 | (eval $ac_try) 2>&5 | |
d213114b | 23902 | ac_status=$? |
23903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23904 | (exit $ac_status); }; } && | |
23905 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 23906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23907 | (eval $ac_try) 2>&5 | |
d213114b | 23908 | ac_status=$? |
23909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23910 | (exit $ac_status); }; }; then | |
23911 | ac_cv_lib_m_frexp=yes | |
23912 | else | |
23913 | echo "$as_me: failed program was:" >&5 | |
23914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23915 | ||
a106dabe | 23916 | ac_cv_lib_m_frexp=no |
d213114b | 23917 | fi |
a106dabe | 23918 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23919 | conftest$ac_exeext conftest.$ac_ext |
23920 | LIBS=$ac_check_lib_save_LIBS | |
23921 | fi | |
a106dabe | 23922 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexp" >&5 |
23923 | echo "${ECHO_T}$ac_cv_lib_m_frexp" >&6 | |
d213114b | 23924 | if test $ac_cv_lib_m_frexp = yes; then |
23925 | ||
23926 | cat >>confdefs.h <<\_ACEOF | |
23927 | #define HAVE_FREXP 1 | |
23928 | _ACEOF | |
23929 | ||
23930 | fi | |
23931 | ||
a106dabe | 23932 | echo "$as_me:$LINENO: checking for frexpl in -lm" >&5 |
23933 | echo $ECHO_N "checking for frexpl in -lm... $ECHO_C" >&6 | |
d213114b | 23934 | if test "${ac_cv_lib_m_frexpl+set}" = set; then |
23935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23936 | else | |
23937 | ac_check_lib_save_LIBS=$LIBS | |
23938 | LIBS="-lm $LIBS" | |
23939 | if test x$gcc_no_link = xyes; then | |
23940 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23941 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23942 | { (exit 1); exit 1; }; } | |
23943 | fi | |
23944 | cat >conftest.$ac_ext <<_ACEOF | |
23945 | /* confdefs.h. */ | |
23946 | _ACEOF | |
23947 | cat confdefs.h >>conftest.$ac_ext | |
23948 | cat >>conftest.$ac_ext <<_ACEOF | |
23949 | /* end confdefs.h. */ | |
23950 | ||
a106dabe | 23951 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23952 | #ifdef __cplusplus |
23953 | extern "C" | |
23954 | #endif | |
a106dabe | 23955 | /* We use char because int might match the return type of a gcc2 |
23956 | builtin and then its argument prototype would still apply. */ | |
d213114b | 23957 | char frexpl (); |
23958 | int | |
23959 | main () | |
23960 | { | |
a106dabe | 23961 | frexpl (); |
d213114b | 23962 | ; |
23963 | return 0; | |
23964 | } | |
23965 | _ACEOF | |
23966 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 23967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
23968 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 23969 | ac_status=$? |
23970 | grep -v '^ *+' conftest.er1 >conftest.err | |
23971 | rm -f conftest.er1 | |
23972 | cat conftest.err >&5 | |
23973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23974 | (exit $ac_status); } && | |
c0e8efbe | 23975 | { ac_try='test -z "$ac_c_werror_flag" |
23976 | || test ! -s conftest.err' | |
a106dabe | 23977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23978 | (eval $ac_try) 2>&5 | |
d213114b | 23979 | ac_status=$? |
23980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23981 | (exit $ac_status); }; } && | |
23982 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 23983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23984 | (eval $ac_try) 2>&5 | |
d213114b | 23985 | ac_status=$? |
23986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23987 | (exit $ac_status); }; }; then | |
23988 | ac_cv_lib_m_frexpl=yes | |
23989 | else | |
23990 | echo "$as_me: failed program was:" >&5 | |
23991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23992 | ||
a106dabe | 23993 | ac_cv_lib_m_frexpl=no |
d213114b | 23994 | fi |
a106dabe | 23995 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23996 | conftest$ac_exeext conftest.$ac_ext |
23997 | LIBS=$ac_check_lib_save_LIBS | |
23998 | fi | |
a106dabe | 23999 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpl" >&5 |
24000 | echo "${ECHO_T}$ac_cv_lib_m_frexpl" >&6 | |
d213114b | 24001 | if test $ac_cv_lib_m_frexpl = yes; then |
24002 | ||
24003 | cat >>confdefs.h <<\_ACEOF | |
24004 | #define HAVE_FREXPL 1 | |
24005 | _ACEOF | |
24006 | ||
24007 | fi | |
24008 | ||
a106dabe | 24009 | echo "$as_me:$LINENO: checking for hypotf in -lm" >&5 |
24010 | echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6 | |
d213114b | 24011 | if test "${ac_cv_lib_m_hypotf+set}" = set; then |
24012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24013 | else | |
24014 | ac_check_lib_save_LIBS=$LIBS | |
24015 | LIBS="-lm $LIBS" | |
24016 | if test x$gcc_no_link = xyes; then | |
24017 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24018 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24019 | { (exit 1); exit 1; }; } | |
24020 | fi | |
24021 | cat >conftest.$ac_ext <<_ACEOF | |
24022 | /* confdefs.h. */ | |
24023 | _ACEOF | |
24024 | cat confdefs.h >>conftest.$ac_ext | |
24025 | cat >>conftest.$ac_ext <<_ACEOF | |
24026 | /* end confdefs.h. */ | |
24027 | ||
a106dabe | 24028 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24029 | #ifdef __cplusplus |
24030 | extern "C" | |
24031 | #endif | |
a106dabe | 24032 | /* We use char because int might match the return type of a gcc2 |
24033 | builtin and then its argument prototype would still apply. */ | |
d213114b | 24034 | char hypotf (); |
24035 | int | |
24036 | main () | |
24037 | { | |
a106dabe | 24038 | hypotf (); |
d213114b | 24039 | ; |
24040 | return 0; | |
24041 | } | |
24042 | _ACEOF | |
24043 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 24044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24045 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 24046 | ac_status=$? |
24047 | grep -v '^ *+' conftest.er1 >conftest.err | |
24048 | rm -f conftest.er1 | |
24049 | cat conftest.err >&5 | |
24050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24051 | (exit $ac_status); } && | |
c0e8efbe | 24052 | { ac_try='test -z "$ac_c_werror_flag" |
24053 | || test ! -s conftest.err' | |
a106dabe | 24054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24055 | (eval $ac_try) 2>&5 | |
d213114b | 24056 | ac_status=$? |
24057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24058 | (exit $ac_status); }; } && | |
24059 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 24060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24061 | (eval $ac_try) 2>&5 | |
d213114b | 24062 | ac_status=$? |
24063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24064 | (exit $ac_status); }; }; then | |
24065 | ac_cv_lib_m_hypotf=yes | |
24066 | else | |
24067 | echo "$as_me: failed program was:" >&5 | |
24068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24069 | ||
a106dabe | 24070 | ac_cv_lib_m_hypotf=no |
d213114b | 24071 | fi |
a106dabe | 24072 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24073 | conftest$ac_exeext conftest.$ac_ext |
24074 | LIBS=$ac_check_lib_save_LIBS | |
24075 | fi | |
a106dabe | 24076 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5 |
24077 | echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6 | |
d213114b | 24078 | if test $ac_cv_lib_m_hypotf = yes; then |
24079 | ||
24080 | cat >>confdefs.h <<\_ACEOF | |
24081 | #define HAVE_HYPOTF 1 | |
24082 | _ACEOF | |
24083 | ||
24084 | fi | |
24085 | ||
a106dabe | 24086 | echo "$as_me:$LINENO: checking for hypot in -lm" >&5 |
24087 | echo $ECHO_N "checking for hypot in -lm... $ECHO_C" >&6 | |
d213114b | 24088 | if test "${ac_cv_lib_m_hypot+set}" = set; then |
24089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24090 | else | |
24091 | ac_check_lib_save_LIBS=$LIBS | |
24092 | LIBS="-lm $LIBS" | |
24093 | if test x$gcc_no_link = xyes; then | |
24094 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24095 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24096 | { (exit 1); exit 1; }; } | |
24097 | fi | |
24098 | cat >conftest.$ac_ext <<_ACEOF | |
24099 | /* confdefs.h. */ | |
24100 | _ACEOF | |
24101 | cat confdefs.h >>conftest.$ac_ext | |
24102 | cat >>conftest.$ac_ext <<_ACEOF | |
24103 | /* end confdefs.h. */ | |
24104 | ||
a106dabe | 24105 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24106 | #ifdef __cplusplus |
24107 | extern "C" | |
24108 | #endif | |
a106dabe | 24109 | /* We use char because int might match the return type of a gcc2 |
24110 | builtin and then its argument prototype would still apply. */ | |
d213114b | 24111 | char hypot (); |
24112 | int | |
24113 | main () | |
24114 | { | |
a106dabe | 24115 | hypot (); |
d213114b | 24116 | ; |
24117 | return 0; | |
24118 | } | |
24119 | _ACEOF | |
24120 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 24121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24122 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 24123 | ac_status=$? |
24124 | grep -v '^ *+' conftest.er1 >conftest.err | |
24125 | rm -f conftest.er1 | |
24126 | cat conftest.err >&5 | |
24127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24128 | (exit $ac_status); } && | |
c0e8efbe | 24129 | { ac_try='test -z "$ac_c_werror_flag" |
24130 | || test ! -s conftest.err' | |
a106dabe | 24131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24132 | (eval $ac_try) 2>&5 | |
d213114b | 24133 | ac_status=$? |
24134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24135 | (exit $ac_status); }; } && | |
24136 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 24137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24138 | (eval $ac_try) 2>&5 | |
d213114b | 24139 | ac_status=$? |
24140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24141 | (exit $ac_status); }; }; then | |
24142 | ac_cv_lib_m_hypot=yes | |
24143 | else | |
24144 | echo "$as_me: failed program was:" >&5 | |
24145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24146 | ||
a106dabe | 24147 | ac_cv_lib_m_hypot=no |
d213114b | 24148 | fi |
a106dabe | 24149 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24150 | conftest$ac_exeext conftest.$ac_ext |
24151 | LIBS=$ac_check_lib_save_LIBS | |
24152 | fi | |
a106dabe | 24153 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypot" >&5 |
24154 | echo "${ECHO_T}$ac_cv_lib_m_hypot" >&6 | |
d213114b | 24155 | if test $ac_cv_lib_m_hypot = yes; then |
24156 | ||
24157 | cat >>confdefs.h <<\_ACEOF | |
24158 | #define HAVE_HYPOT 1 | |
24159 | _ACEOF | |
24160 | ||
24161 | fi | |
24162 | ||
a106dabe | 24163 | echo "$as_me:$LINENO: checking for hypotl in -lm" >&5 |
24164 | echo $ECHO_N "checking for hypotl in -lm... $ECHO_C" >&6 | |
d213114b | 24165 | if test "${ac_cv_lib_m_hypotl+set}" = set; then |
24166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24167 | else | |
24168 | ac_check_lib_save_LIBS=$LIBS | |
24169 | LIBS="-lm $LIBS" | |
24170 | if test x$gcc_no_link = xyes; then | |
24171 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24172 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24173 | { (exit 1); exit 1; }; } | |
24174 | fi | |
24175 | cat >conftest.$ac_ext <<_ACEOF | |
24176 | /* confdefs.h. */ | |
24177 | _ACEOF | |
24178 | cat confdefs.h >>conftest.$ac_ext | |
24179 | cat >>conftest.$ac_ext <<_ACEOF | |
24180 | /* end confdefs.h. */ | |
24181 | ||
a106dabe | 24182 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24183 | #ifdef __cplusplus |
24184 | extern "C" | |
24185 | #endif | |
a106dabe | 24186 | /* We use char because int might match the return type of a gcc2 |
24187 | builtin and then its argument prototype would still apply. */ | |
d213114b | 24188 | char hypotl (); |
24189 | int | |
24190 | main () | |
24191 | { | |
a106dabe | 24192 | hypotl (); |
d213114b | 24193 | ; |
24194 | return 0; | |
24195 | } | |
24196 | _ACEOF | |
24197 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 24198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24199 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 24200 | ac_status=$? |
24201 | grep -v '^ *+' conftest.er1 >conftest.err | |
24202 | rm -f conftest.er1 | |
24203 | cat conftest.err >&5 | |
24204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24205 | (exit $ac_status); } && | |
c0e8efbe | 24206 | { ac_try='test -z "$ac_c_werror_flag" |
24207 | || test ! -s conftest.err' | |
a106dabe | 24208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24209 | (eval $ac_try) 2>&5 | |
d213114b | 24210 | ac_status=$? |
24211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24212 | (exit $ac_status); }; } && | |
24213 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 24214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24215 | (eval $ac_try) 2>&5 | |
d213114b | 24216 | ac_status=$? |
24217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24218 | (exit $ac_status); }; }; then | |
24219 | ac_cv_lib_m_hypotl=yes | |
24220 | else | |
24221 | echo "$as_me: failed program was:" >&5 | |
24222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24223 | ||
a106dabe | 24224 | ac_cv_lib_m_hypotl=no |
d213114b | 24225 | fi |
a106dabe | 24226 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24227 | conftest$ac_exeext conftest.$ac_ext |
24228 | LIBS=$ac_check_lib_save_LIBS | |
24229 | fi | |
a106dabe | 24230 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotl" >&5 |
24231 | echo "${ECHO_T}$ac_cv_lib_m_hypotl" >&6 | |
d213114b | 24232 | if test $ac_cv_lib_m_hypotl = yes; then |
24233 | ||
24234 | cat >>confdefs.h <<\_ACEOF | |
24235 | #define HAVE_HYPOTL 1 | |
24236 | _ACEOF | |
24237 | ||
24238 | fi | |
24239 | ||
a106dabe | 24240 | echo "$as_me:$LINENO: checking for ldexpf in -lm" >&5 |
24241 | echo $ECHO_N "checking for ldexpf in -lm... $ECHO_C" >&6 | |
71d90ac4 | 24242 | if test "${ac_cv_lib_m_ldexpf+set}" = set; then |
24243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24244 | else | |
24245 | ac_check_lib_save_LIBS=$LIBS | |
24246 | LIBS="-lm $LIBS" | |
24247 | if test x$gcc_no_link = xyes; then | |
24248 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24249 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24250 | { (exit 1); exit 1; }; } | |
24251 | fi | |
24252 | cat >conftest.$ac_ext <<_ACEOF | |
24253 | /* confdefs.h. */ | |
24254 | _ACEOF | |
24255 | cat confdefs.h >>conftest.$ac_ext | |
24256 | cat >>conftest.$ac_ext <<_ACEOF | |
24257 | /* end confdefs.h. */ | |
24258 | ||
a106dabe | 24259 | /* Override any gcc2 internal prototype to avoid an error. */ |
71d90ac4 | 24260 | #ifdef __cplusplus |
24261 | extern "C" | |
24262 | #endif | |
a106dabe | 24263 | /* We use char because int might match the return type of a gcc2 |
24264 | builtin and then its argument prototype would still apply. */ | |
71d90ac4 | 24265 | char ldexpf (); |
24266 | int | |
24267 | main () | |
24268 | { | |
a106dabe | 24269 | ldexpf (); |
71d90ac4 | 24270 | ; |
24271 | return 0; | |
24272 | } | |
24273 | _ACEOF | |
24274 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 24275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24276 | (eval $ac_link) 2>conftest.er1 | |
71d90ac4 | 24277 | ac_status=$? |
24278 | grep -v '^ *+' conftest.er1 >conftest.err | |
24279 | rm -f conftest.er1 | |
24280 | cat conftest.err >&5 | |
24281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24282 | (exit $ac_status); } && | |
c0e8efbe | 24283 | { ac_try='test -z "$ac_c_werror_flag" |
24284 | || test ! -s conftest.err' | |
a106dabe | 24285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24286 | (eval $ac_try) 2>&5 | |
71d90ac4 | 24287 | ac_status=$? |
24288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24289 | (exit $ac_status); }; } && | |
24290 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 24291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24292 | (eval $ac_try) 2>&5 | |
71d90ac4 | 24293 | ac_status=$? |
24294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24295 | (exit $ac_status); }; }; then | |
24296 | ac_cv_lib_m_ldexpf=yes | |
24297 | else | |
24298 | echo "$as_me: failed program was:" >&5 | |
24299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24300 | ||
a106dabe | 24301 | ac_cv_lib_m_ldexpf=no |
71d90ac4 | 24302 | fi |
a106dabe | 24303 | rm -f conftest.err conftest.$ac_objext \ |
71d90ac4 | 24304 | conftest$ac_exeext conftest.$ac_ext |
24305 | LIBS=$ac_check_lib_save_LIBS | |
24306 | fi | |
a106dabe | 24307 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexpf" >&5 |
24308 | echo "${ECHO_T}$ac_cv_lib_m_ldexpf" >&6 | |
71d90ac4 | 24309 | if test $ac_cv_lib_m_ldexpf = yes; then |
24310 | ||
24311 | cat >>confdefs.h <<\_ACEOF | |
24312 | #define HAVE_LDEXPF 1 | |
24313 | _ACEOF | |
24314 | ||
24315 | fi | |
24316 | ||
a106dabe | 24317 | echo "$as_me:$LINENO: checking for ldexp in -lm" >&5 |
24318 | echo $ECHO_N "checking for ldexp in -lm... $ECHO_C" >&6 | |
71d90ac4 | 24319 | if test "${ac_cv_lib_m_ldexp+set}" = set; then |
24320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24321 | else | |
24322 | ac_check_lib_save_LIBS=$LIBS | |
24323 | LIBS="-lm $LIBS" | |
24324 | if test x$gcc_no_link = xyes; then | |
24325 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24326 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24327 | { (exit 1); exit 1; }; } | |
24328 | fi | |
24329 | cat >conftest.$ac_ext <<_ACEOF | |
24330 | /* confdefs.h. */ | |
24331 | _ACEOF | |
24332 | cat confdefs.h >>conftest.$ac_ext | |
24333 | cat >>conftest.$ac_ext <<_ACEOF | |
24334 | /* end confdefs.h. */ | |
24335 | ||
a106dabe | 24336 | /* Override any gcc2 internal prototype to avoid an error. */ |
71d90ac4 | 24337 | #ifdef __cplusplus |
24338 | extern "C" | |
24339 | #endif | |
a106dabe | 24340 | /* We use char because int might match the return type of a gcc2 |
24341 | builtin and then its argument prototype would still apply. */ | |
71d90ac4 | 24342 | char ldexp (); |
24343 | int | |
24344 | main () | |
24345 | { | |
a106dabe | 24346 | ldexp (); |
71d90ac4 | 24347 | ; |
24348 | return 0; | |
24349 | } | |
24350 | _ACEOF | |
24351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 24352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24353 | (eval $ac_link) 2>conftest.er1 | |
71d90ac4 | 24354 | ac_status=$? |
24355 | grep -v '^ *+' conftest.er1 >conftest.err | |
24356 | rm -f conftest.er1 | |
24357 | cat conftest.err >&5 | |
24358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24359 | (exit $ac_status); } && | |
c0e8efbe | 24360 | { ac_try='test -z "$ac_c_werror_flag" |
24361 | || test ! -s conftest.err' | |
a106dabe | 24362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24363 | (eval $ac_try) 2>&5 | |
71d90ac4 | 24364 | ac_status=$? |
24365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24366 | (exit $ac_status); }; } && | |
24367 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 24368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24369 | (eval $ac_try) 2>&5 | |
71d90ac4 | 24370 | ac_status=$? |
24371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24372 | (exit $ac_status); }; }; then | |
24373 | ac_cv_lib_m_ldexp=yes | |
24374 | else | |
24375 | echo "$as_me: failed program was:" >&5 | |
24376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24377 | ||
a106dabe | 24378 | ac_cv_lib_m_ldexp=no |
71d90ac4 | 24379 | fi |
a106dabe | 24380 | rm -f conftest.err conftest.$ac_objext \ |
71d90ac4 | 24381 | conftest$ac_exeext conftest.$ac_ext |
24382 | LIBS=$ac_check_lib_save_LIBS | |
24383 | fi | |
a106dabe | 24384 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexp" >&5 |
24385 | echo "${ECHO_T}$ac_cv_lib_m_ldexp" >&6 | |
71d90ac4 | 24386 | if test $ac_cv_lib_m_ldexp = yes; then |
24387 | ||
24388 | cat >>confdefs.h <<\_ACEOF | |
24389 | #define HAVE_LDEXP 1 | |
24390 | _ACEOF | |
24391 | ||
24392 | fi | |
24393 | ||
a106dabe | 24394 | echo "$as_me:$LINENO: checking for ldexpl in -lm" >&5 |
24395 | echo $ECHO_N "checking for ldexpl in -lm... $ECHO_C" >&6 | |
71d90ac4 | 24396 | if test "${ac_cv_lib_m_ldexpl+set}" = set; then |
24397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24398 | else | |
24399 | ac_check_lib_save_LIBS=$LIBS | |
24400 | LIBS="-lm $LIBS" | |
24401 | if test x$gcc_no_link = xyes; then | |
24402 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24403 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24404 | { (exit 1); exit 1; }; } | |
24405 | fi | |
24406 | cat >conftest.$ac_ext <<_ACEOF | |
24407 | /* confdefs.h. */ | |
24408 | _ACEOF | |
24409 | cat confdefs.h >>conftest.$ac_ext | |
24410 | cat >>conftest.$ac_ext <<_ACEOF | |
24411 | /* end confdefs.h. */ | |
24412 | ||
a106dabe | 24413 | /* Override any gcc2 internal prototype to avoid an error. */ |
71d90ac4 | 24414 | #ifdef __cplusplus |
24415 | extern "C" | |
24416 | #endif | |
a106dabe | 24417 | /* We use char because int might match the return type of a gcc2 |
24418 | builtin and then its argument prototype would still apply. */ | |
71d90ac4 | 24419 | char ldexpl (); |
24420 | int | |
24421 | main () | |
24422 | { | |
a106dabe | 24423 | ldexpl (); |
71d90ac4 | 24424 | ; |
24425 | return 0; | |
24426 | } | |
24427 | _ACEOF | |
24428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 24429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24430 | (eval $ac_link) 2>conftest.er1 | |
71d90ac4 | 24431 | ac_status=$? |
24432 | grep -v '^ *+' conftest.er1 >conftest.err | |
24433 | rm -f conftest.er1 | |
24434 | cat conftest.err >&5 | |
24435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24436 | (exit $ac_status); } && | |
c0e8efbe | 24437 | { ac_try='test -z "$ac_c_werror_flag" |
24438 | || test ! -s conftest.err' | |
a106dabe | 24439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24440 | (eval $ac_try) 2>&5 | |
71d90ac4 | 24441 | ac_status=$? |
24442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24443 | (exit $ac_status); }; } && | |
24444 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 24445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24446 | (eval $ac_try) 2>&5 | |
71d90ac4 | 24447 | ac_status=$? |
24448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24449 | (exit $ac_status); }; }; then | |
24450 | ac_cv_lib_m_ldexpl=yes | |
24451 | else | |
24452 | echo "$as_me: failed program was:" >&5 | |
24453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24454 | ||
a106dabe | 24455 | ac_cv_lib_m_ldexpl=no |
71d90ac4 | 24456 | fi |
a106dabe | 24457 | rm -f conftest.err conftest.$ac_objext \ |
71d90ac4 | 24458 | conftest$ac_exeext conftest.$ac_ext |
24459 | LIBS=$ac_check_lib_save_LIBS | |
24460 | fi | |
a106dabe | 24461 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexpl" >&5 |
24462 | echo "${ECHO_T}$ac_cv_lib_m_ldexpl" >&6 | |
71d90ac4 | 24463 | if test $ac_cv_lib_m_ldexpl = yes; then |
24464 | ||
24465 | cat >>confdefs.h <<\_ACEOF | |
24466 | #define HAVE_LDEXPL 1 | |
24467 | _ACEOF | |
24468 | ||
24469 | fi | |
24470 | ||
a106dabe | 24471 | echo "$as_me:$LINENO: checking for logf in -lm" >&5 |
24472 | echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6 | |
d213114b | 24473 | if test "${ac_cv_lib_m_logf+set}" = set; then |
24474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24475 | else | |
24476 | ac_check_lib_save_LIBS=$LIBS | |
24477 | LIBS="-lm $LIBS" | |
24478 | if test x$gcc_no_link = xyes; then | |
24479 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24480 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24481 | { (exit 1); exit 1; }; } | |
24482 | fi | |
24483 | cat >conftest.$ac_ext <<_ACEOF | |
24484 | /* confdefs.h. */ | |
24485 | _ACEOF | |
24486 | cat confdefs.h >>conftest.$ac_ext | |
24487 | cat >>conftest.$ac_ext <<_ACEOF | |
24488 | /* end confdefs.h. */ | |
24489 | ||
a106dabe | 24490 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24491 | #ifdef __cplusplus |
24492 | extern "C" | |
24493 | #endif | |
a106dabe | 24494 | /* We use char because int might match the return type of a gcc2 |
24495 | builtin and then its argument prototype would still apply. */ | |
d213114b | 24496 | char logf (); |
24497 | int | |
24498 | main () | |
24499 | { | |
a106dabe | 24500 | logf (); |
d213114b | 24501 | ; |
24502 | return 0; | |
24503 | } | |
24504 | _ACEOF | |
24505 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 24506 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24507 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 24508 | ac_status=$? |
24509 | grep -v '^ *+' conftest.er1 >conftest.err | |
24510 | rm -f conftest.er1 | |
24511 | cat conftest.err >&5 | |
24512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24513 | (exit $ac_status); } && | |
c0e8efbe | 24514 | { ac_try='test -z "$ac_c_werror_flag" |
24515 | || test ! -s conftest.err' | |
a106dabe | 24516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24517 | (eval $ac_try) 2>&5 | |
d213114b | 24518 | ac_status=$? |
24519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24520 | (exit $ac_status); }; } && | |
24521 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 24522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24523 | (eval $ac_try) 2>&5 | |
d213114b | 24524 | ac_status=$? |
24525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24526 | (exit $ac_status); }; }; then | |
24527 | ac_cv_lib_m_logf=yes | |
24528 | else | |
24529 | echo "$as_me: failed program was:" >&5 | |
24530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24531 | ||
a106dabe | 24532 | ac_cv_lib_m_logf=no |
d213114b | 24533 | fi |
a106dabe | 24534 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24535 | conftest$ac_exeext conftest.$ac_ext |
24536 | LIBS=$ac_check_lib_save_LIBS | |
24537 | fi | |
a106dabe | 24538 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5 |
24539 | echo "${ECHO_T}$ac_cv_lib_m_logf" >&6 | |
d213114b | 24540 | if test $ac_cv_lib_m_logf = yes; then |
24541 | ||
24542 | cat >>confdefs.h <<\_ACEOF | |
24543 | #define HAVE_LOGF 1 | |
24544 | _ACEOF | |
24545 | ||
24546 | fi | |
24547 | ||
a106dabe | 24548 | echo "$as_me:$LINENO: checking for log in -lm" >&5 |
24549 | echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6 | |
d213114b | 24550 | if test "${ac_cv_lib_m_log+set}" = set; then |
24551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24552 | else | |
24553 | ac_check_lib_save_LIBS=$LIBS | |
24554 | LIBS="-lm $LIBS" | |
24555 | if test x$gcc_no_link = xyes; then | |
24556 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24557 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24558 | { (exit 1); exit 1; }; } | |
24559 | fi | |
24560 | cat >conftest.$ac_ext <<_ACEOF | |
24561 | /* confdefs.h. */ | |
24562 | _ACEOF | |
24563 | cat confdefs.h >>conftest.$ac_ext | |
24564 | cat >>conftest.$ac_ext <<_ACEOF | |
24565 | /* end confdefs.h. */ | |
24566 | ||
a106dabe | 24567 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24568 | #ifdef __cplusplus |
24569 | extern "C" | |
24570 | #endif | |
a106dabe | 24571 | /* We use char because int might match the return type of a gcc2 |
24572 | builtin and then its argument prototype would still apply. */ | |
d213114b | 24573 | char log (); |
24574 | int | |
24575 | main () | |
24576 | { | |
a106dabe | 24577 | log (); |
d213114b | 24578 | ; |
24579 | return 0; | |
24580 | } | |
24581 | _ACEOF | |
24582 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 24583 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24584 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 24585 | ac_status=$? |
24586 | grep -v '^ *+' conftest.er1 >conftest.err | |
24587 | rm -f conftest.er1 | |
24588 | cat conftest.err >&5 | |
24589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24590 | (exit $ac_status); } && | |
c0e8efbe | 24591 | { ac_try='test -z "$ac_c_werror_flag" |
24592 | || test ! -s conftest.err' | |
a106dabe | 24593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24594 | (eval $ac_try) 2>&5 | |
d213114b | 24595 | ac_status=$? |
24596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24597 | (exit $ac_status); }; } && | |
24598 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 24599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24600 | (eval $ac_try) 2>&5 | |
d213114b | 24601 | ac_status=$? |
24602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24603 | (exit $ac_status); }; }; then | |
24604 | ac_cv_lib_m_log=yes | |
24605 | else | |
24606 | echo "$as_me: failed program was:" >&5 | |
24607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24608 | ||
a106dabe | 24609 | ac_cv_lib_m_log=no |
d213114b | 24610 | fi |
a106dabe | 24611 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24612 | conftest$ac_exeext conftest.$ac_ext |
24613 | LIBS=$ac_check_lib_save_LIBS | |
24614 | fi | |
a106dabe | 24615 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5 |
24616 | echo "${ECHO_T}$ac_cv_lib_m_log" >&6 | |
d213114b | 24617 | if test $ac_cv_lib_m_log = yes; then |
24618 | ||
24619 | cat >>confdefs.h <<\_ACEOF | |
24620 | #define HAVE_LOG 1 | |
24621 | _ACEOF | |
24622 | ||
24623 | fi | |
24624 | ||
a106dabe | 24625 | echo "$as_me:$LINENO: checking for logl in -lm" >&5 |
24626 | echo $ECHO_N "checking for logl in -lm... $ECHO_C" >&6 | |
d213114b | 24627 | if test "${ac_cv_lib_m_logl+set}" = set; then |
24628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24629 | else | |
24630 | ac_check_lib_save_LIBS=$LIBS | |
24631 | LIBS="-lm $LIBS" | |
24632 | if test x$gcc_no_link = xyes; then | |
24633 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24634 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24635 | { (exit 1); exit 1; }; } | |
24636 | fi | |
24637 | cat >conftest.$ac_ext <<_ACEOF | |
24638 | /* confdefs.h. */ | |
24639 | _ACEOF | |
24640 | cat confdefs.h >>conftest.$ac_ext | |
24641 | cat >>conftest.$ac_ext <<_ACEOF | |
24642 | /* end confdefs.h. */ | |
24643 | ||
a106dabe | 24644 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24645 | #ifdef __cplusplus |
24646 | extern "C" | |
24647 | #endif | |
a106dabe | 24648 | /* We use char because int might match the return type of a gcc2 |
24649 | builtin and then its argument prototype would still apply. */ | |
d213114b | 24650 | char logl (); |
24651 | int | |
24652 | main () | |
24653 | { | |
a106dabe | 24654 | logl (); |
d213114b | 24655 | ; |
24656 | return 0; | |
24657 | } | |
24658 | _ACEOF | |
24659 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 24660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24661 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 24662 | ac_status=$? |
24663 | grep -v '^ *+' conftest.er1 >conftest.err | |
24664 | rm -f conftest.er1 | |
24665 | cat conftest.err >&5 | |
24666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24667 | (exit $ac_status); } && | |
c0e8efbe | 24668 | { ac_try='test -z "$ac_c_werror_flag" |
24669 | || test ! -s conftest.err' | |
a106dabe | 24670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24671 | (eval $ac_try) 2>&5 | |
d213114b | 24672 | ac_status=$? |
24673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24674 | (exit $ac_status); }; } && | |
24675 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 24676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24677 | (eval $ac_try) 2>&5 | |
d213114b | 24678 | ac_status=$? |
24679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24680 | (exit $ac_status); }; }; then | |
24681 | ac_cv_lib_m_logl=yes | |
24682 | else | |
24683 | echo "$as_me: failed program was:" >&5 | |
24684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24685 | ||
a106dabe | 24686 | ac_cv_lib_m_logl=no |
d213114b | 24687 | fi |
a106dabe | 24688 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24689 | conftest$ac_exeext conftest.$ac_ext |
24690 | LIBS=$ac_check_lib_save_LIBS | |
24691 | fi | |
a106dabe | 24692 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_logl" >&5 |
24693 | echo "${ECHO_T}$ac_cv_lib_m_logl" >&6 | |
d213114b | 24694 | if test $ac_cv_lib_m_logl = yes; then |
24695 | ||
24696 | cat >>confdefs.h <<\_ACEOF | |
24697 | #define HAVE_LOGL 1 | |
24698 | _ACEOF | |
24699 | ||
24700 | fi | |
24701 | ||
a106dabe | 24702 | echo "$as_me:$LINENO: checking for clogf in -lm" >&5 |
24703 | echo $ECHO_N "checking for clogf in -lm... $ECHO_C" >&6 | |
d213114b | 24704 | if test "${ac_cv_lib_m_clogf+set}" = set; then |
24705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24706 | else | |
24707 | ac_check_lib_save_LIBS=$LIBS | |
24708 | LIBS="-lm $LIBS" | |
24709 | if test x$gcc_no_link = xyes; then | |
24710 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24711 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24712 | { (exit 1); exit 1; }; } | |
24713 | fi | |
24714 | cat >conftest.$ac_ext <<_ACEOF | |
24715 | /* confdefs.h. */ | |
24716 | _ACEOF | |
24717 | cat confdefs.h >>conftest.$ac_ext | |
24718 | cat >>conftest.$ac_ext <<_ACEOF | |
24719 | /* end confdefs.h. */ | |
24720 | ||
a106dabe | 24721 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24722 | #ifdef __cplusplus |
24723 | extern "C" | |
24724 | #endif | |
a106dabe | 24725 | /* We use char because int might match the return type of a gcc2 |
24726 | builtin and then its argument prototype would still apply. */ | |
d213114b | 24727 | char clogf (); |
24728 | int | |
24729 | main () | |
24730 | { | |
a106dabe | 24731 | clogf (); |
d213114b | 24732 | ; |
24733 | return 0; | |
24734 | } | |
24735 | _ACEOF | |
24736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 24737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24738 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 24739 | ac_status=$? |
24740 | grep -v '^ *+' conftest.er1 >conftest.err | |
24741 | rm -f conftest.er1 | |
24742 | cat conftest.err >&5 | |
24743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24744 | (exit $ac_status); } && | |
c0e8efbe | 24745 | { ac_try='test -z "$ac_c_werror_flag" |
24746 | || test ! -s conftest.err' | |
a106dabe | 24747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24748 | (eval $ac_try) 2>&5 | |
d213114b | 24749 | ac_status=$? |
24750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24751 | (exit $ac_status); }; } && | |
24752 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 24753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24754 | (eval $ac_try) 2>&5 | |
d213114b | 24755 | ac_status=$? |
24756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24757 | (exit $ac_status); }; }; then | |
24758 | ac_cv_lib_m_clogf=yes | |
24759 | else | |
24760 | echo "$as_me: failed program was:" >&5 | |
24761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24762 | ||
a106dabe | 24763 | ac_cv_lib_m_clogf=no |
d213114b | 24764 | fi |
a106dabe | 24765 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24766 | conftest$ac_exeext conftest.$ac_ext |
24767 | LIBS=$ac_check_lib_save_LIBS | |
24768 | fi | |
a106dabe | 24769 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clogf" >&5 |
24770 | echo "${ECHO_T}$ac_cv_lib_m_clogf" >&6 | |
d213114b | 24771 | if test $ac_cv_lib_m_clogf = yes; then |
24772 | ||
24773 | cat >>confdefs.h <<\_ACEOF | |
24774 | #define HAVE_CLOGF 1 | |
24775 | _ACEOF | |
24776 | ||
24777 | fi | |
24778 | ||
a106dabe | 24779 | echo "$as_me:$LINENO: checking for clog in -lm" >&5 |
24780 | echo $ECHO_N "checking for clog in -lm... $ECHO_C" >&6 | |
d213114b | 24781 | if test "${ac_cv_lib_m_clog+set}" = set; then |
24782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24783 | else | |
24784 | ac_check_lib_save_LIBS=$LIBS | |
24785 | LIBS="-lm $LIBS" | |
24786 | if test x$gcc_no_link = xyes; then | |
24787 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24788 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24789 | { (exit 1); exit 1; }; } | |
24790 | fi | |
24791 | cat >conftest.$ac_ext <<_ACEOF | |
24792 | /* confdefs.h. */ | |
24793 | _ACEOF | |
24794 | cat confdefs.h >>conftest.$ac_ext | |
24795 | cat >>conftest.$ac_ext <<_ACEOF | |
24796 | /* end confdefs.h. */ | |
24797 | ||
a106dabe | 24798 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24799 | #ifdef __cplusplus |
24800 | extern "C" | |
24801 | #endif | |
a106dabe | 24802 | /* We use char because int might match the return type of a gcc2 |
24803 | builtin and then its argument prototype would still apply. */ | |
d213114b | 24804 | char clog (); |
24805 | int | |
24806 | main () | |
24807 | { | |
a106dabe | 24808 | clog (); |
d213114b | 24809 | ; |
24810 | return 0; | |
24811 | } | |
24812 | _ACEOF | |
24813 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 24814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24815 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 24816 | ac_status=$? |
24817 | grep -v '^ *+' conftest.er1 >conftest.err | |
24818 | rm -f conftest.er1 | |
24819 | cat conftest.err >&5 | |
24820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24821 | (exit $ac_status); } && | |
c0e8efbe | 24822 | { ac_try='test -z "$ac_c_werror_flag" |
24823 | || test ! -s conftest.err' | |
a106dabe | 24824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24825 | (eval $ac_try) 2>&5 | |
d213114b | 24826 | ac_status=$? |
24827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24828 | (exit $ac_status); }; } && | |
24829 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 24830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24831 | (eval $ac_try) 2>&5 | |
d213114b | 24832 | ac_status=$? |
24833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24834 | (exit $ac_status); }; }; then | |
24835 | ac_cv_lib_m_clog=yes | |
24836 | else | |
24837 | echo "$as_me: failed program was:" >&5 | |
24838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24839 | ||
a106dabe | 24840 | ac_cv_lib_m_clog=no |
d213114b | 24841 | fi |
a106dabe | 24842 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24843 | conftest$ac_exeext conftest.$ac_ext |
24844 | LIBS=$ac_check_lib_save_LIBS | |
24845 | fi | |
a106dabe | 24846 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog" >&5 |
24847 | echo "${ECHO_T}$ac_cv_lib_m_clog" >&6 | |
d213114b | 24848 | if test $ac_cv_lib_m_clog = yes; then |
24849 | ||
24850 | cat >>confdefs.h <<\_ACEOF | |
24851 | #define HAVE_CLOG 1 | |
24852 | _ACEOF | |
24853 | ||
24854 | fi | |
24855 | ||
a106dabe | 24856 | echo "$as_me:$LINENO: checking for clogl in -lm" >&5 |
24857 | echo $ECHO_N "checking for clogl in -lm... $ECHO_C" >&6 | |
d213114b | 24858 | if test "${ac_cv_lib_m_clogl+set}" = set; then |
24859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24860 | else | |
24861 | ac_check_lib_save_LIBS=$LIBS | |
24862 | LIBS="-lm $LIBS" | |
24863 | if test x$gcc_no_link = xyes; then | |
24864 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24865 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24866 | { (exit 1); exit 1; }; } | |
24867 | fi | |
24868 | cat >conftest.$ac_ext <<_ACEOF | |
24869 | /* confdefs.h. */ | |
24870 | _ACEOF | |
24871 | cat confdefs.h >>conftest.$ac_ext | |
24872 | cat >>conftest.$ac_ext <<_ACEOF | |
24873 | /* end confdefs.h. */ | |
24874 | ||
a106dabe | 24875 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24876 | #ifdef __cplusplus |
24877 | extern "C" | |
24878 | #endif | |
a106dabe | 24879 | /* We use char because int might match the return type of a gcc2 |
24880 | builtin and then its argument prototype would still apply. */ | |
d213114b | 24881 | char clogl (); |
24882 | int | |
24883 | main () | |
24884 | { | |
a106dabe | 24885 | clogl (); |
d213114b | 24886 | ; |
24887 | return 0; | |
24888 | } | |
24889 | _ACEOF | |
24890 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 24891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24892 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 24893 | ac_status=$? |
24894 | grep -v '^ *+' conftest.er1 >conftest.err | |
24895 | rm -f conftest.er1 | |
24896 | cat conftest.err >&5 | |
24897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24898 | (exit $ac_status); } && | |
c0e8efbe | 24899 | { ac_try='test -z "$ac_c_werror_flag" |
24900 | || test ! -s conftest.err' | |
a106dabe | 24901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24902 | (eval $ac_try) 2>&5 | |
d213114b | 24903 | ac_status=$? |
24904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24905 | (exit $ac_status); }; } && | |
24906 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 24907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24908 | (eval $ac_try) 2>&5 | |
d213114b | 24909 | ac_status=$? |
24910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24911 | (exit $ac_status); }; }; then | |
24912 | ac_cv_lib_m_clogl=yes | |
24913 | else | |
24914 | echo "$as_me: failed program was:" >&5 | |
24915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24916 | ||
a106dabe | 24917 | ac_cv_lib_m_clogl=no |
d213114b | 24918 | fi |
a106dabe | 24919 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24920 | conftest$ac_exeext conftest.$ac_ext |
24921 | LIBS=$ac_check_lib_save_LIBS | |
24922 | fi | |
a106dabe | 24923 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clogl" >&5 |
24924 | echo "${ECHO_T}$ac_cv_lib_m_clogl" >&6 | |
d213114b | 24925 | if test $ac_cv_lib_m_clogl = yes; then |
24926 | ||
24927 | cat >>confdefs.h <<\_ACEOF | |
24928 | #define HAVE_CLOGL 1 | |
24929 | _ACEOF | |
24930 | ||
24931 | fi | |
24932 | ||
a106dabe | 24933 | echo "$as_me:$LINENO: checking for log10f in -lm" >&5 |
24934 | echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6 | |
d213114b | 24935 | if test "${ac_cv_lib_m_log10f+set}" = set; then |
24936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24937 | else | |
24938 | ac_check_lib_save_LIBS=$LIBS | |
24939 | LIBS="-lm $LIBS" | |
24940 | if test x$gcc_no_link = xyes; then | |
24941 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24942 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24943 | { (exit 1); exit 1; }; } | |
24944 | fi | |
24945 | cat >conftest.$ac_ext <<_ACEOF | |
24946 | /* confdefs.h. */ | |
24947 | _ACEOF | |
24948 | cat confdefs.h >>conftest.$ac_ext | |
24949 | cat >>conftest.$ac_ext <<_ACEOF | |
24950 | /* end confdefs.h. */ | |
24951 | ||
a106dabe | 24952 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24953 | #ifdef __cplusplus |
24954 | extern "C" | |
24955 | #endif | |
a106dabe | 24956 | /* We use char because int might match the return type of a gcc2 |
24957 | builtin and then its argument prototype would still apply. */ | |
d213114b | 24958 | char log10f (); |
24959 | int | |
24960 | main () | |
24961 | { | |
a106dabe | 24962 | log10f (); |
d213114b | 24963 | ; |
24964 | return 0; | |
24965 | } | |
24966 | _ACEOF | |
24967 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 24968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
24969 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 24970 | ac_status=$? |
24971 | grep -v '^ *+' conftest.er1 >conftest.err | |
24972 | rm -f conftest.er1 | |
24973 | cat conftest.err >&5 | |
24974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24975 | (exit $ac_status); } && | |
c0e8efbe | 24976 | { ac_try='test -z "$ac_c_werror_flag" |
24977 | || test ! -s conftest.err' | |
a106dabe | 24978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24979 | (eval $ac_try) 2>&5 | |
d213114b | 24980 | ac_status=$? |
24981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24982 | (exit $ac_status); }; } && | |
24983 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 24984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24985 | (eval $ac_try) 2>&5 | |
d213114b | 24986 | ac_status=$? |
24987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24988 | (exit $ac_status); }; }; then | |
24989 | ac_cv_lib_m_log10f=yes | |
24990 | else | |
24991 | echo "$as_me: failed program was:" >&5 | |
24992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24993 | ||
a106dabe | 24994 | ac_cv_lib_m_log10f=no |
d213114b | 24995 | fi |
a106dabe | 24996 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24997 | conftest$ac_exeext conftest.$ac_ext |
24998 | LIBS=$ac_check_lib_save_LIBS | |
24999 | fi | |
a106dabe | 25000 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5 |
25001 | echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6 | |
d213114b | 25002 | if test $ac_cv_lib_m_log10f = yes; then |
25003 | ||
25004 | cat >>confdefs.h <<\_ACEOF | |
25005 | #define HAVE_LOG10F 1 | |
25006 | _ACEOF | |
25007 | ||
25008 | fi | |
25009 | ||
a106dabe | 25010 | echo "$as_me:$LINENO: checking for log10 in -lm" >&5 |
25011 | echo $ECHO_N "checking for log10 in -lm... $ECHO_C" >&6 | |
d213114b | 25012 | if test "${ac_cv_lib_m_log10+set}" = set; then |
25013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25014 | else | |
25015 | ac_check_lib_save_LIBS=$LIBS | |
25016 | LIBS="-lm $LIBS" | |
25017 | if test x$gcc_no_link = xyes; then | |
25018 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25019 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25020 | { (exit 1); exit 1; }; } | |
25021 | fi | |
25022 | cat >conftest.$ac_ext <<_ACEOF | |
25023 | /* confdefs.h. */ | |
25024 | _ACEOF | |
25025 | cat confdefs.h >>conftest.$ac_ext | |
25026 | cat >>conftest.$ac_ext <<_ACEOF | |
25027 | /* end confdefs.h. */ | |
25028 | ||
a106dabe | 25029 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25030 | #ifdef __cplusplus |
25031 | extern "C" | |
25032 | #endif | |
a106dabe | 25033 | /* We use char because int might match the return type of a gcc2 |
25034 | builtin and then its argument prototype would still apply. */ | |
d213114b | 25035 | char log10 (); |
25036 | int | |
25037 | main () | |
25038 | { | |
a106dabe | 25039 | log10 (); |
d213114b | 25040 | ; |
25041 | return 0; | |
25042 | } | |
25043 | _ACEOF | |
25044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 25045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25046 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 25047 | ac_status=$? |
25048 | grep -v '^ *+' conftest.er1 >conftest.err | |
25049 | rm -f conftest.er1 | |
25050 | cat conftest.err >&5 | |
25051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25052 | (exit $ac_status); } && | |
c0e8efbe | 25053 | { ac_try='test -z "$ac_c_werror_flag" |
25054 | || test ! -s conftest.err' | |
a106dabe | 25055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25056 | (eval $ac_try) 2>&5 | |
d213114b | 25057 | ac_status=$? |
25058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25059 | (exit $ac_status); }; } && | |
25060 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 25061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25062 | (eval $ac_try) 2>&5 | |
d213114b | 25063 | ac_status=$? |
25064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25065 | (exit $ac_status); }; }; then | |
25066 | ac_cv_lib_m_log10=yes | |
25067 | else | |
25068 | echo "$as_me: failed program was:" >&5 | |
25069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25070 | ||
a106dabe | 25071 | ac_cv_lib_m_log10=no |
d213114b | 25072 | fi |
a106dabe | 25073 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25074 | conftest$ac_exeext conftest.$ac_ext |
25075 | LIBS=$ac_check_lib_save_LIBS | |
25076 | fi | |
a106dabe | 25077 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10" >&5 |
25078 | echo "${ECHO_T}$ac_cv_lib_m_log10" >&6 | |
d213114b | 25079 | if test $ac_cv_lib_m_log10 = yes; then |
25080 | ||
25081 | cat >>confdefs.h <<\_ACEOF | |
25082 | #define HAVE_LOG10 1 | |
25083 | _ACEOF | |
25084 | ||
25085 | fi | |
25086 | ||
a106dabe | 25087 | echo "$as_me:$LINENO: checking for log10l in -lm" >&5 |
25088 | echo $ECHO_N "checking for log10l in -lm... $ECHO_C" >&6 | |
d213114b | 25089 | if test "${ac_cv_lib_m_log10l+set}" = set; then |
25090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25091 | else | |
25092 | ac_check_lib_save_LIBS=$LIBS | |
25093 | LIBS="-lm $LIBS" | |
25094 | if test x$gcc_no_link = xyes; then | |
25095 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25096 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25097 | { (exit 1); exit 1; }; } | |
25098 | fi | |
25099 | cat >conftest.$ac_ext <<_ACEOF | |
25100 | /* confdefs.h. */ | |
25101 | _ACEOF | |
25102 | cat confdefs.h >>conftest.$ac_ext | |
25103 | cat >>conftest.$ac_ext <<_ACEOF | |
25104 | /* end confdefs.h. */ | |
25105 | ||
a106dabe | 25106 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25107 | #ifdef __cplusplus |
25108 | extern "C" | |
25109 | #endif | |
a106dabe | 25110 | /* We use char because int might match the return type of a gcc2 |
25111 | builtin and then its argument prototype would still apply. */ | |
d213114b | 25112 | char log10l (); |
25113 | int | |
25114 | main () | |
25115 | { | |
a106dabe | 25116 | log10l (); |
d213114b | 25117 | ; |
25118 | return 0; | |
25119 | } | |
25120 | _ACEOF | |
25121 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 25122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25123 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 25124 | ac_status=$? |
25125 | grep -v '^ *+' conftest.er1 >conftest.err | |
25126 | rm -f conftest.er1 | |
25127 | cat conftest.err >&5 | |
25128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25129 | (exit $ac_status); } && | |
c0e8efbe | 25130 | { ac_try='test -z "$ac_c_werror_flag" |
25131 | || test ! -s conftest.err' | |
a106dabe | 25132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25133 | (eval $ac_try) 2>&5 | |
d213114b | 25134 | ac_status=$? |
25135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25136 | (exit $ac_status); }; } && | |
25137 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 25138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25139 | (eval $ac_try) 2>&5 | |
d213114b | 25140 | ac_status=$? |
25141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25142 | (exit $ac_status); }; }; then | |
25143 | ac_cv_lib_m_log10l=yes | |
25144 | else | |
25145 | echo "$as_me: failed program was:" >&5 | |
25146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25147 | ||
a106dabe | 25148 | ac_cv_lib_m_log10l=no |
d213114b | 25149 | fi |
a106dabe | 25150 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25151 | conftest$ac_exeext conftest.$ac_ext |
25152 | LIBS=$ac_check_lib_save_LIBS | |
25153 | fi | |
a106dabe | 25154 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10l" >&5 |
25155 | echo "${ECHO_T}$ac_cv_lib_m_log10l" >&6 | |
d213114b | 25156 | if test $ac_cv_lib_m_log10l = yes; then |
25157 | ||
25158 | cat >>confdefs.h <<\_ACEOF | |
25159 | #define HAVE_LOG10L 1 | |
25160 | _ACEOF | |
25161 | ||
25162 | fi | |
25163 | ||
a106dabe | 25164 | echo "$as_me:$LINENO: checking for clog10f in -lm" >&5 |
25165 | echo $ECHO_N "checking for clog10f in -lm... $ECHO_C" >&6 | |
d213114b | 25166 | if test "${ac_cv_lib_m_clog10f+set}" = set; then |
25167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25168 | else | |
25169 | ac_check_lib_save_LIBS=$LIBS | |
25170 | LIBS="-lm $LIBS" | |
25171 | if test x$gcc_no_link = xyes; then | |
25172 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25173 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25174 | { (exit 1); exit 1; }; } | |
25175 | fi | |
25176 | cat >conftest.$ac_ext <<_ACEOF | |
25177 | /* confdefs.h. */ | |
25178 | _ACEOF | |
25179 | cat confdefs.h >>conftest.$ac_ext | |
25180 | cat >>conftest.$ac_ext <<_ACEOF | |
25181 | /* end confdefs.h. */ | |
25182 | ||
a106dabe | 25183 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25184 | #ifdef __cplusplus |
25185 | extern "C" | |
25186 | #endif | |
a106dabe | 25187 | /* We use char because int might match the return type of a gcc2 |
25188 | builtin and then its argument prototype would still apply. */ | |
d213114b | 25189 | char clog10f (); |
25190 | int | |
25191 | main () | |
25192 | { | |
a106dabe | 25193 | clog10f (); |
d213114b | 25194 | ; |
25195 | return 0; | |
25196 | } | |
25197 | _ACEOF | |
25198 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 25199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25200 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 25201 | ac_status=$? |
25202 | grep -v '^ *+' conftest.er1 >conftest.err | |
25203 | rm -f conftest.er1 | |
25204 | cat conftest.err >&5 | |
25205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25206 | (exit $ac_status); } && | |
c0e8efbe | 25207 | { ac_try='test -z "$ac_c_werror_flag" |
25208 | || test ! -s conftest.err' | |
a106dabe | 25209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25210 | (eval $ac_try) 2>&5 | |
d213114b | 25211 | ac_status=$? |
25212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25213 | (exit $ac_status); }; } && | |
25214 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 25215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25216 | (eval $ac_try) 2>&5 | |
d213114b | 25217 | ac_status=$? |
25218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25219 | (exit $ac_status); }; }; then | |
25220 | ac_cv_lib_m_clog10f=yes | |
25221 | else | |
25222 | echo "$as_me: failed program was:" >&5 | |
25223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25224 | ||
a106dabe | 25225 | ac_cv_lib_m_clog10f=no |
d213114b | 25226 | fi |
a106dabe | 25227 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25228 | conftest$ac_exeext conftest.$ac_ext |
25229 | LIBS=$ac_check_lib_save_LIBS | |
25230 | fi | |
a106dabe | 25231 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10f" >&5 |
25232 | echo "${ECHO_T}$ac_cv_lib_m_clog10f" >&6 | |
d213114b | 25233 | if test $ac_cv_lib_m_clog10f = yes; then |
25234 | ||
25235 | cat >>confdefs.h <<\_ACEOF | |
25236 | #define HAVE_CLOG10F 1 | |
25237 | _ACEOF | |
25238 | ||
25239 | fi | |
25240 | ||
a106dabe | 25241 | echo "$as_me:$LINENO: checking for clog10 in -lm" >&5 |
25242 | echo $ECHO_N "checking for clog10 in -lm... $ECHO_C" >&6 | |
d213114b | 25243 | if test "${ac_cv_lib_m_clog10+set}" = set; then |
25244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25245 | else | |
25246 | ac_check_lib_save_LIBS=$LIBS | |
25247 | LIBS="-lm $LIBS" | |
25248 | if test x$gcc_no_link = xyes; then | |
25249 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25250 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25251 | { (exit 1); exit 1; }; } | |
25252 | fi | |
25253 | cat >conftest.$ac_ext <<_ACEOF | |
25254 | /* confdefs.h. */ | |
25255 | _ACEOF | |
25256 | cat confdefs.h >>conftest.$ac_ext | |
25257 | cat >>conftest.$ac_ext <<_ACEOF | |
25258 | /* end confdefs.h. */ | |
25259 | ||
a106dabe | 25260 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25261 | #ifdef __cplusplus |
25262 | extern "C" | |
25263 | #endif | |
a106dabe | 25264 | /* We use char because int might match the return type of a gcc2 |
25265 | builtin and then its argument prototype would still apply. */ | |
d213114b | 25266 | char clog10 (); |
25267 | int | |
25268 | main () | |
25269 | { | |
a106dabe | 25270 | clog10 (); |
d213114b | 25271 | ; |
25272 | return 0; | |
25273 | } | |
25274 | _ACEOF | |
25275 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 25276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25277 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 25278 | ac_status=$? |
25279 | grep -v '^ *+' conftest.er1 >conftest.err | |
25280 | rm -f conftest.er1 | |
25281 | cat conftest.err >&5 | |
25282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25283 | (exit $ac_status); } && | |
c0e8efbe | 25284 | { ac_try='test -z "$ac_c_werror_flag" |
25285 | || test ! -s conftest.err' | |
a106dabe | 25286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25287 | (eval $ac_try) 2>&5 | |
d213114b | 25288 | ac_status=$? |
25289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25290 | (exit $ac_status); }; } && | |
25291 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 25292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25293 | (eval $ac_try) 2>&5 | |
d213114b | 25294 | ac_status=$? |
25295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25296 | (exit $ac_status); }; }; then | |
25297 | ac_cv_lib_m_clog10=yes | |
25298 | else | |
25299 | echo "$as_me: failed program was:" >&5 | |
25300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25301 | ||
a106dabe | 25302 | ac_cv_lib_m_clog10=no |
d213114b | 25303 | fi |
a106dabe | 25304 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25305 | conftest$ac_exeext conftest.$ac_ext |
25306 | LIBS=$ac_check_lib_save_LIBS | |
25307 | fi | |
a106dabe | 25308 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10" >&5 |
25309 | echo "${ECHO_T}$ac_cv_lib_m_clog10" >&6 | |
d213114b | 25310 | if test $ac_cv_lib_m_clog10 = yes; then |
25311 | ||
25312 | cat >>confdefs.h <<\_ACEOF | |
25313 | #define HAVE_CLOG10 1 | |
25314 | _ACEOF | |
25315 | ||
25316 | fi | |
25317 | ||
a106dabe | 25318 | echo "$as_me:$LINENO: checking for clog10l in -lm" >&5 |
25319 | echo $ECHO_N "checking for clog10l in -lm... $ECHO_C" >&6 | |
d213114b | 25320 | if test "${ac_cv_lib_m_clog10l+set}" = set; then |
25321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25322 | else | |
25323 | ac_check_lib_save_LIBS=$LIBS | |
25324 | LIBS="-lm $LIBS" | |
25325 | if test x$gcc_no_link = xyes; then | |
25326 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25327 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25328 | { (exit 1); exit 1; }; } | |
25329 | fi | |
25330 | cat >conftest.$ac_ext <<_ACEOF | |
25331 | /* confdefs.h. */ | |
25332 | _ACEOF | |
25333 | cat confdefs.h >>conftest.$ac_ext | |
25334 | cat >>conftest.$ac_ext <<_ACEOF | |
25335 | /* end confdefs.h. */ | |
25336 | ||
a106dabe | 25337 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25338 | #ifdef __cplusplus |
25339 | extern "C" | |
25340 | #endif | |
a106dabe | 25341 | /* We use char because int might match the return type of a gcc2 |
25342 | builtin and then its argument prototype would still apply. */ | |
d213114b | 25343 | char clog10l (); |
25344 | int | |
25345 | main () | |
25346 | { | |
a106dabe | 25347 | clog10l (); |
d213114b | 25348 | ; |
25349 | return 0; | |
25350 | } | |
25351 | _ACEOF | |
25352 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 25353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25354 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 25355 | ac_status=$? |
25356 | grep -v '^ *+' conftest.er1 >conftest.err | |
25357 | rm -f conftest.er1 | |
25358 | cat conftest.err >&5 | |
25359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25360 | (exit $ac_status); } && | |
c0e8efbe | 25361 | { ac_try='test -z "$ac_c_werror_flag" |
25362 | || test ! -s conftest.err' | |
a106dabe | 25363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25364 | (eval $ac_try) 2>&5 | |
d213114b | 25365 | ac_status=$? |
25366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25367 | (exit $ac_status); }; } && | |
25368 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 25369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25370 | (eval $ac_try) 2>&5 | |
d213114b | 25371 | ac_status=$? |
25372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25373 | (exit $ac_status); }; }; then | |
25374 | ac_cv_lib_m_clog10l=yes | |
25375 | else | |
25376 | echo "$as_me: failed program was:" >&5 | |
25377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25378 | ||
a106dabe | 25379 | ac_cv_lib_m_clog10l=no |
d213114b | 25380 | fi |
a106dabe | 25381 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25382 | conftest$ac_exeext conftest.$ac_ext |
25383 | LIBS=$ac_check_lib_save_LIBS | |
25384 | fi | |
a106dabe | 25385 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10l" >&5 |
25386 | echo "${ECHO_T}$ac_cv_lib_m_clog10l" >&6 | |
d213114b | 25387 | if test $ac_cv_lib_m_clog10l = yes; then |
25388 | ||
25389 | cat >>confdefs.h <<\_ACEOF | |
25390 | #define HAVE_CLOG10L 1 | |
25391 | _ACEOF | |
25392 | ||
25393 | fi | |
25394 | ||
a106dabe | 25395 | echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5 |
25396 | echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6 | |
d213114b | 25397 | if test "${ac_cv_lib_m_nextafterf+set}" = set; then |
25398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25399 | else | |
25400 | ac_check_lib_save_LIBS=$LIBS | |
25401 | LIBS="-lm $LIBS" | |
25402 | if test x$gcc_no_link = xyes; then | |
25403 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25404 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25405 | { (exit 1); exit 1; }; } | |
25406 | fi | |
25407 | cat >conftest.$ac_ext <<_ACEOF | |
25408 | /* confdefs.h. */ | |
25409 | _ACEOF | |
25410 | cat confdefs.h >>conftest.$ac_ext | |
25411 | cat >>conftest.$ac_ext <<_ACEOF | |
25412 | /* end confdefs.h. */ | |
25413 | ||
a106dabe | 25414 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25415 | #ifdef __cplusplus |
25416 | extern "C" | |
25417 | #endif | |
a106dabe | 25418 | /* We use char because int might match the return type of a gcc2 |
25419 | builtin and then its argument prototype would still apply. */ | |
d213114b | 25420 | char nextafterf (); |
25421 | int | |
25422 | main () | |
25423 | { | |
a106dabe | 25424 | nextafterf (); |
d213114b | 25425 | ; |
25426 | return 0; | |
25427 | } | |
25428 | _ACEOF | |
25429 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 25430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25431 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 25432 | ac_status=$? |
25433 | grep -v '^ *+' conftest.er1 >conftest.err | |
25434 | rm -f conftest.er1 | |
25435 | cat conftest.err >&5 | |
25436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25437 | (exit $ac_status); } && | |
c0e8efbe | 25438 | { ac_try='test -z "$ac_c_werror_flag" |
25439 | || test ! -s conftest.err' | |
a106dabe | 25440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25441 | (eval $ac_try) 2>&5 | |
d213114b | 25442 | ac_status=$? |
25443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25444 | (exit $ac_status); }; } && | |
25445 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 25446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25447 | (eval $ac_try) 2>&5 | |
d213114b | 25448 | ac_status=$? |
25449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25450 | (exit $ac_status); }; }; then | |
25451 | ac_cv_lib_m_nextafterf=yes | |
25452 | else | |
25453 | echo "$as_me: failed program was:" >&5 | |
25454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25455 | ||
a106dabe | 25456 | ac_cv_lib_m_nextafterf=no |
d213114b | 25457 | fi |
a106dabe | 25458 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25459 | conftest$ac_exeext conftest.$ac_ext |
25460 | LIBS=$ac_check_lib_save_LIBS | |
25461 | fi | |
a106dabe | 25462 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5 |
25463 | echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6 | |
d213114b | 25464 | if test $ac_cv_lib_m_nextafterf = yes; then |
25465 | ||
25466 | cat >>confdefs.h <<\_ACEOF | |
25467 | #define HAVE_NEXTAFTERF 1 | |
25468 | _ACEOF | |
25469 | ||
25470 | fi | |
25471 | ||
a106dabe | 25472 | echo "$as_me:$LINENO: checking for nextafter in -lm" >&5 |
25473 | echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6 | |
d213114b | 25474 | if test "${ac_cv_lib_m_nextafter+set}" = set; then |
25475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25476 | else | |
25477 | ac_check_lib_save_LIBS=$LIBS | |
25478 | LIBS="-lm $LIBS" | |
25479 | if test x$gcc_no_link = xyes; then | |
25480 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25481 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25482 | { (exit 1); exit 1; }; } | |
25483 | fi | |
25484 | cat >conftest.$ac_ext <<_ACEOF | |
25485 | /* confdefs.h. */ | |
25486 | _ACEOF | |
25487 | cat confdefs.h >>conftest.$ac_ext | |
25488 | cat >>conftest.$ac_ext <<_ACEOF | |
25489 | /* end confdefs.h. */ | |
25490 | ||
a106dabe | 25491 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25492 | #ifdef __cplusplus |
25493 | extern "C" | |
25494 | #endif | |
a106dabe | 25495 | /* We use char because int might match the return type of a gcc2 |
25496 | builtin and then its argument prototype would still apply. */ | |
d213114b | 25497 | char nextafter (); |
25498 | int | |
25499 | main () | |
25500 | { | |
a106dabe | 25501 | nextafter (); |
d213114b | 25502 | ; |
25503 | return 0; | |
25504 | } | |
25505 | _ACEOF | |
25506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 25507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25508 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 25509 | ac_status=$? |
25510 | grep -v '^ *+' conftest.er1 >conftest.err | |
25511 | rm -f conftest.er1 | |
25512 | cat conftest.err >&5 | |
25513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25514 | (exit $ac_status); } && | |
c0e8efbe | 25515 | { ac_try='test -z "$ac_c_werror_flag" |
25516 | || test ! -s conftest.err' | |
a106dabe | 25517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25518 | (eval $ac_try) 2>&5 | |
d213114b | 25519 | ac_status=$? |
25520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25521 | (exit $ac_status); }; } && | |
25522 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 25523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25524 | (eval $ac_try) 2>&5 | |
d213114b | 25525 | ac_status=$? |
25526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25527 | (exit $ac_status); }; }; then | |
25528 | ac_cv_lib_m_nextafter=yes | |
25529 | else | |
25530 | echo "$as_me: failed program was:" >&5 | |
25531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25532 | ||
a106dabe | 25533 | ac_cv_lib_m_nextafter=no |
d213114b | 25534 | fi |
a106dabe | 25535 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25536 | conftest$ac_exeext conftest.$ac_ext |
25537 | LIBS=$ac_check_lib_save_LIBS | |
25538 | fi | |
a106dabe | 25539 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5 |
25540 | echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6 | |
d213114b | 25541 | if test $ac_cv_lib_m_nextafter = yes; then |
25542 | ||
25543 | cat >>confdefs.h <<\_ACEOF | |
25544 | #define HAVE_NEXTAFTER 1 | |
25545 | _ACEOF | |
25546 | ||
25547 | fi | |
25548 | ||
a106dabe | 25549 | echo "$as_me:$LINENO: checking for nextafterl in -lm" >&5 |
25550 | echo $ECHO_N "checking for nextafterl in -lm... $ECHO_C" >&6 | |
d213114b | 25551 | if test "${ac_cv_lib_m_nextafterl+set}" = set; then |
25552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25553 | else | |
25554 | ac_check_lib_save_LIBS=$LIBS | |
25555 | LIBS="-lm $LIBS" | |
25556 | if test x$gcc_no_link = xyes; then | |
25557 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25558 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25559 | { (exit 1); exit 1; }; } | |
25560 | fi | |
25561 | cat >conftest.$ac_ext <<_ACEOF | |
25562 | /* confdefs.h. */ | |
25563 | _ACEOF | |
25564 | cat confdefs.h >>conftest.$ac_ext | |
25565 | cat >>conftest.$ac_ext <<_ACEOF | |
25566 | /* end confdefs.h. */ | |
25567 | ||
a106dabe | 25568 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25569 | #ifdef __cplusplus |
25570 | extern "C" | |
25571 | #endif | |
a106dabe | 25572 | /* We use char because int might match the return type of a gcc2 |
25573 | builtin and then its argument prototype would still apply. */ | |
d213114b | 25574 | char nextafterl (); |
25575 | int | |
25576 | main () | |
25577 | { | |
a106dabe | 25578 | nextafterl (); |
d213114b | 25579 | ; |
25580 | return 0; | |
25581 | } | |
25582 | _ACEOF | |
25583 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 25584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25585 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 25586 | ac_status=$? |
25587 | grep -v '^ *+' conftest.er1 >conftest.err | |
25588 | rm -f conftest.er1 | |
25589 | cat conftest.err >&5 | |
25590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25591 | (exit $ac_status); } && | |
c0e8efbe | 25592 | { ac_try='test -z "$ac_c_werror_flag" |
25593 | || test ! -s conftest.err' | |
a106dabe | 25594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25595 | (eval $ac_try) 2>&5 | |
d213114b | 25596 | ac_status=$? |
25597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25598 | (exit $ac_status); }; } && | |
25599 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 25600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25601 | (eval $ac_try) 2>&5 | |
d213114b | 25602 | ac_status=$? |
25603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25604 | (exit $ac_status); }; }; then | |
25605 | ac_cv_lib_m_nextafterl=yes | |
25606 | else | |
25607 | echo "$as_me: failed program was:" >&5 | |
25608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25609 | ||
a106dabe | 25610 | ac_cv_lib_m_nextafterl=no |
d213114b | 25611 | fi |
a106dabe | 25612 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25613 | conftest$ac_exeext conftest.$ac_ext |
25614 | LIBS=$ac_check_lib_save_LIBS | |
25615 | fi | |
a106dabe | 25616 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterl" >&5 |
25617 | echo "${ECHO_T}$ac_cv_lib_m_nextafterl" >&6 | |
d213114b | 25618 | if test $ac_cv_lib_m_nextafterl = yes; then |
25619 | ||
25620 | cat >>confdefs.h <<\_ACEOF | |
25621 | #define HAVE_NEXTAFTERL 1 | |
25622 | _ACEOF | |
25623 | ||
25624 | fi | |
25625 | ||
a106dabe | 25626 | echo "$as_me:$LINENO: checking for powf in -lm" >&5 |
25627 | echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6 | |
d213114b | 25628 | if test "${ac_cv_lib_m_powf+set}" = set; then |
25629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25630 | else | |
25631 | ac_check_lib_save_LIBS=$LIBS | |
25632 | LIBS="-lm $LIBS" | |
25633 | if test x$gcc_no_link = xyes; then | |
25634 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25635 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25636 | { (exit 1); exit 1; }; } | |
25637 | fi | |
25638 | cat >conftest.$ac_ext <<_ACEOF | |
25639 | /* confdefs.h. */ | |
25640 | _ACEOF | |
25641 | cat confdefs.h >>conftest.$ac_ext | |
25642 | cat >>conftest.$ac_ext <<_ACEOF | |
25643 | /* end confdefs.h. */ | |
25644 | ||
a106dabe | 25645 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25646 | #ifdef __cplusplus |
25647 | extern "C" | |
25648 | #endif | |
a106dabe | 25649 | /* We use char because int might match the return type of a gcc2 |
25650 | builtin and then its argument prototype would still apply. */ | |
d213114b | 25651 | char powf (); |
25652 | int | |
25653 | main () | |
25654 | { | |
a106dabe | 25655 | powf (); |
d213114b | 25656 | ; |
25657 | return 0; | |
25658 | } | |
25659 | _ACEOF | |
25660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 25661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25662 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 25663 | ac_status=$? |
25664 | grep -v '^ *+' conftest.er1 >conftest.err | |
25665 | rm -f conftest.er1 | |
25666 | cat conftest.err >&5 | |
25667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25668 | (exit $ac_status); } && | |
c0e8efbe | 25669 | { ac_try='test -z "$ac_c_werror_flag" |
25670 | || test ! -s conftest.err' | |
a106dabe | 25671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25672 | (eval $ac_try) 2>&5 | |
d213114b | 25673 | ac_status=$? |
25674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25675 | (exit $ac_status); }; } && | |
25676 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 25677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25678 | (eval $ac_try) 2>&5 | |
d213114b | 25679 | ac_status=$? |
25680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25681 | (exit $ac_status); }; }; then | |
25682 | ac_cv_lib_m_powf=yes | |
25683 | else | |
25684 | echo "$as_me: failed program was:" >&5 | |
25685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25686 | ||
a106dabe | 25687 | ac_cv_lib_m_powf=no |
d213114b | 25688 | fi |
a106dabe | 25689 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25690 | conftest$ac_exeext conftest.$ac_ext |
25691 | LIBS=$ac_check_lib_save_LIBS | |
25692 | fi | |
a106dabe | 25693 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5 |
25694 | echo "${ECHO_T}$ac_cv_lib_m_powf" >&6 | |
d213114b | 25695 | if test $ac_cv_lib_m_powf = yes; then |
25696 | ||
25697 | cat >>confdefs.h <<\_ACEOF | |
25698 | #define HAVE_POWF 1 | |
25699 | _ACEOF | |
25700 | ||
25701 | fi | |
25702 | ||
a106dabe | 25703 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
25704 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 | |
d213114b | 25705 | if test "${ac_cv_lib_m_pow+set}" = set; then |
25706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25707 | else | |
25708 | ac_check_lib_save_LIBS=$LIBS | |
25709 | LIBS="-lm $LIBS" | |
25710 | if test x$gcc_no_link = xyes; then | |
25711 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25712 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25713 | { (exit 1); exit 1; }; } | |
25714 | fi | |
25715 | cat >conftest.$ac_ext <<_ACEOF | |
25716 | /* confdefs.h. */ | |
25717 | _ACEOF | |
25718 | cat confdefs.h >>conftest.$ac_ext | |
25719 | cat >>conftest.$ac_ext <<_ACEOF | |
25720 | /* end confdefs.h. */ | |
25721 | ||
a106dabe | 25722 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25723 | #ifdef __cplusplus |
25724 | extern "C" | |
25725 | #endif | |
a106dabe | 25726 | /* We use char because int might match the return type of a gcc2 |
25727 | builtin and then its argument prototype would still apply. */ | |
d213114b | 25728 | char pow (); |
25729 | int | |
25730 | main () | |
25731 | { | |
a106dabe | 25732 | pow (); |
d213114b | 25733 | ; |
25734 | return 0; | |
25735 | } | |
25736 | _ACEOF | |
25737 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 25738 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25739 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 25740 | ac_status=$? |
25741 | grep -v '^ *+' conftest.er1 >conftest.err | |
25742 | rm -f conftest.er1 | |
25743 | cat conftest.err >&5 | |
25744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25745 | (exit $ac_status); } && | |
c0e8efbe | 25746 | { ac_try='test -z "$ac_c_werror_flag" |
25747 | || test ! -s conftest.err' | |
a106dabe | 25748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25749 | (eval $ac_try) 2>&5 | |
d213114b | 25750 | ac_status=$? |
25751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25752 | (exit $ac_status); }; } && | |
25753 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 25754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25755 | (eval $ac_try) 2>&5 | |
d213114b | 25756 | ac_status=$? |
25757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25758 | (exit $ac_status); }; }; then | |
25759 | ac_cv_lib_m_pow=yes | |
25760 | else | |
25761 | echo "$as_me: failed program was:" >&5 | |
25762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25763 | ||
a106dabe | 25764 | ac_cv_lib_m_pow=no |
d213114b | 25765 | fi |
a106dabe | 25766 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25767 | conftest$ac_exeext conftest.$ac_ext |
25768 | LIBS=$ac_check_lib_save_LIBS | |
25769 | fi | |
a106dabe | 25770 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
25771 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 | |
d213114b | 25772 | if test $ac_cv_lib_m_pow = yes; then |
25773 | ||
25774 | cat >>confdefs.h <<\_ACEOF | |
25775 | #define HAVE_POW 1 | |
25776 | _ACEOF | |
25777 | ||
25778 | fi | |
25779 | ||
a106dabe | 25780 | echo "$as_me:$LINENO: checking for powl in -lm" >&5 |
25781 | echo $ECHO_N "checking for powl in -lm... $ECHO_C" >&6 | |
d213114b | 25782 | if test "${ac_cv_lib_m_powl+set}" = set; then |
25783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25784 | else | |
25785 | ac_check_lib_save_LIBS=$LIBS | |
25786 | LIBS="-lm $LIBS" | |
25787 | if test x$gcc_no_link = xyes; then | |
25788 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25789 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25790 | { (exit 1); exit 1; }; } | |
25791 | fi | |
25792 | cat >conftest.$ac_ext <<_ACEOF | |
25793 | /* confdefs.h. */ | |
25794 | _ACEOF | |
25795 | cat confdefs.h >>conftest.$ac_ext | |
25796 | cat >>conftest.$ac_ext <<_ACEOF | |
25797 | /* end confdefs.h. */ | |
25798 | ||
a106dabe | 25799 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25800 | #ifdef __cplusplus |
25801 | extern "C" | |
25802 | #endif | |
a106dabe | 25803 | /* We use char because int might match the return type of a gcc2 |
25804 | builtin and then its argument prototype would still apply. */ | |
d213114b | 25805 | char powl (); |
25806 | int | |
25807 | main () | |
25808 | { | |
a106dabe | 25809 | powl (); |
d213114b | 25810 | ; |
25811 | return 0; | |
25812 | } | |
25813 | _ACEOF | |
25814 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 25815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25816 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 25817 | ac_status=$? |
25818 | grep -v '^ *+' conftest.er1 >conftest.err | |
25819 | rm -f conftest.er1 | |
25820 | cat conftest.err >&5 | |
25821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25822 | (exit $ac_status); } && | |
c0e8efbe | 25823 | { ac_try='test -z "$ac_c_werror_flag" |
25824 | || test ! -s conftest.err' | |
a106dabe | 25825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25826 | (eval $ac_try) 2>&5 | |
d213114b | 25827 | ac_status=$? |
25828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25829 | (exit $ac_status); }; } && | |
25830 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 25831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25832 | (eval $ac_try) 2>&5 | |
d213114b | 25833 | ac_status=$? |
25834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25835 | (exit $ac_status); }; }; then | |
25836 | ac_cv_lib_m_powl=yes | |
25837 | else | |
25838 | echo "$as_me: failed program was:" >&5 | |
25839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25840 | ||
a106dabe | 25841 | ac_cv_lib_m_powl=no |
d213114b | 25842 | fi |
a106dabe | 25843 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25844 | conftest$ac_exeext conftest.$ac_ext |
25845 | LIBS=$ac_check_lib_save_LIBS | |
25846 | fi | |
a106dabe | 25847 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_powl" >&5 |
25848 | echo "${ECHO_T}$ac_cv_lib_m_powl" >&6 | |
d213114b | 25849 | if test $ac_cv_lib_m_powl = yes; then |
25850 | ||
25851 | cat >>confdefs.h <<\_ACEOF | |
25852 | #define HAVE_POWL 1 | |
25853 | _ACEOF | |
25854 | ||
25855 | fi | |
25856 | ||
a106dabe | 25857 | echo "$as_me:$LINENO: checking for cpowf in -lm" >&5 |
25858 | echo $ECHO_N "checking for cpowf in -lm... $ECHO_C" >&6 | |
d213114b | 25859 | if test "${ac_cv_lib_m_cpowf+set}" = set; then |
25860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25861 | else | |
25862 | ac_check_lib_save_LIBS=$LIBS | |
25863 | LIBS="-lm $LIBS" | |
25864 | if test x$gcc_no_link = xyes; then | |
25865 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25866 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25867 | { (exit 1); exit 1; }; } | |
25868 | fi | |
25869 | cat >conftest.$ac_ext <<_ACEOF | |
25870 | /* confdefs.h. */ | |
25871 | _ACEOF | |
25872 | cat confdefs.h >>conftest.$ac_ext | |
25873 | cat >>conftest.$ac_ext <<_ACEOF | |
25874 | /* end confdefs.h. */ | |
25875 | ||
a106dabe | 25876 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25877 | #ifdef __cplusplus |
25878 | extern "C" | |
25879 | #endif | |
a106dabe | 25880 | /* We use char because int might match the return type of a gcc2 |
25881 | builtin and then its argument prototype would still apply. */ | |
d213114b | 25882 | char cpowf (); |
25883 | int | |
25884 | main () | |
25885 | { | |
a106dabe | 25886 | cpowf (); |
d213114b | 25887 | ; |
25888 | return 0; | |
25889 | } | |
25890 | _ACEOF | |
25891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 25892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25893 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 25894 | ac_status=$? |
25895 | grep -v '^ *+' conftest.er1 >conftest.err | |
25896 | rm -f conftest.er1 | |
25897 | cat conftest.err >&5 | |
25898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25899 | (exit $ac_status); } && | |
c0e8efbe | 25900 | { ac_try='test -z "$ac_c_werror_flag" |
25901 | || test ! -s conftest.err' | |
a106dabe | 25902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25903 | (eval $ac_try) 2>&5 | |
d213114b | 25904 | ac_status=$? |
25905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25906 | (exit $ac_status); }; } && | |
25907 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 25908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25909 | (eval $ac_try) 2>&5 | |
d213114b | 25910 | ac_status=$? |
25911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25912 | (exit $ac_status); }; }; then | |
25913 | ac_cv_lib_m_cpowf=yes | |
25914 | else | |
25915 | echo "$as_me: failed program was:" >&5 | |
25916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25917 | ||
a106dabe | 25918 | ac_cv_lib_m_cpowf=no |
d213114b | 25919 | fi |
a106dabe | 25920 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25921 | conftest$ac_exeext conftest.$ac_ext |
25922 | LIBS=$ac_check_lib_save_LIBS | |
25923 | fi | |
a106dabe | 25924 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpowf" >&5 |
25925 | echo "${ECHO_T}$ac_cv_lib_m_cpowf" >&6 | |
d213114b | 25926 | if test $ac_cv_lib_m_cpowf = yes; then |
25927 | ||
25928 | cat >>confdefs.h <<\_ACEOF | |
25929 | #define HAVE_CPOWF 1 | |
25930 | _ACEOF | |
25931 | ||
25932 | fi | |
25933 | ||
a106dabe | 25934 | echo "$as_me:$LINENO: checking for cpow in -lm" >&5 |
25935 | echo $ECHO_N "checking for cpow in -lm... $ECHO_C" >&6 | |
d213114b | 25936 | if test "${ac_cv_lib_m_cpow+set}" = set; then |
25937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25938 | else | |
25939 | ac_check_lib_save_LIBS=$LIBS | |
25940 | LIBS="-lm $LIBS" | |
25941 | if test x$gcc_no_link = xyes; then | |
25942 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25943 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25944 | { (exit 1); exit 1; }; } | |
25945 | fi | |
25946 | cat >conftest.$ac_ext <<_ACEOF | |
25947 | /* confdefs.h. */ | |
25948 | _ACEOF | |
25949 | cat confdefs.h >>conftest.$ac_ext | |
25950 | cat >>conftest.$ac_ext <<_ACEOF | |
25951 | /* end confdefs.h. */ | |
25952 | ||
a106dabe | 25953 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25954 | #ifdef __cplusplus |
25955 | extern "C" | |
25956 | #endif | |
a106dabe | 25957 | /* We use char because int might match the return type of a gcc2 |
25958 | builtin and then its argument prototype would still apply. */ | |
d213114b | 25959 | char cpow (); |
25960 | int | |
25961 | main () | |
25962 | { | |
a106dabe | 25963 | cpow (); |
d213114b | 25964 | ; |
25965 | return 0; | |
25966 | } | |
25967 | _ACEOF | |
25968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 25969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
25970 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 25971 | ac_status=$? |
25972 | grep -v '^ *+' conftest.er1 >conftest.err | |
25973 | rm -f conftest.er1 | |
25974 | cat conftest.err >&5 | |
25975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25976 | (exit $ac_status); } && | |
c0e8efbe | 25977 | { ac_try='test -z "$ac_c_werror_flag" |
25978 | || test ! -s conftest.err' | |
a106dabe | 25979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25980 | (eval $ac_try) 2>&5 | |
d213114b | 25981 | ac_status=$? |
25982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25983 | (exit $ac_status); }; } && | |
25984 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 25985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25986 | (eval $ac_try) 2>&5 | |
d213114b | 25987 | ac_status=$? |
25988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25989 | (exit $ac_status); }; }; then | |
25990 | ac_cv_lib_m_cpow=yes | |
25991 | else | |
25992 | echo "$as_me: failed program was:" >&5 | |
25993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25994 | ||
a106dabe | 25995 | ac_cv_lib_m_cpow=no |
d213114b | 25996 | fi |
a106dabe | 25997 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25998 | conftest$ac_exeext conftest.$ac_ext |
25999 | LIBS=$ac_check_lib_save_LIBS | |
26000 | fi | |
a106dabe | 26001 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpow" >&5 |
26002 | echo "${ECHO_T}$ac_cv_lib_m_cpow" >&6 | |
d213114b | 26003 | if test $ac_cv_lib_m_cpow = yes; then |
26004 | ||
26005 | cat >>confdefs.h <<\_ACEOF | |
26006 | #define HAVE_CPOW 1 | |
26007 | _ACEOF | |
26008 | ||
26009 | fi | |
26010 | ||
a106dabe | 26011 | echo "$as_me:$LINENO: checking for cpowl in -lm" >&5 |
26012 | echo $ECHO_N "checking for cpowl in -lm... $ECHO_C" >&6 | |
d213114b | 26013 | if test "${ac_cv_lib_m_cpowl+set}" = set; then |
26014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26015 | else | |
26016 | ac_check_lib_save_LIBS=$LIBS | |
26017 | LIBS="-lm $LIBS" | |
26018 | if test x$gcc_no_link = xyes; then | |
26019 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26020 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26021 | { (exit 1); exit 1; }; } | |
26022 | fi | |
26023 | cat >conftest.$ac_ext <<_ACEOF | |
26024 | /* confdefs.h. */ | |
26025 | _ACEOF | |
26026 | cat confdefs.h >>conftest.$ac_ext | |
26027 | cat >>conftest.$ac_ext <<_ACEOF | |
26028 | /* end confdefs.h. */ | |
26029 | ||
a106dabe | 26030 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26031 | #ifdef __cplusplus |
26032 | extern "C" | |
26033 | #endif | |
a106dabe | 26034 | /* We use char because int might match the return type of a gcc2 |
26035 | builtin and then its argument prototype would still apply. */ | |
d213114b | 26036 | char cpowl (); |
26037 | int | |
26038 | main () | |
26039 | { | |
a106dabe | 26040 | cpowl (); |
d213114b | 26041 | ; |
26042 | return 0; | |
26043 | } | |
26044 | _ACEOF | |
26045 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 26046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
26047 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 26048 | ac_status=$? |
26049 | grep -v '^ *+' conftest.er1 >conftest.err | |
26050 | rm -f conftest.er1 | |
26051 | cat conftest.err >&5 | |
26052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26053 | (exit $ac_status); } && | |
c0e8efbe | 26054 | { ac_try='test -z "$ac_c_werror_flag" |
26055 | || test ! -s conftest.err' | |
a106dabe | 26056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26057 | (eval $ac_try) 2>&5 | |
d213114b | 26058 | ac_status=$? |
26059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26060 | (exit $ac_status); }; } && | |
26061 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 26062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26063 | (eval $ac_try) 2>&5 | |
d213114b | 26064 | ac_status=$? |
26065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26066 | (exit $ac_status); }; }; then | |
26067 | ac_cv_lib_m_cpowl=yes | |
26068 | else | |
26069 | echo "$as_me: failed program was:" >&5 | |
26070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26071 | ||
a106dabe | 26072 | ac_cv_lib_m_cpowl=no |
d213114b | 26073 | fi |
a106dabe | 26074 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26075 | conftest$ac_exeext conftest.$ac_ext |
26076 | LIBS=$ac_check_lib_save_LIBS | |
26077 | fi | |
a106dabe | 26078 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpowl" >&5 |
26079 | echo "${ECHO_T}$ac_cv_lib_m_cpowl" >&6 | |
d213114b | 26080 | if test $ac_cv_lib_m_cpowl = yes; then |
26081 | ||
26082 | cat >>confdefs.h <<\_ACEOF | |
26083 | #define HAVE_CPOWL 1 | |
26084 | _ACEOF | |
26085 | ||
26086 | fi | |
26087 | ||
a106dabe | 26088 | echo "$as_me:$LINENO: checking for roundf in -lm" >&5 |
26089 | echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6 | |
d213114b | 26090 | if test "${ac_cv_lib_m_roundf+set}" = set; then |
26091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26092 | else | |
26093 | ac_check_lib_save_LIBS=$LIBS | |
26094 | LIBS="-lm $LIBS" | |
26095 | if test x$gcc_no_link = xyes; then | |
26096 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26097 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26098 | { (exit 1); exit 1; }; } | |
26099 | fi | |
26100 | cat >conftest.$ac_ext <<_ACEOF | |
26101 | /* confdefs.h. */ | |
26102 | _ACEOF | |
26103 | cat confdefs.h >>conftest.$ac_ext | |
26104 | cat >>conftest.$ac_ext <<_ACEOF | |
26105 | /* end confdefs.h. */ | |
26106 | ||
a106dabe | 26107 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26108 | #ifdef __cplusplus |
26109 | extern "C" | |
26110 | #endif | |
a106dabe | 26111 | /* We use char because int might match the return type of a gcc2 |
26112 | builtin and then its argument prototype would still apply. */ | |
d213114b | 26113 | char roundf (); |
26114 | int | |
26115 | main () | |
26116 | { | |
a106dabe | 26117 | roundf (); |
d213114b | 26118 | ; |
26119 | return 0; | |
26120 | } | |
26121 | _ACEOF | |
26122 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 26123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
26124 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 26125 | ac_status=$? |
26126 | grep -v '^ *+' conftest.er1 >conftest.err | |
26127 | rm -f conftest.er1 | |
26128 | cat conftest.err >&5 | |
26129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26130 | (exit $ac_status); } && | |
c0e8efbe | 26131 | { ac_try='test -z "$ac_c_werror_flag" |
26132 | || test ! -s conftest.err' | |
a106dabe | 26133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26134 | (eval $ac_try) 2>&5 | |
d213114b | 26135 | ac_status=$? |
26136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26137 | (exit $ac_status); }; } && | |
26138 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 26139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26140 | (eval $ac_try) 2>&5 | |
d213114b | 26141 | ac_status=$? |
26142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26143 | (exit $ac_status); }; }; then | |
26144 | ac_cv_lib_m_roundf=yes | |
26145 | else | |
26146 | echo "$as_me: failed program was:" >&5 | |
26147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26148 | ||
a106dabe | 26149 | ac_cv_lib_m_roundf=no |
d213114b | 26150 | fi |
a106dabe | 26151 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26152 | conftest$ac_exeext conftest.$ac_ext |
26153 | LIBS=$ac_check_lib_save_LIBS | |
26154 | fi | |
a106dabe | 26155 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5 |
26156 | echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6 | |
d213114b | 26157 | if test $ac_cv_lib_m_roundf = yes; then |
26158 | ||
26159 | cat >>confdefs.h <<\_ACEOF | |
26160 | #define HAVE_ROUNDF 1 | |
26161 | _ACEOF | |
26162 | ||
26163 | fi | |
26164 | ||
a106dabe | 26165 | echo "$as_me:$LINENO: checking for round in -lm" >&5 |
26166 | echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6 | |
d213114b | 26167 | if test "${ac_cv_lib_m_round+set}" = set; then |
26168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26169 | else | |
26170 | ac_check_lib_save_LIBS=$LIBS | |
26171 | LIBS="-lm $LIBS" | |
26172 | if test x$gcc_no_link = xyes; then | |
26173 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26174 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26175 | { (exit 1); exit 1; }; } | |
26176 | fi | |
26177 | cat >conftest.$ac_ext <<_ACEOF | |
26178 | /* confdefs.h. */ | |
26179 | _ACEOF | |
26180 | cat confdefs.h >>conftest.$ac_ext | |
26181 | cat >>conftest.$ac_ext <<_ACEOF | |
26182 | /* end confdefs.h. */ | |
26183 | ||
a106dabe | 26184 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26185 | #ifdef __cplusplus |
26186 | extern "C" | |
26187 | #endif | |
a106dabe | 26188 | /* We use char because int might match the return type of a gcc2 |
26189 | builtin and then its argument prototype would still apply. */ | |
d213114b | 26190 | char round (); |
26191 | int | |
26192 | main () | |
26193 | { | |
a106dabe | 26194 | round (); |
d213114b | 26195 | ; |
26196 | return 0; | |
26197 | } | |
26198 | _ACEOF | |
26199 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 26200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
26201 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 26202 | ac_status=$? |
26203 | grep -v '^ *+' conftest.er1 >conftest.err | |
26204 | rm -f conftest.er1 | |
26205 | cat conftest.err >&5 | |
26206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26207 | (exit $ac_status); } && | |
c0e8efbe | 26208 | { ac_try='test -z "$ac_c_werror_flag" |
26209 | || test ! -s conftest.err' | |
a106dabe | 26210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26211 | (eval $ac_try) 2>&5 | |
d213114b | 26212 | ac_status=$? |
26213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26214 | (exit $ac_status); }; } && | |
26215 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 26216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26217 | (eval $ac_try) 2>&5 | |
d213114b | 26218 | ac_status=$? |
26219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26220 | (exit $ac_status); }; }; then | |
26221 | ac_cv_lib_m_round=yes | |
26222 | else | |
26223 | echo "$as_me: failed program was:" >&5 | |
26224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26225 | ||
a106dabe | 26226 | ac_cv_lib_m_round=no |
d213114b | 26227 | fi |
a106dabe | 26228 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26229 | conftest$ac_exeext conftest.$ac_ext |
26230 | LIBS=$ac_check_lib_save_LIBS | |
26231 | fi | |
a106dabe | 26232 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5 |
26233 | echo "${ECHO_T}$ac_cv_lib_m_round" >&6 | |
d213114b | 26234 | if test $ac_cv_lib_m_round = yes; then |
26235 | ||
26236 | cat >>confdefs.h <<\_ACEOF | |
26237 | #define HAVE_ROUND 1 | |
26238 | _ACEOF | |
26239 | ||
26240 | fi | |
26241 | ||
a106dabe | 26242 | echo "$as_me:$LINENO: checking for roundl in -lm" >&5 |
26243 | echo $ECHO_N "checking for roundl in -lm... $ECHO_C" >&6 | |
d213114b | 26244 | if test "${ac_cv_lib_m_roundl+set}" = set; then |
26245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26246 | else | |
26247 | ac_check_lib_save_LIBS=$LIBS | |
26248 | LIBS="-lm $LIBS" | |
26249 | if test x$gcc_no_link = xyes; then | |
26250 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26251 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26252 | { (exit 1); exit 1; }; } | |
26253 | fi | |
26254 | cat >conftest.$ac_ext <<_ACEOF | |
26255 | /* confdefs.h. */ | |
26256 | _ACEOF | |
26257 | cat confdefs.h >>conftest.$ac_ext | |
26258 | cat >>conftest.$ac_ext <<_ACEOF | |
26259 | /* end confdefs.h. */ | |
26260 | ||
a106dabe | 26261 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26262 | #ifdef __cplusplus |
26263 | extern "C" | |
26264 | #endif | |
a106dabe | 26265 | /* We use char because int might match the return type of a gcc2 |
26266 | builtin and then its argument prototype would still apply. */ | |
d213114b | 26267 | char roundl (); |
26268 | int | |
26269 | main () | |
26270 | { | |
a106dabe | 26271 | roundl (); |
d213114b | 26272 | ; |
26273 | return 0; | |
26274 | } | |
26275 | _ACEOF | |
26276 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 26277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
26278 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 26279 | ac_status=$? |
26280 | grep -v '^ *+' conftest.er1 >conftest.err | |
26281 | rm -f conftest.er1 | |
26282 | cat conftest.err >&5 | |
26283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26284 | (exit $ac_status); } && | |
c0e8efbe | 26285 | { ac_try='test -z "$ac_c_werror_flag" |
26286 | || test ! -s conftest.err' | |
a106dabe | 26287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26288 | (eval $ac_try) 2>&5 | |
d213114b | 26289 | ac_status=$? |
26290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26291 | (exit $ac_status); }; } && | |
26292 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 26293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26294 | (eval $ac_try) 2>&5 | |
d213114b | 26295 | ac_status=$? |
26296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26297 | (exit $ac_status); }; }; then | |
26298 | ac_cv_lib_m_roundl=yes | |
26299 | else | |
26300 | echo "$as_me: failed program was:" >&5 | |
26301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26302 | ||
a106dabe | 26303 | ac_cv_lib_m_roundl=no |
d213114b | 26304 | fi |
a106dabe | 26305 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26306 | conftest$ac_exeext conftest.$ac_ext |
26307 | LIBS=$ac_check_lib_save_LIBS | |
26308 | fi | |
a106dabe | 26309 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundl" >&5 |
26310 | echo "${ECHO_T}$ac_cv_lib_m_roundl" >&6 | |
d213114b | 26311 | if test $ac_cv_lib_m_roundl = yes; then |
26312 | ||
26313 | cat >>confdefs.h <<\_ACEOF | |
26314 | #define HAVE_ROUNDL 1 | |
26315 | _ACEOF | |
26316 | ||
26317 | fi | |
26318 | ||
ef080b63 | 26319 | echo "$as_me:$LINENO: checking for lroundf in -lm" >&5 |
26320 | echo $ECHO_N "checking for lroundf in -lm... $ECHO_C" >&6 | |
26321 | if test "${ac_cv_lib_m_lroundf+set}" = set; then | |
26322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26323 | else | |
26324 | ac_check_lib_save_LIBS=$LIBS | |
26325 | LIBS="-lm $LIBS" | |
26326 | if test x$gcc_no_link = xyes; then | |
26327 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26328 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26329 | { (exit 1); exit 1; }; } | |
26330 | fi | |
26331 | cat >conftest.$ac_ext <<_ACEOF | |
26332 | /* confdefs.h. */ | |
26333 | _ACEOF | |
26334 | cat confdefs.h >>conftest.$ac_ext | |
26335 | cat >>conftest.$ac_ext <<_ACEOF | |
26336 | /* end confdefs.h. */ | |
26337 | ||
26338 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26339 | #ifdef __cplusplus | |
26340 | extern "C" | |
26341 | #endif | |
26342 | /* We use char because int might match the return type of a gcc2 | |
26343 | builtin and then its argument prototype would still apply. */ | |
26344 | char lroundf (); | |
26345 | int | |
26346 | main () | |
26347 | { | |
26348 | lroundf (); | |
26349 | ; | |
26350 | return 0; | |
26351 | } | |
26352 | _ACEOF | |
26353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26355 | (eval $ac_link) 2>conftest.er1 | |
26356 | ac_status=$? | |
26357 | grep -v '^ *+' conftest.er1 >conftest.err | |
26358 | rm -f conftest.er1 | |
26359 | cat conftest.err >&5 | |
26360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26361 | (exit $ac_status); } && | |
26362 | { ac_try='test -z "$ac_c_werror_flag" | |
26363 | || test ! -s conftest.err' | |
26364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26365 | (eval $ac_try) 2>&5 | |
26366 | ac_status=$? | |
26367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26368 | (exit $ac_status); }; } && | |
26369 | { ac_try='test -s conftest$ac_exeext' | |
26370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26371 | (eval $ac_try) 2>&5 | |
26372 | ac_status=$? | |
26373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26374 | (exit $ac_status); }; }; then | |
26375 | ac_cv_lib_m_lroundf=yes | |
26376 | else | |
26377 | echo "$as_me: failed program was:" >&5 | |
26378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26379 | ||
26380 | ac_cv_lib_m_lroundf=no | |
26381 | fi | |
26382 | rm -f conftest.err conftest.$ac_objext \ | |
26383 | conftest$ac_exeext conftest.$ac_ext | |
26384 | LIBS=$ac_check_lib_save_LIBS | |
26385 | fi | |
26386 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_lroundf" >&5 | |
26387 | echo "${ECHO_T}$ac_cv_lib_m_lroundf" >&6 | |
26388 | if test $ac_cv_lib_m_lroundf = yes; then | |
26389 | ||
26390 | cat >>confdefs.h <<\_ACEOF | |
26391 | #define HAVE_LROUNDF 1 | |
26392 | _ACEOF | |
26393 | ||
26394 | fi | |
26395 | ||
26396 | echo "$as_me:$LINENO: checking for lround in -lm" >&5 | |
26397 | echo $ECHO_N "checking for lround in -lm... $ECHO_C" >&6 | |
26398 | if test "${ac_cv_lib_m_lround+set}" = set; then | |
26399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26400 | else | |
26401 | ac_check_lib_save_LIBS=$LIBS | |
26402 | LIBS="-lm $LIBS" | |
26403 | if test x$gcc_no_link = xyes; then | |
26404 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26405 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26406 | { (exit 1); exit 1; }; } | |
26407 | fi | |
26408 | cat >conftest.$ac_ext <<_ACEOF | |
26409 | /* confdefs.h. */ | |
26410 | _ACEOF | |
26411 | cat confdefs.h >>conftest.$ac_ext | |
26412 | cat >>conftest.$ac_ext <<_ACEOF | |
26413 | /* end confdefs.h. */ | |
26414 | ||
26415 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26416 | #ifdef __cplusplus | |
26417 | extern "C" | |
26418 | #endif | |
26419 | /* We use char because int might match the return type of a gcc2 | |
26420 | builtin and then its argument prototype would still apply. */ | |
26421 | char lround (); | |
26422 | int | |
26423 | main () | |
26424 | { | |
26425 | lround (); | |
26426 | ; | |
26427 | return 0; | |
26428 | } | |
26429 | _ACEOF | |
26430 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26431 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26432 | (eval $ac_link) 2>conftest.er1 | |
26433 | ac_status=$? | |
26434 | grep -v '^ *+' conftest.er1 >conftest.err | |
26435 | rm -f conftest.er1 | |
26436 | cat conftest.err >&5 | |
26437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26438 | (exit $ac_status); } && | |
26439 | { ac_try='test -z "$ac_c_werror_flag" | |
26440 | || test ! -s conftest.err' | |
26441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26442 | (eval $ac_try) 2>&5 | |
26443 | ac_status=$? | |
26444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26445 | (exit $ac_status); }; } && | |
26446 | { ac_try='test -s conftest$ac_exeext' | |
26447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26448 | (eval $ac_try) 2>&5 | |
26449 | ac_status=$? | |
26450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26451 | (exit $ac_status); }; }; then | |
26452 | ac_cv_lib_m_lround=yes | |
26453 | else | |
26454 | echo "$as_me: failed program was:" >&5 | |
26455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26456 | ||
26457 | ac_cv_lib_m_lround=no | |
26458 | fi | |
26459 | rm -f conftest.err conftest.$ac_objext \ | |
26460 | conftest$ac_exeext conftest.$ac_ext | |
26461 | LIBS=$ac_check_lib_save_LIBS | |
26462 | fi | |
26463 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_lround" >&5 | |
26464 | echo "${ECHO_T}$ac_cv_lib_m_lround" >&6 | |
26465 | if test $ac_cv_lib_m_lround = yes; then | |
26466 | ||
26467 | cat >>confdefs.h <<\_ACEOF | |
26468 | #define HAVE_LROUND 1 | |
26469 | _ACEOF | |
26470 | ||
26471 | fi | |
26472 | ||
26473 | echo "$as_me:$LINENO: checking for lroundl in -lm" >&5 | |
26474 | echo $ECHO_N "checking for lroundl in -lm... $ECHO_C" >&6 | |
26475 | if test "${ac_cv_lib_m_lroundl+set}" = set; then | |
26476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26477 | else | |
26478 | ac_check_lib_save_LIBS=$LIBS | |
26479 | LIBS="-lm $LIBS" | |
26480 | if test x$gcc_no_link = xyes; then | |
26481 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26482 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26483 | { (exit 1); exit 1; }; } | |
26484 | fi | |
26485 | cat >conftest.$ac_ext <<_ACEOF | |
26486 | /* confdefs.h. */ | |
26487 | _ACEOF | |
26488 | cat confdefs.h >>conftest.$ac_ext | |
26489 | cat >>conftest.$ac_ext <<_ACEOF | |
26490 | /* end confdefs.h. */ | |
26491 | ||
26492 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26493 | #ifdef __cplusplus | |
26494 | extern "C" | |
26495 | #endif | |
26496 | /* We use char because int might match the return type of a gcc2 | |
26497 | builtin and then its argument prototype would still apply. */ | |
26498 | char lroundl (); | |
26499 | int | |
26500 | main () | |
26501 | { | |
26502 | lroundl (); | |
26503 | ; | |
26504 | return 0; | |
26505 | } | |
26506 | _ACEOF | |
26507 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26509 | (eval $ac_link) 2>conftest.er1 | |
26510 | ac_status=$? | |
26511 | grep -v '^ *+' conftest.er1 >conftest.err | |
26512 | rm -f conftest.er1 | |
26513 | cat conftest.err >&5 | |
26514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26515 | (exit $ac_status); } && | |
26516 | { ac_try='test -z "$ac_c_werror_flag" | |
26517 | || test ! -s conftest.err' | |
26518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26519 | (eval $ac_try) 2>&5 | |
26520 | ac_status=$? | |
26521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26522 | (exit $ac_status); }; } && | |
26523 | { ac_try='test -s conftest$ac_exeext' | |
26524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26525 | (eval $ac_try) 2>&5 | |
26526 | ac_status=$? | |
26527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26528 | (exit $ac_status); }; }; then | |
26529 | ac_cv_lib_m_lroundl=yes | |
26530 | else | |
26531 | echo "$as_me: failed program was:" >&5 | |
26532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26533 | ||
26534 | ac_cv_lib_m_lroundl=no | |
26535 | fi | |
26536 | rm -f conftest.err conftest.$ac_objext \ | |
26537 | conftest$ac_exeext conftest.$ac_ext | |
26538 | LIBS=$ac_check_lib_save_LIBS | |
26539 | fi | |
26540 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_lroundl" >&5 | |
26541 | echo "${ECHO_T}$ac_cv_lib_m_lroundl" >&6 | |
26542 | if test $ac_cv_lib_m_lroundl = yes; then | |
26543 | ||
26544 | cat >>confdefs.h <<\_ACEOF | |
26545 | #define HAVE_LROUNDL 1 | |
26546 | _ACEOF | |
26547 | ||
26548 | fi | |
26549 | ||
26550 | echo "$as_me:$LINENO: checking for llroundf in -lm" >&5 | |
26551 | echo $ECHO_N "checking for llroundf in -lm... $ECHO_C" >&6 | |
26552 | if test "${ac_cv_lib_m_llroundf+set}" = set; then | |
26553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26554 | else | |
26555 | ac_check_lib_save_LIBS=$LIBS | |
26556 | LIBS="-lm $LIBS" | |
26557 | if test x$gcc_no_link = xyes; then | |
26558 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26559 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26560 | { (exit 1); exit 1; }; } | |
26561 | fi | |
26562 | cat >conftest.$ac_ext <<_ACEOF | |
26563 | /* confdefs.h. */ | |
26564 | _ACEOF | |
26565 | cat confdefs.h >>conftest.$ac_ext | |
26566 | cat >>conftest.$ac_ext <<_ACEOF | |
26567 | /* end confdefs.h. */ | |
26568 | ||
26569 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26570 | #ifdef __cplusplus | |
26571 | extern "C" | |
26572 | #endif | |
26573 | /* We use char because int might match the return type of a gcc2 | |
26574 | builtin and then its argument prototype would still apply. */ | |
26575 | char llroundf (); | |
26576 | int | |
26577 | main () | |
26578 | { | |
26579 | llroundf (); | |
26580 | ; | |
26581 | return 0; | |
26582 | } | |
26583 | _ACEOF | |
26584 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26586 | (eval $ac_link) 2>conftest.er1 | |
26587 | ac_status=$? | |
26588 | grep -v '^ *+' conftest.er1 >conftest.err | |
26589 | rm -f conftest.er1 | |
26590 | cat conftest.err >&5 | |
26591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26592 | (exit $ac_status); } && | |
26593 | { ac_try='test -z "$ac_c_werror_flag" | |
26594 | || test ! -s conftest.err' | |
26595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26596 | (eval $ac_try) 2>&5 | |
26597 | ac_status=$? | |
26598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26599 | (exit $ac_status); }; } && | |
26600 | { ac_try='test -s conftest$ac_exeext' | |
26601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26602 | (eval $ac_try) 2>&5 | |
26603 | ac_status=$? | |
26604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26605 | (exit $ac_status); }; }; then | |
26606 | ac_cv_lib_m_llroundf=yes | |
26607 | else | |
26608 | echo "$as_me: failed program was:" >&5 | |
26609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26610 | ||
26611 | ac_cv_lib_m_llroundf=no | |
26612 | fi | |
26613 | rm -f conftest.err conftest.$ac_objext \ | |
26614 | conftest$ac_exeext conftest.$ac_ext | |
26615 | LIBS=$ac_check_lib_save_LIBS | |
26616 | fi | |
26617 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_llroundf" >&5 | |
26618 | echo "${ECHO_T}$ac_cv_lib_m_llroundf" >&6 | |
26619 | if test $ac_cv_lib_m_llroundf = yes; then | |
26620 | ||
26621 | cat >>confdefs.h <<\_ACEOF | |
26622 | #define HAVE_LLROUNDF 1 | |
26623 | _ACEOF | |
26624 | ||
26625 | fi | |
26626 | ||
26627 | echo "$as_me:$LINENO: checking for llround in -lm" >&5 | |
26628 | echo $ECHO_N "checking for llround in -lm... $ECHO_C" >&6 | |
26629 | if test "${ac_cv_lib_m_llround+set}" = set; then | |
26630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26631 | else | |
26632 | ac_check_lib_save_LIBS=$LIBS | |
26633 | LIBS="-lm $LIBS" | |
26634 | if test x$gcc_no_link = xyes; then | |
26635 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26636 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26637 | { (exit 1); exit 1; }; } | |
26638 | fi | |
26639 | cat >conftest.$ac_ext <<_ACEOF | |
26640 | /* confdefs.h. */ | |
26641 | _ACEOF | |
26642 | cat confdefs.h >>conftest.$ac_ext | |
26643 | cat >>conftest.$ac_ext <<_ACEOF | |
26644 | /* end confdefs.h. */ | |
26645 | ||
26646 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26647 | #ifdef __cplusplus | |
26648 | extern "C" | |
26649 | #endif | |
26650 | /* We use char because int might match the return type of a gcc2 | |
26651 | builtin and then its argument prototype would still apply. */ | |
26652 | char llround (); | |
26653 | int | |
26654 | main () | |
26655 | { | |
26656 | llround (); | |
26657 | ; | |
26658 | return 0; | |
26659 | } | |
26660 | _ACEOF | |
26661 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26663 | (eval $ac_link) 2>conftest.er1 | |
26664 | ac_status=$? | |
26665 | grep -v '^ *+' conftest.er1 >conftest.err | |
26666 | rm -f conftest.er1 | |
26667 | cat conftest.err >&5 | |
26668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26669 | (exit $ac_status); } && | |
26670 | { ac_try='test -z "$ac_c_werror_flag" | |
26671 | || test ! -s conftest.err' | |
26672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26673 | (eval $ac_try) 2>&5 | |
26674 | ac_status=$? | |
26675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26676 | (exit $ac_status); }; } && | |
26677 | { ac_try='test -s conftest$ac_exeext' | |
26678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26679 | (eval $ac_try) 2>&5 | |
26680 | ac_status=$? | |
26681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26682 | (exit $ac_status); }; }; then | |
26683 | ac_cv_lib_m_llround=yes | |
26684 | else | |
26685 | echo "$as_me: failed program was:" >&5 | |
26686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26687 | ||
26688 | ac_cv_lib_m_llround=no | |
26689 | fi | |
26690 | rm -f conftest.err conftest.$ac_objext \ | |
26691 | conftest$ac_exeext conftest.$ac_ext | |
26692 | LIBS=$ac_check_lib_save_LIBS | |
26693 | fi | |
26694 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_llround" >&5 | |
26695 | echo "${ECHO_T}$ac_cv_lib_m_llround" >&6 | |
26696 | if test $ac_cv_lib_m_llround = yes; then | |
26697 | ||
26698 | cat >>confdefs.h <<\_ACEOF | |
26699 | #define HAVE_LLROUND 1 | |
26700 | _ACEOF | |
26701 | ||
26702 | fi | |
26703 | ||
26704 | echo "$as_me:$LINENO: checking for llroundl in -lm" >&5 | |
26705 | echo $ECHO_N "checking for llroundl in -lm... $ECHO_C" >&6 | |
26706 | if test "${ac_cv_lib_m_llroundl+set}" = set; then | |
26707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26708 | else | |
26709 | ac_check_lib_save_LIBS=$LIBS | |
26710 | LIBS="-lm $LIBS" | |
26711 | if test x$gcc_no_link = xyes; then | |
26712 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26713 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26714 | { (exit 1); exit 1; }; } | |
26715 | fi | |
26716 | cat >conftest.$ac_ext <<_ACEOF | |
26717 | /* confdefs.h. */ | |
26718 | _ACEOF | |
26719 | cat confdefs.h >>conftest.$ac_ext | |
26720 | cat >>conftest.$ac_ext <<_ACEOF | |
26721 | /* end confdefs.h. */ | |
26722 | ||
26723 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26724 | #ifdef __cplusplus | |
26725 | extern "C" | |
26726 | #endif | |
26727 | /* We use char because int might match the return type of a gcc2 | |
26728 | builtin and then its argument prototype would still apply. */ | |
26729 | char llroundl (); | |
26730 | int | |
26731 | main () | |
26732 | { | |
26733 | llroundl (); | |
26734 | ; | |
26735 | return 0; | |
26736 | } | |
26737 | _ACEOF | |
26738 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26740 | (eval $ac_link) 2>conftest.er1 | |
26741 | ac_status=$? | |
26742 | grep -v '^ *+' conftest.er1 >conftest.err | |
26743 | rm -f conftest.er1 | |
26744 | cat conftest.err >&5 | |
26745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26746 | (exit $ac_status); } && | |
26747 | { ac_try='test -z "$ac_c_werror_flag" | |
26748 | || test ! -s conftest.err' | |
26749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26750 | (eval $ac_try) 2>&5 | |
26751 | ac_status=$? | |
26752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26753 | (exit $ac_status); }; } && | |
26754 | { ac_try='test -s conftest$ac_exeext' | |
26755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26756 | (eval $ac_try) 2>&5 | |
26757 | ac_status=$? | |
26758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26759 | (exit $ac_status); }; }; then | |
26760 | ac_cv_lib_m_llroundl=yes | |
26761 | else | |
26762 | echo "$as_me: failed program was:" >&5 | |
26763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26764 | ||
26765 | ac_cv_lib_m_llroundl=no | |
26766 | fi | |
26767 | rm -f conftest.err conftest.$ac_objext \ | |
26768 | conftest$ac_exeext conftest.$ac_ext | |
26769 | LIBS=$ac_check_lib_save_LIBS | |
26770 | fi | |
26771 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_llroundl" >&5 | |
26772 | echo "${ECHO_T}$ac_cv_lib_m_llroundl" >&6 | |
26773 | if test $ac_cv_lib_m_llroundl = yes; then | |
26774 | ||
26775 | cat >>confdefs.h <<\_ACEOF | |
26776 | #define HAVE_LLROUNDL 1 | |
26777 | _ACEOF | |
26778 | ||
26779 | fi | |
26780 | ||
a106dabe | 26781 | echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5 |
26782 | echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6 | |
d213114b | 26783 | if test "${ac_cv_lib_m_scalbnf+set}" = set; then |
26784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26785 | else | |
26786 | ac_check_lib_save_LIBS=$LIBS | |
26787 | LIBS="-lm $LIBS" | |
26788 | if test x$gcc_no_link = xyes; then | |
26789 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26790 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26791 | { (exit 1); exit 1; }; } | |
26792 | fi | |
26793 | cat >conftest.$ac_ext <<_ACEOF | |
26794 | /* confdefs.h. */ | |
26795 | _ACEOF | |
26796 | cat confdefs.h >>conftest.$ac_ext | |
26797 | cat >>conftest.$ac_ext <<_ACEOF | |
26798 | /* end confdefs.h. */ | |
26799 | ||
a106dabe | 26800 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26801 | #ifdef __cplusplus |
26802 | extern "C" | |
26803 | #endif | |
a106dabe | 26804 | /* We use char because int might match the return type of a gcc2 |
26805 | builtin and then its argument prototype would still apply. */ | |
d213114b | 26806 | char scalbnf (); |
26807 | int | |
26808 | main () | |
26809 | { | |
a106dabe | 26810 | scalbnf (); |
d213114b | 26811 | ; |
26812 | return 0; | |
26813 | } | |
26814 | _ACEOF | |
26815 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 26816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
26817 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 26818 | ac_status=$? |
26819 | grep -v '^ *+' conftest.er1 >conftest.err | |
26820 | rm -f conftest.er1 | |
26821 | cat conftest.err >&5 | |
26822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26823 | (exit $ac_status); } && | |
c0e8efbe | 26824 | { ac_try='test -z "$ac_c_werror_flag" |
26825 | || test ! -s conftest.err' | |
a106dabe | 26826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26827 | (eval $ac_try) 2>&5 | |
d213114b | 26828 | ac_status=$? |
26829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26830 | (exit $ac_status); }; } && | |
26831 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 26832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26833 | (eval $ac_try) 2>&5 | |
d213114b | 26834 | ac_status=$? |
26835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26836 | (exit $ac_status); }; }; then | |
26837 | ac_cv_lib_m_scalbnf=yes | |
26838 | else | |
26839 | echo "$as_me: failed program was:" >&5 | |
26840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26841 | ||
a106dabe | 26842 | ac_cv_lib_m_scalbnf=no |
d213114b | 26843 | fi |
a106dabe | 26844 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26845 | conftest$ac_exeext conftest.$ac_ext |
26846 | LIBS=$ac_check_lib_save_LIBS | |
26847 | fi | |
a106dabe | 26848 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5 |
26849 | echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6 | |
d213114b | 26850 | if test $ac_cv_lib_m_scalbnf = yes; then |
26851 | ||
26852 | cat >>confdefs.h <<\_ACEOF | |
26853 | #define HAVE_SCALBNF 1 | |
26854 | _ACEOF | |
26855 | ||
26856 | fi | |
26857 | ||
a106dabe | 26858 | echo "$as_me:$LINENO: checking for scalbn in -lm" >&5 |
26859 | echo $ECHO_N "checking for scalbn in -lm... $ECHO_C" >&6 | |
d213114b | 26860 | if test "${ac_cv_lib_m_scalbn+set}" = set; then |
26861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26862 | else | |
26863 | ac_check_lib_save_LIBS=$LIBS | |
26864 | LIBS="-lm $LIBS" | |
26865 | if test x$gcc_no_link = xyes; then | |
26866 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26867 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26868 | { (exit 1); exit 1; }; } | |
26869 | fi | |
26870 | cat >conftest.$ac_ext <<_ACEOF | |
26871 | /* confdefs.h. */ | |
26872 | _ACEOF | |
26873 | cat confdefs.h >>conftest.$ac_ext | |
26874 | cat >>conftest.$ac_ext <<_ACEOF | |
26875 | /* end confdefs.h. */ | |
26876 | ||
a106dabe | 26877 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26878 | #ifdef __cplusplus |
26879 | extern "C" | |
26880 | #endif | |
a106dabe | 26881 | /* We use char because int might match the return type of a gcc2 |
26882 | builtin and then its argument prototype would still apply. */ | |
d213114b | 26883 | char scalbn (); |
26884 | int | |
26885 | main () | |
26886 | { | |
a106dabe | 26887 | scalbn (); |
d213114b | 26888 | ; |
26889 | return 0; | |
26890 | } | |
26891 | _ACEOF | |
26892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 26893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
26894 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 26895 | ac_status=$? |
26896 | grep -v '^ *+' conftest.er1 >conftest.err | |
26897 | rm -f conftest.er1 | |
26898 | cat conftest.err >&5 | |
26899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26900 | (exit $ac_status); } && | |
c0e8efbe | 26901 | { ac_try='test -z "$ac_c_werror_flag" |
26902 | || test ! -s conftest.err' | |
a106dabe | 26903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26904 | (eval $ac_try) 2>&5 | |
d213114b | 26905 | ac_status=$? |
26906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26907 | (exit $ac_status); }; } && | |
26908 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 26909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26910 | (eval $ac_try) 2>&5 | |
d213114b | 26911 | ac_status=$? |
26912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26913 | (exit $ac_status); }; }; then | |
26914 | ac_cv_lib_m_scalbn=yes | |
26915 | else | |
26916 | echo "$as_me: failed program was:" >&5 | |
26917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26918 | ||
a106dabe | 26919 | ac_cv_lib_m_scalbn=no |
d213114b | 26920 | fi |
a106dabe | 26921 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26922 | conftest$ac_exeext conftest.$ac_ext |
26923 | LIBS=$ac_check_lib_save_LIBS | |
26924 | fi | |
a106dabe | 26925 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbn" >&5 |
26926 | echo "${ECHO_T}$ac_cv_lib_m_scalbn" >&6 | |
d213114b | 26927 | if test $ac_cv_lib_m_scalbn = yes; then |
26928 | ||
26929 | cat >>confdefs.h <<\_ACEOF | |
26930 | #define HAVE_SCALBN 1 | |
26931 | _ACEOF | |
26932 | ||
26933 | fi | |
26934 | ||
a106dabe | 26935 | echo "$as_me:$LINENO: checking for scalbnl in -lm" >&5 |
26936 | echo $ECHO_N "checking for scalbnl in -lm... $ECHO_C" >&6 | |
d213114b | 26937 | if test "${ac_cv_lib_m_scalbnl+set}" = set; then |
26938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26939 | else | |
26940 | ac_check_lib_save_LIBS=$LIBS | |
26941 | LIBS="-lm $LIBS" | |
26942 | if test x$gcc_no_link = xyes; then | |
26943 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26944 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26945 | { (exit 1); exit 1; }; } | |
26946 | fi | |
26947 | cat >conftest.$ac_ext <<_ACEOF | |
26948 | /* confdefs.h. */ | |
26949 | _ACEOF | |
26950 | cat confdefs.h >>conftest.$ac_ext | |
26951 | cat >>conftest.$ac_ext <<_ACEOF | |
26952 | /* end confdefs.h. */ | |
26953 | ||
a106dabe | 26954 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26955 | #ifdef __cplusplus |
26956 | extern "C" | |
26957 | #endif | |
a106dabe | 26958 | /* We use char because int might match the return type of a gcc2 |
26959 | builtin and then its argument prototype would still apply. */ | |
d213114b | 26960 | char scalbnl (); |
26961 | int | |
26962 | main () | |
26963 | { | |
a106dabe | 26964 | scalbnl (); |
d213114b | 26965 | ; |
26966 | return 0; | |
26967 | } | |
26968 | _ACEOF | |
26969 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 26970 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
26971 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 26972 | ac_status=$? |
26973 | grep -v '^ *+' conftest.er1 >conftest.err | |
26974 | rm -f conftest.er1 | |
26975 | cat conftest.err >&5 | |
26976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26977 | (exit $ac_status); } && | |
c0e8efbe | 26978 | { ac_try='test -z "$ac_c_werror_flag" |
26979 | || test ! -s conftest.err' | |
a106dabe | 26980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26981 | (eval $ac_try) 2>&5 | |
d213114b | 26982 | ac_status=$? |
26983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26984 | (exit $ac_status); }; } && | |
26985 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 26986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26987 | (eval $ac_try) 2>&5 | |
d213114b | 26988 | ac_status=$? |
26989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26990 | (exit $ac_status); }; }; then | |
26991 | ac_cv_lib_m_scalbnl=yes | |
26992 | else | |
26993 | echo "$as_me: failed program was:" >&5 | |
26994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26995 | ||
a106dabe | 26996 | ac_cv_lib_m_scalbnl=no |
d213114b | 26997 | fi |
a106dabe | 26998 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26999 | conftest$ac_exeext conftest.$ac_ext |
27000 | LIBS=$ac_check_lib_save_LIBS | |
27001 | fi | |
a106dabe | 27002 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnl" >&5 |
27003 | echo "${ECHO_T}$ac_cv_lib_m_scalbnl" >&6 | |
d213114b | 27004 | if test $ac_cv_lib_m_scalbnl = yes; then |
27005 | ||
27006 | cat >>confdefs.h <<\_ACEOF | |
27007 | #define HAVE_SCALBNL 1 | |
27008 | _ACEOF | |
27009 | ||
27010 | fi | |
27011 | ||
a106dabe | 27012 | echo "$as_me:$LINENO: checking for sinf in -lm" >&5 |
27013 | echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6 | |
d213114b | 27014 | if test "${ac_cv_lib_m_sinf+set}" = set; then |
27015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27016 | else | |
27017 | ac_check_lib_save_LIBS=$LIBS | |
27018 | LIBS="-lm $LIBS" | |
27019 | if test x$gcc_no_link = xyes; then | |
27020 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27021 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27022 | { (exit 1); exit 1; }; } | |
27023 | fi | |
27024 | cat >conftest.$ac_ext <<_ACEOF | |
27025 | /* confdefs.h. */ | |
27026 | _ACEOF | |
27027 | cat confdefs.h >>conftest.$ac_ext | |
27028 | cat >>conftest.$ac_ext <<_ACEOF | |
27029 | /* end confdefs.h. */ | |
27030 | ||
a106dabe | 27031 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27032 | #ifdef __cplusplus |
27033 | extern "C" | |
27034 | #endif | |
a106dabe | 27035 | /* We use char because int might match the return type of a gcc2 |
27036 | builtin and then its argument prototype would still apply. */ | |
d213114b | 27037 | char sinf (); |
27038 | int | |
27039 | main () | |
27040 | { | |
a106dabe | 27041 | sinf (); |
d213114b | 27042 | ; |
27043 | return 0; | |
27044 | } | |
27045 | _ACEOF | |
27046 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 27047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
27048 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 27049 | ac_status=$? |
27050 | grep -v '^ *+' conftest.er1 >conftest.err | |
27051 | rm -f conftest.er1 | |
27052 | cat conftest.err >&5 | |
27053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27054 | (exit $ac_status); } && | |
c0e8efbe | 27055 | { ac_try='test -z "$ac_c_werror_flag" |
27056 | || test ! -s conftest.err' | |
a106dabe | 27057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27058 | (eval $ac_try) 2>&5 | |
d213114b | 27059 | ac_status=$? |
27060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27061 | (exit $ac_status); }; } && | |
27062 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 27063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27064 | (eval $ac_try) 2>&5 | |
d213114b | 27065 | ac_status=$? |
27066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27067 | (exit $ac_status); }; }; then | |
27068 | ac_cv_lib_m_sinf=yes | |
27069 | else | |
27070 | echo "$as_me: failed program was:" >&5 | |
27071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27072 | ||
a106dabe | 27073 | ac_cv_lib_m_sinf=no |
d213114b | 27074 | fi |
a106dabe | 27075 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27076 | conftest$ac_exeext conftest.$ac_ext |
27077 | LIBS=$ac_check_lib_save_LIBS | |
27078 | fi | |
a106dabe | 27079 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5 |
27080 | echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6 | |
d213114b | 27081 | if test $ac_cv_lib_m_sinf = yes; then |
27082 | ||
27083 | cat >>confdefs.h <<\_ACEOF | |
27084 | #define HAVE_SINF 1 | |
27085 | _ACEOF | |
27086 | ||
27087 | fi | |
27088 | ||
a106dabe | 27089 | echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
27090 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 | |
d213114b | 27091 | if test "${ac_cv_lib_m_sin+set}" = set; then |
27092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27093 | else | |
27094 | ac_check_lib_save_LIBS=$LIBS | |
27095 | LIBS="-lm $LIBS" | |
27096 | if test x$gcc_no_link = xyes; then | |
27097 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27098 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27099 | { (exit 1); exit 1; }; } | |
27100 | fi | |
27101 | cat >conftest.$ac_ext <<_ACEOF | |
27102 | /* confdefs.h. */ | |
27103 | _ACEOF | |
27104 | cat confdefs.h >>conftest.$ac_ext | |
27105 | cat >>conftest.$ac_ext <<_ACEOF | |
27106 | /* end confdefs.h. */ | |
27107 | ||
a106dabe | 27108 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27109 | #ifdef __cplusplus |
27110 | extern "C" | |
27111 | #endif | |
a106dabe | 27112 | /* We use char because int might match the return type of a gcc2 |
27113 | builtin and then its argument prototype would still apply. */ | |
d213114b | 27114 | char sin (); |
27115 | int | |
27116 | main () | |
27117 | { | |
a106dabe | 27118 | sin (); |
d213114b | 27119 | ; |
27120 | return 0; | |
27121 | } | |
27122 | _ACEOF | |
27123 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 27124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
27125 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 27126 | ac_status=$? |
27127 | grep -v '^ *+' conftest.er1 >conftest.err | |
27128 | rm -f conftest.er1 | |
27129 | cat conftest.err >&5 | |
27130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27131 | (exit $ac_status); } && | |
c0e8efbe | 27132 | { ac_try='test -z "$ac_c_werror_flag" |
27133 | || test ! -s conftest.err' | |
a106dabe | 27134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27135 | (eval $ac_try) 2>&5 | |
d213114b | 27136 | ac_status=$? |
27137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27138 | (exit $ac_status); }; } && | |
27139 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 27140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27141 | (eval $ac_try) 2>&5 | |
d213114b | 27142 | ac_status=$? |
27143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27144 | (exit $ac_status); }; }; then | |
27145 | ac_cv_lib_m_sin=yes | |
27146 | else | |
27147 | echo "$as_me: failed program was:" >&5 | |
27148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27149 | ||
a106dabe | 27150 | ac_cv_lib_m_sin=no |
d213114b | 27151 | fi |
a106dabe | 27152 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27153 | conftest$ac_exeext conftest.$ac_ext |
27154 | LIBS=$ac_check_lib_save_LIBS | |
27155 | fi | |
a106dabe | 27156 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
27157 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6 | |
d213114b | 27158 | if test $ac_cv_lib_m_sin = yes; then |
27159 | ||
27160 | cat >>confdefs.h <<\_ACEOF | |
27161 | #define HAVE_SIN 1 | |
27162 | _ACEOF | |
27163 | ||
27164 | fi | |
27165 | ||
a106dabe | 27166 | echo "$as_me:$LINENO: checking for sinl in -lm" >&5 |
27167 | echo $ECHO_N "checking for sinl in -lm... $ECHO_C" >&6 | |
d213114b | 27168 | if test "${ac_cv_lib_m_sinl+set}" = set; then |
27169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27170 | else | |
27171 | ac_check_lib_save_LIBS=$LIBS | |
27172 | LIBS="-lm $LIBS" | |
27173 | if test x$gcc_no_link = xyes; then | |
27174 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27175 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27176 | { (exit 1); exit 1; }; } | |
27177 | fi | |
27178 | cat >conftest.$ac_ext <<_ACEOF | |
27179 | /* confdefs.h. */ | |
27180 | _ACEOF | |
27181 | cat confdefs.h >>conftest.$ac_ext | |
27182 | cat >>conftest.$ac_ext <<_ACEOF | |
27183 | /* end confdefs.h. */ | |
27184 | ||
a106dabe | 27185 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27186 | #ifdef __cplusplus |
27187 | extern "C" | |
27188 | #endif | |
a106dabe | 27189 | /* We use char because int might match the return type of a gcc2 |
27190 | builtin and then its argument prototype would still apply. */ | |
d213114b | 27191 | char sinl (); |
27192 | int | |
27193 | main () | |
27194 | { | |
a106dabe | 27195 | sinl (); |
d213114b | 27196 | ; |
27197 | return 0; | |
27198 | } | |
27199 | _ACEOF | |
27200 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 27201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
27202 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 27203 | ac_status=$? |
27204 | grep -v '^ *+' conftest.er1 >conftest.err | |
27205 | rm -f conftest.er1 | |
27206 | cat conftest.err >&5 | |
27207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27208 | (exit $ac_status); } && | |
c0e8efbe | 27209 | { ac_try='test -z "$ac_c_werror_flag" |
27210 | || test ! -s conftest.err' | |
a106dabe | 27211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27212 | (eval $ac_try) 2>&5 | |
d213114b | 27213 | ac_status=$? |
27214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27215 | (exit $ac_status); }; } && | |
27216 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 27217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27218 | (eval $ac_try) 2>&5 | |
d213114b | 27219 | ac_status=$? |
27220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27221 | (exit $ac_status); }; }; then | |
27222 | ac_cv_lib_m_sinl=yes | |
27223 | else | |
27224 | echo "$as_me: failed program was:" >&5 | |
27225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27226 | ||
a106dabe | 27227 | ac_cv_lib_m_sinl=no |
d213114b | 27228 | fi |
a106dabe | 27229 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27230 | conftest$ac_exeext conftest.$ac_ext |
27231 | LIBS=$ac_check_lib_save_LIBS | |
27232 | fi | |
a106dabe | 27233 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinl" >&5 |
27234 | echo "${ECHO_T}$ac_cv_lib_m_sinl" >&6 | |
d213114b | 27235 | if test $ac_cv_lib_m_sinl = yes; then |
27236 | ||
27237 | cat >>confdefs.h <<\_ACEOF | |
27238 | #define HAVE_SINL 1 | |
27239 | _ACEOF | |
27240 | ||
27241 | fi | |
27242 | ||
a106dabe | 27243 | echo "$as_me:$LINENO: checking for csinf in -lm" >&5 |
27244 | echo $ECHO_N "checking for csinf in -lm... $ECHO_C" >&6 | |
d213114b | 27245 | if test "${ac_cv_lib_m_csinf+set}" = set; then |
27246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27247 | else | |
27248 | ac_check_lib_save_LIBS=$LIBS | |
27249 | LIBS="-lm $LIBS" | |
27250 | if test x$gcc_no_link = xyes; then | |
27251 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27252 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27253 | { (exit 1); exit 1; }; } | |
27254 | fi | |
27255 | cat >conftest.$ac_ext <<_ACEOF | |
27256 | /* confdefs.h. */ | |
27257 | _ACEOF | |
27258 | cat confdefs.h >>conftest.$ac_ext | |
27259 | cat >>conftest.$ac_ext <<_ACEOF | |
27260 | /* end confdefs.h. */ | |
27261 | ||
a106dabe | 27262 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27263 | #ifdef __cplusplus |
27264 | extern "C" | |
27265 | #endif | |
a106dabe | 27266 | /* We use char because int might match the return type of a gcc2 |
27267 | builtin and then its argument prototype would still apply. */ | |
d213114b | 27268 | char csinf (); |
27269 | int | |
27270 | main () | |
27271 | { | |
a106dabe | 27272 | csinf (); |
d213114b | 27273 | ; |
27274 | return 0; | |
27275 | } | |
27276 | _ACEOF | |
27277 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 27278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
27279 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 27280 | ac_status=$? |
27281 | grep -v '^ *+' conftest.er1 >conftest.err | |
27282 | rm -f conftest.er1 | |
27283 | cat conftest.err >&5 | |
27284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27285 | (exit $ac_status); } && | |
c0e8efbe | 27286 | { ac_try='test -z "$ac_c_werror_flag" |
27287 | || test ! -s conftest.err' | |
a106dabe | 27288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27289 | (eval $ac_try) 2>&5 | |
d213114b | 27290 | ac_status=$? |
27291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27292 | (exit $ac_status); }; } && | |
27293 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 27294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27295 | (eval $ac_try) 2>&5 | |
d213114b | 27296 | ac_status=$? |
27297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27298 | (exit $ac_status); }; }; then | |
27299 | ac_cv_lib_m_csinf=yes | |
27300 | else | |
27301 | echo "$as_me: failed program was:" >&5 | |
27302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27303 | ||
a106dabe | 27304 | ac_cv_lib_m_csinf=no |
d213114b | 27305 | fi |
a106dabe | 27306 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27307 | conftest$ac_exeext conftest.$ac_ext |
27308 | LIBS=$ac_check_lib_save_LIBS | |
27309 | fi | |
a106dabe | 27310 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinf" >&5 |
27311 | echo "${ECHO_T}$ac_cv_lib_m_csinf" >&6 | |
d213114b | 27312 | if test $ac_cv_lib_m_csinf = yes; then |
27313 | ||
27314 | cat >>confdefs.h <<\_ACEOF | |
27315 | #define HAVE_CSINF 1 | |
27316 | _ACEOF | |
27317 | ||
27318 | fi | |
27319 | ||
a106dabe | 27320 | echo "$as_me:$LINENO: checking for csin in -lm" >&5 |
27321 | echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6 | |
d213114b | 27322 | if test "${ac_cv_lib_m_csin+set}" = set; then |
27323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27324 | else | |
27325 | ac_check_lib_save_LIBS=$LIBS | |
27326 | LIBS="-lm $LIBS" | |
27327 | if test x$gcc_no_link = xyes; then | |
27328 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27329 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27330 | { (exit 1); exit 1; }; } | |
27331 | fi | |
27332 | cat >conftest.$ac_ext <<_ACEOF | |
27333 | /* confdefs.h. */ | |
27334 | _ACEOF | |
27335 | cat confdefs.h >>conftest.$ac_ext | |
27336 | cat >>conftest.$ac_ext <<_ACEOF | |
27337 | /* end confdefs.h. */ | |
27338 | ||
a106dabe | 27339 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27340 | #ifdef __cplusplus |
27341 | extern "C" | |
27342 | #endif | |
a106dabe | 27343 | /* We use char because int might match the return type of a gcc2 |
27344 | builtin and then its argument prototype would still apply. */ | |
d213114b | 27345 | char csin (); |
27346 | int | |
27347 | main () | |
27348 | { | |
a106dabe | 27349 | csin (); |
d213114b | 27350 | ; |
27351 | return 0; | |
27352 | } | |
27353 | _ACEOF | |
27354 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 27355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
27356 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 27357 | ac_status=$? |
27358 | grep -v '^ *+' conftest.er1 >conftest.err | |
27359 | rm -f conftest.er1 | |
27360 | cat conftest.err >&5 | |
27361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27362 | (exit $ac_status); } && | |
c0e8efbe | 27363 | { ac_try='test -z "$ac_c_werror_flag" |
27364 | || test ! -s conftest.err' | |
a106dabe | 27365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27366 | (eval $ac_try) 2>&5 | |
d213114b | 27367 | ac_status=$? |
27368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27369 | (exit $ac_status); }; } && | |
27370 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 27371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27372 | (eval $ac_try) 2>&5 | |
d213114b | 27373 | ac_status=$? |
27374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27375 | (exit $ac_status); }; }; then | |
27376 | ac_cv_lib_m_csin=yes | |
27377 | else | |
27378 | echo "$as_me: failed program was:" >&5 | |
27379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27380 | ||
a106dabe | 27381 | ac_cv_lib_m_csin=no |
d213114b | 27382 | fi |
a106dabe | 27383 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27384 | conftest$ac_exeext conftest.$ac_ext |
27385 | LIBS=$ac_check_lib_save_LIBS | |
27386 | fi | |
a106dabe | 27387 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5 |
27388 | echo "${ECHO_T}$ac_cv_lib_m_csin" >&6 | |
d213114b | 27389 | if test $ac_cv_lib_m_csin = yes; then |
27390 | ||
27391 | cat >>confdefs.h <<\_ACEOF | |
27392 | #define HAVE_CSIN 1 | |
27393 | _ACEOF | |
27394 | ||
27395 | fi | |
27396 | ||
a106dabe | 27397 | echo "$as_me:$LINENO: checking for csinl in -lm" >&5 |
27398 | echo $ECHO_N "checking for csinl in -lm... $ECHO_C" >&6 | |
d213114b | 27399 | if test "${ac_cv_lib_m_csinl+set}" = set; then |
27400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27401 | else | |
27402 | ac_check_lib_save_LIBS=$LIBS | |
27403 | LIBS="-lm $LIBS" | |
27404 | if test x$gcc_no_link = xyes; then | |
27405 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27406 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27407 | { (exit 1); exit 1; }; } | |
27408 | fi | |
27409 | cat >conftest.$ac_ext <<_ACEOF | |
27410 | /* confdefs.h. */ | |
27411 | _ACEOF | |
27412 | cat confdefs.h >>conftest.$ac_ext | |
27413 | cat >>conftest.$ac_ext <<_ACEOF | |
27414 | /* end confdefs.h. */ | |
27415 | ||
a106dabe | 27416 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27417 | #ifdef __cplusplus |
27418 | extern "C" | |
27419 | #endif | |
a106dabe | 27420 | /* We use char because int might match the return type of a gcc2 |
27421 | builtin and then its argument prototype would still apply. */ | |
d213114b | 27422 | char csinl (); |
27423 | int | |
27424 | main () | |
27425 | { | |
a106dabe | 27426 | csinl (); |
d213114b | 27427 | ; |
27428 | return 0; | |
27429 | } | |
27430 | _ACEOF | |
27431 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 27432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
27433 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 27434 | ac_status=$? |
27435 | grep -v '^ *+' conftest.er1 >conftest.err | |
27436 | rm -f conftest.er1 | |
27437 | cat conftest.err >&5 | |
27438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27439 | (exit $ac_status); } && | |
c0e8efbe | 27440 | { ac_try='test -z "$ac_c_werror_flag" |
27441 | || test ! -s conftest.err' | |
a106dabe | 27442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27443 | (eval $ac_try) 2>&5 | |
d213114b | 27444 | ac_status=$? |
27445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27446 | (exit $ac_status); }; } && | |
27447 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 27448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27449 | (eval $ac_try) 2>&5 | |
d213114b | 27450 | ac_status=$? |
27451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27452 | (exit $ac_status); }; }; then | |
27453 | ac_cv_lib_m_csinl=yes | |
27454 | else | |
27455 | echo "$as_me: failed program was:" >&5 | |
27456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27457 | ||
a106dabe | 27458 | ac_cv_lib_m_csinl=no |
d213114b | 27459 | fi |
a106dabe | 27460 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27461 | conftest$ac_exeext conftest.$ac_ext |
27462 | LIBS=$ac_check_lib_save_LIBS | |
27463 | fi | |
a106dabe | 27464 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinl" >&5 |
27465 | echo "${ECHO_T}$ac_cv_lib_m_csinl" >&6 | |
d213114b | 27466 | if test $ac_cv_lib_m_csinl = yes; then |
27467 | ||
27468 | cat >>confdefs.h <<\_ACEOF | |
27469 | #define HAVE_CSINL 1 | |
27470 | _ACEOF | |
27471 | ||
27472 | fi | |
27473 | ||
a106dabe | 27474 | echo "$as_me:$LINENO: checking for sinhf in -lm" >&5 |
27475 | echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6 | |
d213114b | 27476 | if test "${ac_cv_lib_m_sinhf+set}" = set; then |
27477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27478 | else | |
27479 | ac_check_lib_save_LIBS=$LIBS | |
27480 | LIBS="-lm $LIBS" | |
27481 | if test x$gcc_no_link = xyes; then | |
27482 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27483 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27484 | { (exit 1); exit 1; }; } | |
27485 | fi | |
27486 | cat >conftest.$ac_ext <<_ACEOF | |
27487 | /* confdefs.h. */ | |
27488 | _ACEOF | |
27489 | cat confdefs.h >>conftest.$ac_ext | |
27490 | cat >>conftest.$ac_ext <<_ACEOF | |
27491 | /* end confdefs.h. */ | |
27492 | ||
a106dabe | 27493 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27494 | #ifdef __cplusplus |
27495 | extern "C" | |
27496 | #endif | |
a106dabe | 27497 | /* We use char because int might match the return type of a gcc2 |
27498 | builtin and then its argument prototype would still apply. */ | |
d213114b | 27499 | char sinhf (); |
27500 | int | |
27501 | main () | |
27502 | { | |
a106dabe | 27503 | sinhf (); |
d213114b | 27504 | ; |
27505 | return 0; | |
27506 | } | |
27507 | _ACEOF | |
27508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 27509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
27510 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 27511 | ac_status=$? |
27512 | grep -v '^ *+' conftest.er1 >conftest.err | |
27513 | rm -f conftest.er1 | |
27514 | cat conftest.err >&5 | |
27515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27516 | (exit $ac_status); } && | |
c0e8efbe | 27517 | { ac_try='test -z "$ac_c_werror_flag" |
27518 | || test ! -s conftest.err' | |
a106dabe | 27519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27520 | (eval $ac_try) 2>&5 | |
d213114b | 27521 | ac_status=$? |
27522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27523 | (exit $ac_status); }; } && | |
27524 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 27525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27526 | (eval $ac_try) 2>&5 | |
d213114b | 27527 | ac_status=$? |
27528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27529 | (exit $ac_status); }; }; then | |
27530 | ac_cv_lib_m_sinhf=yes | |
27531 | else | |
27532 | echo "$as_me: failed program was:" >&5 | |
27533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27534 | ||
a106dabe | 27535 | ac_cv_lib_m_sinhf=no |
d213114b | 27536 | fi |
a106dabe | 27537 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27538 | conftest$ac_exeext conftest.$ac_ext |
27539 | LIBS=$ac_check_lib_save_LIBS | |
27540 | fi | |
a106dabe | 27541 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5 |
27542 | echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6 | |
d213114b | 27543 | if test $ac_cv_lib_m_sinhf = yes; then |
27544 | ||
27545 | cat >>confdefs.h <<\_ACEOF | |
27546 | #define HAVE_SINHF 1 | |
27547 | _ACEOF | |
27548 | ||
27549 | fi | |
27550 | ||
a106dabe | 27551 | echo "$as_me:$LINENO: checking for sinh in -lm" >&5 |
27552 | echo $ECHO_N "checking for sinh in -lm... $ECHO_C" >&6 | |
d213114b | 27553 | if test "${ac_cv_lib_m_sinh+set}" = set; then |
27554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27555 | else | |
27556 | ac_check_lib_save_LIBS=$LIBS | |
27557 | LIBS="-lm $LIBS" | |
27558 | if test x$gcc_no_link = xyes; then | |
27559 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27560 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27561 | { (exit 1); exit 1; }; } | |
27562 | fi | |
27563 | cat >conftest.$ac_ext <<_ACEOF | |
27564 | /* confdefs.h. */ | |
27565 | _ACEOF | |
27566 | cat confdefs.h >>conftest.$ac_ext | |
27567 | cat >>conftest.$ac_ext <<_ACEOF | |
27568 | /* end confdefs.h. */ | |
27569 | ||
a106dabe | 27570 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27571 | #ifdef __cplusplus |
27572 | extern "C" | |
27573 | #endif | |
a106dabe | 27574 | /* We use char because int might match the return type of a gcc2 |
27575 | builtin and then its argument prototype would still apply. */ | |
d213114b | 27576 | char sinh (); |
27577 | int | |
27578 | main () | |
27579 | { | |
a106dabe | 27580 | sinh (); |
d213114b | 27581 | ; |
27582 | return 0; | |
27583 | } | |
27584 | _ACEOF | |
27585 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 27586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
27587 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 27588 | ac_status=$? |
27589 | grep -v '^ *+' conftest.er1 >conftest.err | |
27590 | rm -f conftest.er1 | |
27591 | cat conftest.err >&5 | |
27592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27593 | (exit $ac_status); } && | |
c0e8efbe | 27594 | { ac_try='test -z "$ac_c_werror_flag" |
27595 | || test ! -s conftest.err' | |
a106dabe | 27596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27597 | (eval $ac_try) 2>&5 | |
d213114b | 27598 | ac_status=$? |
27599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27600 | (exit $ac_status); }; } && | |
27601 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 27602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27603 | (eval $ac_try) 2>&5 | |
d213114b | 27604 | ac_status=$? |
27605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27606 | (exit $ac_status); }; }; then | |
27607 | ac_cv_lib_m_sinh=yes | |
27608 | else | |
27609 | echo "$as_me: failed program was:" >&5 | |
27610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27611 | ||
a106dabe | 27612 | ac_cv_lib_m_sinh=no |
d213114b | 27613 | fi |
a106dabe | 27614 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27615 | conftest$ac_exeext conftest.$ac_ext |
27616 | LIBS=$ac_check_lib_save_LIBS | |
27617 | fi | |
a106dabe | 27618 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinh" >&5 |
27619 | echo "${ECHO_T}$ac_cv_lib_m_sinh" >&6 | |
d213114b | 27620 | if test $ac_cv_lib_m_sinh = yes; then |
27621 | ||
27622 | cat >>confdefs.h <<\_ACEOF | |
27623 | #define HAVE_SINH 1 | |
27624 | _ACEOF | |
27625 | ||
27626 | fi | |
27627 | ||
a106dabe | 27628 | echo "$as_me:$LINENO: checking for sinhl in -lm" >&5 |
27629 | echo $ECHO_N "checking for sinhl in -lm... $ECHO_C" >&6 | |
d213114b | 27630 | if test "${ac_cv_lib_m_sinhl+set}" = set; then |
27631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27632 | else | |
27633 | ac_check_lib_save_LIBS=$LIBS | |
27634 | LIBS="-lm $LIBS" | |
27635 | if test x$gcc_no_link = xyes; then | |
27636 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27637 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27638 | { (exit 1); exit 1; }; } | |
27639 | fi | |
27640 | cat >conftest.$ac_ext <<_ACEOF | |
27641 | /* confdefs.h. */ | |
27642 | _ACEOF | |
27643 | cat confdefs.h >>conftest.$ac_ext | |
27644 | cat >>conftest.$ac_ext <<_ACEOF | |
27645 | /* end confdefs.h. */ | |
27646 | ||
a106dabe | 27647 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27648 | #ifdef __cplusplus |
27649 | extern "C" | |
27650 | #endif | |
a106dabe | 27651 | /* We use char because int might match the return type of a gcc2 |
27652 | builtin and then its argument prototype would still apply. */ | |
d213114b | 27653 | char sinhl (); |
27654 | int | |
27655 | main () | |
27656 | { | |
a106dabe | 27657 | sinhl (); |
d213114b | 27658 | ; |
27659 | return 0; | |
27660 | } | |
27661 | _ACEOF | |
27662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 27663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
27664 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 27665 | ac_status=$? |
27666 | grep -v '^ *+' conftest.er1 >conftest.err | |
27667 | rm -f conftest.er1 | |
27668 | cat conftest.err >&5 | |
27669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27670 | (exit $ac_status); } && | |
c0e8efbe | 27671 | { ac_try='test -z "$ac_c_werror_flag" |
27672 | || test ! -s conftest.err' | |
a106dabe | 27673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27674 | (eval $ac_try) 2>&5 | |
d213114b | 27675 | ac_status=$? |
27676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27677 | (exit $ac_status); }; } && | |
27678 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 27679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27680 | (eval $ac_try) 2>&5 | |
d213114b | 27681 | ac_status=$? |
27682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27683 | (exit $ac_status); }; }; then | |
27684 | ac_cv_lib_m_sinhl=yes | |
27685 | else | |
27686 | echo "$as_me: failed program was:" >&5 | |
27687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27688 | ||
a106dabe | 27689 | ac_cv_lib_m_sinhl=no |
d213114b | 27690 | fi |
a106dabe | 27691 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27692 | conftest$ac_exeext conftest.$ac_ext |
27693 | LIBS=$ac_check_lib_save_LIBS | |
27694 | fi | |
a106dabe | 27695 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhl" >&5 |
27696 | echo "${ECHO_T}$ac_cv_lib_m_sinhl" >&6 | |
d213114b | 27697 | if test $ac_cv_lib_m_sinhl = yes; then |
27698 | ||
27699 | cat >>confdefs.h <<\_ACEOF | |
27700 | #define HAVE_SINHL 1 | |
27701 | _ACEOF | |
27702 | ||
27703 | fi | |
27704 | ||
a106dabe | 27705 | echo "$as_me:$LINENO: checking for csinhf in -lm" >&5 |
27706 | echo $ECHO_N "checking for csinhf in -lm... $ECHO_C" >&6 | |
d213114b | 27707 | if test "${ac_cv_lib_m_csinhf+set}" = set; then |
27708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27709 | else | |
27710 | ac_check_lib_save_LIBS=$LIBS | |
27711 | LIBS="-lm $LIBS" | |
27712 | if test x$gcc_no_link = xyes; then | |
27713 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27714 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27715 | { (exit 1); exit 1; }; } | |
27716 | fi | |
27717 | cat >conftest.$ac_ext <<_ACEOF | |
27718 | /* confdefs.h. */ | |
27719 | _ACEOF | |
27720 | cat confdefs.h >>conftest.$ac_ext | |
27721 | cat >>conftest.$ac_ext <<_ACEOF | |
27722 | /* end confdefs.h. */ | |
27723 | ||
a106dabe | 27724 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27725 | #ifdef __cplusplus |
27726 | extern "C" | |
27727 | #endif | |
a106dabe | 27728 | /* We use char because int might match the return type of a gcc2 |
27729 | builtin and then its argument prototype would still apply. */ | |
d213114b | 27730 | char csinhf (); |
27731 | int | |
27732 | main () | |
27733 | { | |
a106dabe | 27734 | csinhf (); |
d213114b | 27735 | ; |
27736 | return 0; | |
27737 | } | |
27738 | _ACEOF | |
27739 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 27740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
27741 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 27742 | ac_status=$? |
27743 | grep -v '^ *+' conftest.er1 >conftest.err | |
27744 | rm -f conftest.er1 | |
27745 | cat conftest.err >&5 | |
27746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27747 | (exit $ac_status); } && | |
c0e8efbe | 27748 | { ac_try='test -z "$ac_c_werror_flag" |
27749 | || test ! -s conftest.err' | |
a106dabe | 27750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27751 | (eval $ac_try) 2>&5 | |
d213114b | 27752 | ac_status=$? |
27753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27754 | (exit $ac_status); }; } && | |
27755 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 27756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27757 | (eval $ac_try) 2>&5 | |
d213114b | 27758 | ac_status=$? |
27759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27760 | (exit $ac_status); }; }; then | |
27761 | ac_cv_lib_m_csinhf=yes | |
27762 | else | |
27763 | echo "$as_me: failed program was:" >&5 | |
27764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27765 | ||
a106dabe | 27766 | ac_cv_lib_m_csinhf=no |
d213114b | 27767 | fi |
a106dabe | 27768 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27769 | conftest$ac_exeext conftest.$ac_ext |
27770 | LIBS=$ac_check_lib_save_LIBS | |
27771 | fi | |
a106dabe | 27772 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinhf" >&5 |
27773 | echo "${ECHO_T}$ac_cv_lib_m_csinhf" >&6 | |
d213114b | 27774 | if test $ac_cv_lib_m_csinhf = yes; then |
27775 | ||
27776 | cat >>confdefs.h <<\_ACEOF | |
27777 | #define HAVE_CSINHF 1 | |
27778 | _ACEOF | |
27779 | ||
27780 | fi | |
27781 | ||
a106dabe | 27782 | echo "$as_me:$LINENO: checking for csinh in -lm" >&5 |
27783 | echo $ECHO_N "checking for csinh in -lm... $ECHO_C" >&6 | |
d213114b | 27784 | if test "${ac_cv_lib_m_csinh+set}" = set; then |
27785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27786 | else | |
27787 | ac_check_lib_save_LIBS=$LIBS | |
27788 | LIBS="-lm $LIBS" | |
27789 | if test x$gcc_no_link = xyes; then | |
27790 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27791 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27792 | { (exit 1); exit 1; }; } | |
27793 | fi | |
27794 | cat >conftest.$ac_ext <<_ACEOF | |
27795 | /* confdefs.h. */ | |
27796 | _ACEOF | |
27797 | cat confdefs.h >>conftest.$ac_ext | |
27798 | cat >>conftest.$ac_ext <<_ACEOF | |
27799 | /* end confdefs.h. */ | |
27800 | ||
a106dabe | 27801 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27802 | #ifdef __cplusplus |
27803 | extern "C" | |
27804 | #endif | |
a106dabe | 27805 | /* We use char because int might match the return type of a gcc2 |
27806 | builtin and then its argument prototype would still apply. */ | |
d213114b | 27807 | char csinh (); |
27808 | int | |
27809 | main () | |
27810 | { | |
a106dabe | 27811 | csinh (); |
d213114b | 27812 | ; |
27813 | return 0; | |
27814 | } | |
27815 | _ACEOF | |
27816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 27817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
27818 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 27819 | ac_status=$? |
27820 | grep -v '^ *+' conftest.er1 >conftest.err | |
27821 | rm -f conftest.er1 | |
27822 | cat conftest.err >&5 | |
27823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27824 | (exit $ac_status); } && | |
c0e8efbe | 27825 | { ac_try='test -z "$ac_c_werror_flag" |
27826 | || test ! -s conftest.err' | |
a106dabe | 27827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27828 | (eval $ac_try) 2>&5 | |
d213114b | 27829 | ac_status=$? |
27830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27831 | (exit $ac_status); }; } && | |
27832 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 27833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27834 | (eval $ac_try) 2>&5 | |
d213114b | 27835 | ac_status=$? |
27836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27837 | (exit $ac_status); }; }; then | |
27838 | ac_cv_lib_m_csinh=yes | |
27839 | else | |
27840 | echo "$as_me: failed program was:" >&5 | |
27841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27842 | ||
a106dabe | 27843 | ac_cv_lib_m_csinh=no |
d213114b | 27844 | fi |
a106dabe | 27845 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27846 | conftest$ac_exeext conftest.$ac_ext |
27847 | LIBS=$ac_check_lib_save_LIBS | |
27848 | fi | |
a106dabe | 27849 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinh" >&5 |
27850 | echo "${ECHO_T}$ac_cv_lib_m_csinh" >&6 | |
d213114b | 27851 | if test $ac_cv_lib_m_csinh = yes; then |
27852 | ||
27853 | cat >>confdefs.h <<\_ACEOF | |
27854 | #define HAVE_CSINH 1 | |
27855 | _ACEOF | |
27856 | ||
27857 | fi | |
27858 | ||
a106dabe | 27859 | echo "$as_me:$LINENO: checking for csinhl in -lm" >&5 |
27860 | echo $ECHO_N "checking for csinhl in -lm... $ECHO_C" >&6 | |
d213114b | 27861 | if test "${ac_cv_lib_m_csinhl+set}" = set; then |
27862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27863 | else | |
27864 | ac_check_lib_save_LIBS=$LIBS | |
27865 | LIBS="-lm $LIBS" | |
27866 | if test x$gcc_no_link = xyes; then | |
27867 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27868 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27869 | { (exit 1); exit 1; }; } | |
27870 | fi | |
27871 | cat >conftest.$ac_ext <<_ACEOF | |
27872 | /* confdefs.h. */ | |
27873 | _ACEOF | |
27874 | cat confdefs.h >>conftest.$ac_ext | |
27875 | cat >>conftest.$ac_ext <<_ACEOF | |
27876 | /* end confdefs.h. */ | |
27877 | ||
a106dabe | 27878 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27879 | #ifdef __cplusplus |
27880 | extern "C" | |
27881 | #endif | |
a106dabe | 27882 | /* We use char because int might match the return type of a gcc2 |
27883 | builtin and then its argument prototype would still apply. */ | |
d213114b | 27884 | char csinhl (); |
27885 | int | |
27886 | main () | |
27887 | { | |
a106dabe | 27888 | csinhl (); |
d213114b | 27889 | ; |
27890 | return 0; | |
27891 | } | |
27892 | _ACEOF | |
27893 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 27894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
27895 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 27896 | ac_status=$? |
27897 | grep -v '^ *+' conftest.er1 >conftest.err | |
27898 | rm -f conftest.er1 | |
27899 | cat conftest.err >&5 | |
27900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27901 | (exit $ac_status); } && | |
c0e8efbe | 27902 | { ac_try='test -z "$ac_c_werror_flag" |
27903 | || test ! -s conftest.err' | |
a106dabe | 27904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27905 | (eval $ac_try) 2>&5 | |
d213114b | 27906 | ac_status=$? |
27907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27908 | (exit $ac_status); }; } && | |
27909 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 27910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27911 | (eval $ac_try) 2>&5 | |
d213114b | 27912 | ac_status=$? |
27913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27914 | (exit $ac_status); }; }; then | |
27915 | ac_cv_lib_m_csinhl=yes | |
27916 | else | |
27917 | echo "$as_me: failed program was:" >&5 | |
27918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27919 | ||
a106dabe | 27920 | ac_cv_lib_m_csinhl=no |
d213114b | 27921 | fi |
a106dabe | 27922 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27923 | conftest$ac_exeext conftest.$ac_ext |
27924 | LIBS=$ac_check_lib_save_LIBS | |
27925 | fi | |
a106dabe | 27926 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinhl" >&5 |
27927 | echo "${ECHO_T}$ac_cv_lib_m_csinhl" >&6 | |
d213114b | 27928 | if test $ac_cv_lib_m_csinhl = yes; then |
27929 | ||
27930 | cat >>confdefs.h <<\_ACEOF | |
27931 | #define HAVE_CSINHL 1 | |
27932 | _ACEOF | |
27933 | ||
27934 | fi | |
27935 | ||
a106dabe | 27936 | echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5 |
27937 | echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6 | |
d213114b | 27938 | if test "${ac_cv_lib_m_sqrtf+set}" = set; then |
27939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27940 | else | |
27941 | ac_check_lib_save_LIBS=$LIBS | |
27942 | LIBS="-lm $LIBS" | |
27943 | if test x$gcc_no_link = xyes; then | |
27944 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27945 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27946 | { (exit 1); exit 1; }; } | |
27947 | fi | |
27948 | cat >conftest.$ac_ext <<_ACEOF | |
27949 | /* confdefs.h. */ | |
27950 | _ACEOF | |
27951 | cat confdefs.h >>conftest.$ac_ext | |
27952 | cat >>conftest.$ac_ext <<_ACEOF | |
27953 | /* end confdefs.h. */ | |
27954 | ||
a106dabe | 27955 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27956 | #ifdef __cplusplus |
27957 | extern "C" | |
27958 | #endif | |
a106dabe | 27959 | /* We use char because int might match the return type of a gcc2 |
27960 | builtin and then its argument prototype would still apply. */ | |
d213114b | 27961 | char sqrtf (); |
27962 | int | |
27963 | main () | |
27964 | { | |
a106dabe | 27965 | sqrtf (); |
d213114b | 27966 | ; |
27967 | return 0; | |
27968 | } | |
27969 | _ACEOF | |
27970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 27971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
27972 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 27973 | ac_status=$? |
27974 | grep -v '^ *+' conftest.er1 >conftest.err | |
27975 | rm -f conftest.er1 | |
27976 | cat conftest.err >&5 | |
27977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27978 | (exit $ac_status); } && | |
c0e8efbe | 27979 | { ac_try='test -z "$ac_c_werror_flag" |
27980 | || test ! -s conftest.err' | |
a106dabe | 27981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27982 | (eval $ac_try) 2>&5 | |
d213114b | 27983 | ac_status=$? |
27984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27985 | (exit $ac_status); }; } && | |
27986 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 27987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27988 | (eval $ac_try) 2>&5 | |
d213114b | 27989 | ac_status=$? |
27990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27991 | (exit $ac_status); }; }; then | |
27992 | ac_cv_lib_m_sqrtf=yes | |
27993 | else | |
27994 | echo "$as_me: failed program was:" >&5 | |
27995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27996 | ||
a106dabe | 27997 | ac_cv_lib_m_sqrtf=no |
d213114b | 27998 | fi |
a106dabe | 27999 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28000 | conftest$ac_exeext conftest.$ac_ext |
28001 | LIBS=$ac_check_lib_save_LIBS | |
28002 | fi | |
a106dabe | 28003 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5 |
28004 | echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6 | |
d213114b | 28005 | if test $ac_cv_lib_m_sqrtf = yes; then |
28006 | ||
28007 | cat >>confdefs.h <<\_ACEOF | |
28008 | #define HAVE_SQRTF 1 | |
28009 | _ACEOF | |
28010 | ||
28011 | fi | |
28012 | ||
a106dabe | 28013 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
28014 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 | |
d213114b | 28015 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
28016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28017 | else | |
28018 | ac_check_lib_save_LIBS=$LIBS | |
28019 | LIBS="-lm $LIBS" | |
28020 | if test x$gcc_no_link = xyes; then | |
28021 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28022 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28023 | { (exit 1); exit 1; }; } | |
28024 | fi | |
28025 | cat >conftest.$ac_ext <<_ACEOF | |
28026 | /* confdefs.h. */ | |
28027 | _ACEOF | |
28028 | cat confdefs.h >>conftest.$ac_ext | |
28029 | cat >>conftest.$ac_ext <<_ACEOF | |
28030 | /* end confdefs.h. */ | |
28031 | ||
a106dabe | 28032 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28033 | #ifdef __cplusplus |
28034 | extern "C" | |
28035 | #endif | |
a106dabe | 28036 | /* We use char because int might match the return type of a gcc2 |
28037 | builtin and then its argument prototype would still apply. */ | |
d213114b | 28038 | char sqrt (); |
28039 | int | |
28040 | main () | |
28041 | { | |
a106dabe | 28042 | sqrt (); |
d213114b | 28043 | ; |
28044 | return 0; | |
28045 | } | |
28046 | _ACEOF | |
28047 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 28048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
28049 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 28050 | ac_status=$? |
28051 | grep -v '^ *+' conftest.er1 >conftest.err | |
28052 | rm -f conftest.er1 | |
28053 | cat conftest.err >&5 | |
28054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28055 | (exit $ac_status); } && | |
c0e8efbe | 28056 | { ac_try='test -z "$ac_c_werror_flag" |
28057 | || test ! -s conftest.err' | |
a106dabe | 28058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28059 | (eval $ac_try) 2>&5 | |
d213114b | 28060 | ac_status=$? |
28061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28062 | (exit $ac_status); }; } && | |
28063 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 28064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28065 | (eval $ac_try) 2>&5 | |
d213114b | 28066 | ac_status=$? |
28067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28068 | (exit $ac_status); }; }; then | |
28069 | ac_cv_lib_m_sqrt=yes | |
28070 | else | |
28071 | echo "$as_me: failed program was:" >&5 | |
28072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28073 | ||
a106dabe | 28074 | ac_cv_lib_m_sqrt=no |
d213114b | 28075 | fi |
a106dabe | 28076 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28077 | conftest$ac_exeext conftest.$ac_ext |
28078 | LIBS=$ac_check_lib_save_LIBS | |
28079 | fi | |
a106dabe | 28080 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
28081 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 | |
d213114b | 28082 | if test $ac_cv_lib_m_sqrt = yes; then |
28083 | ||
28084 | cat >>confdefs.h <<\_ACEOF | |
28085 | #define HAVE_SQRT 1 | |
28086 | _ACEOF | |
28087 | ||
28088 | fi | |
28089 | ||
a106dabe | 28090 | echo "$as_me:$LINENO: checking for sqrtl in -lm" >&5 |
28091 | echo $ECHO_N "checking for sqrtl in -lm... $ECHO_C" >&6 | |
d213114b | 28092 | if test "${ac_cv_lib_m_sqrtl+set}" = set; then |
28093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28094 | else | |
28095 | ac_check_lib_save_LIBS=$LIBS | |
28096 | LIBS="-lm $LIBS" | |
28097 | if test x$gcc_no_link = xyes; then | |
28098 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28099 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28100 | { (exit 1); exit 1; }; } | |
28101 | fi | |
28102 | cat >conftest.$ac_ext <<_ACEOF | |
28103 | /* confdefs.h. */ | |
28104 | _ACEOF | |
28105 | cat confdefs.h >>conftest.$ac_ext | |
28106 | cat >>conftest.$ac_ext <<_ACEOF | |
28107 | /* end confdefs.h. */ | |
28108 | ||
a106dabe | 28109 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28110 | #ifdef __cplusplus |
28111 | extern "C" | |
28112 | #endif | |
a106dabe | 28113 | /* We use char because int might match the return type of a gcc2 |
28114 | builtin and then its argument prototype would still apply. */ | |
d213114b | 28115 | char sqrtl (); |
28116 | int | |
28117 | main () | |
28118 | { | |
a106dabe | 28119 | sqrtl (); |
d213114b | 28120 | ; |
28121 | return 0; | |
28122 | } | |
28123 | _ACEOF | |
28124 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 28125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
28126 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 28127 | ac_status=$? |
28128 | grep -v '^ *+' conftest.er1 >conftest.err | |
28129 | rm -f conftest.er1 | |
28130 | cat conftest.err >&5 | |
28131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28132 | (exit $ac_status); } && | |
c0e8efbe | 28133 | { ac_try='test -z "$ac_c_werror_flag" |
28134 | || test ! -s conftest.err' | |
a106dabe | 28135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28136 | (eval $ac_try) 2>&5 | |
d213114b | 28137 | ac_status=$? |
28138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28139 | (exit $ac_status); }; } && | |
28140 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 28141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28142 | (eval $ac_try) 2>&5 | |
d213114b | 28143 | ac_status=$? |
28144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28145 | (exit $ac_status); }; }; then | |
28146 | ac_cv_lib_m_sqrtl=yes | |
28147 | else | |
28148 | echo "$as_me: failed program was:" >&5 | |
28149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28150 | ||
a106dabe | 28151 | ac_cv_lib_m_sqrtl=no |
d213114b | 28152 | fi |
a106dabe | 28153 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28154 | conftest$ac_exeext conftest.$ac_ext |
28155 | LIBS=$ac_check_lib_save_LIBS | |
28156 | fi | |
a106dabe | 28157 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtl" >&5 |
28158 | echo "${ECHO_T}$ac_cv_lib_m_sqrtl" >&6 | |
d213114b | 28159 | if test $ac_cv_lib_m_sqrtl = yes; then |
28160 | ||
28161 | cat >>confdefs.h <<\_ACEOF | |
28162 | #define HAVE_SQRTL 1 | |
28163 | _ACEOF | |
28164 | ||
28165 | fi | |
28166 | ||
a106dabe | 28167 | echo "$as_me:$LINENO: checking for csqrtf in -lm" >&5 |
28168 | echo $ECHO_N "checking for csqrtf in -lm... $ECHO_C" >&6 | |
d213114b | 28169 | if test "${ac_cv_lib_m_csqrtf+set}" = set; then |
28170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28171 | else | |
28172 | ac_check_lib_save_LIBS=$LIBS | |
28173 | LIBS="-lm $LIBS" | |
28174 | if test x$gcc_no_link = xyes; then | |
28175 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28176 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28177 | { (exit 1); exit 1; }; } | |
28178 | fi | |
28179 | cat >conftest.$ac_ext <<_ACEOF | |
28180 | /* confdefs.h. */ | |
28181 | _ACEOF | |
28182 | cat confdefs.h >>conftest.$ac_ext | |
28183 | cat >>conftest.$ac_ext <<_ACEOF | |
28184 | /* end confdefs.h. */ | |
28185 | ||
a106dabe | 28186 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28187 | #ifdef __cplusplus |
28188 | extern "C" | |
28189 | #endif | |
a106dabe | 28190 | /* We use char because int might match the return type of a gcc2 |
28191 | builtin and then its argument prototype would still apply. */ | |
d213114b | 28192 | char csqrtf (); |
28193 | int | |
28194 | main () | |
28195 | { | |
a106dabe | 28196 | csqrtf (); |
d213114b | 28197 | ; |
28198 | return 0; | |
28199 | } | |
28200 | _ACEOF | |
28201 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 28202 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
28203 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 28204 | ac_status=$? |
28205 | grep -v '^ *+' conftest.er1 >conftest.err | |
28206 | rm -f conftest.er1 | |
28207 | cat conftest.err >&5 | |
28208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28209 | (exit $ac_status); } && | |
c0e8efbe | 28210 | { ac_try='test -z "$ac_c_werror_flag" |
28211 | || test ! -s conftest.err' | |
a106dabe | 28212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28213 | (eval $ac_try) 2>&5 | |
d213114b | 28214 | ac_status=$? |
28215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28216 | (exit $ac_status); }; } && | |
28217 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 28218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28219 | (eval $ac_try) 2>&5 | |
d213114b | 28220 | ac_status=$? |
28221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28222 | (exit $ac_status); }; }; then | |
28223 | ac_cv_lib_m_csqrtf=yes | |
28224 | else | |
28225 | echo "$as_me: failed program was:" >&5 | |
28226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28227 | ||
a106dabe | 28228 | ac_cv_lib_m_csqrtf=no |
d213114b | 28229 | fi |
a106dabe | 28230 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28231 | conftest$ac_exeext conftest.$ac_ext |
28232 | LIBS=$ac_check_lib_save_LIBS | |
28233 | fi | |
a106dabe | 28234 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrtf" >&5 |
28235 | echo "${ECHO_T}$ac_cv_lib_m_csqrtf" >&6 | |
d213114b | 28236 | if test $ac_cv_lib_m_csqrtf = yes; then |
28237 | ||
28238 | cat >>confdefs.h <<\_ACEOF | |
28239 | #define HAVE_CSQRTF 1 | |
28240 | _ACEOF | |
28241 | ||
28242 | fi | |
28243 | ||
a106dabe | 28244 | echo "$as_me:$LINENO: checking for csqrt in -lm" >&5 |
28245 | echo $ECHO_N "checking for csqrt in -lm... $ECHO_C" >&6 | |
d213114b | 28246 | if test "${ac_cv_lib_m_csqrt+set}" = set; then |
28247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28248 | else | |
28249 | ac_check_lib_save_LIBS=$LIBS | |
28250 | LIBS="-lm $LIBS" | |
28251 | if test x$gcc_no_link = xyes; then | |
28252 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28253 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28254 | { (exit 1); exit 1; }; } | |
28255 | fi | |
28256 | cat >conftest.$ac_ext <<_ACEOF | |
28257 | /* confdefs.h. */ | |
28258 | _ACEOF | |
28259 | cat confdefs.h >>conftest.$ac_ext | |
28260 | cat >>conftest.$ac_ext <<_ACEOF | |
28261 | /* end confdefs.h. */ | |
28262 | ||
a106dabe | 28263 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28264 | #ifdef __cplusplus |
28265 | extern "C" | |
28266 | #endif | |
a106dabe | 28267 | /* We use char because int might match the return type of a gcc2 |
28268 | builtin and then its argument prototype would still apply. */ | |
d213114b | 28269 | char csqrt (); |
28270 | int | |
28271 | main () | |
28272 | { | |
a106dabe | 28273 | csqrt (); |
d213114b | 28274 | ; |
28275 | return 0; | |
28276 | } | |
28277 | _ACEOF | |
28278 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 28279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
28280 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 28281 | ac_status=$? |
28282 | grep -v '^ *+' conftest.er1 >conftest.err | |
28283 | rm -f conftest.er1 | |
28284 | cat conftest.err >&5 | |
28285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28286 | (exit $ac_status); } && | |
c0e8efbe | 28287 | { ac_try='test -z "$ac_c_werror_flag" |
28288 | || test ! -s conftest.err' | |
a106dabe | 28289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28290 | (eval $ac_try) 2>&5 | |
d213114b | 28291 | ac_status=$? |
28292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28293 | (exit $ac_status); }; } && | |
28294 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 28295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28296 | (eval $ac_try) 2>&5 | |
d213114b | 28297 | ac_status=$? |
28298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28299 | (exit $ac_status); }; }; then | |
28300 | ac_cv_lib_m_csqrt=yes | |
28301 | else | |
28302 | echo "$as_me: failed program was:" >&5 | |
28303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28304 | ||
a106dabe | 28305 | ac_cv_lib_m_csqrt=no |
d213114b | 28306 | fi |
a106dabe | 28307 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28308 | conftest$ac_exeext conftest.$ac_ext |
28309 | LIBS=$ac_check_lib_save_LIBS | |
28310 | fi | |
a106dabe | 28311 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrt" >&5 |
28312 | echo "${ECHO_T}$ac_cv_lib_m_csqrt" >&6 | |
d213114b | 28313 | if test $ac_cv_lib_m_csqrt = yes; then |
28314 | ||
28315 | cat >>confdefs.h <<\_ACEOF | |
28316 | #define HAVE_CSQRT 1 | |
28317 | _ACEOF | |
28318 | ||
28319 | fi | |
28320 | ||
a106dabe | 28321 | echo "$as_me:$LINENO: checking for csqrtl in -lm" >&5 |
28322 | echo $ECHO_N "checking for csqrtl in -lm... $ECHO_C" >&6 | |
d213114b | 28323 | if test "${ac_cv_lib_m_csqrtl+set}" = set; then |
28324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28325 | else | |
28326 | ac_check_lib_save_LIBS=$LIBS | |
28327 | LIBS="-lm $LIBS" | |
28328 | if test x$gcc_no_link = xyes; then | |
28329 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28330 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28331 | { (exit 1); exit 1; }; } | |
28332 | fi | |
28333 | cat >conftest.$ac_ext <<_ACEOF | |
28334 | /* confdefs.h. */ | |
28335 | _ACEOF | |
28336 | cat confdefs.h >>conftest.$ac_ext | |
28337 | cat >>conftest.$ac_ext <<_ACEOF | |
28338 | /* end confdefs.h. */ | |
28339 | ||
a106dabe | 28340 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28341 | #ifdef __cplusplus |
28342 | extern "C" | |
28343 | #endif | |
a106dabe | 28344 | /* We use char because int might match the return type of a gcc2 |
28345 | builtin and then its argument prototype would still apply. */ | |
d213114b | 28346 | char csqrtl (); |
28347 | int | |
28348 | main () | |
28349 | { | |
a106dabe | 28350 | csqrtl (); |
d213114b | 28351 | ; |
28352 | return 0; | |
28353 | } | |
28354 | _ACEOF | |
28355 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 28356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
28357 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 28358 | ac_status=$? |
28359 | grep -v '^ *+' conftest.er1 >conftest.err | |
28360 | rm -f conftest.er1 | |
28361 | cat conftest.err >&5 | |
28362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28363 | (exit $ac_status); } && | |
c0e8efbe | 28364 | { ac_try='test -z "$ac_c_werror_flag" |
28365 | || test ! -s conftest.err' | |
a106dabe | 28366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28367 | (eval $ac_try) 2>&5 | |
d213114b | 28368 | ac_status=$? |
28369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28370 | (exit $ac_status); }; } && | |
28371 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 28372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28373 | (eval $ac_try) 2>&5 | |
d213114b | 28374 | ac_status=$? |
28375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28376 | (exit $ac_status); }; }; then | |
28377 | ac_cv_lib_m_csqrtl=yes | |
28378 | else | |
28379 | echo "$as_me: failed program was:" >&5 | |
28380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28381 | ||
a106dabe | 28382 | ac_cv_lib_m_csqrtl=no |
d213114b | 28383 | fi |
a106dabe | 28384 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28385 | conftest$ac_exeext conftest.$ac_ext |
28386 | LIBS=$ac_check_lib_save_LIBS | |
28387 | fi | |
a106dabe | 28388 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrtl" >&5 |
28389 | echo "${ECHO_T}$ac_cv_lib_m_csqrtl" >&6 | |
d213114b | 28390 | if test $ac_cv_lib_m_csqrtl = yes; then |
28391 | ||
28392 | cat >>confdefs.h <<\_ACEOF | |
28393 | #define HAVE_CSQRTL 1 | |
28394 | _ACEOF | |
28395 | ||
28396 | fi | |
28397 | ||
a106dabe | 28398 | echo "$as_me:$LINENO: checking for tanf in -lm" >&5 |
28399 | echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6 | |
d213114b | 28400 | if test "${ac_cv_lib_m_tanf+set}" = set; then |
28401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28402 | else | |
28403 | ac_check_lib_save_LIBS=$LIBS | |
28404 | LIBS="-lm $LIBS" | |
28405 | if test x$gcc_no_link = xyes; then | |
28406 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28407 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28408 | { (exit 1); exit 1; }; } | |
28409 | fi | |
28410 | cat >conftest.$ac_ext <<_ACEOF | |
28411 | /* confdefs.h. */ | |
28412 | _ACEOF | |
28413 | cat confdefs.h >>conftest.$ac_ext | |
28414 | cat >>conftest.$ac_ext <<_ACEOF | |
28415 | /* end confdefs.h. */ | |
28416 | ||
a106dabe | 28417 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28418 | #ifdef __cplusplus |
28419 | extern "C" | |
28420 | #endif | |
a106dabe | 28421 | /* We use char because int might match the return type of a gcc2 |
28422 | builtin and then its argument prototype would still apply. */ | |
d213114b | 28423 | char tanf (); |
28424 | int | |
28425 | main () | |
28426 | { | |
a106dabe | 28427 | tanf (); |
d213114b | 28428 | ; |
28429 | return 0; | |
28430 | } | |
28431 | _ACEOF | |
28432 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 28433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
28434 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 28435 | ac_status=$? |
28436 | grep -v '^ *+' conftest.er1 >conftest.err | |
28437 | rm -f conftest.er1 | |
28438 | cat conftest.err >&5 | |
28439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28440 | (exit $ac_status); } && | |
c0e8efbe | 28441 | { ac_try='test -z "$ac_c_werror_flag" |
28442 | || test ! -s conftest.err' | |
a106dabe | 28443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28444 | (eval $ac_try) 2>&5 | |
d213114b | 28445 | ac_status=$? |
28446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28447 | (exit $ac_status); }; } && | |
28448 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 28449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28450 | (eval $ac_try) 2>&5 | |
d213114b | 28451 | ac_status=$? |
28452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28453 | (exit $ac_status); }; }; then | |
28454 | ac_cv_lib_m_tanf=yes | |
28455 | else | |
28456 | echo "$as_me: failed program was:" >&5 | |
28457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28458 | ||
a106dabe | 28459 | ac_cv_lib_m_tanf=no |
d213114b | 28460 | fi |
a106dabe | 28461 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28462 | conftest$ac_exeext conftest.$ac_ext |
28463 | LIBS=$ac_check_lib_save_LIBS | |
28464 | fi | |
a106dabe | 28465 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5 |
28466 | echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6 | |
d213114b | 28467 | if test $ac_cv_lib_m_tanf = yes; then |
28468 | ||
28469 | cat >>confdefs.h <<\_ACEOF | |
28470 | #define HAVE_TANF 1 | |
28471 | _ACEOF | |
28472 | ||
28473 | fi | |
28474 | ||
a106dabe | 28475 | echo "$as_me:$LINENO: checking for tan in -lm" >&5 |
28476 | echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6 | |
d213114b | 28477 | if test "${ac_cv_lib_m_tan+set}" = set; then |
28478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28479 | else | |
28480 | ac_check_lib_save_LIBS=$LIBS | |
28481 | LIBS="-lm $LIBS" | |
28482 | if test x$gcc_no_link = xyes; then | |
28483 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28484 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28485 | { (exit 1); exit 1; }; } | |
28486 | fi | |
28487 | cat >conftest.$ac_ext <<_ACEOF | |
28488 | /* confdefs.h. */ | |
28489 | _ACEOF | |
28490 | cat confdefs.h >>conftest.$ac_ext | |
28491 | cat >>conftest.$ac_ext <<_ACEOF | |
28492 | /* end confdefs.h. */ | |
28493 | ||
a106dabe | 28494 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28495 | #ifdef __cplusplus |
28496 | extern "C" | |
28497 | #endif | |
a106dabe | 28498 | /* We use char because int might match the return type of a gcc2 |
28499 | builtin and then its argument prototype would still apply. */ | |
d213114b | 28500 | char tan (); |
28501 | int | |
28502 | main () | |
28503 | { | |
a106dabe | 28504 | tan (); |
d213114b | 28505 | ; |
28506 | return 0; | |
28507 | } | |
28508 | _ACEOF | |
28509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 28510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
28511 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 28512 | ac_status=$? |
28513 | grep -v '^ *+' conftest.er1 >conftest.err | |
28514 | rm -f conftest.er1 | |
28515 | cat conftest.err >&5 | |
28516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28517 | (exit $ac_status); } && | |
c0e8efbe | 28518 | { ac_try='test -z "$ac_c_werror_flag" |
28519 | || test ! -s conftest.err' | |
a106dabe | 28520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28521 | (eval $ac_try) 2>&5 | |
d213114b | 28522 | ac_status=$? |
28523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28524 | (exit $ac_status); }; } && | |
28525 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 28526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28527 | (eval $ac_try) 2>&5 | |
d213114b | 28528 | ac_status=$? |
28529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28530 | (exit $ac_status); }; }; then | |
28531 | ac_cv_lib_m_tan=yes | |
28532 | else | |
28533 | echo "$as_me: failed program was:" >&5 | |
28534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28535 | ||
a106dabe | 28536 | ac_cv_lib_m_tan=no |
d213114b | 28537 | fi |
a106dabe | 28538 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28539 | conftest$ac_exeext conftest.$ac_ext |
28540 | LIBS=$ac_check_lib_save_LIBS | |
28541 | fi | |
a106dabe | 28542 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5 |
28543 | echo "${ECHO_T}$ac_cv_lib_m_tan" >&6 | |
d213114b | 28544 | if test $ac_cv_lib_m_tan = yes; then |
28545 | ||
28546 | cat >>confdefs.h <<\_ACEOF | |
28547 | #define HAVE_TAN 1 | |
28548 | _ACEOF | |
28549 | ||
28550 | fi | |
28551 | ||
a106dabe | 28552 | echo "$as_me:$LINENO: checking for tanl in -lm" >&5 |
28553 | echo $ECHO_N "checking for tanl in -lm... $ECHO_C" >&6 | |
d213114b | 28554 | if test "${ac_cv_lib_m_tanl+set}" = set; then |
28555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28556 | else | |
28557 | ac_check_lib_save_LIBS=$LIBS | |
28558 | LIBS="-lm $LIBS" | |
28559 | if test x$gcc_no_link = xyes; then | |
28560 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28561 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28562 | { (exit 1); exit 1; }; } | |
28563 | fi | |
28564 | cat >conftest.$ac_ext <<_ACEOF | |
28565 | /* confdefs.h. */ | |
28566 | _ACEOF | |
28567 | cat confdefs.h >>conftest.$ac_ext | |
28568 | cat >>conftest.$ac_ext <<_ACEOF | |
28569 | /* end confdefs.h. */ | |
28570 | ||
a106dabe | 28571 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28572 | #ifdef __cplusplus |
28573 | extern "C" | |
28574 | #endif | |
a106dabe | 28575 | /* We use char because int might match the return type of a gcc2 |
28576 | builtin and then its argument prototype would still apply. */ | |
d213114b | 28577 | char tanl (); |
28578 | int | |
28579 | main () | |
28580 | { | |
a106dabe | 28581 | tanl (); |
d213114b | 28582 | ; |
28583 | return 0; | |
28584 | } | |
28585 | _ACEOF | |
28586 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 28587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
28588 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 28589 | ac_status=$? |
28590 | grep -v '^ *+' conftest.er1 >conftest.err | |
28591 | rm -f conftest.er1 | |
28592 | cat conftest.err >&5 | |
28593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28594 | (exit $ac_status); } && | |
c0e8efbe | 28595 | { ac_try='test -z "$ac_c_werror_flag" |
28596 | || test ! -s conftest.err' | |
a106dabe | 28597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28598 | (eval $ac_try) 2>&5 | |
d213114b | 28599 | ac_status=$? |
28600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28601 | (exit $ac_status); }; } && | |
28602 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 28603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28604 | (eval $ac_try) 2>&5 | |
d213114b | 28605 | ac_status=$? |
28606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28607 | (exit $ac_status); }; }; then | |
28608 | ac_cv_lib_m_tanl=yes | |
28609 | else | |
28610 | echo "$as_me: failed program was:" >&5 | |
28611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28612 | ||
a106dabe | 28613 | ac_cv_lib_m_tanl=no |
d213114b | 28614 | fi |
a106dabe | 28615 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28616 | conftest$ac_exeext conftest.$ac_ext |
28617 | LIBS=$ac_check_lib_save_LIBS | |
28618 | fi | |
a106dabe | 28619 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanl" >&5 |
28620 | echo "${ECHO_T}$ac_cv_lib_m_tanl" >&6 | |
d213114b | 28621 | if test $ac_cv_lib_m_tanl = yes; then |
28622 | ||
28623 | cat >>confdefs.h <<\_ACEOF | |
28624 | #define HAVE_TANL 1 | |
28625 | _ACEOF | |
28626 | ||
28627 | fi | |
28628 | ||
a106dabe | 28629 | echo "$as_me:$LINENO: checking for ctanf in -lm" >&5 |
28630 | echo $ECHO_N "checking for ctanf in -lm... $ECHO_C" >&6 | |
d213114b | 28631 | if test "${ac_cv_lib_m_ctanf+set}" = set; then |
28632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28633 | else | |
28634 | ac_check_lib_save_LIBS=$LIBS | |
28635 | LIBS="-lm $LIBS" | |
28636 | if test x$gcc_no_link = xyes; then | |
28637 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28638 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28639 | { (exit 1); exit 1; }; } | |
28640 | fi | |
28641 | cat >conftest.$ac_ext <<_ACEOF | |
28642 | /* confdefs.h. */ | |
28643 | _ACEOF | |
28644 | cat confdefs.h >>conftest.$ac_ext | |
28645 | cat >>conftest.$ac_ext <<_ACEOF | |
28646 | /* end confdefs.h. */ | |
28647 | ||
a106dabe | 28648 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28649 | #ifdef __cplusplus |
28650 | extern "C" | |
28651 | #endif | |
a106dabe | 28652 | /* We use char because int might match the return type of a gcc2 |
28653 | builtin and then its argument prototype would still apply. */ | |
d213114b | 28654 | char ctanf (); |
28655 | int | |
28656 | main () | |
28657 | { | |
a106dabe | 28658 | ctanf (); |
d213114b | 28659 | ; |
28660 | return 0; | |
28661 | } | |
28662 | _ACEOF | |
28663 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 28664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
28665 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 28666 | ac_status=$? |
28667 | grep -v '^ *+' conftest.er1 >conftest.err | |
28668 | rm -f conftest.er1 | |
28669 | cat conftest.err >&5 | |
28670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28671 | (exit $ac_status); } && | |
c0e8efbe | 28672 | { ac_try='test -z "$ac_c_werror_flag" |
28673 | || test ! -s conftest.err' | |
a106dabe | 28674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28675 | (eval $ac_try) 2>&5 | |
d213114b | 28676 | ac_status=$? |
28677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28678 | (exit $ac_status); }; } && | |
28679 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 28680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28681 | (eval $ac_try) 2>&5 | |
d213114b | 28682 | ac_status=$? |
28683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28684 | (exit $ac_status); }; }; then | |
28685 | ac_cv_lib_m_ctanf=yes | |
28686 | else | |
28687 | echo "$as_me: failed program was:" >&5 | |
28688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28689 | ||
a106dabe | 28690 | ac_cv_lib_m_ctanf=no |
d213114b | 28691 | fi |
a106dabe | 28692 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28693 | conftest$ac_exeext conftest.$ac_ext |
28694 | LIBS=$ac_check_lib_save_LIBS | |
28695 | fi | |
a106dabe | 28696 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanf" >&5 |
28697 | echo "${ECHO_T}$ac_cv_lib_m_ctanf" >&6 | |
d213114b | 28698 | if test $ac_cv_lib_m_ctanf = yes; then |
28699 | ||
28700 | cat >>confdefs.h <<\_ACEOF | |
28701 | #define HAVE_CTANF 1 | |
28702 | _ACEOF | |
28703 | ||
28704 | fi | |
28705 | ||
a106dabe | 28706 | echo "$as_me:$LINENO: checking for ctan in -lm" >&5 |
28707 | echo $ECHO_N "checking for ctan in -lm... $ECHO_C" >&6 | |
d213114b | 28708 | if test "${ac_cv_lib_m_ctan+set}" = set; then |
28709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28710 | else | |
28711 | ac_check_lib_save_LIBS=$LIBS | |
28712 | LIBS="-lm $LIBS" | |
28713 | if test x$gcc_no_link = xyes; then | |
28714 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28715 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28716 | { (exit 1); exit 1; }; } | |
28717 | fi | |
28718 | cat >conftest.$ac_ext <<_ACEOF | |
28719 | /* confdefs.h. */ | |
28720 | _ACEOF | |
28721 | cat confdefs.h >>conftest.$ac_ext | |
28722 | cat >>conftest.$ac_ext <<_ACEOF | |
28723 | /* end confdefs.h. */ | |
28724 | ||
a106dabe | 28725 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28726 | #ifdef __cplusplus |
28727 | extern "C" | |
28728 | #endif | |
a106dabe | 28729 | /* We use char because int might match the return type of a gcc2 |
28730 | builtin and then its argument prototype would still apply. */ | |
d213114b | 28731 | char ctan (); |
28732 | int | |
28733 | main () | |
28734 | { | |
a106dabe | 28735 | ctan (); |
d213114b | 28736 | ; |
28737 | return 0; | |
28738 | } | |
28739 | _ACEOF | |
28740 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 28741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
28742 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 28743 | ac_status=$? |
28744 | grep -v '^ *+' conftest.er1 >conftest.err | |
28745 | rm -f conftest.er1 | |
28746 | cat conftest.err >&5 | |
28747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28748 | (exit $ac_status); } && | |
c0e8efbe | 28749 | { ac_try='test -z "$ac_c_werror_flag" |
28750 | || test ! -s conftest.err' | |
a106dabe | 28751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28752 | (eval $ac_try) 2>&5 | |
d213114b | 28753 | ac_status=$? |
28754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28755 | (exit $ac_status); }; } && | |
28756 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 28757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28758 | (eval $ac_try) 2>&5 | |
d213114b | 28759 | ac_status=$? |
28760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28761 | (exit $ac_status); }; }; then | |
28762 | ac_cv_lib_m_ctan=yes | |
28763 | else | |
28764 | echo "$as_me: failed program was:" >&5 | |
28765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28766 | ||
a106dabe | 28767 | ac_cv_lib_m_ctan=no |
d213114b | 28768 | fi |
a106dabe | 28769 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28770 | conftest$ac_exeext conftest.$ac_ext |
28771 | LIBS=$ac_check_lib_save_LIBS | |
28772 | fi | |
a106dabe | 28773 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctan" >&5 |
28774 | echo "${ECHO_T}$ac_cv_lib_m_ctan" >&6 | |
d213114b | 28775 | if test $ac_cv_lib_m_ctan = yes; then |
28776 | ||
28777 | cat >>confdefs.h <<\_ACEOF | |
28778 | #define HAVE_CTAN 1 | |
28779 | _ACEOF | |
28780 | ||
28781 | fi | |
28782 | ||
a106dabe | 28783 | echo "$as_me:$LINENO: checking for ctanl in -lm" >&5 |
28784 | echo $ECHO_N "checking for ctanl in -lm... $ECHO_C" >&6 | |
d213114b | 28785 | if test "${ac_cv_lib_m_ctanl+set}" = set; then |
28786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28787 | else | |
28788 | ac_check_lib_save_LIBS=$LIBS | |
28789 | LIBS="-lm $LIBS" | |
28790 | if test x$gcc_no_link = xyes; then | |
28791 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28792 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28793 | { (exit 1); exit 1; }; } | |
28794 | fi | |
28795 | cat >conftest.$ac_ext <<_ACEOF | |
28796 | /* confdefs.h. */ | |
28797 | _ACEOF | |
28798 | cat confdefs.h >>conftest.$ac_ext | |
28799 | cat >>conftest.$ac_ext <<_ACEOF | |
28800 | /* end confdefs.h. */ | |
28801 | ||
a106dabe | 28802 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28803 | #ifdef __cplusplus |
28804 | extern "C" | |
28805 | #endif | |
a106dabe | 28806 | /* We use char because int might match the return type of a gcc2 |
28807 | builtin and then its argument prototype would still apply. */ | |
d213114b | 28808 | char ctanl (); |
28809 | int | |
28810 | main () | |
28811 | { | |
a106dabe | 28812 | ctanl (); |
d213114b | 28813 | ; |
28814 | return 0; | |
28815 | } | |
28816 | _ACEOF | |
28817 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 28818 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
28819 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 28820 | ac_status=$? |
28821 | grep -v '^ *+' conftest.er1 >conftest.err | |
28822 | rm -f conftest.er1 | |
28823 | cat conftest.err >&5 | |
28824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28825 | (exit $ac_status); } && | |
c0e8efbe | 28826 | { ac_try='test -z "$ac_c_werror_flag" |
28827 | || test ! -s conftest.err' | |
a106dabe | 28828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28829 | (eval $ac_try) 2>&5 | |
d213114b | 28830 | ac_status=$? |
28831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28832 | (exit $ac_status); }; } && | |
28833 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 28834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28835 | (eval $ac_try) 2>&5 | |
d213114b | 28836 | ac_status=$? |
28837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28838 | (exit $ac_status); }; }; then | |
28839 | ac_cv_lib_m_ctanl=yes | |
28840 | else | |
28841 | echo "$as_me: failed program was:" >&5 | |
28842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28843 | ||
a106dabe | 28844 | ac_cv_lib_m_ctanl=no |
d213114b | 28845 | fi |
a106dabe | 28846 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28847 | conftest$ac_exeext conftest.$ac_ext |
28848 | LIBS=$ac_check_lib_save_LIBS | |
28849 | fi | |
a106dabe | 28850 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanl" >&5 |
28851 | echo "${ECHO_T}$ac_cv_lib_m_ctanl" >&6 | |
d213114b | 28852 | if test $ac_cv_lib_m_ctanl = yes; then |
28853 | ||
28854 | cat >>confdefs.h <<\_ACEOF | |
28855 | #define HAVE_CTANL 1 | |
28856 | _ACEOF | |
28857 | ||
28858 | fi | |
28859 | ||
a106dabe | 28860 | echo "$as_me:$LINENO: checking for tanhf in -lm" >&5 |
28861 | echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6 | |
d213114b | 28862 | if test "${ac_cv_lib_m_tanhf+set}" = set; then |
28863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28864 | else | |
28865 | ac_check_lib_save_LIBS=$LIBS | |
28866 | LIBS="-lm $LIBS" | |
28867 | if test x$gcc_no_link = xyes; then | |
28868 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28869 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28870 | { (exit 1); exit 1; }; } | |
28871 | fi | |
28872 | cat >conftest.$ac_ext <<_ACEOF | |
28873 | /* confdefs.h. */ | |
28874 | _ACEOF | |
28875 | cat confdefs.h >>conftest.$ac_ext | |
28876 | cat >>conftest.$ac_ext <<_ACEOF | |
28877 | /* end confdefs.h. */ | |
28878 | ||
a106dabe | 28879 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28880 | #ifdef __cplusplus |
28881 | extern "C" | |
28882 | #endif | |
a106dabe | 28883 | /* We use char because int might match the return type of a gcc2 |
28884 | builtin and then its argument prototype would still apply. */ | |
d213114b | 28885 | char tanhf (); |
28886 | int | |
28887 | main () | |
28888 | { | |
a106dabe | 28889 | tanhf (); |
d213114b | 28890 | ; |
28891 | return 0; | |
28892 | } | |
28893 | _ACEOF | |
28894 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 28895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
28896 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 28897 | ac_status=$? |
28898 | grep -v '^ *+' conftest.er1 >conftest.err | |
28899 | rm -f conftest.er1 | |
28900 | cat conftest.err >&5 | |
28901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28902 | (exit $ac_status); } && | |
c0e8efbe | 28903 | { ac_try='test -z "$ac_c_werror_flag" |
28904 | || test ! -s conftest.err' | |
a106dabe | 28905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28906 | (eval $ac_try) 2>&5 | |
d213114b | 28907 | ac_status=$? |
28908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28909 | (exit $ac_status); }; } && | |
28910 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 28911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28912 | (eval $ac_try) 2>&5 | |
d213114b | 28913 | ac_status=$? |
28914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28915 | (exit $ac_status); }; }; then | |
28916 | ac_cv_lib_m_tanhf=yes | |
28917 | else | |
28918 | echo "$as_me: failed program was:" >&5 | |
28919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28920 | ||
a106dabe | 28921 | ac_cv_lib_m_tanhf=no |
d213114b | 28922 | fi |
a106dabe | 28923 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28924 | conftest$ac_exeext conftest.$ac_ext |
28925 | LIBS=$ac_check_lib_save_LIBS | |
28926 | fi | |
a106dabe | 28927 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5 |
28928 | echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6 | |
d213114b | 28929 | if test $ac_cv_lib_m_tanhf = yes; then |
28930 | ||
28931 | cat >>confdefs.h <<\_ACEOF | |
28932 | #define HAVE_TANHF 1 | |
28933 | _ACEOF | |
28934 | ||
28935 | fi | |
28936 | ||
a106dabe | 28937 | echo "$as_me:$LINENO: checking for tanh in -lm" >&5 |
28938 | echo $ECHO_N "checking for tanh in -lm... $ECHO_C" >&6 | |
d213114b | 28939 | if test "${ac_cv_lib_m_tanh+set}" = set; then |
28940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28941 | else | |
28942 | ac_check_lib_save_LIBS=$LIBS | |
28943 | LIBS="-lm $LIBS" | |
28944 | if test x$gcc_no_link = xyes; then | |
28945 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28946 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28947 | { (exit 1); exit 1; }; } | |
28948 | fi | |
28949 | cat >conftest.$ac_ext <<_ACEOF | |
28950 | /* confdefs.h. */ | |
28951 | _ACEOF | |
28952 | cat confdefs.h >>conftest.$ac_ext | |
28953 | cat >>conftest.$ac_ext <<_ACEOF | |
28954 | /* end confdefs.h. */ | |
28955 | ||
a106dabe | 28956 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28957 | #ifdef __cplusplus |
28958 | extern "C" | |
28959 | #endif | |
a106dabe | 28960 | /* We use char because int might match the return type of a gcc2 |
28961 | builtin and then its argument prototype would still apply. */ | |
d213114b | 28962 | char tanh (); |
28963 | int | |
28964 | main () | |
28965 | { | |
a106dabe | 28966 | tanh (); |
d213114b | 28967 | ; |
28968 | return 0; | |
28969 | } | |
28970 | _ACEOF | |
28971 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 28972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
28973 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 28974 | ac_status=$? |
28975 | grep -v '^ *+' conftest.er1 >conftest.err | |
28976 | rm -f conftest.er1 | |
28977 | cat conftest.err >&5 | |
28978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28979 | (exit $ac_status); } && | |
c0e8efbe | 28980 | { ac_try='test -z "$ac_c_werror_flag" |
28981 | || test ! -s conftest.err' | |
a106dabe | 28982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28983 | (eval $ac_try) 2>&5 | |
d213114b | 28984 | ac_status=$? |
28985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28986 | (exit $ac_status); }; } && | |
28987 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 28988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28989 | (eval $ac_try) 2>&5 | |
d213114b | 28990 | ac_status=$? |
28991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28992 | (exit $ac_status); }; }; then | |
28993 | ac_cv_lib_m_tanh=yes | |
28994 | else | |
28995 | echo "$as_me: failed program was:" >&5 | |
28996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28997 | ||
a106dabe | 28998 | ac_cv_lib_m_tanh=no |
d213114b | 28999 | fi |
a106dabe | 29000 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29001 | conftest$ac_exeext conftest.$ac_ext |
29002 | LIBS=$ac_check_lib_save_LIBS | |
29003 | fi | |
a106dabe | 29004 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanh" >&5 |
29005 | echo "${ECHO_T}$ac_cv_lib_m_tanh" >&6 | |
d213114b | 29006 | if test $ac_cv_lib_m_tanh = yes; then |
29007 | ||
29008 | cat >>confdefs.h <<\_ACEOF | |
29009 | #define HAVE_TANH 1 | |
29010 | _ACEOF | |
29011 | ||
29012 | fi | |
29013 | ||
a106dabe | 29014 | echo "$as_me:$LINENO: checking for tanhl in -lm" >&5 |
29015 | echo $ECHO_N "checking for tanhl in -lm... $ECHO_C" >&6 | |
d213114b | 29016 | if test "${ac_cv_lib_m_tanhl+set}" = set; then |
29017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29018 | else | |
29019 | ac_check_lib_save_LIBS=$LIBS | |
29020 | LIBS="-lm $LIBS" | |
29021 | if test x$gcc_no_link = xyes; then | |
29022 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29023 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29024 | { (exit 1); exit 1; }; } | |
29025 | fi | |
29026 | cat >conftest.$ac_ext <<_ACEOF | |
29027 | /* confdefs.h. */ | |
29028 | _ACEOF | |
29029 | cat confdefs.h >>conftest.$ac_ext | |
29030 | cat >>conftest.$ac_ext <<_ACEOF | |
29031 | /* end confdefs.h. */ | |
29032 | ||
a106dabe | 29033 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29034 | #ifdef __cplusplus |
29035 | extern "C" | |
29036 | #endif | |
a106dabe | 29037 | /* We use char because int might match the return type of a gcc2 |
29038 | builtin and then its argument prototype would still apply. */ | |
d213114b | 29039 | char tanhl (); |
29040 | int | |
29041 | main () | |
29042 | { | |
a106dabe | 29043 | tanhl (); |
d213114b | 29044 | ; |
29045 | return 0; | |
29046 | } | |
29047 | _ACEOF | |
29048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 29049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
29050 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 29051 | ac_status=$? |
29052 | grep -v '^ *+' conftest.er1 >conftest.err | |
29053 | rm -f conftest.er1 | |
29054 | cat conftest.err >&5 | |
29055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29056 | (exit $ac_status); } && | |
c0e8efbe | 29057 | { ac_try='test -z "$ac_c_werror_flag" |
29058 | || test ! -s conftest.err' | |
a106dabe | 29059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29060 | (eval $ac_try) 2>&5 | |
d213114b | 29061 | ac_status=$? |
29062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29063 | (exit $ac_status); }; } && | |
29064 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 29065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29066 | (eval $ac_try) 2>&5 | |
d213114b | 29067 | ac_status=$? |
29068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29069 | (exit $ac_status); }; }; then | |
29070 | ac_cv_lib_m_tanhl=yes | |
29071 | else | |
29072 | echo "$as_me: failed program was:" >&5 | |
29073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29074 | ||
a106dabe | 29075 | ac_cv_lib_m_tanhl=no |
d213114b | 29076 | fi |
a106dabe | 29077 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29078 | conftest$ac_exeext conftest.$ac_ext |
29079 | LIBS=$ac_check_lib_save_LIBS | |
29080 | fi | |
a106dabe | 29081 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhl" >&5 |
29082 | echo "${ECHO_T}$ac_cv_lib_m_tanhl" >&6 | |
d213114b | 29083 | if test $ac_cv_lib_m_tanhl = yes; then |
29084 | ||
29085 | cat >>confdefs.h <<\_ACEOF | |
29086 | #define HAVE_TANHL 1 | |
29087 | _ACEOF | |
29088 | ||
29089 | fi | |
29090 | ||
a106dabe | 29091 | echo "$as_me:$LINENO: checking for ctanhf in -lm" >&5 |
29092 | echo $ECHO_N "checking for ctanhf in -lm... $ECHO_C" >&6 | |
d213114b | 29093 | if test "${ac_cv_lib_m_ctanhf+set}" = set; then |
29094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29095 | else | |
29096 | ac_check_lib_save_LIBS=$LIBS | |
29097 | LIBS="-lm $LIBS" | |
29098 | if test x$gcc_no_link = xyes; then | |
29099 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29100 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29101 | { (exit 1); exit 1; }; } | |
29102 | fi | |
29103 | cat >conftest.$ac_ext <<_ACEOF | |
29104 | /* confdefs.h. */ | |
29105 | _ACEOF | |
29106 | cat confdefs.h >>conftest.$ac_ext | |
29107 | cat >>conftest.$ac_ext <<_ACEOF | |
29108 | /* end confdefs.h. */ | |
29109 | ||
a106dabe | 29110 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29111 | #ifdef __cplusplus |
29112 | extern "C" | |
29113 | #endif | |
a106dabe | 29114 | /* We use char because int might match the return type of a gcc2 |
29115 | builtin and then its argument prototype would still apply. */ | |
d213114b | 29116 | char ctanhf (); |
29117 | int | |
29118 | main () | |
29119 | { | |
a106dabe | 29120 | ctanhf (); |
d213114b | 29121 | ; |
29122 | return 0; | |
29123 | } | |
29124 | _ACEOF | |
29125 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 29126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
29127 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 29128 | ac_status=$? |
29129 | grep -v '^ *+' conftest.er1 >conftest.err | |
29130 | rm -f conftest.er1 | |
29131 | cat conftest.err >&5 | |
29132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29133 | (exit $ac_status); } && | |
c0e8efbe | 29134 | { ac_try='test -z "$ac_c_werror_flag" |
29135 | || test ! -s conftest.err' | |
a106dabe | 29136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29137 | (eval $ac_try) 2>&5 | |
d213114b | 29138 | ac_status=$? |
29139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29140 | (exit $ac_status); }; } && | |
29141 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 29142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29143 | (eval $ac_try) 2>&5 | |
d213114b | 29144 | ac_status=$? |
29145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29146 | (exit $ac_status); }; }; then | |
29147 | ac_cv_lib_m_ctanhf=yes | |
29148 | else | |
29149 | echo "$as_me: failed program was:" >&5 | |
29150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29151 | ||
a106dabe | 29152 | ac_cv_lib_m_ctanhf=no |
d213114b | 29153 | fi |
a106dabe | 29154 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29155 | conftest$ac_exeext conftest.$ac_ext |
29156 | LIBS=$ac_check_lib_save_LIBS | |
29157 | fi | |
a106dabe | 29158 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanhf" >&5 |
29159 | echo "${ECHO_T}$ac_cv_lib_m_ctanhf" >&6 | |
d213114b | 29160 | if test $ac_cv_lib_m_ctanhf = yes; then |
29161 | ||
29162 | cat >>confdefs.h <<\_ACEOF | |
29163 | #define HAVE_CTANHF 1 | |
29164 | _ACEOF | |
29165 | ||
29166 | fi | |
29167 | ||
a106dabe | 29168 | echo "$as_me:$LINENO: checking for ctanh in -lm" >&5 |
29169 | echo $ECHO_N "checking for ctanh in -lm... $ECHO_C" >&6 | |
d213114b | 29170 | if test "${ac_cv_lib_m_ctanh+set}" = set; then |
29171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29172 | else | |
29173 | ac_check_lib_save_LIBS=$LIBS | |
29174 | LIBS="-lm $LIBS" | |
29175 | if test x$gcc_no_link = xyes; then | |
29176 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29177 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29178 | { (exit 1); exit 1; }; } | |
29179 | fi | |
29180 | cat >conftest.$ac_ext <<_ACEOF | |
29181 | /* confdefs.h. */ | |
29182 | _ACEOF | |
29183 | cat confdefs.h >>conftest.$ac_ext | |
29184 | cat >>conftest.$ac_ext <<_ACEOF | |
29185 | /* end confdefs.h. */ | |
29186 | ||
a106dabe | 29187 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29188 | #ifdef __cplusplus |
29189 | extern "C" | |
29190 | #endif | |
a106dabe | 29191 | /* We use char because int might match the return type of a gcc2 |
29192 | builtin and then its argument prototype would still apply. */ | |
d213114b | 29193 | char ctanh (); |
29194 | int | |
29195 | main () | |
29196 | { | |
a106dabe | 29197 | ctanh (); |
d213114b | 29198 | ; |
29199 | return 0; | |
29200 | } | |
29201 | _ACEOF | |
29202 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 29203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
29204 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 29205 | ac_status=$? |
29206 | grep -v '^ *+' conftest.er1 >conftest.err | |
29207 | rm -f conftest.er1 | |
29208 | cat conftest.err >&5 | |
29209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29210 | (exit $ac_status); } && | |
c0e8efbe | 29211 | { ac_try='test -z "$ac_c_werror_flag" |
29212 | || test ! -s conftest.err' | |
a106dabe | 29213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29214 | (eval $ac_try) 2>&5 | |
d213114b | 29215 | ac_status=$? |
29216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29217 | (exit $ac_status); }; } && | |
29218 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 29219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29220 | (eval $ac_try) 2>&5 | |
d213114b | 29221 | ac_status=$? |
29222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29223 | (exit $ac_status); }; }; then | |
29224 | ac_cv_lib_m_ctanh=yes | |
29225 | else | |
29226 | echo "$as_me: failed program was:" >&5 | |
29227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29228 | ||
a106dabe | 29229 | ac_cv_lib_m_ctanh=no |
d213114b | 29230 | fi |
a106dabe | 29231 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29232 | conftest$ac_exeext conftest.$ac_ext |
29233 | LIBS=$ac_check_lib_save_LIBS | |
29234 | fi | |
a106dabe | 29235 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanh" >&5 |
29236 | echo "${ECHO_T}$ac_cv_lib_m_ctanh" >&6 | |
d213114b | 29237 | if test $ac_cv_lib_m_ctanh = yes; then |
29238 | ||
29239 | cat >>confdefs.h <<\_ACEOF | |
29240 | #define HAVE_CTANH 1 | |
29241 | _ACEOF | |
29242 | ||
29243 | fi | |
29244 | ||
a106dabe | 29245 | echo "$as_me:$LINENO: checking for ctanhl in -lm" >&5 |
29246 | echo $ECHO_N "checking for ctanhl in -lm... $ECHO_C" >&6 | |
d213114b | 29247 | if test "${ac_cv_lib_m_ctanhl+set}" = set; then |
29248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29249 | else | |
29250 | ac_check_lib_save_LIBS=$LIBS | |
29251 | LIBS="-lm $LIBS" | |
29252 | if test x$gcc_no_link = xyes; then | |
29253 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29254 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29255 | { (exit 1); exit 1; }; } | |
29256 | fi | |
29257 | cat >conftest.$ac_ext <<_ACEOF | |
29258 | /* confdefs.h. */ | |
29259 | _ACEOF | |
29260 | cat confdefs.h >>conftest.$ac_ext | |
29261 | cat >>conftest.$ac_ext <<_ACEOF | |
29262 | /* end confdefs.h. */ | |
29263 | ||
a106dabe | 29264 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29265 | #ifdef __cplusplus |
29266 | extern "C" | |
29267 | #endif | |
a106dabe | 29268 | /* We use char because int might match the return type of a gcc2 |
29269 | builtin and then its argument prototype would still apply. */ | |
d213114b | 29270 | char ctanhl (); |
29271 | int | |
29272 | main () | |
29273 | { | |
a106dabe | 29274 | ctanhl (); |
d213114b | 29275 | ; |
29276 | return 0; | |
29277 | } | |
29278 | _ACEOF | |
29279 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 29280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
29281 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 29282 | ac_status=$? |
29283 | grep -v '^ *+' conftest.er1 >conftest.err | |
29284 | rm -f conftest.er1 | |
29285 | cat conftest.err >&5 | |
29286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29287 | (exit $ac_status); } && | |
c0e8efbe | 29288 | { ac_try='test -z "$ac_c_werror_flag" |
29289 | || test ! -s conftest.err' | |
a106dabe | 29290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29291 | (eval $ac_try) 2>&5 | |
d213114b | 29292 | ac_status=$? |
29293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29294 | (exit $ac_status); }; } && | |
29295 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 29296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29297 | (eval $ac_try) 2>&5 | |
d213114b | 29298 | ac_status=$? |
29299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29300 | (exit $ac_status); }; }; then | |
29301 | ac_cv_lib_m_ctanhl=yes | |
29302 | else | |
29303 | echo "$as_me: failed program was:" >&5 | |
29304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29305 | ||
a106dabe | 29306 | ac_cv_lib_m_ctanhl=no |
d213114b | 29307 | fi |
a106dabe | 29308 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29309 | conftest$ac_exeext conftest.$ac_ext |
29310 | LIBS=$ac_check_lib_save_LIBS | |
29311 | fi | |
a106dabe | 29312 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanhl" >&5 |
29313 | echo "${ECHO_T}$ac_cv_lib_m_ctanhl" >&6 | |
d213114b | 29314 | if test $ac_cv_lib_m_ctanhl = yes; then |
29315 | ||
29316 | cat >>confdefs.h <<\_ACEOF | |
29317 | #define HAVE_CTANHL 1 | |
50f0ca0a | 29318 | _ACEOF |
29319 | ||
29320 | fi | |
29321 | ||
a106dabe | 29322 | echo "$as_me:$LINENO: checking for truncf in -lm" >&5 |
29323 | echo $ECHO_N "checking for truncf in -lm... $ECHO_C" >&6 | |
50f0ca0a | 29324 | if test "${ac_cv_lib_m_truncf+set}" = set; then |
29325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29326 | else | |
29327 | ac_check_lib_save_LIBS=$LIBS | |
29328 | LIBS="-lm $LIBS" | |
b52ee437 | 29329 | if test x$gcc_no_link = xyes; then |
29330 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29331 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29332 | { (exit 1); exit 1; }; } | |
29333 | fi | |
50f0ca0a | 29334 | cat >conftest.$ac_ext <<_ACEOF |
29335 | /* confdefs.h. */ | |
29336 | _ACEOF | |
29337 | cat confdefs.h >>conftest.$ac_ext | |
29338 | cat >>conftest.$ac_ext <<_ACEOF | |
29339 | /* end confdefs.h. */ | |
29340 | ||
a106dabe | 29341 | /* Override any gcc2 internal prototype to avoid an error. */ |
50f0ca0a | 29342 | #ifdef __cplusplus |
29343 | extern "C" | |
29344 | #endif | |
a106dabe | 29345 | /* We use char because int might match the return type of a gcc2 |
29346 | builtin and then its argument prototype would still apply. */ | |
d213114b | 29347 | char truncf (); |
29348 | int | |
29349 | main () | |
29350 | { | |
a106dabe | 29351 | truncf (); |
d213114b | 29352 | ; |
29353 | return 0; | |
29354 | } | |
29355 | _ACEOF | |
29356 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 29357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
29358 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 29359 | ac_status=$? |
29360 | grep -v '^ *+' conftest.er1 >conftest.err | |
29361 | rm -f conftest.er1 | |
29362 | cat conftest.err >&5 | |
29363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29364 | (exit $ac_status); } && | |
c0e8efbe | 29365 | { ac_try='test -z "$ac_c_werror_flag" |
29366 | || test ! -s conftest.err' | |
a106dabe | 29367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29368 | (eval $ac_try) 2>&5 | |
d213114b | 29369 | ac_status=$? |
29370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29371 | (exit $ac_status); }; } && | |
29372 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 29373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29374 | (eval $ac_try) 2>&5 | |
d213114b | 29375 | ac_status=$? |
29376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29377 | (exit $ac_status); }; }; then | |
29378 | ac_cv_lib_m_truncf=yes | |
29379 | else | |
29380 | echo "$as_me: failed program was:" >&5 | |
29381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29382 | ||
a106dabe | 29383 | ac_cv_lib_m_truncf=no |
d213114b | 29384 | fi |
a106dabe | 29385 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29386 | conftest$ac_exeext conftest.$ac_ext |
29387 | LIBS=$ac_check_lib_save_LIBS | |
29388 | fi | |
a106dabe | 29389 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncf" >&5 |
29390 | echo "${ECHO_T}$ac_cv_lib_m_truncf" >&6 | |
d213114b | 29391 | if test $ac_cv_lib_m_truncf = yes; then |
29392 | ||
29393 | cat >>confdefs.h <<\_ACEOF | |
29394 | #define HAVE_TRUNCF 1 | |
29395 | _ACEOF | |
29396 | ||
29397 | fi | |
29398 | ||
a106dabe | 29399 | echo "$as_me:$LINENO: checking for trunc in -lm" >&5 |
29400 | echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6 | |
d213114b | 29401 | if test "${ac_cv_lib_m_trunc+set}" = set; then |
29402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29403 | else | |
29404 | ac_check_lib_save_LIBS=$LIBS | |
29405 | LIBS="-lm $LIBS" | |
29406 | if test x$gcc_no_link = xyes; then | |
29407 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29408 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29409 | { (exit 1); exit 1; }; } | |
29410 | fi | |
29411 | cat >conftest.$ac_ext <<_ACEOF | |
29412 | /* confdefs.h. */ | |
29413 | _ACEOF | |
29414 | cat confdefs.h >>conftest.$ac_ext | |
29415 | cat >>conftest.$ac_ext <<_ACEOF | |
29416 | /* end confdefs.h. */ | |
29417 | ||
a106dabe | 29418 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29419 | #ifdef __cplusplus |
29420 | extern "C" | |
29421 | #endif | |
a106dabe | 29422 | /* We use char because int might match the return type of a gcc2 |
29423 | builtin and then its argument prototype would still apply. */ | |
d213114b | 29424 | char trunc (); |
29425 | int | |
29426 | main () | |
29427 | { | |
a106dabe | 29428 | trunc (); |
d213114b | 29429 | ; |
29430 | return 0; | |
29431 | } | |
29432 | _ACEOF | |
29433 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 29434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
29435 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 29436 | ac_status=$? |
29437 | grep -v '^ *+' conftest.er1 >conftest.err | |
29438 | rm -f conftest.er1 | |
29439 | cat conftest.err >&5 | |
29440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29441 | (exit $ac_status); } && | |
c0e8efbe | 29442 | { ac_try='test -z "$ac_c_werror_flag" |
29443 | || test ! -s conftest.err' | |
a106dabe | 29444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29445 | (eval $ac_try) 2>&5 | |
d213114b | 29446 | ac_status=$? |
29447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29448 | (exit $ac_status); }; } && | |
29449 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 29450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29451 | (eval $ac_try) 2>&5 | |
d213114b | 29452 | ac_status=$? |
29453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29454 | (exit $ac_status); }; }; then | |
29455 | ac_cv_lib_m_trunc=yes | |
29456 | else | |
29457 | echo "$as_me: failed program was:" >&5 | |
29458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29459 | ||
a106dabe | 29460 | ac_cv_lib_m_trunc=no |
d213114b | 29461 | fi |
a106dabe | 29462 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29463 | conftest$ac_exeext conftest.$ac_ext |
29464 | LIBS=$ac_check_lib_save_LIBS | |
29465 | fi | |
a106dabe | 29466 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5 |
29467 | echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6 | |
d213114b | 29468 | if test $ac_cv_lib_m_trunc = yes; then |
29469 | ||
29470 | cat >>confdefs.h <<\_ACEOF | |
29471 | #define HAVE_TRUNC 1 | |
29472 | _ACEOF | |
29473 | ||
29474 | fi | |
29475 | ||
a106dabe | 29476 | echo "$as_me:$LINENO: checking for truncl in -lm" >&5 |
29477 | echo $ECHO_N "checking for truncl in -lm... $ECHO_C" >&6 | |
d213114b | 29478 | if test "${ac_cv_lib_m_truncl+set}" = set; then |
29479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29480 | else | |
29481 | ac_check_lib_save_LIBS=$LIBS | |
29482 | LIBS="-lm $LIBS" | |
29483 | if test x$gcc_no_link = xyes; then | |
29484 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29485 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29486 | { (exit 1); exit 1; }; } | |
29487 | fi | |
29488 | cat >conftest.$ac_ext <<_ACEOF | |
29489 | /* confdefs.h. */ | |
29490 | _ACEOF | |
29491 | cat confdefs.h >>conftest.$ac_ext | |
29492 | cat >>conftest.$ac_ext <<_ACEOF | |
29493 | /* end confdefs.h. */ | |
29494 | ||
a106dabe | 29495 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29496 | #ifdef __cplusplus |
29497 | extern "C" | |
29498 | #endif | |
a106dabe | 29499 | /* We use char because int might match the return type of a gcc2 |
29500 | builtin and then its argument prototype would still apply. */ | |
d213114b | 29501 | char truncl (); |
29502 | int | |
29503 | main () | |
29504 | { | |
a106dabe | 29505 | truncl (); |
d213114b | 29506 | ; |
29507 | return 0; | |
29508 | } | |
29509 | _ACEOF | |
29510 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 29511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
29512 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 29513 | ac_status=$? |
29514 | grep -v '^ *+' conftest.er1 >conftest.err | |
29515 | rm -f conftest.er1 | |
29516 | cat conftest.err >&5 | |
29517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29518 | (exit $ac_status); } && | |
c0e8efbe | 29519 | { ac_try='test -z "$ac_c_werror_flag" |
29520 | || test ! -s conftest.err' | |
a106dabe | 29521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29522 | (eval $ac_try) 2>&5 | |
d213114b | 29523 | ac_status=$? |
29524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29525 | (exit $ac_status); }; } && | |
29526 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 29527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29528 | (eval $ac_try) 2>&5 | |
d213114b | 29529 | ac_status=$? |
29530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29531 | (exit $ac_status); }; }; then | |
29532 | ac_cv_lib_m_truncl=yes | |
29533 | else | |
29534 | echo "$as_me: failed program was:" >&5 | |
29535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29536 | ||
a106dabe | 29537 | ac_cv_lib_m_truncl=no |
d213114b | 29538 | fi |
a106dabe | 29539 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29540 | conftest$ac_exeext conftest.$ac_ext |
29541 | LIBS=$ac_check_lib_save_LIBS | |
29542 | fi | |
a106dabe | 29543 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncl" >&5 |
29544 | echo "${ECHO_T}$ac_cv_lib_m_truncl" >&6 | |
d213114b | 29545 | if test $ac_cv_lib_m_truncl = yes; then |
29546 | ||
29547 | cat >>confdefs.h <<\_ACEOF | |
29548 | #define HAVE_TRUNCL 1 | |
29549 | _ACEOF | |
29550 | ||
29551 | fi | |
29552 | ||
a106dabe | 29553 | echo "$as_me:$LINENO: checking for erff in -lm" >&5 |
29554 | echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6 | |
d213114b | 29555 | if test "${ac_cv_lib_m_erff+set}" = set; then |
29556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29557 | else | |
29558 | ac_check_lib_save_LIBS=$LIBS | |
29559 | LIBS="-lm $LIBS" | |
29560 | if test x$gcc_no_link = xyes; then | |
29561 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29562 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29563 | { (exit 1); exit 1; }; } | |
29564 | fi | |
29565 | cat >conftest.$ac_ext <<_ACEOF | |
29566 | /* confdefs.h. */ | |
29567 | _ACEOF | |
29568 | cat confdefs.h >>conftest.$ac_ext | |
29569 | cat >>conftest.$ac_ext <<_ACEOF | |
29570 | /* end confdefs.h. */ | |
29571 | ||
a106dabe | 29572 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29573 | #ifdef __cplusplus |
29574 | extern "C" | |
29575 | #endif | |
a106dabe | 29576 | /* We use char because int might match the return type of a gcc2 |
29577 | builtin and then its argument prototype would still apply. */ | |
d213114b | 29578 | char erff (); |
29579 | int | |
29580 | main () | |
29581 | { | |
a106dabe | 29582 | erff (); |
d213114b | 29583 | ; |
29584 | return 0; | |
29585 | } | |
29586 | _ACEOF | |
29587 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 29588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
29589 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 29590 | ac_status=$? |
29591 | grep -v '^ *+' conftest.er1 >conftest.err | |
29592 | rm -f conftest.er1 | |
29593 | cat conftest.err >&5 | |
29594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29595 | (exit $ac_status); } && | |
c0e8efbe | 29596 | { ac_try='test -z "$ac_c_werror_flag" |
29597 | || test ! -s conftest.err' | |
a106dabe | 29598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29599 | (eval $ac_try) 2>&5 | |
d213114b | 29600 | ac_status=$? |
29601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29602 | (exit $ac_status); }; } && | |
29603 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 29604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29605 | (eval $ac_try) 2>&5 | |
d213114b | 29606 | ac_status=$? |
29607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29608 | (exit $ac_status); }; }; then | |
29609 | ac_cv_lib_m_erff=yes | |
29610 | else | |
29611 | echo "$as_me: failed program was:" >&5 | |
29612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29613 | ||
a106dabe | 29614 | ac_cv_lib_m_erff=no |
d213114b | 29615 | fi |
a106dabe | 29616 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29617 | conftest$ac_exeext conftest.$ac_ext |
29618 | LIBS=$ac_check_lib_save_LIBS | |
29619 | fi | |
a106dabe | 29620 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5 |
29621 | echo "${ECHO_T}$ac_cv_lib_m_erff" >&6 | |
d213114b | 29622 | if test $ac_cv_lib_m_erff = yes; then |
29623 | ||
29624 | cat >>confdefs.h <<\_ACEOF | |
29625 | #define HAVE_ERFF 1 | |
29626 | _ACEOF | |
29627 | ||
29628 | fi | |
29629 | ||
a106dabe | 29630 | echo "$as_me:$LINENO: checking for erf in -lm" >&5 |
29631 | echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6 | |
d213114b | 29632 | if test "${ac_cv_lib_m_erf+set}" = set; then |
29633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29634 | else | |
29635 | ac_check_lib_save_LIBS=$LIBS | |
29636 | LIBS="-lm $LIBS" | |
29637 | if test x$gcc_no_link = xyes; then | |
29638 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29639 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29640 | { (exit 1); exit 1; }; } | |
29641 | fi | |
29642 | cat >conftest.$ac_ext <<_ACEOF | |
29643 | /* confdefs.h. */ | |
29644 | _ACEOF | |
29645 | cat confdefs.h >>conftest.$ac_ext | |
29646 | cat >>conftest.$ac_ext <<_ACEOF | |
29647 | /* end confdefs.h. */ | |
29648 | ||
a106dabe | 29649 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29650 | #ifdef __cplusplus |
29651 | extern "C" | |
29652 | #endif | |
a106dabe | 29653 | /* We use char because int might match the return type of a gcc2 |
29654 | builtin and then its argument prototype would still apply. */ | |
d213114b | 29655 | char erf (); |
29656 | int | |
29657 | main () | |
29658 | { | |
a106dabe | 29659 | erf (); |
d213114b | 29660 | ; |
29661 | return 0; | |
29662 | } | |
29663 | _ACEOF | |
29664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 29665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
29666 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 29667 | ac_status=$? |
29668 | grep -v '^ *+' conftest.er1 >conftest.err | |
29669 | rm -f conftest.er1 | |
29670 | cat conftest.err >&5 | |
29671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29672 | (exit $ac_status); } && | |
c0e8efbe | 29673 | { ac_try='test -z "$ac_c_werror_flag" |
29674 | || test ! -s conftest.err' | |
a106dabe | 29675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29676 | (eval $ac_try) 2>&5 | |
d213114b | 29677 | ac_status=$? |
29678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29679 | (exit $ac_status); }; } && | |
29680 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 29681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29682 | (eval $ac_try) 2>&5 | |
d213114b | 29683 | ac_status=$? |
29684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29685 | (exit $ac_status); }; }; then | |
29686 | ac_cv_lib_m_erf=yes | |
29687 | else | |
29688 | echo "$as_me: failed program was:" >&5 | |
29689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29690 | ||
a106dabe | 29691 | ac_cv_lib_m_erf=no |
d213114b | 29692 | fi |
a106dabe | 29693 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29694 | conftest$ac_exeext conftest.$ac_ext |
29695 | LIBS=$ac_check_lib_save_LIBS | |
29696 | fi | |
a106dabe | 29697 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5 |
29698 | echo "${ECHO_T}$ac_cv_lib_m_erf" >&6 | |
d213114b | 29699 | if test $ac_cv_lib_m_erf = yes; then |
29700 | ||
29701 | cat >>confdefs.h <<\_ACEOF | |
29702 | #define HAVE_ERF 1 | |
29703 | _ACEOF | |
29704 | ||
29705 | fi | |
29706 | ||
a106dabe | 29707 | echo "$as_me:$LINENO: checking for erfl in -lm" >&5 |
29708 | echo $ECHO_N "checking for erfl in -lm... $ECHO_C" >&6 | |
d213114b | 29709 | if test "${ac_cv_lib_m_erfl+set}" = set; then |
29710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29711 | else | |
29712 | ac_check_lib_save_LIBS=$LIBS | |
29713 | LIBS="-lm $LIBS" | |
29714 | if test x$gcc_no_link = xyes; then | |
29715 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29716 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29717 | { (exit 1); exit 1; }; } | |
29718 | fi | |
29719 | cat >conftest.$ac_ext <<_ACEOF | |
29720 | /* confdefs.h. */ | |
29721 | _ACEOF | |
29722 | cat confdefs.h >>conftest.$ac_ext | |
29723 | cat >>conftest.$ac_ext <<_ACEOF | |
29724 | /* end confdefs.h. */ | |
29725 | ||
a106dabe | 29726 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29727 | #ifdef __cplusplus |
29728 | extern "C" | |
29729 | #endif | |
a106dabe | 29730 | /* We use char because int might match the return type of a gcc2 |
29731 | builtin and then its argument prototype would still apply. */ | |
d213114b | 29732 | char erfl (); |
29733 | int | |
29734 | main () | |
29735 | { | |
a106dabe | 29736 | erfl (); |
d213114b | 29737 | ; |
29738 | return 0; | |
29739 | } | |
29740 | _ACEOF | |
29741 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 29742 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
29743 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 29744 | ac_status=$? |
29745 | grep -v '^ *+' conftest.er1 >conftest.err | |
29746 | rm -f conftest.er1 | |
29747 | cat conftest.err >&5 | |
29748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29749 | (exit $ac_status); } && | |
c0e8efbe | 29750 | { ac_try='test -z "$ac_c_werror_flag" |
29751 | || test ! -s conftest.err' | |
a106dabe | 29752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29753 | (eval $ac_try) 2>&5 | |
d213114b | 29754 | ac_status=$? |
29755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29756 | (exit $ac_status); }; } && | |
29757 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 29758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29759 | (eval $ac_try) 2>&5 | |
d213114b | 29760 | ac_status=$? |
29761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29762 | (exit $ac_status); }; }; then | |
29763 | ac_cv_lib_m_erfl=yes | |
29764 | else | |
29765 | echo "$as_me: failed program was:" >&5 | |
29766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29767 | ||
a106dabe | 29768 | ac_cv_lib_m_erfl=no |
d213114b | 29769 | fi |
a106dabe | 29770 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29771 | conftest$ac_exeext conftest.$ac_ext |
29772 | LIBS=$ac_check_lib_save_LIBS | |
29773 | fi | |
a106dabe | 29774 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfl" >&5 |
29775 | echo "${ECHO_T}$ac_cv_lib_m_erfl" >&6 | |
d213114b | 29776 | if test $ac_cv_lib_m_erfl = yes; then |
29777 | ||
29778 | cat >>confdefs.h <<\_ACEOF | |
29779 | #define HAVE_ERFL 1 | |
29780 | _ACEOF | |
29781 | ||
29782 | fi | |
29783 | ||
a106dabe | 29784 | echo "$as_me:$LINENO: checking for erfcf in -lm" >&5 |
29785 | echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6 | |
d213114b | 29786 | if test "${ac_cv_lib_m_erfcf+set}" = set; then |
29787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29788 | else | |
29789 | ac_check_lib_save_LIBS=$LIBS | |
29790 | LIBS="-lm $LIBS" | |
29791 | if test x$gcc_no_link = xyes; then | |
29792 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29793 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29794 | { (exit 1); exit 1; }; } | |
29795 | fi | |
29796 | cat >conftest.$ac_ext <<_ACEOF | |
29797 | /* confdefs.h. */ | |
29798 | _ACEOF | |
29799 | cat confdefs.h >>conftest.$ac_ext | |
29800 | cat >>conftest.$ac_ext <<_ACEOF | |
29801 | /* end confdefs.h. */ | |
29802 | ||
a106dabe | 29803 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29804 | #ifdef __cplusplus |
29805 | extern "C" | |
29806 | #endif | |
a106dabe | 29807 | /* We use char because int might match the return type of a gcc2 |
29808 | builtin and then its argument prototype would still apply. */ | |
d213114b | 29809 | char erfcf (); |
29810 | int | |
29811 | main () | |
29812 | { | |
a106dabe | 29813 | erfcf (); |
d213114b | 29814 | ; |
29815 | return 0; | |
29816 | } | |
29817 | _ACEOF | |
29818 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 29819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
29820 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 29821 | ac_status=$? |
29822 | grep -v '^ *+' conftest.er1 >conftest.err | |
29823 | rm -f conftest.er1 | |
29824 | cat conftest.err >&5 | |
29825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29826 | (exit $ac_status); } && | |
c0e8efbe | 29827 | { ac_try='test -z "$ac_c_werror_flag" |
29828 | || test ! -s conftest.err' | |
a106dabe | 29829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29830 | (eval $ac_try) 2>&5 | |
d213114b | 29831 | ac_status=$? |
29832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29833 | (exit $ac_status); }; } && | |
29834 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 29835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29836 | (eval $ac_try) 2>&5 | |
d213114b | 29837 | ac_status=$? |
29838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29839 | (exit $ac_status); }; }; then | |
29840 | ac_cv_lib_m_erfcf=yes | |
29841 | else | |
29842 | echo "$as_me: failed program was:" >&5 | |
29843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29844 | ||
a106dabe | 29845 | ac_cv_lib_m_erfcf=no |
d213114b | 29846 | fi |
a106dabe | 29847 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29848 | conftest$ac_exeext conftest.$ac_ext |
29849 | LIBS=$ac_check_lib_save_LIBS | |
29850 | fi | |
a106dabe | 29851 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5 |
29852 | echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6 | |
d213114b | 29853 | if test $ac_cv_lib_m_erfcf = yes; then |
29854 | ||
29855 | cat >>confdefs.h <<\_ACEOF | |
29856 | #define HAVE_ERFCF 1 | |
29857 | _ACEOF | |
29858 | ||
29859 | fi | |
29860 | ||
a106dabe | 29861 | echo "$as_me:$LINENO: checking for erfc in -lm" >&5 |
29862 | echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6 | |
d213114b | 29863 | if test "${ac_cv_lib_m_erfc+set}" = set; then |
29864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29865 | else | |
29866 | ac_check_lib_save_LIBS=$LIBS | |
29867 | LIBS="-lm $LIBS" | |
29868 | if test x$gcc_no_link = xyes; then | |
29869 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29870 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29871 | { (exit 1); exit 1; }; } | |
29872 | fi | |
29873 | cat >conftest.$ac_ext <<_ACEOF | |
29874 | /* confdefs.h. */ | |
29875 | _ACEOF | |
29876 | cat confdefs.h >>conftest.$ac_ext | |
29877 | cat >>conftest.$ac_ext <<_ACEOF | |
29878 | /* end confdefs.h. */ | |
29879 | ||
a106dabe | 29880 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29881 | #ifdef __cplusplus |
29882 | extern "C" | |
29883 | #endif | |
a106dabe | 29884 | /* We use char because int might match the return type of a gcc2 |
29885 | builtin and then its argument prototype would still apply. */ | |
d213114b | 29886 | char erfc (); |
50f0ca0a | 29887 | int |
29888 | main () | |
29889 | { | |
a106dabe | 29890 | erfc (); |
50f0ca0a | 29891 | ; |
29892 | return 0; | |
29893 | } | |
29894 | _ACEOF | |
29895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 29896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
29897 | (eval $ac_link) 2>conftest.er1 | |
50f0ca0a | 29898 | ac_status=$? |
29899 | grep -v '^ *+' conftest.er1 >conftest.err | |
29900 | rm -f conftest.er1 | |
29901 | cat conftest.err >&5 | |
29902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29903 | (exit $ac_status); } && | |
c0e8efbe | 29904 | { ac_try='test -z "$ac_c_werror_flag" |
29905 | || test ! -s conftest.err' | |
a106dabe | 29906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29907 | (eval $ac_try) 2>&5 | |
50f0ca0a | 29908 | ac_status=$? |
29909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29910 | (exit $ac_status); }; } && | |
29911 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 29912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29913 | (eval $ac_try) 2>&5 | |
50f0ca0a | 29914 | ac_status=$? |
29915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29916 | (exit $ac_status); }; }; then | |
d213114b | 29917 | ac_cv_lib_m_erfc=yes |
50f0ca0a | 29918 | else |
29919 | echo "$as_me: failed program was:" >&5 | |
29920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29921 | ||
a106dabe | 29922 | ac_cv_lib_m_erfc=no |
50f0ca0a | 29923 | fi |
a106dabe | 29924 | rm -f conftest.err conftest.$ac_objext \ |
50f0ca0a | 29925 | conftest$ac_exeext conftest.$ac_ext |
29926 | LIBS=$ac_check_lib_save_LIBS | |
29927 | fi | |
a106dabe | 29928 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5 |
29929 | echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6 | |
d213114b | 29930 | if test $ac_cv_lib_m_erfc = yes; then |
50f0ca0a | 29931 | |
29932 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 29933 | #define HAVE_ERFC 1 |
50f0ca0a | 29934 | _ACEOF |
29935 | ||
29936 | fi | |
29937 | ||
a106dabe | 29938 | echo "$as_me:$LINENO: checking for erfcl in -lm" >&5 |
29939 | echo $ECHO_N "checking for erfcl in -lm... $ECHO_C" >&6 | |
d213114b | 29940 | if test "${ac_cv_lib_m_erfcl+set}" = set; then |
158e0e64 | 29941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
29942 | else | |
29943 | ac_check_lib_save_LIBS=$LIBS | |
29944 | LIBS="-lm $LIBS" | |
b52ee437 | 29945 | if test x$gcc_no_link = xyes; then |
29946 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29947 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29948 | { (exit 1); exit 1; }; } | |
29949 | fi | |
158e0e64 | 29950 | cat >conftest.$ac_ext <<_ACEOF |
29951 | /* confdefs.h. */ | |
29952 | _ACEOF | |
29953 | cat confdefs.h >>conftest.$ac_ext | |
29954 | cat >>conftest.$ac_ext <<_ACEOF | |
29955 | /* end confdefs.h. */ | |
29956 | ||
a106dabe | 29957 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 29958 | #ifdef __cplusplus |
29959 | extern "C" | |
29960 | #endif | |
a106dabe | 29961 | /* We use char because int might match the return type of a gcc2 |
29962 | builtin and then its argument prototype would still apply. */ | |
d213114b | 29963 | char erfcl (); |
158e0e64 | 29964 | int |
29965 | main () | |
29966 | { | |
a106dabe | 29967 | erfcl (); |
158e0e64 | 29968 | ; |
29969 | return 0; | |
29970 | } | |
29971 | _ACEOF | |
29972 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 29973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
29974 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 29975 | ac_status=$? |
29976 | grep -v '^ *+' conftest.er1 >conftest.err | |
29977 | rm -f conftest.er1 | |
29978 | cat conftest.err >&5 | |
29979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29980 | (exit $ac_status); } && | |
c0e8efbe | 29981 | { ac_try='test -z "$ac_c_werror_flag" |
29982 | || test ! -s conftest.err' | |
a106dabe | 29983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29984 | (eval $ac_try) 2>&5 | |
158e0e64 | 29985 | ac_status=$? |
29986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29987 | (exit $ac_status); }; } && | |
29988 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 29989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29990 | (eval $ac_try) 2>&5 | |
158e0e64 | 29991 | ac_status=$? |
29992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29993 | (exit $ac_status); }; }; then | |
d213114b | 29994 | ac_cv_lib_m_erfcl=yes |
158e0e64 | 29995 | else |
29996 | echo "$as_me: failed program was:" >&5 | |
29997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29998 | ||
a106dabe | 29999 | ac_cv_lib_m_erfcl=no |
158e0e64 | 30000 | fi |
a106dabe | 30001 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 30002 | conftest$ac_exeext conftest.$ac_ext |
30003 | LIBS=$ac_check_lib_save_LIBS | |
30004 | fi | |
a106dabe | 30005 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcl" >&5 |
30006 | echo "${ECHO_T}$ac_cv_lib_m_erfcl" >&6 | |
d213114b | 30007 | if test $ac_cv_lib_m_erfcl = yes; then |
158e0e64 | 30008 | |
30009 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 30010 | #define HAVE_ERFCL 1 |
158e0e64 | 30011 | _ACEOF |
30012 | ||
30013 | fi | |
30014 | ||
a106dabe | 30015 | echo "$as_me:$LINENO: checking for j0f in -lm" >&5 |
30016 | echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6 | |
d213114b | 30017 | if test "${ac_cv_lib_m_j0f+set}" = set; then |
158e0e64 | 30018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
30019 | else | |
30020 | ac_check_lib_save_LIBS=$LIBS | |
30021 | LIBS="-lm $LIBS" | |
b52ee437 | 30022 | if test x$gcc_no_link = xyes; then |
30023 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30024 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30025 | { (exit 1); exit 1; }; } | |
30026 | fi | |
158e0e64 | 30027 | cat >conftest.$ac_ext <<_ACEOF |
30028 | /* confdefs.h. */ | |
30029 | _ACEOF | |
30030 | cat confdefs.h >>conftest.$ac_ext | |
30031 | cat >>conftest.$ac_ext <<_ACEOF | |
30032 | /* end confdefs.h. */ | |
30033 | ||
a106dabe | 30034 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 30035 | #ifdef __cplusplus |
30036 | extern "C" | |
30037 | #endif | |
a106dabe | 30038 | /* We use char because int might match the return type of a gcc2 |
30039 | builtin and then its argument prototype would still apply. */ | |
d213114b | 30040 | char j0f (); |
158e0e64 | 30041 | int |
30042 | main () | |
30043 | { | |
a106dabe | 30044 | j0f (); |
158e0e64 | 30045 | ; |
30046 | return 0; | |
30047 | } | |
30048 | _ACEOF | |
30049 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 30050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
30051 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 30052 | ac_status=$? |
30053 | grep -v '^ *+' conftest.er1 >conftest.err | |
30054 | rm -f conftest.er1 | |
30055 | cat conftest.err >&5 | |
30056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30057 | (exit $ac_status); } && | |
c0e8efbe | 30058 | { ac_try='test -z "$ac_c_werror_flag" |
30059 | || test ! -s conftest.err' | |
a106dabe | 30060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30061 | (eval $ac_try) 2>&5 | |
158e0e64 | 30062 | ac_status=$? |
30063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30064 | (exit $ac_status); }; } && | |
30065 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 30066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30067 | (eval $ac_try) 2>&5 | |
158e0e64 | 30068 | ac_status=$? |
30069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30070 | (exit $ac_status); }; }; then | |
d213114b | 30071 | ac_cv_lib_m_j0f=yes |
158e0e64 | 30072 | else |
30073 | echo "$as_me: failed program was:" >&5 | |
30074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30075 | ||
a106dabe | 30076 | ac_cv_lib_m_j0f=no |
d213114b | 30077 | fi |
a106dabe | 30078 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 30079 | conftest$ac_exeext conftest.$ac_ext |
30080 | LIBS=$ac_check_lib_save_LIBS | |
30081 | fi | |
a106dabe | 30082 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5 |
30083 | echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6 | |
d213114b | 30084 | if test $ac_cv_lib_m_j0f = yes; then |
30085 | ||
30086 | cat >>confdefs.h <<\_ACEOF | |
30087 | #define HAVE_J0F 1 | |
30088 | _ACEOF | |
30089 | ||
30090 | fi | |
30091 | ||
a106dabe | 30092 | echo "$as_me:$LINENO: checking for j0 in -lm" >&5 |
30093 | echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6 | |
d213114b | 30094 | if test "${ac_cv_lib_m_j0+set}" = set; then |
30095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30096 | else | |
30097 | ac_check_lib_save_LIBS=$LIBS | |
30098 | LIBS="-lm $LIBS" | |
30099 | if test x$gcc_no_link = xyes; then | |
30100 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30101 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30102 | { (exit 1); exit 1; }; } | |
30103 | fi | |
30104 | cat >conftest.$ac_ext <<_ACEOF | |
30105 | /* confdefs.h. */ | |
30106 | _ACEOF | |
30107 | cat confdefs.h >>conftest.$ac_ext | |
30108 | cat >>conftest.$ac_ext <<_ACEOF | |
30109 | /* end confdefs.h. */ | |
30110 | ||
a106dabe | 30111 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 30112 | #ifdef __cplusplus |
30113 | extern "C" | |
30114 | #endif | |
a106dabe | 30115 | /* We use char because int might match the return type of a gcc2 |
30116 | builtin and then its argument prototype would still apply. */ | |
d213114b | 30117 | char j0 (); |
30118 | int | |
30119 | main () | |
30120 | { | |
a106dabe | 30121 | j0 (); |
d213114b | 30122 | ; |
30123 | return 0; | |
30124 | } | |
30125 | _ACEOF | |
30126 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 30127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
30128 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 30129 | ac_status=$? |
30130 | grep -v '^ *+' conftest.er1 >conftest.err | |
30131 | rm -f conftest.er1 | |
30132 | cat conftest.err >&5 | |
30133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30134 | (exit $ac_status); } && | |
c0e8efbe | 30135 | { ac_try='test -z "$ac_c_werror_flag" |
30136 | || test ! -s conftest.err' | |
a106dabe | 30137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30138 | (eval $ac_try) 2>&5 | |
d213114b | 30139 | ac_status=$? |
30140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30141 | (exit $ac_status); }; } && | |
30142 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 30143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30144 | (eval $ac_try) 2>&5 | |
d213114b | 30145 | ac_status=$? |
30146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30147 | (exit $ac_status); }; }; then | |
30148 | ac_cv_lib_m_j0=yes | |
30149 | else | |
30150 | echo "$as_me: failed program was:" >&5 | |
30151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30152 | ||
a106dabe | 30153 | ac_cv_lib_m_j0=no |
d213114b | 30154 | fi |
a106dabe | 30155 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 30156 | conftest$ac_exeext conftest.$ac_ext |
30157 | LIBS=$ac_check_lib_save_LIBS | |
30158 | fi | |
a106dabe | 30159 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5 |
30160 | echo "${ECHO_T}$ac_cv_lib_m_j0" >&6 | |
d213114b | 30161 | if test $ac_cv_lib_m_j0 = yes; then |
30162 | ||
30163 | cat >>confdefs.h <<\_ACEOF | |
30164 | #define HAVE_J0 1 | |
30165 | _ACEOF | |
30166 | ||
30167 | fi | |
30168 | ||
a106dabe | 30169 | echo "$as_me:$LINENO: checking for j0l in -lm" >&5 |
30170 | echo $ECHO_N "checking for j0l in -lm... $ECHO_C" >&6 | |
d213114b | 30171 | if test "${ac_cv_lib_m_j0l+set}" = set; then |
30172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30173 | else | |
30174 | ac_check_lib_save_LIBS=$LIBS | |
30175 | LIBS="-lm $LIBS" | |
30176 | if test x$gcc_no_link = xyes; then | |
30177 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30178 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30179 | { (exit 1); exit 1; }; } | |
30180 | fi | |
30181 | cat >conftest.$ac_ext <<_ACEOF | |
30182 | /* confdefs.h. */ | |
30183 | _ACEOF | |
30184 | cat confdefs.h >>conftest.$ac_ext | |
30185 | cat >>conftest.$ac_ext <<_ACEOF | |
30186 | /* end confdefs.h. */ | |
30187 | ||
a106dabe | 30188 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 30189 | #ifdef __cplusplus |
30190 | extern "C" | |
30191 | #endif | |
a106dabe | 30192 | /* We use char because int might match the return type of a gcc2 |
30193 | builtin and then its argument prototype would still apply. */ | |
d213114b | 30194 | char j0l (); |
30195 | int | |
30196 | main () | |
30197 | { | |
a106dabe | 30198 | j0l (); |
d213114b | 30199 | ; |
30200 | return 0; | |
30201 | } | |
30202 | _ACEOF | |
30203 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 30204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
30205 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 30206 | ac_status=$? |
30207 | grep -v '^ *+' conftest.er1 >conftest.err | |
30208 | rm -f conftest.er1 | |
30209 | cat conftest.err >&5 | |
30210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30211 | (exit $ac_status); } && | |
c0e8efbe | 30212 | { ac_try='test -z "$ac_c_werror_flag" |
30213 | || test ! -s conftest.err' | |
a106dabe | 30214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30215 | (eval $ac_try) 2>&5 | |
d213114b | 30216 | ac_status=$? |
30217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30218 | (exit $ac_status); }; } && | |
30219 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 30220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30221 | (eval $ac_try) 2>&5 | |
d213114b | 30222 | ac_status=$? |
30223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30224 | (exit $ac_status); }; }; then | |
30225 | ac_cv_lib_m_j0l=yes | |
30226 | else | |
30227 | echo "$as_me: failed program was:" >&5 | |
30228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30229 | ||
a106dabe | 30230 | ac_cv_lib_m_j0l=no |
d213114b | 30231 | fi |
a106dabe | 30232 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 30233 | conftest$ac_exeext conftest.$ac_ext |
30234 | LIBS=$ac_check_lib_save_LIBS | |
30235 | fi | |
a106dabe | 30236 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0l" >&5 |
30237 | echo "${ECHO_T}$ac_cv_lib_m_j0l" >&6 | |
d213114b | 30238 | if test $ac_cv_lib_m_j0l = yes; then |
30239 | ||
30240 | cat >>confdefs.h <<\_ACEOF | |
30241 | #define HAVE_J0L 1 | |
30242 | _ACEOF | |
30243 | ||
30244 | fi | |
30245 | ||
a106dabe | 30246 | echo "$as_me:$LINENO: checking for j1f in -lm" >&5 |
30247 | echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6 | |
d213114b | 30248 | if test "${ac_cv_lib_m_j1f+set}" = set; then |
30249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30250 | else | |
30251 | ac_check_lib_save_LIBS=$LIBS | |
30252 | LIBS="-lm $LIBS" | |
30253 | if test x$gcc_no_link = xyes; then | |
30254 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30255 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30256 | { (exit 1); exit 1; }; } | |
30257 | fi | |
30258 | cat >conftest.$ac_ext <<_ACEOF | |
30259 | /* confdefs.h. */ | |
30260 | _ACEOF | |
30261 | cat confdefs.h >>conftest.$ac_ext | |
30262 | cat >>conftest.$ac_ext <<_ACEOF | |
30263 | /* end confdefs.h. */ | |
30264 | ||
a106dabe | 30265 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 30266 | #ifdef __cplusplus |
30267 | extern "C" | |
30268 | #endif | |
a106dabe | 30269 | /* We use char because int might match the return type of a gcc2 |
30270 | builtin and then its argument prototype would still apply. */ | |
d213114b | 30271 | char j1f (); |
30272 | int | |
30273 | main () | |
30274 | { | |
a106dabe | 30275 | j1f (); |
d213114b | 30276 | ; |
30277 | return 0; | |
30278 | } | |
30279 | _ACEOF | |
30280 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 30281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
30282 | (eval $ac_link) 2>conftest.er1 | |
d213114b | 30283 | ac_status=$? |
30284 | grep -v '^ *+' conftest.er1 >conftest.err | |
30285 | rm -f conftest.er1 | |
30286 | cat conftest.err >&5 | |
30287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30288 | (exit $ac_status); } && | |
c0e8efbe | 30289 | { ac_try='test -z "$ac_c_werror_flag" |
30290 | || test ! -s conftest.err' | |
a106dabe | 30291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30292 | (eval $ac_try) 2>&5 | |
d213114b | 30293 | ac_status=$? |
30294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30295 | (exit $ac_status); }; } && | |
30296 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 30297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30298 | (eval $ac_try) 2>&5 | |
d213114b | 30299 | ac_status=$? |
30300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30301 | (exit $ac_status); }; }; then | |
30302 | ac_cv_lib_m_j1f=yes | |
30303 | else | |
30304 | echo "$as_me: failed program was:" >&5 | |
30305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30306 | ||
a106dabe | 30307 | ac_cv_lib_m_j1f=no |
158e0e64 | 30308 | fi |
a106dabe | 30309 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 30310 | conftest$ac_exeext conftest.$ac_ext |
30311 | LIBS=$ac_check_lib_save_LIBS | |
30312 | fi | |
a106dabe | 30313 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5 |
30314 | echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6 | |
d213114b | 30315 | if test $ac_cv_lib_m_j1f = yes; then |
158e0e64 | 30316 | |
30317 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 30318 | #define HAVE_J1F 1 |
158e0e64 | 30319 | _ACEOF |
30320 | ||
30321 | fi | |
30322 | ||
a106dabe | 30323 | echo "$as_me:$LINENO: checking for j1 in -lm" >&5 |
30324 | echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6 | |
d213114b | 30325 | if test "${ac_cv_lib_m_j1+set}" = set; then |
158e0e64 | 30326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
30327 | else | |
30328 | ac_check_lib_save_LIBS=$LIBS | |
30329 | LIBS="-lm $LIBS" | |
b52ee437 | 30330 | if test x$gcc_no_link = xyes; then |
30331 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30332 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30333 | { (exit 1); exit 1; }; } | |
30334 | fi | |
158e0e64 | 30335 | cat >conftest.$ac_ext <<_ACEOF |
30336 | /* confdefs.h. */ | |
30337 | _ACEOF | |
30338 | cat confdefs.h >>conftest.$ac_ext | |
30339 | cat >>conftest.$ac_ext <<_ACEOF | |
30340 | /* end confdefs.h. */ | |
30341 | ||
a106dabe | 30342 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 30343 | #ifdef __cplusplus |
30344 | extern "C" | |
30345 | #endif | |
a106dabe | 30346 | /* We use char because int might match the return type of a gcc2 |
30347 | builtin and then its argument prototype would still apply. */ | |
d213114b | 30348 | char j1 (); |
158e0e64 | 30349 | int |
30350 | main () | |
30351 | { | |
a106dabe | 30352 | j1 (); |
158e0e64 | 30353 | ; |
30354 | return 0; | |
30355 | } | |
30356 | _ACEOF | |
30357 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 30358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
30359 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 30360 | ac_status=$? |
30361 | grep -v '^ *+' conftest.er1 >conftest.err | |
30362 | rm -f conftest.er1 | |
30363 | cat conftest.err >&5 | |
30364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30365 | (exit $ac_status); } && | |
c0e8efbe | 30366 | { ac_try='test -z "$ac_c_werror_flag" |
30367 | || test ! -s conftest.err' | |
a106dabe | 30368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30369 | (eval $ac_try) 2>&5 | |
158e0e64 | 30370 | ac_status=$? |
30371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30372 | (exit $ac_status); }; } && | |
30373 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 30374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30375 | (eval $ac_try) 2>&5 | |
158e0e64 | 30376 | ac_status=$? |
30377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30378 | (exit $ac_status); }; }; then | |
d213114b | 30379 | ac_cv_lib_m_j1=yes |
158e0e64 | 30380 | else |
30381 | echo "$as_me: failed program was:" >&5 | |
30382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30383 | ||
a106dabe | 30384 | ac_cv_lib_m_j1=no |
158e0e64 | 30385 | fi |
a106dabe | 30386 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 30387 | conftest$ac_exeext conftest.$ac_ext |
30388 | LIBS=$ac_check_lib_save_LIBS | |
30389 | fi | |
a106dabe | 30390 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5 |
30391 | echo "${ECHO_T}$ac_cv_lib_m_j1" >&6 | |
d213114b | 30392 | if test $ac_cv_lib_m_j1 = yes; then |
158e0e64 | 30393 | |
30394 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 30395 | #define HAVE_J1 1 |
158e0e64 | 30396 | _ACEOF |
30397 | ||
30398 | fi | |
30399 | ||
a106dabe | 30400 | echo "$as_me:$LINENO: checking for j1l in -lm" >&5 |
30401 | echo $ECHO_N "checking for j1l in -lm... $ECHO_C" >&6 | |
d213114b | 30402 | if test "${ac_cv_lib_m_j1l+set}" = set; then |
158e0e64 | 30403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
30404 | else | |
30405 | ac_check_lib_save_LIBS=$LIBS | |
30406 | LIBS="-lm $LIBS" | |
b52ee437 | 30407 | if test x$gcc_no_link = xyes; then |
30408 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30409 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30410 | { (exit 1); exit 1; }; } | |
30411 | fi | |
158e0e64 | 30412 | cat >conftest.$ac_ext <<_ACEOF |
30413 | /* confdefs.h. */ | |
30414 | _ACEOF | |
30415 | cat confdefs.h >>conftest.$ac_ext | |
30416 | cat >>conftest.$ac_ext <<_ACEOF | |
30417 | /* end confdefs.h. */ | |
30418 | ||
a106dabe | 30419 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 30420 | #ifdef __cplusplus |
30421 | extern "C" | |
30422 | #endif | |
a106dabe | 30423 | /* We use char because int might match the return type of a gcc2 |
30424 | builtin and then its argument prototype would still apply. */ | |
d213114b | 30425 | char j1l (); |
158e0e64 | 30426 | int |
30427 | main () | |
30428 | { | |
a106dabe | 30429 | j1l (); |
158e0e64 | 30430 | ; |
30431 | return 0; | |
30432 | } | |
30433 | _ACEOF | |
30434 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 30435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
30436 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 30437 | ac_status=$? |
30438 | grep -v '^ *+' conftest.er1 >conftest.err | |
30439 | rm -f conftest.er1 | |
30440 | cat conftest.err >&5 | |
30441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30442 | (exit $ac_status); } && | |
c0e8efbe | 30443 | { ac_try='test -z "$ac_c_werror_flag" |
30444 | || test ! -s conftest.err' | |
a106dabe | 30445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30446 | (eval $ac_try) 2>&5 | |
158e0e64 | 30447 | ac_status=$? |
30448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30449 | (exit $ac_status); }; } && | |
30450 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 30451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30452 | (eval $ac_try) 2>&5 | |
158e0e64 | 30453 | ac_status=$? |
30454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30455 | (exit $ac_status); }; }; then | |
d213114b | 30456 | ac_cv_lib_m_j1l=yes |
158e0e64 | 30457 | else |
30458 | echo "$as_me: failed program was:" >&5 | |
30459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30460 | ||
a106dabe | 30461 | ac_cv_lib_m_j1l=no |
158e0e64 | 30462 | fi |
a106dabe | 30463 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 30464 | conftest$ac_exeext conftest.$ac_ext |
30465 | LIBS=$ac_check_lib_save_LIBS | |
30466 | fi | |
a106dabe | 30467 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1l" >&5 |
30468 | echo "${ECHO_T}$ac_cv_lib_m_j1l" >&6 | |
d213114b | 30469 | if test $ac_cv_lib_m_j1l = yes; then |
158e0e64 | 30470 | |
30471 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 30472 | #define HAVE_J1L 1 |
158e0e64 | 30473 | _ACEOF |
30474 | ||
30475 | fi | |
30476 | ||
a106dabe | 30477 | echo "$as_me:$LINENO: checking for jnf in -lm" >&5 |
30478 | echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6 | |
d213114b | 30479 | if test "${ac_cv_lib_m_jnf+set}" = set; then |
158e0e64 | 30480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
30481 | else | |
30482 | ac_check_lib_save_LIBS=$LIBS | |
30483 | LIBS="-lm $LIBS" | |
b52ee437 | 30484 | if test x$gcc_no_link = xyes; then |
30485 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30486 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30487 | { (exit 1); exit 1; }; } | |
30488 | fi | |
158e0e64 | 30489 | cat >conftest.$ac_ext <<_ACEOF |
30490 | /* confdefs.h. */ | |
30491 | _ACEOF | |
30492 | cat confdefs.h >>conftest.$ac_ext | |
30493 | cat >>conftest.$ac_ext <<_ACEOF | |
30494 | /* end confdefs.h. */ | |
30495 | ||
a106dabe | 30496 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 30497 | #ifdef __cplusplus |
30498 | extern "C" | |
30499 | #endif | |
a106dabe | 30500 | /* We use char because int might match the return type of a gcc2 |
30501 | builtin and then its argument prototype would still apply. */ | |
d213114b | 30502 | char jnf (); |
158e0e64 | 30503 | int |
30504 | main () | |
30505 | { | |
a106dabe | 30506 | jnf (); |
158e0e64 | 30507 | ; |
30508 | return 0; | |
30509 | } | |
30510 | _ACEOF | |
30511 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 30512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
30513 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 30514 | ac_status=$? |
30515 | grep -v '^ *+' conftest.er1 >conftest.err | |
30516 | rm -f conftest.er1 | |
30517 | cat conftest.err >&5 | |
30518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30519 | (exit $ac_status); } && | |
c0e8efbe | 30520 | { ac_try='test -z "$ac_c_werror_flag" |
30521 | || test ! -s conftest.err' | |
a106dabe | 30522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30523 | (eval $ac_try) 2>&5 | |
158e0e64 | 30524 | ac_status=$? |
30525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30526 | (exit $ac_status); }; } && | |
30527 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 30528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30529 | (eval $ac_try) 2>&5 | |
158e0e64 | 30530 | ac_status=$? |
30531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30532 | (exit $ac_status); }; }; then | |
d213114b | 30533 | ac_cv_lib_m_jnf=yes |
158e0e64 | 30534 | else |
30535 | echo "$as_me: failed program was:" >&5 | |
30536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30537 | ||
a106dabe | 30538 | ac_cv_lib_m_jnf=no |
158e0e64 | 30539 | fi |
a106dabe | 30540 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 30541 | conftest$ac_exeext conftest.$ac_ext |
30542 | LIBS=$ac_check_lib_save_LIBS | |
30543 | fi | |
a106dabe | 30544 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5 |
30545 | echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6 | |
d213114b | 30546 | if test $ac_cv_lib_m_jnf = yes; then |
158e0e64 | 30547 | |
30548 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 30549 | #define HAVE_JNF 1 |
158e0e64 | 30550 | _ACEOF |
30551 | ||
30552 | fi | |
30553 | ||
a106dabe | 30554 | echo "$as_me:$LINENO: checking for jn in -lm" >&5 |
30555 | echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6 | |
d213114b | 30556 | if test "${ac_cv_lib_m_jn+set}" = set; then |
158e0e64 | 30557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
30558 | else | |
30559 | ac_check_lib_save_LIBS=$LIBS | |
30560 | LIBS="-lm $LIBS" | |
b52ee437 | 30561 | if test x$gcc_no_link = xyes; then |
30562 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30563 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30564 | { (exit 1); exit 1; }; } | |
30565 | fi | |
158e0e64 | 30566 | cat >conftest.$ac_ext <<_ACEOF |
30567 | /* confdefs.h. */ | |
30568 | _ACEOF | |
30569 | cat confdefs.h >>conftest.$ac_ext | |
30570 | cat >>conftest.$ac_ext <<_ACEOF | |
30571 | /* end confdefs.h. */ | |
30572 | ||
a106dabe | 30573 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 30574 | #ifdef __cplusplus |
30575 | extern "C" | |
30576 | #endif | |
a106dabe | 30577 | /* We use char because int might match the return type of a gcc2 |
30578 | builtin and then its argument prototype would still apply. */ | |
d213114b | 30579 | char jn (); |
158e0e64 | 30580 | int |
30581 | main () | |
30582 | { | |
a106dabe | 30583 | jn (); |
158e0e64 | 30584 | ; |
30585 | return 0; | |
30586 | } | |
30587 | _ACEOF | |
30588 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 30589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
30590 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 30591 | ac_status=$? |
30592 | grep -v '^ *+' conftest.er1 >conftest.err | |
30593 | rm -f conftest.er1 | |
30594 | cat conftest.err >&5 | |
30595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30596 | (exit $ac_status); } && | |
c0e8efbe | 30597 | { ac_try='test -z "$ac_c_werror_flag" |
30598 | || test ! -s conftest.err' | |
a106dabe | 30599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30600 | (eval $ac_try) 2>&5 | |
158e0e64 | 30601 | ac_status=$? |
30602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30603 | (exit $ac_status); }; } && | |
30604 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 30605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30606 | (eval $ac_try) 2>&5 | |
158e0e64 | 30607 | ac_status=$? |
30608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30609 | (exit $ac_status); }; }; then | |
d213114b | 30610 | ac_cv_lib_m_jn=yes |
158e0e64 | 30611 | else |
30612 | echo "$as_me: failed program was:" >&5 | |
30613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30614 | ||
a106dabe | 30615 | ac_cv_lib_m_jn=no |
158e0e64 | 30616 | fi |
a106dabe | 30617 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 30618 | conftest$ac_exeext conftest.$ac_ext |
30619 | LIBS=$ac_check_lib_save_LIBS | |
30620 | fi | |
a106dabe | 30621 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5 |
30622 | echo "${ECHO_T}$ac_cv_lib_m_jn" >&6 | |
d213114b | 30623 | if test $ac_cv_lib_m_jn = yes; then |
158e0e64 | 30624 | |
30625 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 30626 | #define HAVE_JN 1 |
158e0e64 | 30627 | _ACEOF |
30628 | ||
30629 | fi | |
30630 | ||
a106dabe | 30631 | echo "$as_me:$LINENO: checking for jnl in -lm" >&5 |
30632 | echo $ECHO_N "checking for jnl in -lm... $ECHO_C" >&6 | |
d213114b | 30633 | if test "${ac_cv_lib_m_jnl+set}" = set; then |
158e0e64 | 30634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
30635 | else | |
30636 | ac_check_lib_save_LIBS=$LIBS | |
30637 | LIBS="-lm $LIBS" | |
b52ee437 | 30638 | if test x$gcc_no_link = xyes; then |
30639 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30640 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30641 | { (exit 1); exit 1; }; } | |
30642 | fi | |
158e0e64 | 30643 | cat >conftest.$ac_ext <<_ACEOF |
30644 | /* confdefs.h. */ | |
30645 | _ACEOF | |
30646 | cat confdefs.h >>conftest.$ac_ext | |
30647 | cat >>conftest.$ac_ext <<_ACEOF | |
30648 | /* end confdefs.h. */ | |
30649 | ||
a106dabe | 30650 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 30651 | #ifdef __cplusplus |
30652 | extern "C" | |
30653 | #endif | |
a106dabe | 30654 | /* We use char because int might match the return type of a gcc2 |
30655 | builtin and then its argument prototype would still apply. */ | |
d213114b | 30656 | char jnl (); |
158e0e64 | 30657 | int |
30658 | main () | |
30659 | { | |
a106dabe | 30660 | jnl (); |
158e0e64 | 30661 | ; |
30662 | return 0; | |
30663 | } | |
30664 | _ACEOF | |
30665 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 30666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
30667 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 30668 | ac_status=$? |
30669 | grep -v '^ *+' conftest.er1 >conftest.err | |
30670 | rm -f conftest.er1 | |
30671 | cat conftest.err >&5 | |
30672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30673 | (exit $ac_status); } && | |
c0e8efbe | 30674 | { ac_try='test -z "$ac_c_werror_flag" |
30675 | || test ! -s conftest.err' | |
a106dabe | 30676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30677 | (eval $ac_try) 2>&5 | |
158e0e64 | 30678 | ac_status=$? |
30679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30680 | (exit $ac_status); }; } && | |
30681 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 30682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30683 | (eval $ac_try) 2>&5 | |
158e0e64 | 30684 | ac_status=$? |
30685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30686 | (exit $ac_status); }; }; then | |
d213114b | 30687 | ac_cv_lib_m_jnl=yes |
158e0e64 | 30688 | else |
30689 | echo "$as_me: failed program was:" >&5 | |
30690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30691 | ||
a106dabe | 30692 | ac_cv_lib_m_jnl=no |
158e0e64 | 30693 | fi |
a106dabe | 30694 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 30695 | conftest$ac_exeext conftest.$ac_ext |
30696 | LIBS=$ac_check_lib_save_LIBS | |
30697 | fi | |
a106dabe | 30698 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnl" >&5 |
30699 | echo "${ECHO_T}$ac_cv_lib_m_jnl" >&6 | |
d213114b | 30700 | if test $ac_cv_lib_m_jnl = yes; then |
158e0e64 | 30701 | |
30702 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 30703 | #define HAVE_JNL 1 |
158e0e64 | 30704 | _ACEOF |
30705 | ||
30706 | fi | |
30707 | ||
a106dabe | 30708 | echo "$as_me:$LINENO: checking for y0f in -lm" >&5 |
30709 | echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6 | |
d213114b | 30710 | if test "${ac_cv_lib_m_y0f+set}" = set; then |
158e0e64 | 30711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
30712 | else | |
30713 | ac_check_lib_save_LIBS=$LIBS | |
30714 | LIBS="-lm $LIBS" | |
b52ee437 | 30715 | if test x$gcc_no_link = xyes; then |
30716 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30717 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30718 | { (exit 1); exit 1; }; } | |
30719 | fi | |
158e0e64 | 30720 | cat >conftest.$ac_ext <<_ACEOF |
30721 | /* confdefs.h. */ | |
30722 | _ACEOF | |
30723 | cat confdefs.h >>conftest.$ac_ext | |
30724 | cat >>conftest.$ac_ext <<_ACEOF | |
30725 | /* end confdefs.h. */ | |
30726 | ||
a106dabe | 30727 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 30728 | #ifdef __cplusplus |
30729 | extern "C" | |
30730 | #endif | |
a106dabe | 30731 | /* We use char because int might match the return type of a gcc2 |
30732 | builtin and then its argument prototype would still apply. */ | |
d213114b | 30733 | char y0f (); |
158e0e64 | 30734 | int |
30735 | main () | |
30736 | { | |
a106dabe | 30737 | y0f (); |
158e0e64 | 30738 | ; |
30739 | return 0; | |
30740 | } | |
30741 | _ACEOF | |
30742 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 30743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
30744 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 30745 | ac_status=$? |
30746 | grep -v '^ *+' conftest.er1 >conftest.err | |
30747 | rm -f conftest.er1 | |
30748 | cat conftest.err >&5 | |
30749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30750 | (exit $ac_status); } && | |
c0e8efbe | 30751 | { ac_try='test -z "$ac_c_werror_flag" |
30752 | || test ! -s conftest.err' | |
a106dabe | 30753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30754 | (eval $ac_try) 2>&5 | |
158e0e64 | 30755 | ac_status=$? |
30756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30757 | (exit $ac_status); }; } && | |
30758 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 30759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30760 | (eval $ac_try) 2>&5 | |
158e0e64 | 30761 | ac_status=$? |
30762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30763 | (exit $ac_status); }; }; then | |
d213114b | 30764 | ac_cv_lib_m_y0f=yes |
158e0e64 | 30765 | else |
30766 | echo "$as_me: failed program was:" >&5 | |
30767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30768 | ||
a106dabe | 30769 | ac_cv_lib_m_y0f=no |
158e0e64 | 30770 | fi |
a106dabe | 30771 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 30772 | conftest$ac_exeext conftest.$ac_ext |
30773 | LIBS=$ac_check_lib_save_LIBS | |
30774 | fi | |
a106dabe | 30775 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5 |
30776 | echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6 | |
d213114b | 30777 | if test $ac_cv_lib_m_y0f = yes; then |
158e0e64 | 30778 | |
30779 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 30780 | #define HAVE_Y0F 1 |
158e0e64 | 30781 | _ACEOF |
30782 | ||
30783 | fi | |
30784 | ||
a106dabe | 30785 | echo "$as_me:$LINENO: checking for y0 in -lm" >&5 |
30786 | echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6 | |
d213114b | 30787 | if test "${ac_cv_lib_m_y0+set}" = set; then |
158e0e64 | 30788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
30789 | else | |
30790 | ac_check_lib_save_LIBS=$LIBS | |
30791 | LIBS="-lm $LIBS" | |
b52ee437 | 30792 | if test x$gcc_no_link = xyes; then |
30793 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30794 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30795 | { (exit 1); exit 1; }; } | |
30796 | fi | |
158e0e64 | 30797 | cat >conftest.$ac_ext <<_ACEOF |
30798 | /* confdefs.h. */ | |
30799 | _ACEOF | |
30800 | cat confdefs.h >>conftest.$ac_ext | |
30801 | cat >>conftest.$ac_ext <<_ACEOF | |
30802 | /* end confdefs.h. */ | |
30803 | ||
a106dabe | 30804 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 30805 | #ifdef __cplusplus |
30806 | extern "C" | |
30807 | #endif | |
a106dabe | 30808 | /* We use char because int might match the return type of a gcc2 |
30809 | builtin and then its argument prototype would still apply. */ | |
d213114b | 30810 | char y0 (); |
158e0e64 | 30811 | int |
30812 | main () | |
30813 | { | |
a106dabe | 30814 | y0 (); |
158e0e64 | 30815 | ; |
30816 | return 0; | |
30817 | } | |
30818 | _ACEOF | |
30819 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 30820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
30821 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 30822 | ac_status=$? |
30823 | grep -v '^ *+' conftest.er1 >conftest.err | |
30824 | rm -f conftest.er1 | |
30825 | cat conftest.err >&5 | |
30826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30827 | (exit $ac_status); } && | |
c0e8efbe | 30828 | { ac_try='test -z "$ac_c_werror_flag" |
30829 | || test ! -s conftest.err' | |
a106dabe | 30830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30831 | (eval $ac_try) 2>&5 | |
158e0e64 | 30832 | ac_status=$? |
30833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30834 | (exit $ac_status); }; } && | |
30835 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 30836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30837 | (eval $ac_try) 2>&5 | |
158e0e64 | 30838 | ac_status=$? |
30839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30840 | (exit $ac_status); }; }; then | |
d213114b | 30841 | ac_cv_lib_m_y0=yes |
158e0e64 | 30842 | else |
30843 | echo "$as_me: failed program was:" >&5 | |
30844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30845 | ||
a106dabe | 30846 | ac_cv_lib_m_y0=no |
158e0e64 | 30847 | fi |
a106dabe | 30848 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 30849 | conftest$ac_exeext conftest.$ac_ext |
30850 | LIBS=$ac_check_lib_save_LIBS | |
30851 | fi | |
a106dabe | 30852 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5 |
30853 | echo "${ECHO_T}$ac_cv_lib_m_y0" >&6 | |
d213114b | 30854 | if test $ac_cv_lib_m_y0 = yes; then |
158e0e64 | 30855 | |
30856 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 30857 | #define HAVE_Y0 1 |
158e0e64 | 30858 | _ACEOF |
30859 | ||
30860 | fi | |
30861 | ||
a106dabe | 30862 | echo "$as_me:$LINENO: checking for y0l in -lm" >&5 |
30863 | echo $ECHO_N "checking for y0l in -lm... $ECHO_C" >&6 | |
d213114b | 30864 | if test "${ac_cv_lib_m_y0l+set}" = set; then |
158e0e64 | 30865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
30866 | else | |
30867 | ac_check_lib_save_LIBS=$LIBS | |
30868 | LIBS="-lm $LIBS" | |
b52ee437 | 30869 | if test x$gcc_no_link = xyes; then |
30870 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30871 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30872 | { (exit 1); exit 1; }; } | |
30873 | fi | |
158e0e64 | 30874 | cat >conftest.$ac_ext <<_ACEOF |
30875 | /* confdefs.h. */ | |
30876 | _ACEOF | |
30877 | cat confdefs.h >>conftest.$ac_ext | |
30878 | cat >>conftest.$ac_ext <<_ACEOF | |
30879 | /* end confdefs.h. */ | |
30880 | ||
a106dabe | 30881 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 30882 | #ifdef __cplusplus |
30883 | extern "C" | |
30884 | #endif | |
a106dabe | 30885 | /* We use char because int might match the return type of a gcc2 |
30886 | builtin and then its argument prototype would still apply. */ | |
d213114b | 30887 | char y0l (); |
158e0e64 | 30888 | int |
30889 | main () | |
30890 | { | |
a106dabe | 30891 | y0l (); |
158e0e64 | 30892 | ; |
30893 | return 0; | |
30894 | } | |
30895 | _ACEOF | |
30896 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 30897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
30898 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 30899 | ac_status=$? |
30900 | grep -v '^ *+' conftest.er1 >conftest.err | |
30901 | rm -f conftest.er1 | |
30902 | cat conftest.err >&5 | |
30903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30904 | (exit $ac_status); } && | |
c0e8efbe | 30905 | { ac_try='test -z "$ac_c_werror_flag" |
30906 | || test ! -s conftest.err' | |
a106dabe | 30907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30908 | (eval $ac_try) 2>&5 | |
158e0e64 | 30909 | ac_status=$? |
30910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30911 | (exit $ac_status); }; } && | |
30912 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 30913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30914 | (eval $ac_try) 2>&5 | |
158e0e64 | 30915 | ac_status=$? |
30916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30917 | (exit $ac_status); }; }; then | |
d213114b | 30918 | ac_cv_lib_m_y0l=yes |
158e0e64 | 30919 | else |
30920 | echo "$as_me: failed program was:" >&5 | |
30921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30922 | ||
a106dabe | 30923 | ac_cv_lib_m_y0l=no |
158e0e64 | 30924 | fi |
a106dabe | 30925 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 30926 | conftest$ac_exeext conftest.$ac_ext |
30927 | LIBS=$ac_check_lib_save_LIBS | |
30928 | fi | |
a106dabe | 30929 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0l" >&5 |
30930 | echo "${ECHO_T}$ac_cv_lib_m_y0l" >&6 | |
d213114b | 30931 | if test $ac_cv_lib_m_y0l = yes; then |
158e0e64 | 30932 | |
30933 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 30934 | #define HAVE_Y0L 1 |
158e0e64 | 30935 | _ACEOF |
30936 | ||
30937 | fi | |
30938 | ||
a106dabe | 30939 | echo "$as_me:$LINENO: checking for y1f in -lm" >&5 |
30940 | echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6 | |
d213114b | 30941 | if test "${ac_cv_lib_m_y1f+set}" = set; then |
158e0e64 | 30942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
30943 | else | |
30944 | ac_check_lib_save_LIBS=$LIBS | |
30945 | LIBS="-lm $LIBS" | |
b52ee437 | 30946 | if test x$gcc_no_link = xyes; then |
30947 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30948 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30949 | { (exit 1); exit 1; }; } | |
30950 | fi | |
158e0e64 | 30951 | cat >conftest.$ac_ext <<_ACEOF |
30952 | /* confdefs.h. */ | |
30953 | _ACEOF | |
30954 | cat confdefs.h >>conftest.$ac_ext | |
30955 | cat >>conftest.$ac_ext <<_ACEOF | |
30956 | /* end confdefs.h. */ | |
30957 | ||
a106dabe | 30958 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 30959 | #ifdef __cplusplus |
30960 | extern "C" | |
30961 | #endif | |
a106dabe | 30962 | /* We use char because int might match the return type of a gcc2 |
30963 | builtin and then its argument prototype would still apply. */ | |
d213114b | 30964 | char y1f (); |
158e0e64 | 30965 | int |
30966 | main () | |
30967 | { | |
a106dabe | 30968 | y1f (); |
158e0e64 | 30969 | ; |
30970 | return 0; | |
30971 | } | |
30972 | _ACEOF | |
30973 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 30974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
30975 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 30976 | ac_status=$? |
30977 | grep -v '^ *+' conftest.er1 >conftest.err | |
30978 | rm -f conftest.er1 | |
30979 | cat conftest.err >&5 | |
30980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30981 | (exit $ac_status); } && | |
c0e8efbe | 30982 | { ac_try='test -z "$ac_c_werror_flag" |
30983 | || test ! -s conftest.err' | |
a106dabe | 30984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30985 | (eval $ac_try) 2>&5 | |
158e0e64 | 30986 | ac_status=$? |
30987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30988 | (exit $ac_status); }; } && | |
30989 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 30990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30991 | (eval $ac_try) 2>&5 | |
158e0e64 | 30992 | ac_status=$? |
30993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30994 | (exit $ac_status); }; }; then | |
d213114b | 30995 | ac_cv_lib_m_y1f=yes |
158e0e64 | 30996 | else |
30997 | echo "$as_me: failed program was:" >&5 | |
30998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30999 | ||
a106dabe | 31000 | ac_cv_lib_m_y1f=no |
158e0e64 | 31001 | fi |
a106dabe | 31002 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31003 | conftest$ac_exeext conftest.$ac_ext |
31004 | LIBS=$ac_check_lib_save_LIBS | |
31005 | fi | |
a106dabe | 31006 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5 |
31007 | echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6 | |
d213114b | 31008 | if test $ac_cv_lib_m_y1f = yes; then |
158e0e64 | 31009 | |
31010 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31011 | #define HAVE_Y1F 1 |
158e0e64 | 31012 | _ACEOF |
31013 | ||
31014 | fi | |
31015 | ||
a106dabe | 31016 | echo "$as_me:$LINENO: checking for y1 in -lm" >&5 |
31017 | echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6 | |
d213114b | 31018 | if test "${ac_cv_lib_m_y1+set}" = set; then |
158e0e64 | 31019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31020 | else | |
31021 | ac_check_lib_save_LIBS=$LIBS | |
31022 | LIBS="-lm $LIBS" | |
b52ee437 | 31023 | if test x$gcc_no_link = xyes; then |
31024 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31025 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31026 | { (exit 1); exit 1; }; } | |
31027 | fi | |
158e0e64 | 31028 | cat >conftest.$ac_ext <<_ACEOF |
31029 | /* confdefs.h. */ | |
31030 | _ACEOF | |
31031 | cat confdefs.h >>conftest.$ac_ext | |
31032 | cat >>conftest.$ac_ext <<_ACEOF | |
31033 | /* end confdefs.h. */ | |
31034 | ||
a106dabe | 31035 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 31036 | #ifdef __cplusplus |
31037 | extern "C" | |
31038 | #endif | |
a106dabe | 31039 | /* We use char because int might match the return type of a gcc2 |
31040 | builtin and then its argument prototype would still apply. */ | |
d213114b | 31041 | char y1 (); |
158e0e64 | 31042 | int |
31043 | main () | |
31044 | { | |
a106dabe | 31045 | y1 (); |
158e0e64 | 31046 | ; |
31047 | return 0; | |
31048 | } | |
31049 | _ACEOF | |
31050 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 31051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
31052 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 31053 | ac_status=$? |
31054 | grep -v '^ *+' conftest.er1 >conftest.err | |
31055 | rm -f conftest.er1 | |
31056 | cat conftest.err >&5 | |
31057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31058 | (exit $ac_status); } && | |
c0e8efbe | 31059 | { ac_try='test -z "$ac_c_werror_flag" |
31060 | || test ! -s conftest.err' | |
a106dabe | 31061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31062 | (eval $ac_try) 2>&5 | |
158e0e64 | 31063 | ac_status=$? |
31064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31065 | (exit $ac_status); }; } && | |
31066 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 31067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31068 | (eval $ac_try) 2>&5 | |
158e0e64 | 31069 | ac_status=$? |
31070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31071 | (exit $ac_status); }; }; then | |
d213114b | 31072 | ac_cv_lib_m_y1=yes |
158e0e64 | 31073 | else |
31074 | echo "$as_me: failed program was:" >&5 | |
31075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31076 | ||
a106dabe | 31077 | ac_cv_lib_m_y1=no |
158e0e64 | 31078 | fi |
a106dabe | 31079 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31080 | conftest$ac_exeext conftest.$ac_ext |
31081 | LIBS=$ac_check_lib_save_LIBS | |
31082 | fi | |
a106dabe | 31083 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5 |
31084 | echo "${ECHO_T}$ac_cv_lib_m_y1" >&6 | |
d213114b | 31085 | if test $ac_cv_lib_m_y1 = yes; then |
158e0e64 | 31086 | |
31087 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31088 | #define HAVE_Y1 1 |
158e0e64 | 31089 | _ACEOF |
31090 | ||
31091 | fi | |
31092 | ||
a106dabe | 31093 | echo "$as_me:$LINENO: checking for y1l in -lm" >&5 |
31094 | echo $ECHO_N "checking for y1l in -lm... $ECHO_C" >&6 | |
d213114b | 31095 | if test "${ac_cv_lib_m_y1l+set}" = set; then |
158e0e64 | 31096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31097 | else | |
31098 | ac_check_lib_save_LIBS=$LIBS | |
31099 | LIBS="-lm $LIBS" | |
b52ee437 | 31100 | if test x$gcc_no_link = xyes; then |
31101 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31102 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31103 | { (exit 1); exit 1; }; } | |
31104 | fi | |
158e0e64 | 31105 | cat >conftest.$ac_ext <<_ACEOF |
31106 | /* confdefs.h. */ | |
31107 | _ACEOF | |
31108 | cat confdefs.h >>conftest.$ac_ext | |
31109 | cat >>conftest.$ac_ext <<_ACEOF | |
31110 | /* end confdefs.h. */ | |
31111 | ||
a106dabe | 31112 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 31113 | #ifdef __cplusplus |
31114 | extern "C" | |
31115 | #endif | |
a106dabe | 31116 | /* We use char because int might match the return type of a gcc2 |
31117 | builtin and then its argument prototype would still apply. */ | |
d213114b | 31118 | char y1l (); |
158e0e64 | 31119 | int |
31120 | main () | |
31121 | { | |
a106dabe | 31122 | y1l (); |
158e0e64 | 31123 | ; |
31124 | return 0; | |
31125 | } | |
31126 | _ACEOF | |
31127 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 31128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
31129 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 31130 | ac_status=$? |
31131 | grep -v '^ *+' conftest.er1 >conftest.err | |
31132 | rm -f conftest.er1 | |
31133 | cat conftest.err >&5 | |
31134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31135 | (exit $ac_status); } && | |
c0e8efbe | 31136 | { ac_try='test -z "$ac_c_werror_flag" |
31137 | || test ! -s conftest.err' | |
a106dabe | 31138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31139 | (eval $ac_try) 2>&5 | |
158e0e64 | 31140 | ac_status=$? |
31141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31142 | (exit $ac_status); }; } && | |
31143 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 31144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31145 | (eval $ac_try) 2>&5 | |
158e0e64 | 31146 | ac_status=$? |
31147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31148 | (exit $ac_status); }; }; then | |
d213114b | 31149 | ac_cv_lib_m_y1l=yes |
158e0e64 | 31150 | else |
31151 | echo "$as_me: failed program was:" >&5 | |
31152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31153 | ||
a106dabe | 31154 | ac_cv_lib_m_y1l=no |
158e0e64 | 31155 | fi |
a106dabe | 31156 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31157 | conftest$ac_exeext conftest.$ac_ext |
31158 | LIBS=$ac_check_lib_save_LIBS | |
31159 | fi | |
a106dabe | 31160 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1l" >&5 |
31161 | echo "${ECHO_T}$ac_cv_lib_m_y1l" >&6 | |
d213114b | 31162 | if test $ac_cv_lib_m_y1l = yes; then |
158e0e64 | 31163 | |
31164 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31165 | #define HAVE_Y1L 1 |
158e0e64 | 31166 | _ACEOF |
31167 | ||
31168 | fi | |
31169 | ||
a106dabe | 31170 | echo "$as_me:$LINENO: checking for ynf in -lm" >&5 |
31171 | echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6 | |
d213114b | 31172 | if test "${ac_cv_lib_m_ynf+set}" = set; then |
158e0e64 | 31173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31174 | else | |
31175 | ac_check_lib_save_LIBS=$LIBS | |
31176 | LIBS="-lm $LIBS" | |
b52ee437 | 31177 | if test x$gcc_no_link = xyes; then |
31178 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31179 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31180 | { (exit 1); exit 1; }; } | |
31181 | fi | |
158e0e64 | 31182 | cat >conftest.$ac_ext <<_ACEOF |
31183 | /* confdefs.h. */ | |
31184 | _ACEOF | |
31185 | cat confdefs.h >>conftest.$ac_ext | |
31186 | cat >>conftest.$ac_ext <<_ACEOF | |
31187 | /* end confdefs.h. */ | |
31188 | ||
a106dabe | 31189 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 31190 | #ifdef __cplusplus |
31191 | extern "C" | |
31192 | #endif | |
a106dabe | 31193 | /* We use char because int might match the return type of a gcc2 |
31194 | builtin and then its argument prototype would still apply. */ | |
d213114b | 31195 | char ynf (); |
158e0e64 | 31196 | int |
31197 | main () | |
31198 | { | |
a106dabe | 31199 | ynf (); |
158e0e64 | 31200 | ; |
31201 | return 0; | |
31202 | } | |
31203 | _ACEOF | |
31204 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 31205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
31206 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 31207 | ac_status=$? |
31208 | grep -v '^ *+' conftest.er1 >conftest.err | |
31209 | rm -f conftest.er1 | |
31210 | cat conftest.err >&5 | |
31211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31212 | (exit $ac_status); } && | |
c0e8efbe | 31213 | { ac_try='test -z "$ac_c_werror_flag" |
31214 | || test ! -s conftest.err' | |
a106dabe | 31215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31216 | (eval $ac_try) 2>&5 | |
158e0e64 | 31217 | ac_status=$? |
31218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31219 | (exit $ac_status); }; } && | |
31220 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 31221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31222 | (eval $ac_try) 2>&5 | |
158e0e64 | 31223 | ac_status=$? |
31224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31225 | (exit $ac_status); }; }; then | |
d213114b | 31226 | ac_cv_lib_m_ynf=yes |
158e0e64 | 31227 | else |
31228 | echo "$as_me: failed program was:" >&5 | |
31229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31230 | ||
a106dabe | 31231 | ac_cv_lib_m_ynf=no |
158e0e64 | 31232 | fi |
a106dabe | 31233 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31234 | conftest$ac_exeext conftest.$ac_ext |
31235 | LIBS=$ac_check_lib_save_LIBS | |
31236 | fi | |
a106dabe | 31237 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5 |
31238 | echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6 | |
d213114b | 31239 | if test $ac_cv_lib_m_ynf = yes; then |
158e0e64 | 31240 | |
31241 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31242 | #define HAVE_YNF 1 |
158e0e64 | 31243 | _ACEOF |
31244 | ||
31245 | fi | |
31246 | ||
a106dabe | 31247 | echo "$as_me:$LINENO: checking for yn in -lm" >&5 |
31248 | echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6 | |
158e0e64 | 31249 | if test "${ac_cv_lib_m_yn+set}" = set; then |
31250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31251 | else | |
31252 | ac_check_lib_save_LIBS=$LIBS | |
31253 | LIBS="-lm $LIBS" | |
b52ee437 | 31254 | if test x$gcc_no_link = xyes; then |
31255 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31256 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31257 | { (exit 1); exit 1; }; } | |
31258 | fi | |
158e0e64 | 31259 | cat >conftest.$ac_ext <<_ACEOF |
31260 | /* confdefs.h. */ | |
31261 | _ACEOF | |
31262 | cat confdefs.h >>conftest.$ac_ext | |
31263 | cat >>conftest.$ac_ext <<_ACEOF | |
31264 | /* end confdefs.h. */ | |
31265 | ||
a106dabe | 31266 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 31267 | #ifdef __cplusplus |
31268 | extern "C" | |
31269 | #endif | |
a106dabe | 31270 | /* We use char because int might match the return type of a gcc2 |
31271 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 31272 | char yn (); |
31273 | int | |
31274 | main () | |
31275 | { | |
a106dabe | 31276 | yn (); |
158e0e64 | 31277 | ; |
31278 | return 0; | |
31279 | } | |
31280 | _ACEOF | |
31281 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 31282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
31283 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 31284 | ac_status=$? |
31285 | grep -v '^ *+' conftest.er1 >conftest.err | |
31286 | rm -f conftest.er1 | |
31287 | cat conftest.err >&5 | |
31288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31289 | (exit $ac_status); } && | |
c0e8efbe | 31290 | { ac_try='test -z "$ac_c_werror_flag" |
31291 | || test ! -s conftest.err' | |
a106dabe | 31292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31293 | (eval $ac_try) 2>&5 | |
158e0e64 | 31294 | ac_status=$? |
31295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31296 | (exit $ac_status); }; } && | |
31297 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 31298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31299 | (eval $ac_try) 2>&5 | |
158e0e64 | 31300 | ac_status=$? |
31301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31302 | (exit $ac_status); }; }; then | |
31303 | ac_cv_lib_m_yn=yes | |
31304 | else | |
31305 | echo "$as_me: failed program was:" >&5 | |
31306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31307 | ||
a106dabe | 31308 | ac_cv_lib_m_yn=no |
158e0e64 | 31309 | fi |
a106dabe | 31310 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31311 | conftest$ac_exeext conftest.$ac_ext |
31312 | LIBS=$ac_check_lib_save_LIBS | |
31313 | fi | |
a106dabe | 31314 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5 |
31315 | echo "${ECHO_T}$ac_cv_lib_m_yn" >&6 | |
158e0e64 | 31316 | if test $ac_cv_lib_m_yn = yes; then |
31317 | ||
31318 | cat >>confdefs.h <<\_ACEOF | |
31319 | #define HAVE_YN 1 | |
31320 | _ACEOF | |
31321 | ||
31322 | fi | |
31323 | ||
a106dabe | 31324 | echo "$as_me:$LINENO: checking for ynl in -lm" >&5 |
31325 | echo $ECHO_N "checking for ynl in -lm... $ECHO_C" >&6 | |
d213114b | 31326 | if test "${ac_cv_lib_m_ynl+set}" = set; then |
158e0e64 | 31327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31328 | else | |
31329 | ac_check_lib_save_LIBS=$LIBS | |
31330 | LIBS="-lm $LIBS" | |
b52ee437 | 31331 | if test x$gcc_no_link = xyes; then |
31332 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31333 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31334 | { (exit 1); exit 1; }; } | |
31335 | fi | |
158e0e64 | 31336 | cat >conftest.$ac_ext <<_ACEOF |
31337 | /* confdefs.h. */ | |
31338 | _ACEOF | |
31339 | cat confdefs.h >>conftest.$ac_ext | |
31340 | cat >>conftest.$ac_ext <<_ACEOF | |
31341 | /* end confdefs.h. */ | |
31342 | ||
a106dabe | 31343 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 31344 | #ifdef __cplusplus |
31345 | extern "C" | |
31346 | #endif | |
a106dabe | 31347 | /* We use char because int might match the return type of a gcc2 |
31348 | builtin and then its argument prototype would still apply. */ | |
d213114b | 31349 | char ynl (); |
158e0e64 | 31350 | int |
31351 | main () | |
31352 | { | |
a106dabe | 31353 | ynl (); |
158e0e64 | 31354 | ; |
31355 | return 0; | |
31356 | } | |
31357 | _ACEOF | |
31358 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 31359 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
31360 | (eval $ac_link) 2>conftest.er1 | |
158e0e64 | 31361 | ac_status=$? |
31362 | grep -v '^ *+' conftest.er1 >conftest.err | |
31363 | rm -f conftest.er1 | |
31364 | cat conftest.err >&5 | |
31365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31366 | (exit $ac_status); } && | |
c0e8efbe | 31367 | { ac_try='test -z "$ac_c_werror_flag" |
31368 | || test ! -s conftest.err' | |
a106dabe | 31369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31370 | (eval $ac_try) 2>&5 | |
158e0e64 | 31371 | ac_status=$? |
31372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31373 | (exit $ac_status); }; } && | |
31374 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 31375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31376 | (eval $ac_try) 2>&5 | |
158e0e64 | 31377 | ac_status=$? |
31378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31379 | (exit $ac_status); }; }; then | |
d213114b | 31380 | ac_cv_lib_m_ynl=yes |
158e0e64 | 31381 | else |
31382 | echo "$as_me: failed program was:" >&5 | |
31383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31384 | ||
a106dabe | 31385 | ac_cv_lib_m_ynl=no |
158e0e64 | 31386 | fi |
a106dabe | 31387 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31388 | conftest$ac_exeext conftest.$ac_ext |
31389 | LIBS=$ac_check_lib_save_LIBS | |
31390 | fi | |
a106dabe | 31391 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynl" >&5 |
31392 | echo "${ECHO_T}$ac_cv_lib_m_ynl" >&6 | |
d213114b | 31393 | if test $ac_cv_lib_m_ynl = yes; then |
158e0e64 | 31394 | |
31395 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31396 | #define HAVE_YNL 1 |
158e0e64 | 31397 | _ACEOF |
31398 | ||
31399 | fi | |
31400 | ||
a31bd8a4 | 31401 | |
839904a0 | 31402 | # On AIX, clog is present in libm as __clog |
a106dabe | 31403 | echo "$as_me:$LINENO: checking for __clog in -lm" >&5 |
31404 | echo $ECHO_N "checking for __clog in -lm... $ECHO_C" >&6 | |
62a413d5 | 31405 | if test "${ac_cv_lib_m___clog+set}" = set; then |
31406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31407 | else | |
31408 | ac_check_lib_save_LIBS=$LIBS | |
31409 | LIBS="-lm $LIBS" | |
31410 | if test x$gcc_no_link = xyes; then | |
31411 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31412 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31413 | { (exit 1); exit 1; }; } | |
31414 | fi | |
31415 | cat >conftest.$ac_ext <<_ACEOF | |
31416 | /* confdefs.h. */ | |
31417 | _ACEOF | |
31418 | cat confdefs.h >>conftest.$ac_ext | |
31419 | cat >>conftest.$ac_ext <<_ACEOF | |
31420 | /* end confdefs.h. */ | |
31421 | ||
a106dabe | 31422 | /* Override any gcc2 internal prototype to avoid an error. */ |
62a413d5 | 31423 | #ifdef __cplusplus |
31424 | extern "C" | |
31425 | #endif | |
a106dabe | 31426 | /* We use char because int might match the return type of a gcc2 |
31427 | builtin and then its argument prototype would still apply. */ | |
62a413d5 | 31428 | char __clog (); |
31429 | int | |
31430 | main () | |
31431 | { | |
a106dabe | 31432 | __clog (); |
62a413d5 | 31433 | ; |
31434 | return 0; | |
31435 | } | |
31436 | _ACEOF | |
31437 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 31438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
31439 | (eval $ac_link) 2>conftest.er1 | |
62a413d5 | 31440 | ac_status=$? |
31441 | grep -v '^ *+' conftest.er1 >conftest.err | |
31442 | rm -f conftest.er1 | |
31443 | cat conftest.err >&5 | |
31444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31445 | (exit $ac_status); } && | |
c0e8efbe | 31446 | { ac_try='test -z "$ac_c_werror_flag" |
31447 | || test ! -s conftest.err' | |
a106dabe | 31448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31449 | (eval $ac_try) 2>&5 | |
62a413d5 | 31450 | ac_status=$? |
31451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31452 | (exit $ac_status); }; } && | |
31453 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 31454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31455 | (eval $ac_try) 2>&5 | |
62a413d5 | 31456 | ac_status=$? |
31457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31458 | (exit $ac_status); }; }; then | |
31459 | ac_cv_lib_m___clog=yes | |
31460 | else | |
31461 | echo "$as_me: failed program was:" >&5 | |
31462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31463 | ||
a106dabe | 31464 | ac_cv_lib_m___clog=no |
62a413d5 | 31465 | fi |
a106dabe | 31466 | rm -f conftest.err conftest.$ac_objext \ |
62a413d5 | 31467 | conftest$ac_exeext conftest.$ac_ext |
31468 | LIBS=$ac_check_lib_save_LIBS | |
31469 | fi | |
a106dabe | 31470 | echo "$as_me:$LINENO: result: $ac_cv_lib_m___clog" >&5 |
31471 | echo "${ECHO_T}$ac_cv_lib_m___clog" >&6 | |
62a413d5 | 31472 | if test $ac_cv_lib_m___clog = yes; then |
31473 | ||
31474 | cat >>confdefs.h <<\_ACEOF | |
31475 | #define HAVE_CLOG 1 | |
31476 | _ACEOF | |
31477 | ||
31478 | fi | |
31479 | ||
31480 | ||
839904a0 | 31481 | # Check for a isfinite macro that works on long doubles. |
31482 | ||
a106dabe | 31483 | echo "$as_me:$LINENO: checking whether isfinite is broken" >&5 |
31484 | echo $ECHO_N "checking whether isfinite is broken... $ECHO_C" >&6 | |
839904a0 | 31485 | if test "${have_broken_isfinite+set}" = set; then |
31486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31487 | else | |
31488 | ||
31489 | libgfor_check_for_broken_isfinite_save_LIBS=$LIBS | |
31490 | LIBS="$LIBS -lm" | |
31491 | if test "$cross_compiling" = yes; then | |
31492 | ||
31493 | case "${target}" in | |
31494 | hppa*-*-hpux*) have_broken_isfinite=yes ;; | |
31495 | *) have_broken_isfinite=no ;; | |
31496 | esac | |
31497 | else | |
31498 | cat >conftest.$ac_ext <<_ACEOF | |
31499 | /* confdefs.h. */ | |
31500 | _ACEOF | |
31501 | cat confdefs.h >>conftest.$ac_ext | |
31502 | cat >>conftest.$ac_ext <<_ACEOF | |
31503 | /* end confdefs.h. */ | |
31504 | ||
31505 | #ifdef HAVE_MATH_H | |
31506 | #include <math.h> | |
31507 | #endif | |
31508 | #include <float.h> | |
31509 | int main () | |
31510 | { | |
31511 | #ifdef isfinite | |
31512 | #ifdef LDBL_MAX | |
31513 | if (!isfinite(LDBL_MAX)) return 1; | |
31514 | #endif | |
31515 | #ifdef DBL_MAX | |
31516 | if (!isfinite(DBL_MAX)) return 1; | |
31517 | #endif | |
31518 | #endif | |
31519 | return 0; | |
31520 | } | |
31521 | _ACEOF | |
31522 | rm -f conftest$ac_exeext | |
a106dabe | 31523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
31524 | (eval $ac_link) 2>&5 | |
839904a0 | 31525 | ac_status=$? |
31526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31527 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a106dabe | 31528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31529 | (eval $ac_try) 2>&5 | |
839904a0 | 31530 | ac_status=$? |
31531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31532 | (exit $ac_status); }; }; then | |
31533 | have_broken_isfinite=no | |
31534 | else | |
31535 | echo "$as_me: program exited with status $ac_status" >&5 | |
31536 | echo "$as_me: failed program was:" >&5 | |
31537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31538 | ||
31539 | ( exit $ac_status ) | |
31540 | have_broken_isfinite=yes | |
31541 | fi | |
a106dabe | 31542 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
839904a0 | 31543 | fi |
31544 | LIBS=$libgfor_check_for_broken_isfinite_save_LIBS | |
31545 | fi | |
a106dabe | 31546 | echo "$as_me:$LINENO: result: $have_broken_isfinite" >&5 |
31547 | echo "${ECHO_T}$have_broken_isfinite" >&6 | |
839904a0 | 31548 | if test x"$have_broken_isfinite" = xyes; then |
31549 | ||
31550 | cat >>confdefs.h <<\_ACEOF | |
31551 | #define HAVE_BROKEN_ISFINITE 1 | |
31552 | _ACEOF | |
31553 | ||
31554 | fi | |
31555 | ||
31556 | # Check for a isnan macro that works on long doubles. | |
31557 | ||
a106dabe | 31558 | echo "$as_me:$LINENO: checking whether isnan is broken" >&5 |
31559 | echo $ECHO_N "checking whether isnan is broken... $ECHO_C" >&6 | |
839904a0 | 31560 | if test "${have_broken_isnan+set}" = set; then |
31561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31562 | else | |
31563 | ||
31564 | libgfor_check_for_broken_isnan_save_LIBS=$LIBS | |
31565 | LIBS="$LIBS -lm" | |
31566 | if test "$cross_compiling" = yes; then | |
31567 | ||
31568 | case "${target}" in | |
31569 | hppa*-*-hpux*) have_broken_isnan=yes ;; | |
31570 | *) have_broken_isnan=no ;; | |
31571 | esac | |
31572 | else | |
31573 | cat >conftest.$ac_ext <<_ACEOF | |
31574 | /* confdefs.h. */ | |
31575 | _ACEOF | |
31576 | cat confdefs.h >>conftest.$ac_ext | |
31577 | cat >>conftest.$ac_ext <<_ACEOF | |
31578 | /* end confdefs.h. */ | |
31579 | ||
31580 | #ifdef HAVE_MATH_H | |
31581 | #include <math.h> | |
31582 | #endif | |
31583 | #include <float.h> | |
31584 | int main () | |
31585 | { | |
31586 | #ifdef isnan | |
31587 | #ifdef LDBL_MAX | |
31588 | { | |
31589 | long double x; | |
31590 | x = __builtin_nanl (""); | |
31591 | if (!isnan(x)) return 1; | |
31592 | if (isnan(LDBL_MAX)) return 1; | |
31593 | #ifdef NAN | |
31594 | x = (long double) NAN; | |
31595 | if (!isnan(x)) return 1; | |
31596 | #endif | |
31597 | } | |
31598 | #endif | |
31599 | #ifdef DBL_MAX | |
31600 | { | |
31601 | double y; | |
31602 | y = __builtin_nan (""); | |
31603 | if (!isnan(y)) return 1; | |
31604 | if (isnan(DBL_MAX)) return 1; | |
31605 | #ifdef NAN | |
31606 | y = (double) NAN; | |
31607 | if (!isnan(y)) return 1; | |
31608 | #endif | |
31609 | } | |
31610 | #endif | |
31611 | #endif | |
31612 | return 0; | |
31613 | } | |
31614 | _ACEOF | |
31615 | rm -f conftest$ac_exeext | |
a106dabe | 31616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
31617 | (eval $ac_link) 2>&5 | |
839904a0 | 31618 | ac_status=$? |
31619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31620 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a106dabe | 31621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31622 | (eval $ac_try) 2>&5 | |
839904a0 | 31623 | ac_status=$? |
31624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31625 | (exit $ac_status); }; }; then | |
31626 | have_broken_isnan=no | |
31627 | else | |
31628 | echo "$as_me: program exited with status $ac_status" >&5 | |
31629 | echo "$as_me: failed program was:" >&5 | |
31630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31631 | ||
31632 | ( exit $ac_status ) | |
31633 | have_broken_isnan=yes | |
31634 | fi | |
a106dabe | 31635 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
839904a0 | 31636 | fi |
31637 | LIBS=$libgfor_check_for_broken_isnan_save_LIBS | |
31638 | fi | |
a106dabe | 31639 | echo "$as_me:$LINENO: result: $have_broken_isnan" >&5 |
31640 | echo "${ECHO_T}$have_broken_isnan" >&6 | |
839904a0 | 31641 | if test x"$have_broken_isnan" = xyes; then |
31642 | ||
31643 | cat >>confdefs.h <<\_ACEOF | |
31644 | #define HAVE_BROKEN_ISNAN 1 | |
31645 | _ACEOF | |
31646 | ||
31647 | fi | |
31648 | ||
31649 | # Check for a fpclassify macro that works on long doubles. | |
31650 | ||
a106dabe | 31651 | echo "$as_me:$LINENO: checking whether fpclassify is broken" >&5 |
31652 | echo $ECHO_N "checking whether fpclassify is broken... $ECHO_C" >&6 | |
839904a0 | 31653 | if test "${have_broken_fpclassify+set}" = set; then |
31654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31655 | else | |
31656 | ||
31657 | libgfor_check_for_broken_fpclassify_save_LIBS=$LIBS | |
31658 | LIBS="$LIBS -lm" | |
31659 | if test "$cross_compiling" = yes; then | |
31660 | ||
31661 | case "${target}" in | |
31662 | hppa*-*-hpux*) have_broken_fpclassify=yes ;; | |
31663 | *) have_broken_fpclassify=no ;; | |
31664 | esac | |
31665 | else | |
31666 | cat >conftest.$ac_ext <<_ACEOF | |
31667 | /* confdefs.h. */ | |
31668 | _ACEOF | |
31669 | cat confdefs.h >>conftest.$ac_ext | |
31670 | cat >>conftest.$ac_ext <<_ACEOF | |
31671 | /* end confdefs.h. */ | |
31672 | ||
31673 | #ifdef HAVE_MATH_H | |
31674 | #include <math.h> | |
31675 | #endif | |
31676 | #include <float.h> | |
31677 | int main () | |
31678 | { | |
31679 | #ifdef fpclassify | |
31680 | #ifdef LDBL_MAX | |
31681 | if (fpclassify(LDBL_MAX) == FP_NAN | |
31682 | || fpclassify(LDBL_MAX) == FP_INFINITE) return 1; | |
31683 | #endif | |
31684 | #ifdef DBL_MAX | |
31685 | if (fpclassify(DBL_MAX) == FP_NAN | |
31686 | || fpclassify(DBL_MAX) == FP_INFINITE) return 1; | |
31687 | #endif | |
31688 | #endif | |
31689 | return 0; | |
31690 | } | |
31691 | _ACEOF | |
31692 | rm -f conftest$ac_exeext | |
a106dabe | 31693 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
31694 | (eval $ac_link) 2>&5 | |
839904a0 | 31695 | ac_status=$? |
31696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31697 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a106dabe | 31698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31699 | (eval $ac_try) 2>&5 | |
839904a0 | 31700 | ac_status=$? |
31701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31702 | (exit $ac_status); }; }; then | |
31703 | have_broken_fpclassify=no | |
31704 | else | |
31705 | echo "$as_me: program exited with status $ac_status" >&5 | |
31706 | echo "$as_me: failed program was:" >&5 | |
31707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31708 | ||
31709 | ( exit $ac_status ) | |
31710 | have_broken_fpclassify=yes | |
31711 | fi | |
a106dabe | 31712 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
839904a0 | 31713 | fi |
31714 | LIBS=$libgfor_check_for_broken_fpclassify_save_LIBS | |
31715 | fi | |
a106dabe | 31716 | echo "$as_me:$LINENO: result: $have_broken_fpclassify" >&5 |
31717 | echo "${ECHO_T}$have_broken_fpclassify" >&6 | |
839904a0 | 31718 | if test x"$have_broken_fpclassify" = xyes; then |
31719 | ||
31720 | cat >>confdefs.h <<\_ACEOF | |
31721 | #define HAVE_BROKEN_FPCLASSIFY 1 | |
31722 | _ACEOF | |
31723 | ||
31724 | fi | |
31725 | ||
daad4fd5 | 31726 | # Check whether the system has a working stat() |
31727 | ||
a106dabe | 31728 | echo "$as_me:$LINENO: checking whether the target stat is reliable" >&5 |
31729 | echo $ECHO_N "checking whether the target stat is reliable... $ECHO_C" >&6 | |
daad4fd5 | 31730 | if test "${have_working_stat+set}" = set; then |
31731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31732 | else | |
31733 | ||
31734 | if test "$cross_compiling" = yes; then | |
31735 | ||
31736 | case "${target}" in | |
31737 | *mingw*) have_working_stat=no ;; | |
31738 | *) have_working_stat=yes;; | |
31739 | esac | |
31740 | else | |
31741 | cat >conftest.$ac_ext <<_ACEOF | |
31742 | /* confdefs.h. */ | |
31743 | _ACEOF | |
31744 | cat confdefs.h >>conftest.$ac_ext | |
31745 | cat >>conftest.$ac_ext <<_ACEOF | |
31746 | /* end confdefs.h. */ | |
31747 | ||
31748 | #include <stdio.h> | |
31749 | #include <sys/types.h> | |
31750 | #include <sys/stat.h> | |
31751 | #include <unistd.h> | |
31752 | ||
31753 | int main () | |
31754 | { | |
31755 | FILE *f, *g; | |
31756 | struct stat st1, st2; | |
31757 | ||
31758 | f = fopen ("foo", "w"); | |
31759 | g = fopen ("bar", "w"); | |
31760 | if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) | |
31761 | return 1; | |
31762 | if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) | |
31763 | return 1; | |
31764 | fclose(f); | |
31765 | fclose(g); | |
31766 | return 0; | |
31767 | } | |
31768 | _ACEOF | |
31769 | rm -f conftest$ac_exeext | |
a106dabe | 31770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
31771 | (eval $ac_link) 2>&5 | |
daad4fd5 | 31772 | ac_status=$? |
31773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31774 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a106dabe | 31775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31776 | (eval $ac_try) 2>&5 | |
daad4fd5 | 31777 | ac_status=$? |
31778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31779 | (exit $ac_status); }; }; then | |
31780 | have_working_stat=yes | |
31781 | else | |
31782 | echo "$as_me: program exited with status $ac_status" >&5 | |
31783 | echo "$as_me: failed program was:" >&5 | |
31784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31785 | ||
31786 | ( exit $ac_status ) | |
31787 | have_working_stat=no | |
31788 | fi | |
a106dabe | 31789 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
daad4fd5 | 31790 | fi |
31791 | fi | |
a106dabe | 31792 | echo "$as_me:$LINENO: result: $have_working_stat" >&5 |
31793 | echo "${ECHO_T}$have_working_stat" >&6 | |
daad4fd5 | 31794 | if test x"$have_working_stat" = xyes; then |
31795 | ||
31796 | cat >>confdefs.h <<\_ACEOF | |
31797 | #define HAVE_WORKING_STAT 1 | |
31798 | _ACEOF | |
31799 | ||
31800 | fi | |
31801 | ||
3b99ec70 | 31802 | # Check whether __mingw_snprintf() is present |
31803 | ||
31804 | echo "$as_me:$LINENO: checking whether __mingw_snprintf is present" >&5 | |
31805 | echo $ECHO_N "checking whether __mingw_snprintf is present... $ECHO_C" >&6 | |
31806 | if test "${have_mingw_snprintf+set}" = set; then | |
31807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31808 | else | |
31809 | ||
31810 | if test x$gcc_no_link = xyes; then | |
31811 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31812 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31813 | { (exit 1); exit 1; }; } | |
31814 | fi | |
31815 | cat >conftest.$ac_ext <<_ACEOF | |
31816 | /* confdefs.h. */ | |
31817 | _ACEOF | |
31818 | cat confdefs.h >>conftest.$ac_ext | |
31819 | cat >>conftest.$ac_ext <<_ACEOF | |
31820 | /* end confdefs.h. */ | |
31821 | ||
31822 | #include <stdio.h> | |
31823 | extern int __mingw_snprintf (char *, size_t, const char *, ...); | |
31824 | ||
31825 | int | |
31826 | main () | |
31827 | { | |
31828 | ||
31829 | __mingw_snprintf (NULL, 0, "%d\n", 1); | |
31830 | ||
31831 | ; | |
31832 | return 0; | |
31833 | } | |
31834 | _ACEOF | |
31835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31837 | (eval $ac_link) 2>conftest.er1 | |
31838 | ac_status=$? | |
31839 | grep -v '^ *+' conftest.er1 >conftest.err | |
31840 | rm -f conftest.er1 | |
31841 | cat conftest.err >&5 | |
31842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31843 | (exit $ac_status); } && | |
31844 | { ac_try='test -z "$ac_c_werror_flag" | |
31845 | || test ! -s conftest.err' | |
31846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31847 | (eval $ac_try) 2>&5 | |
31848 | ac_status=$? | |
31849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31850 | (exit $ac_status); }; } && | |
31851 | { ac_try='test -s conftest$ac_exeext' | |
31852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31853 | (eval $ac_try) 2>&5 | |
31854 | ac_status=$? | |
31855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31856 | (exit $ac_status); }; }; then | |
31857 | eval "have_mingw_snprintf=yes" | |
31858 | else | |
31859 | echo "$as_me: failed program was:" >&5 | |
31860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31861 | ||
31862 | eval "have_mingw_snprintf=no" | |
31863 | fi | |
31864 | rm -f conftest.err conftest.$ac_objext \ | |
31865 | conftest$ac_exeext conftest.$ac_ext | |
31866 | ||
31867 | fi | |
31868 | echo "$as_me:$LINENO: result: $have_mingw_snprintf" >&5 | |
31869 | echo "${ECHO_T}$have_mingw_snprintf" >&6 | |
31870 | if test x"$have_mingw_snprintf" = xyes; then | |
31871 | ||
31872 | cat >>confdefs.h <<\_ACEOF | |
31873 | #define HAVE_MINGW_SNPRINTF 1 | |
31874 | _ACEOF | |
31875 | ||
31876 | fi | |
31877 | ||
31878 | ||
8c84a5de | 31879 | # Check for GNU libc feenableexcept |
a106dabe | 31880 | echo "$as_me:$LINENO: checking for feenableexcept in -lm" >&5 |
31881 | echo $ECHO_N "checking for feenableexcept in -lm... $ECHO_C" >&6 | |
8c84a5de | 31882 | if test "${ac_cv_lib_m_feenableexcept+set}" = set; then |
31883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31884 | else | |
31885 | ac_check_lib_save_LIBS=$LIBS | |
31886 | LIBS="-lm $LIBS" | |
31887 | if test x$gcc_no_link = xyes; then | |
31888 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31889 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31890 | { (exit 1); exit 1; }; } | |
31891 | fi | |
31892 | cat >conftest.$ac_ext <<_ACEOF | |
31893 | /* confdefs.h. */ | |
31894 | _ACEOF | |
31895 | cat confdefs.h >>conftest.$ac_ext | |
31896 | cat >>conftest.$ac_ext <<_ACEOF | |
31897 | /* end confdefs.h. */ | |
31898 | ||
a106dabe | 31899 | /* Override any gcc2 internal prototype to avoid an error. */ |
8c84a5de | 31900 | #ifdef __cplusplus |
31901 | extern "C" | |
31902 | #endif | |
a106dabe | 31903 | /* We use char because int might match the return type of a gcc2 |
31904 | builtin and then its argument prototype would still apply. */ | |
8c84a5de | 31905 | char feenableexcept (); |
31906 | int | |
31907 | main () | |
31908 | { | |
a106dabe | 31909 | feenableexcept (); |
8c84a5de | 31910 | ; |
31911 | return 0; | |
31912 | } | |
31913 | _ACEOF | |
31914 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 31915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
31916 | (eval $ac_link) 2>conftest.er1 | |
8c84a5de | 31917 | ac_status=$? |
31918 | grep -v '^ *+' conftest.er1 >conftest.err | |
31919 | rm -f conftest.er1 | |
31920 | cat conftest.err >&5 | |
31921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31922 | (exit $ac_status); } && | |
c0e8efbe | 31923 | { ac_try='test -z "$ac_c_werror_flag" |
31924 | || test ! -s conftest.err' | |
a106dabe | 31925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31926 | (eval $ac_try) 2>&5 | |
8c84a5de | 31927 | ac_status=$? |
31928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31929 | (exit $ac_status); }; } && | |
31930 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 31931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31932 | (eval $ac_try) 2>&5 | |
8c84a5de | 31933 | ac_status=$? |
31934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31935 | (exit $ac_status); }; }; then | |
31936 | ac_cv_lib_m_feenableexcept=yes | |
31937 | else | |
31938 | echo "$as_me: failed program was:" >&5 | |
31939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31940 | ||
a106dabe | 31941 | ac_cv_lib_m_feenableexcept=no |
8c84a5de | 31942 | fi |
a106dabe | 31943 | rm -f conftest.err conftest.$ac_objext \ |
8c84a5de | 31944 | conftest$ac_exeext conftest.$ac_ext |
31945 | LIBS=$ac_check_lib_save_LIBS | |
31946 | fi | |
a106dabe | 31947 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_feenableexcept" >&5 |
31948 | echo "${ECHO_T}$ac_cv_lib_m_feenableexcept" >&6 | |
8c84a5de | 31949 | if test $ac_cv_lib_m_feenableexcept = yes; then |
31950 | have_feenableexcept=yes | |
31951 | cat >>confdefs.h <<\_ACEOF | |
31952 | #define HAVE_FEENABLEEXCEPT 1 | |
31953 | _ACEOF | |
31954 | ||
31955 | fi | |
31956 | ||
31957 | ||
aaa798ba | 31958 | # Check for SysV fpsetmask |
31959 | ||
a106dabe | 31960 | echo "$as_me:$LINENO: checking whether fpsetmask is present" >&5 |
31961 | echo $ECHO_N "checking whether fpsetmask is present... $ECHO_C" >&6 | |
aaa798ba | 31962 | if test "${have_fpsetmask+set}" = set; then |
31963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31964 | else | |
31965 | ||
31966 | if test x$gcc_no_link = xyes; then | |
31967 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31968 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31969 | { (exit 1); exit 1; }; } | |
31970 | fi | |
31971 | cat >conftest.$ac_ext <<_ACEOF | |
31972 | /* confdefs.h. */ | |
31973 | _ACEOF | |
31974 | cat confdefs.h >>conftest.$ac_ext | |
31975 | cat >>conftest.$ac_ext <<_ACEOF | |
31976 | /* end confdefs.h. */ | |
31977 | ||
31978 | #if HAVE_FLOATINGPOINT_H | |
31979 | # include <floatingpoint.h> | |
31980 | #endif /* HAVE_FLOATINGPOINT_H */ | |
31981 | #if HAVE_IEEEFP_H | |
31982 | # include <ieeefp.h> | |
31983 | #endif /* HAVE_IEEEFP_H */ | |
31984 | int | |
31985 | main () | |
31986 | { | |
31987 | fpsetmask(0); | |
31988 | ; | |
31989 | return 0; | |
31990 | } | |
31991 | _ACEOF | |
31992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 31993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
31994 | (eval $ac_link) 2>conftest.er1 | |
aaa798ba | 31995 | ac_status=$? |
31996 | grep -v '^ *+' conftest.er1 >conftest.err | |
31997 | rm -f conftest.er1 | |
31998 | cat conftest.err >&5 | |
31999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32000 | (exit $ac_status); } && | |
c0e8efbe | 32001 | { ac_try='test -z "$ac_c_werror_flag" |
32002 | || test ! -s conftest.err' | |
a106dabe | 32003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32004 | (eval $ac_try) 2>&5 | |
aaa798ba | 32005 | ac_status=$? |
32006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32007 | (exit $ac_status); }; } && | |
32008 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 32009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32010 | (eval $ac_try) 2>&5 | |
aaa798ba | 32011 | ac_status=$? |
32012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32013 | (exit $ac_status); }; }; then | |
32014 | eval "have_fpsetmask=yes" | |
32015 | else | |
32016 | echo "$as_me: failed program was:" >&5 | |
32017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32018 | ||
a106dabe | 32019 | eval "have_fpsetmask=no" |
aaa798ba | 32020 | fi |
a106dabe | 32021 | rm -f conftest.err conftest.$ac_objext \ |
aaa798ba | 32022 | conftest$ac_exeext conftest.$ac_ext |
32023 | ||
32024 | fi | |
a106dabe | 32025 | echo "$as_me:$LINENO: result: $have_fpsetmask" >&5 |
32026 | echo "${ECHO_T}$have_fpsetmask" >&6 | |
aaa798ba | 32027 | if test x"$have_fpsetmask" = xyes; then |
32028 | ||
32029 | cat >>confdefs.h <<\_ACEOF | |
32030 | #define HAVE_FPSETMASK 1 | |
32031 | _ACEOF | |
32032 | ||
32033 | fi | |
32034 | ||
32035 | ||
32036 | # Check for AIX fp_trap and fp_enable | |
a106dabe | 32037 | echo "$as_me:$LINENO: checking for fp_trap" >&5 |
32038 | echo $ECHO_N "checking for fp_trap... $ECHO_C" >&6 | |
aaa798ba | 32039 | if test "${ac_cv_func_fp_trap+set}" = set; then |
32040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32041 | else | |
32042 | if test x$gcc_no_link = xyes; then | |
32043 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
32044 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
32045 | { (exit 1); exit 1; }; } | |
32046 | fi | |
32047 | cat >conftest.$ac_ext <<_ACEOF | |
32048 | /* confdefs.h. */ | |
32049 | _ACEOF | |
32050 | cat confdefs.h >>conftest.$ac_ext | |
32051 | cat >>conftest.$ac_ext <<_ACEOF | |
32052 | /* end confdefs.h. */ | |
32053 | /* Define fp_trap to an innocuous variant, in case <limits.h> declares fp_trap. | |
32054 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32055 | #define fp_trap innocuous_fp_trap | |
32056 | ||
32057 | /* System header to define __stub macros and hopefully few prototypes, | |
32058 | which can conflict with char fp_trap (); below. | |
32059 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32060 | <limits.h> exists even on freestanding compilers. */ | |
32061 | ||
32062 | #ifdef __STDC__ | |
32063 | # include <limits.h> | |
32064 | #else | |
32065 | # include <assert.h> | |
32066 | #endif | |
32067 | ||
32068 | #undef fp_trap | |
32069 | ||
a106dabe | 32070 | /* Override any gcc2 internal prototype to avoid an error. */ |
aaa798ba | 32071 | #ifdef __cplusplus |
32072 | extern "C" | |
a106dabe | 32073 | { |
aaa798ba | 32074 | #endif |
a106dabe | 32075 | /* We use char because int might match the return type of a gcc2 |
32076 | builtin and then its argument prototype would still apply. */ | |
aaa798ba | 32077 | char fp_trap (); |
32078 | /* The GNU C library defines this for functions which it implements | |
32079 | to always fail with ENOSYS. Some functions are actually named | |
32080 | something starting with __ and the normal name is an alias. */ | |
a106dabe | 32081 | #if defined (__stub_fp_trap) || defined (__stub___fp_trap) |
aaa798ba | 32082 | choke me |
a106dabe | 32083 | #else |
32084 | char (*f) () = fp_trap; | |
32085 | #endif | |
32086 | #ifdef __cplusplus | |
32087 | } | |
aaa798ba | 32088 | #endif |
32089 | ||
32090 | int | |
32091 | main () | |
32092 | { | |
a106dabe | 32093 | return f != fp_trap; |
aaa798ba | 32094 | ; |
32095 | return 0; | |
32096 | } | |
32097 | _ACEOF | |
32098 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 32099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
32100 | (eval $ac_link) 2>conftest.er1 | |
aaa798ba | 32101 | ac_status=$? |
32102 | grep -v '^ *+' conftest.er1 >conftest.err | |
32103 | rm -f conftest.er1 | |
32104 | cat conftest.err >&5 | |
32105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32106 | (exit $ac_status); } && | |
c0e8efbe | 32107 | { ac_try='test -z "$ac_c_werror_flag" |
32108 | || test ! -s conftest.err' | |
a106dabe | 32109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32110 | (eval $ac_try) 2>&5 | |
aaa798ba | 32111 | ac_status=$? |
32112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32113 | (exit $ac_status); }; } && | |
32114 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 32115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32116 | (eval $ac_try) 2>&5 | |
aaa798ba | 32117 | ac_status=$? |
32118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32119 | (exit $ac_status); }; }; then | |
32120 | ac_cv_func_fp_trap=yes | |
32121 | else | |
32122 | echo "$as_me: failed program was:" >&5 | |
32123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32124 | ||
a106dabe | 32125 | ac_cv_func_fp_trap=no |
aaa798ba | 32126 | fi |
a106dabe | 32127 | rm -f conftest.err conftest.$ac_objext \ |
aaa798ba | 32128 | conftest$ac_exeext conftest.$ac_ext |
32129 | fi | |
a106dabe | 32130 | echo "$as_me:$LINENO: result: $ac_cv_func_fp_trap" >&5 |
32131 | echo "${ECHO_T}$ac_cv_func_fp_trap" >&6 | |
aaa798ba | 32132 | if test $ac_cv_func_fp_trap = yes; then |
32133 | have_fp_trap=yes | |
32134 | cat >>confdefs.h <<\_ACEOF | |
32135 | #define HAVE_FP_TRAP 1 | |
32136 | _ACEOF | |
32137 | ||
32138 | fi | |
32139 | ||
a106dabe | 32140 | echo "$as_me:$LINENO: checking for fp_enable" >&5 |
32141 | echo $ECHO_N "checking for fp_enable... $ECHO_C" >&6 | |
aaa798ba | 32142 | if test "${ac_cv_func_fp_enable+set}" = set; then |
32143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32144 | else | |
32145 | if test x$gcc_no_link = xyes; then | |
32146 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
32147 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
32148 | { (exit 1); exit 1; }; } | |
32149 | fi | |
32150 | cat >conftest.$ac_ext <<_ACEOF | |
32151 | /* confdefs.h. */ | |
32152 | _ACEOF | |
32153 | cat confdefs.h >>conftest.$ac_ext | |
32154 | cat >>conftest.$ac_ext <<_ACEOF | |
32155 | /* end confdefs.h. */ | |
32156 | /* Define fp_enable to an innocuous variant, in case <limits.h> declares fp_enable. | |
32157 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32158 | #define fp_enable innocuous_fp_enable | |
32159 | ||
32160 | /* System header to define __stub macros and hopefully few prototypes, | |
32161 | which can conflict with char fp_enable (); below. | |
32162 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32163 | <limits.h> exists even on freestanding compilers. */ | |
32164 | ||
32165 | #ifdef __STDC__ | |
32166 | # include <limits.h> | |
32167 | #else | |
32168 | # include <assert.h> | |
32169 | #endif | |
32170 | ||
32171 | #undef fp_enable | |
32172 | ||
a106dabe | 32173 | /* Override any gcc2 internal prototype to avoid an error. */ |
aaa798ba | 32174 | #ifdef __cplusplus |
32175 | extern "C" | |
a106dabe | 32176 | { |
aaa798ba | 32177 | #endif |
a106dabe | 32178 | /* We use char because int might match the return type of a gcc2 |
32179 | builtin and then its argument prototype would still apply. */ | |
aaa798ba | 32180 | char fp_enable (); |
32181 | /* The GNU C library defines this for functions which it implements | |
32182 | to always fail with ENOSYS. Some functions are actually named | |
32183 | something starting with __ and the normal name is an alias. */ | |
a106dabe | 32184 | #if defined (__stub_fp_enable) || defined (__stub___fp_enable) |
aaa798ba | 32185 | choke me |
a106dabe | 32186 | #else |
32187 | char (*f) () = fp_enable; | |
32188 | #endif | |
32189 | #ifdef __cplusplus | |
32190 | } | |
aaa798ba | 32191 | #endif |
32192 | ||
32193 | int | |
32194 | main () | |
32195 | { | |
a106dabe | 32196 | return f != fp_enable; |
aaa798ba | 32197 | ; |
32198 | return 0; | |
32199 | } | |
32200 | _ACEOF | |
32201 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 32202 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
32203 | (eval $ac_link) 2>conftest.er1 | |
aaa798ba | 32204 | ac_status=$? |
32205 | grep -v '^ *+' conftest.er1 >conftest.err | |
32206 | rm -f conftest.er1 | |
32207 | cat conftest.err >&5 | |
32208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32209 | (exit $ac_status); } && | |
c0e8efbe | 32210 | { ac_try='test -z "$ac_c_werror_flag" |
32211 | || test ! -s conftest.err' | |
a106dabe | 32212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32213 | (eval $ac_try) 2>&5 | |
aaa798ba | 32214 | ac_status=$? |
32215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32216 | (exit $ac_status); }; } && | |
32217 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 32218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32219 | (eval $ac_try) 2>&5 | |
aaa798ba | 32220 | ac_status=$? |
32221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32222 | (exit $ac_status); }; }; then | |
32223 | ac_cv_func_fp_enable=yes | |
32224 | else | |
32225 | echo "$as_me: failed program was:" >&5 | |
32226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32227 | ||
a106dabe | 32228 | ac_cv_func_fp_enable=no |
aaa798ba | 32229 | fi |
a106dabe | 32230 | rm -f conftest.err conftest.$ac_objext \ |
aaa798ba | 32231 | conftest$ac_exeext conftest.$ac_ext |
32232 | fi | |
a106dabe | 32233 | echo "$as_me:$LINENO: result: $ac_cv_func_fp_enable" >&5 |
32234 | echo "${ECHO_T}$ac_cv_func_fp_enable" >&6 | |
aaa798ba | 32235 | if test $ac_cv_func_fp_enable = yes; then |
32236 | have_fp_enable=yes | |
32237 | cat >>confdefs.h <<\_ACEOF | |
32238 | #define HAVE_FP_ENABLE 1 | |
32239 | _ACEOF | |
32240 | ||
32241 | fi | |
32242 | ||
32243 | ||
8c84a5de | 32244 | # Runs configure.host to set up necessary host-dependent shell variables. |
32245 | # We then display a message about it, and propagate them through the | |
32246 | # build chain. | |
32247 | . ${srcdir}/configure.host | |
32248 | { echo "$as_me:$LINENO: FPU dependent file will be ${fpu_host}.h" >&5 | |
32249 | echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} | |
32250 | FPU_HOST_HEADER=config/${fpu_host}.h | |
32251 | ||
32252 | ||
7b6cb5bd | 32253 | # Check out attribute support. |
32254 | ||
a106dabe | 32255 | echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5 |
32256 | echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6 | |
7b6cb5bd | 32257 | if test "${have_attribute_visibility+set}" = set; then |
32258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32259 | else | |
32260 | ||
32261 | save_CFLAGS="$CFLAGS" | |
32262 | CFLAGS="$CFLAGS -Werror" | |
32263 | cat >conftest.$ac_ext <<_ACEOF | |
32264 | /* confdefs.h. */ | |
32265 | _ACEOF | |
32266 | cat confdefs.h >>conftest.$ac_ext | |
32267 | cat >>conftest.$ac_ext <<_ACEOF | |
32268 | /* end confdefs.h. */ | |
32269 | void __attribute__((visibility("hidden"))) foo(void) { } | |
32270 | int | |
32271 | main () | |
32272 | { | |
32273 | ||
32274 | ; | |
32275 | return 0; | |
32276 | } | |
32277 | _ACEOF | |
32278 | rm -f conftest.$ac_objext | |
a106dabe | 32279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
32280 | (eval $ac_compile) 2>conftest.er1 | |
7b6cb5bd | 32281 | ac_status=$? |
32282 | grep -v '^ *+' conftest.er1 >conftest.err | |
32283 | rm -f conftest.er1 | |
32284 | cat conftest.err >&5 | |
32285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32286 | (exit $ac_status); } && | |
c0e8efbe | 32287 | { ac_try='test -z "$ac_c_werror_flag" |
32288 | || test ! -s conftest.err' | |
a106dabe | 32289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32290 | (eval $ac_try) 2>&5 | |
7b6cb5bd | 32291 | ac_status=$? |
32292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32293 | (exit $ac_status); }; } && | |
32294 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 32295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32296 | (eval $ac_try) 2>&5 | |
7b6cb5bd | 32297 | ac_status=$? |
32298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32299 | (exit $ac_status); }; }; then | |
32300 | have_attribute_visibility=yes | |
32301 | else | |
32302 | echo "$as_me: failed program was:" >&5 | |
32303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32304 | ||
a106dabe | 32305 | have_attribute_visibility=no |
7b6cb5bd | 32306 | fi |
a106dabe | 32307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7b6cb5bd | 32308 | CFLAGS="$save_CFLAGS" |
32309 | fi | |
a106dabe | 32310 | echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5 |
32311 | echo "${ECHO_T}$have_attribute_visibility" >&6 | |
7b6cb5bd | 32312 | if test $have_attribute_visibility = yes; then |
32313 | ||
32314 | cat >>confdefs.h <<\_ACEOF | |
32315 | #define HAVE_ATTRIBUTE_VISIBILITY 1 | |
32316 | _ACEOF | |
32317 | ||
32318 | fi | |
32319 | ||
a106dabe | 32320 | echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5 |
32321 | echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6 | |
7b6cb5bd | 32322 | if test "${have_attribute_dllexport+set}" = set; then |
32323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32324 | else | |
32325 | ||
32326 | save_CFLAGS="$CFLAGS" | |
32327 | CFLAGS="$CFLAGS -Werror" | |
32328 | cat >conftest.$ac_ext <<_ACEOF | |
32329 | /* confdefs.h. */ | |
32330 | _ACEOF | |
32331 | cat confdefs.h >>conftest.$ac_ext | |
32332 | cat >>conftest.$ac_ext <<_ACEOF | |
32333 | /* end confdefs.h. */ | |
32334 | void __attribute__((dllexport)) foo(void) { } | |
32335 | int | |
32336 | main () | |
32337 | { | |
32338 | ||
32339 | ; | |
32340 | return 0; | |
32341 | } | |
32342 | _ACEOF | |
32343 | rm -f conftest.$ac_objext | |
a106dabe | 32344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
32345 | (eval $ac_compile) 2>conftest.er1 | |
7b6cb5bd | 32346 | ac_status=$? |
32347 | grep -v '^ *+' conftest.er1 >conftest.err | |
32348 | rm -f conftest.er1 | |
32349 | cat conftest.err >&5 | |
32350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32351 | (exit $ac_status); } && | |
c0e8efbe | 32352 | { ac_try='test -z "$ac_c_werror_flag" |
32353 | || test ! -s conftest.err' | |
a106dabe | 32354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32355 | (eval $ac_try) 2>&5 | |
7b6cb5bd | 32356 | ac_status=$? |
32357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32358 | (exit $ac_status); }; } && | |
32359 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 32360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32361 | (eval $ac_try) 2>&5 | |
7b6cb5bd | 32362 | ac_status=$? |
32363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32364 | (exit $ac_status); }; }; then | |
32365 | have_attribute_dllexport=yes | |
32366 | else | |
32367 | echo "$as_me: failed program was:" >&5 | |
32368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32369 | ||
a106dabe | 32370 | have_attribute_dllexport=no |
7b6cb5bd | 32371 | fi |
a106dabe | 32372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7b6cb5bd | 32373 | CFLAGS="$save_CFLAGS" |
32374 | fi | |
a106dabe | 32375 | echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5 |
32376 | echo "${ECHO_T}$have_attribute_dllexport" >&6 | |
7b6cb5bd | 32377 | if test $have_attribute_dllexport = yes; then |
32378 | ||
32379 | cat >>confdefs.h <<\_ACEOF | |
32380 | #define HAVE_ATTRIBUTE_DLLEXPORT 1 | |
32381 | _ACEOF | |
32382 | ||
32383 | fi | |
32384 | ||
a106dabe | 32385 | echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5 |
32386 | echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6 | |
7b6cb5bd | 32387 | if test "${have_attribute_alias+set}" = set; then |
32388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32389 | else | |
32390 | ||
b52ee437 | 32391 | if test x$gcc_no_link = xyes; then |
32392 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
32393 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
32394 | { (exit 1); exit 1; }; } | |
32395 | fi | |
32396 | cat >conftest.$ac_ext <<_ACEOF | |
7b6cb5bd | 32397 | /* confdefs.h. */ |
32398 | _ACEOF | |
32399 | cat confdefs.h >>conftest.$ac_ext | |
32400 | cat >>conftest.$ac_ext <<_ACEOF | |
32401 | /* end confdefs.h. */ | |
32402 | ||
7b6cb5bd | 32403 | void foo(void) { } |
5a2b0c34 | 32404 | extern void bar(void) __attribute__((alias("foo"))); |
7b6cb5bd | 32405 | int |
32406 | main () | |
32407 | { | |
32408 | bar(); | |
32409 | ; | |
32410 | return 0; | |
32411 | } | |
32412 | _ACEOF | |
32413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 32414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
32415 | (eval $ac_link) 2>conftest.er1 | |
7b6cb5bd | 32416 | ac_status=$? |
32417 | grep -v '^ *+' conftest.er1 >conftest.err | |
32418 | rm -f conftest.er1 | |
32419 | cat conftest.err >&5 | |
32420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32421 | (exit $ac_status); } && | |
c0e8efbe | 32422 | { ac_try='test -z "$ac_c_werror_flag" |
32423 | || test ! -s conftest.err' | |
a106dabe | 32424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32425 | (eval $ac_try) 2>&5 | |
7b6cb5bd | 32426 | ac_status=$? |
32427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32428 | (exit $ac_status); }; } && | |
32429 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 32430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32431 | (eval $ac_try) 2>&5 | |
7b6cb5bd | 32432 | ac_status=$? |
32433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32434 | (exit $ac_status); }; }; then | |
32435 | have_attribute_alias=yes | |
32436 | else | |
32437 | echo "$as_me: failed program was:" >&5 | |
32438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32439 | ||
a106dabe | 32440 | have_attribute_alias=no |
7b6cb5bd | 32441 | fi |
a106dabe | 32442 | rm -f conftest.err conftest.$ac_objext \ |
7b6cb5bd | 32443 | conftest$ac_exeext conftest.$ac_ext |
32444 | fi | |
a106dabe | 32445 | echo "$as_me:$LINENO: result: $have_attribute_alias" >&5 |
32446 | echo "${ECHO_T}$have_attribute_alias" >&6 | |
7b6cb5bd | 32447 | if test $have_attribute_alias = yes; then |
32448 | ||
32449 | cat >>confdefs.h <<\_ACEOF | |
32450 | #define HAVE_ATTRIBUTE_ALIAS 1 | |
32451 | _ACEOF | |
32452 | ||
32453 | fi | |
32454 | ||
60c514ba | 32455 | # Check out sync builtins support. |
32456 | ||
a106dabe | 32457 | echo "$as_me:$LINENO: checking whether the target supports __sync_fetch_and_add" >&5 |
32458 | echo $ECHO_N "checking whether the target supports __sync_fetch_and_add... $ECHO_C" >&6 | |
60c514ba | 32459 | if test "${have_sync_fetch_and_add+set}" = set; then |
32460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32461 | else | |
32462 | ||
32463 | if test x$gcc_no_link = xyes; then | |
32464 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
32465 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
32466 | { (exit 1); exit 1; }; } | |
32467 | fi | |
32468 | cat >conftest.$ac_ext <<_ACEOF | |
32469 | /* confdefs.h. */ | |
32470 | _ACEOF | |
32471 | cat confdefs.h >>conftest.$ac_ext | |
32472 | cat >>conftest.$ac_ext <<_ACEOF | |
32473 | /* end confdefs.h. */ | |
32474 | int foovar = 0; | |
32475 | int | |
32476 | main () | |
32477 | { | |
32478 | ||
32479 | if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1); | |
32480 | if (foovar > 10) return __sync_add_and_fetch (&foovar, -1); | |
32481 | ; | |
32482 | return 0; | |
32483 | } | |
32484 | _ACEOF | |
32485 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a106dabe | 32486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
32487 | (eval $ac_link) 2>conftest.er1 | |
60c514ba | 32488 | ac_status=$? |
32489 | grep -v '^ *+' conftest.er1 >conftest.err | |
32490 | rm -f conftest.er1 | |
32491 | cat conftest.err >&5 | |
32492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32493 | (exit $ac_status); } && | |
c0e8efbe | 32494 | { ac_try='test -z "$ac_c_werror_flag" |
32495 | || test ! -s conftest.err' | |
a106dabe | 32496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32497 | (eval $ac_try) 2>&5 | |
60c514ba | 32498 | ac_status=$? |
32499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32500 | (exit $ac_status); }; } && | |
32501 | { ac_try='test -s conftest$ac_exeext' | |
a106dabe | 32502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32503 | (eval $ac_try) 2>&5 | |
60c514ba | 32504 | ac_status=$? |
32505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32506 | (exit $ac_status); }; }; then | |
32507 | have_sync_fetch_and_add=yes | |
32508 | else | |
32509 | echo "$as_me: failed program was:" >&5 | |
32510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32511 | ||
a106dabe | 32512 | have_sync_fetch_and_add=no |
60c514ba | 32513 | fi |
a106dabe | 32514 | rm -f conftest.err conftest.$ac_objext \ |
60c514ba | 32515 | conftest$ac_exeext conftest.$ac_ext |
32516 | fi | |
a106dabe | 32517 | echo "$as_me:$LINENO: result: $have_sync_fetch_and_add" >&5 |
32518 | echo "${ECHO_T}$have_sync_fetch_and_add" >&6 | |
60c514ba | 32519 | if test $have_sync_fetch_and_add = yes; then |
32520 | ||
32521 | cat >>confdefs.h <<\_ACEOF | |
32522 | #define HAVE_SYNC_FETCH_AND_ADD 1 | |
32523 | _ACEOF | |
32524 | ||
32525 | fi | |
32526 | ||
32527 | # Check out thread support. | |
32528 | ||
a106dabe | 32529 | echo "$as_me:$LINENO: checking configured target thread model" >&5 |
32530 | echo $ECHO_N "checking configured target thread model... $ECHO_C" >&6 | |
60c514ba | 32531 | if test "${target_thread_file+set}" = set; then |
32532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32533 | else | |
32534 | ||
32535 | target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` | |
32536 | fi | |
a106dabe | 32537 | echo "$as_me:$LINENO: result: $target_thread_file" >&5 |
32538 | echo "${ECHO_T}$target_thread_file" >&6 | |
60c514ba | 32539 | |
32540 | if test $target_thread_file != single; then | |
32541 | ||
32542 | cat >>confdefs.h <<\_ACEOF | |
32543 | #define HAVE_GTHR_DEFAULT 1 | |
32544 | _ACEOF | |
32545 | ||
32546 | fi | |
32547 | ||
32548 | # Check out #pragma weak. | |
32549 | ||
a106dabe | 32550 | echo "$as_me:$LINENO: checking whether pragma weak works" >&5 |
32551 | echo $ECHO_N "checking whether pragma weak works... $ECHO_C" >&6 | |
60c514ba | 32552 | if test "${have_pragma_weak+set}" = set; then |
32553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32554 | else | |
32555 | ||
32556 | gfor_save_CFLAGS="$CFLAGS" | |
32557 | CFLAGS="$CFLAGS -Wunknown-pragmas" | |
32558 | cat >conftest.$ac_ext <<_ACEOF | |
32559 | /* confdefs.h. */ | |
32560 | _ACEOF | |
32561 | cat confdefs.h >>conftest.$ac_ext | |
32562 | cat >>conftest.$ac_ext <<_ACEOF | |
32563 | /* end confdefs.h. */ | |
32564 | void foo (void); | |
32565 | #pragma weak foo | |
32566 | int | |
32567 | main () | |
32568 | { | |
32569 | if (foo) foo (); | |
32570 | ; | |
32571 | return 0; | |
32572 | } | |
32573 | _ACEOF | |
32574 | rm -f conftest.$ac_objext | |
a106dabe | 32575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
32576 | (eval $ac_compile) 2>conftest.er1 | |
60c514ba | 32577 | ac_status=$? |
32578 | grep -v '^ *+' conftest.er1 >conftest.err | |
32579 | rm -f conftest.er1 | |
32580 | cat conftest.err >&5 | |
32581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32582 | (exit $ac_status); } && | |
c0e8efbe | 32583 | { ac_try='test -z "$ac_c_werror_flag" |
32584 | || test ! -s conftest.err' | |
a106dabe | 32585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32586 | (eval $ac_try) 2>&5 | |
60c514ba | 32587 | ac_status=$? |
32588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32589 | (exit $ac_status); }; } && | |
32590 | { ac_try='test -s conftest.$ac_objext' | |
a106dabe | 32591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32592 | (eval $ac_try) 2>&5 | |
60c514ba | 32593 | ac_status=$? |
32594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32595 | (exit $ac_status); }; }; then | |
32596 | have_pragma_weak=yes | |
32597 | else | |
32598 | echo "$as_me: failed program was:" >&5 | |
32599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32600 | ||
a106dabe | 32601 | have_pragma_weak=no |
60c514ba | 32602 | fi |
a106dabe | 32603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
60c514ba | 32604 | fi |
a106dabe | 32605 | echo "$as_me:$LINENO: result: $have_pragma_weak" >&5 |
32606 | echo "${ECHO_T}$have_pragma_weak" >&6 | |
60c514ba | 32607 | if test $have_pragma_weak = yes; then |
32608 | ||
32609 | cat >>confdefs.h <<\_ACEOF | |
0a207fde | 32610 | #define SUPPORTS_WEAK 1 |
60c514ba | 32611 | _ACEOF |
32612 | ||
32613 | fi | |
0a207fde | 32614 | case "$host" in |
7044ab00 | 32615 | *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* ) |
0a207fde | 32616 | |
32617 | cat >>confdefs.h <<\_ACEOF | |
32618 | #define GTHREAD_USE_WEAK 0 | |
32619 | _ACEOF | |
32620 | ||
32621 | ;; | |
32622 | esac | |
60c514ba | 32623 | |
1dc95e51 | 32624 | # Various other checks on target |
32625 | ||
a106dabe | 32626 | echo "$as_me:$LINENO: checking whether the target can unlink an open file" >&5 |
32627 | echo $ECHO_N "checking whether the target can unlink an open file... $ECHO_C" >&6 | |
1dc95e51 | 32628 | if test "${have_unlink_open_file+set}" = set; then |
32629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32630 | else | |
32631 | ||
32632 | if test "$cross_compiling" = yes; then | |
32633 | ||
32634 | case "${target}" in | |
32635 | *mingw*) have_unlink_open_file=no ;; | |
32636 | *) have_unlink_open_file=yes;; | |
32637 | esac | |
32638 | else | |
32639 | cat >conftest.$ac_ext <<_ACEOF | |
32640 | /* confdefs.h. */ | |
32641 | _ACEOF | |
32642 | cat confdefs.h >>conftest.$ac_ext | |
32643 | cat >>conftest.$ac_ext <<_ACEOF | |
32644 | /* end confdefs.h. */ | |
32645 | ||
32646 | #include <errno.h> | |
32647 | #include <fcntl.h> | |
32648 | #include <unistd.h> | |
32649 | #include <sys/stat.h> | |
32650 | ||
32651 | int main () | |
32652 | { | |
32653 | int fd; | |
32654 | ||
32655 | fd = open ("testfile", O_RDWR | O_CREAT, S_IWRITE | S_IREAD); | |
32656 | if (fd <= 0) | |
32657 | return 0; | |
32658 | if (unlink ("testfile") == -1) | |
32659 | return 1; | |
32660 | write (fd, "This is a test\n", 15); | |
32661 | close (fd); | |
32662 | ||
32663 | if (open ("testfile", O_RDONLY, S_IWRITE | S_IREAD) == -1 && errno == ENOENT) | |
32664 | return 0; | |
32665 | else | |
32666 | return 1; | |
32667 | } | |
32668 | _ACEOF | |
32669 | rm -f conftest$ac_exeext | |
a106dabe | 32670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
32671 | (eval $ac_link) 2>&5 | |
1dc95e51 | 32672 | ac_status=$? |
32673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32674 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a106dabe | 32675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32676 | (eval $ac_try) 2>&5 | |
1dc95e51 | 32677 | ac_status=$? |
32678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32679 | (exit $ac_status); }; }; then | |
32680 | have_unlink_open_file=yes | |
32681 | else | |
32682 | echo "$as_me: program exited with status $ac_status" >&5 | |
32683 | echo "$as_me: failed program was:" >&5 | |
32684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32685 | ||
32686 | ( exit $ac_status ) | |
32687 | have_unlink_open_file=no | |
32688 | fi | |
a106dabe | 32689 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
1dc95e51 | 32690 | fi |
32691 | fi | |
a106dabe | 32692 | echo "$as_me:$LINENO: result: $have_unlink_open_file" >&5 |
32693 | echo "${ECHO_T}$have_unlink_open_file" >&6 | |
1dc95e51 | 32694 | if test x"$have_unlink_open_file" = xyes; then |
32695 | ||
32696 | cat >>confdefs.h <<\_ACEOF | |
32697 | #define HAVE_UNLINK_OPEN_FILE 1 | |
32698 | _ACEOF | |
32699 | ||
32700 | fi | |
32701 | ||
cf55c3cf | 32702 | # Check whether line terminator is LF or CRLF |
32703 | ||
a106dabe | 32704 | echo "$as_me:$LINENO: checking whether the target has CRLF as line terminator" >&5 |
32705 | echo $ECHO_N "checking whether the target has CRLF as line terminator... $ECHO_C" >&6 | |
cf55c3cf | 32706 | if test "${have_crlf+set}" = set; then |
32707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32708 | else | |
32709 | ||
32710 | if test "$cross_compiling" = yes; then | |
32711 | ||
32712 | case "${target}" in | |
32713 | *mingw*) have_crlf=yes ;; | |
32714 | *) have_crlf=no;; | |
32715 | esac | |
32716 | else | |
32717 | cat >conftest.$ac_ext <<_ACEOF | |
32718 | /* confdefs.h. */ | |
32719 | _ACEOF | |
32720 | cat confdefs.h >>conftest.$ac_ext | |
32721 | cat >>conftest.$ac_ext <<_ACEOF | |
32722 | /* end confdefs.h. */ | |
32723 | ||
32724 | /* This test program should exit with status 0 if system uses a CRLF as | |
32725 | line terminator, and status 1 otherwise. | |
32726 | Since it is used to check for mingw systems, and should return 0 in any | |
32727 | other case, in case of a failure we will not use CRLF. */ | |
32728 | #include <sys/stat.h> | |
32729 | #include <stdlib.h> | |
32730 | #include <fcntl.h> | |
32731 | #include <stdio.h> | |
32732 | ||
32733 | int main () | |
32734 | { | |
32735 | #ifndef O_BINARY | |
32736 | exit(1); | |
32737 | #else | |
32738 | int fd, bytes; | |
32739 | char buff[5]; | |
32740 | ||
32741 | fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); | |
32742 | if (fd < 0) | |
32743 | exit(1); | |
32744 | if (write (fd, "\n", 1) < 0) | |
32745 | perror ("write"); | |
32746 | ||
32747 | close (fd); | |
32748 | ||
32749 | if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) | |
32750 | exit(1); | |
32751 | bytes = read (fd, buff, 5); | |
32752 | if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') | |
32753 | exit(0); | |
32754 | else | |
32755 | exit(1); | |
32756 | #endif | |
32757 | } | |
32758 | _ACEOF | |
32759 | rm -f conftest$ac_exeext | |
a106dabe | 32760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
32761 | (eval $ac_link) 2>&5 | |
cf55c3cf | 32762 | ac_status=$? |
32763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32764 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a106dabe | 32765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32766 | (eval $ac_try) 2>&5 | |
cf55c3cf | 32767 | ac_status=$? |
32768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32769 | (exit $ac_status); }; }; then | |
32770 | have_crlf=yes | |
32771 | else | |
32772 | echo "$as_me: program exited with status $ac_status" >&5 | |
32773 | echo "$as_me: failed program was:" >&5 | |
32774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32775 | ||
32776 | ( exit $ac_status ) | |
32777 | have_crlf=no | |
32778 | fi | |
a106dabe | 32779 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
cf55c3cf | 32780 | fi |
32781 | fi | |
a106dabe | 32782 | echo "$as_me:$LINENO: result: $have_crlf" >&5 |
32783 | echo "${ECHO_T}$have_crlf" >&6 | |
cf55c3cf | 32784 | if test x"$have_crlf" = xyes; then |
32785 | ||
32786 | cat >>confdefs.h <<\_ACEOF | |
32787 | #define HAVE_CRLF 1 | |
32788 | _ACEOF | |
32789 | ||
32790 | fi | |
32791 | ||
4ee9c684 | 32792 | cat >confcache <<\_ACEOF |
32793 | # This file is a shell script that caches the results of configure | |
32794 | # tests run on this system so they can be shared between configure | |
32795 | # scripts and configure runs, see configure's option --config-cache. | |
32796 | # It is not useful on other systems. If it contains results you don't | |
32797 | # want to keep, you may remove or edit it. | |
32798 | # | |
32799 | # config.status only pays attention to the cache file if you give it | |
32800 | # the --recheck option to rerun configure. | |
32801 | # | |
32802 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
32803 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
32804 | # following values. | |
32805 | ||
32806 | _ACEOF | |
32807 | ||
32808 | # The following way of writing the cache mishandles newlines in values, | |
32809 | # but we know of no workaround that is simple, portable, and efficient. | |
a106dabe | 32810 | # So, don't put newlines in cache variables' values. |
4ee9c684 | 32811 | # Ultrix sh set writes to stderr and can't be redirected directly, |
32812 | # and sets the high bit in the cache file unless we assign to the vars. | |
a106dabe | 32813 | { |
4ee9c684 | 32814 | (set) 2>&1 | |
a106dabe | 32815 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
32816 | *ac_space=\ *) | |
4ee9c684 | 32817 | # `set' does not quote correctly, so add quotes (double-quote |
32818 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
32819 | sed -n \ | |
32820 | "s/'/'\\\\''/g; | |
32821 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a106dabe | 32822 | ;; |
4ee9c684 | 32823 | *) |
32824 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
a106dabe | 32825 | sed -n \ |
32826 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4ee9c684 | 32827 | ;; |
a106dabe | 32828 | esac; |
32829 | } | | |
4ee9c684 | 32830 | sed ' |
32831 | t clear | |
a106dabe | 32832 | : clear |
4ee9c684 | 32833 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
32834 | t end | |
a106dabe | 32835 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
32836 | : end' >>confcache | |
32837 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
32838 | if test -w $cache_file; then | |
32839 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
4ee9c684 | 32840 | cat confcache >$cache_file |
32841 | else | |
a106dabe | 32842 | echo "not updating unwritable cache $cache_file" |
4ee9c684 | 32843 | fi |
32844 | fi | |
32845 | rm -f confcache | |
32846 | ||
90973b19 | 32847 | if test ${multilib} = yes; then |
32848 | multilib_arg="--enable-multilib" | |
4ee9c684 | 32849 | else |
90973b19 | 32850 | multilib_arg= |
4ee9c684 | 32851 | fi |
4ee9c684 | 32852 | |
90973b19 | 32853 | # Write our Makefile. |
a106dabe | 32854 | ac_config_files="$ac_config_files Makefile" |
90973b19 | 32855 | |
4ee9c684 | 32856 | cat >confcache <<\_ACEOF |
32857 | # This file is a shell script that caches the results of configure | |
32858 | # tests run on this system so they can be shared between configure | |
32859 | # scripts and configure runs, see configure's option --config-cache. | |
32860 | # It is not useful on other systems. If it contains results you don't | |
32861 | # want to keep, you may remove or edit it. | |
32862 | # | |
32863 | # config.status only pays attention to the cache file if you give it | |
32864 | # the --recheck option to rerun configure. | |
32865 | # | |
32866 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
32867 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
32868 | # following values. | |
32869 | ||
32870 | _ACEOF | |
32871 | ||
32872 | # The following way of writing the cache mishandles newlines in values, | |
32873 | # but we know of no workaround that is simple, portable, and efficient. | |
a106dabe | 32874 | # So, don't put newlines in cache variables' values. |
4ee9c684 | 32875 | # Ultrix sh set writes to stderr and can't be redirected directly, |
32876 | # and sets the high bit in the cache file unless we assign to the vars. | |
a106dabe | 32877 | { |
4ee9c684 | 32878 | (set) 2>&1 | |
a106dabe | 32879 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
32880 | *ac_space=\ *) | |
4ee9c684 | 32881 | # `set' does not quote correctly, so add quotes (double-quote |
32882 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
32883 | sed -n \ | |
32884 | "s/'/'\\\\''/g; | |
32885 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a106dabe | 32886 | ;; |
4ee9c684 | 32887 | *) |
32888 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
a106dabe | 32889 | sed -n \ |
32890 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4ee9c684 | 32891 | ;; |
a106dabe | 32892 | esac; |
32893 | } | | |
4ee9c684 | 32894 | sed ' |
32895 | t clear | |
a106dabe | 32896 | : clear |
4ee9c684 | 32897 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
32898 | t end | |
a106dabe | 32899 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
32900 | : end' >>confcache | |
32901 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
32902 | if test -w $cache_file; then | |
32903 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
4ee9c684 | 32904 | cat confcache >$cache_file |
32905 | else | |
a106dabe | 32906 | echo "not updating unwritable cache $cache_file" |
4ee9c684 | 32907 | fi |
32908 | fi | |
32909 | rm -f confcache | |
32910 | ||
32911 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
32912 | # Let make expand exec_prefix. | |
32913 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
32914 | ||
a106dabe | 32915 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
32916 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
32917 | # trailing colons and then remove the whole line if VPATH becomes empty | |
32918 | # (actually we leave an empty line to preserve line numbers). | |
32919 | if test "x$srcdir" = x.; then | |
32920 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
32921 | s/:*\$(srcdir):*/:/; | |
32922 | s/:*\${srcdir}:*/:/; | |
32923 | s/:*@srcdir@:*/:/; | |
32924 | s/^\([^=]*=[ ]*\):*/\1/; | |
32925 | s/:*$//; | |
32926 | s/^[^=]*=[ ]*$//; | |
32927 | }' | |
32928 | fi | |
32929 | ||
4ee9c684 | 32930 | DEFS=-DHAVE_CONFIG_H |
32931 | ||
32932 | ac_libobjs= | |
32933 | ac_ltlibobjs= | |
32934 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
32935 | # 1. Remove the extension, and $U if already installed. | |
a106dabe | 32936 | ac_i=`echo "$ac_i" | |
32937 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
32938 | # 2. Add them. | |
32939 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
32940 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
4ee9c684 | 32941 | done |
32942 | LIBOBJS=$ac_libobjs | |
32943 | ||
32944 | LTLIBOBJS=$ac_ltlibobjs | |
32945 | ||
32946 | ||
32947 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
32948 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
32949 | Usually this means the macro was only invoked conditionally." >&5 | |
32950 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
32951 | Usually this means the macro was only invoked conditionally." >&2;} | |
32952 | { (exit 1); exit 1; }; } | |
32953 | fi | |
2fd61f51 | 32954 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
32955 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
32956 | Usually this means the macro was only invoked conditionally." >&5 | |
32957 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
32958 | Usually this means the macro was only invoked conditionally." >&2;} | |
32959 | { (exit 1); exit 1; }; } | |
32960 | fi | |
32961 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
32962 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
32963 | Usually this means the macro was only invoked conditionally." >&5 | |
32964 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
32965 | Usually this means the macro was only invoked conditionally." >&2;} | |
32966 | { (exit 1); exit 1; }; } | |
32967 | fi | |
ce1a737c | 32968 | if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then |
32969 | { { echo "$as_me:$LINENO: error: conditional \"LIBGFOR_USE_SYMVER\" was never defined. | |
32970 | Usually this means the macro was only invoked conditionally." >&5 | |
32971 | echo "$as_me: error: conditional \"LIBGFOR_USE_SYMVER\" was never defined. | |
32972 | Usually this means the macro was only invoked conditionally." >&2;} | |
32973 | { (exit 1); exit 1; }; } | |
32974 | fi | |
4ee9c684 | 32975 | |
32976 | : ${CONFIG_STATUS=./config.status} | |
32977 | ac_clean_files_save=$ac_clean_files | |
32978 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
32979 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
32980 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
32981 | cat >$CONFIG_STATUS <<_ACEOF | |
32982 | #! $SHELL | |
32983 | # Generated by $as_me. | |
32984 | # Run this file to recreate the current configuration. | |
32985 | # Compiler output produced by configure, useful for debugging | |
32986 | # configure, is in config.log if it exists. | |
32987 | ||
32988 | debug=false | |
32989 | ac_cs_recheck=false | |
32990 | ac_cs_silent=false | |
32991 | SHELL=\${CONFIG_SHELL-$SHELL} | |
32992 | _ACEOF | |
32993 | ||
32994 | cat >>$CONFIG_STATUS <<\_ACEOF | |
32995 | ## --------------------- ## | |
32996 | ## M4sh Initialization. ## | |
32997 | ## --------------------- ## | |
32998 | ||
32999 | # Be Bourne compatible | |
33000 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
33001 | emulate sh | |
33002 | NULLCMD=: | |
33003 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
33004 | # is contrary to our usage. Disable this feature. | |
33005 | alias -g '${1+"$@"}'='"$@"' | |
a106dabe | 33006 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
33007 | set -o posix | |
4ee9c684 | 33008 | fi |
33009 | DUALCASE=1; export DUALCASE # for MKS sh | |
33010 | ||
33011 | # Support unset when possible. | |
33012 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
33013 | as_unset=unset | |
33014 | else | |
33015 | as_unset=false | |
33016 | fi | |
33017 | ||
33018 | ||
33019 | # Work around bugs in pre-3.0 UWIN ksh. | |
a106dabe | 33020 | $as_unset ENV MAIL MAILPATH |
4ee9c684 | 33021 | PS1='$ ' |
33022 | PS2='> ' | |
33023 | PS4='+ ' | |
33024 | ||
33025 | # NLS nuisances. | |
33026 | for as_var in \ | |
33027 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
33028 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
33029 | LC_TELEPHONE LC_TIME | |
33030 | do | |
33031 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
33032 | eval $as_var=C; export $as_var | |
33033 | else | |
a106dabe | 33034 | $as_unset $as_var |
4ee9c684 | 33035 | fi |
33036 | done | |
33037 | ||
33038 | # Required to use basename. | |
a106dabe | 33039 | if expr a : '\(a\)' >/dev/null 2>&1; then |
4ee9c684 | 33040 | as_expr=expr |
33041 | else | |
33042 | as_expr=false | |
33043 | fi | |
33044 | ||
a106dabe | 33045 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
4ee9c684 | 33046 | as_basename=basename |
33047 | else | |
33048 | as_basename=false | |
33049 | fi | |
33050 | ||
33051 | ||
33052 | # Name of the executable. | |
a106dabe | 33053 | as_me=`$as_basename "$0" || |
4ee9c684 | 33054 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
33055 | X"$0" : 'X\(//\)$' \| \ | |
a106dabe | 33056 | X"$0" : 'X\(/\)$' \| \ |
33057 | . : '\(.\)' 2>/dev/null || | |
4ee9c684 | 33058 | echo X/"$0" | |
a106dabe | 33059 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
33060 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
33061 | /^X\/\(\/\).*/{ s//\1/; q; } | |
33062 | s/.*/./; q'` | |
4ee9c684 | 33063 | |
a106dabe | 33064 | |
33065 | # PATH needs CR, and LINENO needs CR and PATH. | |
33066 | # Avoid depending upon Character Ranges. | |
33067 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
33068 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
33069 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
33070 | as_cr_digits='0123456789' | |
33071 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
33072 | ||
33073 | # The user is always right. | |
33074 | if test "${PATH_SEPARATOR+set}" != set; then | |
33075 | echo "#! /bin/sh" >conf$$.sh | |
33076 | echo "exit 0" >>conf$$.sh | |
33077 | chmod +x conf$$.sh | |
33078 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
33079 | PATH_SEPARATOR=';' | |
33080 | else | |
33081 | PATH_SEPARATOR=: | |
33082 | fi | |
33083 | rm -f conf$$.sh | |
33084 | fi | |
4ee9c684 | 33085 | |
33086 | ||
a106dabe | 33087 | as_lineno_1=$LINENO |
33088 | as_lineno_2=$LINENO | |
33089 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
33090 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
33091 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
33092 | # Find who we are. Look in the path if we contain no path at all | |
33093 | # relative or not. | |
33094 | case $0 in | |
33095 | *[\\/]* ) as_myself=$0 ;; | |
33096 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33097 | for as_dir in $PATH | |
33098 | do | |
33099 | IFS=$as_save_IFS | |
33100 | test -z "$as_dir" && as_dir=. | |
33101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
33102 | done | |
4ee9c684 | 33103 | |
a106dabe | 33104 | ;; |
33105 | esac | |
33106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
33107 | # in which case we are not to be found in the path. | |
33108 | if test "x$as_myself" = x; then | |
33109 | as_myself=$0 | |
33110 | fi | |
33111 | if test ! -f "$as_myself"; then | |
33112 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
33113 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
33114 | { (exit 1); exit 1; }; } | |
33115 | fi | |
33116 | case $CONFIG_SHELL in | |
33117 | '') | |
33118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33119 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
33120 | do | |
33121 | IFS=$as_save_IFS | |
33122 | test -z "$as_dir" && as_dir=. | |
33123 | for as_base in sh bash ksh sh5; do | |
33124 | case $as_dir in | |
33125 | /*) | |
33126 | if ("$as_dir/$as_base" -c ' | |
4ee9c684 | 33127 | as_lineno_1=$LINENO |
33128 | as_lineno_2=$LINENO | |
a106dabe | 33129 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
4ee9c684 | 33130 | test "x$as_lineno_1" != "x$as_lineno_2" && |
a106dabe | 33131 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
33132 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
33133 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
33134 | CONFIG_SHELL=$as_dir/$as_base | |
33135 | export CONFIG_SHELL | |
33136 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
33137 | fi;; | |
33138 | esac | |
33139 | done | |
33140 | done | |
33141 | ;; | |
33142 | esac | |
4ee9c684 | 33143 | |
33144 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
33145 | # uniformly replaced by the line number. The first 'sed' inserts a | |
a106dabe | 33146 | # line-number line before each line; the second 'sed' does the real |
33147 | # work. The second script uses 'N' to pair each line-number line | |
33148 | # with the numbered line, and appends trailing '-' during | |
33149 | # substitution so that $LINENO is not a special case at line end. | |
4ee9c684 | 33150 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
a106dabe | 33151 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
33152 | sed '=' <$as_myself | | |
4ee9c684 | 33153 | sed ' |
33154 | N | |
a106dabe | 33155 | s,$,-, |
33156 | : loop | |
33157 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
4ee9c684 | 33158 | t loop |
a106dabe | 33159 | s,-$,, |
33160 | s,^['$as_cr_digits']*\n,, | |
4ee9c684 | 33161 | ' >$as_me.lineno && |
a106dabe | 33162 | chmod +x $as_me.lineno || |
33163 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
33164 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
4ee9c684 | 33165 | { (exit 1); exit 1; }; } |
33166 | ||
33167 | # Don't try to exec as it changes $[0], causing all sort of problems | |
33168 | # (the dirname of $[0] is not the place where we might find the | |
a106dabe | 33169 | # original and so on. Autoconf is especially sensible to this). |
33170 | . ./$as_me.lineno | |
4ee9c684 | 33171 | # Exit status is that of the last command. |
33172 | exit | |
33173 | } | |
33174 | ||
33175 | ||
a106dabe | 33176 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
33177 | *c*,-n*) ECHO_N= ECHO_C=' | |
33178 | ' ECHO_T=' ' ;; | |
33179 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
33180 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
4ee9c684 | 33181 | esac |
33182 | ||
a106dabe | 33183 | if expr a : '\(a\)' >/dev/null 2>&1; then |
4ee9c684 | 33184 | as_expr=expr |
33185 | else | |
33186 | as_expr=false | |
33187 | fi | |
33188 | ||
33189 | rm -f conf$$ conf$$.exe conf$$.file | |
33190 | echo >conf$$.file | |
33191 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
a106dabe | 33192 | # We could just check for DJGPP; but this test a) works b) is more generic |
33193 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
33194 | if test -f conf$$.exe; then | |
33195 | # Don't use ln at all; we don't have any links | |
4ee9c684 | 33196 | as_ln_s='cp -p' |
a106dabe | 33197 | else |
33198 | as_ln_s='ln -s' | |
33199 | fi | |
4ee9c684 | 33200 | elif ln conf$$.file conf$$ 2>/dev/null; then |
33201 | as_ln_s=ln | |
33202 | else | |
33203 | as_ln_s='cp -p' | |
33204 | fi | |
a106dabe | 33205 | rm -f conf$$ conf$$.exe conf$$.file |
4ee9c684 | 33206 | |
33207 | if mkdir -p . 2>/dev/null; then | |
33208 | as_mkdir_p=: | |
33209 | else | |
33210 | test -d ./-p && rmdir ./-p | |
33211 | as_mkdir_p=false | |
33212 | fi | |
33213 | ||
a106dabe | 33214 | as_executable_p="test -f" |
4ee9c684 | 33215 | |
33216 | # Sed expression to map a string onto a valid CPP name. | |
33217 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
33218 | ||
33219 | # Sed expression to map a string onto a valid variable name. | |
33220 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
33221 | ||
33222 | ||
a106dabe | 33223 | # IFS |
33224 | # We need space, tab and new line, in precisely that order. | |
33225 | as_nl=' | |
33226 | ' | |
33227 | IFS=" $as_nl" | |
33228 | ||
33229 | # CDPATH. | |
33230 | $as_unset CDPATH | |
33231 | ||
4ee9c684 | 33232 | exec 6>&1 |
33233 | ||
a106dabe | 33234 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
4ee9c684 | 33235 | # report actual input values of CONFIG_FILES etc. instead of their |
a106dabe | 33236 | # values after options handling. Logging --version etc. is OK. |
33237 | exec 5>>config.log | |
33238 | { | |
33239 | echo | |
33240 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
33241 | ## Running $as_me. ## | |
33242 | _ASBOX | |
33243 | } >&5 | |
33244 | cat >&5 <<_CSEOF | |
33245 | ||
76c0a846 | 33246 | This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was |
a106dabe | 33247 | generated by GNU Autoconf 2.59. Invocation command line was |
4ee9c684 | 33248 | |
33249 | CONFIG_FILES = $CONFIG_FILES | |
33250 | CONFIG_HEADERS = $CONFIG_HEADERS | |
33251 | CONFIG_LINKS = $CONFIG_LINKS | |
33252 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
33253 | $ $0 $@ | |
33254 | ||
a106dabe | 33255 | _CSEOF |
33256 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
33257 | echo >&5 | |
4ee9c684 | 33258 | _ACEOF |
33259 | ||
33260 | # Files that config.status was made for. | |
a106dabe | 33261 | if test -n "$ac_config_files"; then |
33262 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
33263 | fi | |
4ee9c684 | 33264 | |
a106dabe | 33265 | if test -n "$ac_config_headers"; then |
33266 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
33267 | fi | |
33268 | ||
33269 | if test -n "$ac_config_links"; then | |
33270 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
33271 | fi | |
33272 | ||
33273 | if test -n "$ac_config_commands"; then | |
33274 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
33275 | fi | |
4ee9c684 | 33276 | |
33277 | cat >>$CONFIG_STATUS <<\_ACEOF | |
a106dabe | 33278 | |
4ee9c684 | 33279 | ac_cs_usage="\ |
33280 | \`$as_me' instantiates files from templates according to the | |
33281 | current configuration. | |
33282 | ||
33283 | Usage: $0 [OPTIONS] [FILE]... | |
33284 | ||
33285 | -h, --help print this help, then exit | |
33286 | -V, --version print version number, then exit | |
33287 | -q, --quiet do not print progress messages | |
33288 | -d, --debug don't remove temporary files | |
33289 | --recheck update $as_me by reconfiguring in the same conditions | |
33290 | --file=FILE[:TEMPLATE] | |
33291 | instantiate the configuration file FILE | |
33292 | --header=FILE[:TEMPLATE] | |
33293 | instantiate the configuration header FILE | |
33294 | ||
33295 | Configuration files: | |
33296 | $config_files | |
33297 | ||
33298 | Configuration headers: | |
33299 | $config_headers | |
33300 | ||
33301 | Configuration commands: | |
33302 | $config_commands | |
33303 | ||
33304 | Report bugs to <bug-autoconf@gnu.org>." | |
ce1a737c | 33305 | _ACEOF |
a106dabe | 33306 | |
4ee9c684 | 33307 | cat >>$CONFIG_STATUS <<_ACEOF |
33308 | ac_cs_version="\\ | |
76c0a846 | 33309 | GNU Fortran Runtime Library config.status 0.3 |
a106dabe | 33310 | configured by $0, generated by GNU Autoconf 2.59, |
33311 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
4ee9c684 | 33312 | |
a106dabe | 33313 | Copyright (C) 2003 Free Software Foundation, Inc. |
4ee9c684 | 33314 | This config.status script is free software; the Free Software Foundation |
33315 | gives unlimited permission to copy, distribute and modify it." | |
a106dabe | 33316 | srcdir=$srcdir |
33317 | INSTALL="$INSTALL" | |
4ee9c684 | 33318 | _ACEOF |
33319 | ||
33320 | cat >>$CONFIG_STATUS <<\_ACEOF | |
33321 | # If no file are specified by the user, then we need to provide default | |
33322 | # value. By we need to know if files were specified by the user. | |
33323 | ac_need_defaults=: | |
33324 | while test $# != 0 | |
33325 | do | |
33326 | case $1 in | |
33327 | --*=*) | |
a106dabe | 33328 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
33329 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
4ee9c684 | 33330 | ac_shift=: |
33331 | ;; | |
a106dabe | 33332 | -*) |
4ee9c684 | 33333 | ac_option=$1 |
33334 | ac_optarg=$2 | |
33335 | ac_shift=shift | |
33336 | ;; | |
a106dabe | 33337 | *) # This is not an option, so the user has probably given explicit |
33338 | # arguments. | |
33339 | ac_option=$1 | |
33340 | ac_need_defaults=false;; | |
4ee9c684 | 33341 | esac |
33342 | ||
33343 | case $ac_option in | |
33344 | # Handling of the options. | |
a106dabe | 33345 | _ACEOF |
33346 | cat >>$CONFIG_STATUS <<\_ACEOF | |
4ee9c684 | 33347 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
33348 | ac_cs_recheck=: ;; | |
a106dabe | 33349 | --version | --vers* | -V ) |
33350 | echo "$ac_cs_version"; exit 0 ;; | |
33351 | --he | --h) | |
33352 | # Conflict between --help and --header | |
33353 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
33354 | Try \`$0 --help' for more information." >&5 | |
33355 | echo "$as_me: error: ambiguous option: $1 | |
33356 | Try \`$0 --help' for more information." >&2;} | |
33357 | { (exit 1); exit 1; }; };; | |
33358 | --help | --hel | -h ) | |
33359 | echo "$ac_cs_usage"; exit 0 ;; | |
33360 | --debug | --d* | -d ) | |
4ee9c684 | 33361 | debug=: ;; |
33362 | --file | --fil | --fi | --f ) | |
33363 | $ac_shift | |
33364 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
33365 | ac_need_defaults=false;; | |
33366 | --header | --heade | --head | --hea ) | |
33367 | $ac_shift | |
33368 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
33369 | ac_need_defaults=false;; | |
33370 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
33371 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
33372 | ac_cs_silent=: ;; | |
33373 | ||
33374 | # This is an error. | |
a106dabe | 33375 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
33376 | Try \`$0 --help' for more information." >&5 | |
33377 | echo "$as_me: error: unrecognized option: $1 | |
33378 | Try \`$0 --help' for more information." >&2;} | |
4ee9c684 | 33379 | { (exit 1); exit 1; }; } ;; |
33380 | ||
a106dabe | 33381 | *) ac_config_targets="$ac_config_targets $1" ;; |
4ee9c684 | 33382 | |
33383 | esac | |
33384 | shift | |
33385 | done | |
33386 | ||
33387 | ac_configure_extra_args= | |
33388 | ||
33389 | if $ac_cs_silent; then | |
33390 | exec 6>/dev/null | |
33391 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
33392 | fi | |
33393 | ||
33394 | _ACEOF | |
33395 | cat >>$CONFIG_STATUS <<_ACEOF | |
33396 | if \$ac_cs_recheck; then | |
a106dabe | 33397 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
33398 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
4ee9c684 | 33399 | fi |
33400 | ||
542f9784 | 33401 | _ACEOF |
33402 | ||
33403 | cat >>$CONFIG_STATUS <<_ACEOF | |
33404 | # | |
33405 | # INIT-COMMANDS section. | |
33406 | # | |
33407 | ||
33408 | ||
33409 | srcdir="$srcdir" | |
33410 | host="$host" | |
33411 | target="$target" | |
33412 | with_multisubdir="$with_multisubdir" | |
33413 | with_multisrctop="$with_multisrctop" | |
33414 | with_target_subdir="$with_target_subdir" | |
33415 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
33416 | multi_basedir="$multi_basedir" | |
33417 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
33418 | CC="$CC" | |
33419 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
33420 | ||
33421 | ||
33422 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
33423 | # if CDPATH is set. | |
33424 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
33425 | ||
33426 | sed_quote_subst='$sed_quote_subst' | |
33427 | double_quote_subst='$double_quote_subst' | |
33428 | delay_variable_subst='$delay_variable_subst' | |
33429 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
33430 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
33431 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
33432 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
33433 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
33434 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
33435 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
33436 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
33437 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
33438 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
33439 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
33440 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
33441 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
33442 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
33443 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
33444 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
33445 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
33446 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
33447 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
33448 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
33449 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
33450 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
33451 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
33452 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
33453 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
33454 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
33455 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
33456 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33457 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
33458 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
33459 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
33460 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
33461 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
33462 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
33463 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33464 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33465 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33466 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
33467 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
33468 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
33469 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
33470 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
33471 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
33472 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
33473 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
33474 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
33475 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
33476 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
33477 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
33478 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
33479 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
33480 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
33481 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
33482 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
33483 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
33484 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33485 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33486 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
33487 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
33488 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
33489 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
33490 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
33491 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33492 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33493 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33494 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33495 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33496 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33497 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
33498 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
33499 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
33500 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
33501 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
33502 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
33503 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
33504 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
33505 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
33506 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
33507 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
33508 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
33509 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
33510 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
33511 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
33512 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33513 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
33514 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
33515 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33516 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
33517 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
33518 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
33519 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
33520 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
33521 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
33522 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
33523 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
33524 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
33525 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
33526 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
33527 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33528 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33529 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
33530 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
33531 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
33532 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
33533 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
33534 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
33535 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
33536 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
33537 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
33538 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
33539 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
33540 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
33541 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
33542 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
33543 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
33544 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
33545 | LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33546 | old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33547 | compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33548 | GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33549 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33550 | lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33551 | lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33552 | lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33553 | lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33554 | archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33555 | enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33556 | export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33557 | whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33558 | compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33559 | old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33560 | old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33561 | archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33562 | archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33563 | module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33564 | module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33565 | with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33566 | allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33567 | no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33568 | hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33569 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33570 | hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33571 | hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33572 | hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33573 | hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33574 | hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33575 | hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33576 | inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33577 | link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33578 | fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33579 | always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33580 | export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33581 | exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33582 | include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33583 | prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33584 | file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33585 | hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33586 | predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33587 | postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33588 | predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33589 | postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33590 | compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
33591 | ||
33592 | LTCC='$LTCC' | |
33593 | LTCFLAGS='$LTCFLAGS' | |
33594 | compiler='$compiler_DEFAULT' | |
33595 | ||
33596 | # Quote evaled strings. | |
33597 | for var in SED \ | |
33598 | GREP \ | |
33599 | EGREP \ | |
33600 | FGREP \ | |
33601 | LD \ | |
33602 | NM \ | |
33603 | LN_S \ | |
33604 | lt_SP2NL \ | |
33605 | lt_NL2SP \ | |
33606 | reload_flag \ | |
33607 | deplibs_check_method \ | |
33608 | file_magic_cmd \ | |
33609 | AR \ | |
33610 | AR_FLAGS \ | |
33611 | STRIP \ | |
33612 | RANLIB \ | |
33613 | CC \ | |
33614 | CFLAGS \ | |
33615 | compiler \ | |
33616 | lt_cv_sys_global_symbol_pipe \ | |
33617 | lt_cv_sys_global_symbol_to_cdecl \ | |
33618 | lt_cv_sys_global_symbol_to_c_name_address \ | |
33619 | SHELL \ | |
33620 | ECHO \ | |
33621 | lt_prog_compiler_no_builtin_flag \ | |
33622 | lt_prog_compiler_wl \ | |
33623 | lt_prog_compiler_pic \ | |
33624 | lt_prog_compiler_static \ | |
33625 | lt_cv_prog_compiler_c_o \ | |
33626 | need_locks \ | |
33627 | shrext_cmds \ | |
33628 | export_dynamic_flag_spec \ | |
33629 | whole_archive_flag_spec \ | |
33630 | compiler_needs_object \ | |
33631 | with_gnu_ld \ | |
33632 | allow_undefined_flag \ | |
33633 | no_undefined_flag \ | |
33634 | hardcode_libdir_flag_spec \ | |
33635 | hardcode_libdir_flag_spec_ld \ | |
33636 | hardcode_libdir_separator \ | |
33637 | fix_srcfile_path \ | |
33638 | exclude_expsyms \ | |
33639 | include_expsyms \ | |
33640 | file_list_spec \ | |
33641 | variables_saved_for_relink \ | |
33642 | libname_spec \ | |
33643 | library_names_spec \ | |
33644 | soname_spec \ | |
33645 | finish_eval \ | |
33646 | old_striplib \ | |
33647 | striplib \ | |
33648 | predep_objects \ | |
33649 | postdep_objects \ | |
33650 | predeps \ | |
33651 | postdeps \ | |
33652 | compiler_lib_search_path \ | |
33653 | LD_FC \ | |
33654 | compiler_FC \ | |
33655 | lt_prog_compiler_no_builtin_flag_FC \ | |
33656 | lt_prog_compiler_wl_FC \ | |
33657 | lt_prog_compiler_pic_FC \ | |
33658 | lt_prog_compiler_static_FC \ | |
33659 | lt_cv_prog_compiler_c_o_FC \ | |
33660 | export_dynamic_flag_spec_FC \ | |
33661 | whole_archive_flag_spec_FC \ | |
33662 | compiler_needs_object_FC \ | |
33663 | with_gnu_ld_FC \ | |
33664 | allow_undefined_flag_FC \ | |
33665 | no_undefined_flag_FC \ | |
33666 | hardcode_libdir_flag_spec_FC \ | |
33667 | hardcode_libdir_flag_spec_ld_FC \ | |
33668 | hardcode_libdir_separator_FC \ | |
33669 | fix_srcfile_path_FC \ | |
33670 | exclude_expsyms_FC \ | |
33671 | include_expsyms_FC \ | |
33672 | file_list_spec_FC \ | |
33673 | predep_objects_FC \ | |
33674 | postdep_objects_FC \ | |
33675 | predeps_FC \ | |
33676 | postdeps_FC \ | |
33677 | compiler_lib_search_path_FC; do | |
33678 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
33679 | *[\\\\\\\`\\"\\\$]*) | |
33680 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
33681 | ;; | |
33682 | *) | |
33683 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
33684 | ;; | |
33685 | esac | |
33686 | done | |
33687 | ||
33688 | # Double-quote double-evaled strings. | |
33689 | for var in reload_cmds \ | |
33690 | old_postinstall_cmds \ | |
33691 | old_postuninstall_cmds \ | |
33692 | old_archive_cmds \ | |
33693 | extract_expsyms_cmds \ | |
33694 | old_archive_from_new_cmds \ | |
33695 | old_archive_from_expsyms_cmds \ | |
33696 | archive_cmds \ | |
33697 | archive_expsym_cmds \ | |
33698 | module_cmds \ | |
33699 | module_expsym_cmds \ | |
33700 | export_symbols_cmds \ | |
33701 | prelink_cmds \ | |
33702 | postinstall_cmds \ | |
33703 | postuninstall_cmds \ | |
33704 | finish_cmds \ | |
33705 | sys_lib_search_path_spec \ | |
33706 | sys_lib_dlsearch_path_spec \ | |
33707 | old_archive_cmds_FC \ | |
33708 | old_archive_from_new_cmds_FC \ | |
33709 | old_archive_from_expsyms_cmds_FC \ | |
33710 | archive_cmds_FC \ | |
33711 | archive_expsym_cmds_FC \ | |
33712 | module_cmds_FC \ | |
33713 | module_expsym_cmds_FC \ | |
33714 | export_symbols_cmds_FC \ | |
33715 | prelink_cmds_FC; do | |
33716 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
33717 | *[\\\\\\\`\\"\\\$]*) | |
33718 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
33719 | ;; | |
33720 | *) | |
33721 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
33722 | ;; | |
33723 | esac | |
33724 | done | |
33725 | ||
33726 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
33727 | case \$lt_ECHO in | |
33728 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
33729 | ;; | |
33730 | esac | |
33731 | ||
33732 | ac_aux_dir='$ac_aux_dir' | |
33733 | xsi_shell='$xsi_shell' | |
33734 | lt_shell_append='$lt_shell_append' | |
33735 | ||
33736 | # See if we are running on zsh, and set the options which allow our | |
33737 | # commands through without removal of \ escapes INIT. | |
33738 | if test -n "\${ZSH_VERSION+set}" ; then | |
33739 | setopt NO_GLOB_SUBST | |
33740 | fi | |
33741 | ||
33742 | ||
33743 | PACKAGE='$PACKAGE' | |
33744 | VERSION='$VERSION' | |
33745 | TIMESTAMP='$TIMESTAMP' | |
33746 | RM='$RM' | |
33747 | ofile='$ofile' | |
33748 | ||
33749 | ||
4ee9c684 | 33750 | |
4ee9c684 | 33751 | |
a106dabe | 33752 | |
4ee9c684 | 33753 | |
56c15991 | 33754 | GCC="$GCC" |
33755 | CC="$CC" | |
33756 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
33757 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
33758 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
33759 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
33760 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
33761 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
33762 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
33763 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
33764 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
33765 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
33766 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
33767 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
33768 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
33769 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
33770 | ||
33771 | ||
4ee9c684 | 33772 | _ACEOF |
33773 | ||
ce1a737c | 33774 | |
a106dabe | 33775 | |
33776 | cat >>$CONFIG_STATUS <<\_ACEOF | |
4ee9c684 | 33777 | for ac_config_target in $ac_config_targets |
33778 | do | |
a106dabe | 33779 | case "$ac_config_target" in |
33780 | # Handling of arguments. | |
33781 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
33782 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
33783 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
542f9784 | 33784 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
a106dabe | 33785 | "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; |
33786 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
4ee9c684 | 33787 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
33788 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
33789 | { (exit 1); exit 1; }; };; | |
33790 | esac | |
33791 | done | |
33792 | ||
33793 | # If the user did not use the arguments to specify the items to instantiate, | |
33794 | # then the envvar interface is used. Set only those that are not. | |
33795 | # We use the long form for the default assignment because of an extremely | |
33796 | # bizarre bug on SunOS 4.1.3. | |
33797 | if $ac_need_defaults; then | |
33798 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
33799 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
33800 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
33801 | fi | |
33802 | ||
33803 | # Have a temporary directory for convenience. Make it in the build tree | |
a106dabe | 33804 | # simply because there is no reason to put it here, and in addition, |
4ee9c684 | 33805 | # creating and moving files from /tmp can sometimes cause problems. |
a106dabe | 33806 | # Create a temporary directory, and hook for its removal unless debugging. |
4ee9c684 | 33807 | $debug || |
33808 | { | |
a106dabe | 33809 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
4ee9c684 | 33810 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
33811 | } | |
a106dabe | 33812 | |
4ee9c684 | 33813 | # Create a (secure) tmp directory for tmp files. |
33814 | ||
33815 | { | |
a106dabe | 33816 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
4ee9c684 | 33817 | test -n "$tmp" && test -d "$tmp" |
33818 | } || | |
33819 | { | |
a106dabe | 33820 | tmp=./confstat$$-$RANDOM |
33821 | (umask 077 && mkdir $tmp) | |
4ee9c684 | 33822 | } || |
33823 | { | |
33824 | echo "$me: cannot create a temporary directory in ." >&2 | |
33825 | { (exit 1); exit 1; } | |
33826 | } | |
33827 | ||
a106dabe | 33828 | _ACEOF |
33829 | ||
33830 | cat >>$CONFIG_STATUS <<_ACEOF | |
33831 | ||
4ee9c684 | 33832 | # |
a106dabe | 33833 | # CONFIG_FILES section. |
4ee9c684 | 33834 | # |
33835 | ||
33836 | # No need to generate the scripts if there are no CONFIG_FILES. | |
33837 | # This happens for instance when ./config.status config.h | |
a106dabe | 33838 | if test -n "\$CONFIG_FILES"; then |
33839 | # Protect against being on the right side of a sed subst in config.status. | |
33840 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
33841 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
33842 | s,@SHELL@,$SHELL,;t t | |
33843 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
33844 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
33845 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
33846 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
33847 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
33848 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
33849 | s,@exec_prefix@,$exec_prefix,;t t | |
33850 | s,@prefix@,$prefix,;t t | |
33851 | s,@program_transform_name@,$program_transform_name,;t t | |
33852 | s,@bindir@,$bindir,;t t | |
33853 | s,@sbindir@,$sbindir,;t t | |
33854 | s,@libexecdir@,$libexecdir,;t t | |
33855 | s,@datadir@,$datadir,;t t | |
33856 | s,@sysconfdir@,$sysconfdir,;t t | |
33857 | s,@sharedstatedir@,$sharedstatedir,;t t | |
33858 | s,@localstatedir@,$localstatedir,;t t | |
33859 | s,@libdir@,$libdir,;t t | |
33860 | s,@includedir@,$includedir,;t t | |
33861 | s,@oldincludedir@,$oldincludedir,;t t | |
33862 | s,@infodir@,$infodir,;t t | |
33863 | s,@mandir@,$mandir,;t t | |
33864 | s,@build_alias@,$build_alias,;t t | |
33865 | s,@host_alias@,$host_alias,;t t | |
33866 | s,@target_alias@,$target_alias,;t t | |
33867 | s,@DEFS@,$DEFS,;t t | |
33868 | s,@ECHO_C@,$ECHO_C,;t t | |
33869 | s,@ECHO_N@,$ECHO_N,;t t | |
33870 | s,@ECHO_T@,$ECHO_T,;t t | |
33871 | s,@LIBS@,$LIBS,;t t | |
33872 | s,@build@,$build,;t t | |
33873 | s,@build_cpu@,$build_cpu,;t t | |
33874 | s,@build_vendor@,$build_vendor,;t t | |
33875 | s,@build_os@,$build_os,;t t | |
33876 | s,@build_libsubdir@,$build_libsubdir,;t t | |
33877 | s,@build_subdir@,$build_subdir,;t t | |
33878 | s,@host_subdir@,$host_subdir,;t t | |
33879 | s,@target_subdir@,$target_subdir,;t t | |
33880 | s,@host@,$host,;t t | |
33881 | s,@host_cpu@,$host_cpu,;t t | |
33882 | s,@host_vendor@,$host_vendor,;t t | |
33883 | s,@host_os@,$host_os,;t t | |
33884 | s,@target@,$target,;t t | |
33885 | s,@target_cpu@,$target_cpu,;t t | |
33886 | s,@target_vendor@,$target_vendor,;t t | |
33887 | s,@target_os@,$target_os,;t t | |
33888 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
33889 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
33890 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
33891 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
33892 | s,@PACKAGE@,$PACKAGE,;t t | |
33893 | s,@VERSION@,$VERSION,;t t | |
33894 | s,@ACLOCAL@,$ACLOCAL,;t t | |
33895 | s,@AUTOCONF@,$AUTOCONF,;t t | |
33896 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
33897 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
33898 | s,@MAKEINFO@,$MAKEINFO,;t t | |
33899 | s,@install_sh@,$install_sh,;t t | |
33900 | s,@STRIP@,$STRIP,;t t | |
33901 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
33902 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
33903 | s,@mkdir_p@,$mkdir_p,;t t | |
33904 | s,@AWK@,$AWK,;t t | |
33905 | s,@SET_MAKE@,$SET_MAKE,;t t | |
33906 | s,@am__leading_dot@,$am__leading_dot,;t t | |
33907 | s,@AMTAR@,$AMTAR,;t t | |
33908 | s,@am__tar@,$am__tar,;t t | |
33909 | s,@am__untar@,$am__untar,;t t | |
33910 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
33911 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
33912 | s,@MAINT@,$MAINT,;t t | |
33913 | s,@multi_basedir@,$multi_basedir,;t t | |
33914 | s,@toolexecdir@,$toolexecdir,;t t | |
33915 | s,@toolexeclibdir@,$toolexeclibdir,;t t | |
33916 | s,@CC@,$CC,;t t | |
33917 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
33918 | s,@EXEEXT@,$EXEEXT,;t t | |
33919 | s,@OBJEXT@,$OBJEXT,;t t | |
33920 | s,@DEPDIR@,$DEPDIR,;t t | |
33921 | s,@am__include@,$am__include,;t t | |
33922 | s,@am__quote@,$am__quote,;t t | |
33923 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
33924 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
33925 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
33926 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
33927 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
33928 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
33929 | s,@AM_FCFLAGS@,$AM_FCFLAGS,;t t | |
33930 | s,@AM_CFLAGS@,$AM_CFLAGS,;t t | |
cd82131f | 33931 | s,@CFLAGS@,$CFLAGS,;t t |
a106dabe | 33932 | s,@LIBGFOR_USE_SYMVER_TRUE@,$LIBGFOR_USE_SYMVER_TRUE,;t t |
33933 | s,@LIBGFOR_USE_SYMVER_FALSE@,$LIBGFOR_USE_SYMVER_FALSE,;t t | |
33934 | s,@AS@,$AS,;t t | |
33935 | s,@ac_ct_AS@,$ac_ct_AS,;t t | |
33936 | s,@AR@,$AR,;t t | |
33937 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
33938 | s,@RANLIB@,$RANLIB,;t t | |
33939 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
a106dabe | 33940 | s,@LIBTOOL@,$LIBTOOL,;t t |
542f9784 | 33941 | s,@SED@,$SED,;t t |
33942 | s,@EGREP@,$EGREP,;t t | |
33943 | s,@FGREP@,$FGREP,;t t | |
33944 | s,@GREP@,$GREP,;t t | |
33945 | s,@LD@,$LD,;t t | |
33946 | s,@DUMPBIN@,$DUMPBIN,;t t | |
33947 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t | |
33948 | s,@NM@,$NM,;t t | |
33949 | s,@LN_S@,$LN_S,;t t | |
33950 | s,@lt_ECHO@,$lt_ECHO,;t t | |
33951 | s,@CPP@,$CPP,;t t | |
33952 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
a106dabe | 33953 | s,@enable_shared@,$enable_shared,;t t |
33954 | s,@enable_static@,$enable_static,;t t | |
33955 | s,@FC@,$FC,;t t | |
33956 | s,@FCFLAGS@,$FCFLAGS,;t t | |
33957 | s,@LDFLAGS@,$LDFLAGS,;t t | |
33958 | s,@ac_ct_FC@,$ac_ct_FC,;t t | |
33959 | s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t | |
a106dabe | 33960 | s,@FPU_HOST_HEADER@,$FPU_HOST_HEADER,;t t |
33961 | s,@LIBOBJS@,$LIBOBJS,;t t | |
33962 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
33963 | CEOF | |
33964 | ||
33965 | _ACEOF | |
33966 | ||
33967 | cat >>$CONFIG_STATUS <<\_ACEOF | |
33968 | # Split the substitutions into bite-sized pieces for seds with | |
33969 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
33970 | ac_max_sed_lines=48 | |
33971 | ac_sed_frag=1 # Number of current file. | |
33972 | ac_beg=1 # First line for current file. | |
33973 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
33974 | ac_more_lines=: | |
33975 | ac_sed_cmds= | |
33976 | while $ac_more_lines; do | |
33977 | if test $ac_beg -gt 1; then | |
33978 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
33979 | else | |
33980 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
33981 | fi | |
33982 | if test ! -s $tmp/subs.frag; then | |
33983 | ac_more_lines=false | |
33984 | else | |
33985 | # The purpose of the label and of the branching condition is to | |
33986 | # speed up the sed processing (if there are no `@' at all, there | |
33987 | # is no need to browse any of the substitutions). | |
33988 | # These are the two extra sed commands mentioned above. | |
33989 | (echo ':t | |
33990 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
33991 | if test -z "$ac_sed_cmds"; then | |
33992 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
33993 | else | |
33994 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
33995 | fi | |
33996 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
33997 | ac_beg=$ac_end | |
33998 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
33999 | fi | |
34000 | done | |
34001 | if test -z "$ac_sed_cmds"; then | |
34002 | ac_sed_cmds=cat | |
ce1a737c | 34003 | fi |
a106dabe | 34004 | fi # test -n "$CONFIG_FILES" |
ce1a737c | 34005 | |
4ee9c684 | 34006 | _ACEOF |
34007 | cat >>$CONFIG_STATUS <<\_ACEOF | |
a106dabe | 34008 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
34009 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
34010 | case $ac_file in | |
34011 | - | *:- | *:-:* ) # input from stdin | |
34012 | cat >$tmp/stdin | |
34013 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
34014 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
34015 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
34016 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
34017 | * ) ac_file_in=$ac_file.in ;; | |
4ee9c684 | 34018 | esac |
34019 | ||
a106dabe | 34020 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
34021 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
4ee9c684 | 34022 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
34023 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
34024 | X"$ac_file" : 'X\(//\)$' \| \ | |
a106dabe | 34025 | X"$ac_file" : 'X\(/\)' \| \ |
34026 | . : '\(.\)' 2>/dev/null || | |
4ee9c684 | 34027 | echo X"$ac_file" | |
a106dabe | 34028 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
34029 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
34030 | /^X\(\/\/\)$/{ s//\1/; q; } | |
34031 | /^X\(\/\).*/{ s//\1/; q; } | |
34032 | s/.*/./; q'` | |
34033 | { if $as_mkdir_p; then | |
34034 | mkdir -p "$ac_dir" | |
34035 | else | |
34036 | as_dir="$ac_dir" | |
4ee9c684 | 34037 | as_dirs= |
a106dabe | 34038 | while test ! -d "$as_dir"; do |
34039 | as_dirs="$as_dir $as_dirs" | |
34040 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
4ee9c684 | 34041 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
34042 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
34043 | X"$as_dir" : 'X\(//\)$' \| \ | |
a106dabe | 34044 | X"$as_dir" : 'X\(/\)' \| \ |
34045 | . : '\(.\)' 2>/dev/null || | |
4ee9c684 | 34046 | echo X"$as_dir" | |
a106dabe | 34047 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
34048 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
34049 | /^X\(\/\/\)$/{ s//\1/; q; } | |
34050 | /^X\(\/\).*/{ s//\1/; q; } | |
34051 | s/.*/./; q'` | |
4ee9c684 | 34052 | done |
a106dabe | 34053 | test ! -n "$as_dirs" || mkdir $as_dirs |
34054 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
34055 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
4ee9c684 | 34056 | { (exit 1); exit 1; }; }; } |
a106dabe | 34057 | |
4ee9c684 | 34058 | ac_builddir=. |
34059 | ||
a106dabe | 34060 | if test "$ac_dir" != .; then |
4ee9c684 | 34061 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
a106dabe | 34062 | # A "../" for each directory in $ac_dir_suffix. |
34063 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
34064 | else | |
34065 | ac_dir_suffix= ac_top_builddir= | |
34066 | fi | |
4ee9c684 | 34067 | |
34068 | case $srcdir in | |
a106dabe | 34069 | .) # No --srcdir option. We are building in place. |
4ee9c684 | 34070 | ac_srcdir=. |
a106dabe | 34071 | if test -z "$ac_top_builddir"; then |
34072 | ac_top_srcdir=. | |
34073 | else | |
34074 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
34075 | fi ;; | |
34076 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
4ee9c684 | 34077 | ac_srcdir=$srcdir$ac_dir_suffix; |
a106dabe | 34078 | ac_top_srcdir=$srcdir ;; |
34079 | *) # Relative path. | |
34080 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
34081 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
4ee9c684 | 34082 | esac |
34083 | ||
a106dabe | 34084 | # Do not use `cd foo && pwd` to compute absolute paths, because |
34085 | # the directories may not exist. | |
34086 | case `pwd` in | |
34087 | .) ac_abs_builddir="$ac_dir";; | |
34088 | *) | |
34089 | case "$ac_dir" in | |
34090 | .) ac_abs_builddir=`pwd`;; | |
34091 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
34092 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
34093 | esac;; | |
34094 | esac | |
34095 | case $ac_abs_builddir in | |
34096 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
34097 | *) | |
34098 | case ${ac_top_builddir}. in | |
34099 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
34100 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
34101 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
34102 | esac;; | |
34103 | esac | |
34104 | case $ac_abs_builddir in | |
34105 | .) ac_abs_srcdir=$ac_srcdir;; | |
34106 | *) | |
34107 | case $ac_srcdir in | |
34108 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
34109 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
34110 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
34111 | esac;; | |
34112 | esac | |
34113 | case $ac_abs_builddir in | |
34114 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
34115 | *) | |
34116 | case $ac_top_srcdir in | |
34117 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
34118 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
34119 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
34120 | esac;; | |
34121 | esac | |
4ee9c684 | 34122 | |
34123 | ||
34124 | case $INSTALL in | |
34125 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
a106dabe | 34126 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
4ee9c684 | 34127 | esac |
34128 | ||
c0e8efbe | 34129 | if test x"$ac_file" != x-; then |
34130 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
34131 | echo "$as_me: creating $ac_file" >&6;} | |
34132 | rm -f "$ac_file" | |
34133 | fi | |
a106dabe | 34134 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
34135 | # use $as_me), people would be surprised to read: | |
34136 | # /* config.h. Generated by config.status. */ | |
34137 | if test x"$ac_file" = x-; then | |
34138 | configure_input= | |
34139 | else | |
34140 | configure_input="$ac_file. " | |
34141 | fi | |
34142 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
34143 | sed 's,.*/,,'` by configure." | |
34144 | ||
34145 | # First look for the input files in the build tree, otherwise in the | |
34146 | # src tree. | |
34147 | ac_file_inputs=`IFS=: | |
34148 | for f in $ac_file_in; do | |
34149 | case $f in | |
34150 | -) echo $tmp/stdin ;; | |
34151 | [\\/$]*) | |
34152 | # Absolute (can't be DOS-style, as IFS=:) | |
34153 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
34154 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
34155 | { (exit 1); exit 1; }; } | |
34156 | echo "$f";; | |
34157 | *) # Relative | |
34158 | if test -f "$f"; then | |
34159 | # Build tree | |
34160 | echo "$f" | |
34161 | elif test -f "$srcdir/$f"; then | |
34162 | # Source tree | |
34163 | echo "$srcdir/$f" | |
34164 | else | |
34165 | # /dev/null tree | |
34166 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
34167 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
34168 | { (exit 1); exit 1; }; } | |
34169 | fi;; | |
34170 | esac | |
34171 | done` || { (exit 1); exit 1; } | |
a106dabe | 34172 | _ACEOF |
4ee9c684 | 34173 | cat >>$CONFIG_STATUS <<_ACEOF |
34174 | sed "$ac_vpsub | |
34175 | $extrasub | |
34176 | _ACEOF | |
34177 | cat >>$CONFIG_STATUS <<\_ACEOF | |
34178 | :t | |
34179 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
a106dabe | 34180 | s,@configure_input@,$configure_input,;t t |
34181 | s,@srcdir@,$ac_srcdir,;t t | |
34182 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
34183 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
34184 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
34185 | s,@builddir@,$ac_builddir,;t t | |
34186 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
34187 | s,@top_builddir@,$ac_top_builddir,;t t | |
34188 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
34189 | s,@INSTALL@,$ac_INSTALL,;t t | |
34190 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
34191 | rm -f $tmp/stdin | |
34192 | if test x"$ac_file" != x-; then | |
34193 | mv $tmp/out $ac_file | |
34194 | else | |
34195 | cat $tmp/out | |
34196 | rm -f $tmp/out | |
34197 | fi | |
34198 | ||
34199 | done | |
34200 | _ACEOF | |
34201 | cat >>$CONFIG_STATUS <<\_ACEOF | |
34202 | ||
34203 | # | |
34204 | # CONFIG_HEADER section. | |
34205 | # | |
34206 | ||
34207 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
34208 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
34209 | # | |
34210 | # ac_d sets the value in "#define NAME VALUE" lines. | |
34211 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
34212 | ac_dB='[ ].*$,\1#\2' | |
34213 | ac_dC=' ' | |
34214 | ac_dD=',;t' | |
34215 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
34216 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
34217 | ac_uB='$,\1#\2define\3' | |
34218 | ac_uC=' ' | |
34219 | ac_uD=',;t' | |
34220 | ||
34221 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
34222 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
4ee9c684 | 34223 | case $ac_file in |
a106dabe | 34224 | - | *:- | *:-:* ) # input from stdin |
34225 | cat >$tmp/stdin | |
34226 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
34227 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
34228 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
34229 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
34230 | * ) ac_file_in=$ac_file.in ;; | |
4ee9c684 | 34231 | esac |
a106dabe | 34232 | |
34233 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
34234 | echo "$as_me: creating $ac_file" >&6;} | |
34235 | ||
34236 | # First look for the input files in the build tree, otherwise in the | |
34237 | # src tree. | |
34238 | ac_file_inputs=`IFS=: | |
34239 | for f in $ac_file_in; do | |
34240 | case $f in | |
34241 | -) echo $tmp/stdin ;; | |
34242 | [\\/$]*) | |
34243 | # Absolute (can't be DOS-style, as IFS=:) | |
34244 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
34245 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
34246 | { (exit 1); exit 1; }; } | |
34247 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
34248 | echo "$f";; | |
34249 | *) # Relative | |
34250 | if test -f "$f"; then | |
34251 | # Build tree | |
34252 | echo "$f" | |
34253 | elif test -f "$srcdir/$f"; then | |
34254 | # Source tree | |
34255 | echo "$srcdir/$f" | |
34256 | else | |
34257 | # /dev/null tree | |
34258 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
34259 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
34260 | { (exit 1); exit 1; }; } | |
34261 | fi;; | |
34262 | esac | |
34263 | done` || { (exit 1); exit 1; } | |
34264 | # Remove the trailing spaces. | |
34265 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
34266 | ||
34267 | _ACEOF | |
34268 | ||
34269 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
34270 | # `conftest.undefs', that substitutes the proper values into | |
34271 | # config.h.in to produce config.h. The first handles `#define' | |
34272 | # templates, and the second `#undef' templates. | |
34273 | # And first: Protect against being on the right side of a sed subst in | |
34274 | # config.status. Protect against being in an unquoted here document | |
34275 | # in config.status. | |
34276 | rm -f conftest.defines conftest.undefs | |
34277 | # Using a here document instead of a string reduces the quoting nightmare. | |
34278 | # Putting comments in sed scripts is not portable. | |
34279 | # | |
34280 | # `end' is used to avoid that the second main sed command (meant for | |
34281 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
34282 | # See the Autoconf documentation for `clear'. | |
34283 | cat >confdef2sed.sed <<\_ACEOF | |
34284 | s/[\\&,]/\\&/g | |
34285 | s,[\\$`],\\&,g | |
34286 | t clear | |
34287 | : clear | |
34288 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
34289 | t end | |
34290 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
34291 | : end | |
34292 | _ACEOF | |
34293 | # If some macros were called several times there might be several times | |
34294 | # the same #defines, which is useless. Nevertheless, we may not want to | |
34295 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
34296 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
34297 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
34298 | rm -f confdef2sed.sed | |
34299 | ||
34300 | # This sed command replaces #undef with comments. This is necessary, for | |
4ee9c684 | 34301 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
34302 | # on some systems where configure will not decide to define it. | |
a106dabe | 34303 | cat >>conftest.undefs <<\_ACEOF |
34304 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
34305 | _ACEOF | |
34306 | ||
34307 | # Break up conftest.defines because some shells have a limit on the size | |
34308 | # of here documents, and old seds have small limits too (100 cmds). | |
34309 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
34310 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
34311 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
34312 | echo ' :' >>$CONFIG_STATUS | |
34313 | rm -f conftest.tail | |
34314 | while grep . conftest.defines >/dev/null | |
4ee9c684 | 34315 | do |
a106dabe | 34316 | # Write a limited-size here document to $tmp/defines.sed. |
34317 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
34318 | # Speed up: don't consider the non `#define' lines. | |
34319 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
34320 | # Work around the forget-to-reset-the-flag bug. | |
34321 | echo 't clr' >>$CONFIG_STATUS | |
34322 | echo ': clr' >>$CONFIG_STATUS | |
34323 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
4ee9c684 | 34324 | echo 'CEOF |
a106dabe | 34325 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
34326 | rm -f $tmp/in | |
34327 | mv $tmp/out $tmp/in | |
34328 | ' >>$CONFIG_STATUS | |
34329 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
4ee9c684 | 34330 | rm -f conftest.defines |
34331 | mv conftest.tail conftest.defines | |
34332 | done | |
a106dabe | 34333 | rm -f conftest.defines |
34334 | echo ' fi # grep' >>$CONFIG_STATUS | |
34335 | echo >>$CONFIG_STATUS | |
34336 | ||
34337 | # Break up conftest.undefs because some shells have a limit on the size | |
34338 | # of here documents, and old seds have small limits too (100 cmds). | |
34339 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
34340 | rm -f conftest.tail | |
34341 | while grep . conftest.undefs >/dev/null | |
34342 | do | |
34343 | # Write a limited-size here document to $tmp/undefs.sed. | |
34344 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
34345 | # Speed up: don't consider the non `#undef' | |
34346 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
34347 | # Work around the forget-to-reset-the-flag bug. | |
34348 | echo 't clr' >>$CONFIG_STATUS | |
34349 | echo ': clr' >>$CONFIG_STATUS | |
34350 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
34351 | echo 'CEOF | |
34352 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
34353 | rm -f $tmp/in | |
34354 | mv $tmp/out $tmp/in | |
34355 | ' >>$CONFIG_STATUS | |
34356 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
34357 | rm -f conftest.undefs | |
34358 | mv conftest.tail conftest.undefs | |
34359 | done | |
34360 | rm -f conftest.undefs | |
4ee9c684 | 34361 | |
34362 | cat >>$CONFIG_STATUS <<\_ACEOF | |
a106dabe | 34363 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
34364 | # use $as_me), people would be surprised to read: | |
34365 | # /* config.h. Generated by config.status. */ | |
34366 | if test x"$ac_file" = x-; then | |
34367 | echo "/* Generated by configure. */" >$tmp/config.h | |
34368 | else | |
34369 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
34370 | fi | |
34371 | cat $tmp/in >>$tmp/config.h | |
34372 | rm -f $tmp/in | |
4ee9c684 | 34373 | if test x"$ac_file" != x-; then |
a106dabe | 34374 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
4ee9c684 | 34375 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
34376 | echo "$as_me: $ac_file is unchanged" >&6;} | |
34377 | else | |
a106dabe | 34378 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
34379 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
34380 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
34381 | X"$ac_file" : 'X\(//\)$' \| \ | |
34382 | X"$ac_file" : 'X\(/\)' \| \ | |
34383 | . : '\(.\)' 2>/dev/null || | |
34384 | echo X"$ac_file" | | |
34385 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
34386 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
34387 | /^X\(\/\/\)$/{ s//\1/; q; } | |
34388 | /^X\(\/\).*/{ s//\1/; q; } | |
34389 | s/.*/./; q'` | |
34390 | { if $as_mkdir_p; then | |
34391 | mkdir -p "$ac_dir" | |
34392 | else | |
34393 | as_dir="$ac_dir" | |
34394 | as_dirs= | |
34395 | while test ! -d "$as_dir"; do | |
34396 | as_dirs="$as_dir $as_dirs" | |
34397 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
34398 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
34399 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
34400 | X"$as_dir" : 'X\(//\)$' \| \ | |
34401 | X"$as_dir" : 'X\(/\)' \| \ | |
34402 | . : '\(.\)' 2>/dev/null || | |
34403 | echo X"$as_dir" | | |
34404 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
34405 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
34406 | /^X\(\/\/\)$/{ s//\1/; q; } | |
34407 | /^X\(\/\).*/{ s//\1/; q; } | |
34408 | s/.*/./; q'` | |
34409 | done | |
34410 | test ! -n "$as_dirs" || mkdir $as_dirs | |
34411 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
34412 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
34413 | { (exit 1); exit 1; }; }; } | |
34414 | ||
4ee9c684 | 34415 | rm -f $ac_file |
a106dabe | 34416 | mv $tmp/config.h $ac_file |
4ee9c684 | 34417 | fi |
34418 | else | |
a106dabe | 34419 | cat $tmp/config.h |
34420 | rm -f $tmp/config.h | |
4ee9c684 | 34421 | fi |
34422 | # Compute $ac_file's index in $config_headers. | |
34423 | _am_stamp_count=1 | |
34424 | for _am_header in $config_headers :; do | |
34425 | case $_am_header in | |
34426 | $ac_file | $ac_file:* ) | |
34427 | break ;; | |
34428 | * ) | |
34429 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
34430 | esac | |
34431 | done | |
a106dabe | 34432 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
4ee9c684 | 34433 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
34434 | X$ac_file : 'X\(//\)[^/]' \| \ | |
34435 | X$ac_file : 'X\(//\)$' \| \ | |
a106dabe | 34436 | X$ac_file : 'X\(/\)' \| \ |
34437 | . : '\(.\)' 2>/dev/null || | |
4ee9c684 | 34438 | echo X$ac_file | |
a106dabe | 34439 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
34440 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
34441 | /^X\(\/\/\)$/{ s//\1/; q; } | |
34442 | /^X\(\/\).*/{ s//\1/; q; } | |
34443 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
34444 | done | |
34445 | _ACEOF | |
34446 | cat >>$CONFIG_STATUS <<\_ACEOF | |
4ee9c684 | 34447 | |
a106dabe | 34448 | # |
34449 | # CONFIG_COMMANDS section. | |
34450 | # | |
34451 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
34452 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
34453 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
34454 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
34455 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
34456 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
34457 | X"$ac_dest" : 'X\(//\)$' \| \ | |
34458 | X"$ac_dest" : 'X\(/\)' \| \ | |
34459 | . : '\(.\)' 2>/dev/null || | |
34460 | echo X"$ac_dest" | | |
34461 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
34462 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
34463 | /^X\(\/\/\)$/{ s//\1/; q; } | |
34464 | /^X\(\/\).*/{ s//\1/; q; } | |
34465 | s/.*/./; q'` | |
34466 | { if $as_mkdir_p; then | |
34467 | mkdir -p "$ac_dir" | |
34468 | else | |
34469 | as_dir="$ac_dir" | |
34470 | as_dirs= | |
34471 | while test ! -d "$as_dir"; do | |
34472 | as_dirs="$as_dir $as_dirs" | |
34473 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
34474 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
34475 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
34476 | X"$as_dir" : 'X\(//\)$' \| \ | |
34477 | X"$as_dir" : 'X\(/\)' \| \ | |
34478 | . : '\(.\)' 2>/dev/null || | |
34479 | echo X"$as_dir" | | |
34480 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
34481 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
34482 | /^X\(\/\/\)$/{ s//\1/; q; } | |
34483 | /^X\(\/\).*/{ s//\1/; q; } | |
34484 | s/.*/./; q'` | |
34485 | done | |
34486 | test ! -n "$as_dirs" || mkdir $as_dirs | |
34487 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
34488 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
34489 | { (exit 1); exit 1; }; }; } | |
34490 | ||
34491 | ac_builddir=. | |
34492 | ||
34493 | if test "$ac_dir" != .; then | |
34494 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
34495 | # A "../" for each directory in $ac_dir_suffix. | |
34496 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
34497 | else | |
34498 | ac_dir_suffix= ac_top_builddir= | |
34499 | fi | |
34500 | ||
34501 | case $srcdir in | |
34502 | .) # No --srcdir option. We are building in place. | |
34503 | ac_srcdir=. | |
34504 | if test -z "$ac_top_builddir"; then | |
34505 | ac_top_srcdir=. | |
34506 | else | |
34507 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
34508 | fi ;; | |
34509 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
34510 | ac_srcdir=$srcdir$ac_dir_suffix; | |
34511 | ac_top_srcdir=$srcdir ;; | |
34512 | *) # Relative path. | |
34513 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
34514 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
34515 | esac | |
34516 | ||
34517 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
34518 | # the directories may not exist. | |
34519 | case `pwd` in | |
34520 | .) ac_abs_builddir="$ac_dir";; | |
34521 | *) | |
34522 | case "$ac_dir" in | |
34523 | .) ac_abs_builddir=`pwd`;; | |
34524 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
34525 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
34526 | esac;; | |
34527 | esac | |
34528 | case $ac_abs_builddir in | |
34529 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
34530 | *) | |
34531 | case ${ac_top_builddir}. in | |
34532 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
34533 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
34534 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
34535 | esac;; | |
34536 | esac | |
34537 | case $ac_abs_builddir in | |
34538 | .) ac_abs_srcdir=$ac_srcdir;; | |
34539 | *) | |
34540 | case $ac_srcdir in | |
34541 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
34542 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
34543 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
34544 | esac;; | |
34545 | esac | |
34546 | case $ac_abs_builddir in | |
34547 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
34548 | *) | |
34549 | case $ac_top_srcdir in | |
34550 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
34551 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
34552 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
34553 | esac;; | |
34554 | esac | |
4ee9c684 | 34555 | |
34556 | ||
a106dabe | 34557 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
34558 | echo "$as_me: executing $ac_dest commands" >&6;} | |
34559 | case $ac_dest in | |
34560 | default-1 ) | |
90973b19 | 34561 | # Only add multilib support code if we just rebuilt the top-level |
34562 | # Makefile. | |
34563 | case " $CONFIG_FILES " in | |
34564 | *" Makefile "*) | |
34565 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
34566 | ;; | |
34567 | esac ;; | |
a106dabe | 34568 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
2fd61f51 | 34569 | # Strip MF so we end up with the name of the file. |
34570 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
34571 | # Check whether this is an Automake generated Makefile or not. | |
34572 | # We used to match only the files named `Makefile.in', but | |
34573 | # some people rename them; so instead we look at the file content. | |
34574 | # Grep'ing the first line is not enough: some people post-process | |
34575 | # each Makefile.in and add a new line on top of each file to say so. | |
34576 | # So let's grep whole file. | |
34577 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
a106dabe | 34578 | dirpart=`(dirname "$mf") 2>/dev/null || |
2fd61f51 | 34579 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
34580 | X"$mf" : 'X\(//\)[^/]' \| \ | |
34581 | X"$mf" : 'X\(//\)$' \| \ | |
a106dabe | 34582 | X"$mf" : 'X\(/\)' \| \ |
34583 | . : '\(.\)' 2>/dev/null || | |
2fd61f51 | 34584 | echo X"$mf" | |
a106dabe | 34585 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
34586 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
34587 | /^X\(\/\/\)$/{ s//\1/; q; } | |
34588 | /^X\(\/\).*/{ s//\1/; q; } | |
34589 | s/.*/./; q'` | |
2fd61f51 | 34590 | else |
34591 | continue | |
34592 | fi | |
34593 | # Extract the definition of DEPDIR, am__include, and am__quote | |
34594 | # from the Makefile without running `make'. | |
34595 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
34596 | test -z "$DEPDIR" && continue | |
34597 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
34598 | test -z "am__include" && continue | |
34599 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
34600 | # When using ansi2knr, U may be empty or an underscore; expand it | |
34601 | U=`sed -n 's/^U = //p' < "$mf"` | |
34602 | # Find all dependency output files, they are included files with | |
34603 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
34604 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
34605 | # expansion. | |
34606 | for file in `sed -n " | |
34607 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
34608 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
34609 | # Make sure the directory exists. | |
34610 | test -f "$dirpart/$file" && continue | |
a106dabe | 34611 | fdir=`(dirname "$file") 2>/dev/null || |
2fd61f51 | 34612 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
34613 | X"$file" : 'X\(//\)[^/]' \| \ | |
34614 | X"$file" : 'X\(//\)$' \| \ | |
a106dabe | 34615 | X"$file" : 'X\(/\)' \| \ |
34616 | . : '\(.\)' 2>/dev/null || | |
2fd61f51 | 34617 | echo X"$file" | |
a106dabe | 34618 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
34619 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
34620 | /^X\(\/\/\)$/{ s//\1/; q; } | |
34621 | /^X\(\/\).*/{ s//\1/; q; } | |
34622 | s/.*/./; q'` | |
34623 | { if $as_mkdir_p; then | |
34624 | mkdir -p $dirpart/$fdir | |
34625 | else | |
34626 | as_dir=$dirpart/$fdir | |
2fd61f51 | 34627 | as_dirs= |
a106dabe | 34628 | while test ! -d "$as_dir"; do |
34629 | as_dirs="$as_dir $as_dirs" | |
34630 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
2fd61f51 | 34631 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
34632 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
34633 | X"$as_dir" : 'X\(//\)$' \| \ | |
a106dabe | 34634 | X"$as_dir" : 'X\(/\)' \| \ |
34635 | . : '\(.\)' 2>/dev/null || | |
2fd61f51 | 34636 | echo X"$as_dir" | |
a106dabe | 34637 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
34638 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
34639 | /^X\(\/\/\)$/{ s//\1/; q; } | |
34640 | /^X\(\/\).*/{ s//\1/; q; } | |
34641 | s/.*/./; q'` | |
2fd61f51 | 34642 | done |
a106dabe | 34643 | test ! -n "$as_dirs" || mkdir $as_dirs |
34644 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
34645 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
2fd61f51 | 34646 | { (exit 1); exit 1; }; }; } |
a106dabe | 34647 | |
2fd61f51 | 34648 | # echo "creating $dirpart/$file" |
34649 | echo '# dummy' > "$dirpart/$file" | |
34650 | done | |
34651 | done | |
542f9784 | 34652 | ;; |
34653 | libtool ) | |
34654 | ||
34655 | # See if we are running on zsh, and set the options which allow our | |
34656 | # commands through without removal of \ escapes. | |
34657 | if test -n "${ZSH_VERSION+set}" ; then | |
34658 | setopt NO_GLOB_SUBST | |
34659 | fi | |
34660 | ||
34661 | cfgfile="${ofile}T" | |
34662 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
34663 | $RM "$cfgfile" | |
34664 | ||
34665 | cat <<_LT_EOF >> "$cfgfile" | |
34666 | #! $SHELL | |
34667 | ||
34668 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
34669 | # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION | |
34670 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
34671 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
34672 | # | |
34673 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
34674 | # 2006, 2007 Free Software Foundation, Inc. | |
34675 | # | |
34676 | # This file is part of GNU Libtool: | |
34677 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
34678 | # | |
34679 | # This program is free software; you can redistribute it and/or modify | |
34680 | # it under the terms of the GNU General Public License as published by | |
34681 | # the Free Software Foundation; either version 2 of the License, or | |
34682 | # (at your option) any later version. | |
34683 | # | |
34684 | # This program is distributed in the hope that it will be useful, but | |
34685 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
34686 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
34687 | # General Public License for more details. | |
34688 | # | |
34689 | # You should have received a copy of the GNU General Public License | |
34690 | # along with this program; if not, a copy can be downloaded from | |
34691 | # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free | |
34692 | # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
34693 | # MA 02110-1301, USA. | |
34694 | # | |
34695 | # As a special exception to the GNU General Public License, if you | |
34696 | # distribute this file as part of a program that contains a | |
34697 | # configuration script generated by Autoconf, you may include it under | |
34698 | # the same distribution terms that you use for the rest of that program. | |
34699 | ||
34700 | ||
34701 | # The names of the tagged configurations supported by this script. | |
34702 | available_tags="FC " | |
34703 | ||
34704 | # ### BEGIN LIBTOOL CONFIG | |
34705 | ||
34706 | # Which release of libtool.m4 was used? | |
34707 | macro_version=$macro_version | |
34708 | macro_revision=$macro_revision | |
34709 | ||
34710 | # Whether or not to build shared libraries. | |
34711 | build_libtool_libs=$enable_shared | |
34712 | ||
34713 | # Whether or not to build static libraries. | |
34714 | build_old_libs=$enable_static | |
34715 | ||
34716 | # What type of objects to build. | |
34717 | pic_mode=$pic_mode | |
34718 | ||
34719 | # Whether or not to optimize for fast installation. | |
34720 | fast_install=$enable_fast_install | |
34721 | ||
34722 | # The host system. | |
34723 | host_alias=$host_alias | |
34724 | host=$host | |
34725 | host_os=$host_os | |
34726 | ||
34727 | # The build system. | |
34728 | build_alias=$build_alias | |
34729 | build=$build | |
34730 | build_os=$build_os | |
34731 | ||
34732 | # A sed program that does not truncate output. | |
34733 | SED=$lt_SED | |
34734 | ||
34735 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
34736 | Xsed="\$SED -e 1s/^X//" | |
34737 | ||
34738 | # A grep program that handles long lines. | |
34739 | GREP=$lt_GREP | |
34740 | ||
34741 | # An ERE matcher. | |
34742 | EGREP=$lt_EGREP | |
34743 | ||
34744 | # A literal string matcher. | |
34745 | FGREP=$lt_FGREP | |
34746 | ||
34747 | # A BSD- or MS-compatible name lister. | |
34748 | NM=$lt_NM | |
34749 | ||
34750 | # Whether we need soft or hard links. | |
34751 | LN_S=$lt_LN_S | |
34752 | ||
34753 | # What is the maximum length of a command? | |
34754 | max_cmd_len=$max_cmd_len | |
34755 | ||
34756 | # Object file suffix (normally "o"). | |
34757 | objext=$ac_objext | |
34758 | ||
34759 | # Executable file suffix (normally ""). | |
34760 | exeext=$exeext | |
34761 | ||
34762 | # whether the shell understands "unset". | |
34763 | lt_unset=$lt_unset | |
34764 | ||
34765 | # turn spaces into newlines. | |
34766 | SP2NL=$lt_lt_SP2NL | |
34767 | ||
34768 | # turn newlines into spaces. | |
34769 | NL2SP=$lt_lt_NL2SP | |
34770 | ||
34771 | # How to create reloadable object files. | |
34772 | reload_flag=$lt_reload_flag | |
34773 | reload_cmds=$lt_reload_cmds | |
34774 | ||
34775 | # Method to check whether dependent libraries are shared objects. | |
34776 | deplibs_check_method=$lt_deplibs_check_method | |
34777 | ||
34778 | # Command to use when deplibs_check_method == "file_magic". | |
34779 | file_magic_cmd=$lt_file_magic_cmd | |
34780 | ||
34781 | # The archiver. | |
34782 | AR=$lt_AR | |
34783 | AR_FLAGS=$lt_AR_FLAGS | |
34784 | ||
34785 | # A symbol stripping program. | |
34786 | STRIP=$lt_STRIP | |
34787 | ||
34788 | # Commands used to install an old-style archive. | |
34789 | RANLIB=$lt_RANLIB | |
34790 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
34791 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
34792 | ||
34793 | # A C compiler. | |
34794 | LTCC=$lt_CC | |
34795 | ||
34796 | # LTCC compiler flags. | |
34797 | LTCFLAGS=$lt_CFLAGS | |
34798 | ||
34799 | # Take the output of nm and produce a listing of raw symbols and C names. | |
34800 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
34801 | ||
34802 | # Transform the output of nm in a proper C declaration. | |
34803 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
34804 | ||
34805 | # Transform the output of nm in a C name address pair. | |
34806 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
34807 | ||
34808 | # The name of the directory that contains temporary libtool files. | |
34809 | objdir=$objdir | |
34810 | ||
34811 | # Shell to use when invoking shell scripts. | |
34812 | SHELL=$lt_SHELL | |
34813 | ||
34814 | # An echo program that does not interpret backslashes. | |
34815 | ECHO=$lt_ECHO | |
34816 | ||
34817 | # Used to examine libraries when file_magic_cmd begins with "file". | |
34818 | MAGIC_CMD=$MAGIC_CMD | |
34819 | ||
34820 | # Must we lock files when doing compilation? | |
34821 | need_locks=$lt_need_locks | |
34822 | ||
34823 | # Old archive suffix (normally "a"). | |
34824 | libext=$libext | |
34825 | ||
34826 | # Shared library suffix (normally ".so"). | |
34827 | shrext_cmds=$lt_shrext_cmds | |
34828 | ||
34829 | # The commands to extract the exported symbol list from a shared archive. | |
34830 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
34831 | ||
34832 | # Variables whose values should be saved in libtool wrapper scripts and | |
34833 | # restored at link time. | |
34834 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
34835 | ||
34836 | # Do we need the "lib" prefix for modules? | |
34837 | need_lib_prefix=$need_lib_prefix | |
34838 | ||
34839 | # Do we need a version for libraries? | |
34840 | need_version=$need_version | |
34841 | ||
34842 | # Library versioning type. | |
34843 | version_type=$version_type | |
34844 | ||
34845 | # Shared library runtime path variable. | |
34846 | runpath_var=$runpath_var | |
34847 | ||
34848 | # Shared library path variable. | |
34849 | shlibpath_var=$shlibpath_var | |
34850 | ||
34851 | # Is shlibpath searched before the hard-coded library search path? | |
34852 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
34853 | ||
34854 | # Format of library name prefix. | |
34855 | libname_spec=$lt_libname_spec | |
34856 | ||
34857 | # List of archive names. First name is the real one, the rest are links. | |
34858 | # The last name is the one that the linker finds with -lNAME | |
34859 | library_names_spec=$lt_library_names_spec | |
34860 | ||
34861 | # The coded name of the library, if different from the real name. | |
34862 | soname_spec=$lt_soname_spec | |
34863 | ||
34864 | # Command to use after installation of a shared archive. | |
34865 | postinstall_cmds=$lt_postinstall_cmds | |
34866 | ||
34867 | # Command to use after uninstallation of a shared archive. | |
34868 | postuninstall_cmds=$lt_postuninstall_cmds | |
34869 | ||
34870 | # Commands used to finish a libtool library installation in a directory. | |
34871 | finish_cmds=$lt_finish_cmds | |
34872 | ||
34873 | # As "finish_cmds", except a single script fragment to be evaled but | |
34874 | # not shown. | |
34875 | finish_eval=$lt_finish_eval | |
34876 | ||
34877 | # Whether we should hardcode library paths into libraries. | |
34878 | hardcode_into_libs=$hardcode_into_libs | |
34879 | ||
34880 | # Compile-time system search path for libraries. | |
34881 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
34882 | ||
34883 | # Run-time system search path for libraries. | |
34884 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
34885 | ||
34886 | # Whether dlopen is supported. | |
34887 | dlopen_support=$enable_dlopen | |
34888 | ||
34889 | # Whether dlopen of programs is supported. | |
34890 | dlopen_self=$enable_dlopen_self | |
34891 | ||
34892 | # Whether dlopen of statically linked programs is supported. | |
34893 | dlopen_self_static=$enable_dlopen_self_static | |
34894 | ||
34895 | # Commands to strip libraries. | |
34896 | old_striplib=$lt_old_striplib | |
34897 | striplib=$lt_striplib | |
34898 | ||
34899 | ||
34900 | # The linker used to build libraries. | |
34901 | LD=$lt_LD | |
34902 | ||
34903 | # Commands used to build an old-style archive. | |
34904 | old_archive_cmds=$lt_old_archive_cmds | |
34905 | ||
34906 | # A language specific compiler. | |
34907 | CC=$lt_compiler | |
34908 | ||
34909 | # Is the compiler the GNU compiler? | |
34910 | with_gcc=$GCC | |
34911 | ||
34912 | # Compiler flag to turn off builtin functions. | |
34913 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
34914 | ||
34915 | # How to pass a linker flag through the compiler. | |
34916 | wl=$lt_lt_prog_compiler_wl | |
34917 | ||
34918 | # Additional compiler flags for building library objects. | |
34919 | pic_flag=$lt_lt_prog_compiler_pic | |
34920 | ||
34921 | # Compiler flag to prevent dynamic linking. | |
34922 | link_static_flag=$lt_lt_prog_compiler_static | |
34923 | ||
34924 | # Does compiler simultaneously support -c and -o options? | |
34925 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
34926 | ||
34927 | # Whether or not to add -lc for building shared libraries. | |
34928 | build_libtool_need_lc=$archive_cmds_need_lc | |
34929 | ||
34930 | # Whether or not to disallow shared libs when runtime libs are static. | |
34931 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
34932 | ||
34933 | # Compiler flag to allow reflexive dlopens. | |
34934 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
34935 | ||
34936 | # Compiler flag to generate shared objects directly from archives. | |
34937 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
34938 | ||
34939 | # Whether the compiler copes with passing no objects directly. | |
34940 | compiler_needs_object=$lt_compiler_needs_object | |
34941 | ||
34942 | # Create an old-style archive from a shared archive. | |
34943 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
34944 | ||
34945 | # Create a temporary old-style archive to link instead of a shared archive. | |
34946 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
34947 | ||
34948 | # Commands used to build a shared archive. | |
34949 | archive_cmds=$lt_archive_cmds | |
34950 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
34951 | ||
34952 | # Commands used to build a loadable module if different from building | |
34953 | # a shared archive. | |
34954 | module_cmds=$lt_module_cmds | |
34955 | module_expsym_cmds=$lt_module_expsym_cmds | |
34956 | ||
34957 | # Whether we are building with GNU ld or not. | |
34958 | with_gnu_ld=$lt_with_gnu_ld | |
34959 | ||
34960 | # Flag that allows shared libraries with undefined symbols to be built. | |
34961 | allow_undefined_flag=$lt_allow_undefined_flag | |
34962 | ||
34963 | # Flag that enforces no undefined symbols. | |
34964 | no_undefined_flag=$lt_no_undefined_flag | |
34965 | ||
34966 | # Flag to hardcode \$libdir into a binary during linking. | |
34967 | # This must work even if \$libdir does not exist | |
34968 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
34969 | ||
34970 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
34971 | # during linking. This must work even if \$libdir does not exist. | |
34972 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
34973 | ||
34974 | # Whether we need a single "-rpath" flag with a separated argument. | |
34975 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
34976 | ||
34977 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
34978 | # DIR into the resulting binary. | |
34979 | hardcode_direct=$hardcode_direct | |
34980 | ||
34981 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
34982 | # DIR into the resulting binary and the resulting library dependency is | |
34983 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
34984 | # library is relocated. | |
34985 | hardcode_direct_absolute=$hardcode_direct_absolute | |
34986 | ||
34987 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
34988 | # into the resulting binary. | |
34989 | hardcode_minus_L=$hardcode_minus_L | |
34990 | ||
34991 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
34992 | # into the resulting binary. | |
34993 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
34994 | ||
34995 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
34996 | # into the library and all subsequent libraries and executables linked | |
34997 | # against it. | |
34998 | hardcode_automatic=$hardcode_automatic | |
34999 | ||
35000 | # Set to yes if linker adds runtime paths of dependent libraries | |
35001 | # to runtime path list. | |
35002 | inherit_rpath=$inherit_rpath | |
35003 | ||
35004 | # Whether libtool must link a program against all its dependency libraries. | |
35005 | link_all_deplibs=$link_all_deplibs | |
35006 | ||
35007 | # Fix the shell variable \$srcfile for the compiler. | |
35008 | fix_srcfile_path=$lt_fix_srcfile_path | |
35009 | ||
35010 | # Set to "yes" if exported symbols are required. | |
35011 | always_export_symbols=$always_export_symbols | |
35012 | ||
35013 | # The commands to list exported symbols. | |
35014 | export_symbols_cmds=$lt_export_symbols_cmds | |
35015 | ||
35016 | # Symbols that should not be listed in the preloaded symbols. | |
35017 | exclude_expsyms=$lt_exclude_expsyms | |
35018 | ||
35019 | # Symbols that must always be exported. | |
35020 | include_expsyms=$lt_include_expsyms | |
35021 | ||
35022 | # Commands necessary for linking programs (against libraries) with templates. | |
35023 | prelink_cmds=$lt_prelink_cmds | |
35024 | ||
35025 | # Specify filename containing input files. | |
35026 | file_list_spec=$lt_file_list_spec | |
35027 | ||
35028 | # How to hardcode a shared library path into an executable. | |
35029 | hardcode_action=$hardcode_action | |
35030 | ||
35031 | # Dependencies to place before and after the objects being linked to | |
35032 | # create a shared library. | |
35033 | predep_objects=$lt_predep_objects | |
35034 | postdep_objects=$lt_postdep_objects | |
35035 | predeps=$lt_predeps | |
35036 | postdeps=$lt_postdeps | |
35037 | ||
35038 | # The library search path used internally by the compiler when linking | |
35039 | # a shared library. | |
35040 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
35041 | ||
35042 | # ### END LIBTOOL CONFIG | |
35043 | ||
35044 | _LT_EOF | |
35045 | ||
35046 | case $host_os in | |
35047 | aix3*) | |
35048 | cat <<\_LT_EOF >> "$cfgfile" | |
35049 | # AIX sometimes has problems with the GCC collect2 program. For some | |
35050 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
35051 | # vanish in a puff of smoke. | |
35052 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
35053 | COLLECT_NAMES= | |
35054 | export COLLECT_NAMES | |
35055 | fi | |
35056 | _LT_EOF | |
35057 | ;; | |
35058 | esac | |
35059 | ||
35060 | ||
35061 | ltmain="$ac_aux_dir/ltmain.sh" | |
35062 | ||
35063 | ||
35064 | # We use sed instead of cat because bash on DJGPP gets confused if | |
35065 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
35066 | # text mode, it properly converts lines to CR/LF. This bash problem | |
35067 | # is reportedly fixed, but why not run on old versions too? | |
35068 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
35069 | || (rm -f "$cfgfile"; exit 1) | |
35070 | ||
35071 | case $xsi_shell in | |
35072 | yes) | |
35073 | cat << \_LT_EOF >> "$cfgfile" | |
35074 | # func_dirname file append nondir_replacement | |
35075 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
35076 | # otherwise set result to NONDIR_REPLACEMENT. | |
35077 | func_dirname () | |
35078 | { | |
35079 | case ${1} in | |
35080 | */*) func_dirname_result="${1%/*}${2}" ;; | |
35081 | * ) func_dirname_result="${3}" ;; | |
35082 | esac | |
35083 | } | |
35084 | ||
35085 | # func_basename file | |
35086 | func_basename () | |
35087 | { | |
35088 | func_basename_result="${1##*/}" | |
35089 | } | |
35090 | ||
35091 | # func_stripname prefix suffix name | |
35092 | # strip PREFIX and SUFFIX off of NAME. | |
35093 | # PREFIX and SUFFIX must not contain globbing or regex special | |
35094 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
35095 | # dot (in which case that matches only a dot). | |
35096 | func_stripname () | |
35097 | { | |
35098 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
35099 | # positional parameters, so assign one to ordinary parameter first. | |
35100 | func_stripname_result=${3} | |
35101 | func_stripname_result=${func_stripname_result#"${1}"} | |
35102 | func_stripname_result=${func_stripname_result%"${2}"} | |
35103 | } | |
35104 | ||
35105 | # func_opt_split | |
35106 | func_opt_split () | |
35107 | { | |
35108 | func_opt_split_opt=${1%%=*} | |
35109 | func_opt_split_arg=${1#*=} | |
35110 | } | |
35111 | ||
35112 | # func_lo2o object | |
35113 | func_lo2o () | |
35114 | { | |
35115 | case ${1} in | |
35116 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
35117 | *) func_lo2o_result=${1} ;; | |
35118 | esac | |
35119 | } | |
35120 | _LT_EOF | |
35121 | ;; | |
35122 | *) # Bourne compatible functions. | |
35123 | cat << \_LT_EOF >> "$cfgfile" | |
35124 | # func_dirname file append nondir_replacement | |
35125 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
35126 | # otherwise set result to NONDIR_REPLACEMENT. | |
35127 | func_dirname () | |
35128 | { | |
35129 | # Extract subdirectory from the argument. | |
35130 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
35131 | if test "X$func_dirname_result" = "X${1}"; then | |
35132 | func_dirname_result="${3}" | |
35133 | else | |
35134 | func_dirname_result="$func_dirname_result${2}" | |
35135 | fi | |
35136 | } | |
35137 | ||
35138 | # func_basename file | |
35139 | func_basename () | |
35140 | { | |
35141 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
35142 | } | |
35143 | ||
35144 | # func_stripname prefix suffix name | |
35145 | # strip PREFIX and SUFFIX off of NAME. | |
35146 | # PREFIX and SUFFIX must not contain globbing or regex special | |
35147 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
35148 | # dot (in which case that matches only a dot). | |
35149 | # func_strip_suffix prefix name | |
35150 | func_stripname () | |
35151 | { | |
35152 | case ${2} in | |
35153 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
35154 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
35155 | *) func_stripname_result=`$ECHO "X${3}" \ | |
35156 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
35157 | esac | |
35158 | } | |
35159 | ||
35160 | # sed scripts: | |
35161 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
35162 | my_sed_long_arg='1s/^-[^=]*=//' | |
35163 | ||
35164 | # func_opt_split | |
35165 | func_opt_split () | |
35166 | { | |
35167 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
35168 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
35169 | } | |
35170 | ||
35171 | # func_lo2o object | |
35172 | func_lo2o () | |
35173 | { | |
35174 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
35175 | } | |
35176 | _LT_EOF | |
35177 | esac | |
35178 | ||
35179 | case $lt_shell_append in | |
35180 | yes) | |
35181 | cat << \_LT_EOF >> "$cfgfile" | |
35182 | ||
35183 | # func_append var value | |
35184 | # Append VALUE to the end of shell variable VAR. | |
35185 | func_append () | |
35186 | { | |
35187 | eval "$1+=\$2" | |
35188 | } | |
35189 | _LT_EOF | |
35190 | ;; | |
35191 | *) | |
35192 | cat << \_LT_EOF >> "$cfgfile" | |
35193 | ||
35194 | # func_append var value | |
35195 | # Append VALUE to the end of shell variable VAR. | |
35196 | func_append () | |
35197 | { | |
35198 | eval "$1=\$$1\$2" | |
35199 | } | |
35200 | _LT_EOF | |
35201 | ;; | |
35202 | esac | |
35203 | ||
35204 | ||
35205 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
35206 | || (rm -f "$cfgfile"; exit 1) | |
35207 | ||
35208 | mv -f "$cfgfile" "$ofile" || | |
35209 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
35210 | chmod +x "$ofile" | |
35211 | ||
35212 | ||
35213 | cat <<_LT_EOF >> "$ofile" | |
35214 | ||
35215 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
35216 | ||
35217 | # The linker used to build libraries. | |
35218 | LD=$lt_LD_FC | |
35219 | ||
35220 | # Commands used to build an old-style archive. | |
35221 | old_archive_cmds=$lt_old_archive_cmds_FC | |
35222 | ||
35223 | # A language specific compiler. | |
35224 | CC=$lt_compiler_FC | |
35225 | ||
35226 | # Is the compiler the GNU compiler? | |
35227 | with_gcc=$GCC_FC | |
35228 | ||
35229 | # Compiler flag to turn off builtin functions. | |
35230 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
35231 | ||
35232 | # How to pass a linker flag through the compiler. | |
35233 | wl=$lt_lt_prog_compiler_wl_FC | |
35234 | ||
35235 | # Additional compiler flags for building library objects. | |
35236 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
35237 | ||
35238 | # Compiler flag to prevent dynamic linking. | |
35239 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
35240 | ||
35241 | # Does compiler simultaneously support -c and -o options? | |
35242 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
35243 | ||
35244 | # Whether or not to add -lc for building shared libraries. | |
35245 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
35246 | ||
35247 | # Whether or not to disallow shared libs when runtime libs are static. | |
35248 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
35249 | ||
35250 | # Compiler flag to allow reflexive dlopens. | |
35251 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
35252 | ||
35253 | # Compiler flag to generate shared objects directly from archives. | |
35254 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
35255 | ||
35256 | # Whether the compiler copes with passing no objects directly. | |
35257 | compiler_needs_object=$lt_compiler_needs_object_FC | |
35258 | ||
35259 | # Create an old-style archive from a shared archive. | |
35260 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
35261 | ||
35262 | # Create a temporary old-style archive to link instead of a shared archive. | |
35263 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
35264 | ||
35265 | # Commands used to build a shared archive. | |
35266 | archive_cmds=$lt_archive_cmds_FC | |
35267 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
35268 | ||
35269 | # Commands used to build a loadable module if different from building | |
35270 | # a shared archive. | |
35271 | module_cmds=$lt_module_cmds_FC | |
35272 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
35273 | ||
35274 | # Whether we are building with GNU ld or not. | |
35275 | with_gnu_ld=$lt_with_gnu_ld_FC | |
35276 | ||
35277 | # Flag that allows shared libraries with undefined symbols to be built. | |
35278 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
35279 | ||
35280 | # Flag that enforces no undefined symbols. | |
35281 | no_undefined_flag=$lt_no_undefined_flag_FC | |
35282 | ||
35283 | # Flag to hardcode \$libdir into a binary during linking. | |
35284 | # This must work even if \$libdir does not exist | |
35285 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
35286 | ||
35287 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
35288 | # during linking. This must work even if \$libdir does not exist. | |
35289 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
35290 | ||
35291 | # Whether we need a single "-rpath" flag with a separated argument. | |
35292 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
35293 | ||
35294 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
35295 | # DIR into the resulting binary. | |
35296 | hardcode_direct=$hardcode_direct_FC | |
35297 | ||
35298 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
35299 | # DIR into the resulting binary and the resulting library dependency is | |
35300 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
35301 | # library is relocated. | |
35302 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
35303 | ||
35304 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
35305 | # into the resulting binary. | |
35306 | hardcode_minus_L=$hardcode_minus_L_FC | |
35307 | ||
35308 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
35309 | # into the resulting binary. | |
35310 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
35311 | ||
35312 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
35313 | # into the library and all subsequent libraries and executables linked | |
35314 | # against it. | |
35315 | hardcode_automatic=$hardcode_automatic_FC | |
35316 | ||
35317 | # Set to yes if linker adds runtime paths of dependent libraries | |
35318 | # to runtime path list. | |
35319 | inherit_rpath=$inherit_rpath_FC | |
35320 | ||
35321 | # Whether libtool must link a program against all its dependency libraries. | |
35322 | link_all_deplibs=$link_all_deplibs_FC | |
35323 | ||
35324 | # Fix the shell variable \$srcfile for the compiler. | |
35325 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
35326 | ||
35327 | # Set to "yes" if exported symbols are required. | |
35328 | always_export_symbols=$always_export_symbols_FC | |
35329 | ||
35330 | # The commands to list exported symbols. | |
35331 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
35332 | ||
35333 | # Symbols that should not be listed in the preloaded symbols. | |
35334 | exclude_expsyms=$lt_exclude_expsyms_FC | |
35335 | ||
35336 | # Symbols that must always be exported. | |
35337 | include_expsyms=$lt_include_expsyms_FC | |
35338 | ||
35339 | # Commands necessary for linking programs (against libraries) with templates. | |
35340 | prelink_cmds=$lt_prelink_cmds_FC | |
35341 | ||
35342 | # Specify filename containing input files. | |
35343 | file_list_spec=$lt_file_list_spec_FC | |
35344 | ||
35345 | # How to hardcode a shared library path into an executable. | |
35346 | hardcode_action=$hardcode_action_FC | |
35347 | ||
35348 | # Dependencies to place before and after the objects being linked to | |
35349 | # create a shared library. | |
35350 | predep_objects=$lt_predep_objects_FC | |
35351 | postdep_objects=$lt_postdep_objects_FC | |
35352 | predeps=$lt_predeps_FC | |
35353 | postdeps=$lt_postdeps_FC | |
35354 | ||
35355 | # The library search path used internally by the compiler when linking | |
35356 | # a shared library. | |
35357 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
35358 | ||
35359 | # ### END LIBTOOL TAG CONFIG: FC | |
35360 | _LT_EOF | |
35361 | ||
2fd61f51 | 35362 | ;; |
a106dabe | 35363 | gstdint.h ) |
56c15991 | 35364 | if test "$GCC" = yes; then |
35365 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
35366 | else | |
35367 | echo "/* generated for $CC */" > tmp-stdint.h | |
35368 | fi | |
35369 | ||
35370 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
35371 | ||
35372 | #ifndef GCC_GENERATED_STDINT_H | |
35373 | #define GCC_GENERATED_STDINT_H 1 | |
35374 | ||
35375 | #include <sys/types.h> | |
35376 | EOF | |
35377 | ||
35378 | if test "$acx_cv_header_stdint" != stdint.h; then | |
35379 | echo "#include <stddef.h>" >> tmp-stdint.h | |
35380 | fi | |
35381 | if test "$acx_cv_header_stdint" != stddef.h; then | |
35382 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
35383 | fi | |
35384 | ||
35385 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
35386 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
35387 | #ifdef __int8_t_defined | |
35388 | #define _INT8_T | |
35389 | #define _INT16_T | |
35390 | #define _INT32_T | |
35391 | #endif | |
35392 | #ifdef __uint32_t_defined | |
35393 | #define _UINT32_T | |
35394 | #endif | |
35395 | ||
35396 | EOF | |
35397 | ||
35398 | # ----------------- done header, emit basic int types ------------- | |
35399 | if test "$acx_cv_header_stdint" = stddef.h; then | |
35400 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
35401 | ||
35402 | #ifndef _UINT8_T | |
35403 | #define _UINT8_T | |
fa5e3c5c | 35404 | #ifndef __uint8_t_defined |
35405 | #define __uint8_t_defined | |
56c15991 | 35406 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
35407 | #endif | |
fa5e3c5c | 35408 | #endif |
56c15991 | 35409 | |
35410 | #ifndef _UINT16_T | |
35411 | #define _UINT16_T | |
fa5e3c5c | 35412 | #ifndef __uint16_t_defined |
35413 | #define __uint16_t_defined | |
56c15991 | 35414 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
35415 | #endif | |
fa5e3c5c | 35416 | #endif |
56c15991 | 35417 | |
35418 | #ifndef _UINT32_T | |
35419 | #define _UINT32_T | |
fa5e3c5c | 35420 | #ifndef __uint32_t_defined |
35421 | #define __uint32_t_defined | |
56c15991 | 35422 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
35423 | #endif | |
fa5e3c5c | 35424 | #endif |
56c15991 | 35425 | |
35426 | #ifndef _INT8_T | |
35427 | #define _INT8_T | |
fa5e3c5c | 35428 | #ifndef __int8_t_defined |
35429 | #define __int8_t_defined | |
56c15991 | 35430 | typedef $acx_cv_type_int8_t int8_t; |
35431 | #endif | |
fa5e3c5c | 35432 | #endif |
56c15991 | 35433 | |
35434 | #ifndef _INT16_T | |
35435 | #define _INT16_T | |
fa5e3c5c | 35436 | #ifndef __int16_t_defined |
35437 | #define __int16_t_defined | |
56c15991 | 35438 | typedef $acx_cv_type_int16_t int16_t; |
35439 | #endif | |
fa5e3c5c | 35440 | #endif |
56c15991 | 35441 | |
35442 | #ifndef _INT32_T | |
35443 | #define _INT32_T | |
fa5e3c5c | 35444 | #ifndef __int32_t_defined |
35445 | #define __int32_t_defined | |
56c15991 | 35446 | typedef $acx_cv_type_int32_t int32_t; |
35447 | #endif | |
fa5e3c5c | 35448 | #endif |
56c15991 | 35449 | EOF |
35450 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
35451 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
35452 | ||
35453 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
35454 | #ifndef _INT8_T | |
35455 | #define _INT8_T | |
35456 | #endif | |
35457 | #ifndef _INT16_T | |
35458 | #define _INT16_T | |
35459 | #endif | |
35460 | #ifndef _INT32_T | |
35461 | #define _INT32_T | |
35462 | #endif | |
35463 | ||
35464 | #ifndef _UINT8_T | |
35465 | #define _UINT8_T | |
fa5e3c5c | 35466 | #ifndef __uint8_t_defined |
35467 | #define __uint8_t_defined | |
56c15991 | 35468 | typedef u_int8_t uint8_t; |
35469 | #endif | |
fa5e3c5c | 35470 | #endif |
56c15991 | 35471 | |
35472 | #ifndef _UINT16_T | |
35473 | #define _UINT16_T | |
fa5e3c5c | 35474 | #ifndef __uint16_t_defined |
35475 | #define __uint16_t_defined | |
56c15991 | 35476 | typedef u_int16_t uint16_t; |
35477 | #endif | |
fa5e3c5c | 35478 | #endif |
56c15991 | 35479 | |
35480 | #ifndef _UINT32_T | |
35481 | #define _UINT32_T | |
fa5e3c5c | 35482 | #ifndef __uint32_t_defined |
35483 | #define __uint32_t_defined | |
56c15991 | 35484 | typedef u_int32_t uint32_t; |
35485 | #endif | |
fa5e3c5c | 35486 | #endif |
56c15991 | 35487 | EOF |
35488 | else | |
35489 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
35490 | ||
35491 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
35492 | #ifndef _INT8_T | |
35493 | #define _INT8_T | |
35494 | #endif | |
35495 | #ifndef _INT16_T | |
35496 | #define _INT16_T | |
35497 | #endif | |
35498 | #ifndef _INT32_T | |
35499 | #define _INT32_T | |
35500 | #endif | |
35501 | #ifndef _UINT8_T | |
35502 | #define _UINT8_T | |
35503 | #endif | |
35504 | #ifndef _UINT16_T | |
35505 | #define _UINT16_T | |
35506 | #endif | |
35507 | #ifndef _UINT32_T | |
35508 | #define _UINT32_T | |
35509 | #endif | |
35510 | EOF | |
35511 | fi | |
35512 | ||
35513 | # ------------- done basic int types, emit int64_t types ------------ | |
35514 | if test "$ac_cv_type_uint64_t" = yes; then | |
35515 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
35516 | ||
35517 | /* system headers have good uint64_t and int64_t */ | |
35518 | #ifndef _INT64_T | |
35519 | #define _INT64_T | |
35520 | #endif | |
35521 | #ifndef _UINT64_T | |
35522 | #define _UINT64_T | |
35523 | #endif | |
35524 | EOF | |
35525 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
35526 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
35527 | ||
35528 | /* system headers have an u_int64_t (and int64_t) */ | |
35529 | #ifndef _INT64_T | |
35530 | #define _INT64_T | |
35531 | #endif | |
35532 | #ifndef _UINT64_T | |
35533 | #define _UINT64_T | |
fa5e3c5c | 35534 | #ifndef __uint64_t_defined |
35535 | #define __uint64_t_defined | |
56c15991 | 35536 | typedef u_int64_t uint64_t; |
35537 | #endif | |
fa5e3c5c | 35538 | #endif |
56c15991 | 35539 | EOF |
35540 | elif test -n "$acx_cv_type_int64_t"; then | |
35541 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
35542 | ||
35543 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
35544 | #ifndef _INT64_T | |
35545 | #define _INT64_T | |
35546 | typedef $acx_cv_type_int64_t int64_t; | |
35547 | #endif | |
35548 | #ifndef _UINT64_T | |
35549 | #define _UINT64_T | |
fa5e3c5c | 35550 | #ifndef __uint64_t_defined |
35551 | #define __uint64_t_defined | |
56c15991 | 35552 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
35553 | #endif | |
fa5e3c5c | 35554 | #endif |
56c15991 | 35555 | EOF |
35556 | else | |
35557 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
35558 | ||
35559 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
35560 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
35561 | #ifndef _INT64_T | |
35562 | #define _INT64_T | |
fa5e3c5c | 35563 | #ifndef __int64_t_defined |
56c15991 | 35564 | typedef long long int64_t; |
35565 | #endif | |
fa5e3c5c | 35566 | #endif |
56c15991 | 35567 | #ifndef _UINT64_T |
35568 | #define _UINT64_T | |
35569 | typedef unsigned long long uint64_t; | |
35570 | #endif | |
35571 | ||
35572 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
35573 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
35574 | does not implement __extension__. But that compiler doesn't define | |
35575 | __GNUC_MINOR__. */ | |
35576 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
35577 | # define __extension__ | |
35578 | # endif | |
35579 | ||
35580 | # ifndef _INT64_T | |
35581 | # define _INT64_T | |
35582 | __extension__ typedef long long int64_t; | |
35583 | # endif | |
35584 | # ifndef _UINT64_T | |
35585 | # define _UINT64_T | |
35586 | __extension__ typedef unsigned long long uint64_t; | |
35587 | # endif | |
35588 | ||
35589 | #elif !defined __STRICT_ANSI__ | |
35590 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
35591 | ||
35592 | # ifndef _INT64_T | |
35593 | # define _INT64_T | |
35594 | typedef __int64 int64_t; | |
35595 | # endif | |
35596 | # ifndef _UINT64_T | |
35597 | # define _UINT64_T | |
35598 | typedef unsigned __int64 uint64_t; | |
35599 | # endif | |
35600 | # endif /* compiler */ | |
35601 | ||
35602 | #endif /* ANSI version */ | |
35603 | EOF | |
35604 | fi | |
35605 | ||
35606 | # ------------- done int64_t types, emit intptr types ------------ | |
35607 | if test "$ac_cv_type_uintptr_t" != yes; then | |
35608 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
35609 | ||
35610 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
fa5e3c5c | 35611 | #ifndef __uintptr_t_defined |
56c15991 | 35612 | typedef u$acx_cv_type_intptr_t uintptr_t; |
fa5e3c5c | 35613 | #endif |
35614 | #ifndef __intptr_t_defined | |
56c15991 | 35615 | typedef $acx_cv_type_intptr_t intptr_t; |
fa5e3c5c | 35616 | #endif |
56c15991 | 35617 | EOF |
35618 | fi | |
35619 | ||
35620 | # ------------- done intptr types, emit int_least types ------------ | |
35621 | if test "$ac_cv_type_int_least32_t" != yes; then | |
35622 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
35623 | ||
35624 | /* Define int_least types */ | |
35625 | typedef int8_t int_least8_t; | |
35626 | typedef int16_t int_least16_t; | |
35627 | typedef int32_t int_least32_t; | |
35628 | #ifdef _INT64_T | |
35629 | typedef int64_t int_least64_t; | |
35630 | #endif | |
35631 | ||
35632 | typedef uint8_t uint_least8_t; | |
35633 | typedef uint16_t uint_least16_t; | |
35634 | typedef uint32_t uint_least32_t; | |
35635 | #ifdef _UINT64_T | |
35636 | typedef uint64_t uint_least64_t; | |
35637 | #endif | |
35638 | EOF | |
35639 | fi | |
35640 | ||
35641 | # ------------- done intptr types, emit int_fast types ------------ | |
35642 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
35643 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
35644 | ||
35645 | /* Define int_fast types. short is often slow */ | |
35646 | typedef int8_t int_fast8_t; | |
35647 | typedef int int_fast16_t; | |
35648 | typedef int32_t int_fast32_t; | |
35649 | #ifdef _INT64_T | |
35650 | typedef int64_t int_fast64_t; | |
35651 | #endif | |
35652 | ||
35653 | typedef uint8_t uint_fast8_t; | |
35654 | typedef unsigned int uint_fast16_t; | |
35655 | typedef uint32_t uint_fast32_t; | |
35656 | #ifdef _UINT64_T | |
35657 | typedef uint64_t uint_fast64_t; | |
35658 | #endif | |
35659 | EOF | |
35660 | fi | |
35661 | ||
35662 | if test "$ac_cv_type_uintmax_t" != yes; then | |
35663 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
35664 | ||
35665 | /* Define intmax based on what we found */ | |
35666 | #ifdef _INT64_T | |
35667 | typedef int64_t intmax_t; | |
35668 | #else | |
35669 | typedef long intmax_t; | |
35670 | #endif | |
35671 | #ifdef _UINT64_T | |
35672 | typedef uint64_t uintmax_t; | |
35673 | #else | |
35674 | typedef unsigned long uintmax_t; | |
35675 | #endif | |
35676 | EOF | |
35677 | fi | |
35678 | ||
35679 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
35680 | ||
35681 | #endif /* GCC_GENERATED_STDINT_H */ | |
35682 | EOF | |
35683 | ||
35684 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
35685 | rm -f tmp-stdint.h | |
35686 | else | |
35687 | mv -f tmp-stdint.h gstdint.h | |
35688 | fi | |
35689 | ||
35690 | ;; | |
4ee9c684 | 35691 | esac |
a106dabe | 35692 | done |
35693 | _ACEOF | |
4ee9c684 | 35694 | |
a106dabe | 35695 | cat >>$CONFIG_STATUS <<\_ACEOF |
4ee9c684 | 35696 | |
35697 | { (exit 0); exit 0; } | |
35698 | _ACEOF | |
35699 | chmod +x $CONFIG_STATUS | |
35700 | ac_clean_files=$ac_clean_files_save | |
35701 | ||
35702 | ||
35703 | # configure is writing to config.log, and then calls config.status. | |
35704 | # config.status does its own redirection, appending to config.log. | |
35705 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
35706 | # by configure, so config.status won't be able to write to it; its | |
35707 | # output is simply discarded. So we exec the FD to /dev/null, | |
35708 | # effectively closing config.log, so it can be properly (re)opened and | |
35709 | # appended to by config.status. When coming back to configure, we | |
35710 | # need to make the FD available again. | |
35711 | if test "$no_create" != yes; then | |
35712 | ac_cs_success=: | |
35713 | ac_config_status_args= | |
35714 | test "$silent" = yes && | |
35715 | ac_config_status_args="$ac_config_status_args --quiet" | |
35716 | exec 5>/dev/null | |
35717 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
35718 | exec 5>>config.log | |
35719 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
35720 | # would make configure fail if this is the last instruction. | |
35721 | $ac_cs_success || { (exit 1); exit 1; } | |
35722 | fi | |
35723 |