]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
PR fortran/31832
[thirdparty/gcc.git] / libgfortran / configure
CommitLineData
4ee9c684 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
82eaf560 3# Generated by GNU Autoconf 2.59 for GNU Fortran Runtime Library 0.3.
4ee9c684 4#
82eaf560 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
82eaf560 12# Be Bourne compatible
4ee9c684 13if 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+"$@"}'='"$@"'
82eaf560 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
4ee9c684 21fi
82eaf560 22DUALCASE=1; export DUALCASE # for MKS sh
4ee9c684 23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
82eaf560 33$as_unset ENV MAIL MAILPATH
4ee9c684 34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
82eaf560 47 $as_unset $as_var
4ee9c684 48 fi
49done
50
51# Required to use basename.
82eaf560 52if expr a : '\(a\)' >/dev/null 2>&1; then
4ee9c684 53 as_expr=expr
54else
55 as_expr=false
56fi
57
82eaf560 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4ee9c684 59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
82eaf560 66as_me=`$as_basename "$0" ||
4ee9c684 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
82eaf560 69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
4ee9c684 71echo X/"$0" |
82eaf560 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
ce1a737c 76
ff4425cf 77
82eaf560 78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
ff4425cf 85
82eaf560 86# The user is always right.
87if 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
ff4425cf 97fi
98
ff4425cf 99
82eaf560 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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
ff4425cf 116
82eaf560 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 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4ee9c684 132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
82eaf560 135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
4ee9c684 137 /*)
82eaf560 138 if ("$as_dir/$as_base" -c '
ce1a737c 139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
82eaf560 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
ce1a737c 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
82eaf560 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
152done
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
82eaf560 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
82eaf560 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
4ee9c684 165 sed '
166 N
82eaf560 167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4ee9c684 170 t loop
82eaf560 171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
4ee9c684 173 ' >$as_me.lineno &&
82eaf560 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
82eaf560 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
82eaf560 187case `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 192esac
193
82eaf560 194if expr a : '\(a\)' >/dev/null 2>&1; then
4ee9c684 195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
82eaf560 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'
82eaf560 208 else
209 as_ln_s='ln -s'
210 fi
4ee9c684 211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
82eaf560 216rm -f conf$$ conf$$.exe conf$$.file
4ee9c684 217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
82eaf560 225as_executable_p="test -f"
4ee9c684 226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
82eaf560 234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
4ee9c684 243
542f9784 244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if 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
277fi
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
283if 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
381fi
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.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
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.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
82eaf560 398exec 6>&1
399
4ee9c684 400#
401# Initializations.
402#
403ac_default_prefix=/usr/local
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
82eaf560 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.
417PACKAGE_NAME='GNU Fortran Runtime Library'
418PACKAGE_TARNAME='libgfortran'
76c0a846 419PACKAGE_VERSION='0.3'
420PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
4ee9c684 421PACKAGE_BUGREPORT=''
422
423# Factoring default headers for most tests.
424ac_includes_default="\
425#include <stdio.h>
82eaf560 426#if HAVE_SYS_TYPES_H
4ee9c684 427# include <sys/types.h>
428#endif
82eaf560 429#if HAVE_SYS_STAT_H
4ee9c684 430# include <sys/stat.h>
431#endif
82eaf560 432#if STDC_HEADERS
4ee9c684 433# include <stdlib.h>
434# include <stddef.h>
435#else
82eaf560 436# if HAVE_STDLIB_H
4ee9c684 437# include <stdlib.h>
438# endif
439#endif
82eaf560 440#if HAVE_STRING_H
441# if !STDC_HEADERS && HAVE_MEMORY_H
4ee9c684 442# include <memory.h>
443# endif
444# include <string.h>
445#endif
82eaf560 446#if HAVE_STRINGS_H
4ee9c684 447# include <strings.h>
448#endif
82eaf560 449#if HAVE_INTTYPES_H
4ee9c684 450# include <inttypes.h>
82eaf560 451#else
452# if HAVE_STDINT_H
453# include <stdint.h>
454# endif
4ee9c684 455#endif
82eaf560 456#if HAVE_UNISTD_H
4ee9c684 457# include <unistd.h>
458#endif"
459
00aafda4 460ac_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 onestep_TRUE onestep_FALSE onestep 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 OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC extra_ldflags_libgfortran FPU_HOST_HEADER LIBOBJS LTLIBOBJS'
4ee9c684 461ac_subst_files=''
5b2c7553 462ac_pwd=`pwd`
4ee9c684 463
464# Initialize some variables set by options.
465ac_init_help=
466ac_init_version=false
467# The variables have the same names as the options, with
468# dashes changed to underlines.
469cache_file=/dev/null
470exec_prefix=NONE
471no_create=
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
480verbose=
481x_includes=NONE
482x_libraries=NONE
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
82eaf560 492datadir='${prefix}/share'
4ee9c684 493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
82eaf560 496libdir='${exec_prefix}/lib'
4ee9c684 497includedir='${prefix}/include'
498oldincludedir='/usr/include'
82eaf560 499infodir='${prefix}/info'
500mandir='${prefix}/man'
4ee9c684 501
502ac_prev=
503for ac_option
504do
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
82eaf560 507 eval "$ac_prev=\$ac_option"
4ee9c684 508 ac_prev=
509 continue
510 fi
511
82eaf560 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
4ee9c684 513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
82eaf560 516 case $ac_option in
4ee9c684 517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
522
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
537
82eaf560 538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
4ee9c684 539 ac_prev=datadir ;;
82eaf560 540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
4ee9c684 542 datadir=$ac_optarg ;;
543
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
82eaf560 547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
4ee9c684 548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
82eaf560 550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
4ee9c684 552
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
82eaf560 556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
4ee9c684 557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
82eaf560 559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
4ee9c684 565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
585
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
82eaf560 616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
4ee9c684 618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
82eaf560 620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
4ee9c684 622 localstatedir=$ac_optarg ;;
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
711
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
734
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
82eaf560 738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
4ee9c684 739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
82eaf560 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
4ee9c684 747
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
82eaf560 751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
4ee9c684 752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
82eaf560 754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
4ee9c684 756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
774
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
778 ;;
779
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
82eaf560 786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
4ee9c684 788 export $ac_envvar ;;
789
790 *)
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
805fi
806
82eaf560 807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
a106dabe 809do
82eaf560 810 eval ac_val=$`echo $ac_var`
a106dabe 811 case $ac_val in
82eaf560 812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
817
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
821do
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
4ee9c684 827 esac
828done
829
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
847
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
852
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
82eaf560 857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
4ee9c684 859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
82eaf560 862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
4ee9c684 864echo X"$0" |
82eaf560 865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
4ee9c684 870 srcdir=$ac_confdir
82eaf560 871 if test ! -r $srcdir/$ac_unique_file; then
4ee9c684 872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
82eaf560 877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
4ee9c684 880 { (exit 1); exit 1; }; }
82eaf560 881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
884 fi
4ee9c684 885fi
82eaf560 886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
4ee9c684 888 { (exit 1); exit 1; }; }
82eaf560 889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CPP_set=${CPP+set}
903ac_env_CPP_value=$CPP
904ac_cv_env_CPP_set=${CPP+set}
905ac_cv_env_CPP_value=$CPP
906ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907ac_env_CPPFLAGS_value=$CPPFLAGS
908ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910ac_env_FC_set=${FC+set}
911ac_env_FC_value=$FC
912ac_cv_env_FC_set=${FC+set}
913ac_cv_env_FC_value=$FC
914ac_env_FCFLAGS_set=${FCFLAGS+set}
915ac_env_FCFLAGS_value=$FCFLAGS
916ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
917ac_cv_env_FCFLAGS_value=$FCFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
4ee9c684 922
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
76c0a846 930\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
4ee9c684 931
932Usage: $0 [OPTION]... [VAR=VALUE]...
933
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
936
937Defaults for the options are specified in brackets.
938
939Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
82eaf560 950_ACEOF
951
952 cat <<_ACEOF
4ee9c684 953Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
958
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
963
964For better control, use the options below.
965
966Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
82eaf560 970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
4ee9c684 971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
82eaf560 977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
4ee9c684 979_ACEOF
980
981 cat <<\_ACEOF
982
983Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
987
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
90973b19 991 --target=TARGET configure for building compilers for TARGET [HOST]
4ee9c684 992_ACEOF
993fi
994
995if test -n "$ac_init_help"; then
996 case $ac_init_help in
76c0a846 997 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
4ee9c684 998 esac
999 cat <<\_ACEOF
1000
1001Optional Features:
1002 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1003 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
90973b19 1004 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
93773f82 1005 --enable-intermodule build the library in one step
4ee9c684 1006 --enable-maintainer-mode enable make rules and dependencies not useful
1007 (and sometimes confusing) to the casual installer
90973b19 1008 --enable-multilib build many library versions (default)
2fd61f51 1009 --disable-dependency-tracking speeds up one-time build
1010 --enable-dependency-tracking do not reject slow dependency extractors
82eaf560 1011 --enable-shared[=PKGS]
1012 build shared libraries [default=yes]
1013 --enable-static[=PKGS]
1014 build static libraries [default=yes]
542f9784 1015 --enable-fast-install[=PKGS]
1016 optimize for fast installation [default=yes]
4ee9c684 1017 --disable-libtool-lock avoid locking (might break parallel builds)
90e67cff 1018 --disable-largefile omit support for large files
4ee9c684 1019
1020Optional Packages:
1021 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1022 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3e427a9c 1023 --with-build-libsubdir=DIR Directory where to find libraries for build system
542f9784 1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
4ee9c684 1027
1028Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
82eaf560 1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
542f9784 1035 CPP C preprocessor
6d73cceb 1036 FC Fortran compiler command
1037 FCFLAGS Fortran compiler flags
4ee9c684 1038
1039Use these variables to override the choices made by `configure' or to help
1040it to find libraries and programs with nonstandard names/locations.
1041
1042_ACEOF
1043fi
1044
1045if test "$ac_init_help" = "recursive"; then
1046 # If there are subdirs, report their specific --help.
82eaf560 1047 ac_popdir=`pwd`
4ee9c684 1048 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
82eaf560 1049 test -d $ac_dir || continue
4ee9c684 1050 ac_builddir=.
1051
82eaf560 1052if test "$ac_dir" != .; then
4ee9c684 1053 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
82eaf560 1054 # A "../" for each directory in $ac_dir_suffix.
1055 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1056else
1057 ac_dir_suffix= ac_top_builddir=
1058fi
4ee9c684 1059
1060case $srcdir in
82eaf560 1061 .) # No --srcdir option. We are building in place.
4ee9c684 1062 ac_srcdir=.
82eaf560 1063 if test -z "$ac_top_builddir"; then
1064 ac_top_srcdir=.
1065 else
1066 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1067 fi ;;
1068 [\\/]* | ?:[\\/]* ) # Absolute path.
4ee9c684 1069 ac_srcdir=$srcdir$ac_dir_suffix;
82eaf560 1070 ac_top_srcdir=$srcdir ;;
1071 *) # Relative path.
1072 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1073 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1074esac
1075
1076# Do not use `cd foo && pwd` to compute absolute paths, because
1077# the directories may not exist.
1078case `pwd` in
1079.) ac_abs_builddir="$ac_dir";;
1080*)
1081 case "$ac_dir" in
1082 .) ac_abs_builddir=`pwd`;;
1083 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1084 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1085 esac;;
1086esac
1087case $ac_abs_builddir in
1088.) ac_abs_top_builddir=${ac_top_builddir}.;;
1089*)
1090 case ${ac_top_builddir}. in
1091 .) ac_abs_top_builddir=$ac_abs_builddir;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1093 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1094 esac;;
1095esac
1096case $ac_abs_builddir in
1097.) ac_abs_srcdir=$ac_srcdir;;
1098*)
1099 case $ac_srcdir in
1100 .) ac_abs_srcdir=$ac_abs_builddir;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1102 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1103 esac;;
a106dabe 1104esac
82eaf560 1105case $ac_abs_builddir in
1106.) ac_abs_top_srcdir=$ac_top_srcdir;;
1107*)
1108 case $ac_top_srcdir in
1109 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1111 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1112 esac;;
1113esac
1114
1115 cd $ac_dir
1116 # Check for guested configure; otherwise get Cygnus style configure.
1117 if test -f $ac_srcdir/configure.gnu; then
1118 echo
1119 $SHELL $ac_srcdir/configure.gnu --help=recursive
1120 elif test -f $ac_srcdir/configure; then
1121 echo
1122 $SHELL $ac_srcdir/configure --help=recursive
1123 elif test -f $ac_srcdir/configure.ac ||
1124 test -f $ac_srcdir/configure.in; then
1125 echo
1126 $ac_configure --help
4ee9c684 1127 else
1128 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
82eaf560 1129 fi
1130 cd $ac_popdir
4ee9c684 1131 done
1132fi
1133
82eaf560 1134test -n "$ac_init_help" && exit 0
4ee9c684 1135if $ac_init_version; then
1136 cat <<\_ACEOF
76c0a846 1137GNU Fortran Runtime Library configure 0.3
82eaf560 1138generated by GNU Autoconf 2.59
4ee9c684 1139
82eaf560 1140Copyright (C) 2003 Free Software Foundation, Inc.
4ee9c684 1141This configure script is free software; the Free Software Foundation
1142gives unlimited permission to copy, distribute and modify it.
1143_ACEOF
82eaf560 1144 exit 0
4ee9c684 1145fi
82eaf560 1146exec 5>config.log
1147cat >&5 <<_ACEOF
4ee9c684 1148This file contains any messages produced by compilers while
1149running configure, to aid debugging if configure makes a mistake.
1150
76c0a846 1151It was created by GNU Fortran Runtime Library $as_me 0.3, which was
82eaf560 1152generated by GNU Autoconf 2.59. Invocation command line was
4ee9c684 1153
1154 $ $0 $@
1155
1156_ACEOF
1157{
1158cat <<_ASUNAME
1159## --------- ##
1160## Platform. ##
1161## --------- ##
1162
1163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171
1172/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
82eaf560 1175hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
4ee9c684 1176/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179
1180_ASUNAME
1181
1182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183for as_dir in $PATH
1184do
1185 IFS=$as_save_IFS
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1188done
1189
1190} >&5
1191
1192cat >&5 <<_ACEOF
1193
1194
1195## ----------- ##
1196## Core tests. ##
1197## ----------- ##
1198
1199_ACEOF
1200
1201
1202# Keep a trace of the command line.
1203# Strip out --no-create and --no-recursion so they do not pile up.
1204# Strip out --silent because we don't want to record it for future runs.
1205# Also quote any args containing shell meta-characters.
1206# Make two passes to allow for proper duplicate-argument suppression.
1207ac_configure_args=
1208ac_configure_args0=
1209ac_configure_args1=
82eaf560 1210ac_sep=
4ee9c684 1211ac_must_keep_next=false
1212for ac_pass in 1 2
1213do
1214 for ac_arg
1215 do
1216 case $ac_arg in
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 continue ;;
82eaf560 1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
4ee9c684 1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 esac
1224 case $ac_pass in
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 2)
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1230 else
1231 case $ac_arg in
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 esac
1239 ;;
1240 -* ) ac_must_keep_next=true ;;
1241 esac
1242 fi
82eaf560 1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1245 ac_sep=" "
4ee9c684 1246 ;;
1247 esac
1248 done
1249done
1250$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253# When interrupted or exit'd, cleanup temporary files, and complete
1254# config.log. We remove comments because anyway the quotes in there
1255# would cause problems or look ugly.
82eaf560 1256# WARNING: Be sure not to use single quotes in there, as some shells,
1257# such as our DU 5.0 friend, will then `close' the trap.
4ee9c684 1258trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1260 {
1261 echo
1262
1263 cat <<\_ASBOX
1264## ---------------- ##
1265## Cache variables. ##
1266## ---------------- ##
1267_ASBOX
1268 echo
1269 # The following way of writing the cache mishandles newlines in values,
82eaf560 1270{
4ee9c684 1271 (set) 2>&1 |
82eaf560 1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 *ac_space=\ *)
4ee9c684 1274 sed -n \
82eaf560 1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277 ;;
4ee9c684 1278 *)
82eaf560 1279 sed -n \
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4ee9c684 1281 ;;
82eaf560 1282 esac;
1283}
4ee9c684 1284 echo
1285
1286 cat <<\_ASBOX
1287## ----------------- ##
1288## Output variables. ##
1289## ----------------- ##
1290_ASBOX
1291 echo
1292 for ac_var in $ac_subst_vars
1293 do
82eaf560 1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
4ee9c684 1296 done | sort
1297 echo
1298
1299 if test -n "$ac_subst_files"; then
1300 cat <<\_ASBOX
82eaf560 1301## ------------- ##
1302## Output files. ##
1303## ------------- ##
4ee9c684 1304_ASBOX
1305 echo
1306 for ac_var in $ac_subst_files
1307 do
82eaf560 1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
4ee9c684 1310 done | sort
1311 echo
1312 fi
1313
1314 if test -s confdefs.h; then
1315 cat <<\_ASBOX
1316## ----------- ##
1317## confdefs.h. ##
1318## ----------- ##
1319_ASBOX
1320 echo
82eaf560 1321 sed "/^$/d" confdefs.h | sort
4ee9c684 1322 echo
1323 fi
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1327 } >&5
82eaf560 1328 rm -f core *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
4ee9c684 1330 exit $exit_status
82eaf560 1331 ' 0
4ee9c684 1332for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334done
1335ac_signal=0
1336
1337# confdefs.h avoids OS command line length limits that DEFS can exceed.
82eaf560 1338rm -rf conftest* confdefs.h
1339# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340echo >confdefs.h
4ee9c684 1341
1342# Predefined preprocessor variables.
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_NAME "$PACKAGE_NAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_VERSION "$PACKAGE_VERSION"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_STRING "$PACKAGE_STRING"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366_ACEOF
1367
1368
1369# Let the site file select an alternate cache file if it wants to.
1370# Prefer explicitly selected file to automatically selected ones.
82eaf560 1371if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 else
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 fi
4ee9c684 1377fi
82eaf560 1378for ac_site_file in $CONFIG_SITE; do
4ee9c684 1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1383 . "$ac_site_file"
1384 fi
1385done
1386
1387if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392echo "$as_me: loading cache $cache_file" >&6;}
1393 case $cache_file in
82eaf560 1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
4ee9c684 1396 esac
1397 fi
1398else
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400echo "$as_me: creating cache $cache_file" >&6;}
1401 >$cache_file
1402fi
1403
1404# Check that the precious variables saved in the cache have kept the same
1405# value.
1406ac_cache_corrupted=false
82eaf560 1407for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
4ee9c684 1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
82eaf560 1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
4ee9c684 1413 case $ac_old_set,$ac_new_set in
1414 set,)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,set)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,);;
1423 *)
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
6a88da51 1425 # differences in whitespace do not lead to failure.
1426 ac_old_val_w=`echo x $ac_old_val`
1427 ac_new_val_w=`echo x $ac_new_val`
1428 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1429 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
4ee9c684 1430echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6a88da51 1431 ac_cache_corrupted=:
1432 else
1433 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1434echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1435 eval $ac_var=\$ac_old_val
1436 fi
1437 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1438echo "$as_me: former value: \`$ac_old_val'" >&2;}
1439 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1440echo "$as_me: current value: \`$ac_new_val'" >&2;}
4ee9c684 1441 fi;;
1442 esac
1443 # Pass precious variables to config.status.
1444 if test "$ac_new_set" = set; then
1445 case $ac_new_val in
82eaf560 1446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1447 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4ee9c684 1448 *) ac_arg=$ac_var=$ac_new_val ;;
1449 esac
1450 case " $ac_configure_args " in
1451 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1452 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1453 esac
1454 fi
1455done
1456if $ac_cache_corrupted; then
5b2c7553 1457 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1458echo "$as_me: error: in \`$ac_pwd':" >&2;}
4ee9c684 1459 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1460echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1461 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1462echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1463 { (exit 1); exit 1; }; }
1464fi
1465
82eaf560 1466ac_ext=c
1467ac_cpp='$CPP $CPPFLAGS'
1468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ee9c684 1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
5b2c7553 1494
1495
1496
4ee9c684 1497
1498
a106dabe 1499
82eaf560 1500
1501 ac_config_headers="$ac_config_headers config.h"
90973b19 1502
4ee9c684 1503ac_aux_dir=
82eaf560 1504for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1505 if test -f $ac_dir/install-sh; then
4ee9c684 1506 ac_aux_dir=$ac_dir
1507 ac_install_sh="$ac_aux_dir/install-sh -c"
1508 break
82eaf560 1509 elif test -f $ac_dir/install.sh; then
4ee9c684 1510 ac_aux_dir=$ac_dir
1511 ac_install_sh="$ac_aux_dir/install.sh -c"
1512 break
82eaf560 1513 elif test -f $ac_dir/shtool; then
4ee9c684 1514 ac_aux_dir=$ac_dir
1515 ac_install_sh="$ac_aux_dir/shtool install -c"
1516 break
1517 fi
1518done
1519if test -z "$ac_aux_dir"; then
82eaf560 1520 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1521echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4ee9c684 1522 { (exit 1); exit 1; }; }
1523fi
82eaf560 1524ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1525ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1526ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4ee9c684 1527
90973b19 1528# Make sure we can run config.sub.
82eaf560 1529$ac_config_sub sun4 >/dev/null 2>&1 ||
1530 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1531echo "$as_me: error: cannot run $ac_config_sub" >&2;}
90973b19 1532 { (exit 1); exit 1; }; }
1533
82eaf560 1534echo "$as_me:$LINENO: checking build system type" >&5
1535echo $ECHO_N "checking build system type... $ECHO_C" >&6
90973b19 1536if test "${ac_cv_build+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1538else
82eaf560 1539 ac_cv_build_alias=$build_alias
1540test -z "$ac_cv_build_alias" &&
1541 ac_cv_build_alias=`$ac_config_guess`
1542test -z "$ac_cv_build_alias" &&
90973b19 1543 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1544echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1545 { (exit 1); exit 1; }; }
82eaf560 1546ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1547 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1548echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
90973b19 1549 { (exit 1); exit 1; }; }
1550
1551fi
82eaf560 1552echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1553echo "${ECHO_T}$ac_cv_build" >&6
90973b19 1554build=$ac_cv_build
82eaf560 1555build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1556build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1557build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
90973b19 1558
1559
4c82c0dd 1560 case ${build_alias} in
1561 "") build_noncanonical=${build} ;;
1562 *) build_noncanonical=${build_alias} ;;
1563esac
1564
1565 case ${host_alias} in
1566 "") host_noncanonical=${build_noncanonical} ;;
1567 *) host_noncanonical=${host_alias} ;;
1568esac
1569
1570 case ${target_alias} in
1571 "") target_noncanonical=${host_noncanonical} ;;
1572 *) target_noncanonical=${target_alias} ;;
1573esac
1574
3e427a9c 1575
1576# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1577# have matching libraries, they should use host libraries: Makefile.tpl
1578# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1579# However, they still use the build modules, because the corresponding
1580# host modules (e.g. bison) are only built for the host when bootstrap
1581# finishes. So:
1582# - build_subdir is where we find build modules, and never changes.
1583# - build_libsubdir is where we find build libraries, and can be overridden.
1584
1585# Prefix 'build-' so this never conflicts with target_subdir.
4c82c0dd 1586build_subdir="build-${build_noncanonical}"
3e427a9c 1587
82eaf560 1588# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
3e427a9c 1589if test "${with_build_libsubdir+set}" = set; then
82eaf560 1590 withval="$with_build_libsubdir"
1591 build_libsubdir="$withval"
3e427a9c 1592else
1593 build_libsubdir="$build_subdir"
82eaf560 1594fi;
4c82c0dd 1595# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1596if ( test $srcdir = . && test -d gcc ) \
1597 || test -d $srcdir/../host-${host_noncanonical}; then
1598 host_subdir="host-${host_noncanonical}"
1599else
1600 host_subdir=.
1601fi
1602# No prefix.
1603target_subdir=${target_noncanonical}
1604
1605
1606# -------
1607# Options
1608# -------
1609
82eaf560 1610echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1611echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1612# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
4c82c0dd 1613if test "${enable_version_specific_runtime_libs+set}" = set; then
82eaf560 1614 enableval="$enable_version_specific_runtime_libs"
1615 case "$enableval" in
4c82c0dd 1616 yes) version_specific_libs=yes ;;
1617 no) version_specific_libs=no ;;
1618 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1619echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1620 { (exit 1); exit 1; }; };;
1621 esac
1622else
1623 version_specific_libs=no
82eaf560 1624fi;
1625echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1626echo "${ECHO_T}$version_specific_libs" >&6
4c82c0dd 1627
93773f82 1628# Build with intermodule optimisations
82eaf560 1629echo "$as_me:$LINENO: checking for --enable-intermodule" >&5
1630echo $ECHO_N "checking for --enable-intermodule... $ECHO_C" >&6
1631# Check whether --enable-intermodule or --disable-intermodule was given.
93773f82 1632if test "${enable_intermodule+set}" = set; then
82eaf560 1633 enableval="$enable_intermodule"
1634 case "$enable_intermodule" in
93773f82 1635 yes) onestep="-onestep";;
1636 *) onestep="";;
1637esac
1638else
1639 onestep=""
82eaf560 1640fi;
1641echo "$as_me:$LINENO: result: $enable_intermodule" >&5
1642echo "${ECHO_T}$enable_intermodule" >&6
93773f82 1643
1644
1645if test x$onestep = x-onestep; then
1646 onestep_TRUE=
1647 onestep_FALSE='#'
1648else
1649 onestep_TRUE='#'
1650 onestep_FALSE=
1651fi
1652
1653
4c82c0dd 1654
1655# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1656#
1657# You will slowly go insane if you do not grok the following fact: when
1658# building this library, the top-level /target/ becomes the library's /host/.
1659#
1660# configure then causes --target to default to --host, exactly like any
1661# other package using autoconf. Therefore, 'target' and 'host' will
1662# always be the same. This makes sense both for native and cross compilers
1663# just think about it for a little while. :-)
1664#
1665# Also, if this library is being configured as part of a cross compiler, the
1666# top-level configure script will pass the "real" host as $with_cross_host.
1667#
1668# Do not delete or change the following two lines. For why, see
1669# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
82eaf560 1670echo "$as_me:$LINENO: checking host system type" >&5
1671echo $ECHO_N "checking host system type... $ECHO_C" >&6
90973b19 1672if test "${ac_cv_host+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
82eaf560 1675 ac_cv_host_alias=$host_alias
1676test -z "$ac_cv_host_alias" &&
1677 ac_cv_host_alias=$ac_cv_build_alias
1678ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1680echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
90973b19 1681 { (exit 1); exit 1; }; }
1682
1683fi
82eaf560 1684echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1685echo "${ECHO_T}$ac_cv_host" >&6
90973b19 1686host=$ac_cv_host
82eaf560 1687host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692echo "$as_me:$LINENO: checking target system type" >&5
1693echo $ECHO_N "checking target system type... $ECHO_C" >&6
90973b19 1694if test "${ac_cv_target+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1696else
82eaf560 1697 ac_cv_target_alias=$target_alias
1698test "x$ac_cv_target_alias" = "x" &&
1699 ac_cv_target_alias=$ac_cv_host_alias
1700ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1701 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1702echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
90973b19 1703 { (exit 1); exit 1; }; }
1704
1705fi
82eaf560 1706echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1707echo "${ECHO_T}$ac_cv_target" >&6
90973b19 1708target=$ac_cv_target
82eaf560 1709target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1710target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1711target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
90973b19 1712
1713
1714# The aliases save the names the user supplied, while $host etc.
1715# will get canonicalized.
1716test -n "$target_alias" &&
1717 test "$program_prefix$program_suffix$program_transform_name" = \
1718 NONENONEs,x,x, &&
1719 program_prefix=${target_alias}-
1720target_alias=${target_alias-$host_alias}
1721
1722# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1723# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2fd61f51 1724# 1.9.6: minimum required version
90973b19 1725# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1726# of other PACKAGE_* variables will, however, and there's nothing
1727# we can do about that; they come from AC_INIT).
1728# foreign: we don't follow the normal rules for GNU packages (no COPYING
1729# file in the top srcdir, etc, etc), so stop complaining.
90973b19 1730# -Wall: turns on all automake warnings...
1731# -Wno-portability: ...except this one, since GNU make is required.
6745c9de 1732am__api_version="1.9"
4ee9c684 1733# Find a good install program. We prefer a C program (faster),
1734# so one script is as good as another. But avoid the broken or
1735# incompatible versions:
1736# SysV /etc/install, /usr/sbin/install
1737# SunOS /usr/etc/install
1738# IRIX /sbin/install
1739# AIX /bin/install
1740# AmigaOS /C/install, which installs bootblocks on floppy discs
1741# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1742# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1743# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1744# OS/2's system install, which has a completely different semantic
1745# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 1746# Reject install programs that cannot install multiple files.
1747echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1748echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4ee9c684 1749if test -z "$INSTALL"; then
1750if test "${ac_cv_path_install+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752else
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754for as_dir in $PATH
1755do
1756 IFS=$as_save_IFS
1757 test -z "$as_dir" && as_dir=.
1758 # Account for people who put trailing slashes in PATH elements.
1759case $as_dir/ in
1760 ./ | .// | /cC/* | \
1761 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1762 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1763 /usr/ucb/* ) ;;
1764 *)
1765 # OSF1 and SCO ODT 3.0 have their own names for install.
1766 # Don't use installbsd from OSF since it installs stuff as root
1767 # by default.
1768 for ac_prog in ginstall scoinst install; do
1769 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 1770 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4ee9c684 1771 if test $ac_prog = install &&
1772 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1773 # AIX install. It has an incompatible calling convention.
1774 :
1775 elif test $ac_prog = install &&
1776 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1777 # program-specific install script used by HP pwplus--don't use.
1778 :
1779 else
82eaf560 1780 rm -rf conftest.one conftest.two conftest.dir
1781 echo one > conftest.one
1782 echo two > conftest.two
1783 mkdir conftest.dir
1784 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1785 test -s conftest.one && test -s conftest.two &&
1786 test -s conftest.dir/conftest.one &&
1787 test -s conftest.dir/conftest.two
1788 then
1789 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1790 break 3
1791 fi
4ee9c684 1792 fi
1793 fi
1794 done
1795 done
1796 ;;
1797esac
1798done
1799
82eaf560 1800rm -rf conftest.one conftest.two conftest.dir
4ee9c684 1801
1802fi
1803 if test "${ac_cv_path_install+set}" = set; then
1804 INSTALL=$ac_cv_path_install
1805 else
ff4425cf 1806 # As a last resort, use the slow shell script. Don't cache a
1807 # value for INSTALL within a source directory, because that will
4ee9c684 1808 # break other packages using the cache if that directory is
ff4425cf 1809 # removed, or if the value is a relative name.
4ee9c684 1810 INSTALL=$ac_install_sh
1811 fi
1812fi
82eaf560 1813echo "$as_me:$LINENO: result: $INSTALL" >&5
1814echo "${ECHO_T}$INSTALL" >&6
4ee9c684 1815
1816# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1817# It thinks the first close brace ends the variable substitution.
1818test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1819
1820test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1821
1822test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1823
82eaf560 1824echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1825echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4ee9c684 1826# Just in case
1827sleep 1
1828echo timestamp > conftest.file
1829# Do `set' in a subshell so we don't clobber the current shell's
1830# arguments. Must try -L first in case configure is actually a
1831# symlink; some systems play weird games with the mod time of symlinks
1832# (eg FreeBSD returns the mod time of the symlink's containing
1833# directory).
1834if (
1835 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1836 if test "$*" = "X"; then
1837 # -L didn't work.
1838 set X `ls -t $srcdir/configure conftest.file`
1839 fi
1840 rm -f conftest.file
1841 if test "$*" != "X $srcdir/configure conftest.file" \
1842 && test "$*" != "X conftest.file $srcdir/configure"; then
1843
1844 # If neither matched, then we have a broken ls. This can happen
1845 # if, for instance, CONFIG_SHELL is bash and it inherits a
1846 # broken ls alias from the environment. This has actually
1847 # happened. Such a system could not be considered "sane".
1848 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1849alias in your environment" >&5
1850echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1851alias in your environment" >&2;}
1852 { (exit 1); exit 1; }; }
1853 fi
1854
1855 test "$2" = conftest.file
1856 )
1857then
1858 # Ok.
1859 :
1860else
1861 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1862Check your system clock" >&5
1863echo "$as_me: error: newly created file is older than distributed files!
1864Check your system clock" >&2;}
1865 { (exit 1); exit 1; }; }
1866fi
82eaf560 1867echo "$as_me:$LINENO: result: yes" >&5
1868echo "${ECHO_T}yes" >&6
4ee9c684 1869test "$program_prefix" != NONE &&
82eaf560 1870 program_transform_name="s,^,$program_prefix,;$program_transform_name"
4ee9c684 1871# Use a double $ so make ignores it.
1872test "$program_suffix" != NONE &&
82eaf560 1873 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4ee9c684 1874# Double any \ or $. echo might interpret backslashes.
1875# By default was `s,x,x', remove it if useless.
1876cat <<\_ACEOF >conftest.sed
1877s/[\\$]/&&/g;s/;s,x,x,$//
1878_ACEOF
1879program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
82eaf560 1880rm conftest.sed
4ee9c684 1881
1882# expand $ac_aux_dir to an absolute path
1883am_aux_dir=`cd $ac_aux_dir && pwd`
1884
1885test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1886# Use eval to expand $SHELL
1887if eval "$MISSING --run true"; then
1888 am_missing_run="$MISSING --run "
1889else
1890 am_missing_run=
1891 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1892echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1893fi
1894
cdafa1f6 1895if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6745c9de 1896 # We used to keeping the `.' as first argument, in order to
1897 # allow $(mkdir_p) to be used without argument. As in
4ee9c684 1898 # $(mkdir_p) $(somedir)
6745c9de 1899 # where $(somedir) is conditionally defined. However this is wrong
1900 # for two reasons:
1901 # 1. if the package is installed by a user who cannot write `.'
1902 # make install will fail,
1903 # 2. the above comment should most certainly read
1904 # $(mkdir_p) $(DESTDIR)$(somedir)
1905 # so it does not work when $(somedir) is undefined and
1906 # $(DESTDIR) is not.
1907 # To support the latter case, we have to write
1908 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1909 # so the `.' trick is pointless.
1910 mkdir_p='mkdir -p --'
4ee9c684 1911else
1912 # On NextStep and OpenStep, the `mkdir' command does not
1913 # recognize any option. It will interpret all options as
1914 # directories to create, and then abort because `.' already
1915 # exists.
cdafa1f6 1916 for d in ./-p ./--version;
4ee9c684 1917 do
1918 test -d $d && rmdir $d
1919 done
1920 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1921 if test -f "$ac_aux_dir/mkinstalldirs"; then
1922 mkdir_p='$(mkinstalldirs)'
1923 else
1924 mkdir_p='$(install_sh) -d'
1925 fi
1926fi
1927
1928for ac_prog in gawk mawk nawk awk
1929do
1930 # Extract the first word of "$ac_prog", so it can be a program name with args.
1931set dummy $ac_prog; ac_word=$2
82eaf560 1932echo "$as_me:$LINENO: checking for $ac_word" >&5
1933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4ee9c684 1934if test "${ac_cv_prog_AWK+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936else
1937 if test -n "$AWK"; then
1938 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1939else
1940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941for as_dir in $PATH
1942do
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 1947 ac_cv_prog_AWK="$ac_prog"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 break 2
1950 fi
1951done
1952done
1953
1954fi
1955fi
1956AWK=$ac_cv_prog_AWK
1957if test -n "$AWK"; then
82eaf560 1958 echo "$as_me:$LINENO: result: $AWK" >&5
1959echo "${ECHO_T}$AWK" >&6
4ee9c684 1960else
82eaf560 1961 echo "$as_me:$LINENO: result: no" >&5
1962echo "${ECHO_T}no" >&6
4ee9c684 1963fi
1964
1965 test -n "$AWK" && break
1966done
1967
82eaf560 1968echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1969echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1970set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1971if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4ee9c684 1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973else
1974 cat >conftest.make <<\_ACEOF
1975all:
82eaf560 1976 @echo 'ac_maketemp="$(MAKE)"'
4ee9c684 1977_ACEOF
1978# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
82eaf560 1979eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1980if test -n "$ac_maketemp"; then
1981 eval ac_cv_prog_make_${ac_make}_set=yes
1982else
1983 eval ac_cv_prog_make_${ac_make}_set=no
1984fi
4ee9c684 1985rm -f conftest.make
1986fi
82eaf560 1987if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1988 echo "$as_me:$LINENO: result: yes" >&5
1989echo "${ECHO_T}yes" >&6
4ee9c684 1990 SET_MAKE=
1991else
82eaf560 1992 echo "$as_me:$LINENO: result: no" >&5
1993echo "${ECHO_T}no" >&6
4ee9c684 1994 SET_MAKE="MAKE=${MAKE-make}"
1995fi
1996
1997rm -rf .tst 2>/dev/null
1998mkdir .tst 2>/dev/null
1999if test -d .tst; then
2000 am__leading_dot=.
2001else
2002 am__leading_dot=_
2003fi
2004rmdir .tst 2>/dev/null
2005
2006# test to see if srcdir already configured
2007if test "`cd $srcdir && pwd`" != "`pwd`" &&
2008 test -f $srcdir/config.status; then
2009 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2010echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2011 { (exit 1); exit 1; }; }
2012fi
2013
2014# test whether we have cygpath
2015if test -z "$CYGPATH_W"; then
2016 if (cygpath --version) >/dev/null 2>/dev/null; then
2017 CYGPATH_W='cygpath -w'
2018 else
2019 CYGPATH_W=echo
2020 fi
2021fi
2022
2023
2024# Define the identity of the package.
2025 PACKAGE='libgfortran'
76c0a846 2026 VERSION='0.3'
4ee9c684 2027
2028
4ee9c684 2029# Some tools Automake needs.
2030
2031ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2032
2033
2034AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2035
2036
2037AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2038
2039
2040AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2041
2042
2043MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2044
4ee9c684 2045install_sh=${install_sh-"$am_aux_dir/install-sh"}
2046
2047# Installed binaries are usually stripped using `strip' when the user
2048# run `make install-strip'. However `strip' might not be the right
2049# tool to use in cross-compilation environments, therefore Automake
2050# will honor the `STRIP' environment variable to overrule this program.
2051if test "$cross_compiling" != no; then
2052 if test -n "$ac_tool_prefix"; then
2053 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2054set dummy ${ac_tool_prefix}strip; ac_word=$2
82eaf560 2055echo "$as_me:$LINENO: checking for $ac_word" >&5
2056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4ee9c684 2057if test "${ac_cv_prog_STRIP+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059else
2060 if test -n "$STRIP"; then
2061 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2062else
2063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064for as_dir in $PATH
2065do
2066 IFS=$as_save_IFS
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 2069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 2070 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 break 2
2073 fi
2074done
2075done
2076
2077fi
2078fi
2079STRIP=$ac_cv_prog_STRIP
2080if test -n "$STRIP"; then
82eaf560 2081 echo "$as_me:$LINENO: result: $STRIP" >&5
2082echo "${ECHO_T}$STRIP" >&6
4ee9c684 2083else
82eaf560 2084 echo "$as_me:$LINENO: result: no" >&5
2085echo "${ECHO_T}no" >&6
4ee9c684 2086fi
2087
2088fi
2089if test -z "$ac_cv_prog_STRIP"; then
2090 ac_ct_STRIP=$STRIP
2091 # Extract the first word of "strip", so it can be a program name with args.
2092set dummy strip; ac_word=$2
82eaf560 2093echo "$as_me:$LINENO: checking for $ac_word" >&5
2094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4ee9c684 2095if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098 if test -n "$ac_ct_STRIP"; then
2099 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2100else
2101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102for as_dir in $PATH
2103do
2104 IFS=$as_save_IFS
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 2107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 2108 ac_cv_prog_ac_ct_STRIP="strip"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 break 2
2111 fi
2112done
2113done
2114
82eaf560 2115 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4ee9c684 2116fi
2117fi
2118ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2119if test -n "$ac_ct_STRIP"; then
82eaf560 2120 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2121echo "${ECHO_T}$ac_ct_STRIP" >&6
4ee9c684 2122else
82eaf560 2123 echo "$as_me:$LINENO: result: no" >&5
2124echo "${ECHO_T}no" >&6
4ee9c684 2125fi
2126
82eaf560 2127 STRIP=$ac_ct_STRIP
4ee9c684 2128else
2129 STRIP="$ac_cv_prog_STRIP"
2130fi
2131
2132fi
2133INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2134
2135# We need awk for the "check" target. The system "awk" is bad on
2136# some platforms.
6745c9de 2137# Always define AMTAR for backward compatibility.
2138
2139AMTAR=${AMTAR-"${am_missing_run}tar"}
2140
2141am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2142
2143
4ee9c684 2144
2145
2146
4ee9c684 2147
82eaf560 2148echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2149echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2150 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4ee9c684 2151if test "${enable_maintainer_mode+set}" = set; then
82eaf560 2152 enableval="$enable_maintainer_mode"
2153 USE_MAINTAINER_MODE=$enableval
4ee9c684 2154else
2155 USE_MAINTAINER_MODE=no
82eaf560 2156fi;
2157 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2158echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4ee9c684 2159
2160
2161if test $USE_MAINTAINER_MODE = yes; then
2162 MAINTAINER_MODE_TRUE=
2163 MAINTAINER_MODE_FALSE='#'
2164else
2165 MAINTAINER_MODE_TRUE='#'
2166 MAINTAINER_MODE_FALSE=
2167fi
2168
2169 MAINT=$MAINTAINER_MODE_TRUE
2170
2171
90973b19 2172# Default to --enable-multilib
82eaf560 2173# Check whether --enable-multilib or --disable-multilib was given.
90973b19 2174if test "${enable_multilib+set}" = set; then
82eaf560 2175 enableval="$enable_multilib"
2176 case "$enableval" in
90973b19 2177 yes) multilib=yes ;;
2178 no) multilib=no ;;
2179 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2180echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2181 { (exit 1); exit 1; }; } ;;
2182 esac
2183else
2184 multilib=yes
82eaf560 2185fi;
90973b19 2186
2187# We may get other options which we leave undocumented:
2188# --with-target-subdir, --with-multisrctop, --with-multisubdir
2189# See config-ml.in if you want the gory details.
2190
2191if test "$srcdir" = "."; then
2192 if test "$with_target_subdir" != "."; then
2193 multi_basedir="$srcdir/$with_multisrctop../.."
2194 else
2195 multi_basedir="$srcdir/$with_multisrctop.."
2196 fi
2197else
2198 multi_basedir="$srcdir/.."
2199fi
2200
2201
04c8b51e 2202# Even if the default multilib is not a cross compilation,
2203# it may be that some of the other multilibs are.
2204if test $cross_compiling = no && test $multilib = yes \
2205 && test "x${with_multisubdir}" != x ; then
2206 cross_compiling=maybe
2207fi
2208
82eaf560 2209 ac_config_commands="$ac_config_commands default-1"
90973b19 2210
2211
2212# Handy for debugging:
2213#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
2214
2215# Are we being configured with some form of cross compiler?
2216# NB: We don't actually need to know this just now, but when, say, a test
2217# suite is included, we'll have to know.
2218if test "$build" != "$host"; then
2219 LIBGFOR_IS_NATIVE=false
b52ee437 2220
90973b19 2221else
2222 LIBGFOR_IS_NATIVE=true
2223fi
2224
90973b19 2225# Calculate toolexeclibdir
2226# Also toolexecdir, though it's only used in toolexeclibdir
2227case ${version_specific_libs} in
2228 yes)
2229 # Need the gcc compiler version to know where to install libraries
2230 # and header files if --enable-version-specific-runtime-libs option
2231 # is selected.
2232 toolexecdir='$(libdir)/gcc/$(target_alias)'
91a9c151 2233 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
90973b19 2234 ;;
2235 no)
2236 if test -n "$with_cross_host" &&
2237 test x"$with_cross_host" != x"no"; then
2238 # Install a library built with a cross compiler in tooldir, not libdir.
2239 toolexecdir='$(exec_prefix)/$(target_alias)'
2240 toolexeclibdir='$(toolexecdir)/lib'
2241 else
2242 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2243 toolexeclibdir='$(libdir)'
2244 fi
2245 multi_os_directory=`$CC -print-multi-os-directory`
2246 case $multi_os_directory in
2247 .) ;; # Avoid trailing /.
2248 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2249 esac
2250 ;;
2251esac
2252
2253
4ee9c684 2254
90973b19 2255# Check the compiler.
2256# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2257# We must force CC to /not/ be precious variables; otherwise
2258# the wrong, non-multilib-adjusted value will be used in multilibs.
2259# As a side effect, we have to subst CFLAGS ourselves.
4ee9c684 2260
2261
2262
4ee9c684 2263ac_ext=c
2264ac_cpp='$CPP $CPPFLAGS'
2265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268if test -n "$ac_tool_prefix"; then
2269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2270set dummy ${ac_tool_prefix}gcc; ac_word=$2
82eaf560 2271echo "$as_me:$LINENO: checking for $ac_word" >&5
2272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4ee9c684 2273if test "${ac_cv_prog_CC+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275else
2276 if test -n "$CC"; then
2277 ac_cv_prog_CC="$CC" # Let the user override the test.
2278else
2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 2285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 2286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 break 2
2289 fi
2290done
2291done
2292
2293fi
2294fi
2295CC=$ac_cv_prog_CC
2296if test -n "$CC"; then
82eaf560 2297 echo "$as_me:$LINENO: result: $CC" >&5
2298echo "${ECHO_T}$CC" >&6
4ee9c684 2299else
82eaf560 2300 echo "$as_me:$LINENO: result: no" >&5
2301echo "${ECHO_T}no" >&6
4ee9c684 2302fi
2303
2304fi
2305if test -z "$ac_cv_prog_CC"; then
2306 ac_ct_CC=$CC
2307 # Extract the first word of "gcc", so it can be a program name with args.
2308set dummy gcc; ac_word=$2
82eaf560 2309echo "$as_me:$LINENO: checking for $ac_word" >&5
2310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4ee9c684 2311if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313else
2314 if test -n "$ac_ct_CC"; then
2315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2316else
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 2323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 2324 ac_cv_prog_ac_ct_CC="gcc"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328done
2329done
2330
2331fi
2332fi
2333ac_ct_CC=$ac_cv_prog_ac_ct_CC
2334if test -n "$ac_ct_CC"; then
82eaf560 2335 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2336echo "${ECHO_T}$ac_ct_CC" >&6
4ee9c684 2337else
82eaf560 2338 echo "$as_me:$LINENO: result: no" >&5
2339echo "${ECHO_T}no" >&6
4ee9c684 2340fi
2341
82eaf560 2342 CC=$ac_ct_CC
4ee9c684 2343else
2344 CC="$ac_cv_prog_CC"
2345fi
2346
2347if test -z "$CC"; then
82eaf560 2348 if test -n "$ac_tool_prefix"; then
2349 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4ee9c684 2350set dummy ${ac_tool_prefix}cc; ac_word=$2
82eaf560 2351echo "$as_me:$LINENO: checking for $ac_word" >&5
2352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4ee9c684 2353if test "${ac_cv_prog_CC+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2358else
2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 2365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 2366 ac_cv_prog_CC="${ac_tool_prefix}cc"
2367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 break 2
2369 fi
2370done
2371done
2372
2373fi
2374fi
2375CC=$ac_cv_prog_CC
2376if test -n "$CC"; then
82eaf560 2377 echo "$as_me:$LINENO: result: $CC" >&5
2378echo "${ECHO_T}$CC" >&6
4ee9c684 2379else
82eaf560 2380 echo "$as_me:$LINENO: result: no" >&5
2381echo "${ECHO_T}no" >&6
4ee9c684 2382fi
2383
82eaf560 2384fi
2385if test -z "$ac_cv_prog_CC"; then
2386 ac_ct_CC=$CC
2387 # Extract the first word of "cc", so it can be a program name with args.
2388set dummy cc; ac_word=$2
2389echo "$as_me:$LINENO: checking for $ac_word" >&5
2390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2391if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2393else
2394 if test -n "$ac_ct_CC"; then
2395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2396else
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404 ac_cv_prog_ac_ct_CC="cc"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 break 2
ff4425cf 2407 fi
82eaf560 2408done
2409done
2410
2411fi
2412fi
2413ac_ct_CC=$ac_cv_prog_ac_ct_CC
2414if test -n "$ac_ct_CC"; then
2415 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2416echo "${ECHO_T}$ac_ct_CC" >&6
2417else
2418 echo "$as_me:$LINENO: result: no" >&5
2419echo "${ECHO_T}no" >&6
2420fi
2421
2422 CC=$ac_ct_CC
2423else
2424 CC="$ac_cv_prog_CC"
2425fi
2426
4ee9c684 2427fi
2428if test -z "$CC"; then
2429 # Extract the first word of "cc", so it can be a program name with args.
2430set dummy cc; ac_word=$2
82eaf560 2431echo "$as_me:$LINENO: checking for $ac_word" >&5
2432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4ee9c684 2433if test "${ac_cv_prog_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435else
2436 if test -n "$CC"; then
2437 ac_cv_prog_CC="$CC" # Let the user override the test.
2438else
2439 ac_prog_rejected=no
2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441for as_dir in $PATH
2442do
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 2446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 2447 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2448 ac_prog_rejected=yes
2449 continue
2450 fi
2451 ac_cv_prog_CC="cc"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2454 fi
2455done
2456done
2457
2458if test $ac_prog_rejected = yes; then
2459 # We found a bogon in the path, so make sure we never use it.
2460 set dummy $ac_cv_prog_CC
2461 shift
2462 if test $# != 0; then
2463 # We chose a different compiler from the bogus one.
2464 # However, it has the same basename, so the bogon will be chosen
2465 # first if we set CC to just the basename; use the full file name.
2466 shift
2467 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2468 fi
2469fi
2470fi
2471fi
2472CC=$ac_cv_prog_CC
2473if test -n "$CC"; then
82eaf560 2474 echo "$as_me:$LINENO: result: $CC" >&5
2475echo "${ECHO_T}$CC" >&6
4ee9c684 2476else
82eaf560 2477 echo "$as_me:$LINENO: result: no" >&5
2478echo "${ECHO_T}no" >&6
4ee9c684 2479fi
2480
2481fi
2482if test -z "$CC"; then
2483 if test -n "$ac_tool_prefix"; then
82eaf560 2484 for ac_prog in cl
4ee9c684 2485 do
2486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2487set dummy $ac_tool_prefix$ac_prog; ac_word=$2
82eaf560 2488echo "$as_me:$LINENO: checking for $ac_word" >&5
2489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4ee9c684 2490if test "${ac_cv_prog_CC+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
2493 if test -n "$CC"; then
2494 ac_cv_prog_CC="$CC" # Let the user override the test.
2495else
2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497for as_dir in $PATH
2498do
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 2502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 2503 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 break 2
2506 fi
2507done
2508done
2509
2510fi
2511fi
2512CC=$ac_cv_prog_CC
2513if test -n "$CC"; then
82eaf560 2514 echo "$as_me:$LINENO: result: $CC" >&5
2515echo "${ECHO_T}$CC" >&6
4ee9c684 2516else
82eaf560 2517 echo "$as_me:$LINENO: result: no" >&5
2518echo "${ECHO_T}no" >&6
4ee9c684 2519fi
2520
2521 test -n "$CC" && break
2522 done
2523fi
2524if test -z "$CC"; then
2525 ac_ct_CC=$CC
82eaf560 2526 for ac_prog in cl
4ee9c684 2527do
2528 # Extract the first word of "$ac_prog", so it can be a program name with args.
2529set dummy $ac_prog; ac_word=$2
82eaf560 2530echo "$as_me:$LINENO: checking for $ac_word" >&5
2531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4ee9c684 2532if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534else
2535 if test -n "$ac_ct_CC"; then
2536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2537else
2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 2544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4ee9c684 2545 ac_cv_prog_ac_ct_CC="$ac_prog"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2548 fi
2549done
2550done
2551
2552fi
2553fi
2554ac_ct_CC=$ac_cv_prog_ac_ct_CC
2555if test -n "$ac_ct_CC"; then
82eaf560 2556 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2557echo "${ECHO_T}$ac_ct_CC" >&6
4ee9c684 2558else
82eaf560 2559 echo "$as_me:$LINENO: result: no" >&5
2560echo "${ECHO_T}no" >&6
4ee9c684 2561fi
2562
2563 test -n "$ac_ct_CC" && break
2564done
2565
82eaf560 2566 CC=$ac_ct_CC
4ee9c684 2567fi
2568
2569fi
2570
2571
5b2c7553 2572test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2573echo "$as_me: error: in \`$ac_pwd':" >&2;}
2574{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4ee9c684 2575See \`config.log' for more details." >&5
2576echo "$as_me: error: no acceptable C compiler found in \$PATH
2577See \`config.log' for more details." >&2;}
5b2c7553 2578 { (exit 1); exit 1; }; }; }
4ee9c684 2579
2580# Provide some information about the compiler.
82eaf560 2581echo "$as_me:$LINENO:" \
2582 "checking for C compiler version" >&5
4ee9c684 2583ac_compiler=`set X $ac_compile; echo $2`
82eaf560 2584{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2585 (eval $ac_compiler --version </dev/null >&5) 2>&5
4ee9c684 2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }
82eaf560 2589{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2590 (eval $ac_compiler -v </dev/null >&5) 2>&5
4ee9c684 2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }
82eaf560 2594{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2595 (eval $ac_compiler -V </dev/null >&5) 2>&5
4ee9c684 2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }
2599
2600cat >conftest.$ac_ext <<_ACEOF
2601/* confdefs.h. */
2602_ACEOF
2603cat confdefs.h >>conftest.$ac_ext
2604cat >>conftest.$ac_ext <<_ACEOF
2605/* end confdefs.h. */
2606
b52ee437 2607int
2608main ()
2609{
2610
2611 ;
2612 return 0;
2613}
2614_ACEOF
2615# FIXME: Cleanup?
2616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2617 (eval $ac_link) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; then
2621 gcc_no_link=no
2622else
2623 gcc_no_link=yes
2624fi
2625
2626if test x$gcc_no_link = xyes; then
2627 # Setting cross_compile will disable run tests; it will
2628 # also disable AC_CHECK_FILE but that's generally
2629 # correct if we can't link.
2630 cross_compiling=yes
2631 EXEEXT=
2632else
2633 cat >conftest.$ac_ext <<_ACEOF
2634/* confdefs.h. */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
2638/* end confdefs.h. */
2639
4ee9c684 2640int
2641main ()
2642{
2643
2644 ;
2645 return 0;
2646}
2647_ACEOF
2648ac_clean_files_save=$ac_clean_files
2649ac_clean_files="$ac_clean_files a.out a.exe b.out"
2650# Try to create an executable without -o first, disregard a.out.
2651# It will help us diagnose broken compilers, and finding out an intuition
2652# of exeext.
82eaf560 2653echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2654echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4ee9c684 2655ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
82eaf560 2656if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2657 (eval $ac_link_default) 2>&5
4ee9c684 2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; then
82eaf560 2661 # Find the output, starting from the most likely. This scheme is
2662# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2663# resort.
2664
2665# Be careful to initialize this variable, since it used to be cached.
2666# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2667ac_cv_exeext=
2668# b.out is created by i960 compilers.
2669for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4ee9c684 2670do
2671 test -f "$ac_file" || continue
2672 case $ac_file in
82eaf560 2673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2674 ;;
2675 conftest.$ac_ext )
2676 # This is the source file.
4ee9c684 2677 ;;
2678 [ab].out )
2679 # We found the default executable, but exeext='' is most
2680 # certainly right.
2681 break;;
2682 *.* )
82eaf560 2683 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2684 # FIXME: I believe we export ac_cv_exeext for Libtool,
2685 # but it would be cool to find out if it's true. Does anybody
2686 # maintain Libtool? --akim.
2687 export ac_cv_exeext
4ee9c684 2688 break;;
2689 * )
2690 break;;
2691 esac
2692done
2693else
2694 echo "$as_me: failed program was:" >&5
2695sed 's/^/| /' conftest.$ac_ext >&5
2696
5b2c7553 2697{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2698echo "$as_me: error: in \`$ac_pwd':" >&2;}
4ee9c684 2699{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2700See \`config.log' for more details." >&5
2701echo "$as_me: error: C compiler cannot create executables
2702See \`config.log' for more details." >&2;}
5b2c7553 2703 { (exit 77); exit 77; }; }; }
4ee9c684 2704fi
2705
2706ac_exeext=$ac_cv_exeext
82eaf560 2707echo "$as_me:$LINENO: result: $ac_file" >&5
2708echo "${ECHO_T}$ac_file" >&6
4ee9c684 2709
82eaf560 2710# Check the compiler produces executables we can run. If not, either
4ee9c684 2711# the compiler is broken, or we cross compile.
82eaf560 2712echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2713echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4ee9c684 2714# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2715# If not cross compiling, check that we can run a simple program.
2716if test "$cross_compiling" != yes; then
2717 if { ac_try='./$ac_file'
82eaf560 2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 (eval $ac_try) 2>&5
4ee9c684 2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2723 cross_compiling=no
2724 else
2725 if test "$cross_compiling" = maybe; then
2726 cross_compiling=yes
2727 else
5b2c7553 2728 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2729echo "$as_me: error: in \`$ac_pwd':" >&2;}
2730{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4ee9c684 2731If you meant to cross compile, use \`--host'.
2732See \`config.log' for more details." >&5
2733echo "$as_me: error: cannot run C compiled programs.
2734If you meant to cross compile, use \`--host'.
2735See \`config.log' for more details." >&2;}
5b2c7553 2736 { (exit 1); exit 1; }; }; }
4ee9c684 2737 fi
2738 fi
2739fi
82eaf560 2740echo "$as_me:$LINENO: result: yes" >&5
2741echo "${ECHO_T}yes" >&6
4ee9c684 2742
2743rm -f a.out a.exe conftest$ac_cv_exeext b.out
2744ac_clean_files=$ac_clean_files_save
82eaf560 2745# Check the compiler produces executables we can run. If not, either
4ee9c684 2746# the compiler is broken, or we cross compile.
82eaf560 2747echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2748echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2749echo "$as_me:$LINENO: result: $cross_compiling" >&5
2750echo "${ECHO_T}$cross_compiling" >&6
2751
2752echo "$as_me:$LINENO: checking for suffix of executables" >&5
2753echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2755 (eval $ac_link) 2>&5
4ee9c684 2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; then
2759 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2760# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2761# work properly (i.e., refer to `conftest.exe'), while it won't with
2762# `rm'.
2763for ac_file in conftest.exe conftest conftest.*; do
2764 test -f "$ac_file" || continue
2765 case $ac_file in
82eaf560 2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4ee9c684 2767 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
82eaf560 2768 export ac_cv_exeext
4ee9c684 2769 break;;
2770 * ) break;;
2771 esac
2772done
2773else
5b2c7553 2774 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2775echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4ee9c684 2777See \`config.log' for more details." >&5
2778echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2779See \`config.log' for more details." >&2;}
5b2c7553 2780 { (exit 1); exit 1; }; }; }
4ee9c684 2781fi
2782
2783rm -f conftest$ac_cv_exeext
82eaf560 2784echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2785echo "${ECHO_T}$ac_cv_exeext" >&6
4ee9c684 2786
2787rm -f conftest.$ac_ext
2788EXEEXT=$ac_cv_exeext
2789ac_exeext=$EXEEXT
b52ee437 2790fi
82eaf560 2791echo "$as_me:$LINENO: checking for suffix of object files" >&5
2792echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4ee9c684 2793if test "${ac_cv_objext+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2795else
2796 cat >conftest.$ac_ext <<_ACEOF
2797/* confdefs.h. */
2798_ACEOF
2799cat confdefs.h >>conftest.$ac_ext
2800cat >>conftest.$ac_ext <<_ACEOF
2801/* end confdefs.h. */
2802
2803int
2804main ()
2805{
2806
2807 ;
2808 return 0;
2809}
2810_ACEOF
2811rm -f conftest.o conftest.obj
82eaf560 2812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813 (eval $ac_compile) 2>&5
4ee9c684 2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; then
82eaf560 2817 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4ee9c684 2818 case $ac_file in
82eaf560 2819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4ee9c684 2820 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2821 break;;
2822 esac
2823done
2824else
2825 echo "$as_me: failed program was:" >&5
2826sed 's/^/| /' conftest.$ac_ext >&5
2827
5b2c7553 2828{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2829echo "$as_me: error: in \`$ac_pwd':" >&2;}
a106dabe 2830{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2831See \`config.log' for more details." >&5
2832echo "$as_me: error: cannot compute suffix of object files: cannot compile
2833See \`config.log' for more details." >&2;}
5b2c7553 2834 { (exit 1); exit 1; }; }; }
a106dabe 2835fi
2836
2837rm -f conftest.$ac_cv_objext conftest.$ac_ext
2838fi
82eaf560 2839echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2840echo "${ECHO_T}$ac_cv_objext" >&6
a106dabe 2841OBJEXT=$ac_cv_objext
2842ac_objext=$OBJEXT
82eaf560 2843echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2844echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
a106dabe 2845if test "${ac_cv_c_compiler_gnu+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847else
2848 cat >conftest.$ac_ext <<_ACEOF
4ee9c684 2849/* confdefs.h. */
2850_ACEOF
2851cat confdefs.h >>conftest.$ac_ext
2852cat >>conftest.$ac_ext <<_ACEOF
2853/* end confdefs.h. */
4ee9c684 2854
4ee9c684 2855int
2856main ()
2857{
a106dabe 2858#ifndef __GNUC__
2859 choke me
2860#endif
ce1a737c 2861
4ee9c684 2862 ;
2863 return 0;
2864}
2865_ACEOF
ce1a737c 2866rm -f conftest.$ac_objext
82eaf560 2867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868 (eval $ac_compile) 2>conftest.er1
4ee9c684 2869 ac_status=$?
2870 grep -v '^ *+' conftest.er1 >conftest.err
2871 rm -f conftest.er1
2872 cat conftest.err >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 2874 (exit $ac_status); } &&
2875 { ac_try='test -z "$ac_c_werror_flag"
2876 || test ! -s conftest.err'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; } &&
2882 { ac_try='test -s conftest.$ac_objext'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 (eval $ac_try) 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
a106dabe 2888 ac_compiler_gnu=yes
4ee9c684 2889else
2890 echo "$as_me: failed program was:" >&5
2891sed 's/^/| /' conftest.$ac_ext >&5
2892
82eaf560 2893ac_compiler_gnu=no
a106dabe 2894fi
82eaf560 2895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a106dabe 2896ac_cv_c_compiler_gnu=$ac_compiler_gnu
2897
2898fi
82eaf560 2899echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2900echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
a106dabe 2901GCC=`test $ac_compiler_gnu = yes && echo yes`
2902ac_test_CFLAGS=${CFLAGS+set}
2903ac_save_CFLAGS=$CFLAGS
82eaf560 2904CFLAGS="-g"
2905echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2906echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
a106dabe 2907if test "${ac_cv_prog_cc_g+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
82eaf560 2910 cat >conftest.$ac_ext <<_ACEOF
4ee9c684 2911/* confdefs.h. */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h. */
ce1a737c 2916
4ee9c684 2917int
2918main ()
2919{
ce1a737c 2920
4ee9c684 2921 ;
2922 return 0;
2923}
2924_ACEOF
2925rm -f conftest.$ac_objext
82eaf560 2926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>conftest.er1
4ee9c684 2928 ac_status=$?
2929 grep -v '^ *+' conftest.er1 >conftest.err
2930 rm -f conftest.er1
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 2933 (exit $ac_status); } &&
2934 { ac_try='test -z "$ac_c_werror_flag"
2935 || test ! -s conftest.err'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 (eval $ac_try) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; } &&
2941 { ac_try='test -s conftest.$ac_objext'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 (eval $ac_try) 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; }; then
ff4425cf 2947 ac_cv_prog_cc_g=yes
2948else
2949 echo "$as_me: failed program was:" >&5
2950sed 's/^/| /' conftest.$ac_ext >&5
2951
82eaf560 2952ac_cv_prog_cc_g=no
2953fi
2954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955fi
2956echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2957echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2958if test "$ac_test_CFLAGS" = set; then
2959 CFLAGS=$ac_save_CFLAGS
2960elif test $ac_cv_prog_cc_g = yes; then
2961 if test "$GCC" = yes; then
2962 CFLAGS="-g -O2"
2963 else
2964 CFLAGS="-g"
2965 fi
2966else
2967 if test "$GCC" = yes; then
2968 CFLAGS="-O2"
2969 else
2970 CFLAGS=
2971 fi
2972fi
2973echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2974echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2975if test "${ac_cv_prog_cc_stdc+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977else
2978 ac_cv_prog_cc_stdc=no
2979ac_save_CC=$CC
2980cat >conftest.$ac_ext <<_ACEOF
ff4425cf 2981/* confdefs.h. */
2982_ACEOF
2983cat confdefs.h >>conftest.$ac_ext
2984cat >>conftest.$ac_ext <<_ACEOF
2985/* end confdefs.h. */
82eaf560 2986#include <stdarg.h>
2987#include <stdio.h>
2988#include <sys/types.h>
2989#include <sys/stat.h>
2990/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2991struct buf { int x; };
2992FILE * (*rcsopen) (struct buf *, struct stat *, int);
2993static char *e (p, i)
2994 char **p;
2995 int i;
2996{
2997 return p[i];
2998}
2999static char *f (char * (*g) (char **, int), char **p, ...)
3000{
3001 char *s;
3002 va_list v;
3003 va_start (v,p);
3004 s = g (p, va_arg (v,int));
3005 va_end (v);
3006 return s;
3007}
ff4425cf 3008
82eaf560 3009/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3010 function prototypes and stuff, but not '\xHH' hex character constants.
3011 These don't provoke an error unfortunately, instead are silently treated
3012 as 'x'. The following induces an error, until -std1 is added to get
3013 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3014 array size at least. It's necessary to write '\x00'==0 to get something
3015 that's true only with -std1. */
3016int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3017
3018int test (int i, double x);
3019struct s1 {int (*f) (int a);};
3020struct s2 {int (*f) (double a);};
3021int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3022int argc;
3023char **argv;
ff4425cf 3024int
3025main ()
3026{
82eaf560 3027return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
ff4425cf 3028 ;
3029 return 0;
3030}
3031_ACEOF
82eaf560 3032# Don't try gcc -ansi; that turns off useful extensions and
3033# breaks some systems' header files.
3034# AIX -qlanglvl=ansi
3035# Ultrix and OSF/1 -std1
3036# HP-UX 10.20 and later -Ae
3037# HP-UX older versions -Aa -D_HPUX_SOURCE
3038# SVR4 -Xc -D__EXTENSIONS__
3039for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3040do
3041 CC="$ac_save_CC $ac_arg"
3042 rm -f conftest.$ac_objext
3043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044 (eval $ac_compile) 2>conftest.er1
4ee9c684 3045 ac_status=$?
ff4425cf 3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
4ee9c684 3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag"
3052 || test ! -s conftest.err'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054 (eval $ac_try) 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 (eval $ac_try) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 ac_cv_prog_cc_stdc=$ac_arg
3065break
ff4425cf 3066else
3067 echo "$as_me: failed program was:" >&5
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
82eaf560 3070fi
3071rm -f conftest.err conftest.$ac_objext
3072done
3073rm -f conftest.$ac_ext conftest.$ac_objext
3074CC=$ac_save_CC
3075
3076fi
3077
3078case "x$ac_cv_prog_cc_stdc" in
3079 x|xno)
3080 echo "$as_me:$LINENO: result: none needed" >&5
3081echo "${ECHO_T}none needed" >&6 ;;
3082 *)
3083 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3084echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3085 CC="$CC $ac_cv_prog_cc_stdc" ;;
3086esac
3087
3088# Some people use a C++ compiler to compile C. Since we use `exit',
3089# in C++ we need to declare it. In case someone uses the same compiler
3090# for both compiling C and C++ we need to have the C++ compiler decide
3091# the declaration of exit, since it's the most demanding environment.
3092cat >conftest.$ac_ext <<_ACEOF
3093#ifndef __cplusplus
3094 choke me
3095#endif
3096_ACEOF
3097rm -f conftest.$ac_objext
3098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3099 (eval $ac_compile) 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try='test -z "$ac_c_werror_flag"
3107 || test ! -s conftest.err'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; } &&
3113 { ac_try='test -s conftest.$ac_objext'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 (eval $ac_try) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3119 for ac_declaration in \
3120 '' \
3121 'extern "C" void std::exit (int) throw (); using std::exit;' \
3122 'extern "C" void std::exit (int); using std::exit;' \
3123 'extern "C" void exit (int) throw ();' \
3124 'extern "C" void exit (int);' \
3125 'void exit (int);'
3126do
3127 cat >conftest.$ac_ext <<_ACEOF
ff4425cf 3128/* confdefs.h. */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h. */
82eaf560 3133$ac_declaration
3134#include <stdlib.h>
ff4425cf 3135int
3136main ()
3137{
82eaf560 3138exit (42);
ff4425cf 3139 ;
3140 return 0;
3141}
3142_ACEOF
3143rm -f conftest.$ac_objext
82eaf560 3144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>conftest.er1
4ee9c684 3146 ac_status=$?
ff4425cf 3147 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1
3149 cat conftest.err >&5
4ee9c684 3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_c_werror_flag"
3153 || test ! -s conftest.err'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 (eval $ac_try) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 (eval $ac_try) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 :
4ee9c684 3166else
3167 echo "$as_me: failed program was:" >&5
3168sed 's/^/| /' conftest.$ac_ext >&5
3169
82eaf560 3170continue
ce1a737c 3171fi
82eaf560 3172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3173 cat >conftest.$ac_ext <<_ACEOF
ce1a737c 3174/* confdefs.h. */
3175_ACEOF
3176cat confdefs.h >>conftest.$ac_ext
3177cat >>conftest.$ac_ext <<_ACEOF
3178/* end confdefs.h. */
82eaf560 3179$ac_declaration
4ee9c684 3180int
3181main ()
3182{
82eaf560 3183exit (42);
4ee9c684 3184 ;
3185 return 0;
3186}
3187_ACEOF
82eaf560 3188rm -f conftest.$ac_objext
3189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190 (eval $ac_compile) 2>conftest.er1
4ee9c684 3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 3196 (exit $ac_status); } &&
3197 { ac_try='test -z "$ac_c_werror_flag"
3198 || test ! -s conftest.err'
3199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 (eval $ac_try) 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 (eval $ac_try) 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3210 break
4ee9c684 3211else
3212 echo "$as_me: failed program was:" >&5
3213sed 's/^/| /' conftest.$ac_ext >&5
3214
3215fi
82eaf560 3216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 3217done
82eaf560 3218rm -f conftest*
3219if test -n "$ac_declaration"; then
3220 echo '#ifdef __cplusplus' >>confdefs.h
3221 echo $ac_declaration >>confdefs.h
3222 echo '#endif' >>confdefs.h
4ee9c684 3223fi
3224
82eaf560 3225else
3226 echo "$as_me: failed program was:" >&5
3227sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 3228
82eaf560 3229fi
3230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 3231ac_ext=c
3232ac_cpp='$CPP $CPPFLAGS'
3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235ac_compiler_gnu=$ac_cv_c_compiler_gnu
2fd61f51 3236DEPDIR="${am__leading_dot}deps"
3237
82eaf560 3238 ac_config_commands="$ac_config_commands depfiles"
2fd61f51 3239
3240
3241am_make=${MAKE-make}
3242cat > confinc << 'END'
3243am__doit:
3244 @echo done
3245.PHONY: am__doit
3246END
3247# If we don't find an include directive, just comment out the code.
82eaf560 3248echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3249echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2fd61f51 3250am__include="#"
3251am__quote=
3252_am_result=none
3253# First try GNU make style include.
3254echo "include confinc" > confmf
3255# We grep out `Entering directory' and `Leaving directory'
3256# messages which can occur if `w' ends up in MAKEFLAGS.
3257# In particular we don't look at `^make:' because GNU make might
3258# be invoked under some other name (usually "gmake"), in which
3259# case it prints its new name instead of `make'.
3260if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3261 am__include=include
3262 am__quote=
3263 _am_result=GNU
3264fi
3265# Now try BSD make style include.
3266if test "$am__include" = "#"; then
3267 echo '.include "confinc"' > confmf
3268 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3269 am__include=.include
3270 am__quote="\""
3271 _am_result=BSD
3272 fi
3273fi
3274
3275
82eaf560 3276echo "$as_me:$LINENO: result: $_am_result" >&5
3277echo "${ECHO_T}$_am_result" >&6
2fd61f51 3278rm -f confinc confmf
3279
82eaf560 3280# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2fd61f51 3281if test "${enable_dependency_tracking+set}" = set; then
82eaf560 3282 enableval="$enable_dependency_tracking"
2fd61f51 3283
82eaf560 3284fi;
2fd61f51 3285if test "x$enable_dependency_tracking" != xno; then
3286 am_depcomp="$ac_aux_dir/depcomp"
3287 AMDEPBACKSLASH='\'
3288fi
3289
3290
3291if test "x$enable_dependency_tracking" != xno; then
3292 AMDEP_TRUE=
3293 AMDEP_FALSE='#'
3294else
3295 AMDEP_TRUE='#'
3296 AMDEP_FALSE=
3297fi
3298
3299
3300
3301
3302depcc="$CC" am_compiler_list=
3303
82eaf560 3304echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3305echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2fd61f51 3306if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308else
3309 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3310 # We make a subdir and do the tests there. Otherwise we can end up
3311 # making bogus files that we don't know about and never remove. For
3312 # instance it was reported that on HP-UX the gcc test will end up
3313 # making a dummy file named `D' -- because `-MD' means `put the output
3314 # in D'.
3315 mkdir conftest.dir
3316 # Copy depcomp to subdir because otherwise we won't find it if we're
3317 # using a relative directory.
3318 cp "$am_depcomp" conftest.dir
3319 cd conftest.dir
3320 # We will build objects and dependencies in a subdirectory because
3321 # it helps to detect inapplicable dependency modes. For instance
3322 # both Tru64's cc and ICC support -MD to output dependencies as a
3323 # side effect of compilation, but ICC will put the dependencies in
3324 # the current directory while Tru64 will put them in the object
3325 # directory.
3326 mkdir sub
3327
3328 am_cv_CC_dependencies_compiler_type=none
3329 if test "$am_compiler_list" = ""; then
3330 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3331 fi
3332 for depmode in $am_compiler_list; do
3333 # Setup a source with many dependencies, because some compilers
3334 # like to wrap large dependency lists on column 80 (with \), and
3335 # we should not choose a depcomp mode which is confused by this.
3336 #
3337 # We need to recreate these files for each test, as the compiler may
3338 # overwrite some of them when testing with obscure command lines.
3339 # This happens at least with the AIX C compiler.
3340 : > sub/conftest.c
3341 for i in 1 2 3 4 5 6; do
3342 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3343 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3344 # Solaris 8's {/usr,}/bin/sh.
3345 touch sub/conftst$i.h
3346 done
3347 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3348
3349 case $depmode in
3350 nosideeffect)
3351 # after this tag, mechanisms are not by side-effect, so they'll
3352 # only be used when explicitly requested
3353 if test "x$enable_dependency_tracking" = xyes; then
3354 continue
3355 else
3356 break
3357 fi
3358 ;;
3359 none) break ;;
3360 esac
3361 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3362 # mode. It turns out that the SunPro C++ compiler does not properly
3363 # handle `-M -o', and we need to detect this.
3364 if depmode=$depmode \
3365 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3366 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3367 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3368 >/dev/null 2>conftest.err &&
3369 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3370 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3371 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3372 # icc doesn't choke on unknown options, it will just issue warnings
3373 # or remarks (even with -Werror). So we grep stderr for any message
3374 # that says an option was ignored or not supported.
3375 # When given -MP, icc 7.0 and 7.1 complain thusly:
3376 # icc: Command line warning: ignoring option '-M'; no argument required
3377 # The diagnosis changed in icc 8.0:
3378 # icc: Command line remark: option '-MP' not supported
3379 if (grep 'ignoring option' conftest.err ||
3380 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3381 am_cv_CC_dependencies_compiler_type=$depmode
3382 break
3383 fi
3384 fi
3385 done
3386
3387 cd ..
3388 rm -rf conftest.dir
3389else
3390 am_cv_CC_dependencies_compiler_type=none
3391fi
3392
3393fi
82eaf560 3394echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3395echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2fd61f51 3396CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3397
3398
3399
3400if
3401 test "x$enable_dependency_tracking" != xno \
3402 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3403 am__fastdepCC_TRUE=
3404 am__fastdepCC_FALSE='#'
3405else
3406 am__fastdepCC_TRUE='#'
3407 am__fastdepCC_FALSE=
3408fi
3409
4ee9c684 3410
4ee9c684 3411
4ee9c684 3412
d1191d66 3413# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
90973b19 3414if test "x$GCC" = "xyes"; then
8655d9cc 3415 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
09e5829f 3416 ## We like to use C99 routines when available. This makes sure that
3417 ## __STDC_VERSION__ is set such that libc includes make them available.
5ccd29b1 3418 AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
4d631442 3419 ## Compile the following tests with the same system header contents
3420 ## that we'll encounter when compiling our own source files.
3421 CFLAGS="-std=gnu99 $CFLAGS"
4ee9c684 3422fi
3423
09e5829f 3424
3425
5a037dbd 3426
ce1a737c 3427# Check for symbol versioning (copied from libssp).
82eaf560 3428echo "$as_me:$LINENO: checking whether symbol versioning is supported" >&5
3429echo $ECHO_N "checking whether symbol versioning is supported... $ECHO_C" >&6
ce1a737c 3430cat > conftest.map <<EOF
3431FOO_1.0 {
3432 global: *foo*; bar; local: *;
3433};
3434EOF
3435save_LDFLAGS="$LDFLAGS"
3436LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
3437
3438if test x$gcc_no_link = xyes; then
3439 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3440echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3441 { (exit 1); exit 1; }; }
3442fi
3443cat >conftest.$ac_ext <<_ACEOF
3444/* confdefs.h. */
3445_ACEOF
3446cat confdefs.h >>conftest.$ac_ext
3447cat >>conftest.$ac_ext <<_ACEOF
3448/* end confdefs.h. */
3449int foo;
3450int
3451main ()
3452{
3453
3454 ;
3455 return 0;
3456}
3457_ACEOF
3458rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 3459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3460 (eval $ac_link) 2>conftest.er1
ce1a737c 3461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 3466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try='test -s conftest$ac_exeext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
ce1a737c 3480 gfortran_use_symver=yes
3481else
3482 echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
3484
82eaf560 3485gfortran_use_symver=no
ce1a737c 3486fi
82eaf560 3487rm -f conftest.err conftest.$ac_objext \
ce1a737c 3488 conftest$ac_exeext conftest.$ac_ext
3489LDFLAGS="$save_LDFLAGS"
82eaf560 3490echo "$as_me:$LINENO: result: $gfortran_use_symver" >&5
3491echo "${ECHO_T}$gfortran_use_symver" >&6
ce1a737c 3492
3493
3494if test "x$gfortran_use_symver" = xyes; then
3495 LIBGFOR_USE_SYMVER_TRUE=
3496 LIBGFOR_USE_SYMVER_FALSE='#'
3497else
3498 LIBGFOR_USE_SYMVER_TRUE='#'
3499 LIBGFOR_USE_SYMVER_FALSE=
3500fi
3501
3502
90973b19 3503# Find other programs we need.
3504if test -n "$ac_tool_prefix"; then
3505 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3506set dummy ${ac_tool_prefix}as; ac_word=$2
82eaf560 3507echo "$as_me:$LINENO: checking for $ac_word" >&5
3508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
90973b19 3509if test "${ac_cv_prog_AS+set}" = set; then
4ee9c684 3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
90973b19 3512 if test -n "$AS"; then
3513 ac_cv_prog_AS="$AS" # Let the user override the test.
3514else
3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516for as_dir in $PATH
3517do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 3521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90973b19 3522 ac_cv_prog_AS="${ac_tool_prefix}as"
3523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2
4ee9c684 3525 fi
90973b19 3526done
3527done
4ee9c684 3528
90973b19 3529fi
3530fi
3531AS=$ac_cv_prog_AS
3532if test -n "$AS"; then
82eaf560 3533 echo "$as_me:$LINENO: result: $AS" >&5
3534echo "${ECHO_T}$AS" >&6
4ee9c684 3535else
82eaf560 3536 echo "$as_me:$LINENO: result: no" >&5
3537echo "${ECHO_T}no" >&6
4ee9c684 3538fi
3539
3540fi
90973b19 3541if test -z "$ac_cv_prog_AS"; then
3542 ac_ct_AS=$AS
3543 # Extract the first word of "as", so it can be a program name with args.
3544set dummy as; ac_word=$2
82eaf560 3545echo "$as_me:$LINENO: checking for $ac_word" >&5
3546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
90973b19 3547if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 if test -n "$ac_ct_AS"; then
3551 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3552else
3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554for as_dir in $PATH
3555do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 3559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90973b19 3560 ac_cv_prog_ac_ct_AS="as"
3561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3563 fi
3564done
3565done
4ee9c684 3566
90973b19 3567fi
3568fi
3569ac_ct_AS=$ac_cv_prog_ac_ct_AS
3570if test -n "$ac_ct_AS"; then
82eaf560 3571 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3572echo "${ECHO_T}$ac_ct_AS" >&6
4ee9c684 3573else
82eaf560 3574 echo "$as_me:$LINENO: result: no" >&5
3575echo "${ECHO_T}no" >&6
4ee9c684 3576fi
3577
82eaf560 3578 AS=$ac_ct_AS
90973b19 3579else
3580 AS="$ac_cv_prog_AS"
4ee9c684 3581fi
3582
4ee9c684 3583if test -n "$ac_tool_prefix"; then
90973b19 3584 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3585set dummy ${ac_tool_prefix}ar; ac_word=$2
82eaf560 3586echo "$as_me:$LINENO: checking for $ac_word" >&5
3587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
90973b19 3588if test "${ac_cv_prog_AR+set}" = set; then
4ee9c684 3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3590else
90973b19 3591 if test -n "$AR"; then
3592 ac_cv_prog_AR="$AR" # Let the user override the test.
4ee9c684 3593else
3594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595for as_dir in $PATH
3596do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 3600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90973b19 3601 ac_cv_prog_AR="${ac_tool_prefix}ar"
4ee9c684 3602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605done
3606done
3607
3608fi
3609fi
90973b19 3610AR=$ac_cv_prog_AR
3611if test -n "$AR"; then
82eaf560 3612 echo "$as_me:$LINENO: result: $AR" >&5
3613echo "${ECHO_T}$AR" >&6
4ee9c684 3614else
82eaf560 3615 echo "$as_me:$LINENO: result: no" >&5
3616echo "${ECHO_T}no" >&6
4ee9c684 3617fi
3618
4ee9c684 3619fi
90973b19 3620if test -z "$ac_cv_prog_AR"; then
3621 ac_ct_AR=$AR
3622 # Extract the first word of "ar", so it can be a program name with args.
3623set dummy ar; ac_word=$2
82eaf560 3624echo "$as_me:$LINENO: checking for $ac_word" >&5
3625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
90973b19 3626if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4ee9c684 3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3628else
90973b19 3629 if test -n "$ac_ct_AR"; then
3630 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4ee9c684 3631else
3632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH
3634do
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 3638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90973b19 3639 ac_cv_prog_ac_ct_AR="ar"
4ee9c684 3640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 break 2
3642 fi
3643done
3644done
3645
3646fi
3647fi
90973b19 3648ac_ct_AR=$ac_cv_prog_ac_ct_AR
3649if test -n "$ac_ct_AR"; then
82eaf560 3650 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3651echo "${ECHO_T}$ac_ct_AR" >&6
4ee9c684 3652else
82eaf560 3653 echo "$as_me:$LINENO: result: no" >&5
3654echo "${ECHO_T}no" >&6
4ee9c684 3655fi
3656
82eaf560 3657 AR=$ac_ct_AR
90973b19 3658else
3659 AR="$ac_cv_prog_AR"
4ee9c684 3660fi
3661
90973b19 3662if test -n "$ac_tool_prefix"; then
3663 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3664set dummy ${ac_tool_prefix}ranlib; ac_word=$2
82eaf560 3665echo "$as_me:$LINENO: checking for $ac_word" >&5
3666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
90973b19 3667if test "${ac_cv_prog_RANLIB+set}" = set; then
4ee9c684 3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
90973b19 3670 if test -n "$RANLIB"; then
3671 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4ee9c684 3672else
90973b19 3673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674for as_dir in $PATH
3675do
3676 IFS=$as_save_IFS
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 3679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90973b19 3680 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 break 2
3683 fi
3684done
3685done
4ee9c684 3686
4ee9c684 3687fi
90973b19 3688fi
3689RANLIB=$ac_cv_prog_RANLIB
3690if test -n "$RANLIB"; then
82eaf560 3691 echo "$as_me:$LINENO: result: $RANLIB" >&5
3692echo "${ECHO_T}$RANLIB" >&6
90973b19 3693else
82eaf560 3694 echo "$as_me:$LINENO: result: no" >&5
3695echo "${ECHO_T}no" >&6
90973b19 3696fi
4ee9c684 3697
3698fi
90973b19 3699if test -z "$ac_cv_prog_RANLIB"; then
3700 ac_ct_RANLIB=$RANLIB
3701 # Extract the first word of "ranlib", so it can be a program name with args.
3702set dummy ranlib; ac_word=$2
82eaf560 3703echo "$as_me:$LINENO: checking for $ac_word" >&5
3704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
90973b19 3705if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4ee9c684 3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707else
90973b19 3708 if test -n "$ac_ct_RANLIB"; then
3709 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4ee9c684 3710else
90973b19 3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 3717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90973b19 3718 ac_cv_prog_ac_ct_RANLIB="ranlib"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722done
3723done
4ee9c684 3724
82eaf560 3725 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
4ee9c684 3726fi
4ee9c684 3727fi
90973b19 3728ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3729if test -n "$ac_ct_RANLIB"; then
82eaf560 3730 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3731echo "${ECHO_T}$ac_ct_RANLIB" >&6
4ee9c684 3732else
82eaf560 3733 echo "$as_me:$LINENO: result: no" >&5
3734echo "${ECHO_T}no" >&6
4ee9c684 3735fi
3736
82eaf560 3737 RANLIB=$ac_ct_RANLIB
90973b19 3738else
3739 RANLIB="$ac_cv_prog_RANLIB"
4ee9c684 3740fi
90973b19 3741
82eaf560 3742echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3743echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3744set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3745if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4ee9c684 3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747else
90973b19 3748 cat >conftest.make <<\_ACEOF
3749all:
82eaf560 3750 @echo 'ac_maketemp="$(MAKE)"'
4ee9c684 3751_ACEOF
90973b19 3752# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
82eaf560 3753eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3754if test -n "$ac_maketemp"; then
3755 eval ac_cv_prog_make_${ac_make}_set=yes
3756else
3757 eval ac_cv_prog_make_${ac_make}_set=no
3758fi
90973b19 3759rm -f conftest.make
3760fi
82eaf560 3761if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3762 echo "$as_me:$LINENO: result: yes" >&5
3763echo "${ECHO_T}yes" >&6
90973b19 3764 SET_MAKE=
4ee9c684 3765else
82eaf560 3766 echo "$as_me:$LINENO: result: no" >&5
3767echo "${ECHO_T}no" >&6
90973b19 3768 SET_MAKE="MAKE=${MAKE-make}"
4ee9c684 3769fi
4ee9c684 3770
90973b19 3771# Find a good install program. We prefer a C program (faster),
3772# so one script is as good as another. But avoid the broken or
3773# incompatible versions:
3774# SysV /etc/install, /usr/sbin/install
3775# SunOS /usr/etc/install
3776# IRIX /sbin/install
3777# AIX /bin/install
3778# AmigaOS /C/install, which installs bootblocks on floppy discs
3779# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3780# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3781# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3782# OS/2's system install, which has a completely different semantic
3783# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 3784# Reject install programs that cannot install multiple files.
3785echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3786echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
90973b19 3787if test -z "$INSTALL"; then
3788if test "${ac_cv_path_install+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
4ee9c684 3790else
90973b19 3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792for as_dir in $PATH
3793do
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 # Account for people who put trailing slashes in PATH elements.
3797case $as_dir/ in
3798 ./ | .// | /cC/* | \
3799 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3800 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3801 /usr/ucb/* ) ;;
3802 *)
3803 # OSF1 and SCO ODT 3.0 have their own names for install.
3804 # Don't use installbsd from OSF since it installs stuff as root
3805 # by default.
3806 for ac_prog in ginstall scoinst install; do
3807 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 3808 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
90973b19 3809 if test $ac_prog = install &&
3810 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3811 # AIX install. It has an incompatible calling convention.
3812 :
3813 elif test $ac_prog = install &&
3814 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3815 # program-specific install script used by HP pwplus--don't use.
3816 :
3817 else
82eaf560 3818 rm -rf conftest.one conftest.two conftest.dir
3819 echo one > conftest.one
3820 echo two > conftest.two
3821 mkdir conftest.dir
3822 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3823 test -s conftest.one && test -s conftest.two &&
3824 test -s conftest.dir/conftest.one &&
3825 test -s conftest.dir/conftest.two
3826 then
3827 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3828 break 3
3829 fi
90973b19 3830 fi
3831 fi
3832 done
3833 done
3834 ;;
3835esac
4ee9c684 3836done
4ee9c684 3837
82eaf560 3838rm -rf conftest.one conftest.two conftest.dir
4ee9c684 3839
3840fi
90973b19 3841 if test "${ac_cv_path_install+set}" = set; then
3842 INSTALL=$ac_cv_path_install
4ee9c684 3843 else
ff4425cf 3844 # As a last resort, use the slow shell script. Don't cache a
3845 # value for INSTALL within a source directory, because that will
90973b19 3846 # break other packages using the cache if that directory is
ff4425cf 3847 # removed, or if the value is a relative name.
90973b19 3848 INSTALL=$ac_install_sh
4ee9c684 3849 fi
4ee9c684 3850fi
82eaf560 3851echo "$as_me:$LINENO: result: $INSTALL" >&5
3852echo "${ECHO_T}$INSTALL" >&6
4ee9c684 3853
90973b19 3854# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3855# It thinks the first close brace ends the variable substitution.
3856test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4ee9c684 3857
90973b19 3858test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4ee9c684 3859
90973b19 3860test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4ee9c684 3861
4ee9c684 3862
90973b19 3863# Configure libtool
3864#AC_MSG_NOTICE([====== Starting libtool configuration])
542f9784 3865enable_dlopen=yes
3866
3867
3868
00aafda4 3869case `pwd` in
3870 *\ * | *\ *)
3871 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3872echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3873esac
542f9784 3874
3875
542f9784 3876
00aafda4 3877macro_version='2.2.6'
3878macro_revision='1.3012'
542f9784 3879
3880
3881
3882
3883
3884
4ee9c684 3885
542f9784 3886
3887
3888
3889
3890
3891
00aafda4 3892ltmain="$ac_aux_dir/ltmain.sh"
542f9784 3893
82eaf560 3894echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3895echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3896if test "${lt_cv_path_SED+set}" = set; then
542f9784 3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
82eaf560 3899 # Loop through the user's path and test for sed and gsed.
3900# Then use that list of sed's as ones to test for truncation.
542f9784 3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
82eaf560 3906 for lt_ac_prog in sed gsed; do
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3909 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3910 fi
3911 done
542f9784 3912 done
3913done
ff4425cf 3914IFS=$as_save_IFS
82eaf560 3915lt_ac_max=0
3916lt_ac_count=0
3917# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3918# along with /bin/sed that truncates output.
3919for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3920 test ! -f $lt_ac_sed && continue
3921 cat /dev/null > conftest.in
3922 lt_ac_count=0
3923 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3924 # Check for GNU sed and select it if it is found.
3925 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3926 lt_cv_path_SED=$lt_ac_sed
3927 break
3928 fi
3929 while true; do
3930 cat conftest.in conftest.in >conftest.tmp
3931 mv conftest.tmp conftest.in
3932 cp conftest.in conftest.nl
3933 echo >>conftest.nl
3934 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3935 cmp -s conftest.out conftest.nl || break
3936 # 10000 chars as input seems more than enough
3937 test $lt_ac_count -gt 10 && break
3938 lt_ac_count=`expr $lt_ac_count + 1`
3939 if test $lt_ac_count -gt $lt_ac_max; then
3940 lt_ac_max=$lt_ac_count
3941 lt_cv_path_SED=$lt_ac_sed
ff4425cf 3942 fi
ff4425cf 3943 done
3944done
3945
ff4425cf 3946fi
3947
82eaf560 3948SED=$lt_cv_path_SED
ff4425cf 3949
82eaf560 3950echo "$as_me:$LINENO: result: $SED" >&5
3951echo "${ECHO_T}$SED" >&6
3952
3953test -z "$SED" && SED=sed
3954Xsed="$SED -e 1s/^X//"
542f9784 3955
3956
ff4425cf 3957
542f9784 3958
3959
3960
3961
3962
3963
3964
3965
82eaf560 3966echo "$as_me:$LINENO: checking for egrep" >&5
3967echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3968if test "${ac_cv_prog_egrep+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
542f9784 3970else
82eaf560 3971 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3972 then ac_cv_prog_egrep='grep -E'
3973 else ac_cv_prog_egrep='egrep'
3974 fi
542f9784 3975fi
82eaf560 3976echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3977echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3978 EGREP=$ac_cv_prog_egrep
542f9784 3979
3980
82eaf560 3981echo "$as_me:$LINENO: checking for fgrep" >&5
3982echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3983if test "${ac_cv_prog_fgrep+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985else
3986 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3987 then ac_cv_prog_fgrep='grep -F'
3988 else ac_cv_prog_fgrep='fgrep'
3989 fi
542f9784 3990fi
82eaf560 3991echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3992echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3993 FGREP=$ac_cv_prog_fgrep
542f9784 3994
3995
3996test -z "$GREP" && GREP=grep
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
82eaf560 4016# Check whether --with-gnu-ld or --without-gnu-ld was given.
90973b19 4017if test "${with_gnu_ld+set}" = set; then
82eaf560 4018 withval="$with_gnu_ld"
4019 test "$withval" = no || with_gnu_ld=yes
90973b19 4020else
4021 with_gnu_ld=no
82eaf560 4022fi;
90973b19 4023ac_prog=ld
4024if test "$GCC" = yes; then
4025 # Check if gcc -print-prog-name=ld gives a path.
82eaf560 4026 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4027echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
90973b19 4028 case $host in
4029 *-*-mingw*)
4030 # gcc leaves a trailing carriage return which upsets mingw
4031 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4032 *)
4033 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4034 esac
4035 case $ac_prog in
4036 # Accept absolute paths.
542f9784 4037 [\\/]* | ?:[\\/]*)
90973b19 4038 re_direlt='/[^/][^/]*/\.\./'
542f9784 4039 # Canonicalize the pathname of ld
4040 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4041 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4042 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
90973b19 4043 done
4044 test -z "$LD" && LD="$ac_prog"
4045 ;;
4046 "")
4047 # If it fails, then pretend we aren't using GCC.
4048 ac_prog=ld
4049 ;;
4050 *)
4051 # If it is relative, then search for the first ld in PATH.
4052 with_gnu_ld=unknown
4053 ;;
4054 esac
4055elif test "$with_gnu_ld" = yes; then
82eaf560 4056 echo "$as_me:$LINENO: checking for GNU ld" >&5
4057echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
90973b19 4058else
82eaf560 4059 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4060echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
90973b19 4061fi
4062if test "${lt_cv_path_LD+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064else
4065 if test -z "$LD"; then
542f9784 4066 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
90973b19 4067 for ac_dir in $PATH; do
542f9784 4068 IFS="$lt_save_ifs"
90973b19 4069 test -z "$ac_dir" && ac_dir=.
4070 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4071 lt_cv_path_LD="$ac_dir/$ac_prog"
4072 # Check to see if the program is GNU ld. I'd rather use --version,
542f9784 4073 # but apparently some variants of GNU ld only accept -v.
90973b19 4074 # Break only if it was the GNU/non-GNU ld that we prefer.
542f9784 4075 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4076 *GNU* | *'with BFD'*)
90973b19 4077 test "$with_gnu_ld" != no && break
542f9784 4078 ;;
4079 *)
90973b19 4080 test "$with_gnu_ld" != yes && break
542f9784 4081 ;;
4082 esac
90973b19 4083 fi
4084 done
542f9784 4085 IFS="$lt_save_ifs"
90973b19 4086else
4087 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4088fi
4089fi
4090
4091LD="$lt_cv_path_LD"
4092if test -n "$LD"; then
82eaf560 4093 echo "$as_me:$LINENO: result: $LD" >&5
4094echo "${ECHO_T}$LD" >&6
90973b19 4095else
82eaf560 4096 echo "$as_me:$LINENO: result: no" >&5
4097echo "${ECHO_T}no" >&6
90973b19 4098fi
4099test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4100echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4101 { (exit 1); exit 1; }; }
82eaf560 4102echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4103echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
90973b19 4104if test "${lt_cv_prog_gnu_ld+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106else
542f9784 4107 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4108case `$LD -v 2>&1 </dev/null` in
4109*GNU* | *'with BFD'*)
90973b19 4110 lt_cv_prog_gnu_ld=yes
542f9784 4111 ;;
4112*)
90973b19 4113 lt_cv_prog_gnu_ld=no
542f9784 4114 ;;
4115esac
90973b19 4116fi
82eaf560 4117echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4118echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
90973b19 4119with_gnu_ld=$lt_cv_prog_gnu_ld
4120
4121
90973b19 4122
542f9784 4123
4124
4125
4126
4127
4128
82eaf560 4129echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4130echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
90973b19 4131if test "${lt_cv_path_NM+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4133else
4134 if test -n "$NM"; then
4135 # Let the user override the test.
4136 lt_cv_path_NM="$NM"
4137else
542f9784 4138 lt_nm_to_check="${ac_tool_prefix}nm"
4139 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4140 lt_nm_to_check="$lt_nm_to_check nm"
4141 fi
4142 for lt_tmp_nm in $lt_nm_to_check; do
4143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4144 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4145 IFS="$lt_save_ifs"
4146 test -z "$ac_dir" && ac_dir=.
4147 tmp_nm="$ac_dir/$lt_tmp_nm"
4148 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4149 # Check to see if the nm accepts a BSD-compat flag.
4150 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4151 # nm: unknown option "B" ignored
4152 # Tru64's nm complains that /dev/null is an invalid object file
4153 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4154 */dev/null* | *'Invalid file or object type'*)
4155 lt_cv_path_NM="$tmp_nm -B"
4156 break
4157 ;;
4158 *)
4159 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4160 */dev/null*)
4161 lt_cv_path_NM="$tmp_nm -p"
4162 break
4163 ;;
4164 *)
4165 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4166 continue # so that we can try to find one that supports BSD flags
4167 ;;
4168 esac
4169 ;;
4170 esac
4171 fi
4172 done
4173 IFS="$lt_save_ifs"
4174 done
4175 : ${lt_cv_path_NM=no}
4176fi
4177fi
82eaf560 4178echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4179echo "${ECHO_T}$lt_cv_path_NM" >&6
542f9784 4180if test "$lt_cv_path_NM" != "no"; then
4181 NM="$lt_cv_path_NM"
4182else
4183 # Didn't find any BSD compatible name lister, look for dumpbin.
4184 if test -n "$ac_tool_prefix"; then
4185 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4186 do
4187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4188set dummy $ac_tool_prefix$ac_prog; ac_word=$2
82eaf560 4189echo "$as_me:$LINENO: checking for $ac_word" >&5
4190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
542f9784 4191if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193else
4194 if test -n "$DUMPBIN"; then
4195 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4196else
4197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 4203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 4204 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4207 fi
4208done
4209done
4210
4211fi
4212fi
4213DUMPBIN=$ac_cv_prog_DUMPBIN
4214if test -n "$DUMPBIN"; then
82eaf560 4215 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4216echo "${ECHO_T}$DUMPBIN" >&6
542f9784 4217else
82eaf560 4218 echo "$as_me:$LINENO: result: no" >&5
4219echo "${ECHO_T}no" >&6
542f9784 4220fi
4221
4222 test -n "$DUMPBIN" && break
4223 done
4224fi
4225if test -z "$DUMPBIN"; then
4226 ac_ct_DUMPBIN=$DUMPBIN
4227 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4228do
4229 # Extract the first word of "$ac_prog", so it can be a program name with args.
4230set dummy $ac_prog; ac_word=$2
82eaf560 4231echo "$as_me:$LINENO: checking for $ac_word" >&5
4232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
542f9784 4233if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4235else
4236 if test -n "$ac_ct_DUMPBIN"; then
4237 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4238else
4239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240for as_dir in $PATH
4241do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 4245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 4246 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4249 fi
4250done
4251done
4252
4253fi
4254fi
4255ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4256if test -n "$ac_ct_DUMPBIN"; then
82eaf560 4257 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4258echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
542f9784 4259else
82eaf560 4260 echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6
542f9784 4262fi
4263
4264 test -n "$ac_ct_DUMPBIN" && break
4265done
82eaf560 4266test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
542f9784 4267
82eaf560 4268 DUMPBIN=$ac_ct_DUMPBIN
90973b19 4269fi
542f9784 4270
4271
4272 if test "$DUMPBIN" != ":"; then
4273 NM="$DUMPBIN"
4274 fi
90973b19 4275fi
542f9784 4276test -z "$NM" && NM=nm
4277
4278
90973b19 4279
542f9784 4280
4281
4282
82eaf560 4283echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4284echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
542f9784 4285if test "${lt_cv_nm_interface+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287else
4288 lt_cv_nm_interface="BSD nm"
4289 echo "int some_variable = 0;" > conftest.$ac_ext
00aafda4 4290 (eval echo "\"\$as_me:4290: $ac_compile\"" >&5)
542f9784 4291 (eval "$ac_compile" 2>conftest.err)
4292 cat conftest.err >&5
00aafda4 4293 (eval echo "\"\$as_me:4293: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
542f9784 4294 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4295 cat conftest.err >&5
00aafda4 4296 (eval echo "\"\$as_me:4296: output\"" >&5)
542f9784 4297 cat conftest.out >&5
4298 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4299 lt_cv_nm_interface="MS dumpbin"
4300 fi
4301 rm -f conftest*
4302fi
82eaf560 4303echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4304echo "${ECHO_T}$lt_cv_nm_interface" >&6
90973b19 4305
82eaf560 4306echo "$as_me:$LINENO: checking whether ln -s works" >&5
4307echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
90973b19 4308LN_S=$as_ln_s
4309if test "$LN_S" = "ln -s"; then
82eaf560 4310 echo "$as_me:$LINENO: result: yes" >&5
4311echo "${ECHO_T}yes" >&6
90973b19 4312else
82eaf560 4313 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4314echo "${ECHO_T}no, using $LN_S" >&6
90973b19 4315fi
4316
542f9784 4317# find the maximum length of command line arguments
82eaf560 4318echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4319echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
542f9784 4320if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322else
4323 i=0
4324 teststring="ABCD"
4325
4326 case $build_os in
4327 msdosdjgpp*)
4328 # On DJGPP, this test can blow up pretty badly due to problems in libc
4329 # (any single argument exceeding 2000 bytes causes a buffer overrun
4330 # during glob expansion). Even if it were fixed, the result of this
4331 # check would be larger than it should be.
4332 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4333 ;;
4334
4335 gnu*)
4336 # Under GNU Hurd, this test is not required because there is
4337 # no limit to the length of command line arguments.
4338 # Libtool will interpret -1 as no limit whatsoever
4339 lt_cv_sys_max_cmd_len=-1;
4340 ;;
4341
00aafda4 4342 cygwin* | mingw* | cegcc*)
542f9784 4343 # On Win9x/ME, this test blows up -- it succeeds, but takes
4344 # about 5 minutes as the teststring grows exponentially.
4345 # Worse, since 9x/ME are not pre-emptively multitasking,
4346 # you end up with a "frozen" computer, even though with patience
4347 # the test eventually succeeds (with a max line length of 256k).
4348 # Instead, let's just punt: use the minimum linelength reported by
4349 # all of the supported platforms: 8192 (on NT/2K/XP).
4350 lt_cv_sys_max_cmd_len=8192;
4351 ;;
4352
4353 amigaos*)
4354 # On AmigaOS with pdksh, this test takes hours, literally.
4355 # So we just punt and use a minimum line length of 8192.
4356 lt_cv_sys_max_cmd_len=8192;
4357 ;;
4358
4359 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4360 # This has been around since 386BSD, at least. Likely further.
4361 if test -x /sbin/sysctl; then
4362 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4363 elif test -x /usr/sbin/sysctl; then
4364 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4365 else
4366 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4367 fi
4368 # And add a safety zone
4369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4371 ;;
4372
4373 interix*)
4374 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4375 lt_cv_sys_max_cmd_len=196608
4376 ;;
4377
4378 osf*)
4379 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4380 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4381 # nice to cause kernel panics so lets avoid the loop below.
4382 # First set a reasonable default.
4383 lt_cv_sys_max_cmd_len=16384
4384 #
4385 if test -x /sbin/sysconfig; then
4386 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4387 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4388 esac
4389 fi
4390 ;;
4391 sco3.2v5*)
4392 lt_cv_sys_max_cmd_len=102400
4393 ;;
4394 sysv5* | sco5v6* | sysv4.2uw2*)
4395 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4396 if test -n "$kargmax"; then
4397 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4398 else
4399 lt_cv_sys_max_cmd_len=32768
4400 fi
4401 ;;
4402 *)
00aafda4 4403 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4404 if test -n "$lt_cv_sys_max_cmd_len"; then
07c46636 4405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4407 else
4408 # Make teststring a little bigger before we do anything with it.
4409 # a 1K string should be a reasonable start.
4410 for i in 1 2 3 4 5 6 7 8 ; do
4411 teststring=$teststring$teststring
4412 done
4413 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4414 # If test is not a shell built-in, we'll probably end up computing a
4415 # maximum length that is only half of the actual maximum length, but
4416 # we can't tell.
4417 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4418 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4419 test $i != 17 # 1/2 MB should be enough
4420 do
4421 i=`expr $i + 1`
4422 teststring=$teststring$teststring
4423 done
4424 # Only check the string length outside the loop.
4425 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4426 teststring=
4427 # Add a significant safety factor because C++ compilers can tack on
4428 # massive amounts of additional arguments before passing them to the
4429 # linker. It appears as though 1/2 is a usable value.
4430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4431 fi
542f9784 4432 ;;
4433 esac
4434
4435fi
4436
4437if test -n $lt_cv_sys_max_cmd_len ; then
82eaf560 4438 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4439echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
542f9784 4440else
82eaf560 4441 echo "$as_me:$LINENO: result: none" >&5
4442echo "${ECHO_T}none" >&6
542f9784 4443fi
4444max_cmd_len=$lt_cv_sys_max_cmd_len
4445
4446
4447
4448
4449
4450
542f9784 4451: ${CP="cp -f"}
4452: ${MV="mv -f"}
4453: ${RM="rm -f"}
4454
82eaf560 4455echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4456echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
542f9784 4457# Try some XSI features
4458xsi_shell=no
4459( _lt_dummy="a/b/c"
4460 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
00aafda4 4461 = c,a/b,, \
4462 && eval 'test $(( 1 + 1 )) -eq 2 \
4463 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
542f9784 4464 && xsi_shell=yes
82eaf560 4465echo "$as_me:$LINENO: result: $xsi_shell" >&5
4466echo "${ECHO_T}$xsi_shell" >&6
542f9784 4467
4468
82eaf560 4469echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4470echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
542f9784 4471lt_shell_append=no
4472( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4473 >/dev/null 2>&1 \
4474 && lt_shell_append=yes
82eaf560 4475echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4476echo "${ECHO_T}$lt_shell_append" >&6
542f9784 4477
4478
4479if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4480 lt_unset=unset
4481else
4482 lt_unset=false
4483fi
4484
4485
4486
4487
4488
4489# test EBCDIC or ASCII
4490case `echo X|tr X '\101'` in
4491 A) # ASCII based system
4492 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4493 lt_SP2NL='tr \040 \012'
4494 lt_NL2SP='tr \015\012 \040\040'
4495 ;;
4496 *) # EBCDIC based system
4497 lt_SP2NL='tr \100 \n'
4498 lt_NL2SP='tr \r\n \100\100'
4499 ;;
4500esac
4501
4502
4503
4504
4505
4506
4507
4508
4509
82eaf560 4510echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4511echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
542f9784 4512if test "${lt_cv_ld_reload_flag+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514else
4515 lt_cv_ld_reload_flag='-r'
4516fi
82eaf560 4517echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4518echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
542f9784 4519reload_flag=$lt_cv_ld_reload_flag
4520case $reload_flag in
4521"" | " "*) ;;
4522*) reload_flag=" $reload_flag" ;;
4523esac
4524reload_cmds='$LD$reload_flag -o $output$reload_objs'
4525case $host_os in
4526 darwin*)
4527 if test "$GCC" = yes; then
4528 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4529 else
4530 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4531 fi
4532 ;;
4533esac
4534
4535
4536
4537
4538
4539
4540
4541
4542
00aafda4 4543if test -n "$ac_tool_prefix"; then
4544 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4545set dummy ${ac_tool_prefix}objdump; ac_word=$2
4546echo "$as_me:$LINENO: checking for $ac_word" >&5
4547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4548if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550else
4551 if test -n "$OBJDUMP"; then
4552 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565done
4566done
4567
4568fi
4569fi
4570OBJDUMP=$ac_cv_prog_OBJDUMP
4571if test -n "$OBJDUMP"; then
4572 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4573echo "${ECHO_T}$OBJDUMP" >&6
4574else
4575 echo "$as_me:$LINENO: result: no" >&5
4576echo "${ECHO_T}no" >&6
4577fi
4578
4579fi
4580if test -z "$ac_cv_prog_OBJDUMP"; then
4581 ac_ct_OBJDUMP=$OBJDUMP
4582 # Extract the first word of "objdump", so it can be a program name with args.
4583set dummy objdump; ac_word=$2
4584echo "$as_me:$LINENO: checking for $ac_word" >&5
4585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4586if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588else
4589 if test -n "$ac_ct_OBJDUMP"; then
4590 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4591else
4592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593for as_dir in $PATH
4594do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603done
4604done
4605
4606 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4607fi
4608fi
4609ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4610if test -n "$ac_ct_OBJDUMP"; then
4611 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4612echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4613else
4614 echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6
4616fi
4617
4618 OBJDUMP=$ac_ct_OBJDUMP
4619else
4620 OBJDUMP="$ac_cv_prog_OBJDUMP"
4621fi
4622
4623test -z "$OBJDUMP" && OBJDUMP=objdump
4624
4625
4626
4627
4628
4629
4630
4631
542f9784 4632
82eaf560 4633echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4634echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
90973b19 4635if test "${lt_cv_deplibs_check_method+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637else
4638 lt_cv_file_magic_cmd='$MAGIC_CMD'
4639lt_cv_file_magic_test_file=
4640lt_cv_deplibs_check_method='unknown'
4641# Need to set the preceding variable on all platforms that support
4642# interlibrary dependencies.
4643# 'none' -- dependencies not supported.
4644# `unknown' -- same as none, but documents that we really don't know.
4645# 'pass_all' -- all dependencies passed with no checks.
4646# 'test_compile' -- check by making test program.
542f9784 4647# 'file_magic [[regex]]' -- check by looking for files in library path
4648# which responds to the $file_magic_cmd with a given extended regex.
90973b19 4649# If you have `file' or equivalent on your system and you're not sure
4650# whether `pass_all' will *always* work, you probably want this one.
4651
4652case $host_os in
21e07d2f 4653aix[4-9]*)
90973b19 4654 lt_cv_deplibs_check_method=pass_all
4655 ;;
4656
4657beos*)
4658 lt_cv_deplibs_check_method=pass_all
4659 ;;
4660
542f9784 4661bsdi[45]*)
90973b19 4662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4663 lt_cv_file_magic_cmd='/usr/bin/file -L'
4664 lt_cv_file_magic_test_file=/shlib/libc.so
4665 ;;
4666
542f9784 4667cygwin*)
4668 # func_win32_libid is a shell function defined in ltmain.sh
4669 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4670 lt_cv_file_magic_cmd='func_win32_libid'
4671 ;;
4672
4673mingw* | pw32*)
4674 # Base MSYS/MinGW do not provide the 'file' command needed by
4675 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4676 # unless we find 'file', for example because we are cross-compiling.
4677 if ( file / ) >/dev/null 2>&1; then
4678 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4679 lt_cv_file_magic_cmd='func_win32_libid'
4680 else
4681 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4682 lt_cv_file_magic_cmd='$OBJDUMP -f'
4683 fi
90973b19 4684 ;;
4685
00aafda4 4686cegcc)
4687 # use the weaker test based on 'objdump'. See mingw*.
4688 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4689 lt_cv_file_magic_cmd='$OBJDUMP -f'
4690 ;;
4691
90973b19 4692darwin* | rhapsody*)
90973b19 4693 lt_cv_deplibs_check_method=pass_all
4694 ;;
4695
542f9784 4696freebsd* | dragonfly*)
4697 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
90973b19 4698 case $host_cpu in
4699 i*86 )
4700 # Not sure whether the presence of OpenBSD here was a mistake.
4701 # Let's accept both of them until this is cleared up.
542f9784 4702 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
90973b19 4703 lt_cv_file_magic_cmd=/usr/bin/file
4704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4705 ;;
4706 esac
4707 else
4708 lt_cv_deplibs_check_method=pass_all
4709 fi
4710 ;;
4711
4712gnu*)
4713 lt_cv_deplibs_check_method=pass_all
4714 ;;
4715
542f9784 4716hpux10.20* | hpux11*)
4717 lt_cv_file_magic_cmd=/usr/bin/file
90973b19 4718 case $host_cpu in
90973b19 4719 ia64*)
4720 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
90973b19 4721 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4722 ;;
542f9784 4723 hppa*64*)
4724 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]'
4725 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
90973b19 4726 ;;
4727 *)
542f9784 4728 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4729 lt_cv_file_magic_test_file=/usr/lib/libc.sl
90973b19 4730 ;;
4731 esac
542f9784 4732 ;;
4733
4734interix[3-9]*)
4735 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4737 ;;
4738
4739irix5* | irix6* | nonstopux*)
4740 case $LD in
4741 *-32|*"-32 ") libmagic=32-bit;;
4742 *-n32|*"-n32 ") libmagic=N32;;
4743 *-64|*"-64 ") libmagic=64-bit;;
4744 *) libmagic=never-match;;
4745 esac
90973b19 4746 lt_cv_deplibs_check_method=pass_all
4747 ;;
4748
4749# This must be Linux ELF.
542f9784 4750linux* | k*bsd*-gnu)
7f93fe7a 4751 lt_cv_deplibs_check_method=pass_all
90973b19 4752 ;;
4753
542f9784 4754netbsd*)
4755 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
90973b19 4757 else
542f9784 4758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
90973b19 4759 fi
4760 ;;
4761
542f9784 4762newos6*)
90973b19 4763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4764 lt_cv_file_magic_cmd=/usr/bin/file
4765 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4766 ;;
4767
542f9784 4768*nto* | *qnx*)
4769 lt_cv_deplibs_check_method=pass_all
4770 ;;
4771
4772openbsd*)
4773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4775 else
4776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4777 fi
4778 ;;
4779
90973b19 4780osf3* | osf4* | osf5*)
90973b19 4781 lt_cv_deplibs_check_method=pass_all
4782 ;;
4783
542f9784 4784rdos*)
90973b19 4785 lt_cv_deplibs_check_method=pass_all
4786 ;;
4787
4788solaris*)
4789 lt_cv_deplibs_check_method=pass_all
90973b19 4790 ;;
4791
542f9784 4792sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
90973b19 4793 lt_cv_deplibs_check_method=pass_all
4794 ;;
4795
542f9784 4796sysv4 | sysv4.3*)
90973b19 4797 case $host_vendor in
90973b19 4798 motorola)
4799 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]'
4800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4801 ;;
542f9784 4802 ncr)
4803 lt_cv_deplibs_check_method=pass_all
4804 ;;
4805 sequent)
4806 lt_cv_file_magic_cmd='/bin/file'
4807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4808 ;;
4809 sni)
4810 lt_cv_file_magic_cmd='/bin/file'
4811 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4812 lt_cv_file_magic_test_file=/lib/libc.so
4813 ;;
4814 siemens)
4815 lt_cv_deplibs_check_method=pass_all
4816 ;;
4817 pc)
4818 lt_cv_deplibs_check_method=pass_all
4819 ;;
90973b19 4820 esac
4821 ;;
542f9784 4822
4823tpf*)
4824 lt_cv_deplibs_check_method=pass_all
4825 ;;
90973b19 4826esac
4827
4828fi
82eaf560 4829echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4830echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
90973b19 4831file_magic_cmd=$lt_cv_file_magic_cmd
4832deplibs_check_method=$lt_cv_deplibs_check_method
542f9784 4833test -z "$deplibs_check_method" && deplibs_check_method=unknown
90973b19 4834
4835
4836
4837
90973b19 4838
90973b19 4839
90973b19 4840
90973b19 4841
4ee9c684 4842
4ee9c684 4843
4ee9c684 4844
4ee9c684 4845
90973b19 4846if test -n "$ac_tool_prefix"; then
542f9784 4847 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4848set dummy ${ac_tool_prefix}ar; ac_word=$2
82eaf560 4849echo "$as_me:$LINENO: checking for $ac_word" >&5
4850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
542f9784 4851if test "${ac_cv_prog_AR+set}" = set; then
90973b19 4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4ee9c684 4853else
542f9784 4854 if test -n "$AR"; then
4855 ac_cv_prog_AR="$AR" # Let the user override the test.
90973b19 4856else
4857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 4863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 4864 ac_cv_prog_AR="${ac_tool_prefix}ar"
90973b19 4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4867 fi
4868done
4869done
4ee9c684 4870
90973b19 4871fi
4872fi
542f9784 4873AR=$ac_cv_prog_AR
4874if test -n "$AR"; then
82eaf560 4875 echo "$as_me:$LINENO: result: $AR" >&5
4876echo "${ECHO_T}$AR" >&6
90973b19 4877else
82eaf560 4878 echo "$as_me:$LINENO: result: no" >&5
4879echo "${ECHO_T}no" >&6
4ee9c684 4880fi
4881
90973b19 4882fi
542f9784 4883if test -z "$ac_cv_prog_AR"; then
4884 ac_ct_AR=$AR
4885 # Extract the first word of "ar", so it can be a program name with args.
4886set dummy ar; ac_word=$2
82eaf560 4887echo "$as_me:$LINENO: checking for $ac_word" >&5
4888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
542f9784 4889if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
90973b19 4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4891else
542f9784 4892 if test -n "$ac_ct_AR"; then
4893 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
90973b19 4894else
4895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in $PATH
4897do
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 4901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 4902 ac_cv_prog_ac_ct_AR="ar"
90973b19 4903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 break 2
4905 fi
4906done
4907done
4ee9c684 4908
82eaf560 4909 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
90973b19 4910fi
4911fi
542f9784 4912ac_ct_AR=$ac_cv_prog_ac_ct_AR
4913if test -n "$ac_ct_AR"; then
82eaf560 4914 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4915echo "${ECHO_T}$ac_ct_AR" >&6
4ee9c684 4916else
82eaf560 4917 echo "$as_me:$LINENO: result: no" >&5
4918echo "${ECHO_T}no" >&6
4ee9c684 4919fi
4ee9c684 4920
82eaf560 4921 AR=$ac_ct_AR
90973b19 4922else
542f9784 4923 AR="$ac_cv_prog_AR"
4ee9c684 4924fi
4925
542f9784 4926test -z "$AR" && AR=ar
4927test -z "$AR_FLAGS" && AR_FLAGS=cru
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
90973b19 4939if test -n "$ac_tool_prefix"; then
4940 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4941set dummy ${ac_tool_prefix}strip; ac_word=$2
82eaf560 4942echo "$as_me:$LINENO: checking for $ac_word" >&5
4943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
90973b19 4944if test "${ac_cv_prog_STRIP+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4ee9c684 4946else
90973b19 4947 if test -n "$STRIP"; then
4948 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4949else
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 4956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90973b19 4957 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4960 fi
4961done
4962done
4ee9c684 4963
90973b19 4964fi
4965fi
4966STRIP=$ac_cv_prog_STRIP
4967if test -n "$STRIP"; then
82eaf560 4968 echo "$as_me:$LINENO: result: $STRIP" >&5
4969echo "${ECHO_T}$STRIP" >&6
4ee9c684 4970else
82eaf560 4971 echo "$as_me:$LINENO: result: no" >&5
4972echo "${ECHO_T}no" >&6
90973b19 4973fi
4ee9c684 4974
4ee9c684 4975fi
90973b19 4976if test -z "$ac_cv_prog_STRIP"; then
4977 ac_ct_STRIP=$STRIP
4978 # Extract the first word of "strip", so it can be a program name with args.
4979set dummy strip; ac_word=$2
82eaf560 4980echo "$as_me:$LINENO: checking for $ac_word" >&5
4981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
90973b19 4982if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984else
4985 if test -n "$ac_ct_STRIP"; then
4986 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4987else
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 4994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90973b19 4995 ac_cv_prog_ac_ct_STRIP="strip"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999done
5000done
5001
82eaf560 5002 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4ee9c684 5003fi
5004fi
90973b19 5005ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5006if test -n "$ac_ct_STRIP"; then
82eaf560 5007 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5008echo "${ECHO_T}$ac_ct_STRIP" >&6
90973b19 5009else
82eaf560 5010 echo "$as_me:$LINENO: result: no" >&5
5011echo "${ECHO_T}no" >&6
4ee9c684 5012fi
4ee9c684 5013
82eaf560 5014 STRIP=$ac_ct_STRIP
90973b19 5015else
5016 STRIP="$ac_cv_prog_STRIP"
4ee9c684 5017fi
5018
542f9784 5019test -z "$STRIP" && STRIP=:
4ee9c684 5020
5021
5022
5023
5024
5025
542f9784 5026if test -n "$ac_tool_prefix"; then
5027 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5028set dummy ${ac_tool_prefix}ranlib; ac_word=$2
82eaf560 5029echo "$as_me:$LINENO: checking for $ac_word" >&5
5030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
542f9784 5031if test "${ac_cv_prog_RANLIB+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
4ee9c684 5033else
542f9784 5034 if test -n "$RANLIB"; then
5035 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5036else
5037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH
5039do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 5043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 5044 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5047 fi
5048done
5049done
5050
5051fi
5052fi
5053RANLIB=$ac_cv_prog_RANLIB
5054if test -n "$RANLIB"; then
82eaf560 5055 echo "$as_me:$LINENO: result: $RANLIB" >&5
5056echo "${ECHO_T}$RANLIB" >&6
542f9784 5057else
82eaf560 5058 echo "$as_me:$LINENO: result: no" >&5
5059echo "${ECHO_T}no" >&6
542f9784 5060fi
5061
5062fi
5063if test -z "$ac_cv_prog_RANLIB"; then
5064 ac_ct_RANLIB=$RANLIB
5065 # Extract the first word of "ranlib", so it can be a program name with args.
5066set dummy ranlib; ac_word=$2
82eaf560 5067echo "$as_me:$LINENO: checking for $ac_word" >&5
5068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
542f9784 5069if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071else
5072 if test -n "$ac_ct_RANLIB"; then
5073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5074else
5075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 5081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 5082 ac_cv_prog_ac_ct_RANLIB="ranlib"
5083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5085 fi
5086done
5087done
5088
82eaf560 5089 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
542f9784 5090fi
5091fi
5092ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5093if test -n "$ac_ct_RANLIB"; then
82eaf560 5094 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5095echo "${ECHO_T}$ac_ct_RANLIB" >&6
542f9784 5096else
82eaf560 5097 echo "$as_me:$LINENO: result: no" >&5
5098echo "${ECHO_T}no" >&6
542f9784 5099fi
5100
82eaf560 5101 RANLIB=$ac_ct_RANLIB
542f9784 5102else
5103 RANLIB="$ac_cv_prog_RANLIB"
5104fi
5105
5106test -z "$RANLIB" && RANLIB=:
5107
5108
5109
5110
5111
5112
5113# Determine commands to create old-style static archives.
00aafda4 5114old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
542f9784 5115old_postinstall_cmds='chmod 644 $oldlib'
5116old_postuninstall_cmds=
5117
5118if test -n "$RANLIB"; then
5119 case $host_os in
5120 openbsd*)
5121 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5122 ;;
5123 *)
5124 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5125 ;;
5126 esac
5127 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5128fi
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163# If no C compiler was specified, use CC.
5164LTCC=${LTCC-"$CC"}
5165
5166# If no C compiler flags were specified, use CFLAGS.
5167LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5168
5169# Allow CC to be a program name with arguments.
5170compiler=$CC
5171
5172
5173# Check for command to grab the raw symbol name followed by C symbol from nm.
82eaf560 5174echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5175echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
542f9784 5176if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178else
5179
5180# These are sane defaults that work on at least a few old systems.
5181# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5182
5183# Character class describing NM global symbol codes.
5184symcode='[BCDEGRST]'
5185
5186# Regexp to match symbols that can be accessed directly from C.
5187sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5188
5189# Define system-specific variables.
5190case $host_os in
5191aix*)
5192 symcode='[BCDT]'
5193 ;;
00aafda4 5194cygwin* | mingw* | pw32* | cegcc*)
542f9784 5195 symcode='[ABCDGISTW]'
5196 ;;
5197hpux*)
5198 if test "$host_cpu" = ia64; then
5199 symcode='[ABCDEGRST]'
5200 fi
5201 ;;
5202irix* | nonstopux*)
5203 symcode='[BCDEGRST]'
5204 ;;
5205osf*)
5206 symcode='[BCDEGQRST]'
5207 ;;
5208solaris*)
5209 symcode='[BDRT]'
5210 ;;
5211sco3.2v5*)
5212 symcode='[DT]'
5213 ;;
5214sysv4.2uw2*)
5215 symcode='[DT]'
5216 ;;
5217sysv5* | sco5v6* | unixware* | OpenUNIX*)
5218 symcode='[ABDT]'
5219 ;;
5220sysv4)
5221 symcode='[DFNSTU]'
5222 ;;
5223esac
5224
5225# If we're using GNU nm, then use its standard symbol codes.
5226case `$NM -V 2>&1` in
5227*GNU* | *'with BFD'*)
5228 symcode='[ABCDGIRSTW]' ;;
5229esac
5230
5231# Transform an extracted symbol line into a proper C declaration.
5232# Some systems (esp. on ia64) link data and code symbols differently,
5233# so use this general approach.
5234lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5235
5236# Transform an extracted symbol line into symbol name and symbol address
5237lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
00aafda4 5238lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
542f9784 5239
5240# Handle CRLF in mingw tool chain
5241opt_cr=
5242case $build_os in
5243mingw*)
5244 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5245 ;;
5246esac
5247
5248# Try without a prefix underscore, then with it.
5249for ac_symprfx in "" "_"; do
5250
5251 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5252 symxfrm="\\1 $ac_symprfx\\2 \\2"
5253
5254 # Write the raw and C identifiers.
5255 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5256 # Fake it for dumpbin and say T for any non-static function
5257 # and D for any global variable.
5258 # Also find C++ and __fastcall symbols from MSVC++,
5259 # which start with @ or ?.
5260 lt_cv_sys_global_symbol_pipe="$AWK '"\
5261" {last_section=section; section=\$ 3};"\
5262" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5263" \$ 0!~/External *\|/{next};"\
5264" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5265" {if(hide[section]) next};"\
5266" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5267" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5268" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5269" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5270" ' prfx=^$ac_symprfx"
5271 else
5272 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5273 fi
5274
5275 # Check to see that the pipe works correctly.
5276 pipe_works=no
5277
5278 rm -f conftest*
5279 cat > conftest.$ac_ext <<_LT_EOF
5280#ifdef __cplusplus
5281extern "C" {
5282#endif
5283char nm_test_var;
5284void nm_test_func(void);
5285void nm_test_func(void){}
5286#ifdef __cplusplus
5287}
5288#endif
5289int main(){nm_test_var='a';nm_test_func();return(0);}
5290_LT_EOF
5291
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; then
5297 # Now try to grab the symbols.
5298 nlist=conftest.nm
5299 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5300 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } && test -s "$nlist"; then
5304 # Try sorting and uniquifying the output.
5305 if sort "$nlist" | uniq > "$nlist"T; then
5306 mv -f "$nlist"T "$nlist"
5307 else
5308 rm -f "$nlist"T
5309 fi
5310
5311 # Make sure that we snagged all the symbols we need.
5312 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5313 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5314 cat <<_LT_EOF > conftest.$ac_ext
5315#ifdef __cplusplus
5316extern "C" {
5317#endif
5318
5319_LT_EOF
5320 # Now generate the symbol file.
5321 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5322
5323 cat <<_LT_EOF >> conftest.$ac_ext
5324
5325/* The mapping between symbol names and symbols. */
5326const struct {
5327 const char *name;
5328 void *address;
5329}
5330lt__PROGRAM__LTX_preloaded_symbols[] =
5331{
5332 { "@PROGRAM@", (void *) 0 },
5333_LT_EOF
5334 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5335 cat <<\_LT_EOF >> conftest.$ac_ext
5336 {0, (void *) 0}
5337};
5338
5339/* This works around a problem in FreeBSD linker */
5340#ifdef FREEBSD_WORKAROUND
5341static const void *lt_preloaded_setup() {
5342 return lt__PROGRAM__LTX_preloaded_symbols;
5343}
5344#endif
5345
5346#ifdef __cplusplus
5347}
5348#endif
5349_LT_EOF
5350 # Now try linking the two files.
5351 mv conftest.$ac_objext conftstm.$ac_objext
5352 lt_save_LIBS="$LIBS"
5353 lt_save_CFLAGS="$CFLAGS"
5354 LIBS="conftstm.$ac_objext"
5355 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5357 (eval $ac_link) 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5361 pipe_works=yes
5362 fi
5363 LIBS="$lt_save_LIBS"
5364 CFLAGS="$lt_save_CFLAGS"
5365 else
5366 echo "cannot find nm_test_func in $nlist" >&5
5367 fi
5368 else
5369 echo "cannot find nm_test_var in $nlist" >&5
5370 fi
5371 else
5372 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5373 fi
5374 else
5375 echo "$progname: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5377 fi
00aafda4 5378 rm -rf conftest* conftst*
542f9784 5379
5380 # Do not use the global_symbol_pipe unless it works.
5381 if test "$pipe_works" = yes; then
5382 break
5383 else
5384 lt_cv_sys_global_symbol_pipe=
5385 fi
5386done
5387
5388fi
5389
5390if test -z "$lt_cv_sys_global_symbol_pipe"; then
5391 lt_cv_sys_global_symbol_to_cdecl=
5392fi
5393if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
82eaf560 5394 echo "$as_me:$LINENO: result: failed" >&5
5395echo "${ECHO_T}failed" >&6
542f9784 5396else
82eaf560 5397 echo "$as_me:$LINENO: result: ok" >&5
5398echo "${ECHO_T}ok" >&6
542f9784 5399fi
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
00aafda4 5415
5416
5417
5418
5419
542f9784 5420
5421
82eaf560 5422# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
542f9784 5423if test "${enable_libtool_lock+set}" = set; then
82eaf560 5424 enableval="$enable_libtool_lock"
542f9784 5425
82eaf560 5426fi;
542f9784 5427test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4ee9c684 5428
90973b19 5429# Some flags need to be propagated to the compiler or linker for good
5430# libtool support.
5431case $host in
542f9784 5432ia64-*-hpux*)
90973b19 5433 # Find out which ABI we are using.
542f9784 5434 echo 'int i;' > conftest.$ac_ext
90973b19 5435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5436 (eval $ac_compile) 2>&5
4ee9c684 5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90973b19 5439 (exit $ac_status); }; then
90973b19 5440 case `/usr/bin/file conftest.$ac_objext` in
542f9784 5441 *ELF-32*)
5442 HPUX_IA64_MODE="32"
5443 ;;
5444 *ELF-64*)
5445 HPUX_IA64_MODE="64"
5446 ;;
90973b19 5447 esac
90973b19 5448 fi
5449 rm -rf conftest*
5450 ;;
542f9784 5451*-*-irix6*)
90973b19 5452 # Find out which ABI we are using.
00aafda4 5453 echo '#line 5453 "configure"' > conftest.$ac_ext
90973b19 5454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5455 (eval $ac_compile) 2>&5
4ee9c684 5456 ac_status=$?
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90973b19 5458 (exit $ac_status); }; then
542f9784 5459 if test "$lt_cv_prog_gnu_ld" = yes; then
5460 case `/usr/bin/file conftest.$ac_objext` in
5461 *32-bit*)
5462 LD="${LD-ld} -melf32bsmip"
5463 ;;
5464 *N32*)
5465 LD="${LD-ld} -melf32bmipn32"
5466 ;;
5467 *64-bit*)
5468 LD="${LD-ld} -melf64bmip"
5469 ;;
5470 esac
5471 else
5472 case `/usr/bin/file conftest.$ac_objext` in
5473 *32-bit*)
5474 LD="${LD-ld} -32"
5475 ;;
5476 *N32*)
5477 LD="${LD-ld} -n32"
5478 ;;
5479 *64-bit*)
5480 LD="${LD-ld} -64"
5481 ;;
5482 esac
5483 fi
90973b19 5484 fi
5485 rm -rf conftest*
5486 ;;
4ee9c684 5487
542f9784 5488x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5489s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
90973b19 5490 # Find out which ABI we are using.
5491 echo 'int i;' > conftest.$ac_ext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5493 (eval $ac_compile) 2>&5
4ee9c684 5494 ac_status=$?
4ee9c684 5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90973b19 5496 (exit $ac_status); }; then
542f9784 5497 case `/usr/bin/file conftest.o` in
5498 *32-bit*)
5499 case $host in
5500 x86_64-*kfreebsd*-gnu)
5501 LD="${LD-ld} -m elf_i386_fbsd"
5502 ;;
5503 x86_64-*linux*)
5504 LD="${LD-ld} -m elf_i386"
5505 ;;
5506 ppc64-*linux*|powerpc64-*linux*)
5507 LD="${LD-ld} -m elf32ppclinux"
5508 ;;
5509 s390x-*linux*)
5510 LD="${LD-ld} -m elf_s390"
5511 ;;
5512 sparc64-*linux*)
5513 LD="${LD-ld} -m elf32_sparc"
5514 ;;
5515 esac
5516 ;;
5517 *64-bit*)
5518 case $host in
5519 x86_64-*kfreebsd*-gnu)
5520 LD="${LD-ld} -m elf_x86_64_fbsd"
5521 ;;
5522 x86_64-*linux*)
5523 LD="${LD-ld} -m elf_x86_64"
5524 ;;
5525 ppc*-*linux*|powerpc*-*linux*)
5526 LD="${LD-ld} -m elf64ppc"
5527 ;;
5528 s390*-*linux*|s390*-*tpf*)
5529 LD="${LD-ld} -m elf64_s390"
5530 ;;
5531 sparc*-*linux*)
5532 LD="${LD-ld} -m elf64_sparc"
5533 ;;
5534 esac
5535 ;;
90973b19 5536 esac
4ee9c684 5537 fi
90973b19 5538 rm -rf conftest*
5539 ;;
4ee9c684 5540
90973b19 5541*-*-sco3.2v5*)
5542 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5543 SAVE_CFLAGS="$CFLAGS"
5544 CFLAGS="$CFLAGS -belf"
82eaf560 5545 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5546echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
90973b19 5547if test "${lt_cv_cc_needs_belf+set}" = set; then
4ee9c684 5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549else
542f9784 5550 ac_ext=c
90973b19 5551ac_cpp='$CPP $CPPFLAGS'
5552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ee9c684 5555
b52ee437 5556 if test x$gcc_no_link = xyes; then
5557 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5558echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5559 { (exit 1); exit 1; }; }
5560fi
5561cat >conftest.$ac_ext <<_ACEOF
4ee9c684 5562/* confdefs.h. */
5563_ACEOF
5564cat confdefs.h >>conftest.$ac_ext
5565cat >>conftest.$ac_ext <<_ACEOF
5566/* end confdefs.h. */
4ee9c684 5567
5568int
5569main ()
5570{
90973b19 5571
4ee9c684 5572 ;
5573 return 0;
5574}
5575_ACEOF
5576rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 5577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5578 (eval $ac_link) 2>conftest.er1
4ee9c684 5579 ac_status=$?
5580 grep -v '^ *+' conftest.er1 >conftest.err
5581 rm -f conftest.er1
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 5584 (exit $ac_status); } &&
5585 { ac_try='test -z "$ac_c_werror_flag"
5586 || test ! -s conftest.err'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 (eval $ac_try) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; } &&
5592 { ac_try='test -s conftest$ac_exeext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
90973b19 5598 lt_cv_cc_needs_belf=yes
4ee9c684 5599else
5600 echo "$as_me: failed program was:" >&5
5601sed 's/^/| /' conftest.$ac_ext >&5
5602
82eaf560 5603lt_cv_cc_needs_belf=no
4ee9c684 5604fi
82eaf560 5605rm -f conftest.err conftest.$ac_objext \
4ee9c684 5606 conftest$ac_exeext conftest.$ac_ext
90973b19 5607 ac_ext=c
5608ac_cpp='$CPP $CPPFLAGS'
5609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5611ac_compiler_gnu=$ac_cv_c_compiler_gnu
5612
4ee9c684 5613fi
82eaf560 5614echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5615echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
90973b19 5616 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5617 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5618 CFLAGS="$SAVE_CFLAGS"
5619 fi
5620 ;;
542f9784 5621sparc*-*solaris*)
5622 # Find out which ABI we are using.
5623 echo 'int i;' > conftest.$ac_ext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; then
5629 case `/usr/bin/file conftest.o` in
5630 *64-bit*)
5631 case $lt_cv_prog_gnu_ld in
5632 yes*) LD="${LD-ld} -m elf64_sparc" ;;
00aafda4 5633 *)
5634 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5635 LD="${LD-ld} -64"
5636 fi
5637 ;;
542f9784 5638 esac
5639 ;;
5640 esac
5641 fi
5642 rm -rf conftest*
5643 ;;
90973b19 5644esac
5645
542f9784 5646need_locks="$enable_libtool_lock"
90973b19 5647
00aafda4 5648
5649 case $host_os in
5650 rhapsody* | darwin*)
5651 if test -n "$ac_tool_prefix"; then
5652 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5653set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5654echo "$as_me:$LINENO: checking for $ac_word" >&5
5655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5656if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658else
5659 if test -n "$DSYMUTIL"; then
5660 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5661else
5662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663for as_dir in $PATH
5664do
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5672 fi
5673done
5674done
5675
5676fi
5677fi
5678DSYMUTIL=$ac_cv_prog_DSYMUTIL
5679if test -n "$DSYMUTIL"; then
5680 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5681echo "${ECHO_T}$DSYMUTIL" >&6
5682else
5683 echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6
5685fi
5686
5687fi
5688if test -z "$ac_cv_prog_DSYMUTIL"; then
5689 ac_ct_DSYMUTIL=$DSYMUTIL
5690 # Extract the first word of "dsymutil", so it can be a program name with args.
5691set dummy dsymutil; ac_word=$2
5692echo "$as_me:$LINENO: checking for $ac_word" >&5
5693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5694if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696else
5697 if test -n "$ac_ct_DSYMUTIL"; then
5698 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5699else
5700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH
5702do
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5707 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 break 2
5710 fi
5711done
5712done
5713
5714 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
5715fi
5716fi
5717ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5718if test -n "$ac_ct_DSYMUTIL"; then
5719 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5720echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
5721else
5722 echo "$as_me:$LINENO: result: no" >&5
5723echo "${ECHO_T}no" >&6
5724fi
5725
5726 DSYMUTIL=$ac_ct_DSYMUTIL
5727else
5728 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5729fi
5730
5731 if test -n "$ac_tool_prefix"; then
5732 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5733set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5734echo "$as_me:$LINENO: checking for $ac_word" >&5
5735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5736if test "${ac_cv_prog_NMEDIT+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5738else
5739 if test -n "$NMEDIT"; then
5740 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5741else
5742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743for as_dir in $PATH
5744do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 break 2
5752 fi
5753done
5754done
5755
5756fi
5757fi
5758NMEDIT=$ac_cv_prog_NMEDIT
5759if test -n "$NMEDIT"; then
5760 echo "$as_me:$LINENO: result: $NMEDIT" >&5
5761echo "${ECHO_T}$NMEDIT" >&6
5762else
5763 echo "$as_me:$LINENO: result: no" >&5
5764echo "${ECHO_T}no" >&6
5765fi
5766
5767fi
5768if test -z "$ac_cv_prog_NMEDIT"; then
5769 ac_ct_NMEDIT=$NMEDIT
5770 # Extract the first word of "nmedit", so it can be a program name with args.
5771set dummy nmedit; ac_word=$2
5772echo "$as_me:$LINENO: checking for $ac_word" >&5
5773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5774if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
5777 if test -n "$ac_ct_NMEDIT"; then
5778 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5787 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 break 2
5790 fi
5791done
5792done
5793
5794 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
5795fi
5796fi
5797ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5798if test -n "$ac_ct_NMEDIT"; then
5799 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5800echo "${ECHO_T}$ac_ct_NMEDIT" >&6
5801else
5802 echo "$as_me:$LINENO: result: no" >&5
5803echo "${ECHO_T}no" >&6
5804fi
5805
5806 NMEDIT=$ac_ct_NMEDIT
5807else
5808 NMEDIT="$ac_cv_prog_NMEDIT"
5809fi
5810
5811 if test -n "$ac_tool_prefix"; then
5812 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5813set dummy ${ac_tool_prefix}lipo; ac_word=$2
5814echo "$as_me:$LINENO: checking for $ac_word" >&5
5815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5816if test "${ac_cv_prog_LIPO+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818else
5819 if test -n "$LIPO"; then
5820 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5821else
5822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823for as_dir in $PATH
5824do
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 2
5832 fi
5833done
5834done
5835
5836fi
5837fi
5838LIPO=$ac_cv_prog_LIPO
5839if test -n "$LIPO"; then
5840 echo "$as_me:$LINENO: result: $LIPO" >&5
5841echo "${ECHO_T}$LIPO" >&6
5842else
5843 echo "$as_me:$LINENO: result: no" >&5
5844echo "${ECHO_T}no" >&6
5845fi
5846
5847fi
5848if test -z "$ac_cv_prog_LIPO"; then
5849 ac_ct_LIPO=$LIPO
5850 # Extract the first word of "lipo", so it can be a program name with args.
5851set dummy lipo; ac_word=$2
5852echo "$as_me:$LINENO: checking for $ac_word" >&5
5853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5854if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856else
5857 if test -n "$ac_ct_LIPO"; then
5858 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5859else
5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861for as_dir in $PATH
5862do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5867 ac_cv_prog_ac_ct_LIPO="lipo"
5868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5870 fi
5871done
5872done
5873
5874 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
5875fi
5876fi
5877ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5878if test -n "$ac_ct_LIPO"; then
5879 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5880echo "${ECHO_T}$ac_ct_LIPO" >&6
5881else
5882 echo "$as_me:$LINENO: result: no" >&5
5883echo "${ECHO_T}no" >&6
5884fi
5885
5886 LIPO=$ac_ct_LIPO
5887else
5888 LIPO="$ac_cv_prog_LIPO"
5889fi
5890
5891 if test -n "$ac_tool_prefix"; then
5892 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5893set dummy ${ac_tool_prefix}otool; ac_word=$2
5894echo "$as_me:$LINENO: checking for $ac_word" >&5
5895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5896if test "${ac_cv_prog_OTOOL+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5898else
5899 if test -n "$OTOOL"; then
5900 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5901else
5902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903for as_dir in $PATH
5904do
5905 IFS=$as_save_IFS
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 break 2
5912 fi
5913done
5914done
5915
5916fi
5917fi
5918OTOOL=$ac_cv_prog_OTOOL
5919if test -n "$OTOOL"; then
5920 echo "$as_me:$LINENO: result: $OTOOL" >&5
5921echo "${ECHO_T}$OTOOL" >&6
5922else
5923 echo "$as_me:$LINENO: result: no" >&5
5924echo "${ECHO_T}no" >&6
5925fi
5926
5927fi
5928if test -z "$ac_cv_prog_OTOOL"; then
5929 ac_ct_OTOOL=$OTOOL
5930 # Extract the first word of "otool", so it can be a program name with args.
5931set dummy otool; ac_word=$2
5932echo "$as_me:$LINENO: checking for $ac_word" >&5
5933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5934if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936else
5937 if test -n "$ac_ct_OTOOL"; then
5938 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5939else
5940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941for as_dir in $PATH
5942do
5943 IFS=$as_save_IFS
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947 ac_cv_prog_ac_ct_OTOOL="otool"
5948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 break 2
5950 fi
5951done
5952done
5953
5954 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
5955fi
5956fi
5957ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5958if test -n "$ac_ct_OTOOL"; then
5959 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5960echo "${ECHO_T}$ac_ct_OTOOL" >&6
5961else
5962 echo "$as_me:$LINENO: result: no" >&5
5963echo "${ECHO_T}no" >&6
5964fi
5965
5966 OTOOL=$ac_ct_OTOOL
5967else
5968 OTOOL="$ac_cv_prog_OTOOL"
5969fi
5970
5971 if test -n "$ac_tool_prefix"; then
5972 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5973set dummy ${ac_tool_prefix}otool64; ac_word=$2
5974echo "$as_me:$LINENO: checking for $ac_word" >&5
5975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5976if test "${ac_cv_prog_OTOOL64+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978else
5979 if test -n "$OTOOL64"; then
5980 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5981else
5982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983for as_dir in $PATH
5984do
5985 IFS=$as_save_IFS
5986 test -z "$as_dir" && as_dir=.
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5989 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 break 2
5992 fi
5993done
5994done
5995
5996fi
5997fi
5998OTOOL64=$ac_cv_prog_OTOOL64
5999if test -n "$OTOOL64"; then
6000 echo "$as_me:$LINENO: result: $OTOOL64" >&5
6001echo "${ECHO_T}$OTOOL64" >&6
6002else
6003 echo "$as_me:$LINENO: result: no" >&5
6004echo "${ECHO_T}no" >&6
6005fi
6006
6007fi
6008if test -z "$ac_cv_prog_OTOOL64"; then
6009 ac_ct_OTOOL64=$OTOOL64
6010 # Extract the first word of "otool64", so it can be a program name with args.
6011set dummy otool64; ac_word=$2
6012echo "$as_me:$LINENO: checking for $ac_word" >&5
6013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6014if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016else
6017 if test -n "$ac_ct_OTOOL64"; then
6018 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6019else
6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021for as_dir in $PATH
6022do
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027 ac_cv_prog_ac_ct_OTOOL64="otool64"
6028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6030 fi
6031done
6032done
6033
6034 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6035fi
6036fi
6037ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6038if test -n "$ac_ct_OTOOL64"; then
6039 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6040echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6041else
6042 echo "$as_me:$LINENO: result: no" >&5
6043echo "${ECHO_T}no" >&6
6044fi
6045
6046 OTOOL64=$ac_ct_OTOOL64
6047else
6048 OTOOL64="$ac_cv_prog_OTOOL64"
6049fi
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6078echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6079if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081else
6082 lt_cv_apple_cc_single_mod=no
6083 if test -z "${LT_MULTI_MODULE}"; then
6084 # By default we will add the -single_module flag. You can override
6085 # by either setting the environment variable LT_MULTI_MODULE
6086 # non-empty at configure time, or by adding -multi_module to the
6087 # link flags.
6088 rm -rf libconftest.dylib*
6089 echo "int foo(void){return 1;}" > conftest.c
6090 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6091-dynamiclib -Wl,-single_module conftest.c" >&5
6092 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6093 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6094 _lt_result=$?
6095 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6096 lt_cv_apple_cc_single_mod=yes
6097 else
6098 cat conftest.err >&5
6099 fi
6100 rm -rf libconftest.dylib*
6101 rm -f conftest.*
6102 fi
6103fi
6104echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6105echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6106 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6107echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6108if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111 lt_cv_ld_exported_symbols_list=no
6112 save_LDFLAGS=$LDFLAGS
6113 echo "_main" > conftest.sym
6114 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6115 if test x$gcc_no_link = xyes; then
6116 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6117echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6118 { (exit 1); exit 1; }; }
6119fi
6120cat >conftest.$ac_ext <<_ACEOF
6121/* confdefs.h. */
6122_ACEOF
6123cat confdefs.h >>conftest.$ac_ext
6124cat >>conftest.$ac_ext <<_ACEOF
6125/* end confdefs.h. */
6126
6127int
6128main ()
6129{
6130
6131 ;
6132 return 0;
6133}
6134_ACEOF
6135rm -f conftest.$ac_objext conftest$ac_exeext
6136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137 (eval $ac_link) 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
6144 { ac_try='test -z "$ac_c_werror_flag"
6145 || test ! -s conftest.err'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 lt_cv_ld_exported_symbols_list=yes
6158else
6159 echo "$as_me: failed program was:" >&5
6160sed 's/^/| /' conftest.$ac_ext >&5
6161
6162lt_cv_ld_exported_symbols_list=no
6163fi
6164rm -f conftest.err conftest.$ac_objext \
6165 conftest$ac_exeext conftest.$ac_ext
6166 LDFLAGS="$save_LDFLAGS"
6167
6168fi
6169echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6170echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6171 case $host_os in
6172 rhapsody* | darwin1.[012])
6173 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6174 darwin1.*)
6175 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6176 darwin*) # darwin 5.x on
6177 # if running on 10.5 or later, the deployment target defaults
6178 # to the OS version, if on x86, and 10.4, the deployment
6179 # target defaults to 10.4. Don't you love it?
6180 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6181 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6182 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6183 10.[012]*)
6184 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6185 10.*)
6186 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6187 esac
6188 ;;
6189 esac
6190 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6191 _lt_dar_single_mod='$single_module'
6192 fi
6193 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6194 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6195 else
6196 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6197 fi
6198 if test "$DSYMUTIL" != ":"; then
6199 _lt_dsymutil='~$DSYMUTIL $lib || :'
6200 else
6201 _lt_dsymutil=
6202 fi
6203 ;;
6204 esac
6205
542f9784 6206ac_ext=c
6207ac_cpp='$CPP $CPPFLAGS'
6208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210ac_compiler_gnu=$ac_cv_c_compiler_gnu
82eaf560 6211echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6212echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
542f9784 6213# On Suns, sometimes $CPP names a directory.
6214if test -n "$CPP" && test -d "$CPP"; then
6215 CPP=
6216fi
6217if test -z "$CPP"; then
6218 if test "${ac_cv_prog_CPP+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220else
6221 # Double quotes because CPP needs to be expanded
6222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6223 do
6224 ac_preproc_ok=false
6225for ac_c_preproc_warn_flag in '' yes
6226do
6227 # Use a header file that comes with gcc, so configuring glibc
6228 # with a fresh cross-compiler works.
6229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6230 # <limits.h> exists even on freestanding compilers.
6231 # On the NeXT, cc -E runs the code through the compiler's parser,
6232 # not just through cpp. "Syntax error" is here to catch this case.
6233 cat >conftest.$ac_ext <<_ACEOF
6234/* confdefs.h. */
4ee9c684 6235_ACEOF
542f9784 6236cat confdefs.h >>conftest.$ac_ext
6237cat >>conftest.$ac_ext <<_ACEOF
6238/* end confdefs.h. */
6239#ifdef __STDC__
6240# include <limits.h>
6241#else
6242# include <assert.h>
6243#endif
6244 Syntax error
6245_ACEOF
82eaf560 6246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
542f9784 6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 6253 (exit $ac_status); } >/dev/null; then
6254 if test -s conftest.err; then
6255 ac_cpp_err=$ac_c_preproc_warn_flag
6256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6257 else
6258 ac_cpp_err=
6259 fi
6260else
6261 ac_cpp_err=yes
6262fi
6263if test -z "$ac_cpp_err"; then
542f9784 6264 :
6265else
6266 echo "$as_me: failed program was:" >&5
6267sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 6268
542f9784 6269 # Broken: fails on valid input.
6270continue
6271fi
6272rm -f conftest.err conftest.$ac_ext
90973b19 6273
82eaf560 6274 # OK, works on sane cases. Now check whether non-existent headers
542f9784 6275 # can be detected and how.
6276 cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h. */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h. */
6282#include <ac_nonexistent.h>
6283_ACEOF
82eaf560 6284if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
542f9784 6286 ac_status=$?
6287 grep -v '^ *+' conftest.er1 >conftest.err
6288 rm -f conftest.er1
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 6291 (exit $ac_status); } >/dev/null; then
6292 if test -s conftest.err; then
6293 ac_cpp_err=$ac_c_preproc_warn_flag
6294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6295 else
6296 ac_cpp_err=
6297 fi
6298else
6299 ac_cpp_err=yes
6300fi
6301if test -z "$ac_cpp_err"; then
542f9784 6302 # Broken: success on invalid input.
6303continue
6304else
6305 echo "$as_me: failed program was:" >&5
6306sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 6307
542f9784 6308 # Passes both tests.
6309ac_preproc_ok=:
6310break
6311fi
6312rm -f conftest.err conftest.$ac_ext
4ee9c684 6313
542f9784 6314done
6315# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6316rm -f conftest.err conftest.$ac_ext
6317if $ac_preproc_ok; then
6318 break
6319fi
4ee9c684 6320
542f9784 6321 done
6322 ac_cv_prog_CPP=$CPP
90973b19 6323
542f9784 6324fi
6325 CPP=$ac_cv_prog_CPP
90973b19 6326else
542f9784 6327 ac_cv_prog_CPP=$CPP
6328fi
82eaf560 6329echo "$as_me:$LINENO: result: $CPP" >&5
6330echo "${ECHO_T}$CPP" >&6
542f9784 6331ac_preproc_ok=false
6332for ac_c_preproc_warn_flag in '' yes
90973b19 6333do
542f9784 6334 # Use a header file that comes with gcc, so configuring glibc
6335 # with a fresh cross-compiler works.
6336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6337 # <limits.h> exists even on freestanding compilers.
6338 # On the NeXT, cc -E runs the code through the compiler's parser,
6339 # not just through cpp. "Syntax error" is here to catch this case.
6340 cat >conftest.$ac_ext <<_ACEOF
6341/* confdefs.h. */
6342_ACEOF
6343cat confdefs.h >>conftest.$ac_ext
6344cat >>conftest.$ac_ext <<_ACEOF
6345/* end confdefs.h. */
6346#ifdef __STDC__
6347# include <limits.h>
6348#else
6349# include <assert.h>
6350#endif
6351 Syntax error
6352_ACEOF
82eaf560 6353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
542f9784 6355 ac_status=$?
6356 grep -v '^ *+' conftest.er1 >conftest.err
6357 rm -f conftest.er1
6358 cat conftest.err >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 6360 (exit $ac_status); } >/dev/null; then
6361 if test -s conftest.err; then
6362 ac_cpp_err=$ac_c_preproc_warn_flag
6363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6364 else
6365 ac_cpp_err=
6366 fi
6367else
6368 ac_cpp_err=yes
6369fi
6370if test -z "$ac_cpp_err"; then
542f9784 6371 :
90973b19 6372else
542f9784 6373 echo "$as_me: failed program was:" >&5
6374sed 's/^/| /' conftest.$ac_ext >&5
90973b19 6375
542f9784 6376 # Broken: fails on valid input.
6377continue
90973b19 6378fi
542f9784 6379rm -f conftest.err conftest.$ac_ext
90973b19 6380
82eaf560 6381 # OK, works on sane cases. Now check whether non-existent headers
542f9784 6382 # can be detected and how.
4ee9c684 6383 cat >conftest.$ac_ext <<_ACEOF
542f9784 6384/* confdefs.h. */
4ee9c684 6385_ACEOF
542f9784 6386cat confdefs.h >>conftest.$ac_ext
6387cat >>conftest.$ac_ext <<_ACEOF
6388/* end confdefs.h. */
6389#include <ac_nonexistent.h>
6390_ACEOF
82eaf560 6391if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4ee9c684 6393 ac_status=$?
6394 grep -v '^ *+' conftest.er1 >conftest.err
6395 rm -f conftest.er1
6396 cat conftest.err >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 6398 (exit $ac_status); } >/dev/null; then
6399 if test -s conftest.err; then
6400 ac_cpp_err=$ac_c_preproc_warn_flag
6401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6402 else
6403 ac_cpp_err=
6404 fi
6405else
6406 ac_cpp_err=yes
6407fi
6408if test -z "$ac_cpp_err"; then
542f9784 6409 # Broken: success on invalid input.
6410continue
4ee9c684 6411else
6412 echo "$as_me: failed program was:" >&5
6413sed 's/^/| /' conftest.$ac_ext >&5
6414
542f9784 6415 # Passes both tests.
6416ac_preproc_ok=:
6417break
4ee9c684 6418fi
542f9784 6419rm -f conftest.err conftest.$ac_ext
4ee9c684 6420
542f9784 6421done
6422# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6423rm -f conftest.err conftest.$ac_ext
6424if $ac_preproc_ok; then
6425 :
6426else
5b2c7553 6427 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6428echo "$as_me: error: in \`$ac_pwd':" >&2;}
6429{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
542f9784 6430See \`config.log' for more details." >&5
6431echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6432See \`config.log' for more details." >&2;}
5b2c7553 6433 { (exit 1); exit 1; }; }; }
4ee9c684 6434fi
542f9784 6435
6436ac_ext=c
6437ac_cpp='$CPP $CPPFLAGS'
6438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440ac_compiler_gnu=$ac_cv_c_compiler_gnu
6441
6442
82eaf560 6443echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6444echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
542f9784 6445if test "${ac_cv_header_stdc+set}" = set; then
4ee9c684 6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6447else
542f9784 6448 cat >conftest.$ac_ext <<_ACEOF
6449/* confdefs.h. */
6450_ACEOF
6451cat confdefs.h >>conftest.$ac_ext
6452cat >>conftest.$ac_ext <<_ACEOF
6453/* end confdefs.h. */
6454#include <stdlib.h>
6455#include <stdarg.h>
6456#include <string.h>
6457#include <float.h>
4ee9c684 6458
542f9784 6459int
6460main ()
6461{
6462
6463 ;
6464 return 0;
6465}
4ee9c684 6466_ACEOF
6467rm -f conftest.$ac_objext
82eaf560 6468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469 (eval $ac_compile) 2>conftest.er1
4ee9c684 6470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 6475 (exit $ac_status); } &&
6476 { ac_try='test -z "$ac_c_werror_flag"
6477 || test ! -s conftest.err'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 (eval $ac_try) 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; } &&
6483 { ac_try='test -s conftest.$ac_objext'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 (eval $ac_try) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
542f9784 6489 ac_cv_header_stdc=yes
4ee9c684 6490else
6491 echo "$as_me: failed program was:" >&5
6492sed 's/^/| /' conftest.$ac_ext >&5
6493
82eaf560 6494ac_cv_header_stdc=no
4ee9c684 6495fi
82eaf560 6496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 6497
542f9784 6498if test $ac_cv_header_stdc = yes; then
6499 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6500 cat >conftest.$ac_ext <<_ACEOF
6501/* confdefs.h. */
6502_ACEOF
6503cat confdefs.h >>conftest.$ac_ext
6504cat >>conftest.$ac_ext <<_ACEOF
6505/* end confdefs.h. */
6506#include <string.h>
6507
6508_ACEOF
6509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6510 $EGREP "memchr" >/dev/null 2>&1; then
6511 :
90973b19 6512else
542f9784 6513 ac_cv_header_stdc=no
4ee9c684 6514fi
542f9784 6515rm -f conftest*
4ee9c684 6516
542f9784 6517fi
9cf1c244 6518
542f9784 6519if test $ac_cv_header_stdc = yes; then
6520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6521 cat >conftest.$ac_ext <<_ACEOF
6522/* confdefs.h. */
6523_ACEOF
6524cat confdefs.h >>conftest.$ac_ext
6525cat >>conftest.$ac_ext <<_ACEOF
6526/* end confdefs.h. */
6527#include <stdlib.h>
2e4ef4e4 6528
542f9784 6529_ACEOF
6530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6531 $EGREP "free" >/dev/null 2>&1; then
6532 :
6533else
6534 ac_cv_header_stdc=no
6535fi
6536rm -f conftest*
2e4ef4e4 6537
542f9784 6538fi
2e4ef4e4 6539
542f9784 6540if test $ac_cv_header_stdc = yes; then
6541 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6542 if test "$cross_compiling" = yes; then
6543 :
6544else
6545 cat >conftest.$ac_ext <<_ACEOF
6546/* confdefs.h. */
6547_ACEOF
6548cat confdefs.h >>conftest.$ac_ext
6549cat >>conftest.$ac_ext <<_ACEOF
6550/* end confdefs.h. */
6551#include <ctype.h>
6552#if ((' ' & 0x0FF) == 0x020)
6553# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6554# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6555#else
6556# define ISLOWER(c) \
6557 (('a' <= (c) && (c) <= 'i') \
6558 || ('j' <= (c) && (c) <= 'r') \
6559 || ('s' <= (c) && (c) <= 'z'))
6560# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6561#endif
2e4ef4e4 6562
542f9784 6563#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6564int
6565main ()
6566{
6567 int i;
6568 for (i = 0; i < 256; i++)
6569 if (XOR (islower (i), ISLOWER (i))
6570 || toupper (i) != TOUPPER (i))
82eaf560 6571 exit(2);
6572 exit (0);
542f9784 6573}
2e4ef4e4 6574_ACEOF
542f9784 6575rm -f conftest$ac_exeext
82eaf560 6576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6577 (eval $ac_link) 2>&5
2e4ef4e4 6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 6580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
82eaf560 6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 (eval $ac_try) 2>&5
2e4ef4e4 6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
542f9784 6586 :
2e4ef4e4 6587else
542f9784 6588 echo "$as_me: program exited with status $ac_status" >&5
6589echo "$as_me: failed program was:" >&5
2e4ef4e4 6590sed 's/^/| /' conftest.$ac_ext >&5
6591
542f9784 6592( exit $ac_status )
6593ac_cv_header_stdc=no
6594fi
82eaf560 6595rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
542f9784 6596fi
6597fi
6598fi
82eaf560 6599echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6600echo "${ECHO_T}$ac_cv_header_stdc" >&6
542f9784 6601if test $ac_cv_header_stdc = yes; then
6602
6603cat >>confdefs.h <<\_ACEOF
6604#define STDC_HEADERS 1
6605_ACEOF
2e4ef4e4 6606
6607fi
2e4ef4e4 6608
542f9784 6609# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2e4ef4e4 6610
6611
90e67cff 6612
90e67cff 6613
542f9784 6614
6615
6616
6617
6618
6619for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6620 inttypes.h stdint.h unistd.h
6621do
6622as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
82eaf560 6623echo "$as_me:$LINENO: checking for $ac_header" >&5
6624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6625if eval "test \"\${$as_ac_Header+set}\" = set"; then
90e67cff 6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
542f9784 6628 cat >conftest.$ac_ext <<_ACEOF
90e67cff 6629/* confdefs.h. */
6630_ACEOF
6631cat confdefs.h >>conftest.$ac_ext
6632cat >>conftest.$ac_ext <<_ACEOF
6633/* end confdefs.h. */
542f9784 6634$ac_includes_default
90e67cff 6635
542f9784 6636#include <$ac_header>
90e67cff 6637_ACEOF
542f9784 6638rm -f conftest.$ac_objext
82eaf560 6639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6640 (eval $ac_compile) 2>conftest.er1
90e67cff 6641 ac_status=$?
6642 grep -v '^ *+' conftest.er1 >conftest.err
6643 rm -f conftest.er1
6644 cat conftest.err >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 6646 (exit $ac_status); } &&
6647 { ac_try='test -z "$ac_c_werror_flag"
6648 || test ! -s conftest.err'
6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 (eval $ac_try) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; } &&
6654 { ac_try='test -s conftest.$ac_objext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
542f9784 6660 eval "$as_ac_Header=yes"
90e67cff 6661else
6662 echo "$as_me: failed program was:" >&5
6663sed 's/^/| /' conftest.$ac_ext >&5
6664
82eaf560 6665eval "$as_ac_Header=no"
90e67cff 6666fi
82eaf560 6667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 6668fi
82eaf560 6669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
542f9784 6671if test `eval echo '${'$as_ac_Header'}'` = yes; then
6672 cat >>confdefs.h <<_ACEOF
6673#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6674_ACEOF
6675
6676fi
6677
6678done
6679
6680
6681
6682for ac_header in dlfcn.h
6683do
6684as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
82eaf560 6685echo "$as_me:$LINENO: checking for $ac_header" >&5
6686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6687if eval "test \"\${$as_ac_Header+set}\" = set"; then
542f9784 6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6689else
6690 cat >conftest.$ac_ext <<_ACEOF
6691/* confdefs.h. */
6692_ACEOF
6693cat confdefs.h >>conftest.$ac_ext
6694cat >>conftest.$ac_ext <<_ACEOF
6695/* end confdefs.h. */
6696$ac_includes_default
6697
6698#include <$ac_header>
6699_ACEOF
6700rm -f conftest.$ac_objext
82eaf560 6701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6702 (eval $ac_compile) 2>conftest.er1
90e67cff 6703 ac_status=$?
6704 grep -v '^ *+' conftest.er1 >conftest.err
6705 rm -f conftest.er1
6706 cat conftest.err >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 6708 (exit $ac_status); } &&
6709 { ac_try='test -z "$ac_c_werror_flag"
6710 || test ! -s conftest.err'
6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712 (eval $ac_try) 2>&5
6713 ac_status=$?
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; } &&
6716 { ac_try='test -s conftest.$ac_objext'
6717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 (eval $ac_try) 2>&5
6719 ac_status=$?
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); }; }; then
542f9784 6722 eval "$as_ac_Header=yes"
90e67cff 6723else
6724 echo "$as_me: failed program was:" >&5
6725sed 's/^/| /' conftest.$ac_ext >&5
6726
82eaf560 6727eval "$as_ac_Header=no"
90e67cff 6728fi
82eaf560 6729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
90e67cff 6730fi
82eaf560 6731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
542f9784 6733if test `eval echo '${'$as_ac_Header'}'` = yes; then
6734 cat >>confdefs.h <<_ACEOF
6735#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
90e67cff 6736_ACEOF
90e67cff 6737
542f9784 6738fi
6739
6740done
6741
6742
6743
00aafda4 6744# Set options
6745
6746
6747
6748
6749 enable_win32_dll=no
6750
6751
6752 # Check whether --enable-shared or --disable-shared was given.
6753if test "${enable_shared+set}" = set; then
6754 enableval="$enable_shared"
6755 p=${PACKAGE-default}
6756 case $enableval in
6757 yes) enable_shared=yes ;;
6758 no) enable_shared=no ;;
6759 *)
6760 enable_shared=no
6761 # Look at the argument we got. We use all the common list separators.
6762 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6763 for pkg in $enableval; do
6764 IFS="$lt_save_ifs"
6765 if test "X$pkg" = "X$p"; then
6766 enable_shared=yes
6767 fi
6768 done
6769 IFS="$lt_save_ifs"
6770 ;;
6771 esac
6772else
6773 enable_shared=yes
6774fi;
6775
6776
6777
6778
6779
6780
6781
6782
6783 # Check whether --enable-static or --disable-static was given.
6784if test "${enable_static+set}" = set; then
6785 enableval="$enable_static"
6786 p=${PACKAGE-default}
6787 case $enableval in
6788 yes) enable_static=yes ;;
6789 no) enable_static=no ;;
6790 *)
6791 enable_static=no
6792 # Look at the argument we got. We use all the common list separators.
6793 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6794 for pkg in $enableval; do
6795 IFS="$lt_save_ifs"
6796 if test "X$pkg" = "X$p"; then
6797 enable_static=yes
6798 fi
6799 done
6800 IFS="$lt_save_ifs"
6801 ;;
6802 esac
6803else
6804 enable_static=yes
6805fi;
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815# Check whether --with-pic or --without-pic was given.
6816if test "${with_pic+set}" = set; then
6817 withval="$with_pic"
6818 pic_mode="$withval"
6819else
6820 pic_mode=default
6821fi;
6822
6823test -z "$pic_mode" && pic_mode=default
6824
6825
6826
6827
6828
6829
6830
6831 # Check whether --enable-fast-install or --disable-fast-install was given.
6832if test "${enable_fast_install+set}" = set; then
6833 enableval="$enable_fast_install"
6834 p=${PACKAGE-default}
6835 case $enableval in
6836 yes) enable_fast_install=yes ;;
6837 no) enable_fast_install=no ;;
6838 *)
6839 enable_fast_install=no
6840 # Look at the argument we got. We use all the common list separators.
6841 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6842 for pkg in $enableval; do
6843 IFS="$lt_save_ifs"
6844 if test "X$pkg" = "X$p"; then
6845 enable_fast_install=yes
6846 fi
6847 done
6848 IFS="$lt_save_ifs"
6849 ;;
6850 esac
6851else
6852 enable_fast_install=yes
6853fi;
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
542f9784 6864# This can be used to rebuild libtool when needed
6865LIBTOOL_DEPS="$ltmain"
6866
6867# Always use our own libtool.
6868LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894test -z "$LN_S" && LN_S="ln -s"
6895
6896
6897
6898
6899
90e67cff 6900
542f9784 6901
6902
6903
6904
6905
6906
6907
6908
6909if test -n "${ZSH_VERSION+set}" ; then
6910 setopt NO_GLOB_SUBST
90e67cff 6911fi
90e67cff 6912
82eaf560 6913echo "$as_me:$LINENO: checking for objdir" >&5
6914echo $ECHO_N "checking for objdir... $ECHO_C" >&6
542f9784 6915if test "${lt_cv_objdir+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
90e67cff 6917else
542f9784 6918 rm -f .libs 2>/dev/null
6919mkdir .libs 2>/dev/null
6920if test -d .libs; then
6921 lt_cv_objdir=.libs
6922else
6923 # MS-DOS does not allow filenames that begin with a dot.
6924 lt_cv_objdir=_libs
90e67cff 6925fi
542f9784 6926rmdir .libs 2>/dev/null
90e67cff 6927fi
82eaf560 6928echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6929echo "${ECHO_T}$lt_cv_objdir" >&6
542f9784 6930objdir=$lt_cv_objdir
6931
6932
6933
6934
90e67cff 6935
6936cat >>confdefs.h <<_ACEOF
542f9784 6937#define LT_OBJDIR "$lt_cv_objdir/"
90e67cff 6938_ACEOF
6939
542f9784 6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956case $host_os in
6957aix3*)
6958 # AIX sometimes has problems with the GCC collect2 program. For some
6959 # reason, if we set the COLLECT_NAMES environment variable, the problems
6960 # vanish in a puff of smoke.
6961 if test "X${COLLECT_NAMES+set}" != Xset; then
6962 COLLECT_NAMES=
6963 export COLLECT_NAMES
6964 fi
6965 ;;
6966esac
6967
6968# Sed substitution that helps us do robust quoting. It backslashifies
6969# metacharacters that are still active within double-quoted strings.
6970sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6971
6972# Same as above, but do not quote variable references.
6973double_quote_subst='s/\(["`\\]\)/\\\1/g'
6974
6975# Sed substitution to delay expansion of an escaped shell variable in a
6976# double_quote_subst'ed string.
6977delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6978
6979# Sed substitution to delay expansion of an escaped single quote.
6980delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6981
6982# Sed substitution to avoid accidental globbing in evaled expressions
6983no_glob_subst='s/\*/\\\*/g'
6984
6985# Global variables:
6986ofile=libtool
6987can_build_shared=yes
6988
6989# All known linkers require a `.a' archive for static linking (except MSVC,
6990# which needs '.lib').
6991libext=a
6992
6993with_gnu_ld="$lt_cv_prog_gnu_ld"
6994
6995old_CC="$CC"
6996old_CFLAGS="$CFLAGS"
6997
6998# Set sane defaults for various variables
6999test -z "$CC" && CC=cc
7000test -z "$LTCC" && LTCC=$CC
7001test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7002test -z "$LD" && LD=ld
7003test -z "$ac_objext" && ac_objext=o
7004
7005for cc_temp in $compiler""; do
7006 case $cc_temp in
7007 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7008 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7009 \-*) ;;
7010 *) break;;
7011 esac
7012done
7013cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7014
7015
7016# Only perform the check for file, if the check method requires it
7017test -z "$MAGIC_CMD" && MAGIC_CMD=file
7018case $deplibs_check_method in
7019file_magic*)
7020 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
82eaf560 7021 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7022echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
542f9784 7023if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
90e67cff 7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025else
542f9784 7026 case $MAGIC_CMD in
7027[\\/*] | ?:[\\/]*)
7028 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7029 ;;
7030*)
7031 lt_save_MAGIC_CMD="$MAGIC_CMD"
7032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7033 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7034 for ac_dir in $ac_dummy; do
7035 IFS="$lt_save_ifs"
7036 test -z "$ac_dir" && ac_dir=.
7037 if test -f $ac_dir/${ac_tool_prefix}file; then
7038 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7039 if test -n "$file_magic_test_file"; then
7040 case $deplibs_check_method in
7041 "file_magic "*)
7042 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7043 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7044 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7045 $EGREP "$file_magic_regex" > /dev/null; then
7046 :
7047 else
7048 cat <<_LT_EOF 1>&2
90e67cff 7049
542f9784 7050*** Warning: the command libtool uses to detect shared libraries,
7051*** $file_magic_cmd, produces output that libtool cannot recognize.
7052*** The result is that libtool may fail to recognize shared libraries
7053*** as such. This will affect the creation of libtool libraries that
7054*** depend on shared libraries, but programs linked with such libtool
7055*** libraries will work regardless of this problem. Nevertheless, you
7056*** may want to report the problem to your system manager and/or to
7057*** bug-libtool@gnu.org
7058
7059_LT_EOF
7060 fi ;;
7061 esac
7062 fi
7063 break
7064 fi
7065 done
7066 IFS="$lt_save_ifs"
7067 MAGIC_CMD="$lt_save_MAGIC_CMD"
7068 ;;
7069esac
7070fi
7071
7072MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7073if test -n "$MAGIC_CMD"; then
82eaf560 7074 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7075echo "${ECHO_T}$MAGIC_CMD" >&6
542f9784 7076else
82eaf560 7077 echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6
542f9784 7079fi
7080
7081
7082
7083
7084
7085if test -z "$lt_cv_path_MAGIC_CMD"; then
7086 if test -n "$ac_tool_prefix"; then
82eaf560 7087 echo "$as_me:$LINENO: checking for file" >&5
7088echo $ECHO_N "checking for file... $ECHO_C" >&6
542f9784 7089if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091else
7092 case $MAGIC_CMD in
7093[\\/*] | ?:[\\/]*)
7094 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7095 ;;
7096*)
7097 lt_save_MAGIC_CMD="$MAGIC_CMD"
7098 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7099 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7100 for ac_dir in $ac_dummy; do
7101 IFS="$lt_save_ifs"
7102 test -z "$ac_dir" && ac_dir=.
7103 if test -f $ac_dir/file; then
7104 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7105 if test -n "$file_magic_test_file"; then
7106 case $deplibs_check_method in
7107 "file_magic "*)
7108 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7109 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7110 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7111 $EGREP "$file_magic_regex" > /dev/null; then
7112 :
7113 else
7114 cat <<_LT_EOF 1>&2
7115
7116*** Warning: the command libtool uses to detect shared libraries,
7117*** $file_magic_cmd, produces output that libtool cannot recognize.
7118*** The result is that libtool may fail to recognize shared libraries
7119*** as such. This will affect the creation of libtool libraries that
7120*** depend on shared libraries, but programs linked with such libtool
7121*** libraries will work regardless of this problem. Nevertheless, you
7122*** may want to report the problem to your system manager and/or to
7123*** bug-libtool@gnu.org
7124
7125_LT_EOF
7126 fi ;;
7127 esac
7128 fi
7129 break
7130 fi
7131 done
7132 IFS="$lt_save_ifs"
7133 MAGIC_CMD="$lt_save_MAGIC_CMD"
7134 ;;
7135esac
7136fi
7137
7138MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7139if test -n "$MAGIC_CMD"; then
82eaf560 7140 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7141echo "${ECHO_T}$MAGIC_CMD" >&6
542f9784 7142else
82eaf560 7143 echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6
542f9784 7145fi
7146
7147
7148 else
7149 MAGIC_CMD=:
7150 fi
7151fi
7152
7153 fi
7154 ;;
7155esac
7156
7157# Use C for the default configuration in the libtool script
7158
7159lt_save_CC="$CC"
7160ac_ext=c
7161ac_cpp='$CPP $CPPFLAGS'
7162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7164ac_compiler_gnu=$ac_cv_c_compiler_gnu
7165
7166
7167# Source file extension for C test sources.
7168ac_ext=c
7169
7170# Object file extension for compiled C test sources.
7171objext=o
7172objext=$objext
7173
7174# Code to be used in simple compile tests
7175lt_simple_compile_test_code="int some_variable = 0;"
7176
7177# Code to be used in simple link tests
7178lt_simple_link_test_code='int main(){return(0);}'
7179
7180
7181
7182
7183
7184
7185
7186# If no C compiler was specified, use CC.
7187LTCC=${LTCC-"$CC"}
7188
7189# If no C compiler flags were specified, use CFLAGS.
7190LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7191
7192# Allow CC to be a program name with arguments.
7193compiler=$CC
7194
7195# Save the default compiler, since it gets overwritten when the other
7196# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7197compiler_DEFAULT=$CC
7198
7199# save warnings/boilerplate of simple test code
7200ac_outfile=conftest.$ac_objext
7201echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7202eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7203_lt_compiler_boilerplate=`cat conftest.err`
7204$RM conftest*
7205
7206ac_outfile=conftest.$ac_objext
7207echo "$lt_simple_link_test_code" >conftest.$ac_ext
7208eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7209_lt_linker_boilerplate=`cat conftest.err`
00aafda4 7210$RM -r conftest*
542f9784 7211
7212
7213## CAVEAT EMPTOR:
7214## There is no encapsulation within the following macros, do not change
7215## the running order or otherwise move them around unless you know exactly
7216## what you are doing...
7217if test -n "$compiler"; then
7218
7219lt_prog_compiler_no_builtin_flag=
7220
7221if test "$GCC" = yes; then
7222 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7223
82eaf560 7224 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7225echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
542f9784 7226if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228else
7229 lt_cv_prog_compiler_rtti_exceptions=no
7230 ac_outfile=conftest.$ac_objext
7231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7232 lt_compiler_flag="-fno-rtti -fno-exceptions"
7233 # Insert the option either (1) after the last *FLAGS variable, or
7234 # (2) before a word containing "conftest.", or (3) at the end.
7235 # Note that $ac_compile itself does not contain backslashes and begins
7236 # with a dollar sign (not a hyphen), so the echo should work correctly.
7237 # The option is referenced via a variable to avoid confusing sed.
7238 lt_compile=`echo "$ac_compile" | $SED \
7239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7241 -e 's:$: $lt_compiler_flag:'`
00aafda4 7242 (eval echo "\"\$as_me:7242: $lt_compile\"" >&5)
542f9784 7243 (eval "$lt_compile" 2>conftest.err)
7244 ac_status=$?
7245 cat conftest.err >&5
00aafda4 7246 echo "$as_me:7246: \$? = $ac_status" >&5
542f9784 7247 if (exit $ac_status) && test -s "$ac_outfile"; then
7248 # The compiler can only warn and ignore the option if not recognized
7249 # So say no if there are warnings other than the usual output.
7250 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7252 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7253 lt_cv_prog_compiler_rtti_exceptions=yes
7254 fi
7255 fi
7256 $RM conftest*
7257
7258fi
82eaf560 7259echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7260echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
542f9784 7261
7262if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7263 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7264else
7265 :
7266fi
7267
7268fi
7269
7270
7271
7272
7273
7274
7275 lt_prog_compiler_wl=
7276lt_prog_compiler_pic=
7277lt_prog_compiler_static=
7278
82eaf560 7279echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7280echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
542f9784 7281
7282 if test "$GCC" = yes; then
7283 lt_prog_compiler_wl='-Wl,'
7284 lt_prog_compiler_static='-static'
7285
7286 case $host_os in
7287 aix*)
7288 # All AIX code is PIC.
7289 if test "$host_cpu" = ia64; then
7290 # AIX 5 now supports IA64 processor
7291 lt_prog_compiler_static='-Bstatic'
7292 fi
7293 ;;
7294
7295 amigaos*)
00aafda4 7296 case $host_cpu in
7297 powerpc)
7298 # see comment about AmigaOS4 .so support
7299 lt_prog_compiler_pic='-fPIC'
7300 ;;
7301 m68k)
7302 # FIXME: we need at least 68020 code to build shared libraries, but
7303 # adding the `-m68020' flag to GCC prevents building anything better,
7304 # like `-m68040'.
7305 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7306 ;;
7307 esac
542f9784 7308 ;;
7309
7310 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7311 # PIC is the default for these OSes.
7312 ;;
7313
00aafda4 7314 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 7315 # This hack is so that the source file can tell whether it is being
7316 # built for inclusion in a dll (and should export symbols for example).
7317 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7318 # (--disable-auto-import) libraries
7319 lt_prog_compiler_pic='-DDLL_EXPORT'
7320 ;;
7321
7322 darwin* | rhapsody*)
7323 # PIC is the default on this platform
7324 # Common symbols not allowed in MH_DYLIB files
7325 lt_prog_compiler_pic='-fno-common'
7326 ;;
7327
7328 hpux*)
00aafda4 7329 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7330 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7331 # sets the default TLS model and affects inlining.
542f9784 7332 case $host_cpu in
00aafda4 7333 hppa*64*)
542f9784 7334 # +Z the default
7335 ;;
7336 *)
7337 lt_prog_compiler_pic='-fPIC'
7338 ;;
7339 esac
7340 ;;
7341
7342 interix[3-9]*)
7343 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7344 # Instead, we relocate shared libraries at runtime.
7345 ;;
7346
7347 msdosdjgpp*)
7348 # Just because we use GCC doesn't mean we suddenly get shared libraries
7349 # on systems that don't support them.
7350 lt_prog_compiler_can_build_shared=no
7351 enable_shared=no
7352 ;;
7353
7354 *nto* | *qnx*)
7355 # QNX uses GNU C++, but need to define -shared option too, otherwise
7356 # it will coredump.
7357 lt_prog_compiler_pic='-fPIC -shared'
7358 ;;
7359
7360 sysv4*MP*)
7361 if test -d /usr/nec; then
7362 lt_prog_compiler_pic=-Kconform_pic
7363 fi
7364 ;;
7365
7366 *)
7367 lt_prog_compiler_pic='-fPIC'
7368 ;;
7369 esac
7370 else
7371 # PORTME Check for flag to pass linker flags through the system compiler.
7372 case $host_os in
7373 aix*)
7374 lt_prog_compiler_wl='-Wl,'
7375 if test "$host_cpu" = ia64; then
7376 # AIX 5 now supports IA64 processor
7377 lt_prog_compiler_static='-Bstatic'
7378 else
7379 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7380 fi
7381 ;;
542f9784 7382
00aafda4 7383 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 7384 # This hack is so that the source file can tell whether it is being
7385 # built for inclusion in a dll (and should export symbols for example).
7386 lt_prog_compiler_pic='-DDLL_EXPORT'
7387 ;;
7388
7389 hpux9* | hpux10* | hpux11*)
7390 lt_prog_compiler_wl='-Wl,'
7391 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7392 # not for PA HP-UX.
7393 case $host_cpu in
7394 hppa*64*|ia64*)
7395 # +Z the default
7396 ;;
7397 *)
7398 lt_prog_compiler_pic='+Z'
7399 ;;
7400 esac
7401 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7402 lt_prog_compiler_static='${wl}-a ${wl}archive'
7403 ;;
7404
7405 irix5* | irix6* | nonstopux*)
7406 lt_prog_compiler_wl='-Wl,'
7407 # PIC (with -KPIC) is the default.
7408 lt_prog_compiler_static='-non_shared'
7409 ;;
7410
7411 linux* | k*bsd*-gnu)
7412 case $cc_basename in
00aafda4 7413 # old Intel for x86_64 which still supported -KPIC.
7414 ecc*)
542f9784 7415 lt_prog_compiler_wl='-Wl,'
7416 lt_prog_compiler_pic='-KPIC'
7417 lt_prog_compiler_static='-static'
7418 ;;
00aafda4 7419 # icc used to be incompatible with GCC.
7420 # ICC 10 doesn't accept -KPIC any more.
7421 icc* | ifort*)
7422 lt_prog_compiler_wl='-Wl,'
7423 lt_prog_compiler_pic='-fPIC'
7424 lt_prog_compiler_static='-static'
7425 ;;
7426 # Lahey Fortran 8.1.
7427 lf95*)
7428 lt_prog_compiler_wl='-Wl,'
7429 lt_prog_compiler_pic='--shared'
7430 lt_prog_compiler_static='--static'
7431 ;;
542f9784 7432 pgcc* | pgf77* | pgf90* | pgf95*)
7433 # Portland Group compilers (*not* the Pentium gcc compiler,
7434 # which looks to be a dead project)
7435 lt_prog_compiler_wl='-Wl,'
7436 lt_prog_compiler_pic='-fpic'
7437 lt_prog_compiler_static='-Bstatic'
7438 ;;
7439 ccc*)
7440 lt_prog_compiler_wl='-Wl,'
7441 # All Alpha code is PIC.
7442 lt_prog_compiler_static='-non_shared'
7443 ;;
00aafda4 7444 xl*)
7445 # IBM XL C 8.0/Fortran 10.1 on PPC
7446 lt_prog_compiler_wl='-Wl,'
7447 lt_prog_compiler_pic='-qpic'
7448 lt_prog_compiler_static='-qstaticlink'
7449 ;;
542f9784 7450 *)
7451 case `$CC -V 2>&1 | sed 5q` in
7452 *Sun\ C*)
7453 # Sun C 5.9
7454 lt_prog_compiler_pic='-KPIC'
7455 lt_prog_compiler_static='-Bstatic'
7456 lt_prog_compiler_wl='-Wl,'
7457 ;;
7458 *Sun\ F*)
7459 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7460 lt_prog_compiler_pic='-KPIC'
7461 lt_prog_compiler_static='-Bstatic'
7462 lt_prog_compiler_wl=''
7463 ;;
7464 esac
7465 ;;
7466 esac
7467 ;;
7468
7469 newsos6)
7470 lt_prog_compiler_pic='-KPIC'
7471 lt_prog_compiler_static='-Bstatic'
7472 ;;
7473
7474 *nto* | *qnx*)
7475 # QNX uses GNU C++, but need to define -shared option too, otherwise
7476 # it will coredump.
7477 lt_prog_compiler_pic='-fPIC -shared'
7478 ;;
7479
7480 osf3* | osf4* | osf5*)
7481 lt_prog_compiler_wl='-Wl,'
7482 # All OSF/1 code is PIC.
7483 lt_prog_compiler_static='-non_shared'
7484 ;;
7485
7486 rdos*)
7487 lt_prog_compiler_static='-non_shared'
7488 ;;
7489
7490 solaris*)
7491 lt_prog_compiler_pic='-KPIC'
7492 lt_prog_compiler_static='-Bstatic'
7493 case $cc_basename in
7494 f77* | f90* | f95*)
7495 lt_prog_compiler_wl='-Qoption ld ';;
7496 *)
7497 lt_prog_compiler_wl='-Wl,';;
7498 esac
7499 ;;
7500
7501 sunos4*)
7502 lt_prog_compiler_wl='-Qoption ld '
7503 lt_prog_compiler_pic='-PIC'
7504 lt_prog_compiler_static='-Bstatic'
7505 ;;
7506
7507 sysv4 | sysv4.2uw2* | sysv4.3*)
7508 lt_prog_compiler_wl='-Wl,'
7509 lt_prog_compiler_pic='-KPIC'
7510 lt_prog_compiler_static='-Bstatic'
7511 ;;
7512
7513 sysv4*MP*)
7514 if test -d /usr/nec ;then
7515 lt_prog_compiler_pic='-Kconform_pic'
7516 lt_prog_compiler_static='-Bstatic'
7517 fi
7518 ;;
7519
7520 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7521 lt_prog_compiler_wl='-Wl,'
7522 lt_prog_compiler_pic='-KPIC'
7523 lt_prog_compiler_static='-Bstatic'
7524 ;;
7525
7526 unicos*)
7527 lt_prog_compiler_wl='-Wl,'
7528 lt_prog_compiler_can_build_shared=no
7529 ;;
7530
7531 uts4*)
7532 lt_prog_compiler_pic='-pic'
7533 lt_prog_compiler_static='-Bstatic'
7534 ;;
7535
7536 *)
7537 lt_prog_compiler_can_build_shared=no
7538 ;;
7539 esac
7540 fi
7541
7542case $host_os in
7543 # For platforms which do not support PIC, -DPIC is meaningless:
7544 *djgpp*)
7545 lt_prog_compiler_pic=
7546 ;;
7547 *)
7548 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7549 ;;
7550esac
82eaf560 7551echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7552echo "${ECHO_T}$lt_prog_compiler_pic" >&6
542f9784 7553
7554
7555
7556
7557
7558
7559#
7560# Check to make sure the PIC flag actually works.
7561#
7562if test -n "$lt_prog_compiler_pic"; then
82eaf560 7563 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7564echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
00aafda4 7565if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
542f9784 7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567else
00aafda4 7568 lt_cv_prog_compiler_pic_works=no
542f9784 7569 ac_outfile=conftest.$ac_objext
7570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7571 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7572 # Insert the option either (1) after the last *FLAGS variable, or
7573 # (2) before a word containing "conftest.", or (3) at the end.
7574 # Note that $ac_compile itself does not contain backslashes and begins
7575 # with a dollar sign (not a hyphen), so the echo should work correctly.
7576 # The option is referenced via a variable to avoid confusing sed.
7577 lt_compile=`echo "$ac_compile" | $SED \
7578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7580 -e 's:$: $lt_compiler_flag:'`
00aafda4 7581 (eval echo "\"\$as_me:7581: $lt_compile\"" >&5)
542f9784 7582 (eval "$lt_compile" 2>conftest.err)
7583 ac_status=$?
7584 cat conftest.err >&5
00aafda4 7585 echo "$as_me:7585: \$? = $ac_status" >&5
542f9784 7586 if (exit $ac_status) && test -s "$ac_outfile"; then
7587 # The compiler can only warn and ignore the option if not recognized
7588 # So say no if there are warnings other than the usual output.
7589 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7591 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 7592 lt_cv_prog_compiler_pic_works=yes
542f9784 7593 fi
7594 fi
7595 $RM conftest*
7596
7597fi
00aafda4 7598echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7599echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
542f9784 7600
00aafda4 7601if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
542f9784 7602 case $lt_prog_compiler_pic in
7603 "" | " "*) ;;
7604 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7605 esac
7606else
7607 lt_prog_compiler_pic=
7608 lt_prog_compiler_can_build_shared=no
7609fi
7610
7611fi
7612
7613
7614
7615
7616
7617
7618#
7619# Check to make sure the static flag actually works.
7620#
7621wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
82eaf560 7622echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7623echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
00aafda4 7624if test "${lt_cv_prog_compiler_static_works+set}" = set; then
542f9784 7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
00aafda4 7627 lt_cv_prog_compiler_static_works=no
542f9784 7628 save_LDFLAGS="$LDFLAGS"
7629 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7630 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7631 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7632 # The linker can only warn and ignore the option if not recognized
7633 # So say no if there are warnings
7634 if test -s conftest.err; then
7635 # Append any errors to the config.log.
7636 cat conftest.err 1>&5
7637 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7639 if diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 7640 lt_cv_prog_compiler_static_works=yes
542f9784 7641 fi
7642 else
00aafda4 7643 lt_cv_prog_compiler_static_works=yes
542f9784 7644 fi
7645 fi
00aafda4 7646 $RM -r conftest*
542f9784 7647 LDFLAGS="$save_LDFLAGS"
7648
7649fi
00aafda4 7650echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7651echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
542f9784 7652
00aafda4 7653if test x"$lt_cv_prog_compiler_static_works" = xyes; then
542f9784 7654 :
7655else
7656 lt_prog_compiler_static=
7657fi
7658
7659
7660
7661
7662
7663
7664
82eaf560 7665 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7666echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
542f9784 7667if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669else
7670 lt_cv_prog_compiler_c_o=no
7671 $RM -r conftest 2>/dev/null
7672 mkdir conftest
7673 cd conftest
7674 mkdir out
7675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7676
7677 lt_compiler_flag="-o out/conftest2.$ac_objext"
7678 # Insert the option either (1) after the last *FLAGS variable, or
7679 # (2) before a word containing "conftest.", or (3) at the end.
7680 # Note that $ac_compile itself does not contain backslashes and begins
7681 # with a dollar sign (not a hyphen), so the echo should work correctly.
7682 lt_compile=`echo "$ac_compile" | $SED \
7683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7685 -e 's:$: $lt_compiler_flag:'`
00aafda4 7686 (eval echo "\"\$as_me:7686: $lt_compile\"" >&5)
542f9784 7687 (eval "$lt_compile" 2>out/conftest.err)
7688 ac_status=$?
7689 cat out/conftest.err >&5
00aafda4 7690 echo "$as_me:7690: \$? = $ac_status" >&5
542f9784 7691 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7692 then
7693 # The compiler can only warn and ignore the option if not recognized
7694 # So say no if there are warnings
7695 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7696 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7697 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7698 lt_cv_prog_compiler_c_o=yes
7699 fi
7700 fi
7701 chmod u+w . 2>&5
7702 $RM conftest*
7703 # SGI C++ compiler will create directory out/ii_files/ for
7704 # template instantiation
7705 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7706 $RM out/* && rmdir out
7707 cd ..
7708 $RM -r conftest
7709 $RM conftest*
7710
7711fi
82eaf560 7712echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7713echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
542f9784 7714
7715
7716
7717
7718
7719
82eaf560 7720 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7721echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
542f9784 7722if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724else
7725 lt_cv_prog_compiler_c_o=no
7726 $RM -r conftest 2>/dev/null
7727 mkdir conftest
7728 cd conftest
7729 mkdir out
7730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7731
7732 lt_compiler_flag="-o out/conftest2.$ac_objext"
7733 # Insert the option either (1) after the last *FLAGS variable, or
7734 # (2) before a word containing "conftest.", or (3) at the end.
7735 # Note that $ac_compile itself does not contain backslashes and begins
7736 # with a dollar sign (not a hyphen), so the echo should work correctly.
7737 lt_compile=`echo "$ac_compile" | $SED \
7738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7740 -e 's:$: $lt_compiler_flag:'`
00aafda4 7741 (eval echo "\"\$as_me:7741: $lt_compile\"" >&5)
542f9784 7742 (eval "$lt_compile" 2>out/conftest.err)
7743 ac_status=$?
7744 cat out/conftest.err >&5
00aafda4 7745 echo "$as_me:7745: \$? = $ac_status" >&5
542f9784 7746 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7747 then
7748 # The compiler can only warn and ignore the option if not recognized
7749 # So say no if there are warnings
7750 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7751 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7752 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7753 lt_cv_prog_compiler_c_o=yes
7754 fi
7755 fi
7756 chmod u+w . 2>&5
7757 $RM conftest*
7758 # SGI C++ compiler will create directory out/ii_files/ for
7759 # template instantiation
7760 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7761 $RM out/* && rmdir out
7762 cd ..
7763 $RM -r conftest
7764 $RM conftest*
7765
7766fi
82eaf560 7767echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7768echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
542f9784 7769
7770
7771
7772
7773hard_links="nottested"
7774if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7775 # do not overwrite the value of need_locks provided by the user
82eaf560 7776 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7777echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
542f9784 7778 hard_links=yes
7779 $RM conftest*
7780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7781 touch conftest.a
7782 ln conftest.a conftest.b 2>&5 || hard_links=no
7783 ln conftest.a conftest.b 2>/dev/null && hard_links=no
82eaf560 7784 echo "$as_me:$LINENO: result: $hard_links" >&5
7785echo "${ECHO_T}$hard_links" >&6
542f9784 7786 if test "$hard_links" = no; then
7787 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7788echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7789 need_locks=warn
7790 fi
7791else
7792 need_locks=no
7793fi
7794
7795
7796
7797
7798
7799
82eaf560 7800 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7801echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
542f9784 7802
7803 runpath_var=
7804 allow_undefined_flag=
7805 always_export_symbols=no
7806 archive_cmds=
7807 archive_expsym_cmds=
7808 compiler_needs_object=no
7809 enable_shared_with_static_runtimes=no
7810 export_dynamic_flag_spec=
7811 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7812 hardcode_automatic=no
7813 hardcode_direct=no
7814 hardcode_direct_absolute=no
7815 hardcode_libdir_flag_spec=
7816 hardcode_libdir_flag_spec_ld=
7817 hardcode_libdir_separator=
7818 hardcode_minus_L=no
7819 hardcode_shlibpath_var=unsupported
7820 inherit_rpath=no
7821 link_all_deplibs=unknown
7822 module_cmds=
7823 module_expsym_cmds=
7824 old_archive_from_new_cmds=
7825 old_archive_from_expsyms_cmds=
7826 thread_safe_flag_spec=
7827 whole_archive_flag_spec=
7828 # include_expsyms should be a list of space-separated symbols to be *always*
7829 # included in the symbol list
7830 include_expsyms=
7831 # exclude_expsyms can be an extended regexp of symbols to exclude
7832 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7833 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7834 # as well as any symbol that contains `d'.
00aafda4 7835 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 7836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7837 # platforms (ab)use it in PIC code, but their linkers get confused if
7838 # the symbol is explicitly referenced. Since portable code cannot
7839 # rely on this symbol name, it's probably fine to never include it in
7840 # preloaded symbol tables.
00aafda4 7841 # Exclude shared library initialization/finalization symbols.
542f9784 7842 extract_expsyms_cmds=
7843
7844 case $host_os in
00aafda4 7845 cygwin* | mingw* | pw32* | cegcc*)
542f9784 7846 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7847 # When not using gcc, we currently assume that we are using
7848 # Microsoft Visual C++.
7849 if test "$GCC" != yes; then
7850 with_gnu_ld=no
7851 fi
7852 ;;
7853 interix*)
7854 # we just hope/assume this is gcc and not c89 (= MSVC++)
7855 with_gnu_ld=yes
7856 ;;
7857 openbsd*)
7858 with_gnu_ld=no
7859 ;;
7860 esac
7861
7862 ld_shlibs=yes
7863 if test "$with_gnu_ld" = yes; then
7864 # If archive_cmds runs LD, not CC, wlarc should be empty
7865 wlarc='${wl}'
7866
7867 # Set some defaults for GNU ld with shared library support. These
7868 # are reset later if shared libraries are not supported. Putting them
7869 # here allows them to be overridden if necessary.
7870 runpath_var=LD_RUN_PATH
7871 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7872 export_dynamic_flag_spec='${wl}--export-dynamic'
7873 # ancient GNU ld didn't support --whole-archive et. al.
7874 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7875 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7876 else
7877 whole_archive_flag_spec=
7878 fi
7879 supports_anon_versioning=no
7880 case `$LD -v 2>&1` in
7881 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7882 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7883 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7884 *\ 2.11.*) ;; # other 2.11 versions
7885 *) supports_anon_versioning=yes ;;
7886 esac
7887
7888 # See if GNU ld supports shared libraries.
7889 case $host_os in
21e07d2f 7890 aix[3-9]*)
542f9784 7891 # On AIX/PPC, the GNU linker is very broken
7892 if test "$host_cpu" != ia64; then
7893 ld_shlibs=no
7894 cat <<_LT_EOF 1>&2
7895
7896*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7897*** to be unable to reliably create shared libraries on AIX.
7898*** Therefore, libtool is disabling shared libraries support. If you
7899*** really care for shared libraries, you may want to modify your PATH
7900*** so that a non-GNU linker is found, and then restart.
7901
7902_LT_EOF
7903 fi
7904 ;;
7905
7906 amigaos*)
00aafda4 7907 case $host_cpu in
7908 powerpc)
7909 # see comment about AmigaOS4 .so support
7910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7911 archive_expsym_cmds=''
7912 ;;
7913 m68k)
7914 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)'
7915 hardcode_libdir_flag_spec='-L$libdir'
7916 hardcode_minus_L=yes
7917 ;;
7918 esac
542f9784 7919 ;;
7920
7921 beos*)
7922 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7923 allow_undefined_flag=unsupported
7924 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7925 # support --undefined. This deserves some investigation. FIXME
7926 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7927 else
7928 ld_shlibs=no
7929 fi
7930 ;;
7931
00aafda4 7932 cygwin* | mingw* | pw32* | cegcc*)
542f9784 7933 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7934 # as there is no search path for DLLs.
7935 hardcode_libdir_flag_spec='-L$libdir'
7936 allow_undefined_flag=unsupported
7937 always_export_symbols=no
7938 enable_shared_with_static_runtimes=yes
7939 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7940
7941 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7943 # If the export-symbols file already is a .def file (1st line
7944 # is EXPORTS), use it as is; otherwise, prepend...
7945 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7946 cp $export_symbols $output_objdir/$soname.def;
7947 else
7948 echo EXPORTS > $output_objdir/$soname.def;
7949 cat $export_symbols >> $output_objdir/$soname.def;
7950 fi~
7951 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7952 else
7953 ld_shlibs=no
7954 fi
7955 ;;
7956
7957 interix[3-9]*)
7958 hardcode_direct=no
7959 hardcode_shlibpath_var=no
7960 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7961 export_dynamic_flag_spec='${wl}-E'
7962 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7963 # Instead, shared libraries are loaded at an image base (0x10000000 by
7964 # default) and relocated if they conflict, which is a slow very memory
7965 # consuming and fragmenting process. To avoid this, we pick a random,
7966 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7967 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7968 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7969 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'
7970 ;;
7971
7972 gnu* | linux* | tpf* | k*bsd*-gnu)
7973 tmp_diet=no
7974 if test "$host_os" = linux-dietlibc; then
7975 case $cc_basename in
7976 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7977 esac
7978 fi
7979 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7980 && test "$tmp_diet" = no
7981 then
7982 tmp_addflag=
00aafda4 7983 tmp_sharedflag='-shared'
542f9784 7984 case $cc_basename,$host_cpu in
7985 pgcc*) # Portland Group C compiler
7986 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'
7987 tmp_addflag=' $pic_flag'
7988 ;;
7989 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7990 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'
7991 tmp_addflag=' $pic_flag -Mnomain' ;;
7992 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7993 tmp_addflag=' -i_dynamic' ;;
7994 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7995 tmp_addflag=' -i_dynamic -nofor_main' ;;
7996 ifc* | ifort*) # Intel Fortran compiler
7997 tmp_addflag=' -nofor_main' ;;
00aafda4 7998 lf95*) # Lahey Fortran 8.1
7999 whole_archive_flag_spec=
8000 tmp_sharedflag='--shared' ;;
8001 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8002 tmp_sharedflag='-qmkshrobj'
8003 tmp_addflag= ;;
542f9784 8004 esac
8005 case `$CC -V 2>&1 | sed 5q` in
8006 *Sun\ C*) # Sun C 5.9
8007 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'
8008 compiler_needs_object=yes
8009 tmp_sharedflag='-G' ;;
8010 *Sun\ F*) # Sun Fortran 8.3
8011 tmp_sharedflag='-G' ;;
542f9784 8012 esac
8013 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8014
8015 if test "x$supports_anon_versioning" = xyes; then
8016 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8017 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8018 echo "local: *; };" >> $output_objdir/$libname.ver~
8019 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8020 fi
00aafda4 8021
8022 case $cc_basename in
8023 xlf*)
8024 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8025 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8026 hardcode_libdir_flag_spec=
8027 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8028 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8029 if test "x$supports_anon_versioning" = xyes; then
8030 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8031 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8032 echo "local: *; };" >> $output_objdir/$libname.ver~
8033 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8034 fi
8035 ;;
8036 esac
542f9784 8037 else
8038 ld_shlibs=no
8039 fi
8040 ;;
8041
8042 netbsd*)
8043 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8044 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8045 wlarc=
8046 else
8047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8049 fi
8050 ;;
8051
8052 solaris*)
8053 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8054 ld_shlibs=no
8055 cat <<_LT_EOF 1>&2
8056
8057*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8058*** create shared libraries on Solaris systems. Therefore, libtool
8059*** is disabling shared libraries support. We urge you to upgrade GNU
8060*** binutils to release 2.9.1 or newer. Another option is to modify
8061*** your PATH or compiler configuration so that the native linker is
8062*** used, and then restart.
8063
8064_LT_EOF
8065 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8067 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8068 else
8069 ld_shlibs=no
8070 fi
8071 ;;
8072
8073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8074 case `$LD -v 2>&1` in
8075 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8076 ld_shlibs=no
8077 cat <<_LT_EOF 1>&2
8078
8079*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8080*** reliably create shared libraries on SCO systems. Therefore, libtool
8081*** is disabling shared libraries support. We urge you to upgrade GNU
8082*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8083*** your PATH or compiler configuration so that the native linker is
8084*** used, and then restart.
8085
8086_LT_EOF
8087 ;;
8088 *)
8089 # For security reasons, it is highly recommended that you always
8090 # use absolute paths for naming shared libraries, and exclude the
8091 # DT_RUNPATH tag from executables and libraries. But doing so
8092 # requires that you compile everything twice, which is a pain.
8093 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8096 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8097 else
8098 ld_shlibs=no
8099 fi
8100 ;;
8101 esac
8102 ;;
8103
8104 sunos4*)
8105 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8106 wlarc=
8107 hardcode_direct=yes
8108 hardcode_shlibpath_var=no
8109 ;;
8110
8111 *)
8112 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8114 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8115 else
8116 ld_shlibs=no
8117 fi
8118 ;;
8119 esac
8120
8121 if test "$ld_shlibs" = no; then
8122 runpath_var=
8123 hardcode_libdir_flag_spec=
8124 export_dynamic_flag_spec=
8125 whole_archive_flag_spec=
8126 fi
8127 else
8128 # PORTME fill in a description of your system's linker (not GNU ld)
8129 case $host_os in
8130 aix3*)
8131 allow_undefined_flag=unsupported
8132 always_export_symbols=yes
8133 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'
8134 # Note: this linker hardcodes the directories in LIBPATH if there
8135 # are no directories specified by -L.
8136 hardcode_minus_L=yes
8137 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8138 # Neither direct hardcoding nor static linking is supported with a
8139 # broken collect2.
8140 hardcode_direct=unsupported
8141 fi
8142 ;;
8143
21e07d2f 8144 aix[4-9]*)
542f9784 8145 if test "$host_cpu" = ia64; then
8146 # On IA64, the linker does run time linking by default, so we don't
8147 # have to do anything special.
8148 aix_use_runtimelinking=no
8149 exp_sym_flag='-Bexport'
8150 no_entry_flag=""
8151 else
8152 # If we're using GNU nm, then we don't want the "-C" option.
8153 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8154 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8155 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'
8156 else
8157 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'
8158 fi
8159 aix_use_runtimelinking=no
8160
8161 # Test if we are trying to use run time linking or normal
8162 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8163 # need to do runtime linking.
21e07d2f 8164 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 8165 for ld_flag in $LDFLAGS; do
8166 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8167 aix_use_runtimelinking=yes
8168 break
8169 fi
8170 done
8171 ;;
8172 esac
8173
8174 exp_sym_flag='-bexport'
8175 no_entry_flag='-bnoentry'
8176 fi
8177
8178 # When large executables or shared objects are built, AIX ld can
8179 # have problems creating the table of contents. If linking a library
8180 # or program results in "error TOC overflow" add -mminimal-toc to
8181 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8182 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8183
8184 archive_cmds=''
8185 hardcode_direct=yes
8186 hardcode_direct_absolute=yes
8187 hardcode_libdir_separator=':'
8188 link_all_deplibs=yes
8189 file_list_spec='${wl}-f,'
8190
8191 if test "$GCC" = yes; then
8192 case $host_os in aix4.[012]|aix4.[012].*)
8193 # We only want to do this on AIX 4.2 and lower, the check
8194 # below for broken collect2 doesn't work under 4.3+
8195 collect2name=`${CC} -print-prog-name=collect2`
8196 if test -f "$collect2name" &&
8197 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8198 then
8199 # We have reworked collect2
8200 :
8201 else
8202 # We have old collect2
8203 hardcode_direct=unsupported
8204 # It fails to find uninstalled libraries when the uninstalled
8205 # path is not listed in the libpath. Setting hardcode_minus_L
8206 # to unsupported forces relinking
8207 hardcode_minus_L=yes
8208 hardcode_libdir_flag_spec='-L$libdir'
8209 hardcode_libdir_separator=
8210 fi
8211 ;;
8212 esac
8213 shared_flag='-shared'
8214 if test "$aix_use_runtimelinking" = yes; then
8215 shared_flag="$shared_flag "'${wl}-G'
8216 fi
8217 else
8218 # not using gcc
8219 if test "$host_cpu" = ia64; then
8220 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8221 # chokes on -Wl,-G. The following line is correct:
8222 shared_flag='-G'
8223 else
8224 if test "$aix_use_runtimelinking" = yes; then
8225 shared_flag='${wl}-G'
8226 else
8227 shared_flag='${wl}-bM:SRE'
8228 fi
8229 fi
8230 fi
8231
00aafda4 8232 export_dynamic_flag_spec='${wl}-bexpall'
542f9784 8233 # It seems that -bexpall does not export symbols beginning with
8234 # underscore (_), so it is better to generate a list of symbols to export.
8235 always_export_symbols=yes
8236 if test "$aix_use_runtimelinking" = yes; then
8237 # Warning - without using the other runtime loading flags (-brtl),
8238 # -berok will link without error, but may produce a broken library.
8239 allow_undefined_flag='-berok'
8240 # Determine the default libpath from the value encoded in an
8241 # empty executable.
8242 if test x$gcc_no_link = xyes; then
8243 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8244echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8245 { (exit 1); exit 1; }; }
8246fi
8247cat >conftest.$ac_ext <<_ACEOF
8248/* confdefs.h. */
8249_ACEOF
8250cat confdefs.h >>conftest.$ac_ext
8251cat >>conftest.$ac_ext <<_ACEOF
8252/* end confdefs.h. */
8253
8254int
8255main ()
8256{
8257
8258 ;
8259 return 0;
8260}
8261_ACEOF
8262rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 8263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264 (eval $ac_link) 2>conftest.er1
542f9784 8265 ac_status=$?
8266 grep -v '^ *+' conftest.er1 >conftest.err
8267 rm -f conftest.er1
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 8270 (exit $ac_status); } &&
8271 { ac_try='test -z "$ac_c_werror_flag"
8272 || test ! -s conftest.err'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 (eval $ac_try) 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; } &&
8278 { ac_try='test -s conftest$ac_exeext'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 (eval $ac_try) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
542f9784 8284
8285lt_aix_libpath_sed='
8286 /Import File Strings/,/^$/ {
8287 /^0/ {
8288 s/^0 *\(.*\)$/\1/
8289 p
8290 }
8291 }'
8292aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8293# Check for a 64-bit object if we didn't find anything.
8294if test -z "$aix_libpath"; then
8295 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8296fi
8297else
8298 echo "$as_me: failed program was:" >&5
8299sed 's/^/| /' conftest.$ac_ext >&5
8300
8301fi
82eaf560 8302rm -f conftest.err conftest.$ac_objext \
542f9784 8303 conftest$ac_exeext conftest.$ac_ext
8304if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8305
8306 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8307 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"
8308 else
8309 if test "$host_cpu" = ia64; then
8310 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8311 allow_undefined_flag="-z nodefs"
8312 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"
8313 else
8314 # Determine the default libpath from the value encoded in an
8315 # empty executable.
8316 if test x$gcc_no_link = xyes; then
8317 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8318echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8319 { (exit 1); exit 1; }; }
8320fi
8321cat >conftest.$ac_ext <<_ACEOF
8322/* confdefs.h. */
8323_ACEOF
8324cat confdefs.h >>conftest.$ac_ext
8325cat >>conftest.$ac_ext <<_ACEOF
8326/* end confdefs.h. */
8327
8328int
8329main ()
8330{
8331
8332 ;
8333 return 0;
8334}
8335_ACEOF
8336rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 8337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338 (eval $ac_link) 2>conftest.er1
542f9784 8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 8344 (exit $ac_status); } &&
8345 { ac_try='test -z "$ac_c_werror_flag"
8346 || test ! -s conftest.err'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 (eval $ac_try) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try='test -s conftest$ac_exeext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
542f9784 8358
8359lt_aix_libpath_sed='
8360 /Import File Strings/,/^$/ {
8361 /^0/ {
8362 s/^0 *\(.*\)$/\1/
8363 p
8364 }
8365 }'
8366aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8367# Check for a 64-bit object if we didn't find anything.
8368if test -z "$aix_libpath"; then
8369 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8370fi
8371else
8372 echo "$as_me: failed program was:" >&5
8373sed 's/^/| /' conftest.$ac_ext >&5
8374
8375fi
82eaf560 8376rm -f conftest.err conftest.$ac_objext \
542f9784 8377 conftest$ac_exeext conftest.$ac_ext
8378if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8379
8380 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8381 # Warning - without using the other run time loading flags,
8382 # -berok will link without error, but may produce a broken library.
8383 no_undefined_flag=' ${wl}-bernotok'
8384 allow_undefined_flag=' ${wl}-berok'
8385 # Exported symbols can be pulled into shared objects from archives
8386 whole_archive_flag_spec='$convenience'
8387 archive_cmds_need_lc=yes
8388 # This is similar to how AIX traditionally builds its shared libraries.
8389 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'
8390 fi
8391 fi
8392 ;;
8393
8394 amigaos*)
00aafda4 8395 case $host_cpu in
8396 powerpc)
8397 # see comment about AmigaOS4 .so support
8398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8399 archive_expsym_cmds=''
8400 ;;
8401 m68k)
8402 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)'
8403 hardcode_libdir_flag_spec='-L$libdir'
8404 hardcode_minus_L=yes
8405 ;;
8406 esac
542f9784 8407 ;;
8408
8409 bsdi[45]*)
8410 export_dynamic_flag_spec=-rdynamic
8411 ;;
8412
00aafda4 8413 cygwin* | mingw* | pw32* | cegcc*)
542f9784 8414 # When not using gcc, we currently assume that we are using
8415 # Microsoft Visual C++.
8416 # hardcode_libdir_flag_spec is actually meaningless, as there is
8417 # no search path for DLLs.
8418 hardcode_libdir_flag_spec=' '
8419 allow_undefined_flag=unsupported
8420 # Tell ltmain to make .lib files, not .a files.
8421 libext=lib
8422 # Tell ltmain to make .dll files, not .so files.
8423 shrext_cmds=".dll"
8424 # FIXME: Setting linknames here is a bad hack.
8425 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8426 # The linker will automatically build a .lib file if we build a DLL.
8427 old_archive_from_new_cmds='true'
8428 # FIXME: Should let the user specify the lib program.
8429 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8430 fix_srcfile_path='`cygpath -w "$srcfile"`'
8431 enable_shared_with_static_runtimes=yes
8432 ;;
8433
8434 darwin* | rhapsody*)
542f9784 8435
00aafda4 8436
8437 archive_cmds_need_lc=no
8438 hardcode_direct=no
8439 hardcode_automatic=yes
8440 hardcode_shlibpath_var=unsupported
8441 whole_archive_flag_spec=''
8442 link_all_deplibs=yes
8443 allow_undefined_flag="$_lt_dar_allow_undefined"
8444 case $cc_basename in
8445 ifort*) _lt_dar_can_shared=yes ;;
8446 *) _lt_dar_can_shared=$GCC ;;
8447 esac
8448 if test "$_lt_dar_can_shared" = "yes"; then
8449 output_verbose_link_cmd=echo
8450 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8451 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8452 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8453 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8454
8455 else
8456 ld_shlibs=no
8457 fi
8458
542f9784 8459 ;;
8460
8461 dgux*)
8462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8463 hardcode_libdir_flag_spec='-L$libdir'
8464 hardcode_shlibpath_var=no
8465 ;;
8466
8467 freebsd1*)
8468 ld_shlibs=no
8469 ;;
8470
8471 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8472 # support. Future versions do this automatically, but an explicit c++rt0.o
8473 # does not break anything, and helps significantly (at the cost of a little
8474 # extra space).
8475 freebsd2.2*)
8476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8477 hardcode_libdir_flag_spec='-R$libdir'
8478 hardcode_direct=yes
8479 hardcode_shlibpath_var=no
8480 ;;
8481
8482 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8483 freebsd2*)
8484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8485 hardcode_direct=yes
8486 hardcode_minus_L=yes
8487 hardcode_shlibpath_var=no
8488 ;;
8489
8490 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8491 freebsd* | dragonfly*)
8492 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8493 hardcode_libdir_flag_spec='-R$libdir'
8494 hardcode_direct=yes
8495 hardcode_shlibpath_var=no
8496 ;;
8497
8498 hpux9*)
8499 if test "$GCC" = yes; then
8500 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'
8501 else
8502 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'
8503 fi
8504 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8505 hardcode_libdir_separator=:
8506 hardcode_direct=yes
8507
8508 # hardcode_minus_L: Not really in the search PATH,
8509 # but as the default location of the library.
8510 hardcode_minus_L=yes
8511 export_dynamic_flag_spec='${wl}-E'
8512 ;;
8513
8514 hpux10*)
8515 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8516 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8517 else
8518 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8519 fi
8520 if test "$with_gnu_ld" = no; then
8521 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8522 hardcode_libdir_flag_spec_ld='+b $libdir'
8523 hardcode_libdir_separator=:
8524 hardcode_direct=yes
8525 hardcode_direct_absolute=yes
8526 export_dynamic_flag_spec='${wl}-E'
8527 # hardcode_minus_L: Not really in the search PATH,
8528 # but as the default location of the library.
8529 hardcode_minus_L=yes
8530 fi
8531 ;;
8532
8533 hpux11*)
8534 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8535 case $host_cpu in
8536 hppa*64*)
8537 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8538 ;;
8539 ia64*)
00aafda4 8540 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 8541 ;;
8542 *)
8543 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8544 ;;
8545 esac
8546 else
8547 case $host_cpu in
8548 hppa*64*)
8549 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8550 ;;
8551 ia64*)
8552 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8553 ;;
8554 *)
8555 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8556 ;;
8557 esac
8558 fi
8559 if test "$with_gnu_ld" = no; then
8560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8561 hardcode_libdir_separator=:
8562
8563 case $host_cpu in
8564 hppa*64*|ia64*)
8565 hardcode_direct=no
8566 hardcode_shlibpath_var=no
8567 ;;
8568 *)
8569 hardcode_direct=yes
8570 hardcode_direct_absolute=yes
8571 export_dynamic_flag_spec='${wl}-E'
8572
8573 # hardcode_minus_L: Not really in the search PATH,
8574 # but as the default location of the library.
8575 hardcode_minus_L=yes
8576 ;;
8577 esac
8578 fi
8579 ;;
8580
8581 irix5* | irix6* | nonstopux*)
8582 if test "$GCC" = yes; then
8583 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'
8584 # Try to use the -exported_symbol ld option, if it does not
8585 # work, assume that -exports_file does not work either and
8586 # implicitly export all symbols.
8587 save_LDFLAGS="$LDFLAGS"
8588 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8589 if test x$gcc_no_link = xyes; then
8590 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8591echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8592 { (exit 1); exit 1; }; }
8593fi
8594cat >conftest.$ac_ext <<_ACEOF
8595int foo(void) {}
8596_ACEOF
8597rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 8598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8599 (eval $ac_link) 2>conftest.er1
542f9784 8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 8605 (exit $ac_status); } &&
8606 { ac_try='test -z "$ac_c_werror_flag"
8607 || test ! -s conftest.err'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; } &&
8613 { ac_try='test -s conftest$ac_exeext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
542f9784 8619 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'
8620
8621else
8622 echo "$as_me: failed program was:" >&5
8623sed 's/^/| /' conftest.$ac_ext >&5
8624
8625fi
82eaf560 8626rm -f conftest.err conftest.$ac_objext \
542f9784 8627 conftest$ac_exeext conftest.$ac_ext
8628 LDFLAGS="$save_LDFLAGS"
8629 else
8630 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'
8631 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'
8632 fi
8633 archive_cmds_need_lc='no'
8634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8635 hardcode_libdir_separator=:
8636 inherit_rpath=yes
8637 link_all_deplibs=yes
8638 ;;
8639
8640 netbsd*)
8641 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8643 else
8644 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8645 fi
8646 hardcode_libdir_flag_spec='-R$libdir'
8647 hardcode_direct=yes
8648 hardcode_shlibpath_var=no
8649 ;;
8650
8651 newsos6)
8652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8653 hardcode_direct=yes
8654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655 hardcode_libdir_separator=:
8656 hardcode_shlibpath_var=no
8657 ;;
8658
8659 *nto* | *qnx*)
8660 ;;
8661
8662 openbsd*)
00aafda4 8663 if test -f /usr/libexec/ld.so; then
8664 hardcode_direct=yes
8665 hardcode_shlibpath_var=no
8666 hardcode_direct_absolute=yes
8667 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 8668 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
00aafda4 8669 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 8670 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
00aafda4 8671 export_dynamic_flag_spec='${wl}-E'
8672 else
8673 case $host_os in
8674 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8676 hardcode_libdir_flag_spec='-R$libdir'
8677 ;;
8678 *)
8679 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8680 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8681 ;;
8682 esac
8683 fi
8684 else
8685 ld_shlibs=no
542f9784 8686 fi
8687 ;;
8688
8689 os2*)
8690 hardcode_libdir_flag_spec='-L$libdir'
8691 hardcode_minus_L=yes
8692 allow_undefined_flag=unsupported
8693 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'
8694 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8695 ;;
8696
8697 osf3*)
8698 if test "$GCC" = yes; then
8699 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8700 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'
8701 else
8702 allow_undefined_flag=' -expect_unresolved \*'
8703 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'
8704 fi
8705 archive_cmds_need_lc='no'
8706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8707 hardcode_libdir_separator=:
8708 ;;
8709
8710 osf4* | osf5*) # as osf3* with the addition of -msym flag
8711 if test "$GCC" = yes; then
8712 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8713 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'
8714 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8715 else
8716 allow_undefined_flag=' -expect_unresolved \*'
8717 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'
8718 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~
8719 $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'
8720
8721 # Both c and cxx compiler support -rpath directly
8722 hardcode_libdir_flag_spec='-rpath $libdir'
8723 fi
8724 archive_cmds_need_lc='no'
8725 hardcode_libdir_separator=:
8726 ;;
8727
8728 solaris*)
8729 no_undefined_flag=' -z defs'
8730 if test "$GCC" = yes; then
8731 wlarc='${wl}'
8732 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8733 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8734 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8735 else
8736 case `$CC -V 2>&1` in
8737 *"Compilers 5.0"*)
8738 wlarc=''
8739 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8741 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8742 ;;
8743 *)
8744 wlarc='${wl}'
8745 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8746 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8747 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8748 ;;
8749 esac
8750 fi
8751 hardcode_libdir_flag_spec='-R$libdir'
8752 hardcode_shlibpath_var=no
8753 case $host_os in
8754 solaris2.[0-5] | solaris2.[0-5].*) ;;
8755 *)
8756 # The compiler driver will combine and reorder linker options,
8757 # but understands `-z linker_flag'. GCC discards it without `$wl',
8758 # but is careful enough not to reorder.
8759 # Supported since Solaris 2.6 (maybe 2.5.1?)
8760 if test "$GCC" = yes; then
8761 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8762 else
8763 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8764 fi
8765 ;;
8766 esac
8767 link_all_deplibs=yes
8768 ;;
8769
8770 sunos4*)
8771 if test "x$host_vendor" = xsequent; then
8772 # Use $CC to link under sequent, because it throws in some extra .o
8773 # files that make .init and .fini sections work.
8774 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8775 else
8776 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8777 fi
8778 hardcode_libdir_flag_spec='-L$libdir'
8779 hardcode_direct=yes
8780 hardcode_minus_L=yes
8781 hardcode_shlibpath_var=no
8782 ;;
8783
8784 sysv4)
8785 case $host_vendor in
8786 sni)
8787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8788 hardcode_direct=yes # is this really true???
8789 ;;
8790 siemens)
8791 ## LD is ld it makes a PLAMLIB
8792 ## CC just makes a GrossModule.
8793 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8794 reload_cmds='$CC -r -o $output$reload_objs'
8795 hardcode_direct=no
8796 ;;
8797 motorola)
8798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8800 ;;
8801 esac
8802 runpath_var='LD_RUN_PATH'
8803 hardcode_shlibpath_var=no
8804 ;;
8805
8806 sysv4.3*)
8807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808 hardcode_shlibpath_var=no
8809 export_dynamic_flag_spec='-Bexport'
8810 ;;
8811
8812 sysv4*MP*)
8813 if test -d /usr/nec; then
8814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8815 hardcode_shlibpath_var=no
8816 runpath_var=LD_RUN_PATH
8817 hardcode_runpath_var=yes
8818 ld_shlibs=yes
8819 fi
8820 ;;
8821
8822 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8823 no_undefined_flag='${wl}-z,text'
8824 archive_cmds_need_lc=no
8825 hardcode_shlibpath_var=no
8826 runpath_var='LD_RUN_PATH'
8827
8828 if test "$GCC" = yes; then
8829 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8830 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8831 else
8832 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8833 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8834 fi
8835 ;;
8836
8837 sysv5* | sco3.2v5* | sco5v6*)
8838 # Note: We can NOT use -z defs as we might desire, because we do not
8839 # link with -lc, and that would cause any symbols used from libc to
8840 # always be unresolved, which means just about no library would
8841 # ever link correctly. If we're not using GNU ld we use -z text
8842 # though, which does catch some bad symbols but isn't as heavy-handed
8843 # as -z defs.
8844 no_undefined_flag='${wl}-z,text'
8845 allow_undefined_flag='${wl}-z,nodefs'
8846 archive_cmds_need_lc=no
8847 hardcode_shlibpath_var=no
8848 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8849 hardcode_libdir_separator=':'
8850 link_all_deplibs=yes
8851 export_dynamic_flag_spec='${wl}-Bexport'
8852 runpath_var='LD_RUN_PATH'
8853
8854 if test "$GCC" = yes; then
8855 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8856 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8857 else
8858 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8859 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8860 fi
8861 ;;
8862
8863 uts4*)
8864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865 hardcode_libdir_flag_spec='-L$libdir'
8866 hardcode_shlibpath_var=no
8867 ;;
8868
8869 *)
8870 ld_shlibs=no
8871 ;;
8872 esac
8873
8874 if test x$host_vendor = xsni; then
8875 case $host in
8876 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8877 export_dynamic_flag_spec='${wl}-Blargedynsym'
8878 ;;
8879 esac
8880 fi
8881 fi
8882
82eaf560 8883echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8884echo "${ECHO_T}$ld_shlibs" >&6
542f9784 8885test "$ld_shlibs" = no && can_build_shared=no
8886
8887with_gnu_ld=$with_gnu_ld
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903#
8904# Do we need to explicitly link libc?
8905#
8906case "x$archive_cmds_need_lc" in
8907x|xyes)
8908 # Assume -lc should be added
8909 archive_cmds_need_lc=yes
8910
8911 if test "$enable_shared" = yes && test "$GCC" = yes; then
8912 case $archive_cmds in
8913 *'~'*)
8914 # FIXME: we may have to deal with multi-command sequences.
8915 ;;
8916 '$CC '*)
8917 # Test whether the compiler implicitly links with -lc since on some
8918 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8919 # to ld, don't add -lc before -lgcc.
82eaf560 8920 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8921echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9e6fd619 8922if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924else
8925 $RM conftest*
8926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 8927
9e6fd619 8928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
542f9784 8929 (eval $ac_compile) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } 2>conftest.err; then
9e6fd619 8933 soname=conftest
8934 lib=conftest
8935 libobjs=conftest.$ac_objext
8936 deplibs=
8937 wl=$lt_prog_compiler_wl
8938 pic_flag=$lt_prog_compiler_pic
8939 compiler_flags=-v
8940 linker_flags=-v
8941 verstring=
8942 output_objdir=.
8943 libname=conftest
8944 lt_save_allow_undefined_flag=$allow_undefined_flag
8945 allow_undefined_flag=
8946 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
542f9784 8947 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }
9e6fd619 8951 then
8952 lt_cv_archive_cmds_need_lc=no
8953 else
8954 lt_cv_archive_cmds_need_lc=yes
8955 fi
8956 allow_undefined_flag=$lt_save_allow_undefined_flag
8957 else
8958 cat conftest.err 1>&5
8959 fi
8960 $RM conftest*
8961
8962fi
8963echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8964echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8965 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
542f9784 8966 ;;
8967 esac
8968 fi
8969 ;;
8970esac
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
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
82eaf560 9128 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9129echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
00aafda4 9130
9131if test "$GCC" = yes; then
542f9784 9132 case $host_os in
9133 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9134 *) lt_awk_arg="/^libraries:/" ;;
9135 esac
9136 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9137 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9138 # if the path contains ";" then we assume it to be the separator
9139 # otherwise default to the standard path separator (i.e. ":") - it is
9140 # assumed that no part of a normal pathname contains ";" but that should
9141 # okay in the real world where ";" in dirpaths is itself problematic.
9142 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9143 else
9144 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9145 fi
9146 # Ok, now we have the path, separated by spaces, we can step through it
9147 # and add multilib dir if necessary.
9148 lt_tmp_lt_search_path_spec=
9149 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9150 for lt_sys_path in $lt_search_path_spec; do
9151 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9152 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9153 else
9154 test -d "$lt_sys_path" && \
9155 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9156 fi
9157 done
9158 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9159BEGIN {RS=" "; FS="/|\n";} {
9160 lt_foo="";
9161 lt_count=0;
9162 for (lt_i = NF; lt_i > 0; lt_i--) {
9163 if ($lt_i != "" && $lt_i != ".") {
9164 if ($lt_i == "..") {
9165 lt_count++;
9166 } else {
9167 if (lt_count == 0) {
9168 lt_foo="/" $lt_i lt_foo;
9169 } else {
9170 lt_count--;
9171 }
9172 }
9173 }
9174 }
9175 if (lt_foo != "") { lt_freq[lt_foo]++; }
9176 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9177}'`
9178 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9179else
9180 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9181fi
9182library_names_spec=
9183libname_spec='lib$name'
9184soname_spec=
9185shrext_cmds=".so"
9186postinstall_cmds=
9187postuninstall_cmds=
9188finish_cmds=
9189finish_eval=
9190shlibpath_var=
9191shlibpath_overrides_runpath=unknown
9192version_type=none
9193dynamic_linker="$host_os ld.so"
9194sys_lib_dlsearch_path_spec="/lib /usr/lib"
9195need_lib_prefix=unknown
9196hardcode_into_libs=no
9197
9198# when you set need_version to no, make sure it does not cause -set_version
9199# flags to be left without arguments
9200need_version=unknown
9201
9202case $host_os in
9203aix3*)
9204 version_type=linux
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9206 shlibpath_var=LIBPATH
9207
9208 # AIX 3 has no versioning support, so we append a major version to the name.
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 ;;
9211
21e07d2f 9212aix[4-9]*)
542f9784 9213 version_type=linux
9214 need_lib_prefix=no
9215 need_version=no
9216 hardcode_into_libs=yes
9217 if test "$host_cpu" = ia64; then
9218 # AIX 5 supports IA64
9219 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 else
9222 # With GCC up to 2.95.x, collect2 would create an import file
9223 # for dependence libraries. The import file would start with
9224 # the line `#! .'. This would cause the generated library to
9225 # depend on `.', always an invalid library. This was fixed in
9226 # development snapshots of GCC prior to 3.0.
9227 case $host_os in
9228 aix4 | aix4.[01] | aix4.[01].*)
9229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9230 echo ' yes '
9231 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9232 :
9233 else
9234 can_build_shared=no
9235 fi
9236 ;;
9237 esac
9238 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9239 # soname into executable. Probably we can add versioning support to
9240 # collect2, so additional links can be useful in future.
9241 if test "$aix_use_runtimelinking" = yes; then
9242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9243 # instead of lib<name>.a to let people know that these are not
9244 # typical AIX shared libraries.
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246 else
9247 # We preserve .a as extension for shared libraries through AIX4.2
9248 # and later when we are not doing run time linking.
9249 library_names_spec='${libname}${release}.a $libname.a'
9250 soname_spec='${libname}${release}${shared_ext}$major'
9251 fi
9252 shlibpath_var=LIBPATH
9253 fi
9254 ;;
9255
9256amigaos*)
00aafda4 9257 case $host_cpu in
9258 powerpc)
9259 # Since July 2007 AmigaOS4 officially supports .so libraries.
9260 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262 ;;
9263 m68k)
542f9784 9264 library_names_spec='$libname.ixlibrary $libname.a'
9265 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9266 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'
00aafda4 9267 ;;
9268 esac
542f9784 9269 ;;
9270
9271beos*)
9272 library_names_spec='${libname}${shared_ext}'
9273 dynamic_linker="$host_os ld.so"
9274 shlibpath_var=LIBRARY_PATH
9275 ;;
9276
9277bsdi[45]*)
9278 version_type=linux
9279 need_version=no
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9283 shlibpath_var=LD_LIBRARY_PATH
9284 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9285 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9286 # the default ld.so.conf also contains /usr/contrib/lib and
9287 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9288 # libtool to hard-code these into programs
9289 ;;
9290
00aafda4 9291cygwin* | mingw* | pw32* | cegcc*)
542f9784 9292 version_type=windows
9293 shrext_cmds=".dll"
9294 need_version=no
9295 need_lib_prefix=no
9296
00aafda4 9297 case $GCC,$host_os in
9298 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 9299 library_names_spec='$libname.dll.a'
9300 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9301 postinstall_cmds='base_file=`basename \${file}`~
9302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9303 dldir=$destdir/`dirname \$dlpath`~
9304 test -d \$dldir || mkdir -p \$dldir~
9305 $install_prog $dir/$dlname \$dldir/$dlname~
9306 chmod a+x \$dldir/$dlname~
9307 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9308 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9309 fi'
9310 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9311 dlpath=$dir/\$dldll~
9312 $RM \$dlpath'
9313 shlibpath_overrides_runpath=yes
9314
9315 case $host_os in
9316 cygwin*)
9317 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9318 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9319 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9320 ;;
00aafda4 9321 mingw* | cegcc*)
542f9784 9322 # MinGW DLLs use traditional 'lib' prefix
9323 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9324 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9325 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9326 # It is most probably a Windows format PATH printed by
9327 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9328 # path with ; separators, and with drive letters. We can handle the
9329 # drive letters (cygwin fileutils understands them), so leave them,
9330 # especially as we might pass files found there to a mingw objdump,
9331 # which wouldn't understand a cygwinified path. Ahh.
9332 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9333 else
9334 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9335 fi
9336 ;;
9337 pw32*)
9338 # pw32 DLLs use 'pw' prefix rather than 'lib'
9339 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9340 ;;
9341 esac
9342 ;;
9343
9344 *)
9345 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9346 ;;
9347 esac
9348 dynamic_linker='Win32 ld.exe'
9349 # FIXME: first we should search . and the directory the executable is in
9350 shlibpath_var=PATH
9351 ;;
9352
9353darwin* | rhapsody*)
9354 dynamic_linker="$host_os dyld"
9355 version_type=darwin
9356 need_lib_prefix=no
9357 need_version=no
9358 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9359 soname_spec='${libname}${release}${major}$shared_ext'
9360 shlibpath_overrides_runpath=yes
9361 shlibpath_var=DYLD_LIBRARY_PATH
9362 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9363
9364 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9365 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9366 ;;
9367
9368dgux*)
9369 version_type=linux
9370 need_lib_prefix=no
9371 need_version=no
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 shlibpath_var=LD_LIBRARY_PATH
9375 ;;
9376
9377freebsd1*)
9378 dynamic_linker=no
9379 ;;
9380
9381freebsd* | dragonfly*)
9382 # DragonFly does not have aout. When/if they implement a new
9383 # versioning mechanism, adjust this.
9384 if test -x /usr/bin/objformat; then
9385 objformat=`/usr/bin/objformat`
9386 else
9387 case $host_os in
9388 freebsd[123]*) objformat=aout ;;
9389 *) objformat=elf ;;
9390 esac
9391 fi
9392 version_type=freebsd-$objformat
9393 case $version_type in
9394 freebsd-elf*)
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9396 need_version=no
9397 need_lib_prefix=no
9398 ;;
9399 freebsd-*)
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9401 need_version=yes
9402 ;;
9403 esac
9404 shlibpath_var=LD_LIBRARY_PATH
9405 case $host_os in
9406 freebsd2*)
9407 shlibpath_overrides_runpath=yes
9408 ;;
9409 freebsd3.[01]* | freebsdelf3.[01]*)
9410 shlibpath_overrides_runpath=yes
9411 hardcode_into_libs=yes
9412 ;;
9413 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9414 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9415 shlibpath_overrides_runpath=no
9416 hardcode_into_libs=yes
9417 ;;
9418 *) # from 4.6 on, and DragonFly
9419 shlibpath_overrides_runpath=yes
9420 hardcode_into_libs=yes
9421 ;;
9422 esac
9423 ;;
9424
9425gnu*)
9426 version_type=linux
9427 need_lib_prefix=no
9428 need_version=no
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 hardcode_into_libs=yes
9433 ;;
9434
9435hpux9* | hpux10* | hpux11*)
9436 # Give a soname corresponding to the major version so that dld.sl refuses to
9437 # link against other versions.
9438 version_type=sunos
9439 need_lib_prefix=no
9440 need_version=no
9441 case $host_cpu in
9442 ia64*)
9443 shrext_cmds='.so'
9444 hardcode_into_libs=yes
9445 dynamic_linker="$host_os dld.so"
9446 shlibpath_var=LD_LIBRARY_PATH
9447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 if test "X$HPUX_IA64_MODE" = X32; then
9451 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9452 else
9453 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9454 fi
9455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9456 ;;
9457 hppa*64*)
9458 shrext_cmds='.sl'
9459 hardcode_into_libs=yes
9460 dynamic_linker="$host_os dld.sl"
9461 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 soname_spec='${libname}${release}${shared_ext}$major'
9465 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9467 ;;
9468 *)
9469 shrext_cmds='.sl'
9470 dynamic_linker="$host_os dld.sl"
9471 shlibpath_var=SHLIB_PATH
9472 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 ;;
9476 esac
9477 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9478 postinstall_cmds='chmod 555 $lib'
9479 ;;
9480
9481interix[3-9]*)
9482 version_type=linux
9483 need_lib_prefix=no
9484 need_version=no
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9486 soname_spec='${libname}${release}${shared_ext}$major'
9487 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9488 shlibpath_var=LD_LIBRARY_PATH
9489 shlibpath_overrides_runpath=no
9490 hardcode_into_libs=yes
9491 ;;
9492
9493irix5* | irix6* | nonstopux*)
9494 case $host_os in
9495 nonstopux*) version_type=nonstopux ;;
9496 *)
9497 if test "$lt_cv_prog_gnu_ld" = yes; then
9498 version_type=linux
9499 else
9500 version_type=irix
9501 fi ;;
9502 esac
9503 need_lib_prefix=no
9504 need_version=no
9505 soname_spec='${libname}${release}${shared_ext}$major'
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9507 case $host_os in
9508 irix5* | nonstopux*)
9509 libsuff= shlibsuff=
9510 ;;
9511 *)
9512 case $LD in # libtool.m4 will add one of these switches to LD
9513 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9514 libsuff= shlibsuff= libmagic=32-bit;;
9515 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9516 libsuff=32 shlibsuff=N32 libmagic=N32;;
9517 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9518 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9519 *) libsuff= shlibsuff= libmagic=never-match;;
9520 esac
9521 ;;
9522 esac
9523 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9524 shlibpath_overrides_runpath=no
9525 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9526 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9527 hardcode_into_libs=yes
9528 ;;
9529
9530# No shared lib support for Linux oldld, aout, or coff.
9531linux*oldld* | linux*aout* | linux*coff*)
9532 dynamic_linker=no
9533 ;;
9534
9535# This must be Linux ELF.
9536linux* | k*bsd*-gnu)
9537 version_type=linux
9538 need_lib_prefix=no
9539 need_version=no
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9543 shlibpath_var=LD_LIBRARY_PATH
9544 shlibpath_overrides_runpath=no
9e6fd619 9545
542f9784 9546 # Some binutils ld are patched to set DT_RUNPATH
9e6fd619 9547 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9549else
9550 lt_cv_shlibpath_overrides_runpath=no
9551 save_LDFLAGS=$LDFLAGS
9552 save_libdir=$libdir
9553 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9554 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9555 if test x$gcc_no_link = xyes; then
542f9784 9556 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9557echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9558 { (exit 1); exit 1; }; }
9559fi
9560cat >conftest.$ac_ext <<_ACEOF
9561/* confdefs.h. */
9562_ACEOF
9563cat confdefs.h >>conftest.$ac_ext
9564cat >>conftest.$ac_ext <<_ACEOF
9565/* end confdefs.h. */
9566
9567int
9568main ()
9569{
9570
9571 ;
9572 return 0;
9573}
9574_ACEOF
9575rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 9576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9577 (eval $ac_link) 2>conftest.er1
542f9784 9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 9583 (exit $ac_status); } &&
9584 { ac_try='test -z "$ac_c_werror_flag"
9585 || test ! -s conftest.err'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 (eval $ac_try) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; } &&
9591 { ac_try='test -s conftest$ac_exeext'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 (eval $ac_try) 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; }; then
00aafda4 9597 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9e6fd619 9598 lt_cv_shlibpath_overrides_runpath=yes
542f9784 9599fi
9600
9601else
9602 echo "$as_me: failed program was:" >&5
9603sed 's/^/| /' conftest.$ac_ext >&5
9604
9605fi
82eaf560 9606rm -f conftest.err conftest.$ac_objext \
542f9784 9607 conftest$ac_exeext conftest.$ac_ext
9e6fd619 9608 LDFLAGS=$save_LDFLAGS
9609 libdir=$save_libdir
9610
9611fi
9612
9613 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 9614
9615 # This implies no fast_install, which is unacceptable.
9616 # Some rework will be needed to allow for fast_install
9617 # before this can be enabled.
9618 hardcode_into_libs=yes
9619
9620 # Append ld.so.conf contents to the search path
9621 if test -f /etc/ld.so.conf; then
00aafda4 9622 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
542f9784 9623 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9624 fi
9625
9626 # We used to test for /lib/ld.so.1 and disable shared libraries on
9627 # powerpc, because MkLinux only supported shared libraries with the
9628 # GNU dynamic linker. Since this was broken with cross compilers,
9629 # most powerpc-linux boxes support dynamic linking these days and
9630 # people can always --disable-shared, the test was removed, and we
9631 # assume the GNU/Linux dynamic linker is in use.
9632 dynamic_linker='GNU/Linux ld.so'
9633 ;;
9634
9635netbsd*)
9636 version_type=sunos
9637 need_lib_prefix=no
9638 need_version=no
9639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9642 dynamic_linker='NetBSD (a.out) ld.so'
9643 else
9644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9645 soname_spec='${libname}${release}${shared_ext}$major'
9646 dynamic_linker='NetBSD ld.elf_so'
9647 fi
9648 shlibpath_var=LD_LIBRARY_PATH
9649 shlibpath_overrides_runpath=yes
9650 hardcode_into_libs=yes
9651 ;;
9652
9653newsos6)
9654 version_type=linux
9655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9656 shlibpath_var=LD_LIBRARY_PATH
9657 shlibpath_overrides_runpath=yes
9658 ;;
9659
9660*nto* | *qnx*)
9661 version_type=qnx
9662 need_lib_prefix=no
9663 need_version=no
9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9665 soname_spec='${libname}${release}${shared_ext}$major'
9666 shlibpath_var=LD_LIBRARY_PATH
9667 shlibpath_overrides_runpath=no
9668 hardcode_into_libs=yes
9669 dynamic_linker='ldqnx.so'
9670 ;;
9671
9672openbsd*)
9673 version_type=sunos
9674 sys_lib_dlsearch_path_spec="/usr/lib"
9675 need_lib_prefix=no
9676 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9677 case $host_os in
9678 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9679 *) need_version=no ;;
9680 esac
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9683 shlibpath_var=LD_LIBRARY_PATH
9684 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9685 case $host_os in
9686 openbsd2.[89] | openbsd2.[89].*)
9687 shlibpath_overrides_runpath=no
9688 ;;
9689 *)
9690 shlibpath_overrides_runpath=yes
9691 ;;
9692 esac
9693 else
9694 shlibpath_overrides_runpath=yes
9695 fi
9696 ;;
9697
9698os2*)
9699 libname_spec='$name'
9700 shrext_cmds=".dll"
9701 need_lib_prefix=no
9702 library_names_spec='$libname${shared_ext} $libname.a'
9703 dynamic_linker='OS/2 ld.exe'
9704 shlibpath_var=LIBPATH
9705 ;;
9706
9707osf3* | osf4* | osf5*)
9708 version_type=osf
9709 need_lib_prefix=no
9710 need_version=no
9711 soname_spec='${libname}${release}${shared_ext}$major'
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713 shlibpath_var=LD_LIBRARY_PATH
9714 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9715 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9716 ;;
9717
9718rdos*)
9719 dynamic_linker=no
9720 ;;
9721
9722solaris*)
9723 version_type=linux
9724 need_lib_prefix=no
9725 need_version=no
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 shlibpath_var=LD_LIBRARY_PATH
9729 shlibpath_overrides_runpath=yes
9730 hardcode_into_libs=yes
9731 # ldd complains unless libraries are executable
9732 postinstall_cmds='chmod +x $lib'
9733 ;;
9734
9735sunos4*)
9736 version_type=sunos
9737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9738 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9739 shlibpath_var=LD_LIBRARY_PATH
9740 shlibpath_overrides_runpath=yes
9741 if test "$with_gnu_ld" = yes; then
9742 need_lib_prefix=no
9743 fi
9744 need_version=yes
9745 ;;
9746
9747sysv4 | sysv4.3*)
9748 version_type=linux
9749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9750 soname_spec='${libname}${release}${shared_ext}$major'
9751 shlibpath_var=LD_LIBRARY_PATH
9752 case $host_vendor in
9753 sni)
9754 shlibpath_overrides_runpath=no
9755 need_lib_prefix=no
9756 runpath_var=LD_RUN_PATH
9757 ;;
9758 siemens)
9759 need_lib_prefix=no
9760 ;;
9761 motorola)
9762 need_lib_prefix=no
9763 need_version=no
9764 shlibpath_overrides_runpath=no
9765 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9766 ;;
9767 esac
9768 ;;
9769
9770sysv4*MP*)
9771 if test -d /usr/nec ;then
9772 version_type=linux
9773 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9774 soname_spec='$libname${shared_ext}.$major'
9775 shlibpath_var=LD_LIBRARY_PATH
9776 fi
9777 ;;
9778
9779sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9780 version_type=freebsd-elf
9781 need_lib_prefix=no
9782 need_version=no
9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9784 soname_spec='${libname}${release}${shared_ext}$major'
9785 shlibpath_var=LD_LIBRARY_PATH
9786 shlibpath_overrides_runpath=yes
9787 hardcode_into_libs=yes
9788 if test "$with_gnu_ld" = yes; then
9789 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9790 else
9791 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9792 case $host_os in
9793 sco3.2v5*)
9794 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9795 ;;
9796 esac
9797 fi
9798 sys_lib_dlsearch_path_spec='/usr/lib'
9799 ;;
9800
9801tpf*)
9802 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9803 version_type=linux
9804 need_lib_prefix=no
9805 need_version=no
00aafda4 9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 9807 shlibpath_var=LD_LIBRARY_PATH
9808 shlibpath_overrides_runpath=no
9809 hardcode_into_libs=yes
9810 ;;
9811
9812uts4*)
9813 version_type=linux
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9815 soname_spec='${libname}${release}${shared_ext}$major'
9816 shlibpath_var=LD_LIBRARY_PATH
9817 ;;
9818
9819*)
9820 dynamic_linker=no
9821 ;;
9822esac
82eaf560 9823echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9824echo "${ECHO_T}$dynamic_linker" >&6
542f9784 9825test "$dynamic_linker" = no && can_build_shared=no
9826
9827variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9828if test "$GCC" = yes; then
9829 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9830fi
9831
00aafda4 9832if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9833 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9834fi
9835if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9836 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9837fi
9838
542f9784 9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
82eaf560 9925 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9926echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
542f9784 9927hardcode_action=
9928if test -n "$hardcode_libdir_flag_spec" ||
9929 test -n "$runpath_var" ||
9930 test "X$hardcode_automatic" = "Xyes" ; then
9931
9932 # We can hardcode non-existent directories.
9933 if test "$hardcode_direct" != no &&
9934 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9935 # have to relink, otherwise we might link with an installed library
9936 # when we should be linking with a yet-to-be-installed one
9937 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9938 test "$hardcode_minus_L" != no; then
9939 # Linking always hardcodes the temporary library directory.
9940 hardcode_action=relink
9941 else
9942 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9943 hardcode_action=immediate
9944 fi
9945else
9946 # We cannot hardcode anything, or else we can only hardcode existing
9947 # directories.
9948 hardcode_action=unsupported
9949fi
82eaf560 9950echo "$as_me:$LINENO: result: $hardcode_action" >&5
9951echo "${ECHO_T}$hardcode_action" >&6
542f9784 9952
9953if test "$hardcode_action" = relink ||
9954 test "$inherit_rpath" = yes; then
9955 # Fast installation is not supported
9956 enable_fast_install=no
9957elif test "$shlibpath_overrides_runpath" = yes ||
9958 test "$enable_shared" = no; then
9959 # Fast installation is not necessary
9960 enable_fast_install=needless
9961fi
9962
9963
9964
9965
9966
9967
9968 if test "x$enable_dlopen" != xyes; then
9969 enable_dlopen=unknown
9970 enable_dlopen_self=unknown
9971 enable_dlopen_self_static=unknown
9972else
9973 lt_cv_dlopen=no
9974 lt_cv_dlopen_libs=
9975
9976 case $host_os in
9977 beos*)
9978 lt_cv_dlopen="load_add_on"
9979 lt_cv_dlopen_libs=
9980 lt_cv_dlopen_self=yes
9981 ;;
9982
00aafda4 9983 mingw* | pw32* | cegcc*)
542f9784 9984 lt_cv_dlopen="LoadLibrary"
9985 lt_cv_dlopen_libs=
9986 ;;
9987
9988 cygwin*)
9989 lt_cv_dlopen="dlopen"
9990 lt_cv_dlopen_libs=
9991 ;;
9992
9993 darwin*)
9994 # if libdl is installed we need to link against it
82eaf560 9995 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9996echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
542f9784 9997if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999else
10000 ac_check_lib_save_LIBS=$LIBS
10001LIBS="-ldl $LIBS"
10002if test x$gcc_no_link = xyes; then
10003 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10004echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10005 { (exit 1); exit 1; }; }
10006fi
10007cat >conftest.$ac_ext <<_ACEOF
10008/* confdefs.h. */
10009_ACEOF
10010cat confdefs.h >>conftest.$ac_ext
10011cat >>conftest.$ac_ext <<_ACEOF
10012/* end confdefs.h. */
10013
82eaf560 10014/* Override any gcc2 internal prototype to avoid an error. */
542f9784 10015#ifdef __cplusplus
10016extern "C"
10017#endif
82eaf560 10018/* We use char because int might match the return type of a gcc2
10019 builtin and then its argument prototype would still apply. */
542f9784 10020char dlopen ();
10021int
10022main ()
10023{
82eaf560 10024dlopen ();
542f9784 10025 ;
10026 return 0;
10027}
10028_ACEOF
10029rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 10030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10031 (eval $ac_link) 2>conftest.er1
542f9784 10032 ac_status=$?
10033 grep -v '^ *+' conftest.er1 >conftest.err
10034 rm -f conftest.er1
10035 cat conftest.err >&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 10037 (exit $ac_status); } &&
10038 { ac_try='test -z "$ac_c_werror_flag"
10039 || test ! -s conftest.err'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try='test -s conftest$ac_exeext'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
542f9784 10051 ac_cv_lib_dl_dlopen=yes
10052else
10053 echo "$as_me: failed program was:" >&5
10054sed 's/^/| /' conftest.$ac_ext >&5
10055
82eaf560 10056ac_cv_lib_dl_dlopen=no
542f9784 10057fi
82eaf560 10058rm -f conftest.err conftest.$ac_objext \
542f9784 10059 conftest$ac_exeext conftest.$ac_ext
10060LIBS=$ac_check_lib_save_LIBS
10061fi
82eaf560 10062echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10063echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
542f9784 10064if test $ac_cv_lib_dl_dlopen = yes; then
10065 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10066else
10067
10068 lt_cv_dlopen="dyld"
10069 lt_cv_dlopen_libs=
10070 lt_cv_dlopen_self=yes
10071
10072fi
10073
10074 ;;
10075
10076 *)
82eaf560 10077 echo "$as_me:$LINENO: checking for shl_load" >&5
10078echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
542f9784 10079if test "${ac_cv_func_shl_load+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10081else
10082 if test x$gcc_no_link = xyes; then
10083 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10084echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10085 { (exit 1); exit 1; }; }
10086fi
10087cat >conftest.$ac_ext <<_ACEOF
10088/* confdefs.h. */
10089_ACEOF
10090cat confdefs.h >>conftest.$ac_ext
10091cat >>conftest.$ac_ext <<_ACEOF
10092/* end confdefs.h. */
10093/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10095#define shl_load innocuous_shl_load
10096
10097/* System header to define __stub macros and hopefully few prototypes,
10098 which can conflict with char shl_load (); below.
10099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10100 <limits.h> exists even on freestanding compilers. */
10101
10102#ifdef __STDC__
10103# include <limits.h>
10104#else
10105# include <assert.h>
10106#endif
10107
10108#undef shl_load
10109
82eaf560 10110/* Override any gcc2 internal prototype to avoid an error. */
542f9784 10111#ifdef __cplusplus
10112extern "C"
82eaf560 10113{
542f9784 10114#endif
82eaf560 10115/* We use char because int might match the return type of a gcc2
10116 builtin and then its argument prototype would still apply. */
542f9784 10117char shl_load ();
10118/* The GNU C library defines this for functions which it implements
10119 to always fail with ENOSYS. Some functions are actually named
10120 something starting with __ and the normal name is an alias. */
82eaf560 10121#if defined (__stub_shl_load) || defined (__stub___shl_load)
542f9784 10122choke me
82eaf560 10123#else
10124char (*f) () = shl_load;
10125#endif
10126#ifdef __cplusplus
10127}
542f9784 10128#endif
10129
10130int
10131main ()
10132{
82eaf560 10133return f != shl_load;
542f9784 10134 ;
10135 return 0;
10136}
10137_ACEOF
10138rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 10139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10140 (eval $ac_link) 2>conftest.er1
542f9784 10141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 10146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag"
10148 || test ! -s conftest.err'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; } &&
10154 { ac_try='test -s conftest$ac_exeext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
542f9784 10160 ac_cv_func_shl_load=yes
10161else
10162 echo "$as_me: failed program was:" >&5
10163sed 's/^/| /' conftest.$ac_ext >&5
10164
82eaf560 10165ac_cv_func_shl_load=no
542f9784 10166fi
82eaf560 10167rm -f conftest.err conftest.$ac_objext \
542f9784 10168 conftest$ac_exeext conftest.$ac_ext
10169fi
82eaf560 10170echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10171echo "${ECHO_T}$ac_cv_func_shl_load" >&6
542f9784 10172if test $ac_cv_func_shl_load = yes; then
10173 lt_cv_dlopen="shl_load"
10174else
82eaf560 10175 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10176echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
542f9784 10177if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179else
10180 ac_check_lib_save_LIBS=$LIBS
10181LIBS="-ldld $LIBS"
10182if test x$gcc_no_link = xyes; then
10183 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10184echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10185 { (exit 1); exit 1; }; }
10186fi
10187cat >conftest.$ac_ext <<_ACEOF
10188/* confdefs.h. */
10189_ACEOF
10190cat confdefs.h >>conftest.$ac_ext
10191cat >>conftest.$ac_ext <<_ACEOF
10192/* end confdefs.h. */
10193
82eaf560 10194/* Override any gcc2 internal prototype to avoid an error. */
542f9784 10195#ifdef __cplusplus
10196extern "C"
10197#endif
82eaf560 10198/* We use char because int might match the return type of a gcc2
10199 builtin and then its argument prototype would still apply. */
542f9784 10200char shl_load ();
10201int
10202main ()
10203{
82eaf560 10204shl_load ();
542f9784 10205 ;
10206 return 0;
10207}
10208_ACEOF
10209rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 10210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10211 (eval $ac_link) 2>conftest.er1
542f9784 10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag"
10219 || test ! -s conftest.err'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest$ac_exeext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
542f9784 10231 ac_cv_lib_dld_shl_load=yes
10232else
10233 echo "$as_me: failed program was:" >&5
10234sed 's/^/| /' conftest.$ac_ext >&5
10235
82eaf560 10236ac_cv_lib_dld_shl_load=no
542f9784 10237fi
82eaf560 10238rm -f conftest.err conftest.$ac_objext \
542f9784 10239 conftest$ac_exeext conftest.$ac_ext
10240LIBS=$ac_check_lib_save_LIBS
10241fi
82eaf560 10242echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10243echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
542f9784 10244if test $ac_cv_lib_dld_shl_load = yes; then
00aafda4 10245 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
542f9784 10246else
82eaf560 10247 echo "$as_me:$LINENO: checking for dlopen" >&5
10248echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
542f9784 10249if test "${ac_cv_func_dlopen+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251else
10252 if test x$gcc_no_link = xyes; then
10253 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10254echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10255 { (exit 1); exit 1; }; }
10256fi
10257cat >conftest.$ac_ext <<_ACEOF
10258/* confdefs.h. */
10259_ACEOF
10260cat confdefs.h >>conftest.$ac_ext
10261cat >>conftest.$ac_ext <<_ACEOF
10262/* end confdefs.h. */
10263/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10265#define dlopen innocuous_dlopen
10266
10267/* System header to define __stub macros and hopefully few prototypes,
10268 which can conflict with char dlopen (); below.
10269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10270 <limits.h> exists even on freestanding compilers. */
10271
10272#ifdef __STDC__
10273# include <limits.h>
10274#else
10275# include <assert.h>
10276#endif
10277
10278#undef dlopen
10279
82eaf560 10280/* Override any gcc2 internal prototype to avoid an error. */
542f9784 10281#ifdef __cplusplus
10282extern "C"
82eaf560 10283{
542f9784 10284#endif
82eaf560 10285/* We use char because int might match the return type of a gcc2
10286 builtin and then its argument prototype would still apply. */
542f9784 10287char dlopen ();
10288/* The GNU C library defines this for functions which it implements
10289 to always fail with ENOSYS. Some functions are actually named
10290 something starting with __ and the normal name is an alias. */
82eaf560 10291#if defined (__stub_dlopen) || defined (__stub___dlopen)
542f9784 10292choke me
82eaf560 10293#else
10294char (*f) () = dlopen;
10295#endif
10296#ifdef __cplusplus
10297}
542f9784 10298#endif
10299
10300int
10301main ()
10302{
82eaf560 10303return f != dlopen;
542f9784 10304 ;
10305 return 0;
10306}
10307_ACEOF
10308rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 10309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310 (eval $ac_link) 2>conftest.er1
542f9784 10311 ac_status=$?
10312 grep -v '^ *+' conftest.er1 >conftest.err
10313 rm -f conftest.er1
10314 cat conftest.err >&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 10316 (exit $ac_status); } &&
10317 { ac_try='test -z "$ac_c_werror_flag"
10318 || test ! -s conftest.err'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; } &&
10324 { ac_try='test -s conftest$ac_exeext'
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; }; then
542f9784 10330 ac_cv_func_dlopen=yes
10331else
10332 echo "$as_me: failed program was:" >&5
10333sed 's/^/| /' conftest.$ac_ext >&5
10334
82eaf560 10335ac_cv_func_dlopen=no
542f9784 10336fi
82eaf560 10337rm -f conftest.err conftest.$ac_objext \
542f9784 10338 conftest$ac_exeext conftest.$ac_ext
10339fi
82eaf560 10340echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10341echo "${ECHO_T}$ac_cv_func_dlopen" >&6
542f9784 10342if test $ac_cv_func_dlopen = yes; then
10343 lt_cv_dlopen="dlopen"
10344else
82eaf560 10345 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10346echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
542f9784 10347if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10349else
10350 ac_check_lib_save_LIBS=$LIBS
10351LIBS="-ldl $LIBS"
10352if test x$gcc_no_link = xyes; then
10353 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10354echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10355 { (exit 1); exit 1; }; }
10356fi
10357cat >conftest.$ac_ext <<_ACEOF
10358/* confdefs.h. */
10359_ACEOF
10360cat confdefs.h >>conftest.$ac_ext
10361cat >>conftest.$ac_ext <<_ACEOF
10362/* end confdefs.h. */
10363
82eaf560 10364/* Override any gcc2 internal prototype to avoid an error. */
542f9784 10365#ifdef __cplusplus
10366extern "C"
10367#endif
82eaf560 10368/* We use char because int might match the return type of a gcc2
10369 builtin and then its argument prototype would still apply. */
542f9784 10370char dlopen ();
10371int
10372main ()
10373{
82eaf560 10374dlopen ();
542f9784 10375 ;
10376 return 0;
10377}
10378_ACEOF
10379rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 10380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381 (eval $ac_link) 2>conftest.er1
542f9784 10382 ac_status=$?
10383 grep -v '^ *+' conftest.er1 >conftest.err
10384 rm -f conftest.er1
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 10387 (exit $ac_status); } &&
10388 { ac_try='test -z "$ac_c_werror_flag"
10389 || test ! -s conftest.err'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; } &&
10395 { ac_try='test -s conftest$ac_exeext'
10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10398 ac_status=$?
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
542f9784 10401 ac_cv_lib_dl_dlopen=yes
10402else
10403 echo "$as_me: failed program was:" >&5
10404sed 's/^/| /' conftest.$ac_ext >&5
10405
82eaf560 10406ac_cv_lib_dl_dlopen=no
542f9784 10407fi
82eaf560 10408rm -f conftest.err conftest.$ac_objext \
542f9784 10409 conftest$ac_exeext conftest.$ac_ext
10410LIBS=$ac_check_lib_save_LIBS
10411fi
82eaf560 10412echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10413echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
542f9784 10414if test $ac_cv_lib_dl_dlopen = yes; then
10415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10416else
82eaf560 10417 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10418echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
542f9784 10419if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10421else
10422 ac_check_lib_save_LIBS=$LIBS
10423LIBS="-lsvld $LIBS"
10424if test x$gcc_no_link = xyes; then
10425 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10426echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10427 { (exit 1); exit 1; }; }
10428fi
10429cat >conftest.$ac_ext <<_ACEOF
10430/* confdefs.h. */
10431_ACEOF
10432cat confdefs.h >>conftest.$ac_ext
10433cat >>conftest.$ac_ext <<_ACEOF
10434/* end confdefs.h. */
10435
82eaf560 10436/* Override any gcc2 internal prototype to avoid an error. */
542f9784 10437#ifdef __cplusplus
10438extern "C"
10439#endif
82eaf560 10440/* We use char because int might match the return type of a gcc2
10441 builtin and then its argument prototype would still apply. */
542f9784 10442char dlopen ();
10443int
10444main ()
10445{
82eaf560 10446dlopen ();
542f9784 10447 ;
10448 return 0;
10449}
10450_ACEOF
10451rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 10452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10453 (eval $ac_link) 2>conftest.er1
542f9784 10454 ac_status=$?
10455 grep -v '^ *+' conftest.er1 >conftest.err
10456 rm -f conftest.er1
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 10459 (exit $ac_status); } &&
10460 { ac_try='test -z "$ac_c_werror_flag"
10461 || test ! -s conftest.err'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; } &&
10467 { ac_try='test -s conftest$ac_exeext'
10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; }; then
542f9784 10473 ac_cv_lib_svld_dlopen=yes
10474else
10475 echo "$as_me: failed program was:" >&5
10476sed 's/^/| /' conftest.$ac_ext >&5
10477
82eaf560 10478ac_cv_lib_svld_dlopen=no
542f9784 10479fi
82eaf560 10480rm -f conftest.err conftest.$ac_objext \
542f9784 10481 conftest$ac_exeext conftest.$ac_ext
10482LIBS=$ac_check_lib_save_LIBS
10483fi
82eaf560 10484echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10485echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
542f9784 10486if test $ac_cv_lib_svld_dlopen = yes; then
10487 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10488else
82eaf560 10489 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10490echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
542f9784 10491if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10493else
10494 ac_check_lib_save_LIBS=$LIBS
10495LIBS="-ldld $LIBS"
10496if test x$gcc_no_link = xyes; then
10497 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10498echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10499 { (exit 1); exit 1; }; }
10500fi
10501cat >conftest.$ac_ext <<_ACEOF
10502/* confdefs.h. */
10503_ACEOF
10504cat confdefs.h >>conftest.$ac_ext
10505cat >>conftest.$ac_ext <<_ACEOF
10506/* end confdefs.h. */
10507
82eaf560 10508/* Override any gcc2 internal prototype to avoid an error. */
542f9784 10509#ifdef __cplusplus
10510extern "C"
10511#endif
82eaf560 10512/* We use char because int might match the return type of a gcc2
10513 builtin and then its argument prototype would still apply. */
542f9784 10514char dld_link ();
10515int
10516main ()
10517{
82eaf560 10518dld_link ();
542f9784 10519 ;
10520 return 0;
10521}
10522_ACEOF
10523rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 10524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525 (eval $ac_link) 2>conftest.er1
542f9784 10526 ac_status=$?
10527 grep -v '^ *+' conftest.er1 >conftest.err
10528 rm -f conftest.er1
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 10531 (exit $ac_status); } &&
10532 { ac_try='test -z "$ac_c_werror_flag"
10533 || test ! -s conftest.err'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; } &&
10539 { ac_try='test -s conftest$ac_exeext'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
542f9784 10545 ac_cv_lib_dld_dld_link=yes
10546else
10547 echo "$as_me: failed program was:" >&5
10548sed 's/^/| /' conftest.$ac_ext >&5
10549
82eaf560 10550ac_cv_lib_dld_dld_link=no
542f9784 10551fi
82eaf560 10552rm -f conftest.err conftest.$ac_objext \
542f9784 10553 conftest$ac_exeext conftest.$ac_ext
10554LIBS=$ac_check_lib_save_LIBS
10555fi
82eaf560 10556echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10557echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
542f9784 10558if test $ac_cv_lib_dld_dld_link = yes; then
00aafda4 10559 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
542f9784 10560fi
10561
10562
10563fi
10564
10565
10566fi
10567
10568
10569fi
10570
10571
10572fi
10573
10574
10575fi
10576
10577 ;;
10578 esac
10579
10580 if test "x$lt_cv_dlopen" != xno; then
10581 enable_dlopen=yes
10582 else
10583 enable_dlopen=no
10584 fi
10585
10586 case $lt_cv_dlopen in
10587 dlopen)
10588 save_CPPFLAGS="$CPPFLAGS"
10589 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10590
10591 save_LDFLAGS="$LDFLAGS"
10592 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10593
10594 save_LIBS="$LIBS"
10595 LIBS="$lt_cv_dlopen_libs $LIBS"
10596
82eaf560 10597 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10598echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
542f9784 10599if test "${lt_cv_dlopen_self+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10601else
10602 if test "$cross_compiling" = yes; then :
10603 lt_cv_dlopen_self=cross
10604else
10605 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10606 lt_status=$lt_dlunknown
10607 cat > conftest.$ac_ext <<_LT_EOF
9e6fd619 10608#line 10608 "configure"
542f9784 10609#include "confdefs.h"
10610
10611#if HAVE_DLFCN_H
10612#include <dlfcn.h>
10613#endif
10614
10615#include <stdio.h>
10616
10617#ifdef RTLD_GLOBAL
10618# define LT_DLGLOBAL RTLD_GLOBAL
10619#else
10620# ifdef DL_GLOBAL
10621# define LT_DLGLOBAL DL_GLOBAL
10622# else
10623# define LT_DLGLOBAL 0
10624# endif
10625#endif
10626
10627/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10628 find out it does not work in some platform. */
10629#ifndef LT_DLLAZY_OR_NOW
10630# ifdef RTLD_LAZY
10631# define LT_DLLAZY_OR_NOW RTLD_LAZY
10632# else
10633# ifdef DL_LAZY
10634# define LT_DLLAZY_OR_NOW DL_LAZY
10635# else
10636# ifdef RTLD_NOW
10637# define LT_DLLAZY_OR_NOW RTLD_NOW
10638# else
10639# ifdef DL_NOW
10640# define LT_DLLAZY_OR_NOW DL_NOW
10641# else
10642# define LT_DLLAZY_OR_NOW 0
10643# endif
10644# endif
10645# endif
10646# endif
10647#endif
10648
542f9784 10649void fnord() { int i=42;}
10650int main ()
10651{
10652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10653 int status = $lt_dlunknown;
10654
10655 if (self)
10656 {
10657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10658 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10659 /* dlclose (self); */
10660 }
10661 else
10662 puts (dlerror ());
10663
00aafda4 10664 return status;
542f9784 10665}
10666_LT_EOF
10667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10668 (eval $ac_link) 2>&5
10669 ac_status=$?
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10672 (./conftest; exit; ) >&5 2>/dev/null
10673 lt_status=$?
10674 case x$lt_status in
10675 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10676 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10677 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10678 esac
10679 else :
10680 # compilation failed
10681 lt_cv_dlopen_self=no
10682 fi
10683fi
10684rm -fr conftest*
10685
10686
10687fi
82eaf560 10688echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10689echo "${ECHO_T}$lt_cv_dlopen_self" >&6
542f9784 10690
10691 if test "x$lt_cv_dlopen_self" = xyes; then
10692 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
82eaf560 10693 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10694echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
542f9784 10695if test "${lt_cv_dlopen_self_static+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10697else
10698 if test "$cross_compiling" = yes; then :
10699 lt_cv_dlopen_self_static=cross
10700else
10701 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10702 lt_status=$lt_dlunknown
10703 cat > conftest.$ac_ext <<_LT_EOF
9e6fd619 10704#line 10704 "configure"
542f9784 10705#include "confdefs.h"
10706
10707#if HAVE_DLFCN_H
10708#include <dlfcn.h>
10709#endif
10710
10711#include <stdio.h>
10712
10713#ifdef RTLD_GLOBAL
10714# define LT_DLGLOBAL RTLD_GLOBAL
10715#else
10716# ifdef DL_GLOBAL
10717# define LT_DLGLOBAL DL_GLOBAL
10718# else
10719# define LT_DLGLOBAL 0
10720# endif
10721#endif
10722
10723/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10724 find out it does not work in some platform. */
10725#ifndef LT_DLLAZY_OR_NOW
10726# ifdef RTLD_LAZY
10727# define LT_DLLAZY_OR_NOW RTLD_LAZY
10728# else
10729# ifdef DL_LAZY
10730# define LT_DLLAZY_OR_NOW DL_LAZY
10731# else
10732# ifdef RTLD_NOW
10733# define LT_DLLAZY_OR_NOW RTLD_NOW
10734# else
10735# ifdef DL_NOW
10736# define LT_DLLAZY_OR_NOW DL_NOW
10737# else
10738# define LT_DLLAZY_OR_NOW 0
10739# endif
10740# endif
10741# endif
10742# endif
10743#endif
10744
542f9784 10745void fnord() { int i=42;}
10746int main ()
10747{
10748 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10749 int status = $lt_dlunknown;
10750
10751 if (self)
10752 {
10753 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10754 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10755 /* dlclose (self); */
10756 }
10757 else
10758 puts (dlerror ());
10759
00aafda4 10760 return status;
542f9784 10761}
10762_LT_EOF
10763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10764 (eval $ac_link) 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10768 (./conftest; exit; ) >&5 2>/dev/null
10769 lt_status=$?
10770 case x$lt_status in
10771 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10772 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10773 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10774 esac
10775 else :
10776 # compilation failed
10777 lt_cv_dlopen_self_static=no
10778 fi
10779fi
10780rm -fr conftest*
10781
10782
10783fi
82eaf560 10784echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10785echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
542f9784 10786 fi
10787
10788 CPPFLAGS="$save_CPPFLAGS"
10789 LDFLAGS="$save_LDFLAGS"
10790 LIBS="$save_LIBS"
10791 ;;
10792 esac
10793
10794 case $lt_cv_dlopen_self in
10795 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10796 *) enable_dlopen_self=unknown ;;
10797 esac
10798
10799 case $lt_cv_dlopen_self_static in
10800 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10801 *) enable_dlopen_self_static=unknown ;;
10802 esac
10803fi
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821striplib=
10822old_striplib=
82eaf560 10823echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10824echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
542f9784 10825if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10826 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10827 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
82eaf560 10828 echo "$as_me:$LINENO: result: yes" >&5
10829echo "${ECHO_T}yes" >&6
542f9784 10830else
10831# FIXME - insert some real tests, host_os isn't really good enough
10832 case $host_os in
10833 darwin*)
10834 if test -n "$STRIP" ; then
10835 striplib="$STRIP -x"
10836 old_striplib="$STRIP -S"
82eaf560 10837 echo "$as_me:$LINENO: result: yes" >&5
10838echo "${ECHO_T}yes" >&6
542f9784 10839 else
82eaf560 10840 echo "$as_me:$LINENO: result: no" >&5
10841echo "${ECHO_T}no" >&6
542f9784 10842 fi
10843 ;;
10844 *)
82eaf560 10845 echo "$as_me:$LINENO: result: no" >&5
10846echo "${ECHO_T}no" >&6
542f9784 10847 ;;
10848 esac
10849fi
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862 # Report which library types will actually be built
82eaf560 10863 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10864echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10865 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10866echo "${ECHO_T}$can_build_shared" >&6
542f9784 10867
82eaf560 10868 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10869echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
542f9784 10870 test "$can_build_shared" = "no" && enable_shared=no
10871
10872 # On AIX, shared libraries and static libraries use the same namespace, and
10873 # are all built from PIC.
10874 case $host_os in
10875 aix3*)
10876 test "$enable_shared" = yes && enable_static=no
10877 if test -n "$RANLIB"; then
10878 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10879 postinstall_cmds='$RANLIB $lib'
10880 fi
10881 ;;
10882
21e07d2f 10883 aix[4-9]*)
542f9784 10884 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10885 test "$enable_shared" = yes && enable_static=no
10886 fi
10887 ;;
10888 esac
82eaf560 10889 echo "$as_me:$LINENO: result: $enable_shared" >&5
10890echo "${ECHO_T}$enable_shared" >&6
542f9784 10891
82eaf560 10892 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10893echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
542f9784 10894 # Make sure either enable_shared or enable_static is yes.
10895 test "$enable_shared" = yes || enable_static=yes
82eaf560 10896 echo "$as_me:$LINENO: result: $enable_static" >&5
10897echo "${ECHO_T}$enable_static" >&6
542f9784 10898
10899
10900
10901
10902fi
10903ac_ext=c
10904ac_cpp='$CPP $CPPFLAGS'
10905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10907ac_compiler_gnu=$ac_cv_c_compiler_gnu
10908
10909CC="$lt_save_CC"
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
82eaf560 10923 ac_config_commands="$ac_config_commands libtool"
542f9784 10924
10925
10926
10927
10928# Only expand once:
10929
10930
10931
10932
10933#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
10934
10935# We need gfortran to compile parts of the library
10936#AC_PROG_FC(gfortran)
10937FC="$GFORTRAN"
82eaf560 10938ac_ext=${FC_SRCEXT-f}
10939ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10940ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
542f9784 10941ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10942if test -n "$ac_tool_prefix"; then
10943 for ac_prog in gfortran
10944 do
10945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
82eaf560 10947echo "$as_me:$LINENO: checking for $ac_word" >&5
10948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
542f9784 10949if test "${ac_cv_prog_FC+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951else
10952 if test -n "$FC"; then
10953 ac_cv_prog_FC="$FC" # Let the user override the test.
10954else
10955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10956for as_dir in $PATH
10957do
10958 IFS=$as_save_IFS
10959 test -z "$as_dir" && as_dir=.
10960 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 10961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 10962 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10964 break 2
10965 fi
10966done
10967done
10968
10969fi
10970fi
10971FC=$ac_cv_prog_FC
10972if test -n "$FC"; then
82eaf560 10973 echo "$as_me:$LINENO: result: $FC" >&5
10974echo "${ECHO_T}$FC" >&6
542f9784 10975else
82eaf560 10976 echo "$as_me:$LINENO: result: no" >&5
10977echo "${ECHO_T}no" >&6
542f9784 10978fi
10979
10980 test -n "$FC" && break
10981 done
10982fi
10983if test -z "$FC"; then
10984 ac_ct_FC=$FC
10985 for ac_prog in gfortran
10986do
10987 # Extract the first word of "$ac_prog", so it can be a program name with args.
10988set dummy $ac_prog; ac_word=$2
82eaf560 10989echo "$as_me:$LINENO: checking for $ac_word" >&5
10990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
542f9784 10991if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993else
10994 if test -n "$ac_ct_FC"; then
10995 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10996else
10997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998for as_dir in $PATH
10999do
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 11003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 11004 ac_cv_prog_ac_ct_FC="$ac_prog"
11005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11006 break 2
11007 fi
11008done
11009done
11010
11011fi
11012fi
11013ac_ct_FC=$ac_cv_prog_ac_ct_FC
11014if test -n "$ac_ct_FC"; then
82eaf560 11015 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
11016echo "${ECHO_T}$ac_ct_FC" >&6
542f9784 11017else
82eaf560 11018 echo "$as_me:$LINENO: result: no" >&5
11019echo "${ECHO_T}no" >&6
542f9784 11020fi
11021
11022 test -n "$ac_ct_FC" && break
11023done
11024
82eaf560 11025 FC=$ac_ct_FC
542f9784 11026fi
11027
11028
11029# Provide some information about the compiler.
9e6fd619 11030echo "$as_me:11030:" \
82eaf560 11031 "checking for Fortran compiler version" >&5
542f9784 11032ac_compiler=`set X $ac_compile; echo $2`
82eaf560 11033{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11034 (eval $ac_compiler --version </dev/null >&5) 2>&5
542f9784 11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }
82eaf560 11038{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11039 (eval $ac_compiler -v </dev/null >&5) 2>&5
542f9784 11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }
82eaf560 11043{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11044 (eval $ac_compiler -V </dev/null >&5) 2>&5
542f9784 11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }
11048rm -f a.out
11049
11050# If we don't use `.F' as extension, the preprocessor is not run on the
11051# input file. (Note that this only needs to work for GNU compilers.)
11052ac_save_ext=$ac_ext
11053ac_ext=F
82eaf560 11054echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
11055echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
542f9784 11056if test "${ac_cv_fc_compiler_gnu+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11058else
11059 cat >conftest.$ac_ext <<_ACEOF
11060 program main
11061#ifndef __GNUC__
11062 choke me
11063#endif
11064
11065 end
11066_ACEOF
11067rm -f conftest.$ac_objext
82eaf560 11068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11069 (eval $ac_compile) 2>conftest.er1
542f9784 11070 ac_status=$?
11071 grep -v '^ *+' conftest.er1 >conftest.err
11072 rm -f conftest.er1
11073 cat conftest.err >&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 11075 (exit $ac_status); } &&
11076 { ac_try='test -z "$ac_fc_werror_flag"
11077 || test ! -s conftest.err'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; } &&
11083 { ac_try='test -s conftest.$ac_objext'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
542f9784 11089 ac_compiler_gnu=yes
11090else
11091 echo "$as_me: failed program was:" >&5
11092sed 's/^/| /' conftest.$ac_ext >&5
11093
82eaf560 11094ac_compiler_gnu=no
542f9784 11095fi
82eaf560 11096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 11097ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11098
11099fi
82eaf560 11100echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
11101echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
542f9784 11102ac_ext=$ac_save_ext
11103ac_test_FFLAGS=${FCFLAGS+set}
11104ac_save_FFLAGS=$FCFLAGS
11105FCFLAGS=
82eaf560 11106echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
11107echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
542f9784 11108if test "${ac_cv_prog_fc_g+set}" = set; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110else
11111 FCFLAGS=-g
11112cat >conftest.$ac_ext <<_ACEOF
11113 program main
11114
11115 end
11116_ACEOF
11117rm -f conftest.$ac_objext
82eaf560 11118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11119 (eval $ac_compile) 2>conftest.er1
542f9784 11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 11125 (exit $ac_status); } &&
11126 { ac_try='test -z "$ac_fc_werror_flag"
11127 || test ! -s conftest.err'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; } &&
11133 { ac_try='test -s conftest.$ac_objext'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
542f9784 11139 ac_cv_prog_fc_g=yes
11140else
11141 echo "$as_me: failed program was:" >&5
11142sed 's/^/| /' conftest.$ac_ext >&5
11143
82eaf560 11144ac_cv_prog_fc_g=no
542f9784 11145fi
82eaf560 11146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 11147
11148fi
82eaf560 11149echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
11150echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
542f9784 11151if test "$ac_test_FFLAGS" = set; then
11152 FCFLAGS=$ac_save_FFLAGS
11153elif test $ac_cv_prog_fc_g = yes; then
11154 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11155 FCFLAGS="-g -O2"
11156 else
11157 FCFLAGS="-g"
11158 fi
11159else
11160 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11161 FCFLAGS="-O2"
11162 else
11163 FCFLAGS=
11164 fi
11165fi
11166
11167ac_ext=c
11168ac_cpp='$CPP $CPPFLAGS'
11169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11171ac_compiler_gnu=$ac_cv_c_compiler_gnu
11172
11173
82eaf560 11174ac_ext=${FC_SRCEXT-f}
11175ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
11176ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
542f9784 11177ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11178if test -n "$ac_tool_prefix"; then
82eaf560 11179 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
542f9784 11180 do
11181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
82eaf560 11183echo "$as_me:$LINENO: checking for $ac_word" >&5
11184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
542f9784 11185if test "${ac_cv_prog_FC+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11187else
11188 if test -n "$FC"; then
11189 ac_cv_prog_FC="$FC" # Let the user override the test.
11190else
11191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11192for as_dir in $PATH
11193do
11194 IFS=$as_save_IFS
11195 test -z "$as_dir" && as_dir=.
11196 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 11197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 11198 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11200 break 2
11201 fi
11202done
11203done
11204
11205fi
11206fi
11207FC=$ac_cv_prog_FC
11208if test -n "$FC"; then
82eaf560 11209 echo "$as_me:$LINENO: result: $FC" >&5
11210echo "${ECHO_T}$FC" >&6
542f9784 11211else
82eaf560 11212 echo "$as_me:$LINENO: result: no" >&5
11213echo "${ECHO_T}no" >&6
542f9784 11214fi
11215
11216 test -n "$FC" && break
11217 done
11218fi
11219if test -z "$FC"; then
11220 ac_ct_FC=$FC
82eaf560 11221 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
542f9784 11222do
11223 # Extract the first word of "$ac_prog", so it can be a program name with args.
11224set dummy $ac_prog; ac_word=$2
82eaf560 11225echo "$as_me:$LINENO: checking for $ac_word" >&5
11226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
542f9784 11227if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11229else
11230 if test -n "$ac_ct_FC"; then
11231 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11232else
11233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234for as_dir in $PATH
11235do
11236 IFS=$as_save_IFS
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
82eaf560 11239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
542f9784 11240 ac_cv_prog_ac_ct_FC="$ac_prog"
11241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11242 break 2
11243 fi
11244done
11245done
11246
11247fi
11248fi
11249ac_ct_FC=$ac_cv_prog_ac_ct_FC
11250if test -n "$ac_ct_FC"; then
82eaf560 11251 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
11252echo "${ECHO_T}$ac_ct_FC" >&6
542f9784 11253else
82eaf560 11254 echo "$as_me:$LINENO: result: no" >&5
11255echo "${ECHO_T}no" >&6
542f9784 11256fi
11257
11258 test -n "$ac_ct_FC" && break
82eaf560 11259done
11260
11261 FC=$ac_ct_FC
542f9784 11262fi
11263
11264
11265# Provide some information about the compiler.
9e6fd619 11266echo "$as_me:11266:" \
82eaf560 11267 "checking for Fortran compiler version" >&5
542f9784 11268ac_compiler=`set X $ac_compile; echo $2`
82eaf560 11269{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11270 (eval $ac_compiler --version </dev/null >&5) 2>&5
542f9784 11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }
82eaf560 11274{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11275 (eval $ac_compiler -v </dev/null >&5) 2>&5
542f9784 11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }
82eaf560 11279{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11280 (eval $ac_compiler -V </dev/null >&5) 2>&5
542f9784 11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }
11284rm -f a.out
11285
11286# If we don't use `.F' as extension, the preprocessor is not run on the
11287# input file. (Note that this only needs to work for GNU compilers.)
11288ac_save_ext=$ac_ext
11289ac_ext=F
82eaf560 11290echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
11291echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
542f9784 11292if test "${ac_cv_fc_compiler_gnu+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11294else
11295 cat >conftest.$ac_ext <<_ACEOF
11296 program main
11297#ifndef __GNUC__
11298 choke me
11299#endif
11300
11301 end
11302_ACEOF
11303rm -f conftest.$ac_objext
82eaf560 11304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11305 (eval $ac_compile) 2>conftest.er1
542f9784 11306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 11311 (exit $ac_status); } &&
11312 { ac_try='test -z "$ac_fc_werror_flag"
11313 || test ! -s conftest.err'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; } &&
11319 { ac_try='test -s conftest.$ac_objext'
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
542f9784 11325 ac_compiler_gnu=yes
11326else
11327 echo "$as_me: failed program was:" >&5
11328sed 's/^/| /' conftest.$ac_ext >&5
11329
82eaf560 11330ac_compiler_gnu=no
542f9784 11331fi
82eaf560 11332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 11333ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11334
11335fi
82eaf560 11336echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
11337echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
542f9784 11338ac_ext=$ac_save_ext
11339ac_test_FFLAGS=${FCFLAGS+set}
11340ac_save_FFLAGS=$FCFLAGS
11341FCFLAGS=
82eaf560 11342echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
11343echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
542f9784 11344if test "${ac_cv_prog_fc_g+set}" = set; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11346else
11347 FCFLAGS=-g
11348cat >conftest.$ac_ext <<_ACEOF
11349 program main
11350
11351 end
11352_ACEOF
11353rm -f conftest.$ac_objext
82eaf560 11354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11355 (eval $ac_compile) 2>conftest.er1
542f9784 11356 ac_status=$?
11357 grep -v '^ *+' conftest.er1 >conftest.err
11358 rm -f conftest.er1
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 11361 (exit $ac_status); } &&
11362 { ac_try='test -z "$ac_fc_werror_flag"
11363 || test ! -s conftest.err'
11364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365 (eval $ac_try) 2>&5
11366 ac_status=$?
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; } &&
11369 { ac_try='test -s conftest.$ac_objext'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
542f9784 11375 ac_cv_prog_fc_g=yes
11376else
11377 echo "$as_me: failed program was:" >&5
11378sed 's/^/| /' conftest.$ac_ext >&5
11379
82eaf560 11380ac_cv_prog_fc_g=no
542f9784 11381fi
82eaf560 11382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 11383
11384fi
82eaf560 11385echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
11386echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
542f9784 11387if test "$ac_test_FFLAGS" = set; then
11388 FCFLAGS=$ac_save_FFLAGS
11389elif test $ac_cv_prog_fc_g = yes; then
11390 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11391 FCFLAGS="-g -O2"
11392 else
11393 FCFLAGS="-g"
11394 fi
11395else
11396 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11397 FCFLAGS="-O2"
11398 else
11399 FCFLAGS=
11400 fi
11401fi
11402
11403ac_ext=c
11404ac_cpp='$CPP $CPPFLAGS'
11405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11407ac_compiler_gnu=$ac_cv_c_compiler_gnu
11408
11409if test -z "$FC" || test "X$FC" = "Xno"; then
11410 _lt_disable_FC=yes
11411fi
11412
11413
11414
82eaf560 11415 ac_ext=${FC_SRCEXT-f}
11416ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
11417ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
542f9784 11418ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11419
11420
11421archive_cmds_need_lc_FC=no
11422allow_undefined_flag_FC=
11423always_export_symbols_FC=no
11424archive_expsym_cmds_FC=
11425export_dynamic_flag_spec_FC=
11426hardcode_direct_FC=no
11427hardcode_direct_absolute_FC=no
11428hardcode_libdir_flag_spec_FC=
11429hardcode_libdir_flag_spec_ld_FC=
11430hardcode_libdir_separator_FC=
11431hardcode_minus_L_FC=no
11432hardcode_automatic_FC=no
11433inherit_rpath_FC=no
11434module_cmds_FC=
11435module_expsym_cmds_FC=
11436link_all_deplibs_FC=unknown
11437old_archive_cmds_FC=$old_archive_cmds
11438no_undefined_flag_FC=
11439whole_archive_flag_spec_FC=
11440enable_shared_with_static_runtimes_FC=no
11441
11442# Source file extension for fc test sources.
11443ac_ext=${ac_fc_srcext-f}
11444
11445# Object file extension for compiled fc test sources.
11446objext=o
11447objext_FC=$objext
11448
11449# No sense in running all these tests if we already determined that
11450# the FC compiler isn't working. Some variables (like enable_shared)
11451# are currently assumed to apply to all compilers on this platform,
11452# and will be corrupted by setting them based on a non-working compiler.
11453if test "$_lt_disable_FC" != yes; then
11454 # Code to be used in simple compile tests
11455 lt_simple_compile_test_code="\
11456 subroutine t
11457 return
11458 end
11459"
11460
11461 # Code to be used in simple link tests
11462 lt_simple_link_test_code="\
11463 program t
11464 end
11465"
11466
11467 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11468
11469
11470
11471
11472
11473
11474# If no C compiler was specified, use CC.
11475LTCC=${LTCC-"$CC"}
11476
11477# If no C compiler flags were specified, use CFLAGS.
11478LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11479
11480# Allow CC to be a program name with arguments.
11481compiler=$CC
11482
11483
11484 # save warnings/boilerplate of simple test code
11485 ac_outfile=conftest.$ac_objext
11486echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11487eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11488_lt_compiler_boilerplate=`cat conftest.err`
11489$RM conftest*
11490
11491 ac_outfile=conftest.$ac_objext
11492echo "$lt_simple_link_test_code" >conftest.$ac_ext
11493eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11494_lt_linker_boilerplate=`cat conftest.err`
00aafda4 11495$RM -r conftest*
542f9784 11496
11497
11498 # Allow CC to be a program name with arguments.
11499 lt_save_CC="$CC"
00aafda4 11500 lt_save_GCC=$GCC
542f9784 11501 CC=${FC-"f95"}
11502 compiler=$CC
00aafda4 11503 GCC=$ac_cv_fc_compiler_gnu
11504
542f9784 11505 compiler_FC=$CC
11506 for cc_temp in $compiler""; do
11507 case $cc_temp in
11508 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11509 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11510 \-*) ;;
11511 *) break;;
11512 esac
11513done
11514cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11515
11516
11517 if test -n "$compiler"; then
82eaf560 11518 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11519echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11520 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11521echo "${ECHO_T}$can_build_shared" >&6
542f9784 11522
82eaf560 11523 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11524echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
542f9784 11525 test "$can_build_shared" = "no" && enable_shared=no
11526
11527 # On AIX, shared libraries and static libraries use the same namespace, and
11528 # are all built from PIC.
11529 case $host_os in
11530 aix3*)
11531 test "$enable_shared" = yes && enable_static=no
11532 if test -n "$RANLIB"; then
11533 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11534 postinstall_cmds='$RANLIB $lib'
11535 fi
11536 ;;
21e07d2f 11537 aix[4-9]*)
542f9784 11538 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11539 test "$enable_shared" = yes && enable_static=no
11540 fi
11541 ;;
11542 esac
82eaf560 11543 echo "$as_me:$LINENO: result: $enable_shared" >&5
11544echo "${ECHO_T}$enable_shared" >&6
542f9784 11545
82eaf560 11546 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11547echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
542f9784 11548 # Make sure either enable_shared or enable_static is yes.
11549 test "$enable_shared" = yes || enable_static=yes
82eaf560 11550 echo "$as_me:$LINENO: result: $enable_static" >&5
11551echo "${ECHO_T}$enable_static" >&6
542f9784 11552
11553 GCC_FC="$ac_cv_fc_compiler_gnu"
11554 LD_FC="$LD"
11555
11556 ## CAVEAT EMPTOR:
11557 ## There is no encapsulation within the following macros, do not change
11558 ## the running order or otherwise move them around unless you know exactly
11559 ## what you are doing...
11560 # Dependencies to place before and after the object being linked:
11561predep_objects_FC=
11562postdep_objects_FC=
11563predeps_FC=
11564postdeps_FC=
11565compiler_lib_search_path_FC=
11566
11567cat > conftest.$ac_ext <<_LT_EOF
11568 subroutine foo
11569 implicit none
11570 integer a
11571 a=0
11572 return
11573 end
11574_LT_EOF
11575
11576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11577 (eval $ac_compile) 2>&5
11578 ac_status=$?
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; then
11581 # Parse the compiler output and extract the necessary
11582 # objects, libraries and library flags.
11583
11584 # Sentinel used to keep track of whether or not we are before
11585 # the conftest object file.
11586 pre_test_object_deps_done=no
11587
00aafda4 11588 for p in `eval "$output_verbose_link_cmd"`; do
542f9784 11589 case $p in
11590
11591 -L* | -R* | -l*)
11592 # Some compilers place space between "-{L,R}" and the path.
11593 # Remove the space.
11594 if test $p = "-L" ||
11595 test $p = "-R"; then
11596 prev=$p
11597 continue
11598 else
11599 prev=
11600 fi
11601
11602 if test "$pre_test_object_deps_done" = no; then
11603 case $p in
11604 -L* | -R*)
11605 # Internal compiler library paths should come after those
11606 # provided the user. The postdeps already come after the
11607 # user supplied libs so there is no need to process them.
11608 if test -z "$compiler_lib_search_path_FC"; then
11609 compiler_lib_search_path_FC="${prev}${p}"
11610 else
11611 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11612 fi
11613 ;;
11614 # The "-l" case would never come before the object being
11615 # linked, so don't bother handling this case.
11616 esac
11617 else
11618 if test -z "$postdeps_FC"; then
11619 postdeps_FC="${prev}${p}"
11620 else
11621 postdeps_FC="${postdeps_FC} ${prev}${p}"
11622 fi
11623 fi
11624 ;;
11625
11626 *.$objext)
11627 # This assumes that the test object file only shows up
11628 # once in the compiler output.
11629 if test "$p" = "conftest.$objext"; then
11630 pre_test_object_deps_done=yes
11631 continue
11632 fi
11633
11634 if test "$pre_test_object_deps_done" = no; then
11635 if test -z "$predep_objects_FC"; then
11636 predep_objects_FC="$p"
11637 else
11638 predep_objects_FC="$predep_objects_FC $p"
11639 fi
11640 else
11641 if test -z "$postdep_objects_FC"; then
11642 postdep_objects_FC="$p"
11643 else
11644 postdep_objects_FC="$postdep_objects_FC $p"
11645 fi
11646 fi
11647 ;;
11648
11649 *) ;; # Ignore the rest.
11650
11651 esac
11652 done
11653
11654 # Clean up.
11655 rm -f a.out a.exe
11656else
11657 echo "libtool.m4: error: problem compiling FC test program"
11658fi
11659
11660$RM -f confest.$objext
11661
11662# PORTME: override above test on systems where it is broken
11663
11664
11665case " $postdeps_FC " in
11666*" -lc "*) archive_cmds_need_lc_FC=no ;;
11667esac
00aafda4 11668 compiler_lib_search_dirs_FC=
11669if test -n "${compiler_lib_search_path_FC}"; then
11670 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11671fi
11672
11673
11674
11675
11676
542f9784 11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703 lt_prog_compiler_wl_FC=
11704lt_prog_compiler_pic_FC=
11705lt_prog_compiler_static_FC=
11706
82eaf560 11707echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11708echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
542f9784 11709
11710 if test "$GCC" = yes; then
11711 lt_prog_compiler_wl_FC='-Wl,'
11712 lt_prog_compiler_static_FC='-static'
11713
11714 case $host_os in
11715 aix*)
11716 # All AIX code is PIC.
11717 if test "$host_cpu" = ia64; then
11718 # AIX 5 now supports IA64 processor
11719 lt_prog_compiler_static_FC='-Bstatic'
11720 fi
11721 ;;
11722
11723 amigaos*)
00aafda4 11724 case $host_cpu in
11725 powerpc)
11726 # see comment about AmigaOS4 .so support
11727 lt_prog_compiler_pic_FC='-fPIC'
11728 ;;
11729 m68k)
11730 # FIXME: we need at least 68020 code to build shared libraries, but
11731 # adding the `-m68020' flag to GCC prevents building anything better,
11732 # like `-m68040'.
11733 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
11734 ;;
11735 esac
542f9784 11736 ;;
11737
11738 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11739 # PIC is the default for these OSes.
11740 ;;
11741
00aafda4 11742 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 11743 # This hack is so that the source file can tell whether it is being
11744 # built for inclusion in a dll (and should export symbols for example).
11745 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11746 # (--disable-auto-import) libraries
11747 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
11748 ;;
11749
11750 darwin* | rhapsody*)
11751 # PIC is the default on this platform
11752 # Common symbols not allowed in MH_DYLIB files
11753 lt_prog_compiler_pic_FC='-fno-common'
11754 ;;
11755
11756 hpux*)
00aafda4 11757 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11758 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11759 # sets the default TLS model and affects inlining.
542f9784 11760 case $host_cpu in
00aafda4 11761 hppa*64*)
542f9784 11762 # +Z the default
11763 ;;
11764 *)
11765 lt_prog_compiler_pic_FC='-fPIC'
11766 ;;
11767 esac
11768 ;;
11769
11770 interix[3-9]*)
11771 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11772 # Instead, we relocate shared libraries at runtime.
11773 ;;
11774
11775 msdosdjgpp*)
11776 # Just because we use GCC doesn't mean we suddenly get shared libraries
11777 # on systems that don't support them.
11778 lt_prog_compiler_can_build_shared_FC=no
11779 enable_shared=no
11780 ;;
11781
11782 *nto* | *qnx*)
11783 # QNX uses GNU C++, but need to define -shared option too, otherwise
11784 # it will coredump.
11785 lt_prog_compiler_pic_FC='-fPIC -shared'
11786 ;;
11787
11788 sysv4*MP*)
11789 if test -d /usr/nec; then
11790 lt_prog_compiler_pic_FC=-Kconform_pic
11791 fi
11792 ;;
11793
11794 *)
11795 lt_prog_compiler_pic_FC='-fPIC'
11796 ;;
11797 esac
11798 else
11799 # PORTME Check for flag to pass linker flags through the system compiler.
11800 case $host_os in
11801 aix*)
11802 lt_prog_compiler_wl_FC='-Wl,'
11803 if test "$host_cpu" = ia64; then
11804 # AIX 5 now supports IA64 processor
11805 lt_prog_compiler_static_FC='-Bstatic'
11806 else
11807 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
11808 fi
11809 ;;
542f9784 11810
00aafda4 11811 mingw* | cygwin* | pw32* | os2* | cegcc*)
542f9784 11812 # This hack is so that the source file can tell whether it is being
11813 # built for inclusion in a dll (and should export symbols for example).
11814 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
11815 ;;
11816
11817 hpux9* | hpux10* | hpux11*)
11818 lt_prog_compiler_wl_FC='-Wl,'
11819 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11820 # not for PA HP-UX.
11821 case $host_cpu in
11822 hppa*64*|ia64*)
11823 # +Z the default
11824 ;;
11825 *)
11826 lt_prog_compiler_pic_FC='+Z'
11827 ;;
11828 esac
11829 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11830 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
11831 ;;
11832
11833 irix5* | irix6* | nonstopux*)
11834 lt_prog_compiler_wl_FC='-Wl,'
11835 # PIC (with -KPIC) is the default.
11836 lt_prog_compiler_static_FC='-non_shared'
11837 ;;
11838
11839 linux* | k*bsd*-gnu)
11840 case $cc_basename in
00aafda4 11841 # old Intel for x86_64 which still supported -KPIC.
11842 ecc*)
542f9784 11843 lt_prog_compiler_wl_FC='-Wl,'
11844 lt_prog_compiler_pic_FC='-KPIC'
11845 lt_prog_compiler_static_FC='-static'
11846 ;;
00aafda4 11847 # icc used to be incompatible with GCC.
11848 # ICC 10 doesn't accept -KPIC any more.
11849 icc* | ifort*)
11850 lt_prog_compiler_wl_FC='-Wl,'
11851 lt_prog_compiler_pic_FC='-fPIC'
11852 lt_prog_compiler_static_FC='-static'
11853 ;;
11854 # Lahey Fortran 8.1.
11855 lf95*)
11856 lt_prog_compiler_wl_FC='-Wl,'
11857 lt_prog_compiler_pic_FC='--shared'
11858 lt_prog_compiler_static_FC='--static'
11859 ;;
542f9784 11860 pgcc* | pgf77* | pgf90* | pgf95*)
11861 # Portland Group compilers (*not* the Pentium gcc compiler,
11862 # which looks to be a dead project)
11863 lt_prog_compiler_wl_FC='-Wl,'
11864 lt_prog_compiler_pic_FC='-fpic'
11865 lt_prog_compiler_static_FC='-Bstatic'
11866 ;;
11867 ccc*)
11868 lt_prog_compiler_wl_FC='-Wl,'
11869 # All Alpha code is PIC.
11870 lt_prog_compiler_static_FC='-non_shared'
11871 ;;
00aafda4 11872 xl*)
11873 # IBM XL C 8.0/Fortran 10.1 on PPC
11874 lt_prog_compiler_wl_FC='-Wl,'
11875 lt_prog_compiler_pic_FC='-qpic'
11876 lt_prog_compiler_static_FC='-qstaticlink'
11877 ;;
542f9784 11878 *)
11879 case `$CC -V 2>&1 | sed 5q` in
11880 *Sun\ C*)
11881 # Sun C 5.9
11882 lt_prog_compiler_pic_FC='-KPIC'
11883 lt_prog_compiler_static_FC='-Bstatic'
11884 lt_prog_compiler_wl_FC='-Wl,'
11885 ;;
11886 *Sun\ F*)
11887 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11888 lt_prog_compiler_pic_FC='-KPIC'
11889 lt_prog_compiler_static_FC='-Bstatic'
11890 lt_prog_compiler_wl_FC=''
11891 ;;
11892 esac
11893 ;;
11894 esac
11895 ;;
11896
11897 newsos6)
11898 lt_prog_compiler_pic_FC='-KPIC'
11899 lt_prog_compiler_static_FC='-Bstatic'
11900 ;;
11901
11902 *nto* | *qnx*)
11903 # QNX uses GNU C++, but need to define -shared option too, otherwise
11904 # it will coredump.
11905 lt_prog_compiler_pic_FC='-fPIC -shared'
11906 ;;
11907
11908 osf3* | osf4* | osf5*)
11909 lt_prog_compiler_wl_FC='-Wl,'
11910 # All OSF/1 code is PIC.
11911 lt_prog_compiler_static_FC='-non_shared'
11912 ;;
11913
11914 rdos*)
11915 lt_prog_compiler_static_FC='-non_shared'
11916 ;;
11917
11918 solaris*)
11919 lt_prog_compiler_pic_FC='-KPIC'
11920 lt_prog_compiler_static_FC='-Bstatic'
11921 case $cc_basename in
11922 f77* | f90* | f95*)
11923 lt_prog_compiler_wl_FC='-Qoption ld ';;
11924 *)
11925 lt_prog_compiler_wl_FC='-Wl,';;
11926 esac
11927 ;;
11928
11929 sunos4*)
11930 lt_prog_compiler_wl_FC='-Qoption ld '
11931 lt_prog_compiler_pic_FC='-PIC'
11932 lt_prog_compiler_static_FC='-Bstatic'
11933 ;;
11934
11935 sysv4 | sysv4.2uw2* | sysv4.3*)
11936 lt_prog_compiler_wl_FC='-Wl,'
11937 lt_prog_compiler_pic_FC='-KPIC'
11938 lt_prog_compiler_static_FC='-Bstatic'
11939 ;;
11940
11941 sysv4*MP*)
11942 if test -d /usr/nec ;then
11943 lt_prog_compiler_pic_FC='-Kconform_pic'
11944 lt_prog_compiler_static_FC='-Bstatic'
11945 fi
11946 ;;
11947
11948 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11949 lt_prog_compiler_wl_FC='-Wl,'
11950 lt_prog_compiler_pic_FC='-KPIC'
11951 lt_prog_compiler_static_FC='-Bstatic'
11952 ;;
11953
11954 unicos*)
11955 lt_prog_compiler_wl_FC='-Wl,'
11956 lt_prog_compiler_can_build_shared_FC=no
11957 ;;
11958
11959 uts4*)
11960 lt_prog_compiler_pic_FC='-pic'
11961 lt_prog_compiler_static_FC='-Bstatic'
11962 ;;
11963
11964 *)
11965 lt_prog_compiler_can_build_shared_FC=no
11966 ;;
11967 esac
11968 fi
11969
11970case $host_os in
11971 # For platforms which do not support PIC, -DPIC is meaningless:
11972 *djgpp*)
11973 lt_prog_compiler_pic_FC=
11974 ;;
11975 *)
11976 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11977 ;;
11978esac
82eaf560 11979echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11980echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
542f9784 11981
11982
11983
11984#
11985# Check to make sure the PIC flag actually works.
11986#
11987if test -n "$lt_prog_compiler_pic_FC"; then
82eaf560 11988 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11989echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
00aafda4 11990if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then
542f9784 11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11992else
00aafda4 11993 lt_cv_prog_compiler_pic_works_FC=no
542f9784 11994 ac_outfile=conftest.$ac_objext
11995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11996 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11997 # Insert the option either (1) after the last *FLAGS variable, or
11998 # (2) before a word containing "conftest.", or (3) at the end.
11999 # Note that $ac_compile itself does not contain backslashes and begins
12000 # with a dollar sign (not a hyphen), so the echo should work correctly.
12001 # The option is referenced via a variable to avoid confusing sed.
12002 lt_compile=`echo "$ac_compile" | $SED \
12003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12005 -e 's:$: $lt_compiler_flag:'`
9e6fd619 12006 (eval echo "\"\$as_me:12006: $lt_compile\"" >&5)
542f9784 12007 (eval "$lt_compile" 2>conftest.err)
12008 ac_status=$?
12009 cat conftest.err >&5
9e6fd619 12010 echo "$as_me:12010: \$? = $ac_status" >&5
542f9784 12011 if (exit $ac_status) && test -s "$ac_outfile"; then
12012 # The compiler can only warn and ignore the option if not recognized
12013 # So say no if there are warnings other than the usual output.
12014 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 12017 lt_cv_prog_compiler_pic_works_FC=yes
542f9784 12018 fi
12019 fi
12020 $RM conftest*
12021
12022fi
00aafda4 12023echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12024echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_FC" >&6
542f9784 12025
00aafda4 12026if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
542f9784 12027 case $lt_prog_compiler_pic_FC in
12028 "" | " "*) ;;
12029 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12030 esac
12031else
12032 lt_prog_compiler_pic_FC=
12033 lt_prog_compiler_can_build_shared_FC=no
12034fi
12035
12036fi
12037
12038
12039
12040#
12041# Check to make sure the static flag actually works.
12042#
12043wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
82eaf560 12044echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12045echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
00aafda4 12046if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then
542f9784 12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12048else
00aafda4 12049 lt_cv_prog_compiler_static_works_FC=no
542f9784 12050 save_LDFLAGS="$LDFLAGS"
12051 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12052 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12053 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12054 # The linker can only warn and ignore the option if not recognized
12055 # So say no if there are warnings
12056 if test -s conftest.err; then
12057 # Append any errors to the config.log.
12058 cat conftest.err 1>&5
12059 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12061 if diff conftest.exp conftest.er2 >/dev/null; then
00aafda4 12062 lt_cv_prog_compiler_static_works_FC=yes
542f9784 12063 fi
12064 else
00aafda4 12065 lt_cv_prog_compiler_static_works_FC=yes
542f9784 12066 fi
12067 fi
00aafda4 12068 $RM -r conftest*
542f9784 12069 LDFLAGS="$save_LDFLAGS"
12070
12071fi
00aafda4 12072echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_FC" >&5
12073echo "${ECHO_T}$lt_cv_prog_compiler_static_works_FC" >&6
542f9784 12074
00aafda4 12075if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
542f9784 12076 :
12077else
12078 lt_prog_compiler_static_FC=
12079fi
12080
12081
12082
12083
82eaf560 12084 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12085echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
542f9784 12086if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12088else
12089 lt_cv_prog_compiler_c_o_FC=no
12090 $RM -r conftest 2>/dev/null
12091 mkdir conftest
12092 cd conftest
12093 mkdir out
12094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12095
12096 lt_compiler_flag="-o out/conftest2.$ac_objext"
12097 # Insert the option either (1) after the last *FLAGS variable, or
12098 # (2) before a word containing "conftest.", or (3) at the end.
12099 # Note that $ac_compile itself does not contain backslashes and begins
12100 # with a dollar sign (not a hyphen), so the echo should work correctly.
12101 lt_compile=`echo "$ac_compile" | $SED \
12102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12104 -e 's:$: $lt_compiler_flag:'`
9e6fd619 12105 (eval echo "\"\$as_me:12105: $lt_compile\"" >&5)
542f9784 12106 (eval "$lt_compile" 2>out/conftest.err)
12107 ac_status=$?
12108 cat out/conftest.err >&5
9e6fd619 12109 echo "$as_me:12109: \$? = $ac_status" >&5
542f9784 12110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12111 then
12112 # The compiler can only warn and ignore the option if not recognized
12113 # So say no if there are warnings
12114 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12117 lt_cv_prog_compiler_c_o_FC=yes
12118 fi
12119 fi
12120 chmod u+w . 2>&5
12121 $RM conftest*
12122 # SGI C++ compiler will create directory out/ii_files/ for
12123 # template instantiation
12124 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12125 $RM out/* && rmdir out
12126 cd ..
12127 $RM -r conftest
12128 $RM conftest*
12129
12130fi
82eaf560 12131echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
12132echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
542f9784 12133
12134
12135
82eaf560 12136 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12137echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
542f9784 12138if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140else
12141 lt_cv_prog_compiler_c_o_FC=no
12142 $RM -r conftest 2>/dev/null
12143 mkdir conftest
12144 cd conftest
12145 mkdir out
12146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12147
12148 lt_compiler_flag="-o out/conftest2.$ac_objext"
12149 # Insert the option either (1) after the last *FLAGS variable, or
12150 # (2) before a word containing "conftest.", or (3) at the end.
12151 # Note that $ac_compile itself does not contain backslashes and begins
12152 # with a dollar sign (not a hyphen), so the echo should work correctly.
12153 lt_compile=`echo "$ac_compile" | $SED \
12154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12156 -e 's:$: $lt_compiler_flag:'`
9e6fd619 12157 (eval echo "\"\$as_me:12157: $lt_compile\"" >&5)
542f9784 12158 (eval "$lt_compile" 2>out/conftest.err)
12159 ac_status=$?
12160 cat out/conftest.err >&5
9e6fd619 12161 echo "$as_me:12161: \$? = $ac_status" >&5
542f9784 12162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12163 then
12164 # The compiler can only warn and ignore the option if not recognized
12165 # So say no if there are warnings
12166 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12169 lt_cv_prog_compiler_c_o_FC=yes
12170 fi
12171 fi
12172 chmod u+w . 2>&5
12173 $RM conftest*
12174 # SGI C++ compiler will create directory out/ii_files/ for
12175 # template instantiation
12176 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12177 $RM out/* && rmdir out
12178 cd ..
12179 $RM -r conftest
12180 $RM conftest*
12181
12182fi
82eaf560 12183echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
12184echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
542f9784 12185
12186
12187
12188
12189hard_links="nottested"
12190if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12191 # do not overwrite the value of need_locks provided by the user
82eaf560 12192 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12193echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
542f9784 12194 hard_links=yes
12195 $RM conftest*
12196 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12197 touch conftest.a
12198 ln conftest.a conftest.b 2>&5 || hard_links=no
12199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
82eaf560 12200 echo "$as_me:$LINENO: result: $hard_links" >&5
12201echo "${ECHO_T}$hard_links" >&6
542f9784 12202 if test "$hard_links" = no; then
12203 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12204echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12205 need_locks=warn
12206 fi
12207else
12208 need_locks=no
12209fi
12210
12211
12212
82eaf560 12213 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12214echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
542f9784 12215
12216 runpath_var=
12217 allow_undefined_flag_FC=
12218 always_export_symbols_FC=no
12219 archive_cmds_FC=
12220 archive_expsym_cmds_FC=
12221 compiler_needs_object_FC=no
12222 enable_shared_with_static_runtimes_FC=no
12223 export_dynamic_flag_spec_FC=
12224 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12225 hardcode_automatic_FC=no
12226 hardcode_direct_FC=no
12227 hardcode_direct_absolute_FC=no
12228 hardcode_libdir_flag_spec_FC=
12229 hardcode_libdir_flag_spec_ld_FC=
12230 hardcode_libdir_separator_FC=
12231 hardcode_minus_L_FC=no
12232 hardcode_shlibpath_var_FC=unsupported
12233 inherit_rpath_FC=no
12234 link_all_deplibs_FC=unknown
12235 module_cmds_FC=
12236 module_expsym_cmds_FC=
12237 old_archive_from_new_cmds_FC=
12238 old_archive_from_expsyms_cmds_FC=
12239 thread_safe_flag_spec_FC=
12240 whole_archive_flag_spec_FC=
12241 # include_expsyms should be a list of space-separated symbols to be *always*
12242 # included in the symbol list
12243 include_expsyms_FC=
12244 # exclude_expsyms can be an extended regexp of symbols to exclude
12245 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12246 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12247 # as well as any symbol that contains `d'.
00aafda4 12248 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
542f9784 12249 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12250 # platforms (ab)use it in PIC code, but their linkers get confused if
12251 # the symbol is explicitly referenced. Since portable code cannot
12252 # rely on this symbol name, it's probably fine to never include it in
12253 # preloaded symbol tables.
00aafda4 12254 # Exclude shared library initialization/finalization symbols.
542f9784 12255 extract_expsyms_cmds=
12256
12257 case $host_os in
00aafda4 12258 cygwin* | mingw* | pw32* | cegcc*)
542f9784 12259 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12260 # When not using gcc, we currently assume that we are using
12261 # Microsoft Visual C++.
12262 if test "$GCC" != yes; then
12263 with_gnu_ld=no
12264 fi
12265 ;;
12266 interix*)
12267 # we just hope/assume this is gcc and not c89 (= MSVC++)
12268 with_gnu_ld=yes
12269 ;;
12270 openbsd*)
12271 with_gnu_ld=no
12272 ;;
12273 esac
12274
12275 ld_shlibs_FC=yes
12276 if test "$with_gnu_ld" = yes; then
12277 # If archive_cmds runs LD, not CC, wlarc should be empty
12278 wlarc='${wl}'
12279
12280 # Set some defaults for GNU ld with shared library support. These
12281 # are reset later if shared libraries are not supported. Putting them
12282 # here allows them to be overridden if necessary.
12283 runpath_var=LD_RUN_PATH
12284 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12285 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12286 # ancient GNU ld didn't support --whole-archive et. al.
12287 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12288 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12289 else
12290 whole_archive_flag_spec_FC=
12291 fi
12292 supports_anon_versioning=no
12293 case `$LD -v 2>&1` in
12294 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12295 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12296 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12297 *\ 2.11.*) ;; # other 2.11 versions
12298 *) supports_anon_versioning=yes ;;
12299 esac
12300
12301 # See if GNU ld supports shared libraries.
12302 case $host_os in
21e07d2f 12303 aix[3-9]*)
542f9784 12304 # On AIX/PPC, the GNU linker is very broken
12305 if test "$host_cpu" != ia64; then
12306 ld_shlibs_FC=no
12307 cat <<_LT_EOF 1>&2
12308
12309*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12310*** to be unable to reliably create shared libraries on AIX.
12311*** Therefore, libtool is disabling shared libraries support. If you
12312*** really care for shared libraries, you may want to modify your PATH
12313*** so that a non-GNU linker is found, and then restart.
12314
12315_LT_EOF
12316 fi
12317 ;;
12318
12319 amigaos*)
00aafda4 12320 case $host_cpu in
12321 powerpc)
12322 # see comment about AmigaOS4 .so support
12323 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12324 archive_expsym_cmds_FC=''
12325 ;;
12326 m68k)
12327 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)'
12328 hardcode_libdir_flag_spec_FC='-L$libdir'
12329 hardcode_minus_L_FC=yes
12330 ;;
12331 esac
542f9784 12332 ;;
12333
12334 beos*)
12335 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12336 allow_undefined_flag_FC=unsupported
12337 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12338 # support --undefined. This deserves some investigation. FIXME
12339 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12340 else
12341 ld_shlibs_FC=no
12342 fi
12343 ;;
12344
00aafda4 12345 cygwin* | mingw* | pw32* | cegcc*)
542f9784 12346 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12347 # as there is no search path for DLLs.
12348 hardcode_libdir_flag_spec_FC='-L$libdir'
12349 allow_undefined_flag_FC=unsupported
12350 always_export_symbols_FC=no
12351 enable_shared_with_static_runtimes_FC=yes
12352 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12353
12354 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12355 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12356 # If the export-symbols file already is a .def file (1st line
12357 # is EXPORTS), use it as is; otherwise, prepend...
12358 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12359 cp $export_symbols $output_objdir/$soname.def;
12360 else
12361 echo EXPORTS > $output_objdir/$soname.def;
12362 cat $export_symbols >> $output_objdir/$soname.def;
12363 fi~
12364 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12365 else
12366 ld_shlibs_FC=no
12367 fi
12368 ;;
12369
12370 interix[3-9]*)
12371 hardcode_direct_FC=no
12372 hardcode_shlibpath_var_FC=no
12373 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12374 export_dynamic_flag_spec_FC='${wl}-E'
12375 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12376 # Instead, shared libraries are loaded at an image base (0x10000000 by
12377 # default) and relocated if they conflict, which is a slow very memory
12378 # consuming and fragmenting process. To avoid this, we pick a random,
12379 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12380 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12381 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'
12382 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'
12383 ;;
12384
12385 gnu* | linux* | tpf* | k*bsd*-gnu)
12386 tmp_diet=no
12387 if test "$host_os" = linux-dietlibc; then
12388 case $cc_basename in
12389 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12390 esac
12391 fi
12392 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12393 && test "$tmp_diet" = no
12394 then
12395 tmp_addflag=
00aafda4 12396 tmp_sharedflag='-shared'
542f9784 12397 case $cc_basename,$host_cpu in
12398 pgcc*) # Portland Group C compiler
12399 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'
12400 tmp_addflag=' $pic_flag'
12401 ;;
12402 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12403 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'
12404 tmp_addflag=' $pic_flag -Mnomain' ;;
12405 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12406 tmp_addflag=' -i_dynamic' ;;
12407 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12408 tmp_addflag=' -i_dynamic -nofor_main' ;;
12409 ifc* | ifort*) # Intel Fortran compiler
12410 tmp_addflag=' -nofor_main' ;;
00aafda4 12411 lf95*) # Lahey Fortran 8.1
12412 whole_archive_flag_spec_FC=
12413 tmp_sharedflag='--shared' ;;
12414 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12415 tmp_sharedflag='-qmkshrobj'
12416 tmp_addflag= ;;
542f9784 12417 esac
12418 case `$CC -V 2>&1 | sed 5q` in
12419 *Sun\ C*) # Sun C 5.9
12420 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'
12421 compiler_needs_object_FC=yes
12422 tmp_sharedflag='-G' ;;
12423 *Sun\ F*) # Sun Fortran 8.3
12424 tmp_sharedflag='-G' ;;
542f9784 12425 esac
12426 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12427
12428 if test "x$supports_anon_versioning" = xyes; then
12429 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12430 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12431 echo "local: *; };" >> $output_objdir/$libname.ver~
12432 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12433 fi
00aafda4 12434
12435 case $cc_basename in
12436 xlf*)
12437 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12438 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12439 hardcode_libdir_flag_spec_FC=
12440 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12441 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12442 if test "x$supports_anon_versioning" = xyes; then
12443 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12444 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12445 echo "local: *; };" >> $output_objdir/$libname.ver~
12446 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12447 fi
12448 ;;
12449 esac
542f9784 12450 else
12451 ld_shlibs_FC=no
12452 fi
12453 ;;
12454
12455 netbsd*)
12456 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12457 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12458 wlarc=
12459 else
12460 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12461 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12462 fi
12463 ;;
12464
12465 solaris*)
12466 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12467 ld_shlibs_FC=no
12468 cat <<_LT_EOF 1>&2
12469
12470*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12471*** create shared libraries on Solaris systems. Therefore, libtool
12472*** is disabling shared libraries support. We urge you to upgrade GNU
12473*** binutils to release 2.9.1 or newer. Another option is to modify
12474*** your PATH or compiler configuration so that the native linker is
12475*** used, and then restart.
12476
12477_LT_EOF
12478 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12479 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12480 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12481 else
12482 ld_shlibs_FC=no
12483 fi
12484 ;;
12485
12486 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12487 case `$LD -v 2>&1` in
12488 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12489 ld_shlibs_FC=no
12490 cat <<_LT_EOF 1>&2
12491
12492*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12493*** reliably create shared libraries on SCO systems. Therefore, libtool
12494*** is disabling shared libraries support. We urge you to upgrade GNU
12495*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12496*** your PATH or compiler configuration so that the native linker is
12497*** used, and then restart.
12498
12499_LT_EOF
12500 ;;
12501 *)
12502 # For security reasons, it is highly recommended that you always
12503 # use absolute paths for naming shared libraries, and exclude the
12504 # DT_RUNPATH tag from executables and libraries. But doing so
12505 # requires that you compile everything twice, which is a pain.
12506 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12507 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12508 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12509 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12510 else
12511 ld_shlibs_FC=no
12512 fi
12513 ;;
12514 esac
12515 ;;
12516
12517 sunos4*)
12518 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12519 wlarc=
12520 hardcode_direct_FC=yes
12521 hardcode_shlibpath_var_FC=no
12522 ;;
12523
12524 *)
12525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12526 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12527 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12528 else
12529 ld_shlibs_FC=no
12530 fi
12531 ;;
12532 esac
12533
12534 if test "$ld_shlibs_FC" = no; then
12535 runpath_var=
12536 hardcode_libdir_flag_spec_FC=
12537 export_dynamic_flag_spec_FC=
12538 whole_archive_flag_spec_FC=
12539 fi
12540 else
12541 # PORTME fill in a description of your system's linker (not GNU ld)
12542 case $host_os in
12543 aix3*)
12544 allow_undefined_flag_FC=unsupported
12545 always_export_symbols_FC=yes
12546 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'
12547 # Note: this linker hardcodes the directories in LIBPATH if there
12548 # are no directories specified by -L.
12549 hardcode_minus_L_FC=yes
12550 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12551 # Neither direct hardcoding nor static linking is supported with a
12552 # broken collect2.
12553 hardcode_direct_FC=unsupported
12554 fi
12555 ;;
12556
21e07d2f 12557 aix[4-9]*)
542f9784 12558 if test "$host_cpu" = ia64; then
12559 # On IA64, the linker does run time linking by default, so we don't
12560 # have to do anything special.
12561 aix_use_runtimelinking=no
12562 exp_sym_flag='-Bexport'
12563 no_entry_flag=""
12564 else
12565 # If we're using GNU nm, then we don't want the "-C" option.
12566 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12567 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12568 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'
12569 else
12570 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'
12571 fi
12572 aix_use_runtimelinking=no
12573
12574 # Test if we are trying to use run time linking or normal
12575 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12576 # need to do runtime linking.
21e07d2f 12577 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
542f9784 12578 for ld_flag in $LDFLAGS; do
12579 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12580 aix_use_runtimelinking=yes
12581 break
12582 fi
12583 done
12584 ;;
12585 esac
12586
12587 exp_sym_flag='-bexport'
12588 no_entry_flag='-bnoentry'
12589 fi
12590
12591 # When large executables or shared objects are built, AIX ld can
12592 # have problems creating the table of contents. If linking a library
12593 # or program results in "error TOC overflow" add -mminimal-toc to
12594 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12595 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12596
12597 archive_cmds_FC=''
12598 hardcode_direct_FC=yes
12599 hardcode_direct_absolute_FC=yes
12600 hardcode_libdir_separator_FC=':'
12601 link_all_deplibs_FC=yes
12602 file_list_spec_FC='${wl}-f,'
12603
12604 if test "$GCC" = yes; then
12605 case $host_os in aix4.[012]|aix4.[012].*)
12606 # We only want to do this on AIX 4.2 and lower, the check
12607 # below for broken collect2 doesn't work under 4.3+
12608 collect2name=`${CC} -print-prog-name=collect2`
12609 if test -f "$collect2name" &&
12610 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12611 then
12612 # We have reworked collect2
12613 :
12614 else
12615 # We have old collect2
12616 hardcode_direct_FC=unsupported
12617 # It fails to find uninstalled libraries when the uninstalled
12618 # path is not listed in the libpath. Setting hardcode_minus_L
12619 # to unsupported forces relinking
12620 hardcode_minus_L_FC=yes
12621 hardcode_libdir_flag_spec_FC='-L$libdir'
12622 hardcode_libdir_separator_FC=
12623 fi
12624 ;;
12625 esac
12626 shared_flag='-shared'
12627 if test "$aix_use_runtimelinking" = yes; then
12628 shared_flag="$shared_flag "'${wl}-G'
12629 fi
12630 else
12631 # not using gcc
12632 if test "$host_cpu" = ia64; then
12633 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12634 # chokes on -Wl,-G. The following line is correct:
12635 shared_flag='-G'
12636 else
12637 if test "$aix_use_runtimelinking" = yes; then
12638 shared_flag='${wl}-G'
12639 else
12640 shared_flag='${wl}-bM:SRE'
12641 fi
12642 fi
12643 fi
12644
00aafda4 12645 export_dynamic_flag_spec_FC='${wl}-bexpall'
542f9784 12646 # It seems that -bexpall does not export symbols beginning with
12647 # underscore (_), so it is better to generate a list of symbols to export.
12648 always_export_symbols_FC=yes
12649 if test "$aix_use_runtimelinking" = yes; then
12650 # Warning - without using the other runtime loading flags (-brtl),
12651 # -berok will link without error, but may produce a broken library.
12652 allow_undefined_flag_FC='-berok'
12653 # Determine the default libpath from the value encoded in an
12654 # empty executable.
12655 if test x$gcc_no_link = xyes; then
12656 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12657echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12658 { (exit 1); exit 1; }; }
12659fi
12660cat >conftest.$ac_ext <<_ACEOF
12661 program main
12662
12663 end
12664_ACEOF
12665rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 12666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12667 (eval $ac_link) 2>conftest.er1
90e67cff 12668 ac_status=$?
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 12673 (exit $ac_status); } &&
12674 { ac_try='test -z "$ac_fc_werror_flag"
12675 || test ! -s conftest.err'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try='test -s conftest$ac_exeext'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
542f9784 12687
12688lt_aix_libpath_sed='
12689 /Import File Strings/,/^$/ {
12690 /^0/ {
12691 s/^0 *\(.*\)$/\1/
12692 p
12693 }
12694 }'
12695aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12696# Check for a 64-bit object if we didn't find anything.
12697if test -z "$aix_libpath"; then
12698 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12699fi
12700else
12701 echo "$as_me: failed program was:" >&5
12702sed 's/^/| /' conftest.$ac_ext >&5
12703
12704fi
82eaf560 12705rm -f conftest.err conftest.$ac_objext \
542f9784 12706 conftest$ac_exeext conftest.$ac_ext
12707if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12708
12709 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
12710 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"
12711 else
12712 if test "$host_cpu" = ia64; then
12713 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
12714 allow_undefined_flag_FC="-z nodefs"
12715 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"
12716 else
12717 # Determine the default libpath from the value encoded in an
12718 # empty executable.
12719 if test x$gcc_no_link = xyes; then
12720 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12721echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12722 { (exit 1); exit 1; }; }
12723fi
12724cat >conftest.$ac_ext <<_ACEOF
12725 program main
12726
12727 end
12728_ACEOF
12729rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 12730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12731 (eval $ac_link) 2>conftest.er1
542f9784 12732 ac_status=$?
12733 grep -v '^ *+' conftest.er1 >conftest.err
12734 rm -f conftest.er1
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 12737 (exit $ac_status); } &&
12738 { ac_try='test -z "$ac_fc_werror_flag"
12739 || test ! -s conftest.err'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest$ac_exeext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
542f9784 12751
12752lt_aix_libpath_sed='
12753 /Import File Strings/,/^$/ {
12754 /^0/ {
12755 s/^0 *\(.*\)$/\1/
12756 p
12757 }
12758 }'
12759aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12760# Check for a 64-bit object if we didn't find anything.
12761if test -z "$aix_libpath"; then
12762 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12763fi
12764else
12765 echo "$as_me: failed program was:" >&5
12766sed 's/^/| /' conftest.$ac_ext >&5
12767
12768fi
82eaf560 12769rm -f conftest.err conftest.$ac_objext \
542f9784 12770 conftest$ac_exeext conftest.$ac_ext
12771if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12772
12773 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
12774 # Warning - without using the other run time loading flags,
12775 # -berok will link without error, but may produce a broken library.
12776 no_undefined_flag_FC=' ${wl}-bernotok'
12777 allow_undefined_flag_FC=' ${wl}-berok'
12778 # Exported symbols can be pulled into shared objects from archives
12779 whole_archive_flag_spec_FC='$convenience'
12780 archive_cmds_need_lc_FC=yes
12781 # This is similar to how AIX traditionally builds its shared libraries.
12782 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'
12783 fi
12784 fi
12785 ;;
12786
12787 amigaos*)
00aafda4 12788 case $host_cpu in
12789 powerpc)
12790 # see comment about AmigaOS4 .so support
12791 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12792 archive_expsym_cmds_FC=''
12793 ;;
12794 m68k)
12795 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)'
12796 hardcode_libdir_flag_spec_FC='-L$libdir'
12797 hardcode_minus_L_FC=yes
12798 ;;
12799 esac
542f9784 12800 ;;
12801
12802 bsdi[45]*)
12803 export_dynamic_flag_spec_FC=-rdynamic
12804 ;;
12805
00aafda4 12806 cygwin* | mingw* | pw32* | cegcc*)
542f9784 12807 # When not using gcc, we currently assume that we are using
12808 # Microsoft Visual C++.
12809 # hardcode_libdir_flag_spec is actually meaningless, as there is
12810 # no search path for DLLs.
12811 hardcode_libdir_flag_spec_FC=' '
12812 allow_undefined_flag_FC=unsupported
12813 # Tell ltmain to make .lib files, not .a files.
12814 libext=lib
12815 # Tell ltmain to make .dll files, not .so files.
12816 shrext_cmds=".dll"
12817 # FIXME: Setting linknames here is a bad hack.
12818 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12819 # The linker will automatically build a .lib file if we build a DLL.
12820 old_archive_from_new_cmds_FC='true'
12821 # FIXME: Should let the user specify the lib program.
12822 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
12823 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
12824 enable_shared_with_static_runtimes_FC=yes
12825 ;;
12826
12827 darwin* | rhapsody*)
542f9784 12828
00aafda4 12829
12830 archive_cmds_need_lc_FC=no
12831 hardcode_direct_FC=no
12832 hardcode_automatic_FC=yes
12833 hardcode_shlibpath_var_FC=unsupported
12834 whole_archive_flag_spec_FC=''
12835 link_all_deplibs_FC=yes
12836 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
12837 case $cc_basename in
12838 ifort*) _lt_dar_can_shared=yes ;;
12839 *) _lt_dar_can_shared=$GCC ;;
12840 esac
12841 if test "$_lt_dar_can_shared" = "yes"; then
12842 output_verbose_link_cmd=echo
12843 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12844 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12845 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12846 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${_lt_dar_export_syms}${_lt_dsymutil}"
12847
12848 else
12849 ld_shlibs_FC=no
12850 fi
12851
542f9784 12852 ;;
12853
12854 dgux*)
12855 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12856 hardcode_libdir_flag_spec_FC='-L$libdir'
12857 hardcode_shlibpath_var_FC=no
12858 ;;
12859
12860 freebsd1*)
12861 ld_shlibs_FC=no
12862 ;;
12863
12864 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12865 # support. Future versions do this automatically, but an explicit c++rt0.o
12866 # does not break anything, and helps significantly (at the cost of a little
12867 # extra space).
12868 freebsd2.2*)
12869 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12870 hardcode_libdir_flag_spec_FC='-R$libdir'
12871 hardcode_direct_FC=yes
12872 hardcode_shlibpath_var_FC=no
12873 ;;
12874
12875 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12876 freebsd2*)
12877 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12878 hardcode_direct_FC=yes
12879 hardcode_minus_L_FC=yes
12880 hardcode_shlibpath_var_FC=no
12881 ;;
12882
12883 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12884 freebsd* | dragonfly*)
12885 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12886 hardcode_libdir_flag_spec_FC='-R$libdir'
12887 hardcode_direct_FC=yes
12888 hardcode_shlibpath_var_FC=no
12889 ;;
12890
12891 hpux9*)
12892 if test "$GCC" = yes; then
12893 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'
12894 else
12895 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'
12896 fi
12897 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12898 hardcode_libdir_separator_FC=:
12899 hardcode_direct_FC=yes
12900
12901 # hardcode_minus_L: Not really in the search PATH,
12902 # but as the default location of the library.
12903 hardcode_minus_L_FC=yes
12904 export_dynamic_flag_spec_FC='${wl}-E'
12905 ;;
12906
12907 hpux10*)
12908 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12909 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12910 else
12911 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12912 fi
12913 if test "$with_gnu_ld" = no; then
12914 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12915 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
12916 hardcode_libdir_separator_FC=:
12917 hardcode_direct_FC=yes
12918 hardcode_direct_absolute_FC=yes
12919 export_dynamic_flag_spec_FC='${wl}-E'
12920 # hardcode_minus_L: Not really in the search PATH,
12921 # but as the default location of the library.
12922 hardcode_minus_L_FC=yes
12923 fi
12924 ;;
12925
12926 hpux11*)
12927 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12928 case $host_cpu in
12929 hppa*64*)
12930 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12931 ;;
12932 ia64*)
00aafda4 12933 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
542f9784 12934 ;;
12935 *)
12936 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12937 ;;
12938 esac
12939 else
12940 case $host_cpu in
12941 hppa*64*)
12942 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12943 ;;
12944 ia64*)
12945 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12946 ;;
12947 *)
12948 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12949 ;;
12950 esac
12951 fi
12952 if test "$with_gnu_ld" = no; then
12953 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12954 hardcode_libdir_separator_FC=:
12955
12956 case $host_cpu in
12957 hppa*64*|ia64*)
12958 hardcode_direct_FC=no
12959 hardcode_shlibpath_var_FC=no
12960 ;;
12961 *)
12962 hardcode_direct_FC=yes
12963 hardcode_direct_absolute_FC=yes
12964 export_dynamic_flag_spec_FC='${wl}-E'
12965
12966 # hardcode_minus_L: Not really in the search PATH,
12967 # but as the default location of the library.
12968 hardcode_minus_L_FC=yes
12969 ;;
12970 esac
12971 fi
12972 ;;
12973
12974 irix5* | irix6* | nonstopux*)
12975 if test "$GCC" = yes; then
12976 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'
12977 # Try to use the -exported_symbol ld option, if it does not
12978 # work, assume that -exports_file does not work either and
12979 # implicitly export all symbols.
12980 save_LDFLAGS="$LDFLAGS"
12981 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12982 if test x$gcc_no_link = xyes; then
12983 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12984echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12985 { (exit 1); exit 1; }; }
12986fi
12987cat >conftest.$ac_ext <<_ACEOF
12988int foo(void) {}
12989_ACEOF
12990rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 12991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12992 (eval $ac_link) 2>conftest.er1
542f9784 12993 ac_status=$?
12994 grep -v '^ *+' conftest.er1 >conftest.err
12995 rm -f conftest.er1
12996 cat conftest.err >&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 12998 (exit $ac_status); } &&
12999 { ac_try='test -z "$ac_fc_werror_flag"
13000 || test ! -s conftest.err'
13001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002 (eval $ac_try) 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; } &&
13006 { ac_try='test -s conftest$ac_exeext'
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
542f9784 13012 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'
13013
13014else
13015 echo "$as_me: failed program was:" >&5
13016sed 's/^/| /' conftest.$ac_ext >&5
13017
13018fi
82eaf560 13019rm -f conftest.err conftest.$ac_objext \
542f9784 13020 conftest$ac_exeext conftest.$ac_ext
13021 LDFLAGS="$save_LDFLAGS"
13022 else
13023 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'
13024 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'
13025 fi
13026 archive_cmds_need_lc_FC='no'
13027 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13028 hardcode_libdir_separator_FC=:
13029 inherit_rpath_FC=yes
13030 link_all_deplibs_FC=yes
13031 ;;
13032
13033 netbsd*)
13034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13035 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13036 else
13037 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13038 fi
13039 hardcode_libdir_flag_spec_FC='-R$libdir'
13040 hardcode_direct_FC=yes
13041 hardcode_shlibpath_var_FC=no
13042 ;;
13043
13044 newsos6)
13045 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13046 hardcode_direct_FC=yes
13047 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13048 hardcode_libdir_separator_FC=:
13049 hardcode_shlibpath_var_FC=no
13050 ;;
13051
13052 *nto* | *qnx*)
13053 ;;
13054
13055 openbsd*)
00aafda4 13056 if test -f /usr/libexec/ld.so; then
13057 hardcode_direct_FC=yes
13058 hardcode_shlibpath_var_FC=no
13059 hardcode_direct_absolute_FC=yes
13060 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
542f9784 13061 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
00aafda4 13062 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
542f9784 13063 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
00aafda4 13064 export_dynamic_flag_spec_FC='${wl}-E'
13065 else
13066 case $host_os in
13067 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13068 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13069 hardcode_libdir_flag_spec_FC='-R$libdir'
13070 ;;
13071 *)
13072 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13073 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13074 ;;
13075 esac
13076 fi
13077 else
13078 ld_shlibs_FC=no
542f9784 13079 fi
13080 ;;
13081
13082 os2*)
13083 hardcode_libdir_flag_spec_FC='-L$libdir'
13084 hardcode_minus_L_FC=yes
13085 allow_undefined_flag_FC=unsupported
13086 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'
13087 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13088 ;;
13089
13090 osf3*)
13091 if test "$GCC" = yes; then
13092 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13093 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'
13094 else
13095 allow_undefined_flag_FC=' -expect_unresolved \*'
13096 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'
13097 fi
13098 archive_cmds_need_lc_FC='no'
13099 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13100 hardcode_libdir_separator_FC=:
13101 ;;
13102
13103 osf4* | osf5*) # as osf3* with the addition of -msym flag
13104 if test "$GCC" = yes; then
13105 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13106 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'
13107 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13108 else
13109 allow_undefined_flag_FC=' -expect_unresolved \*'
13110 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'
13111 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~
13112 $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'
13113
13114 # Both c and cxx compiler support -rpath directly
13115 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13116 fi
13117 archive_cmds_need_lc_FC='no'
13118 hardcode_libdir_separator_FC=:
13119 ;;
13120
13121 solaris*)
13122 no_undefined_flag_FC=' -z defs'
13123 if test "$GCC" = yes; then
13124 wlarc='${wl}'
13125 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13126 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13127 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13128 else
13129 case `$CC -V 2>&1` in
13130 *"Compilers 5.0"*)
13131 wlarc=''
13132 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13133 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13134 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13135 ;;
13136 *)
13137 wlarc='${wl}'
13138 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13139 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13140 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13141 ;;
13142 esac
13143 fi
13144 hardcode_libdir_flag_spec_FC='-R$libdir'
13145 hardcode_shlibpath_var_FC=no
13146 case $host_os in
13147 solaris2.[0-5] | solaris2.[0-5].*) ;;
13148 *)
13149 # The compiler driver will combine and reorder linker options,
13150 # but understands `-z linker_flag'. GCC discards it without `$wl',
13151 # but is careful enough not to reorder.
13152 # Supported since Solaris 2.6 (maybe 2.5.1?)
13153 if test "$GCC" = yes; then
13154 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13155 else
13156 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13157 fi
13158 ;;
13159 esac
13160 link_all_deplibs_FC=yes
13161 ;;
13162
13163 sunos4*)
13164 if test "x$host_vendor" = xsequent; then
13165 # Use $CC to link under sequent, because it throws in some extra .o
13166 # files that make .init and .fini sections work.
13167 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13168 else
13169 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13170 fi
13171 hardcode_libdir_flag_spec_FC='-L$libdir'
13172 hardcode_direct_FC=yes
13173 hardcode_minus_L_FC=yes
13174 hardcode_shlibpath_var_FC=no
13175 ;;
13176
13177 sysv4)
13178 case $host_vendor in
13179 sni)
13180 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13181 hardcode_direct_FC=yes # is this really true???
13182 ;;
13183 siemens)
13184 ## LD is ld it makes a PLAMLIB
13185 ## CC just makes a GrossModule.
13186 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13187 reload_cmds_FC='$CC -r -o $output$reload_objs'
13188 hardcode_direct_FC=no
13189 ;;
13190 motorola)
13191 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13192 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13193 ;;
13194 esac
13195 runpath_var='LD_RUN_PATH'
13196 hardcode_shlibpath_var_FC=no
13197 ;;
13198
13199 sysv4.3*)
13200 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13201 hardcode_shlibpath_var_FC=no
13202 export_dynamic_flag_spec_FC='-Bexport'
13203 ;;
13204
13205 sysv4*MP*)
13206 if test -d /usr/nec; then
13207 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13208 hardcode_shlibpath_var_FC=no
13209 runpath_var=LD_RUN_PATH
13210 hardcode_runpath_var=yes
13211 ld_shlibs_FC=yes
13212 fi
13213 ;;
13214
13215 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13216 no_undefined_flag_FC='${wl}-z,text'
13217 archive_cmds_need_lc_FC=no
13218 hardcode_shlibpath_var_FC=no
13219 runpath_var='LD_RUN_PATH'
13220
13221 if test "$GCC" = yes; then
13222 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13223 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13224 else
13225 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13226 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13227 fi
13228 ;;
13229
13230 sysv5* | sco3.2v5* | sco5v6*)
13231 # Note: We can NOT use -z defs as we might desire, because we do not
13232 # link with -lc, and that would cause any symbols used from libc to
13233 # always be unresolved, which means just about no library would
13234 # ever link correctly. If we're not using GNU ld we use -z text
13235 # though, which does catch some bad symbols but isn't as heavy-handed
13236 # as -z defs.
13237 no_undefined_flag_FC='${wl}-z,text'
13238 allow_undefined_flag_FC='${wl}-z,nodefs'
13239 archive_cmds_need_lc_FC=no
13240 hardcode_shlibpath_var_FC=no
13241 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13242 hardcode_libdir_separator_FC=':'
13243 link_all_deplibs_FC=yes
13244 export_dynamic_flag_spec_FC='${wl}-Bexport'
13245 runpath_var='LD_RUN_PATH'
13246
13247 if test "$GCC" = yes; then
13248 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13249 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13250 else
13251 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13252 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13253 fi
13254 ;;
13255
13256 uts4*)
13257 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13258 hardcode_libdir_flag_spec_FC='-L$libdir'
13259 hardcode_shlibpath_var_FC=no
13260 ;;
13261
13262 *)
13263 ld_shlibs_FC=no
13264 ;;
13265 esac
13266
13267 if test x$host_vendor = xsni; then
13268 case $host in
13269 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13270 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13271 ;;
13272 esac
13273 fi
13274 fi
13275
82eaf560 13276echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
13277echo "${ECHO_T}$ld_shlibs_FC" >&6
542f9784 13278test "$ld_shlibs_FC" = no && can_build_shared=no
13279
13280with_gnu_ld_FC=$with_gnu_ld
13281
13282
13283
13284
13285
13286
13287#
13288# Do we need to explicitly link libc?
13289#
13290case "x$archive_cmds_need_lc_FC" in
13291x|xyes)
13292 # Assume -lc should be added
13293 archive_cmds_need_lc_FC=yes
13294
13295 if test "$enable_shared" = yes && test "$GCC" = yes; then
13296 case $archive_cmds_FC in
13297 *'~'*)
13298 # FIXME: we may have to deal with multi-command sequences.
13299 ;;
13300 '$CC '*)
13301 # Test whether the compiler implicitly links with -lc since on some
13302 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13303 # to ld, don't add -lc before -lgcc.
82eaf560 13304 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13305echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9e6fd619 13306if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13308else
13309 $RM conftest*
13310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
542f9784 13311
9e6fd619 13312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
542f9784 13313 (eval $ac_compile) 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } 2>conftest.err; then
9e6fd619 13317 soname=conftest
13318 lib=conftest
13319 libobjs=conftest.$ac_objext
13320 deplibs=
13321 wl=$lt_prog_compiler_wl_FC
13322 pic_flag=$lt_prog_compiler_pic_FC
13323 compiler_flags=-v
13324 linker_flags=-v
13325 verstring=
13326 output_objdir=.
13327 libname=conftest
13328 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13329 allow_undefined_flag_FC=
13330 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
542f9784 13331 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
90e67cff 13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
542f9784 13334 (exit $ac_status); }
9e6fd619 13335 then
13336 lt_cv_archive_cmds_need_lc_FC=no
13337 else
13338 lt_cv_archive_cmds_need_lc_FC=yes
13339 fi
13340 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13341 else
13342 cat conftest.err 1>&5
13343 fi
13344 $RM conftest*
13345
13346fi
13347echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13348echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_FC" >&6
13349 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
542f9784 13350 ;;
13351 esac
13352 fi
13353 ;;
13354esac
90e67cff 13355
90e67cff 13356
542f9784 13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
82eaf560 13419 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13420echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
00aafda4 13421
542f9784 13422library_names_spec=
13423libname_spec='lib$name'
13424soname_spec=
13425shrext_cmds=".so"
13426postinstall_cmds=
13427postuninstall_cmds=
13428finish_cmds=
13429finish_eval=
13430shlibpath_var=
13431shlibpath_overrides_runpath=unknown
13432version_type=none
13433dynamic_linker="$host_os ld.so"
13434sys_lib_dlsearch_path_spec="/lib /usr/lib"
13435need_lib_prefix=unknown
13436hardcode_into_libs=no
13437
13438# when you set need_version to no, make sure it does not cause -set_version
13439# flags to be left without arguments
13440need_version=unknown
13441
13442case $host_os in
13443aix3*)
13444 version_type=linux
13445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13446 shlibpath_var=LIBPATH
13447
13448 # AIX 3 has no versioning support, so we append a major version to the name.
13449 soname_spec='${libname}${release}${shared_ext}$major'
13450 ;;
13451
21e07d2f 13452aix[4-9]*)
542f9784 13453 version_type=linux
13454 need_lib_prefix=no
13455 need_version=no
13456 hardcode_into_libs=yes
13457 if test "$host_cpu" = ia64; then
13458 # AIX 5 supports IA64
13459 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13460 shlibpath_var=LD_LIBRARY_PATH
13461 else
13462 # With GCC up to 2.95.x, collect2 would create an import file
13463 # for dependence libraries. The import file would start with
13464 # the line `#! .'. This would cause the generated library to
13465 # depend on `.', always an invalid library. This was fixed in
13466 # development snapshots of GCC prior to 3.0.
13467 case $host_os in
13468 aix4 | aix4.[01] | aix4.[01].*)
13469 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13470 echo ' yes '
13471 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13472 :
13473 else
13474 can_build_shared=no
13475 fi
13476 ;;
13477 esac
13478 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13479 # soname into executable. Probably we can add versioning support to
13480 # collect2, so additional links can be useful in future.
13481 if test "$aix_use_runtimelinking" = yes; then
13482 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13483 # instead of lib<name>.a to let people know that these are not
13484 # typical AIX shared libraries.
13485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13486 else
13487 # We preserve .a as extension for shared libraries through AIX4.2
13488 # and later when we are not doing run time linking.
13489 library_names_spec='${libname}${release}.a $libname.a'
13490 soname_spec='${libname}${release}${shared_ext}$major'
13491 fi
13492 shlibpath_var=LIBPATH
13493 fi
13494 ;;
13495
13496amigaos*)
00aafda4 13497 case $host_cpu in
13498 powerpc)
13499 # Since July 2007 AmigaOS4 officially supports .so libraries.
13500 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502 ;;
13503 m68k)
542f9784 13504 library_names_spec='$libname.ixlibrary $libname.a'
13505 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13506 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'
00aafda4 13507 ;;
13508 esac
542f9784 13509 ;;
13510
13511beos*)
13512 library_names_spec='${libname}${shared_ext}'
13513 dynamic_linker="$host_os ld.so"
13514 shlibpath_var=LIBRARY_PATH
13515 ;;
13516
13517bsdi[45]*)
13518 version_type=linux
13519 need_version=no
13520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13521 soname_spec='${libname}${release}${shared_ext}$major'
13522 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13523 shlibpath_var=LD_LIBRARY_PATH
13524 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13525 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13526 # the default ld.so.conf also contains /usr/contrib/lib and
13527 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13528 # libtool to hard-code these into programs
13529 ;;
13530
00aafda4 13531cygwin* | mingw* | pw32* | cegcc*)
542f9784 13532 version_type=windows
13533 shrext_cmds=".dll"
13534 need_version=no
13535 need_lib_prefix=no
13536
00aafda4 13537 case $GCC,$host_os in
13538 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
542f9784 13539 library_names_spec='$libname.dll.a'
13540 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13541 postinstall_cmds='base_file=`basename \${file}`~
13542 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13543 dldir=$destdir/`dirname \$dlpath`~
13544 test -d \$dldir || mkdir -p \$dldir~
13545 $install_prog $dir/$dlname \$dldir/$dlname~
13546 chmod a+x \$dldir/$dlname~
13547 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13548 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13549 fi'
13550 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13551 dlpath=$dir/\$dldll~
13552 $RM \$dlpath'
13553 shlibpath_overrides_runpath=yes
13554
13555 case $host_os in
13556 cygwin*)
13557 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13558 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13559 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13560 ;;
00aafda4 13561 mingw* | cegcc*)
542f9784 13562 # MinGW DLLs use traditional 'lib' prefix
13563 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13564 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13565 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13566 # It is most probably a Windows format PATH printed by
13567 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13568 # path with ; separators, and with drive letters. We can handle the
13569 # drive letters (cygwin fileutils understands them), so leave them,
13570 # especially as we might pass files found there to a mingw objdump,
13571 # which wouldn't understand a cygwinified path. Ahh.
13572 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13573 else
13574 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13575 fi
13576 ;;
13577 pw32*)
13578 # pw32 DLLs use 'pw' prefix rather than 'lib'
13579 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13580 ;;
13581 esac
13582 ;;
13583
13584 *)
13585 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13586 ;;
13587 esac
13588 dynamic_linker='Win32 ld.exe'
13589 # FIXME: first we should search . and the directory the executable is in
13590 shlibpath_var=PATH
13591 ;;
13592
13593darwin* | rhapsody*)
13594 dynamic_linker="$host_os dyld"
13595 version_type=darwin
13596 need_lib_prefix=no
13597 need_version=no
13598 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13599 soname_spec='${libname}${release}${major}$shared_ext'
13600 shlibpath_overrides_runpath=yes
13601 shlibpath_var=DYLD_LIBRARY_PATH
13602 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13603
13604 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13605 ;;
13606
13607dgux*)
13608 version_type=linux
13609 need_lib_prefix=no
13610 need_version=no
13611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13612 soname_spec='${libname}${release}${shared_ext}$major'
13613 shlibpath_var=LD_LIBRARY_PATH
13614 ;;
13615
13616freebsd1*)
13617 dynamic_linker=no
13618 ;;
13619
13620freebsd* | dragonfly*)
13621 # DragonFly does not have aout. When/if they implement a new
13622 # versioning mechanism, adjust this.
13623 if test -x /usr/bin/objformat; then
13624 objformat=`/usr/bin/objformat`
13625 else
13626 case $host_os in
13627 freebsd[123]*) objformat=aout ;;
13628 *) objformat=elf ;;
13629 esac
13630 fi
13631 version_type=freebsd-$objformat
13632 case $version_type in
13633 freebsd-elf*)
13634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13635 need_version=no
13636 need_lib_prefix=no
13637 ;;
13638 freebsd-*)
13639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13640 need_version=yes
13641 ;;
13642 esac
13643 shlibpath_var=LD_LIBRARY_PATH
13644 case $host_os in
13645 freebsd2*)
13646 shlibpath_overrides_runpath=yes
13647 ;;
13648 freebsd3.[01]* | freebsdelf3.[01]*)
13649 shlibpath_overrides_runpath=yes
13650 hardcode_into_libs=yes
13651 ;;
13652 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13653 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13654 shlibpath_overrides_runpath=no
13655 hardcode_into_libs=yes
13656 ;;
13657 *) # from 4.6 on, and DragonFly
13658 shlibpath_overrides_runpath=yes
13659 hardcode_into_libs=yes
13660 ;;
13661 esac
13662 ;;
13663
13664gnu*)
13665 version_type=linux
13666 need_lib_prefix=no
13667 need_version=no
13668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13669 soname_spec='${libname}${release}${shared_ext}$major'
13670 shlibpath_var=LD_LIBRARY_PATH
13671 hardcode_into_libs=yes
13672 ;;
13673
13674hpux9* | hpux10* | hpux11*)
13675 # Give a soname corresponding to the major version so that dld.sl refuses to
13676 # link against other versions.
13677 version_type=sunos
13678 need_lib_prefix=no
13679 need_version=no
13680 case $host_cpu in
13681 ia64*)
13682 shrext_cmds='.so'
13683 hardcode_into_libs=yes
13684 dynamic_linker="$host_os dld.so"
13685 shlibpath_var=LD_LIBRARY_PATH
13686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13688 soname_spec='${libname}${release}${shared_ext}$major'
13689 if test "X$HPUX_IA64_MODE" = X32; then
13690 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13691 else
13692 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13693 fi
13694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13695 ;;
13696 hppa*64*)
13697 shrext_cmds='.sl'
13698 hardcode_into_libs=yes
13699 dynamic_linker="$host_os dld.sl"
13700 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13703 soname_spec='${libname}${release}${shared_ext}$major'
13704 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13706 ;;
13707 *)
13708 shrext_cmds='.sl'
13709 dynamic_linker="$host_os dld.sl"
13710 shlibpath_var=SHLIB_PATH
13711 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13713 soname_spec='${libname}${release}${shared_ext}$major'
13714 ;;
13715 esac
13716 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13717 postinstall_cmds='chmod 555 $lib'
13718 ;;
13719
13720interix[3-9]*)
13721 version_type=linux
13722 need_lib_prefix=no
13723 need_version=no
13724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13725 soname_spec='${libname}${release}${shared_ext}$major'
13726 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13727 shlibpath_var=LD_LIBRARY_PATH
13728 shlibpath_overrides_runpath=no
13729 hardcode_into_libs=yes
13730 ;;
13731
13732irix5* | irix6* | nonstopux*)
13733 case $host_os in
13734 nonstopux*) version_type=nonstopux ;;
13735 *)
13736 if test "$lt_cv_prog_gnu_ld" = yes; then
13737 version_type=linux
13738 else
13739 version_type=irix
13740 fi ;;
13741 esac
13742 need_lib_prefix=no
13743 need_version=no
13744 soname_spec='${libname}${release}${shared_ext}$major'
13745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13746 case $host_os in
13747 irix5* | nonstopux*)
13748 libsuff= shlibsuff=
13749 ;;
13750 *)
13751 case $LD in # libtool.m4 will add one of these switches to LD
13752 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13753 libsuff= shlibsuff= libmagic=32-bit;;
13754 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13755 libsuff=32 shlibsuff=N32 libmagic=N32;;
13756 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13757 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13758 *) libsuff= shlibsuff= libmagic=never-match;;
13759 esac
13760 ;;
13761 esac
13762 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13763 shlibpath_overrides_runpath=no
13764 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13765 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13766 hardcode_into_libs=yes
13767 ;;
13768
13769# No shared lib support for Linux oldld, aout, or coff.
13770linux*oldld* | linux*aout* | linux*coff*)
13771 dynamic_linker=no
13772 ;;
13773
13774# This must be Linux ELF.
13775linux* | k*bsd*-gnu)
13776 version_type=linux
13777 need_lib_prefix=no
13778 need_version=no
13779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780 soname_spec='${libname}${release}${shared_ext}$major'
13781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13782 shlibpath_var=LD_LIBRARY_PATH
13783 shlibpath_overrides_runpath=no
9e6fd619 13784
542f9784 13785 # Some binutils ld are patched to set DT_RUNPATH
9e6fd619 13786 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13788else
13789 lt_cv_shlibpath_overrides_runpath=no
13790 save_LDFLAGS=$LDFLAGS
13791 save_libdir=$libdir
13792 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
13793 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
13794 if test x$gcc_no_link = xyes; then
542f9784 13795 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13796echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13797 { (exit 1); exit 1; }; }
13798fi
13799cat >conftest.$ac_ext <<_ACEOF
13800 program main
13801
13802 end
90e67cff 13803_ACEOF
542f9784 13804rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 13805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13806 (eval $ac_link) 2>conftest.er1
90e67cff 13807 ac_status=$?
13808 grep -v '^ *+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 13812 (exit $ac_status); } &&
13813 { ac_try='test -z "$ac_fc_werror_flag"
13814 || test ! -s conftest.err'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; } &&
13820 { ac_try='test -s conftest$ac_exeext'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
00aafda4 13826 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9e6fd619 13827 lt_cv_shlibpath_overrides_runpath=yes
542f9784 13828fi
13829
90e67cff 13830else
13831 echo "$as_me: failed program was:" >&5
13832sed 's/^/| /' conftest.$ac_ext >&5
13833
13834fi
82eaf560 13835rm -f conftest.err conftest.$ac_objext \
542f9784 13836 conftest$ac_exeext conftest.$ac_ext
9e6fd619 13837 LDFLAGS=$save_LDFLAGS
13838 libdir=$save_libdir
13839
13840fi
13841
13842 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
542f9784 13843
13844 # This implies no fast_install, which is unacceptable.
13845 # Some rework will be needed to allow for fast_install
13846 # before this can be enabled.
13847 hardcode_into_libs=yes
13848
13849 # Append ld.so.conf contents to the search path
13850 if test -f /etc/ld.so.conf; then
00aafda4 13851 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
542f9784 13852 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13853 fi
13854
13855 # We used to test for /lib/ld.so.1 and disable shared libraries on
13856 # powerpc, because MkLinux only supported shared libraries with the
13857 # GNU dynamic linker. Since this was broken with cross compilers,
13858 # most powerpc-linux boxes support dynamic linking these days and
13859 # people can always --disable-shared, the test was removed, and we
13860 # assume the GNU/Linux dynamic linker is in use.
13861 dynamic_linker='GNU/Linux ld.so'
13862 ;;
13863
13864netbsd*)
13865 version_type=sunos
13866 need_lib_prefix=no
13867 need_version=no
13868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13871 dynamic_linker='NetBSD (a.out) ld.so'
13872 else
13873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13874 soname_spec='${libname}${release}${shared_ext}$major'
13875 dynamic_linker='NetBSD ld.elf_so'
13876 fi
13877 shlibpath_var=LD_LIBRARY_PATH
13878 shlibpath_overrides_runpath=yes
13879 hardcode_into_libs=yes
13880 ;;
13881
13882newsos6)
13883 version_type=linux
13884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13885 shlibpath_var=LD_LIBRARY_PATH
13886 shlibpath_overrides_runpath=yes
13887 ;;
13888
13889*nto* | *qnx*)
13890 version_type=qnx
13891 need_lib_prefix=no
13892 need_version=no
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13894 soname_spec='${libname}${release}${shared_ext}$major'
13895 shlibpath_var=LD_LIBRARY_PATH
13896 shlibpath_overrides_runpath=no
13897 hardcode_into_libs=yes
13898 dynamic_linker='ldqnx.so'
13899 ;;
13900
13901openbsd*)
13902 version_type=sunos
13903 sys_lib_dlsearch_path_spec="/usr/lib"
13904 need_lib_prefix=no
13905 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13906 case $host_os in
13907 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13908 *) need_version=no ;;
13909 esac
13910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13912 shlibpath_var=LD_LIBRARY_PATH
13913 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13914 case $host_os in
13915 openbsd2.[89] | openbsd2.[89].*)
13916 shlibpath_overrides_runpath=no
13917 ;;
13918 *)
13919 shlibpath_overrides_runpath=yes
13920 ;;
13921 esac
13922 else
13923 shlibpath_overrides_runpath=yes
13924 fi
13925 ;;
13926
13927os2*)
13928 libname_spec='$name'
13929 shrext_cmds=".dll"
13930 need_lib_prefix=no
13931 library_names_spec='$libname${shared_ext} $libname.a'
13932 dynamic_linker='OS/2 ld.exe'
13933 shlibpath_var=LIBPATH
13934 ;;
13935
13936osf3* | osf4* | osf5*)
13937 version_type=osf
13938 need_lib_prefix=no
13939 need_version=no
13940 soname_spec='${libname}${release}${shared_ext}$major'
13941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13942 shlibpath_var=LD_LIBRARY_PATH
13943 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13944 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13945 ;;
13946
13947rdos*)
13948 dynamic_linker=no
13949 ;;
13950
13951solaris*)
13952 version_type=linux
13953 need_lib_prefix=no
13954 need_version=no
13955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13956 soname_spec='${libname}${release}${shared_ext}$major'
13957 shlibpath_var=LD_LIBRARY_PATH
13958 shlibpath_overrides_runpath=yes
13959 hardcode_into_libs=yes
13960 # ldd complains unless libraries are executable
13961 postinstall_cmds='chmod +x $lib'
13962 ;;
13963
13964sunos4*)
13965 version_type=sunos
13966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13967 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13968 shlibpath_var=LD_LIBRARY_PATH
13969 shlibpath_overrides_runpath=yes
13970 if test "$with_gnu_ld" = yes; then
13971 need_lib_prefix=no
13972 fi
13973 need_version=yes
13974 ;;
13975
13976sysv4 | sysv4.3*)
13977 version_type=linux
13978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13979 soname_spec='${libname}${release}${shared_ext}$major'
13980 shlibpath_var=LD_LIBRARY_PATH
13981 case $host_vendor in
13982 sni)
13983 shlibpath_overrides_runpath=no
13984 need_lib_prefix=no
13985 runpath_var=LD_RUN_PATH
13986 ;;
13987 siemens)
13988 need_lib_prefix=no
13989 ;;
13990 motorola)
13991 need_lib_prefix=no
13992 need_version=no
13993 shlibpath_overrides_runpath=no
13994 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13995 ;;
13996 esac
13997 ;;
13998
13999sysv4*MP*)
14000 if test -d /usr/nec ;then
14001 version_type=linux
14002 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14003 soname_spec='$libname${shared_ext}.$major'
14004 shlibpath_var=LD_LIBRARY_PATH
14005 fi
14006 ;;
14007
14008sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14009 version_type=freebsd-elf
14010 need_lib_prefix=no
14011 need_version=no
14012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14013 soname_spec='${libname}${release}${shared_ext}$major'
14014 shlibpath_var=LD_LIBRARY_PATH
14015 shlibpath_overrides_runpath=yes
14016 hardcode_into_libs=yes
14017 if test "$with_gnu_ld" = yes; then
14018 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14019 else
14020 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14021 case $host_os in
14022 sco3.2v5*)
14023 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14024 ;;
14025 esac
14026 fi
14027 sys_lib_dlsearch_path_spec='/usr/lib'
14028 ;;
14029
14030tpf*)
14031 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14032 version_type=linux
14033 need_lib_prefix=no
14034 need_version=no
00aafda4 14035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
542f9784 14036 shlibpath_var=LD_LIBRARY_PATH
14037 shlibpath_overrides_runpath=no
14038 hardcode_into_libs=yes
14039 ;;
14040
14041uts4*)
14042 version_type=linux
14043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14044 soname_spec='${libname}${release}${shared_ext}$major'
14045 shlibpath_var=LD_LIBRARY_PATH
14046 ;;
14047
14048*)
14049 dynamic_linker=no
14050 ;;
14051esac
82eaf560 14052echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14053echo "${ECHO_T}$dynamic_linker" >&6
542f9784 14054test "$dynamic_linker" = no && can_build_shared=no
14055
14056variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14057if test "$GCC" = yes; then
14058 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
90e67cff 14059fi
90e67cff 14060
00aafda4 14061if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14062 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14063fi
14064if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14065 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14066fi
14067
90e67cff 14068
542f9784 14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
82eaf560 14103 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14104echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
542f9784 14105hardcode_action_FC=
14106if test -n "$hardcode_libdir_flag_spec_FC" ||
14107 test -n "$runpath_var_FC" ||
14108 test "X$hardcode_automatic_FC" = "Xyes" ; then
14109
14110 # We can hardcode non-existent directories.
14111 if test "$hardcode_direct_FC" != no &&
14112 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14113 # have to relink, otherwise we might link with an installed library
14114 # when we should be linking with a yet-to-be-installed one
14115 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14116 test "$hardcode_minus_L_FC" != no; then
14117 # Linking always hardcodes the temporary library directory.
14118 hardcode_action_FC=relink
14119 else
14120 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14121 hardcode_action_FC=immediate
14122 fi
14123else
14124 # We cannot hardcode anything, or else we can only hardcode existing
14125 # directories.
14126 hardcode_action_FC=unsupported
90e67cff 14127fi
82eaf560 14128echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
14129echo "${ECHO_T}$hardcode_action_FC" >&6
542f9784 14130
14131if test "$hardcode_action_FC" = relink ||
14132 test "$inherit_rpath_FC" = yes; then
14133 # Fast installation is not supported
14134 enable_fast_install=no
14135elif test "$shlibpath_overrides_runpath" = yes ||
14136 test "$enable_shared" = no; then
14137 # Fast installation is not necessary
14138 enable_fast_install=needless
90e67cff 14139fi
14140
542f9784 14141
14142
14143
14144
14145
14146
14147 fi # test -n "$compiler"
14148
00aafda4 14149 GCC=$lt_save_GCC
542f9784 14150 CC="$lt_save_CC"
14151fi # test "$_lt_disable_FC" != yes
14152
5c88bcbb 14153ac_ext=c
90973b19 14154ac_cpp='$CPP $CPPFLAGS'
14155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14157ac_compiler_gnu=$ac_cv_c_compiler_gnu
542f9784 14158
14159
14160
14161# extra LD Flags which are required for targets
14162case "${host}" in
14163 *-darwin*)
14164 # Darwin needs -single_module when linking libgfortran
14165 extra_ldflags_libgfortran=-Wl,-single_module
14166 ;;
14167esac
14168
14169
14170# We need a working compiler at that point, otherwise give a clear
14171# error message and bail out.
14172
82eaf560 14173echo "$as_me:$LINENO: checking whether the GNU Fortran compiler is working" >&5
14174echo $ECHO_N "checking whether the GNU Fortran compiler is working... $ECHO_C" >&6
14175ac_ext=${FC_SRCEXT-f}
14176ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
14177ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
542f9784 14178ac_compiler_gnu=$ac_cv_fc_compiler_gnu
14179
14180cat >conftest.$ac_ext <<_ACEOF
14181
14182 program foo
14183 real, parameter :: bar = sin (12.34 / 2.5)
14184 end program foo
4ee9c684 14185_ACEOF
542f9784 14186rm -f conftest.$ac_objext
82eaf560 14187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14188 (eval $ac_compile) 2>conftest.er1
4ee9c684 14189 ac_status=$?
90973b19 14190 grep -v '^ *+' conftest.er1 >conftest.err
14191 rm -f conftest.er1
14192 cat conftest.err >&5
4ee9c684 14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 14194 (exit $ac_status); } &&
14195 { ac_try='test -z "$ac_fc_werror_flag"
14196 || test ! -s conftest.err'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14199 ac_status=$?
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; } &&
14202 { ac_try='test -s conftest.$ac_objext'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }; then
14208 echo "$as_me:$LINENO: result: yes" >&5
14209echo "${ECHO_T}yes" >&6
4ee9c684 14210else
14211 echo "$as_me: failed program was:" >&5
14212sed 's/^/| /' conftest.$ac_ext >&5
14213
82eaf560 14214echo "$as_me:$LINENO: result: no" >&5
14215echo "${ECHO_T}no" >&6
542f9784 14216 { { 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
14217echo "$as_me: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" >&2;}
14218 { (exit 1); exit 1; }; }
4ee9c684 14219
90973b19 14220fi
82eaf560 14221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 14222ac_ext=c
14223ac_cpp='$CPP $CPPFLAGS'
14224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14226ac_compiler_gnu=$ac_cv_c_compiler_gnu
90973b19 14227
90973b19 14228
542f9784 14229
82eaf560 14230# Check whether --enable-largefile or --disable-largefile was given.
542f9784 14231if test "${enable_largefile+set}" = set; then
82eaf560 14232 enableval="$enable_largefile"
542f9784 14233
82eaf560 14234fi;
542f9784 14235if test "$enable_largefile" != no; then
14236
82eaf560 14237 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14238echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
542f9784 14239if test "${ac_cv_sys_largefile_CC+set}" = set; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
90973b19 14241else
542f9784 14242 ac_cv_sys_largefile_CC=no
14243 if test "$GCC" != yes; then
14244 ac_save_CC=$CC
14245 while :; do
82eaf560 14246 # IRIX 6.2 and later do not support large files by default,
14247 # so use the C compiler's -n32 option if that helps.
542f9784 14248 cat >conftest.$ac_ext <<_ACEOF
4ee9c684 14249/* confdefs.h. */
14250_ACEOF
14251cat confdefs.h >>conftest.$ac_ext
14252cat >>conftest.$ac_ext <<_ACEOF
14253/* end confdefs.h. */
542f9784 14254#include <sys/types.h>
14255 /* Check that off_t can represent 2**63 - 1 correctly.
14256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14257 since some C++ compilers masquerading as C compilers
14258 incorrectly reject 9223372036854775807. */
14259#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14261 && LARGE_OFF_T % 2147483647 == 1)
14262 ? 1 : -1];
14263int
14264main ()
14265{
14266
14267 ;
14268 return 0;
14269}
4ee9c684 14270_ACEOF
82eaf560 14271 rm -f conftest.$ac_objext
14272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14273 (eval $ac_compile) 2>conftest.er1
4ee9c684 14274 ac_status=$?
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 14279 (exit $ac_status); } &&
14280 { ac_try='test -z "$ac_c_werror_flag"
14281 || test ! -s conftest.err'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; } &&
14287 { ac_try='test -s conftest.$ac_objext'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
542f9784 14293 break
4ee9c684 14294else
14295 echo "$as_me: failed program was:" >&5
14296sed 's/^/| /' conftest.$ac_ext >&5
14297
4ee9c684 14298fi
82eaf560 14299rm -f conftest.err conftest.$ac_objext
14300 CC="$CC -n32"
14301 rm -f conftest.$ac_objext
14302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14303 (eval $ac_compile) 2>conftest.er1
90973b19 14304 ac_status=$?
14305 grep -v '^ *+' conftest.er1 >conftest.err
14306 rm -f conftest.er1
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 14309 (exit $ac_status); } &&
14310 { ac_try='test -z "$ac_c_werror_flag"
14311 || test ! -s conftest.err'
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest.$ac_objext'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
542f9784 14323 ac_cv_sys_largefile_CC=' -n32'; break
90973b19 14324else
14325 echo "$as_me: failed program was:" >&5
14326sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 14327
ce1a737c 14328fi
82eaf560 14329rm -f conftest.err conftest.$ac_objext
542f9784 14330 break
14331 done
14332 CC=$ac_save_CC
14333 rm -f conftest.$ac_ext
90973b19 14334 fi
ce1a737c 14335fi
82eaf560 14336echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14337echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
542f9784 14338 if test "$ac_cv_sys_largefile_CC" != no; then
14339 CC=$CC$ac_cv_sys_largefile_CC
14340 fi
ce1a737c 14341
82eaf560 14342 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14343echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
542f9784 14344if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4ee9c684 14345 echo $ECHO_N "(cached) $ECHO_C" >&6
4ee9c684 14346else
542f9784 14347 while :; do
82eaf560 14348 ac_cv_sys_file_offset_bits=no
90973b19 14349 cat >conftest.$ac_ext <<_ACEOF
4ee9c684 14350/* confdefs.h. */
14351_ACEOF
14352cat confdefs.h >>conftest.$ac_ext
14353cat >>conftest.$ac_ext <<_ACEOF
14354/* end confdefs.h. */
542f9784 14355#include <sys/types.h>
14356 /* Check that off_t can represent 2**63 - 1 correctly.
14357 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14358 since some C++ compilers masquerading as C compilers
14359 incorrectly reject 9223372036854775807. */
14360#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14361 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14362 && LARGE_OFF_T % 2147483647 == 1)
14363 ? 1 : -1];
90973b19 14364int
14365main ()
14366{
14367
14368 ;
14369 return 0;
14370}
4ee9c684 14371_ACEOF
14372rm -f conftest.$ac_objext
82eaf560 14373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14374 (eval $ac_compile) 2>conftest.er1
4ee9c684 14375 ac_status=$?
14376 grep -v '^ *+' conftest.er1 >conftest.err
14377 rm -f conftest.er1
14378 cat conftest.err >&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 14380 (exit $ac_status); } &&
14381 { ac_try='test -z "$ac_c_werror_flag"
14382 || test ! -s conftest.err'
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; } &&
14388 { ac_try='test -s conftest.$ac_objext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14391 ac_status=$?
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14394 break
4ee9c684 14395else
14396 echo "$as_me: failed program was:" >&5
14397sed 's/^/| /' conftest.$ac_ext >&5
14398
4ee9c684 14399fi
82eaf560 14400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
90973b19 14401 cat >conftest.$ac_ext <<_ACEOF
4ee9c684 14402/* confdefs.h. */
14403_ACEOF
14404cat confdefs.h >>conftest.$ac_ext
14405cat >>conftest.$ac_ext <<_ACEOF
14406/* end confdefs.h. */
542f9784 14407#define _FILE_OFFSET_BITS 64
14408#include <sys/types.h>
14409 /* Check that off_t can represent 2**63 - 1 correctly.
14410 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14411 since some C++ compilers masquerading as C compilers
14412 incorrectly reject 9223372036854775807. */
14413#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14414 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14415 && LARGE_OFF_T % 2147483647 == 1)
14416 ? 1 : -1];
14417int
14418main ()
14419{
90973b19 14420
542f9784 14421 ;
14422 return 0;
14423}
4ee9c684 14424_ACEOF
542f9784 14425rm -f conftest.$ac_objext
82eaf560 14426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427 (eval $ac_compile) 2>conftest.er1
542f9784 14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag"
14435 || test ! -s conftest.err'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest.$ac_objext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
542f9784 14447 ac_cv_sys_file_offset_bits=64; break
4ee9c684 14448else
542f9784 14449 echo "$as_me: failed program was:" >&5
14450sed 's/^/| /' conftest.$ac_ext >&5
90973b19 14451
14452fi
82eaf560 14453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 14454 break
14455done
14456fi
82eaf560 14457echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14458echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14459if test "$ac_cv_sys_file_offset_bits" != no; then
14460
542f9784 14461cat >>confdefs.h <<_ACEOF
14462#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
90973b19 14463_ACEOF
82eaf560 14464
14465fi
90973b19 14466rm -f conftest*
82eaf560 14467 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14468echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
542f9784 14469if test "${ac_cv_sys_large_files+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
90973b19 14471else
542f9784 14472 while :; do
82eaf560 14473 ac_cv_sys_large_files=no
90973b19 14474 cat >conftest.$ac_ext <<_ACEOF
14475/* confdefs.h. */
14476_ACEOF
14477cat confdefs.h >>conftest.$ac_ext
14478cat >>conftest.$ac_ext <<_ACEOF
14479/* end confdefs.h. */
542f9784 14480#include <sys/types.h>
14481 /* Check that off_t can represent 2**63 - 1 correctly.
14482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14483 since some C++ compilers masquerading as C compilers
14484 incorrectly reject 9223372036854775807. */
14485#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14487 && LARGE_OFF_T % 2147483647 == 1)
14488 ? 1 : -1];
90973b19 14489int
14490main ()
14491{
542f9784 14492
14493 ;
14494 return 0;
90973b19 14495}
14496_ACEOF
542f9784 14497rm -f conftest.$ac_objext
82eaf560 14498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14499 (eval $ac_compile) 2>conftest.er1
90973b19 14500 ac_status=$?
542f9784 14501 grep -v '^ *+' conftest.er1 >conftest.err
14502 rm -f conftest.er1
14503 cat conftest.err >&5
90973b19 14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 14505 (exit $ac_status); } &&
14506 { ac_try='test -z "$ac_c_werror_flag"
14507 || test ! -s conftest.err'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; } &&
14513 { ac_try='test -s conftest.$ac_objext'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14516 ac_status=$?
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; }; then
14519 break
90973b19 14520else
542f9784 14521 echo "$as_me: failed program was:" >&5
4ee9c684 14522sed 's/^/| /' conftest.$ac_ext >&5
14523
90973b19 14524fi
82eaf560 14525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
90973b19 14526 cat >conftest.$ac_ext <<_ACEOF
14527/* confdefs.h. */
14528_ACEOF
14529cat confdefs.h >>conftest.$ac_ext
14530cat >>conftest.$ac_ext <<_ACEOF
14531/* end confdefs.h. */
542f9784 14532#define _LARGE_FILES 1
14533#include <sys/types.h>
14534 /* Check that off_t can represent 2**63 - 1 correctly.
14535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14536 since some C++ compilers masquerading as C compilers
14537 incorrectly reject 9223372036854775807. */
14538#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14540 && LARGE_OFF_T % 2147483647 == 1)
14541 ? 1 : -1];
14542int
14543main ()
14544{
90973b19 14545
542f9784 14546 ;
14547 return 0;
14548}
90973b19 14549_ACEOF
14550rm -f conftest.$ac_objext
82eaf560 14551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14552 (eval $ac_compile) 2>conftest.er1
90973b19 14553 ac_status=$?
14554 grep -v '^ *+' conftest.er1 >conftest.err
14555 rm -f conftest.er1
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 14558 (exit $ac_status); } &&
14559 { ac_try='test -z "$ac_c_werror_flag"
14560 || test ! -s conftest.err'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; } &&
14566 { ac_try='test -s conftest.$ac_objext'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
542f9784 14572 ac_cv_sys_large_files=1; break
90973b19 14573else
14574 echo "$as_me: failed program was:" >&5
14575sed 's/^/| /' conftest.$ac_ext >&5
14576
90973b19 14577fi
82eaf560 14578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
542f9784 14579 break
14580done
4ee9c684 14581fi
82eaf560 14582echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14583echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14584if test "$ac_cv_sys_large_files" != no; then
14585
542f9784 14586cat >>confdefs.h <<_ACEOF
14587#define _LARGE_FILES $ac_cv_sys_large_files
4ee9c684 14588_ACEOF
82eaf560 14589
14590fi
542f9784 14591rm -f conftest*
14592fi
90973b19 14593
82eaf560 14594echo "$as_me:$LINENO: checking for off_t" >&5
14595echo $ECHO_N "checking for off_t... $ECHO_C" >&6
90973b19 14596if test "${ac_cv_type_off_t+set}" = set; then
4ee9c684 14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14598else
90973b19 14599 cat >conftest.$ac_ext <<_ACEOF
14600/* confdefs.h. */
14601_ACEOF
14602cat confdefs.h >>conftest.$ac_ext
14603cat >>conftest.$ac_ext <<_ACEOF
14604/* end confdefs.h. */
14605$ac_includes_default
4ee9c684 14606int
14607main ()
14608{
82eaf560 14609if ((off_t *) 0)
90973b19 14610 return 0;
82eaf560 14611if (sizeof (off_t))
90973b19 14612 return 0;
4ee9c684 14613 ;
14614 return 0;
14615}
14616_ACEOF
90973b19 14617rm -f conftest.$ac_objext
82eaf560 14618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14619 (eval $ac_compile) 2>conftest.er1
4ee9c684 14620 ac_status=$?
14621 grep -v '^ *+' conftest.er1 >conftest.err
14622 rm -f conftest.er1
14623 cat conftest.err >&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 14625 (exit $ac_status); } &&
14626 { ac_try='test -z "$ac_c_werror_flag"
14627 || test ! -s conftest.err'
14628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629 (eval $ac_try) 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; } &&
14633 { ac_try='test -s conftest.$ac_objext'
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; }; then
90973b19 14639 ac_cv_type_off_t=yes
4ee9c684 14640else
14641 echo "$as_me: failed program was:" >&5
14642sed 's/^/| /' conftest.$ac_ext >&5
14643
82eaf560 14644ac_cv_type_off_t=no
4ee9c684 14645fi
82eaf560 14646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 14647fi
82eaf560 14648echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14649echo "${ECHO_T}$ac_cv_type_off_t" >&6
90973b19 14650if test $ac_cv_type_off_t = yes; then
14651 :
14652else
14653
14654cat >>confdefs.h <<_ACEOF
82eaf560 14655#define off_t long
4ee9c684 14656_ACEOF
14657
14658fi
4ee9c684 14659
90973b19 14660
14661# check header files
82eaf560 14662echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14663echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
90973b19 14664if test "${ac_cv_header_stdc+set}" = set; then
4ee9c684 14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14666else
14667 cat >conftest.$ac_ext <<_ACEOF
14668/* confdefs.h. */
14669_ACEOF
14670cat confdefs.h >>conftest.$ac_ext
14671cat >>conftest.$ac_ext <<_ACEOF
14672/* end confdefs.h. */
90973b19 14673#include <stdlib.h>
14674#include <stdarg.h>
14675#include <string.h>
14676#include <float.h>
14677
4ee9c684 14678int
14679main ()
14680{
90973b19 14681
4ee9c684 14682 ;
14683 return 0;
14684}
14685_ACEOF
14686rm -f conftest.$ac_objext
82eaf560 14687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14688 (eval $ac_compile) 2>conftest.er1
4ee9c684 14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 14694 (exit $ac_status); } &&
14695 { ac_try='test -z "$ac_c_werror_flag"
14696 || test ! -s conftest.err'
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; } &&
14702 { ac_try='test -s conftest.$ac_objext'
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14705 ac_status=$?
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; }; then
90973b19 14708 ac_cv_header_stdc=yes
4ee9c684 14709else
14710 echo "$as_me: failed program was:" >&5
14711sed 's/^/| /' conftest.$ac_ext >&5
14712
82eaf560 14713ac_cv_header_stdc=no
4ee9c684 14714fi
82eaf560 14715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
90973b19 14716
14717if test $ac_cv_header_stdc = yes; then
14718 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4ee9c684 14719 cat >conftest.$ac_ext <<_ACEOF
14720/* confdefs.h. */
14721_ACEOF
14722cat confdefs.h >>conftest.$ac_ext
14723cat >>conftest.$ac_ext <<_ACEOF
14724/* end confdefs.h. */
90973b19 14725#include <string.h>
4ee9c684 14726
4ee9c684 14727_ACEOF
90973b19 14728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14729 $EGREP "memchr" >/dev/null 2>&1; then
14730 :
4ee9c684 14731else
90973b19 14732 ac_cv_header_stdc=no
4ee9c684 14733fi
90973b19 14734rm -f conftest*
14735
4ee9c684 14736fi
4ee9c684 14737
90973b19 14738if test $ac_cv_header_stdc = yes; then
14739 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14740 cat >conftest.$ac_ext <<_ACEOF
14741/* confdefs.h. */
14742_ACEOF
14743cat confdefs.h >>conftest.$ac_ext
14744cat >>conftest.$ac_ext <<_ACEOF
14745/* end confdefs.h. */
14746#include <stdlib.h>
14747
4ee9c684 14748_ACEOF
90973b19 14749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14750 $EGREP "free" >/dev/null 2>&1; then
14751 :
14752else
14753 ac_cv_header_stdc=no
14754fi
14755rm -f conftest*
4ee9c684 14756
90973b19 14757fi
4ee9c684 14758
90973b19 14759if test $ac_cv_header_stdc = yes; then
14760 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14761 if test "$cross_compiling" = yes; then
14762 :
4ee9c684 14763else
14764 cat >conftest.$ac_ext <<_ACEOF
14765/* confdefs.h. */
14766_ACEOF
14767cat confdefs.h >>conftest.$ac_ext
14768cat >>conftest.$ac_ext <<_ACEOF
14769/* end confdefs.h. */
90973b19 14770#include <ctype.h>
14771#if ((' ' & 0x0FF) == 0x020)
14772# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14773# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4ee9c684 14774#else
90973b19 14775# define ISLOWER(c) \
14776 (('a' <= (c) && (c) <= 'i') \
14777 || ('j' <= (c) && (c) <= 'r') \
14778 || ('s' <= (c) && (c) <= 'z'))
14779# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4ee9c684 14780#endif
14781
90973b19 14782#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4ee9c684 14783int
14784main ()
14785{
90973b19 14786 int i;
14787 for (i = 0; i < 256; i++)
14788 if (XOR (islower (i), ISLOWER (i))
14789 || toupper (i) != TOUPPER (i))
82eaf560 14790 exit(2);
14791 exit (0);
4ee9c684 14792}
14793_ACEOF
90973b19 14794rm -f conftest$ac_exeext
82eaf560 14795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14796 (eval $ac_link) 2>&5
4ee9c684 14797 ac_status=$?
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
90973b19 14799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
82eaf560 14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
4ee9c684 14802 ac_status=$?
90973b19 14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 :
4ee9c684 14806else
90973b19 14807 echo "$as_me: program exited with status $ac_status" >&5
14808echo "$as_me: failed program was:" >&5
14809sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 14810
90973b19 14811( exit $ac_status )
14812ac_cv_header_stdc=no
4ee9c684 14813fi
82eaf560 14814rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4ee9c684 14815fi
14816fi
4ee9c684 14817fi
82eaf560 14818echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14819echo "${ECHO_T}$ac_cv_header_stdc" >&6
90973b19 14820if test $ac_cv_header_stdc = yes; then
4ee9c684 14821
90973b19 14822cat >>confdefs.h <<\_ACEOF
14823#define STDC_HEADERS 1
14824_ACEOF
4ee9c684 14825
14826fi
14827
82eaf560 14828echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14829echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
e93cd318 14830if test "${ac_cv_header_time+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14832else
14833 cat >conftest.$ac_ext <<_ACEOF
14834/* confdefs.h. */
14835_ACEOF
14836cat confdefs.h >>conftest.$ac_ext
14837cat >>conftest.$ac_ext <<_ACEOF
14838/* end confdefs.h. */
14839#include <sys/types.h>
14840#include <sys/time.h>
14841#include <time.h>
14842
14843int
14844main ()
14845{
14846if ((struct tm *) 0)
14847return 0;
14848 ;
14849 return 0;
14850}
14851_ACEOF
14852rm -f conftest.$ac_objext
82eaf560 14853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854 (eval $ac_compile) 2>conftest.er1
e93cd318 14855 ac_status=$?
14856 grep -v '^ *+' conftest.er1 >conftest.err
14857 rm -f conftest.er1
14858 cat conftest.err >&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 14860 (exit $ac_status); } &&
14861 { ac_try='test -z "$ac_c_werror_flag"
14862 || test ! -s conftest.err'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14865 ac_status=$?
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } &&
14868 { ac_try='test -s conftest.$ac_objext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
e93cd318 14874 ac_cv_header_time=yes
14875else
14876 echo "$as_me: failed program was:" >&5
14877sed 's/^/| /' conftest.$ac_ext >&5
14878
82eaf560 14879ac_cv_header_time=no
e93cd318 14880fi
82eaf560 14881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e93cd318 14882fi
82eaf560 14883echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14884echo "${ECHO_T}$ac_cv_header_time" >&6
e93cd318 14885if test $ac_cv_header_time = yes; then
14886
14887cat >>confdefs.h <<\_ACEOF
14888#define TIME_WITH_SYS_TIME 1
14889_ACEOF
14890
14891fi
14892
4ee9c684 14893
14894
4ee9c684 14895
4ee9c684 14896
5a037dbd 14897
14898
14899for ac_header in stdio.h stdlib.h string.h unistd.h signal.h stdarg.h
90973b19 14900do
14901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
82eaf560 14902if eval "test \"\${$as_ac_Header+set}\" = set"; then
14903 echo "$as_me:$LINENO: checking for $ac_header" >&5
14904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14905if eval "test \"\${$as_ac_Header+set}\" = set"; then
90973b19 14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14907fi
82eaf560 14908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4ee9c684 14910else
90973b19 14911 # Is the header compilable?
82eaf560 14912echo "$as_me:$LINENO: checking $ac_header usability" >&5
14913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
90973b19 14914cat >conftest.$ac_ext <<_ACEOF
14915/* confdefs.h. */
14916_ACEOF
14917cat confdefs.h >>conftest.$ac_ext
14918cat >>conftest.$ac_ext <<_ACEOF
14919/* end confdefs.h. */
14920$ac_includes_default
14921#include <$ac_header>
14922_ACEOF
14923rm -f conftest.$ac_objext
82eaf560 14924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14925 (eval $ac_compile) 2>conftest.er1
90973b19 14926 ac_status=$?
14927 grep -v '^ *+' conftest.er1 >conftest.err
14928 rm -f conftest.er1
14929 cat conftest.err >&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 14931 (exit $ac_status); } &&
14932 { ac_try='test -z "$ac_c_werror_flag"
14933 || test ! -s conftest.err'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; } &&
14939 { ac_try='test -s conftest.$ac_objext'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; }; then
90973b19 14945 ac_header_compiler=yes
4ee9c684 14946else
90973b19 14947 echo "$as_me: failed program was:" >&5
14948sed 's/^/| /' conftest.$ac_ext >&5
14949
82eaf560 14950ac_header_compiler=no
4ee9c684 14951fi
82eaf560 14952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14953echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14954echo "${ECHO_T}$ac_header_compiler" >&6
90973b19 14955
14956# Is the header present?
82eaf560 14957echo "$as_me:$LINENO: checking $ac_header presence" >&5
14958echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
90973b19 14959cat >conftest.$ac_ext <<_ACEOF
14960/* confdefs.h. */
14961_ACEOF
14962cat confdefs.h >>conftest.$ac_ext
14963cat >>conftest.$ac_ext <<_ACEOF
14964/* end confdefs.h. */
14965#include <$ac_header>
14966_ACEOF
82eaf560 14967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
90973b19 14969 ac_status=$?
14970 grep -v '^ *+' conftest.er1 >conftest.err
14971 rm -f conftest.er1
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 14974 (exit $ac_status); } >/dev/null; then
14975 if test -s conftest.err; then
14976 ac_cpp_err=$ac_c_preproc_warn_flag
14977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14978 else
14979 ac_cpp_err=
14980 fi
14981else
14982 ac_cpp_err=yes
14983fi
14984if test -z "$ac_cpp_err"; then
90973b19 14985 ac_header_preproc=yes
4ee9c684 14986else
90973b19 14987 echo "$as_me: failed program was:" >&5
14988sed 's/^/| /' conftest.$ac_ext >&5
14989
14990 ac_header_preproc=no
4ee9c684 14991fi
90973b19 14992rm -f conftest.err conftest.$ac_ext
82eaf560 14993echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14994echo "${ECHO_T}$ac_header_preproc" >&6
90973b19 14995
14996# So? What about this header?
14997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14998 yes:no: )
14999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15000echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15002echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15003 ac_header_preproc=yes
15004 ;;
15005 no:yes:* )
15006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15007echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15009echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15011echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15013echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15015echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15017echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
82eaf560 15018 (
15019 cat <<\_ASBOX
15020## ------------------------------------------------------ ##
15021## Report this to the GNU Fortran Runtime Library lists. ##
15022## ------------------------------------------------------ ##
15023_ASBOX
15024 ) |
15025 sed "s/^/$as_me: WARNING: /" >&2
90973b19 15026 ;;
15027esac
82eaf560 15028echo "$as_me:$LINENO: checking for $ac_header" >&5
15029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15030if eval "test \"\${$as_ac_Header+set}\" = set"; then
4ee9c684 15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15032else
90973b19 15033 eval "$as_ac_Header=\$ac_header_preproc"
4ee9c684 15034fi
82eaf560 15035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15036echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4ee9c684 15037
90973b19 15038fi
15039if test `eval echo '${'$as_ac_Header'}'` = yes; then
15040 cat >>confdefs.h <<_ACEOF
15041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15042_ACEOF
4ee9c684 15043
4ee9c684 15044fi
4ee9c684 15045
90973b19 15046done
15047
15048
15049
15050
15051
35a46568 15052for ac_header in time.h sys/time.h sys/times.h sys/resource.h
90973b19 15053do
15054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
82eaf560 15055if eval "test \"\${$as_ac_Header+set}\" = set"; then
15056 echo "$as_me:$LINENO: checking for $ac_header" >&5
15057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15058if eval "test \"\${$as_ac_Header+set}\" = set"; then
d2455565 15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15060fi
82eaf560 15061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d2455565 15063else
15064 # Is the header compilable?
82eaf560 15065echo "$as_me:$LINENO: checking $ac_header usability" >&5
15066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
d2455565 15067cat >conftest.$ac_ext <<_ACEOF
15068/* confdefs.h. */
15069_ACEOF
15070cat confdefs.h >>conftest.$ac_ext
15071cat >>conftest.$ac_ext <<_ACEOF
15072/* end confdefs.h. */
15073$ac_includes_default
15074#include <$ac_header>
15075_ACEOF
15076rm -f conftest.$ac_objext
82eaf560 15077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15078 (eval $ac_compile) 2>conftest.er1
d2455565 15079 ac_status=$?
15080 grep -v '^ *+' conftest.er1 >conftest.err
15081 rm -f conftest.er1
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_c_werror_flag"
15086 || test ! -s conftest.err'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15089 ac_status=$?
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; } &&
15092 { ac_try='test -s conftest.$ac_objext'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15095 ac_status=$?
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; }; then
d2455565 15098 ac_header_compiler=yes
15099else
15100 echo "$as_me: failed program was:" >&5
15101sed 's/^/| /' conftest.$ac_ext >&5
15102
82eaf560 15103ac_header_compiler=no
d2455565 15104fi
82eaf560 15105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15107echo "${ECHO_T}$ac_header_compiler" >&6
d2455565 15108
15109# Is the header present?
82eaf560 15110echo "$as_me:$LINENO: checking $ac_header presence" >&5
15111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
d2455565 15112cat >conftest.$ac_ext <<_ACEOF
15113/* confdefs.h. */
15114_ACEOF
15115cat confdefs.h >>conftest.$ac_ext
15116cat >>conftest.$ac_ext <<_ACEOF
15117/* end confdefs.h. */
15118#include <$ac_header>
15119_ACEOF
82eaf560 15120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
d2455565 15122 ac_status=$?
15123 grep -v '^ *+' conftest.er1 >conftest.err
15124 rm -f conftest.er1
15125 cat conftest.err >&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 15127 (exit $ac_status); } >/dev/null; then
15128 if test -s conftest.err; then
15129 ac_cpp_err=$ac_c_preproc_warn_flag
15130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15131 else
15132 ac_cpp_err=
15133 fi
15134else
15135 ac_cpp_err=yes
15136fi
15137if test -z "$ac_cpp_err"; then
d2455565 15138 ac_header_preproc=yes
15139else
15140 echo "$as_me: failed program was:" >&5
15141sed 's/^/| /' conftest.$ac_ext >&5
15142
15143 ac_header_preproc=no
15144fi
15145rm -f conftest.err conftest.$ac_ext
82eaf560 15146echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15147echo "${ECHO_T}$ac_header_preproc" >&6
d2455565 15148
15149# So? What about this header?
15150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15151 yes:no: )
15152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15156 ac_header_preproc=yes
15157 ;;
15158 no:yes:* )
15159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15162echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15166echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
82eaf560 15171 (
15172 cat <<\_ASBOX
15173## ------------------------------------------------------ ##
15174## Report this to the GNU Fortran Runtime Library lists. ##
15175## ------------------------------------------------------ ##
15176_ASBOX
15177 ) |
15178 sed "s/^/$as_me: WARNING: /" >&2
d2455565 15179 ;;
15180esac
82eaf560 15181echo "$as_me:$LINENO: checking for $ac_header" >&5
15182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15183if eval "test \"\${$as_ac_Header+set}\" = set"; then
d2455565 15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15185else
15186 eval "$as_ac_Header=\$ac_header_preproc"
15187fi
82eaf560 15188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
d2455565 15190
15191fi
15192if test `eval echo '${'$as_ac_Header'}'` = yes; then
15193 cat >>confdefs.h <<_ACEOF
15194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15195_ACEOF
15196
15197fi
15198
15199done
15200
15201
771c1b50 15202
15203
334f03a1 15204
d2fc5bb1 15205
15206for ac_header in sys/types.h sys/stat.h sys/wait.h floatingpoint.h ieeefp.h
aaa798ba 15207do
15208as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
82eaf560 15209if eval "test \"\${$as_ac_Header+set}\" = set"; then
15210 echo "$as_me:$LINENO: checking for $ac_header" >&5
15211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15212if eval "test \"\${$as_ac_Header+set}\" = set"; then
aaa798ba 15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214fi
82eaf560 15215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15216echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
aaa798ba 15217else
15218 # Is the header compilable?
82eaf560 15219echo "$as_me:$LINENO: checking $ac_header usability" >&5
15220echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
aaa798ba 15221cat >conftest.$ac_ext <<_ACEOF
15222/* confdefs.h. */
15223_ACEOF
15224cat confdefs.h >>conftest.$ac_ext
15225cat >>conftest.$ac_ext <<_ACEOF
15226/* end confdefs.h. */
15227$ac_includes_default
15228#include <$ac_header>
15229_ACEOF
15230rm -f conftest.$ac_objext
82eaf560 15231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15232 (eval $ac_compile) 2>conftest.er1
aaa798ba 15233 ac_status=$?
15234 grep -v '^ *+' conftest.er1 >conftest.err
15235 rm -f conftest.er1
15236 cat conftest.err >&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 15238 (exit $ac_status); } &&
15239 { ac_try='test -z "$ac_c_werror_flag"
15240 || test ! -s conftest.err'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; } &&
15246 { ac_try='test -s conftest.$ac_objext'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; }; then
aaa798ba 15252 ac_header_compiler=yes
15253else
15254 echo "$as_me: failed program was:" >&5
15255sed 's/^/| /' conftest.$ac_ext >&5
15256
82eaf560 15257ac_header_compiler=no
aaa798ba 15258fi
82eaf560 15259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15260echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15261echo "${ECHO_T}$ac_header_compiler" >&6
aaa798ba 15262
15263# Is the header present?
82eaf560 15264echo "$as_me:$LINENO: checking $ac_header presence" >&5
15265echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
aaa798ba 15266cat >conftest.$ac_ext <<_ACEOF
15267/* confdefs.h. */
15268_ACEOF
15269cat confdefs.h >>conftest.$ac_ext
15270cat >>conftest.$ac_ext <<_ACEOF
15271/* end confdefs.h. */
15272#include <$ac_header>
15273_ACEOF
82eaf560 15274if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
aaa798ba 15276 ac_status=$?
15277 grep -v '^ *+' conftest.er1 >conftest.err
15278 rm -f conftest.er1
15279 cat conftest.err >&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 15281 (exit $ac_status); } >/dev/null; then
15282 if test -s conftest.err; then
15283 ac_cpp_err=$ac_c_preproc_warn_flag
15284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15285 else
15286 ac_cpp_err=
15287 fi
15288else
15289 ac_cpp_err=yes
15290fi
15291if test -z "$ac_cpp_err"; then
aaa798ba 15292 ac_header_preproc=yes
15293else
15294 echo "$as_me: failed program was:" >&5
15295sed 's/^/| /' conftest.$ac_ext >&5
15296
15297 ac_header_preproc=no
15298fi
15299rm -f conftest.err conftest.$ac_ext
82eaf560 15300echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15301echo "${ECHO_T}$ac_header_preproc" >&6
aaa798ba 15302
15303# So? What about this header?
15304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15305 yes:no: )
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15307echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15309echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15310 ac_header_preproc=yes
15311 ;;
15312 no:yes:* )
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15316echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15318echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15320echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15324echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
82eaf560 15325 (
15326 cat <<\_ASBOX
15327## ------------------------------------------------------ ##
15328## Report this to the GNU Fortran Runtime Library lists. ##
15329## ------------------------------------------------------ ##
15330_ASBOX
15331 ) |
15332 sed "s/^/$as_me: WARNING: /" >&2
aaa798ba 15333 ;;
15334esac
82eaf560 15335echo "$as_me:$LINENO: checking for $ac_header" >&5
15336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15337if eval "test \"\${$as_ac_Header+set}\" = set"; then
aaa798ba 15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15339else
15340 eval "$as_ac_Header=\$ac_header_preproc"
15341fi
82eaf560 15342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
aaa798ba 15344
15345fi
15346if test `eval echo '${'$as_ac_Header'}'` = yes; then
15347 cat >>confdefs.h <<_ACEOF
15348#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15349_ACEOF
15350
15351fi
15352
15353done
15354
15355
15356
15357
99798ba4 15358
c0e8efbe 15359
15360for ac_header in fenv.h fptrap.h float.h execinfo.h pwd.h
d2455565 15361do
15362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
82eaf560 15363if eval "test \"\${$as_ac_Header+set}\" = set"; then
15364 echo "$as_me:$LINENO: checking for $ac_header" >&5
15365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15366if eval "test \"\${$as_ac_Header+set}\" = set"; then
4ee9c684 15367 echo $ECHO_N "(cached) $ECHO_C" >&6
90973b19 15368fi
82eaf560 15369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4ee9c684 15371else
90973b19 15372 # Is the header compilable?
82eaf560 15373echo "$as_me:$LINENO: checking $ac_header usability" >&5
15374echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
90973b19 15375cat >conftest.$ac_ext <<_ACEOF
15376/* confdefs.h. */
15377_ACEOF
15378cat confdefs.h >>conftest.$ac_ext
15379cat >>conftest.$ac_ext <<_ACEOF
15380/* end confdefs.h. */
15381$ac_includes_default
15382#include <$ac_header>
15383_ACEOF
15384rm -f conftest.$ac_objext
82eaf560 15385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15386 (eval $ac_compile) 2>conftest.er1
90973b19 15387 ac_status=$?
15388 grep -v '^ *+' conftest.er1 >conftest.err
15389 rm -f conftest.er1
15390 cat conftest.err >&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 15392 (exit $ac_status); } &&
15393 { ac_try='test -z "$ac_c_werror_flag"
15394 || test ! -s conftest.err'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try='test -s conftest.$ac_objext'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
90973b19 15406 ac_header_compiler=yes
4ee9c684 15407else
90973b19 15408 echo "$as_me: failed program was:" >&5
15409sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 15410
82eaf560 15411ac_header_compiler=no
90973b19 15412fi
82eaf560 15413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15414echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15415echo "${ECHO_T}$ac_header_compiler" >&6
4ee9c684 15416
90973b19 15417# Is the header present?
82eaf560 15418echo "$as_me:$LINENO: checking $ac_header presence" >&5
15419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
90973b19 15420cat >conftest.$ac_ext <<_ACEOF
15421/* confdefs.h. */
15422_ACEOF
15423cat confdefs.h >>conftest.$ac_ext
15424cat >>conftest.$ac_ext <<_ACEOF
15425/* end confdefs.h. */
15426#include <$ac_header>
15427_ACEOF
82eaf560 15428if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
90973b19 15430 ac_status=$?
15431 grep -v '^ *+' conftest.er1 >conftest.err
15432 rm -f conftest.er1
15433 cat conftest.err >&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 15435 (exit $ac_status); } >/dev/null; then
15436 if test -s conftest.err; then
15437 ac_cpp_err=$ac_c_preproc_warn_flag
15438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15439 else
15440 ac_cpp_err=
15441 fi
15442else
15443 ac_cpp_err=yes
15444fi
15445if test -z "$ac_cpp_err"; then
90973b19 15446 ac_header_preproc=yes
4ee9c684 15447else
90973b19 15448 echo "$as_me: failed program was:" >&5
15449sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 15450
90973b19 15451 ac_header_preproc=no
15452fi
15453rm -f conftest.err conftest.$ac_ext
82eaf560 15454echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15455echo "${ECHO_T}$ac_header_preproc" >&6
4ee9c684 15456
90973b19 15457# So? What about this header?
15458case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15459 yes:no: )
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15461echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15463echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15464 ac_header_preproc=yes
4ee9c684 15465 ;;
90973b19 15466 no:yes:* )
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15468echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15470echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15472echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15474echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15476echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15478echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
82eaf560 15479 (
15480 cat <<\_ASBOX
15481## ------------------------------------------------------ ##
15482## Report this to the GNU Fortran Runtime Library lists. ##
15483## ------------------------------------------------------ ##
15484_ASBOX
15485 ) |
15486 sed "s/^/$as_me: WARNING: /" >&2
4ee9c684 15487 ;;
90973b19 15488esac
82eaf560 15489echo "$as_me:$LINENO: checking for $ac_header" >&5
15490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15491if eval "test \"\${$as_ac_Header+set}\" = set"; then
90973b19 15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15493else
15494 eval "$as_ac_Header=\$ac_header_preproc"
15495fi
82eaf560 15496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15497echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4ee9c684 15498
90973b19 15499fi
15500if test `eval echo '${'$as_ac_Header'}'` = yes; then
15501 cat >>confdefs.h <<_ACEOF
15502#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15503_ACEOF
4ee9c684 15504
90973b19 15505fi
4ee9c684 15506
90973b19 15507done
4ee9c684 15508
90973b19 15509if test "${ac_cv_header_complex_h+set}" = set; then
82eaf560 15510 echo "$as_me:$LINENO: checking for complex.h" >&5
15511echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
90973b19 15512if test "${ac_cv_header_complex_h+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514fi
82eaf560 15515echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
15516echo "${ECHO_T}$ac_cv_header_complex_h" >&6
90973b19 15517else
15518 # Is the header compilable?
82eaf560 15519echo "$as_me:$LINENO: checking complex.h usability" >&5
15520echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
90973b19 15521cat >conftest.$ac_ext <<_ACEOF
15522/* confdefs.h. */
15523_ACEOF
15524cat confdefs.h >>conftest.$ac_ext
15525cat >>conftest.$ac_ext <<_ACEOF
15526/* end confdefs.h. */
15527$ac_includes_default
15528#include <complex.h>
15529_ACEOF
15530rm -f conftest.$ac_objext
82eaf560 15531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15532 (eval $ac_compile) 2>conftest.er1
90973b19 15533 ac_status=$?
15534 grep -v '^ *+' conftest.er1 >conftest.err
15535 rm -f conftest.er1
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 15538 (exit $ac_status); } &&
15539 { ac_try='test -z "$ac_c_werror_flag"
15540 || test ! -s conftest.err'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; } &&
15546 { ac_try='test -s conftest.$ac_objext'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
90973b19 15552 ac_header_compiler=yes
15553else
15554 echo "$as_me: failed program was:" >&5
15555sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 15556
82eaf560 15557ac_header_compiler=no
90973b19 15558fi
82eaf560 15559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15561echo "${ECHO_T}$ac_header_compiler" >&6
4ee9c684 15562
90973b19 15563# Is the header present?
82eaf560 15564echo "$as_me:$LINENO: checking complex.h presence" >&5
15565echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
90973b19 15566cat >conftest.$ac_ext <<_ACEOF
15567/* confdefs.h. */
15568_ACEOF
15569cat confdefs.h >>conftest.$ac_ext
15570cat >>conftest.$ac_ext <<_ACEOF
15571/* end confdefs.h. */
15572#include <complex.h>
15573_ACEOF
82eaf560 15574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
90973b19 15576 ac_status=$?
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 15581 (exit $ac_status); } >/dev/null; then
15582 if test -s conftest.err; then
15583 ac_cpp_err=$ac_c_preproc_warn_flag
15584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15585 else
15586 ac_cpp_err=
15587 fi
15588else
15589 ac_cpp_err=yes
15590fi
15591if test -z "$ac_cpp_err"; then
90973b19 15592 ac_header_preproc=yes
15593else
15594 echo "$as_me: failed program was:" >&5
15595sed 's/^/| /' conftest.$ac_ext >&5
4ee9c684 15596
90973b19 15597 ac_header_preproc=no
15598fi
15599rm -f conftest.err conftest.$ac_ext
82eaf560 15600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15601echo "${ECHO_T}$ac_header_preproc" >&6
4ee9c684 15602
90973b19 15603# So? What about this header?
15604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15605 yes:no: )
15606 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
15607echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15608 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
15609echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
15610 ac_header_preproc=yes
4ee9c684 15611 ;;
90973b19 15612 no:yes:* )
15613 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
15614echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
15615 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
15616echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
15617 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
15618echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
15619 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
15620echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
15621 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
15622echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
15623 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
15624echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
82eaf560 15625 (
15626 cat <<\_ASBOX
15627## ------------------------------------------------------ ##
15628## Report this to the GNU Fortran Runtime Library lists. ##
15629## ------------------------------------------------------ ##
15630_ASBOX
15631 ) |
15632 sed "s/^/$as_me: WARNING: /" >&2
4ee9c684 15633 ;;
4ee9c684 15634esac
82eaf560 15635echo "$as_me:$LINENO: checking for complex.h" >&5
15636echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
90973b19 15637if test "${ac_cv_header_complex_h+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15639else
15640 ac_cv_header_complex_h=$ac_header_preproc
15641fi
82eaf560 15642echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
15643echo "${ECHO_T}$ac_cv_header_complex_h" >&6
4ee9c684 15644
15645fi
90973b19 15646if test $ac_cv_header_complex_h = yes; then
4ee9c684 15647
90973b19 15648cat >>confdefs.h <<\_ACEOF
15649#define HAVE_COMPLEX_H 1
15650_ACEOF
4ee9c684 15651
90973b19 15652fi
4ee9c684 15653
15654
4ee9c684 15655
56c15991 15656
15657inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15658
15659acx_cv_header_stdint=stddef.h
15660acx_cv_header_stdint_kind="(already complete)"
15661for i in stdint.h $inttype_headers; do
15662 unset ac_cv_type_uintptr_t
15663 unset ac_cv_type_uintmax_t
15664 unset ac_cv_type_int_least32_t
15665 unset ac_cv_type_int_fast32_t
15666 unset ac_cv_type_uint64_t
15667 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
82eaf560 15668 echo "$as_me:$LINENO: checking for uintmax_t" >&5
15669echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
56c15991 15670if test "${ac_cv_type_uintmax_t+set}" = set; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15672else
15673 cat >conftest.$ac_ext <<_ACEOF
15674/* confdefs.h. */
15675_ACEOF
15676cat confdefs.h >>conftest.$ac_ext
15677cat >>conftest.$ac_ext <<_ACEOF
15678/* end confdefs.h. */
15679#include <sys/types.h>
15680#include <$i>
15681
15682int
15683main ()
15684{
82eaf560 15685if ((uintmax_t *) 0)
56c15991 15686 return 0;
82eaf560 15687if (sizeof (uintmax_t))
56c15991 15688 return 0;
15689 ;
15690 return 0;
15691}
15692_ACEOF
15693rm -f conftest.$ac_objext
82eaf560 15694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15695 (eval $ac_compile) 2>conftest.er1
56c15991 15696 ac_status=$?
15697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 15701 (exit $ac_status); } &&
15702 { ac_try='test -z "$ac_c_werror_flag"
15703 || test ! -s conftest.err'
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; } &&
15709 { ac_try='test -s conftest.$ac_objext'
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
56c15991 15715 ac_cv_type_uintmax_t=yes
15716else
15717 echo "$as_me: failed program was:" >&5
15718sed 's/^/| /' conftest.$ac_ext >&5
15719
82eaf560 15720ac_cv_type_uintmax_t=no
56c15991 15721fi
82eaf560 15722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 15723fi
82eaf560 15724echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
15725echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
56c15991 15726if test $ac_cv_type_uintmax_t = yes; then
15727 acx_cv_header_stdint=$i
15728else
15729 continue
15730fi
15731
82eaf560 15732 echo "$as_me:$LINENO: checking for uintptr_t" >&5
15733echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
56c15991 15734if test "${ac_cv_type_uintptr_t+set}" = set; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15736else
15737 cat >conftest.$ac_ext <<_ACEOF
15738/* confdefs.h. */
15739_ACEOF
15740cat confdefs.h >>conftest.$ac_ext
15741cat >>conftest.$ac_ext <<_ACEOF
15742/* end confdefs.h. */
15743#include <sys/types.h>
15744#include <$i>
15745
15746int
15747main ()
15748{
82eaf560 15749if ((uintptr_t *) 0)
56c15991 15750 return 0;
82eaf560 15751if (sizeof (uintptr_t))
56c15991 15752 return 0;
15753 ;
15754 return 0;
15755}
15756_ACEOF
15757rm -f conftest.$ac_objext
82eaf560 15758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759 (eval $ac_compile) 2>conftest.er1
56c15991 15760 ac_status=$?
15761 grep -v '^ *+' conftest.er1 >conftest.err
15762 rm -f conftest.er1
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 15765 (exit $ac_status); } &&
15766 { ac_try='test -z "$ac_c_werror_flag"
15767 || test ! -s conftest.err'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; } &&
15773 { ac_try='test -s conftest.$ac_objext'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
56c15991 15779 ac_cv_type_uintptr_t=yes
15780else
15781 echo "$as_me: failed program was:" >&5
15782sed 's/^/| /' conftest.$ac_ext >&5
15783
82eaf560 15784ac_cv_type_uintptr_t=no
56c15991 15785fi
82eaf560 15786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 15787fi
82eaf560 15788echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15789echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
56c15991 15790if test $ac_cv_type_uintptr_t = yes; then
15791 :
15792else
15793 acx_cv_header_stdint_kind="(mostly complete)"
15794fi
15795
82eaf560 15796 echo "$as_me:$LINENO: checking for int_least32_t" >&5
15797echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
56c15991 15798if test "${ac_cv_type_int_least32_t+set}" = set; then
15799 echo $ECHO_N "(cached) $ECHO_C" >&6
15800else
15801 cat >conftest.$ac_ext <<_ACEOF
15802/* confdefs.h. */
15803_ACEOF
15804cat confdefs.h >>conftest.$ac_ext
15805cat >>conftest.$ac_ext <<_ACEOF
15806/* end confdefs.h. */
15807#include <sys/types.h>
15808#include <$i>
15809
15810int
15811main ()
15812{
82eaf560 15813if ((int_least32_t *) 0)
56c15991 15814 return 0;
82eaf560 15815if (sizeof (int_least32_t))
56c15991 15816 return 0;
15817 ;
15818 return 0;
15819}
15820_ACEOF
15821rm -f conftest.$ac_objext
82eaf560 15822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15823 (eval $ac_compile) 2>conftest.er1
56c15991 15824 ac_status=$?
15825 grep -v '^ *+' conftest.er1 >conftest.err
15826 rm -f conftest.er1
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 15829 (exit $ac_status); } &&
15830 { ac_try='test -z "$ac_c_werror_flag"
15831 || test ! -s conftest.err'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest.$ac_objext'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
56c15991 15843 ac_cv_type_int_least32_t=yes
15844else
15845 echo "$as_me: failed program was:" >&5
15846sed 's/^/| /' conftest.$ac_ext >&5
15847
82eaf560 15848ac_cv_type_int_least32_t=no
56c15991 15849fi
82eaf560 15850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 15851fi
82eaf560 15852echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
15853echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
56c15991 15854if test $ac_cv_type_int_least32_t = yes; then
15855 :
15856else
15857 acx_cv_header_stdint_kind="(mostly complete)"
15858fi
15859
82eaf560 15860 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
15861echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
56c15991 15862if test "${ac_cv_type_int_fast32_t+set}" = set; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15864else
15865 cat >conftest.$ac_ext <<_ACEOF
15866/* confdefs.h. */
15867_ACEOF
15868cat confdefs.h >>conftest.$ac_ext
15869cat >>conftest.$ac_ext <<_ACEOF
15870/* end confdefs.h. */
15871#include <sys/types.h>
15872#include <$i>
15873
15874int
15875main ()
15876{
82eaf560 15877if ((int_fast32_t *) 0)
56c15991 15878 return 0;
82eaf560 15879if (sizeof (int_fast32_t))
56c15991 15880 return 0;
15881 ;
15882 return 0;
15883}
15884_ACEOF
15885rm -f conftest.$ac_objext
82eaf560 15886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15887 (eval $ac_compile) 2>conftest.er1
56c15991 15888 ac_status=$?
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag"
15895 || test ! -s conftest.err'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; } &&
15901 { ac_try='test -s conftest.$ac_objext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
56c15991 15907 ac_cv_type_int_fast32_t=yes
15908else
15909 echo "$as_me: failed program was:" >&5
15910sed 's/^/| /' conftest.$ac_ext >&5
15911
82eaf560 15912ac_cv_type_int_fast32_t=no
56c15991 15913fi
82eaf560 15914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 15915fi
82eaf560 15916echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
15917echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
56c15991 15918if test $ac_cv_type_int_fast32_t = yes; then
15919 :
15920else
15921 acx_cv_header_stdint_kind="(mostly complete)"
15922fi
15923
82eaf560 15924 echo "$as_me:$LINENO: checking for uint64_t" >&5
15925echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
56c15991 15926if test "${ac_cv_type_uint64_t+set}" = set; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15928else
15929 cat >conftest.$ac_ext <<_ACEOF
15930/* confdefs.h. */
15931_ACEOF
15932cat confdefs.h >>conftest.$ac_ext
15933cat >>conftest.$ac_ext <<_ACEOF
15934/* end confdefs.h. */
15935#include <sys/types.h>
15936#include <$i>
15937
15938int
15939main ()
15940{
82eaf560 15941if ((uint64_t *) 0)
56c15991 15942 return 0;
82eaf560 15943if (sizeof (uint64_t))
56c15991 15944 return 0;
15945 ;
15946 return 0;
15947}
15948_ACEOF
15949rm -f conftest.$ac_objext
82eaf560 15950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15951 (eval $ac_compile) 2>conftest.er1
56c15991 15952 ac_status=$?
15953 grep -v '^ *+' conftest.er1 >conftest.err
15954 rm -f conftest.er1
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag"
15959 || test ! -s conftest.err'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15962 ac_status=$?
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try='test -s conftest.$ac_objext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
56c15991 15971 ac_cv_type_uint64_t=yes
15972else
15973 echo "$as_me: failed program was:" >&5
15974sed 's/^/| /' conftest.$ac_ext >&5
15975
82eaf560 15976ac_cv_type_uint64_t=no
56c15991 15977fi
82eaf560 15978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 15979fi
82eaf560 15980echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
15981echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
56c15991 15982if test $ac_cv_type_uint64_t = yes; then
15983 :
15984else
15985 acx_cv_header_stdint_kind="(lacks uint64_t)"
15986fi
15987
15988 break
15989done
15990if test "$acx_cv_header_stdint" = stddef.h; then
16af3de2 15991 acx_cv_header_stdint_kind="(lacks uintmax_t)"
56c15991 15992 for i in stdint.h $inttype_headers; do
16af3de2 15993 unset ac_cv_type_uintptr_t
56c15991 15994 unset ac_cv_type_uint32_t
15995 unset ac_cv_type_uint64_t
15996 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
82eaf560 15997 echo "$as_me:$LINENO: checking for uint32_t" >&5
15998echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
56c15991 15999if test "${ac_cv_type_uint32_t+set}" = set; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16001else
16002 cat >conftest.$ac_ext <<_ACEOF
16003/* confdefs.h. */
16004_ACEOF
16005cat confdefs.h >>conftest.$ac_ext
16006cat >>conftest.$ac_ext <<_ACEOF
16007/* end confdefs.h. */
16008#include <sys/types.h>
16009#include <$i>
16010
16011int
16012main ()
16013{
82eaf560 16014if ((uint32_t *) 0)
56c15991 16015 return 0;
82eaf560 16016if (sizeof (uint32_t))
56c15991 16017 return 0;
16018 ;
16019 return 0;
16020}
16021_ACEOF
16022rm -f conftest.$ac_objext
82eaf560 16023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16024 (eval $ac_compile) 2>conftest.er1
56c15991 16025 ac_status=$?
16026 grep -v '^ *+' conftest.er1 >conftest.err
16027 rm -f conftest.er1
16028 cat conftest.err >&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 16030 (exit $ac_status); } &&
16031 { ac_try='test -z "$ac_c_werror_flag"
16032 || test ! -s conftest.err'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16035 ac_status=$?
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; } &&
16038 { ac_try='test -s conftest.$ac_objext'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16041 ac_status=$?
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
56c15991 16044 ac_cv_type_uint32_t=yes
16045else
16046 echo "$as_me: failed program was:" >&5
16047sed 's/^/| /' conftest.$ac_ext >&5
16048
82eaf560 16049ac_cv_type_uint32_t=no
56c15991 16050fi
82eaf560 16051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 16052fi
82eaf560 16053echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
16054echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
56c15991 16055if test $ac_cv_type_uint32_t = yes; then
16056 acx_cv_header_stdint=$i
16057else
16058 continue
16059fi
16060
82eaf560 16061 echo "$as_me:$LINENO: checking for uint64_t" >&5
16062echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
56c15991 16063if test "${ac_cv_type_uint64_t+set}" = set; then
16064 echo $ECHO_N "(cached) $ECHO_C" >&6
16065else
16066 cat >conftest.$ac_ext <<_ACEOF
16067/* confdefs.h. */
16068_ACEOF
16069cat confdefs.h >>conftest.$ac_ext
16070cat >>conftest.$ac_ext <<_ACEOF
16071/* end confdefs.h. */
16072#include <sys/types.h>
16073#include <$i>
16074
16075int
16076main ()
16077{
82eaf560 16078if ((uint64_t *) 0)
56c15991 16079 return 0;
82eaf560 16080if (sizeof (uint64_t))
56c15991 16081 return 0;
16082 ;
16083 return 0;
16084}
16085_ACEOF
16086rm -f conftest.$ac_objext
82eaf560 16087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16088 (eval $ac_compile) 2>conftest.er1
56c15991 16089 ac_status=$?
16090 grep -v '^ *+' conftest.er1 >conftest.err
16091 rm -f conftest.er1
16092 cat conftest.err >&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 16094 (exit $ac_status); } &&
16095 { ac_try='test -z "$ac_c_werror_flag"
16096 || test ! -s conftest.err'
16097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16098 (eval $ac_try) 2>&5
16099 ac_status=$?
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); }; } &&
16102 { ac_try='test -s conftest.$ac_objext'
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; }; then
56c15991 16108 ac_cv_type_uint64_t=yes
16109else
16110 echo "$as_me: failed program was:" >&5
16111sed 's/^/| /' conftest.$ac_ext >&5
16112
82eaf560 16113ac_cv_type_uint64_t=no
56c15991 16114fi
82eaf560 16115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 16116fi
82eaf560 16117echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16118echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
16af3de2 16119
82eaf560 16120 echo "$as_me:$LINENO: checking for uintptr_t" >&5
16121echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16af3de2 16122if test "${ac_cv_type_uintptr_t+set}" = set; then
16123 echo $ECHO_N "(cached) $ECHO_C" >&6
997107e3 16124else
16af3de2 16125 cat >conftest.$ac_ext <<_ACEOF
16126/* confdefs.h. */
16127_ACEOF
16128cat confdefs.h >>conftest.$ac_ext
16129cat >>conftest.$ac_ext <<_ACEOF
16130/* end confdefs.h. */
16131#include <sys/types.h>
16132#include <$i>
16133
16134int
16135main ()
16136{
82eaf560 16137if ((uintptr_t *) 0)
16af3de2 16138 return 0;
82eaf560 16139if (sizeof (uintptr_t))
16af3de2 16140 return 0;
16141 ;
16142 return 0;
16143}
16144_ACEOF
16145rm -f conftest.$ac_objext
82eaf560 16146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147 (eval $ac_compile) 2>conftest.er1
16af3de2 16148 ac_status=$?
16149 grep -v '^ *+' conftest.er1 >conftest.err
16150 rm -f conftest.er1
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 16153 (exit $ac_status); } &&
16154 { ac_try='test -z "$ac_c_werror_flag"
16155 || test ! -s conftest.err'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; } &&
16161 { ac_try='test -s conftest.$ac_objext'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16af3de2 16167 ac_cv_type_uintptr_t=yes
16168else
16169 echo "$as_me: failed program was:" >&5
16170sed 's/^/| /' conftest.$ac_ext >&5
16171
82eaf560 16172ac_cv_type_uintptr_t=no
16af3de2 16173fi
82eaf560 16174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
997107e3 16175fi
82eaf560 16176echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16177echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
56c15991 16178
16179 break
16180 done
16181fi
16182if test "$acx_cv_header_stdint" = stddef.h; then
16183 acx_cv_header_stdint_kind="(u_intXX_t style)"
16184 for i in sys/types.h $inttype_headers; do
16185 unset ac_cv_type_u_int32_t
16186 unset ac_cv_type_u_int64_t
16187 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
82eaf560 16188 echo "$as_me:$LINENO: checking for u_int32_t" >&5
16189echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
56c15991 16190if test "${ac_cv_type_u_int32_t+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16192else
16193 cat >conftest.$ac_ext <<_ACEOF
16194/* confdefs.h. */
16195_ACEOF
16196cat confdefs.h >>conftest.$ac_ext
16197cat >>conftest.$ac_ext <<_ACEOF
16198/* end confdefs.h. */
16199#include <sys/types.h>
16200#include <$i>
16201
16202int
16203main ()
16204{
82eaf560 16205if ((u_int32_t *) 0)
56c15991 16206 return 0;
82eaf560 16207if (sizeof (u_int32_t))
56c15991 16208 return 0;
16209 ;
16210 return 0;
16211}
16212_ACEOF
16213rm -f conftest.$ac_objext
82eaf560 16214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215 (eval $ac_compile) 2>conftest.er1
56c15991 16216 ac_status=$?
16217 grep -v '^ *+' conftest.er1 >conftest.err
16218 rm -f conftest.er1
16219 cat conftest.err >&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 16221 (exit $ac_status); } &&
16222 { ac_try='test -z "$ac_c_werror_flag"
16223 || test ! -s conftest.err'
16224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225 (eval $ac_try) 2>&5
16226 ac_status=$?
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); }; } &&
16229 { ac_try='test -s conftest.$ac_objext'
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; }; then
56c15991 16235 ac_cv_type_u_int32_t=yes
16236else
16237 echo "$as_me: failed program was:" >&5
16238sed 's/^/| /' conftest.$ac_ext >&5
16239
82eaf560 16240ac_cv_type_u_int32_t=no
56c15991 16241fi
82eaf560 16242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 16243fi
82eaf560 16244echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
16245echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
56c15991 16246if test $ac_cv_type_u_int32_t = yes; then
16247 acx_cv_header_stdint=$i
16248else
16249 continue
16250fi
16251
82eaf560 16252 echo "$as_me:$LINENO: checking for u_int64_t" >&5
16253echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
56c15991 16254if test "${ac_cv_type_u_int64_t+set}" = set; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16256else
16257 cat >conftest.$ac_ext <<_ACEOF
16258/* confdefs.h. */
16259_ACEOF
16260cat confdefs.h >>conftest.$ac_ext
16261cat >>conftest.$ac_ext <<_ACEOF
16262/* end confdefs.h. */
16263#include <sys/types.h>
16264#include <$i>
16265
16266int
16267main ()
16268{
82eaf560 16269if ((u_int64_t *) 0)
56c15991 16270 return 0;
82eaf560 16271if (sizeof (u_int64_t))
56c15991 16272 return 0;
16273 ;
16274 return 0;
16275}
16276_ACEOF
16277rm -f conftest.$ac_objext
82eaf560 16278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16279 (eval $ac_compile) 2>conftest.er1
56c15991 16280 ac_status=$?
16281 grep -v '^ *+' conftest.er1 >conftest.err
16282 rm -f conftest.er1
16283 cat conftest.err >&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 16285 (exit $ac_status); } &&
16286 { ac_try='test -z "$ac_c_werror_flag"
16287 || test ! -s conftest.err'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16290 ac_status=$?
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; } &&
16293 { ac_try='test -s conftest.$ac_objext'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16296 ac_status=$?
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }; then
56c15991 16299 ac_cv_type_u_int64_t=yes
16300else
16301 echo "$as_me: failed program was:" >&5
16302sed 's/^/| /' conftest.$ac_ext >&5
16303
82eaf560 16304ac_cv_type_u_int64_t=no
56c15991 16305fi
82eaf560 16306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 16307fi
82eaf560 16308echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16309echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
56c15991 16310
16311 break
16312 done
16313fi
16314if test "$acx_cv_header_stdint" = stddef.h; then
16315 acx_cv_header_stdint_kind="(using manual detection)"
16316fi
16317
16318test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16319test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16320test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16321test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16322test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16323
16324# ----------------- Summarize what we found so far
16325
82eaf560 16326echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
16327echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
56c15991 16328
82eaf560 16329case `$as_basename gstdint.h ||
56c15991 16330$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16331 Xgstdint.h : 'X\(//\)$' \| \
82eaf560 16332 Xgstdint.h : 'X\(/\)$' \| \
16333 . : '\(.\)' 2>/dev/null ||
56c15991 16334echo X/gstdint.h |
82eaf560 16335 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16336 /^X\/\(\/\/\)$/{ s//\1/; q; }
16337 /^X\/\(\/\).*/{ s//\1/; q; }
16338 s/.*/./; q'` in
56c15991 16339 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
16340echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16341 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
16342echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16343 *) ;;
16344esac
16345
82eaf560 16346echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16347echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
56c15991 16348
16349# ----------------- done included file, check C basic types --------
16350
16351# Lacking an uintptr_t? Test size of void *
16352case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
82eaf560 16353 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
16354echo $ECHO_N "checking for void *... $ECHO_C" >&6
56c15991 16355if test "${ac_cv_type_void_p+set}" = set; then
16356 echo $ECHO_N "(cached) $ECHO_C" >&6
16357else
16358 cat >conftest.$ac_ext <<_ACEOF
16359/* confdefs.h. */
16360_ACEOF
16361cat confdefs.h >>conftest.$ac_ext
16362cat >>conftest.$ac_ext <<_ACEOF
16363/* end confdefs.h. */
16364$ac_includes_default
16365int
16366main ()
16367{
82eaf560 16368if ((void * *) 0)
56c15991 16369 return 0;
82eaf560 16370if (sizeof (void *))
56c15991 16371 return 0;
16372 ;
16373 return 0;
16374}
16375_ACEOF
16376rm -f conftest.$ac_objext
82eaf560 16377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16378 (eval $ac_compile) 2>conftest.er1
56c15991 16379 ac_status=$?
16380 grep -v '^ *+' conftest.er1 >conftest.err
16381 rm -f conftest.er1
16382 cat conftest.err >&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 16384 (exit $ac_status); } &&
16385 { ac_try='test -z "$ac_c_werror_flag"
16386 || test ! -s conftest.err'
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; } &&
16392 { ac_try='test -s conftest.$ac_objext'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16395 ac_status=$?
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
56c15991 16398 ac_cv_type_void_p=yes
16399else
16400 echo "$as_me: failed program was:" >&5
16401sed 's/^/| /' conftest.$ac_ext >&5
16402
82eaf560 16403ac_cv_type_void_p=no
56c15991 16404fi
82eaf560 16405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 16406fi
82eaf560 16407echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16408echo "${ECHO_T}$ac_cv_type_void_p" >&6
56c15991 16409
82eaf560 16410echo "$as_me:$LINENO: checking size of void *" >&5
16411echo $ECHO_N "checking size of void *... $ECHO_C" >&6
56c15991 16412if test "${ac_cv_sizeof_void_p+set}" = set; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16414else
82eaf560 16415 if test "$ac_cv_type_void_p" = yes; then
16416 # The cast to unsigned long works around a bug in the HP C Compiler
16417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16419 # This bug is HP SR number 8606223364.
56c15991 16420 if test "$cross_compiling" = yes; then
16421 # Depending upon the size, compute the lo and hi bounds.
16422cat >conftest.$ac_ext <<_ACEOF
16423/* confdefs.h. */
16424_ACEOF
16425cat confdefs.h >>conftest.$ac_ext
16426cat >>conftest.$ac_ext <<_ACEOF
16427/* end confdefs.h. */
16428$ac_includes_default
16429int
16430main ()
16431{
82eaf560 16432static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
56c15991 16433test_array [0] = 0
16434
16435 ;
16436 return 0;
16437}
16438_ACEOF
16439rm -f conftest.$ac_objext
82eaf560 16440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16441 (eval $ac_compile) 2>conftest.er1
56c15991 16442 ac_status=$?
16443 grep -v '^ *+' conftest.er1 >conftest.err
16444 rm -f conftest.er1
16445 cat conftest.err >&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 16447 (exit $ac_status); } &&
16448 { ac_try='test -z "$ac_c_werror_flag"
16449 || test ! -s conftest.err'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; } &&
16455 { ac_try='test -s conftest.$ac_objext'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
56c15991 16461 ac_lo=0 ac_mid=0
16462 while :; do
16463 cat >conftest.$ac_ext <<_ACEOF
16464/* confdefs.h. */
16465_ACEOF
16466cat confdefs.h >>conftest.$ac_ext
16467cat >>conftest.$ac_ext <<_ACEOF
16468/* end confdefs.h. */
16469$ac_includes_default
16470int
16471main ()
16472{
82eaf560 16473static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
56c15991 16474test_array [0] = 0
16475
16476 ;
16477 return 0;
16478}
16479_ACEOF
16480rm -f conftest.$ac_objext
82eaf560 16481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16482 (eval $ac_compile) 2>conftest.er1
56c15991 16483 ac_status=$?
16484 grep -v '^ *+' conftest.er1 >conftest.err
16485 rm -f conftest.er1
16486 cat conftest.err >&5
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 16488 (exit $ac_status); } &&
16489 { ac_try='test -z "$ac_c_werror_flag"
16490 || test ! -s conftest.err'
16491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492 (eval $ac_try) 2>&5
16493 ac_status=$?
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; } &&
16496 { ac_try='test -s conftest.$ac_objext'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
56c15991 16502 ac_hi=$ac_mid; break
16503else
16504 echo "$as_me: failed program was:" >&5
16505sed 's/^/| /' conftest.$ac_ext >&5
16506
82eaf560 16507ac_lo=`expr $ac_mid + 1`
16508 if test $ac_lo -le $ac_mid; then
16509 ac_lo= ac_hi=
16510 break
16511 fi
16512 ac_mid=`expr 2 '*' $ac_mid + 1`
56c15991 16513fi
82eaf560 16514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 16515 done
16516else
16517 echo "$as_me: failed program was:" >&5
16518sed 's/^/| /' conftest.$ac_ext >&5
16519
82eaf560 16520cat >conftest.$ac_ext <<_ACEOF
56c15991 16521/* confdefs.h. */
16522_ACEOF
16523cat confdefs.h >>conftest.$ac_ext
16524cat >>conftest.$ac_ext <<_ACEOF
16525/* end confdefs.h. */
16526$ac_includes_default
16527int
16528main ()
16529{
82eaf560 16530static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
56c15991 16531test_array [0] = 0
16532
16533 ;
16534 return 0;
16535}
16536_ACEOF
16537rm -f conftest.$ac_objext
82eaf560 16538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16539 (eval $ac_compile) 2>conftest.er1
56c15991 16540 ac_status=$?
16541 grep -v '^ *+' conftest.er1 >conftest.err
16542 rm -f conftest.er1
16543 cat conftest.err >&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 16545 (exit $ac_status); } &&
16546 { ac_try='test -z "$ac_c_werror_flag"
16547 || test ! -s conftest.err'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16550 ac_status=$?
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; } &&
16553 { ac_try='test -s conftest.$ac_objext'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16556 ac_status=$?
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; }; then
56c15991 16559 ac_hi=-1 ac_mid=-1
16560 while :; do
16561 cat >conftest.$ac_ext <<_ACEOF
16562/* confdefs.h. */
16563_ACEOF
16564cat confdefs.h >>conftest.$ac_ext
16565cat >>conftest.$ac_ext <<_ACEOF
16566/* end confdefs.h. */
16567$ac_includes_default
16568int
16569main ()
16570{
82eaf560 16571static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
56c15991 16572test_array [0] = 0
16573
16574 ;
16575 return 0;
16576}
16577_ACEOF
16578rm -f conftest.$ac_objext
82eaf560 16579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16580 (eval $ac_compile) 2>conftest.er1
56c15991 16581 ac_status=$?
16582 grep -v '^ *+' conftest.er1 >conftest.err
16583 rm -f conftest.er1
16584 cat conftest.err >&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 16586 (exit $ac_status); } &&
16587 { ac_try='test -z "$ac_c_werror_flag"
16588 || test ! -s conftest.err'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; } &&
16594 { ac_try='test -s conftest.$ac_objext'
16595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596 (eval $ac_try) 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; }; then
56c15991 16600 ac_lo=$ac_mid; break
16601else
16602 echo "$as_me: failed program was:" >&5
16603sed 's/^/| /' conftest.$ac_ext >&5
16604
82eaf560 16605ac_hi=`expr '(' $ac_mid ')' - 1`
16606 if test $ac_mid -le $ac_hi; then
16607 ac_lo= ac_hi=
16608 break
16609 fi
16610 ac_mid=`expr 2 '*' $ac_mid`
56c15991 16611fi
82eaf560 16612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 16613 done
16614else
16615 echo "$as_me: failed program was:" >&5
16616sed 's/^/| /' conftest.$ac_ext >&5
16617
82eaf560 16618ac_lo= ac_hi=
56c15991 16619fi
82eaf560 16620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 16621fi
82eaf560 16622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 16623# Binary search between lo and hi bounds.
16624while test "x$ac_lo" != "x$ac_hi"; do
16625 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16626 cat >conftest.$ac_ext <<_ACEOF
16627/* confdefs.h. */
16628_ACEOF
16629cat confdefs.h >>conftest.$ac_ext
16630cat >>conftest.$ac_ext <<_ACEOF
16631/* end confdefs.h. */
16632$ac_includes_default
16633int
16634main ()
16635{
82eaf560 16636static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
56c15991 16637test_array [0] = 0
16638
16639 ;
16640 return 0;
16641}
16642_ACEOF
16643rm -f conftest.$ac_objext
82eaf560 16644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16645 (eval $ac_compile) 2>conftest.er1
56c15991 16646 ac_status=$?
16647 grep -v '^ *+' conftest.er1 >conftest.err
16648 rm -f conftest.er1
16649 cat conftest.err >&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 16651 (exit $ac_status); } &&
16652 { ac_try='test -z "$ac_c_werror_flag"
16653 || test ! -s conftest.err'
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; } &&
16659 { ac_try='test -s conftest.$ac_objext'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
56c15991 16665 ac_hi=$ac_mid
16666else
16667 echo "$as_me: failed program was:" >&5
16668sed 's/^/| /' conftest.$ac_ext >&5
16669
82eaf560 16670ac_lo=`expr '(' $ac_mid ')' + 1`
56c15991 16671fi
82eaf560 16672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 16673done
16674case $ac_lo in
16675?*) ac_cv_sizeof_void_p=$ac_lo;;
5b2c7553 16676'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16677echo "$as_me: error: in \`$ac_pwd':" >&2;}
16678{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
56c15991 16679See \`config.log' for more details." >&5
82eaf560 16680echo "$as_me: error: cannot compute sizeof (void *), 77
56c15991 16681See \`config.log' for more details." >&2;}
5b2c7553 16682 { (exit 1); exit 1; }; }; } ;;
56c15991 16683esac
82eaf560 16684else
16685 if test "$cross_compiling" = yes; then
5b2c7553 16686 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16687echo "$as_me: error: in \`$ac_pwd':" >&2;}
16688{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
82eaf560 16689See \`config.log' for more details." >&5
16690echo "$as_me: error: cannot run test program while cross compiling
16691See \`config.log' for more details." >&2;}
5b2c7553 16692 { (exit 1); exit 1; }; }; }
56c15991 16693else
16694 cat >conftest.$ac_ext <<_ACEOF
16695/* confdefs.h. */
16696_ACEOF
16697cat confdefs.h >>conftest.$ac_ext
16698cat >>conftest.$ac_ext <<_ACEOF
16699/* end confdefs.h. */
16700$ac_includes_default
82eaf560 16701long longval () { return (long) (sizeof (void *)); }
16702unsigned long ulongval () { return (long) (sizeof (void *)); }
56c15991 16703#include <stdio.h>
16704#include <stdlib.h>
16705int
16706main ()
16707{
16708
16709 FILE *f = fopen ("conftest.val", "w");
16710 if (! f)
82eaf560 16711 exit (1);
16712 if (((long) (sizeof (void *))) < 0)
56c15991 16713 {
82eaf560 16714 long i = longval ();
16715 if (i != ((long) (sizeof (void *))))
16716 exit (1);
56c15991 16717 fprintf (f, "%ld\n", i);
16718 }
16719 else
16720 {
82eaf560 16721 unsigned long i = ulongval ();
16722 if (i != ((long) (sizeof (void *))))
16723 exit (1);
56c15991 16724 fprintf (f, "%lu\n", i);
16725 }
82eaf560 16726 exit (ferror (f) || fclose (f) != 0);
56c15991 16727
16728 ;
16729 return 0;
16730}
16731_ACEOF
16732rm -f conftest$ac_exeext
82eaf560 16733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16734 (eval $ac_link) 2>&5
56c15991 16735 ac_status=$?
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
82eaf560 16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
56c15991 16740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 ac_cv_sizeof_void_p=`cat conftest.val`
16744else
16745 echo "$as_me: program exited with status $ac_status" >&5
16746echo "$as_me: failed program was:" >&5
16747sed 's/^/| /' conftest.$ac_ext >&5
16748
16749( exit $ac_status )
5b2c7553 16750{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16751echo "$as_me: error: in \`$ac_pwd':" >&2;}
82eaf560 16752{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
56c15991 16753See \`config.log' for more details." >&5
82eaf560 16754echo "$as_me: error: cannot compute sizeof (void *), 77
56c15991 16755See \`config.log' for more details." >&2;}
5b2c7553 16756 { (exit 1); exit 1; }; }; }
82eaf560 16757fi
16758rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56c15991 16759fi
16760fi
16761rm -f conftest.val
82eaf560 16762else
16763 ac_cv_sizeof_void_p=0
56c15991 16764fi
82eaf560 16765fi
16766echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16767echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
56c15991 16768cat >>confdefs.h <<_ACEOF
16769#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16770_ACEOF
16771
16772 ;;
16773esac
16774
16775# Lacking an uint64_t? Test size of long
16776case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
82eaf560 16777 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
16778echo $ECHO_N "checking for long... $ECHO_C" >&6
56c15991 16779if test "${ac_cv_type_long+set}" = set; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16781else
16782 cat >conftest.$ac_ext <<_ACEOF
16783/* confdefs.h. */
16784_ACEOF
16785cat confdefs.h >>conftest.$ac_ext
16786cat >>conftest.$ac_ext <<_ACEOF
16787/* end confdefs.h. */
16788$ac_includes_default
16789int
16790main ()
16791{
82eaf560 16792if ((long *) 0)
56c15991 16793 return 0;
82eaf560 16794if (sizeof (long))
56c15991 16795 return 0;
16796 ;
16797 return 0;
16798}
16799_ACEOF
16800rm -f conftest.$ac_objext
82eaf560 16801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16802 (eval $ac_compile) 2>conftest.er1
56c15991 16803 ac_status=$?
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 16808 (exit $ac_status); } &&
16809 { ac_try='test -z "$ac_c_werror_flag"
16810 || test ! -s conftest.err'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; } &&
16816 { ac_try='test -s conftest.$ac_objext'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
56c15991 16822 ac_cv_type_long=yes
16823else
16824 echo "$as_me: failed program was:" >&5
16825sed 's/^/| /' conftest.$ac_ext >&5
16826
82eaf560 16827ac_cv_type_long=no
56c15991 16828fi
82eaf560 16829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 16830fi
82eaf560 16831echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16832echo "${ECHO_T}$ac_cv_type_long" >&6
56c15991 16833
82eaf560 16834echo "$as_me:$LINENO: checking size of long" >&5
16835echo $ECHO_N "checking size of long... $ECHO_C" >&6
56c15991 16836if test "${ac_cv_sizeof_long+set}" = set; then
16837 echo $ECHO_N "(cached) $ECHO_C" >&6
16838else
82eaf560 16839 if test "$ac_cv_type_long" = yes; then
16840 # The cast to unsigned long works around a bug in the HP C Compiler
16841 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16842 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16843 # This bug is HP SR number 8606223364.
56c15991 16844 if test "$cross_compiling" = yes; then
16845 # Depending upon the size, compute the lo and hi bounds.
16846cat >conftest.$ac_ext <<_ACEOF
16847/* confdefs.h. */
16848_ACEOF
16849cat confdefs.h >>conftest.$ac_ext
16850cat >>conftest.$ac_ext <<_ACEOF
16851/* end confdefs.h. */
16852$ac_includes_default
16853int
16854main ()
16855{
82eaf560 16856static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
56c15991 16857test_array [0] = 0
16858
16859 ;
16860 return 0;
16861}
16862_ACEOF
16863rm -f conftest.$ac_objext
82eaf560 16864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16865 (eval $ac_compile) 2>conftest.er1
56c15991 16866 ac_status=$?
16867 grep -v '^ *+' conftest.er1 >conftest.err
16868 rm -f conftest.er1
16869 cat conftest.err >&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 16871 (exit $ac_status); } &&
16872 { ac_try='test -z "$ac_c_werror_flag"
16873 || test ! -s conftest.err'
16874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16876 ac_status=$?
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; } &&
16879 { ac_try='test -s conftest.$ac_objext'
16880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881 (eval $ac_try) 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
56c15991 16885 ac_lo=0 ac_mid=0
16886 while :; do
16887 cat >conftest.$ac_ext <<_ACEOF
16888/* confdefs.h. */
16889_ACEOF
16890cat confdefs.h >>conftest.$ac_ext
16891cat >>conftest.$ac_ext <<_ACEOF
16892/* end confdefs.h. */
16893$ac_includes_default
16894int
16895main ()
16896{
82eaf560 16897static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
56c15991 16898test_array [0] = 0
16899
16900 ;
16901 return 0;
16902}
16903_ACEOF
16904rm -f conftest.$ac_objext
82eaf560 16905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16906 (eval $ac_compile) 2>conftest.er1
56c15991 16907 ac_status=$?
16908 grep -v '^ *+' conftest.er1 >conftest.err
16909 rm -f conftest.er1
16910 cat conftest.err >&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 16912 (exit $ac_status); } &&
16913 { ac_try='test -z "$ac_c_werror_flag"
16914 || test ! -s conftest.err'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } &&
16920 { ac_try='test -s conftest.$ac_objext'
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
56c15991 16926 ac_hi=$ac_mid; break
16927else
16928 echo "$as_me: failed program was:" >&5
16929sed 's/^/| /' conftest.$ac_ext >&5
16930
82eaf560 16931ac_lo=`expr $ac_mid + 1`
16932 if test $ac_lo -le $ac_mid; then
16933 ac_lo= ac_hi=
16934 break
16935 fi
16936 ac_mid=`expr 2 '*' $ac_mid + 1`
56c15991 16937fi
82eaf560 16938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 16939 done
16940else
16941 echo "$as_me: failed program was:" >&5
16942sed 's/^/| /' conftest.$ac_ext >&5
16943
82eaf560 16944cat >conftest.$ac_ext <<_ACEOF
56c15991 16945/* confdefs.h. */
16946_ACEOF
16947cat confdefs.h >>conftest.$ac_ext
16948cat >>conftest.$ac_ext <<_ACEOF
16949/* end confdefs.h. */
16950$ac_includes_default
16951int
16952main ()
16953{
82eaf560 16954static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
56c15991 16955test_array [0] = 0
16956
16957 ;
16958 return 0;
16959}
16960_ACEOF
16961rm -f conftest.$ac_objext
82eaf560 16962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16963 (eval $ac_compile) 2>conftest.er1
56c15991 16964 ac_status=$?
16965 grep -v '^ *+' conftest.er1 >conftest.err
16966 rm -f conftest.er1
16967 cat conftest.err >&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 16969 (exit $ac_status); } &&
16970 { ac_try='test -z "$ac_c_werror_flag"
16971 || test ! -s conftest.err'
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16974 ac_status=$?
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; } &&
16977 { ac_try='test -s conftest.$ac_objext'
16978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16979 (eval $ac_try) 2>&5
16980 ac_status=$?
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; }; then
56c15991 16983 ac_hi=-1 ac_mid=-1
16984 while :; do
16985 cat >conftest.$ac_ext <<_ACEOF
16986/* confdefs.h. */
16987_ACEOF
16988cat confdefs.h >>conftest.$ac_ext
16989cat >>conftest.$ac_ext <<_ACEOF
16990/* end confdefs.h. */
16991$ac_includes_default
16992int
16993main ()
16994{
82eaf560 16995static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
56c15991 16996test_array [0] = 0
16997
16998 ;
16999 return 0;
17000}
17001_ACEOF
17002rm -f conftest.$ac_objext
82eaf560 17003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17004 (eval $ac_compile) 2>conftest.er1
56c15991 17005 ac_status=$?
17006 grep -v '^ *+' conftest.er1 >conftest.err
17007 rm -f conftest.er1
17008 cat conftest.err >&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 17010 (exit $ac_status); } &&
17011 { ac_try='test -z "$ac_c_werror_flag"
17012 || test ! -s conftest.err'
17013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17014 (eval $ac_try) 2>&5
17015 ac_status=$?
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); }; } &&
17018 { ac_try='test -s conftest.$ac_objext'
17019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020 (eval $ac_try) 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; }; then
56c15991 17024 ac_lo=$ac_mid; break
17025else
17026 echo "$as_me: failed program was:" >&5
17027sed 's/^/| /' conftest.$ac_ext >&5
17028
82eaf560 17029ac_hi=`expr '(' $ac_mid ')' - 1`
17030 if test $ac_mid -le $ac_hi; then
17031 ac_lo= ac_hi=
17032 break
17033 fi
17034 ac_mid=`expr 2 '*' $ac_mid`
56c15991 17035fi
82eaf560 17036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17037 done
17038else
17039 echo "$as_me: failed program was:" >&5
17040sed 's/^/| /' conftest.$ac_ext >&5
17041
82eaf560 17042ac_lo= ac_hi=
56c15991 17043fi
82eaf560 17044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17045fi
82eaf560 17046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17047# Binary search between lo and hi bounds.
17048while test "x$ac_lo" != "x$ac_hi"; do
17049 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17050 cat >conftest.$ac_ext <<_ACEOF
17051/* confdefs.h. */
17052_ACEOF
17053cat confdefs.h >>conftest.$ac_ext
17054cat >>conftest.$ac_ext <<_ACEOF
17055/* end confdefs.h. */
17056$ac_includes_default
17057int
17058main ()
17059{
82eaf560 17060static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
56c15991 17061test_array [0] = 0
17062
17063 ;
17064 return 0;
17065}
17066_ACEOF
17067rm -f conftest.$ac_objext
82eaf560 17068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17069 (eval $ac_compile) 2>conftest.er1
56c15991 17070 ac_status=$?
17071 grep -v '^ *+' conftest.er1 >conftest.err
17072 rm -f conftest.er1
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 17075 (exit $ac_status); } &&
17076 { ac_try='test -z "$ac_c_werror_flag"
17077 || test ! -s conftest.err'
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; } &&
17083 { ac_try='test -s conftest.$ac_objext'
17084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085 (eval $ac_try) 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
56c15991 17089 ac_hi=$ac_mid
17090else
17091 echo "$as_me: failed program was:" >&5
17092sed 's/^/| /' conftest.$ac_ext >&5
17093
82eaf560 17094ac_lo=`expr '(' $ac_mid ')' + 1`
56c15991 17095fi
82eaf560 17096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17097done
17098case $ac_lo in
17099?*) ac_cv_sizeof_long=$ac_lo;;
5b2c7553 17100'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17101echo "$as_me: error: in \`$ac_pwd':" >&2;}
17102{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
56c15991 17103See \`config.log' for more details." >&5
82eaf560 17104echo "$as_me: error: cannot compute sizeof (long), 77
56c15991 17105See \`config.log' for more details." >&2;}
5b2c7553 17106 { (exit 1); exit 1; }; }; } ;;
56c15991 17107esac
82eaf560 17108else
17109 if test "$cross_compiling" = yes; then
5b2c7553 17110 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17111echo "$as_me: error: in \`$ac_pwd':" >&2;}
17112{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
82eaf560 17113See \`config.log' for more details." >&5
17114echo "$as_me: error: cannot run test program while cross compiling
17115See \`config.log' for more details." >&2;}
5b2c7553 17116 { (exit 1); exit 1; }; }; }
56c15991 17117else
17118 cat >conftest.$ac_ext <<_ACEOF
17119/* confdefs.h. */
17120_ACEOF
17121cat confdefs.h >>conftest.$ac_ext
17122cat >>conftest.$ac_ext <<_ACEOF
17123/* end confdefs.h. */
17124$ac_includes_default
82eaf560 17125long longval () { return (long) (sizeof (long)); }
17126unsigned long ulongval () { return (long) (sizeof (long)); }
56c15991 17127#include <stdio.h>
17128#include <stdlib.h>
17129int
17130main ()
17131{
17132
17133 FILE *f = fopen ("conftest.val", "w");
17134 if (! f)
82eaf560 17135 exit (1);
17136 if (((long) (sizeof (long))) < 0)
56c15991 17137 {
82eaf560 17138 long i = longval ();
17139 if (i != ((long) (sizeof (long))))
17140 exit (1);
56c15991 17141 fprintf (f, "%ld\n", i);
17142 }
17143 else
17144 {
82eaf560 17145 unsigned long i = ulongval ();
17146 if (i != ((long) (sizeof (long))))
17147 exit (1);
56c15991 17148 fprintf (f, "%lu\n", i);
17149 }
82eaf560 17150 exit (ferror (f) || fclose (f) != 0);
56c15991 17151
17152 ;
17153 return 0;
17154}
17155_ACEOF
17156rm -f conftest$ac_exeext
82eaf560 17157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17158 (eval $ac_link) 2>&5
56c15991 17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
82eaf560 17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
56c15991 17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17167 ac_cv_sizeof_long=`cat conftest.val`
17168else
17169 echo "$as_me: program exited with status $ac_status" >&5
17170echo "$as_me: failed program was:" >&5
17171sed 's/^/| /' conftest.$ac_ext >&5
17172
17173( exit $ac_status )
5b2c7553 17174{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17175echo "$as_me: error: in \`$ac_pwd':" >&2;}
82eaf560 17176{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
56c15991 17177See \`config.log' for more details." >&5
82eaf560 17178echo "$as_me: error: cannot compute sizeof (long), 77
56c15991 17179See \`config.log' for more details." >&2;}
5b2c7553 17180 { (exit 1); exit 1; }; }; }
82eaf560 17181fi
17182rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56c15991 17183fi
17184fi
17185rm -f conftest.val
82eaf560 17186else
17187 ac_cv_sizeof_long=0
56c15991 17188fi
82eaf560 17189fi
17190echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17191echo "${ECHO_T}$ac_cv_sizeof_long" >&6
56c15991 17192cat >>confdefs.h <<_ACEOF
17193#define SIZEOF_LONG $ac_cv_sizeof_long
17194_ACEOF
17195
17196 ;;
17197esac
17198
17199if test $acx_cv_header_stdint = stddef.h; then
17200 # Lacking a good header? Test size of everything and deduce all types.
82eaf560 17201 echo "$as_me:$LINENO: checking for int" >&5
17202echo $ECHO_N "checking for int... $ECHO_C" >&6
56c15991 17203if test "${ac_cv_type_int+set}" = set; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17205else
17206 cat >conftest.$ac_ext <<_ACEOF
17207/* confdefs.h. */
17208_ACEOF
17209cat confdefs.h >>conftest.$ac_ext
17210cat >>conftest.$ac_ext <<_ACEOF
17211/* end confdefs.h. */
17212$ac_includes_default
17213int
17214main ()
17215{
82eaf560 17216if ((int *) 0)
56c15991 17217 return 0;
82eaf560 17218if (sizeof (int))
56c15991 17219 return 0;
17220 ;
17221 return 0;
17222}
17223_ACEOF
17224rm -f conftest.$ac_objext
82eaf560 17225if { (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
82eaf560 17232 (exit $ac_status); } &&
17233 { ac_try='test -z "$ac_c_werror_flag"
17234 || test ! -s conftest.err'
17235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236 (eval $ac_try) 2>&5
17237 ac_status=$?
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; } &&
17240 { ac_try='test -s conftest.$ac_objext'
17241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242 (eval $ac_try) 2>&5
17243 ac_status=$?
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; }; then
56c15991 17246 ac_cv_type_int=yes
17247else
17248 echo "$as_me: failed program was:" >&5
17249sed 's/^/| /' conftest.$ac_ext >&5
17250
82eaf560 17251ac_cv_type_int=no
56c15991 17252fi
82eaf560 17253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17254fi
82eaf560 17255echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17256echo "${ECHO_T}$ac_cv_type_int" >&6
56c15991 17257
82eaf560 17258echo "$as_me:$LINENO: checking size of int" >&5
17259echo $ECHO_N "checking size of int... $ECHO_C" >&6
56c15991 17260if test "${ac_cv_sizeof_int+set}" = set; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17262else
82eaf560 17263 if test "$ac_cv_type_int" = yes; then
17264 # The cast to unsigned long works around a bug in the HP C Compiler
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.
56c15991 17268 if test "$cross_compiling" = yes; then
17269 # Depending upon the size, compute the lo and hi bounds.
17270cat >conftest.$ac_ext <<_ACEOF
17271/* confdefs.h. */
17272_ACEOF
17273cat confdefs.h >>conftest.$ac_ext
17274cat >>conftest.$ac_ext <<_ACEOF
17275/* end confdefs.h. */
17276$ac_includes_default
17277int
17278main ()
17279{
82eaf560 17280static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
56c15991 17281test_array [0] = 0
17282
17283 ;
17284 return 0;
17285}
17286_ACEOF
17287rm -f conftest.$ac_objext
82eaf560 17288if { (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
82eaf560 17295 (exit $ac_status); } &&
17296 { ac_try='test -z "$ac_c_werror_flag"
17297 || test ! -s conftest.err'
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; } &&
17303 { ac_try='test -s conftest.$ac_objext'
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
56c15991 17309 ac_lo=0 ac_mid=0
17310 while :; do
17311 cat >conftest.$ac_ext <<_ACEOF
17312/* confdefs.h. */
17313_ACEOF
17314cat confdefs.h >>conftest.$ac_ext
17315cat >>conftest.$ac_ext <<_ACEOF
17316/* end confdefs.h. */
17317$ac_includes_default
17318int
17319main ()
17320{
82eaf560 17321static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
56c15991 17322test_array [0] = 0
17323
17324 ;
17325 return 0;
17326}
17327_ACEOF
17328rm -f conftest.$ac_objext
82eaf560 17329if { (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
82eaf560 17336 (exit $ac_status); } &&
17337 { ac_try='test -z "$ac_c_werror_flag"
17338 || test ! -s conftest.err'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17341 ac_status=$?
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; } &&
17344 { ac_try='test -s conftest.$ac_objext'
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17347 ac_status=$?
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
56c15991 17350 ac_hi=$ac_mid; break
17351else
17352 echo "$as_me: failed program was:" >&5
17353sed 's/^/| /' conftest.$ac_ext >&5
17354
82eaf560 17355ac_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 17361fi
82eaf560 17362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17363 done
17364else
17365 echo "$as_me: failed program was:" >&5
17366sed 's/^/| /' conftest.$ac_ext >&5
17367
82eaf560 17368cat >conftest.$ac_ext <<_ACEOF
56c15991 17369/* confdefs.h. */
17370_ACEOF
17371cat confdefs.h >>conftest.$ac_ext
17372cat >>conftest.$ac_ext <<_ACEOF
17373/* end confdefs.h. */
17374$ac_includes_default
17375int
17376main ()
17377{
82eaf560 17378static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
56c15991 17379test_array [0] = 0
17380
17381 ;
17382 return 0;
17383}
17384_ACEOF
17385rm -f conftest.$ac_objext
82eaf560 17386if { (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
ff4425cf 17390 rm -f conftest.er1
17391 cat conftest.err >&5
56c15991 17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 17393 (exit $ac_status); } &&
17394 { ac_try='test -z "$ac_c_werror_flag"
17395 || test ! -s conftest.err'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try='test -s conftest.$ac_objext'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
56c15991 17407 ac_hi=-1 ac_mid=-1
17408 while :; do
17409 cat >conftest.$ac_ext <<_ACEOF
17410/* confdefs.h. */
17411_ACEOF
17412cat confdefs.h >>conftest.$ac_ext
17413cat >>conftest.$ac_ext <<_ACEOF
17414/* end confdefs.h. */
17415$ac_includes_default
17416int
17417main ()
17418{
82eaf560 17419static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
56c15991 17420test_array [0] = 0
17421
17422 ;
17423 return 0;
17424}
17425_ACEOF
17426rm -f conftest.$ac_objext
82eaf560 17427if { (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
82eaf560 17434 (exit $ac_status); } &&
17435 { ac_try='test -z "$ac_c_werror_flag"
17436 || test ! -s conftest.err'
17437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438 (eval $ac_try) 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest.$ac_objext'
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17445 ac_status=$?
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; }; then
56c15991 17448 ac_lo=$ac_mid; break
17449else
17450 echo "$as_me: failed program was:" >&5
17451sed 's/^/| /' conftest.$ac_ext >&5
17452
82eaf560 17453ac_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 17459fi
82eaf560 17460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17461 done
17462else
17463 echo "$as_me: failed program was:" >&5
17464sed 's/^/| /' conftest.$ac_ext >&5
17465
82eaf560 17466ac_lo= ac_hi=
56c15991 17467fi
82eaf560 17468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17469fi
82eaf560 17470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17471# Binary search between lo and hi bounds.
17472while 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
17477cat confdefs.h >>conftest.$ac_ext
17478cat >>conftest.$ac_ext <<_ACEOF
17479/* end confdefs.h. */
17480$ac_includes_default
17481int
17482main ()
17483{
82eaf560 17484static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
56c15991 17485test_array [0] = 0
17486
17487 ;
17488 return 0;
17489}
17490_ACEOF
17491rm -f conftest.$ac_objext
82eaf560 17492if { (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
82eaf560 17499 (exit $ac_status); } &&
17500 { ac_try='test -z "$ac_c_werror_flag"
17501 || test ! -s conftest.err'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest.$ac_objext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
56c15991 17513 ac_hi=$ac_mid
17514else
17515 echo "$as_me: failed program was:" >&5
17516sed 's/^/| /' conftest.$ac_ext >&5
17517
82eaf560 17518ac_lo=`expr '(' $ac_mid ')' + 1`
56c15991 17519fi
82eaf560 17520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17521done
17522case $ac_lo in
17523?*) ac_cv_sizeof_int=$ac_lo;;
5b2c7553 17524'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17525echo "$as_me: error: in \`$ac_pwd':" >&2;}
17526{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
56c15991 17527See \`config.log' for more details." >&5
82eaf560 17528echo "$as_me: error: cannot compute sizeof (int), 77
56c15991 17529See \`config.log' for more details." >&2;}
5b2c7553 17530 { (exit 1); exit 1; }; }; } ;;
56c15991 17531esac
82eaf560 17532else
17533 if test "$cross_compiling" = yes; then
5b2c7553 17534 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17535echo "$as_me: error: in \`$ac_pwd':" >&2;}
17536{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
82eaf560 17537See \`config.log' for more details." >&5
17538echo "$as_me: error: cannot run test program while cross compiling
17539See \`config.log' for more details." >&2;}
5b2c7553 17540 { (exit 1); exit 1; }; }; }
56c15991 17541else
17542 cat >conftest.$ac_ext <<_ACEOF
17543/* confdefs.h. */
17544_ACEOF
17545cat confdefs.h >>conftest.$ac_ext
17546cat >>conftest.$ac_ext <<_ACEOF
17547/* end confdefs.h. */
17548$ac_includes_default
82eaf560 17549long longval () { return (long) (sizeof (int)); }
17550unsigned long ulongval () { return (long) (sizeof (int)); }
56c15991 17551#include <stdio.h>
17552#include <stdlib.h>
17553int
17554main ()
17555{
17556
17557 FILE *f = fopen ("conftest.val", "w");
17558 if (! f)
82eaf560 17559 exit (1);
17560 if (((long) (sizeof (int))) < 0)
56c15991 17561 {
82eaf560 17562 long i = longval ();
17563 if (i != ((long) (sizeof (int))))
17564 exit (1);
56c15991 17565 fprintf (f, "%ld\n", i);
17566 }
17567 else
17568 {
82eaf560 17569 unsigned long i = ulongval ();
17570 if (i != ((long) (sizeof (int))))
17571 exit (1);
56c15991 17572 fprintf (f, "%lu\n", i);
17573 }
82eaf560 17574 exit (ferror (f) || fclose (f) != 0);
56c15991 17575
17576 ;
17577 return 0;
17578}
17579_ACEOF
17580rm -f conftest$ac_exeext
82eaf560 17581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17582 (eval $ac_link) 2>&5
56c15991 17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
82eaf560 17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
56c15991 17588 ac_status=$?
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
17591 ac_cv_sizeof_int=`cat conftest.val`
17592else
17593 echo "$as_me: program exited with status $ac_status" >&5
17594echo "$as_me: failed program was:" >&5
17595sed 's/^/| /' conftest.$ac_ext >&5
17596
17597( exit $ac_status )
5b2c7553 17598{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17599echo "$as_me: error: in \`$ac_pwd':" >&2;}
82eaf560 17600{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
56c15991 17601See \`config.log' for more details." >&5
82eaf560 17602echo "$as_me: error: cannot compute sizeof (int), 77
56c15991 17603See \`config.log' for more details." >&2;}
5b2c7553 17604 { (exit 1); exit 1; }; }; }
82eaf560 17605fi
17606rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56c15991 17607fi
17608fi
17609rm -f conftest.val
82eaf560 17610else
17611 ac_cv_sizeof_int=0
56c15991 17612fi
82eaf560 17613fi
17614echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17615echo "${ECHO_T}$ac_cv_sizeof_int" >&6
56c15991 17616cat >>confdefs.h <<_ACEOF
17617#define SIZEOF_INT $ac_cv_sizeof_int
17618_ACEOF
17619
17620
82eaf560 17621 echo "$as_me:$LINENO: checking for short" >&5
17622echo $ECHO_N "checking for short... $ECHO_C" >&6
56c15991 17623if test "${ac_cv_type_short+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17625else
17626 cat >conftest.$ac_ext <<_ACEOF
17627/* confdefs.h. */
17628_ACEOF
17629cat confdefs.h >>conftest.$ac_ext
17630cat >>conftest.$ac_ext <<_ACEOF
17631/* end confdefs.h. */
17632$ac_includes_default
17633int
17634main ()
17635{
82eaf560 17636if ((short *) 0)
56c15991 17637 return 0;
82eaf560 17638if (sizeof (short))
56c15991 17639 return 0;
17640 ;
17641 return 0;
17642}
17643_ACEOF
17644rm -f conftest.$ac_objext
82eaf560 17645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17646 (eval $ac_compile) 2>conftest.er1
56c15991 17647 ac_status=$?
17648 grep -v '^ *+' conftest.er1 >conftest.err
17649 rm -f conftest.er1
17650 cat conftest.err >&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 17652 (exit $ac_status); } &&
17653 { ac_try='test -z "$ac_c_werror_flag"
17654 || test ! -s conftest.err'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17657 ac_status=$?
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; } &&
17660 { ac_try='test -s conftest.$ac_objext'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
56c15991 17666 ac_cv_type_short=yes
17667else
17668 echo "$as_me: failed program was:" >&5
17669sed 's/^/| /' conftest.$ac_ext >&5
17670
82eaf560 17671ac_cv_type_short=no
56c15991 17672fi
82eaf560 17673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17674fi
82eaf560 17675echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17676echo "${ECHO_T}$ac_cv_type_short" >&6
56c15991 17677
82eaf560 17678echo "$as_me:$LINENO: checking size of short" >&5
17679echo $ECHO_N "checking size of short... $ECHO_C" >&6
56c15991 17680if test "${ac_cv_sizeof_short+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682else
82eaf560 17683 if test "$ac_cv_type_short" = yes; then
17684 # The cast to unsigned long works around a bug in the HP C Compiler
17685 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17686 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17687 # This bug is HP SR number 8606223364.
56c15991 17688 if test "$cross_compiling" = yes; then
17689 # Depending upon the size, compute the lo and hi bounds.
17690cat >conftest.$ac_ext <<_ACEOF
17691/* confdefs.h. */
17692_ACEOF
17693cat confdefs.h >>conftest.$ac_ext
17694cat >>conftest.$ac_ext <<_ACEOF
17695/* end confdefs.h. */
17696$ac_includes_default
17697int
17698main ()
17699{
82eaf560 17700static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
56c15991 17701test_array [0] = 0
17702
17703 ;
17704 return 0;
17705}
17706_ACEOF
17707rm -f conftest.$ac_objext
82eaf560 17708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17709 (eval $ac_compile) 2>conftest.er1
56c15991 17710 ac_status=$?
17711 grep -v '^ *+' conftest.er1 >conftest.err
17712 rm -f conftest.er1
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 17715 (exit $ac_status); } &&
17716 { ac_try='test -z "$ac_c_werror_flag"
17717 || test ! -s conftest.err'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17720 ac_status=$?
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; } &&
17723 { ac_try='test -s conftest.$ac_objext'
17724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725 (eval $ac_try) 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; }; then
56c15991 17729 ac_lo=0 ac_mid=0
17730 while :; do
17731 cat >conftest.$ac_ext <<_ACEOF
17732/* confdefs.h. */
17733_ACEOF
17734cat confdefs.h >>conftest.$ac_ext
17735cat >>conftest.$ac_ext <<_ACEOF
17736/* end confdefs.h. */
17737$ac_includes_default
17738int
17739main ()
17740{
82eaf560 17741static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
56c15991 17742test_array [0] = 0
17743
17744 ;
17745 return 0;
17746}
17747_ACEOF
17748rm -f conftest.$ac_objext
82eaf560 17749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17750 (eval $ac_compile) 2>conftest.er1
56c15991 17751 ac_status=$?
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_c_werror_flag"
17758 || test ! -s conftest.err'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } &&
17764 { ac_try='test -s conftest.$ac_objext'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
56c15991 17770 ac_hi=$ac_mid; break
17771else
17772 echo "$as_me: failed program was:" >&5
17773sed 's/^/| /' conftest.$ac_ext >&5
17774
82eaf560 17775ac_lo=`expr $ac_mid + 1`
17776 if test $ac_lo -le $ac_mid; then
17777 ac_lo= ac_hi=
17778 break
17779 fi
17780 ac_mid=`expr 2 '*' $ac_mid + 1`
56c15991 17781fi
82eaf560 17782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17783 done
17784else
17785 echo "$as_me: failed program was:" >&5
17786sed 's/^/| /' conftest.$ac_ext >&5
17787
82eaf560 17788cat >conftest.$ac_ext <<_ACEOF
56c15991 17789/* confdefs.h. */
17790_ACEOF
17791cat confdefs.h >>conftest.$ac_ext
17792cat >>conftest.$ac_ext <<_ACEOF
17793/* end confdefs.h. */
17794$ac_includes_default
17795int
17796main ()
17797{
82eaf560 17798static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
56c15991 17799test_array [0] = 0
17800
17801 ;
17802 return 0;
17803}
17804_ACEOF
17805rm -f conftest.$ac_objext
82eaf560 17806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17807 (eval $ac_compile) 2>conftest.er1
56c15991 17808 ac_status=$?
17809 grep -v '^ *+' conftest.er1 >conftest.err
17810 rm -f conftest.er1
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 17813 (exit $ac_status); } &&
17814 { ac_try='test -z "$ac_c_werror_flag"
17815 || test ! -s conftest.err'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest.$ac_objext'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17824 ac_status=$?
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
56c15991 17827 ac_hi=-1 ac_mid=-1
17828 while :; do
17829 cat >conftest.$ac_ext <<_ACEOF
17830/* confdefs.h. */
17831_ACEOF
17832cat confdefs.h >>conftest.$ac_ext
17833cat >>conftest.$ac_ext <<_ACEOF
17834/* end confdefs.h. */
17835$ac_includes_default
17836int
17837main ()
17838{
82eaf560 17839static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
56c15991 17840test_array [0] = 0
17841
17842 ;
17843 return 0;
17844}
17845_ACEOF
17846rm -f conftest.$ac_objext
82eaf560 17847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17848 (eval $ac_compile) 2>conftest.er1
56c15991 17849 ac_status=$?
17850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 17854 (exit $ac_status); } &&
17855 { ac_try='test -z "$ac_c_werror_flag"
17856 || test ! -s conftest.err'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try='test -s conftest.$ac_objext'
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
56c15991 17868 ac_lo=$ac_mid; break
17869else
17870 echo "$as_me: failed program was:" >&5
17871sed 's/^/| /' conftest.$ac_ext >&5
17872
82eaf560 17873ac_hi=`expr '(' $ac_mid ')' - 1`
17874 if test $ac_mid -le $ac_hi; then
17875 ac_lo= ac_hi=
17876 break
17877 fi
17878 ac_mid=`expr 2 '*' $ac_mid`
56c15991 17879fi
82eaf560 17880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17881 done
17882else
17883 echo "$as_me: failed program was:" >&5
17884sed 's/^/| /' conftest.$ac_ext >&5
17885
82eaf560 17886ac_lo= ac_hi=
56c15991 17887fi
82eaf560 17888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17889fi
82eaf560 17890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17891# Binary search between lo and hi bounds.
17892while test "x$ac_lo" != "x$ac_hi"; do
17893 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17894 cat >conftest.$ac_ext <<_ACEOF
17895/* confdefs.h. */
17896_ACEOF
17897cat confdefs.h >>conftest.$ac_ext
17898cat >>conftest.$ac_ext <<_ACEOF
17899/* end confdefs.h. */
17900$ac_includes_default
17901int
17902main ()
17903{
82eaf560 17904static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
56c15991 17905test_array [0] = 0
17906
17907 ;
17908 return 0;
17909}
17910_ACEOF
17911rm -f conftest.$ac_objext
82eaf560 17912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17913 (eval $ac_compile) 2>conftest.er1
56c15991 17914 ac_status=$?
17915 grep -v '^ *+' conftest.er1 >conftest.err
17916 rm -f conftest.er1
17917 cat conftest.err >&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 17919 (exit $ac_status); } &&
17920 { ac_try='test -z "$ac_c_werror_flag"
17921 || test ! -s conftest.err'
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923 (eval $ac_try) 2>&5
17924 ac_status=$?
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; } &&
17927 { ac_try='test -s conftest.$ac_objext'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; }; then
56c15991 17933 ac_hi=$ac_mid
17934else
17935 echo "$as_me: failed program was:" >&5
17936sed 's/^/| /' conftest.$ac_ext >&5
17937
82eaf560 17938ac_lo=`expr '(' $ac_mid ')' + 1`
56c15991 17939fi
82eaf560 17940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 17941done
17942case $ac_lo in
17943?*) ac_cv_sizeof_short=$ac_lo;;
5b2c7553 17944'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17945echo "$as_me: error: in \`$ac_pwd':" >&2;}
17946{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
56c15991 17947See \`config.log' for more details." >&5
82eaf560 17948echo "$as_me: error: cannot compute sizeof (short), 77
56c15991 17949See \`config.log' for more details." >&2;}
5b2c7553 17950 { (exit 1); exit 1; }; }; } ;;
56c15991 17951esac
82eaf560 17952else
17953 if test "$cross_compiling" = yes; then
5b2c7553 17954 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17955echo "$as_me: error: in \`$ac_pwd':" >&2;}
17956{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
82eaf560 17957See \`config.log' for more details." >&5
17958echo "$as_me: error: cannot run test program while cross compiling
17959See \`config.log' for more details." >&2;}
5b2c7553 17960 { (exit 1); exit 1; }; }; }
56c15991 17961else
17962 cat >conftest.$ac_ext <<_ACEOF
17963/* confdefs.h. */
17964_ACEOF
17965cat confdefs.h >>conftest.$ac_ext
17966cat >>conftest.$ac_ext <<_ACEOF
17967/* end confdefs.h. */
17968$ac_includes_default
82eaf560 17969long longval () { return (long) (sizeof (short)); }
17970unsigned long ulongval () { return (long) (sizeof (short)); }
56c15991 17971#include <stdio.h>
17972#include <stdlib.h>
17973int
17974main ()
17975{
17976
17977 FILE *f = fopen ("conftest.val", "w");
17978 if (! f)
82eaf560 17979 exit (1);
17980 if (((long) (sizeof (short))) < 0)
56c15991 17981 {
82eaf560 17982 long i = longval ();
17983 if (i != ((long) (sizeof (short))))
17984 exit (1);
56c15991 17985 fprintf (f, "%ld\n", i);
17986 }
17987 else
17988 {
82eaf560 17989 unsigned long i = ulongval ();
17990 if (i != ((long) (sizeof (short))))
17991 exit (1);
56c15991 17992 fprintf (f, "%lu\n", i);
17993 }
82eaf560 17994 exit (ferror (f) || fclose (f) != 0);
56c15991 17995
17996 ;
17997 return 0;
17998}
17999_ACEOF
18000rm -f conftest$ac_exeext
82eaf560 18001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18002 (eval $ac_link) 2>&5
56c15991 18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
82eaf560 18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
56c15991 18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 ac_cv_sizeof_short=`cat conftest.val`
18012else
18013 echo "$as_me: program exited with status $ac_status" >&5
18014echo "$as_me: failed program was:" >&5
18015sed 's/^/| /' conftest.$ac_ext >&5
18016
18017( exit $ac_status )
5b2c7553 18018{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18019echo "$as_me: error: in \`$ac_pwd':" >&2;}
82eaf560 18020{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
56c15991 18021See \`config.log' for more details." >&5
82eaf560 18022echo "$as_me: error: cannot compute sizeof (short), 77
56c15991 18023See \`config.log' for more details." >&2;}
5b2c7553 18024 { (exit 1); exit 1; }; }; }
82eaf560 18025fi
18026rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56c15991 18027fi
18028fi
18029rm -f conftest.val
82eaf560 18030else
18031 ac_cv_sizeof_short=0
56c15991 18032fi
82eaf560 18033fi
18034echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18035echo "${ECHO_T}$ac_cv_sizeof_short" >&6
56c15991 18036cat >>confdefs.h <<_ACEOF
18037#define SIZEOF_SHORT $ac_cv_sizeof_short
18038_ACEOF
18039
18040
82eaf560 18041 echo "$as_me:$LINENO: checking for char" >&5
18042echo $ECHO_N "checking for char... $ECHO_C" >&6
56c15991 18043if test "${ac_cv_type_char+set}" = set; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18045else
18046 cat >conftest.$ac_ext <<_ACEOF
18047/* confdefs.h. */
18048_ACEOF
18049cat confdefs.h >>conftest.$ac_ext
18050cat >>conftest.$ac_ext <<_ACEOF
18051/* end confdefs.h. */
18052$ac_includes_default
18053int
18054main ()
18055{
82eaf560 18056if ((char *) 0)
56c15991 18057 return 0;
82eaf560 18058if (sizeof (char))
56c15991 18059 return 0;
18060 ;
18061 return 0;
18062}
18063_ACEOF
18064rm -f conftest.$ac_objext
82eaf560 18065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18066 (eval $ac_compile) 2>conftest.er1
56c15991 18067 ac_status=$?
18068 grep -v '^ *+' conftest.er1 >conftest.err
18069 rm -f conftest.er1
18070 cat conftest.err >&5
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 18072 (exit $ac_status); } &&
18073 { ac_try='test -z "$ac_c_werror_flag"
18074 || test ! -s conftest.err'
18075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076 (eval $ac_try) 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; } &&
18080 { ac_try='test -s conftest.$ac_objext'
18081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082 (eval $ac_try) 2>&5
18083 ac_status=$?
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; }; then
56c15991 18086 ac_cv_type_char=yes
18087else
18088 echo "$as_me: failed program was:" >&5
18089sed 's/^/| /' conftest.$ac_ext >&5
18090
82eaf560 18091ac_cv_type_char=no
56c15991 18092fi
82eaf560 18093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 18094fi
82eaf560 18095echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18096echo "${ECHO_T}$ac_cv_type_char" >&6
56c15991 18097
82eaf560 18098echo "$as_me:$LINENO: checking size of char" >&5
18099echo $ECHO_N "checking size of char... $ECHO_C" >&6
56c15991 18100if test "${ac_cv_sizeof_char+set}" = set; then
18101 echo $ECHO_N "(cached) $ECHO_C" >&6
18102else
82eaf560 18103 if test "$ac_cv_type_char" = yes; then
18104 # The cast to unsigned long works around a bug in the HP C Compiler
18105 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18106 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18107 # This bug is HP SR number 8606223364.
56c15991 18108 if test "$cross_compiling" = yes; then
18109 # Depending upon the size, compute the lo and hi bounds.
18110cat >conftest.$ac_ext <<_ACEOF
18111/* confdefs.h. */
18112_ACEOF
18113cat confdefs.h >>conftest.$ac_ext
18114cat >>conftest.$ac_ext <<_ACEOF
18115/* end confdefs.h. */
18116$ac_includes_default
18117int
18118main ()
18119{
82eaf560 18120static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
56c15991 18121test_array [0] = 0
18122
18123 ;
18124 return 0;
18125}
18126_ACEOF
18127rm -f conftest.$ac_objext
82eaf560 18128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18129 (eval $ac_compile) 2>conftest.er1
56c15991 18130 ac_status=$?
18131 grep -v '^ *+' conftest.er1 >conftest.err
18132 rm -f conftest.er1
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 18135 (exit $ac_status); } &&
18136 { ac_try='test -z "$ac_c_werror_flag"
18137 || test ! -s conftest.err'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18140 ac_status=$?
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; } &&
18143 { ac_try='test -s conftest.$ac_objext'
18144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18145 (eval $ac_try) 2>&5
18146 ac_status=$?
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; }; then
56c15991 18149 ac_lo=0 ac_mid=0
18150 while :; do
18151 cat >conftest.$ac_ext <<_ACEOF
18152/* confdefs.h. */
18153_ACEOF
18154cat confdefs.h >>conftest.$ac_ext
18155cat >>conftest.$ac_ext <<_ACEOF
18156/* end confdefs.h. */
18157$ac_includes_default
18158int
18159main ()
18160{
82eaf560 18161static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
56c15991 18162test_array [0] = 0
18163
18164 ;
18165 return 0;
18166}
18167_ACEOF
18168rm -f conftest.$ac_objext
82eaf560 18169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18170 (eval $ac_compile) 2>conftest.er1
56c15991 18171 ac_status=$?
18172 grep -v '^ *+' conftest.er1 >conftest.err
18173 rm -f conftest.er1
18174 cat conftest.err >&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 18176 (exit $ac_status); } &&
18177 { ac_try='test -z "$ac_c_werror_flag"
18178 || test ! -s conftest.err'
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; } &&
18184 { ac_try='test -s conftest.$ac_objext'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
56c15991 18190 ac_hi=$ac_mid; break
18191else
18192 echo "$as_me: failed program was:" >&5
18193sed 's/^/| /' conftest.$ac_ext >&5
18194
82eaf560 18195ac_lo=`expr $ac_mid + 1`
18196 if test $ac_lo -le $ac_mid; then
18197 ac_lo= ac_hi=
18198 break
18199 fi
18200 ac_mid=`expr 2 '*' $ac_mid + 1`
56c15991 18201fi
82eaf560 18202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 18203 done
18204else
18205 echo "$as_me: failed program was:" >&5
18206sed 's/^/| /' conftest.$ac_ext >&5
18207
82eaf560 18208cat >conftest.$ac_ext <<_ACEOF
56c15991 18209/* confdefs.h. */
18210_ACEOF
18211cat confdefs.h >>conftest.$ac_ext
18212cat >>conftest.$ac_ext <<_ACEOF
18213/* end confdefs.h. */
18214$ac_includes_default
18215int
18216main ()
18217{
82eaf560 18218static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
56c15991 18219test_array [0] = 0
18220
18221 ;
18222 return 0;
18223}
18224_ACEOF
18225rm -f conftest.$ac_objext
82eaf560 18226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18227 (eval $ac_compile) 2>conftest.er1
56c15991 18228 ac_status=$?
18229 grep -v '^ *+' conftest.er1 >conftest.err
18230 rm -f conftest.er1
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 18233 (exit $ac_status); } &&
18234 { ac_try='test -z "$ac_c_werror_flag"
18235 || test ! -s conftest.err'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest.$ac_objext'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18244 ac_status=$?
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
56c15991 18247 ac_hi=-1 ac_mid=-1
18248 while :; do
18249 cat >conftest.$ac_ext <<_ACEOF
18250/* confdefs.h. */
18251_ACEOF
18252cat confdefs.h >>conftest.$ac_ext
18253cat >>conftest.$ac_ext <<_ACEOF
18254/* end confdefs.h. */
18255$ac_includes_default
18256int
18257main ()
18258{
82eaf560 18259static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
56c15991 18260test_array [0] = 0
18261
18262 ;
18263 return 0;
18264}
18265_ACEOF
18266rm -f conftest.$ac_objext
82eaf560 18267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18268 (eval $ac_compile) 2>conftest.er1
56c15991 18269 ac_status=$?
18270 grep -v '^ *+' conftest.er1 >conftest.err
18271 rm -f conftest.er1
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 18274 (exit $ac_status); } &&
18275 { ac_try='test -z "$ac_c_werror_flag"
18276 || test ! -s conftest.err'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; } &&
18282 { ac_try='test -s conftest.$ac_objext'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; }; then
56c15991 18288 ac_lo=$ac_mid; break
18289else
18290 echo "$as_me: failed program was:" >&5
18291sed 's/^/| /' conftest.$ac_ext >&5
18292
82eaf560 18293ac_hi=`expr '(' $ac_mid ')' - 1`
18294 if test $ac_mid -le $ac_hi; then
18295 ac_lo= ac_hi=
18296 break
18297 fi
18298 ac_mid=`expr 2 '*' $ac_mid`
56c15991 18299fi
82eaf560 18300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 18301 done
18302else
18303 echo "$as_me: failed program was:" >&5
18304sed 's/^/| /' conftest.$ac_ext >&5
18305
82eaf560 18306ac_lo= ac_hi=
56c15991 18307fi
82eaf560 18308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 18309fi
82eaf560 18310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 18311# Binary search between lo and hi bounds.
18312while test "x$ac_lo" != "x$ac_hi"; do
18313 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18314 cat >conftest.$ac_ext <<_ACEOF
18315/* confdefs.h. */
18316_ACEOF
18317cat confdefs.h >>conftest.$ac_ext
18318cat >>conftest.$ac_ext <<_ACEOF
18319/* end confdefs.h. */
18320$ac_includes_default
18321int
18322main ()
18323{
82eaf560 18324static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
56c15991 18325test_array [0] = 0
18326
18327 ;
18328 return 0;
18329}
18330_ACEOF
18331rm -f conftest.$ac_objext
82eaf560 18332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18333 (eval $ac_compile) 2>conftest.er1
56c15991 18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 18339 (exit $ac_status); } &&
18340 { ac_try='test -z "$ac_c_werror_flag"
18341 || test ! -s conftest.err'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest.$ac_objext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
56c15991 18353 ac_hi=$ac_mid
18354else
18355 echo "$as_me: failed program was:" >&5
18356sed 's/^/| /' conftest.$ac_ext >&5
18357
82eaf560 18358ac_lo=`expr '(' $ac_mid ')' + 1`
56c15991 18359fi
82eaf560 18360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56c15991 18361done
18362case $ac_lo in
18363?*) ac_cv_sizeof_char=$ac_lo;;
5b2c7553 18364'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18365echo "$as_me: error: in \`$ac_pwd':" >&2;}
18366{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
56c15991 18367See \`config.log' for more details." >&5
82eaf560 18368echo "$as_me: error: cannot compute sizeof (char), 77
56c15991 18369See \`config.log' for more details." >&2;}
5b2c7553 18370 { (exit 1); exit 1; }; }; } ;;
56c15991 18371esac
82eaf560 18372else
18373 if test "$cross_compiling" = yes; then
5b2c7553 18374 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18375echo "$as_me: error: in \`$ac_pwd':" >&2;}
18376{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
82eaf560 18377See \`config.log' for more details." >&5
18378echo "$as_me: error: cannot run test program while cross compiling
18379See \`config.log' for more details." >&2;}
5b2c7553 18380 { (exit 1); exit 1; }; }; }
56c15991 18381else
18382 cat >conftest.$ac_ext <<_ACEOF
18383/* confdefs.h. */
18384_ACEOF
18385cat confdefs.h >>conftest.$ac_ext
18386cat >>conftest.$ac_ext <<_ACEOF
18387/* end confdefs.h. */
18388$ac_includes_default
82eaf560 18389long longval () { return (long) (sizeof (char)); }
18390unsigned long ulongval () { return (long) (sizeof (char)); }
56c15991 18391#include <stdio.h>
18392#include <stdlib.h>
18393int
18394main ()
18395{
18396
18397 FILE *f = fopen ("conftest.val", "w");
18398 if (! f)
82eaf560 18399 exit (1);
18400 if (((long) (sizeof (char))) < 0)
56c15991 18401 {
82eaf560 18402 long i = longval ();
18403 if (i != ((long) (sizeof (char))))
18404 exit (1);
56c15991 18405 fprintf (f, "%ld\n", i);
18406 }
18407 else
18408 {
82eaf560 18409 unsigned long i = ulongval ();
18410 if (i != ((long) (sizeof (char))))
18411 exit (1);
56c15991 18412 fprintf (f, "%lu\n", i);
18413 }
82eaf560 18414 exit (ferror (f) || fclose (f) != 0);
56c15991 18415
18416 ;
18417 return 0;
18418}
18419_ACEOF
18420rm -f conftest$ac_exeext
82eaf560 18421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18422 (eval $ac_link) 2>&5
56c15991 18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
82eaf560 18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
56c15991 18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; }; then
18431 ac_cv_sizeof_char=`cat conftest.val`
18432else
18433 echo "$as_me: program exited with status $ac_status" >&5
18434echo "$as_me: failed program was:" >&5
18435sed 's/^/| /' conftest.$ac_ext >&5
18436
18437( exit $ac_status )
5b2c7553 18438{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18439echo "$as_me: error: in \`$ac_pwd':" >&2;}
82eaf560 18440{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
56c15991 18441See \`config.log' for more details." >&5
82eaf560 18442echo "$as_me: error: cannot compute sizeof (char), 77
56c15991 18443See \`config.log' for more details." >&2;}
5b2c7553 18444 { (exit 1); exit 1; }; }; }
82eaf560 18445fi
18446rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56c15991 18447fi
18448fi
18449rm -f conftest.val
82eaf560 18450else
18451 ac_cv_sizeof_char=0
56c15991 18452fi
82eaf560 18453fi
18454echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18455echo "${ECHO_T}$ac_cv_sizeof_char" >&6
56c15991 18456cat >>confdefs.h <<_ACEOF
18457#define SIZEOF_CHAR $ac_cv_sizeof_char
18458_ACEOF
18459
18460
18461
82eaf560 18462 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
18463echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
56c15991 18464 case "$ac_cv_sizeof_char" in
18465 1) acx_cv_type_int8_t=char ;;
18466 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
18467echo "$as_me: error: no 8-bit type" >&2;}
18468 { (exit please report a bug); exit please report a bug; }; }
18469 esac
82eaf560 18470 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
18471echo "${ECHO_T}$acx_cv_type_int8_t" >&6
56c15991 18472
82eaf560 18473 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
18474echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
56c15991 18475 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
18476 2:*) acx_cv_type_int16_t=int ;;
18477 *:2) acx_cv_type_int16_t=short ;;
18478 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
18479echo "$as_me: error: no 16-bit type" >&2;}
18480 { (exit please report a bug); exit please report a bug; }; }
18481 esac
82eaf560 18482 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
18483echo "${ECHO_T}$acx_cv_type_int16_t" >&6
56c15991 18484
82eaf560 18485 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
18486echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
56c15991 18487 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
18488 4:*) acx_cv_type_int32_t=int ;;
18489 *:4) acx_cv_type_int32_t=long ;;
18490 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
18491echo "$as_me: error: no 32-bit type" >&2;}
18492 { (exit please report a bug); exit please report a bug; }; }
18493 esac
82eaf560 18494 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
18495echo "${ECHO_T}$acx_cv_type_int32_t" >&6
56c15991 18496fi
18497
18498# These tests are here to make the output prettier
18499
18500if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
18501 case "$ac_cv_sizeof_long" in
18502 8) acx_cv_type_int64_t=long ;;
18503 esac
82eaf560 18504 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
18505echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
18506 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
18507echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
56c15991 18508fi
18509
18510# Now we can use the above types
18511
18512if test "$ac_cv_type_uintptr_t" != yes; then
82eaf560 18513 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
18514echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
56c15991 18515 case $ac_cv_sizeof_void_p in
18516 2) acx_cv_type_intptr_t=int16_t ;;
18517 4) acx_cv_type_intptr_t=int32_t ;;
18518 8) acx_cv_type_intptr_t=int64_t ;;
18519 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
18520echo "$as_me: error: no equivalent for intptr_t" >&2;}
18521 { (exit please report a bug); exit please report a bug; }; }
18522 esac
82eaf560 18523 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
18524echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
56c15991 18525fi
18526
18527# ----------------- done all checks, emit header -------------
82eaf560 18528 ac_config_commands="$ac_config_commands gstdint.h"
56c15991 18529
18530
18531
18532
82eaf560 18533echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
18534echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
771c1b50 18535if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18537else
18538 cat >conftest.$ac_ext <<_ACEOF
18539/* confdefs.h. */
18540_ACEOF
18541cat confdefs.h >>conftest.$ac_ext
18542cat >>conftest.$ac_ext <<_ACEOF
18543/* end confdefs.h. */
18544$ac_includes_default
18545int
18546main ()
18547{
18548static struct stat ac_aggr;
18549if (ac_aggr.st_blksize)
18550return 0;
18551 ;
18552 return 0;
18553}
18554_ACEOF
18555rm -f conftest.$ac_objext
82eaf560 18556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18557 (eval $ac_compile) 2>conftest.er1
771c1b50 18558 ac_status=$?
18559 grep -v '^ *+' conftest.er1 >conftest.err
18560 rm -f conftest.er1
18561 cat conftest.err >&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 18563 (exit $ac_status); } &&
18564 { ac_try='test -z "$ac_c_werror_flag"
18565 || test ! -s conftest.err'
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; } &&
18571 { ac_try='test -s conftest.$ac_objext'
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; }; then
771c1b50 18577 ac_cv_member_struct_stat_st_blksize=yes
18578else
18579 echo "$as_me: failed program was:" >&5
18580sed 's/^/| /' conftest.$ac_ext >&5
18581
82eaf560 18582cat >conftest.$ac_ext <<_ACEOF
771c1b50 18583/* confdefs.h. */
18584_ACEOF
18585cat confdefs.h >>conftest.$ac_ext
18586cat >>conftest.$ac_ext <<_ACEOF
18587/* end confdefs.h. */
18588$ac_includes_default
18589int
18590main ()
18591{
18592static struct stat ac_aggr;
18593if (sizeof ac_aggr.st_blksize)
18594return 0;
18595 ;
18596 return 0;
18597}
18598_ACEOF
18599rm -f conftest.$ac_objext
82eaf560 18600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18601 (eval $ac_compile) 2>conftest.er1
771c1b50 18602 ac_status=$?
18603 grep -v '^ *+' conftest.er1 >conftest.err
18604 rm -f conftest.er1
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 18607 (exit $ac_status); } &&
18608 { ac_try='test -z "$ac_c_werror_flag"
18609 || test ! -s conftest.err'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18612 ac_status=$?
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; } &&
18615 { ac_try='test -s conftest.$ac_objext'
18616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617 (eval $ac_try) 2>&5
18618 ac_status=$?
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; }; then
771c1b50 18621 ac_cv_member_struct_stat_st_blksize=yes
18622else
18623 echo "$as_me: failed program was:" >&5
18624sed 's/^/| /' conftest.$ac_ext >&5
18625
82eaf560 18626ac_cv_member_struct_stat_st_blksize=no
771c1b50 18627fi
82eaf560 18628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
771c1b50 18629fi
82eaf560 18630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
771c1b50 18631fi
82eaf560 18632echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
18633echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
771c1b50 18634if test $ac_cv_member_struct_stat_st_blksize = yes; then
18635
18636cat >>confdefs.h <<_ACEOF
18637#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
18638_ACEOF
18639
18640
18641fi
18642
82eaf560 18643echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18644echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
771c1b50 18645if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18647else
18648 cat >conftest.$ac_ext <<_ACEOF
18649/* confdefs.h. */
18650_ACEOF
18651cat confdefs.h >>conftest.$ac_ext
18652cat >>conftest.$ac_ext <<_ACEOF
18653/* end confdefs.h. */
18654$ac_includes_default
18655int
18656main ()
18657{
18658static struct stat ac_aggr;
18659if (ac_aggr.st_blocks)
18660return 0;
18661 ;
18662 return 0;
18663}
18664_ACEOF
18665rm -f conftest.$ac_objext
82eaf560 18666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18667 (eval $ac_compile) 2>conftest.er1
771c1b50 18668 ac_status=$?
18669 grep -v '^ *+' conftest.er1 >conftest.err
18670 rm -f conftest.er1
18671 cat conftest.err >&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 18673 (exit $ac_status); } &&
18674 { ac_try='test -z "$ac_c_werror_flag"
18675 || test ! -s conftest.err'
18676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677 (eval $ac_try) 2>&5
18678 ac_status=$?
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; } &&
18681 { ac_try='test -s conftest.$ac_objext'
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; }; then
771c1b50 18687 ac_cv_member_struct_stat_st_blocks=yes
18688else
18689 echo "$as_me: failed program was:" >&5
18690sed 's/^/| /' conftest.$ac_ext >&5
18691
82eaf560 18692cat >conftest.$ac_ext <<_ACEOF
771c1b50 18693/* confdefs.h. */
18694_ACEOF
18695cat confdefs.h >>conftest.$ac_ext
18696cat >>conftest.$ac_ext <<_ACEOF
18697/* end confdefs.h. */
18698$ac_includes_default
18699int
18700main ()
18701{
18702static struct stat ac_aggr;
18703if (sizeof ac_aggr.st_blocks)
18704return 0;
18705 ;
18706 return 0;
18707}
18708_ACEOF
18709rm -f conftest.$ac_objext
82eaf560 18710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18711 (eval $ac_compile) 2>conftest.er1
771c1b50 18712 ac_status=$?
18713 grep -v '^ *+' conftest.er1 >conftest.err
18714 rm -f conftest.er1
18715 cat conftest.err >&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 18717 (exit $ac_status); } &&
18718 { ac_try='test -z "$ac_c_werror_flag"
18719 || test ! -s conftest.err'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18722 ac_status=$?
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; } &&
18725 { ac_try='test -s conftest.$ac_objext'
18726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; }; then
771c1b50 18731 ac_cv_member_struct_stat_st_blocks=yes
18732else
18733 echo "$as_me: failed program was:" >&5
18734sed 's/^/| /' conftest.$ac_ext >&5
18735
82eaf560 18736ac_cv_member_struct_stat_st_blocks=no
771c1b50 18737fi
82eaf560 18738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
771c1b50 18739fi
82eaf560 18740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
771c1b50 18741fi
82eaf560 18742echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18743echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
771c1b50 18744if test $ac_cv_member_struct_stat_st_blocks = yes; then
18745
18746cat >>confdefs.h <<_ACEOF
18747#define HAVE_STRUCT_STAT_ST_BLOCKS 1
18748_ACEOF
18749
18750
18751fi
18752
82eaf560 18753echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18754echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
771c1b50 18755if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
18757else
18758 cat >conftest.$ac_ext <<_ACEOF
18759/* confdefs.h. */
18760_ACEOF
18761cat confdefs.h >>conftest.$ac_ext
18762cat >>conftest.$ac_ext <<_ACEOF
18763/* end confdefs.h. */
18764$ac_includes_default
18765int
18766main ()
18767{
18768static struct stat ac_aggr;
18769if (ac_aggr.st_rdev)
18770return 0;
18771 ;
18772 return 0;
18773}
18774_ACEOF
18775rm -f conftest.$ac_objext
82eaf560 18776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18777 (eval $ac_compile) 2>conftest.er1
771c1b50 18778 ac_status=$?
18779 grep -v '^ *+' conftest.er1 >conftest.err
18780 rm -f conftest.er1
18781 cat conftest.err >&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 18783 (exit $ac_status); } &&
18784 { ac_try='test -z "$ac_c_werror_flag"
18785 || test ! -s conftest.err'
18786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; } &&
18791 { ac_try='test -s conftest.$ac_objext'
18792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18793 (eval $ac_try) 2>&5
18794 ac_status=$?
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); }; }; then
771c1b50 18797 ac_cv_member_struct_stat_st_rdev=yes
18798else
18799 echo "$as_me: failed program was:" >&5
18800sed 's/^/| /' conftest.$ac_ext >&5
18801
82eaf560 18802cat >conftest.$ac_ext <<_ACEOF
771c1b50 18803/* confdefs.h. */
18804_ACEOF
18805cat confdefs.h >>conftest.$ac_ext
18806cat >>conftest.$ac_ext <<_ACEOF
18807/* end confdefs.h. */
18808$ac_includes_default
18809int
18810main ()
18811{
18812static struct stat ac_aggr;
18813if (sizeof ac_aggr.st_rdev)
18814return 0;
18815 ;
18816 return 0;
18817}
18818_ACEOF
18819rm -f conftest.$ac_objext
82eaf560 18820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18821 (eval $ac_compile) 2>conftest.er1
771c1b50 18822 ac_status=$?
18823 grep -v '^ *+' conftest.er1 >conftest.err
18824 rm -f conftest.er1
18825 cat conftest.err >&5
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 18827 (exit $ac_status); } &&
18828 { ac_try='test -z "$ac_c_werror_flag"
18829 || test ! -s conftest.err'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; } &&
18835 { ac_try='test -s conftest.$ac_objext'
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; }; then
771c1b50 18841 ac_cv_member_struct_stat_st_rdev=yes
18842else
18843 echo "$as_me: failed program was:" >&5
18844sed 's/^/| /' conftest.$ac_ext >&5
18845
82eaf560 18846ac_cv_member_struct_stat_st_rdev=no
771c1b50 18847fi
82eaf560 18848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
771c1b50 18849fi
82eaf560 18850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
771c1b50 18851fi
82eaf560 18852echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
18853echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
771c1b50 18854if test $ac_cv_member_struct_stat_st_rdev = yes; then
18855
18856cat >>confdefs.h <<_ACEOF
18857#define HAVE_STRUCT_STAT_ST_RDEV 1
18858_ACEOF
18859
18860
18861fi
18862
18863
90973b19 18864# Check for library functions.
18865
18866
7dfba97b 18867
5e7b82bb 18868
c436f700 18869
a54b1ce7 18870
18871
14c3c235 18872
18873for ac_func in getrusage times mkstemp strtof strtold snprintf ftruncate chsize
90973b19 18874do
18875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
82eaf560 18876echo "$as_me:$LINENO: checking for $ac_func" >&5
18877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18878if eval "test \"\${$as_ac_var+set}\" = set"; then
4ee9c684 18879 echo $ECHO_N "(cached) $ECHO_C" >&6
18880else
b52ee437 18881 if test x$gcc_no_link = xyes; then
18882 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18883echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18884 { (exit 1); exit 1; }; }
18885fi
18886cat >conftest.$ac_ext <<_ACEOF
4dd3972f 18887/* confdefs.h. */
18888_ACEOF
18889cat confdefs.h >>conftest.$ac_ext
18890cat >>conftest.$ac_ext <<_ACEOF
18891/* end confdefs.h. */
18892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18894#define $ac_func innocuous_$ac_func
18895
18896/* System header to define __stub macros and hopefully few prototypes,
18897 which can conflict with char $ac_func (); below.
18898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18899 <limits.h> exists even on freestanding compilers. */
18900
18901#ifdef __STDC__
18902# include <limits.h>
18903#else
18904# include <assert.h>
18905#endif
18906
18907#undef $ac_func
18908
82eaf560 18909/* Override any gcc2 internal prototype to avoid an error. */
4dd3972f 18910#ifdef __cplusplus
18911extern "C"
82eaf560 18912{
4dd3972f 18913#endif
82eaf560 18914/* We use char because int might match the return type of a gcc2
18915 builtin and then its argument prototype would still apply. */
4dd3972f 18916char $ac_func ();
18917/* The GNU C library defines this for functions which it implements
18918 to always fail with ENOSYS. Some functions are actually named
18919 something starting with __ and the normal name is an alias. */
82eaf560 18920#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4dd3972f 18921choke me
82eaf560 18922#else
18923char (*f) () = $ac_func;
18924#endif
18925#ifdef __cplusplus
18926}
4dd3972f 18927#endif
18928
18929int
18930main ()
18931{
82eaf560 18932return f != $ac_func;
4dd3972f 18933 ;
18934 return 0;
18935}
18936_ACEOF
18937rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 18938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18939 (eval $ac_link) 2>conftest.er1
4dd3972f 18940 ac_status=$?
18941 grep -v '^ *+' conftest.er1 >conftest.err
18942 rm -f conftest.er1
18943 cat conftest.err >&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 18945 (exit $ac_status); } &&
18946 { ac_try='test -z "$ac_c_werror_flag"
18947 || test ! -s conftest.err'
18948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; } &&
18953 { ac_try='test -s conftest$ac_exeext'
18954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955 (eval $ac_try) 2>&5
18956 ac_status=$?
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); }; }; then
4dd3972f 18959 eval "$as_ac_var=yes"
18960else
18961 echo "$as_me: failed program was:" >&5
18962sed 's/^/| /' conftest.$ac_ext >&5
18963
82eaf560 18964eval "$as_ac_var=no"
6745c9de 18965fi
82eaf560 18966rm -f conftest.err conftest.$ac_objext \
4dd3972f 18967 conftest$ac_exeext conftest.$ac_ext
18968fi
82eaf560 18969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18970echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4dd3972f 18971if test `eval echo '${'$as_ac_var'}'` = yes; then
18972 cat >>confdefs.h <<_ACEOF
18973#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18974_ACEOF
18975
18976fi
18977done
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987for ac_func in chdir strerror getlogin gethostname kill link symlink perror
18988do
18989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
82eaf560 18990echo "$as_me:$LINENO: checking for $ac_func" >&5
18991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18992if eval "test \"\${$as_ac_var+set}\" = set"; then
4dd3972f 18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18994else
b52ee437 18995 if test x$gcc_no_link = xyes; then
18996 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18997echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18998 { (exit 1); exit 1; }; }
18999fi
19000cat >conftest.$ac_ext <<_ACEOF
90973b19 19001/* confdefs.h. */
19002_ACEOF
19003cat confdefs.h >>conftest.$ac_ext
19004cat >>conftest.$ac_ext <<_ACEOF
19005/* end confdefs.h. */
19006/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19008#define $ac_func innocuous_$ac_func
4ee9c684 19009
90973b19 19010/* System header to define __stub macros and hopefully few prototypes,
19011 which can conflict with char $ac_func (); below.
19012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19013 <limits.h> exists even on freestanding compilers. */
4ee9c684 19014
90973b19 19015#ifdef __STDC__
19016# include <limits.h>
19017#else
19018# include <assert.h>
19019#endif
4ee9c684 19020
90973b19 19021#undef $ac_func
19022
82eaf560 19023/* Override any gcc2 internal prototype to avoid an error. */
90973b19 19024#ifdef __cplusplus
19025extern "C"
82eaf560 19026{
90973b19 19027#endif
82eaf560 19028/* We use char because int might match the return type of a gcc2
19029 builtin and then its argument prototype would still apply. */
90973b19 19030char $ac_func ();
19031/* The GNU C library defines this for functions which it implements
19032 to always fail with ENOSYS. Some functions are actually named
19033 something starting with __ and the normal name is an alias. */
82eaf560 19034#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
ff4425cf 19035choke me
82eaf560 19036#else
19037char (*f) () = $ac_func;
19038#endif
19039#ifdef __cplusplus
19040}
90973b19 19041#endif
19042
19043int
19044main ()
19045{
82eaf560 19046return f != $ac_func;
90973b19 19047 ;
19048 return 0;
19049}
19050_ACEOF
19051rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 19052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19053 (eval $ac_link) 2>conftest.er1
90973b19 19054 ac_status=$?
19055 grep -v '^ *+' conftest.er1 >conftest.err
19056 rm -f conftest.er1
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 19059 (exit $ac_status); } &&
19060 { ac_try='test -z "$ac_c_werror_flag"
19061 || test ! -s conftest.err'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; } &&
19067 { ac_try='test -s conftest$ac_exeext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
4dd3972f 19073 eval "$as_ac_var=yes"
19074else
19075 echo "$as_me: failed program was:" >&5
19076sed 's/^/| /' conftest.$ac_ext >&5
19077
82eaf560 19078eval "$as_ac_var=no"
4dd3972f 19079fi
82eaf560 19080rm -f conftest.err conftest.$ac_objext \
4dd3972f 19081 conftest$ac_exeext conftest.$ac_ext
19082fi
82eaf560 19083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19084echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4dd3972f 19085if test `eval echo '${'$as_ac_var'}'` = yes; then
19086 cat >>confdefs.h <<_ACEOF
19087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19088_ACEOF
19089
19090fi
19091done
19092
19093
19094
f2c0a16d 19095
247981ce 19096
19097
b902b078 19098
c7347b39 19099
d2fc5bb1 19100
19101
19102
19103for ac_func in sleep time ttyname signal alarm ctime clock access fork execl
19104do
19105as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
82eaf560 19106echo "$as_me:$LINENO: checking for $ac_func" >&5
19107echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19108if eval "test \"\${$as_ac_var+set}\" = set"; then
d2fc5bb1 19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19110else
19111 if test x$gcc_no_link = xyes; then
19112 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19113echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19114 { (exit 1); exit 1; }; }
19115fi
19116cat >conftest.$ac_ext <<_ACEOF
19117/* confdefs.h. */
19118_ACEOF
19119cat confdefs.h >>conftest.$ac_ext
19120cat >>conftest.$ac_ext <<_ACEOF
19121/* end confdefs.h. */
19122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19124#define $ac_func innocuous_$ac_func
19125
19126/* System header to define __stub macros and hopefully few prototypes,
19127 which can conflict with char $ac_func (); below.
19128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19129 <limits.h> exists even on freestanding compilers. */
19130
19131#ifdef __STDC__
19132# include <limits.h>
19133#else
19134# include <assert.h>
19135#endif
19136
19137#undef $ac_func
19138
82eaf560 19139/* Override any gcc2 internal prototype to avoid an error. */
d2fc5bb1 19140#ifdef __cplusplus
19141extern "C"
82eaf560 19142{
d2fc5bb1 19143#endif
82eaf560 19144/* We use char because int might match the return type of a gcc2
19145 builtin and then its argument prototype would still apply. */
d2fc5bb1 19146char $ac_func ();
19147/* The GNU C library defines this for functions which it implements
19148 to always fail with ENOSYS. Some functions are actually named
19149 something starting with __ and the normal name is an alias. */
82eaf560 19150#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d2fc5bb1 19151choke me
82eaf560 19152#else
19153char (*f) () = $ac_func;
19154#endif
19155#ifdef __cplusplus
19156}
d2fc5bb1 19157#endif
19158
19159int
19160main ()
19161{
82eaf560 19162return f != $ac_func;
d2fc5bb1 19163 ;
19164 return 0;
19165}
19166_ACEOF
19167rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 19168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19169 (eval $ac_link) 2>conftest.er1
d2fc5bb1 19170 ac_status=$?
19171 grep -v '^ *+' conftest.er1 >conftest.err
19172 rm -f conftest.er1
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 19175 (exit $ac_status); } &&
19176 { ac_try='test -z "$ac_c_werror_flag"
19177 || test ! -s conftest.err'
19178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19179 (eval $ac_try) 2>&5
19180 ac_status=$?
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; } &&
19183 { ac_try='test -s conftest$ac_exeext'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; }; then
d2fc5bb1 19189 eval "$as_ac_var=yes"
19190else
19191 echo "$as_me: failed program was:" >&5
19192sed 's/^/| /' conftest.$ac_ext >&5
19193
82eaf560 19194eval "$as_ac_var=no"
d2fc5bb1 19195fi
82eaf560 19196rm -f conftest.err conftest.$ac_objext \
d2fc5bb1 19197 conftest$ac_exeext conftest.$ac_ext
19198fi
82eaf560 19199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19200echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d2fc5bb1 19201if test `eval echo '${'$as_ac_var'}'` = yes; then
19202 cat >>confdefs.h <<_ACEOF
19203#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19204_ACEOF
19205
19206fi
19207done
19208
19209
16af3de2 19210
b7fcd3f9 19211
e93cd318 19212
99798ba4 19213
19214
19215
19216
19217
19218for ac_func in wait setmode execvp pipe dup2 close fdopen strcasestr getrlimit
19219do
19220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
82eaf560 19221echo "$as_me:$LINENO: checking for $ac_func" >&5
19222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19223if eval "test \"\${$as_ac_var+set}\" = set"; then
c634bedf 19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19225else
19226 if test x$gcc_no_link = xyes; then
19227 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19228echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19229 { (exit 1); exit 1; }; }
19230fi
19231cat >conftest.$ac_ext <<_ACEOF
19232/* confdefs.h. */
19233_ACEOF
19234cat confdefs.h >>conftest.$ac_ext
19235cat >>conftest.$ac_ext <<_ACEOF
19236/* end confdefs.h. */
19237/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19239#define $ac_func innocuous_$ac_func
19240
19241/* System header to define __stub macros and hopefully few prototypes,
19242 which can conflict with char $ac_func (); below.
19243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19244 <limits.h> exists even on freestanding compilers. */
19245
19246#ifdef __STDC__
19247# include <limits.h>
19248#else
19249# include <assert.h>
19250#endif
19251
19252#undef $ac_func
19253
82eaf560 19254/* Override any gcc2 internal prototype to avoid an error. */
c634bedf 19255#ifdef __cplusplus
19256extern "C"
82eaf560 19257{
c634bedf 19258#endif
82eaf560 19259/* We use char because int might match the return type of a gcc2
19260 builtin and then its argument prototype would still apply. */
c634bedf 19261char $ac_func ();
19262/* The GNU C library defines this for functions which it implements
19263 to always fail with ENOSYS. Some functions are actually named
19264 something starting with __ and the normal name is an alias. */
82eaf560 19265#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
c634bedf 19266choke me
82eaf560 19267#else
19268char (*f) () = $ac_func;
19269#endif
19270#ifdef __cplusplus
19271}
c634bedf 19272#endif
19273
19274int
19275main ()
19276{
82eaf560 19277return f != $ac_func;
c634bedf 19278 ;
19279 return 0;
19280}
19281_ACEOF
19282rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 19283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19284 (eval $ac_link) 2>conftest.er1
c634bedf 19285 ac_status=$?
19286 grep -v '^ *+' conftest.er1 >conftest.err
19287 rm -f conftest.er1
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 19290 (exit $ac_status); } &&
19291 { ac_try='test -z "$ac_c_werror_flag"
19292 || test ! -s conftest.err'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; } &&
19298 { ac_try='test -s conftest$ac_exeext'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19301 ac_status=$?
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
c634bedf 19304 eval "$as_ac_var=yes"
19305else
19306 echo "$as_me: failed program was:" >&5
19307sed 's/^/| /' conftest.$ac_ext >&5
19308
82eaf560 19309eval "$as_ac_var=no"
c634bedf 19310fi
82eaf560 19311rm -f conftest.err conftest.$ac_objext \
c634bedf 19312 conftest$ac_exeext conftest.$ac_ext
19313fi
82eaf560 19314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19315echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
c634bedf 19316if test `eval echo '${'$as_ac_var'}'` = yes; then
19317 cat >>confdefs.h <<_ACEOF
19318#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19319_ACEOF
19320
19321fi
19322done
19323
19324
74b918e9 19325
19326
19327
c0e8efbe 19328
5a037dbd 19329
e0582811 19330
19331
19332for ac_func in gettimeofday stat fstat lstat getpwuid vsnprintf dup getcwd
c634bedf 19333do
19334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
82eaf560 19335echo "$as_me:$LINENO: checking for $ac_func" >&5
19336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19337if eval "test \"\${$as_ac_var+set}\" = set"; then
99798ba4 19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19339else
19340 if test x$gcc_no_link = xyes; then
19341 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19342echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19343 { (exit 1); exit 1; }; }
19344fi
19345cat >conftest.$ac_ext <<_ACEOF
19346/* confdefs.h. */
19347_ACEOF
19348cat confdefs.h >>conftest.$ac_ext
19349cat >>conftest.$ac_ext <<_ACEOF
19350/* end confdefs.h. */
19351/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19353#define $ac_func innocuous_$ac_func
19354
19355/* System header to define __stub macros and hopefully few prototypes,
19356 which can conflict with char $ac_func (); below.
19357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19358 <limits.h> exists even on freestanding compilers. */
19359
19360#ifdef __STDC__
19361# include <limits.h>
19362#else
19363# include <assert.h>
19364#endif
19365
19366#undef $ac_func
19367
82eaf560 19368/* Override any gcc2 internal prototype to avoid an error. */
99798ba4 19369#ifdef __cplusplus
19370extern "C"
82eaf560 19371{
99798ba4 19372#endif
82eaf560 19373/* We use char because int might match the return type of a gcc2
19374 builtin and then its argument prototype would still apply. */
99798ba4 19375char $ac_func ();
19376/* The GNU C library defines this for functions which it implements
19377 to always fail with ENOSYS. Some functions are actually named
19378 something starting with __ and the normal name is an alias. */
82eaf560 19379#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
99798ba4 19380choke me
82eaf560 19381#else
19382char (*f) () = $ac_func;
19383#endif
19384#ifdef __cplusplus
19385}
99798ba4 19386#endif
19387
19388int
19389main ()
19390{
82eaf560 19391return f != $ac_func;
99798ba4 19392 ;
19393 return 0;
19394}
19395_ACEOF
19396rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 19397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19398 (eval $ac_link) 2>conftest.er1
99798ba4 19399 ac_status=$?
19400 grep -v '^ *+' conftest.er1 >conftest.err
19401 rm -f conftest.er1
19402 cat conftest.err >&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 19404 (exit $ac_status); } &&
19405 { ac_try='test -z "$ac_c_werror_flag"
19406 || test ! -s conftest.err'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; } &&
19412 { ac_try='test -s conftest$ac_exeext'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19415 ac_status=$?
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
99798ba4 19418 eval "$as_ac_var=yes"
19419else
19420 echo "$as_me: failed program was:" >&5
19421sed 's/^/| /' conftest.$ac_ext >&5
19422
82eaf560 19423eval "$as_ac_var=no"
99798ba4 19424fi
82eaf560 19425rm -f conftest.err conftest.$ac_objext \
99798ba4 19426 conftest$ac_exeext conftest.$ac_ext
19427fi
82eaf560 19428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19429echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
99798ba4 19430if test `eval echo '${'$as_ac_var'}'` = yes; then
19431 cat >>confdefs.h <<_ACEOF
19432#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19433_ACEOF
19434
19435fi
19436done
19437
19438
19439# Check for glibc backtrace functions
19440
19441
19442for ac_func in backtrace backtrace_symbols
4dd3972f 19443do
19444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
82eaf560 19445echo "$as_me:$LINENO: checking for $ac_func" >&5
19446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19447if eval "test \"\${$as_ac_var+set}\" = set"; then
4dd3972f 19448 echo $ECHO_N "(cached) $ECHO_C" >&6
19449else
b52ee437 19450 if test x$gcc_no_link = xyes; then
19451 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19452echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19453 { (exit 1); exit 1; }; }
19454fi
19455cat >conftest.$ac_ext <<_ACEOF
4dd3972f 19456/* confdefs.h. */
19457_ACEOF
19458cat confdefs.h >>conftest.$ac_ext
19459cat >>conftest.$ac_ext <<_ACEOF
19460/* end confdefs.h. */
19461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19463#define $ac_func innocuous_$ac_func
19464
19465/* System header to define __stub macros and hopefully few prototypes,
19466 which can conflict with char $ac_func (); below.
19467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19468 <limits.h> exists even on freestanding compilers. */
19469
19470#ifdef __STDC__
19471# include <limits.h>
19472#else
19473# include <assert.h>
19474#endif
19475
19476#undef $ac_func
19477
82eaf560 19478/* Override any gcc2 internal prototype to avoid an error. */
4dd3972f 19479#ifdef __cplusplus
19480extern "C"
82eaf560 19481{
4dd3972f 19482#endif
82eaf560 19483/* We use char because int might match the return type of a gcc2
19484 builtin and then its argument prototype would still apply. */
4dd3972f 19485char $ac_func ();
19486/* The GNU C library defines this for functions which it implements
19487 to always fail with ENOSYS. Some functions are actually named
19488 something starting with __ and the normal name is an alias. */
82eaf560 19489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4dd3972f 19490choke me
82eaf560 19491#else
19492char (*f) () = $ac_func;
19493#endif
19494#ifdef __cplusplus
19495}
4dd3972f 19496#endif
19497
19498int
19499main ()
19500{
82eaf560 19501return f != $ac_func;
4dd3972f 19502 ;
19503 return 0;
19504}
19505_ACEOF
19506rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 19507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19508 (eval $ac_link) 2>conftest.er1
4dd3972f 19509 ac_status=$?
19510 grep -v '^ *+' conftest.er1 >conftest.err
19511 rm -f conftest.er1
19512 cat conftest.err >&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 19514 (exit $ac_status); } &&
19515 { ac_try='test -z "$ac_c_werror_flag"
19516 || test ! -s conftest.err'
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; } &&
19522 { ac_try='test -s conftest$ac_exeext'
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
90973b19 19528 eval "$as_ac_var=yes"
4ee9c684 19529else
90973b19 19530 echo "$as_me: failed program was:" >&5
19531sed 's/^/| /' conftest.$ac_ext >&5
19532
82eaf560 19533eval "$as_ac_var=no"
90973b19 19534fi
82eaf560 19535rm -f conftest.err conftest.$ac_objext \
90973b19 19536 conftest$ac_exeext conftest.$ac_ext
4ee9c684 19537fi
82eaf560 19538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19539echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
90973b19 19540if test `eval echo '${'$as_ac_var'}'` = yes; then
19541 cat >>confdefs.h <<_ACEOF
19542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19543_ACEOF
4ee9c684 19544
4ee9c684 19545fi
90973b19 19546done
4ee9c684 19547
4ee9c684 19548
16af3de2 19549# Check for types
82eaf560 19550echo "$as_me:$LINENO: checking for intptr_t" >&5
19551echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
16af3de2 19552if test "${ac_cv_type_intptr_t+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19554else
19555 cat >conftest.$ac_ext <<_ACEOF
19556/* confdefs.h. */
19557_ACEOF
19558cat confdefs.h >>conftest.$ac_ext
19559cat >>conftest.$ac_ext <<_ACEOF
19560/* end confdefs.h. */
19561$ac_includes_default
19562int
19563main ()
19564{
82eaf560 19565if ((intptr_t *) 0)
16af3de2 19566 return 0;
82eaf560 19567if (sizeof (intptr_t))
16af3de2 19568 return 0;
19569 ;
19570 return 0;
19571}
19572_ACEOF
19573rm -f conftest.$ac_objext
82eaf560 19574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19575 (eval $ac_compile) 2>conftest.er1
16af3de2 19576 ac_status=$?
19577 grep -v '^ *+' conftest.er1 >conftest.err
19578 rm -f conftest.er1
19579 cat conftest.err >&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 19581 (exit $ac_status); } &&
19582 { ac_try='test -z "$ac_c_werror_flag"
19583 || test ! -s conftest.err'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest.$ac_objext'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
16af3de2 19595 ac_cv_type_intptr_t=yes
19596else
19597 echo "$as_me: failed program was:" >&5
19598sed 's/^/| /' conftest.$ac_ext >&5
19599
82eaf560 19600ac_cv_type_intptr_t=no
16af3de2 19601fi
82eaf560 19602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16af3de2 19603fi
82eaf560 19604echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
19605echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
16af3de2 19606if test $ac_cv_type_intptr_t = yes; then
19607
19608cat >>confdefs.h <<_ACEOF
19609#define HAVE_INTPTR_T 1
19610_ACEOF
19611
19612
ed3634f6 19613fi
19614
19615echo "$as_me:$LINENO: checking for uintptr_t" >&5
19616echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
19617if test "${ac_cv_type_uintptr_t+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19619else
19620 cat >conftest.$ac_ext <<_ACEOF
19621/* confdefs.h. */
19622_ACEOF
19623cat confdefs.h >>conftest.$ac_ext
19624cat >>conftest.$ac_ext <<_ACEOF
19625/* end confdefs.h. */
19626$ac_includes_default
19627int
19628main ()
19629{
19630if ((uintptr_t *) 0)
19631 return 0;
19632if (sizeof (uintptr_t))
19633 return 0;
19634 ;
19635 return 0;
19636}
19637_ACEOF
19638rm -f conftest.$ac_objext
19639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19640 (eval $ac_compile) 2>conftest.er1
19641 ac_status=$?
19642 grep -v '^ *+' conftest.er1 >conftest.err
19643 rm -f conftest.er1
19644 cat conftest.err >&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
19647 { ac_try='test -z "$ac_c_werror_flag"
19648 || test ! -s conftest.err'
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19651 ac_status=$?
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; } &&
19654 { ac_try='test -s conftest.$ac_objext'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19660 ac_cv_type_uintptr_t=yes
19661else
19662 echo "$as_me: failed program was:" >&5
19663sed 's/^/| /' conftest.$ac_ext >&5
19664
19665ac_cv_type_uintptr_t=no
19666fi
19667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19668fi
19669echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
19670echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
19671if test $ac_cv_type_uintptr_t = yes; then
19672
19673cat >>confdefs.h <<_ACEOF
19674#define HAVE_UINTPTR_T 1
19675_ACEOF
19676
19677
16af3de2 19678fi
19679
19680
adad6c74 19681# Check libc for getgid, getpid, getuid
82eaf560 19682echo "$as_me:$LINENO: checking for getgid in -lc" >&5
19683echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
adad6c74 19684if test "${ac_cv_lib_c_getgid+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19686else
19687 ac_check_lib_save_LIBS=$LIBS
19688LIBS="-lc $LIBS"
b52ee437 19689if test x$gcc_no_link = xyes; then
19690 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19691echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19692 { (exit 1); exit 1; }; }
19693fi
adad6c74 19694cat >conftest.$ac_ext <<_ACEOF
19695/* confdefs.h. */
19696_ACEOF
19697cat confdefs.h >>conftest.$ac_ext
19698cat >>conftest.$ac_ext <<_ACEOF
19699/* end confdefs.h. */
19700
82eaf560 19701/* Override any gcc2 internal prototype to avoid an error. */
adad6c74 19702#ifdef __cplusplus
19703extern "C"
19704#endif
82eaf560 19705/* We use char because int might match the return type of a gcc2
19706 builtin and then its argument prototype would still apply. */
adad6c74 19707char getgid ();
19708int
19709main ()
19710{
82eaf560 19711getgid ();
adad6c74 19712 ;
19713 return 0;
19714}
19715_ACEOF
19716rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 19717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19718 (eval $ac_link) 2>conftest.er1
adad6c74 19719 ac_status=$?
19720 grep -v '^ *+' conftest.er1 >conftest.err
19721 rm -f conftest.er1
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 19724 (exit $ac_status); } &&
19725 { ac_try='test -z "$ac_c_werror_flag"
19726 || test ! -s conftest.err'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest$ac_exeext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
adad6c74 19738 ac_cv_lib_c_getgid=yes
19739else
19740 echo "$as_me: failed program was:" >&5
19741sed 's/^/| /' conftest.$ac_ext >&5
19742
82eaf560 19743ac_cv_lib_c_getgid=no
adad6c74 19744fi
82eaf560 19745rm -f conftest.err conftest.$ac_objext \
adad6c74 19746 conftest$ac_exeext conftest.$ac_ext
19747LIBS=$ac_check_lib_save_LIBS
19748fi
82eaf560 19749echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
19750echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
adad6c74 19751if test $ac_cv_lib_c_getgid = yes; then
19752
19753cat >>confdefs.h <<\_ACEOF
19754#define HAVE_GETGID 1
19755_ACEOF
19756
19757fi
19758
82eaf560 19759echo "$as_me:$LINENO: checking for getpid in -lc" >&5
19760echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
adad6c74 19761if test "${ac_cv_lib_c_getpid+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19763else
19764 ac_check_lib_save_LIBS=$LIBS
19765LIBS="-lc $LIBS"
b52ee437 19766if test x$gcc_no_link = xyes; then
19767 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19768echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19769 { (exit 1); exit 1; }; }
19770fi
adad6c74 19771cat >conftest.$ac_ext <<_ACEOF
19772/* confdefs.h. */
19773_ACEOF
19774cat confdefs.h >>conftest.$ac_ext
19775cat >>conftest.$ac_ext <<_ACEOF
19776/* end confdefs.h. */
19777
82eaf560 19778/* Override any gcc2 internal prototype to avoid an error. */
adad6c74 19779#ifdef __cplusplus
19780extern "C"
19781#endif
82eaf560 19782/* We use char because int might match the return type of a gcc2
19783 builtin and then its argument prototype would still apply. */
adad6c74 19784char getpid ();
19785int
19786main ()
19787{
82eaf560 19788getpid ();
adad6c74 19789 ;
19790 return 0;
19791}
19792_ACEOF
19793rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 19794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19795 (eval $ac_link) 2>conftest.er1
adad6c74 19796 ac_status=$?
19797 grep -v '^ *+' conftest.er1 >conftest.err
19798 rm -f conftest.er1
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 19801 (exit $ac_status); } &&
19802 { ac_try='test -z "$ac_c_werror_flag"
19803 || test ! -s conftest.err'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest$ac_exeext'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
adad6c74 19815 ac_cv_lib_c_getpid=yes
19816else
19817 echo "$as_me: failed program was:" >&5
19818sed 's/^/| /' conftest.$ac_ext >&5
19819
82eaf560 19820ac_cv_lib_c_getpid=no
adad6c74 19821fi
82eaf560 19822rm -f conftest.err conftest.$ac_objext \
adad6c74 19823 conftest$ac_exeext conftest.$ac_ext
19824LIBS=$ac_check_lib_save_LIBS
19825fi
82eaf560 19826echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
19827echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
adad6c74 19828if test $ac_cv_lib_c_getpid = yes; then
19829
19830cat >>confdefs.h <<\_ACEOF
19831#define HAVE_GETPID 1
19832_ACEOF
19833
19834fi
19835
82eaf560 19836echo "$as_me:$LINENO: checking for getppid in -lc" >&5
19837echo $ECHO_N "checking for getppid in -lc... $ECHO_C" >&6
99798ba4 19838if test "${ac_cv_lib_c_getppid+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19840else
19841 ac_check_lib_save_LIBS=$LIBS
19842LIBS="-lc $LIBS"
19843if test x$gcc_no_link = xyes; then
19844 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19845echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19846 { (exit 1); exit 1; }; }
19847fi
19848cat >conftest.$ac_ext <<_ACEOF
19849/* confdefs.h. */
19850_ACEOF
19851cat confdefs.h >>conftest.$ac_ext
19852cat >>conftest.$ac_ext <<_ACEOF
19853/* end confdefs.h. */
19854
82eaf560 19855/* Override any gcc2 internal prototype to avoid an error. */
99798ba4 19856#ifdef __cplusplus
19857extern "C"
19858#endif
82eaf560 19859/* We use char because int might match the return type of a gcc2
19860 builtin and then its argument prototype would still apply. */
99798ba4 19861char getppid ();
19862int
19863main ()
19864{
82eaf560 19865getppid ();
99798ba4 19866 ;
19867 return 0;
19868}
19869_ACEOF
19870rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 19871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19872 (eval $ac_link) 2>conftest.er1
99798ba4 19873 ac_status=$?
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 19878 (exit $ac_status); } &&
19879 { ac_try='test -z "$ac_c_werror_flag"
19880 || test ! -s conftest.err'
19881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; } &&
19886 { ac_try='test -s conftest$ac_exeext'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
99798ba4 19892 ac_cv_lib_c_getppid=yes
19893else
19894 echo "$as_me: failed program was:" >&5
19895sed 's/^/| /' conftest.$ac_ext >&5
19896
82eaf560 19897ac_cv_lib_c_getppid=no
99798ba4 19898fi
82eaf560 19899rm -f conftest.err conftest.$ac_objext \
99798ba4 19900 conftest$ac_exeext conftest.$ac_ext
19901LIBS=$ac_check_lib_save_LIBS
19902fi
82eaf560 19903echo "$as_me:$LINENO: result: $ac_cv_lib_c_getppid" >&5
19904echo "${ECHO_T}$ac_cv_lib_c_getppid" >&6
99798ba4 19905if test $ac_cv_lib_c_getppid = yes; then
19906
19907cat >>confdefs.h <<\_ACEOF
19908#define HAVE_GETPPID 1
19909_ACEOF
19910
19911fi
19912
82eaf560 19913echo "$as_me:$LINENO: checking for getuid in -lc" >&5
19914echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
adad6c74 19915if test "${ac_cv_lib_c_getuid+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917else
19918 ac_check_lib_save_LIBS=$LIBS
19919LIBS="-lc $LIBS"
b52ee437 19920if test x$gcc_no_link = xyes; then
19921 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19922echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19923 { (exit 1); exit 1; }; }
19924fi
adad6c74 19925cat >conftest.$ac_ext <<_ACEOF
19926/* confdefs.h. */
19927_ACEOF
19928cat confdefs.h >>conftest.$ac_ext
19929cat >>conftest.$ac_ext <<_ACEOF
19930/* end confdefs.h. */
19931
82eaf560 19932/* Override any gcc2 internal prototype to avoid an error. */
adad6c74 19933#ifdef __cplusplus
19934extern "C"
19935#endif
82eaf560 19936/* We use char because int might match the return type of a gcc2
19937 builtin and then its argument prototype would still apply. */
adad6c74 19938char getuid ();
19939int
19940main ()
19941{
82eaf560 19942getuid ();
adad6c74 19943 ;
19944 return 0;
19945}
19946_ACEOF
19947rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 19948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19949 (eval $ac_link) 2>conftest.er1
adad6c74 19950 ac_status=$?
19951 grep -v '^ *+' conftest.er1 >conftest.err
19952 rm -f conftest.er1
19953 cat conftest.err >&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 19955 (exit $ac_status); } &&
19956 { ac_try='test -z "$ac_c_werror_flag"
19957 || test ! -s conftest.err'
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; } &&
19963 { ac_try='test -s conftest$ac_exeext'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19966 ac_status=$?
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; }; then
adad6c74 19969 ac_cv_lib_c_getuid=yes
19970else
19971 echo "$as_me: failed program was:" >&5
19972sed 's/^/| /' conftest.$ac_ext >&5
19973
82eaf560 19974ac_cv_lib_c_getuid=no
adad6c74 19975fi
82eaf560 19976rm -f conftest.err conftest.$ac_objext \
adad6c74 19977 conftest$ac_exeext conftest.$ac_ext
19978LIBS=$ac_check_lib_save_LIBS
19979fi
82eaf560 19980echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
19981echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
adad6c74 19982if test $ac_cv_lib_c_getuid = yes; then
19983
19984cat >>confdefs.h <<\_ACEOF
19985#define HAVE_GETUID 1
19986_ACEOF
19987
19988fi
19989
82eaf560 19990echo "$as_me:$LINENO: checking for geteuid in -lc" >&5
19991echo $ECHO_N "checking for geteuid in -lc... $ECHO_C" >&6
c0e8efbe 19992if test "${ac_cv_lib_c_geteuid+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19994else
19995 ac_check_lib_save_LIBS=$LIBS
19996LIBS="-lc $LIBS"
19997if test x$gcc_no_link = xyes; then
19998 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19999echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20000 { (exit 1); exit 1; }; }
20001fi
20002cat >conftest.$ac_ext <<_ACEOF
20003/* confdefs.h. */
20004_ACEOF
20005cat confdefs.h >>conftest.$ac_ext
20006cat >>conftest.$ac_ext <<_ACEOF
20007/* end confdefs.h. */
20008
82eaf560 20009/* Override any gcc2 internal prototype to avoid an error. */
c0e8efbe 20010#ifdef __cplusplus
20011extern "C"
20012#endif
82eaf560 20013/* We use char because int might match the return type of a gcc2
20014 builtin and then its argument prototype would still apply. */
c0e8efbe 20015char geteuid ();
20016int
20017main ()
20018{
82eaf560 20019geteuid ();
c0e8efbe 20020 ;
20021 return 0;
20022}
20023_ACEOF
20024rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 20025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20026 (eval $ac_link) 2>conftest.er1
c0e8efbe 20027 ac_status=$?
20028 grep -v '^ *+' conftest.er1 >conftest.err
20029 rm -f conftest.er1
20030 cat conftest.err >&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 20032 (exit $ac_status); } &&
20033 { ac_try='test -z "$ac_c_werror_flag"
20034 || test ! -s conftest.err'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; } &&
20040 { ac_try='test -s conftest$ac_exeext'
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; }; then
c0e8efbe 20046 ac_cv_lib_c_geteuid=yes
20047else
20048 echo "$as_me: failed program was:" >&5
20049sed 's/^/| /' conftest.$ac_ext >&5
20050
82eaf560 20051ac_cv_lib_c_geteuid=no
c0e8efbe 20052fi
82eaf560 20053rm -f conftest.err conftest.$ac_objext \
c0e8efbe 20054 conftest$ac_exeext conftest.$ac_ext
20055LIBS=$ac_check_lib_save_LIBS
20056fi
82eaf560 20057echo "$as_me:$LINENO: result: $ac_cv_lib_c_geteuid" >&5
20058echo "${ECHO_T}$ac_cv_lib_c_geteuid" >&6
c0e8efbe 20059if test $ac_cv_lib_c_geteuid = yes; then
20060
20061cat >>confdefs.h <<\_ACEOF
20062#define HAVE_GETEUID 1
20063_ACEOF
20064
20065fi
20066
adad6c74 20067
8f838781 20068# Check for C99 (and other IEEE) math functions
82eaf560 20069echo "$as_me:$LINENO: checking for acosf in -lm" >&5
20070echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
8f838781 20071if test "${ac_cv_lib_m_acosf+set}" = set; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
20073else
20074 ac_check_lib_save_LIBS=$LIBS
20075LIBS="-lm $LIBS"
b52ee437 20076if test x$gcc_no_link = xyes; then
20077 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20078echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20079 { (exit 1); exit 1; }; }
20080fi
8f838781 20081cat >conftest.$ac_ext <<_ACEOF
20082/* confdefs.h. */
20083_ACEOF
20084cat confdefs.h >>conftest.$ac_ext
20085cat >>conftest.$ac_ext <<_ACEOF
20086/* end confdefs.h. */
20087
82eaf560 20088/* Override any gcc2 internal prototype to avoid an error. */
8f838781 20089#ifdef __cplusplus
20090extern "C"
20091#endif
82eaf560 20092/* We use char because int might match the return type of a gcc2
20093 builtin and then its argument prototype would still apply. */
8f838781 20094char acosf ();
20095int
20096main ()
20097{
82eaf560 20098acosf ();
8f838781 20099 ;
20100 return 0;
20101}
20102_ACEOF
20103rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 20104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20105 (eval $ac_link) 2>conftest.er1
8f838781 20106 ac_status=$?
20107 grep -v '^ *+' conftest.er1 >conftest.err
20108 rm -f conftest.er1
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 20111 (exit $ac_status); } &&
20112 { ac_try='test -z "$ac_c_werror_flag"
20113 || test ! -s conftest.err'
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20116 ac_status=$?
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; } &&
20119 { ac_try='test -s conftest$ac_exeext'
20120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121 (eval $ac_try) 2>&5
20122 ac_status=$?
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; }; then
8f838781 20125 ac_cv_lib_m_acosf=yes
20126else
20127 echo "$as_me: failed program was:" >&5
20128sed 's/^/| /' conftest.$ac_ext >&5
20129
82eaf560 20130ac_cv_lib_m_acosf=no
8f838781 20131fi
82eaf560 20132rm -f conftest.err conftest.$ac_objext \
8f838781 20133 conftest$ac_exeext conftest.$ac_ext
20134LIBS=$ac_check_lib_save_LIBS
20135fi
82eaf560 20136echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
20137echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
8f838781 20138if test $ac_cv_lib_m_acosf = yes; then
20139
20140cat >>confdefs.h <<\_ACEOF
20141#define HAVE_ACOSF 1
20142_ACEOF
20143
20144fi
20145
82eaf560 20146echo "$as_me:$LINENO: checking for acos in -lm" >&5
20147echo $ECHO_N "checking for acos in -lm... $ECHO_C" >&6
d213114b 20148if test "${ac_cv_lib_m_acos+set}" = set; then
b52ee437 20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20150else
20151 ac_check_lib_save_LIBS=$LIBS
20152LIBS="-lm $LIBS"
20153if test x$gcc_no_link = xyes; then
20154 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20155echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20156 { (exit 1); exit 1; }; }
20157fi
20158cat >conftest.$ac_ext <<_ACEOF
20159/* confdefs.h. */
20160_ACEOF
20161cat confdefs.h >>conftest.$ac_ext
20162cat >>conftest.$ac_ext <<_ACEOF
20163/* end confdefs.h. */
20164
82eaf560 20165/* Override any gcc2 internal prototype to avoid an error. */
b52ee437 20166#ifdef __cplusplus
20167extern "C"
20168#endif
82eaf560 20169/* We use char because int might match the return type of a gcc2
20170 builtin and then its argument prototype would still apply. */
d213114b 20171char acos ();
b52ee437 20172int
20173main ()
20174{
82eaf560 20175acos ();
b52ee437 20176 ;
20177 return 0;
20178}
20179_ACEOF
20180rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 20181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20182 (eval $ac_link) 2>conftest.er1
b52ee437 20183 ac_status=$?
20184 grep -v '^ *+' conftest.er1 >conftest.err
20185 rm -f conftest.er1
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 20188 (exit $ac_status); } &&
20189 { ac_try='test -z "$ac_c_werror_flag"
20190 || test ! -s conftest.err'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20193 ac_status=$?
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; } &&
20196 { ac_try='test -s conftest$ac_exeext'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
d213114b 20202 ac_cv_lib_m_acos=yes
b52ee437 20203else
20204 echo "$as_me: failed program was:" >&5
20205sed 's/^/| /' conftest.$ac_ext >&5
20206
82eaf560 20207ac_cv_lib_m_acos=no
b52ee437 20208fi
82eaf560 20209rm -f conftest.err conftest.$ac_objext \
b52ee437 20210 conftest$ac_exeext conftest.$ac_ext
20211LIBS=$ac_check_lib_save_LIBS
20212fi
82eaf560 20213echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5
20214echo "${ECHO_T}$ac_cv_lib_m_acos" >&6
d213114b 20215if test $ac_cv_lib_m_acos = yes; then
b52ee437 20216
20217cat >>confdefs.h <<\_ACEOF
d213114b 20218#define HAVE_ACOS 1
b52ee437 20219_ACEOF
20220
20221fi
20222
82eaf560 20223echo "$as_me:$LINENO: checking for acosl in -lm" >&5
20224echo $ECHO_N "checking for acosl in -lm... $ECHO_C" >&6
d213114b 20225if test "${ac_cv_lib_m_acosl+set}" = set; then
8f838781 20226 echo $ECHO_N "(cached) $ECHO_C" >&6
20227else
20228 ac_check_lib_save_LIBS=$LIBS
20229LIBS="-lm $LIBS"
b52ee437 20230if test x$gcc_no_link = xyes; then
20231 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20232echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20233 { (exit 1); exit 1; }; }
20234fi
8f838781 20235cat >conftest.$ac_ext <<_ACEOF
20236/* confdefs.h. */
20237_ACEOF
20238cat confdefs.h >>conftest.$ac_ext
20239cat >>conftest.$ac_ext <<_ACEOF
20240/* end confdefs.h. */
20241
82eaf560 20242/* Override any gcc2 internal prototype to avoid an error. */
8f838781 20243#ifdef __cplusplus
20244extern "C"
20245#endif
82eaf560 20246/* We use char because int might match the return type of a gcc2
20247 builtin and then its argument prototype would still apply. */
d213114b 20248char acosl ();
8f838781 20249int
20250main ()
20251{
82eaf560 20252acosl ();
8f838781 20253 ;
20254 return 0;
20255}
20256_ACEOF
20257rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 20258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20259 (eval $ac_link) 2>conftest.er1
8f838781 20260 ac_status=$?
20261 grep -v '^ *+' conftest.er1 >conftest.err
20262 rm -f conftest.er1
20263 cat conftest.err >&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 20265 (exit $ac_status); } &&
20266 { ac_try='test -z "$ac_c_werror_flag"
20267 || test ! -s conftest.err'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; } &&
20273 { ac_try='test -s conftest$ac_exeext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
d213114b 20279 ac_cv_lib_m_acosl=yes
8f838781 20280else
20281 echo "$as_me: failed program was:" >&5
20282sed 's/^/| /' conftest.$ac_ext >&5
20283
82eaf560 20284ac_cv_lib_m_acosl=no
8f838781 20285fi
82eaf560 20286rm -f conftest.err conftest.$ac_objext \
8f838781 20287 conftest$ac_exeext conftest.$ac_ext
20288LIBS=$ac_check_lib_save_LIBS
20289fi
82eaf560 20290echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosl" >&5
20291echo "${ECHO_T}$ac_cv_lib_m_acosl" >&6
d213114b 20292if test $ac_cv_lib_m_acosl = yes; then
8f838781 20293
20294cat >>confdefs.h <<\_ACEOF
d213114b 20295#define HAVE_ACOSL 1
8f838781 20296_ACEOF
20297
20298fi
20299
82eaf560 20300echo "$as_me:$LINENO: checking for acoshf in -lm" >&5
20301echo $ECHO_N "checking for acoshf in -lm... $ECHO_C" >&6
d213114b 20302if test "${ac_cv_lib_m_acoshf+set}" = set; then
b52ee437 20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20304else
20305 ac_check_lib_save_LIBS=$LIBS
20306LIBS="-lm $LIBS"
20307if test x$gcc_no_link = xyes; then
20308 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20309echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20310 { (exit 1); exit 1; }; }
20311fi
20312cat >conftest.$ac_ext <<_ACEOF
20313/* confdefs.h. */
20314_ACEOF
20315cat confdefs.h >>conftest.$ac_ext
20316cat >>conftest.$ac_ext <<_ACEOF
20317/* end confdefs.h. */
20318
82eaf560 20319/* Override any gcc2 internal prototype to avoid an error. */
b52ee437 20320#ifdef __cplusplus
20321extern "C"
20322#endif
82eaf560 20323/* We use char because int might match the return type of a gcc2
20324 builtin and then its argument prototype would still apply. */
d213114b 20325char acoshf ();
b52ee437 20326int
20327main ()
20328{
82eaf560 20329acoshf ();
b52ee437 20330 ;
20331 return 0;
20332}
20333_ACEOF
20334rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 20335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336 (eval $ac_link) 2>conftest.er1
b52ee437 20337 ac_status=$?
20338 grep -v '^ *+' conftest.er1 >conftest.err
20339 rm -f conftest.er1
20340 cat conftest.err >&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 20342 (exit $ac_status); } &&
20343 { ac_try='test -z "$ac_c_werror_flag"
20344 || test ! -s conftest.err'
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20347 ac_status=$?
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; } &&
20350 { ac_try='test -s conftest$ac_exeext'
20351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20353 ac_status=$?
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
d213114b 20356 ac_cv_lib_m_acoshf=yes
b52ee437 20357else
20358 echo "$as_me: failed program was:" >&5
20359sed 's/^/| /' conftest.$ac_ext >&5
20360
82eaf560 20361ac_cv_lib_m_acoshf=no
b52ee437 20362fi
82eaf560 20363rm -f conftest.err conftest.$ac_objext \
b52ee437 20364 conftest$ac_exeext conftest.$ac_ext
20365LIBS=$ac_check_lib_save_LIBS
20366fi
82eaf560 20367echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshf" >&5
20368echo "${ECHO_T}$ac_cv_lib_m_acoshf" >&6
d213114b 20369if test $ac_cv_lib_m_acoshf = yes; then
b52ee437 20370
20371cat >>confdefs.h <<\_ACEOF
d213114b 20372#define HAVE_ACOSHF 1
b52ee437 20373_ACEOF
20374
20375fi
20376
82eaf560 20377echo "$as_me:$LINENO: checking for acosh in -lm" >&5
20378echo $ECHO_N "checking for acosh in -lm... $ECHO_C" >&6
d213114b 20379if test "${ac_cv_lib_m_acosh+set}" = set; then
8f838781 20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20381else
20382 ac_check_lib_save_LIBS=$LIBS
20383LIBS="-lm $LIBS"
b52ee437 20384if test x$gcc_no_link = xyes; then
20385 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20386echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20387 { (exit 1); exit 1; }; }
20388fi
8f838781 20389cat >conftest.$ac_ext <<_ACEOF
20390/* confdefs.h. */
20391_ACEOF
20392cat confdefs.h >>conftest.$ac_ext
20393cat >>conftest.$ac_ext <<_ACEOF
20394/* end confdefs.h. */
20395
82eaf560 20396/* Override any gcc2 internal prototype to avoid an error. */
8f838781 20397#ifdef __cplusplus
20398extern "C"
20399#endif
82eaf560 20400/* We use char because int might match the return type of a gcc2
20401 builtin and then its argument prototype would still apply. */
d213114b 20402char acosh ();
8f838781 20403int
20404main ()
20405{
82eaf560 20406acosh ();
8f838781 20407 ;
20408 return 0;
20409}
20410_ACEOF
20411rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 20412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20413 (eval $ac_link) 2>conftest.er1
8f838781 20414 ac_status=$?
20415 grep -v '^ *+' conftest.er1 >conftest.err
20416 rm -f conftest.er1
20417 cat conftest.err >&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 20419 (exit $ac_status); } &&
20420 { ac_try='test -z "$ac_c_werror_flag"
20421 || test ! -s conftest.err'
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20424 ac_status=$?
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; } &&
20427 { ac_try='test -s conftest$ac_exeext'
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; }; then
d213114b 20433 ac_cv_lib_m_acosh=yes
8f838781 20434else
20435 echo "$as_me: failed program was:" >&5
20436sed 's/^/| /' conftest.$ac_ext >&5
20437
82eaf560 20438ac_cv_lib_m_acosh=no
8f838781 20439fi
82eaf560 20440rm -f conftest.err conftest.$ac_objext \
8f838781 20441 conftest$ac_exeext conftest.$ac_ext
20442LIBS=$ac_check_lib_save_LIBS
20443fi
82eaf560 20444echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosh" >&5
20445echo "${ECHO_T}$ac_cv_lib_m_acosh" >&6
d213114b 20446if test $ac_cv_lib_m_acosh = yes; then
8f838781 20447
20448cat >>confdefs.h <<\_ACEOF
d213114b 20449#define HAVE_ACOSH 1
8f838781 20450_ACEOF
20451
20452fi
20453
82eaf560 20454echo "$as_me:$LINENO: checking for acoshl in -lm" >&5
20455echo $ECHO_N "checking for acoshl in -lm... $ECHO_C" >&6
d213114b 20456if test "${ac_cv_lib_m_acoshl+set}" = set; then
8f838781 20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20458else
20459 ac_check_lib_save_LIBS=$LIBS
20460LIBS="-lm $LIBS"
b52ee437 20461if test x$gcc_no_link = xyes; then
20462 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20463echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20464 { (exit 1); exit 1; }; }
20465fi
8f838781 20466cat >conftest.$ac_ext <<_ACEOF
20467/* confdefs.h. */
20468_ACEOF
20469cat confdefs.h >>conftest.$ac_ext
20470cat >>conftest.$ac_ext <<_ACEOF
20471/* end confdefs.h. */
20472
82eaf560 20473/* Override any gcc2 internal prototype to avoid an error. */
8f838781 20474#ifdef __cplusplus
20475extern "C"
20476#endif
82eaf560 20477/* We use char because int might match the return type of a gcc2
20478 builtin and then its argument prototype would still apply. */
d213114b 20479char acoshl ();
8f838781 20480int
20481main ()
20482{
82eaf560 20483acoshl ();
8f838781 20484 ;
20485 return 0;
20486}
20487_ACEOF
20488rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 20489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20490 (eval $ac_link) 2>conftest.er1
8f838781 20491 ac_status=$?
20492 grep -v '^ *+' conftest.er1 >conftest.err
20493 rm -f conftest.er1
20494 cat conftest.err >&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 20496 (exit $ac_status); } &&
20497 { ac_try='test -z "$ac_c_werror_flag"
20498 || test ! -s conftest.err'
20499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500 (eval $ac_try) 2>&5
20501 ac_status=$?
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); }; } &&
20504 { ac_try='test -s conftest$ac_exeext'
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20507 ac_status=$?
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; }; then
d213114b 20510 ac_cv_lib_m_acoshl=yes
8f838781 20511else
20512 echo "$as_me: failed program was:" >&5
20513sed 's/^/| /' conftest.$ac_ext >&5
20514
82eaf560 20515ac_cv_lib_m_acoshl=no
8f838781 20516fi
82eaf560 20517rm -f conftest.err conftest.$ac_objext \
8f838781 20518 conftest$ac_exeext conftest.$ac_ext
20519LIBS=$ac_check_lib_save_LIBS
20520fi
82eaf560 20521echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshl" >&5
20522echo "${ECHO_T}$ac_cv_lib_m_acoshl" >&6
d213114b 20523if test $ac_cv_lib_m_acoshl = yes; then
8f838781 20524
20525cat >>confdefs.h <<\_ACEOF
d213114b 20526#define HAVE_ACOSHL 1
8f838781 20527_ACEOF
20528
20529fi
20530
82eaf560 20531echo "$as_me:$LINENO: checking for asinf in -lm" >&5
20532echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
d213114b 20533if test "${ac_cv_lib_m_asinf+set}" = set; then
b52ee437 20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20535else
20536 ac_check_lib_save_LIBS=$LIBS
20537LIBS="-lm $LIBS"
20538if test x$gcc_no_link = xyes; then
20539 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20540echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20541 { (exit 1); exit 1; }; }
20542fi
20543cat >conftest.$ac_ext <<_ACEOF
20544/* confdefs.h. */
20545_ACEOF
20546cat confdefs.h >>conftest.$ac_ext
20547cat >>conftest.$ac_ext <<_ACEOF
20548/* end confdefs.h. */
20549
82eaf560 20550/* Override any gcc2 internal prototype to avoid an error. */
b52ee437 20551#ifdef __cplusplus
20552extern "C"
20553#endif
82eaf560 20554/* We use char because int might match the return type of a gcc2
20555 builtin and then its argument prototype would still apply. */
d213114b 20556char asinf ();
b52ee437 20557int
20558main ()
20559{
82eaf560 20560asinf ();
b52ee437 20561 ;
20562 return 0;
20563}
20564_ACEOF
20565rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 20566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20567 (eval $ac_link) 2>conftest.er1
b52ee437 20568 ac_status=$?
20569 grep -v '^ *+' conftest.er1 >conftest.err
20570 rm -f conftest.er1
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 20573 (exit $ac_status); } &&
20574 { ac_try='test -z "$ac_c_werror_flag"
20575 || test ! -s conftest.err'
20576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20577 (eval $ac_try) 2>&5
20578 ac_status=$?
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); }; } &&
20581 { ac_try='test -s conftest$ac_exeext'
20582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583 (eval $ac_try) 2>&5
20584 ac_status=$?
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; }; then
d213114b 20587 ac_cv_lib_m_asinf=yes
b52ee437 20588else
20589 echo "$as_me: failed program was:" >&5
20590sed 's/^/| /' conftest.$ac_ext >&5
20591
82eaf560 20592ac_cv_lib_m_asinf=no
b52ee437 20593fi
82eaf560 20594rm -f conftest.err conftest.$ac_objext \
b52ee437 20595 conftest$ac_exeext conftest.$ac_ext
20596LIBS=$ac_check_lib_save_LIBS
20597fi
82eaf560 20598echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
20599echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
d213114b 20600if test $ac_cv_lib_m_asinf = yes; then
b52ee437 20601
20602cat >>confdefs.h <<\_ACEOF
d213114b 20603#define HAVE_ASINF 1
b52ee437 20604_ACEOF
20605
20606fi
20607
82eaf560 20608echo "$as_me:$LINENO: checking for asin in -lm" >&5
20609echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6
d213114b 20610if test "${ac_cv_lib_m_asin+set}" = set; then
8f838781 20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20612else
20613 ac_check_lib_save_LIBS=$LIBS
20614LIBS="-lm $LIBS"
b52ee437 20615if test x$gcc_no_link = xyes; then
20616 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20617echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20618 { (exit 1); exit 1; }; }
20619fi
8f838781 20620cat >conftest.$ac_ext <<_ACEOF
20621/* confdefs.h. */
20622_ACEOF
20623cat confdefs.h >>conftest.$ac_ext
20624cat >>conftest.$ac_ext <<_ACEOF
20625/* end confdefs.h. */
20626
82eaf560 20627/* Override any gcc2 internal prototype to avoid an error. */
8f838781 20628#ifdef __cplusplus
20629extern "C"
20630#endif
82eaf560 20631/* We use char because int might match the return type of a gcc2
20632 builtin and then its argument prototype would still apply. */
d213114b 20633char asin ();
8f838781 20634int
20635main ()
20636{
82eaf560 20637asin ();
8f838781 20638 ;
20639 return 0;
20640}
20641_ACEOF
20642rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 20643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20644 (eval $ac_link) 2>conftest.er1
8f838781 20645 ac_status=$?
20646 grep -v '^ *+' conftest.er1 >conftest.err
20647 rm -f conftest.er1
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 20650 (exit $ac_status); } &&
20651 { ac_try='test -z "$ac_c_werror_flag"
20652 || test ! -s conftest.err'
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20655 ac_status=$?
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; } &&
20658 { ac_try='test -s conftest$ac_exeext'
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20661 ac_status=$?
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; }; then
d213114b 20664 ac_cv_lib_m_asin=yes
8f838781 20665else
20666 echo "$as_me: failed program was:" >&5
20667sed 's/^/| /' conftest.$ac_ext >&5
20668
82eaf560 20669ac_cv_lib_m_asin=no
8f838781 20670fi
82eaf560 20671rm -f conftest.err conftest.$ac_objext \
8f838781 20672 conftest$ac_exeext conftest.$ac_ext
20673LIBS=$ac_check_lib_save_LIBS
20674fi
82eaf560 20675echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5
20676echo "${ECHO_T}$ac_cv_lib_m_asin" >&6
d213114b 20677if test $ac_cv_lib_m_asin = yes; then
8f838781 20678
20679cat >>confdefs.h <<\_ACEOF
d213114b 20680#define HAVE_ASIN 1
8f838781 20681_ACEOF
20682
20683fi
20684
82eaf560 20685echo "$as_me:$LINENO: checking for asinl in -lm" >&5
20686echo $ECHO_N "checking for asinl in -lm... $ECHO_C" >&6
d213114b 20687if test "${ac_cv_lib_m_asinl+set}" = set; then
8f838781 20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20689else
20690 ac_check_lib_save_LIBS=$LIBS
20691LIBS="-lm $LIBS"
b52ee437 20692if test x$gcc_no_link = xyes; then
20693 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20694echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20695 { (exit 1); exit 1; }; }
20696fi
8f838781 20697cat >conftest.$ac_ext <<_ACEOF
20698/* confdefs.h. */
20699_ACEOF
20700cat confdefs.h >>conftest.$ac_ext
20701cat >>conftest.$ac_ext <<_ACEOF
20702/* end confdefs.h. */
20703
82eaf560 20704/* Override any gcc2 internal prototype to avoid an error. */
8f838781 20705#ifdef __cplusplus
20706extern "C"
20707#endif
82eaf560 20708/* We use char because int might match the return type of a gcc2
20709 builtin and then its argument prototype would still apply. */
d213114b 20710char asinl ();
8f838781 20711int
20712main ()
20713{
82eaf560 20714asinl ();
8f838781 20715 ;
20716 return 0;
20717}
20718_ACEOF
20719rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 20720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20721 (eval $ac_link) 2>conftest.er1
8f838781 20722 ac_status=$?
20723 grep -v '^ *+' conftest.er1 >conftest.err
20724 rm -f conftest.er1
20725 cat conftest.err >&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 20727 (exit $ac_status); } &&
20728 { ac_try='test -z "$ac_c_werror_flag"
20729 || test ! -s conftest.err'
20730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731 (eval $ac_try) 2>&5
20732 ac_status=$?
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; } &&
20735 { ac_try='test -s conftest$ac_exeext'
20736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737 (eval $ac_try) 2>&5
20738 ac_status=$?
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; }; then
d213114b 20741 ac_cv_lib_m_asinl=yes
8f838781 20742else
20743 echo "$as_me: failed program was:" >&5
20744sed 's/^/| /' conftest.$ac_ext >&5
20745
82eaf560 20746ac_cv_lib_m_asinl=no
8f838781 20747fi
82eaf560 20748rm -f conftest.err conftest.$ac_objext \
8f838781 20749 conftest$ac_exeext conftest.$ac_ext
20750LIBS=$ac_check_lib_save_LIBS
20751fi
82eaf560 20752echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinl" >&5
20753echo "${ECHO_T}$ac_cv_lib_m_asinl" >&6
d213114b 20754if test $ac_cv_lib_m_asinl = yes; then
8f838781 20755
20756cat >>confdefs.h <<\_ACEOF
d213114b 20757#define HAVE_ASINL 1
8f838781 20758_ACEOF
20759
20760fi
20761
82eaf560 20762echo "$as_me:$LINENO: checking for asinhf in -lm" >&5
20763echo $ECHO_N "checking for asinhf in -lm... $ECHO_C" >&6
d213114b 20764if test "${ac_cv_lib_m_asinhf+set}" = set; then
8f838781 20765 echo $ECHO_N "(cached) $ECHO_C" >&6
20766else
20767 ac_check_lib_save_LIBS=$LIBS
20768LIBS="-lm $LIBS"
b52ee437 20769if test x$gcc_no_link = xyes; then
20770 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20771echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20772 { (exit 1); exit 1; }; }
20773fi
8f838781 20774cat >conftest.$ac_ext <<_ACEOF
20775/* confdefs.h. */
20776_ACEOF
20777cat confdefs.h >>conftest.$ac_ext
20778cat >>conftest.$ac_ext <<_ACEOF
20779/* end confdefs.h. */
20780
82eaf560 20781/* Override any gcc2 internal prototype to avoid an error. */
8f838781 20782#ifdef __cplusplus
20783extern "C"
20784#endif
82eaf560 20785/* We use char because int might match the return type of a gcc2
20786 builtin and then its argument prototype would still apply. */
d213114b 20787char asinhf ();
8f838781 20788int
20789main ()
20790{
82eaf560 20791asinhf ();
8f838781 20792 ;
20793 return 0;
20794}
20795_ACEOF
20796rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 20797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20798 (eval $ac_link) 2>conftest.er1
8f838781 20799 ac_status=$?
20800 grep -v '^ *+' conftest.er1 >conftest.err
20801 rm -f conftest.er1
20802 cat conftest.err >&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 20804 (exit $ac_status); } &&
20805 { ac_try='test -z "$ac_c_werror_flag"
20806 || test ! -s conftest.err'
20807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20808 (eval $ac_try) 2>&5
20809 ac_status=$?
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); }; } &&
20812 { ac_try='test -s conftest$ac_exeext'
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; }; then
d213114b 20818 ac_cv_lib_m_asinhf=yes
8f838781 20819else
20820 echo "$as_me: failed program was:" >&5
20821sed 's/^/| /' conftest.$ac_ext >&5
20822
82eaf560 20823ac_cv_lib_m_asinhf=no
8f838781 20824fi
82eaf560 20825rm -f conftest.err conftest.$ac_objext \
8f838781 20826 conftest$ac_exeext conftest.$ac_ext
20827LIBS=$ac_check_lib_save_LIBS
20828fi
82eaf560 20829echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhf" >&5
20830echo "${ECHO_T}$ac_cv_lib_m_asinhf" >&6
d213114b 20831if test $ac_cv_lib_m_asinhf = yes; then
8f838781 20832
20833cat >>confdefs.h <<\_ACEOF
d213114b 20834#define HAVE_ASINHF 1
8f838781 20835_ACEOF
20836
20837fi
20838
82eaf560 20839echo "$as_me:$LINENO: checking for asinh in -lm" >&5
20840echo $ECHO_N "checking for asinh in -lm... $ECHO_C" >&6
d213114b 20841if test "${ac_cv_lib_m_asinh+set}" = set; then
8f838781 20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20843else
20844 ac_check_lib_save_LIBS=$LIBS
20845LIBS="-lm $LIBS"
b52ee437 20846if test x$gcc_no_link = xyes; then
20847 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20848echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20849 { (exit 1); exit 1; }; }
20850fi
8f838781 20851cat >conftest.$ac_ext <<_ACEOF
20852/* confdefs.h. */
20853_ACEOF
20854cat confdefs.h >>conftest.$ac_ext
20855cat >>conftest.$ac_ext <<_ACEOF
20856/* end confdefs.h. */
20857
82eaf560 20858/* Override any gcc2 internal prototype to avoid an error. */
8f838781 20859#ifdef __cplusplus
20860extern "C"
20861#endif
82eaf560 20862/* We use char because int might match the return type of a gcc2
20863 builtin and then its argument prototype would still apply. */
d213114b 20864char asinh ();
8f838781 20865int
20866main ()
20867{
82eaf560 20868asinh ();
8f838781 20869 ;
20870 return 0;
20871}
20872_ACEOF
20873rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 20874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20875 (eval $ac_link) 2>conftest.er1
8f838781 20876 ac_status=$?
20877 grep -v '^ *+' conftest.er1 >conftest.err
20878 rm -f conftest.er1
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 20881 (exit $ac_status); } &&
20882 { ac_try='test -z "$ac_c_werror_flag"
20883 || test ! -s conftest.err'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; } &&
20889 { ac_try='test -s conftest$ac_exeext'
20890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891 (eval $ac_try) 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
d213114b 20895 ac_cv_lib_m_asinh=yes
8f838781 20896else
20897 echo "$as_me: failed program was:" >&5
20898sed 's/^/| /' conftest.$ac_ext >&5
20899
82eaf560 20900ac_cv_lib_m_asinh=no
8f838781 20901fi
82eaf560 20902rm -f conftest.err conftest.$ac_objext \
8f838781 20903 conftest$ac_exeext conftest.$ac_ext
20904LIBS=$ac_check_lib_save_LIBS
20905fi
82eaf560 20906echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinh" >&5
20907echo "${ECHO_T}$ac_cv_lib_m_asinh" >&6
d213114b 20908if test $ac_cv_lib_m_asinh = yes; then
8f838781 20909
20910cat >>confdefs.h <<\_ACEOF
d213114b 20911#define HAVE_ASINH 1
8f838781 20912_ACEOF
20913
20914fi
20915
82eaf560 20916echo "$as_me:$LINENO: checking for asinhl in -lm" >&5
20917echo $ECHO_N "checking for asinhl in -lm... $ECHO_C" >&6
d213114b 20918if test "${ac_cv_lib_m_asinhl+set}" = set; then
8f838781 20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20920else
20921 ac_check_lib_save_LIBS=$LIBS
20922LIBS="-lm $LIBS"
b52ee437 20923if test x$gcc_no_link = xyes; then
20924 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20925echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20926 { (exit 1); exit 1; }; }
20927fi
8f838781 20928cat >conftest.$ac_ext <<_ACEOF
20929/* confdefs.h. */
20930_ACEOF
20931cat confdefs.h >>conftest.$ac_ext
20932cat >>conftest.$ac_ext <<_ACEOF
20933/* end confdefs.h. */
20934
82eaf560 20935/* Override any gcc2 internal prototype to avoid an error. */
8f838781 20936#ifdef __cplusplus
20937extern "C"
20938#endif
82eaf560 20939/* We use char because int might match the return type of a gcc2
20940 builtin and then its argument prototype would still apply. */
d213114b 20941char asinhl ();
8f838781 20942int
20943main ()
20944{
82eaf560 20945asinhl ();
8f838781 20946 ;
20947 return 0;
20948}
20949_ACEOF
20950rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 20951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20952 (eval $ac_link) 2>conftest.er1
8f838781 20953 ac_status=$?
20954 grep -v '^ *+' conftest.er1 >conftest.err
20955 rm -f conftest.er1
20956 cat conftest.err >&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 20958 (exit $ac_status); } &&
20959 { ac_try='test -z "$ac_c_werror_flag"
20960 || test ! -s conftest.err'
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20963 ac_status=$?
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; } &&
20966 { ac_try='test -s conftest$ac_exeext'
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20969 ac_status=$?
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
d213114b 20972 ac_cv_lib_m_asinhl=yes
8f838781 20973else
20974 echo "$as_me: failed program was:" >&5
20975sed 's/^/| /' conftest.$ac_ext >&5
20976
82eaf560 20977ac_cv_lib_m_asinhl=no
8f838781 20978fi
82eaf560 20979rm -f conftest.err conftest.$ac_objext \
8f838781 20980 conftest$ac_exeext conftest.$ac_ext
20981LIBS=$ac_check_lib_save_LIBS
20982fi
82eaf560 20983echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhl" >&5
20984echo "${ECHO_T}$ac_cv_lib_m_asinhl" >&6
d213114b 20985if test $ac_cv_lib_m_asinhl = yes; then
8f838781 20986
20987cat >>confdefs.h <<\_ACEOF
d213114b 20988#define HAVE_ASINHL 1
8f838781 20989_ACEOF
20990
20991fi
20992
82eaf560 20993echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
20994echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
d213114b 20995if test "${ac_cv_lib_m_atan2f+set}" = set; then
334f03a1 20996 echo $ECHO_N "(cached) $ECHO_C" >&6
20997else
20998 ac_check_lib_save_LIBS=$LIBS
20999LIBS="-lm $LIBS"
b52ee437 21000if test x$gcc_no_link = xyes; then
21001 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21002echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21003 { (exit 1); exit 1; }; }
21004fi
334f03a1 21005cat >conftest.$ac_ext <<_ACEOF
21006/* confdefs.h. */
21007_ACEOF
21008cat confdefs.h >>conftest.$ac_ext
21009cat >>conftest.$ac_ext <<_ACEOF
21010/* end confdefs.h. */
21011
82eaf560 21012/* Override any gcc2 internal prototype to avoid an error. */
334f03a1 21013#ifdef __cplusplus
21014extern "C"
21015#endif
82eaf560 21016/* We use char because int might match the return type of a gcc2
21017 builtin and then its argument prototype would still apply. */
d213114b 21018char atan2f ();
334f03a1 21019int
21020main ()
21021{
82eaf560 21022atan2f ();
334f03a1 21023 ;
21024 return 0;
21025}
21026_ACEOF
21027rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 21028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21029 (eval $ac_link) 2>conftest.er1
334f03a1 21030 ac_status=$?
21031 grep -v '^ *+' conftest.er1 >conftest.err
21032 rm -f conftest.er1
ff4425cf 21033 cat conftest.err >&5
334f03a1 21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 21035 (exit $ac_status); } &&
21036 { ac_try='test -z "$ac_c_werror_flag"
21037 || test ! -s conftest.err'
21038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039 (eval $ac_try) 2>&5
21040 ac_status=$?
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; } &&
21043 { ac_try='test -s conftest$ac_exeext'
21044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21045 (eval $ac_try) 2>&5
21046 ac_status=$?
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); }; }; then
d213114b 21049 ac_cv_lib_m_atan2f=yes
334f03a1 21050else
21051 echo "$as_me: failed program was:" >&5
21052sed 's/^/| /' conftest.$ac_ext >&5
21053
82eaf560 21054ac_cv_lib_m_atan2f=no
334f03a1 21055fi
82eaf560 21056rm -f conftest.err conftest.$ac_objext \
334f03a1 21057 conftest$ac_exeext conftest.$ac_ext
21058LIBS=$ac_check_lib_save_LIBS
21059fi
82eaf560 21060echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
21061echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
d213114b 21062if test $ac_cv_lib_m_atan2f = yes; then
334f03a1 21063
21064cat >>confdefs.h <<\_ACEOF
d213114b 21065#define HAVE_ATAN2F 1
334f03a1 21066_ACEOF
21067
21068fi
21069
82eaf560 21070echo "$as_me:$LINENO: checking for atan2 in -lm" >&5
21071echo $ECHO_N "checking for atan2 in -lm... $ECHO_C" >&6
d213114b 21072if test "${ac_cv_lib_m_atan2+set}" = set; then
8f838781 21073 echo $ECHO_N "(cached) $ECHO_C" >&6
21074else
21075 ac_check_lib_save_LIBS=$LIBS
21076LIBS="-lm $LIBS"
b52ee437 21077if test x$gcc_no_link = xyes; then
21078 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21079echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21080 { (exit 1); exit 1; }; }
21081fi
8f838781 21082cat >conftest.$ac_ext <<_ACEOF
21083/* confdefs.h. */
21084_ACEOF
21085cat confdefs.h >>conftest.$ac_ext
21086cat >>conftest.$ac_ext <<_ACEOF
21087/* end confdefs.h. */
21088
82eaf560 21089/* Override any gcc2 internal prototype to avoid an error. */
8f838781 21090#ifdef __cplusplus
21091extern "C"
21092#endif
82eaf560 21093/* We use char because int might match the return type of a gcc2
21094 builtin and then its argument prototype would still apply. */
d213114b 21095char atan2 ();
8f838781 21096int
21097main ()
21098{
82eaf560 21099atan2 ();
8f838781 21100 ;
21101 return 0;
21102}
21103_ACEOF
21104rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 21105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21106 (eval $ac_link) 2>conftest.er1
21107 ac_status=$?
21108 grep -v '^ *+' conftest.er1 >conftest.err
21109 rm -f conftest.er1
21110 cat conftest.err >&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } &&
21113 { ac_try='test -z "$ac_c_werror_flag"
21114 || test ! -s conftest.err'
21115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116 (eval $ac_try) 2>&5
21117 ac_status=$?
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); }; } &&
21120 { ac_try='test -s conftest$ac_exeext'
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
8f838781 21123 ac_status=$?
8f838781 21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 21125 (exit $ac_status); }; }; then
d213114b 21126 ac_cv_lib_m_atan2=yes
8f838781 21127else
21128 echo "$as_me: failed program was:" >&5
21129sed 's/^/| /' conftest.$ac_ext >&5
21130
82eaf560 21131ac_cv_lib_m_atan2=no
8f838781 21132fi
82eaf560 21133rm -f conftest.err conftest.$ac_objext \
8f838781 21134 conftest$ac_exeext conftest.$ac_ext
21135LIBS=$ac_check_lib_save_LIBS
21136fi
82eaf560 21137echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2" >&5
21138echo "${ECHO_T}$ac_cv_lib_m_atan2" >&6
d213114b 21139if test $ac_cv_lib_m_atan2 = yes; then
8f838781 21140
21141cat >>confdefs.h <<\_ACEOF
d213114b 21142#define HAVE_ATAN2 1
8f838781 21143_ACEOF
21144
21145fi
21146
82eaf560 21147echo "$as_me:$LINENO: checking for atan2l in -lm" >&5
21148echo $ECHO_N "checking for atan2l in -lm... $ECHO_C" >&6
d213114b 21149if test "${ac_cv_lib_m_atan2l+set}" = set; then
8f838781 21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21151else
21152 ac_check_lib_save_LIBS=$LIBS
21153LIBS="-lm $LIBS"
b52ee437 21154if test x$gcc_no_link = xyes; then
21155 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21156echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21157 { (exit 1); exit 1; }; }
21158fi
8f838781 21159cat >conftest.$ac_ext <<_ACEOF
21160/* confdefs.h. */
21161_ACEOF
21162cat confdefs.h >>conftest.$ac_ext
21163cat >>conftest.$ac_ext <<_ACEOF
21164/* end confdefs.h. */
21165
82eaf560 21166/* Override any gcc2 internal prototype to avoid an error. */
8f838781 21167#ifdef __cplusplus
21168extern "C"
21169#endif
82eaf560 21170/* We use char because int might match the return type of a gcc2
21171 builtin and then its argument prototype would still apply. */
d213114b 21172char atan2l ();
8f838781 21173int
21174main ()
21175{
82eaf560 21176atan2l ();
8f838781 21177 ;
21178 return 0;
21179}
21180_ACEOF
21181rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 21182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21183 (eval $ac_link) 2>conftest.er1
8f838781 21184 ac_status=$?
21185 grep -v '^ *+' conftest.er1 >conftest.err
21186 rm -f conftest.er1
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 21189 (exit $ac_status); } &&
21190 { ac_try='test -z "$ac_c_werror_flag"
21191 || test ! -s conftest.err'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try='test -s conftest$ac_exeext'
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
d213114b 21203 ac_cv_lib_m_atan2l=yes
8f838781 21204else
21205 echo "$as_me: failed program was:" >&5
21206sed 's/^/| /' conftest.$ac_ext >&5
21207
82eaf560 21208ac_cv_lib_m_atan2l=no
8f838781 21209fi
82eaf560 21210rm -f conftest.err conftest.$ac_objext \
8f838781 21211 conftest$ac_exeext conftest.$ac_ext
21212LIBS=$ac_check_lib_save_LIBS
21213fi
82eaf560 21214echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2l" >&5
21215echo "${ECHO_T}$ac_cv_lib_m_atan2l" >&6
d213114b 21216if test $ac_cv_lib_m_atan2l = yes; then
8f838781 21217
21218cat >>confdefs.h <<\_ACEOF
d213114b 21219#define HAVE_ATAN2L 1
8f838781 21220_ACEOF
21221
21222fi
21223
82eaf560 21224echo "$as_me:$LINENO: checking for atanf in -lm" >&5
21225echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
d213114b 21226if test "${ac_cv_lib_m_atanf+set}" = set; then
8f838781 21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21228else
21229 ac_check_lib_save_LIBS=$LIBS
21230LIBS="-lm $LIBS"
b52ee437 21231if test x$gcc_no_link = xyes; then
21232 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21233echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21234 { (exit 1); exit 1; }; }
21235fi
8f838781 21236cat >conftest.$ac_ext <<_ACEOF
21237/* confdefs.h. */
21238_ACEOF
21239cat confdefs.h >>conftest.$ac_ext
21240cat >>conftest.$ac_ext <<_ACEOF
21241/* end confdefs.h. */
21242
82eaf560 21243/* Override any gcc2 internal prototype to avoid an error. */
8f838781 21244#ifdef __cplusplus
21245extern "C"
21246#endif
82eaf560 21247/* We use char because int might match the return type of a gcc2
21248 builtin and then its argument prototype would still apply. */
d213114b 21249char atanf ();
8f838781 21250int
21251main ()
21252{
82eaf560 21253atanf ();
8f838781 21254 ;
21255 return 0;
21256}
21257_ACEOF
21258rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 21259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21260 (eval $ac_link) 2>conftest.er1
8f838781 21261 ac_status=$?
21262 grep -v '^ *+' conftest.er1 >conftest.err
21263 rm -f conftest.er1
21264 cat conftest.err >&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 21266 (exit $ac_status); } &&
21267 { ac_try='test -z "$ac_c_werror_flag"
21268 || test ! -s conftest.err'
21269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270 (eval $ac_try) 2>&5
21271 ac_status=$?
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; } &&
21274 { ac_try='test -s conftest$ac_exeext'
21275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276 (eval $ac_try) 2>&5
21277 ac_status=$?
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; }; then
d213114b 21280 ac_cv_lib_m_atanf=yes
8f838781 21281else
21282 echo "$as_me: failed program was:" >&5
21283sed 's/^/| /' conftest.$ac_ext >&5
21284
82eaf560 21285ac_cv_lib_m_atanf=no
8f838781 21286fi
82eaf560 21287rm -f conftest.err conftest.$ac_objext \
8f838781 21288 conftest$ac_exeext conftest.$ac_ext
21289LIBS=$ac_check_lib_save_LIBS
21290fi
82eaf560 21291echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
21292echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
d213114b 21293if test $ac_cv_lib_m_atanf = yes; then
8f838781 21294
21295cat >>confdefs.h <<\_ACEOF
d213114b 21296#define HAVE_ATANF 1
8f838781 21297_ACEOF
21298
21299fi
21300
82eaf560 21301echo "$as_me:$LINENO: checking for atan in -lm" >&5
21302echo $ECHO_N "checking for atan in -lm... $ECHO_C" >&6
d213114b 21303if test "${ac_cv_lib_m_atan+set}" = set; then
8f838781 21304 echo $ECHO_N "(cached) $ECHO_C" >&6
21305else
21306 ac_check_lib_save_LIBS=$LIBS
21307LIBS="-lm $LIBS"
b52ee437 21308if test x$gcc_no_link = xyes; then
21309 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21310echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21311 { (exit 1); exit 1; }; }
21312fi
8f838781 21313cat >conftest.$ac_ext <<_ACEOF
21314/* confdefs.h. */
21315_ACEOF
21316cat confdefs.h >>conftest.$ac_ext
21317cat >>conftest.$ac_ext <<_ACEOF
21318/* end confdefs.h. */
21319
82eaf560 21320/* Override any gcc2 internal prototype to avoid an error. */
8f838781 21321#ifdef __cplusplus
21322extern "C"
21323#endif
82eaf560 21324/* We use char because int might match the return type of a gcc2
21325 builtin and then its argument prototype would still apply. */
d213114b 21326char atan ();
8f838781 21327int
21328main ()
21329{
82eaf560 21330atan ();
8f838781 21331 ;
21332 return 0;
21333}
21334_ACEOF
21335rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 21336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21337 (eval $ac_link) 2>conftest.er1
8f838781 21338 ac_status=$?
21339 grep -v '^ *+' conftest.er1 >conftest.err
21340 rm -f conftest.er1
21341 cat conftest.err >&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 21343 (exit $ac_status); } &&
21344 { ac_try='test -z "$ac_c_werror_flag"
21345 || test ! -s conftest.err'
21346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347 (eval $ac_try) 2>&5
21348 ac_status=$?
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; } &&
21351 { ac_try='test -s conftest$ac_exeext'
21352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21353 (eval $ac_try) 2>&5
21354 ac_status=$?
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); }; }; then
d213114b 21357 ac_cv_lib_m_atan=yes
8f838781 21358else
21359 echo "$as_me: failed program was:" >&5
21360sed 's/^/| /' conftest.$ac_ext >&5
21361
82eaf560 21362ac_cv_lib_m_atan=no
8f838781 21363fi
82eaf560 21364rm -f conftest.err conftest.$ac_objext \
8f838781 21365 conftest$ac_exeext conftest.$ac_ext
21366LIBS=$ac_check_lib_save_LIBS
21367fi
82eaf560 21368echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan" >&5
21369echo "${ECHO_T}$ac_cv_lib_m_atan" >&6
d213114b 21370if test $ac_cv_lib_m_atan = yes; then
8f838781 21371
21372cat >>confdefs.h <<\_ACEOF
d213114b 21373#define HAVE_ATAN 1
8f838781 21374_ACEOF
21375
21376fi
21377
82eaf560 21378echo "$as_me:$LINENO: checking for atanl in -lm" >&5
21379echo $ECHO_N "checking for atanl in -lm... $ECHO_C" >&6
d213114b 21380if test "${ac_cv_lib_m_atanl+set}" = set; then
8f838781 21381 echo $ECHO_N "(cached) $ECHO_C" >&6
21382else
21383 ac_check_lib_save_LIBS=$LIBS
21384LIBS="-lm $LIBS"
b52ee437 21385if test x$gcc_no_link = xyes; then
21386 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21387echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21388 { (exit 1); exit 1; }; }
21389fi
8f838781 21390cat >conftest.$ac_ext <<_ACEOF
21391/* confdefs.h. */
21392_ACEOF
21393cat confdefs.h >>conftest.$ac_ext
21394cat >>conftest.$ac_ext <<_ACEOF
21395/* end confdefs.h. */
21396
82eaf560 21397/* Override any gcc2 internal prototype to avoid an error. */
8f838781 21398#ifdef __cplusplus
21399extern "C"
21400#endif
82eaf560 21401/* We use char because int might match the return type of a gcc2
21402 builtin and then its argument prototype would still apply. */
d213114b 21403char atanl ();
8f838781 21404int
21405main ()
21406{
82eaf560 21407atanl ();
8f838781 21408 ;
21409 return 0;
21410}
21411_ACEOF
21412rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 21413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21414 (eval $ac_link) 2>conftest.er1
8f838781 21415 ac_status=$?
21416 grep -v '^ *+' conftest.er1 >conftest.err
21417 rm -f conftest.er1
21418 cat conftest.err >&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 21420 (exit $ac_status); } &&
21421 { ac_try='test -z "$ac_c_werror_flag"
21422 || test ! -s conftest.err'
21423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21424 (eval $ac_try) 2>&5
21425 ac_status=$?
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); }; } &&
21428 { ac_try='test -s conftest$ac_exeext'
21429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430 (eval $ac_try) 2>&5
21431 ac_status=$?
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); }; }; then
d213114b 21434 ac_cv_lib_m_atanl=yes
8f838781 21435else
21436 echo "$as_me: failed program was:" >&5
21437sed 's/^/| /' conftest.$ac_ext >&5
21438
82eaf560 21439ac_cv_lib_m_atanl=no
8f838781 21440fi
82eaf560 21441rm -f conftest.err conftest.$ac_objext \
8f838781 21442 conftest$ac_exeext conftest.$ac_ext
21443LIBS=$ac_check_lib_save_LIBS
21444fi
82eaf560 21445echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanl" >&5
21446echo "${ECHO_T}$ac_cv_lib_m_atanl" >&6
d213114b 21447if test $ac_cv_lib_m_atanl = yes; then
8f838781 21448
21449cat >>confdefs.h <<\_ACEOF
d213114b 21450#define HAVE_ATANL 1
8f838781 21451_ACEOF
21452
21453fi
21454
82eaf560 21455echo "$as_me:$LINENO: checking for atanhf in -lm" >&5
21456echo $ECHO_N "checking for atanhf in -lm... $ECHO_C" >&6
d213114b 21457if test "${ac_cv_lib_m_atanhf+set}" = set; then
14c3c235 21458 echo $ECHO_N "(cached) $ECHO_C" >&6
21459else
21460 ac_check_lib_save_LIBS=$LIBS
21461LIBS="-lm $LIBS"
b52ee437 21462if test x$gcc_no_link = xyes; then
21463 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21464echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21465 { (exit 1); exit 1; }; }
21466fi
14c3c235 21467cat >conftest.$ac_ext <<_ACEOF
21468/* confdefs.h. */
21469_ACEOF
21470cat confdefs.h >>conftest.$ac_ext
21471cat >>conftest.$ac_ext <<_ACEOF
21472/* end confdefs.h. */
21473
82eaf560 21474/* Override any gcc2 internal prototype to avoid an error. */
14c3c235 21475#ifdef __cplusplus
21476extern "C"
21477#endif
82eaf560 21478/* We use char because int might match the return type of a gcc2
21479 builtin and then its argument prototype would still apply. */
d213114b 21480char atanhf ();
14c3c235 21481int
21482main ()
21483{
82eaf560 21484atanhf ();
14c3c235 21485 ;
21486 return 0;
21487}
21488_ACEOF
21489rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 21490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21491 (eval $ac_link) 2>conftest.er1
14c3c235 21492 ac_status=$?
21493 grep -v '^ *+' conftest.er1 >conftest.err
21494 rm -f conftest.er1
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 21497 (exit $ac_status); } &&
21498 { ac_try='test -z "$ac_c_werror_flag"
21499 || test ! -s conftest.err'
21500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21501 (eval $ac_try) 2>&5
21502 ac_status=$?
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); }; } &&
21505 { ac_try='test -s conftest$ac_exeext'
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; }; then
d213114b 21511 ac_cv_lib_m_atanhf=yes
14c3c235 21512else
21513 echo "$as_me: failed program was:" >&5
21514sed 's/^/| /' conftest.$ac_ext >&5
21515
82eaf560 21516ac_cv_lib_m_atanhf=no
14c3c235 21517fi
82eaf560 21518rm -f conftest.err conftest.$ac_objext \
14c3c235 21519 conftest$ac_exeext conftest.$ac_ext
21520LIBS=$ac_check_lib_save_LIBS
21521fi
82eaf560 21522echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhf" >&5
21523echo "${ECHO_T}$ac_cv_lib_m_atanhf" >&6
d213114b 21524if test $ac_cv_lib_m_atanhf = yes; then
14c3c235 21525
21526cat >>confdefs.h <<\_ACEOF
d213114b 21527#define HAVE_ATANHF 1
14c3c235 21528_ACEOF
21529
21530fi
21531
82eaf560 21532echo "$as_me:$LINENO: checking for atanh in -lm" >&5
21533echo $ECHO_N "checking for atanh in -lm... $ECHO_C" >&6
d213114b 21534if test "${ac_cv_lib_m_atanh+set}" = set; then
8f838781 21535 echo $ECHO_N "(cached) $ECHO_C" >&6
21536else
21537 ac_check_lib_save_LIBS=$LIBS
21538LIBS="-lm $LIBS"
b52ee437 21539if test x$gcc_no_link = xyes; then
21540 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21541echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21542 { (exit 1); exit 1; }; }
21543fi
8f838781 21544cat >conftest.$ac_ext <<_ACEOF
21545/* confdefs.h. */
21546_ACEOF
21547cat confdefs.h >>conftest.$ac_ext
21548cat >>conftest.$ac_ext <<_ACEOF
21549/* end confdefs.h. */
21550
82eaf560 21551/* Override any gcc2 internal prototype to avoid an error. */
8f838781 21552#ifdef __cplusplus
21553extern "C"
21554#endif
82eaf560 21555/* We use char because int might match the return type of a gcc2
21556 builtin and then its argument prototype would still apply. */
d213114b 21557char atanh ();
8f838781 21558int
21559main ()
21560{
82eaf560 21561atanh ();
8f838781 21562 ;
21563 return 0;
21564}
21565_ACEOF
21566rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 21567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21568 (eval $ac_link) 2>conftest.er1
8f838781 21569 ac_status=$?
21570 grep -v '^ *+' conftest.er1 >conftest.err
21571 rm -f conftest.er1
21572 cat conftest.err >&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 21574 (exit $ac_status); } &&
21575 { ac_try='test -z "$ac_c_werror_flag"
21576 || test ! -s conftest.err'
21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578 (eval $ac_try) 2>&5
21579 ac_status=$?
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; } &&
21582 { ac_try='test -s conftest$ac_exeext'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21585 ac_status=$?
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; }; then
d213114b 21588 ac_cv_lib_m_atanh=yes
8f838781 21589else
21590 echo "$as_me: failed program was:" >&5
21591sed 's/^/| /' conftest.$ac_ext >&5
21592
82eaf560 21593ac_cv_lib_m_atanh=no
8f838781 21594fi
82eaf560 21595rm -f conftest.err conftest.$ac_objext \
8f838781 21596 conftest$ac_exeext conftest.$ac_ext
21597LIBS=$ac_check_lib_save_LIBS
21598fi
82eaf560 21599echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanh" >&5
21600echo "${ECHO_T}$ac_cv_lib_m_atanh" >&6
d213114b 21601if test $ac_cv_lib_m_atanh = yes; then
8f838781 21602
21603cat >>confdefs.h <<\_ACEOF
d213114b 21604#define HAVE_ATANH 1
8f838781 21605_ACEOF
21606
21607fi
21608
82eaf560 21609echo "$as_me:$LINENO: checking for atanhl in -lm" >&5
21610echo $ECHO_N "checking for atanhl in -lm... $ECHO_C" >&6
d213114b 21611if test "${ac_cv_lib_m_atanhl+set}" = set; then
8f838781 21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21613else
21614 ac_check_lib_save_LIBS=$LIBS
21615LIBS="-lm $LIBS"
b52ee437 21616if test x$gcc_no_link = xyes; then
21617 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21618echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21619 { (exit 1); exit 1; }; }
21620fi
8f838781 21621cat >conftest.$ac_ext <<_ACEOF
21622/* confdefs.h. */
21623_ACEOF
21624cat confdefs.h >>conftest.$ac_ext
21625cat >>conftest.$ac_ext <<_ACEOF
21626/* end confdefs.h. */
21627
82eaf560 21628/* Override any gcc2 internal prototype to avoid an error. */
8f838781 21629#ifdef __cplusplus
21630extern "C"
21631#endif
82eaf560 21632/* We use char because int might match the return type of a gcc2
21633 builtin and then its argument prototype would still apply. */
d213114b 21634char atanhl ();
8f838781 21635int
21636main ()
21637{
82eaf560 21638atanhl ();
8f838781 21639 ;
21640 return 0;
21641}
21642_ACEOF
21643rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 21644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21645 (eval $ac_link) 2>conftest.er1
8f838781 21646 ac_status=$?
21647 grep -v '^ *+' conftest.er1 >conftest.err
21648 rm -f conftest.er1
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 21651 (exit $ac_status); } &&
21652 { ac_try='test -z "$ac_c_werror_flag"
21653 || test ! -s conftest.err'
21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655 (eval $ac_try) 2>&5
21656 ac_status=$?
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; } &&
21659 { ac_try='test -s conftest$ac_exeext'
21660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661 (eval $ac_try) 2>&5
21662 ac_status=$?
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); }; }; then
d213114b 21665 ac_cv_lib_m_atanhl=yes
8f838781 21666else
21667 echo "$as_me: failed program was:" >&5
21668sed 's/^/| /' conftest.$ac_ext >&5
21669
82eaf560 21670ac_cv_lib_m_atanhl=no
8f838781 21671fi
82eaf560 21672rm -f conftest.err conftest.$ac_objext \
8f838781 21673 conftest$ac_exeext conftest.$ac_ext
21674LIBS=$ac_check_lib_save_LIBS
21675fi
82eaf560 21676echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhl" >&5
21677echo "${ECHO_T}$ac_cv_lib_m_atanhl" >&6
d213114b 21678if test $ac_cv_lib_m_atanhl = yes; then
8f838781 21679
21680cat >>confdefs.h <<\_ACEOF
d213114b 21681#define HAVE_ATANHL 1
8f838781 21682_ACEOF
21683
21684fi
21685
82eaf560 21686echo "$as_me:$LINENO: checking for cargf in -lm" >&5
21687echo $ECHO_N "checking for cargf in -lm... $ECHO_C" >&6
d213114b 21688if test "${ac_cv_lib_m_cargf+set}" = set; then
a2d7a3ff 21689 echo $ECHO_N "(cached) $ECHO_C" >&6
21690else
21691 ac_check_lib_save_LIBS=$LIBS
21692LIBS="-lm $LIBS"
b52ee437 21693if test x$gcc_no_link = xyes; then
21694 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21695echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21696 { (exit 1); exit 1; }; }
21697fi
a2d7a3ff 21698cat >conftest.$ac_ext <<_ACEOF
21699/* confdefs.h. */
21700_ACEOF
21701cat confdefs.h >>conftest.$ac_ext
21702cat >>conftest.$ac_ext <<_ACEOF
21703/* end confdefs.h. */
21704
82eaf560 21705/* Override any gcc2 internal prototype to avoid an error. */
a2d7a3ff 21706#ifdef __cplusplus
21707extern "C"
21708#endif
82eaf560 21709/* We use char because int might match the return type of a gcc2
21710 builtin and then its argument prototype would still apply. */
d213114b 21711char cargf ();
a2d7a3ff 21712int
21713main ()
21714{
82eaf560 21715cargf ();
a2d7a3ff 21716 ;
21717 return 0;
21718}
21719_ACEOF
21720rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 21721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21722 (eval $ac_link) 2>conftest.er1
a2d7a3ff 21723 ac_status=$?
21724 grep -v '^ *+' conftest.er1 >conftest.err
21725 rm -f conftest.er1
21726 cat conftest.err >&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 21728 (exit $ac_status); } &&
21729 { ac_try='test -z "$ac_c_werror_flag"
21730 || test ! -s conftest.err'
21731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732 (eval $ac_try) 2>&5
21733 ac_status=$?
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); }; } &&
21736 { ac_try='test -s conftest$ac_exeext'
21737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21738 (eval $ac_try) 2>&5
21739 ac_status=$?
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); }; }; then
d213114b 21742 ac_cv_lib_m_cargf=yes
a2d7a3ff 21743else
21744 echo "$as_me: failed program was:" >&5
21745sed 's/^/| /' conftest.$ac_ext >&5
21746
82eaf560 21747ac_cv_lib_m_cargf=no
a2d7a3ff 21748fi
82eaf560 21749rm -f conftest.err conftest.$ac_objext \
a2d7a3ff 21750 conftest$ac_exeext conftest.$ac_ext
21751LIBS=$ac_check_lib_save_LIBS
21752fi
82eaf560 21753echo "$as_me:$LINENO: result: $ac_cv_lib_m_cargf" >&5
21754echo "${ECHO_T}$ac_cv_lib_m_cargf" >&6
d213114b 21755if test $ac_cv_lib_m_cargf = yes; then
a2d7a3ff 21756
21757cat >>confdefs.h <<\_ACEOF
d213114b 21758#define HAVE_CARGF 1
a2d7a3ff 21759_ACEOF
21760
21761fi
21762
82eaf560 21763echo "$as_me:$LINENO: checking for carg in -lm" >&5
21764echo $ECHO_N "checking for carg in -lm... $ECHO_C" >&6
d213114b 21765if test "${ac_cv_lib_m_carg+set}" = set; then
a31bd8a4 21766 echo $ECHO_N "(cached) $ECHO_C" >&6
21767else
21768 ac_check_lib_save_LIBS=$LIBS
21769LIBS="-lm $LIBS"
b52ee437 21770if test x$gcc_no_link = xyes; then
21771 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21772echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21773 { (exit 1); exit 1; }; }
21774fi
a31bd8a4 21775cat >conftest.$ac_ext <<_ACEOF
21776/* confdefs.h. */
21777_ACEOF
21778cat confdefs.h >>conftest.$ac_ext
21779cat >>conftest.$ac_ext <<_ACEOF
21780/* end confdefs.h. */
21781
82eaf560 21782/* Override any gcc2 internal prototype to avoid an error. */
a31bd8a4 21783#ifdef __cplusplus
21784extern "C"
21785#endif
82eaf560 21786/* We use char because int might match the return type of a gcc2
21787 builtin and then its argument prototype would still apply. */
d213114b 21788char carg ();
8f838781 21789int
21790main ()
21791{
82eaf560 21792carg ();
8f838781 21793 ;
21794 return 0;
21795}
21796_ACEOF
21797rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 21798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21799 (eval $ac_link) 2>conftest.er1
8f838781 21800 ac_status=$?
21801 grep -v '^ *+' conftest.er1 >conftest.err
21802 rm -f conftest.er1
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 21805 (exit $ac_status); } &&
21806 { ac_try='test -z "$ac_c_werror_flag"
21807 || test ! -s conftest.err'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21810 ac_status=$?
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; } &&
21813 { ac_try='test -s conftest$ac_exeext'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21816 ac_status=$?
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; }; then
d213114b 21819 ac_cv_lib_m_carg=yes
8f838781 21820else
21821 echo "$as_me: failed program was:" >&5
21822sed 's/^/| /' conftest.$ac_ext >&5
21823
82eaf560 21824ac_cv_lib_m_carg=no
8f838781 21825fi
82eaf560 21826rm -f conftest.err conftest.$ac_objext \
8f838781 21827 conftest$ac_exeext conftest.$ac_ext
21828LIBS=$ac_check_lib_save_LIBS
21829fi
82eaf560 21830echo "$as_me:$LINENO: result: $ac_cv_lib_m_carg" >&5
21831echo "${ECHO_T}$ac_cv_lib_m_carg" >&6
d213114b 21832if test $ac_cv_lib_m_carg = yes; then
8f838781 21833
21834cat >>confdefs.h <<\_ACEOF
d213114b 21835#define HAVE_CARG 1
8f838781 21836_ACEOF
21837
21838fi
21839
82eaf560 21840echo "$as_me:$LINENO: checking for cargl in -lm" >&5
21841echo $ECHO_N "checking for cargl in -lm... $ECHO_C" >&6
d213114b 21842if test "${ac_cv_lib_m_cargl+set}" = set; then
8f838781 21843 echo $ECHO_N "(cached) $ECHO_C" >&6
21844else
21845 ac_check_lib_save_LIBS=$LIBS
21846LIBS="-lm $LIBS"
b52ee437 21847if test x$gcc_no_link = xyes; then
21848 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21849echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21850 { (exit 1); exit 1; }; }
21851fi
8f838781 21852cat >conftest.$ac_ext <<_ACEOF
21853/* confdefs.h. */
21854_ACEOF
21855cat confdefs.h >>conftest.$ac_ext
21856cat >>conftest.$ac_ext <<_ACEOF
21857/* end confdefs.h. */
21858
82eaf560 21859/* Override any gcc2 internal prototype to avoid an error. */
8f838781 21860#ifdef __cplusplus
21861extern "C"
21862#endif
82eaf560 21863/* We use char because int might match the return type of a gcc2
21864 builtin and then its argument prototype would still apply. */
d213114b 21865char cargl ();
a31bd8a4 21866int
21867main ()
21868{
82eaf560 21869cargl ();
a31bd8a4 21870 ;
21871 return 0;
21872}
21873_ACEOF
21874rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 21875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21876 (eval $ac_link) 2>conftest.er1
a31bd8a4 21877 ac_status=$?
21878 grep -v '^ *+' conftest.er1 >conftest.err
21879 rm -f conftest.er1
21880 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 21882 (exit $ac_status); } &&
21883 { ac_try='test -z "$ac_c_werror_flag"
21884 || test ! -s conftest.err'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } &&
21890 { ac_try='test -s conftest$ac_exeext'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21893 ac_status=$?
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }; then
d213114b 21896 ac_cv_lib_m_cargl=yes
a31bd8a4 21897else
21898 echo "$as_me: failed program was:" >&5
21899sed 's/^/| /' conftest.$ac_ext >&5
21900
82eaf560 21901ac_cv_lib_m_cargl=no
a31bd8a4 21902fi
82eaf560 21903rm -f conftest.err conftest.$ac_objext \
a31bd8a4 21904 conftest$ac_exeext conftest.$ac_ext
21905LIBS=$ac_check_lib_save_LIBS
21906fi
82eaf560 21907echo "$as_me:$LINENO: result: $ac_cv_lib_m_cargl" >&5
21908echo "${ECHO_T}$ac_cv_lib_m_cargl" >&6
d213114b 21909if test $ac_cv_lib_m_cargl = yes; then
a31bd8a4 21910
21911cat >>confdefs.h <<\_ACEOF
d213114b 21912#define HAVE_CARGL 1
a31bd8a4 21913_ACEOF
21914
21915fi
21916
82eaf560 21917echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
21918echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
d213114b 21919if test "${ac_cv_lib_m_ceilf+set}" = set; then
a31bd8a4 21920 echo $ECHO_N "(cached) $ECHO_C" >&6
21921else
21922 ac_check_lib_save_LIBS=$LIBS
21923LIBS="-lm $LIBS"
b52ee437 21924if test x$gcc_no_link = xyes; then
21925 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21926echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21927 { (exit 1); exit 1; }; }
21928fi
a31bd8a4 21929cat >conftest.$ac_ext <<_ACEOF
21930/* confdefs.h. */
21931_ACEOF
21932cat confdefs.h >>conftest.$ac_ext
21933cat >>conftest.$ac_ext <<_ACEOF
21934/* end confdefs.h. */
21935
82eaf560 21936/* Override any gcc2 internal prototype to avoid an error. */
a31bd8a4 21937#ifdef __cplusplus
21938extern "C"
21939#endif
82eaf560 21940/* We use char because int might match the return type of a gcc2
21941 builtin and then its argument prototype would still apply. */
d213114b 21942char ceilf ();
a31bd8a4 21943int
21944main ()
21945{
82eaf560 21946ceilf ();
a31bd8a4 21947 ;
21948 return 0;
21949}
21950_ACEOF
21951rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 21952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21953 (eval $ac_link) 2>conftest.er1
a31bd8a4 21954 ac_status=$?
21955 grep -v '^ *+' conftest.er1 >conftest.err
21956 rm -f conftest.er1
21957 cat conftest.err >&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 21959 (exit $ac_status); } &&
21960 { ac_try='test -z "$ac_c_werror_flag"
21961 || test ! -s conftest.err'
21962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963 (eval $ac_try) 2>&5
21964 ac_status=$?
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); }; } &&
21967 { ac_try='test -s conftest$ac_exeext'
21968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21970 ac_status=$?
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; }; then
d213114b 21973 ac_cv_lib_m_ceilf=yes
a31bd8a4 21974else
21975 echo "$as_me: failed program was:" >&5
21976sed 's/^/| /' conftest.$ac_ext >&5
21977
82eaf560 21978ac_cv_lib_m_ceilf=no
a31bd8a4 21979fi
82eaf560 21980rm -f conftest.err conftest.$ac_objext \
a31bd8a4 21981 conftest$ac_exeext conftest.$ac_ext
21982LIBS=$ac_check_lib_save_LIBS
21983fi
82eaf560 21984echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
21985echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
d213114b 21986if test $ac_cv_lib_m_ceilf = yes; then
a31bd8a4 21987
21988cat >>confdefs.h <<\_ACEOF
d213114b 21989#define HAVE_CEILF 1
a31bd8a4 21990_ACEOF
21991
21992fi
21993
82eaf560 21994echo "$as_me:$LINENO: checking for ceil in -lm" >&5
21995echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6
d213114b 21996if test "${ac_cv_lib_m_ceil+set}" = set; then
97844b15 21997 echo $ECHO_N "(cached) $ECHO_C" >&6
21998else
21999 ac_check_lib_save_LIBS=$LIBS
22000LIBS="-lm $LIBS"
b52ee437 22001if test x$gcc_no_link = xyes; then
22002 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22003echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22004 { (exit 1); exit 1; }; }
22005fi
97844b15 22006cat >conftest.$ac_ext <<_ACEOF
22007/* confdefs.h. */
22008_ACEOF
22009cat confdefs.h >>conftest.$ac_ext
22010cat >>conftest.$ac_ext <<_ACEOF
22011/* end confdefs.h. */
22012
82eaf560 22013/* Override any gcc2 internal prototype to avoid an error. */
97844b15 22014#ifdef __cplusplus
22015extern "C"
22016#endif
82eaf560 22017/* We use char because int might match the return type of a gcc2
22018 builtin and then its argument prototype would still apply. */
d213114b 22019char ceil ();
97844b15 22020int
22021main ()
22022{
82eaf560 22023ceil ();
97844b15 22024 ;
22025 return 0;
22026}
22027_ACEOF
22028rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 22029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22030 (eval $ac_link) 2>conftest.er1
97844b15 22031 ac_status=$?
22032 grep -v '^ *+' conftest.er1 >conftest.err
22033 rm -f conftest.er1
22034 cat conftest.err >&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 22036 (exit $ac_status); } &&
22037 { ac_try='test -z "$ac_c_werror_flag"
22038 || test ! -s conftest.err'
22039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22040 (eval $ac_try) 2>&5
22041 ac_status=$?
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); }; } &&
22044 { ac_try='test -s conftest$ac_exeext'
22045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046 (eval $ac_try) 2>&5
22047 ac_status=$?
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); }; }; then
d213114b 22050 ac_cv_lib_m_ceil=yes
97844b15 22051else
22052 echo "$as_me: failed program was:" >&5
22053sed 's/^/| /' conftest.$ac_ext >&5
22054
82eaf560 22055ac_cv_lib_m_ceil=no
97844b15 22056fi
82eaf560 22057rm -f conftest.err conftest.$ac_objext \
97844b15 22058 conftest$ac_exeext conftest.$ac_ext
22059LIBS=$ac_check_lib_save_LIBS
22060fi
82eaf560 22061echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
22062echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6
d213114b 22063if test $ac_cv_lib_m_ceil = yes; then
97844b15 22064
22065cat >>confdefs.h <<\_ACEOF
d213114b 22066#define HAVE_CEIL 1
97844b15 22067_ACEOF
22068
22069fi
22070
82eaf560 22071echo "$as_me:$LINENO: checking for ceill in -lm" >&5
22072echo $ECHO_N "checking for ceill in -lm... $ECHO_C" >&6
d213114b 22073if test "${ac_cv_lib_m_ceill+set}" = set; then
4db2deda 22074 echo $ECHO_N "(cached) $ECHO_C" >&6
22075else
22076 ac_check_lib_save_LIBS=$LIBS
22077LIBS="-lm $LIBS"
b52ee437 22078if test x$gcc_no_link = xyes; then
22079 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22080echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22081 { (exit 1); exit 1; }; }
22082fi
4db2deda 22083cat >conftest.$ac_ext <<_ACEOF
22084/* confdefs.h. */
22085_ACEOF
22086cat confdefs.h >>conftest.$ac_ext
22087cat >>conftest.$ac_ext <<_ACEOF
22088/* end confdefs.h. */
22089
82eaf560 22090/* Override any gcc2 internal prototype to avoid an error. */
4db2deda 22091#ifdef __cplusplus
22092extern "C"
22093#endif
82eaf560 22094/* We use char because int might match the return type of a gcc2
22095 builtin and then its argument prototype would still apply. */
d213114b 22096char ceill ();
4db2deda 22097int
22098main ()
22099{
82eaf560 22100ceill ();
4db2deda 22101 ;
22102 return 0;
22103}
22104_ACEOF
22105rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 22106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22107 (eval $ac_link) 2>conftest.er1
4db2deda 22108 ac_status=$?
22109 grep -v '^ *+' conftest.er1 >conftest.err
22110 rm -f conftest.er1
22111 cat conftest.err >&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 22113 (exit $ac_status); } &&
22114 { ac_try='test -z "$ac_c_werror_flag"
22115 || test ! -s conftest.err'
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; } &&
22121 { ac_try='test -s conftest$ac_exeext'
22122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123 (eval $ac_try) 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
d213114b 22127 ac_cv_lib_m_ceill=yes
4db2deda 22128else
22129 echo "$as_me: failed program was:" >&5
22130sed 's/^/| /' conftest.$ac_ext >&5
22131
82eaf560 22132ac_cv_lib_m_ceill=no
4db2deda 22133fi
82eaf560 22134rm -f conftest.err conftest.$ac_objext \
4db2deda 22135 conftest$ac_exeext conftest.$ac_ext
22136LIBS=$ac_check_lib_save_LIBS
22137fi
82eaf560 22138echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceill" >&5
22139echo "${ECHO_T}$ac_cv_lib_m_ceill" >&6
d213114b 22140if test $ac_cv_lib_m_ceill = yes; then
4db2deda 22141
22142cat >>confdefs.h <<\_ACEOF
d213114b 22143#define HAVE_CEILL 1
4db2deda 22144_ACEOF
22145
22146fi
22147
82eaf560 22148echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
22149echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
d213114b 22150if test "${ac_cv_lib_m_copysignf+set}" = set; then
4db2deda 22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22152else
22153 ac_check_lib_save_LIBS=$LIBS
22154LIBS="-lm $LIBS"
b52ee437 22155if test x$gcc_no_link = xyes; then
22156 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22157echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22158 { (exit 1); exit 1; }; }
22159fi
4db2deda 22160cat >conftest.$ac_ext <<_ACEOF
22161/* confdefs.h. */
22162_ACEOF
22163cat confdefs.h >>conftest.$ac_ext
22164cat >>conftest.$ac_ext <<_ACEOF
22165/* end confdefs.h. */
22166
82eaf560 22167/* Override any gcc2 internal prototype to avoid an error. */
4db2deda 22168#ifdef __cplusplus
22169extern "C"
22170#endif
82eaf560 22171/* We use char because int might match the return type of a gcc2
22172 builtin and then its argument prototype would still apply. */
d213114b 22173char copysignf ();
4db2deda 22174int
22175main ()
22176{
82eaf560 22177copysignf ();
4db2deda 22178 ;
22179 return 0;
22180}
22181_ACEOF
22182rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 22183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22184 (eval $ac_link) 2>conftest.er1
4db2deda 22185 ac_status=$?
22186 grep -v '^ *+' conftest.er1 >conftest.err
22187 rm -f conftest.er1
22188 cat conftest.err >&5
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 22190 (exit $ac_status); } &&
22191 { ac_try='test -z "$ac_c_werror_flag"
22192 || test ! -s conftest.err'
22193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194 (eval $ac_try) 2>&5
22195 ac_status=$?
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); }; } &&
22198 { ac_try='test -s conftest$ac_exeext'
22199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200 (eval $ac_try) 2>&5
22201 ac_status=$?
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); }; }; then
d213114b 22204 ac_cv_lib_m_copysignf=yes
4db2deda 22205else
22206 echo "$as_me: failed program was:" >&5
22207sed 's/^/| /' conftest.$ac_ext >&5
22208
82eaf560 22209ac_cv_lib_m_copysignf=no
4db2deda 22210fi
82eaf560 22211rm -f conftest.err conftest.$ac_objext \
4db2deda 22212 conftest$ac_exeext conftest.$ac_ext
22213LIBS=$ac_check_lib_save_LIBS
22214fi
82eaf560 22215echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
22216echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
d213114b 22217if test $ac_cv_lib_m_copysignf = yes; then
4db2deda 22218
22219cat >>confdefs.h <<\_ACEOF
d213114b 22220#define HAVE_COPYSIGNF 1
8f838781 22221_ACEOF
22222
22223fi
22224
82eaf560 22225echo "$as_me:$LINENO: checking for copysign in -lm" >&5
22226echo $ECHO_N "checking for copysign in -lm... $ECHO_C" >&6
d213114b 22227if test "${ac_cv_lib_m_copysign+set}" = set; then
8f838781 22228 echo $ECHO_N "(cached) $ECHO_C" >&6
22229else
22230 ac_check_lib_save_LIBS=$LIBS
22231LIBS="-lm $LIBS"
b52ee437 22232if test x$gcc_no_link = xyes; then
22233 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22234echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22235 { (exit 1); exit 1; }; }
22236fi
8f838781 22237cat >conftest.$ac_ext <<_ACEOF
22238/* confdefs.h. */
22239_ACEOF
22240cat confdefs.h >>conftest.$ac_ext
22241cat >>conftest.$ac_ext <<_ACEOF
22242/* end confdefs.h. */
22243
82eaf560 22244/* Override any gcc2 internal prototype to avoid an error. */
8f838781 22245#ifdef __cplusplus
22246extern "C"
22247#endif
82eaf560 22248/* We use char because int might match the return type of a gcc2
22249 builtin and then its argument prototype would still apply. */
d213114b 22250char copysign ();
8f838781 22251int
22252main ()
22253{
82eaf560 22254copysign ();
8f838781 22255 ;
22256 return 0;
22257}
22258_ACEOF
22259rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 22260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22261 (eval $ac_link) 2>conftest.er1
8f838781 22262 ac_status=$?
22263 grep -v '^ *+' conftest.er1 >conftest.err
22264 rm -f conftest.er1
22265 cat conftest.err >&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 22267 (exit $ac_status); } &&
22268 { ac_try='test -z "$ac_c_werror_flag"
22269 || test ! -s conftest.err'
22270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271 (eval $ac_try) 2>&5
22272 ac_status=$?
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); }; } &&
22275 { ac_try='test -s conftest$ac_exeext'
22276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22277 (eval $ac_try) 2>&5
22278 ac_status=$?
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); }; }; then
d213114b 22281 ac_cv_lib_m_copysign=yes
8f838781 22282else
22283 echo "$as_me: failed program was:" >&5
22284sed 's/^/| /' conftest.$ac_ext >&5
22285
82eaf560 22286ac_cv_lib_m_copysign=no
8f838781 22287fi
82eaf560 22288rm -f conftest.err conftest.$ac_objext \
8f838781 22289 conftest$ac_exeext conftest.$ac_ext
22290LIBS=$ac_check_lib_save_LIBS
22291fi
82eaf560 22292echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysign" >&5
22293echo "${ECHO_T}$ac_cv_lib_m_copysign" >&6
d213114b 22294if test $ac_cv_lib_m_copysign = yes; then
8f838781 22295
22296cat >>confdefs.h <<\_ACEOF
d213114b 22297#define HAVE_COPYSIGN 1
8f838781 22298_ACEOF
22299
22300fi
22301
82eaf560 22302echo "$as_me:$LINENO: checking for copysignl in -lm" >&5
22303echo $ECHO_N "checking for copysignl in -lm... $ECHO_C" >&6
d213114b 22304if test "${ac_cv_lib_m_copysignl+set}" = set; then
8f838781 22305 echo $ECHO_N "(cached) $ECHO_C" >&6
22306else
22307 ac_check_lib_save_LIBS=$LIBS
22308LIBS="-lm $LIBS"
b52ee437 22309if test x$gcc_no_link = xyes; then
22310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22311echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22312 { (exit 1); exit 1; }; }
22313fi
8f838781 22314cat >conftest.$ac_ext <<_ACEOF
22315/* confdefs.h. */
22316_ACEOF
22317cat confdefs.h >>conftest.$ac_ext
22318cat >>conftest.$ac_ext <<_ACEOF
22319/* end confdefs.h. */
22320
82eaf560 22321/* Override any gcc2 internal prototype to avoid an error. */
8f838781 22322#ifdef __cplusplus
22323extern "C"
22324#endif
82eaf560 22325/* We use char because int might match the return type of a gcc2
22326 builtin and then its argument prototype would still apply. */
d213114b 22327char copysignl ();
8f838781 22328int
22329main ()
22330{
82eaf560 22331copysignl ();
8f838781 22332 ;
22333 return 0;
22334}
22335_ACEOF
22336rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 22337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22338 (eval $ac_link) 2>conftest.er1
8f838781 22339 ac_status=$?
22340 grep -v '^ *+' conftest.er1 >conftest.err
22341 rm -f conftest.er1
22342 cat conftest.err >&5
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 22344 (exit $ac_status); } &&
22345 { ac_try='test -z "$ac_c_werror_flag"
22346 || test ! -s conftest.err'
22347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348 (eval $ac_try) 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; } &&
22352 { ac_try='test -s conftest$ac_exeext'
22353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22354 (eval $ac_try) 2>&5
22355 ac_status=$?
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); }; }; then
d213114b 22358 ac_cv_lib_m_copysignl=yes
8f838781 22359else
22360 echo "$as_me: failed program was:" >&5
22361sed 's/^/| /' conftest.$ac_ext >&5
22362
82eaf560 22363ac_cv_lib_m_copysignl=no
8f838781 22364fi
82eaf560 22365rm -f conftest.err conftest.$ac_objext \
8f838781 22366 conftest$ac_exeext conftest.$ac_ext
22367LIBS=$ac_check_lib_save_LIBS
22368fi
82eaf560 22369echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignl" >&5
22370echo "${ECHO_T}$ac_cv_lib_m_copysignl" >&6
d213114b 22371if test $ac_cv_lib_m_copysignl = yes; then
8f838781 22372
22373cat >>confdefs.h <<\_ACEOF
d213114b 22374#define HAVE_COPYSIGNL 1
8f838781 22375_ACEOF
22376
22377fi
22378
82eaf560 22379echo "$as_me:$LINENO: checking for cosf in -lm" >&5
22380echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
d213114b 22381if test "${ac_cv_lib_m_cosf+set}" = set; then
8f838781 22382 echo $ECHO_N "(cached) $ECHO_C" >&6
22383else
22384 ac_check_lib_save_LIBS=$LIBS
22385LIBS="-lm $LIBS"
b52ee437 22386if test x$gcc_no_link = xyes; then
22387 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22388echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22389 { (exit 1); exit 1; }; }
22390fi
8f838781 22391cat >conftest.$ac_ext <<_ACEOF
22392/* confdefs.h. */
22393_ACEOF
22394cat confdefs.h >>conftest.$ac_ext
22395cat >>conftest.$ac_ext <<_ACEOF
22396/* end confdefs.h. */
22397
82eaf560 22398/* Override any gcc2 internal prototype to avoid an error. */
8f838781 22399#ifdef __cplusplus
22400extern "C"
22401#endif
82eaf560 22402/* We use char because int might match the return type of a gcc2
22403 builtin and then its argument prototype would still apply. */
d213114b 22404char cosf ();
8f838781 22405int
22406main ()
22407{
82eaf560 22408cosf ();
8f838781 22409 ;
22410 return 0;
22411}
22412_ACEOF
22413rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 22414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22415 (eval $ac_link) 2>conftest.er1
8f838781 22416 ac_status=$?
22417 grep -v '^ *+' conftest.er1 >conftest.err
22418 rm -f conftest.er1
22419 cat conftest.err >&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 22421 (exit $ac_status); } &&
22422 { ac_try='test -z "$ac_c_werror_flag"
22423 || test ! -s conftest.err'
22424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22425 (eval $ac_try) 2>&5
22426 ac_status=$?
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); }; } &&
22429 { ac_try='test -s conftest$ac_exeext'
22430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22432 ac_status=$?
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }; }; then
d213114b 22435 ac_cv_lib_m_cosf=yes
8f838781 22436else
22437 echo "$as_me: failed program was:" >&5
22438sed 's/^/| /' conftest.$ac_ext >&5
22439
82eaf560 22440ac_cv_lib_m_cosf=no
8f838781 22441fi
82eaf560 22442rm -f conftest.err conftest.$ac_objext \
8f838781 22443 conftest$ac_exeext conftest.$ac_ext
22444LIBS=$ac_check_lib_save_LIBS
22445fi
82eaf560 22446echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
22447echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
d213114b 22448if test $ac_cv_lib_m_cosf = yes; then
8f838781 22449
22450cat >>confdefs.h <<\_ACEOF
d213114b 22451#define HAVE_COSF 1
4db2deda 22452_ACEOF
22453
22454fi
22455
82eaf560 22456echo "$as_me:$LINENO: checking for cos in -lm" >&5
22457echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
d213114b 22458if test "${ac_cv_lib_m_cos+set}" = set; then
50f0ca0a 22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22460else
22461 ac_check_lib_save_LIBS=$LIBS
22462LIBS="-lm $LIBS"
b52ee437 22463if test x$gcc_no_link = xyes; then
22464 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22465echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22466 { (exit 1); exit 1; }; }
22467fi
50f0ca0a 22468cat >conftest.$ac_ext <<_ACEOF
22469/* confdefs.h. */
22470_ACEOF
22471cat confdefs.h >>conftest.$ac_ext
22472cat >>conftest.$ac_ext <<_ACEOF
22473/* end confdefs.h. */
22474
82eaf560 22475/* Override any gcc2 internal prototype to avoid an error. */
50f0ca0a 22476#ifdef __cplusplus
22477extern "C"
22478#endif
82eaf560 22479/* We use char because int might match the return type of a gcc2
22480 builtin and then its argument prototype would still apply. */
d213114b 22481char cos ();
50f0ca0a 22482int
22483main ()
22484{
82eaf560 22485cos ();
50f0ca0a 22486 ;
22487 return 0;
22488}
22489_ACEOF
22490rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 22491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22492 (eval $ac_link) 2>conftest.er1
50f0ca0a 22493 ac_status=$?
22494 grep -v '^ *+' conftest.er1 >conftest.err
22495 rm -f conftest.er1
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 22498 (exit $ac_status); } &&
22499 { ac_try='test -z "$ac_c_werror_flag"
22500 || test ! -s conftest.err'
22501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22502 (eval $ac_try) 2>&5
22503 ac_status=$?
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); }; } &&
22506 { ac_try='test -s conftest$ac_exeext'
22507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508 (eval $ac_try) 2>&5
22509 ac_status=$?
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); }; }; then
d213114b 22512 ac_cv_lib_m_cos=yes
50f0ca0a 22513else
22514 echo "$as_me: failed program was:" >&5
22515sed 's/^/| /' conftest.$ac_ext >&5
22516
82eaf560 22517ac_cv_lib_m_cos=no
50f0ca0a 22518fi
82eaf560 22519rm -f conftest.err conftest.$ac_objext \
50f0ca0a 22520 conftest$ac_exeext conftest.$ac_ext
22521LIBS=$ac_check_lib_save_LIBS
22522fi
82eaf560 22523echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
22524echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
d213114b 22525if test $ac_cv_lib_m_cos = yes; then
50f0ca0a 22526
22527cat >>confdefs.h <<\_ACEOF
d213114b 22528#define HAVE_COS 1
22529_ACEOF
22530
22531fi
22532
82eaf560 22533echo "$as_me:$LINENO: checking for cosl in -lm" >&5
22534echo $ECHO_N "checking for cosl in -lm... $ECHO_C" >&6
d213114b 22535if test "${ac_cv_lib_m_cosl+set}" = set; then
22536 echo $ECHO_N "(cached) $ECHO_C" >&6
22537else
22538 ac_check_lib_save_LIBS=$LIBS
22539LIBS="-lm $LIBS"
22540if test x$gcc_no_link = xyes; then
22541 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22542echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22543 { (exit 1); exit 1; }; }
22544fi
22545cat >conftest.$ac_ext <<_ACEOF
22546/* confdefs.h. */
22547_ACEOF
22548cat confdefs.h >>conftest.$ac_ext
22549cat >>conftest.$ac_ext <<_ACEOF
22550/* end confdefs.h. */
22551
82eaf560 22552/* Override any gcc2 internal prototype to avoid an error. */
d213114b 22553#ifdef __cplusplus
22554extern "C"
22555#endif
82eaf560 22556/* We use char because int might match the return type of a gcc2
22557 builtin and then its argument prototype would still apply. */
d213114b 22558char cosl ();
22559int
22560main ()
22561{
82eaf560 22562cosl ();
d213114b 22563 ;
22564 return 0;
22565}
22566_ACEOF
22567rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 22568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22569 (eval $ac_link) 2>conftest.er1
d213114b 22570 ac_status=$?
22571 grep -v '^ *+' conftest.er1 >conftest.err
22572 rm -f conftest.er1
22573 cat conftest.err >&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 22575 (exit $ac_status); } &&
22576 { ac_try='test -z "$ac_c_werror_flag"
22577 || test ! -s conftest.err'
22578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579 (eval $ac_try) 2>&5
22580 ac_status=$?
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); }; } &&
22583 { ac_try='test -s conftest$ac_exeext'
22584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22585 (eval $ac_try) 2>&5
22586 ac_status=$?
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); }; }; then
d213114b 22589 ac_cv_lib_m_cosl=yes
22590else
22591 echo "$as_me: failed program was:" >&5
22592sed 's/^/| /' conftest.$ac_ext >&5
22593
82eaf560 22594ac_cv_lib_m_cosl=no
d213114b 22595fi
82eaf560 22596rm -f conftest.err conftest.$ac_objext \
d213114b 22597 conftest$ac_exeext conftest.$ac_ext
22598LIBS=$ac_check_lib_save_LIBS
22599fi
82eaf560 22600echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosl" >&5
22601echo "${ECHO_T}$ac_cv_lib_m_cosl" >&6
d213114b 22602if test $ac_cv_lib_m_cosl = yes; then
22603
22604cat >>confdefs.h <<\_ACEOF
22605#define HAVE_COSL 1
22606_ACEOF
22607
22608fi
22609
82eaf560 22610echo "$as_me:$LINENO: checking for ccosf in -lm" >&5
22611echo $ECHO_N "checking for ccosf in -lm... $ECHO_C" >&6
d213114b 22612if test "${ac_cv_lib_m_ccosf+set}" = set; then
22613 echo $ECHO_N "(cached) $ECHO_C" >&6
22614else
22615 ac_check_lib_save_LIBS=$LIBS
22616LIBS="-lm $LIBS"
22617if test x$gcc_no_link = xyes; then
22618 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22619echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22620 { (exit 1); exit 1; }; }
22621fi
22622cat >conftest.$ac_ext <<_ACEOF
22623/* confdefs.h. */
22624_ACEOF
22625cat confdefs.h >>conftest.$ac_ext
22626cat >>conftest.$ac_ext <<_ACEOF
22627/* end confdefs.h. */
22628
82eaf560 22629/* Override any gcc2 internal prototype to avoid an error. */
d213114b 22630#ifdef __cplusplus
22631extern "C"
22632#endif
82eaf560 22633/* We use char because int might match the return type of a gcc2
22634 builtin and then its argument prototype would still apply. */
d213114b 22635char ccosf ();
22636int
22637main ()
22638{
82eaf560 22639ccosf ();
d213114b 22640 ;
22641 return 0;
22642}
22643_ACEOF
22644rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 22645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22646 (eval $ac_link) 2>conftest.er1
d213114b 22647 ac_status=$?
22648 grep -v '^ *+' conftest.er1 >conftest.err
22649 rm -f conftest.er1
22650 cat conftest.err >&5
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 22652 (exit $ac_status); } &&
22653 { ac_try='test -z "$ac_c_werror_flag"
22654 || test ! -s conftest.err'
22655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22656 (eval $ac_try) 2>&5
22657 ac_status=$?
22658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659 (exit $ac_status); }; } &&
22660 { ac_try='test -s conftest$ac_exeext'
22661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22662 (eval $ac_try) 2>&5
22663 ac_status=$?
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); }; }; then
d213114b 22666 ac_cv_lib_m_ccosf=yes
22667else
22668 echo "$as_me: failed program was:" >&5
22669sed 's/^/| /' conftest.$ac_ext >&5
22670
82eaf560 22671ac_cv_lib_m_ccosf=no
d213114b 22672fi
82eaf560 22673rm -f conftest.err conftest.$ac_objext \
d213114b 22674 conftest$ac_exeext conftest.$ac_ext
22675LIBS=$ac_check_lib_save_LIBS
22676fi
82eaf560 22677echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosf" >&5
22678echo "${ECHO_T}$ac_cv_lib_m_ccosf" >&6
d213114b 22679if test $ac_cv_lib_m_ccosf = yes; then
22680
22681cat >>confdefs.h <<\_ACEOF
22682#define HAVE_CCOSF 1
22683_ACEOF
22684
22685fi
22686
82eaf560 22687echo "$as_me:$LINENO: checking for ccos in -lm" >&5
22688echo $ECHO_N "checking for ccos in -lm... $ECHO_C" >&6
d213114b 22689if test "${ac_cv_lib_m_ccos+set}" = set; then
22690 echo $ECHO_N "(cached) $ECHO_C" >&6
22691else
22692 ac_check_lib_save_LIBS=$LIBS
22693LIBS="-lm $LIBS"
22694if test x$gcc_no_link = xyes; then
22695 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22696echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22697 { (exit 1); exit 1; }; }
22698fi
22699cat >conftest.$ac_ext <<_ACEOF
22700/* confdefs.h. */
22701_ACEOF
22702cat confdefs.h >>conftest.$ac_ext
22703cat >>conftest.$ac_ext <<_ACEOF
22704/* end confdefs.h. */
22705
82eaf560 22706/* Override any gcc2 internal prototype to avoid an error. */
d213114b 22707#ifdef __cplusplus
22708extern "C"
22709#endif
82eaf560 22710/* We use char because int might match the return type of a gcc2
22711 builtin and then its argument prototype would still apply. */
d213114b 22712char ccos ();
22713int
22714main ()
22715{
82eaf560 22716ccos ();
d213114b 22717 ;
22718 return 0;
22719}
22720_ACEOF
22721rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 22722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22723 (eval $ac_link) 2>conftest.er1
d213114b 22724 ac_status=$?
22725 grep -v '^ *+' conftest.er1 >conftest.err
22726 rm -f conftest.er1
22727 cat conftest.err >&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 22729 (exit $ac_status); } &&
22730 { ac_try='test -z "$ac_c_werror_flag"
22731 || test ! -s conftest.err'
22732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733 (eval $ac_try) 2>&5
22734 ac_status=$?
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; } &&
22737 { ac_try='test -s conftest$ac_exeext'
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22740 ac_status=$?
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; }; then
d213114b 22743 ac_cv_lib_m_ccos=yes
22744else
22745 echo "$as_me: failed program was:" >&5
22746sed 's/^/| /' conftest.$ac_ext >&5
22747
82eaf560 22748ac_cv_lib_m_ccos=no
d213114b 22749fi
82eaf560 22750rm -f conftest.err conftest.$ac_objext \
d213114b 22751 conftest$ac_exeext conftest.$ac_ext
22752LIBS=$ac_check_lib_save_LIBS
22753fi
82eaf560 22754echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccos" >&5
22755echo "${ECHO_T}$ac_cv_lib_m_ccos" >&6
d213114b 22756if test $ac_cv_lib_m_ccos = yes; then
22757
22758cat >>confdefs.h <<\_ACEOF
22759#define HAVE_CCOS 1
22760_ACEOF
22761
22762fi
22763
82eaf560 22764echo "$as_me:$LINENO: checking for ccosl in -lm" >&5
22765echo $ECHO_N "checking for ccosl in -lm... $ECHO_C" >&6
d213114b 22766if test "${ac_cv_lib_m_ccosl+set}" = set; then
22767 echo $ECHO_N "(cached) $ECHO_C" >&6
22768else
22769 ac_check_lib_save_LIBS=$LIBS
22770LIBS="-lm $LIBS"
22771if test x$gcc_no_link = xyes; then
22772 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22773echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22774 { (exit 1); exit 1; }; }
22775fi
22776cat >conftest.$ac_ext <<_ACEOF
22777/* confdefs.h. */
22778_ACEOF
22779cat confdefs.h >>conftest.$ac_ext
22780cat >>conftest.$ac_ext <<_ACEOF
22781/* end confdefs.h. */
22782
82eaf560 22783/* Override any gcc2 internal prototype to avoid an error. */
d213114b 22784#ifdef __cplusplus
22785extern "C"
22786#endif
82eaf560 22787/* We use char because int might match the return type of a gcc2
22788 builtin and then its argument prototype would still apply. */
d213114b 22789char ccosl ();
22790int
22791main ()
22792{
82eaf560 22793ccosl ();
d213114b 22794 ;
22795 return 0;
22796}
22797_ACEOF
22798rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 22799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22800 (eval $ac_link) 2>conftest.er1
d213114b 22801 ac_status=$?
22802 grep -v '^ *+' conftest.er1 >conftest.err
22803 rm -f conftest.er1
22804 cat conftest.err >&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 22806 (exit $ac_status); } &&
22807 { ac_try='test -z "$ac_c_werror_flag"
22808 || test ! -s conftest.err'
22809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810 (eval $ac_try) 2>&5
22811 ac_status=$?
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; } &&
22814 { ac_try='test -s conftest$ac_exeext'
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; }; then
d213114b 22820 ac_cv_lib_m_ccosl=yes
22821else
22822 echo "$as_me: failed program was:" >&5
22823sed 's/^/| /' conftest.$ac_ext >&5
22824
82eaf560 22825ac_cv_lib_m_ccosl=no
d213114b 22826fi
82eaf560 22827rm -f conftest.err conftest.$ac_objext \
d213114b 22828 conftest$ac_exeext conftest.$ac_ext
22829LIBS=$ac_check_lib_save_LIBS
22830fi
82eaf560 22831echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosl" >&5
22832echo "${ECHO_T}$ac_cv_lib_m_ccosl" >&6
d213114b 22833if test $ac_cv_lib_m_ccosl = yes; then
22834
22835cat >>confdefs.h <<\_ACEOF
22836#define HAVE_CCOSL 1
22837_ACEOF
22838
22839fi
22840
82eaf560 22841echo "$as_me:$LINENO: checking for coshf in -lm" >&5
22842echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
d213114b 22843if test "${ac_cv_lib_m_coshf+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22845else
22846 ac_check_lib_save_LIBS=$LIBS
22847LIBS="-lm $LIBS"
22848if test x$gcc_no_link = xyes; then
22849 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22850echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22851 { (exit 1); exit 1; }; }
22852fi
22853cat >conftest.$ac_ext <<_ACEOF
22854/* confdefs.h. */
22855_ACEOF
22856cat confdefs.h >>conftest.$ac_ext
22857cat >>conftest.$ac_ext <<_ACEOF
22858/* end confdefs.h. */
22859
82eaf560 22860/* Override any gcc2 internal prototype to avoid an error. */
d213114b 22861#ifdef __cplusplus
22862extern "C"
22863#endif
82eaf560 22864/* We use char because int might match the return type of a gcc2
22865 builtin and then its argument prototype would still apply. */
d213114b 22866char coshf ();
22867int
22868main ()
22869{
82eaf560 22870coshf ();
d213114b 22871 ;
22872 return 0;
22873}
22874_ACEOF
22875rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 22876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22877 (eval $ac_link) 2>conftest.er1
d213114b 22878 ac_status=$?
22879 grep -v '^ *+' conftest.er1 >conftest.err
22880 rm -f conftest.er1
22881 cat conftest.err >&5
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 22883 (exit $ac_status); } &&
22884 { ac_try='test -z "$ac_c_werror_flag"
22885 || test ! -s conftest.err'
22886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887 (eval $ac_try) 2>&5
22888 ac_status=$?
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); }; } &&
22891 { ac_try='test -s conftest$ac_exeext'
22892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22893 (eval $ac_try) 2>&5
22894 ac_status=$?
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); }; }; then
d213114b 22897 ac_cv_lib_m_coshf=yes
22898else
22899 echo "$as_me: failed program was:" >&5
22900sed 's/^/| /' conftest.$ac_ext >&5
22901
82eaf560 22902ac_cv_lib_m_coshf=no
d213114b 22903fi
82eaf560 22904rm -f conftest.err conftest.$ac_objext \
d213114b 22905 conftest$ac_exeext conftest.$ac_ext
22906LIBS=$ac_check_lib_save_LIBS
22907fi
82eaf560 22908echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
22909echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
d213114b 22910if test $ac_cv_lib_m_coshf = yes; then
22911
22912cat >>confdefs.h <<\_ACEOF
22913#define HAVE_COSHF 1
22914_ACEOF
22915
22916fi
22917
82eaf560 22918echo "$as_me:$LINENO: checking for cosh in -lm" >&5
22919echo $ECHO_N "checking for cosh in -lm... $ECHO_C" >&6
d213114b 22920if test "${ac_cv_lib_m_cosh+set}" = set; then
22921 echo $ECHO_N "(cached) $ECHO_C" >&6
22922else
22923 ac_check_lib_save_LIBS=$LIBS
22924LIBS="-lm $LIBS"
22925if test x$gcc_no_link = xyes; then
22926 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22927echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22928 { (exit 1); exit 1; }; }
22929fi
22930cat >conftest.$ac_ext <<_ACEOF
22931/* confdefs.h. */
22932_ACEOF
22933cat confdefs.h >>conftest.$ac_ext
22934cat >>conftest.$ac_ext <<_ACEOF
22935/* end confdefs.h. */
22936
82eaf560 22937/* Override any gcc2 internal prototype to avoid an error. */
d213114b 22938#ifdef __cplusplus
22939extern "C"
22940#endif
82eaf560 22941/* We use char because int might match the return type of a gcc2
22942 builtin and then its argument prototype would still apply. */
d213114b 22943char cosh ();
22944int
22945main ()
22946{
82eaf560 22947cosh ();
d213114b 22948 ;
22949 return 0;
22950}
22951_ACEOF
22952rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 22953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22954 (eval $ac_link) 2>conftest.er1
d213114b 22955 ac_status=$?
22956 grep -v '^ *+' conftest.er1 >conftest.err
22957 rm -f conftest.er1
22958 cat conftest.err >&5
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 22960 (exit $ac_status); } &&
22961 { ac_try='test -z "$ac_c_werror_flag"
22962 || test ! -s conftest.err'
22963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964 (eval $ac_try) 2>&5
22965 ac_status=$?
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); }; } &&
22968 { ac_try='test -s conftest$ac_exeext'
22969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22970 (eval $ac_try) 2>&5
22971 ac_status=$?
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); }; }; then
d213114b 22974 ac_cv_lib_m_cosh=yes
22975else
22976 echo "$as_me: failed program was:" >&5
22977sed 's/^/| /' conftest.$ac_ext >&5
22978
82eaf560 22979ac_cv_lib_m_cosh=no
d213114b 22980fi
82eaf560 22981rm -f conftest.err conftest.$ac_objext \
d213114b 22982 conftest$ac_exeext conftest.$ac_ext
22983LIBS=$ac_check_lib_save_LIBS
22984fi
82eaf560 22985echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosh" >&5
22986echo "${ECHO_T}$ac_cv_lib_m_cosh" >&6
d213114b 22987if test $ac_cv_lib_m_cosh = yes; then
22988
22989cat >>confdefs.h <<\_ACEOF
22990#define HAVE_COSH 1
22991_ACEOF
22992
22993fi
22994
82eaf560 22995echo "$as_me:$LINENO: checking for coshl in -lm" >&5
22996echo $ECHO_N "checking for coshl in -lm... $ECHO_C" >&6
d213114b 22997if test "${ac_cv_lib_m_coshl+set}" = set; then
22998 echo $ECHO_N "(cached) $ECHO_C" >&6
22999else
23000 ac_check_lib_save_LIBS=$LIBS
23001LIBS="-lm $LIBS"
23002if test x$gcc_no_link = xyes; then
23003 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23004echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23005 { (exit 1); exit 1; }; }
23006fi
23007cat >conftest.$ac_ext <<_ACEOF
23008/* confdefs.h. */
23009_ACEOF
23010cat confdefs.h >>conftest.$ac_ext
23011cat >>conftest.$ac_ext <<_ACEOF
23012/* end confdefs.h. */
23013
82eaf560 23014/* Override any gcc2 internal prototype to avoid an error. */
d213114b 23015#ifdef __cplusplus
23016extern "C"
23017#endif
82eaf560 23018/* We use char because int might match the return type of a gcc2
23019 builtin and then its argument prototype would still apply. */
d213114b 23020char coshl ();
23021int
23022main ()
23023{
82eaf560 23024coshl ();
d213114b 23025 ;
23026 return 0;
23027}
23028_ACEOF
23029rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 23030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23031 (eval $ac_link) 2>conftest.er1
23032 ac_status=$?
23033 grep -v '^ *+' conftest.er1 >conftest.err
23034 rm -f conftest.er1
23035 cat conftest.err >&5
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); } &&
23038 { ac_try='test -z "$ac_c_werror_flag"
23039 || test ! -s conftest.err'
23040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23041 (eval $ac_try) 2>&5
23042 ac_status=$?
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); }; } &&
23045 { ac_try='test -s conftest$ac_exeext'
23046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047 (eval $ac_try) 2>&5
d213114b 23048 ac_status=$?
d213114b 23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 23050 (exit $ac_status); }; }; then
d213114b 23051 ac_cv_lib_m_coshl=yes
23052else
23053 echo "$as_me: failed program was:" >&5
23054sed 's/^/| /' conftest.$ac_ext >&5
23055
82eaf560 23056ac_cv_lib_m_coshl=no
d213114b 23057fi
82eaf560 23058rm -f conftest.err conftest.$ac_objext \
d213114b 23059 conftest$ac_exeext conftest.$ac_ext
23060LIBS=$ac_check_lib_save_LIBS
23061fi
82eaf560 23062echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshl" >&5
23063echo "${ECHO_T}$ac_cv_lib_m_coshl" >&6
d213114b 23064if test $ac_cv_lib_m_coshl = yes; then
23065
23066cat >>confdefs.h <<\_ACEOF
23067#define HAVE_COSHL 1
23068_ACEOF
23069
23070fi
23071
82eaf560 23072echo "$as_me:$LINENO: checking for ccoshf in -lm" >&5
23073echo $ECHO_N "checking for ccoshf in -lm... $ECHO_C" >&6
d213114b 23074if test "${ac_cv_lib_m_ccoshf+set}" = set; then
23075 echo $ECHO_N "(cached) $ECHO_C" >&6
23076else
23077 ac_check_lib_save_LIBS=$LIBS
23078LIBS="-lm $LIBS"
23079if test x$gcc_no_link = xyes; then
23080 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23081echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23082 { (exit 1); exit 1; }; }
23083fi
23084cat >conftest.$ac_ext <<_ACEOF
23085/* confdefs.h. */
23086_ACEOF
23087cat confdefs.h >>conftest.$ac_ext
23088cat >>conftest.$ac_ext <<_ACEOF
23089/* end confdefs.h. */
23090
82eaf560 23091/* Override any gcc2 internal prototype to avoid an error. */
d213114b 23092#ifdef __cplusplus
23093extern "C"
23094#endif
82eaf560 23095/* We use char because int might match the return type of a gcc2
23096 builtin and then its argument prototype would still apply. */
d213114b 23097char ccoshf ();
23098int
23099main ()
23100{
82eaf560 23101ccoshf ();
d213114b 23102 ;
23103 return 0;
23104}
23105_ACEOF
23106rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 23107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23108 (eval $ac_link) 2>conftest.er1
d213114b 23109 ac_status=$?
23110 grep -v '^ *+' conftest.er1 >conftest.err
23111 rm -f conftest.er1
23112 cat conftest.err >&5
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 23114 (exit $ac_status); } &&
23115 { ac_try='test -z "$ac_c_werror_flag"
23116 || test ! -s conftest.err'
23117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23118 (eval $ac_try) 2>&5
23119 ac_status=$?
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); }; } &&
23122 { ac_try='test -s conftest$ac_exeext'
23123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23124 (eval $ac_try) 2>&5
23125 ac_status=$?
23126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); }; }; then
d213114b 23128 ac_cv_lib_m_ccoshf=yes
23129else
23130 echo "$as_me: failed program was:" >&5
23131sed 's/^/| /' conftest.$ac_ext >&5
23132
82eaf560 23133ac_cv_lib_m_ccoshf=no
d213114b 23134fi
82eaf560 23135rm -f conftest.err conftest.$ac_objext \
d213114b 23136 conftest$ac_exeext conftest.$ac_ext
23137LIBS=$ac_check_lib_save_LIBS
23138fi
82eaf560 23139echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccoshf" >&5
23140echo "${ECHO_T}$ac_cv_lib_m_ccoshf" >&6
d213114b 23141if test $ac_cv_lib_m_ccoshf = yes; then
23142
23143cat >>confdefs.h <<\_ACEOF
23144#define HAVE_CCOSHF 1
23145_ACEOF
23146
23147fi
23148
82eaf560 23149echo "$as_me:$LINENO: checking for ccosh in -lm" >&5
23150echo $ECHO_N "checking for ccosh in -lm... $ECHO_C" >&6
d213114b 23151if test "${ac_cv_lib_m_ccosh+set}" = set; then
23152 echo $ECHO_N "(cached) $ECHO_C" >&6
23153else
23154 ac_check_lib_save_LIBS=$LIBS
23155LIBS="-lm $LIBS"
23156if test x$gcc_no_link = xyes; then
23157 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23158echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23159 { (exit 1); exit 1; }; }
23160fi
23161cat >conftest.$ac_ext <<_ACEOF
23162/* confdefs.h. */
23163_ACEOF
23164cat confdefs.h >>conftest.$ac_ext
23165cat >>conftest.$ac_ext <<_ACEOF
23166/* end confdefs.h. */
23167
82eaf560 23168/* Override any gcc2 internal prototype to avoid an error. */
d213114b 23169#ifdef __cplusplus
23170extern "C"
23171#endif
82eaf560 23172/* We use char because int might match the return type of a gcc2
23173 builtin and then its argument prototype would still apply. */
d213114b 23174char ccosh ();
23175int
23176main ()
23177{
82eaf560 23178ccosh ();
d213114b 23179 ;
23180 return 0;
23181}
23182_ACEOF
23183rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 23184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23185 (eval $ac_link) 2>conftest.er1
d213114b 23186 ac_status=$?
23187 grep -v '^ *+' conftest.er1 >conftest.err
23188 rm -f conftest.er1
23189 cat conftest.err >&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 23191 (exit $ac_status); } &&
23192 { ac_try='test -z "$ac_c_werror_flag"
23193 || test ! -s conftest.err'
23194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195 (eval $ac_try) 2>&5
23196 ac_status=$?
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); }; } &&
23199 { ac_try='test -s conftest$ac_exeext'
23200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23201 (eval $ac_try) 2>&5
23202 ac_status=$?
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); }; }; then
d213114b 23205 ac_cv_lib_m_ccosh=yes
23206else
23207 echo "$as_me: failed program was:" >&5
23208sed 's/^/| /' conftest.$ac_ext >&5
23209
82eaf560 23210ac_cv_lib_m_ccosh=no
d213114b 23211fi
82eaf560 23212rm -f conftest.err conftest.$ac_objext \
d213114b 23213 conftest$ac_exeext conftest.$ac_ext
23214LIBS=$ac_check_lib_save_LIBS
23215fi
82eaf560 23216echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosh" >&5
23217echo "${ECHO_T}$ac_cv_lib_m_ccosh" >&6
d213114b 23218if test $ac_cv_lib_m_ccosh = yes; then
23219
23220cat >>confdefs.h <<\_ACEOF
23221#define HAVE_CCOSH 1
23222_ACEOF
23223
23224fi
23225
82eaf560 23226echo "$as_me:$LINENO: checking for ccoshl in -lm" >&5
23227echo $ECHO_N "checking for ccoshl in -lm... $ECHO_C" >&6
d213114b 23228if test "${ac_cv_lib_m_ccoshl+set}" = set; then
23229 echo $ECHO_N "(cached) $ECHO_C" >&6
23230else
23231 ac_check_lib_save_LIBS=$LIBS
23232LIBS="-lm $LIBS"
23233if test x$gcc_no_link = xyes; then
23234 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23235echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23236 { (exit 1); exit 1; }; }
23237fi
23238cat >conftest.$ac_ext <<_ACEOF
23239/* confdefs.h. */
23240_ACEOF
23241cat confdefs.h >>conftest.$ac_ext
23242cat >>conftest.$ac_ext <<_ACEOF
23243/* end confdefs.h. */
23244
82eaf560 23245/* Override any gcc2 internal prototype to avoid an error. */
d213114b 23246#ifdef __cplusplus
23247extern "C"
23248#endif
82eaf560 23249/* We use char because int might match the return type of a gcc2
23250 builtin and then its argument prototype would still apply. */
d213114b 23251char ccoshl ();
23252int
23253main ()
23254{
82eaf560 23255ccoshl ();
d213114b 23256 ;
23257 return 0;
23258}
23259_ACEOF
23260rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 23261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23262 (eval $ac_link) 2>conftest.er1
d213114b 23263 ac_status=$?
23264 grep -v '^ *+' conftest.er1 >conftest.err
23265 rm -f conftest.er1
23266 cat conftest.err >&5
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 23268 (exit $ac_status); } &&
23269 { ac_try='test -z "$ac_c_werror_flag"
23270 || test ! -s conftest.err'
23271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272 (eval $ac_try) 2>&5
23273 ac_status=$?
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); }; } &&
23276 { ac_try='test -s conftest$ac_exeext'
23277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23278 (eval $ac_try) 2>&5
23279 ac_status=$?
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); }; }; then
d213114b 23282 ac_cv_lib_m_ccoshl=yes
23283else
23284 echo "$as_me: failed program was:" >&5
23285sed 's/^/| /' conftest.$ac_ext >&5
23286
82eaf560 23287ac_cv_lib_m_ccoshl=no
d213114b 23288fi
82eaf560 23289rm -f conftest.err conftest.$ac_objext \
d213114b 23290 conftest$ac_exeext conftest.$ac_ext
23291LIBS=$ac_check_lib_save_LIBS
23292fi
82eaf560 23293echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccoshl" >&5
23294echo "${ECHO_T}$ac_cv_lib_m_ccoshl" >&6
d213114b 23295if test $ac_cv_lib_m_ccoshl = yes; then
23296
23297cat >>confdefs.h <<\_ACEOF
23298#define HAVE_CCOSHL 1
23299_ACEOF
23300
23301fi
23302
82eaf560 23303echo "$as_me:$LINENO: checking for expf in -lm" >&5
23304echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
d213114b 23305if test "${ac_cv_lib_m_expf+set}" = set; then
23306 echo $ECHO_N "(cached) $ECHO_C" >&6
23307else
23308 ac_check_lib_save_LIBS=$LIBS
23309LIBS="-lm $LIBS"
23310if test x$gcc_no_link = xyes; then
23311 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23312echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23313 { (exit 1); exit 1; }; }
23314fi
23315cat >conftest.$ac_ext <<_ACEOF
23316/* confdefs.h. */
23317_ACEOF
23318cat confdefs.h >>conftest.$ac_ext
23319cat >>conftest.$ac_ext <<_ACEOF
23320/* end confdefs.h. */
23321
82eaf560 23322/* Override any gcc2 internal prototype to avoid an error. */
d213114b 23323#ifdef __cplusplus
23324extern "C"
23325#endif
82eaf560 23326/* We use char because int might match the return type of a gcc2
23327 builtin and then its argument prototype would still apply. */
d213114b 23328char expf ();
23329int
23330main ()
23331{
82eaf560 23332expf ();
d213114b 23333 ;
23334 return 0;
23335}
23336_ACEOF
23337rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 23338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23339 (eval $ac_link) 2>conftest.er1
d213114b 23340 ac_status=$?
23341 grep -v '^ *+' conftest.er1 >conftest.err
23342 rm -f conftest.er1
23343 cat conftest.err >&5
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 23345 (exit $ac_status); } &&
23346 { ac_try='test -z "$ac_c_werror_flag"
23347 || test ! -s conftest.err'
23348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23349 (eval $ac_try) 2>&5
23350 ac_status=$?
23351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352 (exit $ac_status); }; } &&
23353 { ac_try='test -s conftest$ac_exeext'
23354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23355 (eval $ac_try) 2>&5
23356 ac_status=$?
23357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); }; }; then
d213114b 23359 ac_cv_lib_m_expf=yes
23360else
23361 echo "$as_me: failed program was:" >&5
23362sed 's/^/| /' conftest.$ac_ext >&5
23363
82eaf560 23364ac_cv_lib_m_expf=no
d213114b 23365fi
82eaf560 23366rm -f conftest.err conftest.$ac_objext \
d213114b 23367 conftest$ac_exeext conftest.$ac_ext
23368LIBS=$ac_check_lib_save_LIBS
23369fi
82eaf560 23370echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
23371echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
d213114b 23372if test $ac_cv_lib_m_expf = yes; then
23373
23374cat >>confdefs.h <<\_ACEOF
23375#define HAVE_EXPF 1
23376_ACEOF
23377
23378fi
23379
82eaf560 23380echo "$as_me:$LINENO: checking for exp in -lm" >&5
23381echo $ECHO_N "checking for exp in -lm... $ECHO_C" >&6
d213114b 23382if test "${ac_cv_lib_m_exp+set}" = set; then
23383 echo $ECHO_N "(cached) $ECHO_C" >&6
23384else
23385 ac_check_lib_save_LIBS=$LIBS
23386LIBS="-lm $LIBS"
23387if test x$gcc_no_link = xyes; then
23388 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23389echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23390 { (exit 1); exit 1; }; }
23391fi
23392cat >conftest.$ac_ext <<_ACEOF
23393/* confdefs.h. */
23394_ACEOF
23395cat confdefs.h >>conftest.$ac_ext
23396cat >>conftest.$ac_ext <<_ACEOF
23397/* end confdefs.h. */
23398
82eaf560 23399/* Override any gcc2 internal prototype to avoid an error. */
d213114b 23400#ifdef __cplusplus
23401extern "C"
23402#endif
82eaf560 23403/* We use char because int might match the return type of a gcc2
23404 builtin and then its argument prototype would still apply. */
d213114b 23405char exp ();
23406int
23407main ()
23408{
82eaf560 23409exp ();
d213114b 23410 ;
23411 return 0;
23412}
23413_ACEOF
23414rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 23415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23416 (eval $ac_link) 2>conftest.er1
d213114b 23417 ac_status=$?
23418 grep -v '^ *+' conftest.er1 >conftest.err
23419 rm -f conftest.er1
23420 cat conftest.err >&5
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 23422 (exit $ac_status); } &&
23423 { ac_try='test -z "$ac_c_werror_flag"
23424 || test ! -s conftest.err'
23425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426 (eval $ac_try) 2>&5
23427 ac_status=$?
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); }; } &&
23430 { ac_try='test -s conftest$ac_exeext'
23431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23432 (eval $ac_try) 2>&5
23433 ac_status=$?
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); }; }; then
d213114b 23436 ac_cv_lib_m_exp=yes
23437else
23438 echo "$as_me: failed program was:" >&5
23439sed 's/^/| /' conftest.$ac_ext >&5
23440
82eaf560 23441ac_cv_lib_m_exp=no
d213114b 23442fi
82eaf560 23443rm -f conftest.err conftest.$ac_objext \
d213114b 23444 conftest$ac_exeext conftest.$ac_ext
23445LIBS=$ac_check_lib_save_LIBS
23446fi
82eaf560 23447echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp" >&5
23448echo "${ECHO_T}$ac_cv_lib_m_exp" >&6
d213114b 23449if test $ac_cv_lib_m_exp = yes; then
23450
23451cat >>confdefs.h <<\_ACEOF
23452#define HAVE_EXP 1
23453_ACEOF
23454
23455fi
23456
82eaf560 23457echo "$as_me:$LINENO: checking for expl in -lm" >&5
23458echo $ECHO_N "checking for expl in -lm... $ECHO_C" >&6
d213114b 23459if test "${ac_cv_lib_m_expl+set}" = set; then
23460 echo $ECHO_N "(cached) $ECHO_C" >&6
23461else
23462 ac_check_lib_save_LIBS=$LIBS
23463LIBS="-lm $LIBS"
23464if test x$gcc_no_link = xyes; then
23465 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23466echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23467 { (exit 1); exit 1; }; }
23468fi
23469cat >conftest.$ac_ext <<_ACEOF
23470/* confdefs.h. */
23471_ACEOF
23472cat confdefs.h >>conftest.$ac_ext
23473cat >>conftest.$ac_ext <<_ACEOF
23474/* end confdefs.h. */
23475
82eaf560 23476/* Override any gcc2 internal prototype to avoid an error. */
d213114b 23477#ifdef __cplusplus
23478extern "C"
23479#endif
82eaf560 23480/* We use char because int might match the return type of a gcc2
23481 builtin and then its argument prototype would still apply. */
d213114b 23482char expl ();
23483int
23484main ()
23485{
82eaf560 23486expl ();
d213114b 23487 ;
23488 return 0;
23489}
23490_ACEOF
23491rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 23492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23493 (eval $ac_link) 2>conftest.er1
d213114b 23494 ac_status=$?
23495 grep -v '^ *+' conftest.er1 >conftest.err
23496 rm -f conftest.er1
23497 cat conftest.err >&5
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 23499 (exit $ac_status); } &&
23500 { ac_try='test -z "$ac_c_werror_flag"
23501 || test ! -s conftest.err'
23502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23503 (eval $ac_try) 2>&5
23504 ac_status=$?
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); }; } &&
23507 { ac_try='test -s conftest$ac_exeext'
23508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23509 (eval $ac_try) 2>&5
23510 ac_status=$?
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); }; }; then
d213114b 23513 ac_cv_lib_m_expl=yes
23514else
23515 echo "$as_me: failed program was:" >&5
23516sed 's/^/| /' conftest.$ac_ext >&5
23517
82eaf560 23518ac_cv_lib_m_expl=no
d213114b 23519fi
82eaf560 23520rm -f conftest.err conftest.$ac_objext \
d213114b 23521 conftest$ac_exeext conftest.$ac_ext
23522LIBS=$ac_check_lib_save_LIBS
23523fi
82eaf560 23524echo "$as_me:$LINENO: result: $ac_cv_lib_m_expl" >&5
23525echo "${ECHO_T}$ac_cv_lib_m_expl" >&6
d213114b 23526if test $ac_cv_lib_m_expl = yes; then
23527
23528cat >>confdefs.h <<\_ACEOF
23529#define HAVE_EXPL 1
23530_ACEOF
23531
23532fi
23533
82eaf560 23534echo "$as_me:$LINENO: checking for cexpf in -lm" >&5
23535echo $ECHO_N "checking for cexpf in -lm... $ECHO_C" >&6
d213114b 23536if test "${ac_cv_lib_m_cexpf+set}" = set; then
23537 echo $ECHO_N "(cached) $ECHO_C" >&6
23538else
23539 ac_check_lib_save_LIBS=$LIBS
23540LIBS="-lm $LIBS"
23541if test x$gcc_no_link = xyes; then
23542 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23543echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23544 { (exit 1); exit 1; }; }
23545fi
23546cat >conftest.$ac_ext <<_ACEOF
23547/* confdefs.h. */
23548_ACEOF
23549cat confdefs.h >>conftest.$ac_ext
23550cat >>conftest.$ac_ext <<_ACEOF
23551/* end confdefs.h. */
23552
82eaf560 23553/* Override any gcc2 internal prototype to avoid an error. */
d213114b 23554#ifdef __cplusplus
23555extern "C"
23556#endif
82eaf560 23557/* We use char because int might match the return type of a gcc2
23558 builtin and then its argument prototype would still apply. */
d213114b 23559char cexpf ();
23560int
23561main ()
23562{
82eaf560 23563cexpf ();
d213114b 23564 ;
23565 return 0;
23566}
23567_ACEOF
23568rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 23569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23570 (eval $ac_link) 2>conftest.er1
d213114b 23571 ac_status=$?
23572 grep -v '^ *+' conftest.er1 >conftest.err
23573 rm -f conftest.er1
23574 cat conftest.err >&5
23575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 23576 (exit $ac_status); } &&
23577 { ac_try='test -z "$ac_c_werror_flag"
23578 || test ! -s conftest.err'
23579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23580 (eval $ac_try) 2>&5
23581 ac_status=$?
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); }; } &&
23584 { ac_try='test -s conftest$ac_exeext'
23585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23586 (eval $ac_try) 2>&5
23587 ac_status=$?
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); }; }; then
d213114b 23590 ac_cv_lib_m_cexpf=yes
23591else
23592 echo "$as_me: failed program was:" >&5
23593sed 's/^/| /' conftest.$ac_ext >&5
23594
82eaf560 23595ac_cv_lib_m_cexpf=no
d213114b 23596fi
82eaf560 23597rm -f conftest.err conftest.$ac_objext \
d213114b 23598 conftest$ac_exeext conftest.$ac_ext
23599LIBS=$ac_check_lib_save_LIBS
23600fi
82eaf560 23601echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexpf" >&5
23602echo "${ECHO_T}$ac_cv_lib_m_cexpf" >&6
d213114b 23603if test $ac_cv_lib_m_cexpf = yes; then
23604
23605cat >>confdefs.h <<\_ACEOF
23606#define HAVE_CEXPF 1
23607_ACEOF
23608
23609fi
23610
82eaf560 23611echo "$as_me:$LINENO: checking for cexp in -lm" >&5
23612echo $ECHO_N "checking for cexp in -lm... $ECHO_C" >&6
d213114b 23613if test "${ac_cv_lib_m_cexp+set}" = set; then
23614 echo $ECHO_N "(cached) $ECHO_C" >&6
23615else
23616 ac_check_lib_save_LIBS=$LIBS
23617LIBS="-lm $LIBS"
23618if test x$gcc_no_link = xyes; then
23619 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23620echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23621 { (exit 1); exit 1; }; }
23622fi
23623cat >conftest.$ac_ext <<_ACEOF
23624/* confdefs.h. */
23625_ACEOF
23626cat confdefs.h >>conftest.$ac_ext
23627cat >>conftest.$ac_ext <<_ACEOF
23628/* end confdefs.h. */
23629
82eaf560 23630/* Override any gcc2 internal prototype to avoid an error. */
d213114b 23631#ifdef __cplusplus
23632extern "C"
23633#endif
82eaf560 23634/* We use char because int might match the return type of a gcc2
23635 builtin and then its argument prototype would still apply. */
d213114b 23636char cexp ();
23637int
23638main ()
23639{
82eaf560 23640cexp ();
d213114b 23641 ;
23642 return 0;
23643}
23644_ACEOF
23645rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 23646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647 (eval $ac_link) 2>conftest.er1
d213114b 23648 ac_status=$?
23649 grep -v '^ *+' conftest.er1 >conftest.err
23650 rm -f conftest.er1
23651 cat conftest.err >&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 23653 (exit $ac_status); } &&
23654 { ac_try='test -z "$ac_c_werror_flag"
23655 || test ! -s conftest.err'
23656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657 (eval $ac_try) 2>&5
23658 ac_status=$?
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); }; } &&
23661 { ac_try='test -s conftest$ac_exeext'
23662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663 (eval $ac_try) 2>&5
23664 ac_status=$?
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); }; }; then
d213114b 23667 ac_cv_lib_m_cexp=yes
23668else
23669 echo "$as_me: failed program was:" >&5
23670sed 's/^/| /' conftest.$ac_ext >&5
23671
82eaf560 23672ac_cv_lib_m_cexp=no
d213114b 23673fi
82eaf560 23674rm -f conftest.err conftest.$ac_objext \
d213114b 23675 conftest$ac_exeext conftest.$ac_ext
23676LIBS=$ac_check_lib_save_LIBS
23677fi
82eaf560 23678echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexp" >&5
23679echo "${ECHO_T}$ac_cv_lib_m_cexp" >&6
d213114b 23680if test $ac_cv_lib_m_cexp = yes; then
23681
23682cat >>confdefs.h <<\_ACEOF
23683#define HAVE_CEXP 1
23684_ACEOF
23685
23686fi
23687
82eaf560 23688echo "$as_me:$LINENO: checking for cexpl in -lm" >&5
23689echo $ECHO_N "checking for cexpl in -lm... $ECHO_C" >&6
d213114b 23690if test "${ac_cv_lib_m_cexpl+set}" = set; then
23691 echo $ECHO_N "(cached) $ECHO_C" >&6
23692else
23693 ac_check_lib_save_LIBS=$LIBS
23694LIBS="-lm $LIBS"
23695if test x$gcc_no_link = xyes; then
23696 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23697echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23698 { (exit 1); exit 1; }; }
23699fi
23700cat >conftest.$ac_ext <<_ACEOF
23701/* confdefs.h. */
23702_ACEOF
23703cat confdefs.h >>conftest.$ac_ext
23704cat >>conftest.$ac_ext <<_ACEOF
23705/* end confdefs.h. */
23706
82eaf560 23707/* Override any gcc2 internal prototype to avoid an error. */
d213114b 23708#ifdef __cplusplus
23709extern "C"
23710#endif
82eaf560 23711/* We use char because int might match the return type of a gcc2
23712 builtin and then its argument prototype would still apply. */
d213114b 23713char cexpl ();
23714int
23715main ()
23716{
82eaf560 23717cexpl ();
d213114b 23718 ;
23719 return 0;
23720}
23721_ACEOF
23722rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 23723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23724 (eval $ac_link) 2>conftest.er1
d213114b 23725 ac_status=$?
23726 grep -v '^ *+' conftest.er1 >conftest.err
23727 rm -f conftest.er1
23728 cat conftest.err >&5
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 23730 (exit $ac_status); } &&
23731 { ac_try='test -z "$ac_c_werror_flag"
23732 || test ! -s conftest.err'
23733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23734 (eval $ac_try) 2>&5
23735 ac_status=$?
23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); }; } &&
23738 { ac_try='test -s conftest$ac_exeext'
23739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740 (eval $ac_try) 2>&5
23741 ac_status=$?
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); }; }; then
d213114b 23744 ac_cv_lib_m_cexpl=yes
23745else
23746 echo "$as_me: failed program was:" >&5
23747sed 's/^/| /' conftest.$ac_ext >&5
23748
82eaf560 23749ac_cv_lib_m_cexpl=no
d213114b 23750fi
82eaf560 23751rm -f conftest.err conftest.$ac_objext \
d213114b 23752 conftest$ac_exeext conftest.$ac_ext
23753LIBS=$ac_check_lib_save_LIBS
23754fi
82eaf560 23755echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexpl" >&5
23756echo "${ECHO_T}$ac_cv_lib_m_cexpl" >&6
d213114b 23757if test $ac_cv_lib_m_cexpl = yes; then
23758
23759cat >>confdefs.h <<\_ACEOF
23760#define HAVE_CEXPL 1
23761_ACEOF
23762
23763fi
23764
82eaf560 23765echo "$as_me:$LINENO: checking for fabsf in -lm" >&5
23766echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6
d213114b 23767if test "${ac_cv_lib_m_fabsf+set}" = set; then
23768 echo $ECHO_N "(cached) $ECHO_C" >&6
23769else
23770 ac_check_lib_save_LIBS=$LIBS
23771LIBS="-lm $LIBS"
23772if test x$gcc_no_link = xyes; then
23773 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23774echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23775 { (exit 1); exit 1; }; }
23776fi
23777cat >conftest.$ac_ext <<_ACEOF
23778/* confdefs.h. */
23779_ACEOF
23780cat confdefs.h >>conftest.$ac_ext
23781cat >>conftest.$ac_ext <<_ACEOF
23782/* end confdefs.h. */
23783
82eaf560 23784/* Override any gcc2 internal prototype to avoid an error. */
d213114b 23785#ifdef __cplusplus
23786extern "C"
23787#endif
82eaf560 23788/* We use char because int might match the return type of a gcc2
23789 builtin and then its argument prototype would still apply. */
d213114b 23790char fabsf ();
23791int
23792main ()
23793{
82eaf560 23794fabsf ();
d213114b 23795 ;
23796 return 0;
23797}
23798_ACEOF
23799rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 23800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23801 (eval $ac_link) 2>conftest.er1
d213114b 23802 ac_status=$?
23803 grep -v '^ *+' conftest.er1 >conftest.err
23804 rm -f conftest.er1
23805 cat conftest.err >&5
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 23807 (exit $ac_status); } &&
23808 { ac_try='test -z "$ac_c_werror_flag"
23809 || test ! -s conftest.err'
23810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811 (eval $ac_try) 2>&5
23812 ac_status=$?
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); }; } &&
23815 { ac_try='test -s conftest$ac_exeext'
23816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817 (eval $ac_try) 2>&5
23818 ac_status=$?
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); }; }; then
d213114b 23821 ac_cv_lib_m_fabsf=yes
23822else
23823 echo "$as_me: failed program was:" >&5
23824sed 's/^/| /' conftest.$ac_ext >&5
23825
82eaf560 23826ac_cv_lib_m_fabsf=no
d213114b 23827fi
82eaf560 23828rm -f conftest.err conftest.$ac_objext \
d213114b 23829 conftest$ac_exeext conftest.$ac_ext
23830LIBS=$ac_check_lib_save_LIBS
23831fi
82eaf560 23832echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5
23833echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6
d213114b 23834if test $ac_cv_lib_m_fabsf = yes; then
23835
23836cat >>confdefs.h <<\_ACEOF
23837#define HAVE_FABSF 1
23838_ACEOF
23839
23840fi
23841
82eaf560 23842echo "$as_me:$LINENO: checking for fabs in -lm" >&5
23843echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6
d213114b 23844if test "${ac_cv_lib_m_fabs+set}" = set; then
23845 echo $ECHO_N "(cached) $ECHO_C" >&6
23846else
23847 ac_check_lib_save_LIBS=$LIBS
23848LIBS="-lm $LIBS"
23849if test x$gcc_no_link = xyes; then
23850 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23851echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23852 { (exit 1); exit 1; }; }
23853fi
23854cat >conftest.$ac_ext <<_ACEOF
23855/* confdefs.h. */
23856_ACEOF
23857cat confdefs.h >>conftest.$ac_ext
23858cat >>conftest.$ac_ext <<_ACEOF
23859/* end confdefs.h. */
23860
82eaf560 23861/* Override any gcc2 internal prototype to avoid an error. */
d213114b 23862#ifdef __cplusplus
23863extern "C"
23864#endif
82eaf560 23865/* We use char because int might match the return type of a gcc2
23866 builtin and then its argument prototype would still apply. */
d213114b 23867char fabs ();
23868int
23869main ()
23870{
82eaf560 23871fabs ();
d213114b 23872 ;
23873 return 0;
23874}
23875_ACEOF
23876rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 23877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23878 (eval $ac_link) 2>conftest.er1
d213114b 23879 ac_status=$?
23880 grep -v '^ *+' conftest.er1 >conftest.err
23881 rm -f conftest.er1
23882 cat conftest.err >&5
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 23884 (exit $ac_status); } &&
23885 { ac_try='test -z "$ac_c_werror_flag"
23886 || test ! -s conftest.err'
23887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888 (eval $ac_try) 2>&5
23889 ac_status=$?
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; } &&
23892 { ac_try='test -s conftest$ac_exeext'
23893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894 (eval $ac_try) 2>&5
23895 ac_status=$?
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); }; }; then
d213114b 23898 ac_cv_lib_m_fabs=yes
23899else
23900 echo "$as_me: failed program was:" >&5
23901sed 's/^/| /' conftest.$ac_ext >&5
23902
82eaf560 23903ac_cv_lib_m_fabs=no
d213114b 23904fi
82eaf560 23905rm -f conftest.err conftest.$ac_objext \
d213114b 23906 conftest$ac_exeext conftest.$ac_ext
23907LIBS=$ac_check_lib_save_LIBS
23908fi
82eaf560 23909echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5
23910echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
d213114b 23911if test $ac_cv_lib_m_fabs = yes; then
23912
23913cat >>confdefs.h <<\_ACEOF
23914#define HAVE_FABS 1
23915_ACEOF
23916
23917fi
23918
82eaf560 23919echo "$as_me:$LINENO: checking for fabsl in -lm" >&5
23920echo $ECHO_N "checking for fabsl in -lm... $ECHO_C" >&6
d213114b 23921if test "${ac_cv_lib_m_fabsl+set}" = set; then
23922 echo $ECHO_N "(cached) $ECHO_C" >&6
23923else
23924 ac_check_lib_save_LIBS=$LIBS
23925LIBS="-lm $LIBS"
23926if test x$gcc_no_link = xyes; then
23927 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23928echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23929 { (exit 1); exit 1; }; }
23930fi
23931cat >conftest.$ac_ext <<_ACEOF
23932/* confdefs.h. */
23933_ACEOF
23934cat confdefs.h >>conftest.$ac_ext
23935cat >>conftest.$ac_ext <<_ACEOF
23936/* end confdefs.h. */
23937
82eaf560 23938/* Override any gcc2 internal prototype to avoid an error. */
d213114b 23939#ifdef __cplusplus
23940extern "C"
23941#endif
82eaf560 23942/* We use char because int might match the return type of a gcc2
23943 builtin and then its argument prototype would still apply. */
d213114b 23944char fabsl ();
23945int
23946main ()
23947{
82eaf560 23948fabsl ();
d213114b 23949 ;
23950 return 0;
23951}
23952_ACEOF
23953rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 23954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23955 (eval $ac_link) 2>conftest.er1
d213114b 23956 ac_status=$?
23957 grep -v '^ *+' conftest.er1 >conftest.err
23958 rm -f conftest.er1
23959 cat conftest.err >&5
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 23961 (exit $ac_status); } &&
23962 { ac_try='test -z "$ac_c_werror_flag"
23963 || test ! -s conftest.err'
23964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23965 (eval $ac_try) 2>&5
23966 ac_status=$?
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); }; } &&
23969 { ac_try='test -s conftest$ac_exeext'
23970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971 (eval $ac_try) 2>&5
23972 ac_status=$?
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); }; }; then
d213114b 23975 ac_cv_lib_m_fabsl=yes
23976else
23977 echo "$as_me: failed program was:" >&5
23978sed 's/^/| /' conftest.$ac_ext >&5
23979
82eaf560 23980ac_cv_lib_m_fabsl=no
d213114b 23981fi
82eaf560 23982rm -f conftest.err conftest.$ac_objext \
d213114b 23983 conftest$ac_exeext conftest.$ac_ext
23984LIBS=$ac_check_lib_save_LIBS
23985fi
82eaf560 23986echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsl" >&5
23987echo "${ECHO_T}$ac_cv_lib_m_fabsl" >&6
d213114b 23988if test $ac_cv_lib_m_fabsl = yes; then
23989
23990cat >>confdefs.h <<\_ACEOF
23991#define HAVE_FABSL 1
23992_ACEOF
23993
23994fi
23995
82eaf560 23996echo "$as_me:$LINENO: checking for cabsf in -lm" >&5
23997echo $ECHO_N "checking for cabsf in -lm... $ECHO_C" >&6
d213114b 23998if test "${ac_cv_lib_m_cabsf+set}" = set; then
23999 echo $ECHO_N "(cached) $ECHO_C" >&6
24000else
24001 ac_check_lib_save_LIBS=$LIBS
24002LIBS="-lm $LIBS"
24003if test x$gcc_no_link = xyes; then
24004 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24005echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24006 { (exit 1); exit 1; }; }
24007fi
24008cat >conftest.$ac_ext <<_ACEOF
24009/* confdefs.h. */
24010_ACEOF
24011cat confdefs.h >>conftest.$ac_ext
24012cat >>conftest.$ac_ext <<_ACEOF
24013/* end confdefs.h. */
24014
82eaf560 24015/* Override any gcc2 internal prototype to avoid an error. */
d213114b 24016#ifdef __cplusplus
24017extern "C"
24018#endif
82eaf560 24019/* We use char because int might match the return type of a gcc2
24020 builtin and then its argument prototype would still apply. */
d213114b 24021char cabsf ();
24022int
24023main ()
24024{
82eaf560 24025cabsf ();
d213114b 24026 ;
24027 return 0;
24028}
24029_ACEOF
24030rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 24031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24032 (eval $ac_link) 2>conftest.er1
d213114b 24033 ac_status=$?
24034 grep -v '^ *+' conftest.er1 >conftest.err
24035 rm -f conftest.er1
24036 cat conftest.err >&5
24037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 24038 (exit $ac_status); } &&
24039 { ac_try='test -z "$ac_c_werror_flag"
24040 || test ! -s conftest.err'
24041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24042 (eval $ac_try) 2>&5
24043 ac_status=$?
24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); }; } &&
24046 { ac_try='test -s conftest$ac_exeext'
24047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24048 (eval $ac_try) 2>&5
24049 ac_status=$?
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); }; }; then
d213114b 24052 ac_cv_lib_m_cabsf=yes
24053else
24054 echo "$as_me: failed program was:" >&5
24055sed 's/^/| /' conftest.$ac_ext >&5
24056
82eaf560 24057ac_cv_lib_m_cabsf=no
d213114b 24058fi
82eaf560 24059rm -f conftest.err conftest.$ac_objext \
d213114b 24060 conftest$ac_exeext conftest.$ac_ext
24061LIBS=$ac_check_lib_save_LIBS
24062fi
82eaf560 24063echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabsf" >&5
24064echo "${ECHO_T}$ac_cv_lib_m_cabsf" >&6
d213114b 24065if test $ac_cv_lib_m_cabsf = yes; then
24066
24067cat >>confdefs.h <<\_ACEOF
24068#define HAVE_CABSF 1
24069_ACEOF
24070
24071fi
24072
82eaf560 24073echo "$as_me:$LINENO: checking for cabs in -lm" >&5
24074echo $ECHO_N "checking for cabs in -lm... $ECHO_C" >&6
d213114b 24075if test "${ac_cv_lib_m_cabs+set}" = set; then
24076 echo $ECHO_N "(cached) $ECHO_C" >&6
24077else
24078 ac_check_lib_save_LIBS=$LIBS
24079LIBS="-lm $LIBS"
24080if test x$gcc_no_link = xyes; then
24081 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24082echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24083 { (exit 1); exit 1; }; }
24084fi
24085cat >conftest.$ac_ext <<_ACEOF
24086/* confdefs.h. */
24087_ACEOF
24088cat confdefs.h >>conftest.$ac_ext
24089cat >>conftest.$ac_ext <<_ACEOF
24090/* end confdefs.h. */
24091
82eaf560 24092/* Override any gcc2 internal prototype to avoid an error. */
d213114b 24093#ifdef __cplusplus
24094extern "C"
24095#endif
82eaf560 24096/* We use char because int might match the return type of a gcc2
24097 builtin and then its argument prototype would still apply. */
d213114b 24098char cabs ();
24099int
24100main ()
24101{
82eaf560 24102cabs ();
d213114b 24103 ;
24104 return 0;
24105}
24106_ACEOF
24107rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 24108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24109 (eval $ac_link) 2>conftest.er1
d213114b 24110 ac_status=$?
24111 grep -v '^ *+' conftest.er1 >conftest.err
24112 rm -f conftest.er1
24113 cat conftest.err >&5
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 24115 (exit $ac_status); } &&
24116 { ac_try='test -z "$ac_c_werror_flag"
24117 || test ! -s conftest.err'
24118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24119 (eval $ac_try) 2>&5
24120 ac_status=$?
24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); }; } &&
24123 { ac_try='test -s conftest$ac_exeext'
24124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24125 (eval $ac_try) 2>&5
24126 ac_status=$?
24127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); }; }; then
d213114b 24129 ac_cv_lib_m_cabs=yes
24130else
24131 echo "$as_me: failed program was:" >&5
24132sed 's/^/| /' conftest.$ac_ext >&5
24133
82eaf560 24134ac_cv_lib_m_cabs=no
d213114b 24135fi
82eaf560 24136rm -f conftest.err conftest.$ac_objext \
d213114b 24137 conftest$ac_exeext conftest.$ac_ext
24138LIBS=$ac_check_lib_save_LIBS
24139fi
82eaf560 24140echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabs" >&5
24141echo "${ECHO_T}$ac_cv_lib_m_cabs" >&6
d213114b 24142if test $ac_cv_lib_m_cabs = yes; then
24143
24144cat >>confdefs.h <<\_ACEOF
24145#define HAVE_CABS 1
24146_ACEOF
24147
24148fi
24149
82eaf560 24150echo "$as_me:$LINENO: checking for cabsl in -lm" >&5
24151echo $ECHO_N "checking for cabsl in -lm... $ECHO_C" >&6
d213114b 24152if test "${ac_cv_lib_m_cabsl+set}" = set; then
24153 echo $ECHO_N "(cached) $ECHO_C" >&6
24154else
24155 ac_check_lib_save_LIBS=$LIBS
24156LIBS="-lm $LIBS"
24157if test x$gcc_no_link = xyes; then
24158 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24159echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24160 { (exit 1); exit 1; }; }
24161fi
24162cat >conftest.$ac_ext <<_ACEOF
24163/* confdefs.h. */
24164_ACEOF
24165cat confdefs.h >>conftest.$ac_ext
24166cat >>conftest.$ac_ext <<_ACEOF
24167/* end confdefs.h. */
24168
82eaf560 24169/* Override any gcc2 internal prototype to avoid an error. */
d213114b 24170#ifdef __cplusplus
24171extern "C"
24172#endif
82eaf560 24173/* We use char because int might match the return type of a gcc2
24174 builtin and then its argument prototype would still apply. */
d213114b 24175char cabsl ();
24176int
24177main ()
24178{
82eaf560 24179cabsl ();
d213114b 24180 ;
24181 return 0;
24182}
24183_ACEOF
24184rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 24185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24186 (eval $ac_link) 2>conftest.er1
d213114b 24187 ac_status=$?
24188 grep -v '^ *+' conftest.er1 >conftest.err
24189 rm -f conftest.er1
24190 cat conftest.err >&5
24191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 24192 (exit $ac_status); } &&
24193 { ac_try='test -z "$ac_c_werror_flag"
24194 || test ! -s conftest.err'
24195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24196 (eval $ac_try) 2>&5
24197 ac_status=$?
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); }; } &&
24200 { ac_try='test -s conftest$ac_exeext'
24201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24202 (eval $ac_try) 2>&5
24203 ac_status=$?
24204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205 (exit $ac_status); }; }; then
d213114b 24206 ac_cv_lib_m_cabsl=yes
24207else
24208 echo "$as_me: failed program was:" >&5
24209sed 's/^/| /' conftest.$ac_ext >&5
24210
82eaf560 24211ac_cv_lib_m_cabsl=no
d213114b 24212fi
82eaf560 24213rm -f conftest.err conftest.$ac_objext \
d213114b 24214 conftest$ac_exeext conftest.$ac_ext
24215LIBS=$ac_check_lib_save_LIBS
24216fi
82eaf560 24217echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabsl" >&5
24218echo "${ECHO_T}$ac_cv_lib_m_cabsl" >&6
d213114b 24219if test $ac_cv_lib_m_cabsl = yes; then
24220
24221cat >>confdefs.h <<\_ACEOF
24222#define HAVE_CABSL 1
24223_ACEOF
24224
24225fi
24226
82eaf560 24227echo "$as_me:$LINENO: checking for floorf in -lm" >&5
24228echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
d213114b 24229if test "${ac_cv_lib_m_floorf+set}" = set; then
24230 echo $ECHO_N "(cached) $ECHO_C" >&6
24231else
24232 ac_check_lib_save_LIBS=$LIBS
24233LIBS="-lm $LIBS"
24234if test x$gcc_no_link = xyes; then
24235 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24236echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24237 { (exit 1); exit 1; }; }
24238fi
24239cat >conftest.$ac_ext <<_ACEOF
24240/* confdefs.h. */
24241_ACEOF
24242cat confdefs.h >>conftest.$ac_ext
24243cat >>conftest.$ac_ext <<_ACEOF
24244/* end confdefs.h. */
24245
82eaf560 24246/* Override any gcc2 internal prototype to avoid an error. */
d213114b 24247#ifdef __cplusplus
24248extern "C"
24249#endif
82eaf560 24250/* We use char because int might match the return type of a gcc2
24251 builtin and then its argument prototype would still apply. */
d213114b 24252char floorf ();
24253int
24254main ()
24255{
82eaf560 24256floorf ();
d213114b 24257 ;
24258 return 0;
24259}
24260_ACEOF
24261rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 24262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24263 (eval $ac_link) 2>conftest.er1
d213114b 24264 ac_status=$?
24265 grep -v '^ *+' conftest.er1 >conftest.err
24266 rm -f conftest.er1
24267 cat conftest.err >&5
24268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 24269 (exit $ac_status); } &&
24270 { ac_try='test -z "$ac_c_werror_flag"
24271 || test ! -s conftest.err'
24272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24273 (eval $ac_try) 2>&5
24274 ac_status=$?
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); }; } &&
24277 { ac_try='test -s conftest$ac_exeext'
24278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24279 (eval $ac_try) 2>&5
24280 ac_status=$?
24281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282 (exit $ac_status); }; }; then
d213114b 24283 ac_cv_lib_m_floorf=yes
24284else
24285 echo "$as_me: failed program was:" >&5
24286sed 's/^/| /' conftest.$ac_ext >&5
24287
82eaf560 24288ac_cv_lib_m_floorf=no
d213114b 24289fi
82eaf560 24290rm -f conftest.err conftest.$ac_objext \
d213114b 24291 conftest$ac_exeext conftest.$ac_ext
24292LIBS=$ac_check_lib_save_LIBS
24293fi
82eaf560 24294echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
24295echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
d213114b 24296if test $ac_cv_lib_m_floorf = yes; then
24297
24298cat >>confdefs.h <<\_ACEOF
24299#define HAVE_FLOORF 1
24300_ACEOF
24301
24302fi
24303
82eaf560 24304echo "$as_me:$LINENO: checking for floor in -lm" >&5
24305echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
d213114b 24306if test "${ac_cv_lib_m_floor+set}" = set; then
24307 echo $ECHO_N "(cached) $ECHO_C" >&6
24308else
24309 ac_check_lib_save_LIBS=$LIBS
24310LIBS="-lm $LIBS"
24311if test x$gcc_no_link = xyes; then
24312 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24313echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24314 { (exit 1); exit 1; }; }
24315fi
24316cat >conftest.$ac_ext <<_ACEOF
24317/* confdefs.h. */
24318_ACEOF
24319cat confdefs.h >>conftest.$ac_ext
24320cat >>conftest.$ac_ext <<_ACEOF
24321/* end confdefs.h. */
24322
82eaf560 24323/* Override any gcc2 internal prototype to avoid an error. */
d213114b 24324#ifdef __cplusplus
24325extern "C"
24326#endif
82eaf560 24327/* We use char because int might match the return type of a gcc2
24328 builtin and then its argument prototype would still apply. */
d213114b 24329char floor ();
24330int
24331main ()
24332{
82eaf560 24333floor ();
d213114b 24334 ;
24335 return 0;
24336}
24337_ACEOF
24338rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 24339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24340 (eval $ac_link) 2>conftest.er1
d213114b 24341 ac_status=$?
24342 grep -v '^ *+' conftest.er1 >conftest.err
24343 rm -f conftest.er1
24344 cat conftest.err >&5
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 24346 (exit $ac_status); } &&
24347 { ac_try='test -z "$ac_c_werror_flag"
24348 || test ! -s conftest.err'
24349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24350 (eval $ac_try) 2>&5
24351 ac_status=$?
24352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353 (exit $ac_status); }; } &&
24354 { ac_try='test -s conftest$ac_exeext'
24355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24356 (eval $ac_try) 2>&5
24357 ac_status=$?
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); }; }; then
d213114b 24360 ac_cv_lib_m_floor=yes
24361else
24362 echo "$as_me: failed program was:" >&5
24363sed 's/^/| /' conftest.$ac_ext >&5
24364
82eaf560 24365ac_cv_lib_m_floor=no
d213114b 24366fi
82eaf560 24367rm -f conftest.err conftest.$ac_objext \
d213114b 24368 conftest$ac_exeext conftest.$ac_ext
24369LIBS=$ac_check_lib_save_LIBS
24370fi
82eaf560 24371echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
24372echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
d213114b 24373if test $ac_cv_lib_m_floor = yes; then
24374
24375cat >>confdefs.h <<\_ACEOF
24376#define HAVE_FLOOR 1
24377_ACEOF
24378
24379fi
24380
82eaf560 24381echo "$as_me:$LINENO: checking for floorl in -lm" >&5
24382echo $ECHO_N "checking for floorl in -lm... $ECHO_C" >&6
d213114b 24383if test "${ac_cv_lib_m_floorl+set}" = set; then
24384 echo $ECHO_N "(cached) $ECHO_C" >&6
24385else
24386 ac_check_lib_save_LIBS=$LIBS
24387LIBS="-lm $LIBS"
24388if test x$gcc_no_link = xyes; then
24389 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24390echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24391 { (exit 1); exit 1; }; }
24392fi
24393cat >conftest.$ac_ext <<_ACEOF
24394/* confdefs.h. */
24395_ACEOF
24396cat confdefs.h >>conftest.$ac_ext
24397cat >>conftest.$ac_ext <<_ACEOF
24398/* end confdefs.h. */
24399
82eaf560 24400/* Override any gcc2 internal prototype to avoid an error. */
d213114b 24401#ifdef __cplusplus
24402extern "C"
24403#endif
82eaf560 24404/* We use char because int might match the return type of a gcc2
24405 builtin and then its argument prototype would still apply. */
d213114b 24406char floorl ();
24407int
24408main ()
24409{
82eaf560 24410floorl ();
d213114b 24411 ;
24412 return 0;
24413}
24414_ACEOF
24415rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 24416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24417 (eval $ac_link) 2>conftest.er1
d213114b 24418 ac_status=$?
24419 grep -v '^ *+' conftest.er1 >conftest.err
24420 rm -f conftest.er1
24421 cat conftest.err >&5
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 24423 (exit $ac_status); } &&
24424 { ac_try='test -z "$ac_c_werror_flag"
24425 || test ! -s conftest.err'
24426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24427 (eval $ac_try) 2>&5
24428 ac_status=$?
24429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430 (exit $ac_status); }; } &&
24431 { ac_try='test -s conftest$ac_exeext'
24432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24433 (eval $ac_try) 2>&5
24434 ac_status=$?
24435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); }; }; then
d213114b 24437 ac_cv_lib_m_floorl=yes
24438else
24439 echo "$as_me: failed program was:" >&5
24440sed 's/^/| /' conftest.$ac_ext >&5
24441
82eaf560 24442ac_cv_lib_m_floorl=no
d213114b 24443fi
82eaf560 24444rm -f conftest.err conftest.$ac_objext \
d213114b 24445 conftest$ac_exeext conftest.$ac_ext
24446LIBS=$ac_check_lib_save_LIBS
24447fi
82eaf560 24448echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorl" >&5
24449echo "${ECHO_T}$ac_cv_lib_m_floorl" >&6
d213114b 24450if test $ac_cv_lib_m_floorl = yes; then
24451
24452cat >>confdefs.h <<\_ACEOF
24453#define HAVE_FLOORL 1
24454_ACEOF
24455
24456fi
24457
82eaf560 24458echo "$as_me:$LINENO: checking for fmodf in -lm" >&5
24459echo $ECHO_N "checking for fmodf in -lm... $ECHO_C" >&6
71d5b534 24460if test "${ac_cv_lib_m_fmodf+set}" = set; then
24461 echo $ECHO_N "(cached) $ECHO_C" >&6
24462else
24463 ac_check_lib_save_LIBS=$LIBS
24464LIBS="-lm $LIBS"
24465if test x$gcc_no_link = xyes; then
24466 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24467echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24468 { (exit 1); exit 1; }; }
24469fi
24470cat >conftest.$ac_ext <<_ACEOF
24471/* confdefs.h. */
24472_ACEOF
24473cat confdefs.h >>conftest.$ac_ext
24474cat >>conftest.$ac_ext <<_ACEOF
24475/* end confdefs.h. */
24476
82eaf560 24477/* Override any gcc2 internal prototype to avoid an error. */
71d5b534 24478#ifdef __cplusplus
24479extern "C"
24480#endif
82eaf560 24481/* We use char because int might match the return type of a gcc2
24482 builtin and then its argument prototype would still apply. */
71d5b534 24483char fmodf ();
24484int
24485main ()
24486{
82eaf560 24487fmodf ();
71d5b534 24488 ;
24489 return 0;
24490}
24491_ACEOF
24492rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 24493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24494 (eval $ac_link) 2>conftest.er1
71d5b534 24495 ac_status=$?
24496 grep -v '^ *+' conftest.er1 >conftest.err
24497 rm -f conftest.er1
24498 cat conftest.err >&5
24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 24500 (exit $ac_status); } &&
24501 { ac_try='test -z "$ac_c_werror_flag"
24502 || test ! -s conftest.err'
24503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24504 (eval $ac_try) 2>&5
24505 ac_status=$?
24506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507 (exit $ac_status); }; } &&
24508 { ac_try='test -s conftest$ac_exeext'
24509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24510 (eval $ac_try) 2>&5
24511 ac_status=$?
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); }; }; then
71d5b534 24514 ac_cv_lib_m_fmodf=yes
24515else
24516 echo "$as_me: failed program was:" >&5
24517sed 's/^/| /' conftest.$ac_ext >&5
24518
82eaf560 24519ac_cv_lib_m_fmodf=no
71d5b534 24520fi
82eaf560 24521rm -f conftest.err conftest.$ac_objext \
71d5b534 24522 conftest$ac_exeext conftest.$ac_ext
24523LIBS=$ac_check_lib_save_LIBS
24524fi
82eaf560 24525echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmodf" >&5
24526echo "${ECHO_T}$ac_cv_lib_m_fmodf" >&6
71d5b534 24527if test $ac_cv_lib_m_fmodf = yes; then
24528
24529cat >>confdefs.h <<\_ACEOF
24530#define HAVE_FMODF 1
24531_ACEOF
24532
24533fi
24534
82eaf560 24535echo "$as_me:$LINENO: checking for fmod in -lm" >&5
24536echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
71d5b534 24537if test "${ac_cv_lib_m_fmod+set}" = set; then
24538 echo $ECHO_N "(cached) $ECHO_C" >&6
24539else
24540 ac_check_lib_save_LIBS=$LIBS
24541LIBS="-lm $LIBS"
24542if test x$gcc_no_link = xyes; then
24543 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24544echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24545 { (exit 1); exit 1; }; }
24546fi
24547cat >conftest.$ac_ext <<_ACEOF
24548/* confdefs.h. */
24549_ACEOF
24550cat confdefs.h >>conftest.$ac_ext
24551cat >>conftest.$ac_ext <<_ACEOF
24552/* end confdefs.h. */
24553
82eaf560 24554/* Override any gcc2 internal prototype to avoid an error. */
71d5b534 24555#ifdef __cplusplus
24556extern "C"
24557#endif
82eaf560 24558/* We use char because int might match the return type of a gcc2
24559 builtin and then its argument prototype would still apply. */
71d5b534 24560char fmod ();
24561int
24562main ()
24563{
82eaf560 24564fmod ();
71d5b534 24565 ;
24566 return 0;
24567}
24568_ACEOF
24569rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 24570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24571 (eval $ac_link) 2>conftest.er1
71d5b534 24572 ac_status=$?
24573 grep -v '^ *+' conftest.er1 >conftest.err
24574 rm -f conftest.er1
24575 cat conftest.err >&5
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 24577 (exit $ac_status); } &&
24578 { ac_try='test -z "$ac_c_werror_flag"
24579 || test ! -s conftest.err'
24580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24581 (eval $ac_try) 2>&5
24582 ac_status=$?
24583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584 (exit $ac_status); }; } &&
24585 { ac_try='test -s conftest$ac_exeext'
24586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24587 (eval $ac_try) 2>&5
24588 ac_status=$?
24589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590 (exit $ac_status); }; }; then
71d5b534 24591 ac_cv_lib_m_fmod=yes
24592else
24593 echo "$as_me: failed program was:" >&5
24594sed 's/^/| /' conftest.$ac_ext >&5
24595
82eaf560 24596ac_cv_lib_m_fmod=no
71d5b534 24597fi
82eaf560 24598rm -f conftest.err conftest.$ac_objext \
71d5b534 24599 conftest$ac_exeext conftest.$ac_ext
24600LIBS=$ac_check_lib_save_LIBS
24601fi
82eaf560 24602echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
24603echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
71d5b534 24604if test $ac_cv_lib_m_fmod = yes; then
24605
24606cat >>confdefs.h <<\_ACEOF
24607#define HAVE_FMOD 1
24608_ACEOF
24609
24610fi
24611
82eaf560 24612echo "$as_me:$LINENO: checking for fmodl in -lm" >&5
24613echo $ECHO_N "checking for fmodl in -lm... $ECHO_C" >&6
71d5b534 24614if test "${ac_cv_lib_m_fmodl+set}" = set; then
24615 echo $ECHO_N "(cached) $ECHO_C" >&6
24616else
24617 ac_check_lib_save_LIBS=$LIBS
24618LIBS="-lm $LIBS"
24619if test x$gcc_no_link = xyes; then
24620 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24621echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24622 { (exit 1); exit 1; }; }
24623fi
24624cat >conftest.$ac_ext <<_ACEOF
24625/* confdefs.h. */
24626_ACEOF
24627cat confdefs.h >>conftest.$ac_ext
24628cat >>conftest.$ac_ext <<_ACEOF
24629/* end confdefs.h. */
24630
82eaf560 24631/* Override any gcc2 internal prototype to avoid an error. */
71d5b534 24632#ifdef __cplusplus
24633extern "C"
24634#endif
82eaf560 24635/* We use char because int might match the return type of a gcc2
24636 builtin and then its argument prototype would still apply. */
71d5b534 24637char fmodl ();
24638int
24639main ()
24640{
82eaf560 24641fmodl ();
71d5b534 24642 ;
24643 return 0;
24644}
24645_ACEOF
24646rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 24647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24648 (eval $ac_link) 2>conftest.er1
71d5b534 24649 ac_status=$?
24650 grep -v '^ *+' conftest.er1 >conftest.err
24651 rm -f conftest.er1
24652 cat conftest.err >&5
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 24654 (exit $ac_status); } &&
24655 { ac_try='test -z "$ac_c_werror_flag"
24656 || test ! -s conftest.err'
24657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24658 (eval $ac_try) 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; } &&
24662 { ac_try='test -s conftest$ac_exeext'
24663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24664 (eval $ac_try) 2>&5
24665 ac_status=$?
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); }; }; then
71d5b534 24668 ac_cv_lib_m_fmodl=yes
24669else
24670 echo "$as_me: failed program was:" >&5
24671sed 's/^/| /' conftest.$ac_ext >&5
24672
82eaf560 24673ac_cv_lib_m_fmodl=no
71d5b534 24674fi
82eaf560 24675rm -f conftest.err conftest.$ac_objext \
71d5b534 24676 conftest$ac_exeext conftest.$ac_ext
24677LIBS=$ac_check_lib_save_LIBS
24678fi
82eaf560 24679echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmodl" >&5
24680echo "${ECHO_T}$ac_cv_lib_m_fmodl" >&6
71d5b534 24681if test $ac_cv_lib_m_fmodl = yes; then
24682
24683cat >>confdefs.h <<\_ACEOF
24684#define HAVE_FMODL 1
24685_ACEOF
24686
24687fi
24688
82eaf560 24689echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
24690echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
d213114b 24691if test "${ac_cv_lib_m_frexpf+set}" = set; then
24692 echo $ECHO_N "(cached) $ECHO_C" >&6
24693else
24694 ac_check_lib_save_LIBS=$LIBS
24695LIBS="-lm $LIBS"
24696if test x$gcc_no_link = xyes; then
24697 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24698echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24699 { (exit 1); exit 1; }; }
24700fi
24701cat >conftest.$ac_ext <<_ACEOF
24702/* confdefs.h. */
24703_ACEOF
24704cat confdefs.h >>conftest.$ac_ext
24705cat >>conftest.$ac_ext <<_ACEOF
24706/* end confdefs.h. */
24707
82eaf560 24708/* Override any gcc2 internal prototype to avoid an error. */
d213114b 24709#ifdef __cplusplus
24710extern "C"
24711#endif
82eaf560 24712/* We use char because int might match the return type of a gcc2
24713 builtin and then its argument prototype would still apply. */
d213114b 24714char frexpf ();
24715int
24716main ()
24717{
82eaf560 24718frexpf ();
d213114b 24719 ;
24720 return 0;
24721}
24722_ACEOF
24723rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 24724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24725 (eval $ac_link) 2>conftest.er1
d213114b 24726 ac_status=$?
24727 grep -v '^ *+' conftest.er1 >conftest.err
24728 rm -f conftest.er1
24729 cat conftest.err >&5
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 24731 (exit $ac_status); } &&
24732 { ac_try='test -z "$ac_c_werror_flag"
24733 || test ! -s conftest.err'
24734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735 (eval $ac_try) 2>&5
24736 ac_status=$?
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; } &&
24739 { ac_try='test -s conftest$ac_exeext'
24740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24741 (eval $ac_try) 2>&5
24742 ac_status=$?
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); }; }; then
d213114b 24745 ac_cv_lib_m_frexpf=yes
24746else
24747 echo "$as_me: failed program was:" >&5
24748sed 's/^/| /' conftest.$ac_ext >&5
24749
82eaf560 24750ac_cv_lib_m_frexpf=no
d213114b 24751fi
82eaf560 24752rm -f conftest.err conftest.$ac_objext \
d213114b 24753 conftest$ac_exeext conftest.$ac_ext
24754LIBS=$ac_check_lib_save_LIBS
24755fi
82eaf560 24756echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
24757echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
d213114b 24758if test $ac_cv_lib_m_frexpf = yes; then
24759
24760cat >>confdefs.h <<\_ACEOF
24761#define HAVE_FREXPF 1
24762_ACEOF
24763
24764fi
24765
82eaf560 24766echo "$as_me:$LINENO: checking for frexp in -lm" >&5
24767echo $ECHO_N "checking for frexp in -lm... $ECHO_C" >&6
d213114b 24768if test "${ac_cv_lib_m_frexp+set}" = set; then
24769 echo $ECHO_N "(cached) $ECHO_C" >&6
24770else
24771 ac_check_lib_save_LIBS=$LIBS
24772LIBS="-lm $LIBS"
24773if test x$gcc_no_link = xyes; then
24774 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24775echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24776 { (exit 1); exit 1; }; }
24777fi
24778cat >conftest.$ac_ext <<_ACEOF
24779/* confdefs.h. */
24780_ACEOF
24781cat confdefs.h >>conftest.$ac_ext
24782cat >>conftest.$ac_ext <<_ACEOF
24783/* end confdefs.h. */
24784
82eaf560 24785/* Override any gcc2 internal prototype to avoid an error. */
d213114b 24786#ifdef __cplusplus
24787extern "C"
24788#endif
82eaf560 24789/* We use char because int might match the return type of a gcc2
24790 builtin and then its argument prototype would still apply. */
d213114b 24791char frexp ();
24792int
24793main ()
24794{
82eaf560 24795frexp ();
d213114b 24796 ;
24797 return 0;
24798}
24799_ACEOF
24800rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 24801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24802 (eval $ac_link) 2>conftest.er1
d213114b 24803 ac_status=$?
24804 grep -v '^ *+' conftest.er1 >conftest.err
24805 rm -f conftest.er1
24806 cat conftest.err >&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 24808 (exit $ac_status); } &&
24809 { ac_try='test -z "$ac_c_werror_flag"
24810 || test ! -s conftest.err'
24811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812 (eval $ac_try) 2>&5
24813 ac_status=$?
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); }; } &&
24816 { ac_try='test -s conftest$ac_exeext'
24817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818 (eval $ac_try) 2>&5
24819 ac_status=$?
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; }; then
d213114b 24822 ac_cv_lib_m_frexp=yes
24823else
24824 echo "$as_me: failed program was:" >&5
24825sed 's/^/| /' conftest.$ac_ext >&5
24826
82eaf560 24827ac_cv_lib_m_frexp=no
d213114b 24828fi
82eaf560 24829rm -f conftest.err conftest.$ac_objext \
d213114b 24830 conftest$ac_exeext conftest.$ac_ext
24831LIBS=$ac_check_lib_save_LIBS
24832fi
82eaf560 24833echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexp" >&5
24834echo "${ECHO_T}$ac_cv_lib_m_frexp" >&6
d213114b 24835if test $ac_cv_lib_m_frexp = yes; then
24836
24837cat >>confdefs.h <<\_ACEOF
24838#define HAVE_FREXP 1
24839_ACEOF
24840
24841fi
24842
82eaf560 24843echo "$as_me:$LINENO: checking for frexpl in -lm" >&5
24844echo $ECHO_N "checking for frexpl in -lm... $ECHO_C" >&6
d213114b 24845if test "${ac_cv_lib_m_frexpl+set}" = set; then
24846 echo $ECHO_N "(cached) $ECHO_C" >&6
24847else
24848 ac_check_lib_save_LIBS=$LIBS
24849LIBS="-lm $LIBS"
24850if test x$gcc_no_link = xyes; then
24851 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24852echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24853 { (exit 1); exit 1; }; }
24854fi
24855cat >conftest.$ac_ext <<_ACEOF
24856/* confdefs.h. */
24857_ACEOF
24858cat confdefs.h >>conftest.$ac_ext
24859cat >>conftest.$ac_ext <<_ACEOF
24860/* end confdefs.h. */
24861
82eaf560 24862/* Override any gcc2 internal prototype to avoid an error. */
d213114b 24863#ifdef __cplusplus
24864extern "C"
24865#endif
82eaf560 24866/* We use char because int might match the return type of a gcc2
24867 builtin and then its argument prototype would still apply. */
d213114b 24868char frexpl ();
24869int
24870main ()
24871{
82eaf560 24872frexpl ();
d213114b 24873 ;
24874 return 0;
24875}
24876_ACEOF
24877rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 24878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24879 (eval $ac_link) 2>conftest.er1
d213114b 24880 ac_status=$?
24881 grep -v '^ *+' conftest.er1 >conftest.err
24882 rm -f conftest.er1
24883 cat conftest.err >&5
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 24885 (exit $ac_status); } &&
24886 { ac_try='test -z "$ac_c_werror_flag"
24887 || test ! -s conftest.err'
24888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24889 (eval $ac_try) 2>&5
24890 ac_status=$?
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); }; } &&
24893 { ac_try='test -s conftest$ac_exeext'
24894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24895 (eval $ac_try) 2>&5
24896 ac_status=$?
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); }; }; then
d213114b 24899 ac_cv_lib_m_frexpl=yes
24900else
24901 echo "$as_me: failed program was:" >&5
24902sed 's/^/| /' conftest.$ac_ext >&5
24903
82eaf560 24904ac_cv_lib_m_frexpl=no
d213114b 24905fi
82eaf560 24906rm -f conftest.err conftest.$ac_objext \
d213114b 24907 conftest$ac_exeext conftest.$ac_ext
24908LIBS=$ac_check_lib_save_LIBS
24909fi
82eaf560 24910echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpl" >&5
24911echo "${ECHO_T}$ac_cv_lib_m_frexpl" >&6
d213114b 24912if test $ac_cv_lib_m_frexpl = yes; then
24913
24914cat >>confdefs.h <<\_ACEOF
24915#define HAVE_FREXPL 1
24916_ACEOF
24917
24918fi
24919
82eaf560 24920echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
24921echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
d213114b 24922if test "${ac_cv_lib_m_hypotf+set}" = set; then
24923 echo $ECHO_N "(cached) $ECHO_C" >&6
24924else
24925 ac_check_lib_save_LIBS=$LIBS
24926LIBS="-lm $LIBS"
24927if test x$gcc_no_link = xyes; then
24928 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24929echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24930 { (exit 1); exit 1; }; }
24931fi
24932cat >conftest.$ac_ext <<_ACEOF
24933/* confdefs.h. */
24934_ACEOF
24935cat confdefs.h >>conftest.$ac_ext
24936cat >>conftest.$ac_ext <<_ACEOF
24937/* end confdefs.h. */
24938
82eaf560 24939/* Override any gcc2 internal prototype to avoid an error. */
d213114b 24940#ifdef __cplusplus
24941extern "C"
24942#endif
82eaf560 24943/* We use char because int might match the return type of a gcc2
24944 builtin and then its argument prototype would still apply. */
d213114b 24945char hypotf ();
24946int
24947main ()
24948{
82eaf560 24949hypotf ();
d213114b 24950 ;
24951 return 0;
24952}
24953_ACEOF
24954rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 24955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24956 (eval $ac_link) 2>conftest.er1
24957 ac_status=$?
24958 grep -v '^ *+' conftest.er1 >conftest.err
24959 rm -f conftest.er1
24960 cat conftest.err >&5
24961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); } &&
24963 { ac_try='test -z "$ac_c_werror_flag"
24964 || test ! -s conftest.err'
24965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24966 (eval $ac_try) 2>&5
24967 ac_status=$?
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); }; } &&
24970 { ac_try='test -s conftest$ac_exeext'
24971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24972 (eval $ac_try) 2>&5
d213114b 24973 ac_status=$?
d213114b 24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 24975 (exit $ac_status); }; }; then
d213114b 24976 ac_cv_lib_m_hypotf=yes
24977else
24978 echo "$as_me: failed program was:" >&5
24979sed 's/^/| /' conftest.$ac_ext >&5
24980
82eaf560 24981ac_cv_lib_m_hypotf=no
d213114b 24982fi
82eaf560 24983rm -f conftest.err conftest.$ac_objext \
d213114b 24984 conftest$ac_exeext conftest.$ac_ext
24985LIBS=$ac_check_lib_save_LIBS
24986fi
82eaf560 24987echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
24988echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
d213114b 24989if test $ac_cv_lib_m_hypotf = yes; then
24990
24991cat >>confdefs.h <<\_ACEOF
24992#define HAVE_HYPOTF 1
24993_ACEOF
24994
24995fi
24996
82eaf560 24997echo "$as_me:$LINENO: checking for hypot in -lm" >&5
24998echo $ECHO_N "checking for hypot in -lm... $ECHO_C" >&6
d213114b 24999if test "${ac_cv_lib_m_hypot+set}" = set; then
25000 echo $ECHO_N "(cached) $ECHO_C" >&6
25001else
25002 ac_check_lib_save_LIBS=$LIBS
25003LIBS="-lm $LIBS"
25004if test x$gcc_no_link = xyes; then
25005 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25006echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25007 { (exit 1); exit 1; }; }
25008fi
25009cat >conftest.$ac_ext <<_ACEOF
25010/* confdefs.h. */
25011_ACEOF
25012cat confdefs.h >>conftest.$ac_ext
25013cat >>conftest.$ac_ext <<_ACEOF
25014/* end confdefs.h. */
25015
82eaf560 25016/* Override any gcc2 internal prototype to avoid an error. */
d213114b 25017#ifdef __cplusplus
25018extern "C"
25019#endif
82eaf560 25020/* We use char because int might match the return type of a gcc2
25021 builtin and then its argument prototype would still apply. */
d213114b 25022char hypot ();
25023int
25024main ()
25025{
82eaf560 25026hypot ();
d213114b 25027 ;
25028 return 0;
25029}
25030_ACEOF
25031rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 25032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25033 (eval $ac_link) 2>conftest.er1
d213114b 25034 ac_status=$?
25035 grep -v '^ *+' conftest.er1 >conftest.err
25036 rm -f conftest.er1
25037 cat conftest.err >&5
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 25039 (exit $ac_status); } &&
25040 { ac_try='test -z "$ac_c_werror_flag"
25041 || test ! -s conftest.err'
25042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25043 (eval $ac_try) 2>&5
25044 ac_status=$?
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); }; } &&
25047 { ac_try='test -s conftest$ac_exeext'
25048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25049 (eval $ac_try) 2>&5
25050 ac_status=$?
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); }; }; then
d213114b 25053 ac_cv_lib_m_hypot=yes
25054else
25055 echo "$as_me: failed program was:" >&5
25056sed 's/^/| /' conftest.$ac_ext >&5
25057
82eaf560 25058ac_cv_lib_m_hypot=no
d213114b 25059fi
82eaf560 25060rm -f conftest.err conftest.$ac_objext \
d213114b 25061 conftest$ac_exeext conftest.$ac_ext
25062LIBS=$ac_check_lib_save_LIBS
25063fi
82eaf560 25064echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypot" >&5
25065echo "${ECHO_T}$ac_cv_lib_m_hypot" >&6
d213114b 25066if test $ac_cv_lib_m_hypot = yes; then
25067
25068cat >>confdefs.h <<\_ACEOF
25069#define HAVE_HYPOT 1
25070_ACEOF
25071
25072fi
25073
82eaf560 25074echo "$as_me:$LINENO: checking for hypotl in -lm" >&5
25075echo $ECHO_N "checking for hypotl in -lm... $ECHO_C" >&6
d213114b 25076if test "${ac_cv_lib_m_hypotl+set}" = set; then
25077 echo $ECHO_N "(cached) $ECHO_C" >&6
25078else
25079 ac_check_lib_save_LIBS=$LIBS
25080LIBS="-lm $LIBS"
25081if test x$gcc_no_link = xyes; then
25082 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25083echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25084 { (exit 1); exit 1; }; }
25085fi
25086cat >conftest.$ac_ext <<_ACEOF
25087/* confdefs.h. */
25088_ACEOF
25089cat confdefs.h >>conftest.$ac_ext
25090cat >>conftest.$ac_ext <<_ACEOF
25091/* end confdefs.h. */
25092
82eaf560 25093/* Override any gcc2 internal prototype to avoid an error. */
d213114b 25094#ifdef __cplusplus
25095extern "C"
25096#endif
82eaf560 25097/* We use char because int might match the return type of a gcc2
25098 builtin and then its argument prototype would still apply. */
d213114b 25099char hypotl ();
25100int
25101main ()
25102{
82eaf560 25103hypotl ();
d213114b 25104 ;
25105 return 0;
25106}
25107_ACEOF
25108rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 25109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25110 (eval $ac_link) 2>conftest.er1
d213114b 25111 ac_status=$?
25112 grep -v '^ *+' conftest.er1 >conftest.err
25113 rm -f conftest.er1
25114 cat conftest.err >&5
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 25116 (exit $ac_status); } &&
25117 { ac_try='test -z "$ac_c_werror_flag"
25118 || test ! -s conftest.err'
25119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25120 (eval $ac_try) 2>&5
25121 ac_status=$?
25122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123 (exit $ac_status); }; } &&
25124 { ac_try='test -s conftest$ac_exeext'
25125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25126 (eval $ac_try) 2>&5
25127 ac_status=$?
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); }; }; then
d213114b 25130 ac_cv_lib_m_hypotl=yes
25131else
25132 echo "$as_me: failed program was:" >&5
25133sed 's/^/| /' conftest.$ac_ext >&5
25134
82eaf560 25135ac_cv_lib_m_hypotl=no
d213114b 25136fi
82eaf560 25137rm -f conftest.err conftest.$ac_objext \
d213114b 25138 conftest$ac_exeext conftest.$ac_ext
25139LIBS=$ac_check_lib_save_LIBS
25140fi
82eaf560 25141echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotl" >&5
25142echo "${ECHO_T}$ac_cv_lib_m_hypotl" >&6
d213114b 25143if test $ac_cv_lib_m_hypotl = yes; then
25144
25145cat >>confdefs.h <<\_ACEOF
25146#define HAVE_HYPOTL 1
25147_ACEOF
25148
25149fi
25150
82eaf560 25151echo "$as_me:$LINENO: checking for ldexpf in -lm" >&5
25152echo $ECHO_N "checking for ldexpf in -lm... $ECHO_C" >&6
71d90ac4 25153if test "${ac_cv_lib_m_ldexpf+set}" = set; then
25154 echo $ECHO_N "(cached) $ECHO_C" >&6
25155else
25156 ac_check_lib_save_LIBS=$LIBS
25157LIBS="-lm $LIBS"
25158if test x$gcc_no_link = xyes; then
25159 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25160echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25161 { (exit 1); exit 1; }; }
25162fi
25163cat >conftest.$ac_ext <<_ACEOF
25164/* confdefs.h. */
25165_ACEOF
25166cat confdefs.h >>conftest.$ac_ext
25167cat >>conftest.$ac_ext <<_ACEOF
25168/* end confdefs.h. */
25169
82eaf560 25170/* Override any gcc2 internal prototype to avoid an error. */
71d90ac4 25171#ifdef __cplusplus
25172extern "C"
25173#endif
82eaf560 25174/* We use char because int might match the return type of a gcc2
25175 builtin and then its argument prototype would still apply. */
71d90ac4 25176char ldexpf ();
25177int
25178main ()
25179{
82eaf560 25180ldexpf ();
71d90ac4 25181 ;
25182 return 0;
25183}
25184_ACEOF
25185rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 25186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25187 (eval $ac_link) 2>conftest.er1
71d90ac4 25188 ac_status=$?
25189 grep -v '^ *+' conftest.er1 >conftest.err
25190 rm -f conftest.er1
25191 cat conftest.err >&5
25192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 25193 (exit $ac_status); } &&
25194 { ac_try='test -z "$ac_c_werror_flag"
25195 || test ! -s conftest.err'
25196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25197 (eval $ac_try) 2>&5
25198 ac_status=$?
25199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200 (exit $ac_status); }; } &&
25201 { ac_try='test -s conftest$ac_exeext'
25202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203 (eval $ac_try) 2>&5
25204 ac_status=$?
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; }; then
71d90ac4 25207 ac_cv_lib_m_ldexpf=yes
25208else
25209 echo "$as_me: failed program was:" >&5
25210sed 's/^/| /' conftest.$ac_ext >&5
25211
82eaf560 25212ac_cv_lib_m_ldexpf=no
71d90ac4 25213fi
82eaf560 25214rm -f conftest.err conftest.$ac_objext \
71d90ac4 25215 conftest$ac_exeext conftest.$ac_ext
25216LIBS=$ac_check_lib_save_LIBS
25217fi
82eaf560 25218echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexpf" >&5
25219echo "${ECHO_T}$ac_cv_lib_m_ldexpf" >&6
71d90ac4 25220if test $ac_cv_lib_m_ldexpf = yes; then
25221
25222cat >>confdefs.h <<\_ACEOF
25223#define HAVE_LDEXPF 1
25224_ACEOF
25225
25226fi
25227
82eaf560 25228echo "$as_me:$LINENO: checking for ldexp in -lm" >&5
25229echo $ECHO_N "checking for ldexp in -lm... $ECHO_C" >&6
71d90ac4 25230if test "${ac_cv_lib_m_ldexp+set}" = set; then
25231 echo $ECHO_N "(cached) $ECHO_C" >&6
25232else
25233 ac_check_lib_save_LIBS=$LIBS
25234LIBS="-lm $LIBS"
25235if test x$gcc_no_link = xyes; then
25236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25237echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25238 { (exit 1); exit 1; }; }
25239fi
25240cat >conftest.$ac_ext <<_ACEOF
25241/* confdefs.h. */
25242_ACEOF
25243cat confdefs.h >>conftest.$ac_ext
25244cat >>conftest.$ac_ext <<_ACEOF
25245/* end confdefs.h. */
25246
82eaf560 25247/* Override any gcc2 internal prototype to avoid an error. */
71d90ac4 25248#ifdef __cplusplus
25249extern "C"
25250#endif
82eaf560 25251/* We use char because int might match the return type of a gcc2
25252 builtin and then its argument prototype would still apply. */
71d90ac4 25253char ldexp ();
25254int
25255main ()
25256{
82eaf560 25257ldexp ();
71d90ac4 25258 ;
25259 return 0;
25260}
25261_ACEOF
25262rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 25263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25264 (eval $ac_link) 2>conftest.er1
71d90ac4 25265 ac_status=$?
25266 grep -v '^ *+' conftest.er1 >conftest.err
25267 rm -f conftest.er1
25268 cat conftest.err >&5
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 25270 (exit $ac_status); } &&
25271 { ac_try='test -z "$ac_c_werror_flag"
25272 || test ! -s conftest.err'
25273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25274 (eval $ac_try) 2>&5
25275 ac_status=$?
25276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277 (exit $ac_status); }; } &&
25278 { ac_try='test -s conftest$ac_exeext'
25279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280 (eval $ac_try) 2>&5
25281 ac_status=$?
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); }; }; then
71d90ac4 25284 ac_cv_lib_m_ldexp=yes
25285else
25286 echo "$as_me: failed program was:" >&5
25287sed 's/^/| /' conftest.$ac_ext >&5
25288
82eaf560 25289ac_cv_lib_m_ldexp=no
71d90ac4 25290fi
82eaf560 25291rm -f conftest.err conftest.$ac_objext \
71d90ac4 25292 conftest$ac_exeext conftest.$ac_ext
25293LIBS=$ac_check_lib_save_LIBS
25294fi
82eaf560 25295echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexp" >&5
25296echo "${ECHO_T}$ac_cv_lib_m_ldexp" >&6
71d90ac4 25297if test $ac_cv_lib_m_ldexp = yes; then
25298
25299cat >>confdefs.h <<\_ACEOF
25300#define HAVE_LDEXP 1
25301_ACEOF
25302
25303fi
25304
82eaf560 25305echo "$as_me:$LINENO: checking for ldexpl in -lm" >&5
25306echo $ECHO_N "checking for ldexpl in -lm... $ECHO_C" >&6
71d90ac4 25307if test "${ac_cv_lib_m_ldexpl+set}" = set; then
25308 echo $ECHO_N "(cached) $ECHO_C" >&6
25309else
25310 ac_check_lib_save_LIBS=$LIBS
25311LIBS="-lm $LIBS"
25312if test x$gcc_no_link = xyes; then
25313 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25314echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25315 { (exit 1); exit 1; }; }
25316fi
25317cat >conftest.$ac_ext <<_ACEOF
25318/* confdefs.h. */
25319_ACEOF
25320cat confdefs.h >>conftest.$ac_ext
25321cat >>conftest.$ac_ext <<_ACEOF
25322/* end confdefs.h. */
25323
82eaf560 25324/* Override any gcc2 internal prototype to avoid an error. */
71d90ac4 25325#ifdef __cplusplus
25326extern "C"
25327#endif
82eaf560 25328/* We use char because int might match the return type of a gcc2
25329 builtin and then its argument prototype would still apply. */
71d90ac4 25330char ldexpl ();
25331int
25332main ()
25333{
82eaf560 25334ldexpl ();
71d90ac4 25335 ;
25336 return 0;
25337}
25338_ACEOF
25339rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 25340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25341 (eval $ac_link) 2>conftest.er1
71d90ac4 25342 ac_status=$?
25343 grep -v '^ *+' conftest.er1 >conftest.err
25344 rm -f conftest.er1
25345 cat conftest.err >&5
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 25347 (exit $ac_status); } &&
25348 { ac_try='test -z "$ac_c_werror_flag"
25349 || test ! -s conftest.err'
25350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351 (eval $ac_try) 2>&5
25352 ac_status=$?
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); }; } &&
25355 { ac_try='test -s conftest$ac_exeext'
25356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25357 (eval $ac_try) 2>&5
25358 ac_status=$?
25359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360 (exit $ac_status); }; }; then
71d90ac4 25361 ac_cv_lib_m_ldexpl=yes
25362else
25363 echo "$as_me: failed program was:" >&5
25364sed 's/^/| /' conftest.$ac_ext >&5
25365
82eaf560 25366ac_cv_lib_m_ldexpl=no
71d90ac4 25367fi
82eaf560 25368rm -f conftest.err conftest.$ac_objext \
71d90ac4 25369 conftest$ac_exeext conftest.$ac_ext
25370LIBS=$ac_check_lib_save_LIBS
25371fi
82eaf560 25372echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexpl" >&5
25373echo "${ECHO_T}$ac_cv_lib_m_ldexpl" >&6
71d90ac4 25374if test $ac_cv_lib_m_ldexpl = yes; then
25375
25376cat >>confdefs.h <<\_ACEOF
25377#define HAVE_LDEXPL 1
25378_ACEOF
25379
25380fi
25381
82eaf560 25382echo "$as_me:$LINENO: checking for logf in -lm" >&5
25383echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
d213114b 25384if test "${ac_cv_lib_m_logf+set}" = set; then
25385 echo $ECHO_N "(cached) $ECHO_C" >&6
25386else
25387 ac_check_lib_save_LIBS=$LIBS
25388LIBS="-lm $LIBS"
25389if test x$gcc_no_link = xyes; then
25390 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25391echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25392 { (exit 1); exit 1; }; }
25393fi
25394cat >conftest.$ac_ext <<_ACEOF
25395/* confdefs.h. */
25396_ACEOF
25397cat confdefs.h >>conftest.$ac_ext
25398cat >>conftest.$ac_ext <<_ACEOF
25399/* end confdefs.h. */
25400
82eaf560 25401/* Override any gcc2 internal prototype to avoid an error. */
d213114b 25402#ifdef __cplusplus
25403extern "C"
25404#endif
82eaf560 25405/* We use char because int might match the return type of a gcc2
25406 builtin and then its argument prototype would still apply. */
d213114b 25407char logf ();
25408int
25409main ()
25410{
82eaf560 25411logf ();
d213114b 25412 ;
25413 return 0;
25414}
25415_ACEOF
25416rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 25417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25418 (eval $ac_link) 2>conftest.er1
d213114b 25419 ac_status=$?
25420 grep -v '^ *+' conftest.er1 >conftest.err
25421 rm -f conftest.er1
25422 cat conftest.err >&5
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 25424 (exit $ac_status); } &&
25425 { ac_try='test -z "$ac_c_werror_flag"
25426 || test ! -s conftest.err'
25427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428 (eval $ac_try) 2>&5
25429 ac_status=$?
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); }; } &&
25432 { ac_try='test -s conftest$ac_exeext'
25433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25434 (eval $ac_try) 2>&5
25435 ac_status=$?
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); }; }; then
d213114b 25438 ac_cv_lib_m_logf=yes
25439else
25440 echo "$as_me: failed program was:" >&5
25441sed 's/^/| /' conftest.$ac_ext >&5
25442
82eaf560 25443ac_cv_lib_m_logf=no
d213114b 25444fi
82eaf560 25445rm -f conftest.err conftest.$ac_objext \
d213114b 25446 conftest$ac_exeext conftest.$ac_ext
25447LIBS=$ac_check_lib_save_LIBS
25448fi
82eaf560 25449echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
25450echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
d213114b 25451if test $ac_cv_lib_m_logf = yes; then
25452
25453cat >>confdefs.h <<\_ACEOF
25454#define HAVE_LOGF 1
25455_ACEOF
25456
25457fi
25458
82eaf560 25459echo "$as_me:$LINENO: checking for log in -lm" >&5
25460echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6
d213114b 25461if test "${ac_cv_lib_m_log+set}" = set; then
25462 echo $ECHO_N "(cached) $ECHO_C" >&6
25463else
25464 ac_check_lib_save_LIBS=$LIBS
25465LIBS="-lm $LIBS"
25466if test x$gcc_no_link = xyes; then
25467 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25468echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25469 { (exit 1); exit 1; }; }
25470fi
25471cat >conftest.$ac_ext <<_ACEOF
25472/* confdefs.h. */
25473_ACEOF
25474cat confdefs.h >>conftest.$ac_ext
25475cat >>conftest.$ac_ext <<_ACEOF
25476/* end confdefs.h. */
25477
82eaf560 25478/* Override any gcc2 internal prototype to avoid an error. */
d213114b 25479#ifdef __cplusplus
25480extern "C"
25481#endif
82eaf560 25482/* We use char because int might match the return type of a gcc2
25483 builtin and then its argument prototype would still apply. */
d213114b 25484char log ();
25485int
25486main ()
25487{
82eaf560 25488log ();
d213114b 25489 ;
25490 return 0;
25491}
25492_ACEOF
25493rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 25494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25495 (eval $ac_link) 2>conftest.er1
d213114b 25496 ac_status=$?
25497 grep -v '^ *+' conftest.er1 >conftest.err
25498 rm -f conftest.er1
25499 cat conftest.err >&5
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 25501 (exit $ac_status); } &&
25502 { ac_try='test -z "$ac_c_werror_flag"
25503 || test ! -s conftest.err'
25504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25505 (eval $ac_try) 2>&5
25506 ac_status=$?
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); }; } &&
25509 { ac_try='test -s conftest$ac_exeext'
25510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25511 (eval $ac_try) 2>&5
25512 ac_status=$?
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); }; }; then
d213114b 25515 ac_cv_lib_m_log=yes
25516else
25517 echo "$as_me: failed program was:" >&5
25518sed 's/^/| /' conftest.$ac_ext >&5
25519
82eaf560 25520ac_cv_lib_m_log=no
d213114b 25521fi
82eaf560 25522rm -f conftest.err conftest.$ac_objext \
d213114b 25523 conftest$ac_exeext conftest.$ac_ext
25524LIBS=$ac_check_lib_save_LIBS
25525fi
82eaf560 25526echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
25527echo "${ECHO_T}$ac_cv_lib_m_log" >&6
d213114b 25528if test $ac_cv_lib_m_log = yes; then
25529
25530cat >>confdefs.h <<\_ACEOF
25531#define HAVE_LOG 1
25532_ACEOF
25533
25534fi
25535
82eaf560 25536echo "$as_me:$LINENO: checking for logl in -lm" >&5
25537echo $ECHO_N "checking for logl in -lm... $ECHO_C" >&6
d213114b 25538if test "${ac_cv_lib_m_logl+set}" = set; then
25539 echo $ECHO_N "(cached) $ECHO_C" >&6
25540else
25541 ac_check_lib_save_LIBS=$LIBS
25542LIBS="-lm $LIBS"
25543if test x$gcc_no_link = xyes; then
25544 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25545echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25546 { (exit 1); exit 1; }; }
25547fi
25548cat >conftest.$ac_ext <<_ACEOF
25549/* confdefs.h. */
25550_ACEOF
25551cat confdefs.h >>conftest.$ac_ext
25552cat >>conftest.$ac_ext <<_ACEOF
25553/* end confdefs.h. */
25554
82eaf560 25555/* Override any gcc2 internal prototype to avoid an error. */
d213114b 25556#ifdef __cplusplus
25557extern "C"
25558#endif
82eaf560 25559/* We use char because int might match the return type of a gcc2
25560 builtin and then its argument prototype would still apply. */
d213114b 25561char logl ();
25562int
25563main ()
25564{
82eaf560 25565logl ();
d213114b 25566 ;
25567 return 0;
25568}
25569_ACEOF
25570rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 25571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25572 (eval $ac_link) 2>conftest.er1
d213114b 25573 ac_status=$?
25574 grep -v '^ *+' conftest.er1 >conftest.err
25575 rm -f conftest.er1
25576 cat conftest.err >&5
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 25578 (exit $ac_status); } &&
25579 { ac_try='test -z "$ac_c_werror_flag"
25580 || test ! -s conftest.err'
25581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582 (eval $ac_try) 2>&5
25583 ac_status=$?
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); }; } &&
25586 { ac_try='test -s conftest$ac_exeext'
25587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588 (eval $ac_try) 2>&5
25589 ac_status=$?
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); }; }; then
d213114b 25592 ac_cv_lib_m_logl=yes
25593else
25594 echo "$as_me: failed program was:" >&5
25595sed 's/^/| /' conftest.$ac_ext >&5
25596
82eaf560 25597ac_cv_lib_m_logl=no
d213114b 25598fi
82eaf560 25599rm -f conftest.err conftest.$ac_objext \
d213114b 25600 conftest$ac_exeext conftest.$ac_ext
25601LIBS=$ac_check_lib_save_LIBS
25602fi
82eaf560 25603echo "$as_me:$LINENO: result: $ac_cv_lib_m_logl" >&5
25604echo "${ECHO_T}$ac_cv_lib_m_logl" >&6
d213114b 25605if test $ac_cv_lib_m_logl = yes; then
25606
25607cat >>confdefs.h <<\_ACEOF
25608#define HAVE_LOGL 1
25609_ACEOF
25610
25611fi
25612
82eaf560 25613echo "$as_me:$LINENO: checking for clogf in -lm" >&5
25614echo $ECHO_N "checking for clogf in -lm... $ECHO_C" >&6
d213114b 25615if test "${ac_cv_lib_m_clogf+set}" = set; then
25616 echo $ECHO_N "(cached) $ECHO_C" >&6
25617else
25618 ac_check_lib_save_LIBS=$LIBS
25619LIBS="-lm $LIBS"
25620if test x$gcc_no_link = xyes; then
25621 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25622echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25623 { (exit 1); exit 1; }; }
25624fi
25625cat >conftest.$ac_ext <<_ACEOF
25626/* confdefs.h. */
25627_ACEOF
25628cat confdefs.h >>conftest.$ac_ext
25629cat >>conftest.$ac_ext <<_ACEOF
25630/* end confdefs.h. */
25631
82eaf560 25632/* Override any gcc2 internal prototype to avoid an error. */
d213114b 25633#ifdef __cplusplus
25634extern "C"
25635#endif
82eaf560 25636/* We use char because int might match the return type of a gcc2
25637 builtin and then its argument prototype would still apply. */
d213114b 25638char clogf ();
25639int
25640main ()
25641{
82eaf560 25642clogf ();
d213114b 25643 ;
25644 return 0;
25645}
25646_ACEOF
25647rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 25648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25649 (eval $ac_link) 2>conftest.er1
d213114b 25650 ac_status=$?
25651 grep -v '^ *+' conftest.er1 >conftest.err
25652 rm -f conftest.er1
25653 cat conftest.err >&5
25654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 25655 (exit $ac_status); } &&
25656 { ac_try='test -z "$ac_c_werror_flag"
25657 || test ! -s conftest.err'
25658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25659 (eval $ac_try) 2>&5
25660 ac_status=$?
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); }; } &&
25663 { ac_try='test -s conftest$ac_exeext'
25664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665 (eval $ac_try) 2>&5
25666 ac_status=$?
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); }; }; then
d213114b 25669 ac_cv_lib_m_clogf=yes
25670else
25671 echo "$as_me: failed program was:" >&5
25672sed 's/^/| /' conftest.$ac_ext >&5
25673
82eaf560 25674ac_cv_lib_m_clogf=no
d213114b 25675fi
82eaf560 25676rm -f conftest.err conftest.$ac_objext \
d213114b 25677 conftest$ac_exeext conftest.$ac_ext
25678LIBS=$ac_check_lib_save_LIBS
25679fi
82eaf560 25680echo "$as_me:$LINENO: result: $ac_cv_lib_m_clogf" >&5
25681echo "${ECHO_T}$ac_cv_lib_m_clogf" >&6
d213114b 25682if test $ac_cv_lib_m_clogf = yes; then
25683
25684cat >>confdefs.h <<\_ACEOF
25685#define HAVE_CLOGF 1
25686_ACEOF
25687
25688fi
25689
82eaf560 25690echo "$as_me:$LINENO: checking for clog in -lm" >&5
25691echo $ECHO_N "checking for clog in -lm... $ECHO_C" >&6
d213114b 25692if test "${ac_cv_lib_m_clog+set}" = set; then
25693 echo $ECHO_N "(cached) $ECHO_C" >&6
25694else
25695 ac_check_lib_save_LIBS=$LIBS
25696LIBS="-lm $LIBS"
25697if test x$gcc_no_link = xyes; then
25698 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25699echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25700 { (exit 1); exit 1; }; }
25701fi
25702cat >conftest.$ac_ext <<_ACEOF
25703/* confdefs.h. */
25704_ACEOF
25705cat confdefs.h >>conftest.$ac_ext
25706cat >>conftest.$ac_ext <<_ACEOF
25707/* end confdefs.h. */
25708
82eaf560 25709/* Override any gcc2 internal prototype to avoid an error. */
d213114b 25710#ifdef __cplusplus
25711extern "C"
25712#endif
82eaf560 25713/* We use char because int might match the return type of a gcc2
25714 builtin and then its argument prototype would still apply. */
d213114b 25715char clog ();
25716int
25717main ()
25718{
82eaf560 25719clog ();
d213114b 25720 ;
25721 return 0;
25722}
25723_ACEOF
25724rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 25725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25726 (eval $ac_link) 2>conftest.er1
d213114b 25727 ac_status=$?
25728 grep -v '^ *+' conftest.er1 >conftest.err
25729 rm -f conftest.er1
25730 cat conftest.err >&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 25732 (exit $ac_status); } &&
25733 { ac_try='test -z "$ac_c_werror_flag"
25734 || test ! -s conftest.err'
25735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736 (eval $ac_try) 2>&5
25737 ac_status=$?
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); }; } &&
25740 { ac_try='test -s conftest$ac_exeext'
25741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742 (eval $ac_try) 2>&5
25743 ac_status=$?
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); }; }; then
d213114b 25746 ac_cv_lib_m_clog=yes
25747else
25748 echo "$as_me: failed program was:" >&5
25749sed 's/^/| /' conftest.$ac_ext >&5
25750
82eaf560 25751ac_cv_lib_m_clog=no
d213114b 25752fi
82eaf560 25753rm -f conftest.err conftest.$ac_objext \
d213114b 25754 conftest$ac_exeext conftest.$ac_ext
25755LIBS=$ac_check_lib_save_LIBS
25756fi
82eaf560 25757echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog" >&5
25758echo "${ECHO_T}$ac_cv_lib_m_clog" >&6
d213114b 25759if test $ac_cv_lib_m_clog = yes; then
25760
25761cat >>confdefs.h <<\_ACEOF
25762#define HAVE_CLOG 1
25763_ACEOF
25764
25765fi
25766
82eaf560 25767echo "$as_me:$LINENO: checking for clogl in -lm" >&5
25768echo $ECHO_N "checking for clogl in -lm... $ECHO_C" >&6
d213114b 25769if test "${ac_cv_lib_m_clogl+set}" = set; then
25770 echo $ECHO_N "(cached) $ECHO_C" >&6
25771else
25772 ac_check_lib_save_LIBS=$LIBS
25773LIBS="-lm $LIBS"
25774if test x$gcc_no_link = xyes; then
25775 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25776echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25777 { (exit 1); exit 1; }; }
25778fi
25779cat >conftest.$ac_ext <<_ACEOF
25780/* confdefs.h. */
25781_ACEOF
25782cat confdefs.h >>conftest.$ac_ext
25783cat >>conftest.$ac_ext <<_ACEOF
25784/* end confdefs.h. */
25785
82eaf560 25786/* Override any gcc2 internal prototype to avoid an error. */
d213114b 25787#ifdef __cplusplus
25788extern "C"
25789#endif
82eaf560 25790/* We use char because int might match the return type of a gcc2
25791 builtin and then its argument prototype would still apply. */
d213114b 25792char clogl ();
25793int
25794main ()
25795{
82eaf560 25796clogl ();
d213114b 25797 ;
25798 return 0;
25799}
25800_ACEOF
25801rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 25802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25803 (eval $ac_link) 2>conftest.er1
d213114b 25804 ac_status=$?
25805 grep -v '^ *+' conftest.er1 >conftest.err
25806 rm -f conftest.er1
25807 cat conftest.err >&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 25809 (exit $ac_status); } &&
25810 { ac_try='test -z "$ac_c_werror_flag"
25811 || test ! -s conftest.err'
25812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25813 (eval $ac_try) 2>&5
25814 ac_status=$?
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); }; } &&
25817 { ac_try='test -s conftest$ac_exeext'
25818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25819 (eval $ac_try) 2>&5
25820 ac_status=$?
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); }; }; then
d213114b 25823 ac_cv_lib_m_clogl=yes
25824else
25825 echo "$as_me: failed program was:" >&5
25826sed 's/^/| /' conftest.$ac_ext >&5
25827
82eaf560 25828ac_cv_lib_m_clogl=no
d213114b 25829fi
82eaf560 25830rm -f conftest.err conftest.$ac_objext \
d213114b 25831 conftest$ac_exeext conftest.$ac_ext
25832LIBS=$ac_check_lib_save_LIBS
25833fi
82eaf560 25834echo "$as_me:$LINENO: result: $ac_cv_lib_m_clogl" >&5
25835echo "${ECHO_T}$ac_cv_lib_m_clogl" >&6
d213114b 25836if test $ac_cv_lib_m_clogl = yes; then
25837
25838cat >>confdefs.h <<\_ACEOF
25839#define HAVE_CLOGL 1
25840_ACEOF
25841
25842fi
25843
82eaf560 25844echo "$as_me:$LINENO: checking for log10f in -lm" >&5
25845echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
d213114b 25846if test "${ac_cv_lib_m_log10f+set}" = set; then
25847 echo $ECHO_N "(cached) $ECHO_C" >&6
25848else
25849 ac_check_lib_save_LIBS=$LIBS
25850LIBS="-lm $LIBS"
25851if test x$gcc_no_link = xyes; then
25852 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25853echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25854 { (exit 1); exit 1; }; }
25855fi
25856cat >conftest.$ac_ext <<_ACEOF
25857/* confdefs.h. */
25858_ACEOF
25859cat confdefs.h >>conftest.$ac_ext
25860cat >>conftest.$ac_ext <<_ACEOF
25861/* end confdefs.h. */
25862
82eaf560 25863/* Override any gcc2 internal prototype to avoid an error. */
d213114b 25864#ifdef __cplusplus
25865extern "C"
25866#endif
82eaf560 25867/* We use char because int might match the return type of a gcc2
25868 builtin and then its argument prototype would still apply. */
d213114b 25869char log10f ();
25870int
25871main ()
25872{
82eaf560 25873log10f ();
d213114b 25874 ;
25875 return 0;
25876}
25877_ACEOF
25878rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 25879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25880 (eval $ac_link) 2>conftest.er1
d213114b 25881 ac_status=$?
25882 grep -v '^ *+' conftest.er1 >conftest.err
25883 rm -f conftest.er1
25884 cat conftest.err >&5
25885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 25886 (exit $ac_status); } &&
25887 { ac_try='test -z "$ac_c_werror_flag"
25888 || test ! -s conftest.err'
25889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890 (eval $ac_try) 2>&5
25891 ac_status=$?
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); }; } &&
25894 { ac_try='test -s conftest$ac_exeext'
25895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896 (eval $ac_try) 2>&5
25897 ac_status=$?
25898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899 (exit $ac_status); }; }; then
d213114b 25900 ac_cv_lib_m_log10f=yes
25901else
25902 echo "$as_me: failed program was:" >&5
25903sed 's/^/| /' conftest.$ac_ext >&5
25904
82eaf560 25905ac_cv_lib_m_log10f=no
d213114b 25906fi
82eaf560 25907rm -f conftest.err conftest.$ac_objext \
d213114b 25908 conftest$ac_exeext conftest.$ac_ext
25909LIBS=$ac_check_lib_save_LIBS
25910fi
82eaf560 25911echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
25912echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
d213114b 25913if test $ac_cv_lib_m_log10f = yes; then
25914
25915cat >>confdefs.h <<\_ACEOF
25916#define HAVE_LOG10F 1
25917_ACEOF
25918
25919fi
25920
82eaf560 25921echo "$as_me:$LINENO: checking for log10 in -lm" >&5
25922echo $ECHO_N "checking for log10 in -lm... $ECHO_C" >&6
d213114b 25923if test "${ac_cv_lib_m_log10+set}" = set; then
25924 echo $ECHO_N "(cached) $ECHO_C" >&6
25925else
25926 ac_check_lib_save_LIBS=$LIBS
25927LIBS="-lm $LIBS"
25928if test x$gcc_no_link = xyes; then
25929 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25930echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25931 { (exit 1); exit 1; }; }
25932fi
25933cat >conftest.$ac_ext <<_ACEOF
25934/* confdefs.h. */
25935_ACEOF
25936cat confdefs.h >>conftest.$ac_ext
25937cat >>conftest.$ac_ext <<_ACEOF
25938/* end confdefs.h. */
25939
82eaf560 25940/* Override any gcc2 internal prototype to avoid an error. */
d213114b 25941#ifdef __cplusplus
25942extern "C"
25943#endif
82eaf560 25944/* We use char because int might match the return type of a gcc2
25945 builtin and then its argument prototype would still apply. */
d213114b 25946char log10 ();
25947int
25948main ()
25949{
82eaf560 25950log10 ();
d213114b 25951 ;
25952 return 0;
25953}
25954_ACEOF
25955rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 25956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25957 (eval $ac_link) 2>conftest.er1
d213114b 25958 ac_status=$?
25959 grep -v '^ *+' conftest.er1 >conftest.err
25960 rm -f conftest.er1
25961 cat conftest.err >&5
25962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 25963 (exit $ac_status); } &&
25964 { ac_try='test -z "$ac_c_werror_flag"
25965 || test ! -s conftest.err'
25966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25967 (eval $ac_try) 2>&5
25968 ac_status=$?
25969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25970 (exit $ac_status); }; } &&
25971 { ac_try='test -s conftest$ac_exeext'
25972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973 (eval $ac_try) 2>&5
25974 ac_status=$?
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; }; then
d213114b 25977 ac_cv_lib_m_log10=yes
25978else
25979 echo "$as_me: failed program was:" >&5
25980sed 's/^/| /' conftest.$ac_ext >&5
25981
82eaf560 25982ac_cv_lib_m_log10=no
d213114b 25983fi
82eaf560 25984rm -f conftest.err conftest.$ac_objext \
d213114b 25985 conftest$ac_exeext conftest.$ac_ext
25986LIBS=$ac_check_lib_save_LIBS
25987fi
82eaf560 25988echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10" >&5
25989echo "${ECHO_T}$ac_cv_lib_m_log10" >&6
d213114b 25990if test $ac_cv_lib_m_log10 = yes; then
25991
25992cat >>confdefs.h <<\_ACEOF
25993#define HAVE_LOG10 1
25994_ACEOF
25995
25996fi
25997
82eaf560 25998echo "$as_me:$LINENO: checking for log10l in -lm" >&5
25999echo $ECHO_N "checking for log10l in -lm... $ECHO_C" >&6
d213114b 26000if test "${ac_cv_lib_m_log10l+set}" = set; then
26001 echo $ECHO_N "(cached) $ECHO_C" >&6
26002else
26003 ac_check_lib_save_LIBS=$LIBS
26004LIBS="-lm $LIBS"
26005if test x$gcc_no_link = xyes; then
26006 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26007echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26008 { (exit 1); exit 1; }; }
26009fi
26010cat >conftest.$ac_ext <<_ACEOF
26011/* confdefs.h. */
26012_ACEOF
26013cat confdefs.h >>conftest.$ac_ext
26014cat >>conftest.$ac_ext <<_ACEOF
26015/* end confdefs.h. */
26016
82eaf560 26017/* Override any gcc2 internal prototype to avoid an error. */
d213114b 26018#ifdef __cplusplus
26019extern "C"
26020#endif
82eaf560 26021/* We use char because int might match the return type of a gcc2
26022 builtin and then its argument prototype would still apply. */
d213114b 26023char log10l ();
26024int
26025main ()
26026{
82eaf560 26027log10l ();
d213114b 26028 ;
26029 return 0;
26030}
26031_ACEOF
26032rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 26033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26034 (eval $ac_link) 2>conftest.er1
d213114b 26035 ac_status=$?
26036 grep -v '^ *+' conftest.er1 >conftest.err
26037 rm -f conftest.er1
26038 cat conftest.err >&5
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 26040 (exit $ac_status); } &&
26041 { ac_try='test -z "$ac_c_werror_flag"
26042 || test ! -s conftest.err'
26043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044 (eval $ac_try) 2>&5
26045 ac_status=$?
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); }; } &&
26048 { ac_try='test -s conftest$ac_exeext'
26049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26050 (eval $ac_try) 2>&5
26051 ac_status=$?
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); }; }; then
d213114b 26054 ac_cv_lib_m_log10l=yes
26055else
26056 echo "$as_me: failed program was:" >&5
26057sed 's/^/| /' conftest.$ac_ext >&5
26058
82eaf560 26059ac_cv_lib_m_log10l=no
d213114b 26060fi
82eaf560 26061rm -f conftest.err conftest.$ac_objext \
d213114b 26062 conftest$ac_exeext conftest.$ac_ext
26063LIBS=$ac_check_lib_save_LIBS
26064fi
82eaf560 26065echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10l" >&5
26066echo "${ECHO_T}$ac_cv_lib_m_log10l" >&6
d213114b 26067if test $ac_cv_lib_m_log10l = yes; then
26068
26069cat >>confdefs.h <<\_ACEOF
26070#define HAVE_LOG10L 1
26071_ACEOF
26072
26073fi
26074
82eaf560 26075echo "$as_me:$LINENO: checking for clog10f in -lm" >&5
26076echo $ECHO_N "checking for clog10f in -lm... $ECHO_C" >&6
d213114b 26077if test "${ac_cv_lib_m_clog10f+set}" = set; then
26078 echo $ECHO_N "(cached) $ECHO_C" >&6
26079else
26080 ac_check_lib_save_LIBS=$LIBS
26081LIBS="-lm $LIBS"
26082if test x$gcc_no_link = xyes; then
26083 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26084echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26085 { (exit 1); exit 1; }; }
26086fi
26087cat >conftest.$ac_ext <<_ACEOF
26088/* confdefs.h. */
26089_ACEOF
26090cat confdefs.h >>conftest.$ac_ext
26091cat >>conftest.$ac_ext <<_ACEOF
26092/* end confdefs.h. */
26093
82eaf560 26094/* Override any gcc2 internal prototype to avoid an error. */
d213114b 26095#ifdef __cplusplus
26096extern "C"
26097#endif
82eaf560 26098/* We use char because int might match the return type of a gcc2
26099 builtin and then its argument prototype would still apply. */
d213114b 26100char clog10f ();
26101int
26102main ()
26103{
82eaf560 26104clog10f ();
d213114b 26105 ;
26106 return 0;
26107}
26108_ACEOF
26109rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 26110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26111 (eval $ac_link) 2>conftest.er1
d213114b 26112 ac_status=$?
26113 grep -v '^ *+' conftest.er1 >conftest.err
26114 rm -f conftest.er1
26115 cat conftest.err >&5
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 26117 (exit $ac_status); } &&
26118 { ac_try='test -z "$ac_c_werror_flag"
26119 || test ! -s conftest.err'
26120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26121 (eval $ac_try) 2>&5
26122 ac_status=$?
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); }; } &&
26125 { ac_try='test -s conftest$ac_exeext'
26126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127 (eval $ac_try) 2>&5
26128 ac_status=$?
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); }; }; then
d213114b 26131 ac_cv_lib_m_clog10f=yes
26132else
26133 echo "$as_me: failed program was:" >&5
26134sed 's/^/| /' conftest.$ac_ext >&5
26135
82eaf560 26136ac_cv_lib_m_clog10f=no
d213114b 26137fi
82eaf560 26138rm -f conftest.err conftest.$ac_objext \
d213114b 26139 conftest$ac_exeext conftest.$ac_ext
26140LIBS=$ac_check_lib_save_LIBS
26141fi
82eaf560 26142echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10f" >&5
26143echo "${ECHO_T}$ac_cv_lib_m_clog10f" >&6
d213114b 26144if test $ac_cv_lib_m_clog10f = yes; then
26145
26146cat >>confdefs.h <<\_ACEOF
26147#define HAVE_CLOG10F 1
26148_ACEOF
26149
26150fi
26151
82eaf560 26152echo "$as_me:$LINENO: checking for clog10 in -lm" >&5
26153echo $ECHO_N "checking for clog10 in -lm... $ECHO_C" >&6
d213114b 26154if test "${ac_cv_lib_m_clog10+set}" = set; then
26155 echo $ECHO_N "(cached) $ECHO_C" >&6
26156else
26157 ac_check_lib_save_LIBS=$LIBS
26158LIBS="-lm $LIBS"
26159if test x$gcc_no_link = xyes; then
26160 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26161echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26162 { (exit 1); exit 1; }; }
26163fi
26164cat >conftest.$ac_ext <<_ACEOF
26165/* confdefs.h. */
26166_ACEOF
26167cat confdefs.h >>conftest.$ac_ext
26168cat >>conftest.$ac_ext <<_ACEOF
26169/* end confdefs.h. */
26170
82eaf560 26171/* Override any gcc2 internal prototype to avoid an error. */
d213114b 26172#ifdef __cplusplus
26173extern "C"
26174#endif
82eaf560 26175/* We use char because int might match the return type of a gcc2
26176 builtin and then its argument prototype would still apply. */
d213114b 26177char clog10 ();
26178int
26179main ()
26180{
82eaf560 26181clog10 ();
d213114b 26182 ;
26183 return 0;
26184}
26185_ACEOF
26186rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 26187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26188 (eval $ac_link) 2>conftest.er1
d213114b 26189 ac_status=$?
26190 grep -v '^ *+' conftest.er1 >conftest.err
26191 rm -f conftest.er1
26192 cat conftest.err >&5
26193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 26194 (exit $ac_status); } &&
26195 { ac_try='test -z "$ac_c_werror_flag"
26196 || test ! -s conftest.err'
26197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26198 (eval $ac_try) 2>&5
26199 ac_status=$?
26200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); }; } &&
26202 { ac_try='test -s conftest$ac_exeext'
26203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26204 (eval $ac_try) 2>&5
26205 ac_status=$?
26206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207 (exit $ac_status); }; }; then
d213114b 26208 ac_cv_lib_m_clog10=yes
26209else
26210 echo "$as_me: failed program was:" >&5
26211sed 's/^/| /' conftest.$ac_ext >&5
26212
82eaf560 26213ac_cv_lib_m_clog10=no
d213114b 26214fi
82eaf560 26215rm -f conftest.err conftest.$ac_objext \
d213114b 26216 conftest$ac_exeext conftest.$ac_ext
26217LIBS=$ac_check_lib_save_LIBS
26218fi
82eaf560 26219echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10" >&5
26220echo "${ECHO_T}$ac_cv_lib_m_clog10" >&6
d213114b 26221if test $ac_cv_lib_m_clog10 = yes; then
26222
26223cat >>confdefs.h <<\_ACEOF
26224#define HAVE_CLOG10 1
26225_ACEOF
26226
26227fi
26228
82eaf560 26229echo "$as_me:$LINENO: checking for clog10l in -lm" >&5
26230echo $ECHO_N "checking for clog10l in -lm... $ECHO_C" >&6
d213114b 26231if test "${ac_cv_lib_m_clog10l+set}" = set; then
26232 echo $ECHO_N "(cached) $ECHO_C" >&6
26233else
26234 ac_check_lib_save_LIBS=$LIBS
26235LIBS="-lm $LIBS"
26236if test x$gcc_no_link = xyes; then
26237 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26238echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26239 { (exit 1); exit 1; }; }
26240fi
26241cat >conftest.$ac_ext <<_ACEOF
26242/* confdefs.h. */
26243_ACEOF
26244cat confdefs.h >>conftest.$ac_ext
26245cat >>conftest.$ac_ext <<_ACEOF
26246/* end confdefs.h. */
26247
82eaf560 26248/* Override any gcc2 internal prototype to avoid an error. */
d213114b 26249#ifdef __cplusplus
26250extern "C"
26251#endif
82eaf560 26252/* We use char because int might match the return type of a gcc2
26253 builtin and then its argument prototype would still apply. */
d213114b 26254char clog10l ();
26255int
26256main ()
26257{
82eaf560 26258clog10l ();
d213114b 26259 ;
26260 return 0;
26261}
26262_ACEOF
26263rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 26264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26265 (eval $ac_link) 2>conftest.er1
d213114b 26266 ac_status=$?
26267 grep -v '^ *+' conftest.er1 >conftest.err
26268 rm -f conftest.er1
26269 cat conftest.err >&5
26270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 26271 (exit $ac_status); } &&
26272 { ac_try='test -z "$ac_c_werror_flag"
26273 || test ! -s conftest.err'
26274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26275 (eval $ac_try) 2>&5
26276 ac_status=$?
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); }; } &&
26279 { ac_try='test -s conftest$ac_exeext'
26280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26281 (eval $ac_try) 2>&5
26282 ac_status=$?
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); }; }; then
d213114b 26285 ac_cv_lib_m_clog10l=yes
26286else
26287 echo "$as_me: failed program was:" >&5
26288sed 's/^/| /' conftest.$ac_ext >&5
26289
82eaf560 26290ac_cv_lib_m_clog10l=no
d213114b 26291fi
82eaf560 26292rm -f conftest.err conftest.$ac_objext \
d213114b 26293 conftest$ac_exeext conftest.$ac_ext
26294LIBS=$ac_check_lib_save_LIBS
26295fi
82eaf560 26296echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10l" >&5
26297echo "${ECHO_T}$ac_cv_lib_m_clog10l" >&6
d213114b 26298if test $ac_cv_lib_m_clog10l = yes; then
26299
26300cat >>confdefs.h <<\_ACEOF
26301#define HAVE_CLOG10L 1
26302_ACEOF
26303
26304fi
26305
82eaf560 26306echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
26307echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
d213114b 26308if test "${ac_cv_lib_m_nextafterf+set}" = set; then
26309 echo $ECHO_N "(cached) $ECHO_C" >&6
26310else
26311 ac_check_lib_save_LIBS=$LIBS
26312LIBS="-lm $LIBS"
26313if test x$gcc_no_link = xyes; then
26314 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26315echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26316 { (exit 1); exit 1; }; }
26317fi
26318cat >conftest.$ac_ext <<_ACEOF
26319/* confdefs.h. */
26320_ACEOF
26321cat confdefs.h >>conftest.$ac_ext
26322cat >>conftest.$ac_ext <<_ACEOF
26323/* end confdefs.h. */
26324
82eaf560 26325/* Override any gcc2 internal prototype to avoid an error. */
d213114b 26326#ifdef __cplusplus
26327extern "C"
26328#endif
82eaf560 26329/* We use char because int might match the return type of a gcc2
26330 builtin and then its argument prototype would still apply. */
d213114b 26331char nextafterf ();
26332int
26333main ()
26334{
82eaf560 26335nextafterf ();
d213114b 26336 ;
26337 return 0;
26338}
26339_ACEOF
26340rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 26341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26342 (eval $ac_link) 2>conftest.er1
d213114b 26343 ac_status=$?
26344 grep -v '^ *+' conftest.er1 >conftest.err
26345 rm -f conftest.er1
26346 cat conftest.err >&5
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 26348 (exit $ac_status); } &&
26349 { ac_try='test -z "$ac_c_werror_flag"
26350 || test ! -s conftest.err'
26351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352 (eval $ac_try) 2>&5
26353 ac_status=$?
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); }; } &&
26356 { ac_try='test -s conftest$ac_exeext'
26357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358 (eval $ac_try) 2>&5
26359 ac_status=$?
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); }; }; then
d213114b 26362 ac_cv_lib_m_nextafterf=yes
26363else
26364 echo "$as_me: failed program was:" >&5
26365sed 's/^/| /' conftest.$ac_ext >&5
26366
82eaf560 26367ac_cv_lib_m_nextafterf=no
d213114b 26368fi
82eaf560 26369rm -f conftest.err conftest.$ac_objext \
d213114b 26370 conftest$ac_exeext conftest.$ac_ext
26371LIBS=$ac_check_lib_save_LIBS
26372fi
82eaf560 26373echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
26374echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
d213114b 26375if test $ac_cv_lib_m_nextafterf = yes; then
26376
26377cat >>confdefs.h <<\_ACEOF
26378#define HAVE_NEXTAFTERF 1
26379_ACEOF
26380
26381fi
26382
82eaf560 26383echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
26384echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
d213114b 26385if test "${ac_cv_lib_m_nextafter+set}" = set; then
26386 echo $ECHO_N "(cached) $ECHO_C" >&6
26387else
26388 ac_check_lib_save_LIBS=$LIBS
26389LIBS="-lm $LIBS"
26390if test x$gcc_no_link = xyes; then
26391 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26392echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26393 { (exit 1); exit 1; }; }
26394fi
26395cat >conftest.$ac_ext <<_ACEOF
26396/* confdefs.h. */
26397_ACEOF
26398cat confdefs.h >>conftest.$ac_ext
26399cat >>conftest.$ac_ext <<_ACEOF
26400/* end confdefs.h. */
26401
82eaf560 26402/* Override any gcc2 internal prototype to avoid an error. */
d213114b 26403#ifdef __cplusplus
26404extern "C"
26405#endif
82eaf560 26406/* We use char because int might match the return type of a gcc2
26407 builtin and then its argument prototype would still apply. */
d213114b 26408char nextafter ();
26409int
26410main ()
26411{
82eaf560 26412nextafter ();
d213114b 26413 ;
26414 return 0;
26415}
26416_ACEOF
26417rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 26418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26419 (eval $ac_link) 2>conftest.er1
d213114b 26420 ac_status=$?
26421 grep -v '^ *+' conftest.er1 >conftest.err
26422 rm -f conftest.er1
26423 cat conftest.err >&5
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 26425 (exit $ac_status); } &&
26426 { ac_try='test -z "$ac_c_werror_flag"
26427 || test ! -s conftest.err'
26428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26429 (eval $ac_try) 2>&5
26430 ac_status=$?
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); }; } &&
26433 { ac_try='test -s conftest$ac_exeext'
26434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26435 (eval $ac_try) 2>&5
26436 ac_status=$?
26437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438 (exit $ac_status); }; }; then
d213114b 26439 ac_cv_lib_m_nextafter=yes
26440else
26441 echo "$as_me: failed program was:" >&5
26442sed 's/^/| /' conftest.$ac_ext >&5
26443
82eaf560 26444ac_cv_lib_m_nextafter=no
d213114b 26445fi
82eaf560 26446rm -f conftest.err conftest.$ac_objext \
d213114b 26447 conftest$ac_exeext conftest.$ac_ext
26448LIBS=$ac_check_lib_save_LIBS
26449fi
82eaf560 26450echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
26451echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
d213114b 26452if test $ac_cv_lib_m_nextafter = yes; then
26453
26454cat >>confdefs.h <<\_ACEOF
26455#define HAVE_NEXTAFTER 1
26456_ACEOF
26457
26458fi
26459
82eaf560 26460echo "$as_me:$LINENO: checking for nextafterl in -lm" >&5
26461echo $ECHO_N "checking for nextafterl in -lm... $ECHO_C" >&6
d213114b 26462if test "${ac_cv_lib_m_nextafterl+set}" = set; then
26463 echo $ECHO_N "(cached) $ECHO_C" >&6
26464else
26465 ac_check_lib_save_LIBS=$LIBS
26466LIBS="-lm $LIBS"
26467if test x$gcc_no_link = xyes; then
26468 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26469echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26470 { (exit 1); exit 1; }; }
26471fi
26472cat >conftest.$ac_ext <<_ACEOF
26473/* confdefs.h. */
26474_ACEOF
26475cat confdefs.h >>conftest.$ac_ext
26476cat >>conftest.$ac_ext <<_ACEOF
26477/* end confdefs.h. */
26478
82eaf560 26479/* Override any gcc2 internal prototype to avoid an error. */
d213114b 26480#ifdef __cplusplus
26481extern "C"
26482#endif
82eaf560 26483/* We use char because int might match the return type of a gcc2
26484 builtin and then its argument prototype would still apply. */
d213114b 26485char nextafterl ();
26486int
26487main ()
26488{
82eaf560 26489nextafterl ();
d213114b 26490 ;
26491 return 0;
26492}
26493_ACEOF
26494rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 26495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26496 (eval $ac_link) 2>conftest.er1
d213114b 26497 ac_status=$?
26498 grep -v '^ *+' conftest.er1 >conftest.err
26499 rm -f conftest.er1
26500 cat conftest.err >&5
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 26502 (exit $ac_status); } &&
26503 { ac_try='test -z "$ac_c_werror_flag"
26504 || test ! -s conftest.err'
26505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26506 (eval $ac_try) 2>&5
26507 ac_status=$?
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); }; } &&
26510 { ac_try='test -s conftest$ac_exeext'
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26513 ac_status=$?
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; }; then
d213114b 26516 ac_cv_lib_m_nextafterl=yes
26517else
26518 echo "$as_me: failed program was:" >&5
26519sed 's/^/| /' conftest.$ac_ext >&5
26520
82eaf560 26521ac_cv_lib_m_nextafterl=no
d213114b 26522fi
82eaf560 26523rm -f conftest.err conftest.$ac_objext \
d213114b 26524 conftest$ac_exeext conftest.$ac_ext
26525LIBS=$ac_check_lib_save_LIBS
26526fi
82eaf560 26527echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterl" >&5
26528echo "${ECHO_T}$ac_cv_lib_m_nextafterl" >&6
d213114b 26529if test $ac_cv_lib_m_nextafterl = yes; then
26530
26531cat >>confdefs.h <<\_ACEOF
26532#define HAVE_NEXTAFTERL 1
26533_ACEOF
26534
26535fi
26536
82eaf560 26537echo "$as_me:$LINENO: checking for powf in -lm" >&5
26538echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
d213114b 26539if test "${ac_cv_lib_m_powf+set}" = set; then
26540 echo $ECHO_N "(cached) $ECHO_C" >&6
26541else
26542 ac_check_lib_save_LIBS=$LIBS
26543LIBS="-lm $LIBS"
26544if test x$gcc_no_link = xyes; then
26545 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26546echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26547 { (exit 1); exit 1; }; }
26548fi
26549cat >conftest.$ac_ext <<_ACEOF
26550/* confdefs.h. */
26551_ACEOF
26552cat confdefs.h >>conftest.$ac_ext
26553cat >>conftest.$ac_ext <<_ACEOF
26554/* end confdefs.h. */
26555
82eaf560 26556/* Override any gcc2 internal prototype to avoid an error. */
d213114b 26557#ifdef __cplusplus
26558extern "C"
26559#endif
82eaf560 26560/* We use char because int might match the return type of a gcc2
26561 builtin and then its argument prototype would still apply. */
d213114b 26562char powf ();
26563int
26564main ()
26565{
82eaf560 26566powf ();
d213114b 26567 ;
26568 return 0;
26569}
26570_ACEOF
26571rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 26572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26573 (eval $ac_link) 2>conftest.er1
d213114b 26574 ac_status=$?
26575 grep -v '^ *+' conftest.er1 >conftest.err
26576 rm -f conftest.er1
26577 cat conftest.err >&5
26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 26579 (exit $ac_status); } &&
26580 { ac_try='test -z "$ac_c_werror_flag"
26581 || test ! -s conftest.err'
26582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26583 (eval $ac_try) 2>&5
26584 ac_status=$?
26585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586 (exit $ac_status); }; } &&
26587 { ac_try='test -s conftest$ac_exeext'
26588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26589 (eval $ac_try) 2>&5
26590 ac_status=$?
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); }; }; then
d213114b 26593 ac_cv_lib_m_powf=yes
26594else
26595 echo "$as_me: failed program was:" >&5
26596sed 's/^/| /' conftest.$ac_ext >&5
26597
82eaf560 26598ac_cv_lib_m_powf=no
d213114b 26599fi
82eaf560 26600rm -f conftest.err conftest.$ac_objext \
d213114b 26601 conftest$ac_exeext conftest.$ac_ext
26602LIBS=$ac_check_lib_save_LIBS
26603fi
82eaf560 26604echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
26605echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
d213114b 26606if test $ac_cv_lib_m_powf = yes; then
26607
26608cat >>confdefs.h <<\_ACEOF
26609#define HAVE_POWF 1
26610_ACEOF
26611
26612fi
26613
82eaf560 26614echo "$as_me:$LINENO: checking for pow in -lm" >&5
26615echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
d213114b 26616if test "${ac_cv_lib_m_pow+set}" = set; then
26617 echo $ECHO_N "(cached) $ECHO_C" >&6
26618else
26619 ac_check_lib_save_LIBS=$LIBS
26620LIBS="-lm $LIBS"
26621if test x$gcc_no_link = xyes; then
26622 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26623echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26624 { (exit 1); exit 1; }; }
26625fi
26626cat >conftest.$ac_ext <<_ACEOF
26627/* confdefs.h. */
26628_ACEOF
26629cat confdefs.h >>conftest.$ac_ext
26630cat >>conftest.$ac_ext <<_ACEOF
26631/* end confdefs.h. */
26632
82eaf560 26633/* Override any gcc2 internal prototype to avoid an error. */
d213114b 26634#ifdef __cplusplus
26635extern "C"
26636#endif
82eaf560 26637/* We use char because int might match the return type of a gcc2
26638 builtin and then its argument prototype would still apply. */
d213114b 26639char pow ();
26640int
26641main ()
26642{
82eaf560 26643pow ();
d213114b 26644 ;
26645 return 0;
26646}
26647_ACEOF
26648rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 26649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26650 (eval $ac_link) 2>conftest.er1
d213114b 26651 ac_status=$?
26652 grep -v '^ *+' conftest.er1 >conftest.err
26653 rm -f conftest.er1
26654 cat conftest.err >&5
26655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 26656 (exit $ac_status); } &&
26657 { ac_try='test -z "$ac_c_werror_flag"
26658 || test ! -s conftest.err'
26659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26660 (eval $ac_try) 2>&5
26661 ac_status=$?
26662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663 (exit $ac_status); }; } &&
26664 { ac_try='test -s conftest$ac_exeext'
26665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26666 (eval $ac_try) 2>&5
26667 ac_status=$?
26668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 (exit $ac_status); }; }; then
d213114b 26670 ac_cv_lib_m_pow=yes
26671else
26672 echo "$as_me: failed program was:" >&5
26673sed 's/^/| /' conftest.$ac_ext >&5
26674
82eaf560 26675ac_cv_lib_m_pow=no
d213114b 26676fi
82eaf560 26677rm -f conftest.err conftest.$ac_objext \
d213114b 26678 conftest$ac_exeext conftest.$ac_ext
26679LIBS=$ac_check_lib_save_LIBS
26680fi
82eaf560 26681echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
26682echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
d213114b 26683if test $ac_cv_lib_m_pow = yes; then
26684
26685cat >>confdefs.h <<\_ACEOF
26686#define HAVE_POW 1
26687_ACEOF
26688
26689fi
26690
82eaf560 26691echo "$as_me:$LINENO: checking for powl in -lm" >&5
26692echo $ECHO_N "checking for powl in -lm... $ECHO_C" >&6
d213114b 26693if test "${ac_cv_lib_m_powl+set}" = set; then
26694 echo $ECHO_N "(cached) $ECHO_C" >&6
26695else
26696 ac_check_lib_save_LIBS=$LIBS
26697LIBS="-lm $LIBS"
26698if test x$gcc_no_link = xyes; then
26699 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26700echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26701 { (exit 1); exit 1; }; }
26702fi
26703cat >conftest.$ac_ext <<_ACEOF
26704/* confdefs.h. */
26705_ACEOF
26706cat confdefs.h >>conftest.$ac_ext
26707cat >>conftest.$ac_ext <<_ACEOF
26708/* end confdefs.h. */
26709
82eaf560 26710/* Override any gcc2 internal prototype to avoid an error. */
d213114b 26711#ifdef __cplusplus
26712extern "C"
26713#endif
82eaf560 26714/* We use char because int might match the return type of a gcc2
26715 builtin and then its argument prototype would still apply. */
d213114b 26716char powl ();
26717int
26718main ()
26719{
82eaf560 26720powl ();
d213114b 26721 ;
26722 return 0;
26723}
26724_ACEOF
26725rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 26726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26727 (eval $ac_link) 2>conftest.er1
d213114b 26728 ac_status=$?
26729 grep -v '^ *+' conftest.er1 >conftest.err
26730 rm -f conftest.er1
26731 cat conftest.err >&5
26732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 26733 (exit $ac_status); } &&
26734 { ac_try='test -z "$ac_c_werror_flag"
26735 || test ! -s conftest.err'
26736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737 (eval $ac_try) 2>&5
26738 ac_status=$?
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); }; } &&
26741 { ac_try='test -s conftest$ac_exeext'
26742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26743 (eval $ac_try) 2>&5
26744 ac_status=$?
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); }; }; then
d213114b 26747 ac_cv_lib_m_powl=yes
26748else
26749 echo "$as_me: failed program was:" >&5
26750sed 's/^/| /' conftest.$ac_ext >&5
26751
82eaf560 26752ac_cv_lib_m_powl=no
d213114b 26753fi
82eaf560 26754rm -f conftest.err conftest.$ac_objext \
d213114b 26755 conftest$ac_exeext conftest.$ac_ext
26756LIBS=$ac_check_lib_save_LIBS
26757fi
82eaf560 26758echo "$as_me:$LINENO: result: $ac_cv_lib_m_powl" >&5
26759echo "${ECHO_T}$ac_cv_lib_m_powl" >&6
d213114b 26760if test $ac_cv_lib_m_powl = yes; then
26761
26762cat >>confdefs.h <<\_ACEOF
26763#define HAVE_POWL 1
26764_ACEOF
26765
26766fi
26767
82eaf560 26768echo "$as_me:$LINENO: checking for cpowf in -lm" >&5
26769echo $ECHO_N "checking for cpowf in -lm... $ECHO_C" >&6
d213114b 26770if test "${ac_cv_lib_m_cpowf+set}" = set; then
26771 echo $ECHO_N "(cached) $ECHO_C" >&6
26772else
26773 ac_check_lib_save_LIBS=$LIBS
26774LIBS="-lm $LIBS"
26775if test x$gcc_no_link = xyes; then
26776 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26777echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26778 { (exit 1); exit 1; }; }
26779fi
26780cat >conftest.$ac_ext <<_ACEOF
26781/* confdefs.h. */
26782_ACEOF
26783cat confdefs.h >>conftest.$ac_ext
26784cat >>conftest.$ac_ext <<_ACEOF
26785/* end confdefs.h. */
26786
82eaf560 26787/* Override any gcc2 internal prototype to avoid an error. */
d213114b 26788#ifdef __cplusplus
26789extern "C"
26790#endif
82eaf560 26791/* We use char because int might match the return type of a gcc2
26792 builtin and then its argument prototype would still apply. */
d213114b 26793char cpowf ();
26794int
26795main ()
26796{
82eaf560 26797cpowf ();
d213114b 26798 ;
26799 return 0;
26800}
26801_ACEOF
26802rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 26803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26804 (eval $ac_link) 2>conftest.er1
d213114b 26805 ac_status=$?
26806 grep -v '^ *+' conftest.er1 >conftest.err
26807 rm -f conftest.er1
26808 cat conftest.err >&5
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 26810 (exit $ac_status); } &&
26811 { ac_try='test -z "$ac_c_werror_flag"
26812 || test ! -s conftest.err'
26813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814 (eval $ac_try) 2>&5
26815 ac_status=$?
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); }; } &&
26818 { ac_try='test -s conftest$ac_exeext'
26819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820 (eval $ac_try) 2>&5
26821 ac_status=$?
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; }; then
d213114b 26824 ac_cv_lib_m_cpowf=yes
26825else
26826 echo "$as_me: failed program was:" >&5
26827sed 's/^/| /' conftest.$ac_ext >&5
26828
82eaf560 26829ac_cv_lib_m_cpowf=no
d213114b 26830fi
82eaf560 26831rm -f conftest.err conftest.$ac_objext \
d213114b 26832 conftest$ac_exeext conftest.$ac_ext
26833LIBS=$ac_check_lib_save_LIBS
26834fi
82eaf560 26835echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpowf" >&5
26836echo "${ECHO_T}$ac_cv_lib_m_cpowf" >&6
d213114b 26837if test $ac_cv_lib_m_cpowf = yes; then
26838
26839cat >>confdefs.h <<\_ACEOF
26840#define HAVE_CPOWF 1
26841_ACEOF
26842
26843fi
26844
82eaf560 26845echo "$as_me:$LINENO: checking for cpow in -lm" >&5
26846echo $ECHO_N "checking for cpow in -lm... $ECHO_C" >&6
d213114b 26847if test "${ac_cv_lib_m_cpow+set}" = set; then
26848 echo $ECHO_N "(cached) $ECHO_C" >&6
26849else
26850 ac_check_lib_save_LIBS=$LIBS
26851LIBS="-lm $LIBS"
26852if test x$gcc_no_link = xyes; then
26853 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26854echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26855 { (exit 1); exit 1; }; }
26856fi
26857cat >conftest.$ac_ext <<_ACEOF
26858/* confdefs.h. */
26859_ACEOF
26860cat confdefs.h >>conftest.$ac_ext
26861cat >>conftest.$ac_ext <<_ACEOF
26862/* end confdefs.h. */
26863
82eaf560 26864/* Override any gcc2 internal prototype to avoid an error. */
d213114b 26865#ifdef __cplusplus
26866extern "C"
26867#endif
82eaf560 26868/* We use char because int might match the return type of a gcc2
26869 builtin and then its argument prototype would still apply. */
d213114b 26870char cpow ();
26871int
26872main ()
26873{
82eaf560 26874cpow ();
d213114b 26875 ;
26876 return 0;
26877}
26878_ACEOF
26879rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 26880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26881 (eval $ac_link) 2>conftest.er1
d213114b 26882 ac_status=$?
26883 grep -v '^ *+' conftest.er1 >conftest.err
26884 rm -f conftest.er1
26885 cat conftest.err >&5
26886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 26887 (exit $ac_status); } &&
26888 { ac_try='test -z "$ac_c_werror_flag"
26889 || test ! -s conftest.err'
26890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891 (eval $ac_try) 2>&5
26892 ac_status=$?
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); }; } &&
26895 { ac_try='test -s conftest$ac_exeext'
26896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26897 (eval $ac_try) 2>&5
26898 ac_status=$?
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); }; }; then
d213114b 26901 ac_cv_lib_m_cpow=yes
26902else
26903 echo "$as_me: failed program was:" >&5
26904sed 's/^/| /' conftest.$ac_ext >&5
26905
82eaf560 26906ac_cv_lib_m_cpow=no
d213114b 26907fi
82eaf560 26908rm -f conftest.err conftest.$ac_objext \
d213114b 26909 conftest$ac_exeext conftest.$ac_ext
26910LIBS=$ac_check_lib_save_LIBS
26911fi
82eaf560 26912echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpow" >&5
26913echo "${ECHO_T}$ac_cv_lib_m_cpow" >&6
d213114b 26914if test $ac_cv_lib_m_cpow = yes; then
26915
26916cat >>confdefs.h <<\_ACEOF
26917#define HAVE_CPOW 1
26918_ACEOF
26919
26920fi
26921
82eaf560 26922echo "$as_me:$LINENO: checking for cpowl in -lm" >&5
26923echo $ECHO_N "checking for cpowl in -lm... $ECHO_C" >&6
d213114b 26924if test "${ac_cv_lib_m_cpowl+set}" = set; then
26925 echo $ECHO_N "(cached) $ECHO_C" >&6
26926else
26927 ac_check_lib_save_LIBS=$LIBS
26928LIBS="-lm $LIBS"
26929if test x$gcc_no_link = xyes; then
26930 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26931echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26932 { (exit 1); exit 1; }; }
26933fi
26934cat >conftest.$ac_ext <<_ACEOF
26935/* confdefs.h. */
26936_ACEOF
26937cat confdefs.h >>conftest.$ac_ext
26938cat >>conftest.$ac_ext <<_ACEOF
26939/* end confdefs.h. */
26940
82eaf560 26941/* Override any gcc2 internal prototype to avoid an error. */
d213114b 26942#ifdef __cplusplus
26943extern "C"
26944#endif
82eaf560 26945/* We use char because int might match the return type of a gcc2
26946 builtin and then its argument prototype would still apply. */
d213114b 26947char cpowl ();
26948int
26949main ()
26950{
82eaf560 26951cpowl ();
d213114b 26952 ;
26953 return 0;
26954}
26955_ACEOF
26956rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 26957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26958 (eval $ac_link) 2>conftest.er1
d213114b 26959 ac_status=$?
26960 grep -v '^ *+' conftest.er1 >conftest.err
26961 rm -f conftest.er1
26962 cat conftest.err >&5
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 26964 (exit $ac_status); } &&
26965 { ac_try='test -z "$ac_c_werror_flag"
26966 || test ! -s conftest.err'
26967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26968 (eval $ac_try) 2>&5
26969 ac_status=$?
26970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971 (exit $ac_status); }; } &&
26972 { ac_try='test -s conftest$ac_exeext'
26973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26974 (eval $ac_try) 2>&5
26975 ac_status=$?
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); }; }; then
d213114b 26978 ac_cv_lib_m_cpowl=yes
26979else
26980 echo "$as_me: failed program was:" >&5
26981sed 's/^/| /' conftest.$ac_ext >&5
26982
82eaf560 26983ac_cv_lib_m_cpowl=no
d213114b 26984fi
82eaf560 26985rm -f conftest.err conftest.$ac_objext \
d213114b 26986 conftest$ac_exeext conftest.$ac_ext
26987LIBS=$ac_check_lib_save_LIBS
26988fi
82eaf560 26989echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpowl" >&5
26990echo "${ECHO_T}$ac_cv_lib_m_cpowl" >&6
d213114b 26991if test $ac_cv_lib_m_cpowl = yes; then
26992
26993cat >>confdefs.h <<\_ACEOF
26994#define HAVE_CPOWL 1
26995_ACEOF
26996
26997fi
26998
82eaf560 26999echo "$as_me:$LINENO: checking for roundf in -lm" >&5
27000echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
d213114b 27001if test "${ac_cv_lib_m_roundf+set}" = set; then
27002 echo $ECHO_N "(cached) $ECHO_C" >&6
27003else
27004 ac_check_lib_save_LIBS=$LIBS
27005LIBS="-lm $LIBS"
27006if test x$gcc_no_link = xyes; then
27007 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27008echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27009 { (exit 1); exit 1; }; }
27010fi
27011cat >conftest.$ac_ext <<_ACEOF
27012/* confdefs.h. */
27013_ACEOF
27014cat confdefs.h >>conftest.$ac_ext
27015cat >>conftest.$ac_ext <<_ACEOF
27016/* end confdefs.h. */
27017
82eaf560 27018/* Override any gcc2 internal prototype to avoid an error. */
d213114b 27019#ifdef __cplusplus
27020extern "C"
27021#endif
82eaf560 27022/* We use char because int might match the return type of a gcc2
27023 builtin and then its argument prototype would still apply. */
d213114b 27024char roundf ();
27025int
27026main ()
27027{
82eaf560 27028roundf ();
d213114b 27029 ;
27030 return 0;
27031}
27032_ACEOF
27033rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 27034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27035 (eval $ac_link) 2>conftest.er1
d213114b 27036 ac_status=$?
27037 grep -v '^ *+' conftest.er1 >conftest.err
27038 rm -f conftest.er1
27039 cat conftest.err >&5
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 27041 (exit $ac_status); } &&
27042 { ac_try='test -z "$ac_c_werror_flag"
27043 || test ! -s conftest.err'
27044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27045 (eval $ac_try) 2>&5
27046 ac_status=$?
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); }; } &&
27049 { ac_try='test -s conftest$ac_exeext'
27050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051 (eval $ac_try) 2>&5
27052 ac_status=$?
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); }; }; then
d213114b 27055 ac_cv_lib_m_roundf=yes
27056else
27057 echo "$as_me: failed program was:" >&5
27058sed 's/^/| /' conftest.$ac_ext >&5
27059
82eaf560 27060ac_cv_lib_m_roundf=no
d213114b 27061fi
82eaf560 27062rm -f conftest.err conftest.$ac_objext \
d213114b 27063 conftest$ac_exeext conftest.$ac_ext
27064LIBS=$ac_check_lib_save_LIBS
27065fi
82eaf560 27066echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
27067echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
d213114b 27068if test $ac_cv_lib_m_roundf = yes; then
27069
27070cat >>confdefs.h <<\_ACEOF
27071#define HAVE_ROUNDF 1
27072_ACEOF
27073
27074fi
27075
82eaf560 27076echo "$as_me:$LINENO: checking for round in -lm" >&5
27077echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
d213114b 27078if test "${ac_cv_lib_m_round+set}" = set; then
27079 echo $ECHO_N "(cached) $ECHO_C" >&6
27080else
27081 ac_check_lib_save_LIBS=$LIBS
27082LIBS="-lm $LIBS"
27083if test x$gcc_no_link = xyes; then
27084 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27085echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27086 { (exit 1); exit 1; }; }
27087fi
27088cat >conftest.$ac_ext <<_ACEOF
27089/* confdefs.h. */
27090_ACEOF
27091cat confdefs.h >>conftest.$ac_ext
27092cat >>conftest.$ac_ext <<_ACEOF
27093/* end confdefs.h. */
27094
82eaf560 27095/* Override any gcc2 internal prototype to avoid an error. */
d213114b 27096#ifdef __cplusplus
27097extern "C"
27098#endif
82eaf560 27099/* We use char because int might match the return type of a gcc2
27100 builtin and then its argument prototype would still apply. */
d213114b 27101char round ();
27102int
27103main ()
27104{
82eaf560 27105round ();
d213114b 27106 ;
27107 return 0;
27108}
27109_ACEOF
27110rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 27111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27112 (eval $ac_link) 2>conftest.er1
d213114b 27113 ac_status=$?
27114 grep -v '^ *+' conftest.er1 >conftest.err
27115 rm -f conftest.er1
27116 cat conftest.err >&5
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 27118 (exit $ac_status); } &&
27119 { ac_try='test -z "$ac_c_werror_flag"
27120 || test ! -s conftest.err'
27121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122 (eval $ac_try) 2>&5
27123 ac_status=$?
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); }; } &&
27126 { ac_try='test -s conftest$ac_exeext'
27127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128 (eval $ac_try) 2>&5
27129 ac_status=$?
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); }; }; then
d213114b 27132 ac_cv_lib_m_round=yes
27133else
27134 echo "$as_me: failed program was:" >&5
27135sed 's/^/| /' conftest.$ac_ext >&5
27136
82eaf560 27137ac_cv_lib_m_round=no
d213114b 27138fi
82eaf560 27139rm -f conftest.err conftest.$ac_objext \
d213114b 27140 conftest$ac_exeext conftest.$ac_ext
27141LIBS=$ac_check_lib_save_LIBS
27142fi
82eaf560 27143echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
27144echo "${ECHO_T}$ac_cv_lib_m_round" >&6
d213114b 27145if test $ac_cv_lib_m_round = yes; then
27146
27147cat >>confdefs.h <<\_ACEOF
27148#define HAVE_ROUND 1
27149_ACEOF
27150
27151fi
27152
82eaf560 27153echo "$as_me:$LINENO: checking for roundl in -lm" >&5
27154echo $ECHO_N "checking for roundl in -lm... $ECHO_C" >&6
d213114b 27155if test "${ac_cv_lib_m_roundl+set}" = set; then
27156 echo $ECHO_N "(cached) $ECHO_C" >&6
27157else
27158 ac_check_lib_save_LIBS=$LIBS
27159LIBS="-lm $LIBS"
27160if test x$gcc_no_link = xyes; then
27161 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27162echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27163 { (exit 1); exit 1; }; }
27164fi
27165cat >conftest.$ac_ext <<_ACEOF
27166/* confdefs.h. */
27167_ACEOF
27168cat confdefs.h >>conftest.$ac_ext
27169cat >>conftest.$ac_ext <<_ACEOF
27170/* end confdefs.h. */
27171
82eaf560 27172/* Override any gcc2 internal prototype to avoid an error. */
d213114b 27173#ifdef __cplusplus
27174extern "C"
27175#endif
82eaf560 27176/* We use char because int might match the return type of a gcc2
27177 builtin and then its argument prototype would still apply. */
d213114b 27178char roundl ();
27179int
27180main ()
27181{
82eaf560 27182roundl ();
d213114b 27183 ;
27184 return 0;
27185}
27186_ACEOF
27187rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 27188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27189 (eval $ac_link) 2>conftest.er1
d213114b 27190 ac_status=$?
27191 grep -v '^ *+' conftest.er1 >conftest.err
27192 rm -f conftest.er1
27193 cat conftest.err >&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 27195 (exit $ac_status); } &&
27196 { ac_try='test -z "$ac_c_werror_flag"
27197 || test ! -s conftest.err'
27198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199 (eval $ac_try) 2>&5
27200 ac_status=$?
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); }; } &&
27203 { ac_try='test -s conftest$ac_exeext'
27204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205 (eval $ac_try) 2>&5
27206 ac_status=$?
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; }; then
d213114b 27209 ac_cv_lib_m_roundl=yes
27210else
27211 echo "$as_me: failed program was:" >&5
27212sed 's/^/| /' conftest.$ac_ext >&5
27213
82eaf560 27214ac_cv_lib_m_roundl=no
d213114b 27215fi
82eaf560 27216rm -f conftest.err conftest.$ac_objext \
d213114b 27217 conftest$ac_exeext conftest.$ac_ext
27218LIBS=$ac_check_lib_save_LIBS
27219fi
82eaf560 27220echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundl" >&5
27221echo "${ECHO_T}$ac_cv_lib_m_roundl" >&6
d213114b 27222if test $ac_cv_lib_m_roundl = yes; then
27223
27224cat >>confdefs.h <<\_ACEOF
27225#define HAVE_ROUNDL 1
27226_ACEOF
27227
27228fi
27229
82eaf560 27230echo "$as_me:$LINENO: checking for lroundf in -lm" >&5
27231echo $ECHO_N "checking for lroundf in -lm... $ECHO_C" >&6
ef080b63 27232if test "${ac_cv_lib_m_lroundf+set}" = set; then
27233 echo $ECHO_N "(cached) $ECHO_C" >&6
27234else
27235 ac_check_lib_save_LIBS=$LIBS
27236LIBS="-lm $LIBS"
27237if test x$gcc_no_link = xyes; then
27238 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27239echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27240 { (exit 1); exit 1; }; }
27241fi
27242cat >conftest.$ac_ext <<_ACEOF
27243/* confdefs.h. */
27244_ACEOF
27245cat confdefs.h >>conftest.$ac_ext
27246cat >>conftest.$ac_ext <<_ACEOF
27247/* end confdefs.h. */
27248
82eaf560 27249/* Override any gcc2 internal prototype to avoid an error. */
ef080b63 27250#ifdef __cplusplus
27251extern "C"
27252#endif
82eaf560 27253/* We use char because int might match the return type of a gcc2
27254 builtin and then its argument prototype would still apply. */
ef080b63 27255char lroundf ();
27256int
27257main ()
27258{
82eaf560 27259lroundf ();
ef080b63 27260 ;
27261 return 0;
27262}
27263_ACEOF
27264rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 27265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27266 (eval $ac_link) 2>conftest.er1
ef080b63 27267 ac_status=$?
27268 grep -v '^ *+' conftest.er1 >conftest.err
27269 rm -f conftest.er1
27270 cat conftest.err >&5
27271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 27272 (exit $ac_status); } &&
27273 { ac_try='test -z "$ac_c_werror_flag"
27274 || test ! -s conftest.err'
27275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27276 (eval $ac_try) 2>&5
27277 ac_status=$?
27278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279 (exit $ac_status); }; } &&
27280 { ac_try='test -s conftest$ac_exeext'
27281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27282 (eval $ac_try) 2>&5
27283 ac_status=$?
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); }; }; then
ef080b63 27286 ac_cv_lib_m_lroundf=yes
27287else
27288 echo "$as_me: failed program was:" >&5
27289sed 's/^/| /' conftest.$ac_ext >&5
27290
82eaf560 27291ac_cv_lib_m_lroundf=no
ef080b63 27292fi
82eaf560 27293rm -f conftest.err conftest.$ac_objext \
ef080b63 27294 conftest$ac_exeext conftest.$ac_ext
27295LIBS=$ac_check_lib_save_LIBS
27296fi
82eaf560 27297echo "$as_me:$LINENO: result: $ac_cv_lib_m_lroundf" >&5
27298echo "${ECHO_T}$ac_cv_lib_m_lroundf" >&6
ef080b63 27299if test $ac_cv_lib_m_lroundf = yes; then
27300
27301cat >>confdefs.h <<\_ACEOF
27302#define HAVE_LROUNDF 1
27303_ACEOF
27304
27305fi
27306
82eaf560 27307echo "$as_me:$LINENO: checking for lround in -lm" >&5
27308echo $ECHO_N "checking for lround in -lm... $ECHO_C" >&6
ef080b63 27309if test "${ac_cv_lib_m_lround+set}" = set; then
27310 echo $ECHO_N "(cached) $ECHO_C" >&6
27311else
27312 ac_check_lib_save_LIBS=$LIBS
27313LIBS="-lm $LIBS"
27314if test x$gcc_no_link = xyes; then
27315 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27316echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27317 { (exit 1); exit 1; }; }
27318fi
27319cat >conftest.$ac_ext <<_ACEOF
27320/* confdefs.h. */
27321_ACEOF
27322cat confdefs.h >>conftest.$ac_ext
27323cat >>conftest.$ac_ext <<_ACEOF
27324/* end confdefs.h. */
27325
82eaf560 27326/* Override any gcc2 internal prototype to avoid an error. */
ef080b63 27327#ifdef __cplusplus
27328extern "C"
27329#endif
82eaf560 27330/* We use char because int might match the return type of a gcc2
27331 builtin and then its argument prototype would still apply. */
ef080b63 27332char lround ();
27333int
27334main ()
27335{
82eaf560 27336lround ();
ef080b63 27337 ;
27338 return 0;
27339}
27340_ACEOF
27341rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 27342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27343 (eval $ac_link) 2>conftest.er1
ef080b63 27344 ac_status=$?
27345 grep -v '^ *+' conftest.er1 >conftest.err
27346 rm -f conftest.er1
27347 cat conftest.err >&5
27348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 27349 (exit $ac_status); } &&
27350 { ac_try='test -z "$ac_c_werror_flag"
27351 || test ! -s conftest.err'
27352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27353 (eval $ac_try) 2>&5
27354 ac_status=$?
27355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356 (exit $ac_status); }; } &&
27357 { ac_try='test -s conftest$ac_exeext'
27358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27359 (eval $ac_try) 2>&5
27360 ac_status=$?
27361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362 (exit $ac_status); }; }; then
ef080b63 27363 ac_cv_lib_m_lround=yes
27364else
27365 echo "$as_me: failed program was:" >&5
27366sed 's/^/| /' conftest.$ac_ext >&5
27367
82eaf560 27368ac_cv_lib_m_lround=no
ef080b63 27369fi
82eaf560 27370rm -f conftest.err conftest.$ac_objext \
ef080b63 27371 conftest$ac_exeext conftest.$ac_ext
27372LIBS=$ac_check_lib_save_LIBS
27373fi
82eaf560 27374echo "$as_me:$LINENO: result: $ac_cv_lib_m_lround" >&5
27375echo "${ECHO_T}$ac_cv_lib_m_lround" >&6
ef080b63 27376if test $ac_cv_lib_m_lround = yes; then
27377
27378cat >>confdefs.h <<\_ACEOF
27379#define HAVE_LROUND 1
27380_ACEOF
27381
27382fi
27383
82eaf560 27384echo "$as_me:$LINENO: checking for lroundl in -lm" >&5
27385echo $ECHO_N "checking for lroundl in -lm... $ECHO_C" >&6
ef080b63 27386if test "${ac_cv_lib_m_lroundl+set}" = set; then
27387 echo $ECHO_N "(cached) $ECHO_C" >&6
27388else
27389 ac_check_lib_save_LIBS=$LIBS
27390LIBS="-lm $LIBS"
27391if test x$gcc_no_link = xyes; then
27392 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27393echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27394 { (exit 1); exit 1; }; }
27395fi
27396cat >conftest.$ac_ext <<_ACEOF
27397/* confdefs.h. */
27398_ACEOF
27399cat confdefs.h >>conftest.$ac_ext
27400cat >>conftest.$ac_ext <<_ACEOF
27401/* end confdefs.h. */
27402
82eaf560 27403/* Override any gcc2 internal prototype to avoid an error. */
ef080b63 27404#ifdef __cplusplus
27405extern "C"
27406#endif
82eaf560 27407/* We use char because int might match the return type of a gcc2
27408 builtin and then its argument prototype would still apply. */
ef080b63 27409char lroundl ();
27410int
27411main ()
27412{
82eaf560 27413lroundl ();
ef080b63 27414 ;
27415 return 0;
27416}
27417_ACEOF
27418rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 27419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27420 (eval $ac_link) 2>conftest.er1
ef080b63 27421 ac_status=$?
27422 grep -v '^ *+' conftest.er1 >conftest.err
27423 rm -f conftest.er1
27424 cat conftest.err >&5
27425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 27426 (exit $ac_status); } &&
27427 { ac_try='test -z "$ac_c_werror_flag"
27428 || test ! -s conftest.err'
27429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27430 (eval $ac_try) 2>&5
27431 ac_status=$?
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); }; } &&
27434 { ac_try='test -s conftest$ac_exeext'
27435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27436 (eval $ac_try) 2>&5
27437 ac_status=$?
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); }; }; then
ef080b63 27440 ac_cv_lib_m_lroundl=yes
27441else
27442 echo "$as_me: failed program was:" >&5
27443sed 's/^/| /' conftest.$ac_ext >&5
27444
82eaf560 27445ac_cv_lib_m_lroundl=no
ef080b63 27446fi
82eaf560 27447rm -f conftest.err conftest.$ac_objext \
ef080b63 27448 conftest$ac_exeext conftest.$ac_ext
27449LIBS=$ac_check_lib_save_LIBS
27450fi
82eaf560 27451echo "$as_me:$LINENO: result: $ac_cv_lib_m_lroundl" >&5
27452echo "${ECHO_T}$ac_cv_lib_m_lroundl" >&6
ef080b63 27453if test $ac_cv_lib_m_lroundl = yes; then
27454
27455cat >>confdefs.h <<\_ACEOF
27456#define HAVE_LROUNDL 1
27457_ACEOF
27458
27459fi
27460
82eaf560 27461echo "$as_me:$LINENO: checking for llroundf in -lm" >&5
27462echo $ECHO_N "checking for llroundf in -lm... $ECHO_C" >&6
ef080b63 27463if test "${ac_cv_lib_m_llroundf+set}" = set; then
27464 echo $ECHO_N "(cached) $ECHO_C" >&6
27465else
27466 ac_check_lib_save_LIBS=$LIBS
27467LIBS="-lm $LIBS"
27468if test x$gcc_no_link = xyes; then
27469 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27470echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27471 { (exit 1); exit 1; }; }
27472fi
27473cat >conftest.$ac_ext <<_ACEOF
27474/* confdefs.h. */
27475_ACEOF
27476cat confdefs.h >>conftest.$ac_ext
27477cat >>conftest.$ac_ext <<_ACEOF
27478/* end confdefs.h. */
27479
82eaf560 27480/* Override any gcc2 internal prototype to avoid an error. */
ef080b63 27481#ifdef __cplusplus
27482extern "C"
27483#endif
82eaf560 27484/* We use char because int might match the return type of a gcc2
27485 builtin and then its argument prototype would still apply. */
ef080b63 27486char llroundf ();
27487int
27488main ()
27489{
82eaf560 27490llroundf ();
ef080b63 27491 ;
27492 return 0;
27493}
27494_ACEOF
27495rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 27496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27497 (eval $ac_link) 2>conftest.er1
ef080b63 27498 ac_status=$?
27499 grep -v '^ *+' conftest.er1 >conftest.err
27500 rm -f conftest.er1
27501 cat conftest.err >&5
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 27503 (exit $ac_status); } &&
27504 { ac_try='test -z "$ac_c_werror_flag"
27505 || test ! -s conftest.err'
27506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507 (eval $ac_try) 2>&5
27508 ac_status=$?
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); }; } &&
27511 { ac_try='test -s conftest$ac_exeext'
27512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513 (eval $ac_try) 2>&5
27514 ac_status=$?
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); }; }; then
ef080b63 27517 ac_cv_lib_m_llroundf=yes
27518else
27519 echo "$as_me: failed program was:" >&5
27520sed 's/^/| /' conftest.$ac_ext >&5
27521
82eaf560 27522ac_cv_lib_m_llroundf=no
ef080b63 27523fi
82eaf560 27524rm -f conftest.err conftest.$ac_objext \
ef080b63 27525 conftest$ac_exeext conftest.$ac_ext
27526LIBS=$ac_check_lib_save_LIBS
27527fi
82eaf560 27528echo "$as_me:$LINENO: result: $ac_cv_lib_m_llroundf" >&5
27529echo "${ECHO_T}$ac_cv_lib_m_llroundf" >&6
ef080b63 27530if test $ac_cv_lib_m_llroundf = yes; then
27531
27532cat >>confdefs.h <<\_ACEOF
27533#define HAVE_LLROUNDF 1
27534_ACEOF
27535
27536fi
27537
82eaf560 27538echo "$as_me:$LINENO: checking for llround in -lm" >&5
27539echo $ECHO_N "checking for llround in -lm... $ECHO_C" >&6
ef080b63 27540if test "${ac_cv_lib_m_llround+set}" = set; then
27541 echo $ECHO_N "(cached) $ECHO_C" >&6
27542else
27543 ac_check_lib_save_LIBS=$LIBS
27544LIBS="-lm $LIBS"
27545if test x$gcc_no_link = xyes; then
27546 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27547echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27548 { (exit 1); exit 1; }; }
27549fi
27550cat >conftest.$ac_ext <<_ACEOF
27551/* confdefs.h. */
27552_ACEOF
27553cat confdefs.h >>conftest.$ac_ext
27554cat >>conftest.$ac_ext <<_ACEOF
27555/* end confdefs.h. */
27556
82eaf560 27557/* Override any gcc2 internal prototype to avoid an error. */
ef080b63 27558#ifdef __cplusplus
27559extern "C"
27560#endif
82eaf560 27561/* We use char because int might match the return type of a gcc2
27562 builtin and then its argument prototype would still apply. */
ef080b63 27563char llround ();
27564int
27565main ()
27566{
82eaf560 27567llround ();
ef080b63 27568 ;
27569 return 0;
27570}
27571_ACEOF
27572rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 27573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27574 (eval $ac_link) 2>conftest.er1
ef080b63 27575 ac_status=$?
27576 grep -v '^ *+' conftest.er1 >conftest.err
27577 rm -f conftest.er1
27578 cat conftest.err >&5
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 27580 (exit $ac_status); } &&
27581 { ac_try='test -z "$ac_c_werror_flag"
27582 || test ! -s conftest.err'
27583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27584 (eval $ac_try) 2>&5
27585 ac_status=$?
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); }; } &&
27588 { ac_try='test -s conftest$ac_exeext'
27589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27590 (eval $ac_try) 2>&5
27591 ac_status=$?
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); }; }; then
ef080b63 27594 ac_cv_lib_m_llround=yes
27595else
27596 echo "$as_me: failed program was:" >&5
27597sed 's/^/| /' conftest.$ac_ext >&5
27598
82eaf560 27599ac_cv_lib_m_llround=no
ef080b63 27600fi
82eaf560 27601rm -f conftest.err conftest.$ac_objext \
ef080b63 27602 conftest$ac_exeext conftest.$ac_ext
27603LIBS=$ac_check_lib_save_LIBS
27604fi
82eaf560 27605echo "$as_me:$LINENO: result: $ac_cv_lib_m_llround" >&5
27606echo "${ECHO_T}$ac_cv_lib_m_llround" >&6
ef080b63 27607if test $ac_cv_lib_m_llround = yes; then
27608
27609cat >>confdefs.h <<\_ACEOF
27610#define HAVE_LLROUND 1
27611_ACEOF
27612
27613fi
27614
82eaf560 27615echo "$as_me:$LINENO: checking for llroundl in -lm" >&5
27616echo $ECHO_N "checking for llroundl in -lm... $ECHO_C" >&6
ef080b63 27617if test "${ac_cv_lib_m_llroundl+set}" = set; then
27618 echo $ECHO_N "(cached) $ECHO_C" >&6
27619else
27620 ac_check_lib_save_LIBS=$LIBS
27621LIBS="-lm $LIBS"
27622if test x$gcc_no_link = xyes; then
27623 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27624echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27625 { (exit 1); exit 1; }; }
27626fi
27627cat >conftest.$ac_ext <<_ACEOF
27628/* confdefs.h. */
27629_ACEOF
27630cat confdefs.h >>conftest.$ac_ext
27631cat >>conftest.$ac_ext <<_ACEOF
27632/* end confdefs.h. */
27633
82eaf560 27634/* Override any gcc2 internal prototype to avoid an error. */
ef080b63 27635#ifdef __cplusplus
27636extern "C"
27637#endif
82eaf560 27638/* We use char because int might match the return type of a gcc2
27639 builtin and then its argument prototype would still apply. */
ef080b63 27640char llroundl ();
27641int
27642main ()
27643{
82eaf560 27644llroundl ();
ef080b63 27645 ;
27646 return 0;
27647}
27648_ACEOF
27649rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 27650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27651 (eval $ac_link) 2>conftest.er1
ef080b63 27652 ac_status=$?
27653 grep -v '^ *+' conftest.er1 >conftest.err
27654 rm -f conftest.er1
27655 cat conftest.err >&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 27657 (exit $ac_status); } &&
27658 { ac_try='test -z "$ac_c_werror_flag"
27659 || test ! -s conftest.err'
27660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27661 (eval $ac_try) 2>&5
27662 ac_status=$?
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); }; } &&
27665 { ac_try='test -s conftest$ac_exeext'
27666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27667 (eval $ac_try) 2>&5
27668 ac_status=$?
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); }; }; then
ef080b63 27671 ac_cv_lib_m_llroundl=yes
27672else
27673 echo "$as_me: failed program was:" >&5
27674sed 's/^/| /' conftest.$ac_ext >&5
27675
82eaf560 27676ac_cv_lib_m_llroundl=no
ef080b63 27677fi
82eaf560 27678rm -f conftest.err conftest.$ac_objext \
ef080b63 27679 conftest$ac_exeext conftest.$ac_ext
27680LIBS=$ac_check_lib_save_LIBS
27681fi
82eaf560 27682echo "$as_me:$LINENO: result: $ac_cv_lib_m_llroundl" >&5
27683echo "${ECHO_T}$ac_cv_lib_m_llroundl" >&6
ef080b63 27684if test $ac_cv_lib_m_llroundl = yes; then
27685
27686cat >>confdefs.h <<\_ACEOF
27687#define HAVE_LLROUNDL 1
27688_ACEOF
27689
27690fi
27691
82eaf560 27692echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
27693echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
d213114b 27694if test "${ac_cv_lib_m_scalbnf+set}" = set; then
27695 echo $ECHO_N "(cached) $ECHO_C" >&6
27696else
27697 ac_check_lib_save_LIBS=$LIBS
27698LIBS="-lm $LIBS"
27699if test x$gcc_no_link = xyes; then
27700 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27701echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27702 { (exit 1); exit 1; }; }
27703fi
27704cat >conftest.$ac_ext <<_ACEOF
27705/* confdefs.h. */
27706_ACEOF
27707cat confdefs.h >>conftest.$ac_ext
27708cat >>conftest.$ac_ext <<_ACEOF
27709/* end confdefs.h. */
27710
82eaf560 27711/* Override any gcc2 internal prototype to avoid an error. */
d213114b 27712#ifdef __cplusplus
27713extern "C"
27714#endif
82eaf560 27715/* We use char because int might match the return type of a gcc2
27716 builtin and then its argument prototype would still apply. */
d213114b 27717char scalbnf ();
27718int
27719main ()
27720{
82eaf560 27721scalbnf ();
d213114b 27722 ;
27723 return 0;
27724}
27725_ACEOF
27726rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 27727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27728 (eval $ac_link) 2>conftest.er1
d213114b 27729 ac_status=$?
27730 grep -v '^ *+' conftest.er1 >conftest.err
27731 rm -f conftest.er1
27732 cat conftest.err >&5
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 27734 (exit $ac_status); } &&
27735 { ac_try='test -z "$ac_c_werror_flag"
27736 || test ! -s conftest.err'
27737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27738 (eval $ac_try) 2>&5
27739 ac_status=$?
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); }; } &&
27742 { ac_try='test -s conftest$ac_exeext'
27743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27744 (eval $ac_try) 2>&5
27745 ac_status=$?
27746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 (exit $ac_status); }; }; then
d213114b 27748 ac_cv_lib_m_scalbnf=yes
27749else
27750 echo "$as_me: failed program was:" >&5
27751sed 's/^/| /' conftest.$ac_ext >&5
27752
82eaf560 27753ac_cv_lib_m_scalbnf=no
d213114b 27754fi
82eaf560 27755rm -f conftest.err conftest.$ac_objext \
d213114b 27756 conftest$ac_exeext conftest.$ac_ext
27757LIBS=$ac_check_lib_save_LIBS
27758fi
82eaf560 27759echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
27760echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
d213114b 27761if test $ac_cv_lib_m_scalbnf = yes; then
27762
27763cat >>confdefs.h <<\_ACEOF
27764#define HAVE_SCALBNF 1
27765_ACEOF
27766
27767fi
27768
82eaf560 27769echo "$as_me:$LINENO: checking for scalbn in -lm" >&5
27770echo $ECHO_N "checking for scalbn in -lm... $ECHO_C" >&6
d213114b 27771if test "${ac_cv_lib_m_scalbn+set}" = set; then
27772 echo $ECHO_N "(cached) $ECHO_C" >&6
27773else
27774 ac_check_lib_save_LIBS=$LIBS
27775LIBS="-lm $LIBS"
27776if test x$gcc_no_link = xyes; then
27777 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27778echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27779 { (exit 1); exit 1; }; }
27780fi
27781cat >conftest.$ac_ext <<_ACEOF
27782/* confdefs.h. */
27783_ACEOF
27784cat confdefs.h >>conftest.$ac_ext
27785cat >>conftest.$ac_ext <<_ACEOF
27786/* end confdefs.h. */
27787
82eaf560 27788/* Override any gcc2 internal prototype to avoid an error. */
d213114b 27789#ifdef __cplusplus
27790extern "C"
27791#endif
82eaf560 27792/* We use char because int might match the return type of a gcc2
27793 builtin and then its argument prototype would still apply. */
d213114b 27794char scalbn ();
27795int
27796main ()
27797{
82eaf560 27798scalbn ();
d213114b 27799 ;
27800 return 0;
27801}
27802_ACEOF
27803rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 27804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27805 (eval $ac_link) 2>conftest.er1
d213114b 27806 ac_status=$?
27807 grep -v '^ *+' conftest.er1 >conftest.err
27808 rm -f conftest.er1
27809 cat conftest.err >&5
27810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 27811 (exit $ac_status); } &&
27812 { ac_try='test -z "$ac_c_werror_flag"
27813 || test ! -s conftest.err'
27814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27815 (eval $ac_try) 2>&5
27816 ac_status=$?
27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); }; } &&
27819 { ac_try='test -s conftest$ac_exeext'
27820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27821 (eval $ac_try) 2>&5
27822 ac_status=$?
27823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27824 (exit $ac_status); }; }; then
d213114b 27825 ac_cv_lib_m_scalbn=yes
27826else
27827 echo "$as_me: failed program was:" >&5
27828sed 's/^/| /' conftest.$ac_ext >&5
27829
82eaf560 27830ac_cv_lib_m_scalbn=no
d213114b 27831fi
82eaf560 27832rm -f conftest.err conftest.$ac_objext \
d213114b 27833 conftest$ac_exeext conftest.$ac_ext
27834LIBS=$ac_check_lib_save_LIBS
27835fi
82eaf560 27836echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbn" >&5
27837echo "${ECHO_T}$ac_cv_lib_m_scalbn" >&6
d213114b 27838if test $ac_cv_lib_m_scalbn = yes; then
27839
27840cat >>confdefs.h <<\_ACEOF
27841#define HAVE_SCALBN 1
27842_ACEOF
27843
27844fi
27845
82eaf560 27846echo "$as_me:$LINENO: checking for scalbnl in -lm" >&5
27847echo $ECHO_N "checking for scalbnl in -lm... $ECHO_C" >&6
d213114b 27848if test "${ac_cv_lib_m_scalbnl+set}" = set; then
27849 echo $ECHO_N "(cached) $ECHO_C" >&6
27850else
27851 ac_check_lib_save_LIBS=$LIBS
27852LIBS="-lm $LIBS"
27853if test x$gcc_no_link = xyes; then
27854 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27855echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27856 { (exit 1); exit 1; }; }
27857fi
27858cat >conftest.$ac_ext <<_ACEOF
27859/* confdefs.h. */
27860_ACEOF
27861cat confdefs.h >>conftest.$ac_ext
27862cat >>conftest.$ac_ext <<_ACEOF
27863/* end confdefs.h. */
27864
82eaf560 27865/* Override any gcc2 internal prototype to avoid an error. */
d213114b 27866#ifdef __cplusplus
27867extern "C"
27868#endif
82eaf560 27869/* We use char because int might match the return type of a gcc2
27870 builtin and then its argument prototype would still apply. */
d213114b 27871char scalbnl ();
27872int
27873main ()
27874{
82eaf560 27875scalbnl ();
d213114b 27876 ;
27877 return 0;
27878}
27879_ACEOF
27880rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 27881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27882 (eval $ac_link) 2>conftest.er1
d213114b 27883 ac_status=$?
27884 grep -v '^ *+' conftest.er1 >conftest.err
27885 rm -f conftest.er1
27886 cat conftest.err >&5
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 27888 (exit $ac_status); } &&
27889 { ac_try='test -z "$ac_c_werror_flag"
27890 || test ! -s conftest.err'
27891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27892 (eval $ac_try) 2>&5
27893 ac_status=$?
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); }; } &&
27896 { ac_try='test -s conftest$ac_exeext'
27897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27898 (eval $ac_try) 2>&5
27899 ac_status=$?
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; }; then
d213114b 27902 ac_cv_lib_m_scalbnl=yes
27903else
27904 echo "$as_me: failed program was:" >&5
27905sed 's/^/| /' conftest.$ac_ext >&5
27906
82eaf560 27907ac_cv_lib_m_scalbnl=no
d213114b 27908fi
82eaf560 27909rm -f conftest.err conftest.$ac_objext \
d213114b 27910 conftest$ac_exeext conftest.$ac_ext
27911LIBS=$ac_check_lib_save_LIBS
27912fi
82eaf560 27913echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnl" >&5
27914echo "${ECHO_T}$ac_cv_lib_m_scalbnl" >&6
d213114b 27915if test $ac_cv_lib_m_scalbnl = yes; then
27916
27917cat >>confdefs.h <<\_ACEOF
27918#define HAVE_SCALBNL 1
27919_ACEOF
27920
27921fi
27922
82eaf560 27923echo "$as_me:$LINENO: checking for sinf in -lm" >&5
27924echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
d213114b 27925if test "${ac_cv_lib_m_sinf+set}" = set; then
27926 echo $ECHO_N "(cached) $ECHO_C" >&6
27927else
27928 ac_check_lib_save_LIBS=$LIBS
27929LIBS="-lm $LIBS"
27930if test x$gcc_no_link = xyes; then
27931 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27932echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27933 { (exit 1); exit 1; }; }
27934fi
27935cat >conftest.$ac_ext <<_ACEOF
27936/* confdefs.h. */
27937_ACEOF
27938cat confdefs.h >>conftest.$ac_ext
27939cat >>conftest.$ac_ext <<_ACEOF
27940/* end confdefs.h. */
27941
82eaf560 27942/* Override any gcc2 internal prototype to avoid an error. */
d213114b 27943#ifdef __cplusplus
27944extern "C"
27945#endif
82eaf560 27946/* We use char because int might match the return type of a gcc2
27947 builtin and then its argument prototype would still apply. */
d213114b 27948char sinf ();
27949int
27950main ()
27951{
82eaf560 27952sinf ();
d213114b 27953 ;
27954 return 0;
27955}
27956_ACEOF
27957rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 27958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27959 (eval $ac_link) 2>conftest.er1
d213114b 27960 ac_status=$?
27961 grep -v '^ *+' conftest.er1 >conftest.err
27962 rm -f conftest.er1
27963 cat conftest.err >&5
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 27965 (exit $ac_status); } &&
27966 { ac_try='test -z "$ac_c_werror_flag"
27967 || test ! -s conftest.err'
27968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969 (eval $ac_try) 2>&5
27970 ac_status=$?
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); }; } &&
27973 { ac_try='test -s conftest$ac_exeext'
27974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27975 (eval $ac_try) 2>&5
27976 ac_status=$?
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); }; }; then
d213114b 27979 ac_cv_lib_m_sinf=yes
27980else
27981 echo "$as_me: failed program was:" >&5
27982sed 's/^/| /' conftest.$ac_ext >&5
27983
82eaf560 27984ac_cv_lib_m_sinf=no
d213114b 27985fi
82eaf560 27986rm -f conftest.err conftest.$ac_objext \
d213114b 27987 conftest$ac_exeext conftest.$ac_ext
27988LIBS=$ac_check_lib_save_LIBS
27989fi
82eaf560 27990echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
27991echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
d213114b 27992if test $ac_cv_lib_m_sinf = yes; then
27993
27994cat >>confdefs.h <<\_ACEOF
27995#define HAVE_SINF 1
27996_ACEOF
27997
27998fi
27999
82eaf560 28000echo "$as_me:$LINENO: checking for sin in -lm" >&5
28001echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
d213114b 28002if test "${ac_cv_lib_m_sin+set}" = set; then
28003 echo $ECHO_N "(cached) $ECHO_C" >&6
28004else
28005 ac_check_lib_save_LIBS=$LIBS
28006LIBS="-lm $LIBS"
28007if test x$gcc_no_link = xyes; then
28008 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28009echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28010 { (exit 1); exit 1; }; }
28011fi
28012cat >conftest.$ac_ext <<_ACEOF
28013/* confdefs.h. */
28014_ACEOF
28015cat confdefs.h >>conftest.$ac_ext
28016cat >>conftest.$ac_ext <<_ACEOF
28017/* end confdefs.h. */
28018
82eaf560 28019/* Override any gcc2 internal prototype to avoid an error. */
d213114b 28020#ifdef __cplusplus
28021extern "C"
28022#endif
82eaf560 28023/* We use char because int might match the return type of a gcc2
28024 builtin and then its argument prototype would still apply. */
d213114b 28025char sin ();
28026int
28027main ()
28028{
82eaf560 28029sin ();
d213114b 28030 ;
28031 return 0;
28032}
28033_ACEOF
28034rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 28035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28036 (eval $ac_link) 2>conftest.er1
d213114b 28037 ac_status=$?
28038 grep -v '^ *+' conftest.er1 >conftest.err
28039 rm -f conftest.er1
28040 cat conftest.err >&5
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 28042 (exit $ac_status); } &&
28043 { ac_try='test -z "$ac_c_werror_flag"
28044 || test ! -s conftest.err'
28045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28046 (eval $ac_try) 2>&5
28047 ac_status=$?
28048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049 (exit $ac_status); }; } &&
28050 { ac_try='test -s conftest$ac_exeext'
28051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28052 (eval $ac_try) 2>&5
28053 ac_status=$?
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 (exit $ac_status); }; }; then
d213114b 28056 ac_cv_lib_m_sin=yes
28057else
28058 echo "$as_me: failed program was:" >&5
28059sed 's/^/| /' conftest.$ac_ext >&5
28060
82eaf560 28061ac_cv_lib_m_sin=no
d213114b 28062fi
82eaf560 28063rm -f conftest.err conftest.$ac_objext \
d213114b 28064 conftest$ac_exeext conftest.$ac_ext
28065LIBS=$ac_check_lib_save_LIBS
28066fi
82eaf560 28067echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
28068echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
d213114b 28069if test $ac_cv_lib_m_sin = yes; then
28070
28071cat >>confdefs.h <<\_ACEOF
28072#define HAVE_SIN 1
28073_ACEOF
28074
28075fi
28076
82eaf560 28077echo "$as_me:$LINENO: checking for sinl in -lm" >&5
28078echo $ECHO_N "checking for sinl in -lm... $ECHO_C" >&6
d213114b 28079if test "${ac_cv_lib_m_sinl+set}" = set; then
28080 echo $ECHO_N "(cached) $ECHO_C" >&6
28081else
28082 ac_check_lib_save_LIBS=$LIBS
28083LIBS="-lm $LIBS"
28084if test x$gcc_no_link = xyes; then
28085 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28086echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28087 { (exit 1); exit 1; }; }
28088fi
28089cat >conftest.$ac_ext <<_ACEOF
28090/* confdefs.h. */
28091_ACEOF
28092cat confdefs.h >>conftest.$ac_ext
28093cat >>conftest.$ac_ext <<_ACEOF
28094/* end confdefs.h. */
28095
82eaf560 28096/* Override any gcc2 internal prototype to avoid an error. */
d213114b 28097#ifdef __cplusplus
28098extern "C"
28099#endif
82eaf560 28100/* We use char because int might match the return type of a gcc2
28101 builtin and then its argument prototype would still apply. */
d213114b 28102char sinl ();
28103int
28104main ()
28105{
82eaf560 28106sinl ();
d213114b 28107 ;
28108 return 0;
28109}
28110_ACEOF
28111rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 28112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28113 (eval $ac_link) 2>conftest.er1
d213114b 28114 ac_status=$?
28115 grep -v '^ *+' conftest.er1 >conftest.err
28116 rm -f conftest.er1
28117 cat conftest.err >&5
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 28119 (exit $ac_status); } &&
28120 { ac_try='test -z "$ac_c_werror_flag"
28121 || test ! -s conftest.err'
28122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28123 (eval $ac_try) 2>&5
28124 ac_status=$?
28125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); }; } &&
28127 { ac_try='test -s conftest$ac_exeext'
28128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28129 (eval $ac_try) 2>&5
28130 ac_status=$?
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); }; }; then
d213114b 28133 ac_cv_lib_m_sinl=yes
28134else
28135 echo "$as_me: failed program was:" >&5
28136sed 's/^/| /' conftest.$ac_ext >&5
28137
82eaf560 28138ac_cv_lib_m_sinl=no
d213114b 28139fi
82eaf560 28140rm -f conftest.err conftest.$ac_objext \
d213114b 28141 conftest$ac_exeext conftest.$ac_ext
28142LIBS=$ac_check_lib_save_LIBS
28143fi
82eaf560 28144echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinl" >&5
28145echo "${ECHO_T}$ac_cv_lib_m_sinl" >&6
d213114b 28146if test $ac_cv_lib_m_sinl = yes; then
28147
28148cat >>confdefs.h <<\_ACEOF
28149#define HAVE_SINL 1
28150_ACEOF
28151
28152fi
28153
82eaf560 28154echo "$as_me:$LINENO: checking for csinf in -lm" >&5
28155echo $ECHO_N "checking for csinf in -lm... $ECHO_C" >&6
d213114b 28156if test "${ac_cv_lib_m_csinf+set}" = set; then
28157 echo $ECHO_N "(cached) $ECHO_C" >&6
28158else
28159 ac_check_lib_save_LIBS=$LIBS
28160LIBS="-lm $LIBS"
28161if test x$gcc_no_link = xyes; then
28162 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28163echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28164 { (exit 1); exit 1; }; }
28165fi
28166cat >conftest.$ac_ext <<_ACEOF
28167/* confdefs.h. */
28168_ACEOF
28169cat confdefs.h >>conftest.$ac_ext
28170cat >>conftest.$ac_ext <<_ACEOF
28171/* end confdefs.h. */
28172
82eaf560 28173/* Override any gcc2 internal prototype to avoid an error. */
d213114b 28174#ifdef __cplusplus
28175extern "C"
28176#endif
82eaf560 28177/* We use char because int might match the return type of a gcc2
28178 builtin and then its argument prototype would still apply. */
d213114b 28179char csinf ();
28180int
28181main ()
28182{
82eaf560 28183csinf ();
d213114b 28184 ;
28185 return 0;
28186}
28187_ACEOF
28188rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 28189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28190 (eval $ac_link) 2>conftest.er1
d213114b 28191 ac_status=$?
28192 grep -v '^ *+' conftest.er1 >conftest.err
28193 rm -f conftest.er1
28194 cat conftest.err >&5
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 28196 (exit $ac_status); } &&
28197 { ac_try='test -z "$ac_c_werror_flag"
28198 || test ! -s conftest.err'
28199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28200 (eval $ac_try) 2>&5
28201 ac_status=$?
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); }; } &&
28204 { ac_try='test -s conftest$ac_exeext'
28205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28206 (eval $ac_try) 2>&5
28207 ac_status=$?
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; }; then
d213114b 28210 ac_cv_lib_m_csinf=yes
28211else
28212 echo "$as_me: failed program was:" >&5
28213sed 's/^/| /' conftest.$ac_ext >&5
28214
82eaf560 28215ac_cv_lib_m_csinf=no
d213114b 28216fi
82eaf560 28217rm -f conftest.err conftest.$ac_objext \
d213114b 28218 conftest$ac_exeext conftest.$ac_ext
28219LIBS=$ac_check_lib_save_LIBS
28220fi
82eaf560 28221echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinf" >&5
28222echo "${ECHO_T}$ac_cv_lib_m_csinf" >&6
d213114b 28223if test $ac_cv_lib_m_csinf = yes; then
28224
28225cat >>confdefs.h <<\_ACEOF
28226#define HAVE_CSINF 1
28227_ACEOF
28228
28229fi
28230
82eaf560 28231echo "$as_me:$LINENO: checking for csin in -lm" >&5
28232echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
d213114b 28233if test "${ac_cv_lib_m_csin+set}" = set; then
28234 echo $ECHO_N "(cached) $ECHO_C" >&6
28235else
28236 ac_check_lib_save_LIBS=$LIBS
28237LIBS="-lm $LIBS"
28238if test x$gcc_no_link = xyes; then
28239 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28240echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28241 { (exit 1); exit 1; }; }
28242fi
28243cat >conftest.$ac_ext <<_ACEOF
28244/* confdefs.h. */
28245_ACEOF
28246cat confdefs.h >>conftest.$ac_ext
28247cat >>conftest.$ac_ext <<_ACEOF
28248/* end confdefs.h. */
28249
82eaf560 28250/* Override any gcc2 internal prototype to avoid an error. */
d213114b 28251#ifdef __cplusplus
28252extern "C"
28253#endif
82eaf560 28254/* We use char because int might match the return type of a gcc2
28255 builtin and then its argument prototype would still apply. */
d213114b 28256char csin ();
28257int
28258main ()
28259{
82eaf560 28260csin ();
d213114b 28261 ;
28262 return 0;
28263}
28264_ACEOF
28265rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 28266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28267 (eval $ac_link) 2>conftest.er1
d213114b 28268 ac_status=$?
28269 grep -v '^ *+' conftest.er1 >conftest.err
28270 rm -f conftest.er1
28271 cat conftest.err >&5
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 28273 (exit $ac_status); } &&
28274 { ac_try='test -z "$ac_c_werror_flag"
28275 || test ! -s conftest.err'
28276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28277 (eval $ac_try) 2>&5
28278 ac_status=$?
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); }; } &&
28281 { ac_try='test -s conftest$ac_exeext'
28282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28283 (eval $ac_try) 2>&5
28284 ac_status=$?
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); }; }; then
d213114b 28287 ac_cv_lib_m_csin=yes
28288else
28289 echo "$as_me: failed program was:" >&5
28290sed 's/^/| /' conftest.$ac_ext >&5
28291
82eaf560 28292ac_cv_lib_m_csin=no
d213114b 28293fi
82eaf560 28294rm -f conftest.err conftest.$ac_objext \
d213114b 28295 conftest$ac_exeext conftest.$ac_ext
28296LIBS=$ac_check_lib_save_LIBS
28297fi
82eaf560 28298echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
28299echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
d213114b 28300if test $ac_cv_lib_m_csin = yes; then
28301
28302cat >>confdefs.h <<\_ACEOF
28303#define HAVE_CSIN 1
28304_ACEOF
28305
28306fi
28307
82eaf560 28308echo "$as_me:$LINENO: checking for csinl in -lm" >&5
28309echo $ECHO_N "checking for csinl in -lm... $ECHO_C" >&6
d213114b 28310if test "${ac_cv_lib_m_csinl+set}" = set; then
28311 echo $ECHO_N "(cached) $ECHO_C" >&6
28312else
28313 ac_check_lib_save_LIBS=$LIBS
28314LIBS="-lm $LIBS"
28315if test x$gcc_no_link = xyes; then
28316 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28317echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28318 { (exit 1); exit 1; }; }
28319fi
28320cat >conftest.$ac_ext <<_ACEOF
28321/* confdefs.h. */
28322_ACEOF
28323cat confdefs.h >>conftest.$ac_ext
28324cat >>conftest.$ac_ext <<_ACEOF
28325/* end confdefs.h. */
28326
82eaf560 28327/* Override any gcc2 internal prototype to avoid an error. */
d213114b 28328#ifdef __cplusplus
28329extern "C"
28330#endif
82eaf560 28331/* We use char because int might match the return type of a gcc2
28332 builtin and then its argument prototype would still apply. */
d213114b 28333char csinl ();
28334int
28335main ()
28336{
82eaf560 28337csinl ();
d213114b 28338 ;
28339 return 0;
28340}
28341_ACEOF
28342rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 28343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28344 (eval $ac_link) 2>conftest.er1
d213114b 28345 ac_status=$?
28346 grep -v '^ *+' conftest.er1 >conftest.err
28347 rm -f conftest.er1
28348 cat conftest.err >&5
28349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 28350 (exit $ac_status); } &&
28351 { ac_try='test -z "$ac_c_werror_flag"
28352 || test ! -s conftest.err'
28353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28354 (eval $ac_try) 2>&5
28355 ac_status=$?
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); }; } &&
28358 { ac_try='test -s conftest$ac_exeext'
28359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28360 (eval $ac_try) 2>&5
28361 ac_status=$?
28362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363 (exit $ac_status); }; }; then
d213114b 28364 ac_cv_lib_m_csinl=yes
28365else
28366 echo "$as_me: failed program was:" >&5
28367sed 's/^/| /' conftest.$ac_ext >&5
28368
82eaf560 28369ac_cv_lib_m_csinl=no
d213114b 28370fi
82eaf560 28371rm -f conftest.err conftest.$ac_objext \
d213114b 28372 conftest$ac_exeext conftest.$ac_ext
28373LIBS=$ac_check_lib_save_LIBS
28374fi
82eaf560 28375echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinl" >&5
28376echo "${ECHO_T}$ac_cv_lib_m_csinl" >&6
d213114b 28377if test $ac_cv_lib_m_csinl = yes; then
28378
28379cat >>confdefs.h <<\_ACEOF
28380#define HAVE_CSINL 1
28381_ACEOF
28382
28383fi
28384
82eaf560 28385echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
28386echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
d213114b 28387if test "${ac_cv_lib_m_sinhf+set}" = set; then
28388 echo $ECHO_N "(cached) $ECHO_C" >&6
28389else
28390 ac_check_lib_save_LIBS=$LIBS
28391LIBS="-lm $LIBS"
28392if test x$gcc_no_link = xyes; then
28393 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28394echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28395 { (exit 1); exit 1; }; }
28396fi
28397cat >conftest.$ac_ext <<_ACEOF
28398/* confdefs.h. */
28399_ACEOF
28400cat confdefs.h >>conftest.$ac_ext
28401cat >>conftest.$ac_ext <<_ACEOF
28402/* end confdefs.h. */
28403
82eaf560 28404/* Override any gcc2 internal prototype to avoid an error. */
d213114b 28405#ifdef __cplusplus
28406extern "C"
28407#endif
82eaf560 28408/* We use char because int might match the return type of a gcc2
28409 builtin and then its argument prototype would still apply. */
d213114b 28410char sinhf ();
28411int
28412main ()
28413{
82eaf560 28414sinhf ();
d213114b 28415 ;
28416 return 0;
28417}
28418_ACEOF
28419rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 28420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28421 (eval $ac_link) 2>conftest.er1
d213114b 28422 ac_status=$?
28423 grep -v '^ *+' conftest.er1 >conftest.err
28424 rm -f conftest.er1
28425 cat conftest.err >&5
28426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 28427 (exit $ac_status); } &&
28428 { ac_try='test -z "$ac_c_werror_flag"
28429 || test ! -s conftest.err'
28430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28431 (eval $ac_try) 2>&5
28432 ac_status=$?
28433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434 (exit $ac_status); }; } &&
28435 { ac_try='test -s conftest$ac_exeext'
28436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28437 (eval $ac_try) 2>&5
28438 ac_status=$?
28439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440 (exit $ac_status); }; }; then
d213114b 28441 ac_cv_lib_m_sinhf=yes
28442else
28443 echo "$as_me: failed program was:" >&5
28444sed 's/^/| /' conftest.$ac_ext >&5
28445
82eaf560 28446ac_cv_lib_m_sinhf=no
d213114b 28447fi
82eaf560 28448rm -f conftest.err conftest.$ac_objext \
d213114b 28449 conftest$ac_exeext conftest.$ac_ext
28450LIBS=$ac_check_lib_save_LIBS
28451fi
82eaf560 28452echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
28453echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
d213114b 28454if test $ac_cv_lib_m_sinhf = yes; then
28455
28456cat >>confdefs.h <<\_ACEOF
28457#define HAVE_SINHF 1
28458_ACEOF
28459
28460fi
28461
82eaf560 28462echo "$as_me:$LINENO: checking for sinh in -lm" >&5
28463echo $ECHO_N "checking for sinh in -lm... $ECHO_C" >&6
d213114b 28464if test "${ac_cv_lib_m_sinh+set}" = set; then
28465 echo $ECHO_N "(cached) $ECHO_C" >&6
28466else
28467 ac_check_lib_save_LIBS=$LIBS
28468LIBS="-lm $LIBS"
28469if test x$gcc_no_link = xyes; then
28470 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28471echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28472 { (exit 1); exit 1; }; }
28473fi
28474cat >conftest.$ac_ext <<_ACEOF
28475/* confdefs.h. */
28476_ACEOF
28477cat confdefs.h >>conftest.$ac_ext
28478cat >>conftest.$ac_ext <<_ACEOF
28479/* end confdefs.h. */
28480
82eaf560 28481/* Override any gcc2 internal prototype to avoid an error. */
d213114b 28482#ifdef __cplusplus
28483extern "C"
28484#endif
82eaf560 28485/* We use char because int might match the return type of a gcc2
28486 builtin and then its argument prototype would still apply. */
d213114b 28487char sinh ();
28488int
28489main ()
28490{
82eaf560 28491sinh ();
d213114b 28492 ;
28493 return 0;
28494}
28495_ACEOF
28496rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 28497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28498 (eval $ac_link) 2>conftest.er1
d213114b 28499 ac_status=$?
28500 grep -v '^ *+' conftest.er1 >conftest.err
28501 rm -f conftest.er1
28502 cat conftest.err >&5
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 28504 (exit $ac_status); } &&
28505 { ac_try='test -z "$ac_c_werror_flag"
28506 || test ! -s conftest.err'
28507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28508 (eval $ac_try) 2>&5
28509 ac_status=$?
28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 (exit $ac_status); }; } &&
28512 { ac_try='test -s conftest$ac_exeext'
28513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514 (eval $ac_try) 2>&5
28515 ac_status=$?
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); }; }; then
d213114b 28518 ac_cv_lib_m_sinh=yes
28519else
28520 echo "$as_me: failed program was:" >&5
28521sed 's/^/| /' conftest.$ac_ext >&5
28522
82eaf560 28523ac_cv_lib_m_sinh=no
d213114b 28524fi
82eaf560 28525rm -f conftest.err conftest.$ac_objext \
d213114b 28526 conftest$ac_exeext conftest.$ac_ext
28527LIBS=$ac_check_lib_save_LIBS
28528fi
82eaf560 28529echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinh" >&5
28530echo "${ECHO_T}$ac_cv_lib_m_sinh" >&6
d213114b 28531if test $ac_cv_lib_m_sinh = yes; then
28532
28533cat >>confdefs.h <<\_ACEOF
28534#define HAVE_SINH 1
28535_ACEOF
28536
28537fi
28538
82eaf560 28539echo "$as_me:$LINENO: checking for sinhl in -lm" >&5
28540echo $ECHO_N "checking for sinhl in -lm... $ECHO_C" >&6
d213114b 28541if test "${ac_cv_lib_m_sinhl+set}" = set; then
28542 echo $ECHO_N "(cached) $ECHO_C" >&6
28543else
28544 ac_check_lib_save_LIBS=$LIBS
28545LIBS="-lm $LIBS"
28546if test x$gcc_no_link = xyes; then
28547 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28548echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28549 { (exit 1); exit 1; }; }
28550fi
28551cat >conftest.$ac_ext <<_ACEOF
28552/* confdefs.h. */
28553_ACEOF
28554cat confdefs.h >>conftest.$ac_ext
28555cat >>conftest.$ac_ext <<_ACEOF
28556/* end confdefs.h. */
28557
82eaf560 28558/* Override any gcc2 internal prototype to avoid an error. */
d213114b 28559#ifdef __cplusplus
28560extern "C"
28561#endif
82eaf560 28562/* We use char because int might match the return type of a gcc2
28563 builtin and then its argument prototype would still apply. */
d213114b 28564char sinhl ();
28565int
28566main ()
28567{
82eaf560 28568sinhl ();
d213114b 28569 ;
28570 return 0;
28571}
28572_ACEOF
28573rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 28574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28575 (eval $ac_link) 2>conftest.er1
d213114b 28576 ac_status=$?
28577 grep -v '^ *+' conftest.er1 >conftest.err
28578 rm -f conftest.er1
28579 cat conftest.err >&5
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 28581 (exit $ac_status); } &&
28582 { ac_try='test -z "$ac_c_werror_flag"
28583 || test ! -s conftest.err'
28584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28585 (eval $ac_try) 2>&5
28586 ac_status=$?
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); }; } &&
28589 { ac_try='test -s conftest$ac_exeext'
28590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28591 (eval $ac_try) 2>&5
28592 ac_status=$?
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); }; }; then
d213114b 28595 ac_cv_lib_m_sinhl=yes
28596else
28597 echo "$as_me: failed program was:" >&5
28598sed 's/^/| /' conftest.$ac_ext >&5
28599
82eaf560 28600ac_cv_lib_m_sinhl=no
d213114b 28601fi
82eaf560 28602rm -f conftest.err conftest.$ac_objext \
d213114b 28603 conftest$ac_exeext conftest.$ac_ext
28604LIBS=$ac_check_lib_save_LIBS
28605fi
82eaf560 28606echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhl" >&5
28607echo "${ECHO_T}$ac_cv_lib_m_sinhl" >&6
d213114b 28608if test $ac_cv_lib_m_sinhl = yes; then
28609
28610cat >>confdefs.h <<\_ACEOF
28611#define HAVE_SINHL 1
28612_ACEOF
28613
28614fi
28615
82eaf560 28616echo "$as_me:$LINENO: checking for csinhf in -lm" >&5
28617echo $ECHO_N "checking for csinhf in -lm... $ECHO_C" >&6
d213114b 28618if test "${ac_cv_lib_m_csinhf+set}" = set; then
28619 echo $ECHO_N "(cached) $ECHO_C" >&6
28620else
28621 ac_check_lib_save_LIBS=$LIBS
28622LIBS="-lm $LIBS"
28623if test x$gcc_no_link = xyes; then
28624 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28625echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28626 { (exit 1); exit 1; }; }
28627fi
28628cat >conftest.$ac_ext <<_ACEOF
28629/* confdefs.h. */
28630_ACEOF
28631cat confdefs.h >>conftest.$ac_ext
28632cat >>conftest.$ac_ext <<_ACEOF
28633/* end confdefs.h. */
28634
82eaf560 28635/* Override any gcc2 internal prototype to avoid an error. */
d213114b 28636#ifdef __cplusplus
28637extern "C"
28638#endif
82eaf560 28639/* We use char because int might match the return type of a gcc2
28640 builtin and then its argument prototype would still apply. */
d213114b 28641char csinhf ();
28642int
28643main ()
28644{
82eaf560 28645csinhf ();
d213114b 28646 ;
28647 return 0;
28648}
28649_ACEOF
28650rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 28651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28652 (eval $ac_link) 2>conftest.er1
d213114b 28653 ac_status=$?
28654 grep -v '^ *+' conftest.er1 >conftest.err
28655 rm -f conftest.er1
28656 cat conftest.err >&5
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 28658 (exit $ac_status); } &&
28659 { ac_try='test -z "$ac_c_werror_flag"
28660 || test ! -s conftest.err'
28661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28662 (eval $ac_try) 2>&5
28663 ac_status=$?
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); }; } &&
28666 { ac_try='test -s conftest$ac_exeext'
28667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28668 (eval $ac_try) 2>&5
28669 ac_status=$?
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); }; }; then
d213114b 28672 ac_cv_lib_m_csinhf=yes
28673else
28674 echo "$as_me: failed program was:" >&5
28675sed 's/^/| /' conftest.$ac_ext >&5
28676
82eaf560 28677ac_cv_lib_m_csinhf=no
d213114b 28678fi
82eaf560 28679rm -f conftest.err conftest.$ac_objext \
d213114b 28680 conftest$ac_exeext conftest.$ac_ext
28681LIBS=$ac_check_lib_save_LIBS
28682fi
82eaf560 28683echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinhf" >&5
28684echo "${ECHO_T}$ac_cv_lib_m_csinhf" >&6
d213114b 28685if test $ac_cv_lib_m_csinhf = yes; then
28686
28687cat >>confdefs.h <<\_ACEOF
28688#define HAVE_CSINHF 1
28689_ACEOF
28690
28691fi
28692
82eaf560 28693echo "$as_me:$LINENO: checking for csinh in -lm" >&5
28694echo $ECHO_N "checking for csinh in -lm... $ECHO_C" >&6
d213114b 28695if test "${ac_cv_lib_m_csinh+set}" = set; then
28696 echo $ECHO_N "(cached) $ECHO_C" >&6
28697else
28698 ac_check_lib_save_LIBS=$LIBS
28699LIBS="-lm $LIBS"
28700if test x$gcc_no_link = xyes; then
28701 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28702echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28703 { (exit 1); exit 1; }; }
28704fi
28705cat >conftest.$ac_ext <<_ACEOF
28706/* confdefs.h. */
28707_ACEOF
28708cat confdefs.h >>conftest.$ac_ext
28709cat >>conftest.$ac_ext <<_ACEOF
28710/* end confdefs.h. */
28711
82eaf560 28712/* Override any gcc2 internal prototype to avoid an error. */
d213114b 28713#ifdef __cplusplus
28714extern "C"
28715#endif
82eaf560 28716/* We use char because int might match the return type of a gcc2
28717 builtin and then its argument prototype would still apply. */
d213114b 28718char csinh ();
28719int
28720main ()
28721{
82eaf560 28722csinh ();
d213114b 28723 ;
28724 return 0;
28725}
28726_ACEOF
28727rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 28728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28729 (eval $ac_link) 2>conftest.er1
d213114b 28730 ac_status=$?
28731 grep -v '^ *+' conftest.er1 >conftest.err
28732 rm -f conftest.er1
28733 cat conftest.err >&5
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 28735 (exit $ac_status); } &&
28736 { ac_try='test -z "$ac_c_werror_flag"
28737 || test ! -s conftest.err'
28738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28739 (eval $ac_try) 2>&5
28740 ac_status=$?
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); }; } &&
28743 { ac_try='test -s conftest$ac_exeext'
28744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28745 (eval $ac_try) 2>&5
28746 ac_status=$?
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); }; }; then
d213114b 28749 ac_cv_lib_m_csinh=yes
28750else
28751 echo "$as_me: failed program was:" >&5
28752sed 's/^/| /' conftest.$ac_ext >&5
28753
82eaf560 28754ac_cv_lib_m_csinh=no
d213114b 28755fi
82eaf560 28756rm -f conftest.err conftest.$ac_objext \
d213114b 28757 conftest$ac_exeext conftest.$ac_ext
28758LIBS=$ac_check_lib_save_LIBS
28759fi
82eaf560 28760echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinh" >&5
28761echo "${ECHO_T}$ac_cv_lib_m_csinh" >&6
d213114b 28762if test $ac_cv_lib_m_csinh = yes; then
28763
28764cat >>confdefs.h <<\_ACEOF
28765#define HAVE_CSINH 1
28766_ACEOF
28767
28768fi
28769
82eaf560 28770echo "$as_me:$LINENO: checking for csinhl in -lm" >&5
28771echo $ECHO_N "checking for csinhl in -lm... $ECHO_C" >&6
d213114b 28772if test "${ac_cv_lib_m_csinhl+set}" = set; then
28773 echo $ECHO_N "(cached) $ECHO_C" >&6
28774else
28775 ac_check_lib_save_LIBS=$LIBS
28776LIBS="-lm $LIBS"
28777if test x$gcc_no_link = xyes; then
28778 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28779echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28780 { (exit 1); exit 1; }; }
28781fi
28782cat >conftest.$ac_ext <<_ACEOF
28783/* confdefs.h. */
28784_ACEOF
28785cat confdefs.h >>conftest.$ac_ext
28786cat >>conftest.$ac_ext <<_ACEOF
28787/* end confdefs.h. */
28788
82eaf560 28789/* Override any gcc2 internal prototype to avoid an error. */
d213114b 28790#ifdef __cplusplus
28791extern "C"
28792#endif
82eaf560 28793/* We use char because int might match the return type of a gcc2
28794 builtin and then its argument prototype would still apply. */
d213114b 28795char csinhl ();
28796int
28797main ()
28798{
82eaf560 28799csinhl ();
d213114b 28800 ;
28801 return 0;
28802}
28803_ACEOF
28804rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 28805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28806 (eval $ac_link) 2>conftest.er1
d213114b 28807 ac_status=$?
28808 grep -v '^ *+' conftest.er1 >conftest.err
28809 rm -f conftest.er1
28810 cat conftest.err >&5
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 28812 (exit $ac_status); } &&
28813 { ac_try='test -z "$ac_c_werror_flag"
28814 || test ! -s conftest.err'
28815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28816 (eval $ac_try) 2>&5
28817 ac_status=$?
28818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819 (exit $ac_status); }; } &&
28820 { ac_try='test -s conftest$ac_exeext'
28821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28822 (eval $ac_try) 2>&5
28823 ac_status=$?
28824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825 (exit $ac_status); }; }; then
d213114b 28826 ac_cv_lib_m_csinhl=yes
28827else
28828 echo "$as_me: failed program was:" >&5
28829sed 's/^/| /' conftest.$ac_ext >&5
28830
82eaf560 28831ac_cv_lib_m_csinhl=no
d213114b 28832fi
82eaf560 28833rm -f conftest.err conftest.$ac_objext \
d213114b 28834 conftest$ac_exeext conftest.$ac_ext
28835LIBS=$ac_check_lib_save_LIBS
28836fi
82eaf560 28837echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinhl" >&5
28838echo "${ECHO_T}$ac_cv_lib_m_csinhl" >&6
d213114b 28839if test $ac_cv_lib_m_csinhl = yes; then
28840
28841cat >>confdefs.h <<\_ACEOF
28842#define HAVE_CSINHL 1
28843_ACEOF
28844
28845fi
28846
82eaf560 28847echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
28848echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
d213114b 28849if test "${ac_cv_lib_m_sqrtf+set}" = set; then
28850 echo $ECHO_N "(cached) $ECHO_C" >&6
28851else
28852 ac_check_lib_save_LIBS=$LIBS
28853LIBS="-lm $LIBS"
28854if test x$gcc_no_link = xyes; then
28855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28856echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28857 { (exit 1); exit 1; }; }
28858fi
28859cat >conftest.$ac_ext <<_ACEOF
28860/* confdefs.h. */
28861_ACEOF
28862cat confdefs.h >>conftest.$ac_ext
28863cat >>conftest.$ac_ext <<_ACEOF
28864/* end confdefs.h. */
28865
82eaf560 28866/* Override any gcc2 internal prototype to avoid an error. */
d213114b 28867#ifdef __cplusplus
28868extern "C"
28869#endif
82eaf560 28870/* We use char because int might match the return type of a gcc2
28871 builtin and then its argument prototype would still apply. */
d213114b 28872char sqrtf ();
28873int
28874main ()
28875{
82eaf560 28876sqrtf ();
d213114b 28877 ;
28878 return 0;
28879}
28880_ACEOF
28881rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 28882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28883 (eval $ac_link) 2>conftest.er1
d213114b 28884 ac_status=$?
28885 grep -v '^ *+' conftest.er1 >conftest.err
28886 rm -f conftest.er1
ff4425cf 28887 cat conftest.err >&5
d213114b 28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 28889 (exit $ac_status); } &&
28890 { ac_try='test -z "$ac_c_werror_flag"
28891 || test ! -s conftest.err'
28892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28893 (eval $ac_try) 2>&5
28894 ac_status=$?
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); }; } &&
28897 { ac_try='test -s conftest$ac_exeext'
28898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899 (eval $ac_try) 2>&5
28900 ac_status=$?
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; }; then
d213114b 28903 ac_cv_lib_m_sqrtf=yes
28904else
28905 echo "$as_me: failed program was:" >&5
28906sed 's/^/| /' conftest.$ac_ext >&5
28907
82eaf560 28908ac_cv_lib_m_sqrtf=no
d213114b 28909fi
82eaf560 28910rm -f conftest.err conftest.$ac_objext \
d213114b 28911 conftest$ac_exeext conftest.$ac_ext
28912LIBS=$ac_check_lib_save_LIBS
28913fi
82eaf560 28914echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
28915echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
d213114b 28916if test $ac_cv_lib_m_sqrtf = yes; then
28917
28918cat >>confdefs.h <<\_ACEOF
28919#define HAVE_SQRTF 1
28920_ACEOF
28921
28922fi
28923
82eaf560 28924echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
28925echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
d213114b 28926if test "${ac_cv_lib_m_sqrt+set}" = set; then
28927 echo $ECHO_N "(cached) $ECHO_C" >&6
28928else
28929 ac_check_lib_save_LIBS=$LIBS
28930LIBS="-lm $LIBS"
28931if test x$gcc_no_link = xyes; then
28932 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28933echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28934 { (exit 1); exit 1; }; }
28935fi
28936cat >conftest.$ac_ext <<_ACEOF
28937/* confdefs.h. */
28938_ACEOF
28939cat confdefs.h >>conftest.$ac_ext
28940cat >>conftest.$ac_ext <<_ACEOF
28941/* end confdefs.h. */
28942
82eaf560 28943/* Override any gcc2 internal prototype to avoid an error. */
d213114b 28944#ifdef __cplusplus
28945extern "C"
28946#endif
82eaf560 28947/* We use char because int might match the return type of a gcc2
28948 builtin and then its argument prototype would still apply. */
d213114b 28949char sqrt ();
28950int
28951main ()
28952{
82eaf560 28953sqrt ();
d213114b 28954 ;
28955 return 0;
28956}
28957_ACEOF
28958rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 28959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28960 (eval $ac_link) 2>conftest.er1
d213114b 28961 ac_status=$?
28962 grep -v '^ *+' conftest.er1 >conftest.err
28963 rm -f conftest.er1
28964 cat conftest.err >&5
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 28966 (exit $ac_status); } &&
28967 { ac_try='test -z "$ac_c_werror_flag"
28968 || test ! -s conftest.err'
28969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28970 (eval $ac_try) 2>&5
28971 ac_status=$?
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); }; } &&
28974 { ac_try='test -s conftest$ac_exeext'
28975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28976 (eval $ac_try) 2>&5
28977 ac_status=$?
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); }; }; then
d213114b 28980 ac_cv_lib_m_sqrt=yes
28981else
28982 echo "$as_me: failed program was:" >&5
28983sed 's/^/| /' conftest.$ac_ext >&5
28984
82eaf560 28985ac_cv_lib_m_sqrt=no
d213114b 28986fi
82eaf560 28987rm -f conftest.err conftest.$ac_objext \
d213114b 28988 conftest$ac_exeext conftest.$ac_ext
28989LIBS=$ac_check_lib_save_LIBS
28990fi
82eaf560 28991echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
28992echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
d213114b 28993if test $ac_cv_lib_m_sqrt = yes; then
28994
28995cat >>confdefs.h <<\_ACEOF
28996#define HAVE_SQRT 1
28997_ACEOF
28998
28999fi
29000
82eaf560 29001echo "$as_me:$LINENO: checking for sqrtl in -lm" >&5
29002echo $ECHO_N "checking for sqrtl in -lm... $ECHO_C" >&6
d213114b 29003if test "${ac_cv_lib_m_sqrtl+set}" = set; then
29004 echo $ECHO_N "(cached) $ECHO_C" >&6
29005else
29006 ac_check_lib_save_LIBS=$LIBS
29007LIBS="-lm $LIBS"
29008if test x$gcc_no_link = xyes; then
29009 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29010echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29011 { (exit 1); exit 1; }; }
29012fi
29013cat >conftest.$ac_ext <<_ACEOF
29014/* confdefs.h. */
29015_ACEOF
29016cat confdefs.h >>conftest.$ac_ext
29017cat >>conftest.$ac_ext <<_ACEOF
29018/* end confdefs.h. */
29019
82eaf560 29020/* Override any gcc2 internal prototype to avoid an error. */
d213114b 29021#ifdef __cplusplus
29022extern "C"
29023#endif
82eaf560 29024/* We use char because int might match the return type of a gcc2
29025 builtin and then its argument prototype would still apply. */
d213114b 29026char sqrtl ();
29027int
29028main ()
29029{
82eaf560 29030sqrtl ();
d213114b 29031 ;
29032 return 0;
29033}
29034_ACEOF
29035rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 29036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29037 (eval $ac_link) 2>conftest.er1
d213114b 29038 ac_status=$?
29039 grep -v '^ *+' conftest.er1 >conftest.err
29040 rm -f conftest.er1
29041 cat conftest.err >&5
29042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 29043 (exit $ac_status); } &&
29044 { ac_try='test -z "$ac_c_werror_flag"
29045 || test ! -s conftest.err'
29046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29047 (eval $ac_try) 2>&5
29048 ac_status=$?
29049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050 (exit $ac_status); }; } &&
29051 { ac_try='test -s conftest$ac_exeext'
29052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29053 (eval $ac_try) 2>&5
29054 ac_status=$?
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); }; }; then
d213114b 29057 ac_cv_lib_m_sqrtl=yes
29058else
29059 echo "$as_me: failed program was:" >&5
29060sed 's/^/| /' conftest.$ac_ext >&5
29061
82eaf560 29062ac_cv_lib_m_sqrtl=no
d213114b 29063fi
82eaf560 29064rm -f conftest.err conftest.$ac_objext \
d213114b 29065 conftest$ac_exeext conftest.$ac_ext
29066LIBS=$ac_check_lib_save_LIBS
29067fi
82eaf560 29068echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtl" >&5
29069echo "${ECHO_T}$ac_cv_lib_m_sqrtl" >&6
d213114b 29070if test $ac_cv_lib_m_sqrtl = yes; then
29071
29072cat >>confdefs.h <<\_ACEOF
29073#define HAVE_SQRTL 1
29074_ACEOF
29075
29076fi
29077
82eaf560 29078echo "$as_me:$LINENO: checking for csqrtf in -lm" >&5
29079echo $ECHO_N "checking for csqrtf in -lm... $ECHO_C" >&6
d213114b 29080if test "${ac_cv_lib_m_csqrtf+set}" = set; then
29081 echo $ECHO_N "(cached) $ECHO_C" >&6
29082else
29083 ac_check_lib_save_LIBS=$LIBS
29084LIBS="-lm $LIBS"
29085if test x$gcc_no_link = xyes; then
29086 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29087echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29088 { (exit 1); exit 1; }; }
29089fi
29090cat >conftest.$ac_ext <<_ACEOF
29091/* confdefs.h. */
29092_ACEOF
29093cat confdefs.h >>conftest.$ac_ext
29094cat >>conftest.$ac_ext <<_ACEOF
29095/* end confdefs.h. */
29096
82eaf560 29097/* Override any gcc2 internal prototype to avoid an error. */
d213114b 29098#ifdef __cplusplus
29099extern "C"
29100#endif
82eaf560 29101/* We use char because int might match the return type of a gcc2
29102 builtin and then its argument prototype would still apply. */
d213114b 29103char csqrtf ();
29104int
29105main ()
29106{
82eaf560 29107csqrtf ();
d213114b 29108 ;
29109 return 0;
29110}
29111_ACEOF
29112rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 29113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29114 (eval $ac_link) 2>conftest.er1
d213114b 29115 ac_status=$?
29116 grep -v '^ *+' conftest.er1 >conftest.err
29117 rm -f conftest.er1
29118 cat conftest.err >&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 29120 (exit $ac_status); } &&
29121 { ac_try='test -z "$ac_c_werror_flag"
29122 || test ! -s conftest.err'
29123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29124 (eval $ac_try) 2>&5
29125 ac_status=$?
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); }; } &&
29128 { ac_try='test -s conftest$ac_exeext'
29129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29130 (eval $ac_try) 2>&5
29131 ac_status=$?
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); }; }; then
d213114b 29134 ac_cv_lib_m_csqrtf=yes
29135else
29136 echo "$as_me: failed program was:" >&5
29137sed 's/^/| /' conftest.$ac_ext >&5
29138
82eaf560 29139ac_cv_lib_m_csqrtf=no
d213114b 29140fi
82eaf560 29141rm -f conftest.err conftest.$ac_objext \
d213114b 29142 conftest$ac_exeext conftest.$ac_ext
29143LIBS=$ac_check_lib_save_LIBS
29144fi
82eaf560 29145echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrtf" >&5
29146echo "${ECHO_T}$ac_cv_lib_m_csqrtf" >&6
d213114b 29147if test $ac_cv_lib_m_csqrtf = yes; then
29148
29149cat >>confdefs.h <<\_ACEOF
29150#define HAVE_CSQRTF 1
29151_ACEOF
29152
29153fi
29154
82eaf560 29155echo "$as_me:$LINENO: checking for csqrt in -lm" >&5
29156echo $ECHO_N "checking for csqrt in -lm... $ECHO_C" >&6
d213114b 29157if test "${ac_cv_lib_m_csqrt+set}" = set; then
29158 echo $ECHO_N "(cached) $ECHO_C" >&6
29159else
29160 ac_check_lib_save_LIBS=$LIBS
29161LIBS="-lm $LIBS"
29162if test x$gcc_no_link = xyes; then
29163 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29164echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29165 { (exit 1); exit 1; }; }
29166fi
29167cat >conftest.$ac_ext <<_ACEOF
29168/* confdefs.h. */
29169_ACEOF
29170cat confdefs.h >>conftest.$ac_ext
29171cat >>conftest.$ac_ext <<_ACEOF
29172/* end confdefs.h. */
29173
82eaf560 29174/* Override any gcc2 internal prototype to avoid an error. */
d213114b 29175#ifdef __cplusplus
29176extern "C"
29177#endif
82eaf560 29178/* We use char because int might match the return type of a gcc2
29179 builtin and then its argument prototype would still apply. */
d213114b 29180char csqrt ();
29181int
29182main ()
29183{
82eaf560 29184csqrt ();
d213114b 29185 ;
29186 return 0;
29187}
29188_ACEOF
29189rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 29190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29191 (eval $ac_link) 2>conftest.er1
d213114b 29192 ac_status=$?
29193 grep -v '^ *+' conftest.er1 >conftest.err
29194 rm -f conftest.er1
29195 cat conftest.err >&5
29196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 29197 (exit $ac_status); } &&
29198 { ac_try='test -z "$ac_c_werror_flag"
29199 || test ! -s conftest.err'
29200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201 (eval $ac_try) 2>&5
29202 ac_status=$?
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; } &&
29205 { ac_try='test -s conftest$ac_exeext'
29206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29207 (eval $ac_try) 2>&5
29208 ac_status=$?
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); }; }; then
d213114b 29211 ac_cv_lib_m_csqrt=yes
29212else
29213 echo "$as_me: failed program was:" >&5
29214sed 's/^/| /' conftest.$ac_ext >&5
29215
82eaf560 29216ac_cv_lib_m_csqrt=no
d213114b 29217fi
82eaf560 29218rm -f conftest.err conftest.$ac_objext \
d213114b 29219 conftest$ac_exeext conftest.$ac_ext
29220LIBS=$ac_check_lib_save_LIBS
29221fi
82eaf560 29222echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrt" >&5
29223echo "${ECHO_T}$ac_cv_lib_m_csqrt" >&6
d213114b 29224if test $ac_cv_lib_m_csqrt = yes; then
29225
29226cat >>confdefs.h <<\_ACEOF
29227#define HAVE_CSQRT 1
29228_ACEOF
29229
29230fi
29231
82eaf560 29232echo "$as_me:$LINENO: checking for csqrtl in -lm" >&5
29233echo $ECHO_N "checking for csqrtl in -lm... $ECHO_C" >&6
d213114b 29234if test "${ac_cv_lib_m_csqrtl+set}" = set; then
29235 echo $ECHO_N "(cached) $ECHO_C" >&6
29236else
29237 ac_check_lib_save_LIBS=$LIBS
29238LIBS="-lm $LIBS"
29239if test x$gcc_no_link = xyes; then
29240 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29241echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29242 { (exit 1); exit 1; }; }
29243fi
29244cat >conftest.$ac_ext <<_ACEOF
29245/* confdefs.h. */
29246_ACEOF
29247cat confdefs.h >>conftest.$ac_ext
29248cat >>conftest.$ac_ext <<_ACEOF
29249/* end confdefs.h. */
29250
82eaf560 29251/* Override any gcc2 internal prototype to avoid an error. */
d213114b 29252#ifdef __cplusplus
29253extern "C"
29254#endif
82eaf560 29255/* We use char because int might match the return type of a gcc2
29256 builtin and then its argument prototype would still apply. */
d213114b 29257char csqrtl ();
29258int
29259main ()
29260{
82eaf560 29261csqrtl ();
d213114b 29262 ;
29263 return 0;
29264}
29265_ACEOF
29266rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 29267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29268 (eval $ac_link) 2>conftest.er1
d213114b 29269 ac_status=$?
29270 grep -v '^ *+' conftest.er1 >conftest.err
29271 rm -f conftest.er1
29272 cat conftest.err >&5
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 29274 (exit $ac_status); } &&
29275 { ac_try='test -z "$ac_c_werror_flag"
29276 || test ! -s conftest.err'
29277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29278 (eval $ac_try) 2>&5
29279 ac_status=$?
29280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281 (exit $ac_status); }; } &&
29282 { ac_try='test -s conftest$ac_exeext'
29283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29284 (eval $ac_try) 2>&5
29285 ac_status=$?
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); }; }; then
d213114b 29288 ac_cv_lib_m_csqrtl=yes
29289else
29290 echo "$as_me: failed program was:" >&5
29291sed 's/^/| /' conftest.$ac_ext >&5
29292
82eaf560 29293ac_cv_lib_m_csqrtl=no
d213114b 29294fi
82eaf560 29295rm -f conftest.err conftest.$ac_objext \
d213114b 29296 conftest$ac_exeext conftest.$ac_ext
29297LIBS=$ac_check_lib_save_LIBS
29298fi
82eaf560 29299echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrtl" >&5
29300echo "${ECHO_T}$ac_cv_lib_m_csqrtl" >&6
d213114b 29301if test $ac_cv_lib_m_csqrtl = yes; then
29302
29303cat >>confdefs.h <<\_ACEOF
29304#define HAVE_CSQRTL 1
29305_ACEOF
29306
29307fi
29308
82eaf560 29309echo "$as_me:$LINENO: checking for tanf in -lm" >&5
29310echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
d213114b 29311if test "${ac_cv_lib_m_tanf+set}" = set; then
29312 echo $ECHO_N "(cached) $ECHO_C" >&6
29313else
29314 ac_check_lib_save_LIBS=$LIBS
29315LIBS="-lm $LIBS"
29316if test x$gcc_no_link = xyes; then
29317 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29318echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29319 { (exit 1); exit 1; }; }
29320fi
29321cat >conftest.$ac_ext <<_ACEOF
29322/* confdefs.h. */
29323_ACEOF
29324cat confdefs.h >>conftest.$ac_ext
29325cat >>conftest.$ac_ext <<_ACEOF
29326/* end confdefs.h. */
29327
82eaf560 29328/* Override any gcc2 internal prototype to avoid an error. */
d213114b 29329#ifdef __cplusplus
29330extern "C"
29331#endif
82eaf560 29332/* We use char because int might match the return type of a gcc2
29333 builtin and then its argument prototype would still apply. */
d213114b 29334char tanf ();
29335int
29336main ()
29337{
82eaf560 29338tanf ();
d213114b 29339 ;
29340 return 0;
29341}
29342_ACEOF
29343rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 29344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29345 (eval $ac_link) 2>conftest.er1
d213114b 29346 ac_status=$?
29347 grep -v '^ *+' conftest.er1 >conftest.err
29348 rm -f conftest.er1
29349 cat conftest.err >&5
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 29351 (exit $ac_status); } &&
29352 { ac_try='test -z "$ac_c_werror_flag"
29353 || test ! -s conftest.err'
29354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29355 (eval $ac_try) 2>&5
29356 ac_status=$?
29357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358 (exit $ac_status); }; } &&
29359 { ac_try='test -s conftest$ac_exeext'
29360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29361 (eval $ac_try) 2>&5
29362 ac_status=$?
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); }; }; then
d213114b 29365 ac_cv_lib_m_tanf=yes
29366else
29367 echo "$as_me: failed program was:" >&5
29368sed 's/^/| /' conftest.$ac_ext >&5
29369
82eaf560 29370ac_cv_lib_m_tanf=no
d213114b 29371fi
82eaf560 29372rm -f conftest.err conftest.$ac_objext \
d213114b 29373 conftest$ac_exeext conftest.$ac_ext
29374LIBS=$ac_check_lib_save_LIBS
29375fi
82eaf560 29376echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
29377echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
d213114b 29378if test $ac_cv_lib_m_tanf = yes; then
29379
29380cat >>confdefs.h <<\_ACEOF
29381#define HAVE_TANF 1
29382_ACEOF
29383
29384fi
29385
82eaf560 29386echo "$as_me:$LINENO: checking for tan in -lm" >&5
29387echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
d213114b 29388if test "${ac_cv_lib_m_tan+set}" = set; then
29389 echo $ECHO_N "(cached) $ECHO_C" >&6
29390else
29391 ac_check_lib_save_LIBS=$LIBS
29392LIBS="-lm $LIBS"
29393if test x$gcc_no_link = xyes; then
29394 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29395echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29396 { (exit 1); exit 1; }; }
29397fi
29398cat >conftest.$ac_ext <<_ACEOF
29399/* confdefs.h. */
29400_ACEOF
29401cat confdefs.h >>conftest.$ac_ext
29402cat >>conftest.$ac_ext <<_ACEOF
29403/* end confdefs.h. */
29404
82eaf560 29405/* Override any gcc2 internal prototype to avoid an error. */
d213114b 29406#ifdef __cplusplus
29407extern "C"
29408#endif
82eaf560 29409/* We use char because int might match the return type of a gcc2
29410 builtin and then its argument prototype would still apply. */
d213114b 29411char tan ();
29412int
29413main ()
29414{
82eaf560 29415tan ();
d213114b 29416 ;
29417 return 0;
29418}
29419_ACEOF
29420rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 29421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29422 (eval $ac_link) 2>conftest.er1
d213114b 29423 ac_status=$?
29424 grep -v '^ *+' conftest.er1 >conftest.err
29425 rm -f conftest.er1
29426 cat conftest.err >&5
29427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 29428 (exit $ac_status); } &&
29429 { ac_try='test -z "$ac_c_werror_flag"
29430 || test ! -s conftest.err'
29431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29432 (eval $ac_try) 2>&5
29433 ac_status=$?
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); }; } &&
29436 { ac_try='test -s conftest$ac_exeext'
29437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438 (eval $ac_try) 2>&5
29439 ac_status=$?
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); }; }; then
d213114b 29442 ac_cv_lib_m_tan=yes
29443else
29444 echo "$as_me: failed program was:" >&5
29445sed 's/^/| /' conftest.$ac_ext >&5
29446
82eaf560 29447ac_cv_lib_m_tan=no
d213114b 29448fi
82eaf560 29449rm -f conftest.err conftest.$ac_objext \
d213114b 29450 conftest$ac_exeext conftest.$ac_ext
29451LIBS=$ac_check_lib_save_LIBS
29452fi
82eaf560 29453echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
29454echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
d213114b 29455if test $ac_cv_lib_m_tan = yes; then
29456
29457cat >>confdefs.h <<\_ACEOF
29458#define HAVE_TAN 1
29459_ACEOF
29460
29461fi
29462
82eaf560 29463echo "$as_me:$LINENO: checking for tanl in -lm" >&5
29464echo $ECHO_N "checking for tanl in -lm... $ECHO_C" >&6
d213114b 29465if test "${ac_cv_lib_m_tanl+set}" = set; then
29466 echo $ECHO_N "(cached) $ECHO_C" >&6
29467else
29468 ac_check_lib_save_LIBS=$LIBS
29469LIBS="-lm $LIBS"
29470if test x$gcc_no_link = xyes; then
29471 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29472echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29473 { (exit 1); exit 1; }; }
29474fi
29475cat >conftest.$ac_ext <<_ACEOF
29476/* confdefs.h. */
29477_ACEOF
29478cat confdefs.h >>conftest.$ac_ext
29479cat >>conftest.$ac_ext <<_ACEOF
29480/* end confdefs.h. */
29481
82eaf560 29482/* Override any gcc2 internal prototype to avoid an error. */
d213114b 29483#ifdef __cplusplus
29484extern "C"
29485#endif
82eaf560 29486/* We use char because int might match the return type of a gcc2
29487 builtin and then its argument prototype would still apply. */
d213114b 29488char tanl ();
29489int
29490main ()
29491{
82eaf560 29492tanl ();
d213114b 29493 ;
29494 return 0;
29495}
29496_ACEOF
29497rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 29498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29499 (eval $ac_link) 2>conftest.er1
d213114b 29500 ac_status=$?
29501 grep -v '^ *+' conftest.er1 >conftest.err
29502 rm -f conftest.er1
29503 cat conftest.err >&5
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 29505 (exit $ac_status); } &&
29506 { ac_try='test -z "$ac_c_werror_flag"
29507 || test ! -s conftest.err'
29508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509 (eval $ac_try) 2>&5
29510 ac_status=$?
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; } &&
29513 { ac_try='test -s conftest$ac_exeext'
29514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29515 (eval $ac_try) 2>&5
29516 ac_status=$?
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); }; }; then
d213114b 29519 ac_cv_lib_m_tanl=yes
29520else
29521 echo "$as_me: failed program was:" >&5
29522sed 's/^/| /' conftest.$ac_ext >&5
29523
82eaf560 29524ac_cv_lib_m_tanl=no
d213114b 29525fi
82eaf560 29526rm -f conftest.err conftest.$ac_objext \
d213114b 29527 conftest$ac_exeext conftest.$ac_ext
29528LIBS=$ac_check_lib_save_LIBS
29529fi
82eaf560 29530echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanl" >&5
29531echo "${ECHO_T}$ac_cv_lib_m_tanl" >&6
d213114b 29532if test $ac_cv_lib_m_tanl = yes; then
29533
29534cat >>confdefs.h <<\_ACEOF
29535#define HAVE_TANL 1
29536_ACEOF
29537
29538fi
29539
82eaf560 29540echo "$as_me:$LINENO: checking for ctanf in -lm" >&5
29541echo $ECHO_N "checking for ctanf in -lm... $ECHO_C" >&6
d213114b 29542if test "${ac_cv_lib_m_ctanf+set}" = set; then
29543 echo $ECHO_N "(cached) $ECHO_C" >&6
29544else
29545 ac_check_lib_save_LIBS=$LIBS
29546LIBS="-lm $LIBS"
29547if test x$gcc_no_link = xyes; then
29548 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29549echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29550 { (exit 1); exit 1; }; }
29551fi
29552cat >conftest.$ac_ext <<_ACEOF
29553/* confdefs.h. */
29554_ACEOF
29555cat confdefs.h >>conftest.$ac_ext
29556cat >>conftest.$ac_ext <<_ACEOF
29557/* end confdefs.h. */
29558
82eaf560 29559/* Override any gcc2 internal prototype to avoid an error. */
d213114b 29560#ifdef __cplusplus
29561extern "C"
29562#endif
82eaf560 29563/* We use char because int might match the return type of a gcc2
29564 builtin and then its argument prototype would still apply. */
d213114b 29565char ctanf ();
29566int
29567main ()
29568{
82eaf560 29569ctanf ();
d213114b 29570 ;
29571 return 0;
29572}
29573_ACEOF
29574rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 29575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29576 (eval $ac_link) 2>conftest.er1
d213114b 29577 ac_status=$?
29578 grep -v '^ *+' conftest.er1 >conftest.err
29579 rm -f conftest.er1
29580 cat conftest.err >&5
29581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 29582 (exit $ac_status); } &&
29583 { ac_try='test -z "$ac_c_werror_flag"
29584 || test ! -s conftest.err'
29585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29586 (eval $ac_try) 2>&5
29587 ac_status=$?
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); }; } &&
29590 { ac_try='test -s conftest$ac_exeext'
29591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29592 (eval $ac_try) 2>&5
29593 ac_status=$?
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); }; }; then
d213114b 29596 ac_cv_lib_m_ctanf=yes
29597else
29598 echo "$as_me: failed program was:" >&5
29599sed 's/^/| /' conftest.$ac_ext >&5
29600
82eaf560 29601ac_cv_lib_m_ctanf=no
d213114b 29602fi
82eaf560 29603rm -f conftest.err conftest.$ac_objext \
d213114b 29604 conftest$ac_exeext conftest.$ac_ext
29605LIBS=$ac_check_lib_save_LIBS
29606fi
82eaf560 29607echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanf" >&5
29608echo "${ECHO_T}$ac_cv_lib_m_ctanf" >&6
d213114b 29609if test $ac_cv_lib_m_ctanf = yes; then
29610
29611cat >>confdefs.h <<\_ACEOF
29612#define HAVE_CTANF 1
29613_ACEOF
29614
29615fi
29616
82eaf560 29617echo "$as_me:$LINENO: checking for ctan in -lm" >&5
29618echo $ECHO_N "checking for ctan in -lm... $ECHO_C" >&6
d213114b 29619if test "${ac_cv_lib_m_ctan+set}" = set; then
29620 echo $ECHO_N "(cached) $ECHO_C" >&6
29621else
29622 ac_check_lib_save_LIBS=$LIBS
29623LIBS="-lm $LIBS"
29624if test x$gcc_no_link = xyes; then
29625 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29626echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29627 { (exit 1); exit 1; }; }
29628fi
29629cat >conftest.$ac_ext <<_ACEOF
29630/* confdefs.h. */
29631_ACEOF
29632cat confdefs.h >>conftest.$ac_ext
29633cat >>conftest.$ac_ext <<_ACEOF
29634/* end confdefs.h. */
29635
82eaf560 29636/* Override any gcc2 internal prototype to avoid an error. */
d213114b 29637#ifdef __cplusplus
29638extern "C"
29639#endif
82eaf560 29640/* We use char because int might match the return type of a gcc2
29641 builtin and then its argument prototype would still apply. */
d213114b 29642char ctan ();
29643int
29644main ()
29645{
82eaf560 29646ctan ();
d213114b 29647 ;
29648 return 0;
29649}
29650_ACEOF
29651rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 29652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29653 (eval $ac_link) 2>conftest.er1
d213114b 29654 ac_status=$?
29655 grep -v '^ *+' conftest.er1 >conftest.err
29656 rm -f conftest.er1
29657 cat conftest.err >&5
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 29659 (exit $ac_status); } &&
29660 { ac_try='test -z "$ac_c_werror_flag"
29661 || test ! -s conftest.err'
29662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29663 (eval $ac_try) 2>&5
29664 ac_status=$?
29665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); }; } &&
29667 { ac_try='test -s conftest$ac_exeext'
29668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29669 (eval $ac_try) 2>&5
29670 ac_status=$?
29671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672 (exit $ac_status); }; }; then
d213114b 29673 ac_cv_lib_m_ctan=yes
29674else
29675 echo "$as_me: failed program was:" >&5
29676sed 's/^/| /' conftest.$ac_ext >&5
29677
82eaf560 29678ac_cv_lib_m_ctan=no
d213114b 29679fi
82eaf560 29680rm -f conftest.err conftest.$ac_objext \
d213114b 29681 conftest$ac_exeext conftest.$ac_ext
29682LIBS=$ac_check_lib_save_LIBS
29683fi
82eaf560 29684echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctan" >&5
29685echo "${ECHO_T}$ac_cv_lib_m_ctan" >&6
d213114b 29686if test $ac_cv_lib_m_ctan = yes; then
29687
29688cat >>confdefs.h <<\_ACEOF
29689#define HAVE_CTAN 1
29690_ACEOF
29691
29692fi
29693
82eaf560 29694echo "$as_me:$LINENO: checking for ctanl in -lm" >&5
29695echo $ECHO_N "checking for ctanl in -lm... $ECHO_C" >&6
d213114b 29696if test "${ac_cv_lib_m_ctanl+set}" = set; then
29697 echo $ECHO_N "(cached) $ECHO_C" >&6
29698else
29699 ac_check_lib_save_LIBS=$LIBS
29700LIBS="-lm $LIBS"
29701if test x$gcc_no_link = xyes; then
29702 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29703echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29704 { (exit 1); exit 1; }; }
29705fi
29706cat >conftest.$ac_ext <<_ACEOF
29707/* confdefs.h. */
29708_ACEOF
29709cat confdefs.h >>conftest.$ac_ext
29710cat >>conftest.$ac_ext <<_ACEOF
29711/* end confdefs.h. */
29712
82eaf560 29713/* Override any gcc2 internal prototype to avoid an error. */
d213114b 29714#ifdef __cplusplus
29715extern "C"
29716#endif
82eaf560 29717/* We use char because int might match the return type of a gcc2
29718 builtin and then its argument prototype would still apply. */
d213114b 29719char ctanl ();
29720int
29721main ()
29722{
82eaf560 29723ctanl ();
d213114b 29724 ;
29725 return 0;
29726}
29727_ACEOF
29728rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 29729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29730 (eval $ac_link) 2>conftest.er1
d213114b 29731 ac_status=$?
29732 grep -v '^ *+' conftest.er1 >conftest.err
29733 rm -f conftest.er1
29734 cat conftest.err >&5
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 29736 (exit $ac_status); } &&
29737 { ac_try='test -z "$ac_c_werror_flag"
29738 || test ! -s conftest.err'
29739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29740 (eval $ac_try) 2>&5
29741 ac_status=$?
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); }; } &&
29744 { ac_try='test -s conftest$ac_exeext'
29745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29746 (eval $ac_try) 2>&5
29747 ac_status=$?
29748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749 (exit $ac_status); }; }; then
d213114b 29750 ac_cv_lib_m_ctanl=yes
29751else
29752 echo "$as_me: failed program was:" >&5
29753sed 's/^/| /' conftest.$ac_ext >&5
29754
82eaf560 29755ac_cv_lib_m_ctanl=no
d213114b 29756fi
82eaf560 29757rm -f conftest.err conftest.$ac_objext \
d213114b 29758 conftest$ac_exeext conftest.$ac_ext
29759LIBS=$ac_check_lib_save_LIBS
29760fi
82eaf560 29761echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanl" >&5
29762echo "${ECHO_T}$ac_cv_lib_m_ctanl" >&6
d213114b 29763if test $ac_cv_lib_m_ctanl = yes; then
29764
29765cat >>confdefs.h <<\_ACEOF
29766#define HAVE_CTANL 1
29767_ACEOF
29768
29769fi
29770
82eaf560 29771echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
29772echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
d213114b 29773if test "${ac_cv_lib_m_tanhf+set}" = set; then
29774 echo $ECHO_N "(cached) $ECHO_C" >&6
29775else
29776 ac_check_lib_save_LIBS=$LIBS
29777LIBS="-lm $LIBS"
29778if test x$gcc_no_link = xyes; then
29779 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29780echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29781 { (exit 1); exit 1; }; }
29782fi
29783cat >conftest.$ac_ext <<_ACEOF
29784/* confdefs.h. */
29785_ACEOF
29786cat confdefs.h >>conftest.$ac_ext
29787cat >>conftest.$ac_ext <<_ACEOF
29788/* end confdefs.h. */
29789
82eaf560 29790/* Override any gcc2 internal prototype to avoid an error. */
d213114b 29791#ifdef __cplusplus
29792extern "C"
29793#endif
82eaf560 29794/* We use char because int might match the return type of a gcc2
29795 builtin and then its argument prototype would still apply. */
d213114b 29796char tanhf ();
29797int
29798main ()
29799{
82eaf560 29800tanhf ();
d213114b 29801 ;
29802 return 0;
29803}
29804_ACEOF
29805rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 29806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29807 (eval $ac_link) 2>conftest.er1
d213114b 29808 ac_status=$?
29809 grep -v '^ *+' conftest.er1 >conftest.err
29810 rm -f conftest.er1
29811 cat conftest.err >&5
29812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 29813 (exit $ac_status); } &&
29814 { ac_try='test -z "$ac_c_werror_flag"
29815 || test ! -s conftest.err'
29816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29817 (eval $ac_try) 2>&5
29818 ac_status=$?
29819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820 (exit $ac_status); }; } &&
29821 { ac_try='test -s conftest$ac_exeext'
29822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823 (eval $ac_try) 2>&5
29824 ac_status=$?
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; }; then
d213114b 29827 ac_cv_lib_m_tanhf=yes
29828else
29829 echo "$as_me: failed program was:" >&5
29830sed 's/^/| /' conftest.$ac_ext >&5
29831
82eaf560 29832ac_cv_lib_m_tanhf=no
d213114b 29833fi
82eaf560 29834rm -f conftest.err conftest.$ac_objext \
d213114b 29835 conftest$ac_exeext conftest.$ac_ext
29836LIBS=$ac_check_lib_save_LIBS
29837fi
82eaf560 29838echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
29839echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
d213114b 29840if test $ac_cv_lib_m_tanhf = yes; then
29841
29842cat >>confdefs.h <<\_ACEOF
29843#define HAVE_TANHF 1
29844_ACEOF
29845
29846fi
29847
82eaf560 29848echo "$as_me:$LINENO: checking for tanh in -lm" >&5
29849echo $ECHO_N "checking for tanh in -lm... $ECHO_C" >&6
d213114b 29850if test "${ac_cv_lib_m_tanh+set}" = set; then
29851 echo $ECHO_N "(cached) $ECHO_C" >&6
29852else
29853 ac_check_lib_save_LIBS=$LIBS
29854LIBS="-lm $LIBS"
29855if test x$gcc_no_link = xyes; then
29856 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29857echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29858 { (exit 1); exit 1; }; }
29859fi
29860cat >conftest.$ac_ext <<_ACEOF
29861/* confdefs.h. */
29862_ACEOF
29863cat confdefs.h >>conftest.$ac_ext
29864cat >>conftest.$ac_ext <<_ACEOF
29865/* end confdefs.h. */
29866
82eaf560 29867/* Override any gcc2 internal prototype to avoid an error. */
d213114b 29868#ifdef __cplusplus
29869extern "C"
29870#endif
82eaf560 29871/* We use char because int might match the return type of a gcc2
29872 builtin and then its argument prototype would still apply. */
d213114b 29873char tanh ();
29874int
29875main ()
29876{
82eaf560 29877tanh ();
d213114b 29878 ;
29879 return 0;
29880}
29881_ACEOF
29882rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 29883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29884 (eval $ac_link) 2>conftest.er1
d213114b 29885 ac_status=$?
29886 grep -v '^ *+' conftest.er1 >conftest.err
29887 rm -f conftest.er1
29888 cat conftest.err >&5
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 29890 (exit $ac_status); } &&
29891 { ac_try='test -z "$ac_c_werror_flag"
29892 || test ! -s conftest.err'
29893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29894 (eval $ac_try) 2>&5
29895 ac_status=$?
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); }; } &&
29898 { ac_try='test -s conftest$ac_exeext'
29899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29900 (eval $ac_try) 2>&5
29901 ac_status=$?
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); }; }; then
d213114b 29904 ac_cv_lib_m_tanh=yes
29905else
29906 echo "$as_me: failed program was:" >&5
29907sed 's/^/| /' conftest.$ac_ext >&5
29908
82eaf560 29909ac_cv_lib_m_tanh=no
d213114b 29910fi
82eaf560 29911rm -f conftest.err conftest.$ac_objext \
d213114b 29912 conftest$ac_exeext conftest.$ac_ext
29913LIBS=$ac_check_lib_save_LIBS
29914fi
82eaf560 29915echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanh" >&5
29916echo "${ECHO_T}$ac_cv_lib_m_tanh" >&6
d213114b 29917if test $ac_cv_lib_m_tanh = yes; then
29918
29919cat >>confdefs.h <<\_ACEOF
29920#define HAVE_TANH 1
29921_ACEOF
29922
29923fi
29924
82eaf560 29925echo "$as_me:$LINENO: checking for tanhl in -lm" >&5
29926echo $ECHO_N "checking for tanhl in -lm... $ECHO_C" >&6
d213114b 29927if test "${ac_cv_lib_m_tanhl+set}" = set; then
29928 echo $ECHO_N "(cached) $ECHO_C" >&6
29929else
29930 ac_check_lib_save_LIBS=$LIBS
29931LIBS="-lm $LIBS"
29932if test x$gcc_no_link = xyes; then
29933 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29934echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29935 { (exit 1); exit 1; }; }
29936fi
29937cat >conftest.$ac_ext <<_ACEOF
29938/* confdefs.h. */
29939_ACEOF
29940cat confdefs.h >>conftest.$ac_ext
29941cat >>conftest.$ac_ext <<_ACEOF
29942/* end confdefs.h. */
29943
82eaf560 29944/* Override any gcc2 internal prototype to avoid an error. */
d213114b 29945#ifdef __cplusplus
29946extern "C"
29947#endif
82eaf560 29948/* We use char because int might match the return type of a gcc2
29949 builtin and then its argument prototype would still apply. */
d213114b 29950char tanhl ();
29951int
29952main ()
29953{
82eaf560 29954tanhl ();
d213114b 29955 ;
29956 return 0;
29957}
29958_ACEOF
29959rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 29960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29961 (eval $ac_link) 2>conftest.er1
d213114b 29962 ac_status=$?
29963 grep -v '^ *+' conftest.er1 >conftest.err
29964 rm -f conftest.er1
29965 cat conftest.err >&5
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 29967 (exit $ac_status); } &&
29968 { ac_try='test -z "$ac_c_werror_flag"
29969 || test ! -s conftest.err'
29970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29971 (eval $ac_try) 2>&5
29972 ac_status=$?
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); }; } &&
29975 { ac_try='test -s conftest$ac_exeext'
29976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29977 (eval $ac_try) 2>&5
29978 ac_status=$?
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; }; then
d213114b 29981 ac_cv_lib_m_tanhl=yes
29982else
29983 echo "$as_me: failed program was:" >&5
29984sed 's/^/| /' conftest.$ac_ext >&5
29985
82eaf560 29986ac_cv_lib_m_tanhl=no
d213114b 29987fi
82eaf560 29988rm -f conftest.err conftest.$ac_objext \
d213114b 29989 conftest$ac_exeext conftest.$ac_ext
29990LIBS=$ac_check_lib_save_LIBS
29991fi
82eaf560 29992echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhl" >&5
29993echo "${ECHO_T}$ac_cv_lib_m_tanhl" >&6
d213114b 29994if test $ac_cv_lib_m_tanhl = yes; then
29995
29996cat >>confdefs.h <<\_ACEOF
29997#define HAVE_TANHL 1
29998_ACEOF
29999
30000fi
30001
82eaf560 30002echo "$as_me:$LINENO: checking for ctanhf in -lm" >&5
30003echo $ECHO_N "checking for ctanhf in -lm... $ECHO_C" >&6
d213114b 30004if test "${ac_cv_lib_m_ctanhf+set}" = set; then
30005 echo $ECHO_N "(cached) $ECHO_C" >&6
30006else
30007 ac_check_lib_save_LIBS=$LIBS
30008LIBS="-lm $LIBS"
30009if test x$gcc_no_link = xyes; then
30010 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30011echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30012 { (exit 1); exit 1; }; }
30013fi
30014cat >conftest.$ac_ext <<_ACEOF
30015/* confdefs.h. */
30016_ACEOF
30017cat confdefs.h >>conftest.$ac_ext
30018cat >>conftest.$ac_ext <<_ACEOF
30019/* end confdefs.h. */
30020
82eaf560 30021/* Override any gcc2 internal prototype to avoid an error. */
d213114b 30022#ifdef __cplusplus
30023extern "C"
30024#endif
82eaf560 30025/* We use char because int might match the return type of a gcc2
30026 builtin and then its argument prototype would still apply. */
d213114b 30027char ctanhf ();
30028int
30029main ()
30030{
82eaf560 30031ctanhf ();
d213114b 30032 ;
30033 return 0;
30034}
30035_ACEOF
30036rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 30037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30038 (eval $ac_link) 2>conftest.er1
d213114b 30039 ac_status=$?
30040 grep -v '^ *+' conftest.er1 >conftest.err
30041 rm -f conftest.er1
30042 cat conftest.err >&5
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 30044 (exit $ac_status); } &&
30045 { ac_try='test -z "$ac_c_werror_flag"
30046 || test ! -s conftest.err'
30047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30048 (eval $ac_try) 2>&5
30049 ac_status=$?
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); }; } &&
30052 { ac_try='test -s conftest$ac_exeext'
30053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30054 (eval $ac_try) 2>&5
30055 ac_status=$?
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); }; }; then
d213114b 30058 ac_cv_lib_m_ctanhf=yes
30059else
30060 echo "$as_me: failed program was:" >&5
30061sed 's/^/| /' conftest.$ac_ext >&5
30062
82eaf560 30063ac_cv_lib_m_ctanhf=no
d213114b 30064fi
82eaf560 30065rm -f conftest.err conftest.$ac_objext \
d213114b 30066 conftest$ac_exeext conftest.$ac_ext
30067LIBS=$ac_check_lib_save_LIBS
30068fi
82eaf560 30069echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanhf" >&5
30070echo "${ECHO_T}$ac_cv_lib_m_ctanhf" >&6
d213114b 30071if test $ac_cv_lib_m_ctanhf = yes; then
30072
30073cat >>confdefs.h <<\_ACEOF
30074#define HAVE_CTANHF 1
30075_ACEOF
30076
30077fi
30078
82eaf560 30079echo "$as_me:$LINENO: checking for ctanh in -lm" >&5
30080echo $ECHO_N "checking for ctanh in -lm... $ECHO_C" >&6
d213114b 30081if test "${ac_cv_lib_m_ctanh+set}" = set; then
30082 echo $ECHO_N "(cached) $ECHO_C" >&6
30083else
30084 ac_check_lib_save_LIBS=$LIBS
30085LIBS="-lm $LIBS"
30086if test x$gcc_no_link = xyes; then
30087 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30088echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30089 { (exit 1); exit 1; }; }
30090fi
30091cat >conftest.$ac_ext <<_ACEOF
30092/* confdefs.h. */
30093_ACEOF
30094cat confdefs.h >>conftest.$ac_ext
30095cat >>conftest.$ac_ext <<_ACEOF
30096/* end confdefs.h. */
30097
82eaf560 30098/* Override any gcc2 internal prototype to avoid an error. */
d213114b 30099#ifdef __cplusplus
30100extern "C"
30101#endif
82eaf560 30102/* We use char because int might match the return type of a gcc2
30103 builtin and then its argument prototype would still apply. */
d213114b 30104char ctanh ();
30105int
30106main ()
30107{
82eaf560 30108ctanh ();
d213114b 30109 ;
30110 return 0;
30111}
30112_ACEOF
30113rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 30114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30115 (eval $ac_link) 2>conftest.er1
d213114b 30116 ac_status=$?
30117 grep -v '^ *+' conftest.er1 >conftest.err
30118 rm -f conftest.er1
30119 cat conftest.err >&5
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 30121 (exit $ac_status); } &&
30122 { ac_try='test -z "$ac_c_werror_flag"
30123 || test ! -s conftest.err'
30124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30125 (eval $ac_try) 2>&5
30126 ac_status=$?
30127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); }; } &&
30129 { ac_try='test -s conftest$ac_exeext'
30130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30131 (eval $ac_try) 2>&5
30132 ac_status=$?
30133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); }; }; then
d213114b 30135 ac_cv_lib_m_ctanh=yes
30136else
30137 echo "$as_me: failed program was:" >&5
30138sed 's/^/| /' conftest.$ac_ext >&5
30139
82eaf560 30140ac_cv_lib_m_ctanh=no
d213114b 30141fi
82eaf560 30142rm -f conftest.err conftest.$ac_objext \
d213114b 30143 conftest$ac_exeext conftest.$ac_ext
30144LIBS=$ac_check_lib_save_LIBS
30145fi
82eaf560 30146echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanh" >&5
30147echo "${ECHO_T}$ac_cv_lib_m_ctanh" >&6
d213114b 30148if test $ac_cv_lib_m_ctanh = yes; then
30149
30150cat >>confdefs.h <<\_ACEOF
30151#define HAVE_CTANH 1
30152_ACEOF
30153
30154fi
30155
82eaf560 30156echo "$as_me:$LINENO: checking for ctanhl in -lm" >&5
30157echo $ECHO_N "checking for ctanhl in -lm... $ECHO_C" >&6
d213114b 30158if test "${ac_cv_lib_m_ctanhl+set}" = set; then
30159 echo $ECHO_N "(cached) $ECHO_C" >&6
30160else
30161 ac_check_lib_save_LIBS=$LIBS
30162LIBS="-lm $LIBS"
30163if test x$gcc_no_link = xyes; then
30164 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30165echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30166 { (exit 1); exit 1; }; }
30167fi
30168cat >conftest.$ac_ext <<_ACEOF
30169/* confdefs.h. */
30170_ACEOF
30171cat confdefs.h >>conftest.$ac_ext
30172cat >>conftest.$ac_ext <<_ACEOF
30173/* end confdefs.h. */
30174
82eaf560 30175/* Override any gcc2 internal prototype to avoid an error. */
d213114b 30176#ifdef __cplusplus
30177extern "C"
30178#endif
82eaf560 30179/* We use char because int might match the return type of a gcc2
30180 builtin and then its argument prototype would still apply. */
d213114b 30181char ctanhl ();
30182int
30183main ()
30184{
82eaf560 30185ctanhl ();
d213114b 30186 ;
30187 return 0;
30188}
30189_ACEOF
30190rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 30191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30192 (eval $ac_link) 2>conftest.er1
d213114b 30193 ac_status=$?
30194 grep -v '^ *+' conftest.er1 >conftest.err
30195 rm -f conftest.er1
30196 cat conftest.err >&5
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 30198 (exit $ac_status); } &&
30199 { ac_try='test -z "$ac_c_werror_flag"
30200 || test ! -s conftest.err'
30201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30202 (eval $ac_try) 2>&5
30203 ac_status=$?
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); }; } &&
30206 { ac_try='test -s conftest$ac_exeext'
30207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30208 (eval $ac_try) 2>&5
30209 ac_status=$?
30210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211 (exit $ac_status); }; }; then
d213114b 30212 ac_cv_lib_m_ctanhl=yes
30213else
30214 echo "$as_me: failed program was:" >&5
30215sed 's/^/| /' conftest.$ac_ext >&5
30216
82eaf560 30217ac_cv_lib_m_ctanhl=no
d213114b 30218fi
82eaf560 30219rm -f conftest.err conftest.$ac_objext \
d213114b 30220 conftest$ac_exeext conftest.$ac_ext
30221LIBS=$ac_check_lib_save_LIBS
30222fi
82eaf560 30223echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanhl" >&5
30224echo "${ECHO_T}$ac_cv_lib_m_ctanhl" >&6
d213114b 30225if test $ac_cv_lib_m_ctanhl = yes; then
30226
30227cat >>confdefs.h <<\_ACEOF
30228#define HAVE_CTANHL 1
50f0ca0a 30229_ACEOF
30230
30231fi
30232
82eaf560 30233echo "$as_me:$LINENO: checking for truncf in -lm" >&5
30234echo $ECHO_N "checking for truncf in -lm... $ECHO_C" >&6
50f0ca0a 30235if test "${ac_cv_lib_m_truncf+set}" = set; then
30236 echo $ECHO_N "(cached) $ECHO_C" >&6
30237else
30238 ac_check_lib_save_LIBS=$LIBS
30239LIBS="-lm $LIBS"
b52ee437 30240if test x$gcc_no_link = xyes; then
30241 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30242echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30243 { (exit 1); exit 1; }; }
30244fi
50f0ca0a 30245cat >conftest.$ac_ext <<_ACEOF
30246/* confdefs.h. */
30247_ACEOF
30248cat confdefs.h >>conftest.$ac_ext
30249cat >>conftest.$ac_ext <<_ACEOF
30250/* end confdefs.h. */
30251
82eaf560 30252/* Override any gcc2 internal prototype to avoid an error. */
50f0ca0a 30253#ifdef __cplusplus
30254extern "C"
30255#endif
82eaf560 30256/* We use char because int might match the return type of a gcc2
30257 builtin and then its argument prototype would still apply. */
d213114b 30258char truncf ();
30259int
30260main ()
30261{
82eaf560 30262truncf ();
d213114b 30263 ;
30264 return 0;
30265}
30266_ACEOF
30267rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 30268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30269 (eval $ac_link) 2>conftest.er1
d213114b 30270 ac_status=$?
30271 grep -v '^ *+' conftest.er1 >conftest.err
30272 rm -f conftest.er1
30273 cat conftest.err >&5
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 30275 (exit $ac_status); } &&
30276 { ac_try='test -z "$ac_c_werror_flag"
30277 || test ! -s conftest.err'
30278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30279 (eval $ac_try) 2>&5
30280 ac_status=$?
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); }; } &&
30283 { ac_try='test -s conftest$ac_exeext'
30284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30285 (eval $ac_try) 2>&5
30286 ac_status=$?
30287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288 (exit $ac_status); }; }; then
d213114b 30289 ac_cv_lib_m_truncf=yes
30290else
30291 echo "$as_me: failed program was:" >&5
30292sed 's/^/| /' conftest.$ac_ext >&5
30293
82eaf560 30294ac_cv_lib_m_truncf=no
d213114b 30295fi
82eaf560 30296rm -f conftest.err conftest.$ac_objext \
d213114b 30297 conftest$ac_exeext conftest.$ac_ext
30298LIBS=$ac_check_lib_save_LIBS
30299fi
82eaf560 30300echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncf" >&5
30301echo "${ECHO_T}$ac_cv_lib_m_truncf" >&6
d213114b 30302if test $ac_cv_lib_m_truncf = yes; then
30303
30304cat >>confdefs.h <<\_ACEOF
30305#define HAVE_TRUNCF 1
30306_ACEOF
30307
30308fi
30309
82eaf560 30310echo "$as_me:$LINENO: checking for trunc in -lm" >&5
30311echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6
d213114b 30312if test "${ac_cv_lib_m_trunc+set}" = set; then
30313 echo $ECHO_N "(cached) $ECHO_C" >&6
30314else
30315 ac_check_lib_save_LIBS=$LIBS
30316LIBS="-lm $LIBS"
30317if test x$gcc_no_link = xyes; then
30318 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30319echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30320 { (exit 1); exit 1; }; }
30321fi
30322cat >conftest.$ac_ext <<_ACEOF
30323/* confdefs.h. */
30324_ACEOF
30325cat confdefs.h >>conftest.$ac_ext
30326cat >>conftest.$ac_ext <<_ACEOF
30327/* end confdefs.h. */
30328
82eaf560 30329/* Override any gcc2 internal prototype to avoid an error. */
d213114b 30330#ifdef __cplusplus
30331extern "C"
30332#endif
82eaf560 30333/* We use char because int might match the return type of a gcc2
30334 builtin and then its argument prototype would still apply. */
d213114b 30335char trunc ();
30336int
30337main ()
30338{
82eaf560 30339trunc ();
d213114b 30340 ;
30341 return 0;
30342}
30343_ACEOF
30344rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 30345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30346 (eval $ac_link) 2>conftest.er1
d213114b 30347 ac_status=$?
30348 grep -v '^ *+' conftest.er1 >conftest.err
30349 rm -f conftest.er1
30350 cat conftest.err >&5
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 30352 (exit $ac_status); } &&
30353 { ac_try='test -z "$ac_c_werror_flag"
30354 || test ! -s conftest.err'
30355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30356 (eval $ac_try) 2>&5
30357 ac_status=$?
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); }; } &&
30360 { ac_try='test -s conftest$ac_exeext'
30361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30362 (eval $ac_try) 2>&5
30363 ac_status=$?
30364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365 (exit $ac_status); }; }; then
d213114b 30366 ac_cv_lib_m_trunc=yes
30367else
30368 echo "$as_me: failed program was:" >&5
30369sed 's/^/| /' conftest.$ac_ext >&5
30370
82eaf560 30371ac_cv_lib_m_trunc=no
d213114b 30372fi
82eaf560 30373rm -f conftest.err conftest.$ac_objext \
d213114b 30374 conftest$ac_exeext conftest.$ac_ext
30375LIBS=$ac_check_lib_save_LIBS
30376fi
82eaf560 30377echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
30378echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6
d213114b 30379if test $ac_cv_lib_m_trunc = yes; then
30380
30381cat >>confdefs.h <<\_ACEOF
30382#define HAVE_TRUNC 1
30383_ACEOF
30384
30385fi
30386
82eaf560 30387echo "$as_me:$LINENO: checking for truncl in -lm" >&5
30388echo $ECHO_N "checking for truncl in -lm... $ECHO_C" >&6
d213114b 30389if test "${ac_cv_lib_m_truncl+set}" = set; then
30390 echo $ECHO_N "(cached) $ECHO_C" >&6
30391else
30392 ac_check_lib_save_LIBS=$LIBS
30393LIBS="-lm $LIBS"
30394if test x$gcc_no_link = xyes; then
30395 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30396echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30397 { (exit 1); exit 1; }; }
30398fi
30399cat >conftest.$ac_ext <<_ACEOF
30400/* confdefs.h. */
30401_ACEOF
30402cat confdefs.h >>conftest.$ac_ext
30403cat >>conftest.$ac_ext <<_ACEOF
30404/* end confdefs.h. */
30405
82eaf560 30406/* Override any gcc2 internal prototype to avoid an error. */
d213114b 30407#ifdef __cplusplus
30408extern "C"
30409#endif
82eaf560 30410/* We use char because int might match the return type of a gcc2
30411 builtin and then its argument prototype would still apply. */
d213114b 30412char truncl ();
30413int
30414main ()
30415{
82eaf560 30416truncl ();
d213114b 30417 ;
30418 return 0;
30419}
30420_ACEOF
30421rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 30422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30423 (eval $ac_link) 2>conftest.er1
d213114b 30424 ac_status=$?
30425 grep -v '^ *+' conftest.er1 >conftest.err
30426 rm -f conftest.er1
30427 cat conftest.err >&5
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 30429 (exit $ac_status); } &&
30430 { ac_try='test -z "$ac_c_werror_flag"
30431 || test ! -s conftest.err'
30432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30433 (eval $ac_try) 2>&5
30434 ac_status=$?
30435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436 (exit $ac_status); }; } &&
30437 { ac_try='test -s conftest$ac_exeext'
30438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30439 (eval $ac_try) 2>&5
30440 ac_status=$?
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); }; }; then
d213114b 30443 ac_cv_lib_m_truncl=yes
30444else
30445 echo "$as_me: failed program was:" >&5
30446sed 's/^/| /' conftest.$ac_ext >&5
30447
82eaf560 30448ac_cv_lib_m_truncl=no
d213114b 30449fi
82eaf560 30450rm -f conftest.err conftest.$ac_objext \
d213114b 30451 conftest$ac_exeext conftest.$ac_ext
30452LIBS=$ac_check_lib_save_LIBS
30453fi
82eaf560 30454echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncl" >&5
30455echo "${ECHO_T}$ac_cv_lib_m_truncl" >&6
d213114b 30456if test $ac_cv_lib_m_truncl = yes; then
30457
30458cat >>confdefs.h <<\_ACEOF
30459#define HAVE_TRUNCL 1
30460_ACEOF
30461
30462fi
30463
82eaf560 30464echo "$as_me:$LINENO: checking for erff in -lm" >&5
30465echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
d213114b 30466if test "${ac_cv_lib_m_erff+set}" = set; then
30467 echo $ECHO_N "(cached) $ECHO_C" >&6
30468else
30469 ac_check_lib_save_LIBS=$LIBS
30470LIBS="-lm $LIBS"
30471if test x$gcc_no_link = xyes; then
30472 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30473echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30474 { (exit 1); exit 1; }; }
30475fi
30476cat >conftest.$ac_ext <<_ACEOF
30477/* confdefs.h. */
30478_ACEOF
30479cat confdefs.h >>conftest.$ac_ext
30480cat >>conftest.$ac_ext <<_ACEOF
30481/* end confdefs.h. */
30482
82eaf560 30483/* Override any gcc2 internal prototype to avoid an error. */
d213114b 30484#ifdef __cplusplus
30485extern "C"
30486#endif
82eaf560 30487/* We use char because int might match the return type of a gcc2
30488 builtin and then its argument prototype would still apply. */
d213114b 30489char erff ();
30490int
30491main ()
30492{
82eaf560 30493erff ();
d213114b 30494 ;
30495 return 0;
30496}
30497_ACEOF
30498rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 30499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30500 (eval $ac_link) 2>conftest.er1
d213114b 30501 ac_status=$?
30502 grep -v '^ *+' conftest.er1 >conftest.err
30503 rm -f conftest.er1
30504 cat conftest.err >&5
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 30506 (exit $ac_status); } &&
30507 { ac_try='test -z "$ac_c_werror_flag"
30508 || test ! -s conftest.err'
30509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30510 (eval $ac_try) 2>&5
30511 ac_status=$?
30512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30513 (exit $ac_status); }; } &&
30514 { ac_try='test -s conftest$ac_exeext'
30515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30516 (eval $ac_try) 2>&5
30517 ac_status=$?
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); }; }; then
d213114b 30520 ac_cv_lib_m_erff=yes
30521else
30522 echo "$as_me: failed program was:" >&5
30523sed 's/^/| /' conftest.$ac_ext >&5
30524
82eaf560 30525ac_cv_lib_m_erff=no
d213114b 30526fi
82eaf560 30527rm -f conftest.err conftest.$ac_objext \
d213114b 30528 conftest$ac_exeext conftest.$ac_ext
30529LIBS=$ac_check_lib_save_LIBS
30530fi
82eaf560 30531echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
30532echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
d213114b 30533if test $ac_cv_lib_m_erff = yes; then
30534
30535cat >>confdefs.h <<\_ACEOF
30536#define HAVE_ERFF 1
30537_ACEOF
30538
30539fi
30540
82eaf560 30541echo "$as_me:$LINENO: checking for erf in -lm" >&5
30542echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
d213114b 30543if test "${ac_cv_lib_m_erf+set}" = set; then
30544 echo $ECHO_N "(cached) $ECHO_C" >&6
30545else
30546 ac_check_lib_save_LIBS=$LIBS
30547LIBS="-lm $LIBS"
30548if test x$gcc_no_link = xyes; then
30549 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30550echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30551 { (exit 1); exit 1; }; }
30552fi
30553cat >conftest.$ac_ext <<_ACEOF
30554/* confdefs.h. */
30555_ACEOF
30556cat confdefs.h >>conftest.$ac_ext
30557cat >>conftest.$ac_ext <<_ACEOF
30558/* end confdefs.h. */
30559
82eaf560 30560/* Override any gcc2 internal prototype to avoid an error. */
d213114b 30561#ifdef __cplusplus
30562extern "C"
30563#endif
82eaf560 30564/* We use char because int might match the return type of a gcc2
30565 builtin and then its argument prototype would still apply. */
d213114b 30566char erf ();
30567int
30568main ()
30569{
82eaf560 30570erf ();
d213114b 30571 ;
30572 return 0;
30573}
30574_ACEOF
30575rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 30576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30577 (eval $ac_link) 2>conftest.er1
d213114b 30578 ac_status=$?
30579 grep -v '^ *+' conftest.er1 >conftest.err
30580 rm -f conftest.er1
30581 cat conftest.err >&5
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 30583 (exit $ac_status); } &&
30584 { ac_try='test -z "$ac_c_werror_flag"
30585 || test ! -s conftest.err'
30586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30587 (eval $ac_try) 2>&5
30588 ac_status=$?
30589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590 (exit $ac_status); }; } &&
30591 { ac_try='test -s conftest$ac_exeext'
30592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30593 (eval $ac_try) 2>&5
30594 ac_status=$?
30595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596 (exit $ac_status); }; }; then
d213114b 30597 ac_cv_lib_m_erf=yes
30598else
30599 echo "$as_me: failed program was:" >&5
30600sed 's/^/| /' conftest.$ac_ext >&5
30601
82eaf560 30602ac_cv_lib_m_erf=no
d213114b 30603fi
82eaf560 30604rm -f conftest.err conftest.$ac_objext \
d213114b 30605 conftest$ac_exeext conftest.$ac_ext
30606LIBS=$ac_check_lib_save_LIBS
30607fi
82eaf560 30608echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
30609echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
d213114b 30610if test $ac_cv_lib_m_erf = yes; then
30611
30612cat >>confdefs.h <<\_ACEOF
30613#define HAVE_ERF 1
30614_ACEOF
30615
30616fi
30617
82eaf560 30618echo "$as_me:$LINENO: checking for erfl in -lm" >&5
30619echo $ECHO_N "checking for erfl in -lm... $ECHO_C" >&6
d213114b 30620if test "${ac_cv_lib_m_erfl+set}" = set; then
30621 echo $ECHO_N "(cached) $ECHO_C" >&6
30622else
30623 ac_check_lib_save_LIBS=$LIBS
30624LIBS="-lm $LIBS"
30625if test x$gcc_no_link = xyes; then
30626 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30627echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30628 { (exit 1); exit 1; }; }
30629fi
30630cat >conftest.$ac_ext <<_ACEOF
30631/* confdefs.h. */
30632_ACEOF
30633cat confdefs.h >>conftest.$ac_ext
30634cat >>conftest.$ac_ext <<_ACEOF
30635/* end confdefs.h. */
30636
82eaf560 30637/* Override any gcc2 internal prototype to avoid an error. */
d213114b 30638#ifdef __cplusplus
30639extern "C"
30640#endif
82eaf560 30641/* We use char because int might match the return type of a gcc2
30642 builtin and then its argument prototype would still apply. */
d213114b 30643char erfl ();
30644int
30645main ()
30646{
82eaf560 30647erfl ();
d213114b 30648 ;
30649 return 0;
30650}
30651_ACEOF
30652rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 30653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30654 (eval $ac_link) 2>conftest.er1
d213114b 30655 ac_status=$?
30656 grep -v '^ *+' conftest.er1 >conftest.err
30657 rm -f conftest.er1
30658 cat conftest.err >&5
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 30660 (exit $ac_status); } &&
30661 { ac_try='test -z "$ac_c_werror_flag"
30662 || test ! -s conftest.err'
30663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30664 (eval $ac_try) 2>&5
30665 ac_status=$?
30666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667 (exit $ac_status); }; } &&
30668 { ac_try='test -s conftest$ac_exeext'
30669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30670 (eval $ac_try) 2>&5
30671 ac_status=$?
30672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673 (exit $ac_status); }; }; then
d213114b 30674 ac_cv_lib_m_erfl=yes
30675else
30676 echo "$as_me: failed program was:" >&5
30677sed 's/^/| /' conftest.$ac_ext >&5
30678
82eaf560 30679ac_cv_lib_m_erfl=no
d213114b 30680fi
82eaf560 30681rm -f conftest.err conftest.$ac_objext \
d213114b 30682 conftest$ac_exeext conftest.$ac_ext
30683LIBS=$ac_check_lib_save_LIBS
30684fi
82eaf560 30685echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfl" >&5
30686echo "${ECHO_T}$ac_cv_lib_m_erfl" >&6
d213114b 30687if test $ac_cv_lib_m_erfl = yes; then
30688
30689cat >>confdefs.h <<\_ACEOF
30690#define HAVE_ERFL 1
30691_ACEOF
30692
30693fi
30694
82eaf560 30695echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
30696echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
d213114b 30697if test "${ac_cv_lib_m_erfcf+set}" = set; then
30698 echo $ECHO_N "(cached) $ECHO_C" >&6
30699else
30700 ac_check_lib_save_LIBS=$LIBS
30701LIBS="-lm $LIBS"
30702if test x$gcc_no_link = xyes; then
30703 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30704echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30705 { (exit 1); exit 1; }; }
30706fi
30707cat >conftest.$ac_ext <<_ACEOF
30708/* confdefs.h. */
30709_ACEOF
30710cat confdefs.h >>conftest.$ac_ext
30711cat >>conftest.$ac_ext <<_ACEOF
30712/* end confdefs.h. */
30713
82eaf560 30714/* Override any gcc2 internal prototype to avoid an error. */
d213114b 30715#ifdef __cplusplus
30716extern "C"
30717#endif
82eaf560 30718/* We use char because int might match the return type of a gcc2
30719 builtin and then its argument prototype would still apply. */
d213114b 30720char erfcf ();
30721int
30722main ()
30723{
82eaf560 30724erfcf ();
d213114b 30725 ;
30726 return 0;
30727}
30728_ACEOF
30729rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 30730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30731 (eval $ac_link) 2>conftest.er1
d213114b 30732 ac_status=$?
30733 grep -v '^ *+' conftest.er1 >conftest.err
30734 rm -f conftest.er1
30735 cat conftest.err >&5
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 30737 (exit $ac_status); } &&
30738 { ac_try='test -z "$ac_c_werror_flag"
30739 || test ! -s conftest.err'
30740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30741 (eval $ac_try) 2>&5
30742 ac_status=$?
30743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744 (exit $ac_status); }; } &&
30745 { ac_try='test -s conftest$ac_exeext'
30746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30747 (eval $ac_try) 2>&5
30748 ac_status=$?
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); }; }; then
d213114b 30751 ac_cv_lib_m_erfcf=yes
30752else
30753 echo "$as_me: failed program was:" >&5
30754sed 's/^/| /' conftest.$ac_ext >&5
30755
82eaf560 30756ac_cv_lib_m_erfcf=no
d213114b 30757fi
82eaf560 30758rm -f conftest.err conftest.$ac_objext \
d213114b 30759 conftest$ac_exeext conftest.$ac_ext
30760LIBS=$ac_check_lib_save_LIBS
30761fi
82eaf560 30762echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
30763echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
d213114b 30764if test $ac_cv_lib_m_erfcf = yes; then
30765
30766cat >>confdefs.h <<\_ACEOF
30767#define HAVE_ERFCF 1
30768_ACEOF
30769
30770fi
30771
82eaf560 30772echo "$as_me:$LINENO: checking for erfc in -lm" >&5
30773echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
d213114b 30774if test "${ac_cv_lib_m_erfc+set}" = set; then
30775 echo $ECHO_N "(cached) $ECHO_C" >&6
30776else
30777 ac_check_lib_save_LIBS=$LIBS
30778LIBS="-lm $LIBS"
30779if test x$gcc_no_link = xyes; then
30780 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30781echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30782 { (exit 1); exit 1; }; }
30783fi
30784cat >conftest.$ac_ext <<_ACEOF
30785/* confdefs.h. */
30786_ACEOF
30787cat confdefs.h >>conftest.$ac_ext
30788cat >>conftest.$ac_ext <<_ACEOF
30789/* end confdefs.h. */
30790
82eaf560 30791/* Override any gcc2 internal prototype to avoid an error. */
d213114b 30792#ifdef __cplusplus
30793extern "C"
30794#endif
82eaf560 30795/* We use char because int might match the return type of a gcc2
30796 builtin and then its argument prototype would still apply. */
d213114b 30797char erfc ();
50f0ca0a 30798int
30799main ()
30800{
82eaf560 30801erfc ();
50f0ca0a 30802 ;
30803 return 0;
30804}
30805_ACEOF
30806rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 30807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30808 (eval $ac_link) 2>conftest.er1
50f0ca0a 30809 ac_status=$?
30810 grep -v '^ *+' conftest.er1 >conftest.err
30811 rm -f conftest.er1
30812 cat conftest.err >&5
30813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 30814 (exit $ac_status); } &&
30815 { ac_try='test -z "$ac_c_werror_flag"
30816 || test ! -s conftest.err'
30817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30818 (eval $ac_try) 2>&5
30819 ac_status=$?
30820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821 (exit $ac_status); }; } &&
30822 { ac_try='test -s conftest$ac_exeext'
30823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30824 (eval $ac_try) 2>&5
30825 ac_status=$?
30826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827 (exit $ac_status); }; }; then
d213114b 30828 ac_cv_lib_m_erfc=yes
50f0ca0a 30829else
30830 echo "$as_me: failed program was:" >&5
30831sed 's/^/| /' conftest.$ac_ext >&5
30832
82eaf560 30833ac_cv_lib_m_erfc=no
50f0ca0a 30834fi
82eaf560 30835rm -f conftest.err conftest.$ac_objext \
50f0ca0a 30836 conftest$ac_exeext conftest.$ac_ext
30837LIBS=$ac_check_lib_save_LIBS
30838fi
82eaf560 30839echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
30840echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
d213114b 30841if test $ac_cv_lib_m_erfc = yes; then
50f0ca0a 30842
30843cat >>confdefs.h <<\_ACEOF
d213114b 30844#define HAVE_ERFC 1
50f0ca0a 30845_ACEOF
30846
30847fi
30848
82eaf560 30849echo "$as_me:$LINENO: checking for erfcl in -lm" >&5
30850echo $ECHO_N "checking for erfcl in -lm... $ECHO_C" >&6
d213114b 30851if test "${ac_cv_lib_m_erfcl+set}" = set; then
158e0e64 30852 echo $ECHO_N "(cached) $ECHO_C" >&6
30853else
30854 ac_check_lib_save_LIBS=$LIBS
30855LIBS="-lm $LIBS"
b52ee437 30856if test x$gcc_no_link = xyes; then
30857 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30858echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30859 { (exit 1); exit 1; }; }
30860fi
158e0e64 30861cat >conftest.$ac_ext <<_ACEOF
30862/* confdefs.h. */
30863_ACEOF
30864cat confdefs.h >>conftest.$ac_ext
30865cat >>conftest.$ac_ext <<_ACEOF
30866/* end confdefs.h. */
30867
82eaf560 30868/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 30869#ifdef __cplusplus
30870extern "C"
30871#endif
82eaf560 30872/* We use char because int might match the return type of a gcc2
30873 builtin and then its argument prototype would still apply. */
d213114b 30874char erfcl ();
158e0e64 30875int
30876main ()
30877{
82eaf560 30878erfcl ();
158e0e64 30879 ;
30880 return 0;
30881}
30882_ACEOF
30883rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 30884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30885 (eval $ac_link) 2>conftest.er1
158e0e64 30886 ac_status=$?
30887 grep -v '^ *+' conftest.er1 >conftest.err
30888 rm -f conftest.er1
30889 cat conftest.err >&5
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 30891 (exit $ac_status); } &&
30892 { ac_try='test -z "$ac_c_werror_flag"
30893 || test ! -s conftest.err'
30894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30895 (eval $ac_try) 2>&5
30896 ac_status=$?
30897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898 (exit $ac_status); }; } &&
30899 { ac_try='test -s conftest$ac_exeext'
30900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30901 (eval $ac_try) 2>&5
30902 ac_status=$?
30903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30904 (exit $ac_status); }; }; then
d213114b 30905 ac_cv_lib_m_erfcl=yes
158e0e64 30906else
30907 echo "$as_me: failed program was:" >&5
30908sed 's/^/| /' conftest.$ac_ext >&5
30909
82eaf560 30910ac_cv_lib_m_erfcl=no
158e0e64 30911fi
82eaf560 30912rm -f conftest.err conftest.$ac_objext \
158e0e64 30913 conftest$ac_exeext conftest.$ac_ext
30914LIBS=$ac_check_lib_save_LIBS
30915fi
82eaf560 30916echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcl" >&5
30917echo "${ECHO_T}$ac_cv_lib_m_erfcl" >&6
d213114b 30918if test $ac_cv_lib_m_erfcl = yes; then
158e0e64 30919
30920cat >>confdefs.h <<\_ACEOF
d213114b 30921#define HAVE_ERFCL 1
158e0e64 30922_ACEOF
30923
30924fi
30925
82eaf560 30926echo "$as_me:$LINENO: checking for j0f in -lm" >&5
30927echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
d213114b 30928if test "${ac_cv_lib_m_j0f+set}" = set; then
158e0e64 30929 echo $ECHO_N "(cached) $ECHO_C" >&6
30930else
30931 ac_check_lib_save_LIBS=$LIBS
30932LIBS="-lm $LIBS"
b52ee437 30933if test x$gcc_no_link = xyes; then
30934 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30935echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30936 { (exit 1); exit 1; }; }
30937fi
158e0e64 30938cat >conftest.$ac_ext <<_ACEOF
30939/* confdefs.h. */
30940_ACEOF
30941cat confdefs.h >>conftest.$ac_ext
30942cat >>conftest.$ac_ext <<_ACEOF
30943/* end confdefs.h. */
30944
82eaf560 30945/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 30946#ifdef __cplusplus
30947extern "C"
30948#endif
82eaf560 30949/* We use char because int might match the return type of a gcc2
30950 builtin and then its argument prototype would still apply. */
d213114b 30951char j0f ();
158e0e64 30952int
30953main ()
30954{
82eaf560 30955j0f ();
158e0e64 30956 ;
30957 return 0;
30958}
30959_ACEOF
30960rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 30961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30962 (eval $ac_link) 2>conftest.er1
158e0e64 30963 ac_status=$?
30964 grep -v '^ *+' conftest.er1 >conftest.err
30965 rm -f conftest.er1
30966 cat conftest.err >&5
30967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 30968 (exit $ac_status); } &&
30969 { ac_try='test -z "$ac_c_werror_flag"
30970 || test ! -s conftest.err'
30971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30972 (eval $ac_try) 2>&5
30973 ac_status=$?
30974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975 (exit $ac_status); }; } &&
30976 { ac_try='test -s conftest$ac_exeext'
30977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30978 (eval $ac_try) 2>&5
30979 ac_status=$?
30980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981 (exit $ac_status); }; }; then
d213114b 30982 ac_cv_lib_m_j0f=yes
158e0e64 30983else
30984 echo "$as_me: failed program was:" >&5
30985sed 's/^/| /' conftest.$ac_ext >&5
30986
82eaf560 30987ac_cv_lib_m_j0f=no
d213114b 30988fi
82eaf560 30989rm -f conftest.err conftest.$ac_objext \
d213114b 30990 conftest$ac_exeext conftest.$ac_ext
30991LIBS=$ac_check_lib_save_LIBS
30992fi
82eaf560 30993echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
30994echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
d213114b 30995if test $ac_cv_lib_m_j0f = yes; then
30996
30997cat >>confdefs.h <<\_ACEOF
30998#define HAVE_J0F 1
30999_ACEOF
31000
31001fi
31002
82eaf560 31003echo "$as_me:$LINENO: checking for j0 in -lm" >&5
31004echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
d213114b 31005if test "${ac_cv_lib_m_j0+set}" = set; then
31006 echo $ECHO_N "(cached) $ECHO_C" >&6
31007else
31008 ac_check_lib_save_LIBS=$LIBS
31009LIBS="-lm $LIBS"
31010if test x$gcc_no_link = xyes; then
31011 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31012echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31013 { (exit 1); exit 1; }; }
31014fi
31015cat >conftest.$ac_ext <<_ACEOF
31016/* confdefs.h. */
31017_ACEOF
31018cat confdefs.h >>conftest.$ac_ext
31019cat >>conftest.$ac_ext <<_ACEOF
31020/* end confdefs.h. */
31021
82eaf560 31022/* Override any gcc2 internal prototype to avoid an error. */
d213114b 31023#ifdef __cplusplus
31024extern "C"
31025#endif
82eaf560 31026/* We use char because int might match the return type of a gcc2
31027 builtin and then its argument prototype would still apply. */
d213114b 31028char j0 ();
31029int
31030main ()
31031{
82eaf560 31032j0 ();
d213114b 31033 ;
31034 return 0;
31035}
31036_ACEOF
31037rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 31038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31039 (eval $ac_link) 2>conftest.er1
d213114b 31040 ac_status=$?
31041 grep -v '^ *+' conftest.er1 >conftest.err
31042 rm -f conftest.er1
31043 cat conftest.err >&5
31044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 31045 (exit $ac_status); } &&
31046 { ac_try='test -z "$ac_c_werror_flag"
31047 || test ! -s conftest.err'
31048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31049 (eval $ac_try) 2>&5
31050 ac_status=$?
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); }; } &&
31053 { ac_try='test -s conftest$ac_exeext'
31054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31055 (eval $ac_try) 2>&5
31056 ac_status=$?
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); }; }; then
d213114b 31059 ac_cv_lib_m_j0=yes
31060else
31061 echo "$as_me: failed program was:" >&5
31062sed 's/^/| /' conftest.$ac_ext >&5
31063
82eaf560 31064ac_cv_lib_m_j0=no
d213114b 31065fi
82eaf560 31066rm -f conftest.err conftest.$ac_objext \
d213114b 31067 conftest$ac_exeext conftest.$ac_ext
31068LIBS=$ac_check_lib_save_LIBS
31069fi
82eaf560 31070echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
31071echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
d213114b 31072if test $ac_cv_lib_m_j0 = yes; then
31073
31074cat >>confdefs.h <<\_ACEOF
31075#define HAVE_J0 1
31076_ACEOF
31077
31078fi
31079
82eaf560 31080echo "$as_me:$LINENO: checking for j0l in -lm" >&5
31081echo $ECHO_N "checking for j0l in -lm... $ECHO_C" >&6
d213114b 31082if test "${ac_cv_lib_m_j0l+set}" = set; then
31083 echo $ECHO_N "(cached) $ECHO_C" >&6
31084else
31085 ac_check_lib_save_LIBS=$LIBS
31086LIBS="-lm $LIBS"
31087if test x$gcc_no_link = xyes; then
31088 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31089echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31090 { (exit 1); exit 1; }; }
31091fi
31092cat >conftest.$ac_ext <<_ACEOF
31093/* confdefs.h. */
31094_ACEOF
31095cat confdefs.h >>conftest.$ac_ext
31096cat >>conftest.$ac_ext <<_ACEOF
31097/* end confdefs.h. */
31098
82eaf560 31099/* Override any gcc2 internal prototype to avoid an error. */
d213114b 31100#ifdef __cplusplus
31101extern "C"
31102#endif
82eaf560 31103/* We use char because int might match the return type of a gcc2
31104 builtin and then its argument prototype would still apply. */
d213114b 31105char j0l ();
31106int
31107main ()
31108{
82eaf560 31109j0l ();
d213114b 31110 ;
31111 return 0;
31112}
31113_ACEOF
31114rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 31115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31116 (eval $ac_link) 2>conftest.er1
d213114b 31117 ac_status=$?
31118 grep -v '^ *+' conftest.er1 >conftest.err
31119 rm -f conftest.er1
31120 cat conftest.err >&5
31121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 31122 (exit $ac_status); } &&
31123 { ac_try='test -z "$ac_c_werror_flag"
31124 || test ! -s conftest.err'
31125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31126 (eval $ac_try) 2>&5
31127 ac_status=$?
31128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31129 (exit $ac_status); }; } &&
31130 { ac_try='test -s conftest$ac_exeext'
31131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31132 (eval $ac_try) 2>&5
31133 ac_status=$?
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; }; then
d213114b 31136 ac_cv_lib_m_j0l=yes
31137else
31138 echo "$as_me: failed program was:" >&5
31139sed 's/^/| /' conftest.$ac_ext >&5
31140
82eaf560 31141ac_cv_lib_m_j0l=no
d213114b 31142fi
82eaf560 31143rm -f conftest.err conftest.$ac_objext \
d213114b 31144 conftest$ac_exeext conftest.$ac_ext
31145LIBS=$ac_check_lib_save_LIBS
31146fi
82eaf560 31147echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0l" >&5
31148echo "${ECHO_T}$ac_cv_lib_m_j0l" >&6
d213114b 31149if test $ac_cv_lib_m_j0l = yes; then
31150
31151cat >>confdefs.h <<\_ACEOF
31152#define HAVE_J0L 1
31153_ACEOF
31154
31155fi
31156
82eaf560 31157echo "$as_me:$LINENO: checking for j1f in -lm" >&5
31158echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
d213114b 31159if test "${ac_cv_lib_m_j1f+set}" = set; then
31160 echo $ECHO_N "(cached) $ECHO_C" >&6
31161else
31162 ac_check_lib_save_LIBS=$LIBS
31163LIBS="-lm $LIBS"
31164if test x$gcc_no_link = xyes; then
31165 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31166echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31167 { (exit 1); exit 1; }; }
31168fi
31169cat >conftest.$ac_ext <<_ACEOF
31170/* confdefs.h. */
31171_ACEOF
31172cat confdefs.h >>conftest.$ac_ext
31173cat >>conftest.$ac_ext <<_ACEOF
31174/* end confdefs.h. */
31175
82eaf560 31176/* Override any gcc2 internal prototype to avoid an error. */
d213114b 31177#ifdef __cplusplus
31178extern "C"
31179#endif
82eaf560 31180/* We use char because int might match the return type of a gcc2
31181 builtin and then its argument prototype would still apply. */
d213114b 31182char j1f ();
31183int
31184main ()
31185{
82eaf560 31186j1f ();
d213114b 31187 ;
31188 return 0;
31189}
31190_ACEOF
31191rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 31192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31193 (eval $ac_link) 2>conftest.er1
d213114b 31194 ac_status=$?
31195 grep -v '^ *+' conftest.er1 >conftest.err
31196 rm -f conftest.er1
31197 cat conftest.err >&5
31198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 31199 (exit $ac_status); } &&
31200 { ac_try='test -z "$ac_c_werror_flag"
31201 || test ! -s conftest.err'
31202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31203 (eval $ac_try) 2>&5
31204 ac_status=$?
31205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206 (exit $ac_status); }; } &&
31207 { ac_try='test -s conftest$ac_exeext'
31208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31209 (eval $ac_try) 2>&5
31210 ac_status=$?
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); }; }; then
d213114b 31213 ac_cv_lib_m_j1f=yes
31214else
31215 echo "$as_me: failed program was:" >&5
31216sed 's/^/| /' conftest.$ac_ext >&5
31217
82eaf560 31218ac_cv_lib_m_j1f=no
158e0e64 31219fi
82eaf560 31220rm -f conftest.err conftest.$ac_objext \
158e0e64 31221 conftest$ac_exeext conftest.$ac_ext
31222LIBS=$ac_check_lib_save_LIBS
31223fi
82eaf560 31224echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
31225echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
d213114b 31226if test $ac_cv_lib_m_j1f = yes; then
158e0e64 31227
31228cat >>confdefs.h <<\_ACEOF
d213114b 31229#define HAVE_J1F 1
158e0e64 31230_ACEOF
31231
31232fi
31233
82eaf560 31234echo "$as_me:$LINENO: checking for j1 in -lm" >&5
31235echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
d213114b 31236if test "${ac_cv_lib_m_j1+set}" = set; then
158e0e64 31237 echo $ECHO_N "(cached) $ECHO_C" >&6
31238else
31239 ac_check_lib_save_LIBS=$LIBS
31240LIBS="-lm $LIBS"
b52ee437 31241if test x$gcc_no_link = xyes; then
31242 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31243echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31244 { (exit 1); exit 1; }; }
31245fi
158e0e64 31246cat >conftest.$ac_ext <<_ACEOF
31247/* confdefs.h. */
31248_ACEOF
31249cat confdefs.h >>conftest.$ac_ext
31250cat >>conftest.$ac_ext <<_ACEOF
31251/* end confdefs.h. */
31252
82eaf560 31253/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 31254#ifdef __cplusplus
31255extern "C"
31256#endif
82eaf560 31257/* We use char because int might match the return type of a gcc2
31258 builtin and then its argument prototype would still apply. */
d213114b 31259char j1 ();
158e0e64 31260int
31261main ()
31262{
82eaf560 31263j1 ();
158e0e64 31264 ;
31265 return 0;
31266}
31267_ACEOF
31268rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 31269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31270 (eval $ac_link) 2>conftest.er1
158e0e64 31271 ac_status=$?
31272 grep -v '^ *+' conftest.er1 >conftest.err
31273 rm -f conftest.er1
31274 cat conftest.err >&5
31275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 31276 (exit $ac_status); } &&
31277 { ac_try='test -z "$ac_c_werror_flag"
31278 || test ! -s conftest.err'
31279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31280 (eval $ac_try) 2>&5
31281 ac_status=$?
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); }; } &&
31284 { ac_try='test -s conftest$ac_exeext'
31285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31286 (eval $ac_try) 2>&5
31287 ac_status=$?
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; }; then
d213114b 31290 ac_cv_lib_m_j1=yes
158e0e64 31291else
31292 echo "$as_me: failed program was:" >&5
31293sed 's/^/| /' conftest.$ac_ext >&5
31294
82eaf560 31295ac_cv_lib_m_j1=no
158e0e64 31296fi
82eaf560 31297rm -f conftest.err conftest.$ac_objext \
158e0e64 31298 conftest$ac_exeext conftest.$ac_ext
31299LIBS=$ac_check_lib_save_LIBS
31300fi
82eaf560 31301echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
31302echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
d213114b 31303if test $ac_cv_lib_m_j1 = yes; then
158e0e64 31304
31305cat >>confdefs.h <<\_ACEOF
d213114b 31306#define HAVE_J1 1
158e0e64 31307_ACEOF
31308
31309fi
31310
82eaf560 31311echo "$as_me:$LINENO: checking for j1l in -lm" >&5
31312echo $ECHO_N "checking for j1l in -lm... $ECHO_C" >&6
d213114b 31313if test "${ac_cv_lib_m_j1l+set}" = set; then
158e0e64 31314 echo $ECHO_N "(cached) $ECHO_C" >&6
31315else
31316 ac_check_lib_save_LIBS=$LIBS
31317LIBS="-lm $LIBS"
b52ee437 31318if test x$gcc_no_link = xyes; then
31319 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31320echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31321 { (exit 1); exit 1; }; }
31322fi
158e0e64 31323cat >conftest.$ac_ext <<_ACEOF
31324/* confdefs.h. */
31325_ACEOF
31326cat confdefs.h >>conftest.$ac_ext
31327cat >>conftest.$ac_ext <<_ACEOF
31328/* end confdefs.h. */
31329
82eaf560 31330/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 31331#ifdef __cplusplus
31332extern "C"
31333#endif
82eaf560 31334/* We use char because int might match the return type of a gcc2
31335 builtin and then its argument prototype would still apply. */
d213114b 31336char j1l ();
158e0e64 31337int
31338main ()
31339{
82eaf560 31340j1l ();
158e0e64 31341 ;
31342 return 0;
31343}
31344_ACEOF
31345rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 31346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31347 (eval $ac_link) 2>conftest.er1
158e0e64 31348 ac_status=$?
31349 grep -v '^ *+' conftest.er1 >conftest.err
31350 rm -f conftest.er1
31351 cat conftest.err >&5
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 31353 (exit $ac_status); } &&
31354 { ac_try='test -z "$ac_c_werror_flag"
31355 || test ! -s conftest.err'
31356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31357 (eval $ac_try) 2>&5
31358 ac_status=$?
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); }; } &&
31361 { ac_try='test -s conftest$ac_exeext'
31362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31363 (eval $ac_try) 2>&5
31364 ac_status=$?
31365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366 (exit $ac_status); }; }; then
d213114b 31367 ac_cv_lib_m_j1l=yes
158e0e64 31368else
31369 echo "$as_me: failed program was:" >&5
31370sed 's/^/| /' conftest.$ac_ext >&5
31371
82eaf560 31372ac_cv_lib_m_j1l=no
158e0e64 31373fi
82eaf560 31374rm -f conftest.err conftest.$ac_objext \
158e0e64 31375 conftest$ac_exeext conftest.$ac_ext
31376LIBS=$ac_check_lib_save_LIBS
31377fi
82eaf560 31378echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1l" >&5
31379echo "${ECHO_T}$ac_cv_lib_m_j1l" >&6
d213114b 31380if test $ac_cv_lib_m_j1l = yes; then
158e0e64 31381
31382cat >>confdefs.h <<\_ACEOF
d213114b 31383#define HAVE_J1L 1
158e0e64 31384_ACEOF
31385
31386fi
31387
82eaf560 31388echo "$as_me:$LINENO: checking for jnf in -lm" >&5
31389echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
d213114b 31390if test "${ac_cv_lib_m_jnf+set}" = set; then
158e0e64 31391 echo $ECHO_N "(cached) $ECHO_C" >&6
31392else
31393 ac_check_lib_save_LIBS=$LIBS
31394LIBS="-lm $LIBS"
b52ee437 31395if test x$gcc_no_link = xyes; then
31396 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31397echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31398 { (exit 1); exit 1; }; }
31399fi
158e0e64 31400cat >conftest.$ac_ext <<_ACEOF
31401/* confdefs.h. */
31402_ACEOF
31403cat confdefs.h >>conftest.$ac_ext
31404cat >>conftest.$ac_ext <<_ACEOF
31405/* end confdefs.h. */
31406
82eaf560 31407/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 31408#ifdef __cplusplus
31409extern "C"
31410#endif
82eaf560 31411/* We use char because int might match the return type of a gcc2
31412 builtin and then its argument prototype would still apply. */
d213114b 31413char jnf ();
158e0e64 31414int
31415main ()
31416{
82eaf560 31417jnf ();
158e0e64 31418 ;
31419 return 0;
31420}
31421_ACEOF
31422rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 31423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31424 (eval $ac_link) 2>conftest.er1
158e0e64 31425 ac_status=$?
31426 grep -v '^ *+' conftest.er1 >conftest.err
31427 rm -f conftest.er1
31428 cat conftest.err >&5
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 31430 (exit $ac_status); } &&
31431 { ac_try='test -z "$ac_c_werror_flag"
31432 || test ! -s conftest.err'
31433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31434 (eval $ac_try) 2>&5
31435 ac_status=$?
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; } &&
31438 { ac_try='test -s conftest$ac_exeext'
31439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31440 (eval $ac_try) 2>&5
31441 ac_status=$?
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); }; }; then
d213114b 31444 ac_cv_lib_m_jnf=yes
158e0e64 31445else
31446 echo "$as_me: failed program was:" >&5
31447sed 's/^/| /' conftest.$ac_ext >&5
31448
82eaf560 31449ac_cv_lib_m_jnf=no
158e0e64 31450fi
82eaf560 31451rm -f conftest.err conftest.$ac_objext \
158e0e64 31452 conftest$ac_exeext conftest.$ac_ext
31453LIBS=$ac_check_lib_save_LIBS
31454fi
82eaf560 31455echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
31456echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
d213114b 31457if test $ac_cv_lib_m_jnf = yes; then
158e0e64 31458
31459cat >>confdefs.h <<\_ACEOF
d213114b 31460#define HAVE_JNF 1
158e0e64 31461_ACEOF
31462
31463fi
31464
82eaf560 31465echo "$as_me:$LINENO: checking for jn in -lm" >&5
31466echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
d213114b 31467if test "${ac_cv_lib_m_jn+set}" = set; then
158e0e64 31468 echo $ECHO_N "(cached) $ECHO_C" >&6
31469else
31470 ac_check_lib_save_LIBS=$LIBS
31471LIBS="-lm $LIBS"
b52ee437 31472if test x$gcc_no_link = xyes; then
31473 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31474echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31475 { (exit 1); exit 1; }; }
31476fi
158e0e64 31477cat >conftest.$ac_ext <<_ACEOF
31478/* confdefs.h. */
31479_ACEOF
31480cat confdefs.h >>conftest.$ac_ext
31481cat >>conftest.$ac_ext <<_ACEOF
31482/* end confdefs.h. */
31483
82eaf560 31484/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 31485#ifdef __cplusplus
31486extern "C"
31487#endif
82eaf560 31488/* We use char because int might match the return type of a gcc2
31489 builtin and then its argument prototype would still apply. */
d213114b 31490char jn ();
158e0e64 31491int
31492main ()
31493{
82eaf560 31494jn ();
158e0e64 31495 ;
31496 return 0;
31497}
31498_ACEOF
31499rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 31500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31501 (eval $ac_link) 2>conftest.er1
158e0e64 31502 ac_status=$?
31503 grep -v '^ *+' conftest.er1 >conftest.err
31504 rm -f conftest.er1
31505 cat conftest.err >&5
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 31507 (exit $ac_status); } &&
31508 { ac_try='test -z "$ac_c_werror_flag"
31509 || test ! -s conftest.err'
31510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31511 (eval $ac_try) 2>&5
31512 ac_status=$?
31513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31514 (exit $ac_status); }; } &&
31515 { ac_try='test -s conftest$ac_exeext'
31516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31517 (eval $ac_try) 2>&5
31518 ac_status=$?
31519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31520 (exit $ac_status); }; }; then
d213114b 31521 ac_cv_lib_m_jn=yes
158e0e64 31522else
31523 echo "$as_me: failed program was:" >&5
31524sed 's/^/| /' conftest.$ac_ext >&5
31525
82eaf560 31526ac_cv_lib_m_jn=no
158e0e64 31527fi
82eaf560 31528rm -f conftest.err conftest.$ac_objext \
158e0e64 31529 conftest$ac_exeext conftest.$ac_ext
31530LIBS=$ac_check_lib_save_LIBS
31531fi
82eaf560 31532echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
31533echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
d213114b 31534if test $ac_cv_lib_m_jn = yes; then
158e0e64 31535
31536cat >>confdefs.h <<\_ACEOF
d213114b 31537#define HAVE_JN 1
158e0e64 31538_ACEOF
31539
31540fi
31541
82eaf560 31542echo "$as_me:$LINENO: checking for jnl in -lm" >&5
31543echo $ECHO_N "checking for jnl in -lm... $ECHO_C" >&6
d213114b 31544if test "${ac_cv_lib_m_jnl+set}" = set; then
158e0e64 31545 echo $ECHO_N "(cached) $ECHO_C" >&6
31546else
31547 ac_check_lib_save_LIBS=$LIBS
31548LIBS="-lm $LIBS"
b52ee437 31549if test x$gcc_no_link = xyes; then
31550 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31551echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31552 { (exit 1); exit 1; }; }
31553fi
158e0e64 31554cat >conftest.$ac_ext <<_ACEOF
31555/* confdefs.h. */
31556_ACEOF
31557cat confdefs.h >>conftest.$ac_ext
31558cat >>conftest.$ac_ext <<_ACEOF
31559/* end confdefs.h. */
31560
82eaf560 31561/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 31562#ifdef __cplusplus
31563extern "C"
31564#endif
82eaf560 31565/* We use char because int might match the return type of a gcc2
31566 builtin and then its argument prototype would still apply. */
d213114b 31567char jnl ();
158e0e64 31568int
31569main ()
31570{
82eaf560 31571jnl ();
158e0e64 31572 ;
31573 return 0;
31574}
31575_ACEOF
31576rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 31577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31578 (eval $ac_link) 2>conftest.er1
158e0e64 31579 ac_status=$?
31580 grep -v '^ *+' conftest.er1 >conftest.err
31581 rm -f conftest.er1
31582 cat conftest.err >&5
31583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 31584 (exit $ac_status); } &&
31585 { ac_try='test -z "$ac_c_werror_flag"
31586 || test ! -s conftest.err'
31587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31588 (eval $ac_try) 2>&5
31589 ac_status=$?
31590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591 (exit $ac_status); }; } &&
31592 { ac_try='test -s conftest$ac_exeext'
31593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31594 (eval $ac_try) 2>&5
31595 ac_status=$?
31596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31597 (exit $ac_status); }; }; then
d213114b 31598 ac_cv_lib_m_jnl=yes
158e0e64 31599else
31600 echo "$as_me: failed program was:" >&5
31601sed 's/^/| /' conftest.$ac_ext >&5
31602
82eaf560 31603ac_cv_lib_m_jnl=no
158e0e64 31604fi
82eaf560 31605rm -f conftest.err conftest.$ac_objext \
158e0e64 31606 conftest$ac_exeext conftest.$ac_ext
31607LIBS=$ac_check_lib_save_LIBS
31608fi
82eaf560 31609echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnl" >&5
31610echo "${ECHO_T}$ac_cv_lib_m_jnl" >&6
d213114b 31611if test $ac_cv_lib_m_jnl = yes; then
158e0e64 31612
31613cat >>confdefs.h <<\_ACEOF
d213114b 31614#define HAVE_JNL 1
158e0e64 31615_ACEOF
31616
31617fi
31618
82eaf560 31619echo "$as_me:$LINENO: checking for y0f in -lm" >&5
31620echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
d213114b 31621if test "${ac_cv_lib_m_y0f+set}" = set; then
158e0e64 31622 echo $ECHO_N "(cached) $ECHO_C" >&6
31623else
31624 ac_check_lib_save_LIBS=$LIBS
31625LIBS="-lm $LIBS"
b52ee437 31626if test x$gcc_no_link = xyes; then
31627 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31628echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31629 { (exit 1); exit 1; }; }
31630fi
158e0e64 31631cat >conftest.$ac_ext <<_ACEOF
31632/* confdefs.h. */
31633_ACEOF
31634cat confdefs.h >>conftest.$ac_ext
31635cat >>conftest.$ac_ext <<_ACEOF
31636/* end confdefs.h. */
31637
82eaf560 31638/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 31639#ifdef __cplusplus
31640extern "C"
31641#endif
82eaf560 31642/* We use char because int might match the return type of a gcc2
31643 builtin and then its argument prototype would still apply. */
d213114b 31644char y0f ();
158e0e64 31645int
31646main ()
31647{
82eaf560 31648y0f ();
158e0e64 31649 ;
31650 return 0;
31651}
31652_ACEOF
31653rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 31654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31655 (eval $ac_link) 2>conftest.er1
158e0e64 31656 ac_status=$?
31657 grep -v '^ *+' conftest.er1 >conftest.err
31658 rm -f conftest.er1
31659 cat conftest.err >&5
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 31661 (exit $ac_status); } &&
31662 { ac_try='test -z "$ac_c_werror_flag"
31663 || test ! -s conftest.err'
31664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31665 (eval $ac_try) 2>&5
31666 ac_status=$?
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); }; } &&
31669 { ac_try='test -s conftest$ac_exeext'
31670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31671 (eval $ac_try) 2>&5
31672 ac_status=$?
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; }; then
d213114b 31675 ac_cv_lib_m_y0f=yes
158e0e64 31676else
31677 echo "$as_me: failed program was:" >&5
31678sed 's/^/| /' conftest.$ac_ext >&5
31679
82eaf560 31680ac_cv_lib_m_y0f=no
158e0e64 31681fi
82eaf560 31682rm -f conftest.err conftest.$ac_objext \
158e0e64 31683 conftest$ac_exeext conftest.$ac_ext
31684LIBS=$ac_check_lib_save_LIBS
31685fi
82eaf560 31686echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
31687echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
d213114b 31688if test $ac_cv_lib_m_y0f = yes; then
158e0e64 31689
31690cat >>confdefs.h <<\_ACEOF
d213114b 31691#define HAVE_Y0F 1
158e0e64 31692_ACEOF
31693
31694fi
31695
82eaf560 31696echo "$as_me:$LINENO: checking for y0 in -lm" >&5
31697echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
d213114b 31698if test "${ac_cv_lib_m_y0+set}" = set; then
158e0e64 31699 echo $ECHO_N "(cached) $ECHO_C" >&6
31700else
31701 ac_check_lib_save_LIBS=$LIBS
31702LIBS="-lm $LIBS"
b52ee437 31703if test x$gcc_no_link = xyes; then
31704 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31705echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31706 { (exit 1); exit 1; }; }
31707fi
158e0e64 31708cat >conftest.$ac_ext <<_ACEOF
31709/* confdefs.h. */
31710_ACEOF
31711cat confdefs.h >>conftest.$ac_ext
31712cat >>conftest.$ac_ext <<_ACEOF
31713/* end confdefs.h. */
31714
82eaf560 31715/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 31716#ifdef __cplusplus
31717extern "C"
31718#endif
82eaf560 31719/* We use char because int might match the return type of a gcc2
31720 builtin and then its argument prototype would still apply. */
d213114b 31721char y0 ();
158e0e64 31722int
31723main ()
31724{
82eaf560 31725y0 ();
158e0e64 31726 ;
31727 return 0;
31728}
31729_ACEOF
31730rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 31731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31732 (eval $ac_link) 2>conftest.er1
158e0e64 31733 ac_status=$?
31734 grep -v '^ *+' conftest.er1 >conftest.err
31735 rm -f conftest.er1
31736 cat conftest.err >&5
31737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 31738 (exit $ac_status); } &&
31739 { ac_try='test -z "$ac_c_werror_flag"
31740 || test ! -s conftest.err'
31741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31742 (eval $ac_try) 2>&5
31743 ac_status=$?
31744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745 (exit $ac_status); }; } &&
31746 { ac_try='test -s conftest$ac_exeext'
31747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31748 (eval $ac_try) 2>&5
31749 ac_status=$?
31750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751 (exit $ac_status); }; }; then
d213114b 31752 ac_cv_lib_m_y0=yes
158e0e64 31753else
31754 echo "$as_me: failed program was:" >&5
31755sed 's/^/| /' conftest.$ac_ext >&5
31756
82eaf560 31757ac_cv_lib_m_y0=no
158e0e64 31758fi
82eaf560 31759rm -f conftest.err conftest.$ac_objext \
158e0e64 31760 conftest$ac_exeext conftest.$ac_ext
31761LIBS=$ac_check_lib_save_LIBS
31762fi
82eaf560 31763echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
31764echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
d213114b 31765if test $ac_cv_lib_m_y0 = yes; then
158e0e64 31766
31767cat >>confdefs.h <<\_ACEOF
d213114b 31768#define HAVE_Y0 1
158e0e64 31769_ACEOF
31770
31771fi
31772
82eaf560 31773echo "$as_me:$LINENO: checking for y0l in -lm" >&5
31774echo $ECHO_N "checking for y0l in -lm... $ECHO_C" >&6
d213114b 31775if test "${ac_cv_lib_m_y0l+set}" = set; then
158e0e64 31776 echo $ECHO_N "(cached) $ECHO_C" >&6
31777else
31778 ac_check_lib_save_LIBS=$LIBS
31779LIBS="-lm $LIBS"
b52ee437 31780if test x$gcc_no_link = xyes; then
31781 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31782echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31783 { (exit 1); exit 1; }; }
31784fi
158e0e64 31785cat >conftest.$ac_ext <<_ACEOF
31786/* confdefs.h. */
31787_ACEOF
31788cat confdefs.h >>conftest.$ac_ext
31789cat >>conftest.$ac_ext <<_ACEOF
31790/* end confdefs.h. */
31791
82eaf560 31792/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 31793#ifdef __cplusplus
31794extern "C"
31795#endif
82eaf560 31796/* We use char because int might match the return type of a gcc2
31797 builtin and then its argument prototype would still apply. */
d213114b 31798char y0l ();
158e0e64 31799int
31800main ()
31801{
82eaf560 31802y0l ();
158e0e64 31803 ;
31804 return 0;
31805}
31806_ACEOF
31807rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 31808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31809 (eval $ac_link) 2>conftest.er1
158e0e64 31810 ac_status=$?
31811 grep -v '^ *+' conftest.er1 >conftest.err
31812 rm -f conftest.er1
31813 cat conftest.err >&5
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 31815 (exit $ac_status); } &&
31816 { ac_try='test -z "$ac_c_werror_flag"
31817 || test ! -s conftest.err'
31818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31819 (eval $ac_try) 2>&5
31820 ac_status=$?
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); }; } &&
31823 { ac_try='test -s conftest$ac_exeext'
31824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31825 (eval $ac_try) 2>&5
31826 ac_status=$?
31827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828 (exit $ac_status); }; }; then
d213114b 31829 ac_cv_lib_m_y0l=yes
158e0e64 31830else
31831 echo "$as_me: failed program was:" >&5
31832sed 's/^/| /' conftest.$ac_ext >&5
31833
82eaf560 31834ac_cv_lib_m_y0l=no
158e0e64 31835fi
82eaf560 31836rm -f conftest.err conftest.$ac_objext \
158e0e64 31837 conftest$ac_exeext conftest.$ac_ext
31838LIBS=$ac_check_lib_save_LIBS
31839fi
82eaf560 31840echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0l" >&5
31841echo "${ECHO_T}$ac_cv_lib_m_y0l" >&6
d213114b 31842if test $ac_cv_lib_m_y0l = yes; then
158e0e64 31843
31844cat >>confdefs.h <<\_ACEOF
d213114b 31845#define HAVE_Y0L 1
158e0e64 31846_ACEOF
31847
31848fi
31849
82eaf560 31850echo "$as_me:$LINENO: checking for y1f in -lm" >&5
31851echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
d213114b 31852if test "${ac_cv_lib_m_y1f+set}" = set; then
158e0e64 31853 echo $ECHO_N "(cached) $ECHO_C" >&6
31854else
31855 ac_check_lib_save_LIBS=$LIBS
31856LIBS="-lm $LIBS"
b52ee437 31857if test x$gcc_no_link = xyes; then
31858 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31859echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31860 { (exit 1); exit 1; }; }
31861fi
158e0e64 31862cat >conftest.$ac_ext <<_ACEOF
31863/* confdefs.h. */
31864_ACEOF
31865cat confdefs.h >>conftest.$ac_ext
31866cat >>conftest.$ac_ext <<_ACEOF
31867/* end confdefs.h. */
31868
82eaf560 31869/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 31870#ifdef __cplusplus
31871extern "C"
31872#endif
82eaf560 31873/* We use char because int might match the return type of a gcc2
31874 builtin and then its argument prototype would still apply. */
d213114b 31875char y1f ();
158e0e64 31876int
31877main ()
31878{
82eaf560 31879y1f ();
158e0e64 31880 ;
31881 return 0;
31882}
31883_ACEOF
31884rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 31885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31886 (eval $ac_link) 2>conftest.er1
158e0e64 31887 ac_status=$?
31888 grep -v '^ *+' conftest.er1 >conftest.err
31889 rm -f conftest.er1
31890 cat conftest.err >&5
31891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 31892 (exit $ac_status); } &&
31893 { ac_try='test -z "$ac_c_werror_flag"
31894 || test ! -s conftest.err'
31895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31896 (eval $ac_try) 2>&5
31897 ac_status=$?
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); }; } &&
31900 { ac_try='test -s conftest$ac_exeext'
31901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31902 (eval $ac_try) 2>&5
31903 ac_status=$?
31904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905 (exit $ac_status); }; }; then
d213114b 31906 ac_cv_lib_m_y1f=yes
158e0e64 31907else
31908 echo "$as_me: failed program was:" >&5
31909sed 's/^/| /' conftest.$ac_ext >&5
31910
82eaf560 31911ac_cv_lib_m_y1f=no
158e0e64 31912fi
82eaf560 31913rm -f conftest.err conftest.$ac_objext \
158e0e64 31914 conftest$ac_exeext conftest.$ac_ext
31915LIBS=$ac_check_lib_save_LIBS
31916fi
82eaf560 31917echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
31918echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
d213114b 31919if test $ac_cv_lib_m_y1f = yes; then
158e0e64 31920
31921cat >>confdefs.h <<\_ACEOF
d213114b 31922#define HAVE_Y1F 1
158e0e64 31923_ACEOF
31924
31925fi
31926
82eaf560 31927echo "$as_me:$LINENO: checking for y1 in -lm" >&5
31928echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
d213114b 31929if test "${ac_cv_lib_m_y1+set}" = set; then
158e0e64 31930 echo $ECHO_N "(cached) $ECHO_C" >&6
31931else
31932 ac_check_lib_save_LIBS=$LIBS
31933LIBS="-lm $LIBS"
b52ee437 31934if test x$gcc_no_link = xyes; then
31935 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31936echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31937 { (exit 1); exit 1; }; }
31938fi
158e0e64 31939cat >conftest.$ac_ext <<_ACEOF
31940/* confdefs.h. */
31941_ACEOF
31942cat confdefs.h >>conftest.$ac_ext
31943cat >>conftest.$ac_ext <<_ACEOF
31944/* end confdefs.h. */
31945
82eaf560 31946/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 31947#ifdef __cplusplus
31948extern "C"
31949#endif
82eaf560 31950/* We use char because int might match the return type of a gcc2
31951 builtin and then its argument prototype would still apply. */
d213114b 31952char y1 ();
158e0e64 31953int
31954main ()
31955{
82eaf560 31956y1 ();
158e0e64 31957 ;
31958 return 0;
31959}
31960_ACEOF
31961rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 31962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31963 (eval $ac_link) 2>conftest.er1
158e0e64 31964 ac_status=$?
31965 grep -v '^ *+' conftest.er1 >conftest.err
31966 rm -f conftest.er1
31967 cat conftest.err >&5
31968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 31969 (exit $ac_status); } &&
31970 { ac_try='test -z "$ac_c_werror_flag"
31971 || test ! -s conftest.err'
31972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31973 (eval $ac_try) 2>&5
31974 ac_status=$?
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); }; } &&
31977 { ac_try='test -s conftest$ac_exeext'
31978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31979 (eval $ac_try) 2>&5
31980 ac_status=$?
31981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982 (exit $ac_status); }; }; then
d213114b 31983 ac_cv_lib_m_y1=yes
158e0e64 31984else
31985 echo "$as_me: failed program was:" >&5
31986sed 's/^/| /' conftest.$ac_ext >&5
31987
82eaf560 31988ac_cv_lib_m_y1=no
158e0e64 31989fi
82eaf560 31990rm -f conftest.err conftest.$ac_objext \
158e0e64 31991 conftest$ac_exeext conftest.$ac_ext
31992LIBS=$ac_check_lib_save_LIBS
31993fi
82eaf560 31994echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
31995echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
d213114b 31996if test $ac_cv_lib_m_y1 = yes; then
158e0e64 31997
31998cat >>confdefs.h <<\_ACEOF
d213114b 31999#define HAVE_Y1 1
158e0e64 32000_ACEOF
32001
32002fi
32003
82eaf560 32004echo "$as_me:$LINENO: checking for y1l in -lm" >&5
32005echo $ECHO_N "checking for y1l in -lm... $ECHO_C" >&6
d213114b 32006if test "${ac_cv_lib_m_y1l+set}" = set; then
158e0e64 32007 echo $ECHO_N "(cached) $ECHO_C" >&6
32008else
32009 ac_check_lib_save_LIBS=$LIBS
32010LIBS="-lm $LIBS"
b52ee437 32011if test x$gcc_no_link = xyes; then
32012 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32013echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32014 { (exit 1); exit 1; }; }
32015fi
158e0e64 32016cat >conftest.$ac_ext <<_ACEOF
32017/* confdefs.h. */
32018_ACEOF
32019cat confdefs.h >>conftest.$ac_ext
32020cat >>conftest.$ac_ext <<_ACEOF
32021/* end confdefs.h. */
32022
82eaf560 32023/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 32024#ifdef __cplusplus
32025extern "C"
32026#endif
82eaf560 32027/* We use char because int might match the return type of a gcc2
32028 builtin and then its argument prototype would still apply. */
d213114b 32029char y1l ();
158e0e64 32030int
32031main ()
32032{
82eaf560 32033y1l ();
158e0e64 32034 ;
32035 return 0;
32036}
32037_ACEOF
32038rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 32039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32040 (eval $ac_link) 2>conftest.er1
158e0e64 32041 ac_status=$?
32042 grep -v '^ *+' conftest.er1 >conftest.err
32043 rm -f conftest.er1
32044 cat conftest.err >&5
32045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 32046 (exit $ac_status); } &&
32047 { ac_try='test -z "$ac_c_werror_flag"
32048 || test ! -s conftest.err'
32049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32050 (eval $ac_try) 2>&5
32051 ac_status=$?
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; } &&
32054 { ac_try='test -s conftest$ac_exeext'
32055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32056 (eval $ac_try) 2>&5
32057 ac_status=$?
32058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059 (exit $ac_status); }; }; then
d213114b 32060 ac_cv_lib_m_y1l=yes
158e0e64 32061else
32062 echo "$as_me: failed program was:" >&5
32063sed 's/^/| /' conftest.$ac_ext >&5
32064
82eaf560 32065ac_cv_lib_m_y1l=no
158e0e64 32066fi
82eaf560 32067rm -f conftest.err conftest.$ac_objext \
158e0e64 32068 conftest$ac_exeext conftest.$ac_ext
32069LIBS=$ac_check_lib_save_LIBS
32070fi
82eaf560 32071echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1l" >&5
32072echo "${ECHO_T}$ac_cv_lib_m_y1l" >&6
d213114b 32073if test $ac_cv_lib_m_y1l = yes; then
158e0e64 32074
32075cat >>confdefs.h <<\_ACEOF
d213114b 32076#define HAVE_Y1L 1
158e0e64 32077_ACEOF
32078
32079fi
32080
82eaf560 32081echo "$as_me:$LINENO: checking for ynf in -lm" >&5
32082echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
d213114b 32083if test "${ac_cv_lib_m_ynf+set}" = set; then
158e0e64 32084 echo $ECHO_N "(cached) $ECHO_C" >&6
32085else
32086 ac_check_lib_save_LIBS=$LIBS
32087LIBS="-lm $LIBS"
b52ee437 32088if test x$gcc_no_link = xyes; then
32089 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32090echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32091 { (exit 1); exit 1; }; }
32092fi
158e0e64 32093cat >conftest.$ac_ext <<_ACEOF
32094/* confdefs.h. */
32095_ACEOF
32096cat confdefs.h >>conftest.$ac_ext
32097cat >>conftest.$ac_ext <<_ACEOF
32098/* end confdefs.h. */
32099
82eaf560 32100/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 32101#ifdef __cplusplus
32102extern "C"
32103#endif
82eaf560 32104/* We use char because int might match the return type of a gcc2
32105 builtin and then its argument prototype would still apply. */
d213114b 32106char ynf ();
158e0e64 32107int
32108main ()
32109{
82eaf560 32110ynf ();
158e0e64 32111 ;
32112 return 0;
32113}
32114_ACEOF
32115rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 32116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32117 (eval $ac_link) 2>conftest.er1
158e0e64 32118 ac_status=$?
32119 grep -v '^ *+' conftest.er1 >conftest.err
32120 rm -f conftest.er1
32121 cat conftest.err >&5
32122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 32123 (exit $ac_status); } &&
32124 { ac_try='test -z "$ac_c_werror_flag"
32125 || test ! -s conftest.err'
32126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32127 (eval $ac_try) 2>&5
32128 ac_status=$?
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); }; } &&
32131 { ac_try='test -s conftest$ac_exeext'
32132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32133 (eval $ac_try) 2>&5
32134 ac_status=$?
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); }; }; then
d213114b 32137 ac_cv_lib_m_ynf=yes
158e0e64 32138else
32139 echo "$as_me: failed program was:" >&5
32140sed 's/^/| /' conftest.$ac_ext >&5
32141
82eaf560 32142ac_cv_lib_m_ynf=no
158e0e64 32143fi
82eaf560 32144rm -f conftest.err conftest.$ac_objext \
158e0e64 32145 conftest$ac_exeext conftest.$ac_ext
32146LIBS=$ac_check_lib_save_LIBS
32147fi
82eaf560 32148echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
32149echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
d213114b 32150if test $ac_cv_lib_m_ynf = yes; then
158e0e64 32151
32152cat >>confdefs.h <<\_ACEOF
d213114b 32153#define HAVE_YNF 1
158e0e64 32154_ACEOF
32155
32156fi
32157
82eaf560 32158echo "$as_me:$LINENO: checking for yn in -lm" >&5
32159echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
158e0e64 32160if test "${ac_cv_lib_m_yn+set}" = set; then
32161 echo $ECHO_N "(cached) $ECHO_C" >&6
32162else
32163 ac_check_lib_save_LIBS=$LIBS
32164LIBS="-lm $LIBS"
b52ee437 32165if test x$gcc_no_link = xyes; then
32166 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32167echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32168 { (exit 1); exit 1; }; }
32169fi
158e0e64 32170cat >conftest.$ac_ext <<_ACEOF
32171/* confdefs.h. */
32172_ACEOF
32173cat confdefs.h >>conftest.$ac_ext
32174cat >>conftest.$ac_ext <<_ACEOF
32175/* end confdefs.h. */
32176
82eaf560 32177/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 32178#ifdef __cplusplus
32179extern "C"
32180#endif
82eaf560 32181/* We use char because int might match the return type of a gcc2
32182 builtin and then its argument prototype would still apply. */
158e0e64 32183char yn ();
32184int
32185main ()
32186{
82eaf560 32187yn ();
158e0e64 32188 ;
32189 return 0;
32190}
32191_ACEOF
32192rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 32193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32194 (eval $ac_link) 2>conftest.er1
158e0e64 32195 ac_status=$?
32196 grep -v '^ *+' conftest.er1 >conftest.err
32197 rm -f conftest.er1
32198 cat conftest.err >&5
32199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 32200 (exit $ac_status); } &&
32201 { ac_try='test -z "$ac_c_werror_flag"
32202 || test ! -s conftest.err'
32203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32204 (eval $ac_try) 2>&5
32205 ac_status=$?
32206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207 (exit $ac_status); }; } &&
32208 { ac_try='test -s conftest$ac_exeext'
32209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32210 (eval $ac_try) 2>&5
32211 ac_status=$?
32212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213 (exit $ac_status); }; }; then
158e0e64 32214 ac_cv_lib_m_yn=yes
32215else
32216 echo "$as_me: failed program was:" >&5
32217sed 's/^/| /' conftest.$ac_ext >&5
32218
82eaf560 32219ac_cv_lib_m_yn=no
158e0e64 32220fi
82eaf560 32221rm -f conftest.err conftest.$ac_objext \
158e0e64 32222 conftest$ac_exeext conftest.$ac_ext
32223LIBS=$ac_check_lib_save_LIBS
32224fi
82eaf560 32225echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
32226echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
158e0e64 32227if test $ac_cv_lib_m_yn = yes; then
32228
32229cat >>confdefs.h <<\_ACEOF
32230#define HAVE_YN 1
32231_ACEOF
32232
32233fi
32234
82eaf560 32235echo "$as_me:$LINENO: checking for ynl in -lm" >&5
32236echo $ECHO_N "checking for ynl in -lm... $ECHO_C" >&6
d213114b 32237if test "${ac_cv_lib_m_ynl+set}" = set; then
158e0e64 32238 echo $ECHO_N "(cached) $ECHO_C" >&6
32239else
32240 ac_check_lib_save_LIBS=$LIBS
32241LIBS="-lm $LIBS"
b52ee437 32242if test x$gcc_no_link = xyes; then
32243 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32244echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32245 { (exit 1); exit 1; }; }
32246fi
158e0e64 32247cat >conftest.$ac_ext <<_ACEOF
32248/* confdefs.h. */
32249_ACEOF
32250cat confdefs.h >>conftest.$ac_ext
32251cat >>conftest.$ac_ext <<_ACEOF
32252/* end confdefs.h. */
32253
82eaf560 32254/* Override any gcc2 internal prototype to avoid an error. */
158e0e64 32255#ifdef __cplusplus
32256extern "C"
32257#endif
82eaf560 32258/* We use char because int might match the return type of a gcc2
32259 builtin and then its argument prototype would still apply. */
d213114b 32260char ynl ();
158e0e64 32261int
32262main ()
32263{
82eaf560 32264ynl ();
158e0e64 32265 ;
32266 return 0;
32267}
32268_ACEOF
32269rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 32270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32271 (eval $ac_link) 2>conftest.er1
158e0e64 32272 ac_status=$?
32273 grep -v '^ *+' conftest.er1 >conftest.err
32274 rm -f conftest.er1
32275 cat conftest.err >&5
32276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 32277 (exit $ac_status); } &&
32278 { ac_try='test -z "$ac_c_werror_flag"
32279 || test ! -s conftest.err'
32280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32281 (eval $ac_try) 2>&5
32282 ac_status=$?
32283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284 (exit $ac_status); }; } &&
32285 { ac_try='test -s conftest$ac_exeext'
32286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32287 (eval $ac_try) 2>&5
32288 ac_status=$?
32289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290 (exit $ac_status); }; }; then
d213114b 32291 ac_cv_lib_m_ynl=yes
158e0e64 32292else
32293 echo "$as_me: failed program was:" >&5
32294sed 's/^/| /' conftest.$ac_ext >&5
32295
82eaf560 32296ac_cv_lib_m_ynl=no
158e0e64 32297fi
82eaf560 32298rm -f conftest.err conftest.$ac_objext \
158e0e64 32299 conftest$ac_exeext conftest.$ac_ext
32300LIBS=$ac_check_lib_save_LIBS
32301fi
82eaf560 32302echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynl" >&5
32303echo "${ECHO_T}$ac_cv_lib_m_ynl" >&6
d213114b 32304if test $ac_cv_lib_m_ynl = yes; then
158e0e64 32305
32306cat >>confdefs.h <<\_ACEOF
d213114b 32307#define HAVE_YNL 1
158e0e64 32308_ACEOF
32309
32310fi
32311
82eaf560 32312echo "$as_me:$LINENO: checking for tgamma in -lm" >&5
32313echo $ECHO_N "checking for tgamma in -lm... $ECHO_C" >&6
6d516d29 32314if test "${ac_cv_lib_m_tgamma+set}" = set; then
32315 echo $ECHO_N "(cached) $ECHO_C" >&6
32316else
32317 ac_check_lib_save_LIBS=$LIBS
32318LIBS="-lm $LIBS"
32319if test x$gcc_no_link = xyes; then
32320 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32321echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32322 { (exit 1); exit 1; }; }
32323fi
32324cat >conftest.$ac_ext <<_ACEOF
32325/* confdefs.h. */
32326_ACEOF
32327cat confdefs.h >>conftest.$ac_ext
32328cat >>conftest.$ac_ext <<_ACEOF
32329/* end confdefs.h. */
32330
82eaf560 32331/* Override any gcc2 internal prototype to avoid an error. */
6d516d29 32332#ifdef __cplusplus
32333extern "C"
32334#endif
82eaf560 32335/* We use char because int might match the return type of a gcc2
32336 builtin and then its argument prototype would still apply. */
6d516d29 32337char tgamma ();
32338int
32339main ()
32340{
82eaf560 32341tgamma ();
6d516d29 32342 ;
32343 return 0;
32344}
32345_ACEOF
32346rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 32347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32348 (eval $ac_link) 2>conftest.er1
6d516d29 32349 ac_status=$?
32350 grep -v '^ *+' conftest.er1 >conftest.err
32351 rm -f conftest.er1
32352 cat conftest.err >&5
32353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 32354 (exit $ac_status); } &&
32355 { ac_try='test -z "$ac_c_werror_flag"
32356 || test ! -s conftest.err'
32357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32358 (eval $ac_try) 2>&5
32359 ac_status=$?
32360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361 (exit $ac_status); }; } &&
32362 { ac_try='test -s conftest$ac_exeext'
32363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32364 (eval $ac_try) 2>&5
32365 ac_status=$?
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); }; }; then
6d516d29 32368 ac_cv_lib_m_tgamma=yes
32369else
32370 echo "$as_me: failed program was:" >&5
32371sed 's/^/| /' conftest.$ac_ext >&5
32372
82eaf560 32373ac_cv_lib_m_tgamma=no
6d516d29 32374fi
82eaf560 32375rm -f conftest.err conftest.$ac_objext \
6d516d29 32376 conftest$ac_exeext conftest.$ac_ext
32377LIBS=$ac_check_lib_save_LIBS
32378fi
82eaf560 32379echo "$as_me:$LINENO: result: $ac_cv_lib_m_tgamma" >&5
32380echo "${ECHO_T}$ac_cv_lib_m_tgamma" >&6
6d516d29 32381if test $ac_cv_lib_m_tgamma = yes; then
32382
32383cat >>confdefs.h <<\_ACEOF
32384#define HAVE_TGAMMA 1
32385_ACEOF
32386
32387fi
32388
82eaf560 32389echo "$as_me:$LINENO: checking for tgammaf in -lm" >&5
32390echo $ECHO_N "checking for tgammaf in -lm... $ECHO_C" >&6
6d516d29 32391if test "${ac_cv_lib_m_tgammaf+set}" = set; then
32392 echo $ECHO_N "(cached) $ECHO_C" >&6
32393else
32394 ac_check_lib_save_LIBS=$LIBS
32395LIBS="-lm $LIBS"
32396if test x$gcc_no_link = xyes; then
32397 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32398echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32399 { (exit 1); exit 1; }; }
32400fi
32401cat >conftest.$ac_ext <<_ACEOF
32402/* confdefs.h. */
32403_ACEOF
32404cat confdefs.h >>conftest.$ac_ext
32405cat >>conftest.$ac_ext <<_ACEOF
32406/* end confdefs.h. */
32407
82eaf560 32408/* Override any gcc2 internal prototype to avoid an error. */
6d516d29 32409#ifdef __cplusplus
32410extern "C"
32411#endif
82eaf560 32412/* We use char because int might match the return type of a gcc2
32413 builtin and then its argument prototype would still apply. */
6d516d29 32414char tgammaf ();
32415int
32416main ()
32417{
82eaf560 32418tgammaf ();
6d516d29 32419 ;
32420 return 0;
32421}
32422_ACEOF
32423rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 32424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32425 (eval $ac_link) 2>conftest.er1
6d516d29 32426 ac_status=$?
32427 grep -v '^ *+' conftest.er1 >conftest.err
32428 rm -f conftest.er1
32429 cat conftest.err >&5
32430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 32431 (exit $ac_status); } &&
32432 { ac_try='test -z "$ac_c_werror_flag"
32433 || test ! -s conftest.err'
32434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32435 (eval $ac_try) 2>&5
32436 ac_status=$?
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); }; } &&
32439 { ac_try='test -s conftest$ac_exeext'
32440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32441 (eval $ac_try) 2>&5
32442 ac_status=$?
32443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444 (exit $ac_status); }; }; then
6d516d29 32445 ac_cv_lib_m_tgammaf=yes
32446else
32447 echo "$as_me: failed program was:" >&5
32448sed 's/^/| /' conftest.$ac_ext >&5
32449
82eaf560 32450ac_cv_lib_m_tgammaf=no
6d516d29 32451fi
82eaf560 32452rm -f conftest.err conftest.$ac_objext \
6d516d29 32453 conftest$ac_exeext conftest.$ac_ext
32454LIBS=$ac_check_lib_save_LIBS
32455fi
82eaf560 32456echo "$as_me:$LINENO: result: $ac_cv_lib_m_tgammaf" >&5
32457echo "${ECHO_T}$ac_cv_lib_m_tgammaf" >&6
6d516d29 32458if test $ac_cv_lib_m_tgammaf = yes; then
32459
32460cat >>confdefs.h <<\_ACEOF
32461#define HAVE_TGAMMAF 1
32462_ACEOF
32463
32464fi
32465
82eaf560 32466echo "$as_me:$LINENO: checking for tgammal in -lm" >&5
32467echo $ECHO_N "checking for tgammal in -lm... $ECHO_C" >&6
6d516d29 32468if test "${ac_cv_lib_m_tgammal+set}" = set; then
32469 echo $ECHO_N "(cached) $ECHO_C" >&6
32470else
32471 ac_check_lib_save_LIBS=$LIBS
32472LIBS="-lm $LIBS"
32473if test x$gcc_no_link = xyes; then
32474 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32475echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32476 { (exit 1); exit 1; }; }
32477fi
32478cat >conftest.$ac_ext <<_ACEOF
32479/* confdefs.h. */
32480_ACEOF
32481cat confdefs.h >>conftest.$ac_ext
32482cat >>conftest.$ac_ext <<_ACEOF
32483/* end confdefs.h. */
32484
82eaf560 32485/* Override any gcc2 internal prototype to avoid an error. */
6d516d29 32486#ifdef __cplusplus
32487extern "C"
32488#endif
82eaf560 32489/* We use char because int might match the return type of a gcc2
32490 builtin and then its argument prototype would still apply. */
6d516d29 32491char tgammal ();
32492int
32493main ()
32494{
82eaf560 32495tgammal ();
6d516d29 32496 ;
32497 return 0;
32498}
32499_ACEOF
32500rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 32501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32502 (eval $ac_link) 2>conftest.er1
6d516d29 32503 ac_status=$?
32504 grep -v '^ *+' conftest.er1 >conftest.err
32505 rm -f conftest.er1
32506 cat conftest.err >&5
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 32508 (exit $ac_status); } &&
32509 { ac_try='test -z "$ac_c_werror_flag"
32510 || test ! -s conftest.err'
32511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32512 (eval $ac_try) 2>&5
32513 ac_status=$?
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); }; } &&
32516 { ac_try='test -s conftest$ac_exeext'
32517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32518 (eval $ac_try) 2>&5
32519 ac_status=$?
32520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521 (exit $ac_status); }; }; then
6d516d29 32522 ac_cv_lib_m_tgammal=yes
32523else
32524 echo "$as_me: failed program was:" >&5
32525sed 's/^/| /' conftest.$ac_ext >&5
32526
82eaf560 32527ac_cv_lib_m_tgammal=no
6d516d29 32528fi
82eaf560 32529rm -f conftest.err conftest.$ac_objext \
6d516d29 32530 conftest$ac_exeext conftest.$ac_ext
32531LIBS=$ac_check_lib_save_LIBS
32532fi
82eaf560 32533echo "$as_me:$LINENO: result: $ac_cv_lib_m_tgammal" >&5
32534echo "${ECHO_T}$ac_cv_lib_m_tgammal" >&6
6d516d29 32535if test $ac_cv_lib_m_tgammal = yes; then
32536
32537cat >>confdefs.h <<\_ACEOF
32538#define HAVE_TGAMMAL 1
32539_ACEOF
32540
32541fi
32542
82eaf560 32543echo "$as_me:$LINENO: checking for lgamma in -lm" >&5
32544echo $ECHO_N "checking for lgamma in -lm... $ECHO_C" >&6
6d516d29 32545if test "${ac_cv_lib_m_lgamma+set}" = set; then
32546 echo $ECHO_N "(cached) $ECHO_C" >&6
32547else
32548 ac_check_lib_save_LIBS=$LIBS
32549LIBS="-lm $LIBS"
32550if test x$gcc_no_link = xyes; then
32551 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32552echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32553 { (exit 1); exit 1; }; }
32554fi
32555cat >conftest.$ac_ext <<_ACEOF
32556/* confdefs.h. */
32557_ACEOF
32558cat confdefs.h >>conftest.$ac_ext
32559cat >>conftest.$ac_ext <<_ACEOF
32560/* end confdefs.h. */
32561
82eaf560 32562/* Override any gcc2 internal prototype to avoid an error. */
6d516d29 32563#ifdef __cplusplus
32564extern "C"
32565#endif
82eaf560 32566/* We use char because int might match the return type of a gcc2
32567 builtin and then its argument prototype would still apply. */
6d516d29 32568char lgamma ();
32569int
32570main ()
32571{
82eaf560 32572lgamma ();
6d516d29 32573 ;
32574 return 0;
32575}
32576_ACEOF
32577rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 32578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32579 (eval $ac_link) 2>conftest.er1
6d516d29 32580 ac_status=$?
32581 grep -v '^ *+' conftest.er1 >conftest.err
32582 rm -f conftest.er1
32583 cat conftest.err >&5
32584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 32585 (exit $ac_status); } &&
32586 { ac_try='test -z "$ac_c_werror_flag"
32587 || test ! -s conftest.err'
32588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32589 (eval $ac_try) 2>&5
32590 ac_status=$?
32591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592 (exit $ac_status); }; } &&
32593 { ac_try='test -s conftest$ac_exeext'
32594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32595 (eval $ac_try) 2>&5
32596 ac_status=$?
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); }; }; then
6d516d29 32599 ac_cv_lib_m_lgamma=yes
32600else
32601 echo "$as_me: failed program was:" >&5
32602sed 's/^/| /' conftest.$ac_ext >&5
32603
82eaf560 32604ac_cv_lib_m_lgamma=no
6d516d29 32605fi
82eaf560 32606rm -f conftest.err conftest.$ac_objext \
6d516d29 32607 conftest$ac_exeext conftest.$ac_ext
32608LIBS=$ac_check_lib_save_LIBS
32609fi
82eaf560 32610echo "$as_me:$LINENO: result: $ac_cv_lib_m_lgamma" >&5
32611echo "${ECHO_T}$ac_cv_lib_m_lgamma" >&6
6d516d29 32612if test $ac_cv_lib_m_lgamma = yes; then
32613
32614cat >>confdefs.h <<\_ACEOF
32615#define HAVE_LGAMMA 1
32616_ACEOF
32617
32618fi
32619
82eaf560 32620echo "$as_me:$LINENO: checking for lgammaf in -lm" >&5
32621echo $ECHO_N "checking for lgammaf in -lm... $ECHO_C" >&6
6d516d29 32622if test "${ac_cv_lib_m_lgammaf+set}" = set; then
32623 echo $ECHO_N "(cached) $ECHO_C" >&6
32624else
32625 ac_check_lib_save_LIBS=$LIBS
32626LIBS="-lm $LIBS"
32627if test x$gcc_no_link = xyes; then
32628 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32629echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32630 { (exit 1); exit 1; }; }
32631fi
32632cat >conftest.$ac_ext <<_ACEOF
32633/* confdefs.h. */
32634_ACEOF
32635cat confdefs.h >>conftest.$ac_ext
32636cat >>conftest.$ac_ext <<_ACEOF
32637/* end confdefs.h. */
32638
82eaf560 32639/* Override any gcc2 internal prototype to avoid an error. */
6d516d29 32640#ifdef __cplusplus
32641extern "C"
32642#endif
82eaf560 32643/* We use char because int might match the return type of a gcc2
32644 builtin and then its argument prototype would still apply. */
6d516d29 32645char lgammaf ();
32646int
32647main ()
32648{
82eaf560 32649lgammaf ();
6d516d29 32650 ;
32651 return 0;
32652}
32653_ACEOF
32654rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 32655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32656 (eval $ac_link) 2>conftest.er1
6d516d29 32657 ac_status=$?
32658 grep -v '^ *+' conftest.er1 >conftest.err
32659 rm -f conftest.er1
32660 cat conftest.err >&5
32661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 32662 (exit $ac_status); } &&
32663 { ac_try='test -z "$ac_c_werror_flag"
32664 || test ! -s conftest.err'
32665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32666 (eval $ac_try) 2>&5
32667 ac_status=$?
32668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669 (exit $ac_status); }; } &&
32670 { ac_try='test -s conftest$ac_exeext'
32671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32672 (eval $ac_try) 2>&5
32673 ac_status=$?
32674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32675 (exit $ac_status); }; }; then
6d516d29 32676 ac_cv_lib_m_lgammaf=yes
32677else
32678 echo "$as_me: failed program was:" >&5
32679sed 's/^/| /' conftest.$ac_ext >&5
32680
82eaf560 32681ac_cv_lib_m_lgammaf=no
6d516d29 32682fi
82eaf560 32683rm -f conftest.err conftest.$ac_objext \
6d516d29 32684 conftest$ac_exeext conftest.$ac_ext
32685LIBS=$ac_check_lib_save_LIBS
32686fi
82eaf560 32687echo "$as_me:$LINENO: result: $ac_cv_lib_m_lgammaf" >&5
32688echo "${ECHO_T}$ac_cv_lib_m_lgammaf" >&6
6d516d29 32689if test $ac_cv_lib_m_lgammaf = yes; then
32690
32691cat >>confdefs.h <<\_ACEOF
32692#define HAVE_LGAMMAF 1
32693_ACEOF
32694
32695fi
32696
82eaf560 32697echo "$as_me:$LINENO: checking for lgammal in -lm" >&5
32698echo $ECHO_N "checking for lgammal in -lm... $ECHO_C" >&6
6d516d29 32699if test "${ac_cv_lib_m_lgammal+set}" = set; then
32700 echo $ECHO_N "(cached) $ECHO_C" >&6
32701else
32702 ac_check_lib_save_LIBS=$LIBS
32703LIBS="-lm $LIBS"
32704if test x$gcc_no_link = xyes; then
32705 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32706echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32707 { (exit 1); exit 1; }; }
32708fi
32709cat >conftest.$ac_ext <<_ACEOF
32710/* confdefs.h. */
32711_ACEOF
32712cat confdefs.h >>conftest.$ac_ext
32713cat >>conftest.$ac_ext <<_ACEOF
32714/* end confdefs.h. */
32715
82eaf560 32716/* Override any gcc2 internal prototype to avoid an error. */
6d516d29 32717#ifdef __cplusplus
32718extern "C"
32719#endif
82eaf560 32720/* We use char because int might match the return type of a gcc2
32721 builtin and then its argument prototype would still apply. */
6d516d29 32722char lgammal ();
32723int
32724main ()
32725{
82eaf560 32726lgammal ();
6d516d29 32727 ;
32728 return 0;
32729}
32730_ACEOF
32731rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 32732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32733 (eval $ac_link) 2>conftest.er1
6d516d29 32734 ac_status=$?
32735 grep -v '^ *+' conftest.er1 >conftest.err
32736 rm -f conftest.er1
32737 cat conftest.err >&5
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 32739 (exit $ac_status); } &&
32740 { ac_try='test -z "$ac_c_werror_flag"
32741 || test ! -s conftest.err'
32742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32743 (eval $ac_try) 2>&5
32744 ac_status=$?
32745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746 (exit $ac_status); }; } &&
32747 { ac_try='test -s conftest$ac_exeext'
32748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32749 (eval $ac_try) 2>&5
32750 ac_status=$?
32751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752 (exit $ac_status); }; }; then
6d516d29 32753 ac_cv_lib_m_lgammal=yes
32754else
32755 echo "$as_me: failed program was:" >&5
32756sed 's/^/| /' conftest.$ac_ext >&5
32757
82eaf560 32758ac_cv_lib_m_lgammal=no
6d516d29 32759fi
82eaf560 32760rm -f conftest.err conftest.$ac_objext \
6d516d29 32761 conftest$ac_exeext conftest.$ac_ext
32762LIBS=$ac_check_lib_save_LIBS
32763fi
82eaf560 32764echo "$as_me:$LINENO: result: $ac_cv_lib_m_lgammal" >&5
32765echo "${ECHO_T}$ac_cv_lib_m_lgammal" >&6
6d516d29 32766if test $ac_cv_lib_m_lgammal = yes; then
32767
32768cat >>confdefs.h <<\_ACEOF
32769#define HAVE_LGAMMAL 1
32770_ACEOF
32771
32772fi
32773
a31bd8a4 32774
839904a0 32775# On AIX, clog is present in libm as __clog
82eaf560 32776echo "$as_me:$LINENO: checking for __clog in -lm" >&5
32777echo $ECHO_N "checking for __clog in -lm... $ECHO_C" >&6
62a413d5 32778if test "${ac_cv_lib_m___clog+set}" = set; then
32779 echo $ECHO_N "(cached) $ECHO_C" >&6
32780else
32781 ac_check_lib_save_LIBS=$LIBS
32782LIBS="-lm $LIBS"
32783if test x$gcc_no_link = xyes; then
32784 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32785echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32786 { (exit 1); exit 1; }; }
32787fi
32788cat >conftest.$ac_ext <<_ACEOF
32789/* confdefs.h. */
32790_ACEOF
32791cat confdefs.h >>conftest.$ac_ext
32792cat >>conftest.$ac_ext <<_ACEOF
32793/* end confdefs.h. */
32794
82eaf560 32795/* Override any gcc2 internal prototype to avoid an error. */
62a413d5 32796#ifdef __cplusplus
32797extern "C"
32798#endif
82eaf560 32799/* We use char because int might match the return type of a gcc2
32800 builtin and then its argument prototype would still apply. */
62a413d5 32801char __clog ();
32802int
32803main ()
32804{
82eaf560 32805__clog ();
62a413d5 32806 ;
32807 return 0;
32808}
32809_ACEOF
32810rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 32811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32812 (eval $ac_link) 2>conftest.er1
62a413d5 32813 ac_status=$?
32814 grep -v '^ *+' conftest.er1 >conftest.err
32815 rm -f conftest.er1
32816 cat conftest.err >&5
32817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 32818 (exit $ac_status); } &&
32819 { ac_try='test -z "$ac_c_werror_flag"
32820 || test ! -s conftest.err'
32821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32822 (eval $ac_try) 2>&5
32823 ac_status=$?
32824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825 (exit $ac_status); }; } &&
32826 { ac_try='test -s conftest$ac_exeext'
32827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32828 (eval $ac_try) 2>&5
32829 ac_status=$?
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831 (exit $ac_status); }; }; then
62a413d5 32832 ac_cv_lib_m___clog=yes
32833else
32834 echo "$as_me: failed program was:" >&5
32835sed 's/^/| /' conftest.$ac_ext >&5
32836
82eaf560 32837ac_cv_lib_m___clog=no
62a413d5 32838fi
82eaf560 32839rm -f conftest.err conftest.$ac_objext \
62a413d5 32840 conftest$ac_exeext conftest.$ac_ext
32841LIBS=$ac_check_lib_save_LIBS
32842fi
82eaf560 32843echo "$as_me:$LINENO: result: $ac_cv_lib_m___clog" >&5
32844echo "${ECHO_T}$ac_cv_lib_m___clog" >&6
62a413d5 32845if test $ac_cv_lib_m___clog = yes; then
32846
32847cat >>confdefs.h <<\_ACEOF
32848#define HAVE_CLOG 1
32849_ACEOF
32850
32851fi
32852
32853
839904a0 32854# Check for a isfinite macro that works on long doubles.
32855
82eaf560 32856 echo "$as_me:$LINENO: checking whether isfinite is broken" >&5
32857echo $ECHO_N "checking whether isfinite is broken... $ECHO_C" >&6
6992582a 32858if test "${libgfor_cv_have_broken_isfinite+set}" = set; then
839904a0 32859 echo $ECHO_N "(cached) $ECHO_C" >&6
32860else
32861
32862 libgfor_check_for_broken_isfinite_save_LIBS=$LIBS
32863 LIBS="$LIBS -lm"
32864 if test "$cross_compiling" = yes; then
32865
32866case "${target}" in
6992582a 32867 hppa*-*-hpux*) libgfor_cv_have_broken_isfinite=yes ;;
32868 *) libgfor_cv_have_broken_isfinite=no ;;
839904a0 32869esac
32870else
32871 cat >conftest.$ac_ext <<_ACEOF
32872/* confdefs.h. */
32873_ACEOF
32874cat confdefs.h >>conftest.$ac_ext
32875cat >>conftest.$ac_ext <<_ACEOF
32876/* end confdefs.h. */
32877
839904a0 32878#include <math.h>
839904a0 32879#include <float.h>
32880int main ()
32881{
32882#ifdef isfinite
32883#ifdef LDBL_MAX
32884 if (!isfinite(LDBL_MAX)) return 1;
32885#endif
32886#ifdef DBL_MAX
32887 if (!isfinite(DBL_MAX)) return 1;
32888#endif
32889#endif
32890return 0;
32891}
32892_ACEOF
32893rm -f conftest$ac_exeext
82eaf560 32894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32895 (eval $ac_link) 2>&5
839904a0 32896 ac_status=$?
32897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
82eaf560 32899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32900 (eval $ac_try) 2>&5
839904a0 32901 ac_status=$?
32902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903 (exit $ac_status); }; }; then
6992582a 32904 libgfor_cv_have_broken_isfinite=no
839904a0 32905else
32906 echo "$as_me: program exited with status $ac_status" >&5
32907echo "$as_me: failed program was:" >&5
32908sed 's/^/| /' conftest.$ac_ext >&5
32909
32910( exit $ac_status )
6992582a 32911libgfor_cv_have_broken_isfinite=yes
839904a0 32912fi
82eaf560 32913rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
839904a0 32914fi
32915 LIBS=$libgfor_check_for_broken_isfinite_save_LIBS
32916fi
6992582a 32917echo "$as_me:$LINENO: result: $libgfor_cv_have_broken_isfinite" >&5
32918echo "${ECHO_T}$libgfor_cv_have_broken_isfinite" >&6
32919if test x"$libgfor_cv_have_broken_isfinite" = xyes; then
839904a0 32920
32921cat >>confdefs.h <<\_ACEOF
32922#define HAVE_BROKEN_ISFINITE 1
32923_ACEOF
32924
32925fi
32926
32927# Check for a isnan macro that works on long doubles.
32928
82eaf560 32929 echo "$as_me:$LINENO: checking whether isnan is broken" >&5
32930echo $ECHO_N "checking whether isnan is broken... $ECHO_C" >&6
6992582a 32931if test "${libgfor_cv_have_broken_isnan+set}" = set; then
839904a0 32932 echo $ECHO_N "(cached) $ECHO_C" >&6
32933else
32934
32935 libgfor_check_for_broken_isnan_save_LIBS=$LIBS
32936 LIBS="$LIBS -lm"
32937 if test "$cross_compiling" = yes; then
32938
32939case "${target}" in
6992582a 32940 hppa*-*-hpux*) libgfor_cv_have_broken_isnan=yes ;;
32941 *) libgfor_cv_have_broken_isnan=no ;;
839904a0 32942esac
32943else
32944 cat >conftest.$ac_ext <<_ACEOF
32945/* confdefs.h. */
32946_ACEOF
32947cat confdefs.h >>conftest.$ac_ext
32948cat >>conftest.$ac_ext <<_ACEOF
32949/* end confdefs.h. */
32950
839904a0 32951#include <math.h>
839904a0 32952#include <float.h>
32953int main ()
32954{
32955#ifdef isnan
32956#ifdef LDBL_MAX
32957 {
32958 long double x;
32959 x = __builtin_nanl ("");
32960 if (!isnan(x)) return 1;
32961 if (isnan(LDBL_MAX)) return 1;
32962#ifdef NAN
32963 x = (long double) NAN;
32964 if (!isnan(x)) return 1;
32965#endif
32966 }
32967#endif
32968#ifdef DBL_MAX
32969 {
32970 double y;
32971 y = __builtin_nan ("");
32972 if (!isnan(y)) return 1;
32973 if (isnan(DBL_MAX)) return 1;
32974#ifdef NAN
32975 y = (double) NAN;
32976 if (!isnan(y)) return 1;
32977#endif
32978 }
32979#endif
32980#endif
32981return 0;
32982}
32983_ACEOF
32984rm -f conftest$ac_exeext
82eaf560 32985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32986 (eval $ac_link) 2>&5
839904a0 32987 ac_status=$?
32988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
82eaf560 32990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32991 (eval $ac_try) 2>&5
839904a0 32992 ac_status=$?
32993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994 (exit $ac_status); }; }; then
6992582a 32995 libgfor_cv_have_broken_isnan=no
839904a0 32996else
32997 echo "$as_me: program exited with status $ac_status" >&5
32998echo "$as_me: failed program was:" >&5
32999sed 's/^/| /' conftest.$ac_ext >&5
33000
33001( exit $ac_status )
6992582a 33002libgfor_cv_have_broken_isnan=yes
839904a0 33003fi
82eaf560 33004rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
839904a0 33005fi
33006 LIBS=$libgfor_check_for_broken_isnan_save_LIBS
33007fi
6992582a 33008echo "$as_me:$LINENO: result: $libgfor_cv_have_broken_isnan" >&5
33009echo "${ECHO_T}$libgfor_cv_have_broken_isnan" >&6
33010if test x"$libgfor_cv_have_broken_isnan" = xyes; then
839904a0 33011
33012cat >>confdefs.h <<\_ACEOF
33013#define HAVE_BROKEN_ISNAN 1
33014_ACEOF
33015
33016fi
33017
33018# Check for a fpclassify macro that works on long doubles.
33019
82eaf560 33020 echo "$as_me:$LINENO: checking whether fpclassify is broken" >&5
33021echo $ECHO_N "checking whether fpclassify is broken... $ECHO_C" >&6
6992582a 33022if test "${libgfor_cv_have_broken_fpclassify+set}" = set; then
839904a0 33023 echo $ECHO_N "(cached) $ECHO_C" >&6
33024else
33025
33026 libgfor_check_for_broken_fpclassify_save_LIBS=$LIBS
33027 LIBS="$LIBS -lm"
33028 if test "$cross_compiling" = yes; then
33029
33030case "${target}" in
6992582a 33031 hppa*-*-hpux*) libgfor_cv_have_broken_fpclassify=yes ;;
33032 *) libgfor_cv_have_broken_fpclassify=no ;;
839904a0 33033esac
33034else
33035 cat >conftest.$ac_ext <<_ACEOF
33036/* confdefs.h. */
33037_ACEOF
33038cat confdefs.h >>conftest.$ac_ext
33039cat >>conftest.$ac_ext <<_ACEOF
33040/* end confdefs.h. */
33041
839904a0 33042#include <math.h>
839904a0 33043#include <float.h>
33044int main ()
33045{
33046#ifdef fpclassify
33047#ifdef LDBL_MAX
33048 if (fpclassify(LDBL_MAX) == FP_NAN
33049 || fpclassify(LDBL_MAX) == FP_INFINITE) return 1;
33050#endif
33051#ifdef DBL_MAX
33052 if (fpclassify(DBL_MAX) == FP_NAN
33053 || fpclassify(DBL_MAX) == FP_INFINITE) return 1;
33054#endif
33055#endif
33056return 0;
33057}
33058_ACEOF
33059rm -f conftest$ac_exeext
82eaf560 33060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33061 (eval $ac_link) 2>&5
839904a0 33062 ac_status=$?
33063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
82eaf560 33065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33066 (eval $ac_try) 2>&5
839904a0 33067 ac_status=$?
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); }; }; then
6992582a 33070 libgfor_cv_have_broken_fpclassify=no
839904a0 33071else
33072 echo "$as_me: program exited with status $ac_status" >&5
33073echo "$as_me: failed program was:" >&5
33074sed 's/^/| /' conftest.$ac_ext >&5
33075
33076( exit $ac_status )
6992582a 33077libgfor_cv_have_broken_fpclassify=yes
839904a0 33078fi
82eaf560 33079rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
839904a0 33080fi
33081 LIBS=$libgfor_check_for_broken_fpclassify_save_LIBS
33082fi
6992582a 33083echo "$as_me:$LINENO: result: $libgfor_cv_have_broken_fpclassify" >&5
33084echo "${ECHO_T}$libgfor_cv_have_broken_fpclassify" >&6
33085if test x"$libgfor_cv_have_broken_fpclassify" = xyes; then
839904a0 33086
33087cat >>confdefs.h <<\_ACEOF
33088#define HAVE_BROKEN_FPCLASSIFY 1
33089_ACEOF
33090
33091fi
33092
daad4fd5 33093# Check whether the system has a working stat()
33094
82eaf560 33095 echo "$as_me:$LINENO: checking whether the target stat is reliable" >&5
33096echo $ECHO_N "checking whether the target stat is reliable... $ECHO_C" >&6
6992582a 33097if test "${libgfor_cv_have_working_stat+set}" = set; then
daad4fd5 33098 echo $ECHO_N "(cached) $ECHO_C" >&6
33099else
33100
33101 if test "$cross_compiling" = yes; then
33102
33103case "${target}" in
6992582a 33104 *mingw*) libgfor_cv_have_working_stat=no ;;
33105 *) libgfor_cv_have_working_stat=yes;;
daad4fd5 33106esac
33107else
33108 cat >conftest.$ac_ext <<_ACEOF
33109/* confdefs.h. */
33110_ACEOF
33111cat confdefs.h >>conftest.$ac_ext
33112cat >>conftest.$ac_ext <<_ACEOF
33113/* end confdefs.h. */
33114
33115#include <stdio.h>
33116#include <sys/types.h>
33117#include <sys/stat.h>
33118#include <unistd.h>
33119
33120int main ()
33121{
33122 FILE *f, *g;
33123 struct stat st1, st2;
33124
33125 f = fopen ("foo", "w");
33126 g = fopen ("bar", "w");
33127 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
33128 return 1;
33129 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
33130 return 1;
33131 fclose(f);
33132 fclose(g);
33133 return 0;
33134}
33135_ACEOF
33136rm -f conftest$ac_exeext
82eaf560 33137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33138 (eval $ac_link) 2>&5
daad4fd5 33139 ac_status=$?
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
82eaf560 33142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33143 (eval $ac_try) 2>&5
daad4fd5 33144 ac_status=$?
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); }; }; then
6992582a 33147 libgfor_cv_have_working_stat=yes
daad4fd5 33148else
33149 echo "$as_me: program exited with status $ac_status" >&5
33150echo "$as_me: failed program was:" >&5
33151sed 's/^/| /' conftest.$ac_ext >&5
33152
33153( exit $ac_status )
6992582a 33154libgfor_cv_have_working_stat=no
daad4fd5 33155fi
82eaf560 33156rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
daad4fd5 33157fi
33158fi
6992582a 33159echo "$as_me:$LINENO: result: $libgfor_cv_have_working_stat" >&5
33160echo "${ECHO_T}$libgfor_cv_have_working_stat" >&6
33161if test x"$libgfor_cv_have_working_stat" = xyes; then
daad4fd5 33162
33163cat >>confdefs.h <<\_ACEOF
33164#define HAVE_WORKING_STAT 1
33165_ACEOF
33166
33167fi
33168
3b99ec70 33169# Check whether __mingw_snprintf() is present
33170
82eaf560 33171 echo "$as_me:$LINENO: checking whether __mingw_snprintf is present" >&5
33172echo $ECHO_N "checking whether __mingw_snprintf is present... $ECHO_C" >&6
6992582a 33173if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then
3b99ec70 33174 echo $ECHO_N "(cached) $ECHO_C" >&6
33175else
33176
33177 if test x$gcc_no_link = xyes; then
33178 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33179echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33180 { (exit 1); exit 1; }; }
33181fi
33182cat >conftest.$ac_ext <<_ACEOF
33183/* confdefs.h. */
33184_ACEOF
33185cat confdefs.h >>conftest.$ac_ext
33186cat >>conftest.$ac_ext <<_ACEOF
33187/* end confdefs.h. */
33188
33189#include <stdio.h>
33190extern int __mingw_snprintf (char *, size_t, const char *, ...);
33191
33192int
33193main ()
33194{
33195
33196__mingw_snprintf (NULL, 0, "%d\n", 1);
33197
33198 ;
33199 return 0;
33200}
33201_ACEOF
33202rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 33203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33204 (eval $ac_link) 2>conftest.er1
3b99ec70 33205 ac_status=$?
33206 grep -v '^ *+' conftest.er1 >conftest.err
33207 rm -f conftest.er1
33208 cat conftest.err >&5
33209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 33210 (exit $ac_status); } &&
33211 { ac_try='test -z "$ac_c_werror_flag"
33212 || test ! -s conftest.err'
33213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33214 (eval $ac_try) 2>&5
33215 ac_status=$?
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217 (exit $ac_status); }; } &&
33218 { ac_try='test -s conftest$ac_exeext'
33219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220 (eval $ac_try) 2>&5
33221 ac_status=$?
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); }; }; then
6992582a 33224 eval "libgfor_cv_have_mingw_snprintf=yes"
3b99ec70 33225else
33226 echo "$as_me: failed program was:" >&5
33227sed 's/^/| /' conftest.$ac_ext >&5
33228
6992582a 33229eval "libgfor_cv_have_mingw_snprintf=no"
3b99ec70 33230fi
82eaf560 33231rm -f conftest.err conftest.$ac_objext \
3b99ec70 33232 conftest$ac_exeext conftest.$ac_ext
33233
33234fi
6992582a 33235echo "$as_me:$LINENO: result: $libgfor_cv_have_mingw_snprintf" >&5
33236echo "${ECHO_T}$libgfor_cv_have_mingw_snprintf" >&6
33237 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
3b99ec70 33238
33239cat >>confdefs.h <<\_ACEOF
33240#define HAVE_MINGW_SNPRINTF 1
33241_ACEOF
33242
33243 fi
33244
33245
0dc2aff5 33246# Check for a broken powf implementation
33247
33248 echo "$as_me:$LINENO: checking whether powf is broken" >&5
33249echo $ECHO_N "checking whether powf is broken... $ECHO_C" >&6
33250if test "${libgfor_cv_have_broken_powf+set}" = set; then
33251 echo $ECHO_N "(cached) $ECHO_C" >&6
33252else
33253
33254case "${target}" in
33255 hppa*64*-*-hpux*) libgfor_cv_have_broken_powf=yes ;;
33256 *) libgfor_cv_have_broken_powf=no;;
33257esac
33258fi
33259echo "$as_me:$LINENO: result: $libgfor_cv_have_broken_powf" >&5
33260echo "${ECHO_T}$libgfor_cv_have_broken_powf" >&6
33261 if test x"$libgfor_cv_have_broken_powf" = xyes; then
33262
33263cat >>confdefs.h <<\_ACEOF
33264#define HAVE_BROKEN_POWF 1
33265_ACEOF
33266
33267 fi
33268
33269
8c84a5de 33270# Check for GNU libc feenableexcept
82eaf560 33271echo "$as_me:$LINENO: checking for feenableexcept in -lm" >&5
33272echo $ECHO_N "checking for feenableexcept in -lm... $ECHO_C" >&6
8c84a5de 33273if test "${ac_cv_lib_m_feenableexcept+set}" = set; then
33274 echo $ECHO_N "(cached) $ECHO_C" >&6
33275else
33276 ac_check_lib_save_LIBS=$LIBS
33277LIBS="-lm $LIBS"
33278if test x$gcc_no_link = xyes; then
33279 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33280echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33281 { (exit 1); exit 1; }; }
33282fi
33283cat >conftest.$ac_ext <<_ACEOF
33284/* confdefs.h. */
33285_ACEOF
33286cat confdefs.h >>conftest.$ac_ext
33287cat >>conftest.$ac_ext <<_ACEOF
33288/* end confdefs.h. */
33289
82eaf560 33290/* Override any gcc2 internal prototype to avoid an error. */
8c84a5de 33291#ifdef __cplusplus
33292extern "C"
33293#endif
82eaf560 33294/* We use char because int might match the return type of a gcc2
33295 builtin and then its argument prototype would still apply. */
8c84a5de 33296char feenableexcept ();
33297int
33298main ()
33299{
82eaf560 33300feenableexcept ();
8c84a5de 33301 ;
33302 return 0;
33303}
33304_ACEOF
33305rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 33306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33307 (eval $ac_link) 2>conftest.er1
8c84a5de 33308 ac_status=$?
33309 grep -v '^ *+' conftest.er1 >conftest.err
33310 rm -f conftest.er1
33311 cat conftest.err >&5
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 33313 (exit $ac_status); } &&
33314 { ac_try='test -z "$ac_c_werror_flag"
33315 || test ! -s conftest.err'
33316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33317 (eval $ac_try) 2>&5
33318 ac_status=$?
33319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320 (exit $ac_status); }; } &&
33321 { ac_try='test -s conftest$ac_exeext'
33322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323 (eval $ac_try) 2>&5
33324 ac_status=$?
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); }; }; then
8c84a5de 33327 ac_cv_lib_m_feenableexcept=yes
33328else
33329 echo "$as_me: failed program was:" >&5
33330sed 's/^/| /' conftest.$ac_ext >&5
33331
82eaf560 33332ac_cv_lib_m_feenableexcept=no
8c84a5de 33333fi
82eaf560 33334rm -f conftest.err conftest.$ac_objext \
8c84a5de 33335 conftest$ac_exeext conftest.$ac_ext
33336LIBS=$ac_check_lib_save_LIBS
33337fi
82eaf560 33338echo "$as_me:$LINENO: result: $ac_cv_lib_m_feenableexcept" >&5
33339echo "${ECHO_T}$ac_cv_lib_m_feenableexcept" >&6
8c84a5de 33340if test $ac_cv_lib_m_feenableexcept = yes; then
33341 have_feenableexcept=yes
33342cat >>confdefs.h <<\_ACEOF
33343#define HAVE_FEENABLEEXCEPT 1
33344_ACEOF
33345
33346fi
33347
33348
aaa798ba 33349# Check for SysV fpsetmask
33350
82eaf560 33351 echo "$as_me:$LINENO: checking whether fpsetmask is present" >&5
33352echo $ECHO_N "checking whether fpsetmask is present... $ECHO_C" >&6
6992582a 33353if test "${libgfor_cv_have_fpsetmask+set}" = set; then
aaa798ba 33354 echo $ECHO_N "(cached) $ECHO_C" >&6
33355else
33356
33357 if test x$gcc_no_link = xyes; then
33358 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33359echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33360 { (exit 1); exit 1; }; }
33361fi
33362cat >conftest.$ac_ext <<_ACEOF
33363/* confdefs.h. */
33364_ACEOF
33365cat confdefs.h >>conftest.$ac_ext
33366cat >>conftest.$ac_ext <<_ACEOF
33367/* end confdefs.h. */
33368
33369#if HAVE_FLOATINGPOINT_H
33370# include <floatingpoint.h>
33371#endif /* HAVE_FLOATINGPOINT_H */
33372#if HAVE_IEEEFP_H
33373# include <ieeefp.h>
33374#endif /* HAVE_IEEEFP_H */
33375int
33376main ()
33377{
33378fpsetmask(0);
33379 ;
33380 return 0;
33381}
33382_ACEOF
33383rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 33384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33385 (eval $ac_link) 2>conftest.er1
aaa798ba 33386 ac_status=$?
33387 grep -v '^ *+' conftest.er1 >conftest.err
33388 rm -f conftest.er1
33389 cat conftest.err >&5
33390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 33391 (exit $ac_status); } &&
33392 { ac_try='test -z "$ac_c_werror_flag"
33393 || test ! -s conftest.err'
33394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33395 (eval $ac_try) 2>&5
33396 ac_status=$?
33397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33398 (exit $ac_status); }; } &&
33399 { ac_try='test -s conftest$ac_exeext'
33400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33401 (eval $ac_try) 2>&5
33402 ac_status=$?
33403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404 (exit $ac_status); }; }; then
6992582a 33405 eval "libgfor_cv_have_fpsetmask=yes"
aaa798ba 33406else
33407 echo "$as_me: failed program was:" >&5
33408sed 's/^/| /' conftest.$ac_ext >&5
33409
6992582a 33410eval "libgfor_cv_have_fpsetmask=no"
aaa798ba 33411fi
82eaf560 33412rm -f conftest.err conftest.$ac_objext \
aaa798ba 33413 conftest$ac_exeext conftest.$ac_ext
33414
33415fi
6992582a 33416echo "$as_me:$LINENO: result: $libgfor_cv_have_fpsetmask" >&5
33417echo "${ECHO_T}$libgfor_cv_have_fpsetmask" >&6
33418 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
aaa798ba 33419
33420cat >>confdefs.h <<\_ACEOF
33421#define HAVE_FPSETMASK 1
33422_ACEOF
33423
33424 fi
33425
33426
33427# Check for AIX fp_trap and fp_enable
82eaf560 33428echo "$as_me:$LINENO: checking for fp_trap" >&5
33429echo $ECHO_N "checking for fp_trap... $ECHO_C" >&6
aaa798ba 33430if test "${ac_cv_func_fp_trap+set}" = set; then
33431 echo $ECHO_N "(cached) $ECHO_C" >&6
33432else
33433 if test x$gcc_no_link = xyes; then
33434 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33435echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33436 { (exit 1); exit 1; }; }
33437fi
33438cat >conftest.$ac_ext <<_ACEOF
33439/* confdefs.h. */
33440_ACEOF
33441cat confdefs.h >>conftest.$ac_ext
33442cat >>conftest.$ac_ext <<_ACEOF
33443/* end confdefs.h. */
33444/* Define fp_trap to an innocuous variant, in case <limits.h> declares fp_trap.
33445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33446#define fp_trap innocuous_fp_trap
33447
33448/* System header to define __stub macros and hopefully few prototypes,
33449 which can conflict with char fp_trap (); below.
33450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33451 <limits.h> exists even on freestanding compilers. */
33452
33453#ifdef __STDC__
33454# include <limits.h>
33455#else
33456# include <assert.h>
33457#endif
33458
33459#undef fp_trap
33460
82eaf560 33461/* Override any gcc2 internal prototype to avoid an error. */
aaa798ba 33462#ifdef __cplusplus
33463extern "C"
82eaf560 33464{
aaa798ba 33465#endif
82eaf560 33466/* We use char because int might match the return type of a gcc2
33467 builtin and then its argument prototype would still apply. */
aaa798ba 33468char fp_trap ();
33469/* The GNU C library defines this for functions which it implements
33470 to always fail with ENOSYS. Some functions are actually named
33471 something starting with __ and the normal name is an alias. */
82eaf560 33472#if defined (__stub_fp_trap) || defined (__stub___fp_trap)
aaa798ba 33473choke me
82eaf560 33474#else
33475char (*f) () = fp_trap;
33476#endif
33477#ifdef __cplusplus
33478}
aaa798ba 33479#endif
33480
33481int
33482main ()
33483{
82eaf560 33484return f != fp_trap;
aaa798ba 33485 ;
33486 return 0;
33487}
33488_ACEOF
33489rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 33490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33491 (eval $ac_link) 2>conftest.er1
aaa798ba 33492 ac_status=$?
33493 grep -v '^ *+' conftest.er1 >conftest.err
33494 rm -f conftest.er1
33495 cat conftest.err >&5
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 33497 (exit $ac_status); } &&
33498 { ac_try='test -z "$ac_c_werror_flag"
33499 || test ! -s conftest.err'
33500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33501 (eval $ac_try) 2>&5
33502 ac_status=$?
33503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33504 (exit $ac_status); }; } &&
33505 { ac_try='test -s conftest$ac_exeext'
33506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33507 (eval $ac_try) 2>&5
33508 ac_status=$?
33509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510 (exit $ac_status); }; }; then
aaa798ba 33511 ac_cv_func_fp_trap=yes
33512else
33513 echo "$as_me: failed program was:" >&5
33514sed 's/^/| /' conftest.$ac_ext >&5
33515
82eaf560 33516ac_cv_func_fp_trap=no
aaa798ba 33517fi
82eaf560 33518rm -f conftest.err conftest.$ac_objext \
aaa798ba 33519 conftest$ac_exeext conftest.$ac_ext
33520fi
82eaf560 33521echo "$as_me:$LINENO: result: $ac_cv_func_fp_trap" >&5
33522echo "${ECHO_T}$ac_cv_func_fp_trap" >&6
aaa798ba 33523if test $ac_cv_func_fp_trap = yes; then
33524 have_fp_trap=yes
33525cat >>confdefs.h <<\_ACEOF
33526#define HAVE_FP_TRAP 1
33527_ACEOF
33528
33529fi
33530
82eaf560 33531echo "$as_me:$LINENO: checking for fp_enable" >&5
33532echo $ECHO_N "checking for fp_enable... $ECHO_C" >&6
aaa798ba 33533if test "${ac_cv_func_fp_enable+set}" = set; then
33534 echo $ECHO_N "(cached) $ECHO_C" >&6
33535else
33536 if test x$gcc_no_link = xyes; then
33537 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33538echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33539 { (exit 1); exit 1; }; }
33540fi
33541cat >conftest.$ac_ext <<_ACEOF
33542/* confdefs.h. */
33543_ACEOF
33544cat confdefs.h >>conftest.$ac_ext
33545cat >>conftest.$ac_ext <<_ACEOF
33546/* end confdefs.h. */
33547/* Define fp_enable to an innocuous variant, in case <limits.h> declares fp_enable.
33548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33549#define fp_enable innocuous_fp_enable
33550
33551/* System header to define __stub macros and hopefully few prototypes,
33552 which can conflict with char fp_enable (); below.
33553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33554 <limits.h> exists even on freestanding compilers. */
33555
33556#ifdef __STDC__
33557# include <limits.h>
33558#else
33559# include <assert.h>
33560#endif
33561
33562#undef fp_enable
33563
82eaf560 33564/* Override any gcc2 internal prototype to avoid an error. */
aaa798ba 33565#ifdef __cplusplus
33566extern "C"
82eaf560 33567{
aaa798ba 33568#endif
82eaf560 33569/* We use char because int might match the return type of a gcc2
33570 builtin and then its argument prototype would still apply. */
aaa798ba 33571char fp_enable ();
33572/* The GNU C library defines this for functions which it implements
33573 to always fail with ENOSYS. Some functions are actually named
33574 something starting with __ and the normal name is an alias. */
82eaf560 33575#if defined (__stub_fp_enable) || defined (__stub___fp_enable)
aaa798ba 33576choke me
82eaf560 33577#else
33578char (*f) () = fp_enable;
33579#endif
33580#ifdef __cplusplus
33581}
aaa798ba 33582#endif
33583
33584int
33585main ()
33586{
82eaf560 33587return f != fp_enable;
aaa798ba 33588 ;
33589 return 0;
33590}
33591_ACEOF
33592rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 33593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33594 (eval $ac_link) 2>conftest.er1
aaa798ba 33595 ac_status=$?
33596 grep -v '^ *+' conftest.er1 >conftest.err
33597 rm -f conftest.er1
33598 cat conftest.err >&5
33599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 33600 (exit $ac_status); } &&
33601 { ac_try='test -z "$ac_c_werror_flag"
33602 || test ! -s conftest.err'
33603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33604 (eval $ac_try) 2>&5
33605 ac_status=$?
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); }; } &&
33608 { ac_try='test -s conftest$ac_exeext'
33609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33610 (eval $ac_try) 2>&5
33611 ac_status=$?
33612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613 (exit $ac_status); }; }; then
aaa798ba 33614 ac_cv_func_fp_enable=yes
33615else
33616 echo "$as_me: failed program was:" >&5
33617sed 's/^/| /' conftest.$ac_ext >&5
33618
82eaf560 33619ac_cv_func_fp_enable=no
aaa798ba 33620fi
82eaf560 33621rm -f conftest.err conftest.$ac_objext \
aaa798ba 33622 conftest$ac_exeext conftest.$ac_ext
33623fi
82eaf560 33624echo "$as_me:$LINENO: result: $ac_cv_func_fp_enable" >&5
33625echo "${ECHO_T}$ac_cv_func_fp_enable" >&6
aaa798ba 33626if test $ac_cv_func_fp_enable = yes; then
33627 have_fp_enable=yes
33628cat >>confdefs.h <<\_ACEOF
33629#define HAVE_FP_ENABLE 1
33630_ACEOF
33631
33632fi
33633
33634
8c84a5de 33635# Runs configure.host to set up necessary host-dependent shell variables.
33636# We then display a message about it, and propagate them through the
33637# build chain.
33638. ${srcdir}/configure.host
33639{ echo "$as_me:$LINENO: FPU dependent file will be ${fpu_host}.h" >&5
33640echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
33641FPU_HOST_HEADER=config/${fpu_host}.h
33642
33643
7b6cb5bd 33644# Check out attribute support.
33645
82eaf560 33646 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
33647echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
6992582a 33648if test "${libgfor_cv_have_attribute_visibility+set}" = set; then
7b6cb5bd 33649 echo $ECHO_N "(cached) $ECHO_C" >&6
33650else
33651
33652 save_CFLAGS="$CFLAGS"
33653 CFLAGS="$CFLAGS -Werror"
33654 cat >conftest.$ac_ext <<_ACEOF
33655/* confdefs.h. */
33656_ACEOF
33657cat confdefs.h >>conftest.$ac_ext
33658cat >>conftest.$ac_ext <<_ACEOF
33659/* end confdefs.h. */
33660void __attribute__((visibility("hidden"))) foo(void) { }
33661int
33662main ()
33663{
33664
33665 ;
33666 return 0;
33667}
33668_ACEOF
33669rm -f conftest.$ac_objext
82eaf560 33670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33671 (eval $ac_compile) 2>conftest.er1
7b6cb5bd 33672 ac_status=$?
33673 grep -v '^ *+' conftest.er1 >conftest.err
33674 rm -f conftest.er1
33675 cat conftest.err >&5
33676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 33677 (exit $ac_status); } &&
33678 { ac_try='test -z "$ac_c_werror_flag"
33679 || test ! -s conftest.err'
33680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33681 (eval $ac_try) 2>&5
33682 ac_status=$?
33683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33684 (exit $ac_status); }; } &&
33685 { ac_try='test -s conftest.$ac_objext'
33686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33687 (eval $ac_try) 2>&5
33688 ac_status=$?
33689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33690 (exit $ac_status); }; }; then
6992582a 33691 libgfor_cv_have_attribute_visibility=yes
7b6cb5bd 33692else
33693 echo "$as_me: failed program was:" >&5
33694sed 's/^/| /' conftest.$ac_ext >&5
33695
6992582a 33696libgfor_cv_have_attribute_visibility=no
7b6cb5bd 33697fi
82eaf560 33698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7b6cb5bd 33699 CFLAGS="$save_CFLAGS"
33700fi
6992582a 33701echo "$as_me:$LINENO: result: $libgfor_cv_have_attribute_visibility" >&5
33702echo "${ECHO_T}$libgfor_cv_have_attribute_visibility" >&6
33703 if test $libgfor_cv_have_attribute_visibility = yes; then
7b6cb5bd 33704
33705cat >>confdefs.h <<\_ACEOF
33706#define HAVE_ATTRIBUTE_VISIBILITY 1
33707_ACEOF
33708
33709 fi
33710
82eaf560 33711 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
33712echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
6992582a 33713if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then
7b6cb5bd 33714 echo $ECHO_N "(cached) $ECHO_C" >&6
33715else
33716
33717 save_CFLAGS="$CFLAGS"
33718 CFLAGS="$CFLAGS -Werror"
33719 cat >conftest.$ac_ext <<_ACEOF
33720/* confdefs.h. */
33721_ACEOF
33722cat confdefs.h >>conftest.$ac_ext
33723cat >>conftest.$ac_ext <<_ACEOF
33724/* end confdefs.h. */
33725void __attribute__((dllexport)) foo(void) { }
33726int
33727main ()
33728{
33729
33730 ;
33731 return 0;
33732}
33733_ACEOF
33734rm -f conftest.$ac_objext
82eaf560 33735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33736 (eval $ac_compile) 2>conftest.er1
7b6cb5bd 33737 ac_status=$?
33738 grep -v '^ *+' conftest.er1 >conftest.err
33739 rm -f conftest.er1
33740 cat conftest.err >&5
33741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 33742 (exit $ac_status); } &&
33743 { ac_try='test -z "$ac_c_werror_flag"
33744 || test ! -s conftest.err'
33745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33746 (eval $ac_try) 2>&5
33747 ac_status=$?
33748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749 (exit $ac_status); }; } &&
33750 { ac_try='test -s conftest.$ac_objext'
33751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33752 (eval $ac_try) 2>&5
33753 ac_status=$?
33754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33755 (exit $ac_status); }; }; then
6992582a 33756 libgfor_cv_have_attribute_dllexport=yes
7b6cb5bd 33757else
33758 echo "$as_me: failed program was:" >&5
33759sed 's/^/| /' conftest.$ac_ext >&5
33760
6992582a 33761libgfor_cv_have_attribute_dllexport=no
7b6cb5bd 33762fi
82eaf560 33763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7b6cb5bd 33764 CFLAGS="$save_CFLAGS"
33765fi
6992582a 33766echo "$as_me:$LINENO: result: $libgfor_cv_have_attribute_dllexport" >&5
33767echo "${ECHO_T}$libgfor_cv_have_attribute_dllexport" >&6
33768 if test $libgfor_cv_have_attribute_dllexport = yes; then
7b6cb5bd 33769
33770cat >>confdefs.h <<\_ACEOF
33771#define HAVE_ATTRIBUTE_DLLEXPORT 1
33772_ACEOF
33773
33774 fi
33775
82eaf560 33776 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
33777echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
6992582a 33778if test "${libgfor_cv_have_attribute_alias+set}" = set; then
7b6cb5bd 33779 echo $ECHO_N "(cached) $ECHO_C" >&6
33780else
33781
b52ee437 33782 if test x$gcc_no_link = xyes; then
33783 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33784echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33785 { (exit 1); exit 1; }; }
33786fi
33787cat >conftest.$ac_ext <<_ACEOF
7b6cb5bd 33788/* confdefs.h. */
33789_ACEOF
33790cat confdefs.h >>conftest.$ac_ext
33791cat >>conftest.$ac_ext <<_ACEOF
33792/* end confdefs.h. */
33793
7b6cb5bd 33794void foo(void) { }
5a2b0c34 33795extern void bar(void) __attribute__((alias("foo")));
7b6cb5bd 33796int
33797main ()
33798{
33799bar();
33800 ;
33801 return 0;
33802}
33803_ACEOF
33804rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 33805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33806 (eval $ac_link) 2>conftest.er1
7b6cb5bd 33807 ac_status=$?
33808 grep -v '^ *+' conftest.er1 >conftest.err
33809 rm -f conftest.er1
33810 cat conftest.err >&5
33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 33812 (exit $ac_status); } &&
33813 { ac_try='test -z "$ac_c_werror_flag"
33814 || test ! -s conftest.err'
33815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33816 (eval $ac_try) 2>&5
33817 ac_status=$?
33818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33819 (exit $ac_status); }; } &&
33820 { ac_try='test -s conftest$ac_exeext'
33821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33822 (eval $ac_try) 2>&5
33823 ac_status=$?
33824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825 (exit $ac_status); }; }; then
6992582a 33826 libgfor_cv_have_attribute_alias=yes
7b6cb5bd 33827else
33828 echo "$as_me: failed program was:" >&5
33829sed 's/^/| /' conftest.$ac_ext >&5
33830
6992582a 33831libgfor_cv_have_attribute_alias=no
7b6cb5bd 33832fi
82eaf560 33833rm -f conftest.err conftest.$ac_objext \
7b6cb5bd 33834 conftest$ac_exeext conftest.$ac_ext
33835fi
6992582a 33836echo "$as_me:$LINENO: result: $libgfor_cv_have_attribute_alias" >&5
33837echo "${ECHO_T}$libgfor_cv_have_attribute_alias" >&6
33838 if test $libgfor_cv_have_attribute_alias = yes; then
7b6cb5bd 33839
33840cat >>confdefs.h <<\_ACEOF
33841#define HAVE_ATTRIBUTE_ALIAS 1
33842_ACEOF
33843
33844 fi
33845
60c514ba 33846# Check out sync builtins support.
33847
82eaf560 33848 echo "$as_me:$LINENO: checking whether the target supports __sync_fetch_and_add" >&5
33849echo $ECHO_N "checking whether the target supports __sync_fetch_and_add... $ECHO_C" >&6
6992582a 33850if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then
60c514ba 33851 echo $ECHO_N "(cached) $ECHO_C" >&6
33852else
33853
33854 if test x$gcc_no_link = xyes; then
33855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33856echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33857 { (exit 1); exit 1; }; }
33858fi
33859cat >conftest.$ac_ext <<_ACEOF
33860/* confdefs.h. */
33861_ACEOF
33862cat confdefs.h >>conftest.$ac_ext
33863cat >>conftest.$ac_ext <<_ACEOF
33864/* end confdefs.h. */
33865int foovar = 0;
33866int
33867main ()
33868{
33869
33870if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
33871if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
33872 ;
33873 return 0;
33874}
33875_ACEOF
33876rm -f conftest.$ac_objext conftest$ac_exeext
82eaf560 33877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33878 (eval $ac_link) 2>conftest.er1
60c514ba 33879 ac_status=$?
33880 grep -v '^ *+' conftest.er1 >conftest.err
33881 rm -f conftest.er1
33882 cat conftest.err >&5
33883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 33884 (exit $ac_status); } &&
33885 { ac_try='test -z "$ac_c_werror_flag"
33886 || test ! -s conftest.err'
33887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33888 (eval $ac_try) 2>&5
33889 ac_status=$?
33890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891 (exit $ac_status); }; } &&
33892 { ac_try='test -s conftest$ac_exeext'
33893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33894 (eval $ac_try) 2>&5
33895 ac_status=$?
33896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897 (exit $ac_status); }; }; then
6992582a 33898 libgfor_cv_have_sync_fetch_and_add=yes
60c514ba 33899else
33900 echo "$as_me: failed program was:" >&5
33901sed 's/^/| /' conftest.$ac_ext >&5
33902
6992582a 33903libgfor_cv_have_sync_fetch_and_add=no
60c514ba 33904fi
82eaf560 33905rm -f conftest.err conftest.$ac_objext \
60c514ba 33906 conftest$ac_exeext conftest.$ac_ext
33907fi
6992582a 33908echo "$as_me:$LINENO: result: $libgfor_cv_have_sync_fetch_and_add" >&5
33909echo "${ECHO_T}$libgfor_cv_have_sync_fetch_and_add" >&6
33910 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
60c514ba 33911
33912cat >>confdefs.h <<\_ACEOF
33913#define HAVE_SYNC_FETCH_AND_ADD 1
33914_ACEOF
33915
33916 fi
33917
33918# Check out thread support.
33919
82eaf560 33920 echo "$as_me:$LINENO: checking configured target thread model" >&5
33921echo $ECHO_N "checking configured target thread model... $ECHO_C" >&6
e0771fc0 33922if test "${libgfor_cv_target_thread_file+set}" = set; then
60c514ba 33923 echo $ECHO_N "(cached) $ECHO_C" >&6
33924else
33925
e0771fc0 33926libgfor_cv_target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
60c514ba 33927fi
e0771fc0 33928echo "$as_me:$LINENO: result: $libgfor_cv_target_thread_file" >&5
33929echo "${ECHO_T}$libgfor_cv_target_thread_file" >&6
60c514ba 33930
e0771fc0 33931 if test $libgfor_cv_target_thread_file != single; then
60c514ba 33932
33933cat >>confdefs.h <<\_ACEOF
33934#define HAVE_GTHR_DEFAULT 1
33935_ACEOF
33936
33937 fi
33938
33939# Check out #pragma weak.
33940
82eaf560 33941 echo "$as_me:$LINENO: checking whether pragma weak works" >&5
33942echo $ECHO_N "checking whether pragma weak works... $ECHO_C" >&6
6992582a 33943if test "${libgfor_cv_have_pragma_weak+set}" = set; then
60c514ba 33944 echo $ECHO_N "(cached) $ECHO_C" >&6
33945else
33946
33947 gfor_save_CFLAGS="$CFLAGS"
33948 CFLAGS="$CFLAGS -Wunknown-pragmas"
33949 cat >conftest.$ac_ext <<_ACEOF
33950/* confdefs.h. */
33951_ACEOF
33952cat confdefs.h >>conftest.$ac_ext
33953cat >>conftest.$ac_ext <<_ACEOF
33954/* end confdefs.h. */
33955void foo (void);
33956#pragma weak foo
33957int
33958main ()
33959{
33960if (foo) foo ();
33961 ;
33962 return 0;
33963}
33964_ACEOF
33965rm -f conftest.$ac_objext
82eaf560 33966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33967 (eval $ac_compile) 2>conftest.er1
60c514ba 33968 ac_status=$?
33969 grep -v '^ *+' conftest.er1 >conftest.err
33970 rm -f conftest.er1
33971 cat conftest.err >&5
33972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82eaf560 33973 (exit $ac_status); } &&
33974 { ac_try='test -z "$ac_c_werror_flag"
33975 || test ! -s conftest.err'
33976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33977 (eval $ac_try) 2>&5
33978 ac_status=$?
33979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33980 (exit $ac_status); }; } &&
33981 { ac_try='test -s conftest.$ac_objext'
33982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33983 (eval $ac_try) 2>&5
33984 ac_status=$?
33985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986 (exit $ac_status); }; }; then
6992582a 33987 libgfor_cv_have_pragma_weak=yes
60c514ba 33988else
33989 echo "$as_me: failed program was:" >&5
33990sed 's/^/| /' conftest.$ac_ext >&5
33991
6992582a 33992libgfor_cv_have_pragma_weak=no
60c514ba 33993fi
82eaf560 33994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60c514ba 33995fi
6992582a 33996echo "$as_me:$LINENO: result: $libgfor_cv_have_pragma_weak" >&5
33997echo "${ECHO_T}$libgfor_cv_have_pragma_weak" >&6
33998 if test $libgfor_cv_have_pragma_weak = yes; then
60c514ba 33999
34000cat >>confdefs.h <<\_ACEOF
0a207fde 34001#define SUPPORTS_WEAK 1
60c514ba 34002_ACEOF
34003
34004 fi
0a207fde 34005 case "$host" in
7044ab00 34006 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
0a207fde 34007
34008cat >>confdefs.h <<\_ACEOF
34009#define GTHREAD_USE_WEAK 0
34010_ACEOF
34011
34012 ;;
34013 esac
60c514ba 34014
1dc95e51 34015# Various other checks on target
34016
82eaf560 34017 echo "$as_me:$LINENO: checking whether the target can unlink an open file" >&5
34018echo $ECHO_N "checking whether the target can unlink an open file... $ECHO_C" >&6
6992582a 34019if test "${libgfor_cv_have_unlink_open_file+set}" = set; then
1dc95e51 34020 echo $ECHO_N "(cached) $ECHO_C" >&6
34021else
34022
34023 if test "$cross_compiling" = yes; then
34024
34025case "${target}" in
6992582a 34026 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
34027 *) libgfor_cv_have_unlink_open_file=yes;;
1dc95e51 34028esac
34029else
34030 cat >conftest.$ac_ext <<_ACEOF
34031/* confdefs.h. */
34032_ACEOF
34033cat confdefs.h >>conftest.$ac_ext
34034cat >>conftest.$ac_ext <<_ACEOF
34035/* end confdefs.h. */
34036
34037#include <errno.h>
34038#include <fcntl.h>
34039#include <unistd.h>
34040#include <sys/stat.h>
34041
34042int main ()
34043{
34044 int fd;
34045
34046 fd = open ("testfile", O_RDWR | O_CREAT, S_IWRITE | S_IREAD);
34047 if (fd <= 0)
34048 return 0;
34049 if (unlink ("testfile") == -1)
34050 return 1;
34051 write (fd, "This is a test\n", 15);
34052 close (fd);
34053
34054 if (open ("testfile", O_RDONLY, S_IWRITE | S_IREAD) == -1 && errno == ENOENT)
34055 return 0;
34056 else
34057 return 1;
34058}
34059_ACEOF
34060rm -f conftest$ac_exeext
82eaf560 34061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34062 (eval $ac_link) 2>&5
1dc95e51 34063 ac_status=$?
34064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
82eaf560 34066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34067 (eval $ac_try) 2>&5
1dc95e51 34068 ac_status=$?
34069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070 (exit $ac_status); }; }; then
6992582a 34071 libgfor_cv_have_unlink_open_file=yes
1dc95e51 34072else
34073 echo "$as_me: program exited with status $ac_status" >&5
34074echo "$as_me: failed program was:" >&5
34075sed 's/^/| /' conftest.$ac_ext >&5
34076
34077( exit $ac_status )
6992582a 34078libgfor_cv_have_unlink_open_file=no
1dc95e51 34079fi
82eaf560 34080rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1dc95e51 34081fi
34082fi
6992582a 34083echo "$as_me:$LINENO: result: $libgfor_cv_have_unlink_open_file" >&5
34084echo "${ECHO_T}$libgfor_cv_have_unlink_open_file" >&6
34085if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
1dc95e51 34086
34087cat >>confdefs.h <<\_ACEOF
34088#define HAVE_UNLINK_OPEN_FILE 1
34089_ACEOF
34090
34091fi
34092
cf55c3cf 34093# Check whether line terminator is LF or CRLF
34094
82eaf560 34095 echo "$as_me:$LINENO: checking whether the target has CRLF as line terminator" >&5
34096echo $ECHO_N "checking whether the target has CRLF as line terminator... $ECHO_C" >&6
6992582a 34097if test "${libgfor_cv_have_crlf+set}" = set; then
cf55c3cf 34098 echo $ECHO_N "(cached) $ECHO_C" >&6
34099else
34100
34101 if test "$cross_compiling" = yes; then
34102
34103case "${target}" in
6992582a 34104 *mingw*) libgfor_cv_have_crlf=yes ;;
34105 *) libgfor_cv_have_crlf=no;;
cf55c3cf 34106esac
34107else
34108 cat >conftest.$ac_ext <<_ACEOF
34109/* confdefs.h. */
34110_ACEOF
34111cat confdefs.h >>conftest.$ac_ext
34112cat >>conftest.$ac_ext <<_ACEOF
34113/* end confdefs.h. */
34114
34115/* This test program should exit with status 0 if system uses a CRLF as
34116 line terminator, and status 1 otherwise.
34117 Since it is used to check for mingw systems, and should return 0 in any
34118 other case, in case of a failure we will not use CRLF. */
34119#include <sys/stat.h>
34120#include <stdlib.h>
34121#include <fcntl.h>
34122#include <stdio.h>
34123
34124int main ()
34125{
34126#ifndef O_BINARY
34127 exit(1);
34128#else
34129 int fd, bytes;
34130 char buff[5];
34131
34132 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
34133 if (fd < 0)
34134 exit(1);
34135 if (write (fd, "\n", 1) < 0)
34136 perror ("write");
34137
34138 close (fd);
34139
34140 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
34141 exit(1);
34142 bytes = read (fd, buff, 5);
34143 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
34144 exit(0);
34145 else
34146 exit(1);
34147#endif
34148}
34149_ACEOF
34150rm -f conftest$ac_exeext
82eaf560 34151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34152 (eval $ac_link) 2>&5
cf55c3cf 34153 ac_status=$?
34154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
82eaf560 34156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34157 (eval $ac_try) 2>&5
cf55c3cf 34158 ac_status=$?
34159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160 (exit $ac_status); }; }; then
6992582a 34161 libgfor_cv_have_crlf=yes
cf55c3cf 34162else
34163 echo "$as_me: program exited with status $ac_status" >&5
34164echo "$as_me: failed program was:" >&5
34165sed 's/^/| /' conftest.$ac_ext >&5
34166
34167( exit $ac_status )
6992582a 34168libgfor_cv_have_crlf=no
cf55c3cf 34169fi
82eaf560 34170rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cf55c3cf 34171fi
34172fi
6992582a 34173echo "$as_me:$LINENO: result: $libgfor_cv_have_crlf" >&5
34174echo "${ECHO_T}$libgfor_cv_have_crlf" >&6
34175if test x"$libgfor_cv_have_crlf" = xyes; then
cf55c3cf 34176
34177cat >>confdefs.h <<\_ACEOF
34178#define HAVE_CRLF 1
34179_ACEOF
34180
34181fi
34182
4ee9c684 34183cat >confcache <<\_ACEOF
34184# This file is a shell script that caches the results of configure
34185# tests run on this system so they can be shared between configure
34186# scripts and configure runs, see configure's option --config-cache.
34187# It is not useful on other systems. If it contains results you don't
34188# want to keep, you may remove or edit it.
34189#
34190# config.status only pays attention to the cache file if you give it
34191# the --recheck option to rerun configure.
34192#
34193# `ac_cv_env_foo' variables (set or unset) will be overridden when
34194# loading this file, other *unset* `ac_cv_foo' will be assigned the
34195# following values.
34196
34197_ACEOF
34198
34199# The following way of writing the cache mishandles newlines in values,
34200# but we know of no workaround that is simple, portable, and efficient.
82eaf560 34201# So, don't put newlines in cache variables' values.
4ee9c684 34202# Ultrix sh set writes to stderr and can't be redirected directly,
34203# and sets the high bit in the cache file unless we assign to the vars.
82eaf560 34204{
4ee9c684 34205 (set) 2>&1 |
82eaf560 34206 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34207 *ac_space=\ *)
4ee9c684 34208 # `set' does not quote correctly, so add quotes (double-quote
34209 # substitution turns \\\\ into \\, and sed turns \\ into \).
34210 sed -n \
34211 "s/'/'\\\\''/g;
34212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
82eaf560 34213 ;;
4ee9c684 34214 *)
34215 # `set' quotes correctly as required by POSIX, so do not add quotes.
82eaf560 34216 sed -n \
34217 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4ee9c684 34218 ;;
82eaf560 34219 esac;
34220} |
4ee9c684 34221 sed '
34222 t clear
82eaf560 34223 : clear
4ee9c684 34224 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34225 t end
82eaf560 34226 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34227 : end' >>confcache
34228if diff $cache_file confcache >/dev/null 2>&1; then :; else
34229 if test -w $cache_file; then
34230 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4ee9c684 34231 cat confcache >$cache_file
34232 else
82eaf560 34233 echo "not updating unwritable cache $cache_file"
4ee9c684 34234 fi
34235fi
34236rm -f confcache
34237
90973b19 34238if test ${multilib} = yes; then
34239 multilib_arg="--enable-multilib"
4ee9c684 34240else
90973b19 34241 multilib_arg=
4ee9c684 34242fi
4ee9c684 34243
90973b19 34244# Write our Makefile.
82eaf560 34245 ac_config_files="$ac_config_files Makefile"
90973b19 34246
4ee9c684 34247cat >confcache <<\_ACEOF
34248# This file is a shell script that caches the results of configure
34249# tests run on this system so they can be shared between configure
34250# scripts and configure runs, see configure's option --config-cache.
34251# It is not useful on other systems. If it contains results you don't
34252# want to keep, you may remove or edit it.
34253#
34254# config.status only pays attention to the cache file if you give it
34255# the --recheck option to rerun configure.
34256#
34257# `ac_cv_env_foo' variables (set or unset) will be overridden when
34258# loading this file, other *unset* `ac_cv_foo' will be assigned the
34259# following values.
34260
34261_ACEOF
34262
34263# The following way of writing the cache mishandles newlines in values,
34264# but we know of no workaround that is simple, portable, and efficient.
82eaf560 34265# So, don't put newlines in cache variables' values.
4ee9c684 34266# Ultrix sh set writes to stderr and can't be redirected directly,
34267# and sets the high bit in the cache file unless we assign to the vars.
82eaf560 34268{
4ee9c684 34269 (set) 2>&1 |
82eaf560 34270 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34271 *ac_space=\ *)
4ee9c684 34272 # `set' does not quote correctly, so add quotes (double-quote
34273 # substitution turns \\\\ into \\, and sed turns \\ into \).
34274 sed -n \
34275 "s/'/'\\\\''/g;
34276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
82eaf560 34277 ;;
4ee9c684 34278 *)
34279 # `set' quotes correctly as required by POSIX, so do not add quotes.
82eaf560 34280 sed -n \
34281 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4ee9c684 34282 ;;
82eaf560 34283 esac;
34284} |
4ee9c684 34285 sed '
34286 t clear
82eaf560 34287 : clear
4ee9c684 34288 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34289 t end
82eaf560 34290 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34291 : end' >>confcache
34292if diff $cache_file confcache >/dev/null 2>&1; then :; else
34293 if test -w $cache_file; then
34294 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4ee9c684 34295 cat confcache >$cache_file
34296 else
82eaf560 34297 echo "not updating unwritable cache $cache_file"
4ee9c684 34298 fi
34299fi
34300rm -f confcache
34301
34302test "x$prefix" = xNONE && prefix=$ac_default_prefix
34303# Let make expand exec_prefix.
34304test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34305
82eaf560 34306# VPATH may cause trouble with some makes, so we remove $(srcdir),
34307# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34308# trailing colons and then remove the whole line if VPATH becomes empty
34309# (actually we leave an empty line to preserve line numbers).
34310if test "x$srcdir" = x.; then
34311 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34312s/:*\$(srcdir):*/:/;
34313s/:*\${srcdir}:*/:/;
34314s/:*@srcdir@:*/:/;
34315s/^\([^=]*=[ ]*\):*/\1/;
34316s/:*$//;
34317s/^[^=]*=[ ]*$//;
34318}'
34319fi
34320
4ee9c684 34321DEFS=-DHAVE_CONFIG_H
34322
34323ac_libobjs=
34324ac_ltlibobjs=
34325for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34326 # 1. Remove the extension, and $U if already installed.
82eaf560 34327 ac_i=`echo "$ac_i" |
34328 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
34329 # 2. Add them.
34330 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
34331 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4ee9c684 34332done
34333LIBOBJS=$ac_libobjs
34334
34335LTLIBOBJS=$ac_ltlibobjs
34336
34337
93773f82 34338if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
34339 { { echo "$as_me:$LINENO: error: conditional \"onestep\" was never defined.
34340Usually this means the macro was only invoked conditionally." >&5
34341echo "$as_me: error: conditional \"onestep\" was never defined.
34342Usually this means the macro was only invoked conditionally." >&2;}
34343 { (exit 1); exit 1; }; }
34344fi
4ee9c684 34345if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
34346 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
34347Usually this means the macro was only invoked conditionally." >&5
34348echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
34349Usually this means the macro was only invoked conditionally." >&2;}
34350 { (exit 1); exit 1; }; }
34351fi
2fd61f51 34352if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34353 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
34354Usually this means the macro was only invoked conditionally." >&5
34355echo "$as_me: error: conditional \"AMDEP\" was never defined.
34356Usually this means the macro was only invoked conditionally." >&2;}
34357 { (exit 1); exit 1; }; }
34358fi
34359if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34360 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
34361Usually this means the macro was only invoked conditionally." >&5
34362echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
34363Usually this means the macro was only invoked conditionally." >&2;}
34364 { (exit 1); exit 1; }; }
34365fi
ce1a737c 34366if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
34367 { { echo "$as_me:$LINENO: error: conditional \"LIBGFOR_USE_SYMVER\" was never defined.
34368Usually this means the macro was only invoked conditionally." >&5
34369echo "$as_me: error: conditional \"LIBGFOR_USE_SYMVER\" was never defined.
34370Usually this means the macro was only invoked conditionally." >&2;}
34371 { (exit 1); exit 1; }; }
34372fi
4ee9c684 34373
34374: ${CONFIG_STATUS=./config.status}
34375ac_clean_files_save=$ac_clean_files
34376ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34377{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34378echo "$as_me: creating $CONFIG_STATUS" >&6;}
34379cat >$CONFIG_STATUS <<_ACEOF
34380#! $SHELL
34381# Generated by $as_me.
34382# Run this file to recreate the current configuration.
34383# Compiler output produced by configure, useful for debugging
34384# configure, is in config.log if it exists.
34385
34386debug=false
34387ac_cs_recheck=false
34388ac_cs_silent=false
34389SHELL=\${CONFIG_SHELL-$SHELL}
34390_ACEOF
34391
34392cat >>$CONFIG_STATUS <<\_ACEOF
34393## --------------------- ##
34394## M4sh Initialization. ##
34395## --------------------- ##
34396
82eaf560 34397# Be Bourne compatible
4ee9c684 34398if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34399 emulate sh
34400 NULLCMD=:
34401 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34402 # is contrary to our usage. Disable this feature.
34403 alias -g '${1+"$@"}'='"$@"'
82eaf560 34404elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34405 set -o posix
4ee9c684 34406fi
82eaf560 34407DUALCASE=1; export DUALCASE # for MKS sh
4ee9c684 34408
34409# Support unset when possible.
34410if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34411 as_unset=unset
34412else
34413 as_unset=false
34414fi
34415
34416
34417# Work around bugs in pre-3.0 UWIN ksh.
82eaf560 34418$as_unset ENV MAIL MAILPATH
4ee9c684 34419PS1='$ '
34420PS2='> '
34421PS4='+ '
34422
34423# NLS nuisances.
34424for as_var in \
34425 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34426 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34427 LC_TELEPHONE LC_TIME
34428do
34429 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34430 eval $as_var=C; export $as_var
34431 else
82eaf560 34432 $as_unset $as_var
4ee9c684 34433 fi
34434done
34435
34436# Required to use basename.
82eaf560 34437if expr a : '\(a\)' >/dev/null 2>&1; then
4ee9c684 34438 as_expr=expr
34439else
34440 as_expr=false
34441fi
34442
82eaf560 34443if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4ee9c684 34444 as_basename=basename
34445else
34446 as_basename=false
34447fi
34448
34449
34450# Name of the executable.
82eaf560 34451as_me=`$as_basename "$0" ||
4ee9c684 34452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34453 X"$0" : 'X\(//\)$' \| \
82eaf560 34454 X"$0" : 'X\(/\)$' \| \
34455 . : '\(.\)' 2>/dev/null ||
4ee9c684 34456echo X/"$0" |
82eaf560 34457 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
34458 /^X\/\(\/\/\)$/{ s//\1/; q; }
34459 /^X\/\(\/\).*/{ s//\1/; q; }
34460 s/.*/./; q'`
a106dabe 34461
82eaf560 34462
34463# PATH needs CR, and LINENO needs CR and PATH.
34464# Avoid depending upon Character Ranges.
34465as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34466as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34467as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34468as_cr_digits='0123456789'
34469as_cr_alnum=$as_cr_Letters$as_cr_digits
34470
34471# The user is always right.
34472if test "${PATH_SEPARATOR+set}" != set; then
34473 echo "#! /bin/sh" >conf$$.sh
34474 echo "exit 0" >>conf$$.sh
34475 chmod +x conf$$.sh
34476 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34477 PATH_SEPARATOR=';'
34478 else
34479 PATH_SEPARATOR=:
34480 fi
34481 rm -f conf$$.sh
34482fi
4ee9c684 34483
34484
82eaf560 34485 as_lineno_1=$LINENO
34486 as_lineno_2=$LINENO
34487 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34488 test "x$as_lineno_1" != "x$as_lineno_2" &&
34489 test "x$as_lineno_3" = "x$as_lineno_2" || {
34490 # Find who we are. Look in the path if we contain no path at all
34491 # relative or not.
34492 case $0 in
34493 *[\\/]* ) as_myself=$0 ;;
34494 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34495for as_dir in $PATH
34496do
34497 IFS=$as_save_IFS
34498 test -z "$as_dir" && as_dir=.
34499 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34500done
4ee9c684 34501
82eaf560 34502 ;;
34503 esac
34504 # We did not find ourselves, most probably we were run as `sh COMMAND'
34505 # in which case we are not to be found in the path.
34506 if test "x$as_myself" = x; then
34507 as_myself=$0
34508 fi
34509 if test ! -f "$as_myself"; then
34510 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
34511echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
34512 { (exit 1); exit 1; }; }
34513 fi
34514 case $CONFIG_SHELL in
34515 '')
34516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34517for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
34518do
34519 IFS=$as_save_IFS
34520 test -z "$as_dir" && as_dir=.
34521 for as_base in sh bash ksh sh5; do
34522 case $as_dir in
34523 /*)
34524 if ("$as_dir/$as_base" -c '
4ee9c684 34525 as_lineno_1=$LINENO
34526 as_lineno_2=$LINENO
82eaf560 34527 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4ee9c684 34528 test "x$as_lineno_1" != "x$as_lineno_2" &&
82eaf560 34529 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
34530 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
34531 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
34532 CONFIG_SHELL=$as_dir/$as_base
34533 export CONFIG_SHELL
34534 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
34535 fi;;
34536 esac
34537 done
34538done
34539;;
34540 esac
4ee9c684 34541
34542 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34543 # uniformly replaced by the line number. The first 'sed' inserts a
82eaf560 34544 # line-number line before each line; the second 'sed' does the real
34545 # work. The second script uses 'N' to pair each line-number line
34546 # with the numbered line, and appends trailing '-' during
34547 # substitution so that $LINENO is not a special case at line end.
4ee9c684 34548 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
82eaf560 34549 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
34550 sed '=' <$as_myself |
4ee9c684 34551 sed '
34552 N
82eaf560 34553 s,$,-,
34554 : loop
34555 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4ee9c684 34556 t loop
82eaf560 34557 s,-$,,
34558 s,^['$as_cr_digits']*\n,,
4ee9c684 34559 ' >$as_me.lineno &&
82eaf560 34560 chmod +x $as_me.lineno ||
34561 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
34562echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4ee9c684 34563 { (exit 1); exit 1; }; }
34564
34565 # Don't try to exec as it changes $[0], causing all sort of problems
34566 # (the dirname of $[0] is not the place where we might find the
82eaf560 34567 # original and so on. Autoconf is especially sensible to this).
34568 . ./$as_me.lineno
4ee9c684 34569 # Exit status is that of the last command.
34570 exit
34571}
34572
34573
82eaf560 34574case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
34575 *c*,-n*) ECHO_N= ECHO_C='
34576' ECHO_T=' ' ;;
34577 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
34578 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4ee9c684 34579esac
34580
82eaf560 34581if expr a : '\(a\)' >/dev/null 2>&1; then
4ee9c684 34582 as_expr=expr
34583else
34584 as_expr=false
34585fi
34586
34587rm -f conf$$ conf$$.exe conf$$.file
34588echo >conf$$.file
34589if ln -s conf$$.file conf$$ 2>/dev/null; then
82eaf560 34590 # We could just check for DJGPP; but this test a) works b) is more generic
34591 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
34592 if test -f conf$$.exe; then
34593 # Don't use ln at all; we don't have any links
4ee9c684 34594 as_ln_s='cp -p'
82eaf560 34595 else
34596 as_ln_s='ln -s'
34597 fi
4ee9c684 34598elif ln conf$$.file conf$$ 2>/dev/null; then
34599 as_ln_s=ln
34600else
34601 as_ln_s='cp -p'
34602fi
82eaf560 34603rm -f conf$$ conf$$.exe conf$$.file
4ee9c684 34604
34605if mkdir -p . 2>/dev/null; then
34606 as_mkdir_p=:
34607else
34608 test -d ./-p && rmdir ./-p
34609 as_mkdir_p=false
34610fi
34611
82eaf560 34612as_executable_p="test -f"
4ee9c684 34613
34614# Sed expression to map a string onto a valid CPP name.
34615as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34616
34617# Sed expression to map a string onto a valid variable name.
34618as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34619
34620
82eaf560 34621# IFS
34622# We need space, tab and new line, in precisely that order.
34623as_nl='
34624'
34625IFS=" $as_nl"
34626
34627# CDPATH.
34628$as_unset CDPATH
34629
4ee9c684 34630exec 6>&1
34631
82eaf560 34632# Open the log real soon, to keep \$[0] and so on meaningful, and to
4ee9c684 34633# report actual input values of CONFIG_FILES etc. instead of their
82eaf560 34634# values after options handling. Logging --version etc. is OK.
34635exec 5>>config.log
34636{
34637 echo
34638 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34639## Running $as_me. ##
34640_ASBOX
34641} >&5
34642cat >&5 <<_CSEOF
34643
76c0a846 34644This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
82eaf560 34645generated by GNU Autoconf 2.59. Invocation command line was
4ee9c684 34646
34647 CONFIG_FILES = $CONFIG_FILES
34648 CONFIG_HEADERS = $CONFIG_HEADERS
34649 CONFIG_LINKS = $CONFIG_LINKS
34650 CONFIG_COMMANDS = $CONFIG_COMMANDS
34651 $ $0 $@
34652
82eaf560 34653_CSEOF
34654echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
34655echo >&5
4ee9c684 34656_ACEOF
34657
34658# Files that config.status was made for.
82eaf560 34659if test -n "$ac_config_files"; then
34660 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
34661fi
a106dabe 34662
82eaf560 34663if test -n "$ac_config_headers"; then
34664 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
34665fi
34666
34667if test -n "$ac_config_links"; then
34668 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
34669fi
34670
34671if test -n "$ac_config_commands"; then
34672 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
34673fi
4ee9c684 34674
34675cat >>$CONFIG_STATUS <<\_ACEOF
82eaf560 34676
4ee9c684 34677ac_cs_usage="\
34678\`$as_me' instantiates files from templates according to the
34679current configuration.
34680
34681Usage: $0 [OPTIONS] [FILE]...
34682
34683 -h, --help print this help, then exit
82eaf560 34684 -V, --version print version number, then exit
4ee9c684 34685 -q, --quiet do not print progress messages
34686 -d, --debug don't remove temporary files
34687 --recheck update $as_me by reconfiguring in the same conditions
34688 --file=FILE[:TEMPLATE]
34689 instantiate the configuration file FILE
34690 --header=FILE[:TEMPLATE]
34691 instantiate the configuration header FILE
34692
34693Configuration files:
34694$config_files
34695
34696Configuration headers:
34697$config_headers
34698
34699Configuration commands:
34700$config_commands
34701
34702Report bugs to <bug-autoconf@gnu.org>."
ff4425cf 34703_ACEOF
82eaf560 34704
4ee9c684 34705cat >>$CONFIG_STATUS <<_ACEOF
34706ac_cs_version="\\
76c0a846 34707GNU Fortran Runtime Library config.status 0.3
82eaf560 34708configured by $0, generated by GNU Autoconf 2.59,
34709 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4ee9c684 34710
82eaf560 34711Copyright (C) 2003 Free Software Foundation, Inc.
4ee9c684 34712This config.status script is free software; the Free Software Foundation
34713gives unlimited permission to copy, distribute and modify it."
82eaf560 34714srcdir=$srcdir
34715INSTALL="$INSTALL"
4ee9c684 34716_ACEOF
34717
34718cat >>$CONFIG_STATUS <<\_ACEOF
34719# If no file are specified by the user, then we need to provide default
34720# value. By we need to know if files were specified by the user.
34721ac_need_defaults=:
34722while test $# != 0
34723do
34724 case $1 in
34725 --*=*)
82eaf560 34726 ac_option=`expr "x$1" : 'x\([^=]*\)='`
34727 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4ee9c684 34728 ac_shift=:
34729 ;;
82eaf560 34730 -*)
4ee9c684 34731 ac_option=$1
34732 ac_optarg=$2
34733 ac_shift=shift
34734 ;;
82eaf560 34735 *) # This is not an option, so the user has probably given explicit
34736 # arguments.
34737 ac_option=$1
34738 ac_need_defaults=false;;
4ee9c684 34739 esac
34740
34741 case $ac_option in
34742 # Handling of the options.
82eaf560 34743_ACEOF
34744cat >>$CONFIG_STATUS <<\_ACEOF
4ee9c684 34745 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34746 ac_cs_recheck=: ;;
82eaf560 34747 --version | --vers* | -V )
34748 echo "$ac_cs_version"; exit 0 ;;
34749 --he | --h)
34750 # Conflict between --help and --header
34751 { { echo "$as_me:$LINENO: error: ambiguous option: $1
34752Try \`$0 --help' for more information." >&5
34753echo "$as_me: error: ambiguous option: $1
34754Try \`$0 --help' for more information." >&2;}
34755 { (exit 1); exit 1; }; };;
34756 --help | --hel | -h )
34757 echo "$ac_cs_usage"; exit 0 ;;
34758 --debug | --d* | -d )
4ee9c684 34759 debug=: ;;
34760 --file | --fil | --fi | --f )
34761 $ac_shift
34762 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34763 ac_need_defaults=false;;
34764 --header | --heade | --head | --hea )
34765 $ac_shift
34766 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34767 ac_need_defaults=false;;
34768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34769 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34770 ac_cs_silent=: ;;
34771
34772 # This is an error.
82eaf560 34773 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
34774Try \`$0 --help' for more information." >&5
34775echo "$as_me: error: unrecognized option: $1
34776Try \`$0 --help' for more information." >&2;}
4ee9c684 34777 { (exit 1); exit 1; }; } ;;
34778
82eaf560 34779 *) ac_config_targets="$ac_config_targets $1" ;;
4ee9c684 34780
34781 esac
34782 shift
34783done
34784
34785ac_configure_extra_args=
34786
34787if $ac_cs_silent; then
34788 exec 6>/dev/null
34789 ac_configure_extra_args="$ac_configure_extra_args --silent"
34790fi
34791
34792_ACEOF
34793cat >>$CONFIG_STATUS <<_ACEOF
34794if \$ac_cs_recheck; then
82eaf560 34795 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34796 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4ee9c684 34797fi
34798
542f9784 34799_ACEOF
34800
34801cat >>$CONFIG_STATUS <<_ACEOF
34802#
82eaf560 34803# INIT-COMMANDS section.
542f9784 34804#
34805
82eaf560 34806
542f9784 34807srcdir="$srcdir"
34808host="$host"
34809target="$target"
34810with_multisubdir="$with_multisubdir"
34811with_multisrctop="$with_multisrctop"
34812with_target_subdir="$with_target_subdir"
34813ac_configure_args="${multilib_arg} ${ac_configure_args}"
34814multi_basedir="$multi_basedir"
34815CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
34816CC="$CC"
34817AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34818
34819
34820# The HP-UX ksh and POSIX shell print the target directory to stdout
34821# if CDPATH is set.
34822(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34823
34824sed_quote_subst='$sed_quote_subst'
34825double_quote_subst='$double_quote_subst'
34826delay_variable_subst='$delay_variable_subst'
34827macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
34828macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
34829enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
34830enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
34831pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
34832enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
34833host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
34834host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
34835host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
34836build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
34837build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
34838build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
34839SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
34840Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
34841GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
34842EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
34843FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
34844LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
34845NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
34846LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
34847max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
34848ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
34849exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
34850lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
34851lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
34852lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
34853reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
34854reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
00aafda4 34855OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
542f9784 34856deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
34857file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
34858AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
34859AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
34860STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
34861RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
34862old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34863old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34864old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34865CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
34866CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
34867compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
34868GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
34869lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
34870lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
34871lt_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"`'
00aafda4 34872lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
542f9784 34873objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
34874SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
34875ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
34876MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
34877lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
34878lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
34879lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
34880lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
34881lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
34882need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
00aafda4 34883DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
34884NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
34885LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
34886OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
34887OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
542f9784 34888libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
34889shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34890extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34891archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
34892enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
34893export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
34894whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
34895compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
34896old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34897old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34898archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34899archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34900module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34901module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34902with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
34903allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
34904no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
34905hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
34906hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
34907hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
34908hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
34909hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
34910hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
34911hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
34912hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
34913inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
34914link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
34915fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
34916always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
34917export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34918exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
34919include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
34920prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34921file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
34922variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
34923need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
34924need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
34925version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
34926runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
34927shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
34928shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
34929libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
34930library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
34931soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
34932postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34933postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34934finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34935finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
34936hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
34937sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
34938sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
34939hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
34940enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
34941enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
34942enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
34943old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
34944striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
00aafda4 34945compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
542f9784 34946predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
34947postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
34948predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
34949postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
34950compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
34951LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
34952old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34953compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
34954GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
34955lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
34956lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
34957lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
34958lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
34959lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
34960archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
34961enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
34962export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
34963whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
34964compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
34965old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34966old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34967archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34968archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34969module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34970module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34971with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
34972allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
34973no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
34974hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
34975hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
34976hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
34977hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
34978hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
34979hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
34980hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
34981hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
34982inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
34983link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
34984fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
34985always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
34986export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34987exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
34988include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
34989prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
34990file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
34991hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
00aafda4 34992compiler_lib_search_dirs_FC='`$ECHO "X$compiler_lib_search_dirs_FC" | $Xsed -e "$delay_single_quote_subst"`'
542f9784 34993predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
34994postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
34995predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
34996postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
34997compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
34998
34999LTCC='$LTCC'
35000LTCFLAGS='$LTCFLAGS'
35001compiler='$compiler_DEFAULT'
35002
35003# Quote evaled strings.
35004for var in SED \
35005GREP \
35006EGREP \
35007FGREP \
35008LD \
35009NM \
35010LN_S \
35011lt_SP2NL \
35012lt_NL2SP \
35013reload_flag \
00aafda4 35014OBJDUMP \
542f9784 35015deplibs_check_method \
35016file_magic_cmd \
35017AR \
35018AR_FLAGS \
35019STRIP \
35020RANLIB \
35021CC \
35022CFLAGS \
35023compiler \
35024lt_cv_sys_global_symbol_pipe \
35025lt_cv_sys_global_symbol_to_cdecl \
35026lt_cv_sys_global_symbol_to_c_name_address \
00aafda4 35027lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
542f9784 35028SHELL \
35029ECHO \
35030lt_prog_compiler_no_builtin_flag \
35031lt_prog_compiler_wl \
35032lt_prog_compiler_pic \
35033lt_prog_compiler_static \
35034lt_cv_prog_compiler_c_o \
35035need_locks \
00aafda4 35036DSYMUTIL \
35037NMEDIT \
35038LIPO \
35039OTOOL \
35040OTOOL64 \
542f9784 35041shrext_cmds \
35042export_dynamic_flag_spec \
35043whole_archive_flag_spec \
35044compiler_needs_object \
35045with_gnu_ld \
35046allow_undefined_flag \
35047no_undefined_flag \
35048hardcode_libdir_flag_spec \
35049hardcode_libdir_flag_spec_ld \
35050hardcode_libdir_separator \
35051fix_srcfile_path \
35052exclude_expsyms \
35053include_expsyms \
35054file_list_spec \
35055variables_saved_for_relink \
35056libname_spec \
35057library_names_spec \
35058soname_spec \
35059finish_eval \
35060old_striplib \
35061striplib \
00aafda4 35062compiler_lib_search_dirs \
542f9784 35063predep_objects \
35064postdep_objects \
35065predeps \
35066postdeps \
35067compiler_lib_search_path \
35068LD_FC \
35069compiler_FC \
35070lt_prog_compiler_no_builtin_flag_FC \
35071lt_prog_compiler_wl_FC \
35072lt_prog_compiler_pic_FC \
35073lt_prog_compiler_static_FC \
35074lt_cv_prog_compiler_c_o_FC \
35075export_dynamic_flag_spec_FC \
35076whole_archive_flag_spec_FC \
35077compiler_needs_object_FC \
35078with_gnu_ld_FC \
35079allow_undefined_flag_FC \
35080no_undefined_flag_FC \
35081hardcode_libdir_flag_spec_FC \
35082hardcode_libdir_flag_spec_ld_FC \
35083hardcode_libdir_separator_FC \
35084fix_srcfile_path_FC \
35085exclude_expsyms_FC \
35086include_expsyms_FC \
35087file_list_spec_FC \
00aafda4 35088compiler_lib_search_dirs_FC \
542f9784 35089predep_objects_FC \
35090postdep_objects_FC \
35091predeps_FC \
35092postdeps_FC \
35093compiler_lib_search_path_FC; do
35094 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
35095 *[\\\\\\\`\\"\\\$]*)
35096 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
35097 ;;
35098 *)
35099 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35100 ;;
35101 esac
35102done
35103
35104# Double-quote double-evaled strings.
35105for var in reload_cmds \
35106old_postinstall_cmds \
35107old_postuninstall_cmds \
35108old_archive_cmds \
35109extract_expsyms_cmds \
35110old_archive_from_new_cmds \
35111old_archive_from_expsyms_cmds \
35112archive_cmds \
35113archive_expsym_cmds \
35114module_cmds \
35115module_expsym_cmds \
35116export_symbols_cmds \
35117prelink_cmds \
35118postinstall_cmds \
35119postuninstall_cmds \
35120finish_cmds \
35121sys_lib_search_path_spec \
35122sys_lib_dlsearch_path_spec \
35123old_archive_cmds_FC \
35124old_archive_from_new_cmds_FC \
35125old_archive_from_expsyms_cmds_FC \
35126archive_cmds_FC \
35127archive_expsym_cmds_FC \
35128module_cmds_FC \
35129module_expsym_cmds_FC \
35130export_symbols_cmds_FC \
35131prelink_cmds_FC; do
35132 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
35133 *[\\\\\\\`\\"\\\$]*)
35134 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
35135 ;;
35136 *)
35137 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35138 ;;
35139 esac
35140done
35141
35142# Fix-up fallback echo if it was mangled by the above quoting rules.
35143case \$lt_ECHO in
35144*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
35145 ;;
35146esac
35147
35148ac_aux_dir='$ac_aux_dir'
35149xsi_shell='$xsi_shell'
35150lt_shell_append='$lt_shell_append'
35151
35152# See if we are running on zsh, and set the options which allow our
35153# commands through without removal of \ escapes INIT.
35154if test -n "\${ZSH_VERSION+set}" ; then
35155 setopt NO_GLOB_SUBST
35156fi
35157
35158
35159 PACKAGE='$PACKAGE'
35160 VERSION='$VERSION'
35161 TIMESTAMP='$TIMESTAMP'
35162 RM='$RM'
35163 ofile='$ofile'
35164
35165
4ee9c684 35166
4ee9c684 35167
a106dabe 35168
4ee9c684 35169
56c15991 35170GCC="$GCC"
35171CC="$CC"
35172acx_cv_header_stdint="$acx_cv_header_stdint"
35173acx_cv_type_int8_t="$acx_cv_type_int8_t"
35174acx_cv_type_int16_t="$acx_cv_type_int16_t"
35175acx_cv_type_int32_t="$acx_cv_type_int32_t"
35176acx_cv_type_int64_t="$acx_cv_type_int64_t"
35177acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
35178ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
35179ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
35180ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
35181ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
35182ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
35183ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
35184ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
35185ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
35186
35187
4ee9c684 35188_ACEOF
35189
ff4425cf 35190
82eaf560 35191
35192cat >>$CONFIG_STATUS <<\_ACEOF
4ee9c684 35193for ac_config_target in $ac_config_targets
35194do
82eaf560 35195 case "$ac_config_target" in
35196 # Handling of arguments.
35197 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35198 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35199 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35200 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
35201 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
35202 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4ee9c684 35203 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35204echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35205 { (exit 1); exit 1; }; };;
35206 esac
35207done
35208
35209# If the user did not use the arguments to specify the items to instantiate,
35210# then the envvar interface is used. Set only those that are not.
35211# We use the long form for the default assignment because of an extremely
35212# bizarre bug on SunOS 4.1.3.
35213if $ac_need_defaults; then
35214 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35215 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35216 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35217fi
35218
35219# Have a temporary directory for convenience. Make it in the build tree
82eaf560 35220# simply because there is no reason to put it here, and in addition,
4ee9c684 35221# creating and moving files from /tmp can sometimes cause problems.
82eaf560 35222# Create a temporary directory, and hook for its removal unless debugging.
4ee9c684 35223$debug ||
35224{
82eaf560 35225 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4ee9c684 35226 trap '{ (exit 1); exit 1; }' 1 2 13 15
35227}
82eaf560 35228
4ee9c684 35229# Create a (secure) tmp directory for tmp files.
35230
35231{
82eaf560 35232 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4ee9c684 35233 test -n "$tmp" && test -d "$tmp"
35234} ||
35235{
82eaf560 35236 tmp=./confstat$$-$RANDOM
35237 (umask 077 && mkdir $tmp)
4ee9c684 35238} ||
35239{
35240 echo "$me: cannot create a temporary directory in ." >&2
35241 { (exit 1); exit 1; }
35242}
35243
82eaf560 35244_ACEOF
35245
35246cat >>$CONFIG_STATUS <<_ACEOF
35247
4ee9c684 35248#
82eaf560 35249# CONFIG_FILES section.
4ee9c684 35250#
35251
35252# No need to generate the scripts if there are no CONFIG_FILES.
35253# This happens for instance when ./config.status config.h
82eaf560 35254if test -n "\$CONFIG_FILES"; then
35255 # Protect against being on the right side of a sed subst in config.status.
35256 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35257 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35258s,@SHELL@,$SHELL,;t t
35259s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35260s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35261s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35262s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35263s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35264s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35265s,@exec_prefix@,$exec_prefix,;t t
35266s,@prefix@,$prefix,;t t
35267s,@program_transform_name@,$program_transform_name,;t t
35268s,@bindir@,$bindir,;t t
35269s,@sbindir@,$sbindir,;t t
35270s,@libexecdir@,$libexecdir,;t t
35271s,@datadir@,$datadir,;t t
35272s,@sysconfdir@,$sysconfdir,;t t
35273s,@sharedstatedir@,$sharedstatedir,;t t
35274s,@localstatedir@,$localstatedir,;t t
35275s,@libdir@,$libdir,;t t
35276s,@includedir@,$includedir,;t t
35277s,@oldincludedir@,$oldincludedir,;t t
35278s,@infodir@,$infodir,;t t
35279s,@mandir@,$mandir,;t t
35280s,@build_alias@,$build_alias,;t t
35281s,@host_alias@,$host_alias,;t t
35282s,@target_alias@,$target_alias,;t t
35283s,@DEFS@,$DEFS,;t t
35284s,@ECHO_C@,$ECHO_C,;t t
35285s,@ECHO_N@,$ECHO_N,;t t
35286s,@ECHO_T@,$ECHO_T,;t t
35287s,@LIBS@,$LIBS,;t t
35288s,@build@,$build,;t t
35289s,@build_cpu@,$build_cpu,;t t
35290s,@build_vendor@,$build_vendor,;t t
35291s,@build_os@,$build_os,;t t
35292s,@build_libsubdir@,$build_libsubdir,;t t
35293s,@build_subdir@,$build_subdir,;t t
35294s,@host_subdir@,$host_subdir,;t t
35295s,@target_subdir@,$target_subdir,;t t
35296s,@onestep_TRUE@,$onestep_TRUE,;t t
35297s,@onestep_FALSE@,$onestep_FALSE,;t t
35298s,@onestep@,$onestep,;t t
35299s,@host@,$host,;t t
35300s,@host_cpu@,$host_cpu,;t t
35301s,@host_vendor@,$host_vendor,;t t
35302s,@host_os@,$host_os,;t t
35303s,@target@,$target,;t t
35304s,@target_cpu@,$target_cpu,;t t
35305s,@target_vendor@,$target_vendor,;t t
35306s,@target_os@,$target_os,;t t
35307s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
35308s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
35309s,@INSTALL_DATA@,$INSTALL_DATA,;t t
35310s,@CYGPATH_W@,$CYGPATH_W,;t t
35311s,@PACKAGE@,$PACKAGE,;t t
35312s,@VERSION@,$VERSION,;t t
35313s,@ACLOCAL@,$ACLOCAL,;t t
35314s,@AUTOCONF@,$AUTOCONF,;t t
35315s,@AUTOMAKE@,$AUTOMAKE,;t t
35316s,@AUTOHEADER@,$AUTOHEADER,;t t
35317s,@MAKEINFO@,$MAKEINFO,;t t
35318s,@install_sh@,$install_sh,;t t
35319s,@STRIP@,$STRIP,;t t
35320s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
35321s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
35322s,@mkdir_p@,$mkdir_p,;t t
35323s,@AWK@,$AWK,;t t
35324s,@SET_MAKE@,$SET_MAKE,;t t
35325s,@am__leading_dot@,$am__leading_dot,;t t
35326s,@AMTAR@,$AMTAR,;t t
35327s,@am__tar@,$am__tar,;t t
35328s,@am__untar@,$am__untar,;t t
35329s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
35330s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
35331s,@MAINT@,$MAINT,;t t
35332s,@multi_basedir@,$multi_basedir,;t t
35333s,@toolexecdir@,$toolexecdir,;t t
35334s,@toolexeclibdir@,$toolexeclibdir,;t t
35335s,@CC@,$CC,;t t
35336s,@ac_ct_CC@,$ac_ct_CC,;t t
35337s,@EXEEXT@,$EXEEXT,;t t
35338s,@OBJEXT@,$OBJEXT,;t t
35339s,@DEPDIR@,$DEPDIR,;t t
35340s,@am__include@,$am__include,;t t
35341s,@am__quote@,$am__quote,;t t
35342s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
35343s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
35344s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
35345s,@CCDEPMODE@,$CCDEPMODE,;t t
35346s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
35347s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
35348s,@AM_FCFLAGS@,$AM_FCFLAGS,;t t
35349s,@AM_CFLAGS@,$AM_CFLAGS,;t t
35350s,@CFLAGS@,$CFLAGS,;t t
35351s,@LIBGFOR_USE_SYMVER_TRUE@,$LIBGFOR_USE_SYMVER_TRUE,;t t
35352s,@LIBGFOR_USE_SYMVER_FALSE@,$LIBGFOR_USE_SYMVER_FALSE,;t t
35353s,@AS@,$AS,;t t
35354s,@ac_ct_AS@,$ac_ct_AS,;t t
35355s,@AR@,$AR,;t t
35356s,@ac_ct_AR@,$ac_ct_AR,;t t
35357s,@RANLIB@,$RANLIB,;t t
35358s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35359s,@LIBTOOL@,$LIBTOOL,;t t
35360s,@SED@,$SED,;t t
35361s,@EGREP@,$EGREP,;t t
35362s,@FGREP@,$FGREP,;t t
35363s,@GREP@,$GREP,;t t
35364s,@LD@,$LD,;t t
35365s,@DUMPBIN@,$DUMPBIN,;t t
35366s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
35367s,@NM@,$NM,;t t
35368s,@LN_S@,$LN_S,;t t
00aafda4 35369s,@OBJDUMP@,$OBJDUMP,;t t
35370s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
82eaf560 35371s,@lt_ECHO@,$lt_ECHO,;t t
00aafda4 35372s,@DSYMUTIL@,$DSYMUTIL,;t t
35373s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
35374s,@NMEDIT@,$NMEDIT,;t t
35375s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
35376s,@LIPO@,$LIPO,;t t
35377s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
35378s,@OTOOL@,$OTOOL,;t t
35379s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
35380s,@OTOOL64@,$OTOOL64,;t t
35381s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
82eaf560 35382s,@CPP@,$CPP,;t t
35383s,@CPPFLAGS@,$CPPFLAGS,;t t
35384s,@enable_shared@,$enable_shared,;t t
35385s,@enable_static@,$enable_static,;t t
35386s,@FC@,$FC,;t t
35387s,@FCFLAGS@,$FCFLAGS,;t t
35388s,@LDFLAGS@,$LDFLAGS,;t t
35389s,@ac_ct_FC@,$ac_ct_FC,;t t
35390s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t
35391s,@FPU_HOST_HEADER@,$FPU_HOST_HEADER,;t t
35392s,@LIBOBJS@,$LIBOBJS,;t t
35393s,@LTLIBOBJS@,$LTLIBOBJS,;t t
35394CEOF
35395
35396_ACEOF
35397
35398 cat >>$CONFIG_STATUS <<\_ACEOF
35399 # Split the substitutions into bite-sized pieces for seds with
35400 # small command number limits, like on Digital OSF/1 and HP-UX.
35401 ac_max_sed_lines=48
35402 ac_sed_frag=1 # Number of current file.
35403 ac_beg=1 # First line for current file.
35404 ac_end=$ac_max_sed_lines # Line after last line for current file.
35405 ac_more_lines=:
35406 ac_sed_cmds=
35407 while $ac_more_lines; do
35408 if test $ac_beg -gt 1; then
35409 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35410 else
35411 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35412 fi
35413 if test ! -s $tmp/subs.frag; then
35414 ac_more_lines=false
35415 else
35416 # The purpose of the label and of the branching condition is to
35417 # speed up the sed processing (if there are no `@' at all, there
35418 # is no need to browse any of the substitutions).
35419 # These are the two extra sed commands mentioned above.
35420 (echo ':t
35421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
35422 if test -z "$ac_sed_cmds"; then
35423 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
35424 else
35425 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
35426 fi
35427 ac_sed_frag=`expr $ac_sed_frag + 1`
35428 ac_beg=$ac_end
35429 ac_end=`expr $ac_end + $ac_max_sed_lines`
35430 fi
35431 done
35432 if test -z "$ac_sed_cmds"; then
35433 ac_sed_cmds=cat
ff4425cf 35434 fi
82eaf560 35435fi # test -n "$CONFIG_FILES"
ce1a737c 35436
4ee9c684 35437_ACEOF
35438cat >>$CONFIG_STATUS <<\_ACEOF
82eaf560 35439for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
35440 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
35441 case $ac_file in
35442 - | *:- | *:-:* ) # input from stdin
35443 cat >$tmp/stdin
35444 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35445 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35446 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35447 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35448 * ) ac_file_in=$ac_file.in ;;
4ee9c684 35449 esac
35450
82eaf560 35451 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
35452 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4ee9c684 35453$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35454 X"$ac_file" : 'X\(//\)[^/]' \| \
35455 X"$ac_file" : 'X\(//\)$' \| \
82eaf560 35456 X"$ac_file" : 'X\(/\)' \| \
35457 . : '\(.\)' 2>/dev/null ||
4ee9c684 35458echo X"$ac_file" |
82eaf560 35459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35460 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35461 /^X\(\/\/\)$/{ s//\1/; q; }
35462 /^X\(\/\).*/{ s//\1/; q; }
35463 s/.*/./; q'`
35464 { if $as_mkdir_p; then
35465 mkdir -p "$ac_dir"
35466 else
35467 as_dir="$ac_dir"
4ee9c684 35468 as_dirs=
82eaf560 35469 while test ! -d "$as_dir"; do
35470 as_dirs="$as_dir $as_dirs"
35471 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4ee9c684 35472$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35473 X"$as_dir" : 'X\(//\)[^/]' \| \
35474 X"$as_dir" : 'X\(//\)$' \| \
82eaf560 35475 X"$as_dir" : 'X\(/\)' \| \
35476 . : '\(.\)' 2>/dev/null ||
4ee9c684 35477echo X"$as_dir" |
82eaf560 35478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35479 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35480 /^X\(\/\/\)$/{ s//\1/; q; }
35481 /^X\(\/\).*/{ s//\1/; q; }
35482 s/.*/./; q'`
4ee9c684 35483 done
82eaf560 35484 test ! -n "$as_dirs" || mkdir $as_dirs
35485 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35486echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4ee9c684 35487 { (exit 1); exit 1; }; }; }
82eaf560 35488
4ee9c684 35489 ac_builddir=.
35490
82eaf560 35491if test "$ac_dir" != .; then
4ee9c684 35492 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
82eaf560 35493 # A "../" for each directory in $ac_dir_suffix.
35494 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35495else
35496 ac_dir_suffix= ac_top_builddir=
35497fi
4ee9c684 35498
35499case $srcdir in
82eaf560 35500 .) # No --srcdir option. We are building in place.
4ee9c684 35501 ac_srcdir=.
82eaf560 35502 if test -z "$ac_top_builddir"; then
35503 ac_top_srcdir=.
35504 else
35505 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35506 fi ;;
35507 [\\/]* | ?:[\\/]* ) # Absolute path.
4ee9c684 35508 ac_srcdir=$srcdir$ac_dir_suffix;
82eaf560 35509 ac_top_srcdir=$srcdir ;;
35510 *) # Relative path.
35511 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35512 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4ee9c684 35513esac
35514
82eaf560 35515# Do not use `cd foo && pwd` to compute absolute paths, because
35516# the directories may not exist.
35517case `pwd` in
35518.) ac_abs_builddir="$ac_dir";;
35519*)
35520 case "$ac_dir" in
35521 .) ac_abs_builddir=`pwd`;;
35522 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
35523 *) ac_abs_builddir=`pwd`/"$ac_dir";;
35524 esac;;
35525esac
35526case $ac_abs_builddir in
35527.) ac_abs_top_builddir=${ac_top_builddir}.;;
35528*)
35529 case ${ac_top_builddir}. in
35530 .) ac_abs_top_builddir=$ac_abs_builddir;;
35531 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
35532 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
35533 esac;;
35534esac
35535case $ac_abs_builddir in
35536.) ac_abs_srcdir=$ac_srcdir;;
35537*)
35538 case $ac_srcdir in
35539 .) ac_abs_srcdir=$ac_abs_builddir;;
35540 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
35541 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
35542 esac;;
35543esac
35544case $ac_abs_builddir in
35545.) ac_abs_top_srcdir=$ac_top_srcdir;;
35546*)
35547 case $ac_top_srcdir in
35548 .) ac_abs_top_srcdir=$ac_abs_builddir;;
35549 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
35550 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
35551 esac;;
35552esac
4ee9c684 35553
35554
35555 case $INSTALL in
35556 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
82eaf560 35557 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4ee9c684 35558 esac
35559
82eaf560 35560 if test x"$ac_file" != x-; then
35561 { echo "$as_me:$LINENO: creating $ac_file" >&5
35562echo "$as_me: creating $ac_file" >&6;}
35563 rm -f "$ac_file"
35564 fi
35565 # Let's still pretend it is `configure' which instantiates (i.e., don't
35566 # use $as_me), people would be surprised to read:
35567 # /* config.h. Generated by config.status. */
35568 if test x"$ac_file" = x-; then
35569 configure_input=
35570 else
35571 configure_input="$ac_file. "
35572 fi
35573 configure_input=$configure_input"Generated from `echo $ac_file_in |
35574 sed 's,.*/,,'` by configure."
35575
35576 # First look for the input files in the build tree, otherwise in the
35577 # src tree.
35578 ac_file_inputs=`IFS=:
35579 for f in $ac_file_in; do
35580 case $f in
35581 -) echo $tmp/stdin ;;
35582 [\\/$]*)
35583 # Absolute (can't be DOS-style, as IFS=:)
35584 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35585echo "$as_me: error: cannot find input file: $f" >&2;}
35586 { (exit 1); exit 1; }; }
35587 echo "$f";;
35588 *) # Relative
35589 if test -f "$f"; then
35590 # Build tree
35591 echo "$f"
35592 elif test -f "$srcdir/$f"; then
35593 # Source tree
35594 echo "$srcdir/$f"
35595 else
35596 # /dev/null tree
35597 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35598echo "$as_me: error: cannot find input file: $f" >&2;}
35599 { (exit 1); exit 1; }; }
35600 fi;;
35601 esac
35602 done` || { (exit 1); exit 1; }
a106dabe 35603_ACEOF
4ee9c684 35604cat >>$CONFIG_STATUS <<_ACEOF
35605 sed "$ac_vpsub
35606$extrasub
35607_ACEOF
35608cat >>$CONFIG_STATUS <<\_ACEOF
35609:t
35610/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
82eaf560 35611s,@configure_input@,$configure_input,;t t
35612s,@srcdir@,$ac_srcdir,;t t
35613s,@abs_srcdir@,$ac_abs_srcdir,;t t
35614s,@top_srcdir@,$ac_top_srcdir,;t t
35615s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
35616s,@builddir@,$ac_builddir,;t t
35617s,@abs_builddir@,$ac_abs_builddir,;t t
35618s,@top_builddir@,$ac_top_builddir,;t t
35619s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
35620s,@INSTALL@,$ac_INSTALL,;t t
35621" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
35622 rm -f $tmp/stdin
35623 if test x"$ac_file" != x-; then
35624 mv $tmp/out $ac_file
35625 else
35626 cat $tmp/out
35627 rm -f $tmp/out
35628 fi
35629
35630done
35631_ACEOF
35632cat >>$CONFIG_STATUS <<\_ACEOF
35633
35634#
35635# CONFIG_HEADER section.
35636#
35637
35638# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
35639# NAME is the cpp macro being defined and VALUE is the value it is being given.
35640#
35641# ac_d sets the value in "#define NAME VALUE" lines.
35642ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
35643ac_dB='[ ].*$,\1#\2'
35644ac_dC=' '
35645ac_dD=',;t'
35646# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
35647ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
35648ac_uB='$,\1#\2define\3'
35649ac_uC=' '
35650ac_uD=',;t'
35651
35652for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
35653 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4ee9c684 35654 case $ac_file in
82eaf560 35655 - | *:- | *:-:* ) # input from stdin
35656 cat >$tmp/stdin
35657 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35658 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35659 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35660 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35661 * ) ac_file_in=$ac_file.in ;;
4ee9c684 35662 esac
82eaf560 35663
35664 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
35665echo "$as_me: creating $ac_file" >&6;}
35666
35667 # First look for the input files in the build tree, otherwise in the
35668 # src tree.
35669 ac_file_inputs=`IFS=:
35670 for f in $ac_file_in; do
35671 case $f in
35672 -) echo $tmp/stdin ;;
35673 [\\/$]*)
35674 # Absolute (can't be DOS-style, as IFS=:)
35675 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35676echo "$as_me: error: cannot find input file: $f" >&2;}
35677 { (exit 1); exit 1; }; }
35678 # Do quote $f, to prevent DOS paths from being IFS'd.
35679 echo "$f";;
35680 *) # Relative
35681 if test -f "$f"; then
35682 # Build tree
35683 echo "$f"
35684 elif test -f "$srcdir/$f"; then
35685 # Source tree
35686 echo "$srcdir/$f"
35687 else
35688 # /dev/null tree
35689 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35690echo "$as_me: error: cannot find input file: $f" >&2;}
35691 { (exit 1); exit 1; }; }
35692 fi;;
35693 esac
35694 done` || { (exit 1); exit 1; }
35695 # Remove the trailing spaces.
35696 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
35697
35698_ACEOF
35699
35700# Transform confdefs.h into two sed scripts, `conftest.defines' and
35701# `conftest.undefs', that substitutes the proper values into
35702# config.h.in to produce config.h. The first handles `#define'
35703# templates, and the second `#undef' templates.
35704# And first: Protect against being on the right side of a sed subst in
35705# config.status. Protect against being in an unquoted here document
35706# in config.status.
35707rm -f conftest.defines conftest.undefs
35708# Using a here document instead of a string reduces the quoting nightmare.
35709# Putting comments in sed scripts is not portable.
35710#
35711# `end' is used to avoid that the second main sed command (meant for
35712# 0-ary CPP macros) applies to n-ary macro definitions.
35713# See the Autoconf documentation for `clear'.
35714cat >confdef2sed.sed <<\_ACEOF
35715s/[\\&,]/\\&/g
35716s,[\\$`],\\&,g
35717t clear
35718: clear
35719s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
35720t end
35721s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
35722: end
35723_ACEOF
35724# If some macros were called several times there might be several times
35725# the same #defines, which is useless. Nevertheless, we may not want to
35726# sort them, since we want the *last* AC-DEFINE to be honored.
35727uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
35728sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
35729rm -f confdef2sed.sed
35730
35731# This sed command replaces #undef with comments. This is necessary, for
4ee9c684 35732# example, in the case of _POSIX_SOURCE, which is predefined and required
35733# on some systems where configure will not decide to define it.
82eaf560 35734cat >>conftest.undefs <<\_ACEOF
35735s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
35736_ACEOF
35737
35738# Break up conftest.defines because some shells have a limit on the size
35739# of here documents, and old seds have small limits too (100 cmds).
35740echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
35741echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
35742echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
35743echo ' :' >>$CONFIG_STATUS
35744rm -f conftest.tail
35745while grep . conftest.defines >/dev/null
4ee9c684 35746do
82eaf560 35747 # Write a limited-size here document to $tmp/defines.sed.
35748 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
35749 # Speed up: don't consider the non `#define' lines.
35750 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
35751 # Work around the forget-to-reset-the-flag bug.
35752 echo 't clr' >>$CONFIG_STATUS
35753 echo ': clr' >>$CONFIG_STATUS
35754 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4ee9c684 35755 echo 'CEOF
82eaf560 35756 sed -f $tmp/defines.sed $tmp/in >$tmp/out
35757 rm -f $tmp/in
35758 mv $tmp/out $tmp/in
35759' >>$CONFIG_STATUS
35760 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4ee9c684 35761 rm -f conftest.defines
35762 mv conftest.tail conftest.defines
35763done
82eaf560 35764rm -f conftest.defines
35765echo ' fi # grep' >>$CONFIG_STATUS
35766echo >>$CONFIG_STATUS
35767
35768# Break up conftest.undefs because some shells have a limit on the size
35769# of here documents, and old seds have small limits too (100 cmds).
35770echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
35771rm -f conftest.tail
35772while grep . conftest.undefs >/dev/null
35773do
35774 # Write a limited-size here document to $tmp/undefs.sed.
35775 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
35776 # Speed up: don't consider the non `#undef'
35777 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
35778 # Work around the forget-to-reset-the-flag bug.
35779 echo 't clr' >>$CONFIG_STATUS
35780 echo ': clr' >>$CONFIG_STATUS
35781 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
35782 echo 'CEOF
35783 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
35784 rm -f $tmp/in
35785 mv $tmp/out $tmp/in
35786' >>$CONFIG_STATUS
35787 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
35788 rm -f conftest.undefs
35789 mv conftest.tail conftest.undefs
35790done
35791rm -f conftest.undefs
4ee9c684 35792
35793cat >>$CONFIG_STATUS <<\_ACEOF
82eaf560 35794 # Let's still pretend it is `configure' which instantiates (i.e., don't
35795 # use $as_me), people would be surprised to read:
35796 # /* config.h. Generated by config.status. */
35797 if test x"$ac_file" = x-; then
35798 echo "/* Generated by configure. */" >$tmp/config.h
35799 else
35800 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
35801 fi
35802 cat $tmp/in >>$tmp/config.h
35803 rm -f $tmp/in
4ee9c684 35804 if test x"$ac_file" != x-; then
82eaf560 35805 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4ee9c684 35806 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35807echo "$as_me: $ac_file is unchanged" >&6;}
35808 else
82eaf560 35809 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35810$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35811 X"$ac_file" : 'X\(//\)[^/]' \| \
35812 X"$ac_file" : 'X\(//\)$' \| \
35813 X"$ac_file" : 'X\(/\)' \| \
35814 . : '\(.\)' 2>/dev/null ||
35815echo X"$ac_file" |
35816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35817 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35818 /^X\(\/\/\)$/{ s//\1/; q; }
35819 /^X\(\/\).*/{ s//\1/; q; }
35820 s/.*/./; q'`
35821 { if $as_mkdir_p; then
35822 mkdir -p "$ac_dir"
35823 else
35824 as_dir="$ac_dir"
35825 as_dirs=
35826 while test ! -d "$as_dir"; do
35827 as_dirs="$as_dir $as_dirs"
35828 as_dir=`(dirname "$as_dir") 2>/dev/null ||
35829$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35830 X"$as_dir" : 'X\(//\)[^/]' \| \
35831 X"$as_dir" : 'X\(//\)$' \| \
35832 X"$as_dir" : 'X\(/\)' \| \
35833 . : '\(.\)' 2>/dev/null ||
35834echo X"$as_dir" |
35835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35837 /^X\(\/\/\)$/{ s//\1/; q; }
35838 /^X\(\/\).*/{ s//\1/; q; }
35839 s/.*/./; q'`
35840 done
35841 test ! -n "$as_dirs" || mkdir $as_dirs
35842 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35843echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35844 { (exit 1); exit 1; }; }; }
35845
4ee9c684 35846 rm -f $ac_file
82eaf560 35847 mv $tmp/config.h $ac_file
4ee9c684 35848 fi
35849 else
82eaf560 35850 cat $tmp/config.h
35851 rm -f $tmp/config.h
4ee9c684 35852 fi
35853# Compute $ac_file's index in $config_headers.
35854_am_stamp_count=1
35855for _am_header in $config_headers :; do
35856 case $_am_header in
35857 $ac_file | $ac_file:* )
35858 break ;;
35859 * )
35860 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35861 esac
35862done
82eaf560 35863echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
4ee9c684 35864$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35865 X$ac_file : 'X\(//\)[^/]' \| \
35866 X$ac_file : 'X\(//\)$' \| \
82eaf560 35867 X$ac_file : 'X\(/\)' \| \
35868 . : '\(.\)' 2>/dev/null ||
4ee9c684 35869echo X$ac_file |
82eaf560 35870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35872 /^X\(\/\/\)$/{ s//\1/; q; }
35873 /^X\(\/\).*/{ s//\1/; q; }
35874 s/.*/./; q'`/stamp-h$_am_stamp_count
35875done
35876_ACEOF
35877cat >>$CONFIG_STATUS <<\_ACEOF
a106dabe 35878
82eaf560 35879#
35880# CONFIG_COMMANDS section.
35881#
35882for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
35883 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
35884 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
35885 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
35886$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35887 X"$ac_dest" : 'X\(//\)[^/]' \| \
35888 X"$ac_dest" : 'X\(//\)$' \| \
35889 X"$ac_dest" : 'X\(/\)' \| \
35890 . : '\(.\)' 2>/dev/null ||
35891echo X"$ac_dest" |
35892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35893 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35894 /^X\(\/\/\)$/{ s//\1/; q; }
35895 /^X\(\/\).*/{ s//\1/; q; }
35896 s/.*/./; q'`
35897 { if $as_mkdir_p; then
35898 mkdir -p "$ac_dir"
35899 else
35900 as_dir="$ac_dir"
35901 as_dirs=
35902 while test ! -d "$as_dir"; do
35903 as_dirs="$as_dir $as_dirs"
35904 as_dir=`(dirname "$as_dir") 2>/dev/null ||
35905$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35906 X"$as_dir" : 'X\(//\)[^/]' \| \
35907 X"$as_dir" : 'X\(//\)$' \| \
35908 X"$as_dir" : 'X\(/\)' \| \
35909 . : '\(.\)' 2>/dev/null ||
35910echo X"$as_dir" |
35911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35913 /^X\(\/\/\)$/{ s//\1/; q; }
35914 /^X\(\/\).*/{ s//\1/; q; }
35915 s/.*/./; q'`
35916 done
35917 test ! -n "$as_dirs" || mkdir $as_dirs
35918 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35919echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35920 { (exit 1); exit 1; }; }; }
35921
35922 ac_builddir=.
35923
35924if test "$ac_dir" != .; then
35925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35926 # A "../" for each directory in $ac_dir_suffix.
35927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35928else
35929 ac_dir_suffix= ac_top_builddir=
35930fi
35931
35932case $srcdir in
35933 .) # No --srcdir option. We are building in place.
35934 ac_srcdir=.
35935 if test -z "$ac_top_builddir"; then
35936 ac_top_srcdir=.
35937 else
35938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35939 fi ;;
35940 [\\/]* | ?:[\\/]* ) # Absolute path.
35941 ac_srcdir=$srcdir$ac_dir_suffix;
35942 ac_top_srcdir=$srcdir ;;
35943 *) # Relative path.
35944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
35946esac
35947
35948# Do not use `cd foo && pwd` to compute absolute paths, because
35949# the directories may not exist.
35950case `pwd` in
35951.) ac_abs_builddir="$ac_dir";;
35952*)
35953 case "$ac_dir" in
35954 .) ac_abs_builddir=`pwd`;;
35955 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
35956 *) ac_abs_builddir=`pwd`/"$ac_dir";;
35957 esac;;
35958esac
35959case $ac_abs_builddir in
35960.) ac_abs_top_builddir=${ac_top_builddir}.;;
35961*)
35962 case ${ac_top_builddir}. in
35963 .) ac_abs_top_builddir=$ac_abs_builddir;;
35964 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
35965 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
35966 esac;;
35967esac
35968case $ac_abs_builddir in
35969.) ac_abs_srcdir=$ac_srcdir;;
35970*)
35971 case $ac_srcdir in
35972 .) ac_abs_srcdir=$ac_abs_builddir;;
35973 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
35974 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
35975 esac;;
35976esac
35977case $ac_abs_builddir in
35978.) ac_abs_top_srcdir=$ac_top_srcdir;;
35979*)
35980 case $ac_top_srcdir in
35981 .) ac_abs_top_srcdir=$ac_abs_builddir;;
35982 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
35983 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
35984 esac;;
35985esac
4ee9c684 35986
35987
82eaf560 35988 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
35989echo "$as_me: executing $ac_dest commands" >&6;}
35990 case $ac_dest in
35991 default-1 )
90973b19 35992# Only add multilib support code if we just rebuilt the top-level
35993# Makefile.
35994case " $CONFIG_FILES " in
35995 *" Makefile "*)
35996 ac_file=Makefile . ${multi_basedir}/config-ml.in
35997 ;;
35998esac ;;
82eaf560 35999 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
2fd61f51 36000 # Strip MF so we end up with the name of the file.
36001 mf=`echo "$mf" | sed -e 's/:.*$//'`
36002 # Check whether this is an Automake generated Makefile or not.
36003 # We used to match only the files named `Makefile.in', but
36004 # some people rename them; so instead we look at the file content.
36005 # Grep'ing the first line is not enough: some people post-process
36006 # each Makefile.in and add a new line on top of each file to say so.
36007 # So let's grep whole file.
36008 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
82eaf560 36009 dirpart=`(dirname "$mf") 2>/dev/null ||
2fd61f51 36010$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36011 X"$mf" : 'X\(//\)[^/]' \| \
36012 X"$mf" : 'X\(//\)$' \| \
82eaf560 36013 X"$mf" : 'X\(/\)' \| \
36014 . : '\(.\)' 2>/dev/null ||
2fd61f51 36015echo X"$mf" |
82eaf560 36016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36018 /^X\(\/\/\)$/{ s//\1/; q; }
36019 /^X\(\/\).*/{ s//\1/; q; }
36020 s/.*/./; q'`
2fd61f51 36021 else
36022 continue
36023 fi
36024 # Extract the definition of DEPDIR, am__include, and am__quote
36025 # from the Makefile without running `make'.
36026 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36027 test -z "$DEPDIR" && continue
36028 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36029 test -z "am__include" && continue
36030 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36031 # When using ansi2knr, U may be empty or an underscore; expand it
36032 U=`sed -n 's/^U = //p' < "$mf"`
36033 # Find all dependency output files, they are included files with
36034 # $(DEPDIR) in their names. We invoke sed twice because it is the
36035 # simplest approach to changing $(DEPDIR) to its actual value in the
36036 # expansion.
36037 for file in `sed -n "
36038 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36039 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36040 # Make sure the directory exists.
36041 test -f "$dirpart/$file" && continue
82eaf560 36042 fdir=`(dirname "$file") 2>/dev/null ||
2fd61f51 36043$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36044 X"$file" : 'X\(//\)[^/]' \| \
36045 X"$file" : 'X\(//\)$' \| \
82eaf560 36046 X"$file" : 'X\(/\)' \| \
36047 . : '\(.\)' 2>/dev/null ||
2fd61f51 36048echo X"$file" |
82eaf560 36049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36051 /^X\(\/\/\)$/{ s//\1/; q; }
36052 /^X\(\/\).*/{ s//\1/; q; }
36053 s/.*/./; q'`
36054 { if $as_mkdir_p; then
36055 mkdir -p $dirpart/$fdir
36056 else
36057 as_dir=$dirpart/$fdir
2fd61f51 36058 as_dirs=
82eaf560 36059 while test ! -d "$as_dir"; do
36060 as_dirs="$as_dir $as_dirs"
36061 as_dir=`(dirname "$as_dir") 2>/dev/null ||
2fd61f51 36062$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36063 X"$as_dir" : 'X\(//\)[^/]' \| \
36064 X"$as_dir" : 'X\(//\)$' \| \
82eaf560 36065 X"$as_dir" : 'X\(/\)' \| \
36066 . : '\(.\)' 2>/dev/null ||
2fd61f51 36067echo X"$as_dir" |
82eaf560 36068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36070 /^X\(\/\/\)$/{ s//\1/; q; }
36071 /^X\(\/\).*/{ s//\1/; q; }
36072 s/.*/./; q'`
2fd61f51 36073 done
82eaf560 36074 test ! -n "$as_dirs" || mkdir $as_dirs
36075 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
36076echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
2fd61f51 36077 { (exit 1); exit 1; }; }; }
82eaf560 36078
2fd61f51 36079 # echo "creating $dirpart/$file"
36080 echo '# dummy' > "$dirpart/$file"
36081 done
36082done
542f9784 36083 ;;
82eaf560 36084 libtool )
542f9784 36085
36086 # See if we are running on zsh, and set the options which allow our
36087 # commands through without removal of \ escapes.
36088 if test -n "${ZSH_VERSION+set}" ; then
36089 setopt NO_GLOB_SUBST
36090 fi
36091
36092 cfgfile="${ofile}T"
36093 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36094 $RM "$cfgfile"
36095
36096 cat <<_LT_EOF >> "$cfgfile"
36097#! $SHELL
36098
36099# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
00aafda4 36100# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
542f9784 36101# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36102# NOTE: Changes made to this file will be lost: look at ltmain.sh.
36103#
00aafda4 36104# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
36105# 2006, 2007, 2008 Free Software Foundation, Inc.
36106# Written by Gordon Matzigkeit, 1996
542f9784 36107#
00aafda4 36108# This file is part of GNU Libtool.
542f9784 36109#
00aafda4 36110# GNU Libtool is free software; you can redistribute it and/or
36111# modify it under the terms of the GNU General Public License as
36112# published by the Free Software Foundation; either version 2 of
36113# the License, or (at your option) any later version.
542f9784 36114#
00aafda4 36115# As a special exception to the GNU General Public License,
36116# if you distribute this file as part of a program or library that
36117# is built using GNU Libtool, you may include this file under the
36118# same distribution terms that you use for the rest of that program.
542f9784 36119#
00aafda4 36120# GNU Libtool is distributed in the hope that it will be useful,
36121# but WITHOUT ANY WARRANTY; without even the implied warranty of
36122# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36123# GNU General Public License for more details.
542f9784 36124#
00aafda4 36125# You should have received a copy of the GNU General Public License
36126# along with GNU Libtool; see the file COPYING. If not, a copy
36127# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36128# obtained by writing to the Free Software Foundation, Inc.,
36129# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
542f9784 36130
36131
36132# The names of the tagged configurations supported by this script.
36133available_tags="FC "
36134
36135# ### BEGIN LIBTOOL CONFIG
36136
36137# Which release of libtool.m4 was used?
36138macro_version=$macro_version
36139macro_revision=$macro_revision
36140
36141# Whether or not to build shared libraries.
36142build_libtool_libs=$enable_shared
36143
36144# Whether or not to build static libraries.
36145build_old_libs=$enable_static
36146
36147# What type of objects to build.
36148pic_mode=$pic_mode
36149
36150# Whether or not to optimize for fast installation.
36151fast_install=$enable_fast_install
36152
36153# The host system.
36154host_alias=$host_alias
36155host=$host
36156host_os=$host_os
36157
36158# The build system.
36159build_alias=$build_alias
36160build=$build
36161build_os=$build_os
36162
36163# A sed program that does not truncate output.
36164SED=$lt_SED
36165
36166# Sed that helps us avoid accidentally triggering echo(1) options like -n.
36167Xsed="\$SED -e 1s/^X//"
36168
36169# A grep program that handles long lines.
36170GREP=$lt_GREP
36171
36172# An ERE matcher.
36173EGREP=$lt_EGREP
36174
36175# A literal string matcher.
36176FGREP=$lt_FGREP
36177
36178# A BSD- or MS-compatible name lister.
36179NM=$lt_NM
36180
36181# Whether we need soft or hard links.
36182LN_S=$lt_LN_S
36183
36184# What is the maximum length of a command?
36185max_cmd_len=$max_cmd_len
36186
36187# Object file suffix (normally "o").
36188objext=$ac_objext
36189
36190# Executable file suffix (normally "").
36191exeext=$exeext
36192
36193# whether the shell understands "unset".
36194lt_unset=$lt_unset
36195
36196# turn spaces into newlines.
36197SP2NL=$lt_lt_SP2NL
36198
36199# turn newlines into spaces.
36200NL2SP=$lt_lt_NL2SP
36201
36202# How to create reloadable object files.
36203reload_flag=$lt_reload_flag
36204reload_cmds=$lt_reload_cmds
36205
00aafda4 36206# An object symbol dumper.
36207OBJDUMP=$lt_OBJDUMP
36208
542f9784 36209# Method to check whether dependent libraries are shared objects.
36210deplibs_check_method=$lt_deplibs_check_method
36211
36212# Command to use when deplibs_check_method == "file_magic".
36213file_magic_cmd=$lt_file_magic_cmd
36214
36215# The archiver.
36216AR=$lt_AR
36217AR_FLAGS=$lt_AR_FLAGS
36218
36219# A symbol stripping program.
36220STRIP=$lt_STRIP
36221
36222# Commands used to install an old-style archive.
36223RANLIB=$lt_RANLIB
36224old_postinstall_cmds=$lt_old_postinstall_cmds
36225old_postuninstall_cmds=$lt_old_postuninstall_cmds
36226
36227# A C compiler.
36228LTCC=$lt_CC
36229
36230# LTCC compiler flags.
36231LTCFLAGS=$lt_CFLAGS
36232
36233# Take the output of nm and produce a listing of raw symbols and C names.
36234global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36235
36236# Transform the output of nm in a proper C declaration.
36237global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36238
36239# Transform the output of nm in a C name address pair.
36240global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36241
00aafda4 36242# Transform the output of nm in a C name address pair when lib prefix is needed.
36243global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36244
542f9784 36245# The name of the directory that contains temporary libtool files.
36246objdir=$objdir
36247
36248# Shell to use when invoking shell scripts.
36249SHELL=$lt_SHELL
36250
36251# An echo program that does not interpret backslashes.
36252ECHO=$lt_ECHO
36253
36254# Used to examine libraries when file_magic_cmd begins with "file".
36255MAGIC_CMD=$MAGIC_CMD
36256
36257# Must we lock files when doing compilation?
36258need_locks=$lt_need_locks
36259
00aafda4 36260# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36261DSYMUTIL=$lt_DSYMUTIL
36262
36263# Tool to change global to local symbols on Mac OS X.
36264NMEDIT=$lt_NMEDIT
36265
36266# Tool to manipulate fat objects and archives on Mac OS X.
36267LIPO=$lt_LIPO
36268
36269# ldd/readelf like tool for Mach-O binaries on Mac OS X.
36270OTOOL=$lt_OTOOL
36271
36272# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36273OTOOL64=$lt_OTOOL64
36274
542f9784 36275# Old archive suffix (normally "a").
36276libext=$libext
36277
36278# Shared library suffix (normally ".so").
36279shrext_cmds=$lt_shrext_cmds
36280
36281# The commands to extract the exported symbol list from a shared archive.
36282extract_expsyms_cmds=$lt_extract_expsyms_cmds
36283
36284# Variables whose values should be saved in libtool wrapper scripts and
36285# restored at link time.
36286variables_saved_for_relink=$lt_variables_saved_for_relink
36287
36288# Do we need the "lib" prefix for modules?
36289need_lib_prefix=$need_lib_prefix
36290
36291# Do we need a version for libraries?
36292need_version=$need_version
36293
36294# Library versioning type.
36295version_type=$version_type
36296
36297# Shared library runtime path variable.
36298runpath_var=$runpath_var
36299
36300# Shared library path variable.
36301shlibpath_var=$shlibpath_var
36302
36303# Is shlibpath searched before the hard-coded library search path?
36304shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36305
36306# Format of library name prefix.
36307libname_spec=$lt_libname_spec
36308
36309# List of archive names. First name is the real one, the rest are links.
36310# The last name is the one that the linker finds with -lNAME
36311library_names_spec=$lt_library_names_spec
36312
36313# The coded name of the library, if different from the real name.
36314soname_spec=$lt_soname_spec
36315
36316# Command to use after installation of a shared archive.
36317postinstall_cmds=$lt_postinstall_cmds
36318
36319# Command to use after uninstallation of a shared archive.
36320postuninstall_cmds=$lt_postuninstall_cmds
36321
36322# Commands used to finish a libtool library installation in a directory.
36323finish_cmds=$lt_finish_cmds
36324
36325# As "finish_cmds", except a single script fragment to be evaled but
36326# not shown.
36327finish_eval=$lt_finish_eval
36328
36329# Whether we should hardcode library paths into libraries.
36330hardcode_into_libs=$hardcode_into_libs
36331
36332# Compile-time system search path for libraries.
36333sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36334
36335# Run-time system search path for libraries.
36336sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
36337
36338# Whether dlopen is supported.
36339dlopen_support=$enable_dlopen
36340
36341# Whether dlopen of programs is supported.
36342dlopen_self=$enable_dlopen_self
36343
36344# Whether dlopen of statically linked programs is supported.
36345dlopen_self_static=$enable_dlopen_self_static
36346
36347# Commands to strip libraries.
36348old_striplib=$lt_old_striplib
36349striplib=$lt_striplib
36350
36351
36352# The linker used to build libraries.
36353LD=$lt_LD
36354
36355# Commands used to build an old-style archive.
36356old_archive_cmds=$lt_old_archive_cmds
36357
36358# A language specific compiler.
36359CC=$lt_compiler
36360
36361# Is the compiler the GNU compiler?
36362with_gcc=$GCC
36363
36364# Compiler flag to turn off builtin functions.
36365no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36366
36367# How to pass a linker flag through the compiler.
36368wl=$lt_lt_prog_compiler_wl
36369
36370# Additional compiler flags for building library objects.
36371pic_flag=$lt_lt_prog_compiler_pic
36372
36373# Compiler flag to prevent dynamic linking.
36374link_static_flag=$lt_lt_prog_compiler_static
36375
36376# Does compiler simultaneously support -c and -o options?
36377compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36378
36379# Whether or not to add -lc for building shared libraries.
36380build_libtool_need_lc=$archive_cmds_need_lc
36381
36382# Whether or not to disallow shared libs when runtime libs are static.
36383allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36384
36385# Compiler flag to allow reflexive dlopens.
36386export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36387
36388# Compiler flag to generate shared objects directly from archives.
36389whole_archive_flag_spec=$lt_whole_archive_flag_spec
36390
36391# Whether the compiler copes with passing no objects directly.
36392compiler_needs_object=$lt_compiler_needs_object
36393
36394# Create an old-style archive from a shared archive.
36395old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36396
36397# Create a temporary old-style archive to link instead of a shared archive.
36398old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36399
36400# Commands used to build a shared archive.
36401archive_cmds=$lt_archive_cmds
36402archive_expsym_cmds=$lt_archive_expsym_cmds
36403
36404# Commands used to build a loadable module if different from building
36405# a shared archive.
36406module_cmds=$lt_module_cmds
36407module_expsym_cmds=$lt_module_expsym_cmds
36408
36409# Whether we are building with GNU ld or not.
36410with_gnu_ld=$lt_with_gnu_ld
36411
36412# Flag that allows shared libraries with undefined symbols to be built.
36413allow_undefined_flag=$lt_allow_undefined_flag
36414
36415# Flag that enforces no undefined symbols.
36416no_undefined_flag=$lt_no_undefined_flag
36417
36418# Flag to hardcode \$libdir into a binary during linking.
36419# This must work even if \$libdir does not exist
36420hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36421
36422# If ld is used when linking, flag to hardcode \$libdir into a binary
36423# during linking. This must work even if \$libdir does not exist.
36424hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36425
36426# Whether we need a single "-rpath" flag with a separated argument.
36427hardcode_libdir_separator=$lt_hardcode_libdir_separator
36428
36429# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36430# DIR into the resulting binary.
36431hardcode_direct=$hardcode_direct
36432
36433# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36434# DIR into the resulting binary and the resulting library dependency is
36435# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36436# library is relocated.
36437hardcode_direct_absolute=$hardcode_direct_absolute
36438
36439# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36440# into the resulting binary.
36441hardcode_minus_L=$hardcode_minus_L
36442
36443# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36444# into the resulting binary.
36445hardcode_shlibpath_var=$hardcode_shlibpath_var
36446
36447# Set to "yes" if building a shared library automatically hardcodes DIR
36448# into the library and all subsequent libraries and executables linked
36449# against it.
36450hardcode_automatic=$hardcode_automatic
36451
36452# Set to yes if linker adds runtime paths of dependent libraries
36453# to runtime path list.
36454inherit_rpath=$inherit_rpath
36455
36456# Whether libtool must link a program against all its dependency libraries.
36457link_all_deplibs=$link_all_deplibs
36458
36459# Fix the shell variable \$srcfile for the compiler.
36460fix_srcfile_path=$lt_fix_srcfile_path
36461
36462# Set to "yes" if exported symbols are required.
36463always_export_symbols=$always_export_symbols
36464
36465# The commands to list exported symbols.
36466export_symbols_cmds=$lt_export_symbols_cmds
36467
36468# Symbols that should not be listed in the preloaded symbols.
36469exclude_expsyms=$lt_exclude_expsyms
36470
36471# Symbols that must always be exported.
36472include_expsyms=$lt_include_expsyms
36473
36474# Commands necessary for linking programs (against libraries) with templates.
36475prelink_cmds=$lt_prelink_cmds
36476
36477# Specify filename containing input files.
36478file_list_spec=$lt_file_list_spec
36479
36480# How to hardcode a shared library path into an executable.
36481hardcode_action=$hardcode_action
36482
00aafda4 36483# The directories searched by this compiler when creating a shared library.
36484compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36485
542f9784 36486# Dependencies to place before and after the objects being linked to
36487# create a shared library.
36488predep_objects=$lt_predep_objects
36489postdep_objects=$lt_postdep_objects
36490predeps=$lt_predeps
36491postdeps=$lt_postdeps
36492
36493# The library search path used internally by the compiler when linking
36494# a shared library.
36495compiler_lib_search_path=$lt_compiler_lib_search_path
36496
36497# ### END LIBTOOL CONFIG
36498
36499_LT_EOF
36500
36501 case $host_os in
36502 aix3*)
36503 cat <<\_LT_EOF >> "$cfgfile"
36504# AIX sometimes has problems with the GCC collect2 program. For some
36505# reason, if we set the COLLECT_NAMES environment variable, the problems
36506# vanish in a puff of smoke.
36507if test "X${COLLECT_NAMES+set}" != Xset; then
36508 COLLECT_NAMES=
36509 export COLLECT_NAMES
36510fi
36511_LT_EOF
36512 ;;
36513 esac
36514
36515
36516ltmain="$ac_aux_dir/ltmain.sh"
36517
36518
36519 # We use sed instead of cat because bash on DJGPP gets confused if
36520 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36521 # text mode, it properly converts lines to CR/LF. This bash problem
36522 # is reportedly fixed, but why not run on old versions too?
36523 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
36524 || (rm -f "$cfgfile"; exit 1)
36525
36526 case $xsi_shell in
36527 yes)
36528 cat << \_LT_EOF >> "$cfgfile"
00aafda4 36529
542f9784 36530# func_dirname file append nondir_replacement
36531# Compute the dirname of FILE. If nonempty, add APPEND to the result,
36532# otherwise set result to NONDIR_REPLACEMENT.
36533func_dirname ()
36534{
36535 case ${1} in
36536 */*) func_dirname_result="${1%/*}${2}" ;;
36537 * ) func_dirname_result="${3}" ;;
36538 esac
36539}
36540
36541# func_basename file
36542func_basename ()
36543{
36544 func_basename_result="${1##*/}"
36545}
36546
00aafda4 36547# func_dirname_and_basename file append nondir_replacement
36548# perform func_basename and func_dirname in a single function
36549# call:
36550# dirname: Compute the dirname of FILE. If nonempty,
36551# add APPEND to the result, otherwise set result
36552# to NONDIR_REPLACEMENT.
36553# value returned in "$func_dirname_result"
36554# basename: Compute filename of FILE.
36555# value retuned in "$func_basename_result"
36556# Implementation must be kept synchronized with func_dirname
36557# and func_basename. For efficiency, we do not delegate to
36558# those functions but instead duplicate the functionality here.
36559func_dirname_and_basename ()
36560{
36561 case ${1} in
36562 */*) func_dirname_result="${1%/*}${2}" ;;
36563 * ) func_dirname_result="${3}" ;;
36564 esac
36565 func_basename_result="${1##*/}"
36566}
36567
542f9784 36568# func_stripname prefix suffix name
36569# strip PREFIX and SUFFIX off of NAME.
36570# PREFIX and SUFFIX must not contain globbing or regex special
36571# characters, hashes, percent signs, but SUFFIX may contain a leading
36572# dot (in which case that matches only a dot).
36573func_stripname ()
36574{
36575 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
36576 # positional parameters, so assign one to ordinary parameter first.
36577 func_stripname_result=${3}
36578 func_stripname_result=${func_stripname_result#"${1}"}
36579 func_stripname_result=${func_stripname_result%"${2}"}
36580}
36581
36582# func_opt_split
36583func_opt_split ()
36584{
36585 func_opt_split_opt=${1%%=*}
36586 func_opt_split_arg=${1#*=}
36587}
36588
36589# func_lo2o object
36590func_lo2o ()
36591{
36592 case ${1} in
36593 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
36594 *) func_lo2o_result=${1} ;;
36595 esac
36596}
00aafda4 36597
36598# func_xform libobj-or-source
36599func_xform ()
36600{
36601 func_xform_result=${1%.*}.lo
36602}
36603
36604# func_arith arithmetic-term...
36605func_arith ()
36606{
36607 func_arith_result=$(( $* ))
36608}
36609
36610# func_len string
36611# STRING may not start with a hyphen.
36612func_len ()
36613{
36614 func_len_result=${#1}
36615}
36616
542f9784 36617_LT_EOF
36618 ;;
36619 *) # Bourne compatible functions.
36620 cat << \_LT_EOF >> "$cfgfile"
00aafda4 36621
542f9784 36622# func_dirname file append nondir_replacement
36623# Compute the dirname of FILE. If nonempty, add APPEND to the result,
36624# otherwise set result to NONDIR_REPLACEMENT.
36625func_dirname ()
36626{
36627 # Extract subdirectory from the argument.
36628 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
36629 if test "X$func_dirname_result" = "X${1}"; then
36630 func_dirname_result="${3}"
36631 else
36632 func_dirname_result="$func_dirname_result${2}"
36633 fi
36634}
36635
36636# func_basename file
36637func_basename ()
36638{
36639 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
36640}
36641
00aafda4 36642
542f9784 36643# func_stripname prefix suffix name
36644# strip PREFIX and SUFFIX off of NAME.
36645# PREFIX and SUFFIX must not contain globbing or regex special
36646# characters, hashes, percent signs, but SUFFIX may contain a leading
36647# dot (in which case that matches only a dot).
36648# func_strip_suffix prefix name
36649func_stripname ()
36650{
36651 case ${2} in
36652 .*) func_stripname_result=`$ECHO "X${3}" \
36653 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
36654 *) func_stripname_result=`$ECHO "X${3}" \
36655 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
36656 esac
36657}
36658
36659# sed scripts:
36660my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
36661my_sed_long_arg='1s/^-[^=]*=//'
36662
36663# func_opt_split
36664func_opt_split ()
36665{
36666 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
36667 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
36668}
36669
36670# func_lo2o object
36671func_lo2o ()
36672{
36673 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
36674}
00aafda4 36675
36676# func_xform libobj-or-source
36677func_xform ()
36678{
36679 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
36680}
36681
36682# func_arith arithmetic-term...
36683func_arith ()
36684{
36685 func_arith_result=`expr "$@"`
36686}
36687
36688# func_len string
36689# STRING may not start with a hyphen.
36690func_len ()
36691{
36692 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
36693}
36694
542f9784 36695_LT_EOF
36696esac
36697
36698case $lt_shell_append in
36699 yes)
36700 cat << \_LT_EOF >> "$cfgfile"
36701
36702# func_append var value
36703# Append VALUE to the end of shell variable VAR.
36704func_append ()
36705{
36706 eval "$1+=\$2"
36707}
36708_LT_EOF
36709 ;;
36710 *)
36711 cat << \_LT_EOF >> "$cfgfile"
36712
36713# func_append var value
36714# Append VALUE to the end of shell variable VAR.
36715func_append ()
36716{
36717 eval "$1=\$$1\$2"
36718}
00aafda4 36719
542f9784 36720_LT_EOF
36721 ;;
36722 esac
36723
36724
36725 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
36726 || (rm -f "$cfgfile"; exit 1)
36727
36728 mv -f "$cfgfile" "$ofile" ||
36729 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36730 chmod +x "$ofile"
36731
36732
36733 cat <<_LT_EOF >> "$ofile"
36734
36735# ### BEGIN LIBTOOL TAG CONFIG: FC
36736
36737# The linker used to build libraries.
36738LD=$lt_LD_FC
36739
36740# Commands used to build an old-style archive.
36741old_archive_cmds=$lt_old_archive_cmds_FC
36742
36743# A language specific compiler.
36744CC=$lt_compiler_FC
36745
36746# Is the compiler the GNU compiler?
36747with_gcc=$GCC_FC
36748
36749# Compiler flag to turn off builtin functions.
36750no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
36751
36752# How to pass a linker flag through the compiler.
36753wl=$lt_lt_prog_compiler_wl_FC
36754
36755# Additional compiler flags for building library objects.
36756pic_flag=$lt_lt_prog_compiler_pic_FC
36757
36758# Compiler flag to prevent dynamic linking.
36759link_static_flag=$lt_lt_prog_compiler_static_FC
36760
36761# Does compiler simultaneously support -c and -o options?
36762compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
36763
36764# Whether or not to add -lc for building shared libraries.
36765build_libtool_need_lc=$archive_cmds_need_lc_FC
36766
36767# Whether or not to disallow shared libs when runtime libs are static.
36768allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
36769
36770# Compiler flag to allow reflexive dlopens.
36771export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
36772
36773# Compiler flag to generate shared objects directly from archives.
36774whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
36775
36776# Whether the compiler copes with passing no objects directly.
36777compiler_needs_object=$lt_compiler_needs_object_FC
36778
36779# Create an old-style archive from a shared archive.
36780old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
36781
36782# Create a temporary old-style archive to link instead of a shared archive.
36783old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
36784
36785# Commands used to build a shared archive.
36786archive_cmds=$lt_archive_cmds_FC
36787archive_expsym_cmds=$lt_archive_expsym_cmds_FC
36788
36789# Commands used to build a loadable module if different from building
36790# a shared archive.
36791module_cmds=$lt_module_cmds_FC
36792module_expsym_cmds=$lt_module_expsym_cmds_FC
36793
36794# Whether we are building with GNU ld or not.
36795with_gnu_ld=$lt_with_gnu_ld_FC
36796
36797# Flag that allows shared libraries with undefined symbols to be built.
36798allow_undefined_flag=$lt_allow_undefined_flag_FC
36799
36800# Flag that enforces no undefined symbols.
36801no_undefined_flag=$lt_no_undefined_flag_FC
36802
36803# Flag to hardcode \$libdir into a binary during linking.
36804# This must work even if \$libdir does not exist
36805hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
36806
36807# If ld is used when linking, flag to hardcode \$libdir into a binary
36808# during linking. This must work even if \$libdir does not exist.
36809hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
36810
36811# Whether we need a single "-rpath" flag with a separated argument.
36812hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
36813
36814# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36815# DIR into the resulting binary.
36816hardcode_direct=$hardcode_direct_FC
36817
36818# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36819# DIR into the resulting binary and the resulting library dependency is
36820# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36821# library is relocated.
36822hardcode_direct_absolute=$hardcode_direct_absolute_FC
36823
36824# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36825# into the resulting binary.
36826hardcode_minus_L=$hardcode_minus_L_FC
36827
36828# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36829# into the resulting binary.
36830hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
36831
36832# Set to "yes" if building a shared library automatically hardcodes DIR
36833# into the library and all subsequent libraries and executables linked
36834# against it.
36835hardcode_automatic=$hardcode_automatic_FC
36836
36837# Set to yes if linker adds runtime paths of dependent libraries
36838# to runtime path list.
36839inherit_rpath=$inherit_rpath_FC
36840
36841# Whether libtool must link a program against all its dependency libraries.
36842link_all_deplibs=$link_all_deplibs_FC
36843
36844# Fix the shell variable \$srcfile for the compiler.
36845fix_srcfile_path=$lt_fix_srcfile_path_FC
36846
36847# Set to "yes" if exported symbols are required.
36848always_export_symbols=$always_export_symbols_FC
36849
36850# The commands to list exported symbols.
36851export_symbols_cmds=$lt_export_symbols_cmds_FC
36852
36853# Symbols that should not be listed in the preloaded symbols.
36854exclude_expsyms=$lt_exclude_expsyms_FC
36855
36856# Symbols that must always be exported.
36857include_expsyms=$lt_include_expsyms_FC
36858
36859# Commands necessary for linking programs (against libraries) with templates.
36860prelink_cmds=$lt_prelink_cmds_FC
36861
36862# Specify filename containing input files.
36863file_list_spec=$lt_file_list_spec_FC
36864
36865# How to hardcode a shared library path into an executable.
36866hardcode_action=$hardcode_action_FC
36867
00aafda4 36868# The directories searched by this compiler when creating a shared library.
36869compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
36870
542f9784 36871# Dependencies to place before and after the objects being linked to
36872# create a shared library.
36873predep_objects=$lt_predep_objects_FC
36874postdep_objects=$lt_postdep_objects_FC
36875predeps=$lt_predeps_FC
36876postdeps=$lt_postdeps_FC
36877
36878# The library search path used internally by the compiler when linking
36879# a shared library.
36880compiler_lib_search_path=$lt_compiler_lib_search_path_FC
36881
36882# ### END LIBTOOL TAG CONFIG: FC
36883_LT_EOF
36884
2fd61f51 36885 ;;
82eaf560 36886 gstdint.h )
56c15991 36887if test "$GCC" = yes; then
36888 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
36889else
36890 echo "/* generated for $CC */" > tmp-stdint.h
36891fi
36892
36893sed 's/^ *//' >> tmp-stdint.h <<EOF
36894
36895 #ifndef GCC_GENERATED_STDINT_H
36896 #define GCC_GENERATED_STDINT_H 1
36897
36898 #include <sys/types.h>
36899EOF
36900
36901if test "$acx_cv_header_stdint" != stdint.h; then
36902 echo "#include <stddef.h>" >> tmp-stdint.h
36903fi
36904if test "$acx_cv_header_stdint" != stddef.h; then
36905 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
36906fi
36907
36908sed 's/^ *//' >> tmp-stdint.h <<EOF
36909 /* glibc uses these symbols as guards to prevent redefinitions. */
36910 #ifdef __int8_t_defined
36911 #define _INT8_T
36912 #define _INT16_T
36913 #define _INT32_T
36914 #endif
36915 #ifdef __uint32_t_defined
36916 #define _UINT32_T
36917 #endif
36918
36919EOF
36920
36921# ----------------- done header, emit basic int types -------------
36922if test "$acx_cv_header_stdint" = stddef.h; then
36923 sed 's/^ *//' >> tmp-stdint.h <<EOF
36924
36925 #ifndef _UINT8_T
36926 #define _UINT8_T
fa5e3c5c 36927 #ifndef __uint8_t_defined
36928 #define __uint8_t_defined
56c15991 36929 typedef unsigned $acx_cv_type_int8_t uint8_t;
36930 #endif
fa5e3c5c 36931 #endif
56c15991 36932
36933 #ifndef _UINT16_T
36934 #define _UINT16_T
fa5e3c5c 36935 #ifndef __uint16_t_defined
36936 #define __uint16_t_defined
56c15991 36937 typedef unsigned $acx_cv_type_int16_t uint16_t;
36938 #endif
fa5e3c5c 36939 #endif
56c15991 36940
36941 #ifndef _UINT32_T
36942 #define _UINT32_T
fa5e3c5c 36943 #ifndef __uint32_t_defined
36944 #define __uint32_t_defined
56c15991 36945 typedef unsigned $acx_cv_type_int32_t uint32_t;
36946 #endif
fa5e3c5c 36947 #endif
56c15991 36948
36949 #ifndef _INT8_T
36950 #define _INT8_T
fa5e3c5c 36951 #ifndef __int8_t_defined
36952 #define __int8_t_defined
56c15991 36953 typedef $acx_cv_type_int8_t int8_t;
36954 #endif
fa5e3c5c 36955 #endif
56c15991 36956
36957 #ifndef _INT16_T
36958 #define _INT16_T
fa5e3c5c 36959 #ifndef __int16_t_defined
36960 #define __int16_t_defined
56c15991 36961 typedef $acx_cv_type_int16_t int16_t;
36962 #endif
fa5e3c5c 36963 #endif
56c15991 36964
36965 #ifndef _INT32_T
36966 #define _INT32_T
fa5e3c5c 36967 #ifndef __int32_t_defined
36968 #define __int32_t_defined
56c15991 36969 typedef $acx_cv_type_int32_t int32_t;
36970 #endif
fa5e3c5c 36971 #endif
56c15991 36972EOF
36973elif test "$ac_cv_type_u_int32_t" = yes; then
36974 sed 's/^ *//' >> tmp-stdint.h <<EOF
36975
36976 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
36977 #ifndef _INT8_T
36978 #define _INT8_T
36979 #endif
36980 #ifndef _INT16_T
36981 #define _INT16_T
36982 #endif
36983 #ifndef _INT32_T
36984 #define _INT32_T
36985 #endif
36986
36987 #ifndef _UINT8_T
36988 #define _UINT8_T
fa5e3c5c 36989 #ifndef __uint8_t_defined
36990 #define __uint8_t_defined
56c15991 36991 typedef u_int8_t uint8_t;
36992 #endif
fa5e3c5c 36993 #endif
56c15991 36994
36995 #ifndef _UINT16_T
36996 #define _UINT16_T
fa5e3c5c 36997 #ifndef __uint16_t_defined
36998 #define __uint16_t_defined
56c15991 36999 typedef u_int16_t uint16_t;
37000 #endif
fa5e3c5c 37001 #endif
56c15991 37002
37003 #ifndef _UINT32_T
37004 #define _UINT32_T
fa5e3c5c 37005 #ifndef __uint32_t_defined
37006 #define __uint32_t_defined
56c15991 37007 typedef u_int32_t uint32_t;
37008 #endif
fa5e3c5c 37009 #endif
56c15991 37010EOF
37011else
37012 sed 's/^ *//' >> tmp-stdint.h <<EOF
37013
37014 /* Some systems have guard macros to prevent redefinitions, define them. */
37015 #ifndef _INT8_T
37016 #define _INT8_T
37017 #endif
37018 #ifndef _INT16_T
37019 #define _INT16_T
37020 #endif
37021 #ifndef _INT32_T
37022 #define _INT32_T
37023 #endif
37024 #ifndef _UINT8_T
37025 #define _UINT8_T
37026 #endif
37027 #ifndef _UINT16_T
37028 #define _UINT16_T
37029 #endif
37030 #ifndef _UINT32_T
37031 #define _UINT32_T
37032 #endif
37033EOF
37034fi
37035
37036# ------------- done basic int types, emit int64_t types ------------
37037if test "$ac_cv_type_uint64_t" = yes; then
37038 sed 's/^ *//' >> tmp-stdint.h <<EOF
37039
37040 /* system headers have good uint64_t and int64_t */
37041 #ifndef _INT64_T
37042 #define _INT64_T
37043 #endif
37044 #ifndef _UINT64_T
37045 #define _UINT64_T
37046 #endif
37047EOF
37048elif test "$ac_cv_type_u_int64_t" = yes; then
37049 sed 's/^ *//' >> tmp-stdint.h <<EOF
37050
37051 /* system headers have an u_int64_t (and int64_t) */
37052 #ifndef _INT64_T
37053 #define _INT64_T
37054 #endif
37055 #ifndef _UINT64_T
37056 #define _UINT64_T
fa5e3c5c 37057 #ifndef __uint64_t_defined
37058 #define __uint64_t_defined
56c15991 37059 typedef u_int64_t uint64_t;
37060 #endif
fa5e3c5c 37061 #endif
56c15991 37062EOF
37063elif test -n "$acx_cv_type_int64_t"; then
37064 sed 's/^ *//' >> tmp-stdint.h <<EOF
37065
37066 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
37067 #ifndef _INT64_T
37068 #define _INT64_T
37069 typedef $acx_cv_type_int64_t int64_t;
37070 #endif
37071 #ifndef _UINT64_T
37072 #define _UINT64_T
fa5e3c5c 37073 #ifndef __uint64_t_defined
37074 #define __uint64_t_defined
56c15991 37075 typedef unsigned $acx_cv_type_int64_t uint64_t;
37076 #endif
fa5e3c5c 37077 #endif
56c15991 37078EOF
37079else
37080 sed 's/^ *//' >> tmp-stdint.h <<EOF
37081
37082 /* some common heuristics for int64_t, using compiler-specific tests */
37083 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
37084 #ifndef _INT64_T
37085 #define _INT64_T
fa5e3c5c 37086 #ifndef __int64_t_defined
56c15991 37087 typedef long long int64_t;
37088 #endif
fa5e3c5c 37089 #endif
56c15991 37090 #ifndef _UINT64_T
37091 #define _UINT64_T
37092 typedef unsigned long long uint64_t;
37093 #endif
37094
37095 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
37096 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
37097 does not implement __extension__. But that compiler doesn't define
37098 __GNUC_MINOR__. */
37099 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
37100 # define __extension__
37101 # endif
37102
37103 # ifndef _INT64_T
37104 # define _INT64_T
37105 __extension__ typedef long long int64_t;
37106 # endif
37107 # ifndef _UINT64_T
37108 # define _UINT64_T
37109 __extension__ typedef unsigned long long uint64_t;
37110 # endif
37111
37112 #elif !defined __STRICT_ANSI__
37113 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
37114
37115 # ifndef _INT64_T
37116 # define _INT64_T
37117 typedef __int64 int64_t;
37118 # endif
37119 # ifndef _UINT64_T
37120 # define _UINT64_T
37121 typedef unsigned __int64 uint64_t;
37122 # endif
37123 # endif /* compiler */
37124
37125 #endif /* ANSI version */
37126EOF
37127fi
37128
37129# ------------- done int64_t types, emit intptr types ------------
37130if test "$ac_cv_type_uintptr_t" != yes; then
37131 sed 's/^ *//' >> tmp-stdint.h <<EOF
37132
37133 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
fa5e3c5c 37134 #ifndef __uintptr_t_defined
56c15991 37135 typedef u$acx_cv_type_intptr_t uintptr_t;
fa5e3c5c 37136 #endif
37137 #ifndef __intptr_t_defined
56c15991 37138 typedef $acx_cv_type_intptr_t intptr_t;
fa5e3c5c 37139 #endif
56c15991 37140EOF
37141fi
37142
37143# ------------- done intptr types, emit int_least types ------------
37144if test "$ac_cv_type_int_least32_t" != yes; then
37145 sed 's/^ *//' >> tmp-stdint.h <<EOF
37146
37147 /* Define int_least types */
37148 typedef int8_t int_least8_t;
37149 typedef int16_t int_least16_t;
37150 typedef int32_t int_least32_t;
37151 #ifdef _INT64_T
37152 typedef int64_t int_least64_t;
37153 #endif
37154
37155 typedef uint8_t uint_least8_t;
37156 typedef uint16_t uint_least16_t;
37157 typedef uint32_t uint_least32_t;
37158 #ifdef _UINT64_T
37159 typedef uint64_t uint_least64_t;
37160 #endif
37161EOF
37162fi
37163
37164# ------------- done intptr types, emit int_fast types ------------
37165if test "$ac_cv_type_int_fast32_t" != yes; then
37166 sed 's/^ *//' >> tmp-stdint.h <<EOF
37167
37168 /* Define int_fast types. short is often slow */
37169 typedef int8_t int_fast8_t;
37170 typedef int int_fast16_t;
37171 typedef int32_t int_fast32_t;
37172 #ifdef _INT64_T
37173 typedef int64_t int_fast64_t;
37174 #endif
37175
37176 typedef uint8_t uint_fast8_t;
37177 typedef unsigned int uint_fast16_t;
37178 typedef uint32_t uint_fast32_t;
37179 #ifdef _UINT64_T
37180 typedef uint64_t uint_fast64_t;
37181 #endif
37182EOF
37183fi
37184
37185if test "$ac_cv_type_uintmax_t" != yes; then
37186 sed 's/^ *//' >> tmp-stdint.h <<EOF
37187
37188 /* Define intmax based on what we found */
37189 #ifdef _INT64_T
37190 typedef int64_t intmax_t;
37191 #else
37192 typedef long intmax_t;
37193 #endif
37194 #ifdef _UINT64_T
37195 typedef uint64_t uintmax_t;
37196 #else
37197 typedef unsigned long uintmax_t;
37198 #endif
37199EOF
37200fi
37201
37202sed 's/^ *//' >> tmp-stdint.h <<EOF
37203
37204 #endif /* GCC_GENERATED_STDINT_H */
37205EOF
37206
37207if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
37208 rm -f tmp-stdint.h
37209else
37210 mv -f tmp-stdint.h gstdint.h
37211fi
37212
37213 ;;
4ee9c684 37214 esac
82eaf560 37215done
37216_ACEOF
4ee9c684 37217
82eaf560 37218cat >>$CONFIG_STATUS <<\_ACEOF
4ee9c684 37219
37220{ (exit 0); exit 0; }
37221_ACEOF
37222chmod +x $CONFIG_STATUS
37223ac_clean_files=$ac_clean_files_save
37224
37225
37226# configure is writing to config.log, and then calls config.status.
37227# config.status does its own redirection, appending to config.log.
37228# Unfortunately, on DOS this fails, as config.log is still kept open
37229# by configure, so config.status won't be able to write to it; its
37230# output is simply discarded. So we exec the FD to /dev/null,
37231# effectively closing config.log, so it can be properly (re)opened and
37232# appended to by config.status. When coming back to configure, we
37233# need to make the FD available again.
37234if test "$no_create" != yes; then
37235 ac_cs_success=:
37236 ac_config_status_args=
37237 test "$silent" = yes &&
37238 ac_config_status_args="$ac_config_status_args --quiet"
37239 exec 5>/dev/null
37240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37241 exec 5>>config.log
37242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37243 # would make configure fail if this is the last instruction.
37244 $ac_cs_success || { (exit 1); exit 1; }
37245fi
37246