]>
Commit | Line | Data |
---|---|---|
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 | 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
82eaf560 | 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix | |
4ee9c684 | 21 | fi |
82eaf560 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
4ee9c684 | 23 | |
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
82eaf560 | 33 | $as_unset ENV MAIL MAILPATH |
4ee9c684 | 34 | PS1='$ ' |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
82eaf560 | 47 | $as_unset $as_var |
4ee9c684 | 48 | fi |
49 | done | |
50 | ||
51 | # Required to use basename. | |
82eaf560 | 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
4ee9c684 | 53 | as_expr=expr |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
82eaf560 | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
4ee9c684 | 59 | as_basename=basename |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
82eaf560 | 66 | as_me=`$as_basename "$0" || |
4ee9c684 | 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
82eaf560 | 69 | X"$0" : 'X\(/\)$' \| \ |
70 | . : '\(.\)' 2>/dev/null || | |
4ee9c684 | 71 | echo 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. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
ff4425cf | 85 | |
82eaf560 | 86 | # The user is always right. |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
ff4425cf | 97 | fi |
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 | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
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 | 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
4ee9c684 | 132 | do |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
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 | |
152 | done | |
153 | ;; | |
154 | esac | |
4ee9c684 | 155 | |
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
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 | 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
4ee9c684 | 192 | esac |
193 | ||
82eaf560 | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
4ee9c684 | 195 | as_expr=expr |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
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 | 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
82eaf560 | 216 | rm -f conf$$ conf$$.exe conf$$.file |
4ee9c684 | 217 | |
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
82eaf560 | 225 | as_executable_p="test -f" |
4ee9c684 | 226 | |
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
82eaf560 | 234 | # IFS |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
4ee9c684 | 243 | |
542f9784 | 244 | |
245 | # Check that we are running under the correct shell. | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | ||
248 | case X$lt_ECHO in | |
249 | X*--fallback-echo) | |
250 | # Remove one level of quotation (which was required for Make). | |
251 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
252 | ;; | |
253 | esac | |
254 | ||
255 | ECHO=${lt_ECHO-echo} | |
256 | if test "X$1" = X--no-reexec; then | |
257 | # Discard the --no-reexec flag, and continue. | |
258 | shift | |
259 | elif test "X$1" = X--fallback-echo; then | |
260 | # Avoid inline document here, it may be left over | |
261 | : | |
262 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
263 | # Yippee, $ECHO works! | |
264 | : | |
265 | else | |
266 | # Restart under the correct shell. | |
267 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
268 | fi | |
269 | ||
270 | if test "X$1" = X--fallback-echo; then | |
271 | # used as fallback echo | |
272 | shift | |
273 | cat <<_LT_EOF | |
274 | $* | |
275 | _LT_EOF | |
276 | exit 0 | |
277 | fi | |
278 | ||
279 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
280 | # if CDPATH is set. | |
281 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
282 | ||
283 | if test -z "$lt_ECHO"; then | |
284 | if test "X${echo_test_string+set}" != Xset; then | |
285 | # find a string as large as possible, as long as the shell can cope with it | |
286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
288 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
289 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
290 | then | |
291 | break | |
292 | fi | |
293 | done | |
294 | fi | |
295 | ||
296 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
297 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
298 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
299 | : | |
300 | else | |
301 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
302 | # backslashes. This makes it impossible to quote backslashes using | |
303 | # echo "$something" | sed 's/\\/\\\\/g' | |
304 | # | |
305 | # So, first we look for a working echo in the user's PATH. | |
306 | ||
307 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
308 | for dir in $PATH /usr/ucb; do | |
309 | IFS="$lt_save_ifs" | |
310 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
311 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
312 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
313 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
314 | ECHO="$dir/echo" | |
315 | break | |
316 | fi | |
317 | done | |
318 | IFS="$lt_save_ifs" | |
319 | ||
320 | if test "X$ECHO" = Xecho; then | |
321 | # We didn't find a better echo, so look for alternatives. | |
322 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
323 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
324 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
325 | # This shell has a builtin print -r that does the trick. | |
326 | ECHO='print -r' | |
327 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
328 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
329 | # If we have ksh, try running configure again with it. | |
330 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
331 | export ORIGINAL_CONFIG_SHELL | |
332 | CONFIG_SHELL=/bin/ksh | |
333 | export CONFIG_SHELL | |
334 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
335 | else | |
336 | # Try using printf. | |
337 | ECHO='printf %s\n' | |
338 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
339 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
340 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
341 | # Cool, printf works | |
342 | : | |
343 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
344 | test "X$echo_testing_string" = 'X\t' && | |
345 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
346 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
347 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
348 | export CONFIG_SHELL | |
349 | SHELL="$CONFIG_SHELL" | |
350 | export SHELL | |
351 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
352 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
353 | test "X$echo_testing_string" = 'X\t' && | |
354 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
355 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
356 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
357 | else | |
358 | # maybe with a smaller string... | |
359 | prev=: | |
360 | ||
361 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
362 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
363 | then | |
364 | break | |
365 | fi | |
366 | prev="$cmd" | |
367 | done | |
368 | ||
369 | if test "$prev" != 'sed 50q "$0"'; then | |
370 | echo_test_string=`eval $prev` | |
371 | export echo_test_string | |
372 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
373 | else | |
374 | # Oops. We lost completely, so just stick with echo. | |
375 | ECHO=echo | |
376 | fi | |
377 | fi | |
378 | fi | |
379 | fi | |
380 | fi | |
381 | fi | |
382 | ||
383 | # Copy echo and quote the copy suitably for passing to libtool from | |
384 | # the Makefile, instead of quoting the original, which is used later. | |
385 | lt_ECHO=$ECHO | |
386 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
387 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
388 | fi | |
389 | ||
390 | ||
391 | ||
392 | ||
4ee9c684 | 393 | # Name of the host. |
394 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
395 | # so uname gets run too. | |
396 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
397 | ||
82eaf560 | 398 | exec 6>&1 |
399 | ||
4ee9c684 | 400 | # |
401 | # Initializations. | |
402 | # | |
403 | ac_default_prefix=/usr/local | |
404 | ac_config_libobj_dir=. | |
405 | cross_compiling=no | |
406 | subdirs= | |
407 | MFLAGS= | |
408 | MAKEFLAGS= | |
409 | SHELL=${CONFIG_SHELL-/bin/sh} | |
410 | ||
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. |
417 | PACKAGE_NAME='GNU Fortran Runtime Library' | |
418 | PACKAGE_TARNAME='libgfortran' | |
76c0a846 | 419 | PACKAGE_VERSION='0.3' |
420 | PACKAGE_STRING='GNU Fortran Runtime Library 0.3' | |
4ee9c684 | 421 | PACKAGE_BUGREPORT='' |
422 | ||
423 | # Factoring default headers for most tests. | |
424 | ac_includes_default="\ | |
425 | #include <stdio.h> | |
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 | 460 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir 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 | 461 | ac_subst_files='' |
5b2c7553 | 462 | ac_pwd=`pwd` |
4ee9c684 | 463 | |
464 | # Initialize some variables set by options. | |
465 | ac_init_help= | |
466 | ac_init_version=false | |
467 | # The variables have the same names as the options, with | |
468 | # dashes changed to underlines. | |
469 | cache_file=/dev/null | |
470 | exec_prefix=NONE | |
471 | no_create= | |
472 | no_recursion= | |
473 | prefix=NONE | |
474 | program_prefix=NONE | |
475 | program_suffix=NONE | |
476 | program_transform_name=s,x,x, | |
477 | silent= | |
478 | site= | |
479 | srcdir= | |
480 | verbose= | |
481 | x_includes=NONE | |
482 | x_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. | |
489 | bindir='${exec_prefix}/bin' | |
490 | sbindir='${exec_prefix}/sbin' | |
491 | libexecdir='${exec_prefix}/libexec' | |
82eaf560 | 492 | datadir='${prefix}/share' |
4ee9c684 | 493 | sysconfdir='${prefix}/etc' |
494 | sharedstatedir='${prefix}/com' | |
495 | localstatedir='${prefix}/var' | |
82eaf560 | 496 | libdir='${exec_prefix}/lib' |
4ee9c684 | 497 | includedir='${prefix}/include' |
498 | oldincludedir='/usr/include' | |
82eaf560 | 499 | infodir='${prefix}/info' |
500 | mandir='${prefix}/man' | |
4ee9c684 | 501 | |
502 | ac_prev= | |
503 | for ac_option | |
504 | do | |
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 | |
776 | Try \`$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 | |
799 | done | |
800 | ||
801 | if 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; }; } | |
805 | fi | |
806 | ||
82eaf560 | 807 | # Be sure to have absolute paths. |
808 | for ac_var in exec_prefix prefix | |
a106dabe | 809 | do |
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 | |
816 | done | |
817 | ||
818 | # Be sure to have absolute paths. | |
819 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
820 | localstatedir libdir includedir oldincludedir infodir mandir | |
821 | do | |
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 |
828 | done | |
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. | |
833 | build=$build_alias | |
834 | host=$host_alias | |
835 | target=$target_alias | |
836 | ||
837 | # FIXME: To remove some day. | |
838 | if 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 | |
846 | fi | |
847 | ||
848 | ac_tool_prefix= | |
849 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
850 | ||
851 | test "$silent" = yes && exec 6>/dev/null | |
852 | ||
853 | ||
854 | # Find the source files, if location was not specified. | |
855 | if 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 | 864 | echo 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 | |
874 | else | |
875 | ac_srcdir_defaulted=no | |
876 | fi | |
82eaf560 | 877 | if 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 | 885 | fi |
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 | 889 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
890 | ac_env_build_alias_set=${build_alias+set} | |
891 | ac_env_build_alias_value=$build_alias | |
892 | ac_cv_env_build_alias_set=${build_alias+set} | |
893 | ac_cv_env_build_alias_value=$build_alias | |
894 | ac_env_host_alias_set=${host_alias+set} | |
895 | ac_env_host_alias_value=$host_alias | |
896 | ac_cv_env_host_alias_set=${host_alias+set} | |
897 | ac_cv_env_host_alias_value=$host_alias | |
898 | ac_env_target_alias_set=${target_alias+set} | |
899 | ac_env_target_alias_value=$target_alias | |
900 | ac_cv_env_target_alias_set=${target_alias+set} | |
901 | ac_cv_env_target_alias_value=$target_alias | |
902 | ac_env_CPP_set=${CPP+set} | |
903 | ac_env_CPP_value=$CPP | |
904 | ac_cv_env_CPP_set=${CPP+set} | |
905 | ac_cv_env_CPP_value=$CPP | |
906 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
907 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
908 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
909 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
910 | ac_env_FC_set=${FC+set} | |
911 | ac_env_FC_value=$FC | |
912 | ac_cv_env_FC_set=${FC+set} | |
913 | ac_cv_env_FC_value=$FC | |
914 | ac_env_FCFLAGS_set=${FCFLAGS+set} | |
915 | ac_env_FCFLAGS_value=$FCFLAGS | |
916 | ac_cv_env_FCFLAGS_set=${FCFLAGS+set} | |
917 | ac_cv_env_FCFLAGS_value=$FCFLAGS | |
918 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
919 | ac_env_LDFLAGS_value=$LDFLAGS | |
920 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
921 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
4ee9c684 | 922 | |
923 | # | |
924 | # Report the --help message. | |
925 | # | |
926 | if 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 | |
932 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
933 | ||
934 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
935 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
936 | ||
937 | Defaults for the options are specified in brackets. | |
938 | ||
939 | Configuration: | |
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 | 953 | Installation 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 | ||
959 | By default, \`make install' will install all the files in | |
960 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
961 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
962 | for instance \`--prefix=\$HOME'. | |
963 | ||
964 | For better control, use the options below. | |
965 | ||
966 | Fine 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 | ||
983 | Program 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 | ||
988 | System 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 |
993 | fi | |
994 | ||
995 | if 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 | ||
1001 | Optional 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 | |
1020 | Optional 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 | |
1028 | Some 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 | |
1039 | Use these variables to override the choices made by `configure' or to help | |
1040 | it to find libraries and programs with nonstandard names/locations. | |
1041 | ||
1042 | _ACEOF | |
1043 | fi | |
1044 | ||
1045 | if 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 | 1052 | if 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'` | |
1056 | else | |
1057 | ac_dir_suffix= ac_top_builddir= | |
1058 | fi | |
4ee9c684 | 1059 | |
1060 | case $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 ;; | |
1074 | esac | |
1075 | ||
1076 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1077 | # the directories may not exist. | |
1078 | case `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;; | |
1086 | esac | |
1087 | case $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;; | |
1095 | esac | |
1096 | case $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 | 1104 | esac |
82eaf560 | 1105 | case $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;; | |
1113 | esac | |
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 |
1132 | fi | |
1133 | ||
82eaf560 | 1134 | test -n "$ac_init_help" && exit 0 |
4ee9c684 | 1135 | if $ac_init_version; then |
1136 | cat <<\_ACEOF | |
76c0a846 | 1137 | GNU Fortran Runtime Library configure 0.3 |
82eaf560 | 1138 | generated by GNU Autoconf 2.59 |
4ee9c684 | 1139 | |
82eaf560 | 1140 | Copyright (C) 2003 Free Software Foundation, Inc. |
4ee9c684 | 1141 | This configure script is free software; the Free Software Foundation |
1142 | gives unlimited permission to copy, distribute and modify it. | |
1143 | _ACEOF | |
82eaf560 | 1144 | exit 0 |
4ee9c684 | 1145 | fi |
82eaf560 | 1146 | exec 5>config.log |
1147 | cat >&5 <<_ACEOF | |
4ee9c684 | 1148 | This file contains any messages produced by compilers while |
1149 | running configure, to aid debugging if configure makes a mistake. | |
1150 | ||
76c0a846 | 1151 | It was created by GNU Fortran Runtime Library $as_me 0.3, which was |
82eaf560 | 1152 | generated by GNU Autoconf 2.59. Invocation command line was |
4ee9c684 | 1153 | |
1154 | $ $0 $@ | |
1155 | ||
1156 | _ACEOF | |
1157 | { | |
1158 | cat <<_ASUNAME | |
1159 | ## --------- ## | |
1160 | ## Platform. ## | |
1161 | ## --------- ## | |
1162 | ||
1163 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1164 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1165 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1166 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1167 | uname -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 | 1175 | hostinfo = `(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 | ||
1182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1183 | for as_dir in $PATH | |
1184 | do | |
1185 | IFS=$as_save_IFS | |
1186 | test -z "$as_dir" && as_dir=. | |
1187 | echo "PATH: $as_dir" | |
1188 | done | |
1189 | ||
1190 | } >&5 | |
1191 | ||
1192 | cat >&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. | |
1207 | ac_configure_args= | |
1208 | ac_configure_args0= | |
1209 | ac_configure_args1= | |
82eaf560 | 1210 | ac_sep= |
4ee9c684 | 1211 | ac_must_keep_next=false |
1212 | for ac_pass in 1 2 | |
1213 | do | |
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 | |
1249 | done | |
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 | 1258 | trap '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 | 1332 | for ac_signal in 1 2 13 15; do |
1333 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1334 | done | |
1335 | ac_signal=0 | |
1336 | ||
1337 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
82eaf560 | 1338 | rm -rf conftest* confdefs.h |
1339 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1340 | echo >confdefs.h | |
4ee9c684 | 1341 | |
1342 | # Predefined preprocessor variables. | |
1343 | ||
1344 | cat >>confdefs.h <<_ACEOF | |
1345 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1346 | _ACEOF | |
1347 | ||
1348 | ||
1349 | cat >>confdefs.h <<_ACEOF | |
1350 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1351 | _ACEOF | |
1352 | ||
1353 | ||
1354 | cat >>confdefs.h <<_ACEOF | |
1355 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1356 | _ACEOF | |
1357 | ||
1358 | ||
1359 | cat >>confdefs.h <<_ACEOF | |
1360 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1361 | _ACEOF | |
1362 | ||
1363 | ||
1364 | cat >>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 | 1371 | if 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 | 1377 | fi |
82eaf560 | 1378 | for 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 | |
1381 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1382 | sed 's/^/| /' "$ac_site_file" >&5 | |
1383 | . "$ac_site_file" | |
1384 | fi | |
1385 | done | |
1386 | ||
1387 | if 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 | |
1392 | echo "$as_me: loading cache $cache_file" >&6;} | |
1393 | case $cache_file in | |
82eaf560 | 1394 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1395 | *) . ./$cache_file;; | |
4ee9c684 | 1396 | esac |
1397 | fi | |
1398 | else | |
1399 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1400 | echo "$as_me: creating cache $cache_file" >&6;} | |
1401 | >$cache_file | |
1402 | fi | |
1403 | ||
1404 | # Check that the precious variables saved in the cache have kept the same | |
1405 | # value. | |
1406 | ac_cache_corrupted=false | |
82eaf560 | 1407 | for 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 | |
1416 | echo "$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 | |
1420 | echo "$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 | 1430 | echo "$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 | |
1434 | echo "$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 | |
1438 | echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1439 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1440 | echo "$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 | |
1455 | done | |
1456 | if $ac_cache_corrupted; then | |
5b2c7553 | 1457 | { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1458 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4ee9c684 | 1459 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1460 | echo "$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 | |
1462 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1463 | { (exit 1); exit 1; }; } | |
1464 | fi | |
1465 | ||
82eaf560 | 1466 | ac_ext=c |
1467 | ac_cpp='$CPP $CPPFLAGS' | |
1468 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1469 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1470 | ac_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 | 1503 | ac_aux_dir= |
82eaf560 | 1504 | for 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 | |
1518 | done | |
1519 | if 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 |
1521 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
4ee9c684 | 1522 | { (exit 1); exit 1; }; } |
1523 | fi | |
82eaf560 | 1524 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1525 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1526 | ac_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 | |
1531 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
90973b19 | 1532 | { (exit 1); exit 1; }; } |
1533 | ||
82eaf560 | 1534 | echo "$as_me:$LINENO: checking build system type" >&5 |
1535 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
90973b19 | 1536 | if test "${ac_cv_build+set}" = set; then |
1537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1538 | else | |
82eaf560 | 1539 | ac_cv_build_alias=$build_alias |
1540 | test -z "$ac_cv_build_alias" && | |
1541 | ac_cv_build_alias=`$ac_config_guess` | |
1542 | test -z "$ac_cv_build_alias" && | |
90973b19 | 1543 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1544 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1545 | { (exit 1); exit 1; }; } | |
82eaf560 | 1546 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
1547 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1548 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
90973b19 | 1549 | { (exit 1); exit 1; }; } |
1550 | ||
1551 | fi | |
82eaf560 | 1552 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1553 | echo "${ECHO_T}$ac_cv_build" >&6 | |
90973b19 | 1554 | build=$ac_cv_build |
82eaf560 | 1555 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1556 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1557 | build_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} ;; | |
1563 | esac | |
1564 | ||
1565 | case ${host_alias} in | |
1566 | "") host_noncanonical=${build_noncanonical} ;; | |
1567 | *) host_noncanonical=${host_alias} ;; | |
1568 | esac | |
1569 | ||
1570 | case ${target_alias} in | |
1571 | "") target_noncanonical=${host_noncanonical} ;; | |
1572 | *) target_noncanonical=${target_alias} ;; | |
1573 | esac | |
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 | 1586 | build_subdir="build-${build_noncanonical}" |
3e427a9c | 1587 | |
82eaf560 | 1588 | # Check whether --with-build-libsubdir or --without-build-libsubdir was given. |
3e427a9c | 1589 | if test "${with_build_libsubdir+set}" = set; then |
82eaf560 | 1590 | withval="$with_build_libsubdir" |
1591 | build_libsubdir="$withval" | |
3e427a9c | 1592 | else |
1593 | build_libsubdir="$build_subdir" | |
82eaf560 | 1594 | fi; |
4c82c0dd | 1595 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
1596 | if ( test $srcdir = . && test -d gcc ) \ | |
1597 | || test -d $srcdir/../host-${host_noncanonical}; then | |
1598 | host_subdir="host-${host_noncanonical}" | |
1599 | else | |
1600 | host_subdir=. | |
1601 | fi | |
1602 | # No prefix. | |
1603 | target_subdir=${target_noncanonical} | |
1604 | ||
1605 | ||
1606 | # ------- | |
1607 | # Options | |
1608 | # ------- | |
1609 | ||
82eaf560 | 1610 | echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5 |
1611 | echo $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 | 1613 | if 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 | |
1619 | echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;} | |
1620 | { (exit 1); exit 1; }; };; | |
1621 | esac | |
1622 | else | |
1623 | version_specific_libs=no | |
82eaf560 | 1624 | fi; |
1625 | echo "$as_me:$LINENO: result: $version_specific_libs" >&5 | |
1626 | echo "${ECHO_T}$version_specific_libs" >&6 | |
4c82c0dd | 1627 | |
93773f82 | 1628 | # Build with intermodule optimisations |
82eaf560 | 1629 | echo "$as_me:$LINENO: checking for --enable-intermodule" >&5 |
1630 | echo $ECHO_N "checking for --enable-intermodule... $ECHO_C" >&6 | |
1631 | # Check whether --enable-intermodule or --disable-intermodule was given. | |
93773f82 | 1632 | if test "${enable_intermodule+set}" = set; then |
82eaf560 | 1633 | enableval="$enable_intermodule" |
1634 | case "$enable_intermodule" in | |
93773f82 | 1635 | yes) onestep="-onestep";; |
1636 | *) onestep="";; | |
1637 | esac | |
1638 | else | |
1639 | onestep="" | |
82eaf560 | 1640 | fi; |
1641 | echo "$as_me:$LINENO: result: $enable_intermodule" >&5 | |
1642 | echo "${ECHO_T}$enable_intermodule" >&6 | |
93773f82 | 1643 | |
1644 | ||
1645 | if test x$onestep = x-onestep; then | |
1646 | onestep_TRUE= | |
1647 | onestep_FALSE='#' | |
1648 | else | |
1649 | onestep_TRUE='#' | |
1650 | onestep_FALSE= | |
1651 | fi | |
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 | 1670 | echo "$as_me:$LINENO: checking host system type" >&5 |
1671 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
90973b19 | 1672 | if test "${ac_cv_host+set}" = set; then |
1673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1674 | else | |
82eaf560 | 1675 | ac_cv_host_alias=$host_alias |
1676 | test -z "$ac_cv_host_alias" && | |
1677 | ac_cv_host_alias=$ac_cv_build_alias | |
1678 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1679 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1680 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
90973b19 | 1681 | { (exit 1); exit 1; }; } |
1682 | ||
1683 | fi | |
82eaf560 | 1684 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1685 | echo "${ECHO_T}$ac_cv_host" >&6 | |
90973b19 | 1686 | host=$ac_cv_host |
82eaf560 | 1687 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1688 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1689 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1690 | ||
1691 | ||
1692 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1693 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
90973b19 | 1694 | if test "${ac_cv_target+set}" = set; then |
1695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1696 | else | |
82eaf560 | 1697 | ac_cv_target_alias=$target_alias |
1698 | test "x$ac_cv_target_alias" = "x" && | |
1699 | ac_cv_target_alias=$ac_cv_host_alias | |
1700 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1701 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1702 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
90973b19 | 1703 | { (exit 1); exit 1; }; } |
1704 | ||
1705 | fi | |
82eaf560 | 1706 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1707 | echo "${ECHO_T}$ac_cv_target" >&6 | |
90973b19 | 1708 | target=$ac_cv_target |
82eaf560 | 1709 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1710 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1711 | target_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. | |
1716 | test -n "$target_alias" && | |
1717 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1718 | NONENONEs,x,x, && | |
1719 | program_prefix=${target_alias}- | |
1720 | target_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 | 1732 | am__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. |
1747 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1748 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
4ee9c684 | 1749 | if test -z "$INSTALL"; then |
1750 | if test "${ac_cv_path_install+set}" = set; then | |
1751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1752 | else | |
1753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1754 | for as_dir in $PATH | |
1755 | do | |
1756 | IFS=$as_save_IFS | |
1757 | test -z "$as_dir" && as_dir=. | |
1758 | # Account for people who put trailing slashes in PATH elements. | |
1759 | case $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 | ;; | |
1797 | esac | |
1798 | done | |
1799 | ||
82eaf560 | 1800 | rm -rf conftest.one conftest.two conftest.dir |
4ee9c684 | 1801 | |
1802 | fi | |
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 | |
1812 | fi | |
82eaf560 | 1813 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1814 | echo "${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. | |
1818 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1819 | ||
1820 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1821 | ||
1822 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1823 | ||
82eaf560 | 1824 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1825 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
4ee9c684 | 1826 | # Just in case |
1827 | sleep 1 | |
1828 | echo 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). | |
1834 | if ( | |
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 | |
1849 | alias in your environment" >&5 | |
1850 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1851 | alias in your environment" >&2;} | |
1852 | { (exit 1); exit 1; }; } | |
1853 | fi | |
1854 | ||
1855 | test "$2" = conftest.file | |
1856 | ) | |
1857 | then | |
1858 | # Ok. | |
1859 | : | |
1860 | else | |
1861 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1862 | Check your system clock" >&5 | |
1863 | echo "$as_me: error: newly created file is older than distributed files! | |
1864 | Check your system clock" >&2;} | |
1865 | { (exit 1); exit 1; }; } | |
1866 | fi | |
82eaf560 | 1867 | echo "$as_me:$LINENO: result: yes" >&5 |
1868 | echo "${ECHO_T}yes" >&6 | |
4ee9c684 | 1869 | test "$program_prefix" != NONE && |
82eaf560 | 1870 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
4ee9c684 | 1871 | # Use a double $ so make ignores it. |
1872 | test "$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. | |
1876 | cat <<\_ACEOF >conftest.sed | |
1877 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1878 | _ACEOF | |
1879 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
82eaf560 | 1880 | rm conftest.sed |
4ee9c684 | 1881 | |
1882 | # expand $ac_aux_dir to an absolute path | |
1883 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1884 | ||
1885 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1886 | # Use eval to expand $SHELL | |
1887 | if eval "$MISSING --run true"; then | |
1888 | am_missing_run="$MISSING --run " | |
1889 | else | |
1890 | am_missing_run= | |
1891 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1892 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1893 | fi | |
1894 | ||
cdafa1f6 | 1895 | if 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 | 1911 | else |
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 | |
1926 | fi | |
1927 | ||
1928 | for ac_prog in gawk mawk nawk awk | |
1929 | do | |
1930 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1931 | set dummy $ac_prog; ac_word=$2 | |
82eaf560 | 1932 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1933 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 1934 | if test "${ac_cv_prog_AWK+set}" = set; then |
1935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1936 | else | |
1937 | if test -n "$AWK"; then | |
1938 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1939 | else | |
1940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1941 | for as_dir in $PATH | |
1942 | do | |
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 | |
1951 | done | |
1952 | done | |
1953 | ||
1954 | fi | |
1955 | fi | |
1956 | AWK=$ac_cv_prog_AWK | |
1957 | if test -n "$AWK"; then | |
82eaf560 | 1958 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1959 | echo "${ECHO_T}$AWK" >&6 | |
4ee9c684 | 1960 | else |
82eaf560 | 1961 | echo "$as_me:$LINENO: result: no" >&5 |
1962 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 1963 | fi |
1964 | ||
1965 | test -n "$AWK" && break | |
1966 | done | |
1967 | ||
82eaf560 | 1968 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1969 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1970 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1971 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
4ee9c684 | 1972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1973 | else | |
1974 | cat >conftest.make <<\_ACEOF | |
1975 | all: | |
82eaf560 | 1976 | @echo 'ac_maketemp="$(MAKE)"' |
4ee9c684 | 1977 | _ACEOF |
1978 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
82eaf560 | 1979 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
1980 | if test -n "$ac_maketemp"; then | |
1981 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1982 | else | |
1983 | eval ac_cv_prog_make_${ac_make}_set=no | |
1984 | fi | |
4ee9c684 | 1985 | rm -f conftest.make |
1986 | fi | |
82eaf560 | 1987 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
1988 | echo "$as_me:$LINENO: result: yes" >&5 | |
1989 | echo "${ECHO_T}yes" >&6 | |
4ee9c684 | 1990 | SET_MAKE= |
1991 | else | |
82eaf560 | 1992 | echo "$as_me:$LINENO: result: no" >&5 |
1993 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 1994 | SET_MAKE="MAKE=${MAKE-make}" |
1995 | fi | |
1996 | ||
1997 | rm -rf .tst 2>/dev/null | |
1998 | mkdir .tst 2>/dev/null | |
1999 | if test -d .tst; then | |
2000 | am__leading_dot=. | |
2001 | else | |
2002 | am__leading_dot=_ | |
2003 | fi | |
2004 | rmdir .tst 2>/dev/null | |
2005 | ||
2006 | # test to see if srcdir already configured | |
2007 | if 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 | |
2010 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2011 | { (exit 1); exit 1; }; } | |
2012 | fi | |
2013 | ||
2014 | # test whether we have cygpath | |
2015 | if 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 | |
2021 | fi | |
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 | ||
2031 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2032 | ||
2033 | ||
2034 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2035 | ||
2036 | ||
2037 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2038 | ||
2039 | ||
2040 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2041 | ||
2042 | ||
2043 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2044 | ||
4ee9c684 | 2045 | install_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. | |
2051 | if 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. | |
2054 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
82eaf560 | 2055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2057 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2059 | else | |
2060 | if test -n "$STRIP"; then | |
2061 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2062 | else | |
2063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2064 | for as_dir in $PATH | |
2065 | do | |
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 | |
2074 | done | |
2075 | done | |
2076 | ||
2077 | fi | |
2078 | fi | |
2079 | STRIP=$ac_cv_prog_STRIP | |
2080 | if test -n "$STRIP"; then | |
82eaf560 | 2081 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
2082 | echo "${ECHO_T}$STRIP" >&6 | |
4ee9c684 | 2083 | else |
82eaf560 | 2084 | echo "$as_me:$LINENO: result: no" >&5 |
2085 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2086 | fi |
2087 | ||
2088 | fi | |
2089 | if 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. | |
2092 | set dummy strip; ac_word=$2 | |
82eaf560 | 2093 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2094 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2095 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2097 | else | |
2098 | if test -n "$ac_ct_STRIP"; then | |
2099 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2100 | else | |
2101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2102 | for as_dir in $PATH | |
2103 | do | |
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 | |
2112 | done | |
2113 | done | |
2114 | ||
82eaf560 | 2115 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
4ee9c684 | 2116 | fi |
2117 | fi | |
2118 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2119 | if test -n "$ac_ct_STRIP"; then | |
82eaf560 | 2120 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2121 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
4ee9c684 | 2122 | else |
82eaf560 | 2123 | echo "$as_me:$LINENO: result: no" >&5 |
2124 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2125 | fi |
2126 | ||
82eaf560 | 2127 | STRIP=$ac_ct_STRIP |
4ee9c684 | 2128 | else |
2129 | STRIP="$ac_cv_prog_STRIP" | |
2130 | fi | |
2131 | ||
2132 | fi | |
2133 | INSTALL_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 | ||
2139 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2140 | ||
2141 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2142 | ||
2143 | ||
4ee9c684 | 2144 | |
2145 | ||
2146 | ||
4ee9c684 | 2147 | |
82eaf560 | 2148 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2149 | echo $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 | 2151 | if test "${enable_maintainer_mode+set}" = set; then |
82eaf560 | 2152 | enableval="$enable_maintainer_mode" |
2153 | USE_MAINTAINER_MODE=$enableval | |
4ee9c684 | 2154 | else |
2155 | USE_MAINTAINER_MODE=no | |
82eaf560 | 2156 | fi; |
2157 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
2158 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
4ee9c684 | 2159 | |
2160 | ||
2161 | if test $USE_MAINTAINER_MODE = yes; then | |
2162 | MAINTAINER_MODE_TRUE= | |
2163 | MAINTAINER_MODE_FALSE='#' | |
2164 | else | |
2165 | MAINTAINER_MODE_TRUE='#' | |
2166 | MAINTAINER_MODE_FALSE= | |
2167 | fi | |
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 | 2174 | if 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 | |
2180 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
2181 | { (exit 1); exit 1; }; } ;; | |
2182 | esac | |
2183 | else | |
2184 | multilib=yes | |
82eaf560 | 2185 | fi; |
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 | ||
2191 | if 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 | |
2197 | else | |
2198 | multi_basedir="$srcdir/.." | |
2199 | fi | |
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. | |
2204 | if test $cross_compiling = no && test $multilib = yes \ | |
2205 | && test "x${with_multisubdir}" != x ; then | |
2206 | cross_compiling=maybe | |
2207 | fi | |
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. | |
2218 | if test "$build" != "$host"; then | |
2219 | LIBGFOR_IS_NATIVE=false | |
b52ee437 | 2220 | |
90973b19 | 2221 | else |
2222 | LIBGFOR_IS_NATIVE=true | |
2223 | fi | |
2224 | ||
90973b19 | 2225 | # Calculate toolexeclibdir |
2226 | # Also toolexecdir, though it's only used in toolexeclibdir | |
2227 | case ${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 | ;; | |
2251 | esac | |
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 | 2263 | ac_ext=c |
2264 | ac_cpp='$CPP $CPPFLAGS' | |
2265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2268 | if 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. | |
2270 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
82eaf560 | 2271 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2272 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2273 | if test "${ac_cv_prog_CC+set}" = set; then |
2274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2275 | else | |
2276 | if test -n "$CC"; then | |
2277 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2278 | else | |
2279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2280 | for as_dir in $PATH | |
2281 | do | |
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 | |
2290 | done | |
2291 | done | |
2292 | ||
2293 | fi | |
2294 | fi | |
2295 | CC=$ac_cv_prog_CC | |
2296 | if test -n "$CC"; then | |
82eaf560 | 2297 | echo "$as_me:$LINENO: result: $CC" >&5 |
2298 | echo "${ECHO_T}$CC" >&6 | |
4ee9c684 | 2299 | else |
82eaf560 | 2300 | echo "$as_me:$LINENO: result: no" >&5 |
2301 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2302 | fi |
2303 | ||
2304 | fi | |
2305 | if 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. | |
2308 | set dummy gcc; ac_word=$2 | |
82eaf560 | 2309 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2310 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2311 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2313 | else | |
2314 | if test -n "$ac_ct_CC"; then | |
2315 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2316 | else | |
2317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2318 | for as_dir in $PATH | |
2319 | do | |
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 | |
2328 | done | |
2329 | done | |
2330 | ||
2331 | fi | |
2332 | fi | |
2333 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2334 | if test -n "$ac_ct_CC"; then | |
82eaf560 | 2335 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2336 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4ee9c684 | 2337 | else |
82eaf560 | 2338 | echo "$as_me:$LINENO: result: no" >&5 |
2339 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2340 | fi |
2341 | ||
82eaf560 | 2342 | CC=$ac_ct_CC |
4ee9c684 | 2343 | else |
2344 | CC="$ac_cv_prog_CC" | |
2345 | fi | |
2346 | ||
2347 | if 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 | 2350 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
82eaf560 | 2351 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2353 | if test "${ac_cv_prog_CC+set}" = set; then |
2354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2355 | else | |
2356 | if test -n "$CC"; then | |
2357 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2358 | else | |
2359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2360 | for as_dir in $PATH | |
2361 | do | |
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 | |
2370 | done | |
2371 | done | |
2372 | ||
2373 | fi | |
2374 | fi | |
2375 | CC=$ac_cv_prog_CC | |
2376 | if test -n "$CC"; then | |
82eaf560 | 2377 | echo "$as_me:$LINENO: result: $CC" >&5 |
2378 | echo "${ECHO_T}$CC" >&6 | |
4ee9c684 | 2379 | else |
82eaf560 | 2380 | echo "$as_me:$LINENO: result: no" >&5 |
2381 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2382 | fi |
2383 | ||
82eaf560 | 2384 | fi |
2385 | if 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. | |
2388 | set dummy cc; ac_word=$2 | |
2389 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2390 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2391 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2393 | else | |
2394 | if test -n "$ac_ct_CC"; then | |
2395 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2396 | else | |
2397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2398 | for as_dir in $PATH | |
2399 | do | |
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 | 2408 | done |
2409 | done | |
2410 | ||
2411 | fi | |
2412 | fi | |
2413 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2414 | if test -n "$ac_ct_CC"; then | |
2415 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2416 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2417 | else | |
2418 | echo "$as_me:$LINENO: result: no" >&5 | |
2419 | echo "${ECHO_T}no" >&6 | |
2420 | fi | |
2421 | ||
2422 | CC=$ac_ct_CC | |
2423 | else | |
2424 | CC="$ac_cv_prog_CC" | |
2425 | fi | |
2426 | ||
4ee9c684 | 2427 | fi |
2428 | if test -z "$CC"; then | |
2429 | # Extract the first word of "cc", so it can be a program name with args. | |
2430 | set dummy cc; ac_word=$2 | |
82eaf560 | 2431 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2433 | if test "${ac_cv_prog_CC+set}" = set; then |
2434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2435 | else | |
2436 | if test -n "$CC"; then | |
2437 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2438 | else | |
2439 | ac_prog_rejected=no | |
2440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2441 | for as_dir in $PATH | |
2442 | do | |
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 | |
2455 | done | |
2456 | done | |
2457 | ||
2458 | if 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 | |
2469 | fi | |
2470 | fi | |
2471 | fi | |
2472 | CC=$ac_cv_prog_CC | |
2473 | if test -n "$CC"; then | |
82eaf560 | 2474 | echo "$as_me:$LINENO: result: $CC" >&5 |
2475 | echo "${ECHO_T}$CC" >&6 | |
4ee9c684 | 2476 | else |
82eaf560 | 2477 | echo "$as_me:$LINENO: result: no" >&5 |
2478 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2479 | fi |
2480 | ||
2481 | fi | |
2482 | if 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. | |
2487 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
82eaf560 | 2488 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2490 | if test "${ac_cv_prog_CC+set}" = set; then |
2491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2492 | else | |
2493 | if test -n "$CC"; then | |
2494 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2495 | else | |
2496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2497 | for as_dir in $PATH | |
2498 | do | |
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 | |
2507 | done | |
2508 | done | |
2509 | ||
2510 | fi | |
2511 | fi | |
2512 | CC=$ac_cv_prog_CC | |
2513 | if test -n "$CC"; then | |
82eaf560 | 2514 | echo "$as_me:$LINENO: result: $CC" >&5 |
2515 | echo "${ECHO_T}$CC" >&6 | |
4ee9c684 | 2516 | else |
82eaf560 | 2517 | echo "$as_me:$LINENO: result: no" >&5 |
2518 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2519 | fi |
2520 | ||
2521 | test -n "$CC" && break | |
2522 | done | |
2523 | fi | |
2524 | if test -z "$CC"; then | |
2525 | ac_ct_CC=$CC | |
82eaf560 | 2526 | for ac_prog in cl |
4ee9c684 | 2527 | do |
2528 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2529 | set dummy $ac_prog; ac_word=$2 | |
82eaf560 | 2530 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2531 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4ee9c684 | 2532 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2534 | else | |
2535 | if test -n "$ac_ct_CC"; then | |
2536 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2537 | else | |
2538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2539 | for as_dir in $PATH | |
2540 | do | |
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 | |
2549 | done | |
2550 | done | |
2551 | ||
2552 | fi | |
2553 | fi | |
2554 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2555 | if test -n "$ac_ct_CC"; then | |
82eaf560 | 2556 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2557 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4ee9c684 | 2558 | else |
82eaf560 | 2559 | echo "$as_me:$LINENO: result: no" >&5 |
2560 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 2561 | fi |
2562 | ||
2563 | test -n "$ac_ct_CC" && break | |
2564 | done | |
2565 | ||
82eaf560 | 2566 | CC=$ac_ct_CC |
4ee9c684 | 2567 | fi |
2568 | ||
2569 | fi | |
2570 | ||
2571 | ||
5b2c7553 | 2572 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2573 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2574 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4ee9c684 | 2575 | See \`config.log' for more details." >&5 |
2576 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2577 | See \`config.log' for more details." >&2;} | |
5b2c7553 | 2578 | { (exit 1); exit 1; }; }; } |
4ee9c684 | 2579 | |
2580 | # Provide some information about the compiler. | |
82eaf560 | 2581 | echo "$as_me:$LINENO:" \ |
2582 | "checking for C compiler version" >&5 | |
4ee9c684 | 2583 | ac_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 | ||
2600 | cat >conftest.$ac_ext <<_ACEOF | |
2601 | /* confdefs.h. */ | |
2602 | _ACEOF | |
2603 | cat confdefs.h >>conftest.$ac_ext | |
2604 | cat >>conftest.$ac_ext <<_ACEOF | |
2605 | /* end confdefs.h. */ | |
2606 | ||
b52ee437 | 2607 | int |
2608 | main () | |
2609 | { | |
2610 | ||
2611 | ; | |
2612 | return 0; | |
2613 | } | |
2614 | _ACEOF | |
2615 | # FIXME: Cleanup? | |
2616 | if { (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 | |
2622 | else | |
2623 | gcc_no_link=yes | |
2624 | fi | |
2625 | ||
2626 | if 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= | |
2632 | else | |
2633 | cat >conftest.$ac_ext <<_ACEOF | |
2634 | /* confdefs.h. */ | |
2635 | _ACEOF | |
2636 | cat confdefs.h >>conftest.$ac_ext | |
2637 | cat >>conftest.$ac_ext <<_ACEOF | |
2638 | /* end confdefs.h. */ | |
2639 | ||
4ee9c684 | 2640 | int |
2641 | main () | |
2642 | { | |
2643 | ||
2644 | ; | |
2645 | return 0; | |
2646 | } | |
2647 | _ACEOF | |
2648 | ac_clean_files_save=$ac_clean_files | |
2649 | ac_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 | 2653 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2654 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
4ee9c684 | 2655 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
82eaf560 | 2656 | if { (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. | |
2667 | ac_cv_exeext= | |
2668 | # b.out is created by i960 compilers. | |
2669 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
4ee9c684 | 2670 | do |
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 | |
2692 | done | |
2693 | else | |
2694 | echo "$as_me: failed program was:" >&5 | |
2695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2696 | ||
5b2c7553 | 2697 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2698 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4ee9c684 | 2699 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2700 | See \`config.log' for more details." >&5 | |
2701 | echo "$as_me: error: C compiler cannot create executables | |
2702 | See \`config.log' for more details." >&2;} | |
5b2c7553 | 2703 | { (exit 77); exit 77; }; }; } |
4ee9c684 | 2704 | fi |
2705 | ||
2706 | ac_exeext=$ac_cv_exeext | |
82eaf560 | 2707 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
2708 | echo "${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 | 2712 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2713 | echo $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. | |
2716 | if 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 |
2729 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2730 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
4ee9c684 | 2731 | If you meant to cross compile, use \`--host'. |
2732 | See \`config.log' for more details." >&5 | |
2733 | echo "$as_me: error: cannot run C compiled programs. | |
2734 | If you meant to cross compile, use \`--host'. | |
2735 | See \`config.log' for more details." >&2;} | |
5b2c7553 | 2736 | { (exit 1); exit 1; }; }; } |
4ee9c684 | 2737 | fi |
2738 | fi | |
2739 | fi | |
82eaf560 | 2740 | echo "$as_me:$LINENO: result: yes" >&5 |
2741 | echo "${ECHO_T}yes" >&6 | |
4ee9c684 | 2742 | |
2743 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2744 | ac_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 | 2747 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2748 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2749 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2750 | echo "${ECHO_T}$cross_compiling" >&6 | |
2751 | ||
2752 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2753 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2754 | if { (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'. | |
2763 | for 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 | |
2772 | done | |
2773 | else | |
5b2c7553 | 2774 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2775 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2776 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
4ee9c684 | 2777 | See \`config.log' for more details." >&5 |
2778 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2779 | See \`config.log' for more details." >&2;} | |
5b2c7553 | 2780 | { (exit 1); exit 1; }; }; } |
4ee9c684 | 2781 | fi |
2782 | ||
2783 | rm -f conftest$ac_cv_exeext | |
82eaf560 | 2784 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2785 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
4ee9c684 | 2786 | |
2787 | rm -f conftest.$ac_ext | |
2788 | EXEEXT=$ac_cv_exeext | |
2789 | ac_exeext=$EXEEXT | |
b52ee437 | 2790 | fi |
82eaf560 | 2791 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2792 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
4ee9c684 | 2793 | if test "${ac_cv_objext+set}" = set; then |
2794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2795 | else | |
2796 | cat >conftest.$ac_ext <<_ACEOF | |
2797 | /* confdefs.h. */ | |
2798 | _ACEOF | |
2799 | cat confdefs.h >>conftest.$ac_ext | |
2800 | cat >>conftest.$ac_ext <<_ACEOF | |
2801 | /* end confdefs.h. */ | |
2802 | ||
2803 | int | |
2804 | main () | |
2805 | { | |
2806 | ||
2807 | ; | |
2808 | return 0; | |
2809 | } | |
2810 | _ACEOF | |
2811 | rm -f conftest.o conftest.obj | |
82eaf560 | 2812 | if { (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 | |
2823 | done | |
2824 | else | |
2825 | echo "$as_me: failed program was:" >&5 | |
2826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2827 | ||
5b2c7553 | 2828 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2829 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
a106dabe | 2830 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2831 | See \`config.log' for more details." >&5 | |
2832 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2833 | See \`config.log' for more details." >&2;} | |
5b2c7553 | 2834 | { (exit 1); exit 1; }; }; } |
a106dabe | 2835 | fi |
2836 | ||
2837 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2838 | fi | |
82eaf560 | 2839 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2840 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
a106dabe | 2841 | OBJEXT=$ac_cv_objext |
2842 | ac_objext=$OBJEXT | |
82eaf560 | 2843 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2844 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
a106dabe | 2845 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2847 | else | |
2848 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 2849 | /* confdefs.h. */ |
2850 | _ACEOF | |
2851 | cat confdefs.h >>conftest.$ac_ext | |
2852 | cat >>conftest.$ac_ext <<_ACEOF | |
2853 | /* end confdefs.h. */ | |
4ee9c684 | 2854 | |
4ee9c684 | 2855 | int |
2856 | main () | |
2857 | { | |
a106dabe | 2858 | #ifndef __GNUC__ |
2859 | choke me | |
2860 | #endif | |
ce1a737c | 2861 | |
4ee9c684 | 2862 | ; |
2863 | return 0; | |
2864 | } | |
2865 | _ACEOF | |
ce1a737c | 2866 | rm -f conftest.$ac_objext |
82eaf560 | 2867 | if { (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 | 2889 | else |
2890 | echo "$as_me: failed program was:" >&5 | |
2891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2892 | ||
82eaf560 | 2893 | ac_compiler_gnu=no |
a106dabe | 2894 | fi |
82eaf560 | 2895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a106dabe | 2896 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2897 | ||
2898 | fi | |
82eaf560 | 2899 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2900 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
a106dabe | 2901 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2902 | ac_test_CFLAGS=${CFLAGS+set} | |
2903 | ac_save_CFLAGS=$CFLAGS | |
82eaf560 | 2904 | CFLAGS="-g" |
2905 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2906 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
a106dabe | 2907 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2909 | else | |
82eaf560 | 2910 | cat >conftest.$ac_ext <<_ACEOF |
4ee9c684 | 2911 | /* confdefs.h. */ |
2912 | _ACEOF | |
2913 | cat confdefs.h >>conftest.$ac_ext | |
2914 | cat >>conftest.$ac_ext <<_ACEOF | |
2915 | /* end confdefs.h. */ | |
ce1a737c | 2916 | |
4ee9c684 | 2917 | int |
2918 | main () | |
2919 | { | |
ce1a737c | 2920 | |
4ee9c684 | 2921 | ; |
2922 | return 0; | |
2923 | } | |
2924 | _ACEOF | |
2925 | rm -f conftest.$ac_objext | |
82eaf560 | 2926 | if { (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 |
2948 | else | |
2949 | echo "$as_me: failed program was:" >&5 | |
2950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2951 | ||
82eaf560 | 2952 | ac_cv_prog_cc_g=no |
2953 | fi | |
2954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2955 | fi | |
2956 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2957 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2958 | if test "$ac_test_CFLAGS" = set; then | |
2959 | CFLAGS=$ac_save_CFLAGS | |
2960 | elif 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 | |
2966 | else | |
2967 | if test "$GCC" = yes; then | |
2968 | CFLAGS="-O2" | |
2969 | else | |
2970 | CFLAGS= | |
2971 | fi | |
2972 | fi | |
2973 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2974 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2975 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2977 | else | |
2978 | ac_cv_prog_cc_stdc=no | |
2979 | ac_save_CC=$CC | |
2980 | cat >conftest.$ac_ext <<_ACEOF | |
ff4425cf | 2981 | /* confdefs.h. */ |
2982 | _ACEOF | |
2983 | cat confdefs.h >>conftest.$ac_ext | |
2984 | cat >>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. */ | |
2991 | struct buf { int x; }; | |
2992 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2993 | static char *e (p, i) | |
2994 | char **p; | |
2995 | int i; | |
2996 | { | |
2997 | return p[i]; | |
2998 | } | |
2999 | static 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. */ | |
3016 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3017 | ||
3018 | int test (int i, double x); | |
3019 | struct s1 {int (*f) (int a);}; | |
3020 | struct s2 {int (*f) (double a);}; | |
3021 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3022 | int argc; | |
3023 | char **argv; | |
ff4425cf | 3024 | int |
3025 | main () | |
3026 | { | |
82eaf560 | 3027 | return 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__ | |
3039 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3040 | do | |
3041 | CC="$ac_save_CC $ac_arg" | |
3042 | rm -f conftest.$ac_objext | |
3043 | if { (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 | |
3065 | break | |
ff4425cf | 3066 | else |
3067 | echo "$as_me: failed program was:" >&5 | |
3068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3069 | ||
82eaf560 | 3070 | fi |
3071 | rm -f conftest.err conftest.$ac_objext | |
3072 | done | |
3073 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3074 | CC=$ac_save_CC | |
3075 | ||
3076 | fi | |
3077 | ||
3078 | case "x$ac_cv_prog_cc_stdc" in | |
3079 | x|xno) | |
3080 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3081 | echo "${ECHO_T}none needed" >&6 ;; | |
3082 | *) | |
3083 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3084 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3085 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3086 | esac | |
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. | |
3092 | cat >conftest.$ac_ext <<_ACEOF | |
3093 | #ifndef __cplusplus | |
3094 | choke me | |
3095 | #endif | |
3096 | _ACEOF | |
3097 | rm -f conftest.$ac_objext | |
3098 | if { (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);' | |
3126 | do | |
3127 | cat >conftest.$ac_ext <<_ACEOF | |
ff4425cf | 3128 | /* confdefs.h. */ |
3129 | _ACEOF | |
3130 | cat confdefs.h >>conftest.$ac_ext | |
3131 | cat >>conftest.$ac_ext <<_ACEOF | |
3132 | /* end confdefs.h. */ | |
82eaf560 | 3133 | $ac_declaration |
3134 | #include <stdlib.h> | |
ff4425cf | 3135 | int |
3136 | main () | |
3137 | { | |
82eaf560 | 3138 | exit (42); |
ff4425cf | 3139 | ; |
3140 | return 0; | |
3141 | } | |
3142 | _ACEOF | |
3143 | rm -f conftest.$ac_objext | |
82eaf560 | 3144 | if { (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 | 3166 | else |
3167 | echo "$as_me: failed program was:" >&5 | |
3168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3169 | ||
82eaf560 | 3170 | continue |
ce1a737c | 3171 | fi |
82eaf560 | 3172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3173 | cat >conftest.$ac_ext <<_ACEOF | |
ce1a737c | 3174 | /* confdefs.h. */ |
3175 | _ACEOF | |
3176 | cat confdefs.h >>conftest.$ac_ext | |
3177 | cat >>conftest.$ac_ext <<_ACEOF | |
3178 | /* end confdefs.h. */ | |
82eaf560 | 3179 | $ac_declaration |
4ee9c684 | 3180 | int |
3181 | main () | |
3182 | { | |
82eaf560 | 3183 | exit (42); |
4ee9c684 | 3184 | ; |
3185 | return 0; | |
3186 | } | |
3187 | _ACEOF | |
82eaf560 | 3188 | rm -f conftest.$ac_objext |
3189 | if { (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 | 3211 | else |
3212 | echo "$as_me: failed program was:" >&5 | |
3213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3214 | ||
3215 | fi | |
82eaf560 | 3216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 3217 | done |
82eaf560 | 3218 | rm -f conftest* |
3219 | if test -n "$ac_declaration"; then | |
3220 | echo '#ifdef __cplusplus' >>confdefs.h | |
3221 | echo $ac_declaration >>confdefs.h | |
3222 | echo '#endif' >>confdefs.h | |
4ee9c684 | 3223 | fi |
3224 | ||
82eaf560 | 3225 | else |
3226 | echo "$as_me: failed program was:" >&5 | |
3227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 3228 | |
82eaf560 | 3229 | fi |
3230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4ee9c684 | 3231 | ac_ext=c |
3232 | ac_cpp='$CPP $CPPFLAGS' | |
3233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2fd61f51 | 3236 | DEPDIR="${am__leading_dot}deps" |
3237 | ||
82eaf560 | 3238 | ac_config_commands="$ac_config_commands depfiles" |
2fd61f51 | 3239 | |
3240 | ||
3241 | am_make=${MAKE-make} | |
3242 | cat > confinc << 'END' | |
3243 | am__doit: | |
3244 | @echo done | |
3245 | .PHONY: am__doit | |
3246 | END | |
3247 | # If we don't find an include directive, just comment out the code. | |
82eaf560 | 3248 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3249 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2fd61f51 | 3250 | am__include="#" |
3251 | am__quote= | |
3252 | _am_result=none | |
3253 | # First try GNU make style include. | |
3254 | echo "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'. | |
3260 | if 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 | |
3264 | fi | |
3265 | # Now try BSD make style include. | |
3266 | if 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 | |
3273 | fi | |
3274 | ||
3275 | ||
82eaf560 | 3276 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
3277 | echo "${ECHO_T}$_am_result" >&6 | |
2fd61f51 | 3278 | rm -f confinc confmf |
3279 | ||
82eaf560 | 3280 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
2fd61f51 | 3281 | if test "${enable_dependency_tracking+set}" = set; then |
82eaf560 | 3282 | enableval="$enable_dependency_tracking" |
2fd61f51 | 3283 | |
82eaf560 | 3284 | fi; |
2fd61f51 | 3285 | if test "x$enable_dependency_tracking" != xno; then |
3286 | am_depcomp="$ac_aux_dir/depcomp" | |
3287 | AMDEPBACKSLASH='\' | |
3288 | fi | |
3289 | ||
3290 | ||
3291 | if test "x$enable_dependency_tracking" != xno; then | |
3292 | AMDEP_TRUE= | |
3293 | AMDEP_FALSE='#' | |
3294 | else | |
3295 | AMDEP_TRUE='#' | |
3296 | AMDEP_FALSE= | |
3297 | fi | |
3298 | ||
3299 | ||
3300 | ||
3301 | ||
3302 | depcc="$CC" am_compiler_list= | |
3303 | ||
82eaf560 | 3304 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3305 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2fd61f51 | 3306 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3308 | else | |
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 | |
3389 | else | |
3390 | am_cv_CC_dependencies_compiler_type=none | |
3391 | fi | |
3392 | ||
3393 | fi | |
82eaf560 | 3394 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3395 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
2fd61f51 | 3396 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3397 | ||
3398 | ||
3399 | ||
3400 | if | |
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='#' | |
3405 | else | |
3406 | am__fastdepCC_TRUE='#' | |
3407 | am__fastdepCC_FALSE= | |
3408 | fi | |
3409 | ||
4ee9c684 | 3410 | |
4ee9c684 | 3411 | |
4ee9c684 | 3412 | |
d1191d66 | 3413 | # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
90973b19 | 3414 | if 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 | 3422 | fi |
3423 | ||
09e5829f | 3424 | |
3425 | ||
5a037dbd | 3426 | |
ce1a737c | 3427 | # Check for symbol versioning (copied from libssp). |
82eaf560 | 3428 | echo "$as_me:$LINENO: checking whether symbol versioning is supported" >&5 |
3429 | echo $ECHO_N "checking whether symbol versioning is supported... $ECHO_C" >&6 | |
ce1a737c | 3430 | cat > conftest.map <<EOF |
3431 | FOO_1.0 { | |
3432 | global: *foo*; bar; local: *; | |
3433 | }; | |
3434 | EOF | |
3435 | save_LDFLAGS="$LDFLAGS" | |
3436 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" | |
3437 | ||
3438 | if test x$gcc_no_link = xyes; then | |
3439 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
3440 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
3441 | { (exit 1); exit 1; }; } | |
3442 | fi | |
3443 | cat >conftest.$ac_ext <<_ACEOF | |
3444 | /* confdefs.h. */ | |
3445 | _ACEOF | |
3446 | cat confdefs.h >>conftest.$ac_ext | |
3447 | cat >>conftest.$ac_ext <<_ACEOF | |
3448 | /* end confdefs.h. */ | |
3449 | int foo; | |
3450 | int | |
3451 | main () | |
3452 | { | |
3453 | ||
3454 | ; | |
3455 | return 0; | |
3456 | } | |
3457 | _ACEOF | |
3458 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 3459 | if { (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 |
3481 | else | |
3482 | echo "$as_me: failed program was:" >&5 | |
3483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3484 | ||
82eaf560 | 3485 | gfortran_use_symver=no |
ce1a737c | 3486 | fi |
82eaf560 | 3487 | rm -f conftest.err conftest.$ac_objext \ |
ce1a737c | 3488 | conftest$ac_exeext conftest.$ac_ext |
3489 | LDFLAGS="$save_LDFLAGS" | |
82eaf560 | 3490 | echo "$as_me:$LINENO: result: $gfortran_use_symver" >&5 |
3491 | echo "${ECHO_T}$gfortran_use_symver" >&6 | |
ce1a737c | 3492 | |
3493 | ||
3494 | if test "x$gfortran_use_symver" = xyes; then | |
3495 | LIBGFOR_USE_SYMVER_TRUE= | |
3496 | LIBGFOR_USE_SYMVER_FALSE='#' | |
3497 | else | |
3498 | LIBGFOR_USE_SYMVER_TRUE='#' | |
3499 | LIBGFOR_USE_SYMVER_FALSE= | |
3500 | fi | |
3501 | ||
3502 | ||
90973b19 | 3503 | # Find other programs we need. |
3504 | if 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. | |
3506 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
82eaf560 | 3507 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3508 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3509 | if test "${ac_cv_prog_AS+set}" = set; then |
4ee9c684 | 3510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3511 | else | |
90973b19 | 3512 | if test -n "$AS"; then |
3513 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
3514 | else | |
3515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3516 | for as_dir in $PATH | |
3517 | do | |
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 | 3526 | done |
3527 | done | |
4ee9c684 | 3528 | |
90973b19 | 3529 | fi |
3530 | fi | |
3531 | AS=$ac_cv_prog_AS | |
3532 | if test -n "$AS"; then | |
82eaf560 | 3533 | echo "$as_me:$LINENO: result: $AS" >&5 |
3534 | echo "${ECHO_T}$AS" >&6 | |
4ee9c684 | 3535 | else |
82eaf560 | 3536 | echo "$as_me:$LINENO: result: no" >&5 |
3537 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3538 | fi |
3539 | ||
3540 | fi | |
90973b19 | 3541 | if 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. | |
3544 | set dummy as; ac_word=$2 | |
82eaf560 | 3545 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3546 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3547 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
3548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3549 | else | |
3550 | if test -n "$ac_ct_AS"; then | |
3551 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
3552 | else | |
3553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3554 | for as_dir in $PATH | |
3555 | do | |
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 | |
3564 | done | |
3565 | done | |
4ee9c684 | 3566 | |
90973b19 | 3567 | fi |
3568 | fi | |
3569 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
3570 | if test -n "$ac_ct_AS"; then | |
82eaf560 | 3571 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
3572 | echo "${ECHO_T}$ac_ct_AS" >&6 | |
4ee9c684 | 3573 | else |
82eaf560 | 3574 | echo "$as_me:$LINENO: result: no" >&5 |
3575 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3576 | fi |
3577 | ||
82eaf560 | 3578 | AS=$ac_ct_AS |
90973b19 | 3579 | else |
3580 | AS="$ac_cv_prog_AS" | |
4ee9c684 | 3581 | fi |
3582 | ||
4ee9c684 | 3583 | if 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. |
3585 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
82eaf560 | 3586 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3588 | if test "${ac_cv_prog_AR+set}" = set; then |
4ee9c684 | 3589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3590 | else | |
90973b19 | 3591 | if test -n "$AR"; then |
3592 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4ee9c684 | 3593 | else |
3594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3595 | for as_dir in $PATH | |
3596 | do | |
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 | |
3605 | done | |
3606 | done | |
3607 | ||
3608 | fi | |
3609 | fi | |
90973b19 | 3610 | AR=$ac_cv_prog_AR |
3611 | if test -n "$AR"; then | |
82eaf560 | 3612 | echo "$as_me:$LINENO: result: $AR" >&5 |
3613 | echo "${ECHO_T}$AR" >&6 | |
4ee9c684 | 3614 | else |
82eaf560 | 3615 | echo "$as_me:$LINENO: result: no" >&5 |
3616 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3617 | fi |
3618 | ||
4ee9c684 | 3619 | fi |
90973b19 | 3620 | if 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. | |
3623 | set dummy ar; ac_word=$2 | |
82eaf560 | 3624 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3625 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3626 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
4ee9c684 | 3627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3628 | else | |
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 | 3631 | else |
3632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3633 | for as_dir in $PATH | |
3634 | do | |
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 | |
3643 | done | |
3644 | done | |
3645 | ||
3646 | fi | |
3647 | fi | |
90973b19 | 3648 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
3649 | if test -n "$ac_ct_AR"; then | |
82eaf560 | 3650 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
3651 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
4ee9c684 | 3652 | else |
82eaf560 | 3653 | echo "$as_me:$LINENO: result: no" >&5 |
3654 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3655 | fi |
3656 | ||
82eaf560 | 3657 | AR=$ac_ct_AR |
90973b19 | 3658 | else |
3659 | AR="$ac_cv_prog_AR" | |
4ee9c684 | 3660 | fi |
3661 | ||
90973b19 | 3662 | if 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. | |
3664 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
82eaf560 | 3665 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3667 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
4ee9c684 | 3668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3669 | else | |
90973b19 | 3670 | if test -n "$RANLIB"; then |
3671 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4ee9c684 | 3672 | else |
90973b19 | 3673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3674 | for as_dir in $PATH | |
3675 | do | |
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 | |
3684 | done | |
3685 | done | |
4ee9c684 | 3686 | |
4ee9c684 | 3687 | fi |
90973b19 | 3688 | fi |
3689 | RANLIB=$ac_cv_prog_RANLIB | |
3690 | if test -n "$RANLIB"; then | |
82eaf560 | 3691 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3692 | echo "${ECHO_T}$RANLIB" >&6 | |
90973b19 | 3693 | else |
82eaf560 | 3694 | echo "$as_me:$LINENO: result: no" >&5 |
3695 | echo "${ECHO_T}no" >&6 | |
90973b19 | 3696 | fi |
4ee9c684 | 3697 | |
3698 | fi | |
90973b19 | 3699 | if 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. | |
3702 | set dummy ranlib; ac_word=$2 | |
82eaf560 | 3703 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 3705 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
4ee9c684 | 3706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3707 | else | |
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 | 3710 | else |
90973b19 | 3711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3712 | for as_dir in $PATH | |
3713 | do | |
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 | |
3722 | done | |
3723 | done | |
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 | 3726 | fi |
4ee9c684 | 3727 | fi |
90973b19 | 3728 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3729 | if test -n "$ac_ct_RANLIB"; then | |
82eaf560 | 3730 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3731 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4ee9c684 | 3732 | else |
82eaf560 | 3733 | echo "$as_me:$LINENO: result: no" >&5 |
3734 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 3735 | fi |
3736 | ||
82eaf560 | 3737 | RANLIB=$ac_ct_RANLIB |
90973b19 | 3738 | else |
3739 | RANLIB="$ac_cv_prog_RANLIB" | |
4ee9c684 | 3740 | fi |
90973b19 | 3741 | |
82eaf560 | 3742 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3743 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3744 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3745 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
4ee9c684 | 3746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3747 | else | |
90973b19 | 3748 | cat >conftest.make <<\_ACEOF |
3749 | all: | |
82eaf560 | 3750 | @echo 'ac_maketemp="$(MAKE)"' |
4ee9c684 | 3751 | _ACEOF |
90973b19 | 3752 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
82eaf560 | 3753 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
3754 | if test -n "$ac_maketemp"; then | |
3755 | eval ac_cv_prog_make_${ac_make}_set=yes | |
3756 | else | |
3757 | eval ac_cv_prog_make_${ac_make}_set=no | |
3758 | fi | |
90973b19 | 3759 | rm -f conftest.make |
3760 | fi | |
82eaf560 | 3761 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
3762 | echo "$as_me:$LINENO: result: yes" >&5 | |
3763 | echo "${ECHO_T}yes" >&6 | |
90973b19 | 3764 | SET_MAKE= |
4ee9c684 | 3765 | else |
82eaf560 | 3766 | echo "$as_me:$LINENO: result: no" >&5 |
3767 | echo "${ECHO_T}no" >&6 | |
90973b19 | 3768 | SET_MAKE="MAKE=${MAKE-make}" |
4ee9c684 | 3769 | fi |
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. |
3785 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3786 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
90973b19 | 3787 | if test -z "$INSTALL"; then |
3788 | if test "${ac_cv_path_install+set}" = set; then | |
3789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4ee9c684 | 3790 | else |
90973b19 | 3791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3792 | for as_dir in $PATH | |
3793 | do | |
3794 | IFS=$as_save_IFS | |
3795 | test -z "$as_dir" && as_dir=. | |
3796 | # Account for people who put trailing slashes in PATH elements. | |
3797 | case $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 | ;; | |
3835 | esac | |
4ee9c684 | 3836 | done |
4ee9c684 | 3837 | |
82eaf560 | 3838 | rm -rf conftest.one conftest.two conftest.dir |
4ee9c684 | 3839 | |
3840 | fi | |
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 | 3850 | fi |
82eaf560 | 3851 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3852 | echo "${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. | |
3856 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4ee9c684 | 3857 | |
90973b19 | 3858 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4ee9c684 | 3859 | |
90973b19 | 3860 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4ee9c684 | 3861 | |
4ee9c684 | 3862 | |
90973b19 | 3863 | # Configure libtool |
3864 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
542f9784 | 3865 | enable_dlopen=yes |
3866 | ||
3867 | ||
3868 | ||
00aafda4 | 3869 | case `pwd` in |
3870 | *\ * | *\ *) | |
3871 | { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
3872 | echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
3873 | esac | |
542f9784 | 3874 | |
3875 | ||
542f9784 | 3876 | |
00aafda4 | 3877 | macro_version='2.2.6' |
3878 | macro_revision='1.3012' | |
542f9784 | 3879 | |
3880 | ||
3881 | ||
3882 | ||
3883 | ||
3884 | ||
4ee9c684 | 3885 | |
542f9784 | 3886 | |
3887 | ||
3888 | ||
3889 | ||
3890 | ||
3891 | ||
00aafda4 | 3892 | ltmain="$ac_aux_dir/ltmain.sh" |
542f9784 | 3893 | |
82eaf560 | 3894 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3895 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
3896 | if test "${lt_cv_path_SED+set}" = set; then | |
542f9784 | 3897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3898 | else | |
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 | 3901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3902 | for as_dir in $PATH | |
3903 | do | |
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 |
3913 | done | |
ff4425cf | 3914 | IFS=$as_save_IFS |
82eaf560 | 3915 | lt_ac_max=0 |
3916 | lt_ac_count=0 | |
3917 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
3918 | # along with /bin/sed that truncates output. | |
3919 | for 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 |
3944 | done | |
3945 | ||
ff4425cf | 3946 | fi |
3947 | ||
82eaf560 | 3948 | SED=$lt_cv_path_SED |
ff4425cf | 3949 | |
82eaf560 | 3950 | echo "$as_me:$LINENO: result: $SED" >&5 |
3951 | echo "${ECHO_T}$SED" >&6 | |
3952 | ||
3953 | test -z "$SED" && SED=sed | |
3954 | Xsed="$SED -e 1s/^X//" | |
542f9784 | 3955 | |
3956 | ||
ff4425cf | 3957 | |
542f9784 | 3958 | |
3959 | ||
3960 | ||
3961 | ||
3962 | ||
3963 | ||
3964 | ||
3965 | ||
82eaf560 | 3966 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3967 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3968 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
542f9784 | 3970 | else |
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 | 3975 | fi |
82eaf560 | 3976 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3977 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3978 | EGREP=$ac_cv_prog_egrep | |
542f9784 | 3979 | |
3980 | ||
82eaf560 | 3981 | echo "$as_me:$LINENO: checking for fgrep" >&5 |
3982 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 | |
3983 | if test "${ac_cv_prog_fgrep+set}" = set; then | |
3984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3985 | else | |
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 | 3990 | fi |
82eaf560 | 3991 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 |
3992 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 | |
3993 | FGREP=$ac_cv_prog_fgrep | |
542f9784 | 3994 | |
3995 | ||
3996 | test -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 | 4017 | if test "${with_gnu_ld+set}" = set; then |
82eaf560 | 4018 | withval="$with_gnu_ld" |
4019 | test "$withval" = no || with_gnu_ld=yes | |
90973b19 | 4020 | else |
4021 | with_gnu_ld=no | |
82eaf560 | 4022 | fi; |
90973b19 | 4023 | ac_prog=ld |
4024 | if 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 |
4027 | echo $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 | |
4055 | elif test "$with_gnu_ld" = yes; then | |
82eaf560 | 4056 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4057 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
90973b19 | 4058 | else |
82eaf560 | 4059 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4060 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
90973b19 | 4061 | fi |
4062 | if test "${lt_cv_path_LD+set}" = set; then | |
4063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4064 | else | |
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 | 4086 | else |
4087 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4088 | fi | |
4089 | fi | |
4090 | ||
4091 | LD="$lt_cv_path_LD" | |
4092 | if test -n "$LD"; then | |
82eaf560 | 4093 | echo "$as_me:$LINENO: result: $LD" >&5 |
4094 | echo "${ECHO_T}$LD" >&6 | |
90973b19 | 4095 | else |
82eaf560 | 4096 | echo "$as_me:$LINENO: result: no" >&5 |
4097 | echo "${ECHO_T}no" >&6 | |
90973b19 | 4098 | fi |
4099 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
4100 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4101 | { (exit 1); exit 1; }; } | |
82eaf560 | 4102 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4103 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
90973b19 | 4104 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4106 | else | |
542f9784 | 4107 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4108 | case `$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 | ;; |
4115 | esac | |
90973b19 | 4116 | fi |
82eaf560 | 4117 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4118 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
90973b19 | 4119 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4120 | ||
4121 | ||
90973b19 | 4122 | |
542f9784 | 4123 | |
4124 | ||
4125 | ||
4126 | ||
4127 | ||
4128 | ||
82eaf560 | 4129 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4130 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 | |
90973b19 | 4131 | if test "${lt_cv_path_NM+set}" = set; then |
4132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4133 | else | |
4134 | if test -n "$NM"; then | |
4135 | # Let the user override the test. | |
4136 | lt_cv_path_NM="$NM" | |
4137 | else | |
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} | |
4176 | fi | |
4177 | fi | |
82eaf560 | 4178 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4179 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
542f9784 | 4180 | if test "$lt_cv_path_NM" != "no"; then |
4181 | NM="$lt_cv_path_NM" | |
4182 | else | |
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. | |
4188 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
82eaf560 | 4189 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
542f9784 | 4191 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
4192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4193 | else | |
4194 | if test -n "$DUMPBIN"; then | |
4195 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4196 | else | |
4197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4198 | for as_dir in $PATH | |
4199 | do | |
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 | |
4208 | done | |
4209 | done | |
4210 | ||
4211 | fi | |
4212 | fi | |
4213 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4214 | if test -n "$DUMPBIN"; then | |
82eaf560 | 4215 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 |
4216 | echo "${ECHO_T}$DUMPBIN" >&6 | |
542f9784 | 4217 | else |
82eaf560 | 4218 | echo "$as_me:$LINENO: result: no" >&5 |
4219 | echo "${ECHO_T}no" >&6 | |
542f9784 | 4220 | fi |
4221 | ||
4222 | test -n "$DUMPBIN" && break | |
4223 | done | |
4224 | fi | |
4225 | if test -z "$DUMPBIN"; then | |
4226 | ac_ct_DUMPBIN=$DUMPBIN | |
4227 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4228 | do | |
4229 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4230 | set dummy $ac_prog; ac_word=$2 | |
82eaf560 | 4231 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4232 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
542f9784 | 4233 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then |
4234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4235 | else | |
4236 | if test -n "$ac_ct_DUMPBIN"; then | |
4237 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4238 | else | |
4239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4240 | for as_dir in $PATH | |
4241 | do | |
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 | |
4250 | done | |
4251 | done | |
4252 | ||
4253 | fi | |
4254 | fi | |
4255 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4256 | if test -n "$ac_ct_DUMPBIN"; then | |
82eaf560 | 4257 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 |
4258 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 | |
542f9784 | 4259 | else |
82eaf560 | 4260 | echo "$as_me:$LINENO: result: no" >&5 |
4261 | echo "${ECHO_T}no" >&6 | |
542f9784 | 4262 | fi |
4263 | ||
4264 | test -n "$ac_ct_DUMPBIN" && break | |
4265 | done | |
82eaf560 | 4266 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" |
542f9784 | 4267 | |
82eaf560 | 4268 | DUMPBIN=$ac_ct_DUMPBIN |
90973b19 | 4269 | fi |
542f9784 | 4270 | |
4271 | ||
4272 | if test "$DUMPBIN" != ":"; then | |
4273 | NM="$DUMPBIN" | |
4274 | fi | |
90973b19 | 4275 | fi |
542f9784 | 4276 | test -z "$NM" && NM=nm |
4277 | ||
4278 | ||
90973b19 | 4279 | |
542f9784 | 4280 | |
4281 | ||
4282 | ||
82eaf560 | 4283 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
4284 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 | |
542f9784 | 4285 | if test "${lt_cv_nm_interface+set}" = set; then |
4286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4287 | else | |
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* | |
4302 | fi | |
82eaf560 | 4303 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
4304 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 | |
90973b19 | 4305 | |
82eaf560 | 4306 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4307 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
90973b19 | 4308 | LN_S=$as_ln_s |
4309 | if test "$LN_S" = "ln -s"; then | |
82eaf560 | 4310 | echo "$as_me:$LINENO: result: yes" >&5 |
4311 | echo "${ECHO_T}yes" >&6 | |
90973b19 | 4312 | else |
82eaf560 | 4313 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4314 | echo "${ECHO_T}no, using $LN_S" >&6 | |
90973b19 | 4315 | fi |
4316 | ||
542f9784 | 4317 | # find the maximum length of command line arguments |
82eaf560 | 4318 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
4319 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
542f9784 | 4320 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
4321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4322 | else | |
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 | ||
4435 | fi | |
4436 | ||
4437 | if test -n $lt_cv_sys_max_cmd_len ; then | |
82eaf560 | 4438 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
4439 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
542f9784 | 4440 | else |
82eaf560 | 4441 | echo "$as_me:$LINENO: result: none" >&5 |
4442 | echo "${ECHO_T}none" >&6 | |
542f9784 | 4443 | fi |
4444 | max_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 | 4455 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
4456 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 | |
542f9784 | 4457 | # Try some XSI features |
4458 | xsi_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 | 4465 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 |
4466 | echo "${ECHO_T}$xsi_shell" >&6 | |
542f9784 | 4467 | |
4468 | ||
82eaf560 | 4469 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
4470 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 | |
542f9784 | 4471 | lt_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 | 4475 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 |
4476 | echo "${ECHO_T}$lt_shell_append" >&6 | |
542f9784 | 4477 | |
4478 | ||
4479 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4480 | lt_unset=unset | |
4481 | else | |
4482 | lt_unset=false | |
4483 | fi | |
4484 | ||
4485 | ||
4486 | ||
4487 | ||
4488 | ||
4489 | # test EBCDIC or ASCII | |
4490 | case `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 | ;; | |
4500 | esac | |
4501 | ||
4502 | ||
4503 | ||
4504 | ||
4505 | ||
4506 | ||
4507 | ||
4508 | ||
4509 | ||
82eaf560 | 4510 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4511 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
542f9784 | 4512 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
4513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4514 | else | |
4515 | lt_cv_ld_reload_flag='-r' | |
4516 | fi | |
82eaf560 | 4517 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4518 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
542f9784 | 4519 | reload_flag=$lt_cv_ld_reload_flag |
4520 | case $reload_flag in | |
4521 | "" | " "*) ;; | |
4522 | *) reload_flag=" $reload_flag" ;; | |
4523 | esac | |
4524 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4525 | case $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 | ;; | |
4533 | esac | |
4534 | ||
4535 | ||
4536 | ||
4537 | ||
4538 | ||
4539 | ||
4540 | ||
4541 | ||
4542 | ||
00aafda4 | 4543 | if 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. | |
4545 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4546 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4548 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
4549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4550 | else | |
4551 | if test -n "$OBJDUMP"; then | |
4552 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4553 | else | |
4554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4555 | for as_dir in $PATH | |
4556 | do | |
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 | |
4565 | done | |
4566 | done | |
4567 | ||
4568 | fi | |
4569 | fi | |
4570 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
4571 | if test -n "$OBJDUMP"; then | |
4572 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
4573 | echo "${ECHO_T}$OBJDUMP" >&6 | |
4574 | else | |
4575 | echo "$as_me:$LINENO: result: no" >&5 | |
4576 | echo "${ECHO_T}no" >&6 | |
4577 | fi | |
4578 | ||
4579 | fi | |
4580 | if 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. | |
4583 | set dummy objdump; ac_word=$2 | |
4584 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4585 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4586 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
4587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4588 | else | |
4589 | if test -n "$ac_ct_OBJDUMP"; then | |
4590 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4591 | else | |
4592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4593 | for as_dir in $PATH | |
4594 | do | |
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 | |
4603 | done | |
4604 | done | |
4605 | ||
4606 | test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" | |
4607 | fi | |
4608 | fi | |
4609 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
4610 | if test -n "$ac_ct_OBJDUMP"; then | |
4611 | echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
4612 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 | |
4613 | else | |
4614 | echo "$as_me:$LINENO: result: no" >&5 | |
4615 | echo "${ECHO_T}no" >&6 | |
4616 | fi | |
4617 | ||
4618 | OBJDUMP=$ac_ct_OBJDUMP | |
4619 | else | |
4620 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
4621 | fi | |
4622 | ||
4623 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
4624 | ||
4625 | ||
4626 | ||
4627 | ||
4628 | ||
4629 | ||
4630 | ||
4631 | ||
542f9784 | 4632 | |
82eaf560 | 4633 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
4634 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 | |
90973b19 | 4635 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4637 | else | |
4638 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4639 | lt_cv_file_magic_test_file= | |
4640 | lt_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 | ||
4652 | case $host_os in | |
21e07d2f | 4653 | aix[4-9]*) |
90973b19 | 4654 | lt_cv_deplibs_check_method=pass_all |
4655 | ;; | |
4656 | ||
4657 | beos*) | |
4658 | lt_cv_deplibs_check_method=pass_all | |
4659 | ;; | |
4660 | ||
542f9784 | 4661 | bsdi[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 | 4667 | cygwin*) |
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 | ||
4673 | mingw* | 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 | 4686 | cegcc) |
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 | 4692 | darwin* | rhapsody*) |
90973b19 | 4693 | lt_cv_deplibs_check_method=pass_all |
4694 | ;; | |
4695 | ||
542f9784 | 4696 | freebsd* | 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 | ||
4712 | gnu*) | |
4713 | lt_cv_deplibs_check_method=pass_all | |
4714 | ;; | |
4715 | ||
542f9784 | 4716 | hpux10.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 | ||
4734 | interix[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 | ||
4739 | irix5* | 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 | 4750 | linux* | k*bsd*-gnu) |
7f93fe7a | 4751 | lt_cv_deplibs_check_method=pass_all |
90973b19 | 4752 | ;; |
4753 | ||
542f9784 | 4754 | netbsd*) |
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 | 4762 | newos6*) |
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 | ||
4772 | openbsd*) | |
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 | 4780 | osf3* | osf4* | osf5*) |
90973b19 | 4781 | lt_cv_deplibs_check_method=pass_all |
4782 | ;; | |
4783 | ||
542f9784 | 4784 | rdos*) |
90973b19 | 4785 | lt_cv_deplibs_check_method=pass_all |
4786 | ;; | |
4787 | ||
4788 | solaris*) | |
4789 | lt_cv_deplibs_check_method=pass_all | |
90973b19 | 4790 | ;; |
4791 | ||
542f9784 | 4792 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
90973b19 | 4793 | lt_cv_deplibs_check_method=pass_all |
4794 | ;; | |
4795 | ||
542f9784 | 4796 | sysv4 | 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 | |
4823 | tpf*) | |
4824 | lt_cv_deplibs_check_method=pass_all | |
4825 | ;; | |
90973b19 | 4826 | esac |
4827 | ||
4828 | fi | |
82eaf560 | 4829 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4830 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
90973b19 | 4831 | file_magic_cmd=$lt_cv_file_magic_cmd |
4832 | deplibs_check_method=$lt_cv_deplibs_check_method | |
542f9784 | 4833 | test -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 | 4846 | if 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. |
4848 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
82eaf560 | 4849 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
542f9784 | 4851 | if test "${ac_cv_prog_AR+set}" = set; then |
90973b19 | 4852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4ee9c684 | 4853 | else |
542f9784 | 4854 | if test -n "$AR"; then |
4855 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
90973b19 | 4856 | else |
4857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4858 | for as_dir in $PATH | |
4859 | do | |
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 | |
4868 | done | |
4869 | done | |
4ee9c684 | 4870 | |
90973b19 | 4871 | fi |
4872 | fi | |
542f9784 | 4873 | AR=$ac_cv_prog_AR |
4874 | if test -n "$AR"; then | |
82eaf560 | 4875 | echo "$as_me:$LINENO: result: $AR" >&5 |
4876 | echo "${ECHO_T}$AR" >&6 | |
90973b19 | 4877 | else |
82eaf560 | 4878 | echo "$as_me:$LINENO: result: no" >&5 |
4879 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 4880 | fi |
4881 | ||
90973b19 | 4882 | fi |
542f9784 | 4883 | if 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. | |
4886 | set dummy ar; ac_word=$2 | |
82eaf560 | 4887 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4888 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
542f9784 | 4889 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
90973b19 | 4890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4891 | else | |
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 | 4894 | else |
4895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4896 | for as_dir in $PATH | |
4897 | do | |
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 | |
4906 | done | |
4907 | done | |
4ee9c684 | 4908 | |
82eaf560 | 4909 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
90973b19 | 4910 | fi |
4911 | fi | |
542f9784 | 4912 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
4913 | if test -n "$ac_ct_AR"; then | |
82eaf560 | 4914 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
4915 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
4ee9c684 | 4916 | else |
82eaf560 | 4917 | echo "$as_me:$LINENO: result: no" >&5 |
4918 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 4919 | fi |
4ee9c684 | 4920 | |
82eaf560 | 4921 | AR=$ac_ct_AR |
90973b19 | 4922 | else |
542f9784 | 4923 | AR="$ac_cv_prog_AR" |
4ee9c684 | 4924 | fi |
4925 | ||
542f9784 | 4926 | test -z "$AR" && AR=ar |
4927 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
4928 | ||
4929 | ||
4930 | ||
4931 | ||
4932 | ||
4933 | ||
4934 | ||
4935 | ||
4936 | ||
4937 | ||
4938 | ||
90973b19 | 4939 | if 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. | |
4941 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
82eaf560 | 4942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 4944 | if test "${ac_cv_prog_STRIP+set}" = set; then |
4945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4ee9c684 | 4946 | else |
90973b19 | 4947 | if test -n "$STRIP"; then |
4948 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4949 | else | |
4950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4951 | for as_dir in $PATH | |
4952 | do | |
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 | |
4961 | done | |
4962 | done | |
4ee9c684 | 4963 | |
90973b19 | 4964 | fi |
4965 | fi | |
4966 | STRIP=$ac_cv_prog_STRIP | |
4967 | if test -n "$STRIP"; then | |
82eaf560 | 4968 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
4969 | echo "${ECHO_T}$STRIP" >&6 | |
4ee9c684 | 4970 | else |
82eaf560 | 4971 | echo "$as_me:$LINENO: result: no" >&5 |
4972 | echo "${ECHO_T}no" >&6 | |
90973b19 | 4973 | fi |
4ee9c684 | 4974 | |
4ee9c684 | 4975 | fi |
90973b19 | 4976 | if 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. | |
4979 | set dummy strip; ac_word=$2 | |
82eaf560 | 4980 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4981 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
90973b19 | 4982 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
4983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4984 | else | |
4985 | if test -n "$ac_ct_STRIP"; then | |
4986 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4987 | else | |
4988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4989 | for as_dir in $PATH | |
4990 | do | |
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 | |
4999 | done | |
5000 | done | |
5001 | ||
82eaf560 | 5002 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
4ee9c684 | 5003 | fi |
5004 | fi | |
90973b19 | 5005 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5006 | if test -n "$ac_ct_STRIP"; then | |
82eaf560 | 5007 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
5008 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
90973b19 | 5009 | else |
82eaf560 | 5010 | echo "$as_me:$LINENO: result: no" >&5 |
5011 | echo "${ECHO_T}no" >&6 | |
4ee9c684 | 5012 | fi |
4ee9c684 | 5013 | |
82eaf560 | 5014 | STRIP=$ac_ct_STRIP |
90973b19 | 5015 | else |
5016 | STRIP="$ac_cv_prog_STRIP" | |
4ee9c684 | 5017 | fi |
5018 | ||
542f9784 | 5019 | test -z "$STRIP" && STRIP=: |
4ee9c684 | 5020 | |
5021 | ||
5022 | ||
5023 | ||
5024 | ||
5025 | ||
542f9784 | 5026 | if 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. | |
5028 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
82eaf560 | 5029 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
542f9784 | 5031 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
5032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4ee9c684 | 5033 | else |
542f9784 | 5034 | if test -n "$RANLIB"; then |
5035 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5036 | else | |
5037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5038 | for as_dir in $PATH | |
5039 | do | |
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 | |
5048 | done | |
5049 | done | |
5050 | ||
5051 | fi | |
5052 | fi | |
5053 | RANLIB=$ac_cv_prog_RANLIB | |
5054 | if test -n "$RANLIB"; then | |
82eaf560 | 5055 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5056 | echo "${ECHO_T}$RANLIB" >&6 | |
542f9784 | 5057 | else |
82eaf560 | 5058 | echo "$as_me:$LINENO: result: no" >&5 |
5059 | echo "${ECHO_T}no" >&6 | |
542f9784 | 5060 | fi |
5061 | ||
5062 | fi | |
5063 | if 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. | |
5066 | set dummy ranlib; ac_word=$2 | |
82eaf560 | 5067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
542f9784 | 5069 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
5070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5071 | else | |
5072 | if test -n "$ac_ct_RANLIB"; then | |
5073 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5074 | else | |
5075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5076 | for as_dir in $PATH | |
5077 | do | |
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 | |
5086 | done | |
5087 | done | |
5088 | ||
82eaf560 | 5089 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
542f9784 | 5090 | fi |
5091 | fi | |
5092 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5093 | if test -n "$ac_ct_RANLIB"; then | |
82eaf560 | 5094 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5095 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
542f9784 | 5096 | else |
82eaf560 | 5097 | echo "$as_me:$LINENO: result: no" >&5 |
5098 | echo "${ECHO_T}no" >&6 | |
542f9784 | 5099 | fi |
5100 | ||
82eaf560 | 5101 | RANLIB=$ac_ct_RANLIB |
542f9784 | 5102 | else |
5103 | RANLIB="$ac_cv_prog_RANLIB" | |
5104 | fi | |
5105 | ||
5106 | test -z "$RANLIB" && RANLIB=: | |
5107 | ||
5108 | ||
5109 | ||
5110 | ||
5111 | ||
5112 | ||
5113 | # Determine commands to create old-style static archives. | |
00aafda4 | 5114 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
542f9784 | 5115 | old_postinstall_cmds='chmod 644 $oldlib' |
5116 | old_postuninstall_cmds= | |
5117 | ||
5118 | if 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" | |
5128 | fi | |
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. | |
5164 | LTCC=${LTCC-"$CC"} | |
5165 | ||
5166 | # If no C compiler flags were specified, use CFLAGS. | |
5167 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5168 | ||
5169 | # Allow CC to be a program name with arguments. | |
5170 | compiler=$CC | |
5171 | ||
5172 | ||
5173 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
82eaf560 | 5174 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5175 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
542f9784 | 5176 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
5177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5178 | else | |
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. | |
5184 | symcode='[BCDEGRST]' | |
5185 | ||
5186 | # Regexp to match symbols that can be accessed directly from C. | |
5187 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5188 | ||
5189 | # Define system-specific variables. | |
5190 | case $host_os in | |
5191 | aix*) | |
5192 | symcode='[BCDT]' | |
5193 | ;; | |
00aafda4 | 5194 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 5195 | symcode='[ABCDGISTW]' |
5196 | ;; | |
5197 | hpux*) | |
5198 | if test "$host_cpu" = ia64; then | |
5199 | symcode='[ABCDEGRST]' | |
5200 | fi | |
5201 | ;; | |
5202 | irix* | nonstopux*) | |
5203 | symcode='[BCDEGRST]' | |
5204 | ;; | |
5205 | osf*) | |
5206 | symcode='[BCDEGQRST]' | |
5207 | ;; | |
5208 | solaris*) | |
5209 | symcode='[BDRT]' | |
5210 | ;; | |
5211 | sco3.2v5*) | |
5212 | symcode='[DT]' | |
5213 | ;; | |
5214 | sysv4.2uw2*) | |
5215 | symcode='[DT]' | |
5216 | ;; | |
5217 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5218 | symcode='[ABDT]' | |
5219 | ;; | |
5220 | sysv4) | |
5221 | symcode='[DFNSTU]' | |
5222 | ;; | |
5223 | esac | |
5224 | ||
5225 | # If we're using GNU nm, then use its standard symbol codes. | |
5226 | case `$NM -V 2>&1` in | |
5227 | *GNU* | *'with BFD'*) | |
5228 | symcode='[ABCDGIRSTW]' ;; | |
5229 | esac | |
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. | |
5234 | lt_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 | |
5237 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
00aafda4 | 5238 | lt_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 | |
5241 | opt_cr= | |
5242 | case $build_os in | |
5243 | mingw*) | |
5244 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5245 | ;; | |
5246 | esac | |
5247 | ||
5248 | # Try without a prefix underscore, then with it. | |
5249 | for 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 | |
5281 | extern "C" { | |
5282 | #endif | |
5283 | char nm_test_var; | |
5284 | void nm_test_func(void); | |
5285 | void nm_test_func(void){} | |
5286 | #ifdef __cplusplus | |
5287 | } | |
5288 | #endif | |
5289 | int 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 | |
5316 | extern "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. */ | |
5326 | const struct { | |
5327 | const char *name; | |
5328 | void *address; | |
5329 | } | |
5330 | lt__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 | |
5341 | static 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 | |
5386 | done | |
5387 | ||
5388 | fi | |
5389 | ||
5390 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5391 | lt_cv_sys_global_symbol_to_cdecl= | |
5392 | fi | |
5393 | if 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 |
5395 | echo "${ECHO_T}failed" >&6 | |
542f9784 | 5396 | else |
82eaf560 | 5397 | echo "$as_me:$LINENO: result: ok" >&5 |
5398 | echo "${ECHO_T}ok" >&6 | |
542f9784 | 5399 | fi |
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 | 5423 | if test "${enable_libtool_lock+set}" = set; then |
82eaf560 | 5424 | enableval="$enable_libtool_lock" |
542f9784 | 5425 | |
82eaf560 | 5426 | fi; |
542f9784 | 5427 | test "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. | |
5431 | case $host in | |
542f9784 | 5432 | ia64-*-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 | 5488 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
5489 | s390*-*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 |
5546 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
90973b19 | 5547 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
4ee9c684 | 5548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5549 | else | |
542f9784 | 5550 | ac_ext=c |
90973b19 | 5551 | ac_cpp='$CPP $CPPFLAGS' |
5552 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5553 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5554 | ac_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 | |
5558 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
5559 | { (exit 1); exit 1; }; } | |
5560 | fi | |
5561 | cat >conftest.$ac_ext <<_ACEOF | |
4ee9c684 | 5562 | /* confdefs.h. */ |
5563 | _ACEOF | |
5564 | cat confdefs.h >>conftest.$ac_ext | |
5565 | cat >>conftest.$ac_ext <<_ACEOF | |
5566 | /* end confdefs.h. */ | |
4ee9c684 | 5567 | |
5568 | int | |
5569 | main () | |
5570 | { | |
90973b19 | 5571 | |
4ee9c684 | 5572 | ; |
5573 | return 0; | |
5574 | } | |
5575 | _ACEOF | |
5576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 5577 | if { (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 | 5599 | else |
5600 | echo "$as_me: failed program was:" >&5 | |
5601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5602 | ||
82eaf560 | 5603 | lt_cv_cc_needs_belf=no |
4ee9c684 | 5604 | fi |
82eaf560 | 5605 | rm -f conftest.err conftest.$ac_objext \ |
4ee9c684 | 5606 | conftest$ac_exeext conftest.$ac_ext |
90973b19 | 5607 | ac_ext=c |
5608 | ac_cpp='$CPP $CPPFLAGS' | |
5609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5612 | ||
4ee9c684 | 5613 | fi |
82eaf560 | 5614 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
5615 | echo "${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 | 5621 | sparc*-*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 | 5644 | esac |
5645 | ||
542f9784 | 5646 | need_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. | |
5653 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5654 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5656 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
5657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5658 | else | |
5659 | if test -n "$DSYMUTIL"; then | |
5660 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5661 | else | |
5662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5663 | for as_dir in $PATH | |
5664 | do | |
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 | |
5673 | done | |
5674 | done | |
5675 | ||
5676 | fi | |
5677 | fi | |
5678 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5679 | if test -n "$DSYMUTIL"; then | |
5680 | echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
5681 | echo "${ECHO_T}$DSYMUTIL" >&6 | |
5682 | else | |
5683 | echo "$as_me:$LINENO: result: no" >&5 | |
5684 | echo "${ECHO_T}no" >&6 | |
5685 | fi | |
5686 | ||
5687 | fi | |
5688 | if 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. | |
5691 | set dummy dsymutil; ac_word=$2 | |
5692 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5694 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
5695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5696 | else | |
5697 | if test -n "$ac_ct_DSYMUTIL"; then | |
5698 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5699 | else | |
5700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5701 | for as_dir in $PATH | |
5702 | do | |
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 | |
5711 | done | |
5712 | done | |
5713 | ||
5714 | test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":" | |
5715 | fi | |
5716 | fi | |
5717 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
5718 | if test -n "$ac_ct_DSYMUTIL"; then | |
5719 | echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
5720 | echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6 | |
5721 | else | |
5722 | echo "$as_me:$LINENO: result: no" >&5 | |
5723 | echo "${ECHO_T}no" >&6 | |
5724 | fi | |
5725 | ||
5726 | DSYMUTIL=$ac_ct_DSYMUTIL | |
5727 | else | |
5728 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
5729 | fi | |
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. | |
5733 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5734 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5736 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
5737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5738 | else | |
5739 | if test -n "$NMEDIT"; then | |
5740 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
5741 | else | |
5742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5743 | for as_dir in $PATH | |
5744 | do | |
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 | |
5753 | done | |
5754 | done | |
5755 | ||
5756 | fi | |
5757 | fi | |
5758 | NMEDIT=$ac_cv_prog_NMEDIT | |
5759 | if test -n "$NMEDIT"; then | |
5760 | echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
5761 | echo "${ECHO_T}$NMEDIT" >&6 | |
5762 | else | |
5763 | echo "$as_me:$LINENO: result: no" >&5 | |
5764 | echo "${ECHO_T}no" >&6 | |
5765 | fi | |
5766 | ||
5767 | fi | |
5768 | if 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. | |
5771 | set dummy nmedit; ac_word=$2 | |
5772 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5774 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
5775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5776 | else | |
5777 | if test -n "$ac_ct_NMEDIT"; then | |
5778 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
5779 | else | |
5780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5781 | for as_dir in $PATH | |
5782 | do | |
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 | |
5791 | done | |
5792 | done | |
5793 | ||
5794 | test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":" | |
5795 | fi | |
5796 | fi | |
5797 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
5798 | if test -n "$ac_ct_NMEDIT"; then | |
5799 | echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
5800 | echo "${ECHO_T}$ac_ct_NMEDIT" >&6 | |
5801 | else | |
5802 | echo "$as_me:$LINENO: result: no" >&5 | |
5803 | echo "${ECHO_T}no" >&6 | |
5804 | fi | |
5805 | ||
5806 | NMEDIT=$ac_ct_NMEDIT | |
5807 | else | |
5808 | NMEDIT="$ac_cv_prog_NMEDIT" | |
5809 | fi | |
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. | |
5813 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5814 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5815 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5816 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
5817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5818 | else | |
5819 | if test -n "$LIPO"; then | |
5820 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
5821 | else | |
5822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5823 | for as_dir in $PATH | |
5824 | do | |
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 | |
5833 | done | |
5834 | done | |
5835 | ||
5836 | fi | |
5837 | fi | |
5838 | LIPO=$ac_cv_prog_LIPO | |
5839 | if test -n "$LIPO"; then | |
5840 | echo "$as_me:$LINENO: result: $LIPO" >&5 | |
5841 | echo "${ECHO_T}$LIPO" >&6 | |
5842 | else | |
5843 | echo "$as_me:$LINENO: result: no" >&5 | |
5844 | echo "${ECHO_T}no" >&6 | |
5845 | fi | |
5846 | ||
5847 | fi | |
5848 | if 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. | |
5851 | set dummy lipo; ac_word=$2 | |
5852 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5854 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
5855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5856 | else | |
5857 | if test -n "$ac_ct_LIPO"; then | |
5858 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
5859 | else | |
5860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5861 | for as_dir in $PATH | |
5862 | do | |
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 | |
5871 | done | |
5872 | done | |
5873 | ||
5874 | test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":" | |
5875 | fi | |
5876 | fi | |
5877 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
5878 | if test -n "$ac_ct_LIPO"; then | |
5879 | echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
5880 | echo "${ECHO_T}$ac_ct_LIPO" >&6 | |
5881 | else | |
5882 | echo "$as_me:$LINENO: result: no" >&5 | |
5883 | echo "${ECHO_T}no" >&6 | |
5884 | fi | |
5885 | ||
5886 | LIPO=$ac_ct_LIPO | |
5887 | else | |
5888 | LIPO="$ac_cv_prog_LIPO" | |
5889 | fi | |
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. | |
5893 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5894 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5896 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
5897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5898 | else | |
5899 | if test -n "$OTOOL"; then | |
5900 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
5901 | else | |
5902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5903 | for as_dir in $PATH | |
5904 | do | |
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 | |
5913 | done | |
5914 | done | |
5915 | ||
5916 | fi | |
5917 | fi | |
5918 | OTOOL=$ac_cv_prog_OTOOL | |
5919 | if test -n "$OTOOL"; then | |
5920 | echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
5921 | echo "${ECHO_T}$OTOOL" >&6 | |
5922 | else | |
5923 | echo "$as_me:$LINENO: result: no" >&5 | |
5924 | echo "${ECHO_T}no" >&6 | |
5925 | fi | |
5926 | ||
5927 | fi | |
5928 | if 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. | |
5931 | set dummy otool; ac_word=$2 | |
5932 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5933 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5934 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
5935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5936 | else | |
5937 | if test -n "$ac_ct_OTOOL"; then | |
5938 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
5939 | else | |
5940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5941 | for as_dir in $PATH | |
5942 | do | |
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 | |
5951 | done | |
5952 | done | |
5953 | ||
5954 | test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":" | |
5955 | fi | |
5956 | fi | |
5957 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
5958 | if test -n "$ac_ct_OTOOL"; then | |
5959 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
5960 | echo "${ECHO_T}$ac_ct_OTOOL" >&6 | |
5961 | else | |
5962 | echo "$as_me:$LINENO: result: no" >&5 | |
5963 | echo "${ECHO_T}no" >&6 | |
5964 | fi | |
5965 | ||
5966 | OTOOL=$ac_ct_OTOOL | |
5967 | else | |
5968 | OTOOL="$ac_cv_prog_OTOOL" | |
5969 | fi | |
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. | |
5973 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5974 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5976 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
5977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5978 | else | |
5979 | if test -n "$OTOOL64"; then | |
5980 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
5981 | else | |
5982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5983 | for as_dir in $PATH | |
5984 | do | |
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 | |
5993 | done | |
5994 | done | |
5995 | ||
5996 | fi | |
5997 | fi | |
5998 | OTOOL64=$ac_cv_prog_OTOOL64 | |
5999 | if test -n "$OTOOL64"; then | |
6000 | echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
6001 | echo "${ECHO_T}$OTOOL64" >&6 | |
6002 | else | |
6003 | echo "$as_me:$LINENO: result: no" >&5 | |
6004 | echo "${ECHO_T}no" >&6 | |
6005 | fi | |
6006 | ||
6007 | fi | |
6008 | if 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. | |
6011 | set dummy otool64; ac_word=$2 | |
6012 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6013 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6014 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
6015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6016 | else | |
6017 | if test -n "$ac_ct_OTOOL64"; then | |
6018 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6019 | else | |
6020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6021 | for as_dir in $PATH | |
6022 | do | |
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 | |
6031 | done | |
6032 | done | |
6033 | ||
6034 | test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":" | |
6035 | fi | |
6036 | fi | |
6037 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6038 | if test -n "$ac_ct_OTOOL64"; then | |
6039 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
6040 | echo "${ECHO_T}$ac_ct_OTOOL64" >&6 | |
6041 | else | |
6042 | echo "$as_me:$LINENO: result: no" >&5 | |
6043 | echo "${ECHO_T}no" >&6 | |
6044 | fi | |
6045 | ||
6046 | OTOOL64=$ac_ct_OTOOL64 | |
6047 | else | |
6048 | OTOOL64="$ac_cv_prog_OTOOL64" | |
6049 | fi | |
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 | |
6078 | echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6 | |
6079 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
6080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6081 | else | |
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 | |
6103 | fi | |
6104 | echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 | |
6105 | echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6 | |
6106 | echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
6107 | echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6 | |
6108 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
6109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6110 | else | |
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 | |
6117 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
6118 | { (exit 1); exit 1; }; } | |
6119 | fi | |
6120 | cat >conftest.$ac_ext <<_ACEOF | |
6121 | /* confdefs.h. */ | |
6122 | _ACEOF | |
6123 | cat confdefs.h >>conftest.$ac_ext | |
6124 | cat >>conftest.$ac_ext <<_ACEOF | |
6125 | /* end confdefs.h. */ | |
6126 | ||
6127 | int | |
6128 | main () | |
6129 | { | |
6130 | ||
6131 | ; | |
6132 | return 0; | |
6133 | } | |
6134 | _ACEOF | |
6135 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6136 | if { (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 | |
6158 | else | |
6159 | echo "$as_me: failed program was:" >&5 | |
6160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6161 | ||
6162 | lt_cv_ld_exported_symbols_list=no | |
6163 | fi | |
6164 | rm -f conftest.err conftest.$ac_objext \ | |
6165 | conftest$ac_exeext conftest.$ac_ext | |
6166 | LDFLAGS="$save_LDFLAGS" | |
6167 | ||
6168 | fi | |
6169 | echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6170 | echo "${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 | 6206 | ac_ext=c |
6207 | ac_cpp='$CPP $CPPFLAGS' | |
6208 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6209 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6210 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
82eaf560 | 6211 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
6212 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
542f9784 | 6213 | # On Suns, sometimes $CPP names a directory. |
6214 | if test -n "$CPP" && test -d "$CPP"; then | |
6215 | CPP= | |
6216 | fi | |
6217 | if test -z "$CPP"; then | |
6218 | if test "${ac_cv_prog_CPP+set}" = set; then | |
6219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6220 | else | |
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 | |
6225 | for ac_c_preproc_warn_flag in '' yes | |
6226 | do | |
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 | 6236 | cat confdefs.h >>conftest.$ac_ext |
6237 | cat >>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 | 6246 | if { (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 | |
6260 | else | |
6261 | ac_cpp_err=yes | |
6262 | fi | |
6263 | if test -z "$ac_cpp_err"; then | |
542f9784 | 6264 | : |
6265 | else | |
6266 | echo "$as_me: failed program was:" >&5 | |
6267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 6268 | |
542f9784 | 6269 | # Broken: fails on valid input. |
6270 | continue | |
6271 | fi | |
6272 | rm -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 | |
6279 | cat confdefs.h >>conftest.$ac_ext | |
6280 | cat >>conftest.$ac_ext <<_ACEOF | |
6281 | /* end confdefs.h. */ | |
6282 | #include <ac_nonexistent.h> | |
6283 | _ACEOF | |
82eaf560 | 6284 | if { (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 | |
6298 | else | |
6299 | ac_cpp_err=yes | |
6300 | fi | |
6301 | if test -z "$ac_cpp_err"; then | |
542f9784 | 6302 | # Broken: success on invalid input. |
6303 | continue | |
6304 | else | |
6305 | echo "$as_me: failed program was:" >&5 | |
6306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 6307 | |
542f9784 | 6308 | # Passes both tests. |
6309 | ac_preproc_ok=: | |
6310 | break | |
6311 | fi | |
6312 | rm -f conftest.err conftest.$ac_ext | |
4ee9c684 | 6313 | |
542f9784 | 6314 | done |
6315 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6316 | rm -f conftest.err conftest.$ac_ext | |
6317 | if $ac_preproc_ok; then | |
6318 | break | |
6319 | fi | |
4ee9c684 | 6320 | |
542f9784 | 6321 | done |
6322 | ac_cv_prog_CPP=$CPP | |
90973b19 | 6323 | |
542f9784 | 6324 | fi |
6325 | CPP=$ac_cv_prog_CPP | |
90973b19 | 6326 | else |
542f9784 | 6327 | ac_cv_prog_CPP=$CPP |
6328 | fi | |
82eaf560 | 6329 | echo "$as_me:$LINENO: result: $CPP" >&5 |
6330 | echo "${ECHO_T}$CPP" >&6 | |
542f9784 | 6331 | ac_preproc_ok=false |
6332 | for ac_c_preproc_warn_flag in '' yes | |
90973b19 | 6333 | do |
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 | |
6343 | cat confdefs.h >>conftest.$ac_ext | |
6344 | cat >>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 | 6353 | if { (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 | |
6367 | else | |
6368 | ac_cpp_err=yes | |
6369 | fi | |
6370 | if test -z "$ac_cpp_err"; then | |
542f9784 | 6371 | : |
90973b19 | 6372 | else |
542f9784 | 6373 | echo "$as_me: failed program was:" >&5 |
6374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
90973b19 | 6375 | |
542f9784 | 6376 | # Broken: fails on valid input. |
6377 | continue | |
90973b19 | 6378 | fi |
542f9784 | 6379 | rm -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 | 6386 | cat confdefs.h >>conftest.$ac_ext |
6387 | cat >>conftest.$ac_ext <<_ACEOF | |
6388 | /* end confdefs.h. */ | |
6389 | #include <ac_nonexistent.h> | |
6390 | _ACEOF | |
82eaf560 | 6391 | if { (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 | |
6405 | else | |
6406 | ac_cpp_err=yes | |
6407 | fi | |
6408 | if test -z "$ac_cpp_err"; then | |
542f9784 | 6409 | # Broken: success on invalid input. |
6410 | continue | |
4ee9c684 | 6411 | else |
6412 | echo "$as_me: failed program was:" >&5 | |
6413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6414 | ||
542f9784 | 6415 | # Passes both tests. |
6416 | ac_preproc_ok=: | |
6417 | break | |
4ee9c684 | 6418 | fi |
542f9784 | 6419 | rm -f conftest.err conftest.$ac_ext |
4ee9c684 | 6420 | |
542f9784 | 6421 | done |
6422 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6423 | rm -f conftest.err conftest.$ac_ext | |
6424 | if $ac_preproc_ok; then | |
6425 | : | |
6426 | else | |
5b2c7553 | 6427 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
6428 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6429 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
542f9784 | 6430 | See \`config.log' for more details." >&5 |
6431 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
6432 | See \`config.log' for more details." >&2;} | |
5b2c7553 | 6433 | { (exit 1); exit 1; }; }; } |
4ee9c684 | 6434 | fi |
542f9784 | 6435 | |
6436 | ac_ext=c | |
6437 | ac_cpp='$CPP $CPPFLAGS' | |
6438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6441 | ||
6442 | ||
82eaf560 | 6443 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6444 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
542f9784 | 6445 | if test "${ac_cv_header_stdc+set}" = set; then |
4ee9c684 | 6446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6447 | else | |
542f9784 | 6448 | cat >conftest.$ac_ext <<_ACEOF |
6449 | /* confdefs.h. */ | |
6450 | _ACEOF | |
6451 | cat confdefs.h >>conftest.$ac_ext | |
6452 | cat >>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 | 6459 | int |
6460 | main () | |
6461 | { | |
6462 | ||
6463 | ; | |
6464 | return 0; | |
6465 | } | |
4ee9c684 | 6466 | _ACEOF |
6467 | rm -f conftest.$ac_objext | |
82eaf560 | 6468 | if { (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 | 6490 | else |
6491 | echo "$as_me: failed program was:" >&5 | |
6492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6493 | ||
82eaf560 | 6494 | ac_cv_header_stdc=no |
4ee9c684 | 6495 | fi |
82eaf560 | 6496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 6497 | |
542f9784 | 6498 | if 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 | |
6503 | cat confdefs.h >>conftest.$ac_ext | |
6504 | cat >>conftest.$ac_ext <<_ACEOF | |
6505 | /* end confdefs.h. */ | |
6506 | #include <string.h> | |
6507 | ||
6508 | _ACEOF | |
6509 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6510 | $EGREP "memchr" >/dev/null 2>&1; then | |
6511 | : | |
90973b19 | 6512 | else |
542f9784 | 6513 | ac_cv_header_stdc=no |
4ee9c684 | 6514 | fi |
542f9784 | 6515 | rm -f conftest* |
4ee9c684 | 6516 | |
542f9784 | 6517 | fi |
9cf1c244 | 6518 | |
542f9784 | 6519 | if 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 | |
6524 | cat confdefs.h >>conftest.$ac_ext | |
6525 | cat >>conftest.$ac_ext <<_ACEOF | |
6526 | /* end confdefs.h. */ | |
6527 | #include <stdlib.h> | |
2e4ef4e4 | 6528 | |
542f9784 | 6529 | _ACEOF |
6530 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6531 | $EGREP "free" >/dev/null 2>&1; then | |
6532 | : | |
6533 | else | |
6534 | ac_cv_header_stdc=no | |
6535 | fi | |
6536 | rm -f conftest* | |
2e4ef4e4 | 6537 | |
542f9784 | 6538 | fi |
2e4ef4e4 | 6539 | |
542f9784 | 6540 | if 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 | : | |
6544 | else | |
6545 | cat >conftest.$ac_ext <<_ACEOF | |
6546 | /* confdefs.h. */ | |
6547 | _ACEOF | |
6548 | cat confdefs.h >>conftest.$ac_ext | |
6549 | cat >>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))) |
6564 | int | |
6565 | main () | |
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 | 6575 | rm -f conftest$ac_exeext |
82eaf560 | 6576 | if { (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 | 6587 | else |
542f9784 | 6588 | echo "$as_me: program exited with status $ac_status" >&5 |
6589 | echo "$as_me: failed program was:" >&5 | |
2e4ef4e4 | 6590 | sed 's/^/| /' conftest.$ac_ext >&5 |
6591 | ||
542f9784 | 6592 | ( exit $ac_status ) |
6593 | ac_cv_header_stdc=no | |
6594 | fi | |
82eaf560 | 6595 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
542f9784 | 6596 | fi |
6597 | fi | |
6598 | fi | |
82eaf560 | 6599 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6600 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
542f9784 | 6601 | if test $ac_cv_header_stdc = yes; then |
6602 | ||
6603 | cat >>confdefs.h <<\_ACEOF | |
6604 | #define STDC_HEADERS 1 | |
6605 | _ACEOF | |
2e4ef4e4 | 6606 | |
6607 | fi | |
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 | ||
6619 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6620 | inttypes.h stdint.h unistd.h | |
6621 | do | |
6622 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
82eaf560 | 6623 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6624 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6625 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
90e67cff | 6626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6627 | else | |
542f9784 | 6628 | cat >conftest.$ac_ext <<_ACEOF |
90e67cff | 6629 | /* confdefs.h. */ |
6630 | _ACEOF | |
6631 | cat confdefs.h >>conftest.$ac_ext | |
6632 | cat >>conftest.$ac_ext <<_ACEOF | |
6633 | /* end confdefs.h. */ | |
542f9784 | 6634 | $ac_includes_default |
90e67cff | 6635 | |
542f9784 | 6636 | #include <$ac_header> |
90e67cff | 6637 | _ACEOF |
542f9784 | 6638 | rm -f conftest.$ac_objext |
82eaf560 | 6639 | if { (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 | 6661 | else |
6662 | echo "$as_me: failed program was:" >&5 | |
6663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6664 | ||
82eaf560 | 6665 | eval "$as_ac_Header=no" |
90e67cff | 6666 | fi |
82eaf560 | 6667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 6668 | fi |
82eaf560 | 6669 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6670 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
542f9784 | 6671 | if 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 | ||
6676 | fi | |
6677 | ||
6678 | done | |
6679 | ||
6680 | ||
6681 | ||
6682 | for ac_header in dlfcn.h | |
6683 | do | |
6684 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
82eaf560 | 6685 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6686 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6687 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
542f9784 | 6688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6689 | else | |
6690 | cat >conftest.$ac_ext <<_ACEOF | |
6691 | /* confdefs.h. */ | |
6692 | _ACEOF | |
6693 | cat confdefs.h >>conftest.$ac_ext | |
6694 | cat >>conftest.$ac_ext <<_ACEOF | |
6695 | /* end confdefs.h. */ | |
6696 | $ac_includes_default | |
6697 | ||
6698 | #include <$ac_header> | |
6699 | _ACEOF | |
6700 | rm -f conftest.$ac_objext | |
82eaf560 | 6701 | if { (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 | 6723 | else |
6724 | echo "$as_me: failed program was:" >&5 | |
6725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6726 | ||
82eaf560 | 6727 | eval "$as_ac_Header=no" |
90e67cff | 6728 | fi |
82eaf560 | 6729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
90e67cff | 6730 | fi |
82eaf560 | 6731 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6732 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
542f9784 | 6733 | if 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 | 6738 | fi |
6739 | ||
6740 | done | |
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. | |
6753 | if 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 | |
6772 | else | |
6773 | enable_shared=yes | |
6774 | fi; | |
6775 | ||
6776 | ||
6777 | ||
6778 | ||
6779 | ||
6780 | ||
6781 | ||
6782 | ||
6783 | # Check whether --enable-static or --disable-static was given. | |
6784 | if 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 | |
6803 | else | |
6804 | enable_static=yes | |
6805 | fi; | |
6806 | ||
6807 | ||
6808 | ||
6809 | ||
6810 | ||
6811 | ||
6812 | ||
6813 | ||
6814 | ||
6815 | # Check whether --with-pic or --without-pic was given. | |
6816 | if test "${with_pic+set}" = set; then | |
6817 | withval="$with_pic" | |
6818 | pic_mode="$withval" | |
6819 | else | |
6820 | pic_mode=default | |
6821 | fi; | |
6822 | ||
6823 | test -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. | |
6832 | if 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 | |
6851 | else | |
6852 | enable_fast_install=yes | |
6853 | fi; | |
6854 | ||
6855 | ||
6856 | ||
6857 | ||
6858 | ||
6859 | ||
6860 | ||
6861 | ||
6862 | ||
6863 | ||
542f9784 | 6864 | # This can be used to rebuild libtool when needed |
6865 | LIBTOOL_DEPS="$ltmain" | |
6866 | ||
6867 | # Always use our own libtool. | |
6868 | LIBTOOL='$(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 | ||
6894 | test -z "$LN_S" && LN_S="ln -s" | |
6895 | ||
6896 | ||
6897 | ||
6898 | ||
6899 | ||
90e67cff | 6900 | |
542f9784 | 6901 | |
6902 | ||
6903 | ||
6904 | ||
6905 | ||
6906 | ||
6907 | ||
6908 | ||
6909 | if test -n "${ZSH_VERSION+set}" ; then | |
6910 | setopt NO_GLOB_SUBST | |
90e67cff | 6911 | fi |
90e67cff | 6912 | |
82eaf560 | 6913 | echo "$as_me:$LINENO: checking for objdir" >&5 |
6914 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
542f9784 | 6915 | if test "${lt_cv_objdir+set}" = set; then |
6916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90e67cff | 6917 | else |
542f9784 | 6918 | rm -f .libs 2>/dev/null |
6919 | mkdir .libs 2>/dev/null | |
6920 | if test -d .libs; then | |
6921 | lt_cv_objdir=.libs | |
6922 | else | |
6923 | # MS-DOS does not allow filenames that begin with a dot. | |
6924 | lt_cv_objdir=_libs | |
90e67cff | 6925 | fi |
542f9784 | 6926 | rmdir .libs 2>/dev/null |
90e67cff | 6927 | fi |
82eaf560 | 6928 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6929 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
542f9784 | 6930 | objdir=$lt_cv_objdir |
6931 | ||
6932 | ||
6933 | ||
6934 | ||
90e67cff | 6935 | |
6936 | cat >>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 | ||
6956 | case $host_os in | |
6957 | aix3*) | |
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 | ;; | |
6966 | esac | |
6967 | ||
6968 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6969 | # metacharacters that are still active within double-quoted strings. | |
6970 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6971 | ||
6972 | # Same as above, but do not quote variable references. | |
6973 | double_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. | |
6977 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6978 | ||
6979 | # Sed substitution to delay expansion of an escaped single quote. | |
6980 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6981 | ||
6982 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6983 | no_glob_subst='s/\*/\\\*/g' | |
6984 | ||
6985 | # Global variables: | |
6986 | ofile=libtool | |
6987 | can_build_shared=yes | |
6988 | ||
6989 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6990 | # which needs '.lib'). | |
6991 | libext=a | |
6992 | ||
6993 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6994 | ||
6995 | old_CC="$CC" | |
6996 | old_CFLAGS="$CFLAGS" | |
6997 | ||
6998 | # Set sane defaults for various variables | |
6999 | test -z "$CC" && CC=cc | |
7000 | test -z "$LTCC" && LTCC=$CC | |
7001 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7002 | test -z "$LD" && LD=ld | |
7003 | test -z "$ac_objext" && ac_objext=o | |
7004 | ||
7005 | for 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 | |
7012 | done | |
7013 | cc_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 | |
7017 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7018 | case $deplibs_check_method in | |
7019 | file_magic*) | |
7020 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
82eaf560 | 7021 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
7022 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
542f9784 | 7023 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
90e67cff | 7024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7025 | else | |
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 | ;; | |
7069 | esac | |
7070 | fi | |
7071 | ||
7072 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7073 | if test -n "$MAGIC_CMD"; then | |
82eaf560 | 7074 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7075 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
542f9784 | 7076 | else |
82eaf560 | 7077 | echo "$as_me:$LINENO: result: no" >&5 |
7078 | echo "${ECHO_T}no" >&6 | |
542f9784 | 7079 | fi |
7080 | ||
7081 | ||
7082 | ||
7083 | ||
7084 | ||
7085 | if 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 |
7088 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
542f9784 | 7089 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7091 | else | |
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 | ;; | |
7135 | esac | |
7136 | fi | |
7137 | ||
7138 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7139 | if test -n "$MAGIC_CMD"; then | |
82eaf560 | 7140 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7141 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
542f9784 | 7142 | else |
82eaf560 | 7143 | echo "$as_me:$LINENO: result: no" >&5 |
7144 | echo "${ECHO_T}no" >&6 | |
542f9784 | 7145 | fi |
7146 | ||
7147 | ||
7148 | else | |
7149 | MAGIC_CMD=: | |
7150 | fi | |
7151 | fi | |
7152 | ||
7153 | fi | |
7154 | ;; | |
7155 | esac | |
7156 | ||
7157 | # Use C for the default configuration in the libtool script | |
7158 | ||
7159 | lt_save_CC="$CC" | |
7160 | ac_ext=c | |
7161 | ac_cpp='$CPP $CPPFLAGS' | |
7162 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7163 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7164 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7165 | ||
7166 | ||
7167 | # Source file extension for C test sources. | |
7168 | ac_ext=c | |
7169 | ||
7170 | # Object file extension for compiled C test sources. | |
7171 | objext=o | |
7172 | objext=$objext | |
7173 | ||
7174 | # Code to be used in simple compile tests | |
7175 | lt_simple_compile_test_code="int some_variable = 0;" | |
7176 | ||
7177 | # Code to be used in simple link tests | |
7178 | lt_simple_link_test_code='int main(){return(0);}' | |
7179 | ||
7180 | ||
7181 | ||
7182 | ||
7183 | ||
7184 | ||
7185 | ||
7186 | # If no C compiler was specified, use CC. | |
7187 | LTCC=${LTCC-"$CC"} | |
7188 | ||
7189 | # If no C compiler flags were specified, use CFLAGS. | |
7190 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7191 | ||
7192 | # Allow CC to be a program name with arguments. | |
7193 | compiler=$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. | |
7197 | compiler_DEFAULT=$CC | |
7198 | ||
7199 | # save warnings/boilerplate of simple test code | |
7200 | ac_outfile=conftest.$ac_objext | |
7201 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7202 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7203 | _lt_compiler_boilerplate=`cat conftest.err` | |
7204 | $RM conftest* | |
7205 | ||
7206 | ac_outfile=conftest.$ac_objext | |
7207 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7208 | eval "$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... | |
7217 | if test -n "$compiler"; then | |
7218 | ||
7219 | lt_prog_compiler_no_builtin_flag= | |
7220 | ||
7221 | if 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 |
7225 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
542f9784 | 7226 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7228 | else | |
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 | ||
7258 | fi | |
82eaf560 | 7259 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7260 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
542f9784 | 7261 | |
7262 | if 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" | |
7264 | else | |
7265 | : | |
7266 | fi | |
7267 | ||
7268 | fi | |
7269 | ||
7270 | ||
7271 | ||
7272 | ||
7273 | ||
7274 | ||
7275 | lt_prog_compiler_wl= | |
7276 | lt_prog_compiler_pic= | |
7277 | lt_prog_compiler_static= | |
7278 | ||
82eaf560 | 7279 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7280 | echo $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 | ||
7542 | case $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 | ;; | |
7550 | esac | |
82eaf560 | 7551 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7552 | echo "${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 | # | |
7562 | if test -n "$lt_prog_compiler_pic"; then | |
82eaf560 | 7563 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7564 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
00aafda4 | 7565 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
542f9784 | 7566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7567 | else | |
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 | ||
7597 | fi | |
00aafda4 | 7598 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
7599 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6 | |
542f9784 | 7600 | |
00aafda4 | 7601 | if 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 | |
7606 | else | |
7607 | lt_prog_compiler_pic= | |
7608 | lt_prog_compiler_can_build_shared=no | |
7609 | fi | |
7610 | ||
7611 | fi | |
7612 | ||
7613 | ||
7614 | ||
7615 | ||
7616 | ||
7617 | ||
7618 | # | |
7619 | # Check to make sure the static flag actually works. | |
7620 | # | |
7621 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
82eaf560 | 7622 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7623 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
00aafda4 | 7624 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
542f9784 | 7625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7626 | else | |
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 | ||
7649 | fi | |
00aafda4 | 7650 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
7651 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6 | |
542f9784 | 7652 | |
00aafda4 | 7653 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
542f9784 | 7654 | : |
7655 | else | |
7656 | lt_prog_compiler_static= | |
7657 | fi | |
7658 | ||
7659 | ||
7660 | ||
7661 | ||
7662 | ||
7663 | ||
7664 | ||
82eaf560 | 7665 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7666 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
542f9784 | 7667 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7669 | else | |
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 | ||
7711 | fi | |
82eaf560 | 7712 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7713 | echo "${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 |
7721 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
542f9784 | 7722 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7724 | else | |
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 | ||
7766 | fi | |
82eaf560 | 7767 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7768 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
542f9784 | 7769 | |
7770 | ||
7771 | ||
7772 | ||
7773 | hard_links="nottested" | |
7774 | if 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 |
7777 | echo $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 |
7785 | echo "${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 | |
7788 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7789 | need_locks=warn | |
7790 | fi | |
7791 | else | |
7792 | need_locks=no | |
7793 | fi | |
7794 | ||
7795 | ||
7796 | ||
7797 | ||
7798 | ||
7799 | ||
82eaf560 | 7800 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7801 | echo $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 | |
8244 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8245 | { (exit 1); exit 1; }; } | |
8246 | fi | |
8247 | cat >conftest.$ac_ext <<_ACEOF | |
8248 | /* confdefs.h. */ | |
8249 | _ACEOF | |
8250 | cat confdefs.h >>conftest.$ac_ext | |
8251 | cat >>conftest.$ac_ext <<_ACEOF | |
8252 | /* end confdefs.h. */ | |
8253 | ||
8254 | int | |
8255 | main () | |
8256 | { | |
8257 | ||
8258 | ; | |
8259 | return 0; | |
8260 | } | |
8261 | _ACEOF | |
8262 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 8263 | if { (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 | |
8285 | lt_aix_libpath_sed=' | |
8286 | /Import File Strings/,/^$/ { | |
8287 | /^0/ { | |
8288 | s/^0 *\(.*\)$/\1/ | |
8289 | p | |
8290 | } | |
8291 | }' | |
8292 | aix_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. | |
8294 | if test -z "$aix_libpath"; then | |
8295 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8296 | fi | |
8297 | else | |
8298 | echo "$as_me: failed program was:" >&5 | |
8299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8300 | ||
8301 | fi | |
82eaf560 | 8302 | rm -f conftest.err conftest.$ac_objext \ |
542f9784 | 8303 | conftest$ac_exeext conftest.$ac_ext |
8304 | if 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 | |
8318 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8319 | { (exit 1); exit 1; }; } | |
8320 | fi | |
8321 | cat >conftest.$ac_ext <<_ACEOF | |
8322 | /* confdefs.h. */ | |
8323 | _ACEOF | |
8324 | cat confdefs.h >>conftest.$ac_ext | |
8325 | cat >>conftest.$ac_ext <<_ACEOF | |
8326 | /* end confdefs.h. */ | |
8327 | ||
8328 | int | |
8329 | main () | |
8330 | { | |
8331 | ||
8332 | ; | |
8333 | return 0; | |
8334 | } | |
8335 | _ACEOF | |
8336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 8337 | if { (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 | |
8359 | lt_aix_libpath_sed=' | |
8360 | /Import File Strings/,/^$/ { | |
8361 | /^0/ { | |
8362 | s/^0 *\(.*\)$/\1/ | |
8363 | p | |
8364 | } | |
8365 | }' | |
8366 | aix_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. | |
8368 | if test -z "$aix_libpath"; then | |
8369 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8370 | fi | |
8371 | else | |
8372 | echo "$as_me: failed program was:" >&5 | |
8373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8374 | ||
8375 | fi | |
82eaf560 | 8376 | rm -f conftest.err conftest.$ac_objext \ |
542f9784 | 8377 | conftest$ac_exeext conftest.$ac_ext |
8378 | if 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 | |
8591 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8592 | { (exit 1); exit 1; }; } | |
8593 | fi | |
8594 | cat >conftest.$ac_ext <<_ACEOF | |
8595 | int foo(void) {} | |
8596 | _ACEOF | |
8597 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 8598 | if { (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 | ||
8621 | else | |
8622 | echo "$as_me: failed program was:" >&5 | |
8623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8624 | ||
8625 | fi | |
82eaf560 | 8626 | rm -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 | 8883 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8884 | echo "${ECHO_T}$ld_shlibs" >&6 | |
542f9784 | 8885 | test "$ld_shlibs" = no && can_build_shared=no |
8886 | ||
8887 | with_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 | # | |
8906 | case "x$archive_cmds_need_lc" in | |
8907 | x|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 |
8921 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
9e6fd619 | 8922 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
8923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8924 | else | |
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 | ||
8962 | fi | |
8963 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 | |
8964 | echo "${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 | ;; | |
8970 | esac | |
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 |
9129 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
00aafda4 | 9130 | |
9131 | if 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 ' | |
9159 | BEGIN {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` | |
9179 | else | |
9180 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9181 | fi | |
9182 | library_names_spec= | |
9183 | libname_spec='lib$name' | |
9184 | soname_spec= | |
9185 | shrext_cmds=".so" | |
9186 | postinstall_cmds= | |
9187 | postuninstall_cmds= | |
9188 | finish_cmds= | |
9189 | finish_eval= | |
9190 | shlibpath_var= | |
9191 | shlibpath_overrides_runpath=unknown | |
9192 | version_type=none | |
9193 | dynamic_linker="$host_os ld.so" | |
9194 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9195 | need_lib_prefix=unknown | |
9196 | hardcode_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 | |
9200 | need_version=unknown | |
9201 | ||
9202 | case $host_os in | |
9203 | aix3*) | |
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 | 9212 | aix[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 | ||
9256 | amigaos*) | |
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 | ||
9271 | beos*) | |
9272 | library_names_spec='${libname}${shared_ext}' | |
9273 | dynamic_linker="$host_os ld.so" | |
9274 | shlibpath_var=LIBRARY_PATH | |
9275 | ;; | |
9276 | ||
9277 | bsdi[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 | 9291 | cygwin* | 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 | ||
9353 | darwin* | 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 | ||
9368 | dgux*) | |
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 | ||
9377 | freebsd1*) | |
9378 | dynamic_linker=no | |
9379 | ;; | |
9380 | ||
9381 | freebsd* | 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 | ||
9425 | gnu*) | |
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 | ||
9435 | hpux9* | 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 | ||
9481 | interix[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 | ||
9493 | irix5* | 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. | |
9531 | linux*oldld* | linux*aout* | linux*coff*) | |
9532 | dynamic_linker=no | |
9533 | ;; | |
9534 | ||
9535 | # This must be Linux ELF. | |
9536 | linux* | 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 | |
9549 | else | |
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 |
9557 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9558 | { (exit 1); exit 1; }; } | |
9559 | fi | |
9560 | cat >conftest.$ac_ext <<_ACEOF | |
9561 | /* confdefs.h. */ | |
9562 | _ACEOF | |
9563 | cat confdefs.h >>conftest.$ac_ext | |
9564 | cat >>conftest.$ac_ext <<_ACEOF | |
9565 | /* end confdefs.h. */ | |
9566 | ||
9567 | int | |
9568 | main () | |
9569 | { | |
9570 | ||
9571 | ; | |
9572 | return 0; | |
9573 | } | |
9574 | _ACEOF | |
9575 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 9576 | if { (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 | 9599 | fi |
9600 | ||
9601 | else | |
9602 | echo "$as_me: failed program was:" >&5 | |
9603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9604 | ||
9605 | fi | |
82eaf560 | 9606 | rm -f conftest.err conftest.$ac_objext \ |
542f9784 | 9607 | conftest$ac_exeext conftest.$ac_ext |
9e6fd619 | 9608 | LDFLAGS=$save_LDFLAGS |
9609 | libdir=$save_libdir | |
9610 | ||
9611 | fi | |
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 | ||
9635 | netbsd*) | |
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 | ||
9653 | newsos6) | |
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 | ||
9672 | openbsd*) | |
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 | ||
9698 | os2*) | |
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 | ||
9707 | osf3* | 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 | ||
9718 | rdos*) | |
9719 | dynamic_linker=no | |
9720 | ;; | |
9721 | ||
9722 | solaris*) | |
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 | ||
9735 | sunos4*) | |
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 | ||
9747 | sysv4 | 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 | ||
9770 | sysv4*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 | ||
9779 | sysv5* | 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 | ||
9801 | tpf*) | |
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 | ||
9812 | uts4*) | |
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 | ;; | |
9822 | esac | |
82eaf560 | 9823 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9824 | echo "${ECHO_T}$dynamic_linker" >&6 | |
542f9784 | 9825 | test "$dynamic_linker" = no && can_build_shared=no |
9826 | ||
9827 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9828 | if test "$GCC" = yes; then | |
9829 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9830 | fi | |
9831 | ||
00aafda4 | 9832 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
9833 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
9834 | fi | |
9835 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
9836 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
9837 | fi | |
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 |
9926 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
542f9784 | 9927 | hardcode_action= |
9928 | if 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 | |
9945 | else | |
9946 | # We cannot hardcode anything, or else we can only hardcode existing | |
9947 | # directories. | |
9948 | hardcode_action=unsupported | |
9949 | fi | |
82eaf560 | 9950 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9951 | echo "${ECHO_T}$hardcode_action" >&6 | |
542f9784 | 9952 | |
9953 | if test "$hardcode_action" = relink || | |
9954 | test "$inherit_rpath" = yes; then | |
9955 | # Fast installation is not supported | |
9956 | enable_fast_install=no | |
9957 | elif test "$shlibpath_overrides_runpath" = yes || | |
9958 | test "$enable_shared" = no; then | |
9959 | # Fast installation is not necessary | |
9960 | enable_fast_install=needless | |
9961 | fi | |
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 | |
9972 | else | |
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 |
9996 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
542f9784 | 9997 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9999 | else | |
10000 | ac_check_lib_save_LIBS=$LIBS | |
10001 | LIBS="-ldl $LIBS" | |
10002 | if test x$gcc_no_link = xyes; then | |
10003 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10004 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10005 | { (exit 1); exit 1; }; } | |
10006 | fi | |
10007 | cat >conftest.$ac_ext <<_ACEOF | |
10008 | /* confdefs.h. */ | |
10009 | _ACEOF | |
10010 | cat confdefs.h >>conftest.$ac_ext | |
10011 | cat >>conftest.$ac_ext <<_ACEOF | |
10012 | /* end confdefs.h. */ | |
10013 | ||
82eaf560 | 10014 | /* Override any gcc2 internal prototype to avoid an error. */ |
542f9784 | 10015 | #ifdef __cplusplus |
10016 | extern "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 | 10020 | char dlopen (); |
10021 | int | |
10022 | main () | |
10023 | { | |
82eaf560 | 10024 | dlopen (); |
542f9784 | 10025 | ; |
10026 | return 0; | |
10027 | } | |
10028 | _ACEOF | |
10029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 10030 | if { (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 |
10052 | else | |
10053 | echo "$as_me: failed program was:" >&5 | |
10054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10055 | ||
82eaf560 | 10056 | ac_cv_lib_dl_dlopen=no |
542f9784 | 10057 | fi |
82eaf560 | 10058 | rm -f conftest.err conftest.$ac_objext \ |
542f9784 | 10059 | conftest$ac_exeext conftest.$ac_ext |
10060 | LIBS=$ac_check_lib_save_LIBS | |
10061 | fi | |
82eaf560 | 10062 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
10063 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
542f9784 | 10064 | if test $ac_cv_lib_dl_dlopen = yes; then |
10065 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10066 | else | |
10067 | ||
10068 | lt_cv_dlopen="dyld" | |
10069 | lt_cv_dlopen_libs= | |
10070 | lt_cv_dlopen_self=yes | |
10071 | ||
10072 | fi | |
10073 | ||
10074 | ;; | |
10075 | ||
10076 | *) | |
82eaf560 | 10077 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
10078 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
542f9784 | 10079 | if test "${ac_cv_func_shl_load+set}" = set; then |
10080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10081 | else | |
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 | |
10084 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10085 | { (exit 1); exit 1; }; } | |
10086 | fi | |
10087 | cat >conftest.$ac_ext <<_ACEOF | |
10088 | /* confdefs.h. */ | |
10089 | _ACEOF | |
10090 | cat confdefs.h >>conftest.$ac_ext | |
10091 | cat >>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 |
10112 | extern "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 | 10117 | char 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 | 10122 | choke me |
82eaf560 | 10123 | #else |
10124 | char (*f) () = shl_load; | |
10125 | #endif | |
10126 | #ifdef __cplusplus | |
10127 | } | |
542f9784 | 10128 | #endif |
10129 | ||
10130 | int | |
10131 | main () | |
10132 | { | |
82eaf560 | 10133 | return f != shl_load; |
542f9784 | 10134 | ; |
10135 | return 0; | |
10136 | } | |
10137 | _ACEOF | |
10138 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 10139 | if { (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 |
10161 | else | |
10162 | echo "$as_me: failed program was:" >&5 | |
10163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10164 | ||
82eaf560 | 10165 | ac_cv_func_shl_load=no |
542f9784 | 10166 | fi |
82eaf560 | 10167 | rm -f conftest.err conftest.$ac_objext \ |
542f9784 | 10168 | conftest$ac_exeext conftest.$ac_ext |
10169 | fi | |
82eaf560 | 10170 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
10171 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
542f9784 | 10172 | if test $ac_cv_func_shl_load = yes; then |
10173 | lt_cv_dlopen="shl_load" | |
10174 | else | |
82eaf560 | 10175 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
10176 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
542f9784 | 10177 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
10178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10179 | else | |
10180 | ac_check_lib_save_LIBS=$LIBS | |
10181 | LIBS="-ldld $LIBS" | |
10182 | if test x$gcc_no_link = xyes; then | |
10183 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10184 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10185 | { (exit 1); exit 1; }; } | |
10186 | fi | |
10187 | cat >conftest.$ac_ext <<_ACEOF | |
10188 | /* confdefs.h. */ | |
10189 | _ACEOF | |
10190 | cat confdefs.h >>conftest.$ac_ext | |
10191 | cat >>conftest.$ac_ext <<_ACEOF | |
10192 | /* end confdefs.h. */ | |
10193 | ||
82eaf560 | 10194 | /* Override any gcc2 internal prototype to avoid an error. */ |
542f9784 | 10195 | #ifdef __cplusplus |
10196 | extern "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 | 10200 | char shl_load (); |
10201 | int | |
10202 | main () | |
10203 | { | |
82eaf560 | 10204 | shl_load (); |
542f9784 | 10205 | ; |
10206 | return 0; | |
10207 | } | |
10208 | _ACEOF | |
10209 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 10210 | if { (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 |
10232 | else | |
10233 | echo "$as_me: failed program was:" >&5 | |
10234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10235 | ||
82eaf560 | 10236 | ac_cv_lib_dld_shl_load=no |
542f9784 | 10237 | fi |
82eaf560 | 10238 | rm -f conftest.err conftest.$ac_objext \ |
542f9784 | 10239 | conftest$ac_exeext conftest.$ac_ext |
10240 | LIBS=$ac_check_lib_save_LIBS | |
10241 | fi | |
82eaf560 | 10242 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
10243 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
542f9784 | 10244 | if test $ac_cv_lib_dld_shl_load = yes; then |
00aafda4 | 10245 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
542f9784 | 10246 | else |
82eaf560 | 10247 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
10248 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
542f9784 | 10249 | if test "${ac_cv_func_dlopen+set}" = set; then |
10250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10251 | else | |
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 | |
10254 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10255 | { (exit 1); exit 1; }; } | |
10256 | fi | |
10257 | cat >conftest.$ac_ext <<_ACEOF | |
10258 | /* confdefs.h. */ | |
10259 | _ACEOF | |
10260 | cat confdefs.h >>conftest.$ac_ext | |
10261 | cat >>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 |
10282 | extern "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 | 10287 | char 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 | 10292 | choke me |
82eaf560 | 10293 | #else |
10294 | char (*f) () = dlopen; | |
10295 | #endif | |
10296 | #ifdef __cplusplus | |
10297 | } | |
542f9784 | 10298 | #endif |
10299 | ||
10300 | int | |
10301 | main () | |
10302 | { | |
82eaf560 | 10303 | return f != dlopen; |
542f9784 | 10304 | ; |
10305 | return 0; | |
10306 | } | |
10307 | _ACEOF | |
10308 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 10309 | if { (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 |
10331 | else | |
10332 | echo "$as_me: failed program was:" >&5 | |
10333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10334 | ||
82eaf560 | 10335 | ac_cv_func_dlopen=no |
542f9784 | 10336 | fi |
82eaf560 | 10337 | rm -f conftest.err conftest.$ac_objext \ |
542f9784 | 10338 | conftest$ac_exeext conftest.$ac_ext |
10339 | fi | |
82eaf560 | 10340 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
10341 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
542f9784 | 10342 | if test $ac_cv_func_dlopen = yes; then |
10343 | lt_cv_dlopen="dlopen" | |
10344 | else | |
82eaf560 | 10345 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
10346 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
542f9784 | 10347 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
10348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10349 | else | |
10350 | ac_check_lib_save_LIBS=$LIBS | |
10351 | LIBS="-ldl $LIBS" | |
10352 | if test x$gcc_no_link = xyes; then | |
10353 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10354 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10355 | { (exit 1); exit 1; }; } | |
10356 | fi | |
10357 | cat >conftest.$ac_ext <<_ACEOF | |
10358 | /* confdefs.h. */ | |
10359 | _ACEOF | |
10360 | cat confdefs.h >>conftest.$ac_ext | |
10361 | cat >>conftest.$ac_ext <<_ACEOF | |
10362 | /* end confdefs.h. */ | |
10363 | ||
82eaf560 | 10364 | /* Override any gcc2 internal prototype to avoid an error. */ |
542f9784 | 10365 | #ifdef __cplusplus |
10366 | extern "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 | 10370 | char dlopen (); |
10371 | int | |
10372 | main () | |
10373 | { | |
82eaf560 | 10374 | dlopen (); |
542f9784 | 10375 | ; |
10376 | return 0; | |
10377 | } | |
10378 | _ACEOF | |
10379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 10380 | if { (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 |
10402 | else | |
10403 | echo "$as_me: failed program was:" >&5 | |
10404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10405 | ||
82eaf560 | 10406 | ac_cv_lib_dl_dlopen=no |
542f9784 | 10407 | fi |
82eaf560 | 10408 | rm -f conftest.err conftest.$ac_objext \ |
542f9784 | 10409 | conftest$ac_exeext conftest.$ac_ext |
10410 | LIBS=$ac_check_lib_save_LIBS | |
10411 | fi | |
82eaf560 | 10412 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
10413 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
542f9784 | 10414 | if test $ac_cv_lib_dl_dlopen = yes; then |
10415 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10416 | else | |
82eaf560 | 10417 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
10418 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
542f9784 | 10419 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
10420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10421 | else | |
10422 | ac_check_lib_save_LIBS=$LIBS | |
10423 | LIBS="-lsvld $LIBS" | |
10424 | if test x$gcc_no_link = xyes; then | |
10425 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10426 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10427 | { (exit 1); exit 1; }; } | |
10428 | fi | |
10429 | cat >conftest.$ac_ext <<_ACEOF | |
10430 | /* confdefs.h. */ | |
10431 | _ACEOF | |
10432 | cat confdefs.h >>conftest.$ac_ext | |
10433 | cat >>conftest.$ac_ext <<_ACEOF | |
10434 | /* end confdefs.h. */ | |
10435 | ||
82eaf560 | 10436 | /* Override any gcc2 internal prototype to avoid an error. */ |
542f9784 | 10437 | #ifdef __cplusplus |
10438 | extern "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 | 10442 | char dlopen (); |
10443 | int | |
10444 | main () | |
10445 | { | |
82eaf560 | 10446 | dlopen (); |
542f9784 | 10447 | ; |
10448 | return 0; | |
10449 | } | |
10450 | _ACEOF | |
10451 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 10452 | if { (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 |
10474 | else | |
10475 | echo "$as_me: failed program was:" >&5 | |
10476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10477 | ||
82eaf560 | 10478 | ac_cv_lib_svld_dlopen=no |
542f9784 | 10479 | fi |
82eaf560 | 10480 | rm -f conftest.err conftest.$ac_objext \ |
542f9784 | 10481 | conftest$ac_exeext conftest.$ac_ext |
10482 | LIBS=$ac_check_lib_save_LIBS | |
10483 | fi | |
82eaf560 | 10484 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
10485 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
542f9784 | 10486 | if test $ac_cv_lib_svld_dlopen = yes; then |
10487 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10488 | else | |
82eaf560 | 10489 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
10490 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
542f9784 | 10491 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
10492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10493 | else | |
10494 | ac_check_lib_save_LIBS=$LIBS | |
10495 | LIBS="-ldld $LIBS" | |
10496 | if test x$gcc_no_link = xyes; then | |
10497 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10498 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10499 | { (exit 1); exit 1; }; } | |
10500 | fi | |
10501 | cat >conftest.$ac_ext <<_ACEOF | |
10502 | /* confdefs.h. */ | |
10503 | _ACEOF | |
10504 | cat confdefs.h >>conftest.$ac_ext | |
10505 | cat >>conftest.$ac_ext <<_ACEOF | |
10506 | /* end confdefs.h. */ | |
10507 | ||
82eaf560 | 10508 | /* Override any gcc2 internal prototype to avoid an error. */ |
542f9784 | 10509 | #ifdef __cplusplus |
10510 | extern "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 | 10514 | char dld_link (); |
10515 | int | |
10516 | main () | |
10517 | { | |
82eaf560 | 10518 | dld_link (); |
542f9784 | 10519 | ; |
10520 | return 0; | |
10521 | } | |
10522 | _ACEOF | |
10523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 10524 | if { (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 |
10546 | else | |
10547 | echo "$as_me: failed program was:" >&5 | |
10548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10549 | ||
82eaf560 | 10550 | ac_cv_lib_dld_dld_link=no |
542f9784 | 10551 | fi |
82eaf560 | 10552 | rm -f conftest.err conftest.$ac_objext \ |
542f9784 | 10553 | conftest$ac_exeext conftest.$ac_ext |
10554 | LIBS=$ac_check_lib_save_LIBS | |
10555 | fi | |
82eaf560 | 10556 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
10557 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
542f9784 | 10558 | if test $ac_cv_lib_dld_dld_link = yes; then |
00aafda4 | 10559 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
542f9784 | 10560 | fi |
10561 | ||
10562 | ||
10563 | fi | |
10564 | ||
10565 | ||
10566 | fi | |
10567 | ||
10568 | ||
10569 | fi | |
10570 | ||
10571 | ||
10572 | fi | |
10573 | ||
10574 | ||
10575 | fi | |
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 |
10598 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
542f9784 | 10599 | if test "${lt_cv_dlopen_self+set}" = set; then |
10600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10601 | else | |
10602 | if test "$cross_compiling" = yes; then : | |
10603 | lt_cv_dlopen_self=cross | |
10604 | else | |
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 | 10649 | void fnord() { int i=42;} |
10650 | int 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 | |
10683 | fi | |
10684 | rm -fr conftest* | |
10685 | ||
10686 | ||
10687 | fi | |
82eaf560 | 10688 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
10689 | echo "${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 |
10694 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
542f9784 | 10695 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
10696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10697 | else | |
10698 | if test "$cross_compiling" = yes; then : | |
10699 | lt_cv_dlopen_self_static=cross | |
10700 | else | |
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 | 10745 | void fnord() { int i=42;} |
10746 | int 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 | |
10779 | fi | |
10780 | rm -fr conftest* | |
10781 | ||
10782 | ||
10783 | fi | |
82eaf560 | 10784 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10785 | echo "${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 | |
10803 | fi | |
10804 | ||
10805 | ||
10806 | ||
10807 | ||
10808 | ||
10809 | ||
10810 | ||
10811 | ||
10812 | ||
10813 | ||
10814 | ||
10815 | ||
10816 | ||
10817 | ||
10818 | ||
10819 | ||
10820 | ||
10821 | striplib= | |
10822 | old_striplib= | |
82eaf560 | 10823 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
10824 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
542f9784 | 10825 | if 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 |
10829 | echo "${ECHO_T}yes" >&6 | |
542f9784 | 10830 | else |
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 |
10838 | echo "${ECHO_T}yes" >&6 | |
542f9784 | 10839 | else |
82eaf560 | 10840 | echo "$as_me:$LINENO: result: no" >&5 |
10841 | echo "${ECHO_T}no" >&6 | |
542f9784 | 10842 | fi |
10843 | ;; | |
10844 | *) | |
82eaf560 | 10845 | echo "$as_me:$LINENO: result: no" >&5 |
10846 | echo "${ECHO_T}no" >&6 | |
542f9784 | 10847 | ;; |
10848 | esac | |
10849 | fi | |
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 |
10864 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
10865 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
10866 | echo "${ECHO_T}$can_build_shared" >&6 | |
542f9784 | 10867 | |
82eaf560 | 10868 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10869 | echo $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 |
10890 | echo "${ECHO_T}$enable_shared" >&6 | |
542f9784 | 10891 | |
82eaf560 | 10892 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10893 | echo $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 |
10897 | echo "${ECHO_T}$enable_static" >&6 | |
542f9784 | 10898 | |
10899 | ||
10900 | ||
10901 | ||
10902 | fi | |
10903 | ac_ext=c | |
10904 | ac_cpp='$CPP $CPPFLAGS' | |
10905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10908 | ||
10909 | CC="$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) | |
10937 | FC="$GFORTRAN" | |
82eaf560 | 10938 | ac_ext=${FC_SRCEXT-f} |
10939 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
10940 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
542f9784 | 10941 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
10942 | if 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. | |
10946 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
82eaf560 | 10947 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
542f9784 | 10949 | if test "${ac_cv_prog_FC+set}" = set; then |
10950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10951 | else | |
10952 | if test -n "$FC"; then | |
10953 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
10954 | else | |
10955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10956 | for as_dir in $PATH | |
10957 | do | |
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 | |
10966 | done | |
10967 | done | |
10968 | ||
10969 | fi | |
10970 | fi | |
10971 | FC=$ac_cv_prog_FC | |
10972 | if test -n "$FC"; then | |
82eaf560 | 10973 | echo "$as_me:$LINENO: result: $FC" >&5 |
10974 | echo "${ECHO_T}$FC" >&6 | |
542f9784 | 10975 | else |
82eaf560 | 10976 | echo "$as_me:$LINENO: result: no" >&5 |
10977 | echo "${ECHO_T}no" >&6 | |
542f9784 | 10978 | fi |
10979 | ||
10980 | test -n "$FC" && break | |
10981 | done | |
10982 | fi | |
10983 | if test -z "$FC"; then | |
10984 | ac_ct_FC=$FC | |
10985 | for ac_prog in gfortran | |
10986 | do | |
10987 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10988 | set dummy $ac_prog; ac_word=$2 | |
82eaf560 | 10989 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10990 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
542f9784 | 10991 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then |
10992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10993 | else | |
10994 | if test -n "$ac_ct_FC"; then | |
10995 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
10996 | else | |
10997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10998 | for as_dir in $PATH | |
10999 | do | |
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 | |
11008 | done | |
11009 | done | |
11010 | ||
11011 | fi | |
11012 | fi | |
11013 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
11014 | if test -n "$ac_ct_FC"; then | |
82eaf560 | 11015 | echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 |
11016 | echo "${ECHO_T}$ac_ct_FC" >&6 | |
542f9784 | 11017 | else |
82eaf560 | 11018 | echo "$as_me:$LINENO: result: no" >&5 |
11019 | echo "${ECHO_T}no" >&6 | |
542f9784 | 11020 | fi |
11021 | ||
11022 | test -n "$ac_ct_FC" && break | |
11023 | done | |
11024 | ||
82eaf560 | 11025 | FC=$ac_ct_FC |
542f9784 | 11026 | fi |
11027 | ||
11028 | ||
11029 | # Provide some information about the compiler. | |
9e6fd619 | 11030 | echo "$as_me:11030:" \ |
82eaf560 | 11031 | "checking for Fortran compiler version" >&5 |
542f9784 | 11032 | ac_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); } | |
11048 | rm -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.) | |
11052 | ac_save_ext=$ac_ext | |
11053 | ac_ext=F | |
82eaf560 | 11054 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 |
11055 | echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 | |
542f9784 | 11056 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then |
11057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11058 | else | |
11059 | cat >conftest.$ac_ext <<_ACEOF | |
11060 | program main | |
11061 | #ifndef __GNUC__ | |
11062 | choke me | |
11063 | #endif | |
11064 | ||
11065 | end | |
11066 | _ACEOF | |
11067 | rm -f conftest.$ac_objext | |
82eaf560 | 11068 | if { (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 |
11090 | else | |
11091 | echo "$as_me: failed program was:" >&5 | |
11092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11093 | ||
82eaf560 | 11094 | ac_compiler_gnu=no |
542f9784 | 11095 | fi |
82eaf560 | 11096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 11097 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
11098 | ||
11099 | fi | |
82eaf560 | 11100 | echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 |
11101 | echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 | |
542f9784 | 11102 | ac_ext=$ac_save_ext |
11103 | ac_test_FFLAGS=${FCFLAGS+set} | |
11104 | ac_save_FFLAGS=$FCFLAGS | |
11105 | FCFLAGS= | |
82eaf560 | 11106 | echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 |
11107 | echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 | |
542f9784 | 11108 | if test "${ac_cv_prog_fc_g+set}" = set; then |
11109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11110 | else | |
11111 | FCFLAGS=-g | |
11112 | cat >conftest.$ac_ext <<_ACEOF | |
11113 | program main | |
11114 | ||
11115 | end | |
11116 | _ACEOF | |
11117 | rm -f conftest.$ac_objext | |
82eaf560 | 11118 | if { (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 |
11140 | else | |
11141 | echo "$as_me: failed program was:" >&5 | |
11142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11143 | ||
82eaf560 | 11144 | ac_cv_prog_fc_g=no |
542f9784 | 11145 | fi |
82eaf560 | 11146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 11147 | |
11148 | fi | |
82eaf560 | 11149 | echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 |
11150 | echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 | |
542f9784 | 11151 | if test "$ac_test_FFLAGS" = set; then |
11152 | FCFLAGS=$ac_save_FFLAGS | |
11153 | elif 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 | |
11159 | else | |
11160 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
11161 | FCFLAGS="-O2" | |
11162 | else | |
11163 | FCFLAGS= | |
11164 | fi | |
11165 | fi | |
11166 | ||
11167 | ac_ext=c | |
11168 | ac_cpp='$CPP $CPPFLAGS' | |
11169 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11170 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11171 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11172 | ||
11173 | ||
82eaf560 | 11174 | ac_ext=${FC_SRCEXT-f} |
11175 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
11176 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
542f9784 | 11177 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
11178 | if 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. | |
11182 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
82eaf560 | 11183 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
542f9784 | 11185 | if test "${ac_cv_prog_FC+set}" = set; then |
11186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11187 | else | |
11188 | if test -n "$FC"; then | |
11189 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
11190 | else | |
11191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11192 | for as_dir in $PATH | |
11193 | do | |
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 | |
11202 | done | |
11203 | done | |
11204 | ||
11205 | fi | |
11206 | fi | |
11207 | FC=$ac_cv_prog_FC | |
11208 | if test -n "$FC"; then | |
82eaf560 | 11209 | echo "$as_me:$LINENO: result: $FC" >&5 |
11210 | echo "${ECHO_T}$FC" >&6 | |
542f9784 | 11211 | else |
82eaf560 | 11212 | echo "$as_me:$LINENO: result: no" >&5 |
11213 | echo "${ECHO_T}no" >&6 | |
542f9784 | 11214 | fi |
11215 | ||
11216 | test -n "$FC" && break | |
11217 | done | |
11218 | fi | |
11219 | if 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 | 11222 | do |
11223 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11224 | set dummy $ac_prog; ac_word=$2 | |
82eaf560 | 11225 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
542f9784 | 11227 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then |
11228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11229 | else | |
11230 | if test -n "$ac_ct_FC"; then | |
11231 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
11232 | else | |
11233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11234 | for as_dir in $PATH | |
11235 | do | |
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 | |
11244 | done | |
11245 | done | |
11246 | ||
11247 | fi | |
11248 | fi | |
11249 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
11250 | if test -n "$ac_ct_FC"; then | |
82eaf560 | 11251 | echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 |
11252 | echo "${ECHO_T}$ac_ct_FC" >&6 | |
542f9784 | 11253 | else |
82eaf560 | 11254 | echo "$as_me:$LINENO: result: no" >&5 |
11255 | echo "${ECHO_T}no" >&6 | |
542f9784 | 11256 | fi |
11257 | ||
11258 | test -n "$ac_ct_FC" && break | |
82eaf560 | 11259 | done |
11260 | ||
11261 | FC=$ac_ct_FC | |
542f9784 | 11262 | fi |
11263 | ||
11264 | ||
11265 | # Provide some information about the compiler. | |
9e6fd619 | 11266 | echo "$as_me:11266:" \ |
82eaf560 | 11267 | "checking for Fortran compiler version" >&5 |
542f9784 | 11268 | ac_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); } | |
11284 | rm -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.) | |
11288 | ac_save_ext=$ac_ext | |
11289 | ac_ext=F | |
82eaf560 | 11290 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 |
11291 | echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 | |
542f9784 | 11292 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then |
11293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11294 | else | |
11295 | cat >conftest.$ac_ext <<_ACEOF | |
11296 | program main | |
11297 | #ifndef __GNUC__ | |
11298 | choke me | |
11299 | #endif | |
11300 | ||
11301 | end | |
11302 | _ACEOF | |
11303 | rm -f conftest.$ac_objext | |
82eaf560 | 11304 | if { (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 |
11326 | else | |
11327 | echo "$as_me: failed program was:" >&5 | |
11328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11329 | ||
82eaf560 | 11330 | ac_compiler_gnu=no |
542f9784 | 11331 | fi |
82eaf560 | 11332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 11333 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
11334 | ||
11335 | fi | |
82eaf560 | 11336 | echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 |
11337 | echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 | |
542f9784 | 11338 | ac_ext=$ac_save_ext |
11339 | ac_test_FFLAGS=${FCFLAGS+set} | |
11340 | ac_save_FFLAGS=$FCFLAGS | |
11341 | FCFLAGS= | |
82eaf560 | 11342 | echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 |
11343 | echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 | |
542f9784 | 11344 | if test "${ac_cv_prog_fc_g+set}" = set; then |
11345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11346 | else | |
11347 | FCFLAGS=-g | |
11348 | cat >conftest.$ac_ext <<_ACEOF | |
11349 | program main | |
11350 | ||
11351 | end | |
11352 | _ACEOF | |
11353 | rm -f conftest.$ac_objext | |
82eaf560 | 11354 | if { (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 |
11376 | else | |
11377 | echo "$as_me: failed program was:" >&5 | |
11378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11379 | ||
82eaf560 | 11380 | ac_cv_prog_fc_g=no |
542f9784 | 11381 | fi |
82eaf560 | 11382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 11383 | |
11384 | fi | |
82eaf560 | 11385 | echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 |
11386 | echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 | |
542f9784 | 11387 | if test "$ac_test_FFLAGS" = set; then |
11388 | FCFLAGS=$ac_save_FFLAGS | |
11389 | elif 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 | |
11395 | else | |
11396 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
11397 | FCFLAGS="-O2" | |
11398 | else | |
11399 | FCFLAGS= | |
11400 | fi | |
11401 | fi | |
11402 | ||
11403 | ac_ext=c | |
11404 | ac_cpp='$CPP $CPPFLAGS' | |
11405 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11406 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11407 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11408 | ||
11409 | if test -z "$FC" || test "X$FC" = "Xno"; then | |
11410 | _lt_disable_FC=yes | |
11411 | fi | |
11412 | ||
11413 | ||
11414 | ||
82eaf560 | 11415 | ac_ext=${FC_SRCEXT-f} |
11416 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
11417 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
542f9784 | 11418 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
11419 | ||
11420 | ||
11421 | archive_cmds_need_lc_FC=no | |
11422 | allow_undefined_flag_FC= | |
11423 | always_export_symbols_FC=no | |
11424 | archive_expsym_cmds_FC= | |
11425 | export_dynamic_flag_spec_FC= | |
11426 | hardcode_direct_FC=no | |
11427 | hardcode_direct_absolute_FC=no | |
11428 | hardcode_libdir_flag_spec_FC= | |
11429 | hardcode_libdir_flag_spec_ld_FC= | |
11430 | hardcode_libdir_separator_FC= | |
11431 | hardcode_minus_L_FC=no | |
11432 | hardcode_automatic_FC=no | |
11433 | inherit_rpath_FC=no | |
11434 | module_cmds_FC= | |
11435 | module_expsym_cmds_FC= | |
11436 | link_all_deplibs_FC=unknown | |
11437 | old_archive_cmds_FC=$old_archive_cmds | |
11438 | no_undefined_flag_FC= | |
11439 | whole_archive_flag_spec_FC= | |
11440 | enable_shared_with_static_runtimes_FC=no | |
11441 | ||
11442 | # Source file extension for fc test sources. | |
11443 | ac_ext=${ac_fc_srcext-f} | |
11444 | ||
11445 | # Object file extension for compiled fc test sources. | |
11446 | objext=o | |
11447 | objext_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. | |
11453 | if 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. | |
11475 | LTCC=${LTCC-"$CC"} | |
11476 | ||
11477 | # If no C compiler flags were specified, use CFLAGS. | |
11478 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
11479 | ||
11480 | # Allow CC to be a program name with arguments. | |
11481 | compiler=$CC | |
11482 | ||
11483 | ||
11484 | # save warnings/boilerplate of simple test code | |
11485 | ac_outfile=conftest.$ac_objext | |
11486 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
11487 | eval "$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 | |
11492 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
11493 | eval "$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 | |
11513 | done | |
11514 | cc_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 |
11519 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
11520 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11521 | echo "${ECHO_T}$can_build_shared" >&6 | |
542f9784 | 11522 | |
82eaf560 | 11523 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
11524 | echo $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 |
11544 | echo "${ECHO_T}$enable_shared" >&6 | |
542f9784 | 11545 | |
82eaf560 | 11546 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
11547 | echo $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 |
11551 | echo "${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: | |
11561 | predep_objects_FC= | |
11562 | postdep_objects_FC= | |
11563 | predeps_FC= | |
11564 | postdeps_FC= | |
11565 | compiler_lib_search_path_FC= | |
11566 | ||
11567 | cat > 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 | ||
11576 | if { (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 | |
11656 | else | |
11657 | echo "libtool.m4: error: problem compiling FC test program" | |
11658 | fi | |
11659 | ||
11660 | $RM -f confest.$objext | |
11661 | ||
11662 | # PORTME: override above test on systems where it is broken | |
11663 | ||
11664 | ||
11665 | case " $postdeps_FC " in | |
11666 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
11667 | esac | |
00aafda4 | 11668 | compiler_lib_search_dirs_FC= |
11669 | if 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!^ !!'` | |
11671 | fi | |
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= | |
11704 | lt_prog_compiler_pic_FC= | |
11705 | lt_prog_compiler_static_FC= | |
11706 | ||
82eaf560 | 11707 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
11708 | echo $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 | ||
11970 | case $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 | ;; | |
11978 | esac | |
82eaf560 | 11979 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5 |
11980 | echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6 | |
542f9784 | 11981 | |
11982 | ||
11983 | ||
11984 | # | |
11985 | # Check to make sure the PIC flag actually works. | |
11986 | # | |
11987 | if 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 |
11989 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6 | |
00aafda4 | 11990 | if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then |
542f9784 | 11991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11992 | else | |
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 | ||
12022 | fi | |
00aafda4 | 12023 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
12024 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_FC" >&6 | |
542f9784 | 12025 | |
00aafda4 | 12026 | if 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 | |
12031 | else | |
12032 | lt_prog_compiler_pic_FC= | |
12033 | lt_prog_compiler_can_build_shared_FC=no | |
12034 | fi | |
12035 | ||
12036 | fi | |
12037 | ||
12038 | ||
12039 | ||
12040 | # | |
12041 | # Check to make sure the static flag actually works. | |
12042 | # | |
12043 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
82eaf560 | 12044 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12045 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
00aafda4 | 12046 | if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then |
542f9784 | 12047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12048 | else | |
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 | ||
12071 | fi | |
00aafda4 | 12072 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
12073 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works_FC" >&6 | |
542f9784 | 12074 | |
00aafda4 | 12075 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
542f9784 | 12076 | : |
12077 | else | |
12078 | lt_prog_compiler_static_FC= | |
12079 | fi | |
12080 | ||
12081 | ||
12082 | ||
12083 | ||
82eaf560 | 12084 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12085 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
542f9784 | 12086 | if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then |
12087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12088 | else | |
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 | ||
12130 | fi | |
82eaf560 | 12131 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
12132 | echo "${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 |
12137 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
542f9784 | 12138 | if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then |
12139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12140 | else | |
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 | ||
12182 | fi | |
82eaf560 | 12183 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
12184 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6 | |
542f9784 | 12185 | |
12186 | ||
12187 | ||
12188 | ||
12189 | hard_links="nottested" | |
12190 | if 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 |
12193 | echo $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 |
12201 | echo "${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 | |
12204 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12205 | need_locks=warn | |
12206 | fi | |
12207 | else | |
12208 | need_locks=no | |
12209 | fi | |
12210 | ||
12211 | ||
12212 | ||
82eaf560 | 12213 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12214 | echo $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 | |
12657 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12658 | { (exit 1); exit 1; }; } | |
12659 | fi | |
12660 | cat >conftest.$ac_ext <<_ACEOF | |
12661 | program main | |
12662 | ||
12663 | end | |
12664 | _ACEOF | |
12665 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 12666 | if { (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 | |
12688 | lt_aix_libpath_sed=' | |
12689 | /Import File Strings/,/^$/ { | |
12690 | /^0/ { | |
12691 | s/^0 *\(.*\)$/\1/ | |
12692 | p | |
12693 | } | |
12694 | }' | |
12695 | aix_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. | |
12697 | if test -z "$aix_libpath"; then | |
12698 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12699 | fi | |
12700 | else | |
12701 | echo "$as_me: failed program was:" >&5 | |
12702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12703 | ||
12704 | fi | |
82eaf560 | 12705 | rm -f conftest.err conftest.$ac_objext \ |
542f9784 | 12706 | conftest$ac_exeext conftest.$ac_ext |
12707 | if 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 | |
12721 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12722 | { (exit 1); exit 1; }; } | |
12723 | fi | |
12724 | cat >conftest.$ac_ext <<_ACEOF | |
12725 | program main | |
12726 | ||
12727 | end | |
12728 | _ACEOF | |
12729 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 12730 | if { (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 | |
12752 | lt_aix_libpath_sed=' | |
12753 | /Import File Strings/,/^$/ { | |
12754 | /^0/ { | |
12755 | s/^0 *\(.*\)$/\1/ | |
12756 | p | |
12757 | } | |
12758 | }' | |
12759 | aix_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. | |
12761 | if test -z "$aix_libpath"; then | |
12762 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12763 | fi | |
12764 | else | |
12765 | echo "$as_me: failed program was:" >&5 | |
12766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12767 | ||
12768 | fi | |
82eaf560 | 12769 | rm -f conftest.err conftest.$ac_objext \ |
542f9784 | 12770 | conftest$ac_exeext conftest.$ac_ext |
12771 | if 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 | |
12984 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12985 | { (exit 1); exit 1; }; } | |
12986 | fi | |
12987 | cat >conftest.$ac_ext <<_ACEOF | |
12988 | int foo(void) {} | |
12989 | _ACEOF | |
12990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 12991 | if { (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 | ||
13014 | else | |
13015 | echo "$as_me: failed program was:" >&5 | |
13016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13017 | ||
13018 | fi | |
82eaf560 | 13019 | rm -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 | 13276 | echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5 |
13277 | echo "${ECHO_T}$ld_shlibs_FC" >&6 | |
542f9784 | 13278 | test "$ld_shlibs_FC" = no && can_build_shared=no |
13279 | ||
13280 | with_gnu_ld_FC=$with_gnu_ld | |
13281 | ||
13282 | ||
13283 | ||
13284 | ||
13285 | ||
13286 | ||
13287 | # | |
13288 | # Do we need to explicitly link libc? | |
13289 | # | |
13290 | case "x$archive_cmds_need_lc_FC" in | |
13291 | x|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 |
13305 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
9e6fd619 | 13306 | if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then |
13307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13308 | else | |
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 | ||
13346 | fi | |
13347 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_FC" >&5 | |
13348 | echo "${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 | ;; | |
13354 | esac | |
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 |
13420 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
00aafda4 | 13421 | |
542f9784 | 13422 | library_names_spec= |
13423 | libname_spec='lib$name' | |
13424 | soname_spec= | |
13425 | shrext_cmds=".so" | |
13426 | postinstall_cmds= | |
13427 | postuninstall_cmds= | |
13428 | finish_cmds= | |
13429 | finish_eval= | |
13430 | shlibpath_var= | |
13431 | shlibpath_overrides_runpath=unknown | |
13432 | version_type=none | |
13433 | dynamic_linker="$host_os ld.so" | |
13434 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
13435 | need_lib_prefix=unknown | |
13436 | hardcode_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 | |
13440 | need_version=unknown | |
13441 | ||
13442 | case $host_os in | |
13443 | aix3*) | |
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 | 13452 | aix[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 | ||
13496 | amigaos*) | |
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 | ||
13511 | beos*) | |
13512 | library_names_spec='${libname}${shared_ext}' | |
13513 | dynamic_linker="$host_os ld.so" | |
13514 | shlibpath_var=LIBRARY_PATH | |
13515 | ;; | |
13516 | ||
13517 | bsdi[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 | 13531 | cygwin* | 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 | ||
13593 | darwin* | 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 | ||
13607 | dgux*) | |
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 | ||
13616 | freebsd1*) | |
13617 | dynamic_linker=no | |
13618 | ;; | |
13619 | ||
13620 | freebsd* | 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 | ||
13664 | gnu*) | |
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 | ||
13674 | hpux9* | 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 | ||
13720 | interix[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 | ||
13732 | irix5* | 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. | |
13770 | linux*oldld* | linux*aout* | linux*coff*) | |
13771 | dynamic_linker=no | |
13772 | ;; | |
13773 | ||
13774 | # This must be Linux ELF. | |
13775 | linux* | 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 | |
13788 | else | |
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 |
13796 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13797 | { (exit 1); exit 1; }; } | |
13798 | fi | |
13799 | cat >conftest.$ac_ext <<_ACEOF | |
13800 | program main | |
13801 | ||
13802 | end | |
90e67cff | 13803 | _ACEOF |
542f9784 | 13804 | rm -f conftest.$ac_objext conftest$ac_exeext |
82eaf560 | 13805 | if { (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 | 13828 | fi |
13829 | ||
90e67cff | 13830 | else |
13831 | echo "$as_me: failed program was:" >&5 | |
13832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13833 | ||
13834 | fi | |
82eaf560 | 13835 | rm -f conftest.err conftest.$ac_objext \ |
542f9784 | 13836 | conftest$ac_exeext conftest.$ac_ext |
9e6fd619 | 13837 | LDFLAGS=$save_LDFLAGS |
13838 | libdir=$save_libdir | |
13839 | ||
13840 | fi | |
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 | ||
13864 | netbsd*) | |
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 | ||
13882 | newsos6) | |
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 | ||
13901 | openbsd*) | |
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 | ||
13927 | os2*) | |
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 | ||
13936 | osf3* | 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 | ||
13947 | rdos*) | |
13948 | dynamic_linker=no | |
13949 | ;; | |
13950 | ||
13951 | solaris*) | |
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 | ||
13964 | sunos4*) | |
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 | ||
13976 | sysv4 | 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 | ||
13999 | sysv4*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 | ||
14008 | sysv5* | 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 | ||
14030 | tpf*) | |
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 | ||
14041 | uts4*) | |
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 | ;; | |
14051 | esac | |
82eaf560 | 14052 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
14053 | echo "${ECHO_T}$dynamic_linker" >&6 | |
542f9784 | 14054 | test "$dynamic_linker" = no && can_build_shared=no |
14055 | ||
14056 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
14057 | if test "$GCC" = yes; then | |
14058 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
90e67cff | 14059 | fi |
90e67cff | 14060 | |
00aafda4 | 14061 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
14062 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
14063 | fi | |
14064 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
14065 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
14066 | fi | |
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 |
14104 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
542f9784 | 14105 | hardcode_action_FC= |
14106 | if 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 | |
14123 | else | |
14124 | # We cannot hardcode anything, or else we can only hardcode existing | |
14125 | # directories. | |
14126 | hardcode_action_FC=unsupported | |
90e67cff | 14127 | fi |
82eaf560 | 14128 | echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5 |
14129 | echo "${ECHO_T}$hardcode_action_FC" >&6 | |
542f9784 | 14130 | |
14131 | if test "$hardcode_action_FC" = relink || | |
14132 | test "$inherit_rpath_FC" = yes; then | |
14133 | # Fast installation is not supported | |
14134 | enable_fast_install=no | |
14135 | elif test "$shlibpath_overrides_runpath" = yes || | |
14136 | test "$enable_shared" = no; then | |
14137 | # Fast installation is not necessary | |
14138 | enable_fast_install=needless | |
90e67cff | 14139 | fi |
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" |
14151 | fi # test "$_lt_disable_FC" != yes | |
14152 | ||
5c88bcbb | 14153 | ac_ext=c |
90973b19 | 14154 | ac_cpp='$CPP $CPPFLAGS' |
14155 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14156 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14157 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
542f9784 | 14158 | |
14159 | ||
14160 | ||
14161 | # extra LD Flags which are required for targets | |
14162 | case "${host}" in | |
14163 | *-darwin*) | |
14164 | # Darwin needs -single_module when linking libgfortran | |
14165 | extra_ldflags_libgfortran=-Wl,-single_module | |
14166 | ;; | |
14167 | esac | |
14168 | ||
14169 | ||
14170 | # We need a working compiler at that point, otherwise give a clear | |
14171 | # error message and bail out. | |
14172 | ||
82eaf560 | 14173 | echo "$as_me:$LINENO: checking whether the GNU Fortran compiler is working" >&5 |
14174 | echo $ECHO_N "checking whether the GNU Fortran compiler is working... $ECHO_C" >&6 | |
14175 | ac_ext=${FC_SRCEXT-f} | |
14176 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
14177 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
542f9784 | 14178 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
14179 | ||
14180 | cat >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 | 14186 | rm -f conftest.$ac_objext |
82eaf560 | 14187 | if { (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 | |
14209 | echo "${ECHO_T}yes" >&6 | |
4ee9c684 | 14210 | else |
14211 | echo "$as_me: failed program was:" >&5 | |
14212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14213 | ||
82eaf560 | 14214 | echo "$as_me:$LINENO: result: no" >&5 |
14215 | echo "${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 |
14217 | echo "$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 | 14220 | fi |
82eaf560 | 14221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 14222 | ac_ext=c |
14223 | ac_cpp='$CPP $CPPFLAGS' | |
14224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14226 | ac_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 | 14231 | if test "${enable_largefile+set}" = set; then |
82eaf560 | 14232 | enableval="$enable_largefile" |
542f9784 | 14233 | |
82eaf560 | 14234 | fi; |
542f9784 | 14235 | if test "$enable_largefile" != no; then |
14236 | ||
82eaf560 | 14237 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
14238 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
542f9784 | 14239 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
14240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90973b19 | 14241 | else |
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 | |
14251 | cat confdefs.h >>conftest.$ac_ext | |
14252 | cat >>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]; | |
14263 | int | |
14264 | main () | |
14265 | { | |
14266 | ||
14267 | ; | |
14268 | return 0; | |
14269 | } | |
4ee9c684 | 14270 | _ACEOF |
82eaf560 | 14271 | rm -f conftest.$ac_objext |
14272 | if { (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 | 14294 | else |
14295 | echo "$as_me: failed program was:" >&5 | |
14296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14297 | ||
4ee9c684 | 14298 | fi |
82eaf560 | 14299 | rm -f conftest.err conftest.$ac_objext |
14300 | CC="$CC -n32" | |
14301 | rm -f conftest.$ac_objext | |
14302 | if { (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 | 14324 | else |
14325 | echo "$as_me: failed program was:" >&5 | |
14326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 14327 | |
ce1a737c | 14328 | fi |
82eaf560 | 14329 | rm -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 | 14335 | fi |
82eaf560 | 14336 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
14337 | echo "${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 |
14343 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
542f9784 | 14344 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
4ee9c684 | 14345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4ee9c684 | 14346 | else |
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 | |
14352 | cat confdefs.h >>conftest.$ac_ext | |
14353 | cat >>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 | 14364 | int |
14365 | main () | |
14366 | { | |
14367 | ||
14368 | ; | |
14369 | return 0; | |
14370 | } | |
4ee9c684 | 14371 | _ACEOF |
14372 | rm -f conftest.$ac_objext | |
82eaf560 | 14373 | if { (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 | 14395 | else |
14396 | echo "$as_me: failed program was:" >&5 | |
14397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14398 | ||
4ee9c684 | 14399 | fi |
82eaf560 | 14400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
90973b19 | 14401 | cat >conftest.$ac_ext <<_ACEOF |
4ee9c684 | 14402 | /* confdefs.h. */ |
14403 | _ACEOF | |
14404 | cat confdefs.h >>conftest.$ac_ext | |
14405 | cat >>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]; | |
14417 | int | |
14418 | main () | |
14419 | { | |
90973b19 | 14420 | |
542f9784 | 14421 | ; |
14422 | return 0; | |
14423 | } | |
4ee9c684 | 14424 | _ACEOF |
542f9784 | 14425 | rm -f conftest.$ac_objext |
82eaf560 | 14426 | if { (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 | 14448 | else |
542f9784 | 14449 | echo "$as_me: failed program was:" >&5 |
14450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
90973b19 | 14451 | |
14452 | fi | |
82eaf560 | 14453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 14454 | break |
14455 | done | |
14456 | fi | |
82eaf560 | 14457 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
14458 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
14459 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
14460 | ||
542f9784 | 14461 | cat >>confdefs.h <<_ACEOF |
14462 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
90973b19 | 14463 | _ACEOF |
82eaf560 | 14464 | |
14465 | fi | |
90973b19 | 14466 | rm -f conftest* |
82eaf560 | 14467 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
14468 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
542f9784 | 14469 | if test "${ac_cv_sys_large_files+set}" = set; then |
14470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90973b19 | 14471 | else |
542f9784 | 14472 | while :; do |
82eaf560 | 14473 | ac_cv_sys_large_files=no |
90973b19 | 14474 | cat >conftest.$ac_ext <<_ACEOF |
14475 | /* confdefs.h. */ | |
14476 | _ACEOF | |
14477 | cat confdefs.h >>conftest.$ac_ext | |
14478 | cat >>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 | 14489 | int |
14490 | main () | |
14491 | { | |
542f9784 | 14492 | |
14493 | ; | |
14494 | return 0; | |
90973b19 | 14495 | } |
14496 | _ACEOF | |
542f9784 | 14497 | rm -f conftest.$ac_objext |
82eaf560 | 14498 | if { (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 | 14520 | else |
542f9784 | 14521 | echo "$as_me: failed program was:" >&5 |
4ee9c684 | 14522 | sed 's/^/| /' conftest.$ac_ext >&5 |
14523 | ||
90973b19 | 14524 | fi |
82eaf560 | 14525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
90973b19 | 14526 | cat >conftest.$ac_ext <<_ACEOF |
14527 | /* confdefs.h. */ | |
14528 | _ACEOF | |
14529 | cat confdefs.h >>conftest.$ac_ext | |
14530 | cat >>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]; | |
14542 | int | |
14543 | main () | |
14544 | { | |
90973b19 | 14545 | |
542f9784 | 14546 | ; |
14547 | return 0; | |
14548 | } | |
90973b19 | 14549 | _ACEOF |
14550 | rm -f conftest.$ac_objext | |
82eaf560 | 14551 | if { (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 | 14573 | else |
14574 | echo "$as_me: failed program was:" >&5 | |
14575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14576 | ||
90973b19 | 14577 | fi |
82eaf560 | 14578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 14579 | break |
14580 | done | |
4ee9c684 | 14581 | fi |
82eaf560 | 14582 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
14583 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
14584 | if test "$ac_cv_sys_large_files" != no; then | |
14585 | ||
542f9784 | 14586 | cat >>confdefs.h <<_ACEOF |
14587 | #define _LARGE_FILES $ac_cv_sys_large_files | |
4ee9c684 | 14588 | _ACEOF |
82eaf560 | 14589 | |
14590 | fi | |
542f9784 | 14591 | rm -f conftest* |
14592 | fi | |
90973b19 | 14593 | |
82eaf560 | 14594 | echo "$as_me:$LINENO: checking for off_t" >&5 |
14595 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
90973b19 | 14596 | if test "${ac_cv_type_off_t+set}" = set; then |
4ee9c684 | 14597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14598 | else | |
90973b19 | 14599 | cat >conftest.$ac_ext <<_ACEOF |
14600 | /* confdefs.h. */ | |
14601 | _ACEOF | |
14602 | cat confdefs.h >>conftest.$ac_ext | |
14603 | cat >>conftest.$ac_ext <<_ACEOF | |
14604 | /* end confdefs.h. */ | |
14605 | $ac_includes_default | |
4ee9c684 | 14606 | int |
14607 | main () | |
14608 | { | |
82eaf560 | 14609 | if ((off_t *) 0) |
90973b19 | 14610 | return 0; |
82eaf560 | 14611 | if (sizeof (off_t)) |
90973b19 | 14612 | return 0; |
4ee9c684 | 14613 | ; |
14614 | return 0; | |
14615 | } | |
14616 | _ACEOF | |
90973b19 | 14617 | rm -f conftest.$ac_objext |
82eaf560 | 14618 | if { (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 | 14640 | else |
14641 | echo "$as_me: failed program was:" >&5 | |
14642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14643 | ||
82eaf560 | 14644 | ac_cv_type_off_t=no |
4ee9c684 | 14645 | fi |
82eaf560 | 14646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 14647 | fi |
82eaf560 | 14648 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
14649 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
90973b19 | 14650 | if test $ac_cv_type_off_t = yes; then |
14651 | : | |
14652 | else | |
14653 | ||
14654 | cat >>confdefs.h <<_ACEOF | |
82eaf560 | 14655 | #define off_t long |
4ee9c684 | 14656 | _ACEOF |
14657 | ||
14658 | fi | |
4ee9c684 | 14659 | |
90973b19 | 14660 | |
14661 | # check header files | |
82eaf560 | 14662 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
14663 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
90973b19 | 14664 | if test "${ac_cv_header_stdc+set}" = set; then |
4ee9c684 | 14665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14666 | else | |
14667 | cat >conftest.$ac_ext <<_ACEOF | |
14668 | /* confdefs.h. */ | |
14669 | _ACEOF | |
14670 | cat confdefs.h >>conftest.$ac_ext | |
14671 | cat >>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 | 14678 | int |
14679 | main () | |
14680 | { | |
90973b19 | 14681 | |
4ee9c684 | 14682 | ; |
14683 | return 0; | |
14684 | } | |
14685 | _ACEOF | |
14686 | rm -f conftest.$ac_objext | |
82eaf560 | 14687 | if { (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 | 14709 | else |
14710 | echo "$as_me: failed program was:" >&5 | |
14711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14712 | ||
82eaf560 | 14713 | ac_cv_header_stdc=no |
4ee9c684 | 14714 | fi |
82eaf560 | 14715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
90973b19 | 14716 | |
14717 | if 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 | |
14722 | cat confdefs.h >>conftest.$ac_ext | |
14723 | cat >>conftest.$ac_ext <<_ACEOF | |
14724 | /* end confdefs.h. */ | |
90973b19 | 14725 | #include <string.h> |
4ee9c684 | 14726 | |
4ee9c684 | 14727 | _ACEOF |
90973b19 | 14728 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14729 | $EGREP "memchr" >/dev/null 2>&1; then | |
14730 | : | |
4ee9c684 | 14731 | else |
90973b19 | 14732 | ac_cv_header_stdc=no |
4ee9c684 | 14733 | fi |
90973b19 | 14734 | rm -f conftest* |
14735 | ||
4ee9c684 | 14736 | fi |
4ee9c684 | 14737 | |
90973b19 | 14738 | if 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 | |
14743 | cat confdefs.h >>conftest.$ac_ext | |
14744 | cat >>conftest.$ac_ext <<_ACEOF | |
14745 | /* end confdefs.h. */ | |
14746 | #include <stdlib.h> | |
14747 | ||
4ee9c684 | 14748 | _ACEOF |
90973b19 | 14749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14750 | $EGREP "free" >/dev/null 2>&1; then | |
14751 | : | |
14752 | else | |
14753 | ac_cv_header_stdc=no | |
14754 | fi | |
14755 | rm -f conftest* | |
4ee9c684 | 14756 | |
90973b19 | 14757 | fi |
4ee9c684 | 14758 | |
90973b19 | 14759 | if 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 | 14763 | else |
14764 | cat >conftest.$ac_ext <<_ACEOF | |
14765 | /* confdefs.h. */ | |
14766 | _ACEOF | |
14767 | cat confdefs.h >>conftest.$ac_ext | |
14768 | cat >>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 | 14783 | int |
14784 | main () | |
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 | 14794 | rm -f conftest$ac_exeext |
82eaf560 | 14795 | if { (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 | 14806 | else |
90973b19 | 14807 | echo "$as_me: program exited with status $ac_status" >&5 |
14808 | echo "$as_me: failed program was:" >&5 | |
14809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 14810 | |
90973b19 | 14811 | ( exit $ac_status ) |
14812 | ac_cv_header_stdc=no | |
4ee9c684 | 14813 | fi |
82eaf560 | 14814 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4ee9c684 | 14815 | fi |
14816 | fi | |
4ee9c684 | 14817 | fi |
82eaf560 | 14818 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
14819 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
90973b19 | 14820 | if test $ac_cv_header_stdc = yes; then |
4ee9c684 | 14821 | |
90973b19 | 14822 | cat >>confdefs.h <<\_ACEOF |
14823 | #define STDC_HEADERS 1 | |
14824 | _ACEOF | |
4ee9c684 | 14825 | |
14826 | fi | |
14827 | ||
82eaf560 | 14828 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
14829 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
e93cd318 | 14830 | if test "${ac_cv_header_time+set}" = set; then |
14831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14832 | else | |
14833 | cat >conftest.$ac_ext <<_ACEOF | |
14834 | /* confdefs.h. */ | |
14835 | _ACEOF | |
14836 | cat confdefs.h >>conftest.$ac_ext | |
14837 | cat >>conftest.$ac_ext <<_ACEOF | |
14838 | /* end confdefs.h. */ | |
14839 | #include <sys/types.h> | |
14840 | #include <sys/time.h> | |
14841 | #include <time.h> | |
14842 | ||
14843 | int | |
14844 | main () | |
14845 | { | |
14846 | if ((struct tm *) 0) | |
14847 | return 0; | |
14848 | ; | |
14849 | return 0; | |
14850 | } | |
14851 | _ACEOF | |
14852 | rm -f conftest.$ac_objext | |
82eaf560 | 14853 | if { (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 |
14875 | else | |
14876 | echo "$as_me: failed program was:" >&5 | |
14877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14878 | ||
82eaf560 | 14879 | ac_cv_header_time=no |
e93cd318 | 14880 | fi |
82eaf560 | 14881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e93cd318 | 14882 | fi |
82eaf560 | 14883 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
14884 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
e93cd318 | 14885 | if test $ac_cv_header_time = yes; then |
14886 | ||
14887 | cat >>confdefs.h <<\_ACEOF | |
14888 | #define TIME_WITH_SYS_TIME 1 | |
14889 | _ACEOF | |
14890 | ||
14891 | fi | |
14892 | ||
4ee9c684 | 14893 | |
14894 | ||
4ee9c684 | 14895 | |
4ee9c684 | 14896 | |
5a037dbd | 14897 | |
14898 | ||
14899 | for ac_header in stdio.h stdlib.h string.h unistd.h signal.h stdarg.h | |
90973b19 | 14900 | do |
14901 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
82eaf560 | 14902 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14903 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14904 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14905 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
90973b19 | 14906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14907 | fi | |
82eaf560 | 14908 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14909 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 14910 | else |
90973b19 | 14911 | # Is the header compilable? |
82eaf560 | 14912 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14913 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
90973b19 | 14914 | cat >conftest.$ac_ext <<_ACEOF |
14915 | /* confdefs.h. */ | |
14916 | _ACEOF | |
14917 | cat confdefs.h >>conftest.$ac_ext | |
14918 | cat >>conftest.$ac_ext <<_ACEOF | |
14919 | /* end confdefs.h. */ | |
14920 | $ac_includes_default | |
14921 | #include <$ac_header> | |
14922 | _ACEOF | |
14923 | rm -f conftest.$ac_objext | |
82eaf560 | 14924 | if { (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 | 14946 | else |
90973b19 | 14947 | echo "$as_me: failed program was:" >&5 |
14948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14949 | ||
82eaf560 | 14950 | ac_header_compiler=no |
4ee9c684 | 14951 | fi |
82eaf560 | 14952 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14953 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14954 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
90973b19 | 14955 | |
14956 | # Is the header present? | |
82eaf560 | 14957 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14958 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
90973b19 | 14959 | cat >conftest.$ac_ext <<_ACEOF |
14960 | /* confdefs.h. */ | |
14961 | _ACEOF | |
14962 | cat confdefs.h >>conftest.$ac_ext | |
14963 | cat >>conftest.$ac_ext <<_ACEOF | |
14964 | /* end confdefs.h. */ | |
14965 | #include <$ac_header> | |
14966 | _ACEOF | |
82eaf560 | 14967 | if { (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 | |
14981 | else | |
14982 | ac_cpp_err=yes | |
14983 | fi | |
14984 | if test -z "$ac_cpp_err"; then | |
90973b19 | 14985 | ac_header_preproc=yes |
4ee9c684 | 14986 | else |
90973b19 | 14987 | echo "$as_me: failed program was:" >&5 |
14988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14989 | ||
14990 | ac_header_preproc=no | |
4ee9c684 | 14991 | fi |
90973b19 | 14992 | rm -f conftest.err conftest.$ac_ext |
82eaf560 | 14993 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14994 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
90973b19 | 14995 | |
14996 | # So? What about this header? | |
14997 | case $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 | |
15000 | echo "$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 | |
15002 | echo "$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 | |
15007 | echo "$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 | |
15009 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15010 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15011 | echo "$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 | |
15013 | echo "$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 | |
15015 | echo "$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 | |
15017 | echo "$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 | ;; |
15027 | esac | |
82eaf560 | 15028 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15029 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15030 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4ee9c684 | 15031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15032 | else | |
90973b19 | 15033 | eval "$as_ac_Header=\$ac_header_preproc" |
4ee9c684 | 15034 | fi |
82eaf560 | 15035 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15036 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 15037 | |
90973b19 | 15038 | fi |
15039 | if 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 | 15044 | fi |
4ee9c684 | 15045 | |
90973b19 | 15046 | done |
15047 | ||
15048 | ||
15049 | ||
15050 | ||
15051 | ||
35a46568 | 15052 | for ac_header in time.h sys/time.h sys/times.h sys/resource.h |
90973b19 | 15053 | do |
15054 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
82eaf560 | 15055 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15056 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15057 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15058 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
d2455565 | 15059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15060 | fi | |
82eaf560 | 15061 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15062 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
d2455565 | 15063 | else |
15064 | # Is the header compilable? | |
82eaf560 | 15065 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15066 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
d2455565 | 15067 | cat >conftest.$ac_ext <<_ACEOF |
15068 | /* confdefs.h. */ | |
15069 | _ACEOF | |
15070 | cat confdefs.h >>conftest.$ac_ext | |
15071 | cat >>conftest.$ac_ext <<_ACEOF | |
15072 | /* end confdefs.h. */ | |
15073 | $ac_includes_default | |
15074 | #include <$ac_header> | |
15075 | _ACEOF | |
15076 | rm -f conftest.$ac_objext | |
82eaf560 | 15077 | if { (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 |
15099 | else | |
15100 | echo "$as_me: failed program was:" >&5 | |
15101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15102 | ||
82eaf560 | 15103 | ac_header_compiler=no |
d2455565 | 15104 | fi |
82eaf560 | 15105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15106 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15107 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
d2455565 | 15108 | |
15109 | # Is the header present? | |
82eaf560 | 15110 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15111 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
d2455565 | 15112 | cat >conftest.$ac_ext <<_ACEOF |
15113 | /* confdefs.h. */ | |
15114 | _ACEOF | |
15115 | cat confdefs.h >>conftest.$ac_ext | |
15116 | cat >>conftest.$ac_ext <<_ACEOF | |
15117 | /* end confdefs.h. */ | |
15118 | #include <$ac_header> | |
15119 | _ACEOF | |
82eaf560 | 15120 | if { (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 | |
15134 | else | |
15135 | ac_cpp_err=yes | |
15136 | fi | |
15137 | if test -z "$ac_cpp_err"; then | |
d2455565 | 15138 | ac_header_preproc=yes |
15139 | else | |
15140 | echo "$as_me: failed program was:" >&5 | |
15141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15142 | ||
15143 | ac_header_preproc=no | |
15144 | fi | |
15145 | rm -f conftest.err conftest.$ac_ext | |
82eaf560 | 15146 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15147 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
d2455565 | 15148 | |
15149 | # So? What about this header? | |
15150 | case $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 | |
15153 | echo "$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 | |
15155 | echo "$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 | |
15160 | echo "$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 | |
15162 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15163 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15164 | echo "$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 | |
15166 | echo "$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 | |
15168 | echo "$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 | |
15170 | echo "$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 | ;; |
15180 | esac | |
82eaf560 | 15181 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15182 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15183 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
d2455565 | 15184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15185 | else | |
15186 | eval "$as_ac_Header=\$ac_header_preproc" | |
15187 | fi | |
82eaf560 | 15188 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15189 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
d2455565 | 15190 | |
15191 | fi | |
15192 | if 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 | ||
15197 | fi | |
15198 | ||
15199 | done | |
15200 | ||
15201 | ||
771c1b50 | 15202 | |
15203 | ||
334f03a1 | 15204 | |
d2fc5bb1 | 15205 | |
15206 | for ac_header in sys/types.h sys/stat.h sys/wait.h floatingpoint.h ieeefp.h | |
aaa798ba | 15207 | do |
15208 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
82eaf560 | 15209 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15210 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15211 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15212 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
aaa798ba | 15213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15214 | fi | |
82eaf560 | 15215 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15216 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
aaa798ba | 15217 | else |
15218 | # Is the header compilable? | |
82eaf560 | 15219 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15220 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
aaa798ba | 15221 | cat >conftest.$ac_ext <<_ACEOF |
15222 | /* confdefs.h. */ | |
15223 | _ACEOF | |
15224 | cat confdefs.h >>conftest.$ac_ext | |
15225 | cat >>conftest.$ac_ext <<_ACEOF | |
15226 | /* end confdefs.h. */ | |
15227 | $ac_includes_default | |
15228 | #include <$ac_header> | |
15229 | _ACEOF | |
15230 | rm -f conftest.$ac_objext | |
82eaf560 | 15231 | if { (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 |
15253 | else | |
15254 | echo "$as_me: failed program was:" >&5 | |
15255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15256 | ||
82eaf560 | 15257 | ac_header_compiler=no |
aaa798ba | 15258 | fi |
82eaf560 | 15259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15260 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15261 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
aaa798ba | 15262 | |
15263 | # Is the header present? | |
82eaf560 | 15264 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15265 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
aaa798ba | 15266 | cat >conftest.$ac_ext <<_ACEOF |
15267 | /* confdefs.h. */ | |
15268 | _ACEOF | |
15269 | cat confdefs.h >>conftest.$ac_ext | |
15270 | cat >>conftest.$ac_ext <<_ACEOF | |
15271 | /* end confdefs.h. */ | |
15272 | #include <$ac_header> | |
15273 | _ACEOF | |
82eaf560 | 15274 | if { (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 | |
15288 | else | |
15289 | ac_cpp_err=yes | |
15290 | fi | |
15291 | if test -z "$ac_cpp_err"; then | |
aaa798ba | 15292 | ac_header_preproc=yes |
15293 | else | |
15294 | echo "$as_me: failed program was:" >&5 | |
15295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15296 | ||
15297 | ac_header_preproc=no | |
15298 | fi | |
15299 | rm -f conftest.err conftest.$ac_ext | |
82eaf560 | 15300 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15301 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
aaa798ba | 15302 | |
15303 | # So? What about this header? | |
15304 | case $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 | |
15307 | echo "$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 | |
15309 | echo "$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 | |
15314 | echo "$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 | |
15316 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15317 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15318 | echo "$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 | |
15320 | echo "$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 | |
15322 | echo "$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 | |
15324 | echo "$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 | ;; |
15334 | esac | |
82eaf560 | 15335 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15336 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15337 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
aaa798ba | 15338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15339 | else | |
15340 | eval "$as_ac_Header=\$ac_header_preproc" | |
15341 | fi | |
82eaf560 | 15342 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15343 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
aaa798ba | 15344 | |
15345 | fi | |
15346 | if 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 | ||
15351 | fi | |
15352 | ||
15353 | done | |
15354 | ||
15355 | ||
15356 | ||
15357 | ||
99798ba4 | 15358 | |
c0e8efbe | 15359 | |
15360 | for ac_header in fenv.h fptrap.h float.h execinfo.h pwd.h | |
d2455565 | 15361 | do |
15362 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
82eaf560 | 15363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15364 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15366 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4ee9c684 | 15367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
90973b19 | 15368 | fi |
82eaf560 | 15369 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15370 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 15371 | else |
90973b19 | 15372 | # Is the header compilable? |
82eaf560 | 15373 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15374 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
90973b19 | 15375 | cat >conftest.$ac_ext <<_ACEOF |
15376 | /* confdefs.h. */ | |
15377 | _ACEOF | |
15378 | cat confdefs.h >>conftest.$ac_ext | |
15379 | cat >>conftest.$ac_ext <<_ACEOF | |
15380 | /* end confdefs.h. */ | |
15381 | $ac_includes_default | |
15382 | #include <$ac_header> | |
15383 | _ACEOF | |
15384 | rm -f conftest.$ac_objext | |
82eaf560 | 15385 | if { (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 | 15407 | else |
90973b19 | 15408 | echo "$as_me: failed program was:" >&5 |
15409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 15410 | |
82eaf560 | 15411 | ac_header_compiler=no |
90973b19 | 15412 | fi |
82eaf560 | 15413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15414 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15415 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4ee9c684 | 15416 | |
90973b19 | 15417 | # Is the header present? |
82eaf560 | 15418 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15419 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
90973b19 | 15420 | cat >conftest.$ac_ext <<_ACEOF |
15421 | /* confdefs.h. */ | |
15422 | _ACEOF | |
15423 | cat confdefs.h >>conftest.$ac_ext | |
15424 | cat >>conftest.$ac_ext <<_ACEOF | |
15425 | /* end confdefs.h. */ | |
15426 | #include <$ac_header> | |
15427 | _ACEOF | |
82eaf560 | 15428 | if { (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 | |
15442 | else | |
15443 | ac_cpp_err=yes | |
15444 | fi | |
15445 | if test -z "$ac_cpp_err"; then | |
90973b19 | 15446 | ac_header_preproc=yes |
4ee9c684 | 15447 | else |
90973b19 | 15448 | echo "$as_me: failed program was:" >&5 |
15449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 15450 | |
90973b19 | 15451 | ac_header_preproc=no |
15452 | fi | |
15453 | rm -f conftest.err conftest.$ac_ext | |
82eaf560 | 15454 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15455 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4ee9c684 | 15456 | |
90973b19 | 15457 | # So? What about this header? |
15458 | case $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 | |
15461 | echo "$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 | |
15463 | echo "$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 | |
15468 | echo "$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 | |
15470 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15471 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15472 | echo "$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 | |
15474 | echo "$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 | |
15476 | echo "$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 | |
15478 | echo "$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 | 15488 | esac |
82eaf560 | 15489 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15490 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15491 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
90973b19 | 15492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15493 | else | |
15494 | eval "$as_ac_Header=\$ac_header_preproc" | |
15495 | fi | |
82eaf560 | 15496 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15497 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4ee9c684 | 15498 | |
90973b19 | 15499 | fi |
15500 | if 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 | 15505 | fi |
4ee9c684 | 15506 | |
90973b19 | 15507 | done |
4ee9c684 | 15508 | |
90973b19 | 15509 | if test "${ac_cv_header_complex_h+set}" = set; then |
82eaf560 | 15510 | echo "$as_me:$LINENO: checking for complex.h" >&5 |
15511 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
90973b19 | 15512 | if test "${ac_cv_header_complex_h+set}" = set; then |
15513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15514 | fi | |
82eaf560 | 15515 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 |
15516 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
90973b19 | 15517 | else |
15518 | # Is the header compilable? | |
82eaf560 | 15519 | echo "$as_me:$LINENO: checking complex.h usability" >&5 |
15520 | echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6 | |
90973b19 | 15521 | cat >conftest.$ac_ext <<_ACEOF |
15522 | /* confdefs.h. */ | |
15523 | _ACEOF | |
15524 | cat confdefs.h >>conftest.$ac_ext | |
15525 | cat >>conftest.$ac_ext <<_ACEOF | |
15526 | /* end confdefs.h. */ | |
15527 | $ac_includes_default | |
15528 | #include <complex.h> | |
15529 | _ACEOF | |
15530 | rm -f conftest.$ac_objext | |
82eaf560 | 15531 | if { (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 |
15553 | else | |
15554 | echo "$as_me: failed program was:" >&5 | |
15555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 15556 | |
82eaf560 | 15557 | ac_header_compiler=no |
90973b19 | 15558 | fi |
82eaf560 | 15559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15560 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15561 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4ee9c684 | 15562 | |
90973b19 | 15563 | # Is the header present? |
82eaf560 | 15564 | echo "$as_me:$LINENO: checking complex.h presence" >&5 |
15565 | echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6 | |
90973b19 | 15566 | cat >conftest.$ac_ext <<_ACEOF |
15567 | /* confdefs.h. */ | |
15568 | _ACEOF | |
15569 | cat confdefs.h >>conftest.$ac_ext | |
15570 | cat >>conftest.$ac_ext <<_ACEOF | |
15571 | /* end confdefs.h. */ | |
15572 | #include <complex.h> | |
15573 | _ACEOF | |
82eaf560 | 15574 | if { (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 | |
15588 | else | |
15589 | ac_cpp_err=yes | |
15590 | fi | |
15591 | if test -z "$ac_cpp_err"; then | |
90973b19 | 15592 | ac_header_preproc=yes |
15593 | else | |
15594 | echo "$as_me: failed program was:" >&5 | |
15595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 15596 | |
90973b19 | 15597 | ac_header_preproc=no |
15598 | fi | |
15599 | rm -f conftest.err conftest.$ac_ext | |
82eaf560 | 15600 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15601 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4ee9c684 | 15602 | |
90973b19 | 15603 | # So? What about this header? |
15604 | case $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 | |
15607 | echo "$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 | |
15609 | echo "$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 | |
15614 | echo "$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 | |
15616 | echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;} | |
15617 | { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5 | |
15618 | echo "$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 | |
15620 | echo "$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 | |
15622 | echo "$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 | |
15624 | echo "$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 | 15634 | esac |
82eaf560 | 15635 | echo "$as_me:$LINENO: checking for complex.h" >&5 |
15636 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
90973b19 | 15637 | if test "${ac_cv_header_complex_h+set}" = set; then |
15638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15639 | else | |
15640 | ac_cv_header_complex_h=$ac_header_preproc | |
15641 | fi | |
82eaf560 | 15642 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 |
15643 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
4ee9c684 | 15644 | |
15645 | fi | |
90973b19 | 15646 | if test $ac_cv_header_complex_h = yes; then |
4ee9c684 | 15647 | |
90973b19 | 15648 | cat >>confdefs.h <<\_ACEOF |
15649 | #define HAVE_COMPLEX_H 1 | |
15650 | _ACEOF | |
4ee9c684 | 15651 | |
90973b19 | 15652 | fi |
4ee9c684 | 15653 | |
15654 | ||
4ee9c684 | 15655 | |
56c15991 | 15656 | |
15657 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
15658 | ||
15659 | acx_cv_header_stdint=stddef.h | |
15660 | acx_cv_header_stdint_kind="(already complete)" | |
15661 | for 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 |
15669 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
56c15991 | 15670 | if test "${ac_cv_type_uintmax_t+set}" = set; then |
15671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15672 | else | |
15673 | cat >conftest.$ac_ext <<_ACEOF | |
15674 | /* confdefs.h. */ | |
15675 | _ACEOF | |
15676 | cat confdefs.h >>conftest.$ac_ext | |
15677 | cat >>conftest.$ac_ext <<_ACEOF | |
15678 | /* end confdefs.h. */ | |
15679 | #include <sys/types.h> | |
15680 | #include <$i> | |
15681 | ||
15682 | int | |
15683 | main () | |
15684 | { | |
82eaf560 | 15685 | if ((uintmax_t *) 0) |
56c15991 | 15686 | return 0; |
82eaf560 | 15687 | if (sizeof (uintmax_t)) |
56c15991 | 15688 | return 0; |
15689 | ; | |
15690 | return 0; | |
15691 | } | |
15692 | _ACEOF | |
15693 | rm -f conftest.$ac_objext | |
82eaf560 | 15694 | if { (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 |
15716 | else | |
15717 | echo "$as_me: failed program was:" >&5 | |
15718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15719 | ||
82eaf560 | 15720 | ac_cv_type_uintmax_t=no |
56c15991 | 15721 | fi |
82eaf560 | 15722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15723 | fi |
82eaf560 | 15724 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 |
15725 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
56c15991 | 15726 | if test $ac_cv_type_uintmax_t = yes; then |
15727 | acx_cv_header_stdint=$i | |
15728 | else | |
15729 | continue | |
15730 | fi | |
15731 | ||
82eaf560 | 15732 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
15733 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
56c15991 | 15734 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
15735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15736 | else | |
15737 | cat >conftest.$ac_ext <<_ACEOF | |
15738 | /* confdefs.h. */ | |
15739 | _ACEOF | |
15740 | cat confdefs.h >>conftest.$ac_ext | |
15741 | cat >>conftest.$ac_ext <<_ACEOF | |
15742 | /* end confdefs.h. */ | |
15743 | #include <sys/types.h> | |
15744 | #include <$i> | |
15745 | ||
15746 | int | |
15747 | main () | |
15748 | { | |
82eaf560 | 15749 | if ((uintptr_t *) 0) |
56c15991 | 15750 | return 0; |
82eaf560 | 15751 | if (sizeof (uintptr_t)) |
56c15991 | 15752 | return 0; |
15753 | ; | |
15754 | return 0; | |
15755 | } | |
15756 | _ACEOF | |
15757 | rm -f conftest.$ac_objext | |
82eaf560 | 15758 | if { (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 |
15780 | else | |
15781 | echo "$as_me: failed program was:" >&5 | |
15782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15783 | ||
82eaf560 | 15784 | ac_cv_type_uintptr_t=no |
56c15991 | 15785 | fi |
82eaf560 | 15786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15787 | fi |
82eaf560 | 15788 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
15789 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
56c15991 | 15790 | if test $ac_cv_type_uintptr_t = yes; then |
15791 | : | |
15792 | else | |
15793 | acx_cv_header_stdint_kind="(mostly complete)" | |
15794 | fi | |
15795 | ||
82eaf560 | 15796 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 |
15797 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
56c15991 | 15798 | if test "${ac_cv_type_int_least32_t+set}" = set; then |
15799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15800 | else | |
15801 | cat >conftest.$ac_ext <<_ACEOF | |
15802 | /* confdefs.h. */ | |
15803 | _ACEOF | |
15804 | cat confdefs.h >>conftest.$ac_ext | |
15805 | cat >>conftest.$ac_ext <<_ACEOF | |
15806 | /* end confdefs.h. */ | |
15807 | #include <sys/types.h> | |
15808 | #include <$i> | |
15809 | ||
15810 | int | |
15811 | main () | |
15812 | { | |
82eaf560 | 15813 | if ((int_least32_t *) 0) |
56c15991 | 15814 | return 0; |
82eaf560 | 15815 | if (sizeof (int_least32_t)) |
56c15991 | 15816 | return 0; |
15817 | ; | |
15818 | return 0; | |
15819 | } | |
15820 | _ACEOF | |
15821 | rm -f conftest.$ac_objext | |
82eaf560 | 15822 | if { (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 |
15844 | else | |
15845 | echo "$as_me: failed program was:" >&5 | |
15846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15847 | ||
82eaf560 | 15848 | ac_cv_type_int_least32_t=no |
56c15991 | 15849 | fi |
82eaf560 | 15850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15851 | fi |
82eaf560 | 15852 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 |
15853 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
56c15991 | 15854 | if test $ac_cv_type_int_least32_t = yes; then |
15855 | : | |
15856 | else | |
15857 | acx_cv_header_stdint_kind="(mostly complete)" | |
15858 | fi | |
15859 | ||
82eaf560 | 15860 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 |
15861 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
56c15991 | 15862 | if test "${ac_cv_type_int_fast32_t+set}" = set; then |
15863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15864 | else | |
15865 | cat >conftest.$ac_ext <<_ACEOF | |
15866 | /* confdefs.h. */ | |
15867 | _ACEOF | |
15868 | cat confdefs.h >>conftest.$ac_ext | |
15869 | cat >>conftest.$ac_ext <<_ACEOF | |
15870 | /* end confdefs.h. */ | |
15871 | #include <sys/types.h> | |
15872 | #include <$i> | |
15873 | ||
15874 | int | |
15875 | main () | |
15876 | { | |
82eaf560 | 15877 | if ((int_fast32_t *) 0) |
56c15991 | 15878 | return 0; |
82eaf560 | 15879 | if (sizeof (int_fast32_t)) |
56c15991 | 15880 | return 0; |
15881 | ; | |
15882 | return 0; | |
15883 | } | |
15884 | _ACEOF | |
15885 | rm -f conftest.$ac_objext | |
82eaf560 | 15886 | if { (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 |
15908 | else | |
15909 | echo "$as_me: failed program was:" >&5 | |
15910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15911 | ||
82eaf560 | 15912 | ac_cv_type_int_fast32_t=no |
56c15991 | 15913 | fi |
82eaf560 | 15914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15915 | fi |
82eaf560 | 15916 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 |
15917 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
56c15991 | 15918 | if test $ac_cv_type_int_fast32_t = yes; then |
15919 | : | |
15920 | else | |
15921 | acx_cv_header_stdint_kind="(mostly complete)" | |
15922 | fi | |
15923 | ||
82eaf560 | 15924 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
15925 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
56c15991 | 15926 | if test "${ac_cv_type_uint64_t+set}" = set; then |
15927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15928 | else | |
15929 | cat >conftest.$ac_ext <<_ACEOF | |
15930 | /* confdefs.h. */ | |
15931 | _ACEOF | |
15932 | cat confdefs.h >>conftest.$ac_ext | |
15933 | cat >>conftest.$ac_ext <<_ACEOF | |
15934 | /* end confdefs.h. */ | |
15935 | #include <sys/types.h> | |
15936 | #include <$i> | |
15937 | ||
15938 | int | |
15939 | main () | |
15940 | { | |
82eaf560 | 15941 | if ((uint64_t *) 0) |
56c15991 | 15942 | return 0; |
82eaf560 | 15943 | if (sizeof (uint64_t)) |
56c15991 | 15944 | return 0; |
15945 | ; | |
15946 | return 0; | |
15947 | } | |
15948 | _ACEOF | |
15949 | rm -f conftest.$ac_objext | |
82eaf560 | 15950 | if { (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 |
15972 | else | |
15973 | echo "$as_me: failed program was:" >&5 | |
15974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15975 | ||
82eaf560 | 15976 | ac_cv_type_uint64_t=no |
56c15991 | 15977 | fi |
82eaf560 | 15978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 15979 | fi |
82eaf560 | 15980 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
15981 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
56c15991 | 15982 | if test $ac_cv_type_uint64_t = yes; then |
15983 | : | |
15984 | else | |
15985 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
15986 | fi | |
15987 | ||
15988 | break | |
15989 | done | |
15990 | if 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 |
15998 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
56c15991 | 15999 | if test "${ac_cv_type_uint32_t+set}" = set; then |
16000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16001 | else | |
16002 | cat >conftest.$ac_ext <<_ACEOF | |
16003 | /* confdefs.h. */ | |
16004 | _ACEOF | |
16005 | cat confdefs.h >>conftest.$ac_ext | |
16006 | cat >>conftest.$ac_ext <<_ACEOF | |
16007 | /* end confdefs.h. */ | |
16008 | #include <sys/types.h> | |
16009 | #include <$i> | |
16010 | ||
16011 | int | |
16012 | main () | |
16013 | { | |
82eaf560 | 16014 | if ((uint32_t *) 0) |
56c15991 | 16015 | return 0; |
82eaf560 | 16016 | if (sizeof (uint32_t)) |
56c15991 | 16017 | return 0; |
16018 | ; | |
16019 | return 0; | |
16020 | } | |
16021 | _ACEOF | |
16022 | rm -f conftest.$ac_objext | |
82eaf560 | 16023 | if { (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 |
16045 | else | |
16046 | echo "$as_me: failed program was:" >&5 | |
16047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16048 | ||
82eaf560 | 16049 | ac_cv_type_uint32_t=no |
56c15991 | 16050 | fi |
82eaf560 | 16051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16052 | fi |
82eaf560 | 16053 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
16054 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
56c15991 | 16055 | if test $ac_cv_type_uint32_t = yes; then |
16056 | acx_cv_header_stdint=$i | |
16057 | else | |
16058 | continue | |
16059 | fi | |
16060 | ||
82eaf560 | 16061 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
16062 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
56c15991 | 16063 | if test "${ac_cv_type_uint64_t+set}" = set; then |
16064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16065 | else | |
16066 | cat >conftest.$ac_ext <<_ACEOF | |
16067 | /* confdefs.h. */ | |
16068 | _ACEOF | |
16069 | cat confdefs.h >>conftest.$ac_ext | |
16070 | cat >>conftest.$ac_ext <<_ACEOF | |
16071 | /* end confdefs.h. */ | |
16072 | #include <sys/types.h> | |
16073 | #include <$i> | |
16074 | ||
16075 | int | |
16076 | main () | |
16077 | { | |
82eaf560 | 16078 | if ((uint64_t *) 0) |
56c15991 | 16079 | return 0; |
82eaf560 | 16080 | if (sizeof (uint64_t)) |
56c15991 | 16081 | return 0; |
16082 | ; | |
16083 | return 0; | |
16084 | } | |
16085 | _ACEOF | |
16086 | rm -f conftest.$ac_objext | |
82eaf560 | 16087 | if { (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 |
16109 | else | |
16110 | echo "$as_me: failed program was:" >&5 | |
16111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16112 | ||
82eaf560 | 16113 | ac_cv_type_uint64_t=no |
56c15991 | 16114 | fi |
82eaf560 | 16115 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16116 | fi |
82eaf560 | 16117 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
16118 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
16af3de2 | 16119 | |
82eaf560 | 16120 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
16121 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
16af3de2 | 16122 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
16123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
997107e3 | 16124 | else |
16af3de2 | 16125 | cat >conftest.$ac_ext <<_ACEOF |
16126 | /* confdefs.h. */ | |
16127 | _ACEOF | |
16128 | cat confdefs.h >>conftest.$ac_ext | |
16129 | cat >>conftest.$ac_ext <<_ACEOF | |
16130 | /* end confdefs.h. */ | |
16131 | #include <sys/types.h> | |
16132 | #include <$i> | |
16133 | ||
16134 | int | |
16135 | main () | |
16136 | { | |
82eaf560 | 16137 | if ((uintptr_t *) 0) |
16af3de2 | 16138 | return 0; |
82eaf560 | 16139 | if (sizeof (uintptr_t)) |
16af3de2 | 16140 | return 0; |
16141 | ; | |
16142 | return 0; | |
16143 | } | |
16144 | _ACEOF | |
16145 | rm -f conftest.$ac_objext | |
82eaf560 | 16146 | if { (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 |
16168 | else | |
16169 | echo "$as_me: failed program was:" >&5 | |
16170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16171 | ||
82eaf560 | 16172 | ac_cv_type_uintptr_t=no |
16af3de2 | 16173 | fi |
82eaf560 | 16174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
997107e3 | 16175 | fi |
82eaf560 | 16176 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
16177 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
56c15991 | 16178 | |
16179 | break | |
16180 | done | |
16181 | fi | |
16182 | if 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 |
16189 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
56c15991 | 16190 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
16191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16192 | else | |
16193 | cat >conftest.$ac_ext <<_ACEOF | |
16194 | /* confdefs.h. */ | |
16195 | _ACEOF | |
16196 | cat confdefs.h >>conftest.$ac_ext | |
16197 | cat >>conftest.$ac_ext <<_ACEOF | |
16198 | /* end confdefs.h. */ | |
16199 | #include <sys/types.h> | |
16200 | #include <$i> | |
16201 | ||
16202 | int | |
16203 | main () | |
16204 | { | |
82eaf560 | 16205 | if ((u_int32_t *) 0) |
56c15991 | 16206 | return 0; |
82eaf560 | 16207 | if (sizeof (u_int32_t)) |
56c15991 | 16208 | return 0; |
16209 | ; | |
16210 | return 0; | |
16211 | } | |
16212 | _ACEOF | |
16213 | rm -f conftest.$ac_objext | |
82eaf560 | 16214 | if { (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 |
16236 | else | |
16237 | echo "$as_me: failed program was:" >&5 | |
16238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16239 | ||
82eaf560 | 16240 | ac_cv_type_u_int32_t=no |
56c15991 | 16241 | fi |
82eaf560 | 16242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16243 | fi |
82eaf560 | 16244 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
16245 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
56c15991 | 16246 | if test $ac_cv_type_u_int32_t = yes; then |
16247 | acx_cv_header_stdint=$i | |
16248 | else | |
16249 | continue | |
16250 | fi | |
16251 | ||
82eaf560 | 16252 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
16253 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
56c15991 | 16254 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
16255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16256 | else | |
16257 | cat >conftest.$ac_ext <<_ACEOF | |
16258 | /* confdefs.h. */ | |
16259 | _ACEOF | |
16260 | cat confdefs.h >>conftest.$ac_ext | |
16261 | cat >>conftest.$ac_ext <<_ACEOF | |
16262 | /* end confdefs.h. */ | |
16263 | #include <sys/types.h> | |
16264 | #include <$i> | |
16265 | ||
16266 | int | |
16267 | main () | |
16268 | { | |
82eaf560 | 16269 | if ((u_int64_t *) 0) |
56c15991 | 16270 | return 0; |
82eaf560 | 16271 | if (sizeof (u_int64_t)) |
56c15991 | 16272 | return 0; |
16273 | ; | |
16274 | return 0; | |
16275 | } | |
16276 | _ACEOF | |
16277 | rm -f conftest.$ac_objext | |
82eaf560 | 16278 | if { (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 |
16300 | else | |
16301 | echo "$as_me: failed program was:" >&5 | |
16302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16303 | ||
82eaf560 | 16304 | ac_cv_type_u_int64_t=no |
56c15991 | 16305 | fi |
82eaf560 | 16306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16307 | fi |
82eaf560 | 16308 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
16309 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
56c15991 | 16310 | |
16311 | break | |
16312 | done | |
16313 | fi | |
16314 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16315 | acx_cv_header_stdint_kind="(using manual detection)" | |
16316 | fi | |
16317 | ||
16318 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
16319 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
16320 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
16321 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
16322 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
16323 | ||
16324 | # ----------------- Summarize what we found so far | |
16325 | ||
82eaf560 | 16326 | echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5 |
16327 | echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6 | |
56c15991 | 16328 | |
82eaf560 | 16329 | case `$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 | 16334 | echo 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 |
16340 | echo "$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 | |
16342 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16343 | *) ;; | |
16344 | esac | |
16345 | ||
82eaf560 | 16346 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
16347 | echo "${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 * | |
16352 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
82eaf560 | 16353 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 |
16354 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
56c15991 | 16355 | if test "${ac_cv_type_void_p+set}" = set; then |
16356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16357 | else | |
16358 | cat >conftest.$ac_ext <<_ACEOF | |
16359 | /* confdefs.h. */ | |
16360 | _ACEOF | |
16361 | cat confdefs.h >>conftest.$ac_ext | |
16362 | cat >>conftest.$ac_ext <<_ACEOF | |
16363 | /* end confdefs.h. */ | |
16364 | $ac_includes_default | |
16365 | int | |
16366 | main () | |
16367 | { | |
82eaf560 | 16368 | if ((void * *) 0) |
56c15991 | 16369 | return 0; |
82eaf560 | 16370 | if (sizeof (void *)) |
56c15991 | 16371 | return 0; |
16372 | ; | |
16373 | return 0; | |
16374 | } | |
16375 | _ACEOF | |
16376 | rm -f conftest.$ac_objext | |
82eaf560 | 16377 | if { (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 |
16399 | else | |
16400 | echo "$as_me: failed program was:" >&5 | |
16401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16402 | ||
82eaf560 | 16403 | ac_cv_type_void_p=no |
56c15991 | 16404 | fi |
82eaf560 | 16405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16406 | fi |
82eaf560 | 16407 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
16408 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
56c15991 | 16409 | |
82eaf560 | 16410 | echo "$as_me:$LINENO: checking size of void *" >&5 |
16411 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
56c15991 | 16412 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
16413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16414 | else | |
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. | |
16422 | cat >conftest.$ac_ext <<_ACEOF | |
16423 | /* confdefs.h. */ | |
16424 | _ACEOF | |
16425 | cat confdefs.h >>conftest.$ac_ext | |
16426 | cat >>conftest.$ac_ext <<_ACEOF | |
16427 | /* end confdefs.h. */ | |
16428 | $ac_includes_default | |
16429 | int | |
16430 | main () | |
16431 | { | |
82eaf560 | 16432 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
56c15991 | 16433 | test_array [0] = 0 |
16434 | ||
16435 | ; | |
16436 | return 0; | |
16437 | } | |
16438 | _ACEOF | |
16439 | rm -f conftest.$ac_objext | |
82eaf560 | 16440 | if { (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 | |
16466 | cat confdefs.h >>conftest.$ac_ext | |
16467 | cat >>conftest.$ac_ext <<_ACEOF | |
16468 | /* end confdefs.h. */ | |
16469 | $ac_includes_default | |
16470 | int | |
16471 | main () | |
16472 | { | |
82eaf560 | 16473 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
56c15991 | 16474 | test_array [0] = 0 |
16475 | ||
16476 | ; | |
16477 | return 0; | |
16478 | } | |
16479 | _ACEOF | |
16480 | rm -f conftest.$ac_objext | |
82eaf560 | 16481 | if { (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 |
16503 | else | |
16504 | echo "$as_me: failed program was:" >&5 | |
16505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16506 | ||
82eaf560 | 16507 | ac_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 | 16513 | fi |
82eaf560 | 16514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16515 | done |
16516 | else | |
16517 | echo "$as_me: failed program was:" >&5 | |
16518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16519 | ||
82eaf560 | 16520 | cat >conftest.$ac_ext <<_ACEOF |
56c15991 | 16521 | /* confdefs.h. */ |
16522 | _ACEOF | |
16523 | cat confdefs.h >>conftest.$ac_ext | |
16524 | cat >>conftest.$ac_ext <<_ACEOF | |
16525 | /* end confdefs.h. */ | |
16526 | $ac_includes_default | |
16527 | int | |
16528 | main () | |
16529 | { | |
82eaf560 | 16530 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
56c15991 | 16531 | test_array [0] = 0 |
16532 | ||
16533 | ; | |
16534 | return 0; | |
16535 | } | |
16536 | _ACEOF | |
16537 | rm -f conftest.$ac_objext | |
82eaf560 | 16538 | if { (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 | |
16564 | cat confdefs.h >>conftest.$ac_ext | |
16565 | cat >>conftest.$ac_ext <<_ACEOF | |
16566 | /* end confdefs.h. */ | |
16567 | $ac_includes_default | |
16568 | int | |
16569 | main () | |
16570 | { | |
82eaf560 | 16571 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
56c15991 | 16572 | test_array [0] = 0 |
16573 | ||
16574 | ; | |
16575 | return 0; | |
16576 | } | |
16577 | _ACEOF | |
16578 | rm -f conftest.$ac_objext | |
82eaf560 | 16579 | if { (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 |
16601 | else | |
16602 | echo "$as_me: failed program was:" >&5 | |
16603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16604 | ||
82eaf560 | 16605 | ac_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 | 16611 | fi |
82eaf560 | 16612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16613 | done |
16614 | else | |
16615 | echo "$as_me: failed program was:" >&5 | |
16616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16617 | ||
82eaf560 | 16618 | ac_lo= ac_hi= |
56c15991 | 16619 | fi |
82eaf560 | 16620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16621 | fi |
82eaf560 | 16622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16623 | # Binary search between lo and hi bounds. |
16624 | while 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 | |
16629 | cat confdefs.h >>conftest.$ac_ext | |
16630 | cat >>conftest.$ac_ext <<_ACEOF | |
16631 | /* end confdefs.h. */ | |
16632 | $ac_includes_default | |
16633 | int | |
16634 | main () | |
16635 | { | |
82eaf560 | 16636 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
56c15991 | 16637 | test_array [0] = 0 |
16638 | ||
16639 | ; | |
16640 | return 0; | |
16641 | } | |
16642 | _ACEOF | |
16643 | rm -f conftest.$ac_objext | |
82eaf560 | 16644 | if { (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 |
16666 | else | |
16667 | echo "$as_me: failed program was:" >&5 | |
16668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16669 | ||
82eaf560 | 16670 | ac_lo=`expr '(' $ac_mid ')' + 1` |
56c15991 | 16671 | fi |
82eaf560 | 16672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16673 | done |
16674 | case $ac_lo in | |
16675 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
5b2c7553 | 16676 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16677 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16678 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
56c15991 | 16679 | See \`config.log' for more details." >&5 |
82eaf560 | 16680 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
56c15991 | 16681 | See \`config.log' for more details." >&2;} |
5b2c7553 | 16682 | { (exit 1); exit 1; }; }; } ;; |
56c15991 | 16683 | esac |
82eaf560 | 16684 | else |
16685 | if test "$cross_compiling" = yes; then | |
5b2c7553 | 16686 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16687 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16688 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
82eaf560 | 16689 | See \`config.log' for more details." >&5 |
16690 | echo "$as_me: error: cannot run test program while cross compiling | |
16691 | See \`config.log' for more details." >&2;} | |
5b2c7553 | 16692 | { (exit 1); exit 1; }; }; } |
56c15991 | 16693 | else |
16694 | cat >conftest.$ac_ext <<_ACEOF | |
16695 | /* confdefs.h. */ | |
16696 | _ACEOF | |
16697 | cat confdefs.h >>conftest.$ac_ext | |
16698 | cat >>conftest.$ac_ext <<_ACEOF | |
16699 | /* end confdefs.h. */ | |
16700 | $ac_includes_default | |
82eaf560 | 16701 | long longval () { return (long) (sizeof (void *)); } |
16702 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
56c15991 | 16703 | #include <stdio.h> |
16704 | #include <stdlib.h> | |
16705 | int | |
16706 | main () | |
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 | |
16732 | rm -f conftest$ac_exeext | |
82eaf560 | 16733 | if { (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` | |
16744 | else | |
16745 | echo "$as_me: program exited with status $ac_status" >&5 | |
16746 | echo "$as_me: failed program was:" >&5 | |
16747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16748 | ||
16749 | ( exit $ac_status ) | |
5b2c7553 | 16750 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16751 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
82eaf560 | 16752 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
56c15991 | 16753 | See \`config.log' for more details." >&5 |
82eaf560 | 16754 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
56c15991 | 16755 | See \`config.log' for more details." >&2;} |
5b2c7553 | 16756 | { (exit 1); exit 1; }; }; } |
82eaf560 | 16757 | fi |
16758 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
56c15991 | 16759 | fi |
16760 | fi | |
16761 | rm -f conftest.val | |
82eaf560 | 16762 | else |
16763 | ac_cv_sizeof_void_p=0 | |
56c15991 | 16764 | fi |
82eaf560 | 16765 | fi |
16766 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
16767 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
56c15991 | 16768 | cat >>confdefs.h <<_ACEOF |
16769 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
16770 | _ACEOF | |
16771 | ||
16772 | ;; | |
16773 | esac | |
16774 | ||
16775 | # Lacking an uint64_t? Test size of long | |
16776 | case "$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 |
16778 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
56c15991 | 16779 | if test "${ac_cv_type_long+set}" = set; then |
16780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16781 | else | |
16782 | cat >conftest.$ac_ext <<_ACEOF | |
16783 | /* confdefs.h. */ | |
16784 | _ACEOF | |
16785 | cat confdefs.h >>conftest.$ac_ext | |
16786 | cat >>conftest.$ac_ext <<_ACEOF | |
16787 | /* end confdefs.h. */ | |
16788 | $ac_includes_default | |
16789 | int | |
16790 | main () | |
16791 | { | |
82eaf560 | 16792 | if ((long *) 0) |
56c15991 | 16793 | return 0; |
82eaf560 | 16794 | if (sizeof (long)) |
56c15991 | 16795 | return 0; |
16796 | ; | |
16797 | return 0; | |
16798 | } | |
16799 | _ACEOF | |
16800 | rm -f conftest.$ac_objext | |
82eaf560 | 16801 | if { (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 |
16823 | else | |
16824 | echo "$as_me: failed program was:" >&5 | |
16825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16826 | ||
82eaf560 | 16827 | ac_cv_type_long=no |
56c15991 | 16828 | fi |
82eaf560 | 16829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16830 | fi |
82eaf560 | 16831 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
16832 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
56c15991 | 16833 | |
82eaf560 | 16834 | echo "$as_me:$LINENO: checking size of long" >&5 |
16835 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
56c15991 | 16836 | if test "${ac_cv_sizeof_long+set}" = set; then |
16837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16838 | else | |
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. | |
16846 | cat >conftest.$ac_ext <<_ACEOF | |
16847 | /* confdefs.h. */ | |
16848 | _ACEOF | |
16849 | cat confdefs.h >>conftest.$ac_ext | |
16850 | cat >>conftest.$ac_ext <<_ACEOF | |
16851 | /* end confdefs.h. */ | |
16852 | $ac_includes_default | |
16853 | int | |
16854 | main () | |
16855 | { | |
82eaf560 | 16856 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
56c15991 | 16857 | test_array [0] = 0 |
16858 | ||
16859 | ; | |
16860 | return 0; | |
16861 | } | |
16862 | _ACEOF | |
16863 | rm -f conftest.$ac_objext | |
82eaf560 | 16864 | if { (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 | |
16890 | cat confdefs.h >>conftest.$ac_ext | |
16891 | cat >>conftest.$ac_ext <<_ACEOF | |
16892 | /* end confdefs.h. */ | |
16893 | $ac_includes_default | |
16894 | int | |
16895 | main () | |
16896 | { | |
82eaf560 | 16897 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
56c15991 | 16898 | test_array [0] = 0 |
16899 | ||
16900 | ; | |
16901 | return 0; | |
16902 | } | |
16903 | _ACEOF | |
16904 | rm -f conftest.$ac_objext | |
82eaf560 | 16905 | if { (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 |
16927 | else | |
16928 | echo "$as_me: failed program was:" >&5 | |
16929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16930 | ||
82eaf560 | 16931 | ac_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 | 16937 | fi |
82eaf560 | 16938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 16939 | done |
16940 | else | |
16941 | echo "$as_me: failed program was:" >&5 | |
16942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16943 | ||
82eaf560 | 16944 | cat >conftest.$ac_ext <<_ACEOF |
56c15991 | 16945 | /* confdefs.h. */ |
16946 | _ACEOF | |
16947 | cat confdefs.h >>conftest.$ac_ext | |
16948 | cat >>conftest.$ac_ext <<_ACEOF | |
16949 | /* end confdefs.h. */ | |
16950 | $ac_includes_default | |
16951 | int | |
16952 | main () | |
16953 | { | |
82eaf560 | 16954 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
56c15991 | 16955 | test_array [0] = 0 |
16956 | ||
16957 | ; | |
16958 | return 0; | |
16959 | } | |
16960 | _ACEOF | |
16961 | rm -f conftest.$ac_objext | |
82eaf560 | 16962 | if { (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 | |
16988 | cat confdefs.h >>conftest.$ac_ext | |
16989 | cat >>conftest.$ac_ext <<_ACEOF | |
16990 | /* end confdefs.h. */ | |
16991 | $ac_includes_default | |
16992 | int | |
16993 | main () | |
16994 | { | |
82eaf560 | 16995 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
56c15991 | 16996 | test_array [0] = 0 |
16997 | ||
16998 | ; | |
16999 | return 0; | |
17000 | } | |
17001 | _ACEOF | |
17002 | rm -f conftest.$ac_objext | |
82eaf560 | 17003 | if { (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 |
17025 | else | |
17026 | echo "$as_me: failed program was:" >&5 | |
17027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17028 | ||
82eaf560 | 17029 | ac_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 | 17035 | fi |
82eaf560 | 17036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17037 | done |
17038 | else | |
17039 | echo "$as_me: failed program was:" >&5 | |
17040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17041 | ||
82eaf560 | 17042 | ac_lo= ac_hi= |
56c15991 | 17043 | fi |
82eaf560 | 17044 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17045 | fi |
82eaf560 | 17046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17047 | # Binary search between lo and hi bounds. |
17048 | while 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 | |
17053 | cat confdefs.h >>conftest.$ac_ext | |
17054 | cat >>conftest.$ac_ext <<_ACEOF | |
17055 | /* end confdefs.h. */ | |
17056 | $ac_includes_default | |
17057 | int | |
17058 | main () | |
17059 | { | |
82eaf560 | 17060 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
56c15991 | 17061 | test_array [0] = 0 |
17062 | ||
17063 | ; | |
17064 | return 0; | |
17065 | } | |
17066 | _ACEOF | |
17067 | rm -f conftest.$ac_objext | |
82eaf560 | 17068 | if { (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 |
17090 | else | |
17091 | echo "$as_me: failed program was:" >&5 | |
17092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17093 | ||
82eaf560 | 17094 | ac_lo=`expr '(' $ac_mid ')' + 1` |
56c15991 | 17095 | fi |
82eaf560 | 17096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17097 | done |
17098 | case $ac_lo in | |
17099 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
5b2c7553 | 17100 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
17101 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17102 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
56c15991 | 17103 | See \`config.log' for more details." >&5 |
82eaf560 | 17104 | echo "$as_me: error: cannot compute sizeof (long), 77 |
56c15991 | 17105 | See \`config.log' for more details." >&2;} |
5b2c7553 | 17106 | { (exit 1); exit 1; }; }; } ;; |
56c15991 | 17107 | esac |
82eaf560 | 17108 | else |
17109 | if test "$cross_compiling" = yes; then | |
5b2c7553 | 17110 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
17111 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17112 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
82eaf560 | 17113 | See \`config.log' for more details." >&5 |
17114 | echo "$as_me: error: cannot run test program while cross compiling | |
17115 | See \`config.log' for more details." >&2;} | |
5b2c7553 | 17116 | { (exit 1); exit 1; }; }; } |
56c15991 | 17117 | else |
17118 | cat >conftest.$ac_ext <<_ACEOF | |
17119 | /* confdefs.h. */ | |
17120 | _ACEOF | |
17121 | cat confdefs.h >>conftest.$ac_ext | |
17122 | cat >>conftest.$ac_ext <<_ACEOF | |
17123 | /* end confdefs.h. */ | |
17124 | $ac_includes_default | |
82eaf560 | 17125 | long longval () { return (long) (sizeof (long)); } |
17126 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
56c15991 | 17127 | #include <stdio.h> |
17128 | #include <stdlib.h> | |
17129 | int | |
17130 | main () | |
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 | |
17156 | rm -f conftest$ac_exeext | |
82eaf560 | 17157 | if { (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` | |
17168 | else | |
17169 | echo "$as_me: program exited with status $ac_status" >&5 | |
17170 | echo "$as_me: failed program was:" >&5 | |
17171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17172 | ||
17173 | ( exit $ac_status ) | |
5b2c7553 | 17174 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
17175 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
82eaf560 | 17176 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
56c15991 | 17177 | See \`config.log' for more details." >&5 |
82eaf560 | 17178 | echo "$as_me: error: cannot compute sizeof (long), 77 |
56c15991 | 17179 | See \`config.log' for more details." >&2;} |
5b2c7553 | 17180 | { (exit 1); exit 1; }; }; } |
82eaf560 | 17181 | fi |
17182 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
56c15991 | 17183 | fi |
17184 | fi | |
17185 | rm -f conftest.val | |
82eaf560 | 17186 | else |
17187 | ac_cv_sizeof_long=0 | |
56c15991 | 17188 | fi |
82eaf560 | 17189 | fi |
17190 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
17191 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
56c15991 | 17192 | cat >>confdefs.h <<_ACEOF |
17193 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
17194 | _ACEOF | |
17195 | ||
17196 | ;; | |
17197 | esac | |
17198 | ||
17199 | if 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 |
17202 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
56c15991 | 17203 | if test "${ac_cv_type_int+set}" = set; then |
17204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17205 | else | |
17206 | cat >conftest.$ac_ext <<_ACEOF | |
17207 | /* confdefs.h. */ | |
17208 | _ACEOF | |
17209 | cat confdefs.h >>conftest.$ac_ext | |
17210 | cat >>conftest.$ac_ext <<_ACEOF | |
17211 | /* end confdefs.h. */ | |
17212 | $ac_includes_default | |
17213 | int | |
17214 | main () | |
17215 | { | |
82eaf560 | 17216 | if ((int *) 0) |
56c15991 | 17217 | return 0; |
82eaf560 | 17218 | if (sizeof (int)) |
56c15991 | 17219 | return 0; |
17220 | ; | |
17221 | return 0; | |
17222 | } | |
17223 | _ACEOF | |
17224 | rm -f conftest.$ac_objext | |
82eaf560 | 17225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17226 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 17227 | ac_status=$? |
17228 | grep -v '^ *+' conftest.er1 >conftest.err | |
17229 | rm -f conftest.er1 | |
17230 | cat conftest.err >&5 | |
17231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
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 |
17247 | else | |
17248 | echo "$as_me: failed program was:" >&5 | |
17249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17250 | ||
82eaf560 | 17251 | ac_cv_type_int=no |
56c15991 | 17252 | fi |
82eaf560 | 17253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17254 | fi |
82eaf560 | 17255 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
17256 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
56c15991 | 17257 | |
82eaf560 | 17258 | echo "$as_me:$LINENO: checking size of int" >&5 |
17259 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
56c15991 | 17260 | if test "${ac_cv_sizeof_int+set}" = set; then |
17261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17262 | else | |
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. | |
17270 | cat >conftest.$ac_ext <<_ACEOF | |
17271 | /* confdefs.h. */ | |
17272 | _ACEOF | |
17273 | cat confdefs.h >>conftest.$ac_ext | |
17274 | cat >>conftest.$ac_ext <<_ACEOF | |
17275 | /* end confdefs.h. */ | |
17276 | $ac_includes_default | |
17277 | int | |
17278 | main () | |
17279 | { | |
82eaf560 | 17280 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
56c15991 | 17281 | test_array [0] = 0 |
17282 | ||
17283 | ; | |
17284 | return 0; | |
17285 | } | |
17286 | _ACEOF | |
17287 | rm -f conftest.$ac_objext | |
82eaf560 | 17288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17289 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 17290 | ac_status=$? |
17291 | grep -v '^ *+' conftest.er1 >conftest.err | |
17292 | rm -f conftest.er1 | |
17293 | cat conftest.err >&5 | |
17294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
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 | |
17314 | cat confdefs.h >>conftest.$ac_ext | |
17315 | cat >>conftest.$ac_ext <<_ACEOF | |
17316 | /* end confdefs.h. */ | |
17317 | $ac_includes_default | |
17318 | int | |
17319 | main () | |
17320 | { | |
82eaf560 | 17321 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
56c15991 | 17322 | test_array [0] = 0 |
17323 | ||
17324 | ; | |
17325 | return 0; | |
17326 | } | |
17327 | _ACEOF | |
17328 | rm -f conftest.$ac_objext | |
82eaf560 | 17329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17330 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 17331 | ac_status=$? |
17332 | grep -v '^ *+' conftest.er1 >conftest.err | |
17333 | rm -f conftest.er1 | |
17334 | cat conftest.err >&5 | |
17335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
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 |
17351 | else | |
17352 | echo "$as_me: failed program was:" >&5 | |
17353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17354 | ||
82eaf560 | 17355 | ac_lo=`expr $ac_mid + 1` |
17356 | if test $ac_lo -le $ac_mid; then | |
17357 | ac_lo= ac_hi= | |
17358 | break | |
17359 | fi | |
17360 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
56c15991 | 17361 | fi |
82eaf560 | 17362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17363 | done |
17364 | else | |
17365 | echo "$as_me: failed program was:" >&5 | |
17366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17367 | ||
82eaf560 | 17368 | cat >conftest.$ac_ext <<_ACEOF |
56c15991 | 17369 | /* confdefs.h. */ |
17370 | _ACEOF | |
17371 | cat confdefs.h >>conftest.$ac_ext | |
17372 | cat >>conftest.$ac_ext <<_ACEOF | |
17373 | /* end confdefs.h. */ | |
17374 | $ac_includes_default | |
17375 | int | |
17376 | main () | |
17377 | { | |
82eaf560 | 17378 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
56c15991 | 17379 | test_array [0] = 0 |
17380 | ||
17381 | ; | |
17382 | return 0; | |
17383 | } | |
17384 | _ACEOF | |
17385 | rm -f conftest.$ac_objext | |
82eaf560 | 17386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17387 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 17388 | ac_status=$? |
17389 | grep -v '^ *+' conftest.er1 >conftest.err | |
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 | |
17412 | cat confdefs.h >>conftest.$ac_ext | |
17413 | cat >>conftest.$ac_ext <<_ACEOF | |
17414 | /* end confdefs.h. */ | |
17415 | $ac_includes_default | |
17416 | int | |
17417 | main () | |
17418 | { | |
82eaf560 | 17419 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
56c15991 | 17420 | test_array [0] = 0 |
17421 | ||
17422 | ; | |
17423 | return 0; | |
17424 | } | |
17425 | _ACEOF | |
17426 | rm -f conftest.$ac_objext | |
82eaf560 | 17427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17428 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 17429 | ac_status=$? |
17430 | grep -v '^ *+' conftest.er1 >conftest.err | |
17431 | rm -f conftest.er1 | |
17432 | cat conftest.err >&5 | |
17433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
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 |
17449 | else | |
17450 | echo "$as_me: failed program was:" >&5 | |
17451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17452 | ||
82eaf560 | 17453 | ac_hi=`expr '(' $ac_mid ')' - 1` |
17454 | if test $ac_mid -le $ac_hi; then | |
17455 | ac_lo= ac_hi= | |
17456 | break | |
17457 | fi | |
17458 | ac_mid=`expr 2 '*' $ac_mid` | |
56c15991 | 17459 | fi |
82eaf560 | 17460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17461 | done |
17462 | else | |
17463 | echo "$as_me: failed program was:" >&5 | |
17464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17465 | ||
82eaf560 | 17466 | ac_lo= ac_hi= |
56c15991 | 17467 | fi |
82eaf560 | 17468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17469 | fi |
82eaf560 | 17470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17471 | # Binary search between lo and hi bounds. |
17472 | while test "x$ac_lo" != "x$ac_hi"; do | |
17473 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17474 | cat >conftest.$ac_ext <<_ACEOF | |
17475 | /* confdefs.h. */ | |
17476 | _ACEOF | |
17477 | cat confdefs.h >>conftest.$ac_ext | |
17478 | cat >>conftest.$ac_ext <<_ACEOF | |
17479 | /* end confdefs.h. */ | |
17480 | $ac_includes_default | |
17481 | int | |
17482 | main () | |
17483 | { | |
82eaf560 | 17484 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
56c15991 | 17485 | test_array [0] = 0 |
17486 | ||
17487 | ; | |
17488 | return 0; | |
17489 | } | |
17490 | _ACEOF | |
17491 | rm -f conftest.$ac_objext | |
82eaf560 | 17492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17493 | (eval $ac_compile) 2>conftest.er1 | |
56c15991 | 17494 | ac_status=$? |
17495 | grep -v '^ *+' conftest.er1 >conftest.err | |
17496 | rm -f conftest.er1 | |
17497 | cat conftest.err >&5 | |
17498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
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 |
17514 | else | |
17515 | echo "$as_me: failed program was:" >&5 | |
17516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17517 | ||
82eaf560 | 17518 | ac_lo=`expr '(' $ac_mid ')' + 1` |
56c15991 | 17519 | fi |
82eaf560 | 17520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17521 | done |
17522 | case $ac_lo in | |
17523 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
5b2c7553 | 17524 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
17525 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17526 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
56c15991 | 17527 | See \`config.log' for more details." >&5 |
82eaf560 | 17528 | echo "$as_me: error: cannot compute sizeof (int), 77 |
56c15991 | 17529 | See \`config.log' for more details." >&2;} |
5b2c7553 | 17530 | { (exit 1); exit 1; }; }; } ;; |
56c15991 | 17531 | esac |
82eaf560 | 17532 | else |
17533 | if test "$cross_compiling" = yes; then | |
5b2c7553 | 17534 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
17535 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17536 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
82eaf560 | 17537 | See \`config.log' for more details." >&5 |
17538 | echo "$as_me: error: cannot run test program while cross compiling | |
17539 | See \`config.log' for more details." >&2;} | |
5b2c7553 | 17540 | { (exit 1); exit 1; }; }; } |
56c15991 | 17541 | else |
17542 | cat >conftest.$ac_ext <<_ACEOF | |
17543 | /* confdefs.h. */ | |
17544 | _ACEOF | |
17545 | cat confdefs.h >>conftest.$ac_ext | |
17546 | cat >>conftest.$ac_ext <<_ACEOF | |
17547 | /* end confdefs.h. */ | |
17548 | $ac_includes_default | |
82eaf560 | 17549 | long longval () { return (long) (sizeof (int)); } |
17550 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
56c15991 | 17551 | #include <stdio.h> |
17552 | #include <stdlib.h> | |
17553 | int | |
17554 | main () | |
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 | |
17580 | rm -f conftest$ac_exeext | |
82eaf560 | 17581 | if { (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` | |
17592 | else | |
17593 | echo "$as_me: program exited with status $ac_status" >&5 | |
17594 | echo "$as_me: failed program was:" >&5 | |
17595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17596 | ||
17597 | ( exit $ac_status ) | |
5b2c7553 | 17598 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
17599 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
82eaf560 | 17600 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
56c15991 | 17601 | See \`config.log' for more details." >&5 |
82eaf560 | 17602 | echo "$as_me: error: cannot compute sizeof (int), 77 |
56c15991 | 17603 | See \`config.log' for more details." >&2;} |
5b2c7553 | 17604 | { (exit 1); exit 1; }; }; } |
82eaf560 | 17605 | fi |
17606 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
56c15991 | 17607 | fi |
17608 | fi | |
17609 | rm -f conftest.val | |
82eaf560 | 17610 | else |
17611 | ac_cv_sizeof_int=0 | |
56c15991 | 17612 | fi |
82eaf560 | 17613 | fi |
17614 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
17615 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
56c15991 | 17616 | cat >>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 |
17622 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
56c15991 | 17623 | if test "${ac_cv_type_short+set}" = set; then |
17624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17625 | else | |
17626 | cat >conftest.$ac_ext <<_ACEOF | |
17627 | /* confdefs.h. */ | |
17628 | _ACEOF | |
17629 | cat confdefs.h >>conftest.$ac_ext | |
17630 | cat >>conftest.$ac_ext <<_ACEOF | |
17631 | /* end confdefs.h. */ | |
17632 | $ac_includes_default | |
17633 | int | |
17634 | main () | |
17635 | { | |
82eaf560 | 17636 | if ((short *) 0) |
56c15991 | 17637 | return 0; |
82eaf560 | 17638 | if (sizeof (short)) |
56c15991 | 17639 | return 0; |
17640 | ; | |
17641 | return 0; | |
17642 | } | |
17643 | _ACEOF | |
17644 | rm -f conftest.$ac_objext | |
82eaf560 | 17645 | if { (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 |
17667 | else | |
17668 | echo "$as_me: failed program was:" >&5 | |
17669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17670 | ||
82eaf560 | 17671 | ac_cv_type_short=no |
56c15991 | 17672 | fi |
82eaf560 | 17673 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17674 | fi |
82eaf560 | 17675 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
17676 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
56c15991 | 17677 | |
82eaf560 | 17678 | echo "$as_me:$LINENO: checking size of short" >&5 |
17679 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
56c15991 | 17680 | if test "${ac_cv_sizeof_short+set}" = set; then |
17681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17682 | else | |
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. | |
17690 | cat >conftest.$ac_ext <<_ACEOF | |
17691 | /* confdefs.h. */ | |
17692 | _ACEOF | |
17693 | cat confdefs.h >>conftest.$ac_ext | |
17694 | cat >>conftest.$ac_ext <<_ACEOF | |
17695 | /* end confdefs.h. */ | |
17696 | $ac_includes_default | |
17697 | int | |
17698 | main () | |
17699 | { | |
82eaf560 | 17700 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
56c15991 | 17701 | test_array [0] = 0 |
17702 | ||
17703 | ; | |
17704 | return 0; | |
17705 | } | |
17706 | _ACEOF | |
17707 | rm -f conftest.$ac_objext | |
82eaf560 | 17708 | if { (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 | |
17734 | cat confdefs.h >>conftest.$ac_ext | |
17735 | cat >>conftest.$ac_ext <<_ACEOF | |
17736 | /* end confdefs.h. */ | |
17737 | $ac_includes_default | |
17738 | int | |
17739 | main () | |
17740 | { | |
82eaf560 | 17741 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
56c15991 | 17742 | test_array [0] = 0 |
17743 | ||
17744 | ; | |
17745 | return 0; | |
17746 | } | |
17747 | _ACEOF | |
17748 | rm -f conftest.$ac_objext | |
82eaf560 | 17749 | if { (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 |
17771 | else | |
17772 | echo "$as_me: failed program was:" >&5 | |
17773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17774 | ||
82eaf560 | 17775 | ac_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 | 17781 | fi |
82eaf560 | 17782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17783 | done |
17784 | else | |
17785 | echo "$as_me: failed program was:" >&5 | |
17786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17787 | ||
82eaf560 | 17788 | cat >conftest.$ac_ext <<_ACEOF |
56c15991 | 17789 | /* confdefs.h. */ |
17790 | _ACEOF | |
17791 | cat confdefs.h >>conftest.$ac_ext | |
17792 | cat >>conftest.$ac_ext <<_ACEOF | |
17793 | /* end confdefs.h. */ | |
17794 | $ac_includes_default | |
17795 | int | |
17796 | main () | |
17797 | { | |
82eaf560 | 17798 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
56c15991 | 17799 | test_array [0] = 0 |
17800 | ||
17801 | ; | |
17802 | return 0; | |
17803 | } | |
17804 | _ACEOF | |
17805 | rm -f conftest.$ac_objext | |
82eaf560 | 17806 | if { (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 | |
17832 | cat confdefs.h >>conftest.$ac_ext | |
17833 | cat >>conftest.$ac_ext <<_ACEOF | |
17834 | /* end confdefs.h. */ | |
17835 | $ac_includes_default | |
17836 | int | |
17837 | main () | |
17838 | { | |
82eaf560 | 17839 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
56c15991 | 17840 | test_array [0] = 0 |
17841 | ||
17842 | ; | |
17843 | return 0; | |
17844 | } | |
17845 | _ACEOF | |
17846 | rm -f conftest.$ac_objext | |
82eaf560 | 17847 | if { (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 |
17869 | else | |
17870 | echo "$as_me: failed program was:" >&5 | |
17871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17872 | ||
82eaf560 | 17873 | ac_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 | 17879 | fi |
82eaf560 | 17880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17881 | done |
17882 | else | |
17883 | echo "$as_me: failed program was:" >&5 | |
17884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17885 | ||
82eaf560 | 17886 | ac_lo= ac_hi= |
56c15991 | 17887 | fi |
82eaf560 | 17888 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17889 | fi |
82eaf560 | 17890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17891 | # Binary search between lo and hi bounds. |
17892 | while 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 | |
17897 | cat confdefs.h >>conftest.$ac_ext | |
17898 | cat >>conftest.$ac_ext <<_ACEOF | |
17899 | /* end confdefs.h. */ | |
17900 | $ac_includes_default | |
17901 | int | |
17902 | main () | |
17903 | { | |
82eaf560 | 17904 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
56c15991 | 17905 | test_array [0] = 0 |
17906 | ||
17907 | ; | |
17908 | return 0; | |
17909 | } | |
17910 | _ACEOF | |
17911 | rm -f conftest.$ac_objext | |
82eaf560 | 17912 | if { (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 |
17934 | else | |
17935 | echo "$as_me: failed program was:" >&5 | |
17936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17937 | ||
82eaf560 | 17938 | ac_lo=`expr '(' $ac_mid ')' + 1` |
56c15991 | 17939 | fi |
82eaf560 | 17940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 17941 | done |
17942 | case $ac_lo in | |
17943 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
5b2c7553 | 17944 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
17945 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17946 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
56c15991 | 17947 | See \`config.log' for more details." >&5 |
82eaf560 | 17948 | echo "$as_me: error: cannot compute sizeof (short), 77 |
56c15991 | 17949 | See \`config.log' for more details." >&2;} |
5b2c7553 | 17950 | { (exit 1); exit 1; }; }; } ;; |
56c15991 | 17951 | esac |
82eaf560 | 17952 | else |
17953 | if test "$cross_compiling" = yes; then | |
5b2c7553 | 17954 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
17955 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17956 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
82eaf560 | 17957 | See \`config.log' for more details." >&5 |
17958 | echo "$as_me: error: cannot run test program while cross compiling | |
17959 | See \`config.log' for more details." >&2;} | |
5b2c7553 | 17960 | { (exit 1); exit 1; }; }; } |
56c15991 | 17961 | else |
17962 | cat >conftest.$ac_ext <<_ACEOF | |
17963 | /* confdefs.h. */ | |
17964 | _ACEOF | |
17965 | cat confdefs.h >>conftest.$ac_ext | |
17966 | cat >>conftest.$ac_ext <<_ACEOF | |
17967 | /* end confdefs.h. */ | |
17968 | $ac_includes_default | |
82eaf560 | 17969 | long longval () { return (long) (sizeof (short)); } |
17970 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
56c15991 | 17971 | #include <stdio.h> |
17972 | #include <stdlib.h> | |
17973 | int | |
17974 | main () | |
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 | |
18000 | rm -f conftest$ac_exeext | |
82eaf560 | 18001 | if { (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` | |
18012 | else | |
18013 | echo "$as_me: program exited with status $ac_status" >&5 | |
18014 | echo "$as_me: failed program was:" >&5 | |
18015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18016 | ||
18017 | ( exit $ac_status ) | |
5b2c7553 | 18018 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
18019 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
82eaf560 | 18020 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
56c15991 | 18021 | See \`config.log' for more details." >&5 |
82eaf560 | 18022 | echo "$as_me: error: cannot compute sizeof (short), 77 |
56c15991 | 18023 | See \`config.log' for more details." >&2;} |
5b2c7553 | 18024 | { (exit 1); exit 1; }; }; } |
82eaf560 | 18025 | fi |
18026 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
56c15991 | 18027 | fi |
18028 | fi | |
18029 | rm -f conftest.val | |
82eaf560 | 18030 | else |
18031 | ac_cv_sizeof_short=0 | |
56c15991 | 18032 | fi |
82eaf560 | 18033 | fi |
18034 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
18035 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
56c15991 | 18036 | cat >>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 |
18042 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
56c15991 | 18043 | if test "${ac_cv_type_char+set}" = set; then |
18044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18045 | else | |
18046 | cat >conftest.$ac_ext <<_ACEOF | |
18047 | /* confdefs.h. */ | |
18048 | _ACEOF | |
18049 | cat confdefs.h >>conftest.$ac_ext | |
18050 | cat >>conftest.$ac_ext <<_ACEOF | |
18051 | /* end confdefs.h. */ | |
18052 | $ac_includes_default | |
18053 | int | |
18054 | main () | |
18055 | { | |
82eaf560 | 18056 | if ((char *) 0) |
56c15991 | 18057 | return 0; |
82eaf560 | 18058 | if (sizeof (char)) |
56c15991 | 18059 | return 0; |
18060 | ; | |
18061 | return 0; | |
18062 | } | |
18063 | _ACEOF | |
18064 | rm -f conftest.$ac_objext | |
82eaf560 | 18065 | if { (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 |
18087 | else | |
18088 | echo "$as_me: failed program was:" >&5 | |
18089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18090 | ||
82eaf560 | 18091 | ac_cv_type_char=no |
56c15991 | 18092 | fi |
82eaf560 | 18093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 18094 | fi |
82eaf560 | 18095 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
18096 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
56c15991 | 18097 | |
82eaf560 | 18098 | echo "$as_me:$LINENO: checking size of char" >&5 |
18099 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
56c15991 | 18100 | if test "${ac_cv_sizeof_char+set}" = set; then |
18101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18102 | else | |
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. | |
18110 | cat >conftest.$ac_ext <<_ACEOF | |
18111 | /* confdefs.h. */ | |
18112 | _ACEOF | |
18113 | cat confdefs.h >>conftest.$ac_ext | |
18114 | cat >>conftest.$ac_ext <<_ACEOF | |
18115 | /* end confdefs.h. */ | |
18116 | $ac_includes_default | |
18117 | int | |
18118 | main () | |
18119 | { | |
82eaf560 | 18120 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
56c15991 | 18121 | test_array [0] = 0 |
18122 | ||
18123 | ; | |
18124 | return 0; | |
18125 | } | |
18126 | _ACEOF | |
18127 | rm -f conftest.$ac_objext | |
82eaf560 | 18128 | if { (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 | |
18154 | cat confdefs.h >>conftest.$ac_ext | |
18155 | cat >>conftest.$ac_ext <<_ACEOF | |
18156 | /* end confdefs.h. */ | |
18157 | $ac_includes_default | |
18158 | int | |
18159 | main () | |
18160 | { | |
82eaf560 | 18161 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
56c15991 | 18162 | test_array [0] = 0 |
18163 | ||
18164 | ; | |
18165 | return 0; | |
18166 | } | |
18167 | _ACEOF | |
18168 | rm -f conftest.$ac_objext | |
82eaf560 | 18169 | if { (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 |
18191 | else | |
18192 | echo "$as_me: failed program was:" >&5 | |
18193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18194 | ||
82eaf560 | 18195 | ac_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 | 18201 | fi |
82eaf560 | 18202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 18203 | done |
18204 | else | |
18205 | echo "$as_me: failed program was:" >&5 | |
18206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18207 | ||
82eaf560 | 18208 | cat >conftest.$ac_ext <<_ACEOF |
56c15991 | 18209 | /* confdefs.h. */ |
18210 | _ACEOF | |
18211 | cat confdefs.h >>conftest.$ac_ext | |
18212 | cat >>conftest.$ac_ext <<_ACEOF | |
18213 | /* end confdefs.h. */ | |
18214 | $ac_includes_default | |
18215 | int | |
18216 | main () | |
18217 | { | |
82eaf560 | 18218 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
56c15991 | 18219 | test_array [0] = 0 |
18220 | ||
18221 | ; | |
18222 | return 0; | |
18223 | } | |
18224 | _ACEOF | |
18225 | rm -f conftest.$ac_objext | |
82eaf560 | 18226 | if { (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 | |
18252 | cat confdefs.h >>conftest.$ac_ext | |
18253 | cat >>conftest.$ac_ext <<_ACEOF | |
18254 | /* end confdefs.h. */ | |
18255 | $ac_includes_default | |
18256 | int | |
18257 | main () | |
18258 | { | |
82eaf560 | 18259 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
56c15991 | 18260 | test_array [0] = 0 |
18261 | ||
18262 | ; | |
18263 | return 0; | |
18264 | } | |
18265 | _ACEOF | |
18266 | rm -f conftest.$ac_objext | |
82eaf560 | 18267 | if { (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 |
18289 | else | |
18290 | echo "$as_me: failed program was:" >&5 | |
18291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18292 | ||
82eaf560 | 18293 | ac_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 | 18299 | fi |
82eaf560 | 18300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 18301 | done |
18302 | else | |
18303 | echo "$as_me: failed program was:" >&5 | |
18304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18305 | ||
82eaf560 | 18306 | ac_lo= ac_hi= |
56c15991 | 18307 | fi |
82eaf560 | 18308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 18309 | fi |
82eaf560 | 18310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 18311 | # Binary search between lo and hi bounds. |
18312 | while 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 | |
18317 | cat confdefs.h >>conftest.$ac_ext | |
18318 | cat >>conftest.$ac_ext <<_ACEOF | |
18319 | /* end confdefs.h. */ | |
18320 | $ac_includes_default | |
18321 | int | |
18322 | main () | |
18323 | { | |
82eaf560 | 18324 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
56c15991 | 18325 | test_array [0] = 0 |
18326 | ||
18327 | ; | |
18328 | return 0; | |
18329 | } | |
18330 | _ACEOF | |
18331 | rm -f conftest.$ac_objext | |
82eaf560 | 18332 | if { (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 |
18354 | else | |
18355 | echo "$as_me: failed program was:" >&5 | |
18356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18357 | ||
82eaf560 | 18358 | ac_lo=`expr '(' $ac_mid ')' + 1` |
56c15991 | 18359 | fi |
82eaf560 | 18360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
56c15991 | 18361 | done |
18362 | case $ac_lo in | |
18363 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
5b2c7553 | 18364 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
18365 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
18366 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
56c15991 | 18367 | See \`config.log' for more details." >&5 |
82eaf560 | 18368 | echo "$as_me: error: cannot compute sizeof (char), 77 |
56c15991 | 18369 | See \`config.log' for more details." >&2;} |
5b2c7553 | 18370 | { (exit 1); exit 1; }; }; } ;; |
56c15991 | 18371 | esac |
82eaf560 | 18372 | else |
18373 | if test "$cross_compiling" = yes; then | |
5b2c7553 | 18374 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
18375 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
18376 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
82eaf560 | 18377 | See \`config.log' for more details." >&5 |
18378 | echo "$as_me: error: cannot run test program while cross compiling | |
18379 | See \`config.log' for more details." >&2;} | |
5b2c7553 | 18380 | { (exit 1); exit 1; }; }; } |
56c15991 | 18381 | else |
18382 | cat >conftest.$ac_ext <<_ACEOF | |
18383 | /* confdefs.h. */ | |
18384 | _ACEOF | |
18385 | cat confdefs.h >>conftest.$ac_ext | |
18386 | cat >>conftest.$ac_ext <<_ACEOF | |
18387 | /* end confdefs.h. */ | |
18388 | $ac_includes_default | |
82eaf560 | 18389 | long longval () { return (long) (sizeof (char)); } |
18390 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
56c15991 | 18391 | #include <stdio.h> |
18392 | #include <stdlib.h> | |
18393 | int | |
18394 | main () | |
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 | |
18420 | rm -f conftest$ac_exeext | |
82eaf560 | 18421 | if { (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` | |
18432 | else | |
18433 | echo "$as_me: program exited with status $ac_status" >&5 | |
18434 | echo "$as_me: failed program was:" >&5 | |
18435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18436 | ||
18437 | ( exit $ac_status ) | |
5b2c7553 | 18438 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
18439 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
82eaf560 | 18440 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
56c15991 | 18441 | See \`config.log' for more details." >&5 |
82eaf560 | 18442 | echo "$as_me: error: cannot compute sizeof (char), 77 |
56c15991 | 18443 | See \`config.log' for more details." >&2;} |
5b2c7553 | 18444 | { (exit 1); exit 1; }; }; } |
82eaf560 | 18445 | fi |
18446 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
56c15991 | 18447 | fi |
18448 | fi | |
18449 | rm -f conftest.val | |
82eaf560 | 18450 | else |
18451 | ac_cv_sizeof_char=0 | |
56c15991 | 18452 | fi |
82eaf560 | 18453 | fi |
18454 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
18455 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
56c15991 | 18456 | cat >>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 |
18463 | echo $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 | |
18467 | echo "$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 |
18471 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
56c15991 | 18472 | |
82eaf560 | 18473 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 |
18474 | echo $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 | |
18479 | echo "$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 |
18483 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
56c15991 | 18484 | |
82eaf560 | 18485 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 |
18486 | echo $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 | |
18491 | echo "$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 |
18495 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
56c15991 | 18496 | fi |
18497 | ||
18498 | # These tests are here to make the output prettier | |
18499 | ||
18500 | if 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 |
18505 | echo $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 | |
18507 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
56c15991 | 18508 | fi |
18509 | ||
18510 | # Now we can use the above types | |
18511 | ||
18512 | if test "$ac_cv_type_uintptr_t" != yes; then | |
82eaf560 | 18513 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 |
18514 | echo $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 | |
18520 | echo "$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 |
18524 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
56c15991 | 18525 | fi |
18526 | ||
18527 | # ----------------- done all checks, emit header ------------- | |
82eaf560 | 18528 | ac_config_commands="$ac_config_commands gstdint.h" |
56c15991 | 18529 | |
18530 | ||
18531 | ||
18532 | ||
82eaf560 | 18533 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
18534 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
771c1b50 | 18535 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
18536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18537 | else | |
18538 | cat >conftest.$ac_ext <<_ACEOF | |
18539 | /* confdefs.h. */ | |
18540 | _ACEOF | |
18541 | cat confdefs.h >>conftest.$ac_ext | |
18542 | cat >>conftest.$ac_ext <<_ACEOF | |
18543 | /* end confdefs.h. */ | |
18544 | $ac_includes_default | |
18545 | int | |
18546 | main () | |
18547 | { | |
18548 | static struct stat ac_aggr; | |
18549 | if (ac_aggr.st_blksize) | |
18550 | return 0; | |
18551 | ; | |
18552 | return 0; | |
18553 | } | |
18554 | _ACEOF | |
18555 | rm -f conftest.$ac_objext | |
82eaf560 | 18556 | if { (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 |
18578 | else | |
18579 | echo "$as_me: failed program was:" >&5 | |
18580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18581 | ||
82eaf560 | 18582 | cat >conftest.$ac_ext <<_ACEOF |
771c1b50 | 18583 | /* confdefs.h. */ |
18584 | _ACEOF | |
18585 | cat confdefs.h >>conftest.$ac_ext | |
18586 | cat >>conftest.$ac_ext <<_ACEOF | |
18587 | /* end confdefs.h. */ | |
18588 | $ac_includes_default | |
18589 | int | |
18590 | main () | |
18591 | { | |
18592 | static struct stat ac_aggr; | |
18593 | if (sizeof ac_aggr.st_blksize) | |
18594 | return 0; | |
18595 | ; | |
18596 | return 0; | |
18597 | } | |
18598 | _ACEOF | |
18599 | rm -f conftest.$ac_objext | |
82eaf560 | 18600 | if { (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 |
18622 | else | |
18623 | echo "$as_me: failed program was:" >&5 | |
18624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18625 | ||
82eaf560 | 18626 | ac_cv_member_struct_stat_st_blksize=no |
771c1b50 | 18627 | fi |
82eaf560 | 18628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
771c1b50 | 18629 | fi |
82eaf560 | 18630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
771c1b50 | 18631 | fi |
82eaf560 | 18632 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
18633 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
771c1b50 | 18634 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
18635 | ||
18636 | cat >>confdefs.h <<_ACEOF | |
18637 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
18638 | _ACEOF | |
18639 | ||
18640 | ||
18641 | fi | |
18642 | ||
82eaf560 | 18643 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
18644 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
771c1b50 | 18645 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
18646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18647 | else | |
18648 | cat >conftest.$ac_ext <<_ACEOF | |
18649 | /* confdefs.h. */ | |
18650 | _ACEOF | |
18651 | cat confdefs.h >>conftest.$ac_ext | |
18652 | cat >>conftest.$ac_ext <<_ACEOF | |
18653 | /* end confdefs.h. */ | |
18654 | $ac_includes_default | |
18655 | int | |
18656 | main () | |
18657 | { | |
18658 | static struct stat ac_aggr; | |
18659 | if (ac_aggr.st_blocks) | |
18660 | return 0; | |
18661 | ; | |
18662 | return 0; | |
18663 | } | |
18664 | _ACEOF | |
18665 | rm -f conftest.$ac_objext | |
82eaf560 | 18666 | if { (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 |
18688 | else | |
18689 | echo "$as_me: failed program was:" >&5 | |
18690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18691 | ||
82eaf560 | 18692 | cat >conftest.$ac_ext <<_ACEOF |
771c1b50 | 18693 | /* confdefs.h. */ |
18694 | _ACEOF | |
18695 | cat confdefs.h >>conftest.$ac_ext | |
18696 | cat >>conftest.$ac_ext <<_ACEOF | |
18697 | /* end confdefs.h. */ | |
18698 | $ac_includes_default | |
18699 | int | |
18700 | main () | |
18701 | { | |
18702 | static struct stat ac_aggr; | |
18703 | if (sizeof ac_aggr.st_blocks) | |
18704 | return 0; | |
18705 | ; | |
18706 | return 0; | |
18707 | } | |
18708 | _ACEOF | |
18709 | rm -f conftest.$ac_objext | |
82eaf560 | 18710 | if { (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 |
18732 | else | |
18733 | echo "$as_me: failed program was:" >&5 | |
18734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18735 | ||
82eaf560 | 18736 | ac_cv_member_struct_stat_st_blocks=no |
771c1b50 | 18737 | fi |
82eaf560 | 18738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
771c1b50 | 18739 | fi |
82eaf560 | 18740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
771c1b50 | 18741 | fi |
82eaf560 | 18742 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
18743 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
771c1b50 | 18744 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
18745 | ||
18746 | cat >>confdefs.h <<_ACEOF | |
18747 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
18748 | _ACEOF | |
18749 | ||
18750 | ||
18751 | fi | |
18752 | ||
82eaf560 | 18753 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
18754 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
771c1b50 | 18755 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
18756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18757 | else | |
18758 | cat >conftest.$ac_ext <<_ACEOF | |
18759 | /* confdefs.h. */ | |
18760 | _ACEOF | |
18761 | cat confdefs.h >>conftest.$ac_ext | |
18762 | cat >>conftest.$ac_ext <<_ACEOF | |
18763 | /* end confdefs.h. */ | |
18764 | $ac_includes_default | |
18765 | int | |
18766 | main () | |
18767 | { | |
18768 | static struct stat ac_aggr; | |
18769 | if (ac_aggr.st_rdev) | |
18770 | return 0; | |
18771 | ; | |
18772 | return 0; | |
18773 | } | |
18774 | _ACEOF | |
18775 | rm -f conftest.$ac_objext | |
82eaf560 | 18776 | if { (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 |
18798 | else | |
18799 | echo "$as_me: failed program was:" >&5 | |
18800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18801 | ||
82eaf560 | 18802 | cat >conftest.$ac_ext <<_ACEOF |
771c1b50 | 18803 | /* confdefs.h. */ |
18804 | _ACEOF | |
18805 | cat confdefs.h >>conftest.$ac_ext | |
18806 | cat >>conftest.$ac_ext <<_ACEOF | |
18807 | /* end confdefs.h. */ | |
18808 | $ac_includes_default | |
18809 | int | |
18810 | main () | |
18811 | { | |
18812 | static struct stat ac_aggr; | |
18813 | if (sizeof ac_aggr.st_rdev) | |
18814 | return 0; | |
18815 | ; | |
18816 | return 0; | |
18817 | } | |
18818 | _ACEOF | |
18819 | rm -f conftest.$ac_objext | |
82eaf560 | 18820 | if { (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 |
18842 | else | |
18843 | echo "$as_me: failed program was:" >&5 | |
18844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18845 | ||
82eaf560 | 18846 | ac_cv_member_struct_stat_st_rdev=no |
771c1b50 | 18847 | fi |
82eaf560 | 18848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
771c1b50 | 18849 | fi |
82eaf560 | 18850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
771c1b50 | 18851 | fi |
82eaf560 | 18852 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
18853 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 | |
771c1b50 | 18854 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
18855 | ||
18856 | cat >>confdefs.h <<_ACEOF | |
18857 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
18858 | _ACEOF | |
18859 | ||
18860 | ||
18861 | fi | |
18862 | ||
18863 | ||
90973b19 | 18864 | # Check for library functions. |
18865 | ||
18866 | ||
7dfba97b | 18867 | |
5e7b82bb | 18868 | |
c436f700 | 18869 | |
a54b1ce7 | 18870 | |
18871 | ||
14c3c235 | 18872 | |
18873 | for ac_func in getrusage times mkstemp strtof strtold snprintf ftruncate chsize | |
90973b19 | 18874 | do |
18875 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
82eaf560 | 18876 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18877 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18878 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4ee9c684 | 18879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18880 | else | |
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 | |
18883 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18884 | { (exit 1); exit 1; }; } | |
18885 | fi | |
18886 | cat >conftest.$ac_ext <<_ACEOF | |
4dd3972f | 18887 | /* confdefs.h. */ |
18888 | _ACEOF | |
18889 | cat confdefs.h >>conftest.$ac_ext | |
18890 | cat >>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 |
18911 | extern "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 | 18916 | char $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 | 18921 | choke me |
82eaf560 | 18922 | #else |
18923 | char (*f) () = $ac_func; | |
18924 | #endif | |
18925 | #ifdef __cplusplus | |
18926 | } | |
4dd3972f | 18927 | #endif |
18928 | ||
18929 | int | |
18930 | main () | |
18931 | { | |
82eaf560 | 18932 | return f != $ac_func; |
4dd3972f | 18933 | ; |
18934 | return 0; | |
18935 | } | |
18936 | _ACEOF | |
18937 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 18938 | if { (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" |
18960 | else | |
18961 | echo "$as_me: failed program was:" >&5 | |
18962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18963 | ||
82eaf560 | 18964 | eval "$as_ac_var=no" |
6745c9de | 18965 | fi |
82eaf560 | 18966 | rm -f conftest.err conftest.$ac_objext \ |
4dd3972f | 18967 | conftest$ac_exeext conftest.$ac_ext |
18968 | fi | |
82eaf560 | 18969 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18970 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4dd3972f | 18971 | if 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 | ||
18976 | fi | |
18977 | done | |
18978 | ||
18979 | ||
18980 | ||
18981 | ||
18982 | ||
18983 | ||
18984 | ||
18985 | ||
18986 | ||
18987 | for ac_func in chdir strerror getlogin gethostname kill link symlink perror | |
18988 | do | |
18989 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
82eaf560 | 18990 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18991 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18992 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4dd3972f | 18993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18994 | else | |
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 | |
18997 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18998 | { (exit 1); exit 1; }; } | |
18999 | fi | |
19000 | cat >conftest.$ac_ext <<_ACEOF | |
90973b19 | 19001 | /* confdefs.h. */ |
19002 | _ACEOF | |
19003 | cat confdefs.h >>conftest.$ac_ext | |
19004 | cat >>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 |
19025 | extern "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 | 19030 | char $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 | 19035 | choke me |
82eaf560 | 19036 | #else |
19037 | char (*f) () = $ac_func; | |
19038 | #endif | |
19039 | #ifdef __cplusplus | |
19040 | } | |
90973b19 | 19041 | #endif |
19042 | ||
19043 | int | |
19044 | main () | |
19045 | { | |
82eaf560 | 19046 | return f != $ac_func; |
90973b19 | 19047 | ; |
19048 | return 0; | |
19049 | } | |
19050 | _ACEOF | |
19051 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 19052 | if { (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" |
19074 | else | |
19075 | echo "$as_me: failed program was:" >&5 | |
19076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19077 | ||
82eaf560 | 19078 | eval "$as_ac_var=no" |
4dd3972f | 19079 | fi |
82eaf560 | 19080 | rm -f conftest.err conftest.$ac_objext \ |
4dd3972f | 19081 | conftest$ac_exeext conftest.$ac_ext |
19082 | fi | |
82eaf560 | 19083 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19084 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4dd3972f | 19085 | if 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 | ||
19090 | fi | |
19091 | done | |
19092 | ||
19093 | ||
19094 | ||
f2c0a16d | 19095 | |
247981ce | 19096 | |
19097 | ||
b902b078 | 19098 | |
c7347b39 | 19099 | |
d2fc5bb1 | 19100 | |
19101 | ||
19102 | ||
19103 | for ac_func in sleep time ttyname signal alarm ctime clock access fork execl | |
19104 | do | |
19105 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
82eaf560 | 19106 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19107 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19108 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
d2fc5bb1 | 19109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19110 | else | |
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 | |
19113 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19114 | { (exit 1); exit 1; }; } | |
19115 | fi | |
19116 | cat >conftest.$ac_ext <<_ACEOF | |
19117 | /* confdefs.h. */ | |
19118 | _ACEOF | |
19119 | cat confdefs.h >>conftest.$ac_ext | |
19120 | cat >>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 |
19141 | extern "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 | 19146 | char $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 | 19151 | choke me |
82eaf560 | 19152 | #else |
19153 | char (*f) () = $ac_func; | |
19154 | #endif | |
19155 | #ifdef __cplusplus | |
19156 | } | |
d2fc5bb1 | 19157 | #endif |
19158 | ||
19159 | int | |
19160 | main () | |
19161 | { | |
82eaf560 | 19162 | return f != $ac_func; |
d2fc5bb1 | 19163 | ; |
19164 | return 0; | |
19165 | } | |
19166 | _ACEOF | |
19167 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 19168 | if { (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" |
19190 | else | |
19191 | echo "$as_me: failed program was:" >&5 | |
19192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19193 | ||
82eaf560 | 19194 | eval "$as_ac_var=no" |
d2fc5bb1 | 19195 | fi |
82eaf560 | 19196 | rm -f conftest.err conftest.$ac_objext \ |
d2fc5bb1 | 19197 | conftest$ac_exeext conftest.$ac_ext |
19198 | fi | |
82eaf560 | 19199 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19200 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
d2fc5bb1 | 19201 | if 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 | ||
19206 | fi | |
19207 | done | |
19208 | ||
19209 | ||
16af3de2 | 19210 | |
b7fcd3f9 | 19211 | |
e93cd318 | 19212 | |
99798ba4 | 19213 | |
19214 | ||
19215 | ||
19216 | ||
19217 | ||
19218 | for ac_func in wait setmode execvp pipe dup2 close fdopen strcasestr getrlimit | |
19219 | do | |
19220 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
82eaf560 | 19221 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19222 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19223 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
c634bedf | 19224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19225 | else | |
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 | |
19228 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19229 | { (exit 1); exit 1; }; } | |
19230 | fi | |
19231 | cat >conftest.$ac_ext <<_ACEOF | |
19232 | /* confdefs.h. */ | |
19233 | _ACEOF | |
19234 | cat confdefs.h >>conftest.$ac_ext | |
19235 | cat >>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 |
19256 | extern "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 | 19261 | char $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 | 19266 | choke me |
82eaf560 | 19267 | #else |
19268 | char (*f) () = $ac_func; | |
19269 | #endif | |
19270 | #ifdef __cplusplus | |
19271 | } | |
c634bedf | 19272 | #endif |
19273 | ||
19274 | int | |
19275 | main () | |
19276 | { | |
82eaf560 | 19277 | return f != $ac_func; |
c634bedf | 19278 | ; |
19279 | return 0; | |
19280 | } | |
19281 | _ACEOF | |
19282 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 19283 | if { (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" |
19305 | else | |
19306 | echo "$as_me: failed program was:" >&5 | |
19307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19308 | ||
82eaf560 | 19309 | eval "$as_ac_var=no" |
c634bedf | 19310 | fi |
82eaf560 | 19311 | rm -f conftest.err conftest.$ac_objext \ |
c634bedf | 19312 | conftest$ac_exeext conftest.$ac_ext |
19313 | fi | |
82eaf560 | 19314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19315 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
c634bedf | 19316 | if 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 | ||
19321 | fi | |
19322 | done | |
19323 | ||
19324 | ||
74b918e9 | 19325 | |
19326 | ||
19327 | ||
c0e8efbe | 19328 | |
5a037dbd | 19329 | |
e0582811 | 19330 | |
19331 | ||
19332 | for ac_func in gettimeofday stat fstat lstat getpwuid vsnprintf dup getcwd | |
c634bedf | 19333 | do |
19334 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
82eaf560 | 19335 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19336 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19337 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
99798ba4 | 19338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19339 | else | |
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 | |
19342 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19343 | { (exit 1); exit 1; }; } | |
19344 | fi | |
19345 | cat >conftest.$ac_ext <<_ACEOF | |
19346 | /* confdefs.h. */ | |
19347 | _ACEOF | |
19348 | cat confdefs.h >>conftest.$ac_ext | |
19349 | cat >>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 |
19370 | extern "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 | 19375 | char $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 | 19380 | choke me |
82eaf560 | 19381 | #else |
19382 | char (*f) () = $ac_func; | |
19383 | #endif | |
19384 | #ifdef __cplusplus | |
19385 | } | |
99798ba4 | 19386 | #endif |
19387 | ||
19388 | int | |
19389 | main () | |
19390 | { | |
82eaf560 | 19391 | return f != $ac_func; |
99798ba4 | 19392 | ; |
19393 | return 0; | |
19394 | } | |
19395 | _ACEOF | |
19396 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 19397 | if { (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" |
19419 | else | |
19420 | echo "$as_me: failed program was:" >&5 | |
19421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19422 | ||
82eaf560 | 19423 | eval "$as_ac_var=no" |
99798ba4 | 19424 | fi |
82eaf560 | 19425 | rm -f conftest.err conftest.$ac_objext \ |
99798ba4 | 19426 | conftest$ac_exeext conftest.$ac_ext |
19427 | fi | |
82eaf560 | 19428 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19429 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
99798ba4 | 19430 | if 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 | ||
19435 | fi | |
19436 | done | |
19437 | ||
19438 | ||
19439 | # Check for glibc backtrace functions | |
19440 | ||
19441 | ||
19442 | for ac_func in backtrace backtrace_symbols | |
4dd3972f | 19443 | do |
19444 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
82eaf560 | 19445 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19446 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19447 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4dd3972f | 19448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19449 | else | |
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 | |
19452 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19453 | { (exit 1); exit 1; }; } | |
19454 | fi | |
19455 | cat >conftest.$ac_ext <<_ACEOF | |
4dd3972f | 19456 | /* confdefs.h. */ |
19457 | _ACEOF | |
19458 | cat confdefs.h >>conftest.$ac_ext | |
19459 | cat >>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 |
19480 | extern "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 | 19485 | char $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 | 19490 | choke me |
82eaf560 | 19491 | #else |
19492 | char (*f) () = $ac_func; | |
19493 | #endif | |
19494 | #ifdef __cplusplus | |
19495 | } | |
4dd3972f | 19496 | #endif |
19497 | ||
19498 | int | |
19499 | main () | |
19500 | { | |
82eaf560 | 19501 | return f != $ac_func; |
4dd3972f | 19502 | ; |
19503 | return 0; | |
19504 | } | |
19505 | _ACEOF | |
19506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 19507 | if { (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 | 19529 | else |
90973b19 | 19530 | echo "$as_me: failed program was:" >&5 |
19531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19532 | ||
82eaf560 | 19533 | eval "$as_ac_var=no" |
90973b19 | 19534 | fi |
82eaf560 | 19535 | rm -f conftest.err conftest.$ac_objext \ |
90973b19 | 19536 | conftest$ac_exeext conftest.$ac_ext |
4ee9c684 | 19537 | fi |
82eaf560 | 19538 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
19539 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
90973b19 | 19540 | if 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 | 19545 | fi |
90973b19 | 19546 | done |
4ee9c684 | 19547 | |
4ee9c684 | 19548 | |
16af3de2 | 19549 | # Check for types |
82eaf560 | 19550 | echo "$as_me:$LINENO: checking for intptr_t" >&5 |
19551 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 | |
16af3de2 | 19552 | if test "${ac_cv_type_intptr_t+set}" = set; then |
19553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19554 | else | |
19555 | cat >conftest.$ac_ext <<_ACEOF | |
19556 | /* confdefs.h. */ | |
19557 | _ACEOF | |
19558 | cat confdefs.h >>conftest.$ac_ext | |
19559 | cat >>conftest.$ac_ext <<_ACEOF | |
19560 | /* end confdefs.h. */ | |
19561 | $ac_includes_default | |
19562 | int | |
19563 | main () | |
19564 | { | |
82eaf560 | 19565 | if ((intptr_t *) 0) |
16af3de2 | 19566 | return 0; |
82eaf560 | 19567 | if (sizeof (intptr_t)) |
16af3de2 | 19568 | return 0; |
19569 | ; | |
19570 | return 0; | |
19571 | } | |
19572 | _ACEOF | |
19573 | rm -f conftest.$ac_objext | |
82eaf560 | 19574 | if { (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 |
19596 | else | |
19597 | echo "$as_me: failed program was:" >&5 | |
19598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19599 | ||
82eaf560 | 19600 | ac_cv_type_intptr_t=no |
16af3de2 | 19601 | fi |
82eaf560 | 19602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16af3de2 | 19603 | fi |
82eaf560 | 19604 | echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
19605 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 | |
16af3de2 | 19606 | if test $ac_cv_type_intptr_t = yes; then |
19607 | ||
19608 | cat >>confdefs.h <<_ACEOF | |
19609 | #define HAVE_INTPTR_T 1 | |
19610 | _ACEOF | |
19611 | ||
19612 | ||
ed3634f6 | 19613 | fi |
19614 | ||
19615 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
19616 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
19617 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
19618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19619 | else | |
19620 | cat >conftest.$ac_ext <<_ACEOF | |
19621 | /* confdefs.h. */ | |
19622 | _ACEOF | |
19623 | cat confdefs.h >>conftest.$ac_ext | |
19624 | cat >>conftest.$ac_ext <<_ACEOF | |
19625 | /* end confdefs.h. */ | |
19626 | $ac_includes_default | |
19627 | int | |
19628 | main () | |
19629 | { | |
19630 | if ((uintptr_t *) 0) | |
19631 | return 0; | |
19632 | if (sizeof (uintptr_t)) | |
19633 | return 0; | |
19634 | ; | |
19635 | return 0; | |
19636 | } | |
19637 | _ACEOF | |
19638 | rm -f conftest.$ac_objext | |
19639 | if { (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 | |
19661 | else | |
19662 | echo "$as_me: failed program was:" >&5 | |
19663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19664 | ||
19665 | ac_cv_type_uintptr_t=no | |
19666 | fi | |
19667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19668 | fi | |
19669 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
19670 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
19671 | if test $ac_cv_type_uintptr_t = yes; then | |
19672 | ||
19673 | cat >>confdefs.h <<_ACEOF | |
19674 | #define HAVE_UINTPTR_T 1 | |
19675 | _ACEOF | |
19676 | ||
19677 | ||
16af3de2 | 19678 | fi |
19679 | ||
19680 | ||
adad6c74 | 19681 | # Check libc for getgid, getpid, getuid |
82eaf560 | 19682 | echo "$as_me:$LINENO: checking for getgid in -lc" >&5 |
19683 | echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6 | |
adad6c74 | 19684 | if test "${ac_cv_lib_c_getgid+set}" = set; then |
19685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19686 | else | |
19687 | ac_check_lib_save_LIBS=$LIBS | |
19688 | LIBS="-lc $LIBS" | |
b52ee437 | 19689 | if test x$gcc_no_link = xyes; then |
19690 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19691 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19692 | { (exit 1); exit 1; }; } | |
19693 | fi | |
adad6c74 | 19694 | cat >conftest.$ac_ext <<_ACEOF |
19695 | /* confdefs.h. */ | |
19696 | _ACEOF | |
19697 | cat confdefs.h >>conftest.$ac_ext | |
19698 | cat >>conftest.$ac_ext <<_ACEOF | |
19699 | /* end confdefs.h. */ | |
19700 | ||
82eaf560 | 19701 | /* Override any gcc2 internal prototype to avoid an error. */ |
adad6c74 | 19702 | #ifdef __cplusplus |
19703 | extern "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 | 19707 | char getgid (); |
19708 | int | |
19709 | main () | |
19710 | { | |
82eaf560 | 19711 | getgid (); |
adad6c74 | 19712 | ; |
19713 | return 0; | |
19714 | } | |
19715 | _ACEOF | |
19716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 19717 | if { (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 |
19739 | else | |
19740 | echo "$as_me: failed program was:" >&5 | |
19741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19742 | ||
82eaf560 | 19743 | ac_cv_lib_c_getgid=no |
adad6c74 | 19744 | fi |
82eaf560 | 19745 | rm -f conftest.err conftest.$ac_objext \ |
adad6c74 | 19746 | conftest$ac_exeext conftest.$ac_ext |
19747 | LIBS=$ac_check_lib_save_LIBS | |
19748 | fi | |
82eaf560 | 19749 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5 |
19750 | echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6 | |
adad6c74 | 19751 | if test $ac_cv_lib_c_getgid = yes; then |
19752 | ||
19753 | cat >>confdefs.h <<\_ACEOF | |
19754 | #define HAVE_GETGID 1 | |
19755 | _ACEOF | |
19756 | ||
19757 | fi | |
19758 | ||
82eaf560 | 19759 | echo "$as_me:$LINENO: checking for getpid in -lc" >&5 |
19760 | echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6 | |
adad6c74 | 19761 | if test "${ac_cv_lib_c_getpid+set}" = set; then |
19762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19763 | else | |
19764 | ac_check_lib_save_LIBS=$LIBS | |
19765 | LIBS="-lc $LIBS" | |
b52ee437 | 19766 | if test x$gcc_no_link = xyes; then |
19767 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19768 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19769 | { (exit 1); exit 1; }; } | |
19770 | fi | |
adad6c74 | 19771 | cat >conftest.$ac_ext <<_ACEOF |
19772 | /* confdefs.h. */ | |
19773 | _ACEOF | |
19774 | cat confdefs.h >>conftest.$ac_ext | |
19775 | cat >>conftest.$ac_ext <<_ACEOF | |
19776 | /* end confdefs.h. */ | |
19777 | ||
82eaf560 | 19778 | /* Override any gcc2 internal prototype to avoid an error. */ |
adad6c74 | 19779 | #ifdef __cplusplus |
19780 | extern "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 | 19784 | char getpid (); |
19785 | int | |
19786 | main () | |
19787 | { | |
82eaf560 | 19788 | getpid (); |
adad6c74 | 19789 | ; |
19790 | return 0; | |
19791 | } | |
19792 | _ACEOF | |
19793 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 19794 | if { (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 |
19816 | else | |
19817 | echo "$as_me: failed program was:" >&5 | |
19818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19819 | ||
82eaf560 | 19820 | ac_cv_lib_c_getpid=no |
adad6c74 | 19821 | fi |
82eaf560 | 19822 | rm -f conftest.err conftest.$ac_objext \ |
adad6c74 | 19823 | conftest$ac_exeext conftest.$ac_ext |
19824 | LIBS=$ac_check_lib_save_LIBS | |
19825 | fi | |
82eaf560 | 19826 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5 |
19827 | echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6 | |
adad6c74 | 19828 | if test $ac_cv_lib_c_getpid = yes; then |
19829 | ||
19830 | cat >>confdefs.h <<\_ACEOF | |
19831 | #define HAVE_GETPID 1 | |
19832 | _ACEOF | |
19833 | ||
19834 | fi | |
19835 | ||
82eaf560 | 19836 | echo "$as_me:$LINENO: checking for getppid in -lc" >&5 |
19837 | echo $ECHO_N "checking for getppid in -lc... $ECHO_C" >&6 | |
99798ba4 | 19838 | if test "${ac_cv_lib_c_getppid+set}" = set; then |
19839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19840 | else | |
19841 | ac_check_lib_save_LIBS=$LIBS | |
19842 | LIBS="-lc $LIBS" | |
19843 | if test x$gcc_no_link = xyes; then | |
19844 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19845 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19846 | { (exit 1); exit 1; }; } | |
19847 | fi | |
19848 | cat >conftest.$ac_ext <<_ACEOF | |
19849 | /* confdefs.h. */ | |
19850 | _ACEOF | |
19851 | cat confdefs.h >>conftest.$ac_ext | |
19852 | cat >>conftest.$ac_ext <<_ACEOF | |
19853 | /* end confdefs.h. */ | |
19854 | ||
82eaf560 | 19855 | /* Override any gcc2 internal prototype to avoid an error. */ |
99798ba4 | 19856 | #ifdef __cplusplus |
19857 | extern "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 | 19861 | char getppid (); |
19862 | int | |
19863 | main () | |
19864 | { | |
82eaf560 | 19865 | getppid (); |
99798ba4 | 19866 | ; |
19867 | return 0; | |
19868 | } | |
19869 | _ACEOF | |
19870 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 19871 | if { (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 |
19893 | else | |
19894 | echo "$as_me: failed program was:" >&5 | |
19895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19896 | ||
82eaf560 | 19897 | ac_cv_lib_c_getppid=no |
99798ba4 | 19898 | fi |
82eaf560 | 19899 | rm -f conftest.err conftest.$ac_objext \ |
99798ba4 | 19900 | conftest$ac_exeext conftest.$ac_ext |
19901 | LIBS=$ac_check_lib_save_LIBS | |
19902 | fi | |
82eaf560 | 19903 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getppid" >&5 |
19904 | echo "${ECHO_T}$ac_cv_lib_c_getppid" >&6 | |
99798ba4 | 19905 | if test $ac_cv_lib_c_getppid = yes; then |
19906 | ||
19907 | cat >>confdefs.h <<\_ACEOF | |
19908 | #define HAVE_GETPPID 1 | |
19909 | _ACEOF | |
19910 | ||
19911 | fi | |
19912 | ||
82eaf560 | 19913 | echo "$as_me:$LINENO: checking for getuid in -lc" >&5 |
19914 | echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6 | |
adad6c74 | 19915 | if test "${ac_cv_lib_c_getuid+set}" = set; then |
19916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19917 | else | |
19918 | ac_check_lib_save_LIBS=$LIBS | |
19919 | LIBS="-lc $LIBS" | |
b52ee437 | 19920 | if test x$gcc_no_link = xyes; then |
19921 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19922 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19923 | { (exit 1); exit 1; }; } | |
19924 | fi | |
adad6c74 | 19925 | cat >conftest.$ac_ext <<_ACEOF |
19926 | /* confdefs.h. */ | |
19927 | _ACEOF | |
19928 | cat confdefs.h >>conftest.$ac_ext | |
19929 | cat >>conftest.$ac_ext <<_ACEOF | |
19930 | /* end confdefs.h. */ | |
19931 | ||
82eaf560 | 19932 | /* Override any gcc2 internal prototype to avoid an error. */ |
adad6c74 | 19933 | #ifdef __cplusplus |
19934 | extern "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 | 19938 | char getuid (); |
19939 | int | |
19940 | main () | |
19941 | { | |
82eaf560 | 19942 | getuid (); |
adad6c74 | 19943 | ; |
19944 | return 0; | |
19945 | } | |
19946 | _ACEOF | |
19947 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 19948 | if { (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 |
19970 | else | |
19971 | echo "$as_me: failed program was:" >&5 | |
19972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19973 | ||
82eaf560 | 19974 | ac_cv_lib_c_getuid=no |
adad6c74 | 19975 | fi |
82eaf560 | 19976 | rm -f conftest.err conftest.$ac_objext \ |
adad6c74 | 19977 | conftest$ac_exeext conftest.$ac_ext |
19978 | LIBS=$ac_check_lib_save_LIBS | |
19979 | fi | |
82eaf560 | 19980 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5 |
19981 | echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6 | |
adad6c74 | 19982 | if test $ac_cv_lib_c_getuid = yes; then |
19983 | ||
19984 | cat >>confdefs.h <<\_ACEOF | |
19985 | #define HAVE_GETUID 1 | |
19986 | _ACEOF | |
19987 | ||
19988 | fi | |
19989 | ||
82eaf560 | 19990 | echo "$as_me:$LINENO: checking for geteuid in -lc" >&5 |
19991 | echo $ECHO_N "checking for geteuid in -lc... $ECHO_C" >&6 | |
c0e8efbe | 19992 | if test "${ac_cv_lib_c_geteuid+set}" = set; then |
19993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19994 | else | |
19995 | ac_check_lib_save_LIBS=$LIBS | |
19996 | LIBS="-lc $LIBS" | |
19997 | if test x$gcc_no_link = xyes; then | |
19998 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19999 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20000 | { (exit 1); exit 1; }; } | |
20001 | fi | |
20002 | cat >conftest.$ac_ext <<_ACEOF | |
20003 | /* confdefs.h. */ | |
20004 | _ACEOF | |
20005 | cat confdefs.h >>conftest.$ac_ext | |
20006 | cat >>conftest.$ac_ext <<_ACEOF | |
20007 | /* end confdefs.h. */ | |
20008 | ||
82eaf560 | 20009 | /* Override any gcc2 internal prototype to avoid an error. */ |
c0e8efbe | 20010 | #ifdef __cplusplus |
20011 | extern "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 | 20015 | char geteuid (); |
20016 | int | |
20017 | main () | |
20018 | { | |
82eaf560 | 20019 | geteuid (); |
c0e8efbe | 20020 | ; |
20021 | return 0; | |
20022 | } | |
20023 | _ACEOF | |
20024 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 20025 | if { (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 |
20047 | else | |
20048 | echo "$as_me: failed program was:" >&5 | |
20049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20050 | ||
82eaf560 | 20051 | ac_cv_lib_c_geteuid=no |
c0e8efbe | 20052 | fi |
82eaf560 | 20053 | rm -f conftest.err conftest.$ac_objext \ |
c0e8efbe | 20054 | conftest$ac_exeext conftest.$ac_ext |
20055 | LIBS=$ac_check_lib_save_LIBS | |
20056 | fi | |
82eaf560 | 20057 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_geteuid" >&5 |
20058 | echo "${ECHO_T}$ac_cv_lib_c_geteuid" >&6 | |
c0e8efbe | 20059 | if test $ac_cv_lib_c_geteuid = yes; then |
20060 | ||
20061 | cat >>confdefs.h <<\_ACEOF | |
20062 | #define HAVE_GETEUID 1 | |
20063 | _ACEOF | |
20064 | ||
20065 | fi | |
20066 | ||
adad6c74 | 20067 | |
8f838781 | 20068 | # Check for C99 (and other IEEE) math functions |
82eaf560 | 20069 | echo "$as_me:$LINENO: checking for acosf in -lm" >&5 |
20070 | echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6 | |
8f838781 | 20071 | if test "${ac_cv_lib_m_acosf+set}" = set; then |
20072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20073 | else | |
20074 | ac_check_lib_save_LIBS=$LIBS | |
20075 | LIBS="-lm $LIBS" | |
b52ee437 | 20076 | if test x$gcc_no_link = xyes; then |
20077 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20078 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20079 | { (exit 1); exit 1; }; } | |
20080 | fi | |
8f838781 | 20081 | cat >conftest.$ac_ext <<_ACEOF |
20082 | /* confdefs.h. */ | |
20083 | _ACEOF | |
20084 | cat confdefs.h >>conftest.$ac_ext | |
20085 | cat >>conftest.$ac_ext <<_ACEOF | |
20086 | /* end confdefs.h. */ | |
20087 | ||
82eaf560 | 20088 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20089 | #ifdef __cplusplus |
20090 | extern "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 | 20094 | char acosf (); |
20095 | int | |
20096 | main () | |
20097 | { | |
82eaf560 | 20098 | acosf (); |
8f838781 | 20099 | ; |
20100 | return 0; | |
20101 | } | |
20102 | _ACEOF | |
20103 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 20104 | if { (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 |
20126 | else | |
20127 | echo "$as_me: failed program was:" >&5 | |
20128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20129 | ||
82eaf560 | 20130 | ac_cv_lib_m_acosf=no |
8f838781 | 20131 | fi |
82eaf560 | 20132 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20133 | conftest$ac_exeext conftest.$ac_ext |
20134 | LIBS=$ac_check_lib_save_LIBS | |
20135 | fi | |
82eaf560 | 20136 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5 |
20137 | echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6 | |
8f838781 | 20138 | if test $ac_cv_lib_m_acosf = yes; then |
20139 | ||
20140 | cat >>confdefs.h <<\_ACEOF | |
20141 | #define HAVE_ACOSF 1 | |
20142 | _ACEOF | |
20143 | ||
20144 | fi | |
20145 | ||
82eaf560 | 20146 | echo "$as_me:$LINENO: checking for acos in -lm" >&5 |
20147 | echo $ECHO_N "checking for acos in -lm... $ECHO_C" >&6 | |
d213114b | 20148 | if test "${ac_cv_lib_m_acos+set}" = set; then |
b52ee437 | 20149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20150 | else | |
20151 | ac_check_lib_save_LIBS=$LIBS | |
20152 | LIBS="-lm $LIBS" | |
20153 | if test x$gcc_no_link = xyes; then | |
20154 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20155 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20156 | { (exit 1); exit 1; }; } | |
20157 | fi | |
20158 | cat >conftest.$ac_ext <<_ACEOF | |
20159 | /* confdefs.h. */ | |
20160 | _ACEOF | |
20161 | cat confdefs.h >>conftest.$ac_ext | |
20162 | cat >>conftest.$ac_ext <<_ACEOF | |
20163 | /* end confdefs.h. */ | |
20164 | ||
82eaf560 | 20165 | /* Override any gcc2 internal prototype to avoid an error. */ |
b52ee437 | 20166 | #ifdef __cplusplus |
20167 | extern "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 | 20171 | char acos (); |
b52ee437 | 20172 | int |
20173 | main () | |
20174 | { | |
82eaf560 | 20175 | acos (); |
b52ee437 | 20176 | ; |
20177 | return 0; | |
20178 | } | |
20179 | _ACEOF | |
20180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 20181 | if { (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 | 20203 | else |
20204 | echo "$as_me: failed program was:" >&5 | |
20205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20206 | ||
82eaf560 | 20207 | ac_cv_lib_m_acos=no |
b52ee437 | 20208 | fi |
82eaf560 | 20209 | rm -f conftest.err conftest.$ac_objext \ |
b52ee437 | 20210 | conftest$ac_exeext conftest.$ac_ext |
20211 | LIBS=$ac_check_lib_save_LIBS | |
20212 | fi | |
82eaf560 | 20213 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5 |
20214 | echo "${ECHO_T}$ac_cv_lib_m_acos" >&6 | |
d213114b | 20215 | if test $ac_cv_lib_m_acos = yes; then |
b52ee437 | 20216 | |
20217 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20218 | #define HAVE_ACOS 1 |
b52ee437 | 20219 | _ACEOF |
20220 | ||
20221 | fi | |
20222 | ||
82eaf560 | 20223 | echo "$as_me:$LINENO: checking for acosl in -lm" >&5 |
20224 | echo $ECHO_N "checking for acosl in -lm... $ECHO_C" >&6 | |
d213114b | 20225 | if test "${ac_cv_lib_m_acosl+set}" = set; then |
8f838781 | 20226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20227 | else | |
20228 | ac_check_lib_save_LIBS=$LIBS | |
20229 | LIBS="-lm $LIBS" | |
b52ee437 | 20230 | if test x$gcc_no_link = xyes; then |
20231 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20232 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20233 | { (exit 1); exit 1; }; } | |
20234 | fi | |
8f838781 | 20235 | cat >conftest.$ac_ext <<_ACEOF |
20236 | /* confdefs.h. */ | |
20237 | _ACEOF | |
20238 | cat confdefs.h >>conftest.$ac_ext | |
20239 | cat >>conftest.$ac_ext <<_ACEOF | |
20240 | /* end confdefs.h. */ | |
20241 | ||
82eaf560 | 20242 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20243 | #ifdef __cplusplus |
20244 | extern "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 | 20248 | char acosl (); |
8f838781 | 20249 | int |
20250 | main () | |
20251 | { | |
82eaf560 | 20252 | acosl (); |
8f838781 | 20253 | ; |
20254 | return 0; | |
20255 | } | |
20256 | _ACEOF | |
20257 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 20258 | if { (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 | 20280 | else |
20281 | echo "$as_me: failed program was:" >&5 | |
20282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20283 | ||
82eaf560 | 20284 | ac_cv_lib_m_acosl=no |
8f838781 | 20285 | fi |
82eaf560 | 20286 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20287 | conftest$ac_exeext conftest.$ac_ext |
20288 | LIBS=$ac_check_lib_save_LIBS | |
20289 | fi | |
82eaf560 | 20290 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosl" >&5 |
20291 | echo "${ECHO_T}$ac_cv_lib_m_acosl" >&6 | |
d213114b | 20292 | if test $ac_cv_lib_m_acosl = yes; then |
8f838781 | 20293 | |
20294 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20295 | #define HAVE_ACOSL 1 |
8f838781 | 20296 | _ACEOF |
20297 | ||
20298 | fi | |
20299 | ||
82eaf560 | 20300 | echo "$as_me:$LINENO: checking for acoshf in -lm" >&5 |
20301 | echo $ECHO_N "checking for acoshf in -lm... $ECHO_C" >&6 | |
d213114b | 20302 | if test "${ac_cv_lib_m_acoshf+set}" = set; then |
b52ee437 | 20303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20304 | else | |
20305 | ac_check_lib_save_LIBS=$LIBS | |
20306 | LIBS="-lm $LIBS" | |
20307 | if test x$gcc_no_link = xyes; then | |
20308 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20309 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20310 | { (exit 1); exit 1; }; } | |
20311 | fi | |
20312 | cat >conftest.$ac_ext <<_ACEOF | |
20313 | /* confdefs.h. */ | |
20314 | _ACEOF | |
20315 | cat confdefs.h >>conftest.$ac_ext | |
20316 | cat >>conftest.$ac_ext <<_ACEOF | |
20317 | /* end confdefs.h. */ | |
20318 | ||
82eaf560 | 20319 | /* Override any gcc2 internal prototype to avoid an error. */ |
b52ee437 | 20320 | #ifdef __cplusplus |
20321 | extern "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 | 20325 | char acoshf (); |
b52ee437 | 20326 | int |
20327 | main () | |
20328 | { | |
82eaf560 | 20329 | acoshf (); |
b52ee437 | 20330 | ; |
20331 | return 0; | |
20332 | } | |
20333 | _ACEOF | |
20334 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 20335 | if { (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 | 20357 | else |
20358 | echo "$as_me: failed program was:" >&5 | |
20359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20360 | ||
82eaf560 | 20361 | ac_cv_lib_m_acoshf=no |
b52ee437 | 20362 | fi |
82eaf560 | 20363 | rm -f conftest.err conftest.$ac_objext \ |
b52ee437 | 20364 | conftest$ac_exeext conftest.$ac_ext |
20365 | LIBS=$ac_check_lib_save_LIBS | |
20366 | fi | |
82eaf560 | 20367 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshf" >&5 |
20368 | echo "${ECHO_T}$ac_cv_lib_m_acoshf" >&6 | |
d213114b | 20369 | if test $ac_cv_lib_m_acoshf = yes; then |
b52ee437 | 20370 | |
20371 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20372 | #define HAVE_ACOSHF 1 |
b52ee437 | 20373 | _ACEOF |
20374 | ||
20375 | fi | |
20376 | ||
82eaf560 | 20377 | echo "$as_me:$LINENO: checking for acosh in -lm" >&5 |
20378 | echo $ECHO_N "checking for acosh in -lm... $ECHO_C" >&6 | |
d213114b | 20379 | if test "${ac_cv_lib_m_acosh+set}" = set; then |
8f838781 | 20380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20381 | else | |
20382 | ac_check_lib_save_LIBS=$LIBS | |
20383 | LIBS="-lm $LIBS" | |
b52ee437 | 20384 | if test x$gcc_no_link = xyes; then |
20385 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20386 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20387 | { (exit 1); exit 1; }; } | |
20388 | fi | |
8f838781 | 20389 | cat >conftest.$ac_ext <<_ACEOF |
20390 | /* confdefs.h. */ | |
20391 | _ACEOF | |
20392 | cat confdefs.h >>conftest.$ac_ext | |
20393 | cat >>conftest.$ac_ext <<_ACEOF | |
20394 | /* end confdefs.h. */ | |
20395 | ||
82eaf560 | 20396 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20397 | #ifdef __cplusplus |
20398 | extern "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 | 20402 | char acosh (); |
8f838781 | 20403 | int |
20404 | main () | |
20405 | { | |
82eaf560 | 20406 | acosh (); |
8f838781 | 20407 | ; |
20408 | return 0; | |
20409 | } | |
20410 | _ACEOF | |
20411 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 20412 | if { (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 | 20434 | else |
20435 | echo "$as_me: failed program was:" >&5 | |
20436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20437 | ||
82eaf560 | 20438 | ac_cv_lib_m_acosh=no |
8f838781 | 20439 | fi |
82eaf560 | 20440 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20441 | conftest$ac_exeext conftest.$ac_ext |
20442 | LIBS=$ac_check_lib_save_LIBS | |
20443 | fi | |
82eaf560 | 20444 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosh" >&5 |
20445 | echo "${ECHO_T}$ac_cv_lib_m_acosh" >&6 | |
d213114b | 20446 | if test $ac_cv_lib_m_acosh = yes; then |
8f838781 | 20447 | |
20448 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20449 | #define HAVE_ACOSH 1 |
8f838781 | 20450 | _ACEOF |
20451 | ||
20452 | fi | |
20453 | ||
82eaf560 | 20454 | echo "$as_me:$LINENO: checking for acoshl in -lm" >&5 |
20455 | echo $ECHO_N "checking for acoshl in -lm... $ECHO_C" >&6 | |
d213114b | 20456 | if test "${ac_cv_lib_m_acoshl+set}" = set; then |
8f838781 | 20457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20458 | else | |
20459 | ac_check_lib_save_LIBS=$LIBS | |
20460 | LIBS="-lm $LIBS" | |
b52ee437 | 20461 | if test x$gcc_no_link = xyes; then |
20462 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20463 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20464 | { (exit 1); exit 1; }; } | |
20465 | fi | |
8f838781 | 20466 | cat >conftest.$ac_ext <<_ACEOF |
20467 | /* confdefs.h. */ | |
20468 | _ACEOF | |
20469 | cat confdefs.h >>conftest.$ac_ext | |
20470 | cat >>conftest.$ac_ext <<_ACEOF | |
20471 | /* end confdefs.h. */ | |
20472 | ||
82eaf560 | 20473 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20474 | #ifdef __cplusplus |
20475 | extern "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 | 20479 | char acoshl (); |
8f838781 | 20480 | int |
20481 | main () | |
20482 | { | |
82eaf560 | 20483 | acoshl (); |
8f838781 | 20484 | ; |
20485 | return 0; | |
20486 | } | |
20487 | _ACEOF | |
20488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 20489 | if { (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 | 20511 | else |
20512 | echo "$as_me: failed program was:" >&5 | |
20513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20514 | ||
82eaf560 | 20515 | ac_cv_lib_m_acoshl=no |
8f838781 | 20516 | fi |
82eaf560 | 20517 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20518 | conftest$ac_exeext conftest.$ac_ext |
20519 | LIBS=$ac_check_lib_save_LIBS | |
20520 | fi | |
82eaf560 | 20521 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshl" >&5 |
20522 | echo "${ECHO_T}$ac_cv_lib_m_acoshl" >&6 | |
d213114b | 20523 | if test $ac_cv_lib_m_acoshl = yes; then |
8f838781 | 20524 | |
20525 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20526 | #define HAVE_ACOSHL 1 |
8f838781 | 20527 | _ACEOF |
20528 | ||
20529 | fi | |
20530 | ||
82eaf560 | 20531 | echo "$as_me:$LINENO: checking for asinf in -lm" >&5 |
20532 | echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6 | |
d213114b | 20533 | if test "${ac_cv_lib_m_asinf+set}" = set; then |
b52ee437 | 20534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20535 | else | |
20536 | ac_check_lib_save_LIBS=$LIBS | |
20537 | LIBS="-lm $LIBS" | |
20538 | if test x$gcc_no_link = xyes; then | |
20539 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20540 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20541 | { (exit 1); exit 1; }; } | |
20542 | fi | |
20543 | cat >conftest.$ac_ext <<_ACEOF | |
20544 | /* confdefs.h. */ | |
20545 | _ACEOF | |
20546 | cat confdefs.h >>conftest.$ac_ext | |
20547 | cat >>conftest.$ac_ext <<_ACEOF | |
20548 | /* end confdefs.h. */ | |
20549 | ||
82eaf560 | 20550 | /* Override any gcc2 internal prototype to avoid an error. */ |
b52ee437 | 20551 | #ifdef __cplusplus |
20552 | extern "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 | 20556 | char asinf (); |
b52ee437 | 20557 | int |
20558 | main () | |
20559 | { | |
82eaf560 | 20560 | asinf (); |
b52ee437 | 20561 | ; |
20562 | return 0; | |
20563 | } | |
20564 | _ACEOF | |
20565 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 20566 | if { (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 | 20588 | else |
20589 | echo "$as_me: failed program was:" >&5 | |
20590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20591 | ||
82eaf560 | 20592 | ac_cv_lib_m_asinf=no |
b52ee437 | 20593 | fi |
82eaf560 | 20594 | rm -f conftest.err conftest.$ac_objext \ |
b52ee437 | 20595 | conftest$ac_exeext conftest.$ac_ext |
20596 | LIBS=$ac_check_lib_save_LIBS | |
20597 | fi | |
82eaf560 | 20598 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5 |
20599 | echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6 | |
d213114b | 20600 | if test $ac_cv_lib_m_asinf = yes; then |
b52ee437 | 20601 | |
20602 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20603 | #define HAVE_ASINF 1 |
b52ee437 | 20604 | _ACEOF |
20605 | ||
20606 | fi | |
20607 | ||
82eaf560 | 20608 | echo "$as_me:$LINENO: checking for asin in -lm" >&5 |
20609 | echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6 | |
d213114b | 20610 | if test "${ac_cv_lib_m_asin+set}" = set; then |
8f838781 | 20611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20612 | else | |
20613 | ac_check_lib_save_LIBS=$LIBS | |
20614 | LIBS="-lm $LIBS" | |
b52ee437 | 20615 | if test x$gcc_no_link = xyes; then |
20616 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20617 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20618 | { (exit 1); exit 1; }; } | |
20619 | fi | |
8f838781 | 20620 | cat >conftest.$ac_ext <<_ACEOF |
20621 | /* confdefs.h. */ | |
20622 | _ACEOF | |
20623 | cat confdefs.h >>conftest.$ac_ext | |
20624 | cat >>conftest.$ac_ext <<_ACEOF | |
20625 | /* end confdefs.h. */ | |
20626 | ||
82eaf560 | 20627 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20628 | #ifdef __cplusplus |
20629 | extern "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 | 20633 | char asin (); |
8f838781 | 20634 | int |
20635 | main () | |
20636 | { | |
82eaf560 | 20637 | asin (); |
8f838781 | 20638 | ; |
20639 | return 0; | |
20640 | } | |
20641 | _ACEOF | |
20642 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 20643 | if { (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 | 20665 | else |
20666 | echo "$as_me: failed program was:" >&5 | |
20667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20668 | ||
82eaf560 | 20669 | ac_cv_lib_m_asin=no |
8f838781 | 20670 | fi |
82eaf560 | 20671 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20672 | conftest$ac_exeext conftest.$ac_ext |
20673 | LIBS=$ac_check_lib_save_LIBS | |
20674 | fi | |
82eaf560 | 20675 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5 |
20676 | echo "${ECHO_T}$ac_cv_lib_m_asin" >&6 | |
d213114b | 20677 | if test $ac_cv_lib_m_asin = yes; then |
8f838781 | 20678 | |
20679 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20680 | #define HAVE_ASIN 1 |
8f838781 | 20681 | _ACEOF |
20682 | ||
20683 | fi | |
20684 | ||
82eaf560 | 20685 | echo "$as_me:$LINENO: checking for asinl in -lm" >&5 |
20686 | echo $ECHO_N "checking for asinl in -lm... $ECHO_C" >&6 | |
d213114b | 20687 | if test "${ac_cv_lib_m_asinl+set}" = set; then |
8f838781 | 20688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20689 | else | |
20690 | ac_check_lib_save_LIBS=$LIBS | |
20691 | LIBS="-lm $LIBS" | |
b52ee437 | 20692 | if test x$gcc_no_link = xyes; then |
20693 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20694 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20695 | { (exit 1); exit 1; }; } | |
20696 | fi | |
8f838781 | 20697 | cat >conftest.$ac_ext <<_ACEOF |
20698 | /* confdefs.h. */ | |
20699 | _ACEOF | |
20700 | cat confdefs.h >>conftest.$ac_ext | |
20701 | cat >>conftest.$ac_ext <<_ACEOF | |
20702 | /* end confdefs.h. */ | |
20703 | ||
82eaf560 | 20704 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20705 | #ifdef __cplusplus |
20706 | extern "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 | 20710 | char asinl (); |
8f838781 | 20711 | int |
20712 | main () | |
20713 | { | |
82eaf560 | 20714 | asinl (); |
8f838781 | 20715 | ; |
20716 | return 0; | |
20717 | } | |
20718 | _ACEOF | |
20719 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 20720 | if { (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 | 20742 | else |
20743 | echo "$as_me: failed program was:" >&5 | |
20744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20745 | ||
82eaf560 | 20746 | ac_cv_lib_m_asinl=no |
8f838781 | 20747 | fi |
82eaf560 | 20748 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20749 | conftest$ac_exeext conftest.$ac_ext |
20750 | LIBS=$ac_check_lib_save_LIBS | |
20751 | fi | |
82eaf560 | 20752 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinl" >&5 |
20753 | echo "${ECHO_T}$ac_cv_lib_m_asinl" >&6 | |
d213114b | 20754 | if test $ac_cv_lib_m_asinl = yes; then |
8f838781 | 20755 | |
20756 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20757 | #define HAVE_ASINL 1 |
8f838781 | 20758 | _ACEOF |
20759 | ||
20760 | fi | |
20761 | ||
82eaf560 | 20762 | echo "$as_me:$LINENO: checking for asinhf in -lm" >&5 |
20763 | echo $ECHO_N "checking for asinhf in -lm... $ECHO_C" >&6 | |
d213114b | 20764 | if test "${ac_cv_lib_m_asinhf+set}" = set; then |
8f838781 | 20765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20766 | else | |
20767 | ac_check_lib_save_LIBS=$LIBS | |
20768 | LIBS="-lm $LIBS" | |
b52ee437 | 20769 | if test x$gcc_no_link = xyes; then |
20770 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20771 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20772 | { (exit 1); exit 1; }; } | |
20773 | fi | |
8f838781 | 20774 | cat >conftest.$ac_ext <<_ACEOF |
20775 | /* confdefs.h. */ | |
20776 | _ACEOF | |
20777 | cat confdefs.h >>conftest.$ac_ext | |
20778 | cat >>conftest.$ac_ext <<_ACEOF | |
20779 | /* end confdefs.h. */ | |
20780 | ||
82eaf560 | 20781 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20782 | #ifdef __cplusplus |
20783 | extern "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 | 20787 | char asinhf (); |
8f838781 | 20788 | int |
20789 | main () | |
20790 | { | |
82eaf560 | 20791 | asinhf (); |
8f838781 | 20792 | ; |
20793 | return 0; | |
20794 | } | |
20795 | _ACEOF | |
20796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 20797 | if { (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 | 20819 | else |
20820 | echo "$as_me: failed program was:" >&5 | |
20821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20822 | ||
82eaf560 | 20823 | ac_cv_lib_m_asinhf=no |
8f838781 | 20824 | fi |
82eaf560 | 20825 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20826 | conftest$ac_exeext conftest.$ac_ext |
20827 | LIBS=$ac_check_lib_save_LIBS | |
20828 | fi | |
82eaf560 | 20829 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhf" >&5 |
20830 | echo "${ECHO_T}$ac_cv_lib_m_asinhf" >&6 | |
d213114b | 20831 | if test $ac_cv_lib_m_asinhf = yes; then |
8f838781 | 20832 | |
20833 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20834 | #define HAVE_ASINHF 1 |
8f838781 | 20835 | _ACEOF |
20836 | ||
20837 | fi | |
20838 | ||
82eaf560 | 20839 | echo "$as_me:$LINENO: checking for asinh in -lm" >&5 |
20840 | echo $ECHO_N "checking for asinh in -lm... $ECHO_C" >&6 | |
d213114b | 20841 | if test "${ac_cv_lib_m_asinh+set}" = set; then |
8f838781 | 20842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20843 | else | |
20844 | ac_check_lib_save_LIBS=$LIBS | |
20845 | LIBS="-lm $LIBS" | |
b52ee437 | 20846 | if test x$gcc_no_link = xyes; then |
20847 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20848 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20849 | { (exit 1); exit 1; }; } | |
20850 | fi | |
8f838781 | 20851 | cat >conftest.$ac_ext <<_ACEOF |
20852 | /* confdefs.h. */ | |
20853 | _ACEOF | |
20854 | cat confdefs.h >>conftest.$ac_ext | |
20855 | cat >>conftest.$ac_ext <<_ACEOF | |
20856 | /* end confdefs.h. */ | |
20857 | ||
82eaf560 | 20858 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20859 | #ifdef __cplusplus |
20860 | extern "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 | 20864 | char asinh (); |
8f838781 | 20865 | int |
20866 | main () | |
20867 | { | |
82eaf560 | 20868 | asinh (); |
8f838781 | 20869 | ; |
20870 | return 0; | |
20871 | } | |
20872 | _ACEOF | |
20873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 20874 | if { (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 | 20896 | else |
20897 | echo "$as_me: failed program was:" >&5 | |
20898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20899 | ||
82eaf560 | 20900 | ac_cv_lib_m_asinh=no |
8f838781 | 20901 | fi |
82eaf560 | 20902 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20903 | conftest$ac_exeext conftest.$ac_ext |
20904 | LIBS=$ac_check_lib_save_LIBS | |
20905 | fi | |
82eaf560 | 20906 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinh" >&5 |
20907 | echo "${ECHO_T}$ac_cv_lib_m_asinh" >&6 | |
d213114b | 20908 | if test $ac_cv_lib_m_asinh = yes; then |
8f838781 | 20909 | |
20910 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20911 | #define HAVE_ASINH 1 |
8f838781 | 20912 | _ACEOF |
20913 | ||
20914 | fi | |
20915 | ||
82eaf560 | 20916 | echo "$as_me:$LINENO: checking for asinhl in -lm" >&5 |
20917 | echo $ECHO_N "checking for asinhl in -lm... $ECHO_C" >&6 | |
d213114b | 20918 | if test "${ac_cv_lib_m_asinhl+set}" = set; then |
8f838781 | 20919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20920 | else | |
20921 | ac_check_lib_save_LIBS=$LIBS | |
20922 | LIBS="-lm $LIBS" | |
b52ee437 | 20923 | if test x$gcc_no_link = xyes; then |
20924 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20925 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20926 | { (exit 1); exit 1; }; } | |
20927 | fi | |
8f838781 | 20928 | cat >conftest.$ac_ext <<_ACEOF |
20929 | /* confdefs.h. */ | |
20930 | _ACEOF | |
20931 | cat confdefs.h >>conftest.$ac_ext | |
20932 | cat >>conftest.$ac_ext <<_ACEOF | |
20933 | /* end confdefs.h. */ | |
20934 | ||
82eaf560 | 20935 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 20936 | #ifdef __cplusplus |
20937 | extern "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 | 20941 | char asinhl (); |
8f838781 | 20942 | int |
20943 | main () | |
20944 | { | |
82eaf560 | 20945 | asinhl (); |
8f838781 | 20946 | ; |
20947 | return 0; | |
20948 | } | |
20949 | _ACEOF | |
20950 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 20951 | if { (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 | 20973 | else |
20974 | echo "$as_me: failed program was:" >&5 | |
20975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20976 | ||
82eaf560 | 20977 | ac_cv_lib_m_asinhl=no |
8f838781 | 20978 | fi |
82eaf560 | 20979 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 20980 | conftest$ac_exeext conftest.$ac_ext |
20981 | LIBS=$ac_check_lib_save_LIBS | |
20982 | fi | |
82eaf560 | 20983 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhl" >&5 |
20984 | echo "${ECHO_T}$ac_cv_lib_m_asinhl" >&6 | |
d213114b | 20985 | if test $ac_cv_lib_m_asinhl = yes; then |
8f838781 | 20986 | |
20987 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 20988 | #define HAVE_ASINHL 1 |
8f838781 | 20989 | _ACEOF |
20990 | ||
20991 | fi | |
20992 | ||
82eaf560 | 20993 | echo "$as_me:$LINENO: checking for atan2f in -lm" >&5 |
20994 | echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6 | |
d213114b | 20995 | if test "${ac_cv_lib_m_atan2f+set}" = set; then |
334f03a1 | 20996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20997 | else | |
20998 | ac_check_lib_save_LIBS=$LIBS | |
20999 | LIBS="-lm $LIBS" | |
b52ee437 | 21000 | if test x$gcc_no_link = xyes; then |
21001 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21002 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21003 | { (exit 1); exit 1; }; } | |
21004 | fi | |
334f03a1 | 21005 | cat >conftest.$ac_ext <<_ACEOF |
21006 | /* confdefs.h. */ | |
21007 | _ACEOF | |
21008 | cat confdefs.h >>conftest.$ac_ext | |
21009 | cat >>conftest.$ac_ext <<_ACEOF | |
21010 | /* end confdefs.h. */ | |
21011 | ||
82eaf560 | 21012 | /* Override any gcc2 internal prototype to avoid an error. */ |
334f03a1 | 21013 | #ifdef __cplusplus |
21014 | extern "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 | 21018 | char atan2f (); |
334f03a1 | 21019 | int |
21020 | main () | |
21021 | { | |
82eaf560 | 21022 | atan2f (); |
334f03a1 | 21023 | ; |
21024 | return 0; | |
21025 | } | |
21026 | _ACEOF | |
21027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 21028 | if { (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 | 21050 | else |
21051 | echo "$as_me: failed program was:" >&5 | |
21052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21053 | ||
82eaf560 | 21054 | ac_cv_lib_m_atan2f=no |
334f03a1 | 21055 | fi |
82eaf560 | 21056 | rm -f conftest.err conftest.$ac_objext \ |
334f03a1 | 21057 | conftest$ac_exeext conftest.$ac_ext |
21058 | LIBS=$ac_check_lib_save_LIBS | |
21059 | fi | |
82eaf560 | 21060 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5 |
21061 | echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6 | |
d213114b | 21062 | if test $ac_cv_lib_m_atan2f = yes; then |
334f03a1 | 21063 | |
21064 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21065 | #define HAVE_ATAN2F 1 |
334f03a1 | 21066 | _ACEOF |
21067 | ||
21068 | fi | |
21069 | ||
82eaf560 | 21070 | echo "$as_me:$LINENO: checking for atan2 in -lm" >&5 |
21071 | echo $ECHO_N "checking for atan2 in -lm... $ECHO_C" >&6 | |
d213114b | 21072 | if test "${ac_cv_lib_m_atan2+set}" = set; then |
8f838781 | 21073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21074 | else | |
21075 | ac_check_lib_save_LIBS=$LIBS | |
21076 | LIBS="-lm $LIBS" | |
b52ee437 | 21077 | if test x$gcc_no_link = xyes; then |
21078 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21079 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21080 | { (exit 1); exit 1; }; } | |
21081 | fi | |
8f838781 | 21082 | cat >conftest.$ac_ext <<_ACEOF |
21083 | /* confdefs.h. */ | |
21084 | _ACEOF | |
21085 | cat confdefs.h >>conftest.$ac_ext | |
21086 | cat >>conftest.$ac_ext <<_ACEOF | |
21087 | /* end confdefs.h. */ | |
21088 | ||
82eaf560 | 21089 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 21090 | #ifdef __cplusplus |
21091 | extern "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 | 21095 | char atan2 (); |
8f838781 | 21096 | int |
21097 | main () | |
21098 | { | |
82eaf560 | 21099 | atan2 (); |
8f838781 | 21100 | ; |
21101 | return 0; | |
21102 | } | |
21103 | _ACEOF | |
21104 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 21105 | if { (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 | 21127 | else |
21128 | echo "$as_me: failed program was:" >&5 | |
21129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21130 | ||
82eaf560 | 21131 | ac_cv_lib_m_atan2=no |
8f838781 | 21132 | fi |
82eaf560 | 21133 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 21134 | conftest$ac_exeext conftest.$ac_ext |
21135 | LIBS=$ac_check_lib_save_LIBS | |
21136 | fi | |
82eaf560 | 21137 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2" >&5 |
21138 | echo "${ECHO_T}$ac_cv_lib_m_atan2" >&6 | |
d213114b | 21139 | if test $ac_cv_lib_m_atan2 = yes; then |
8f838781 | 21140 | |
21141 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21142 | #define HAVE_ATAN2 1 |
8f838781 | 21143 | _ACEOF |
21144 | ||
21145 | fi | |
21146 | ||
82eaf560 | 21147 | echo "$as_me:$LINENO: checking for atan2l in -lm" >&5 |
21148 | echo $ECHO_N "checking for atan2l in -lm... $ECHO_C" >&6 | |
d213114b | 21149 | if test "${ac_cv_lib_m_atan2l+set}" = set; then |
8f838781 | 21150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21151 | else | |
21152 | ac_check_lib_save_LIBS=$LIBS | |
21153 | LIBS="-lm $LIBS" | |
b52ee437 | 21154 | if test x$gcc_no_link = xyes; then |
21155 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21156 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21157 | { (exit 1); exit 1; }; } | |
21158 | fi | |
8f838781 | 21159 | cat >conftest.$ac_ext <<_ACEOF |
21160 | /* confdefs.h. */ | |
21161 | _ACEOF | |
21162 | cat confdefs.h >>conftest.$ac_ext | |
21163 | cat >>conftest.$ac_ext <<_ACEOF | |
21164 | /* end confdefs.h. */ | |
21165 | ||
82eaf560 | 21166 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 21167 | #ifdef __cplusplus |
21168 | extern "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 | 21172 | char atan2l (); |
8f838781 | 21173 | int |
21174 | main () | |
21175 | { | |
82eaf560 | 21176 | atan2l (); |
8f838781 | 21177 | ; |
21178 | return 0; | |
21179 | } | |
21180 | _ACEOF | |
21181 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 21182 | if { (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 | 21204 | else |
21205 | echo "$as_me: failed program was:" >&5 | |
21206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21207 | ||
82eaf560 | 21208 | ac_cv_lib_m_atan2l=no |
8f838781 | 21209 | fi |
82eaf560 | 21210 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 21211 | conftest$ac_exeext conftest.$ac_ext |
21212 | LIBS=$ac_check_lib_save_LIBS | |
21213 | fi | |
82eaf560 | 21214 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2l" >&5 |
21215 | echo "${ECHO_T}$ac_cv_lib_m_atan2l" >&6 | |
d213114b | 21216 | if test $ac_cv_lib_m_atan2l = yes; then |
8f838781 | 21217 | |
21218 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21219 | #define HAVE_ATAN2L 1 |
8f838781 | 21220 | _ACEOF |
21221 | ||
21222 | fi | |
21223 | ||
82eaf560 | 21224 | echo "$as_me:$LINENO: checking for atanf in -lm" >&5 |
21225 | echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6 | |
d213114b | 21226 | if test "${ac_cv_lib_m_atanf+set}" = set; then |
8f838781 | 21227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21228 | else | |
21229 | ac_check_lib_save_LIBS=$LIBS | |
21230 | LIBS="-lm $LIBS" | |
b52ee437 | 21231 | if test x$gcc_no_link = xyes; then |
21232 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21233 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21234 | { (exit 1); exit 1; }; } | |
21235 | fi | |
8f838781 | 21236 | cat >conftest.$ac_ext <<_ACEOF |
21237 | /* confdefs.h. */ | |
21238 | _ACEOF | |
21239 | cat confdefs.h >>conftest.$ac_ext | |
21240 | cat >>conftest.$ac_ext <<_ACEOF | |
21241 | /* end confdefs.h. */ | |
21242 | ||
82eaf560 | 21243 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 21244 | #ifdef __cplusplus |
21245 | extern "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 | 21249 | char atanf (); |
8f838781 | 21250 | int |
21251 | main () | |
21252 | { | |
82eaf560 | 21253 | atanf (); |
8f838781 | 21254 | ; |
21255 | return 0; | |
21256 | } | |
21257 | _ACEOF | |
21258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 21259 | if { (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 | 21281 | else |
21282 | echo "$as_me: failed program was:" >&5 | |
21283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21284 | ||
82eaf560 | 21285 | ac_cv_lib_m_atanf=no |
8f838781 | 21286 | fi |
82eaf560 | 21287 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 21288 | conftest$ac_exeext conftest.$ac_ext |
21289 | LIBS=$ac_check_lib_save_LIBS | |
21290 | fi | |
82eaf560 | 21291 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5 |
21292 | echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6 | |
d213114b | 21293 | if test $ac_cv_lib_m_atanf = yes; then |
8f838781 | 21294 | |
21295 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21296 | #define HAVE_ATANF 1 |
8f838781 | 21297 | _ACEOF |
21298 | ||
21299 | fi | |
21300 | ||
82eaf560 | 21301 | echo "$as_me:$LINENO: checking for atan in -lm" >&5 |
21302 | echo $ECHO_N "checking for atan in -lm... $ECHO_C" >&6 | |
d213114b | 21303 | if test "${ac_cv_lib_m_atan+set}" = set; then |
8f838781 | 21304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21305 | else | |
21306 | ac_check_lib_save_LIBS=$LIBS | |
21307 | LIBS="-lm $LIBS" | |
b52ee437 | 21308 | if test x$gcc_no_link = xyes; then |
21309 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21310 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21311 | { (exit 1); exit 1; }; } | |
21312 | fi | |
8f838781 | 21313 | cat >conftest.$ac_ext <<_ACEOF |
21314 | /* confdefs.h. */ | |
21315 | _ACEOF | |
21316 | cat confdefs.h >>conftest.$ac_ext | |
21317 | cat >>conftest.$ac_ext <<_ACEOF | |
21318 | /* end confdefs.h. */ | |
21319 | ||
82eaf560 | 21320 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 21321 | #ifdef __cplusplus |
21322 | extern "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 | 21326 | char atan (); |
8f838781 | 21327 | int |
21328 | main () | |
21329 | { | |
82eaf560 | 21330 | atan (); |
8f838781 | 21331 | ; |
21332 | return 0; | |
21333 | } | |
21334 | _ACEOF | |
21335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 21336 | if { (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 | 21358 | else |
21359 | echo "$as_me: failed program was:" >&5 | |
21360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21361 | ||
82eaf560 | 21362 | ac_cv_lib_m_atan=no |
8f838781 | 21363 | fi |
82eaf560 | 21364 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 21365 | conftest$ac_exeext conftest.$ac_ext |
21366 | LIBS=$ac_check_lib_save_LIBS | |
21367 | fi | |
82eaf560 | 21368 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan" >&5 |
21369 | echo "${ECHO_T}$ac_cv_lib_m_atan" >&6 | |
d213114b | 21370 | if test $ac_cv_lib_m_atan = yes; then |
8f838781 | 21371 | |
21372 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21373 | #define HAVE_ATAN 1 |
8f838781 | 21374 | _ACEOF |
21375 | ||
21376 | fi | |
21377 | ||
82eaf560 | 21378 | echo "$as_me:$LINENO: checking for atanl in -lm" >&5 |
21379 | echo $ECHO_N "checking for atanl in -lm... $ECHO_C" >&6 | |
d213114b | 21380 | if test "${ac_cv_lib_m_atanl+set}" = set; then |
8f838781 | 21381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21382 | else | |
21383 | ac_check_lib_save_LIBS=$LIBS | |
21384 | LIBS="-lm $LIBS" | |
b52ee437 | 21385 | if test x$gcc_no_link = xyes; then |
21386 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21387 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21388 | { (exit 1); exit 1; }; } | |
21389 | fi | |
8f838781 | 21390 | cat >conftest.$ac_ext <<_ACEOF |
21391 | /* confdefs.h. */ | |
21392 | _ACEOF | |
21393 | cat confdefs.h >>conftest.$ac_ext | |
21394 | cat >>conftest.$ac_ext <<_ACEOF | |
21395 | /* end confdefs.h. */ | |
21396 | ||
82eaf560 | 21397 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 21398 | #ifdef __cplusplus |
21399 | extern "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 | 21403 | char atanl (); |
8f838781 | 21404 | int |
21405 | main () | |
21406 | { | |
82eaf560 | 21407 | atanl (); |
8f838781 | 21408 | ; |
21409 | return 0; | |
21410 | } | |
21411 | _ACEOF | |
21412 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 21413 | if { (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 | 21435 | else |
21436 | echo "$as_me: failed program was:" >&5 | |
21437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21438 | ||
82eaf560 | 21439 | ac_cv_lib_m_atanl=no |
8f838781 | 21440 | fi |
82eaf560 | 21441 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 21442 | conftest$ac_exeext conftest.$ac_ext |
21443 | LIBS=$ac_check_lib_save_LIBS | |
21444 | fi | |
82eaf560 | 21445 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanl" >&5 |
21446 | echo "${ECHO_T}$ac_cv_lib_m_atanl" >&6 | |
d213114b | 21447 | if test $ac_cv_lib_m_atanl = yes; then |
8f838781 | 21448 | |
21449 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21450 | #define HAVE_ATANL 1 |
8f838781 | 21451 | _ACEOF |
21452 | ||
21453 | fi | |
21454 | ||
82eaf560 | 21455 | echo "$as_me:$LINENO: checking for atanhf in -lm" >&5 |
21456 | echo $ECHO_N "checking for atanhf in -lm... $ECHO_C" >&6 | |
d213114b | 21457 | if test "${ac_cv_lib_m_atanhf+set}" = set; then |
14c3c235 | 21458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21459 | else | |
21460 | ac_check_lib_save_LIBS=$LIBS | |
21461 | LIBS="-lm $LIBS" | |
b52ee437 | 21462 | if test x$gcc_no_link = xyes; then |
21463 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21464 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21465 | { (exit 1); exit 1; }; } | |
21466 | fi | |
14c3c235 | 21467 | cat >conftest.$ac_ext <<_ACEOF |
21468 | /* confdefs.h. */ | |
21469 | _ACEOF | |
21470 | cat confdefs.h >>conftest.$ac_ext | |
21471 | cat >>conftest.$ac_ext <<_ACEOF | |
21472 | /* end confdefs.h. */ | |
21473 | ||
82eaf560 | 21474 | /* Override any gcc2 internal prototype to avoid an error. */ |
14c3c235 | 21475 | #ifdef __cplusplus |
21476 | extern "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 | 21480 | char atanhf (); |
14c3c235 | 21481 | int |
21482 | main () | |
21483 | { | |
82eaf560 | 21484 | atanhf (); |
14c3c235 | 21485 | ; |
21486 | return 0; | |
21487 | } | |
21488 | _ACEOF | |
21489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 21490 | if { (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 | 21512 | else |
21513 | echo "$as_me: failed program was:" >&5 | |
21514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21515 | ||
82eaf560 | 21516 | ac_cv_lib_m_atanhf=no |
14c3c235 | 21517 | fi |
82eaf560 | 21518 | rm -f conftest.err conftest.$ac_objext \ |
14c3c235 | 21519 | conftest$ac_exeext conftest.$ac_ext |
21520 | LIBS=$ac_check_lib_save_LIBS | |
21521 | fi | |
82eaf560 | 21522 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhf" >&5 |
21523 | echo "${ECHO_T}$ac_cv_lib_m_atanhf" >&6 | |
d213114b | 21524 | if test $ac_cv_lib_m_atanhf = yes; then |
14c3c235 | 21525 | |
21526 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21527 | #define HAVE_ATANHF 1 |
14c3c235 | 21528 | _ACEOF |
21529 | ||
21530 | fi | |
21531 | ||
82eaf560 | 21532 | echo "$as_me:$LINENO: checking for atanh in -lm" >&5 |
21533 | echo $ECHO_N "checking for atanh in -lm... $ECHO_C" >&6 | |
d213114b | 21534 | if test "${ac_cv_lib_m_atanh+set}" = set; then |
8f838781 | 21535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21536 | else | |
21537 | ac_check_lib_save_LIBS=$LIBS | |
21538 | LIBS="-lm $LIBS" | |
b52ee437 | 21539 | if test x$gcc_no_link = xyes; then |
21540 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21541 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21542 | { (exit 1); exit 1; }; } | |
21543 | fi | |
8f838781 | 21544 | cat >conftest.$ac_ext <<_ACEOF |
21545 | /* confdefs.h. */ | |
21546 | _ACEOF | |
21547 | cat confdefs.h >>conftest.$ac_ext | |
21548 | cat >>conftest.$ac_ext <<_ACEOF | |
21549 | /* end confdefs.h. */ | |
21550 | ||
82eaf560 | 21551 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 21552 | #ifdef __cplusplus |
21553 | extern "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 | 21557 | char atanh (); |
8f838781 | 21558 | int |
21559 | main () | |
21560 | { | |
82eaf560 | 21561 | atanh (); |
8f838781 | 21562 | ; |
21563 | return 0; | |
21564 | } | |
21565 | _ACEOF | |
21566 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 21567 | if { (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 | 21589 | else |
21590 | echo "$as_me: failed program was:" >&5 | |
21591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21592 | ||
82eaf560 | 21593 | ac_cv_lib_m_atanh=no |
8f838781 | 21594 | fi |
82eaf560 | 21595 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 21596 | conftest$ac_exeext conftest.$ac_ext |
21597 | LIBS=$ac_check_lib_save_LIBS | |
21598 | fi | |
82eaf560 | 21599 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanh" >&5 |
21600 | echo "${ECHO_T}$ac_cv_lib_m_atanh" >&6 | |
d213114b | 21601 | if test $ac_cv_lib_m_atanh = yes; then |
8f838781 | 21602 | |
21603 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21604 | #define HAVE_ATANH 1 |
8f838781 | 21605 | _ACEOF |
21606 | ||
21607 | fi | |
21608 | ||
82eaf560 | 21609 | echo "$as_me:$LINENO: checking for atanhl in -lm" >&5 |
21610 | echo $ECHO_N "checking for atanhl in -lm... $ECHO_C" >&6 | |
d213114b | 21611 | if test "${ac_cv_lib_m_atanhl+set}" = set; then |
8f838781 | 21612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21613 | else | |
21614 | ac_check_lib_save_LIBS=$LIBS | |
21615 | LIBS="-lm $LIBS" | |
b52ee437 | 21616 | if test x$gcc_no_link = xyes; then |
21617 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21618 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21619 | { (exit 1); exit 1; }; } | |
21620 | fi | |
8f838781 | 21621 | cat >conftest.$ac_ext <<_ACEOF |
21622 | /* confdefs.h. */ | |
21623 | _ACEOF | |
21624 | cat confdefs.h >>conftest.$ac_ext | |
21625 | cat >>conftest.$ac_ext <<_ACEOF | |
21626 | /* end confdefs.h. */ | |
21627 | ||
82eaf560 | 21628 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 21629 | #ifdef __cplusplus |
21630 | extern "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 | 21634 | char atanhl (); |
8f838781 | 21635 | int |
21636 | main () | |
21637 | { | |
82eaf560 | 21638 | atanhl (); |
8f838781 | 21639 | ; |
21640 | return 0; | |
21641 | } | |
21642 | _ACEOF | |
21643 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 21644 | if { (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 | 21666 | else |
21667 | echo "$as_me: failed program was:" >&5 | |
21668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21669 | ||
82eaf560 | 21670 | ac_cv_lib_m_atanhl=no |
8f838781 | 21671 | fi |
82eaf560 | 21672 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 21673 | conftest$ac_exeext conftest.$ac_ext |
21674 | LIBS=$ac_check_lib_save_LIBS | |
21675 | fi | |
82eaf560 | 21676 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhl" >&5 |
21677 | echo "${ECHO_T}$ac_cv_lib_m_atanhl" >&6 | |
d213114b | 21678 | if test $ac_cv_lib_m_atanhl = yes; then |
8f838781 | 21679 | |
21680 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21681 | #define HAVE_ATANHL 1 |
8f838781 | 21682 | _ACEOF |
21683 | ||
21684 | fi | |
21685 | ||
82eaf560 | 21686 | echo "$as_me:$LINENO: checking for cargf in -lm" >&5 |
21687 | echo $ECHO_N "checking for cargf in -lm... $ECHO_C" >&6 | |
d213114b | 21688 | if test "${ac_cv_lib_m_cargf+set}" = set; then |
a2d7a3ff | 21689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21690 | else | |
21691 | ac_check_lib_save_LIBS=$LIBS | |
21692 | LIBS="-lm $LIBS" | |
b52ee437 | 21693 | if test x$gcc_no_link = xyes; then |
21694 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21695 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21696 | { (exit 1); exit 1; }; } | |
21697 | fi | |
a2d7a3ff | 21698 | cat >conftest.$ac_ext <<_ACEOF |
21699 | /* confdefs.h. */ | |
21700 | _ACEOF | |
21701 | cat confdefs.h >>conftest.$ac_ext | |
21702 | cat >>conftest.$ac_ext <<_ACEOF | |
21703 | /* end confdefs.h. */ | |
21704 | ||
82eaf560 | 21705 | /* Override any gcc2 internal prototype to avoid an error. */ |
a2d7a3ff | 21706 | #ifdef __cplusplus |
21707 | extern "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 | 21711 | char cargf (); |
a2d7a3ff | 21712 | int |
21713 | main () | |
21714 | { | |
82eaf560 | 21715 | cargf (); |
a2d7a3ff | 21716 | ; |
21717 | return 0; | |
21718 | } | |
21719 | _ACEOF | |
21720 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 21721 | if { (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 | 21743 | else |
21744 | echo "$as_me: failed program was:" >&5 | |
21745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21746 | ||
82eaf560 | 21747 | ac_cv_lib_m_cargf=no |
a2d7a3ff | 21748 | fi |
82eaf560 | 21749 | rm -f conftest.err conftest.$ac_objext \ |
a2d7a3ff | 21750 | conftest$ac_exeext conftest.$ac_ext |
21751 | LIBS=$ac_check_lib_save_LIBS | |
21752 | fi | |
82eaf560 | 21753 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cargf" >&5 |
21754 | echo "${ECHO_T}$ac_cv_lib_m_cargf" >&6 | |
d213114b | 21755 | if test $ac_cv_lib_m_cargf = yes; then |
a2d7a3ff | 21756 | |
21757 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21758 | #define HAVE_CARGF 1 |
a2d7a3ff | 21759 | _ACEOF |
21760 | ||
21761 | fi | |
21762 | ||
82eaf560 | 21763 | echo "$as_me:$LINENO: checking for carg in -lm" >&5 |
21764 | echo $ECHO_N "checking for carg in -lm... $ECHO_C" >&6 | |
d213114b | 21765 | if test "${ac_cv_lib_m_carg+set}" = set; then |
a31bd8a4 | 21766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21767 | else | |
21768 | ac_check_lib_save_LIBS=$LIBS | |
21769 | LIBS="-lm $LIBS" | |
b52ee437 | 21770 | if test x$gcc_no_link = xyes; then |
21771 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21772 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21773 | { (exit 1); exit 1; }; } | |
21774 | fi | |
a31bd8a4 | 21775 | cat >conftest.$ac_ext <<_ACEOF |
21776 | /* confdefs.h. */ | |
21777 | _ACEOF | |
21778 | cat confdefs.h >>conftest.$ac_ext | |
21779 | cat >>conftest.$ac_ext <<_ACEOF | |
21780 | /* end confdefs.h. */ | |
21781 | ||
82eaf560 | 21782 | /* Override any gcc2 internal prototype to avoid an error. */ |
a31bd8a4 | 21783 | #ifdef __cplusplus |
21784 | extern "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 | 21788 | char carg (); |
8f838781 | 21789 | int |
21790 | main () | |
21791 | { | |
82eaf560 | 21792 | carg (); |
8f838781 | 21793 | ; |
21794 | return 0; | |
21795 | } | |
21796 | _ACEOF | |
21797 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 21798 | if { (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 | 21820 | else |
21821 | echo "$as_me: failed program was:" >&5 | |
21822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21823 | ||
82eaf560 | 21824 | ac_cv_lib_m_carg=no |
8f838781 | 21825 | fi |
82eaf560 | 21826 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 21827 | conftest$ac_exeext conftest.$ac_ext |
21828 | LIBS=$ac_check_lib_save_LIBS | |
21829 | fi | |
82eaf560 | 21830 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_carg" >&5 |
21831 | echo "${ECHO_T}$ac_cv_lib_m_carg" >&6 | |
d213114b | 21832 | if test $ac_cv_lib_m_carg = yes; then |
8f838781 | 21833 | |
21834 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21835 | #define HAVE_CARG 1 |
8f838781 | 21836 | _ACEOF |
21837 | ||
21838 | fi | |
21839 | ||
82eaf560 | 21840 | echo "$as_me:$LINENO: checking for cargl in -lm" >&5 |
21841 | echo $ECHO_N "checking for cargl in -lm... $ECHO_C" >&6 | |
d213114b | 21842 | if test "${ac_cv_lib_m_cargl+set}" = set; then |
8f838781 | 21843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21844 | else | |
21845 | ac_check_lib_save_LIBS=$LIBS | |
21846 | LIBS="-lm $LIBS" | |
b52ee437 | 21847 | if test x$gcc_no_link = xyes; then |
21848 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21849 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21850 | { (exit 1); exit 1; }; } | |
21851 | fi | |
8f838781 | 21852 | cat >conftest.$ac_ext <<_ACEOF |
21853 | /* confdefs.h. */ | |
21854 | _ACEOF | |
21855 | cat confdefs.h >>conftest.$ac_ext | |
21856 | cat >>conftest.$ac_ext <<_ACEOF | |
21857 | /* end confdefs.h. */ | |
21858 | ||
82eaf560 | 21859 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 21860 | #ifdef __cplusplus |
21861 | extern "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 | 21865 | char cargl (); |
a31bd8a4 | 21866 | int |
21867 | main () | |
21868 | { | |
82eaf560 | 21869 | cargl (); |
a31bd8a4 | 21870 | ; |
21871 | return 0; | |
21872 | } | |
21873 | _ACEOF | |
21874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 21875 | if { (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 | 21897 | else |
21898 | echo "$as_me: failed program was:" >&5 | |
21899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21900 | ||
82eaf560 | 21901 | ac_cv_lib_m_cargl=no |
a31bd8a4 | 21902 | fi |
82eaf560 | 21903 | rm -f conftest.err conftest.$ac_objext \ |
a31bd8a4 | 21904 | conftest$ac_exeext conftest.$ac_ext |
21905 | LIBS=$ac_check_lib_save_LIBS | |
21906 | fi | |
82eaf560 | 21907 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cargl" >&5 |
21908 | echo "${ECHO_T}$ac_cv_lib_m_cargl" >&6 | |
d213114b | 21909 | if test $ac_cv_lib_m_cargl = yes; then |
a31bd8a4 | 21910 | |
21911 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21912 | #define HAVE_CARGL 1 |
a31bd8a4 | 21913 | _ACEOF |
21914 | ||
21915 | fi | |
21916 | ||
82eaf560 | 21917 | echo "$as_me:$LINENO: checking for ceilf in -lm" >&5 |
21918 | echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6 | |
d213114b | 21919 | if test "${ac_cv_lib_m_ceilf+set}" = set; then |
a31bd8a4 | 21920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21921 | else | |
21922 | ac_check_lib_save_LIBS=$LIBS | |
21923 | LIBS="-lm $LIBS" | |
b52ee437 | 21924 | if test x$gcc_no_link = xyes; then |
21925 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
21926 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
21927 | { (exit 1); exit 1; }; } | |
21928 | fi | |
a31bd8a4 | 21929 | cat >conftest.$ac_ext <<_ACEOF |
21930 | /* confdefs.h. */ | |
21931 | _ACEOF | |
21932 | cat confdefs.h >>conftest.$ac_ext | |
21933 | cat >>conftest.$ac_ext <<_ACEOF | |
21934 | /* end confdefs.h. */ | |
21935 | ||
82eaf560 | 21936 | /* Override any gcc2 internal prototype to avoid an error. */ |
a31bd8a4 | 21937 | #ifdef __cplusplus |
21938 | extern "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 | 21942 | char ceilf (); |
a31bd8a4 | 21943 | int |
21944 | main () | |
21945 | { | |
82eaf560 | 21946 | ceilf (); |
a31bd8a4 | 21947 | ; |
21948 | return 0; | |
21949 | } | |
21950 | _ACEOF | |
21951 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 21952 | if { (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 | 21974 | else |
21975 | echo "$as_me: failed program was:" >&5 | |
21976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21977 | ||
82eaf560 | 21978 | ac_cv_lib_m_ceilf=no |
a31bd8a4 | 21979 | fi |
82eaf560 | 21980 | rm -f conftest.err conftest.$ac_objext \ |
a31bd8a4 | 21981 | conftest$ac_exeext conftest.$ac_ext |
21982 | LIBS=$ac_check_lib_save_LIBS | |
21983 | fi | |
82eaf560 | 21984 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5 |
21985 | echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6 | |
d213114b | 21986 | if test $ac_cv_lib_m_ceilf = yes; then |
a31bd8a4 | 21987 | |
21988 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 21989 | #define HAVE_CEILF 1 |
a31bd8a4 | 21990 | _ACEOF |
21991 | ||
21992 | fi | |
21993 | ||
82eaf560 | 21994 | echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
21995 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6 | |
d213114b | 21996 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
97844b15 | 21997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21998 | else | |
21999 | ac_check_lib_save_LIBS=$LIBS | |
22000 | LIBS="-lm $LIBS" | |
b52ee437 | 22001 | if test x$gcc_no_link = xyes; then |
22002 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22003 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22004 | { (exit 1); exit 1; }; } | |
22005 | fi | |
97844b15 | 22006 | cat >conftest.$ac_ext <<_ACEOF |
22007 | /* confdefs.h. */ | |
22008 | _ACEOF | |
22009 | cat confdefs.h >>conftest.$ac_ext | |
22010 | cat >>conftest.$ac_ext <<_ACEOF | |
22011 | /* end confdefs.h. */ | |
22012 | ||
82eaf560 | 22013 | /* Override any gcc2 internal prototype to avoid an error. */ |
97844b15 | 22014 | #ifdef __cplusplus |
22015 | extern "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 | 22019 | char ceil (); |
97844b15 | 22020 | int |
22021 | main () | |
22022 | { | |
82eaf560 | 22023 | ceil (); |
97844b15 | 22024 | ; |
22025 | return 0; | |
22026 | } | |
22027 | _ACEOF | |
22028 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 22029 | if { (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 | 22051 | else |
22052 | echo "$as_me: failed program was:" >&5 | |
22053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22054 | ||
82eaf560 | 22055 | ac_cv_lib_m_ceil=no |
97844b15 | 22056 | fi |
82eaf560 | 22057 | rm -f conftest.err conftest.$ac_objext \ |
97844b15 | 22058 | conftest$ac_exeext conftest.$ac_ext |
22059 | LIBS=$ac_check_lib_save_LIBS | |
22060 | fi | |
82eaf560 | 22061 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
22062 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6 | |
d213114b | 22063 | if test $ac_cv_lib_m_ceil = yes; then |
97844b15 | 22064 | |
22065 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 22066 | #define HAVE_CEIL 1 |
97844b15 | 22067 | _ACEOF |
22068 | ||
22069 | fi | |
22070 | ||
82eaf560 | 22071 | echo "$as_me:$LINENO: checking for ceill in -lm" >&5 |
22072 | echo $ECHO_N "checking for ceill in -lm... $ECHO_C" >&6 | |
d213114b | 22073 | if test "${ac_cv_lib_m_ceill+set}" = set; then |
4db2deda | 22074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22075 | else | |
22076 | ac_check_lib_save_LIBS=$LIBS | |
22077 | LIBS="-lm $LIBS" | |
b52ee437 | 22078 | if test x$gcc_no_link = xyes; then |
22079 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22080 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22081 | { (exit 1); exit 1; }; } | |
22082 | fi | |
4db2deda | 22083 | cat >conftest.$ac_ext <<_ACEOF |
22084 | /* confdefs.h. */ | |
22085 | _ACEOF | |
22086 | cat confdefs.h >>conftest.$ac_ext | |
22087 | cat >>conftest.$ac_ext <<_ACEOF | |
22088 | /* end confdefs.h. */ | |
22089 | ||
82eaf560 | 22090 | /* Override any gcc2 internal prototype to avoid an error. */ |
4db2deda | 22091 | #ifdef __cplusplus |
22092 | extern "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 | 22096 | char ceill (); |
4db2deda | 22097 | int |
22098 | main () | |
22099 | { | |
82eaf560 | 22100 | ceill (); |
4db2deda | 22101 | ; |
22102 | return 0; | |
22103 | } | |
22104 | _ACEOF | |
22105 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 22106 | if { (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 | 22128 | else |
22129 | echo "$as_me: failed program was:" >&5 | |
22130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22131 | ||
82eaf560 | 22132 | ac_cv_lib_m_ceill=no |
4db2deda | 22133 | fi |
82eaf560 | 22134 | rm -f conftest.err conftest.$ac_objext \ |
4db2deda | 22135 | conftest$ac_exeext conftest.$ac_ext |
22136 | LIBS=$ac_check_lib_save_LIBS | |
22137 | fi | |
82eaf560 | 22138 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceill" >&5 |
22139 | echo "${ECHO_T}$ac_cv_lib_m_ceill" >&6 | |
d213114b | 22140 | if test $ac_cv_lib_m_ceill = yes; then |
4db2deda | 22141 | |
22142 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 22143 | #define HAVE_CEILL 1 |
4db2deda | 22144 | _ACEOF |
22145 | ||
22146 | fi | |
22147 | ||
82eaf560 | 22148 | echo "$as_me:$LINENO: checking for copysignf in -lm" >&5 |
22149 | echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6 | |
d213114b | 22150 | if test "${ac_cv_lib_m_copysignf+set}" = set; then |
4db2deda | 22151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22152 | else | |
22153 | ac_check_lib_save_LIBS=$LIBS | |
22154 | LIBS="-lm $LIBS" | |
b52ee437 | 22155 | if test x$gcc_no_link = xyes; then |
22156 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22157 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22158 | { (exit 1); exit 1; }; } | |
22159 | fi | |
4db2deda | 22160 | cat >conftest.$ac_ext <<_ACEOF |
22161 | /* confdefs.h. */ | |
22162 | _ACEOF | |
22163 | cat confdefs.h >>conftest.$ac_ext | |
22164 | cat >>conftest.$ac_ext <<_ACEOF | |
22165 | /* end confdefs.h. */ | |
22166 | ||
82eaf560 | 22167 | /* Override any gcc2 internal prototype to avoid an error. */ |
4db2deda | 22168 | #ifdef __cplusplus |
22169 | extern "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 | 22173 | char copysignf (); |
4db2deda | 22174 | int |
22175 | main () | |
22176 | { | |
82eaf560 | 22177 | copysignf (); |
4db2deda | 22178 | ; |
22179 | return 0; | |
22180 | } | |
22181 | _ACEOF | |
22182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 22183 | if { (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 | 22205 | else |
22206 | echo "$as_me: failed program was:" >&5 | |
22207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22208 | ||
82eaf560 | 22209 | ac_cv_lib_m_copysignf=no |
4db2deda | 22210 | fi |
82eaf560 | 22211 | rm -f conftest.err conftest.$ac_objext \ |
4db2deda | 22212 | conftest$ac_exeext conftest.$ac_ext |
22213 | LIBS=$ac_check_lib_save_LIBS | |
22214 | fi | |
82eaf560 | 22215 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5 |
22216 | echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6 | |
d213114b | 22217 | if test $ac_cv_lib_m_copysignf = yes; then |
4db2deda | 22218 | |
22219 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 22220 | #define HAVE_COPYSIGNF 1 |
8f838781 | 22221 | _ACEOF |
22222 | ||
22223 | fi | |
22224 | ||
82eaf560 | 22225 | echo "$as_me:$LINENO: checking for copysign in -lm" >&5 |
22226 | echo $ECHO_N "checking for copysign in -lm... $ECHO_C" >&6 | |
d213114b | 22227 | if test "${ac_cv_lib_m_copysign+set}" = set; then |
8f838781 | 22228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22229 | else | |
22230 | ac_check_lib_save_LIBS=$LIBS | |
22231 | LIBS="-lm $LIBS" | |
b52ee437 | 22232 | if test x$gcc_no_link = xyes; then |
22233 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22234 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22235 | { (exit 1); exit 1; }; } | |
22236 | fi | |
8f838781 | 22237 | cat >conftest.$ac_ext <<_ACEOF |
22238 | /* confdefs.h. */ | |
22239 | _ACEOF | |
22240 | cat confdefs.h >>conftest.$ac_ext | |
22241 | cat >>conftest.$ac_ext <<_ACEOF | |
22242 | /* end confdefs.h. */ | |
22243 | ||
82eaf560 | 22244 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 22245 | #ifdef __cplusplus |
22246 | extern "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 | 22250 | char copysign (); |
8f838781 | 22251 | int |
22252 | main () | |
22253 | { | |
82eaf560 | 22254 | copysign (); |
8f838781 | 22255 | ; |
22256 | return 0; | |
22257 | } | |
22258 | _ACEOF | |
22259 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 22260 | if { (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 | 22282 | else |
22283 | echo "$as_me: failed program was:" >&5 | |
22284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22285 | ||
82eaf560 | 22286 | ac_cv_lib_m_copysign=no |
8f838781 | 22287 | fi |
82eaf560 | 22288 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 22289 | conftest$ac_exeext conftest.$ac_ext |
22290 | LIBS=$ac_check_lib_save_LIBS | |
22291 | fi | |
82eaf560 | 22292 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysign" >&5 |
22293 | echo "${ECHO_T}$ac_cv_lib_m_copysign" >&6 | |
d213114b | 22294 | if test $ac_cv_lib_m_copysign = yes; then |
8f838781 | 22295 | |
22296 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 22297 | #define HAVE_COPYSIGN 1 |
8f838781 | 22298 | _ACEOF |
22299 | ||
22300 | fi | |
22301 | ||
82eaf560 | 22302 | echo "$as_me:$LINENO: checking for copysignl in -lm" >&5 |
22303 | echo $ECHO_N "checking for copysignl in -lm... $ECHO_C" >&6 | |
d213114b | 22304 | if test "${ac_cv_lib_m_copysignl+set}" = set; then |
8f838781 | 22305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22306 | else | |
22307 | ac_check_lib_save_LIBS=$LIBS | |
22308 | LIBS="-lm $LIBS" | |
b52ee437 | 22309 | if test x$gcc_no_link = xyes; then |
22310 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22311 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22312 | { (exit 1); exit 1; }; } | |
22313 | fi | |
8f838781 | 22314 | cat >conftest.$ac_ext <<_ACEOF |
22315 | /* confdefs.h. */ | |
22316 | _ACEOF | |
22317 | cat confdefs.h >>conftest.$ac_ext | |
22318 | cat >>conftest.$ac_ext <<_ACEOF | |
22319 | /* end confdefs.h. */ | |
22320 | ||
82eaf560 | 22321 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 22322 | #ifdef __cplusplus |
22323 | extern "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 | 22327 | char copysignl (); |
8f838781 | 22328 | int |
22329 | main () | |
22330 | { | |
82eaf560 | 22331 | copysignl (); |
8f838781 | 22332 | ; |
22333 | return 0; | |
22334 | } | |
22335 | _ACEOF | |
22336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 22337 | if { (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 | 22359 | else |
22360 | echo "$as_me: failed program was:" >&5 | |
22361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22362 | ||
82eaf560 | 22363 | ac_cv_lib_m_copysignl=no |
8f838781 | 22364 | fi |
82eaf560 | 22365 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 22366 | conftest$ac_exeext conftest.$ac_ext |
22367 | LIBS=$ac_check_lib_save_LIBS | |
22368 | fi | |
82eaf560 | 22369 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignl" >&5 |
22370 | echo "${ECHO_T}$ac_cv_lib_m_copysignl" >&6 | |
d213114b | 22371 | if test $ac_cv_lib_m_copysignl = yes; then |
8f838781 | 22372 | |
22373 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 22374 | #define HAVE_COPYSIGNL 1 |
8f838781 | 22375 | _ACEOF |
22376 | ||
22377 | fi | |
22378 | ||
82eaf560 | 22379 | echo "$as_me:$LINENO: checking for cosf in -lm" >&5 |
22380 | echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6 | |
d213114b | 22381 | if test "${ac_cv_lib_m_cosf+set}" = set; then |
8f838781 | 22382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22383 | else | |
22384 | ac_check_lib_save_LIBS=$LIBS | |
22385 | LIBS="-lm $LIBS" | |
b52ee437 | 22386 | if test x$gcc_no_link = xyes; then |
22387 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22388 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22389 | { (exit 1); exit 1; }; } | |
22390 | fi | |
8f838781 | 22391 | cat >conftest.$ac_ext <<_ACEOF |
22392 | /* confdefs.h. */ | |
22393 | _ACEOF | |
22394 | cat confdefs.h >>conftest.$ac_ext | |
22395 | cat >>conftest.$ac_ext <<_ACEOF | |
22396 | /* end confdefs.h. */ | |
22397 | ||
82eaf560 | 22398 | /* Override any gcc2 internal prototype to avoid an error. */ |
8f838781 | 22399 | #ifdef __cplusplus |
22400 | extern "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 | 22404 | char cosf (); |
8f838781 | 22405 | int |
22406 | main () | |
22407 | { | |
82eaf560 | 22408 | cosf (); |
8f838781 | 22409 | ; |
22410 | return 0; | |
22411 | } | |
22412 | _ACEOF | |
22413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 22414 | if { (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 | 22436 | else |
22437 | echo "$as_me: failed program was:" >&5 | |
22438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22439 | ||
82eaf560 | 22440 | ac_cv_lib_m_cosf=no |
8f838781 | 22441 | fi |
82eaf560 | 22442 | rm -f conftest.err conftest.$ac_objext \ |
8f838781 | 22443 | conftest$ac_exeext conftest.$ac_ext |
22444 | LIBS=$ac_check_lib_save_LIBS | |
22445 | fi | |
82eaf560 | 22446 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5 |
22447 | echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6 | |
d213114b | 22448 | if test $ac_cv_lib_m_cosf = yes; then |
8f838781 | 22449 | |
22450 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 22451 | #define HAVE_COSF 1 |
4db2deda | 22452 | _ACEOF |
22453 | ||
22454 | fi | |
22455 | ||
82eaf560 | 22456 | echo "$as_me:$LINENO: checking for cos in -lm" >&5 |
22457 | echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 | |
d213114b | 22458 | if test "${ac_cv_lib_m_cos+set}" = set; then |
50f0ca0a | 22459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22460 | else | |
22461 | ac_check_lib_save_LIBS=$LIBS | |
22462 | LIBS="-lm $LIBS" | |
b52ee437 | 22463 | if test x$gcc_no_link = xyes; then |
22464 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22465 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22466 | { (exit 1); exit 1; }; } | |
22467 | fi | |
50f0ca0a | 22468 | cat >conftest.$ac_ext <<_ACEOF |
22469 | /* confdefs.h. */ | |
22470 | _ACEOF | |
22471 | cat confdefs.h >>conftest.$ac_ext | |
22472 | cat >>conftest.$ac_ext <<_ACEOF | |
22473 | /* end confdefs.h. */ | |
22474 | ||
82eaf560 | 22475 | /* Override any gcc2 internal prototype to avoid an error. */ |
50f0ca0a | 22476 | #ifdef __cplusplus |
22477 | extern "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 | 22481 | char cos (); |
50f0ca0a | 22482 | int |
22483 | main () | |
22484 | { | |
82eaf560 | 22485 | cos (); |
50f0ca0a | 22486 | ; |
22487 | return 0; | |
22488 | } | |
22489 | _ACEOF | |
22490 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 22491 | if { (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 | 22513 | else |
22514 | echo "$as_me: failed program was:" >&5 | |
22515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22516 | ||
82eaf560 | 22517 | ac_cv_lib_m_cos=no |
50f0ca0a | 22518 | fi |
82eaf560 | 22519 | rm -f conftest.err conftest.$ac_objext \ |
50f0ca0a | 22520 | conftest$ac_exeext conftest.$ac_ext |
22521 | LIBS=$ac_check_lib_save_LIBS | |
22522 | fi | |
82eaf560 | 22523 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 |
22524 | echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 | |
d213114b | 22525 | if test $ac_cv_lib_m_cos = yes; then |
50f0ca0a | 22526 | |
22527 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 22528 | #define HAVE_COS 1 |
22529 | _ACEOF | |
22530 | ||
22531 | fi | |
22532 | ||
82eaf560 | 22533 | echo "$as_me:$LINENO: checking for cosl in -lm" >&5 |
22534 | echo $ECHO_N "checking for cosl in -lm... $ECHO_C" >&6 | |
d213114b | 22535 | if test "${ac_cv_lib_m_cosl+set}" = set; then |
22536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22537 | else | |
22538 | ac_check_lib_save_LIBS=$LIBS | |
22539 | LIBS="-lm $LIBS" | |
22540 | if test x$gcc_no_link = xyes; then | |
22541 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22542 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22543 | { (exit 1); exit 1; }; } | |
22544 | fi | |
22545 | cat >conftest.$ac_ext <<_ACEOF | |
22546 | /* confdefs.h. */ | |
22547 | _ACEOF | |
22548 | cat confdefs.h >>conftest.$ac_ext | |
22549 | cat >>conftest.$ac_ext <<_ACEOF | |
22550 | /* end confdefs.h. */ | |
22551 | ||
82eaf560 | 22552 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22553 | #ifdef __cplusplus |
22554 | extern "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 | 22558 | char cosl (); |
22559 | int | |
22560 | main () | |
22561 | { | |
82eaf560 | 22562 | cosl (); |
d213114b | 22563 | ; |
22564 | return 0; | |
22565 | } | |
22566 | _ACEOF | |
22567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 22568 | if { (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 |
22590 | else | |
22591 | echo "$as_me: failed program was:" >&5 | |
22592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22593 | ||
82eaf560 | 22594 | ac_cv_lib_m_cosl=no |
d213114b | 22595 | fi |
82eaf560 | 22596 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22597 | conftest$ac_exeext conftest.$ac_ext |
22598 | LIBS=$ac_check_lib_save_LIBS | |
22599 | fi | |
82eaf560 | 22600 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosl" >&5 |
22601 | echo "${ECHO_T}$ac_cv_lib_m_cosl" >&6 | |
d213114b | 22602 | if test $ac_cv_lib_m_cosl = yes; then |
22603 | ||
22604 | cat >>confdefs.h <<\_ACEOF | |
22605 | #define HAVE_COSL 1 | |
22606 | _ACEOF | |
22607 | ||
22608 | fi | |
22609 | ||
82eaf560 | 22610 | echo "$as_me:$LINENO: checking for ccosf in -lm" >&5 |
22611 | echo $ECHO_N "checking for ccosf in -lm... $ECHO_C" >&6 | |
d213114b | 22612 | if test "${ac_cv_lib_m_ccosf+set}" = set; then |
22613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22614 | else | |
22615 | ac_check_lib_save_LIBS=$LIBS | |
22616 | LIBS="-lm $LIBS" | |
22617 | if test x$gcc_no_link = xyes; then | |
22618 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22619 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22620 | { (exit 1); exit 1; }; } | |
22621 | fi | |
22622 | cat >conftest.$ac_ext <<_ACEOF | |
22623 | /* confdefs.h. */ | |
22624 | _ACEOF | |
22625 | cat confdefs.h >>conftest.$ac_ext | |
22626 | cat >>conftest.$ac_ext <<_ACEOF | |
22627 | /* end confdefs.h. */ | |
22628 | ||
82eaf560 | 22629 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22630 | #ifdef __cplusplus |
22631 | extern "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 | 22635 | char ccosf (); |
22636 | int | |
22637 | main () | |
22638 | { | |
82eaf560 | 22639 | ccosf (); |
d213114b | 22640 | ; |
22641 | return 0; | |
22642 | } | |
22643 | _ACEOF | |
22644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 22645 | if { (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 |
22667 | else | |
22668 | echo "$as_me: failed program was:" >&5 | |
22669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22670 | ||
82eaf560 | 22671 | ac_cv_lib_m_ccosf=no |
d213114b | 22672 | fi |
82eaf560 | 22673 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22674 | conftest$ac_exeext conftest.$ac_ext |
22675 | LIBS=$ac_check_lib_save_LIBS | |
22676 | fi | |
82eaf560 | 22677 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosf" >&5 |
22678 | echo "${ECHO_T}$ac_cv_lib_m_ccosf" >&6 | |
d213114b | 22679 | if test $ac_cv_lib_m_ccosf = yes; then |
22680 | ||
22681 | cat >>confdefs.h <<\_ACEOF | |
22682 | #define HAVE_CCOSF 1 | |
22683 | _ACEOF | |
22684 | ||
22685 | fi | |
22686 | ||
82eaf560 | 22687 | echo "$as_me:$LINENO: checking for ccos in -lm" >&5 |
22688 | echo $ECHO_N "checking for ccos in -lm... $ECHO_C" >&6 | |
d213114b | 22689 | if test "${ac_cv_lib_m_ccos+set}" = set; then |
22690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22691 | else | |
22692 | ac_check_lib_save_LIBS=$LIBS | |
22693 | LIBS="-lm $LIBS" | |
22694 | if test x$gcc_no_link = xyes; then | |
22695 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22696 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22697 | { (exit 1); exit 1; }; } | |
22698 | fi | |
22699 | cat >conftest.$ac_ext <<_ACEOF | |
22700 | /* confdefs.h. */ | |
22701 | _ACEOF | |
22702 | cat confdefs.h >>conftest.$ac_ext | |
22703 | cat >>conftest.$ac_ext <<_ACEOF | |
22704 | /* end confdefs.h. */ | |
22705 | ||
82eaf560 | 22706 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22707 | #ifdef __cplusplus |
22708 | extern "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 | 22712 | char ccos (); |
22713 | int | |
22714 | main () | |
22715 | { | |
82eaf560 | 22716 | ccos (); |
d213114b | 22717 | ; |
22718 | return 0; | |
22719 | } | |
22720 | _ACEOF | |
22721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 22722 | if { (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 |
22744 | else | |
22745 | echo "$as_me: failed program was:" >&5 | |
22746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22747 | ||
82eaf560 | 22748 | ac_cv_lib_m_ccos=no |
d213114b | 22749 | fi |
82eaf560 | 22750 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22751 | conftest$ac_exeext conftest.$ac_ext |
22752 | LIBS=$ac_check_lib_save_LIBS | |
22753 | fi | |
82eaf560 | 22754 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccos" >&5 |
22755 | echo "${ECHO_T}$ac_cv_lib_m_ccos" >&6 | |
d213114b | 22756 | if test $ac_cv_lib_m_ccos = yes; then |
22757 | ||
22758 | cat >>confdefs.h <<\_ACEOF | |
22759 | #define HAVE_CCOS 1 | |
22760 | _ACEOF | |
22761 | ||
22762 | fi | |
22763 | ||
82eaf560 | 22764 | echo "$as_me:$LINENO: checking for ccosl in -lm" >&5 |
22765 | echo $ECHO_N "checking for ccosl in -lm... $ECHO_C" >&6 | |
d213114b | 22766 | if test "${ac_cv_lib_m_ccosl+set}" = set; then |
22767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22768 | else | |
22769 | ac_check_lib_save_LIBS=$LIBS | |
22770 | LIBS="-lm $LIBS" | |
22771 | if test x$gcc_no_link = xyes; then | |
22772 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22773 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22774 | { (exit 1); exit 1; }; } | |
22775 | fi | |
22776 | cat >conftest.$ac_ext <<_ACEOF | |
22777 | /* confdefs.h. */ | |
22778 | _ACEOF | |
22779 | cat confdefs.h >>conftest.$ac_ext | |
22780 | cat >>conftest.$ac_ext <<_ACEOF | |
22781 | /* end confdefs.h. */ | |
22782 | ||
82eaf560 | 22783 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22784 | #ifdef __cplusplus |
22785 | extern "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 | 22789 | char ccosl (); |
22790 | int | |
22791 | main () | |
22792 | { | |
82eaf560 | 22793 | ccosl (); |
d213114b | 22794 | ; |
22795 | return 0; | |
22796 | } | |
22797 | _ACEOF | |
22798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 22799 | if { (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 |
22821 | else | |
22822 | echo "$as_me: failed program was:" >&5 | |
22823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22824 | ||
82eaf560 | 22825 | ac_cv_lib_m_ccosl=no |
d213114b | 22826 | fi |
82eaf560 | 22827 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22828 | conftest$ac_exeext conftest.$ac_ext |
22829 | LIBS=$ac_check_lib_save_LIBS | |
22830 | fi | |
82eaf560 | 22831 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosl" >&5 |
22832 | echo "${ECHO_T}$ac_cv_lib_m_ccosl" >&6 | |
d213114b | 22833 | if test $ac_cv_lib_m_ccosl = yes; then |
22834 | ||
22835 | cat >>confdefs.h <<\_ACEOF | |
22836 | #define HAVE_CCOSL 1 | |
22837 | _ACEOF | |
22838 | ||
22839 | fi | |
22840 | ||
82eaf560 | 22841 | echo "$as_me:$LINENO: checking for coshf in -lm" >&5 |
22842 | echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6 | |
d213114b | 22843 | if test "${ac_cv_lib_m_coshf+set}" = set; then |
22844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22845 | else | |
22846 | ac_check_lib_save_LIBS=$LIBS | |
22847 | LIBS="-lm $LIBS" | |
22848 | if test x$gcc_no_link = xyes; then | |
22849 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22850 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22851 | { (exit 1); exit 1; }; } | |
22852 | fi | |
22853 | cat >conftest.$ac_ext <<_ACEOF | |
22854 | /* confdefs.h. */ | |
22855 | _ACEOF | |
22856 | cat confdefs.h >>conftest.$ac_ext | |
22857 | cat >>conftest.$ac_ext <<_ACEOF | |
22858 | /* end confdefs.h. */ | |
22859 | ||
82eaf560 | 22860 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22861 | #ifdef __cplusplus |
22862 | extern "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 | 22866 | char coshf (); |
22867 | int | |
22868 | main () | |
22869 | { | |
82eaf560 | 22870 | coshf (); |
d213114b | 22871 | ; |
22872 | return 0; | |
22873 | } | |
22874 | _ACEOF | |
22875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 22876 | if { (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 |
22898 | else | |
22899 | echo "$as_me: failed program was:" >&5 | |
22900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22901 | ||
82eaf560 | 22902 | ac_cv_lib_m_coshf=no |
d213114b | 22903 | fi |
82eaf560 | 22904 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22905 | conftest$ac_exeext conftest.$ac_ext |
22906 | LIBS=$ac_check_lib_save_LIBS | |
22907 | fi | |
82eaf560 | 22908 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5 |
22909 | echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6 | |
d213114b | 22910 | if test $ac_cv_lib_m_coshf = yes; then |
22911 | ||
22912 | cat >>confdefs.h <<\_ACEOF | |
22913 | #define HAVE_COSHF 1 | |
22914 | _ACEOF | |
22915 | ||
22916 | fi | |
22917 | ||
82eaf560 | 22918 | echo "$as_me:$LINENO: checking for cosh in -lm" >&5 |
22919 | echo $ECHO_N "checking for cosh in -lm... $ECHO_C" >&6 | |
d213114b | 22920 | if test "${ac_cv_lib_m_cosh+set}" = set; then |
22921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22922 | else | |
22923 | ac_check_lib_save_LIBS=$LIBS | |
22924 | LIBS="-lm $LIBS" | |
22925 | if test x$gcc_no_link = xyes; then | |
22926 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
22927 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
22928 | { (exit 1); exit 1; }; } | |
22929 | fi | |
22930 | cat >conftest.$ac_ext <<_ACEOF | |
22931 | /* confdefs.h. */ | |
22932 | _ACEOF | |
22933 | cat confdefs.h >>conftest.$ac_ext | |
22934 | cat >>conftest.$ac_ext <<_ACEOF | |
22935 | /* end confdefs.h. */ | |
22936 | ||
82eaf560 | 22937 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 22938 | #ifdef __cplusplus |
22939 | extern "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 | 22943 | char cosh (); |
22944 | int | |
22945 | main () | |
22946 | { | |
82eaf560 | 22947 | cosh (); |
d213114b | 22948 | ; |
22949 | return 0; | |
22950 | } | |
22951 | _ACEOF | |
22952 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 22953 | if { (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 |
22975 | else | |
22976 | echo "$as_me: failed program was:" >&5 | |
22977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22978 | ||
82eaf560 | 22979 | ac_cv_lib_m_cosh=no |
d213114b | 22980 | fi |
82eaf560 | 22981 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 22982 | conftest$ac_exeext conftest.$ac_ext |
22983 | LIBS=$ac_check_lib_save_LIBS | |
22984 | fi | |
82eaf560 | 22985 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosh" >&5 |
22986 | echo "${ECHO_T}$ac_cv_lib_m_cosh" >&6 | |
d213114b | 22987 | if test $ac_cv_lib_m_cosh = yes; then |
22988 | ||
22989 | cat >>confdefs.h <<\_ACEOF | |
22990 | #define HAVE_COSH 1 | |
22991 | _ACEOF | |
22992 | ||
22993 | fi | |
22994 | ||
82eaf560 | 22995 | echo "$as_me:$LINENO: checking for coshl in -lm" >&5 |
22996 | echo $ECHO_N "checking for coshl in -lm... $ECHO_C" >&6 | |
d213114b | 22997 | if test "${ac_cv_lib_m_coshl+set}" = set; then |
22998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22999 | else | |
23000 | ac_check_lib_save_LIBS=$LIBS | |
23001 | LIBS="-lm $LIBS" | |
23002 | if test x$gcc_no_link = xyes; then | |
23003 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23004 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23005 | { (exit 1); exit 1; }; } | |
23006 | fi | |
23007 | cat >conftest.$ac_ext <<_ACEOF | |
23008 | /* confdefs.h. */ | |
23009 | _ACEOF | |
23010 | cat confdefs.h >>conftest.$ac_ext | |
23011 | cat >>conftest.$ac_ext <<_ACEOF | |
23012 | /* end confdefs.h. */ | |
23013 | ||
82eaf560 | 23014 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23015 | #ifdef __cplusplus |
23016 | extern "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 | 23020 | char coshl (); |
23021 | int | |
23022 | main () | |
23023 | { | |
82eaf560 | 23024 | coshl (); |
d213114b | 23025 | ; |
23026 | return 0; | |
23027 | } | |
23028 | _ACEOF | |
23029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 23030 | if { (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 |
23052 | else | |
23053 | echo "$as_me: failed program was:" >&5 | |
23054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23055 | ||
82eaf560 | 23056 | ac_cv_lib_m_coshl=no |
d213114b | 23057 | fi |
82eaf560 | 23058 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23059 | conftest$ac_exeext conftest.$ac_ext |
23060 | LIBS=$ac_check_lib_save_LIBS | |
23061 | fi | |
82eaf560 | 23062 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshl" >&5 |
23063 | echo "${ECHO_T}$ac_cv_lib_m_coshl" >&6 | |
d213114b | 23064 | if test $ac_cv_lib_m_coshl = yes; then |
23065 | ||
23066 | cat >>confdefs.h <<\_ACEOF | |
23067 | #define HAVE_COSHL 1 | |
23068 | _ACEOF | |
23069 | ||
23070 | fi | |
23071 | ||
82eaf560 | 23072 | echo "$as_me:$LINENO: checking for ccoshf in -lm" >&5 |
23073 | echo $ECHO_N "checking for ccoshf in -lm... $ECHO_C" >&6 | |
d213114b | 23074 | if test "${ac_cv_lib_m_ccoshf+set}" = set; then |
23075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23076 | else | |
23077 | ac_check_lib_save_LIBS=$LIBS | |
23078 | LIBS="-lm $LIBS" | |
23079 | if test x$gcc_no_link = xyes; then | |
23080 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23081 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23082 | { (exit 1); exit 1; }; } | |
23083 | fi | |
23084 | cat >conftest.$ac_ext <<_ACEOF | |
23085 | /* confdefs.h. */ | |
23086 | _ACEOF | |
23087 | cat confdefs.h >>conftest.$ac_ext | |
23088 | cat >>conftest.$ac_ext <<_ACEOF | |
23089 | /* end confdefs.h. */ | |
23090 | ||
82eaf560 | 23091 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23092 | #ifdef __cplusplus |
23093 | extern "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 | 23097 | char ccoshf (); |
23098 | int | |
23099 | main () | |
23100 | { | |
82eaf560 | 23101 | ccoshf (); |
d213114b | 23102 | ; |
23103 | return 0; | |
23104 | } | |
23105 | _ACEOF | |
23106 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 23107 | if { (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 |
23129 | else | |
23130 | echo "$as_me: failed program was:" >&5 | |
23131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23132 | ||
82eaf560 | 23133 | ac_cv_lib_m_ccoshf=no |
d213114b | 23134 | fi |
82eaf560 | 23135 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23136 | conftest$ac_exeext conftest.$ac_ext |
23137 | LIBS=$ac_check_lib_save_LIBS | |
23138 | fi | |
82eaf560 | 23139 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccoshf" >&5 |
23140 | echo "${ECHO_T}$ac_cv_lib_m_ccoshf" >&6 | |
d213114b | 23141 | if test $ac_cv_lib_m_ccoshf = yes; then |
23142 | ||
23143 | cat >>confdefs.h <<\_ACEOF | |
23144 | #define HAVE_CCOSHF 1 | |
23145 | _ACEOF | |
23146 | ||
23147 | fi | |
23148 | ||
82eaf560 | 23149 | echo "$as_me:$LINENO: checking for ccosh in -lm" >&5 |
23150 | echo $ECHO_N "checking for ccosh in -lm... $ECHO_C" >&6 | |
d213114b | 23151 | if test "${ac_cv_lib_m_ccosh+set}" = set; then |
23152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23153 | else | |
23154 | ac_check_lib_save_LIBS=$LIBS | |
23155 | LIBS="-lm $LIBS" | |
23156 | if test x$gcc_no_link = xyes; then | |
23157 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23158 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23159 | { (exit 1); exit 1; }; } | |
23160 | fi | |
23161 | cat >conftest.$ac_ext <<_ACEOF | |
23162 | /* confdefs.h. */ | |
23163 | _ACEOF | |
23164 | cat confdefs.h >>conftest.$ac_ext | |
23165 | cat >>conftest.$ac_ext <<_ACEOF | |
23166 | /* end confdefs.h. */ | |
23167 | ||
82eaf560 | 23168 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23169 | #ifdef __cplusplus |
23170 | extern "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 | 23174 | char ccosh (); |
23175 | int | |
23176 | main () | |
23177 | { | |
82eaf560 | 23178 | ccosh (); |
d213114b | 23179 | ; |
23180 | return 0; | |
23181 | } | |
23182 | _ACEOF | |
23183 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 23184 | if { (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 |
23206 | else | |
23207 | echo "$as_me: failed program was:" >&5 | |
23208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23209 | ||
82eaf560 | 23210 | ac_cv_lib_m_ccosh=no |
d213114b | 23211 | fi |
82eaf560 | 23212 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23213 | conftest$ac_exeext conftest.$ac_ext |
23214 | LIBS=$ac_check_lib_save_LIBS | |
23215 | fi | |
82eaf560 | 23216 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosh" >&5 |
23217 | echo "${ECHO_T}$ac_cv_lib_m_ccosh" >&6 | |
d213114b | 23218 | if test $ac_cv_lib_m_ccosh = yes; then |
23219 | ||
23220 | cat >>confdefs.h <<\_ACEOF | |
23221 | #define HAVE_CCOSH 1 | |
23222 | _ACEOF | |
23223 | ||
23224 | fi | |
23225 | ||
82eaf560 | 23226 | echo "$as_me:$LINENO: checking for ccoshl in -lm" >&5 |
23227 | echo $ECHO_N "checking for ccoshl in -lm... $ECHO_C" >&6 | |
d213114b | 23228 | if test "${ac_cv_lib_m_ccoshl+set}" = set; then |
23229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23230 | else | |
23231 | ac_check_lib_save_LIBS=$LIBS | |
23232 | LIBS="-lm $LIBS" | |
23233 | if test x$gcc_no_link = xyes; then | |
23234 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23235 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23236 | { (exit 1); exit 1; }; } | |
23237 | fi | |
23238 | cat >conftest.$ac_ext <<_ACEOF | |
23239 | /* confdefs.h. */ | |
23240 | _ACEOF | |
23241 | cat confdefs.h >>conftest.$ac_ext | |
23242 | cat >>conftest.$ac_ext <<_ACEOF | |
23243 | /* end confdefs.h. */ | |
23244 | ||
82eaf560 | 23245 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23246 | #ifdef __cplusplus |
23247 | extern "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 | 23251 | char ccoshl (); |
23252 | int | |
23253 | main () | |
23254 | { | |
82eaf560 | 23255 | ccoshl (); |
d213114b | 23256 | ; |
23257 | return 0; | |
23258 | } | |
23259 | _ACEOF | |
23260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 23261 | if { (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 |
23283 | else | |
23284 | echo "$as_me: failed program was:" >&5 | |
23285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23286 | ||
82eaf560 | 23287 | ac_cv_lib_m_ccoshl=no |
d213114b | 23288 | fi |
82eaf560 | 23289 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23290 | conftest$ac_exeext conftest.$ac_ext |
23291 | LIBS=$ac_check_lib_save_LIBS | |
23292 | fi | |
82eaf560 | 23293 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccoshl" >&5 |
23294 | echo "${ECHO_T}$ac_cv_lib_m_ccoshl" >&6 | |
d213114b | 23295 | if test $ac_cv_lib_m_ccoshl = yes; then |
23296 | ||
23297 | cat >>confdefs.h <<\_ACEOF | |
23298 | #define HAVE_CCOSHL 1 | |
23299 | _ACEOF | |
23300 | ||
23301 | fi | |
23302 | ||
82eaf560 | 23303 | echo "$as_me:$LINENO: checking for expf in -lm" >&5 |
23304 | echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6 | |
d213114b | 23305 | if test "${ac_cv_lib_m_expf+set}" = set; then |
23306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23307 | else | |
23308 | ac_check_lib_save_LIBS=$LIBS | |
23309 | LIBS="-lm $LIBS" | |
23310 | if test x$gcc_no_link = xyes; then | |
23311 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23312 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23313 | { (exit 1); exit 1; }; } | |
23314 | fi | |
23315 | cat >conftest.$ac_ext <<_ACEOF | |
23316 | /* confdefs.h. */ | |
23317 | _ACEOF | |
23318 | cat confdefs.h >>conftest.$ac_ext | |
23319 | cat >>conftest.$ac_ext <<_ACEOF | |
23320 | /* end confdefs.h. */ | |
23321 | ||
82eaf560 | 23322 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23323 | #ifdef __cplusplus |
23324 | extern "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 | 23328 | char expf (); |
23329 | int | |
23330 | main () | |
23331 | { | |
82eaf560 | 23332 | expf (); |
d213114b | 23333 | ; |
23334 | return 0; | |
23335 | } | |
23336 | _ACEOF | |
23337 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 23338 | if { (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 |
23360 | else | |
23361 | echo "$as_me: failed program was:" >&5 | |
23362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23363 | ||
82eaf560 | 23364 | ac_cv_lib_m_expf=no |
d213114b | 23365 | fi |
82eaf560 | 23366 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23367 | conftest$ac_exeext conftest.$ac_ext |
23368 | LIBS=$ac_check_lib_save_LIBS | |
23369 | fi | |
82eaf560 | 23370 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5 |
23371 | echo "${ECHO_T}$ac_cv_lib_m_expf" >&6 | |
d213114b | 23372 | if test $ac_cv_lib_m_expf = yes; then |
23373 | ||
23374 | cat >>confdefs.h <<\_ACEOF | |
23375 | #define HAVE_EXPF 1 | |
23376 | _ACEOF | |
23377 | ||
23378 | fi | |
23379 | ||
82eaf560 | 23380 | echo "$as_me:$LINENO: checking for exp in -lm" >&5 |
23381 | echo $ECHO_N "checking for exp in -lm... $ECHO_C" >&6 | |
d213114b | 23382 | if test "${ac_cv_lib_m_exp+set}" = set; then |
23383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23384 | else | |
23385 | ac_check_lib_save_LIBS=$LIBS | |
23386 | LIBS="-lm $LIBS" | |
23387 | if test x$gcc_no_link = xyes; then | |
23388 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23389 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23390 | { (exit 1); exit 1; }; } | |
23391 | fi | |
23392 | cat >conftest.$ac_ext <<_ACEOF | |
23393 | /* confdefs.h. */ | |
23394 | _ACEOF | |
23395 | cat confdefs.h >>conftest.$ac_ext | |
23396 | cat >>conftest.$ac_ext <<_ACEOF | |
23397 | /* end confdefs.h. */ | |
23398 | ||
82eaf560 | 23399 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23400 | #ifdef __cplusplus |
23401 | extern "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 | 23405 | char exp (); |
23406 | int | |
23407 | main () | |
23408 | { | |
82eaf560 | 23409 | exp (); |
d213114b | 23410 | ; |
23411 | return 0; | |
23412 | } | |
23413 | _ACEOF | |
23414 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 23415 | if { (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 |
23437 | else | |
23438 | echo "$as_me: failed program was:" >&5 | |
23439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23440 | ||
82eaf560 | 23441 | ac_cv_lib_m_exp=no |
d213114b | 23442 | fi |
82eaf560 | 23443 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23444 | conftest$ac_exeext conftest.$ac_ext |
23445 | LIBS=$ac_check_lib_save_LIBS | |
23446 | fi | |
82eaf560 | 23447 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp" >&5 |
23448 | echo "${ECHO_T}$ac_cv_lib_m_exp" >&6 | |
d213114b | 23449 | if test $ac_cv_lib_m_exp = yes; then |
23450 | ||
23451 | cat >>confdefs.h <<\_ACEOF | |
23452 | #define HAVE_EXP 1 | |
23453 | _ACEOF | |
23454 | ||
23455 | fi | |
23456 | ||
82eaf560 | 23457 | echo "$as_me:$LINENO: checking for expl in -lm" >&5 |
23458 | echo $ECHO_N "checking for expl in -lm... $ECHO_C" >&6 | |
d213114b | 23459 | if test "${ac_cv_lib_m_expl+set}" = set; then |
23460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23461 | else | |
23462 | ac_check_lib_save_LIBS=$LIBS | |
23463 | LIBS="-lm $LIBS" | |
23464 | if test x$gcc_no_link = xyes; then | |
23465 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23466 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23467 | { (exit 1); exit 1; }; } | |
23468 | fi | |
23469 | cat >conftest.$ac_ext <<_ACEOF | |
23470 | /* confdefs.h. */ | |
23471 | _ACEOF | |
23472 | cat confdefs.h >>conftest.$ac_ext | |
23473 | cat >>conftest.$ac_ext <<_ACEOF | |
23474 | /* end confdefs.h. */ | |
23475 | ||
82eaf560 | 23476 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23477 | #ifdef __cplusplus |
23478 | extern "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 | 23482 | char expl (); |
23483 | int | |
23484 | main () | |
23485 | { | |
82eaf560 | 23486 | expl (); |
d213114b | 23487 | ; |
23488 | return 0; | |
23489 | } | |
23490 | _ACEOF | |
23491 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 23492 | if { (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 |
23514 | else | |
23515 | echo "$as_me: failed program was:" >&5 | |
23516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23517 | ||
82eaf560 | 23518 | ac_cv_lib_m_expl=no |
d213114b | 23519 | fi |
82eaf560 | 23520 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23521 | conftest$ac_exeext conftest.$ac_ext |
23522 | LIBS=$ac_check_lib_save_LIBS | |
23523 | fi | |
82eaf560 | 23524 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_expl" >&5 |
23525 | echo "${ECHO_T}$ac_cv_lib_m_expl" >&6 | |
d213114b | 23526 | if test $ac_cv_lib_m_expl = yes; then |
23527 | ||
23528 | cat >>confdefs.h <<\_ACEOF | |
23529 | #define HAVE_EXPL 1 | |
23530 | _ACEOF | |
23531 | ||
23532 | fi | |
23533 | ||
82eaf560 | 23534 | echo "$as_me:$LINENO: checking for cexpf in -lm" >&5 |
23535 | echo $ECHO_N "checking for cexpf in -lm... $ECHO_C" >&6 | |
d213114b | 23536 | if test "${ac_cv_lib_m_cexpf+set}" = set; then |
23537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23538 | else | |
23539 | ac_check_lib_save_LIBS=$LIBS | |
23540 | LIBS="-lm $LIBS" | |
23541 | if test x$gcc_no_link = xyes; then | |
23542 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23543 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23544 | { (exit 1); exit 1; }; } | |
23545 | fi | |
23546 | cat >conftest.$ac_ext <<_ACEOF | |
23547 | /* confdefs.h. */ | |
23548 | _ACEOF | |
23549 | cat confdefs.h >>conftest.$ac_ext | |
23550 | cat >>conftest.$ac_ext <<_ACEOF | |
23551 | /* end confdefs.h. */ | |
23552 | ||
82eaf560 | 23553 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23554 | #ifdef __cplusplus |
23555 | extern "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 | 23559 | char cexpf (); |
23560 | int | |
23561 | main () | |
23562 | { | |
82eaf560 | 23563 | cexpf (); |
d213114b | 23564 | ; |
23565 | return 0; | |
23566 | } | |
23567 | _ACEOF | |
23568 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 23569 | if { (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 |
23591 | else | |
23592 | echo "$as_me: failed program was:" >&5 | |
23593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23594 | ||
82eaf560 | 23595 | ac_cv_lib_m_cexpf=no |
d213114b | 23596 | fi |
82eaf560 | 23597 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23598 | conftest$ac_exeext conftest.$ac_ext |
23599 | LIBS=$ac_check_lib_save_LIBS | |
23600 | fi | |
82eaf560 | 23601 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexpf" >&5 |
23602 | echo "${ECHO_T}$ac_cv_lib_m_cexpf" >&6 | |
d213114b | 23603 | if test $ac_cv_lib_m_cexpf = yes; then |
23604 | ||
23605 | cat >>confdefs.h <<\_ACEOF | |
23606 | #define HAVE_CEXPF 1 | |
23607 | _ACEOF | |
23608 | ||
23609 | fi | |
23610 | ||
82eaf560 | 23611 | echo "$as_me:$LINENO: checking for cexp in -lm" >&5 |
23612 | echo $ECHO_N "checking for cexp in -lm... $ECHO_C" >&6 | |
d213114b | 23613 | if test "${ac_cv_lib_m_cexp+set}" = set; then |
23614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23615 | else | |
23616 | ac_check_lib_save_LIBS=$LIBS | |
23617 | LIBS="-lm $LIBS" | |
23618 | if test x$gcc_no_link = xyes; then | |
23619 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23620 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23621 | { (exit 1); exit 1; }; } | |
23622 | fi | |
23623 | cat >conftest.$ac_ext <<_ACEOF | |
23624 | /* confdefs.h. */ | |
23625 | _ACEOF | |
23626 | cat confdefs.h >>conftest.$ac_ext | |
23627 | cat >>conftest.$ac_ext <<_ACEOF | |
23628 | /* end confdefs.h. */ | |
23629 | ||
82eaf560 | 23630 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23631 | #ifdef __cplusplus |
23632 | extern "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 | 23636 | char cexp (); |
23637 | int | |
23638 | main () | |
23639 | { | |
82eaf560 | 23640 | cexp (); |
d213114b | 23641 | ; |
23642 | return 0; | |
23643 | } | |
23644 | _ACEOF | |
23645 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 23646 | if { (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 |
23668 | else | |
23669 | echo "$as_me: failed program was:" >&5 | |
23670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23671 | ||
82eaf560 | 23672 | ac_cv_lib_m_cexp=no |
d213114b | 23673 | fi |
82eaf560 | 23674 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23675 | conftest$ac_exeext conftest.$ac_ext |
23676 | LIBS=$ac_check_lib_save_LIBS | |
23677 | fi | |
82eaf560 | 23678 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexp" >&5 |
23679 | echo "${ECHO_T}$ac_cv_lib_m_cexp" >&6 | |
d213114b | 23680 | if test $ac_cv_lib_m_cexp = yes; then |
23681 | ||
23682 | cat >>confdefs.h <<\_ACEOF | |
23683 | #define HAVE_CEXP 1 | |
23684 | _ACEOF | |
23685 | ||
23686 | fi | |
23687 | ||
82eaf560 | 23688 | echo "$as_me:$LINENO: checking for cexpl in -lm" >&5 |
23689 | echo $ECHO_N "checking for cexpl in -lm... $ECHO_C" >&6 | |
d213114b | 23690 | if test "${ac_cv_lib_m_cexpl+set}" = set; then |
23691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23692 | else | |
23693 | ac_check_lib_save_LIBS=$LIBS | |
23694 | LIBS="-lm $LIBS" | |
23695 | if test x$gcc_no_link = xyes; then | |
23696 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23697 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23698 | { (exit 1); exit 1; }; } | |
23699 | fi | |
23700 | cat >conftest.$ac_ext <<_ACEOF | |
23701 | /* confdefs.h. */ | |
23702 | _ACEOF | |
23703 | cat confdefs.h >>conftest.$ac_ext | |
23704 | cat >>conftest.$ac_ext <<_ACEOF | |
23705 | /* end confdefs.h. */ | |
23706 | ||
82eaf560 | 23707 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23708 | #ifdef __cplusplus |
23709 | extern "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 | 23713 | char cexpl (); |
23714 | int | |
23715 | main () | |
23716 | { | |
82eaf560 | 23717 | cexpl (); |
d213114b | 23718 | ; |
23719 | return 0; | |
23720 | } | |
23721 | _ACEOF | |
23722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 23723 | if { (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 |
23745 | else | |
23746 | echo "$as_me: failed program was:" >&5 | |
23747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23748 | ||
82eaf560 | 23749 | ac_cv_lib_m_cexpl=no |
d213114b | 23750 | fi |
82eaf560 | 23751 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23752 | conftest$ac_exeext conftest.$ac_ext |
23753 | LIBS=$ac_check_lib_save_LIBS | |
23754 | fi | |
82eaf560 | 23755 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexpl" >&5 |
23756 | echo "${ECHO_T}$ac_cv_lib_m_cexpl" >&6 | |
d213114b | 23757 | if test $ac_cv_lib_m_cexpl = yes; then |
23758 | ||
23759 | cat >>confdefs.h <<\_ACEOF | |
23760 | #define HAVE_CEXPL 1 | |
23761 | _ACEOF | |
23762 | ||
23763 | fi | |
23764 | ||
82eaf560 | 23765 | echo "$as_me:$LINENO: checking for fabsf in -lm" >&5 |
23766 | echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6 | |
d213114b | 23767 | if test "${ac_cv_lib_m_fabsf+set}" = set; then |
23768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23769 | else | |
23770 | ac_check_lib_save_LIBS=$LIBS | |
23771 | LIBS="-lm $LIBS" | |
23772 | if test x$gcc_no_link = xyes; then | |
23773 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23774 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23775 | { (exit 1); exit 1; }; } | |
23776 | fi | |
23777 | cat >conftest.$ac_ext <<_ACEOF | |
23778 | /* confdefs.h. */ | |
23779 | _ACEOF | |
23780 | cat confdefs.h >>conftest.$ac_ext | |
23781 | cat >>conftest.$ac_ext <<_ACEOF | |
23782 | /* end confdefs.h. */ | |
23783 | ||
82eaf560 | 23784 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23785 | #ifdef __cplusplus |
23786 | extern "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 | 23790 | char fabsf (); |
23791 | int | |
23792 | main () | |
23793 | { | |
82eaf560 | 23794 | fabsf (); |
d213114b | 23795 | ; |
23796 | return 0; | |
23797 | } | |
23798 | _ACEOF | |
23799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 23800 | if { (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 |
23822 | else | |
23823 | echo "$as_me: failed program was:" >&5 | |
23824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23825 | ||
82eaf560 | 23826 | ac_cv_lib_m_fabsf=no |
d213114b | 23827 | fi |
82eaf560 | 23828 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23829 | conftest$ac_exeext conftest.$ac_ext |
23830 | LIBS=$ac_check_lib_save_LIBS | |
23831 | fi | |
82eaf560 | 23832 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5 |
23833 | echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6 | |
d213114b | 23834 | if test $ac_cv_lib_m_fabsf = yes; then |
23835 | ||
23836 | cat >>confdefs.h <<\_ACEOF | |
23837 | #define HAVE_FABSF 1 | |
23838 | _ACEOF | |
23839 | ||
23840 | fi | |
23841 | ||
82eaf560 | 23842 | echo "$as_me:$LINENO: checking for fabs in -lm" >&5 |
23843 | echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6 | |
d213114b | 23844 | if test "${ac_cv_lib_m_fabs+set}" = set; then |
23845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23846 | else | |
23847 | ac_check_lib_save_LIBS=$LIBS | |
23848 | LIBS="-lm $LIBS" | |
23849 | if test x$gcc_no_link = xyes; then | |
23850 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23851 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23852 | { (exit 1); exit 1; }; } | |
23853 | fi | |
23854 | cat >conftest.$ac_ext <<_ACEOF | |
23855 | /* confdefs.h. */ | |
23856 | _ACEOF | |
23857 | cat confdefs.h >>conftest.$ac_ext | |
23858 | cat >>conftest.$ac_ext <<_ACEOF | |
23859 | /* end confdefs.h. */ | |
23860 | ||
82eaf560 | 23861 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23862 | #ifdef __cplusplus |
23863 | extern "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 | 23867 | char fabs (); |
23868 | int | |
23869 | main () | |
23870 | { | |
82eaf560 | 23871 | fabs (); |
d213114b | 23872 | ; |
23873 | return 0; | |
23874 | } | |
23875 | _ACEOF | |
23876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 23877 | if { (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 |
23899 | else | |
23900 | echo "$as_me: failed program was:" >&5 | |
23901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23902 | ||
82eaf560 | 23903 | ac_cv_lib_m_fabs=no |
d213114b | 23904 | fi |
82eaf560 | 23905 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23906 | conftest$ac_exeext conftest.$ac_ext |
23907 | LIBS=$ac_check_lib_save_LIBS | |
23908 | fi | |
82eaf560 | 23909 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5 |
23910 | echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6 | |
d213114b | 23911 | if test $ac_cv_lib_m_fabs = yes; then |
23912 | ||
23913 | cat >>confdefs.h <<\_ACEOF | |
23914 | #define HAVE_FABS 1 | |
23915 | _ACEOF | |
23916 | ||
23917 | fi | |
23918 | ||
82eaf560 | 23919 | echo "$as_me:$LINENO: checking for fabsl in -lm" >&5 |
23920 | echo $ECHO_N "checking for fabsl in -lm... $ECHO_C" >&6 | |
d213114b | 23921 | if test "${ac_cv_lib_m_fabsl+set}" = set; then |
23922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23923 | else | |
23924 | ac_check_lib_save_LIBS=$LIBS | |
23925 | LIBS="-lm $LIBS" | |
23926 | if test x$gcc_no_link = xyes; then | |
23927 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
23928 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
23929 | { (exit 1); exit 1; }; } | |
23930 | fi | |
23931 | cat >conftest.$ac_ext <<_ACEOF | |
23932 | /* confdefs.h. */ | |
23933 | _ACEOF | |
23934 | cat confdefs.h >>conftest.$ac_ext | |
23935 | cat >>conftest.$ac_ext <<_ACEOF | |
23936 | /* end confdefs.h. */ | |
23937 | ||
82eaf560 | 23938 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 23939 | #ifdef __cplusplus |
23940 | extern "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 | 23944 | char fabsl (); |
23945 | int | |
23946 | main () | |
23947 | { | |
82eaf560 | 23948 | fabsl (); |
d213114b | 23949 | ; |
23950 | return 0; | |
23951 | } | |
23952 | _ACEOF | |
23953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 23954 | if { (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 |
23976 | else | |
23977 | echo "$as_me: failed program was:" >&5 | |
23978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23979 | ||
82eaf560 | 23980 | ac_cv_lib_m_fabsl=no |
d213114b | 23981 | fi |
82eaf560 | 23982 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 23983 | conftest$ac_exeext conftest.$ac_ext |
23984 | LIBS=$ac_check_lib_save_LIBS | |
23985 | fi | |
82eaf560 | 23986 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsl" >&5 |
23987 | echo "${ECHO_T}$ac_cv_lib_m_fabsl" >&6 | |
d213114b | 23988 | if test $ac_cv_lib_m_fabsl = yes; then |
23989 | ||
23990 | cat >>confdefs.h <<\_ACEOF | |
23991 | #define HAVE_FABSL 1 | |
23992 | _ACEOF | |
23993 | ||
23994 | fi | |
23995 | ||
82eaf560 | 23996 | echo "$as_me:$LINENO: checking for cabsf in -lm" >&5 |
23997 | echo $ECHO_N "checking for cabsf in -lm... $ECHO_C" >&6 | |
d213114b | 23998 | if test "${ac_cv_lib_m_cabsf+set}" = set; then |
23999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24000 | else | |
24001 | ac_check_lib_save_LIBS=$LIBS | |
24002 | LIBS="-lm $LIBS" | |
24003 | if test x$gcc_no_link = xyes; then | |
24004 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24005 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24006 | { (exit 1); exit 1; }; } | |
24007 | fi | |
24008 | cat >conftest.$ac_ext <<_ACEOF | |
24009 | /* confdefs.h. */ | |
24010 | _ACEOF | |
24011 | cat confdefs.h >>conftest.$ac_ext | |
24012 | cat >>conftest.$ac_ext <<_ACEOF | |
24013 | /* end confdefs.h. */ | |
24014 | ||
82eaf560 | 24015 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24016 | #ifdef __cplusplus |
24017 | extern "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 | 24021 | char cabsf (); |
24022 | int | |
24023 | main () | |
24024 | { | |
82eaf560 | 24025 | cabsf (); |
d213114b | 24026 | ; |
24027 | return 0; | |
24028 | } | |
24029 | _ACEOF | |
24030 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 24031 | if { (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 |
24053 | else | |
24054 | echo "$as_me: failed program was:" >&5 | |
24055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24056 | ||
82eaf560 | 24057 | ac_cv_lib_m_cabsf=no |
d213114b | 24058 | fi |
82eaf560 | 24059 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24060 | conftest$ac_exeext conftest.$ac_ext |
24061 | LIBS=$ac_check_lib_save_LIBS | |
24062 | fi | |
82eaf560 | 24063 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabsf" >&5 |
24064 | echo "${ECHO_T}$ac_cv_lib_m_cabsf" >&6 | |
d213114b | 24065 | if test $ac_cv_lib_m_cabsf = yes; then |
24066 | ||
24067 | cat >>confdefs.h <<\_ACEOF | |
24068 | #define HAVE_CABSF 1 | |
24069 | _ACEOF | |
24070 | ||
24071 | fi | |
24072 | ||
82eaf560 | 24073 | echo "$as_me:$LINENO: checking for cabs in -lm" >&5 |
24074 | echo $ECHO_N "checking for cabs in -lm... $ECHO_C" >&6 | |
d213114b | 24075 | if test "${ac_cv_lib_m_cabs+set}" = set; then |
24076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24077 | else | |
24078 | ac_check_lib_save_LIBS=$LIBS | |
24079 | LIBS="-lm $LIBS" | |
24080 | if test x$gcc_no_link = xyes; then | |
24081 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24082 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24083 | { (exit 1); exit 1; }; } | |
24084 | fi | |
24085 | cat >conftest.$ac_ext <<_ACEOF | |
24086 | /* confdefs.h. */ | |
24087 | _ACEOF | |
24088 | cat confdefs.h >>conftest.$ac_ext | |
24089 | cat >>conftest.$ac_ext <<_ACEOF | |
24090 | /* end confdefs.h. */ | |
24091 | ||
82eaf560 | 24092 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24093 | #ifdef __cplusplus |
24094 | extern "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 | 24098 | char cabs (); |
24099 | int | |
24100 | main () | |
24101 | { | |
82eaf560 | 24102 | cabs (); |
d213114b | 24103 | ; |
24104 | return 0; | |
24105 | } | |
24106 | _ACEOF | |
24107 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 24108 | if { (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 |
24130 | else | |
24131 | echo "$as_me: failed program was:" >&5 | |
24132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24133 | ||
82eaf560 | 24134 | ac_cv_lib_m_cabs=no |
d213114b | 24135 | fi |
82eaf560 | 24136 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24137 | conftest$ac_exeext conftest.$ac_ext |
24138 | LIBS=$ac_check_lib_save_LIBS | |
24139 | fi | |
82eaf560 | 24140 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabs" >&5 |
24141 | echo "${ECHO_T}$ac_cv_lib_m_cabs" >&6 | |
d213114b | 24142 | if test $ac_cv_lib_m_cabs = yes; then |
24143 | ||
24144 | cat >>confdefs.h <<\_ACEOF | |
24145 | #define HAVE_CABS 1 | |
24146 | _ACEOF | |
24147 | ||
24148 | fi | |
24149 | ||
82eaf560 | 24150 | echo "$as_me:$LINENO: checking for cabsl in -lm" >&5 |
24151 | echo $ECHO_N "checking for cabsl in -lm... $ECHO_C" >&6 | |
d213114b | 24152 | if test "${ac_cv_lib_m_cabsl+set}" = set; then |
24153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24154 | else | |
24155 | ac_check_lib_save_LIBS=$LIBS | |
24156 | LIBS="-lm $LIBS" | |
24157 | if test x$gcc_no_link = xyes; then | |
24158 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24159 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24160 | { (exit 1); exit 1; }; } | |
24161 | fi | |
24162 | cat >conftest.$ac_ext <<_ACEOF | |
24163 | /* confdefs.h. */ | |
24164 | _ACEOF | |
24165 | cat confdefs.h >>conftest.$ac_ext | |
24166 | cat >>conftest.$ac_ext <<_ACEOF | |
24167 | /* end confdefs.h. */ | |
24168 | ||
82eaf560 | 24169 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24170 | #ifdef __cplusplus |
24171 | extern "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 | 24175 | char cabsl (); |
24176 | int | |
24177 | main () | |
24178 | { | |
82eaf560 | 24179 | cabsl (); |
d213114b | 24180 | ; |
24181 | return 0; | |
24182 | } | |
24183 | _ACEOF | |
24184 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 24185 | if { (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 |
24207 | else | |
24208 | echo "$as_me: failed program was:" >&5 | |
24209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24210 | ||
82eaf560 | 24211 | ac_cv_lib_m_cabsl=no |
d213114b | 24212 | fi |
82eaf560 | 24213 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24214 | conftest$ac_exeext conftest.$ac_ext |
24215 | LIBS=$ac_check_lib_save_LIBS | |
24216 | fi | |
82eaf560 | 24217 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabsl" >&5 |
24218 | echo "${ECHO_T}$ac_cv_lib_m_cabsl" >&6 | |
d213114b | 24219 | if test $ac_cv_lib_m_cabsl = yes; then |
24220 | ||
24221 | cat >>confdefs.h <<\_ACEOF | |
24222 | #define HAVE_CABSL 1 | |
24223 | _ACEOF | |
24224 | ||
24225 | fi | |
24226 | ||
82eaf560 | 24227 | echo "$as_me:$LINENO: checking for floorf in -lm" >&5 |
24228 | echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6 | |
d213114b | 24229 | if test "${ac_cv_lib_m_floorf+set}" = set; then |
24230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24231 | else | |
24232 | ac_check_lib_save_LIBS=$LIBS | |
24233 | LIBS="-lm $LIBS" | |
24234 | if test x$gcc_no_link = xyes; then | |
24235 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24236 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24237 | { (exit 1); exit 1; }; } | |
24238 | fi | |
24239 | cat >conftest.$ac_ext <<_ACEOF | |
24240 | /* confdefs.h. */ | |
24241 | _ACEOF | |
24242 | cat confdefs.h >>conftest.$ac_ext | |
24243 | cat >>conftest.$ac_ext <<_ACEOF | |
24244 | /* end confdefs.h. */ | |
24245 | ||
82eaf560 | 24246 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24247 | #ifdef __cplusplus |
24248 | extern "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 | 24252 | char floorf (); |
24253 | int | |
24254 | main () | |
24255 | { | |
82eaf560 | 24256 | floorf (); |
d213114b | 24257 | ; |
24258 | return 0; | |
24259 | } | |
24260 | _ACEOF | |
24261 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 24262 | if { (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 |
24284 | else | |
24285 | echo "$as_me: failed program was:" >&5 | |
24286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24287 | ||
82eaf560 | 24288 | ac_cv_lib_m_floorf=no |
d213114b | 24289 | fi |
82eaf560 | 24290 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24291 | conftest$ac_exeext conftest.$ac_ext |
24292 | LIBS=$ac_check_lib_save_LIBS | |
24293 | fi | |
82eaf560 | 24294 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5 |
24295 | echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6 | |
d213114b | 24296 | if test $ac_cv_lib_m_floorf = yes; then |
24297 | ||
24298 | cat >>confdefs.h <<\_ACEOF | |
24299 | #define HAVE_FLOORF 1 | |
24300 | _ACEOF | |
24301 | ||
24302 | fi | |
24303 | ||
82eaf560 | 24304 | echo "$as_me:$LINENO: checking for floor in -lm" >&5 |
24305 | echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6 | |
d213114b | 24306 | if test "${ac_cv_lib_m_floor+set}" = set; then |
24307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24308 | else | |
24309 | ac_check_lib_save_LIBS=$LIBS | |
24310 | LIBS="-lm $LIBS" | |
24311 | if test x$gcc_no_link = xyes; then | |
24312 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24313 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24314 | { (exit 1); exit 1; }; } | |
24315 | fi | |
24316 | cat >conftest.$ac_ext <<_ACEOF | |
24317 | /* confdefs.h. */ | |
24318 | _ACEOF | |
24319 | cat confdefs.h >>conftest.$ac_ext | |
24320 | cat >>conftest.$ac_ext <<_ACEOF | |
24321 | /* end confdefs.h. */ | |
24322 | ||
82eaf560 | 24323 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24324 | #ifdef __cplusplus |
24325 | extern "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 | 24329 | char floor (); |
24330 | int | |
24331 | main () | |
24332 | { | |
82eaf560 | 24333 | floor (); |
d213114b | 24334 | ; |
24335 | return 0; | |
24336 | } | |
24337 | _ACEOF | |
24338 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 24339 | if { (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 |
24361 | else | |
24362 | echo "$as_me: failed program was:" >&5 | |
24363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24364 | ||
82eaf560 | 24365 | ac_cv_lib_m_floor=no |
d213114b | 24366 | fi |
82eaf560 | 24367 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24368 | conftest$ac_exeext conftest.$ac_ext |
24369 | LIBS=$ac_check_lib_save_LIBS | |
24370 | fi | |
82eaf560 | 24371 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 |
24372 | echo "${ECHO_T}$ac_cv_lib_m_floor" >&6 | |
d213114b | 24373 | if test $ac_cv_lib_m_floor = yes; then |
24374 | ||
24375 | cat >>confdefs.h <<\_ACEOF | |
24376 | #define HAVE_FLOOR 1 | |
24377 | _ACEOF | |
24378 | ||
24379 | fi | |
24380 | ||
82eaf560 | 24381 | echo "$as_me:$LINENO: checking for floorl in -lm" >&5 |
24382 | echo $ECHO_N "checking for floorl in -lm... $ECHO_C" >&6 | |
d213114b | 24383 | if test "${ac_cv_lib_m_floorl+set}" = set; then |
24384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24385 | else | |
24386 | ac_check_lib_save_LIBS=$LIBS | |
24387 | LIBS="-lm $LIBS" | |
24388 | if test x$gcc_no_link = xyes; then | |
24389 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24390 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24391 | { (exit 1); exit 1; }; } | |
24392 | fi | |
24393 | cat >conftest.$ac_ext <<_ACEOF | |
24394 | /* confdefs.h. */ | |
24395 | _ACEOF | |
24396 | cat confdefs.h >>conftest.$ac_ext | |
24397 | cat >>conftest.$ac_ext <<_ACEOF | |
24398 | /* end confdefs.h. */ | |
24399 | ||
82eaf560 | 24400 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24401 | #ifdef __cplusplus |
24402 | extern "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 | 24406 | char floorl (); |
24407 | int | |
24408 | main () | |
24409 | { | |
82eaf560 | 24410 | floorl (); |
d213114b | 24411 | ; |
24412 | return 0; | |
24413 | } | |
24414 | _ACEOF | |
24415 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 24416 | if { (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 |
24438 | else | |
24439 | echo "$as_me: failed program was:" >&5 | |
24440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24441 | ||
82eaf560 | 24442 | ac_cv_lib_m_floorl=no |
d213114b | 24443 | fi |
82eaf560 | 24444 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24445 | conftest$ac_exeext conftest.$ac_ext |
24446 | LIBS=$ac_check_lib_save_LIBS | |
24447 | fi | |
82eaf560 | 24448 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorl" >&5 |
24449 | echo "${ECHO_T}$ac_cv_lib_m_floorl" >&6 | |
d213114b | 24450 | if test $ac_cv_lib_m_floorl = yes; then |
24451 | ||
24452 | cat >>confdefs.h <<\_ACEOF | |
24453 | #define HAVE_FLOORL 1 | |
24454 | _ACEOF | |
24455 | ||
24456 | fi | |
24457 | ||
82eaf560 | 24458 | echo "$as_me:$LINENO: checking for fmodf in -lm" >&5 |
24459 | echo $ECHO_N "checking for fmodf in -lm... $ECHO_C" >&6 | |
71d5b534 | 24460 | if test "${ac_cv_lib_m_fmodf+set}" = set; then |
24461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24462 | else | |
24463 | ac_check_lib_save_LIBS=$LIBS | |
24464 | LIBS="-lm $LIBS" | |
24465 | if test x$gcc_no_link = xyes; then | |
24466 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24467 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24468 | { (exit 1); exit 1; }; } | |
24469 | fi | |
24470 | cat >conftest.$ac_ext <<_ACEOF | |
24471 | /* confdefs.h. */ | |
24472 | _ACEOF | |
24473 | cat confdefs.h >>conftest.$ac_ext | |
24474 | cat >>conftest.$ac_ext <<_ACEOF | |
24475 | /* end confdefs.h. */ | |
24476 | ||
82eaf560 | 24477 | /* Override any gcc2 internal prototype to avoid an error. */ |
71d5b534 | 24478 | #ifdef __cplusplus |
24479 | extern "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 | 24483 | char fmodf (); |
24484 | int | |
24485 | main () | |
24486 | { | |
82eaf560 | 24487 | fmodf (); |
71d5b534 | 24488 | ; |
24489 | return 0; | |
24490 | } | |
24491 | _ACEOF | |
24492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 24493 | if { (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 |
24515 | else | |
24516 | echo "$as_me: failed program was:" >&5 | |
24517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24518 | ||
82eaf560 | 24519 | ac_cv_lib_m_fmodf=no |
71d5b534 | 24520 | fi |
82eaf560 | 24521 | rm -f conftest.err conftest.$ac_objext \ |
71d5b534 | 24522 | conftest$ac_exeext conftest.$ac_ext |
24523 | LIBS=$ac_check_lib_save_LIBS | |
24524 | fi | |
82eaf560 | 24525 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmodf" >&5 |
24526 | echo "${ECHO_T}$ac_cv_lib_m_fmodf" >&6 | |
71d5b534 | 24527 | if test $ac_cv_lib_m_fmodf = yes; then |
24528 | ||
24529 | cat >>confdefs.h <<\_ACEOF | |
24530 | #define HAVE_FMODF 1 | |
24531 | _ACEOF | |
24532 | ||
24533 | fi | |
24534 | ||
82eaf560 | 24535 | echo "$as_me:$LINENO: checking for fmod in -lm" >&5 |
24536 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6 | |
71d5b534 | 24537 | if test "${ac_cv_lib_m_fmod+set}" = set; then |
24538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24539 | else | |
24540 | ac_check_lib_save_LIBS=$LIBS | |
24541 | LIBS="-lm $LIBS" | |
24542 | if test x$gcc_no_link = xyes; then | |
24543 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24544 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24545 | { (exit 1); exit 1; }; } | |
24546 | fi | |
24547 | cat >conftest.$ac_ext <<_ACEOF | |
24548 | /* confdefs.h. */ | |
24549 | _ACEOF | |
24550 | cat confdefs.h >>conftest.$ac_ext | |
24551 | cat >>conftest.$ac_ext <<_ACEOF | |
24552 | /* end confdefs.h. */ | |
24553 | ||
82eaf560 | 24554 | /* Override any gcc2 internal prototype to avoid an error. */ |
71d5b534 | 24555 | #ifdef __cplusplus |
24556 | extern "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 | 24560 | char fmod (); |
24561 | int | |
24562 | main () | |
24563 | { | |
82eaf560 | 24564 | fmod (); |
71d5b534 | 24565 | ; |
24566 | return 0; | |
24567 | } | |
24568 | _ACEOF | |
24569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 24570 | if { (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 |
24592 | else | |
24593 | echo "$as_me: failed program was:" >&5 | |
24594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24595 | ||
82eaf560 | 24596 | ac_cv_lib_m_fmod=no |
71d5b534 | 24597 | fi |
82eaf560 | 24598 | rm -f conftest.err conftest.$ac_objext \ |
71d5b534 | 24599 | conftest$ac_exeext conftest.$ac_ext |
24600 | LIBS=$ac_check_lib_save_LIBS | |
24601 | fi | |
82eaf560 | 24602 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 |
24603 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6 | |
71d5b534 | 24604 | if test $ac_cv_lib_m_fmod = yes; then |
24605 | ||
24606 | cat >>confdefs.h <<\_ACEOF | |
24607 | #define HAVE_FMOD 1 | |
24608 | _ACEOF | |
24609 | ||
24610 | fi | |
24611 | ||
82eaf560 | 24612 | echo "$as_me:$LINENO: checking for fmodl in -lm" >&5 |
24613 | echo $ECHO_N "checking for fmodl in -lm... $ECHO_C" >&6 | |
71d5b534 | 24614 | if test "${ac_cv_lib_m_fmodl+set}" = set; then |
24615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24616 | else | |
24617 | ac_check_lib_save_LIBS=$LIBS | |
24618 | LIBS="-lm $LIBS" | |
24619 | if test x$gcc_no_link = xyes; then | |
24620 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24621 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24622 | { (exit 1); exit 1; }; } | |
24623 | fi | |
24624 | cat >conftest.$ac_ext <<_ACEOF | |
24625 | /* confdefs.h. */ | |
24626 | _ACEOF | |
24627 | cat confdefs.h >>conftest.$ac_ext | |
24628 | cat >>conftest.$ac_ext <<_ACEOF | |
24629 | /* end confdefs.h. */ | |
24630 | ||
82eaf560 | 24631 | /* Override any gcc2 internal prototype to avoid an error. */ |
71d5b534 | 24632 | #ifdef __cplusplus |
24633 | extern "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 | 24637 | char fmodl (); |
24638 | int | |
24639 | main () | |
24640 | { | |
82eaf560 | 24641 | fmodl (); |
71d5b534 | 24642 | ; |
24643 | return 0; | |
24644 | } | |
24645 | _ACEOF | |
24646 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 24647 | if { (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 |
24669 | else | |
24670 | echo "$as_me: failed program was:" >&5 | |
24671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24672 | ||
82eaf560 | 24673 | ac_cv_lib_m_fmodl=no |
71d5b534 | 24674 | fi |
82eaf560 | 24675 | rm -f conftest.err conftest.$ac_objext \ |
71d5b534 | 24676 | conftest$ac_exeext conftest.$ac_ext |
24677 | LIBS=$ac_check_lib_save_LIBS | |
24678 | fi | |
82eaf560 | 24679 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmodl" >&5 |
24680 | echo "${ECHO_T}$ac_cv_lib_m_fmodl" >&6 | |
71d5b534 | 24681 | if test $ac_cv_lib_m_fmodl = yes; then |
24682 | ||
24683 | cat >>confdefs.h <<\_ACEOF | |
24684 | #define HAVE_FMODL 1 | |
24685 | _ACEOF | |
24686 | ||
24687 | fi | |
24688 | ||
82eaf560 | 24689 | echo "$as_me:$LINENO: checking for frexpf in -lm" >&5 |
24690 | echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6 | |
d213114b | 24691 | if test "${ac_cv_lib_m_frexpf+set}" = set; then |
24692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24693 | else | |
24694 | ac_check_lib_save_LIBS=$LIBS | |
24695 | LIBS="-lm $LIBS" | |
24696 | if test x$gcc_no_link = xyes; then | |
24697 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24698 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24699 | { (exit 1); exit 1; }; } | |
24700 | fi | |
24701 | cat >conftest.$ac_ext <<_ACEOF | |
24702 | /* confdefs.h. */ | |
24703 | _ACEOF | |
24704 | cat confdefs.h >>conftest.$ac_ext | |
24705 | cat >>conftest.$ac_ext <<_ACEOF | |
24706 | /* end confdefs.h. */ | |
24707 | ||
82eaf560 | 24708 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24709 | #ifdef __cplusplus |
24710 | extern "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 | 24714 | char frexpf (); |
24715 | int | |
24716 | main () | |
24717 | { | |
82eaf560 | 24718 | frexpf (); |
d213114b | 24719 | ; |
24720 | return 0; | |
24721 | } | |
24722 | _ACEOF | |
24723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 24724 | if { (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 |
24746 | else | |
24747 | echo "$as_me: failed program was:" >&5 | |
24748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24749 | ||
82eaf560 | 24750 | ac_cv_lib_m_frexpf=no |
d213114b | 24751 | fi |
82eaf560 | 24752 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24753 | conftest$ac_exeext conftest.$ac_ext |
24754 | LIBS=$ac_check_lib_save_LIBS | |
24755 | fi | |
82eaf560 | 24756 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5 |
24757 | echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6 | |
d213114b | 24758 | if test $ac_cv_lib_m_frexpf = yes; then |
24759 | ||
24760 | cat >>confdefs.h <<\_ACEOF | |
24761 | #define HAVE_FREXPF 1 | |
24762 | _ACEOF | |
24763 | ||
24764 | fi | |
24765 | ||
82eaf560 | 24766 | echo "$as_me:$LINENO: checking for frexp in -lm" >&5 |
24767 | echo $ECHO_N "checking for frexp in -lm... $ECHO_C" >&6 | |
d213114b | 24768 | if test "${ac_cv_lib_m_frexp+set}" = set; then |
24769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24770 | else | |
24771 | ac_check_lib_save_LIBS=$LIBS | |
24772 | LIBS="-lm $LIBS" | |
24773 | if test x$gcc_no_link = xyes; then | |
24774 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24775 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24776 | { (exit 1); exit 1; }; } | |
24777 | fi | |
24778 | cat >conftest.$ac_ext <<_ACEOF | |
24779 | /* confdefs.h. */ | |
24780 | _ACEOF | |
24781 | cat confdefs.h >>conftest.$ac_ext | |
24782 | cat >>conftest.$ac_ext <<_ACEOF | |
24783 | /* end confdefs.h. */ | |
24784 | ||
82eaf560 | 24785 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24786 | #ifdef __cplusplus |
24787 | extern "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 | 24791 | char frexp (); |
24792 | int | |
24793 | main () | |
24794 | { | |
82eaf560 | 24795 | frexp (); |
d213114b | 24796 | ; |
24797 | return 0; | |
24798 | } | |
24799 | _ACEOF | |
24800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 24801 | if { (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 |
24823 | else | |
24824 | echo "$as_me: failed program was:" >&5 | |
24825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24826 | ||
82eaf560 | 24827 | ac_cv_lib_m_frexp=no |
d213114b | 24828 | fi |
82eaf560 | 24829 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24830 | conftest$ac_exeext conftest.$ac_ext |
24831 | LIBS=$ac_check_lib_save_LIBS | |
24832 | fi | |
82eaf560 | 24833 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexp" >&5 |
24834 | echo "${ECHO_T}$ac_cv_lib_m_frexp" >&6 | |
d213114b | 24835 | if test $ac_cv_lib_m_frexp = yes; then |
24836 | ||
24837 | cat >>confdefs.h <<\_ACEOF | |
24838 | #define HAVE_FREXP 1 | |
24839 | _ACEOF | |
24840 | ||
24841 | fi | |
24842 | ||
82eaf560 | 24843 | echo "$as_me:$LINENO: checking for frexpl in -lm" >&5 |
24844 | echo $ECHO_N "checking for frexpl in -lm... $ECHO_C" >&6 | |
d213114b | 24845 | if test "${ac_cv_lib_m_frexpl+set}" = set; then |
24846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24847 | else | |
24848 | ac_check_lib_save_LIBS=$LIBS | |
24849 | LIBS="-lm $LIBS" | |
24850 | if test x$gcc_no_link = xyes; then | |
24851 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24852 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24853 | { (exit 1); exit 1; }; } | |
24854 | fi | |
24855 | cat >conftest.$ac_ext <<_ACEOF | |
24856 | /* confdefs.h. */ | |
24857 | _ACEOF | |
24858 | cat confdefs.h >>conftest.$ac_ext | |
24859 | cat >>conftest.$ac_ext <<_ACEOF | |
24860 | /* end confdefs.h. */ | |
24861 | ||
82eaf560 | 24862 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24863 | #ifdef __cplusplus |
24864 | extern "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 | 24868 | char frexpl (); |
24869 | int | |
24870 | main () | |
24871 | { | |
82eaf560 | 24872 | frexpl (); |
d213114b | 24873 | ; |
24874 | return 0; | |
24875 | } | |
24876 | _ACEOF | |
24877 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 24878 | if { (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 |
24900 | else | |
24901 | echo "$as_me: failed program was:" >&5 | |
24902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24903 | ||
82eaf560 | 24904 | ac_cv_lib_m_frexpl=no |
d213114b | 24905 | fi |
82eaf560 | 24906 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24907 | conftest$ac_exeext conftest.$ac_ext |
24908 | LIBS=$ac_check_lib_save_LIBS | |
24909 | fi | |
82eaf560 | 24910 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpl" >&5 |
24911 | echo "${ECHO_T}$ac_cv_lib_m_frexpl" >&6 | |
d213114b | 24912 | if test $ac_cv_lib_m_frexpl = yes; then |
24913 | ||
24914 | cat >>confdefs.h <<\_ACEOF | |
24915 | #define HAVE_FREXPL 1 | |
24916 | _ACEOF | |
24917 | ||
24918 | fi | |
24919 | ||
82eaf560 | 24920 | echo "$as_me:$LINENO: checking for hypotf in -lm" >&5 |
24921 | echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6 | |
d213114b | 24922 | if test "${ac_cv_lib_m_hypotf+set}" = set; then |
24923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24924 | else | |
24925 | ac_check_lib_save_LIBS=$LIBS | |
24926 | LIBS="-lm $LIBS" | |
24927 | if test x$gcc_no_link = xyes; then | |
24928 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
24929 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
24930 | { (exit 1); exit 1; }; } | |
24931 | fi | |
24932 | cat >conftest.$ac_ext <<_ACEOF | |
24933 | /* confdefs.h. */ | |
24934 | _ACEOF | |
24935 | cat confdefs.h >>conftest.$ac_ext | |
24936 | cat >>conftest.$ac_ext <<_ACEOF | |
24937 | /* end confdefs.h. */ | |
24938 | ||
82eaf560 | 24939 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 24940 | #ifdef __cplusplus |
24941 | extern "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 | 24945 | char hypotf (); |
24946 | int | |
24947 | main () | |
24948 | { | |
82eaf560 | 24949 | hypotf (); |
d213114b | 24950 | ; |
24951 | return 0; | |
24952 | } | |
24953 | _ACEOF | |
24954 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 24955 | if { (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 |
24977 | else | |
24978 | echo "$as_me: failed program was:" >&5 | |
24979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24980 | ||
82eaf560 | 24981 | ac_cv_lib_m_hypotf=no |
d213114b | 24982 | fi |
82eaf560 | 24983 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 24984 | conftest$ac_exeext conftest.$ac_ext |
24985 | LIBS=$ac_check_lib_save_LIBS | |
24986 | fi | |
82eaf560 | 24987 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5 |
24988 | echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6 | |
d213114b | 24989 | if test $ac_cv_lib_m_hypotf = yes; then |
24990 | ||
24991 | cat >>confdefs.h <<\_ACEOF | |
24992 | #define HAVE_HYPOTF 1 | |
24993 | _ACEOF | |
24994 | ||
24995 | fi | |
24996 | ||
82eaf560 | 24997 | echo "$as_me:$LINENO: checking for hypot in -lm" >&5 |
24998 | echo $ECHO_N "checking for hypot in -lm... $ECHO_C" >&6 | |
d213114b | 24999 | if test "${ac_cv_lib_m_hypot+set}" = set; then |
25000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25001 | else | |
25002 | ac_check_lib_save_LIBS=$LIBS | |
25003 | LIBS="-lm $LIBS" | |
25004 | if test x$gcc_no_link = xyes; then | |
25005 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25006 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25007 | { (exit 1); exit 1; }; } | |
25008 | fi | |
25009 | cat >conftest.$ac_ext <<_ACEOF | |
25010 | /* confdefs.h. */ | |
25011 | _ACEOF | |
25012 | cat confdefs.h >>conftest.$ac_ext | |
25013 | cat >>conftest.$ac_ext <<_ACEOF | |
25014 | /* end confdefs.h. */ | |
25015 | ||
82eaf560 | 25016 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25017 | #ifdef __cplusplus |
25018 | extern "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 | 25022 | char hypot (); |
25023 | int | |
25024 | main () | |
25025 | { | |
82eaf560 | 25026 | hypot (); |
d213114b | 25027 | ; |
25028 | return 0; | |
25029 | } | |
25030 | _ACEOF | |
25031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 25032 | if { (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 |
25054 | else | |
25055 | echo "$as_me: failed program was:" >&5 | |
25056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25057 | ||
82eaf560 | 25058 | ac_cv_lib_m_hypot=no |
d213114b | 25059 | fi |
82eaf560 | 25060 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25061 | conftest$ac_exeext conftest.$ac_ext |
25062 | LIBS=$ac_check_lib_save_LIBS | |
25063 | fi | |
82eaf560 | 25064 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypot" >&5 |
25065 | echo "${ECHO_T}$ac_cv_lib_m_hypot" >&6 | |
d213114b | 25066 | if test $ac_cv_lib_m_hypot = yes; then |
25067 | ||
25068 | cat >>confdefs.h <<\_ACEOF | |
25069 | #define HAVE_HYPOT 1 | |
25070 | _ACEOF | |
25071 | ||
25072 | fi | |
25073 | ||
82eaf560 | 25074 | echo "$as_me:$LINENO: checking for hypotl in -lm" >&5 |
25075 | echo $ECHO_N "checking for hypotl in -lm... $ECHO_C" >&6 | |
d213114b | 25076 | if test "${ac_cv_lib_m_hypotl+set}" = set; then |
25077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25078 | else | |
25079 | ac_check_lib_save_LIBS=$LIBS | |
25080 | LIBS="-lm $LIBS" | |
25081 | if test x$gcc_no_link = xyes; then | |
25082 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25083 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25084 | { (exit 1); exit 1; }; } | |
25085 | fi | |
25086 | cat >conftest.$ac_ext <<_ACEOF | |
25087 | /* confdefs.h. */ | |
25088 | _ACEOF | |
25089 | cat confdefs.h >>conftest.$ac_ext | |
25090 | cat >>conftest.$ac_ext <<_ACEOF | |
25091 | /* end confdefs.h. */ | |
25092 | ||
82eaf560 | 25093 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25094 | #ifdef __cplusplus |
25095 | extern "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 | 25099 | char hypotl (); |
25100 | int | |
25101 | main () | |
25102 | { | |
82eaf560 | 25103 | hypotl (); |
d213114b | 25104 | ; |
25105 | return 0; | |
25106 | } | |
25107 | _ACEOF | |
25108 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 25109 | if { (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 |
25131 | else | |
25132 | echo "$as_me: failed program was:" >&5 | |
25133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25134 | ||
82eaf560 | 25135 | ac_cv_lib_m_hypotl=no |
d213114b | 25136 | fi |
82eaf560 | 25137 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25138 | conftest$ac_exeext conftest.$ac_ext |
25139 | LIBS=$ac_check_lib_save_LIBS | |
25140 | fi | |
82eaf560 | 25141 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotl" >&5 |
25142 | echo "${ECHO_T}$ac_cv_lib_m_hypotl" >&6 | |
d213114b | 25143 | if test $ac_cv_lib_m_hypotl = yes; then |
25144 | ||
25145 | cat >>confdefs.h <<\_ACEOF | |
25146 | #define HAVE_HYPOTL 1 | |
25147 | _ACEOF | |
25148 | ||
25149 | fi | |
25150 | ||
82eaf560 | 25151 | echo "$as_me:$LINENO: checking for ldexpf in -lm" >&5 |
25152 | echo $ECHO_N "checking for ldexpf in -lm... $ECHO_C" >&6 | |
71d90ac4 | 25153 | if test "${ac_cv_lib_m_ldexpf+set}" = set; then |
25154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25155 | else | |
25156 | ac_check_lib_save_LIBS=$LIBS | |
25157 | LIBS="-lm $LIBS" | |
25158 | if test x$gcc_no_link = xyes; then | |
25159 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25160 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25161 | { (exit 1); exit 1; }; } | |
25162 | fi | |
25163 | cat >conftest.$ac_ext <<_ACEOF | |
25164 | /* confdefs.h. */ | |
25165 | _ACEOF | |
25166 | cat confdefs.h >>conftest.$ac_ext | |
25167 | cat >>conftest.$ac_ext <<_ACEOF | |
25168 | /* end confdefs.h. */ | |
25169 | ||
82eaf560 | 25170 | /* Override any gcc2 internal prototype to avoid an error. */ |
71d90ac4 | 25171 | #ifdef __cplusplus |
25172 | extern "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 | 25176 | char ldexpf (); |
25177 | int | |
25178 | main () | |
25179 | { | |
82eaf560 | 25180 | ldexpf (); |
71d90ac4 | 25181 | ; |
25182 | return 0; | |
25183 | } | |
25184 | _ACEOF | |
25185 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 25186 | if { (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 |
25208 | else | |
25209 | echo "$as_me: failed program was:" >&5 | |
25210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25211 | ||
82eaf560 | 25212 | ac_cv_lib_m_ldexpf=no |
71d90ac4 | 25213 | fi |
82eaf560 | 25214 | rm -f conftest.err conftest.$ac_objext \ |
71d90ac4 | 25215 | conftest$ac_exeext conftest.$ac_ext |
25216 | LIBS=$ac_check_lib_save_LIBS | |
25217 | fi | |
82eaf560 | 25218 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexpf" >&5 |
25219 | echo "${ECHO_T}$ac_cv_lib_m_ldexpf" >&6 | |
71d90ac4 | 25220 | if test $ac_cv_lib_m_ldexpf = yes; then |
25221 | ||
25222 | cat >>confdefs.h <<\_ACEOF | |
25223 | #define HAVE_LDEXPF 1 | |
25224 | _ACEOF | |
25225 | ||
25226 | fi | |
25227 | ||
82eaf560 | 25228 | echo "$as_me:$LINENO: checking for ldexp in -lm" >&5 |
25229 | echo $ECHO_N "checking for ldexp in -lm... $ECHO_C" >&6 | |
71d90ac4 | 25230 | if test "${ac_cv_lib_m_ldexp+set}" = set; then |
25231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25232 | else | |
25233 | ac_check_lib_save_LIBS=$LIBS | |
25234 | LIBS="-lm $LIBS" | |
25235 | if test x$gcc_no_link = xyes; then | |
25236 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25237 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25238 | { (exit 1); exit 1; }; } | |
25239 | fi | |
25240 | cat >conftest.$ac_ext <<_ACEOF | |
25241 | /* confdefs.h. */ | |
25242 | _ACEOF | |
25243 | cat confdefs.h >>conftest.$ac_ext | |
25244 | cat >>conftest.$ac_ext <<_ACEOF | |
25245 | /* end confdefs.h. */ | |
25246 | ||
82eaf560 | 25247 | /* Override any gcc2 internal prototype to avoid an error. */ |
71d90ac4 | 25248 | #ifdef __cplusplus |
25249 | extern "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 | 25253 | char ldexp (); |
25254 | int | |
25255 | main () | |
25256 | { | |
82eaf560 | 25257 | ldexp (); |
71d90ac4 | 25258 | ; |
25259 | return 0; | |
25260 | } | |
25261 | _ACEOF | |
25262 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 25263 | if { (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 |
25285 | else | |
25286 | echo "$as_me: failed program was:" >&5 | |
25287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25288 | ||
82eaf560 | 25289 | ac_cv_lib_m_ldexp=no |
71d90ac4 | 25290 | fi |
82eaf560 | 25291 | rm -f conftest.err conftest.$ac_objext \ |
71d90ac4 | 25292 | conftest$ac_exeext conftest.$ac_ext |
25293 | LIBS=$ac_check_lib_save_LIBS | |
25294 | fi | |
82eaf560 | 25295 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexp" >&5 |
25296 | echo "${ECHO_T}$ac_cv_lib_m_ldexp" >&6 | |
71d90ac4 | 25297 | if test $ac_cv_lib_m_ldexp = yes; then |
25298 | ||
25299 | cat >>confdefs.h <<\_ACEOF | |
25300 | #define HAVE_LDEXP 1 | |
25301 | _ACEOF | |
25302 | ||
25303 | fi | |
25304 | ||
82eaf560 | 25305 | echo "$as_me:$LINENO: checking for ldexpl in -lm" >&5 |
25306 | echo $ECHO_N "checking for ldexpl in -lm... $ECHO_C" >&6 | |
71d90ac4 | 25307 | if test "${ac_cv_lib_m_ldexpl+set}" = set; then |
25308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25309 | else | |
25310 | ac_check_lib_save_LIBS=$LIBS | |
25311 | LIBS="-lm $LIBS" | |
25312 | if test x$gcc_no_link = xyes; then | |
25313 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25314 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25315 | { (exit 1); exit 1; }; } | |
25316 | fi | |
25317 | cat >conftest.$ac_ext <<_ACEOF | |
25318 | /* confdefs.h. */ | |
25319 | _ACEOF | |
25320 | cat confdefs.h >>conftest.$ac_ext | |
25321 | cat >>conftest.$ac_ext <<_ACEOF | |
25322 | /* end confdefs.h. */ | |
25323 | ||
82eaf560 | 25324 | /* Override any gcc2 internal prototype to avoid an error. */ |
71d90ac4 | 25325 | #ifdef __cplusplus |
25326 | extern "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 | 25330 | char ldexpl (); |
25331 | int | |
25332 | main () | |
25333 | { | |
82eaf560 | 25334 | ldexpl (); |
71d90ac4 | 25335 | ; |
25336 | return 0; | |
25337 | } | |
25338 | _ACEOF | |
25339 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 25340 | if { (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 |
25362 | else | |
25363 | echo "$as_me: failed program was:" >&5 | |
25364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25365 | ||
82eaf560 | 25366 | ac_cv_lib_m_ldexpl=no |
71d90ac4 | 25367 | fi |
82eaf560 | 25368 | rm -f conftest.err conftest.$ac_objext \ |
71d90ac4 | 25369 | conftest$ac_exeext conftest.$ac_ext |
25370 | LIBS=$ac_check_lib_save_LIBS | |
25371 | fi | |
82eaf560 | 25372 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ldexpl" >&5 |
25373 | echo "${ECHO_T}$ac_cv_lib_m_ldexpl" >&6 | |
71d90ac4 | 25374 | if test $ac_cv_lib_m_ldexpl = yes; then |
25375 | ||
25376 | cat >>confdefs.h <<\_ACEOF | |
25377 | #define HAVE_LDEXPL 1 | |
25378 | _ACEOF | |
25379 | ||
25380 | fi | |
25381 | ||
82eaf560 | 25382 | echo "$as_me:$LINENO: checking for logf in -lm" >&5 |
25383 | echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6 | |
d213114b | 25384 | if test "${ac_cv_lib_m_logf+set}" = set; then |
25385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25386 | else | |
25387 | ac_check_lib_save_LIBS=$LIBS | |
25388 | LIBS="-lm $LIBS" | |
25389 | if test x$gcc_no_link = xyes; then | |
25390 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25391 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25392 | { (exit 1); exit 1; }; } | |
25393 | fi | |
25394 | cat >conftest.$ac_ext <<_ACEOF | |
25395 | /* confdefs.h. */ | |
25396 | _ACEOF | |
25397 | cat confdefs.h >>conftest.$ac_ext | |
25398 | cat >>conftest.$ac_ext <<_ACEOF | |
25399 | /* end confdefs.h. */ | |
25400 | ||
82eaf560 | 25401 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25402 | #ifdef __cplusplus |
25403 | extern "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 | 25407 | char logf (); |
25408 | int | |
25409 | main () | |
25410 | { | |
82eaf560 | 25411 | logf (); |
d213114b | 25412 | ; |
25413 | return 0; | |
25414 | } | |
25415 | _ACEOF | |
25416 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 25417 | if { (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 |
25439 | else | |
25440 | echo "$as_me: failed program was:" >&5 | |
25441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25442 | ||
82eaf560 | 25443 | ac_cv_lib_m_logf=no |
d213114b | 25444 | fi |
82eaf560 | 25445 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25446 | conftest$ac_exeext conftest.$ac_ext |
25447 | LIBS=$ac_check_lib_save_LIBS | |
25448 | fi | |
82eaf560 | 25449 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5 |
25450 | echo "${ECHO_T}$ac_cv_lib_m_logf" >&6 | |
d213114b | 25451 | if test $ac_cv_lib_m_logf = yes; then |
25452 | ||
25453 | cat >>confdefs.h <<\_ACEOF | |
25454 | #define HAVE_LOGF 1 | |
25455 | _ACEOF | |
25456 | ||
25457 | fi | |
25458 | ||
82eaf560 | 25459 | echo "$as_me:$LINENO: checking for log in -lm" >&5 |
25460 | echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6 | |
d213114b | 25461 | if test "${ac_cv_lib_m_log+set}" = set; then |
25462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25463 | else | |
25464 | ac_check_lib_save_LIBS=$LIBS | |
25465 | LIBS="-lm $LIBS" | |
25466 | if test x$gcc_no_link = xyes; then | |
25467 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25468 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25469 | { (exit 1); exit 1; }; } | |
25470 | fi | |
25471 | cat >conftest.$ac_ext <<_ACEOF | |
25472 | /* confdefs.h. */ | |
25473 | _ACEOF | |
25474 | cat confdefs.h >>conftest.$ac_ext | |
25475 | cat >>conftest.$ac_ext <<_ACEOF | |
25476 | /* end confdefs.h. */ | |
25477 | ||
82eaf560 | 25478 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25479 | #ifdef __cplusplus |
25480 | extern "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 | 25484 | char log (); |
25485 | int | |
25486 | main () | |
25487 | { | |
82eaf560 | 25488 | log (); |
d213114b | 25489 | ; |
25490 | return 0; | |
25491 | } | |
25492 | _ACEOF | |
25493 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 25494 | if { (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 |
25516 | else | |
25517 | echo "$as_me: failed program was:" >&5 | |
25518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25519 | ||
82eaf560 | 25520 | ac_cv_lib_m_log=no |
d213114b | 25521 | fi |
82eaf560 | 25522 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25523 | conftest$ac_exeext conftest.$ac_ext |
25524 | LIBS=$ac_check_lib_save_LIBS | |
25525 | fi | |
82eaf560 | 25526 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5 |
25527 | echo "${ECHO_T}$ac_cv_lib_m_log" >&6 | |
d213114b | 25528 | if test $ac_cv_lib_m_log = yes; then |
25529 | ||
25530 | cat >>confdefs.h <<\_ACEOF | |
25531 | #define HAVE_LOG 1 | |
25532 | _ACEOF | |
25533 | ||
25534 | fi | |
25535 | ||
82eaf560 | 25536 | echo "$as_me:$LINENO: checking for logl in -lm" >&5 |
25537 | echo $ECHO_N "checking for logl in -lm... $ECHO_C" >&6 | |
d213114b | 25538 | if test "${ac_cv_lib_m_logl+set}" = set; then |
25539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25540 | else | |
25541 | ac_check_lib_save_LIBS=$LIBS | |
25542 | LIBS="-lm $LIBS" | |
25543 | if test x$gcc_no_link = xyes; then | |
25544 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25545 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25546 | { (exit 1); exit 1; }; } | |
25547 | fi | |
25548 | cat >conftest.$ac_ext <<_ACEOF | |
25549 | /* confdefs.h. */ | |
25550 | _ACEOF | |
25551 | cat confdefs.h >>conftest.$ac_ext | |
25552 | cat >>conftest.$ac_ext <<_ACEOF | |
25553 | /* end confdefs.h. */ | |
25554 | ||
82eaf560 | 25555 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25556 | #ifdef __cplusplus |
25557 | extern "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 | 25561 | char logl (); |
25562 | int | |
25563 | main () | |
25564 | { | |
82eaf560 | 25565 | logl (); |
d213114b | 25566 | ; |
25567 | return 0; | |
25568 | } | |
25569 | _ACEOF | |
25570 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 25571 | if { (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 |
25593 | else | |
25594 | echo "$as_me: failed program was:" >&5 | |
25595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25596 | ||
82eaf560 | 25597 | ac_cv_lib_m_logl=no |
d213114b | 25598 | fi |
82eaf560 | 25599 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25600 | conftest$ac_exeext conftest.$ac_ext |
25601 | LIBS=$ac_check_lib_save_LIBS | |
25602 | fi | |
82eaf560 | 25603 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_logl" >&5 |
25604 | echo "${ECHO_T}$ac_cv_lib_m_logl" >&6 | |
d213114b | 25605 | if test $ac_cv_lib_m_logl = yes; then |
25606 | ||
25607 | cat >>confdefs.h <<\_ACEOF | |
25608 | #define HAVE_LOGL 1 | |
25609 | _ACEOF | |
25610 | ||
25611 | fi | |
25612 | ||
82eaf560 | 25613 | echo "$as_me:$LINENO: checking for clogf in -lm" >&5 |
25614 | echo $ECHO_N "checking for clogf in -lm... $ECHO_C" >&6 | |
d213114b | 25615 | if test "${ac_cv_lib_m_clogf+set}" = set; then |
25616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25617 | else | |
25618 | ac_check_lib_save_LIBS=$LIBS | |
25619 | LIBS="-lm $LIBS" | |
25620 | if test x$gcc_no_link = xyes; then | |
25621 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25622 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25623 | { (exit 1); exit 1; }; } | |
25624 | fi | |
25625 | cat >conftest.$ac_ext <<_ACEOF | |
25626 | /* confdefs.h. */ | |
25627 | _ACEOF | |
25628 | cat confdefs.h >>conftest.$ac_ext | |
25629 | cat >>conftest.$ac_ext <<_ACEOF | |
25630 | /* end confdefs.h. */ | |
25631 | ||
82eaf560 | 25632 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25633 | #ifdef __cplusplus |
25634 | extern "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 | 25638 | char clogf (); |
25639 | int | |
25640 | main () | |
25641 | { | |
82eaf560 | 25642 | clogf (); |
d213114b | 25643 | ; |
25644 | return 0; | |
25645 | } | |
25646 | _ACEOF | |
25647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 25648 | if { (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 |
25670 | else | |
25671 | echo "$as_me: failed program was:" >&5 | |
25672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25673 | ||
82eaf560 | 25674 | ac_cv_lib_m_clogf=no |
d213114b | 25675 | fi |
82eaf560 | 25676 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25677 | conftest$ac_exeext conftest.$ac_ext |
25678 | LIBS=$ac_check_lib_save_LIBS | |
25679 | fi | |
82eaf560 | 25680 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clogf" >&5 |
25681 | echo "${ECHO_T}$ac_cv_lib_m_clogf" >&6 | |
d213114b | 25682 | if test $ac_cv_lib_m_clogf = yes; then |
25683 | ||
25684 | cat >>confdefs.h <<\_ACEOF | |
25685 | #define HAVE_CLOGF 1 | |
25686 | _ACEOF | |
25687 | ||
25688 | fi | |
25689 | ||
82eaf560 | 25690 | echo "$as_me:$LINENO: checking for clog in -lm" >&5 |
25691 | echo $ECHO_N "checking for clog in -lm... $ECHO_C" >&6 | |
d213114b | 25692 | if test "${ac_cv_lib_m_clog+set}" = set; then |
25693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25694 | else | |
25695 | ac_check_lib_save_LIBS=$LIBS | |
25696 | LIBS="-lm $LIBS" | |
25697 | if test x$gcc_no_link = xyes; then | |
25698 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25699 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25700 | { (exit 1); exit 1; }; } | |
25701 | fi | |
25702 | cat >conftest.$ac_ext <<_ACEOF | |
25703 | /* confdefs.h. */ | |
25704 | _ACEOF | |
25705 | cat confdefs.h >>conftest.$ac_ext | |
25706 | cat >>conftest.$ac_ext <<_ACEOF | |
25707 | /* end confdefs.h. */ | |
25708 | ||
82eaf560 | 25709 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25710 | #ifdef __cplusplus |
25711 | extern "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 | 25715 | char clog (); |
25716 | int | |
25717 | main () | |
25718 | { | |
82eaf560 | 25719 | clog (); |
d213114b | 25720 | ; |
25721 | return 0; | |
25722 | } | |
25723 | _ACEOF | |
25724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 25725 | if { (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 |
25747 | else | |
25748 | echo "$as_me: failed program was:" >&5 | |
25749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25750 | ||
82eaf560 | 25751 | ac_cv_lib_m_clog=no |
d213114b | 25752 | fi |
82eaf560 | 25753 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25754 | conftest$ac_exeext conftest.$ac_ext |
25755 | LIBS=$ac_check_lib_save_LIBS | |
25756 | fi | |
82eaf560 | 25757 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog" >&5 |
25758 | echo "${ECHO_T}$ac_cv_lib_m_clog" >&6 | |
d213114b | 25759 | if test $ac_cv_lib_m_clog = yes; then |
25760 | ||
25761 | cat >>confdefs.h <<\_ACEOF | |
25762 | #define HAVE_CLOG 1 | |
25763 | _ACEOF | |
25764 | ||
25765 | fi | |
25766 | ||
82eaf560 | 25767 | echo "$as_me:$LINENO: checking for clogl in -lm" >&5 |
25768 | echo $ECHO_N "checking for clogl in -lm... $ECHO_C" >&6 | |
d213114b | 25769 | if test "${ac_cv_lib_m_clogl+set}" = set; then |
25770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25771 | else | |
25772 | ac_check_lib_save_LIBS=$LIBS | |
25773 | LIBS="-lm $LIBS" | |
25774 | if test x$gcc_no_link = xyes; then | |
25775 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25776 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25777 | { (exit 1); exit 1; }; } | |
25778 | fi | |
25779 | cat >conftest.$ac_ext <<_ACEOF | |
25780 | /* confdefs.h. */ | |
25781 | _ACEOF | |
25782 | cat confdefs.h >>conftest.$ac_ext | |
25783 | cat >>conftest.$ac_ext <<_ACEOF | |
25784 | /* end confdefs.h. */ | |
25785 | ||
82eaf560 | 25786 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25787 | #ifdef __cplusplus |
25788 | extern "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 | 25792 | char clogl (); |
25793 | int | |
25794 | main () | |
25795 | { | |
82eaf560 | 25796 | clogl (); |
d213114b | 25797 | ; |
25798 | return 0; | |
25799 | } | |
25800 | _ACEOF | |
25801 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 25802 | if { (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 |
25824 | else | |
25825 | echo "$as_me: failed program was:" >&5 | |
25826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25827 | ||
82eaf560 | 25828 | ac_cv_lib_m_clogl=no |
d213114b | 25829 | fi |
82eaf560 | 25830 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25831 | conftest$ac_exeext conftest.$ac_ext |
25832 | LIBS=$ac_check_lib_save_LIBS | |
25833 | fi | |
82eaf560 | 25834 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clogl" >&5 |
25835 | echo "${ECHO_T}$ac_cv_lib_m_clogl" >&6 | |
d213114b | 25836 | if test $ac_cv_lib_m_clogl = yes; then |
25837 | ||
25838 | cat >>confdefs.h <<\_ACEOF | |
25839 | #define HAVE_CLOGL 1 | |
25840 | _ACEOF | |
25841 | ||
25842 | fi | |
25843 | ||
82eaf560 | 25844 | echo "$as_me:$LINENO: checking for log10f in -lm" >&5 |
25845 | echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6 | |
d213114b | 25846 | if test "${ac_cv_lib_m_log10f+set}" = set; then |
25847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25848 | else | |
25849 | ac_check_lib_save_LIBS=$LIBS | |
25850 | LIBS="-lm $LIBS" | |
25851 | if test x$gcc_no_link = xyes; then | |
25852 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25853 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25854 | { (exit 1); exit 1; }; } | |
25855 | fi | |
25856 | cat >conftest.$ac_ext <<_ACEOF | |
25857 | /* confdefs.h. */ | |
25858 | _ACEOF | |
25859 | cat confdefs.h >>conftest.$ac_ext | |
25860 | cat >>conftest.$ac_ext <<_ACEOF | |
25861 | /* end confdefs.h. */ | |
25862 | ||
82eaf560 | 25863 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25864 | #ifdef __cplusplus |
25865 | extern "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 | 25869 | char log10f (); |
25870 | int | |
25871 | main () | |
25872 | { | |
82eaf560 | 25873 | log10f (); |
d213114b | 25874 | ; |
25875 | return 0; | |
25876 | } | |
25877 | _ACEOF | |
25878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 25879 | if { (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 |
25901 | else | |
25902 | echo "$as_me: failed program was:" >&5 | |
25903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25904 | ||
82eaf560 | 25905 | ac_cv_lib_m_log10f=no |
d213114b | 25906 | fi |
82eaf560 | 25907 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25908 | conftest$ac_exeext conftest.$ac_ext |
25909 | LIBS=$ac_check_lib_save_LIBS | |
25910 | fi | |
82eaf560 | 25911 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5 |
25912 | echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6 | |
d213114b | 25913 | if test $ac_cv_lib_m_log10f = yes; then |
25914 | ||
25915 | cat >>confdefs.h <<\_ACEOF | |
25916 | #define HAVE_LOG10F 1 | |
25917 | _ACEOF | |
25918 | ||
25919 | fi | |
25920 | ||
82eaf560 | 25921 | echo "$as_me:$LINENO: checking for log10 in -lm" >&5 |
25922 | echo $ECHO_N "checking for log10 in -lm... $ECHO_C" >&6 | |
d213114b | 25923 | if test "${ac_cv_lib_m_log10+set}" = set; then |
25924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25925 | else | |
25926 | ac_check_lib_save_LIBS=$LIBS | |
25927 | LIBS="-lm $LIBS" | |
25928 | if test x$gcc_no_link = xyes; then | |
25929 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
25930 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
25931 | { (exit 1); exit 1; }; } | |
25932 | fi | |
25933 | cat >conftest.$ac_ext <<_ACEOF | |
25934 | /* confdefs.h. */ | |
25935 | _ACEOF | |
25936 | cat confdefs.h >>conftest.$ac_ext | |
25937 | cat >>conftest.$ac_ext <<_ACEOF | |
25938 | /* end confdefs.h. */ | |
25939 | ||
82eaf560 | 25940 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 25941 | #ifdef __cplusplus |
25942 | extern "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 | 25946 | char log10 (); |
25947 | int | |
25948 | main () | |
25949 | { | |
82eaf560 | 25950 | log10 (); |
d213114b | 25951 | ; |
25952 | return 0; | |
25953 | } | |
25954 | _ACEOF | |
25955 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 25956 | if { (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 |
25978 | else | |
25979 | echo "$as_me: failed program was:" >&5 | |
25980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25981 | ||
82eaf560 | 25982 | ac_cv_lib_m_log10=no |
d213114b | 25983 | fi |
82eaf560 | 25984 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 25985 | conftest$ac_exeext conftest.$ac_ext |
25986 | LIBS=$ac_check_lib_save_LIBS | |
25987 | fi | |
82eaf560 | 25988 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10" >&5 |
25989 | echo "${ECHO_T}$ac_cv_lib_m_log10" >&6 | |
d213114b | 25990 | if test $ac_cv_lib_m_log10 = yes; then |
25991 | ||
25992 | cat >>confdefs.h <<\_ACEOF | |
25993 | #define HAVE_LOG10 1 | |
25994 | _ACEOF | |
25995 | ||
25996 | fi | |
25997 | ||
82eaf560 | 25998 | echo "$as_me:$LINENO: checking for log10l in -lm" >&5 |
25999 | echo $ECHO_N "checking for log10l in -lm... $ECHO_C" >&6 | |
d213114b | 26000 | if test "${ac_cv_lib_m_log10l+set}" = set; then |
26001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26002 | else | |
26003 | ac_check_lib_save_LIBS=$LIBS | |
26004 | LIBS="-lm $LIBS" | |
26005 | if test x$gcc_no_link = xyes; then | |
26006 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26007 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26008 | { (exit 1); exit 1; }; } | |
26009 | fi | |
26010 | cat >conftest.$ac_ext <<_ACEOF | |
26011 | /* confdefs.h. */ | |
26012 | _ACEOF | |
26013 | cat confdefs.h >>conftest.$ac_ext | |
26014 | cat >>conftest.$ac_ext <<_ACEOF | |
26015 | /* end confdefs.h. */ | |
26016 | ||
82eaf560 | 26017 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26018 | #ifdef __cplusplus |
26019 | extern "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 | 26023 | char log10l (); |
26024 | int | |
26025 | main () | |
26026 | { | |
82eaf560 | 26027 | log10l (); |
d213114b | 26028 | ; |
26029 | return 0; | |
26030 | } | |
26031 | _ACEOF | |
26032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 26033 | if { (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 |
26055 | else | |
26056 | echo "$as_me: failed program was:" >&5 | |
26057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26058 | ||
82eaf560 | 26059 | ac_cv_lib_m_log10l=no |
d213114b | 26060 | fi |
82eaf560 | 26061 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26062 | conftest$ac_exeext conftest.$ac_ext |
26063 | LIBS=$ac_check_lib_save_LIBS | |
26064 | fi | |
82eaf560 | 26065 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10l" >&5 |
26066 | echo "${ECHO_T}$ac_cv_lib_m_log10l" >&6 | |
d213114b | 26067 | if test $ac_cv_lib_m_log10l = yes; then |
26068 | ||
26069 | cat >>confdefs.h <<\_ACEOF | |
26070 | #define HAVE_LOG10L 1 | |
26071 | _ACEOF | |
26072 | ||
26073 | fi | |
26074 | ||
82eaf560 | 26075 | echo "$as_me:$LINENO: checking for clog10f in -lm" >&5 |
26076 | echo $ECHO_N "checking for clog10f in -lm... $ECHO_C" >&6 | |
d213114b | 26077 | if test "${ac_cv_lib_m_clog10f+set}" = set; then |
26078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26079 | else | |
26080 | ac_check_lib_save_LIBS=$LIBS | |
26081 | LIBS="-lm $LIBS" | |
26082 | if test x$gcc_no_link = xyes; then | |
26083 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26084 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26085 | { (exit 1); exit 1; }; } | |
26086 | fi | |
26087 | cat >conftest.$ac_ext <<_ACEOF | |
26088 | /* confdefs.h. */ | |
26089 | _ACEOF | |
26090 | cat confdefs.h >>conftest.$ac_ext | |
26091 | cat >>conftest.$ac_ext <<_ACEOF | |
26092 | /* end confdefs.h. */ | |
26093 | ||
82eaf560 | 26094 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26095 | #ifdef __cplusplus |
26096 | extern "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 | 26100 | char clog10f (); |
26101 | int | |
26102 | main () | |
26103 | { | |
82eaf560 | 26104 | clog10f (); |
d213114b | 26105 | ; |
26106 | return 0; | |
26107 | } | |
26108 | _ACEOF | |
26109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 26110 | if { (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 |
26132 | else | |
26133 | echo "$as_me: failed program was:" >&5 | |
26134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26135 | ||
82eaf560 | 26136 | ac_cv_lib_m_clog10f=no |
d213114b | 26137 | fi |
82eaf560 | 26138 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26139 | conftest$ac_exeext conftest.$ac_ext |
26140 | LIBS=$ac_check_lib_save_LIBS | |
26141 | fi | |
82eaf560 | 26142 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10f" >&5 |
26143 | echo "${ECHO_T}$ac_cv_lib_m_clog10f" >&6 | |
d213114b | 26144 | if test $ac_cv_lib_m_clog10f = yes; then |
26145 | ||
26146 | cat >>confdefs.h <<\_ACEOF | |
26147 | #define HAVE_CLOG10F 1 | |
26148 | _ACEOF | |
26149 | ||
26150 | fi | |
26151 | ||
82eaf560 | 26152 | echo "$as_me:$LINENO: checking for clog10 in -lm" >&5 |
26153 | echo $ECHO_N "checking for clog10 in -lm... $ECHO_C" >&6 | |
d213114b | 26154 | if test "${ac_cv_lib_m_clog10+set}" = set; then |
26155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26156 | else | |
26157 | ac_check_lib_save_LIBS=$LIBS | |
26158 | LIBS="-lm $LIBS" | |
26159 | if test x$gcc_no_link = xyes; then | |
26160 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26161 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26162 | { (exit 1); exit 1; }; } | |
26163 | fi | |
26164 | cat >conftest.$ac_ext <<_ACEOF | |
26165 | /* confdefs.h. */ | |
26166 | _ACEOF | |
26167 | cat confdefs.h >>conftest.$ac_ext | |
26168 | cat >>conftest.$ac_ext <<_ACEOF | |
26169 | /* end confdefs.h. */ | |
26170 | ||
82eaf560 | 26171 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26172 | #ifdef __cplusplus |
26173 | extern "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 | 26177 | char clog10 (); |
26178 | int | |
26179 | main () | |
26180 | { | |
82eaf560 | 26181 | clog10 (); |
d213114b | 26182 | ; |
26183 | return 0; | |
26184 | } | |
26185 | _ACEOF | |
26186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 26187 | if { (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 |
26209 | else | |
26210 | echo "$as_me: failed program was:" >&5 | |
26211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26212 | ||
82eaf560 | 26213 | ac_cv_lib_m_clog10=no |
d213114b | 26214 | fi |
82eaf560 | 26215 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26216 | conftest$ac_exeext conftest.$ac_ext |
26217 | LIBS=$ac_check_lib_save_LIBS | |
26218 | fi | |
82eaf560 | 26219 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10" >&5 |
26220 | echo "${ECHO_T}$ac_cv_lib_m_clog10" >&6 | |
d213114b | 26221 | if test $ac_cv_lib_m_clog10 = yes; then |
26222 | ||
26223 | cat >>confdefs.h <<\_ACEOF | |
26224 | #define HAVE_CLOG10 1 | |
26225 | _ACEOF | |
26226 | ||
26227 | fi | |
26228 | ||
82eaf560 | 26229 | echo "$as_me:$LINENO: checking for clog10l in -lm" >&5 |
26230 | echo $ECHO_N "checking for clog10l in -lm... $ECHO_C" >&6 | |
d213114b | 26231 | if test "${ac_cv_lib_m_clog10l+set}" = set; then |
26232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26233 | else | |
26234 | ac_check_lib_save_LIBS=$LIBS | |
26235 | LIBS="-lm $LIBS" | |
26236 | if test x$gcc_no_link = xyes; then | |
26237 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26238 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26239 | { (exit 1); exit 1; }; } | |
26240 | fi | |
26241 | cat >conftest.$ac_ext <<_ACEOF | |
26242 | /* confdefs.h. */ | |
26243 | _ACEOF | |
26244 | cat confdefs.h >>conftest.$ac_ext | |
26245 | cat >>conftest.$ac_ext <<_ACEOF | |
26246 | /* end confdefs.h. */ | |
26247 | ||
82eaf560 | 26248 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26249 | #ifdef __cplusplus |
26250 | extern "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 | 26254 | char clog10l (); |
26255 | int | |
26256 | main () | |
26257 | { | |
82eaf560 | 26258 | clog10l (); |
d213114b | 26259 | ; |
26260 | return 0; | |
26261 | } | |
26262 | _ACEOF | |
26263 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 26264 | if { (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 |
26286 | else | |
26287 | echo "$as_me: failed program was:" >&5 | |
26288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26289 | ||
82eaf560 | 26290 | ac_cv_lib_m_clog10l=no |
d213114b | 26291 | fi |
82eaf560 | 26292 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26293 | conftest$ac_exeext conftest.$ac_ext |
26294 | LIBS=$ac_check_lib_save_LIBS | |
26295 | fi | |
82eaf560 | 26296 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10l" >&5 |
26297 | echo "${ECHO_T}$ac_cv_lib_m_clog10l" >&6 | |
d213114b | 26298 | if test $ac_cv_lib_m_clog10l = yes; then |
26299 | ||
26300 | cat >>confdefs.h <<\_ACEOF | |
26301 | #define HAVE_CLOG10L 1 | |
26302 | _ACEOF | |
26303 | ||
26304 | fi | |
26305 | ||
82eaf560 | 26306 | echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5 |
26307 | echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6 | |
d213114b | 26308 | if test "${ac_cv_lib_m_nextafterf+set}" = set; then |
26309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26310 | else | |
26311 | ac_check_lib_save_LIBS=$LIBS | |
26312 | LIBS="-lm $LIBS" | |
26313 | if test x$gcc_no_link = xyes; then | |
26314 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26315 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26316 | { (exit 1); exit 1; }; } | |
26317 | fi | |
26318 | cat >conftest.$ac_ext <<_ACEOF | |
26319 | /* confdefs.h. */ | |
26320 | _ACEOF | |
26321 | cat confdefs.h >>conftest.$ac_ext | |
26322 | cat >>conftest.$ac_ext <<_ACEOF | |
26323 | /* end confdefs.h. */ | |
26324 | ||
82eaf560 | 26325 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26326 | #ifdef __cplusplus |
26327 | extern "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 | 26331 | char nextafterf (); |
26332 | int | |
26333 | main () | |
26334 | { | |
82eaf560 | 26335 | nextafterf (); |
d213114b | 26336 | ; |
26337 | return 0; | |
26338 | } | |
26339 | _ACEOF | |
26340 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 26341 | if { (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 |
26363 | else | |
26364 | echo "$as_me: failed program was:" >&5 | |
26365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26366 | ||
82eaf560 | 26367 | ac_cv_lib_m_nextafterf=no |
d213114b | 26368 | fi |
82eaf560 | 26369 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26370 | conftest$ac_exeext conftest.$ac_ext |
26371 | LIBS=$ac_check_lib_save_LIBS | |
26372 | fi | |
82eaf560 | 26373 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5 |
26374 | echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6 | |
d213114b | 26375 | if test $ac_cv_lib_m_nextafterf = yes; then |
26376 | ||
26377 | cat >>confdefs.h <<\_ACEOF | |
26378 | #define HAVE_NEXTAFTERF 1 | |
26379 | _ACEOF | |
26380 | ||
26381 | fi | |
26382 | ||
82eaf560 | 26383 | echo "$as_me:$LINENO: checking for nextafter in -lm" >&5 |
26384 | echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6 | |
d213114b | 26385 | if test "${ac_cv_lib_m_nextafter+set}" = set; then |
26386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26387 | else | |
26388 | ac_check_lib_save_LIBS=$LIBS | |
26389 | LIBS="-lm $LIBS" | |
26390 | if test x$gcc_no_link = xyes; then | |
26391 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26392 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26393 | { (exit 1); exit 1; }; } | |
26394 | fi | |
26395 | cat >conftest.$ac_ext <<_ACEOF | |
26396 | /* confdefs.h. */ | |
26397 | _ACEOF | |
26398 | cat confdefs.h >>conftest.$ac_ext | |
26399 | cat >>conftest.$ac_ext <<_ACEOF | |
26400 | /* end confdefs.h. */ | |
26401 | ||
82eaf560 | 26402 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26403 | #ifdef __cplusplus |
26404 | extern "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 | 26408 | char nextafter (); |
26409 | int | |
26410 | main () | |
26411 | { | |
82eaf560 | 26412 | nextafter (); |
d213114b | 26413 | ; |
26414 | return 0; | |
26415 | } | |
26416 | _ACEOF | |
26417 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 26418 | if { (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 |
26440 | else | |
26441 | echo "$as_me: failed program was:" >&5 | |
26442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26443 | ||
82eaf560 | 26444 | ac_cv_lib_m_nextafter=no |
d213114b | 26445 | fi |
82eaf560 | 26446 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26447 | conftest$ac_exeext conftest.$ac_ext |
26448 | LIBS=$ac_check_lib_save_LIBS | |
26449 | fi | |
82eaf560 | 26450 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5 |
26451 | echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6 | |
d213114b | 26452 | if test $ac_cv_lib_m_nextafter = yes; then |
26453 | ||
26454 | cat >>confdefs.h <<\_ACEOF | |
26455 | #define HAVE_NEXTAFTER 1 | |
26456 | _ACEOF | |
26457 | ||
26458 | fi | |
26459 | ||
82eaf560 | 26460 | echo "$as_me:$LINENO: checking for nextafterl in -lm" >&5 |
26461 | echo $ECHO_N "checking for nextafterl in -lm... $ECHO_C" >&6 | |
d213114b | 26462 | if test "${ac_cv_lib_m_nextafterl+set}" = set; then |
26463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26464 | else | |
26465 | ac_check_lib_save_LIBS=$LIBS | |
26466 | LIBS="-lm $LIBS" | |
26467 | if test x$gcc_no_link = xyes; then | |
26468 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26469 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26470 | { (exit 1); exit 1; }; } | |
26471 | fi | |
26472 | cat >conftest.$ac_ext <<_ACEOF | |
26473 | /* confdefs.h. */ | |
26474 | _ACEOF | |
26475 | cat confdefs.h >>conftest.$ac_ext | |
26476 | cat >>conftest.$ac_ext <<_ACEOF | |
26477 | /* end confdefs.h. */ | |
26478 | ||
82eaf560 | 26479 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26480 | #ifdef __cplusplus |
26481 | extern "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 | 26485 | char nextafterl (); |
26486 | int | |
26487 | main () | |
26488 | { | |
82eaf560 | 26489 | nextafterl (); |
d213114b | 26490 | ; |
26491 | return 0; | |
26492 | } | |
26493 | _ACEOF | |
26494 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 26495 | if { (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 |
26517 | else | |
26518 | echo "$as_me: failed program was:" >&5 | |
26519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26520 | ||
82eaf560 | 26521 | ac_cv_lib_m_nextafterl=no |
d213114b | 26522 | fi |
82eaf560 | 26523 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26524 | conftest$ac_exeext conftest.$ac_ext |
26525 | LIBS=$ac_check_lib_save_LIBS | |
26526 | fi | |
82eaf560 | 26527 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterl" >&5 |
26528 | echo "${ECHO_T}$ac_cv_lib_m_nextafterl" >&6 | |
d213114b | 26529 | if test $ac_cv_lib_m_nextafterl = yes; then |
26530 | ||
26531 | cat >>confdefs.h <<\_ACEOF | |
26532 | #define HAVE_NEXTAFTERL 1 | |
26533 | _ACEOF | |
26534 | ||
26535 | fi | |
26536 | ||
82eaf560 | 26537 | echo "$as_me:$LINENO: checking for powf in -lm" >&5 |
26538 | echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6 | |
d213114b | 26539 | if test "${ac_cv_lib_m_powf+set}" = set; then |
26540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26541 | else | |
26542 | ac_check_lib_save_LIBS=$LIBS | |
26543 | LIBS="-lm $LIBS" | |
26544 | if test x$gcc_no_link = xyes; then | |
26545 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26546 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26547 | { (exit 1); exit 1; }; } | |
26548 | fi | |
26549 | cat >conftest.$ac_ext <<_ACEOF | |
26550 | /* confdefs.h. */ | |
26551 | _ACEOF | |
26552 | cat confdefs.h >>conftest.$ac_ext | |
26553 | cat >>conftest.$ac_ext <<_ACEOF | |
26554 | /* end confdefs.h. */ | |
26555 | ||
82eaf560 | 26556 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26557 | #ifdef __cplusplus |
26558 | extern "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 | 26562 | char powf (); |
26563 | int | |
26564 | main () | |
26565 | { | |
82eaf560 | 26566 | powf (); |
d213114b | 26567 | ; |
26568 | return 0; | |
26569 | } | |
26570 | _ACEOF | |
26571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 26572 | if { (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 |
26594 | else | |
26595 | echo "$as_me: failed program was:" >&5 | |
26596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26597 | ||
82eaf560 | 26598 | ac_cv_lib_m_powf=no |
d213114b | 26599 | fi |
82eaf560 | 26600 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26601 | conftest$ac_exeext conftest.$ac_ext |
26602 | LIBS=$ac_check_lib_save_LIBS | |
26603 | fi | |
82eaf560 | 26604 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5 |
26605 | echo "${ECHO_T}$ac_cv_lib_m_powf" >&6 | |
d213114b | 26606 | if test $ac_cv_lib_m_powf = yes; then |
26607 | ||
26608 | cat >>confdefs.h <<\_ACEOF | |
26609 | #define HAVE_POWF 1 | |
26610 | _ACEOF | |
26611 | ||
26612 | fi | |
26613 | ||
82eaf560 | 26614 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
26615 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 | |
d213114b | 26616 | if test "${ac_cv_lib_m_pow+set}" = set; then |
26617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26618 | else | |
26619 | ac_check_lib_save_LIBS=$LIBS | |
26620 | LIBS="-lm $LIBS" | |
26621 | if test x$gcc_no_link = xyes; then | |
26622 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26623 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26624 | { (exit 1); exit 1; }; } | |
26625 | fi | |
26626 | cat >conftest.$ac_ext <<_ACEOF | |
26627 | /* confdefs.h. */ | |
26628 | _ACEOF | |
26629 | cat confdefs.h >>conftest.$ac_ext | |
26630 | cat >>conftest.$ac_ext <<_ACEOF | |
26631 | /* end confdefs.h. */ | |
26632 | ||
82eaf560 | 26633 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26634 | #ifdef __cplusplus |
26635 | extern "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 | 26639 | char pow (); |
26640 | int | |
26641 | main () | |
26642 | { | |
82eaf560 | 26643 | pow (); |
d213114b | 26644 | ; |
26645 | return 0; | |
26646 | } | |
26647 | _ACEOF | |
26648 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 26649 | if { (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 |
26671 | else | |
26672 | echo "$as_me: failed program was:" >&5 | |
26673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26674 | ||
82eaf560 | 26675 | ac_cv_lib_m_pow=no |
d213114b | 26676 | fi |
82eaf560 | 26677 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26678 | conftest$ac_exeext conftest.$ac_ext |
26679 | LIBS=$ac_check_lib_save_LIBS | |
26680 | fi | |
82eaf560 | 26681 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
26682 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 | |
d213114b | 26683 | if test $ac_cv_lib_m_pow = yes; then |
26684 | ||
26685 | cat >>confdefs.h <<\_ACEOF | |
26686 | #define HAVE_POW 1 | |
26687 | _ACEOF | |
26688 | ||
26689 | fi | |
26690 | ||
82eaf560 | 26691 | echo "$as_me:$LINENO: checking for powl in -lm" >&5 |
26692 | echo $ECHO_N "checking for powl in -lm... $ECHO_C" >&6 | |
d213114b | 26693 | if test "${ac_cv_lib_m_powl+set}" = set; then |
26694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26695 | else | |
26696 | ac_check_lib_save_LIBS=$LIBS | |
26697 | LIBS="-lm $LIBS" | |
26698 | if test x$gcc_no_link = xyes; then | |
26699 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26700 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26701 | { (exit 1); exit 1; }; } | |
26702 | fi | |
26703 | cat >conftest.$ac_ext <<_ACEOF | |
26704 | /* confdefs.h. */ | |
26705 | _ACEOF | |
26706 | cat confdefs.h >>conftest.$ac_ext | |
26707 | cat >>conftest.$ac_ext <<_ACEOF | |
26708 | /* end confdefs.h. */ | |
26709 | ||
82eaf560 | 26710 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26711 | #ifdef __cplusplus |
26712 | extern "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 | 26716 | char powl (); |
26717 | int | |
26718 | main () | |
26719 | { | |
82eaf560 | 26720 | powl (); |
d213114b | 26721 | ; |
26722 | return 0; | |
26723 | } | |
26724 | _ACEOF | |
26725 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 26726 | if { (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 |
26748 | else | |
26749 | echo "$as_me: failed program was:" >&5 | |
26750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26751 | ||
82eaf560 | 26752 | ac_cv_lib_m_powl=no |
d213114b | 26753 | fi |
82eaf560 | 26754 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26755 | conftest$ac_exeext conftest.$ac_ext |
26756 | LIBS=$ac_check_lib_save_LIBS | |
26757 | fi | |
82eaf560 | 26758 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_powl" >&5 |
26759 | echo "${ECHO_T}$ac_cv_lib_m_powl" >&6 | |
d213114b | 26760 | if test $ac_cv_lib_m_powl = yes; then |
26761 | ||
26762 | cat >>confdefs.h <<\_ACEOF | |
26763 | #define HAVE_POWL 1 | |
26764 | _ACEOF | |
26765 | ||
26766 | fi | |
26767 | ||
82eaf560 | 26768 | echo "$as_me:$LINENO: checking for cpowf in -lm" >&5 |
26769 | echo $ECHO_N "checking for cpowf in -lm... $ECHO_C" >&6 | |
d213114b | 26770 | if test "${ac_cv_lib_m_cpowf+set}" = set; then |
26771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26772 | else | |
26773 | ac_check_lib_save_LIBS=$LIBS | |
26774 | LIBS="-lm $LIBS" | |
26775 | if test x$gcc_no_link = xyes; then | |
26776 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26777 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26778 | { (exit 1); exit 1; }; } | |
26779 | fi | |
26780 | cat >conftest.$ac_ext <<_ACEOF | |
26781 | /* confdefs.h. */ | |
26782 | _ACEOF | |
26783 | cat confdefs.h >>conftest.$ac_ext | |
26784 | cat >>conftest.$ac_ext <<_ACEOF | |
26785 | /* end confdefs.h. */ | |
26786 | ||
82eaf560 | 26787 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26788 | #ifdef __cplusplus |
26789 | extern "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 | 26793 | char cpowf (); |
26794 | int | |
26795 | main () | |
26796 | { | |
82eaf560 | 26797 | cpowf (); |
d213114b | 26798 | ; |
26799 | return 0; | |
26800 | } | |
26801 | _ACEOF | |
26802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 26803 | if { (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 |
26825 | else | |
26826 | echo "$as_me: failed program was:" >&5 | |
26827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26828 | ||
82eaf560 | 26829 | ac_cv_lib_m_cpowf=no |
d213114b | 26830 | fi |
82eaf560 | 26831 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26832 | conftest$ac_exeext conftest.$ac_ext |
26833 | LIBS=$ac_check_lib_save_LIBS | |
26834 | fi | |
82eaf560 | 26835 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpowf" >&5 |
26836 | echo "${ECHO_T}$ac_cv_lib_m_cpowf" >&6 | |
d213114b | 26837 | if test $ac_cv_lib_m_cpowf = yes; then |
26838 | ||
26839 | cat >>confdefs.h <<\_ACEOF | |
26840 | #define HAVE_CPOWF 1 | |
26841 | _ACEOF | |
26842 | ||
26843 | fi | |
26844 | ||
82eaf560 | 26845 | echo "$as_me:$LINENO: checking for cpow in -lm" >&5 |
26846 | echo $ECHO_N "checking for cpow in -lm... $ECHO_C" >&6 | |
d213114b | 26847 | if test "${ac_cv_lib_m_cpow+set}" = set; then |
26848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26849 | else | |
26850 | ac_check_lib_save_LIBS=$LIBS | |
26851 | LIBS="-lm $LIBS" | |
26852 | if test x$gcc_no_link = xyes; then | |
26853 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26854 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26855 | { (exit 1); exit 1; }; } | |
26856 | fi | |
26857 | cat >conftest.$ac_ext <<_ACEOF | |
26858 | /* confdefs.h. */ | |
26859 | _ACEOF | |
26860 | cat confdefs.h >>conftest.$ac_ext | |
26861 | cat >>conftest.$ac_ext <<_ACEOF | |
26862 | /* end confdefs.h. */ | |
26863 | ||
82eaf560 | 26864 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26865 | #ifdef __cplusplus |
26866 | extern "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 | 26870 | char cpow (); |
26871 | int | |
26872 | main () | |
26873 | { | |
82eaf560 | 26874 | cpow (); |
d213114b | 26875 | ; |
26876 | return 0; | |
26877 | } | |
26878 | _ACEOF | |
26879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 26880 | if { (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 |
26902 | else | |
26903 | echo "$as_me: failed program was:" >&5 | |
26904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26905 | ||
82eaf560 | 26906 | ac_cv_lib_m_cpow=no |
d213114b | 26907 | fi |
82eaf560 | 26908 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26909 | conftest$ac_exeext conftest.$ac_ext |
26910 | LIBS=$ac_check_lib_save_LIBS | |
26911 | fi | |
82eaf560 | 26912 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpow" >&5 |
26913 | echo "${ECHO_T}$ac_cv_lib_m_cpow" >&6 | |
d213114b | 26914 | if test $ac_cv_lib_m_cpow = yes; then |
26915 | ||
26916 | cat >>confdefs.h <<\_ACEOF | |
26917 | #define HAVE_CPOW 1 | |
26918 | _ACEOF | |
26919 | ||
26920 | fi | |
26921 | ||
82eaf560 | 26922 | echo "$as_me:$LINENO: checking for cpowl in -lm" >&5 |
26923 | echo $ECHO_N "checking for cpowl in -lm... $ECHO_C" >&6 | |
d213114b | 26924 | if test "${ac_cv_lib_m_cpowl+set}" = set; then |
26925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26926 | else | |
26927 | ac_check_lib_save_LIBS=$LIBS | |
26928 | LIBS="-lm $LIBS" | |
26929 | if test x$gcc_no_link = xyes; then | |
26930 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
26931 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
26932 | { (exit 1); exit 1; }; } | |
26933 | fi | |
26934 | cat >conftest.$ac_ext <<_ACEOF | |
26935 | /* confdefs.h. */ | |
26936 | _ACEOF | |
26937 | cat confdefs.h >>conftest.$ac_ext | |
26938 | cat >>conftest.$ac_ext <<_ACEOF | |
26939 | /* end confdefs.h. */ | |
26940 | ||
82eaf560 | 26941 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 26942 | #ifdef __cplusplus |
26943 | extern "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 | 26947 | char cpowl (); |
26948 | int | |
26949 | main () | |
26950 | { | |
82eaf560 | 26951 | cpowl (); |
d213114b | 26952 | ; |
26953 | return 0; | |
26954 | } | |
26955 | _ACEOF | |
26956 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 26957 | if { (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 |
26979 | else | |
26980 | echo "$as_me: failed program was:" >&5 | |
26981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26982 | ||
82eaf560 | 26983 | ac_cv_lib_m_cpowl=no |
d213114b | 26984 | fi |
82eaf560 | 26985 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 26986 | conftest$ac_exeext conftest.$ac_ext |
26987 | LIBS=$ac_check_lib_save_LIBS | |
26988 | fi | |
82eaf560 | 26989 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpowl" >&5 |
26990 | echo "${ECHO_T}$ac_cv_lib_m_cpowl" >&6 | |
d213114b | 26991 | if test $ac_cv_lib_m_cpowl = yes; then |
26992 | ||
26993 | cat >>confdefs.h <<\_ACEOF | |
26994 | #define HAVE_CPOWL 1 | |
26995 | _ACEOF | |
26996 | ||
26997 | fi | |
26998 | ||
82eaf560 | 26999 | echo "$as_me:$LINENO: checking for roundf in -lm" >&5 |
27000 | echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6 | |
d213114b | 27001 | if test "${ac_cv_lib_m_roundf+set}" = set; then |
27002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27003 | else | |
27004 | ac_check_lib_save_LIBS=$LIBS | |
27005 | LIBS="-lm $LIBS" | |
27006 | if test x$gcc_no_link = xyes; then | |
27007 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27008 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27009 | { (exit 1); exit 1; }; } | |
27010 | fi | |
27011 | cat >conftest.$ac_ext <<_ACEOF | |
27012 | /* confdefs.h. */ | |
27013 | _ACEOF | |
27014 | cat confdefs.h >>conftest.$ac_ext | |
27015 | cat >>conftest.$ac_ext <<_ACEOF | |
27016 | /* end confdefs.h. */ | |
27017 | ||
82eaf560 | 27018 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27019 | #ifdef __cplusplus |
27020 | extern "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 | 27024 | char roundf (); |
27025 | int | |
27026 | main () | |
27027 | { | |
82eaf560 | 27028 | roundf (); |
d213114b | 27029 | ; |
27030 | return 0; | |
27031 | } | |
27032 | _ACEOF | |
27033 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 27034 | if { (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 |
27056 | else | |
27057 | echo "$as_me: failed program was:" >&5 | |
27058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27059 | ||
82eaf560 | 27060 | ac_cv_lib_m_roundf=no |
d213114b | 27061 | fi |
82eaf560 | 27062 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27063 | conftest$ac_exeext conftest.$ac_ext |
27064 | LIBS=$ac_check_lib_save_LIBS | |
27065 | fi | |
82eaf560 | 27066 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5 |
27067 | echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6 | |
d213114b | 27068 | if test $ac_cv_lib_m_roundf = yes; then |
27069 | ||
27070 | cat >>confdefs.h <<\_ACEOF | |
27071 | #define HAVE_ROUNDF 1 | |
27072 | _ACEOF | |
27073 | ||
27074 | fi | |
27075 | ||
82eaf560 | 27076 | echo "$as_me:$LINENO: checking for round in -lm" >&5 |
27077 | echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6 | |
d213114b | 27078 | if test "${ac_cv_lib_m_round+set}" = set; then |
27079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27080 | else | |
27081 | ac_check_lib_save_LIBS=$LIBS | |
27082 | LIBS="-lm $LIBS" | |
27083 | if test x$gcc_no_link = xyes; then | |
27084 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27085 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27086 | { (exit 1); exit 1; }; } | |
27087 | fi | |
27088 | cat >conftest.$ac_ext <<_ACEOF | |
27089 | /* confdefs.h. */ | |
27090 | _ACEOF | |
27091 | cat confdefs.h >>conftest.$ac_ext | |
27092 | cat >>conftest.$ac_ext <<_ACEOF | |
27093 | /* end confdefs.h. */ | |
27094 | ||
82eaf560 | 27095 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27096 | #ifdef __cplusplus |
27097 | extern "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 | 27101 | char round (); |
27102 | int | |
27103 | main () | |
27104 | { | |
82eaf560 | 27105 | round (); |
d213114b | 27106 | ; |
27107 | return 0; | |
27108 | } | |
27109 | _ACEOF | |
27110 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 27111 | if { (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 |
27133 | else | |
27134 | echo "$as_me: failed program was:" >&5 | |
27135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27136 | ||
82eaf560 | 27137 | ac_cv_lib_m_round=no |
d213114b | 27138 | fi |
82eaf560 | 27139 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27140 | conftest$ac_exeext conftest.$ac_ext |
27141 | LIBS=$ac_check_lib_save_LIBS | |
27142 | fi | |
82eaf560 | 27143 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5 |
27144 | echo "${ECHO_T}$ac_cv_lib_m_round" >&6 | |
d213114b | 27145 | if test $ac_cv_lib_m_round = yes; then |
27146 | ||
27147 | cat >>confdefs.h <<\_ACEOF | |
27148 | #define HAVE_ROUND 1 | |
27149 | _ACEOF | |
27150 | ||
27151 | fi | |
27152 | ||
82eaf560 | 27153 | echo "$as_me:$LINENO: checking for roundl in -lm" >&5 |
27154 | echo $ECHO_N "checking for roundl in -lm... $ECHO_C" >&6 | |
d213114b | 27155 | if test "${ac_cv_lib_m_roundl+set}" = set; then |
27156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27157 | else | |
27158 | ac_check_lib_save_LIBS=$LIBS | |
27159 | LIBS="-lm $LIBS" | |
27160 | if test x$gcc_no_link = xyes; then | |
27161 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27162 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27163 | { (exit 1); exit 1; }; } | |
27164 | fi | |
27165 | cat >conftest.$ac_ext <<_ACEOF | |
27166 | /* confdefs.h. */ | |
27167 | _ACEOF | |
27168 | cat confdefs.h >>conftest.$ac_ext | |
27169 | cat >>conftest.$ac_ext <<_ACEOF | |
27170 | /* end confdefs.h. */ | |
27171 | ||
82eaf560 | 27172 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27173 | #ifdef __cplusplus |
27174 | extern "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 | 27178 | char roundl (); |
27179 | int | |
27180 | main () | |
27181 | { | |
82eaf560 | 27182 | roundl (); |
d213114b | 27183 | ; |
27184 | return 0; | |
27185 | } | |
27186 | _ACEOF | |
27187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 27188 | if { (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 |
27210 | else | |
27211 | echo "$as_me: failed program was:" >&5 | |
27212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27213 | ||
82eaf560 | 27214 | ac_cv_lib_m_roundl=no |
d213114b | 27215 | fi |
82eaf560 | 27216 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27217 | conftest$ac_exeext conftest.$ac_ext |
27218 | LIBS=$ac_check_lib_save_LIBS | |
27219 | fi | |
82eaf560 | 27220 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundl" >&5 |
27221 | echo "${ECHO_T}$ac_cv_lib_m_roundl" >&6 | |
d213114b | 27222 | if test $ac_cv_lib_m_roundl = yes; then |
27223 | ||
27224 | cat >>confdefs.h <<\_ACEOF | |
27225 | #define HAVE_ROUNDL 1 | |
27226 | _ACEOF | |
27227 | ||
27228 | fi | |
27229 | ||
82eaf560 | 27230 | echo "$as_me:$LINENO: checking for lroundf in -lm" >&5 |
27231 | echo $ECHO_N "checking for lroundf in -lm... $ECHO_C" >&6 | |
ef080b63 | 27232 | if test "${ac_cv_lib_m_lroundf+set}" = set; then |
27233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27234 | else | |
27235 | ac_check_lib_save_LIBS=$LIBS | |
27236 | LIBS="-lm $LIBS" | |
27237 | if test x$gcc_no_link = xyes; then | |
27238 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27239 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27240 | { (exit 1); exit 1; }; } | |
27241 | fi | |
27242 | cat >conftest.$ac_ext <<_ACEOF | |
27243 | /* confdefs.h. */ | |
27244 | _ACEOF | |
27245 | cat confdefs.h >>conftest.$ac_ext | |
27246 | cat >>conftest.$ac_ext <<_ACEOF | |
27247 | /* end confdefs.h. */ | |
27248 | ||
82eaf560 | 27249 | /* Override any gcc2 internal prototype to avoid an error. */ |
ef080b63 | 27250 | #ifdef __cplusplus |
27251 | extern "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 | 27255 | char lroundf (); |
27256 | int | |
27257 | main () | |
27258 | { | |
82eaf560 | 27259 | lroundf (); |
ef080b63 | 27260 | ; |
27261 | return 0; | |
27262 | } | |
27263 | _ACEOF | |
27264 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 27265 | if { (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 |
27287 | else | |
27288 | echo "$as_me: failed program was:" >&5 | |
27289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27290 | ||
82eaf560 | 27291 | ac_cv_lib_m_lroundf=no |
ef080b63 | 27292 | fi |
82eaf560 | 27293 | rm -f conftest.err conftest.$ac_objext \ |
ef080b63 | 27294 | conftest$ac_exeext conftest.$ac_ext |
27295 | LIBS=$ac_check_lib_save_LIBS | |
27296 | fi | |
82eaf560 | 27297 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_lroundf" >&5 |
27298 | echo "${ECHO_T}$ac_cv_lib_m_lroundf" >&6 | |
ef080b63 | 27299 | if test $ac_cv_lib_m_lroundf = yes; then |
27300 | ||
27301 | cat >>confdefs.h <<\_ACEOF | |
27302 | #define HAVE_LROUNDF 1 | |
27303 | _ACEOF | |
27304 | ||
27305 | fi | |
27306 | ||
82eaf560 | 27307 | echo "$as_me:$LINENO: checking for lround in -lm" >&5 |
27308 | echo $ECHO_N "checking for lround in -lm... $ECHO_C" >&6 | |
ef080b63 | 27309 | if test "${ac_cv_lib_m_lround+set}" = set; then |
27310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27311 | else | |
27312 | ac_check_lib_save_LIBS=$LIBS | |
27313 | LIBS="-lm $LIBS" | |
27314 | if test x$gcc_no_link = xyes; then | |
27315 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27316 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27317 | { (exit 1); exit 1; }; } | |
27318 | fi | |
27319 | cat >conftest.$ac_ext <<_ACEOF | |
27320 | /* confdefs.h. */ | |
27321 | _ACEOF | |
27322 | cat confdefs.h >>conftest.$ac_ext | |
27323 | cat >>conftest.$ac_ext <<_ACEOF | |
27324 | /* end confdefs.h. */ | |
27325 | ||
82eaf560 | 27326 | /* Override any gcc2 internal prototype to avoid an error. */ |
ef080b63 | 27327 | #ifdef __cplusplus |
27328 | extern "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 | 27332 | char lround (); |
27333 | int | |
27334 | main () | |
27335 | { | |
82eaf560 | 27336 | lround (); |
ef080b63 | 27337 | ; |
27338 | return 0; | |
27339 | } | |
27340 | _ACEOF | |
27341 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 27342 | if { (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 |
27364 | else | |
27365 | echo "$as_me: failed program was:" >&5 | |
27366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27367 | ||
82eaf560 | 27368 | ac_cv_lib_m_lround=no |
ef080b63 | 27369 | fi |
82eaf560 | 27370 | rm -f conftest.err conftest.$ac_objext \ |
ef080b63 | 27371 | conftest$ac_exeext conftest.$ac_ext |
27372 | LIBS=$ac_check_lib_save_LIBS | |
27373 | fi | |
82eaf560 | 27374 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_lround" >&5 |
27375 | echo "${ECHO_T}$ac_cv_lib_m_lround" >&6 | |
ef080b63 | 27376 | if test $ac_cv_lib_m_lround = yes; then |
27377 | ||
27378 | cat >>confdefs.h <<\_ACEOF | |
27379 | #define HAVE_LROUND 1 | |
27380 | _ACEOF | |
27381 | ||
27382 | fi | |
27383 | ||
82eaf560 | 27384 | echo "$as_me:$LINENO: checking for lroundl in -lm" >&5 |
27385 | echo $ECHO_N "checking for lroundl in -lm... $ECHO_C" >&6 | |
ef080b63 | 27386 | if test "${ac_cv_lib_m_lroundl+set}" = set; then |
27387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27388 | else | |
27389 | ac_check_lib_save_LIBS=$LIBS | |
27390 | LIBS="-lm $LIBS" | |
27391 | if test x$gcc_no_link = xyes; then | |
27392 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27393 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27394 | { (exit 1); exit 1; }; } | |
27395 | fi | |
27396 | cat >conftest.$ac_ext <<_ACEOF | |
27397 | /* confdefs.h. */ | |
27398 | _ACEOF | |
27399 | cat confdefs.h >>conftest.$ac_ext | |
27400 | cat >>conftest.$ac_ext <<_ACEOF | |
27401 | /* end confdefs.h. */ | |
27402 | ||
82eaf560 | 27403 | /* Override any gcc2 internal prototype to avoid an error. */ |
ef080b63 | 27404 | #ifdef __cplusplus |
27405 | extern "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 | 27409 | char lroundl (); |
27410 | int | |
27411 | main () | |
27412 | { | |
82eaf560 | 27413 | lroundl (); |
ef080b63 | 27414 | ; |
27415 | return 0; | |
27416 | } | |
27417 | _ACEOF | |
27418 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 27419 | if { (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 |
27441 | else | |
27442 | echo "$as_me: failed program was:" >&5 | |
27443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27444 | ||
82eaf560 | 27445 | ac_cv_lib_m_lroundl=no |
ef080b63 | 27446 | fi |
82eaf560 | 27447 | rm -f conftest.err conftest.$ac_objext \ |
ef080b63 | 27448 | conftest$ac_exeext conftest.$ac_ext |
27449 | LIBS=$ac_check_lib_save_LIBS | |
27450 | fi | |
82eaf560 | 27451 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_lroundl" >&5 |
27452 | echo "${ECHO_T}$ac_cv_lib_m_lroundl" >&6 | |
ef080b63 | 27453 | if test $ac_cv_lib_m_lroundl = yes; then |
27454 | ||
27455 | cat >>confdefs.h <<\_ACEOF | |
27456 | #define HAVE_LROUNDL 1 | |
27457 | _ACEOF | |
27458 | ||
27459 | fi | |
27460 | ||
82eaf560 | 27461 | echo "$as_me:$LINENO: checking for llroundf in -lm" >&5 |
27462 | echo $ECHO_N "checking for llroundf in -lm... $ECHO_C" >&6 | |
ef080b63 | 27463 | if test "${ac_cv_lib_m_llroundf+set}" = set; then |
27464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27465 | else | |
27466 | ac_check_lib_save_LIBS=$LIBS | |
27467 | LIBS="-lm $LIBS" | |
27468 | if test x$gcc_no_link = xyes; then | |
27469 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27470 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27471 | { (exit 1); exit 1; }; } | |
27472 | fi | |
27473 | cat >conftest.$ac_ext <<_ACEOF | |
27474 | /* confdefs.h. */ | |
27475 | _ACEOF | |
27476 | cat confdefs.h >>conftest.$ac_ext | |
27477 | cat >>conftest.$ac_ext <<_ACEOF | |
27478 | /* end confdefs.h. */ | |
27479 | ||
82eaf560 | 27480 | /* Override any gcc2 internal prototype to avoid an error. */ |
ef080b63 | 27481 | #ifdef __cplusplus |
27482 | extern "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 | 27486 | char llroundf (); |
27487 | int | |
27488 | main () | |
27489 | { | |
82eaf560 | 27490 | llroundf (); |
ef080b63 | 27491 | ; |
27492 | return 0; | |
27493 | } | |
27494 | _ACEOF | |
27495 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 27496 | if { (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 |
27518 | else | |
27519 | echo "$as_me: failed program was:" >&5 | |
27520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27521 | ||
82eaf560 | 27522 | ac_cv_lib_m_llroundf=no |
ef080b63 | 27523 | fi |
82eaf560 | 27524 | rm -f conftest.err conftest.$ac_objext \ |
ef080b63 | 27525 | conftest$ac_exeext conftest.$ac_ext |
27526 | LIBS=$ac_check_lib_save_LIBS | |
27527 | fi | |
82eaf560 | 27528 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_llroundf" >&5 |
27529 | echo "${ECHO_T}$ac_cv_lib_m_llroundf" >&6 | |
ef080b63 | 27530 | if test $ac_cv_lib_m_llroundf = yes; then |
27531 | ||
27532 | cat >>confdefs.h <<\_ACEOF | |
27533 | #define HAVE_LLROUNDF 1 | |
27534 | _ACEOF | |
27535 | ||
27536 | fi | |
27537 | ||
82eaf560 | 27538 | echo "$as_me:$LINENO: checking for llround in -lm" >&5 |
27539 | echo $ECHO_N "checking for llround in -lm... $ECHO_C" >&6 | |
ef080b63 | 27540 | if test "${ac_cv_lib_m_llround+set}" = set; then |
27541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27542 | else | |
27543 | ac_check_lib_save_LIBS=$LIBS | |
27544 | LIBS="-lm $LIBS" | |
27545 | if test x$gcc_no_link = xyes; then | |
27546 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27547 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27548 | { (exit 1); exit 1; }; } | |
27549 | fi | |
27550 | cat >conftest.$ac_ext <<_ACEOF | |
27551 | /* confdefs.h. */ | |
27552 | _ACEOF | |
27553 | cat confdefs.h >>conftest.$ac_ext | |
27554 | cat >>conftest.$ac_ext <<_ACEOF | |
27555 | /* end confdefs.h. */ | |
27556 | ||
82eaf560 | 27557 | /* Override any gcc2 internal prototype to avoid an error. */ |
ef080b63 | 27558 | #ifdef __cplusplus |
27559 | extern "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 | 27563 | char llround (); |
27564 | int | |
27565 | main () | |
27566 | { | |
82eaf560 | 27567 | llround (); |
ef080b63 | 27568 | ; |
27569 | return 0; | |
27570 | } | |
27571 | _ACEOF | |
27572 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 27573 | if { (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 |
27595 | else | |
27596 | echo "$as_me: failed program was:" >&5 | |
27597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27598 | ||
82eaf560 | 27599 | ac_cv_lib_m_llround=no |
ef080b63 | 27600 | fi |
82eaf560 | 27601 | rm -f conftest.err conftest.$ac_objext \ |
ef080b63 | 27602 | conftest$ac_exeext conftest.$ac_ext |
27603 | LIBS=$ac_check_lib_save_LIBS | |
27604 | fi | |
82eaf560 | 27605 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_llround" >&5 |
27606 | echo "${ECHO_T}$ac_cv_lib_m_llround" >&6 | |
ef080b63 | 27607 | if test $ac_cv_lib_m_llround = yes; then |
27608 | ||
27609 | cat >>confdefs.h <<\_ACEOF | |
27610 | #define HAVE_LLROUND 1 | |
27611 | _ACEOF | |
27612 | ||
27613 | fi | |
27614 | ||
82eaf560 | 27615 | echo "$as_me:$LINENO: checking for llroundl in -lm" >&5 |
27616 | echo $ECHO_N "checking for llroundl in -lm... $ECHO_C" >&6 | |
ef080b63 | 27617 | if test "${ac_cv_lib_m_llroundl+set}" = set; then |
27618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27619 | else | |
27620 | ac_check_lib_save_LIBS=$LIBS | |
27621 | LIBS="-lm $LIBS" | |
27622 | if test x$gcc_no_link = xyes; then | |
27623 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27624 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27625 | { (exit 1); exit 1; }; } | |
27626 | fi | |
27627 | cat >conftest.$ac_ext <<_ACEOF | |
27628 | /* confdefs.h. */ | |
27629 | _ACEOF | |
27630 | cat confdefs.h >>conftest.$ac_ext | |
27631 | cat >>conftest.$ac_ext <<_ACEOF | |
27632 | /* end confdefs.h. */ | |
27633 | ||
82eaf560 | 27634 | /* Override any gcc2 internal prototype to avoid an error. */ |
ef080b63 | 27635 | #ifdef __cplusplus |
27636 | extern "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 | 27640 | char llroundl (); |
27641 | int | |
27642 | main () | |
27643 | { | |
82eaf560 | 27644 | llroundl (); |
ef080b63 | 27645 | ; |
27646 | return 0; | |
27647 | } | |
27648 | _ACEOF | |
27649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 27650 | if { (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 |
27672 | else | |
27673 | echo "$as_me: failed program was:" >&5 | |
27674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27675 | ||
82eaf560 | 27676 | ac_cv_lib_m_llroundl=no |
ef080b63 | 27677 | fi |
82eaf560 | 27678 | rm -f conftest.err conftest.$ac_objext \ |
ef080b63 | 27679 | conftest$ac_exeext conftest.$ac_ext |
27680 | LIBS=$ac_check_lib_save_LIBS | |
27681 | fi | |
82eaf560 | 27682 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_llroundl" >&5 |
27683 | echo "${ECHO_T}$ac_cv_lib_m_llroundl" >&6 | |
ef080b63 | 27684 | if test $ac_cv_lib_m_llroundl = yes; then |
27685 | ||
27686 | cat >>confdefs.h <<\_ACEOF | |
27687 | #define HAVE_LLROUNDL 1 | |
27688 | _ACEOF | |
27689 | ||
27690 | fi | |
27691 | ||
82eaf560 | 27692 | echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5 |
27693 | echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6 | |
d213114b | 27694 | if test "${ac_cv_lib_m_scalbnf+set}" = set; then |
27695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27696 | else | |
27697 | ac_check_lib_save_LIBS=$LIBS | |
27698 | LIBS="-lm $LIBS" | |
27699 | if test x$gcc_no_link = xyes; then | |
27700 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27701 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27702 | { (exit 1); exit 1; }; } | |
27703 | fi | |
27704 | cat >conftest.$ac_ext <<_ACEOF | |
27705 | /* confdefs.h. */ | |
27706 | _ACEOF | |
27707 | cat confdefs.h >>conftest.$ac_ext | |
27708 | cat >>conftest.$ac_ext <<_ACEOF | |
27709 | /* end confdefs.h. */ | |
27710 | ||
82eaf560 | 27711 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27712 | #ifdef __cplusplus |
27713 | extern "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 | 27717 | char scalbnf (); |
27718 | int | |
27719 | main () | |
27720 | { | |
82eaf560 | 27721 | scalbnf (); |
d213114b | 27722 | ; |
27723 | return 0; | |
27724 | } | |
27725 | _ACEOF | |
27726 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 27727 | if { (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 |
27749 | else | |
27750 | echo "$as_me: failed program was:" >&5 | |
27751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27752 | ||
82eaf560 | 27753 | ac_cv_lib_m_scalbnf=no |
d213114b | 27754 | fi |
82eaf560 | 27755 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27756 | conftest$ac_exeext conftest.$ac_ext |
27757 | LIBS=$ac_check_lib_save_LIBS | |
27758 | fi | |
82eaf560 | 27759 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5 |
27760 | echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6 | |
d213114b | 27761 | if test $ac_cv_lib_m_scalbnf = yes; then |
27762 | ||
27763 | cat >>confdefs.h <<\_ACEOF | |
27764 | #define HAVE_SCALBNF 1 | |
27765 | _ACEOF | |
27766 | ||
27767 | fi | |
27768 | ||
82eaf560 | 27769 | echo "$as_me:$LINENO: checking for scalbn in -lm" >&5 |
27770 | echo $ECHO_N "checking for scalbn in -lm... $ECHO_C" >&6 | |
d213114b | 27771 | if test "${ac_cv_lib_m_scalbn+set}" = set; then |
27772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27773 | else | |
27774 | ac_check_lib_save_LIBS=$LIBS | |
27775 | LIBS="-lm $LIBS" | |
27776 | if test x$gcc_no_link = xyes; then | |
27777 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27778 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27779 | { (exit 1); exit 1; }; } | |
27780 | fi | |
27781 | cat >conftest.$ac_ext <<_ACEOF | |
27782 | /* confdefs.h. */ | |
27783 | _ACEOF | |
27784 | cat confdefs.h >>conftest.$ac_ext | |
27785 | cat >>conftest.$ac_ext <<_ACEOF | |
27786 | /* end confdefs.h. */ | |
27787 | ||
82eaf560 | 27788 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27789 | #ifdef __cplusplus |
27790 | extern "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 | 27794 | char scalbn (); |
27795 | int | |
27796 | main () | |
27797 | { | |
82eaf560 | 27798 | scalbn (); |
d213114b | 27799 | ; |
27800 | return 0; | |
27801 | } | |
27802 | _ACEOF | |
27803 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 27804 | if { (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 |
27826 | else | |
27827 | echo "$as_me: failed program was:" >&5 | |
27828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27829 | ||
82eaf560 | 27830 | ac_cv_lib_m_scalbn=no |
d213114b | 27831 | fi |
82eaf560 | 27832 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27833 | conftest$ac_exeext conftest.$ac_ext |
27834 | LIBS=$ac_check_lib_save_LIBS | |
27835 | fi | |
82eaf560 | 27836 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbn" >&5 |
27837 | echo "${ECHO_T}$ac_cv_lib_m_scalbn" >&6 | |
d213114b | 27838 | if test $ac_cv_lib_m_scalbn = yes; then |
27839 | ||
27840 | cat >>confdefs.h <<\_ACEOF | |
27841 | #define HAVE_SCALBN 1 | |
27842 | _ACEOF | |
27843 | ||
27844 | fi | |
27845 | ||
82eaf560 | 27846 | echo "$as_me:$LINENO: checking for scalbnl in -lm" >&5 |
27847 | echo $ECHO_N "checking for scalbnl in -lm... $ECHO_C" >&6 | |
d213114b | 27848 | if test "${ac_cv_lib_m_scalbnl+set}" = set; then |
27849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27850 | else | |
27851 | ac_check_lib_save_LIBS=$LIBS | |
27852 | LIBS="-lm $LIBS" | |
27853 | if test x$gcc_no_link = xyes; then | |
27854 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27855 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27856 | { (exit 1); exit 1; }; } | |
27857 | fi | |
27858 | cat >conftest.$ac_ext <<_ACEOF | |
27859 | /* confdefs.h. */ | |
27860 | _ACEOF | |
27861 | cat confdefs.h >>conftest.$ac_ext | |
27862 | cat >>conftest.$ac_ext <<_ACEOF | |
27863 | /* end confdefs.h. */ | |
27864 | ||
82eaf560 | 27865 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27866 | #ifdef __cplusplus |
27867 | extern "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 | 27871 | char scalbnl (); |
27872 | int | |
27873 | main () | |
27874 | { | |
82eaf560 | 27875 | scalbnl (); |
d213114b | 27876 | ; |
27877 | return 0; | |
27878 | } | |
27879 | _ACEOF | |
27880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 27881 | if { (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 |
27903 | else | |
27904 | echo "$as_me: failed program was:" >&5 | |
27905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27906 | ||
82eaf560 | 27907 | ac_cv_lib_m_scalbnl=no |
d213114b | 27908 | fi |
82eaf560 | 27909 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27910 | conftest$ac_exeext conftest.$ac_ext |
27911 | LIBS=$ac_check_lib_save_LIBS | |
27912 | fi | |
82eaf560 | 27913 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnl" >&5 |
27914 | echo "${ECHO_T}$ac_cv_lib_m_scalbnl" >&6 | |
d213114b | 27915 | if test $ac_cv_lib_m_scalbnl = yes; then |
27916 | ||
27917 | cat >>confdefs.h <<\_ACEOF | |
27918 | #define HAVE_SCALBNL 1 | |
27919 | _ACEOF | |
27920 | ||
27921 | fi | |
27922 | ||
82eaf560 | 27923 | echo "$as_me:$LINENO: checking for sinf in -lm" >&5 |
27924 | echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6 | |
d213114b | 27925 | if test "${ac_cv_lib_m_sinf+set}" = set; then |
27926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27927 | else | |
27928 | ac_check_lib_save_LIBS=$LIBS | |
27929 | LIBS="-lm $LIBS" | |
27930 | if test x$gcc_no_link = xyes; then | |
27931 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
27932 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
27933 | { (exit 1); exit 1; }; } | |
27934 | fi | |
27935 | cat >conftest.$ac_ext <<_ACEOF | |
27936 | /* confdefs.h. */ | |
27937 | _ACEOF | |
27938 | cat confdefs.h >>conftest.$ac_ext | |
27939 | cat >>conftest.$ac_ext <<_ACEOF | |
27940 | /* end confdefs.h. */ | |
27941 | ||
82eaf560 | 27942 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 27943 | #ifdef __cplusplus |
27944 | extern "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 | 27948 | char sinf (); |
27949 | int | |
27950 | main () | |
27951 | { | |
82eaf560 | 27952 | sinf (); |
d213114b | 27953 | ; |
27954 | return 0; | |
27955 | } | |
27956 | _ACEOF | |
27957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 27958 | if { (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 |
27980 | else | |
27981 | echo "$as_me: failed program was:" >&5 | |
27982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27983 | ||
82eaf560 | 27984 | ac_cv_lib_m_sinf=no |
d213114b | 27985 | fi |
82eaf560 | 27986 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 27987 | conftest$ac_exeext conftest.$ac_ext |
27988 | LIBS=$ac_check_lib_save_LIBS | |
27989 | fi | |
82eaf560 | 27990 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5 |
27991 | echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6 | |
d213114b | 27992 | if test $ac_cv_lib_m_sinf = yes; then |
27993 | ||
27994 | cat >>confdefs.h <<\_ACEOF | |
27995 | #define HAVE_SINF 1 | |
27996 | _ACEOF | |
27997 | ||
27998 | fi | |
27999 | ||
82eaf560 | 28000 | echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
28001 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 | |
d213114b | 28002 | if test "${ac_cv_lib_m_sin+set}" = set; then |
28003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28004 | else | |
28005 | ac_check_lib_save_LIBS=$LIBS | |
28006 | LIBS="-lm $LIBS" | |
28007 | if test x$gcc_no_link = xyes; then | |
28008 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28009 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28010 | { (exit 1); exit 1; }; } | |
28011 | fi | |
28012 | cat >conftest.$ac_ext <<_ACEOF | |
28013 | /* confdefs.h. */ | |
28014 | _ACEOF | |
28015 | cat confdefs.h >>conftest.$ac_ext | |
28016 | cat >>conftest.$ac_ext <<_ACEOF | |
28017 | /* end confdefs.h. */ | |
28018 | ||
82eaf560 | 28019 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28020 | #ifdef __cplusplus |
28021 | extern "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 | 28025 | char sin (); |
28026 | int | |
28027 | main () | |
28028 | { | |
82eaf560 | 28029 | sin (); |
d213114b | 28030 | ; |
28031 | return 0; | |
28032 | } | |
28033 | _ACEOF | |
28034 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 28035 | if { (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 |
28057 | else | |
28058 | echo "$as_me: failed program was:" >&5 | |
28059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28060 | ||
82eaf560 | 28061 | ac_cv_lib_m_sin=no |
d213114b | 28062 | fi |
82eaf560 | 28063 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28064 | conftest$ac_exeext conftest.$ac_ext |
28065 | LIBS=$ac_check_lib_save_LIBS | |
28066 | fi | |
82eaf560 | 28067 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
28068 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6 | |
d213114b | 28069 | if test $ac_cv_lib_m_sin = yes; then |
28070 | ||
28071 | cat >>confdefs.h <<\_ACEOF | |
28072 | #define HAVE_SIN 1 | |
28073 | _ACEOF | |
28074 | ||
28075 | fi | |
28076 | ||
82eaf560 | 28077 | echo "$as_me:$LINENO: checking for sinl in -lm" >&5 |
28078 | echo $ECHO_N "checking for sinl in -lm... $ECHO_C" >&6 | |
d213114b | 28079 | if test "${ac_cv_lib_m_sinl+set}" = set; then |
28080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28081 | else | |
28082 | ac_check_lib_save_LIBS=$LIBS | |
28083 | LIBS="-lm $LIBS" | |
28084 | if test x$gcc_no_link = xyes; then | |
28085 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28086 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28087 | { (exit 1); exit 1; }; } | |
28088 | fi | |
28089 | cat >conftest.$ac_ext <<_ACEOF | |
28090 | /* confdefs.h. */ | |
28091 | _ACEOF | |
28092 | cat confdefs.h >>conftest.$ac_ext | |
28093 | cat >>conftest.$ac_ext <<_ACEOF | |
28094 | /* end confdefs.h. */ | |
28095 | ||
82eaf560 | 28096 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28097 | #ifdef __cplusplus |
28098 | extern "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 | 28102 | char sinl (); |
28103 | int | |
28104 | main () | |
28105 | { | |
82eaf560 | 28106 | sinl (); |
d213114b | 28107 | ; |
28108 | return 0; | |
28109 | } | |
28110 | _ACEOF | |
28111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 28112 | if { (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 |
28134 | else | |
28135 | echo "$as_me: failed program was:" >&5 | |
28136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28137 | ||
82eaf560 | 28138 | ac_cv_lib_m_sinl=no |
d213114b | 28139 | fi |
82eaf560 | 28140 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28141 | conftest$ac_exeext conftest.$ac_ext |
28142 | LIBS=$ac_check_lib_save_LIBS | |
28143 | fi | |
82eaf560 | 28144 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinl" >&5 |
28145 | echo "${ECHO_T}$ac_cv_lib_m_sinl" >&6 | |
d213114b | 28146 | if test $ac_cv_lib_m_sinl = yes; then |
28147 | ||
28148 | cat >>confdefs.h <<\_ACEOF | |
28149 | #define HAVE_SINL 1 | |
28150 | _ACEOF | |
28151 | ||
28152 | fi | |
28153 | ||
82eaf560 | 28154 | echo "$as_me:$LINENO: checking for csinf in -lm" >&5 |
28155 | echo $ECHO_N "checking for csinf in -lm... $ECHO_C" >&6 | |
d213114b | 28156 | if test "${ac_cv_lib_m_csinf+set}" = set; then |
28157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28158 | else | |
28159 | ac_check_lib_save_LIBS=$LIBS | |
28160 | LIBS="-lm $LIBS" | |
28161 | if test x$gcc_no_link = xyes; then | |
28162 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28163 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28164 | { (exit 1); exit 1; }; } | |
28165 | fi | |
28166 | cat >conftest.$ac_ext <<_ACEOF | |
28167 | /* confdefs.h. */ | |
28168 | _ACEOF | |
28169 | cat confdefs.h >>conftest.$ac_ext | |
28170 | cat >>conftest.$ac_ext <<_ACEOF | |
28171 | /* end confdefs.h. */ | |
28172 | ||
82eaf560 | 28173 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28174 | #ifdef __cplusplus |
28175 | extern "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 | 28179 | char csinf (); |
28180 | int | |
28181 | main () | |
28182 | { | |
82eaf560 | 28183 | csinf (); |
d213114b | 28184 | ; |
28185 | return 0; | |
28186 | } | |
28187 | _ACEOF | |
28188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 28189 | if { (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 |
28211 | else | |
28212 | echo "$as_me: failed program was:" >&5 | |
28213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28214 | ||
82eaf560 | 28215 | ac_cv_lib_m_csinf=no |
d213114b | 28216 | fi |
82eaf560 | 28217 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28218 | conftest$ac_exeext conftest.$ac_ext |
28219 | LIBS=$ac_check_lib_save_LIBS | |
28220 | fi | |
82eaf560 | 28221 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinf" >&5 |
28222 | echo "${ECHO_T}$ac_cv_lib_m_csinf" >&6 | |
d213114b | 28223 | if test $ac_cv_lib_m_csinf = yes; then |
28224 | ||
28225 | cat >>confdefs.h <<\_ACEOF | |
28226 | #define HAVE_CSINF 1 | |
28227 | _ACEOF | |
28228 | ||
28229 | fi | |
28230 | ||
82eaf560 | 28231 | echo "$as_me:$LINENO: checking for csin in -lm" >&5 |
28232 | echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6 | |
d213114b | 28233 | if test "${ac_cv_lib_m_csin+set}" = set; then |
28234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28235 | else | |
28236 | ac_check_lib_save_LIBS=$LIBS | |
28237 | LIBS="-lm $LIBS" | |
28238 | if test x$gcc_no_link = xyes; then | |
28239 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28240 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28241 | { (exit 1); exit 1; }; } | |
28242 | fi | |
28243 | cat >conftest.$ac_ext <<_ACEOF | |
28244 | /* confdefs.h. */ | |
28245 | _ACEOF | |
28246 | cat confdefs.h >>conftest.$ac_ext | |
28247 | cat >>conftest.$ac_ext <<_ACEOF | |
28248 | /* end confdefs.h. */ | |
28249 | ||
82eaf560 | 28250 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28251 | #ifdef __cplusplus |
28252 | extern "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 | 28256 | char csin (); |
28257 | int | |
28258 | main () | |
28259 | { | |
82eaf560 | 28260 | csin (); |
d213114b | 28261 | ; |
28262 | return 0; | |
28263 | } | |
28264 | _ACEOF | |
28265 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 28266 | if { (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 |
28288 | else | |
28289 | echo "$as_me: failed program was:" >&5 | |
28290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28291 | ||
82eaf560 | 28292 | ac_cv_lib_m_csin=no |
d213114b | 28293 | fi |
82eaf560 | 28294 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28295 | conftest$ac_exeext conftest.$ac_ext |
28296 | LIBS=$ac_check_lib_save_LIBS | |
28297 | fi | |
82eaf560 | 28298 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5 |
28299 | echo "${ECHO_T}$ac_cv_lib_m_csin" >&6 | |
d213114b | 28300 | if test $ac_cv_lib_m_csin = yes; then |
28301 | ||
28302 | cat >>confdefs.h <<\_ACEOF | |
28303 | #define HAVE_CSIN 1 | |
28304 | _ACEOF | |
28305 | ||
28306 | fi | |
28307 | ||
82eaf560 | 28308 | echo "$as_me:$LINENO: checking for csinl in -lm" >&5 |
28309 | echo $ECHO_N "checking for csinl in -lm... $ECHO_C" >&6 | |
d213114b | 28310 | if test "${ac_cv_lib_m_csinl+set}" = set; then |
28311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28312 | else | |
28313 | ac_check_lib_save_LIBS=$LIBS | |
28314 | LIBS="-lm $LIBS" | |
28315 | if test x$gcc_no_link = xyes; then | |
28316 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28317 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28318 | { (exit 1); exit 1; }; } | |
28319 | fi | |
28320 | cat >conftest.$ac_ext <<_ACEOF | |
28321 | /* confdefs.h. */ | |
28322 | _ACEOF | |
28323 | cat confdefs.h >>conftest.$ac_ext | |
28324 | cat >>conftest.$ac_ext <<_ACEOF | |
28325 | /* end confdefs.h. */ | |
28326 | ||
82eaf560 | 28327 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28328 | #ifdef __cplusplus |
28329 | extern "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 | 28333 | char csinl (); |
28334 | int | |
28335 | main () | |
28336 | { | |
82eaf560 | 28337 | csinl (); |
d213114b | 28338 | ; |
28339 | return 0; | |
28340 | } | |
28341 | _ACEOF | |
28342 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 28343 | if { (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 |
28365 | else | |
28366 | echo "$as_me: failed program was:" >&5 | |
28367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28368 | ||
82eaf560 | 28369 | ac_cv_lib_m_csinl=no |
d213114b | 28370 | fi |
82eaf560 | 28371 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28372 | conftest$ac_exeext conftest.$ac_ext |
28373 | LIBS=$ac_check_lib_save_LIBS | |
28374 | fi | |
82eaf560 | 28375 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinl" >&5 |
28376 | echo "${ECHO_T}$ac_cv_lib_m_csinl" >&6 | |
d213114b | 28377 | if test $ac_cv_lib_m_csinl = yes; then |
28378 | ||
28379 | cat >>confdefs.h <<\_ACEOF | |
28380 | #define HAVE_CSINL 1 | |
28381 | _ACEOF | |
28382 | ||
28383 | fi | |
28384 | ||
82eaf560 | 28385 | echo "$as_me:$LINENO: checking for sinhf in -lm" >&5 |
28386 | echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6 | |
d213114b | 28387 | if test "${ac_cv_lib_m_sinhf+set}" = set; then |
28388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28389 | else | |
28390 | ac_check_lib_save_LIBS=$LIBS | |
28391 | LIBS="-lm $LIBS" | |
28392 | if test x$gcc_no_link = xyes; then | |
28393 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28394 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28395 | { (exit 1); exit 1; }; } | |
28396 | fi | |
28397 | cat >conftest.$ac_ext <<_ACEOF | |
28398 | /* confdefs.h. */ | |
28399 | _ACEOF | |
28400 | cat confdefs.h >>conftest.$ac_ext | |
28401 | cat >>conftest.$ac_ext <<_ACEOF | |
28402 | /* end confdefs.h. */ | |
28403 | ||
82eaf560 | 28404 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28405 | #ifdef __cplusplus |
28406 | extern "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 | 28410 | char sinhf (); |
28411 | int | |
28412 | main () | |
28413 | { | |
82eaf560 | 28414 | sinhf (); |
d213114b | 28415 | ; |
28416 | return 0; | |
28417 | } | |
28418 | _ACEOF | |
28419 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 28420 | if { (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 |
28442 | else | |
28443 | echo "$as_me: failed program was:" >&5 | |
28444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28445 | ||
82eaf560 | 28446 | ac_cv_lib_m_sinhf=no |
d213114b | 28447 | fi |
82eaf560 | 28448 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28449 | conftest$ac_exeext conftest.$ac_ext |
28450 | LIBS=$ac_check_lib_save_LIBS | |
28451 | fi | |
82eaf560 | 28452 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5 |
28453 | echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6 | |
d213114b | 28454 | if test $ac_cv_lib_m_sinhf = yes; then |
28455 | ||
28456 | cat >>confdefs.h <<\_ACEOF | |
28457 | #define HAVE_SINHF 1 | |
28458 | _ACEOF | |
28459 | ||
28460 | fi | |
28461 | ||
82eaf560 | 28462 | echo "$as_me:$LINENO: checking for sinh in -lm" >&5 |
28463 | echo $ECHO_N "checking for sinh in -lm... $ECHO_C" >&6 | |
d213114b | 28464 | if test "${ac_cv_lib_m_sinh+set}" = set; then |
28465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28466 | else | |
28467 | ac_check_lib_save_LIBS=$LIBS | |
28468 | LIBS="-lm $LIBS" | |
28469 | if test x$gcc_no_link = xyes; then | |
28470 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28471 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28472 | { (exit 1); exit 1; }; } | |
28473 | fi | |
28474 | cat >conftest.$ac_ext <<_ACEOF | |
28475 | /* confdefs.h. */ | |
28476 | _ACEOF | |
28477 | cat confdefs.h >>conftest.$ac_ext | |
28478 | cat >>conftest.$ac_ext <<_ACEOF | |
28479 | /* end confdefs.h. */ | |
28480 | ||
82eaf560 | 28481 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28482 | #ifdef __cplusplus |
28483 | extern "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 | 28487 | char sinh (); |
28488 | int | |
28489 | main () | |
28490 | { | |
82eaf560 | 28491 | sinh (); |
d213114b | 28492 | ; |
28493 | return 0; | |
28494 | } | |
28495 | _ACEOF | |
28496 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 28497 | if { (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 |
28519 | else | |
28520 | echo "$as_me: failed program was:" >&5 | |
28521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28522 | ||
82eaf560 | 28523 | ac_cv_lib_m_sinh=no |
d213114b | 28524 | fi |
82eaf560 | 28525 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28526 | conftest$ac_exeext conftest.$ac_ext |
28527 | LIBS=$ac_check_lib_save_LIBS | |
28528 | fi | |
82eaf560 | 28529 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinh" >&5 |
28530 | echo "${ECHO_T}$ac_cv_lib_m_sinh" >&6 | |
d213114b | 28531 | if test $ac_cv_lib_m_sinh = yes; then |
28532 | ||
28533 | cat >>confdefs.h <<\_ACEOF | |
28534 | #define HAVE_SINH 1 | |
28535 | _ACEOF | |
28536 | ||
28537 | fi | |
28538 | ||
82eaf560 | 28539 | echo "$as_me:$LINENO: checking for sinhl in -lm" >&5 |
28540 | echo $ECHO_N "checking for sinhl in -lm... $ECHO_C" >&6 | |
d213114b | 28541 | if test "${ac_cv_lib_m_sinhl+set}" = set; then |
28542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28543 | else | |
28544 | ac_check_lib_save_LIBS=$LIBS | |
28545 | LIBS="-lm $LIBS" | |
28546 | if test x$gcc_no_link = xyes; then | |
28547 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28548 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28549 | { (exit 1); exit 1; }; } | |
28550 | fi | |
28551 | cat >conftest.$ac_ext <<_ACEOF | |
28552 | /* confdefs.h. */ | |
28553 | _ACEOF | |
28554 | cat confdefs.h >>conftest.$ac_ext | |
28555 | cat >>conftest.$ac_ext <<_ACEOF | |
28556 | /* end confdefs.h. */ | |
28557 | ||
82eaf560 | 28558 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28559 | #ifdef __cplusplus |
28560 | extern "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 | 28564 | char sinhl (); |
28565 | int | |
28566 | main () | |
28567 | { | |
82eaf560 | 28568 | sinhl (); |
d213114b | 28569 | ; |
28570 | return 0; | |
28571 | } | |
28572 | _ACEOF | |
28573 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 28574 | if { (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 |
28596 | else | |
28597 | echo "$as_me: failed program was:" >&5 | |
28598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28599 | ||
82eaf560 | 28600 | ac_cv_lib_m_sinhl=no |
d213114b | 28601 | fi |
82eaf560 | 28602 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28603 | conftest$ac_exeext conftest.$ac_ext |
28604 | LIBS=$ac_check_lib_save_LIBS | |
28605 | fi | |
82eaf560 | 28606 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhl" >&5 |
28607 | echo "${ECHO_T}$ac_cv_lib_m_sinhl" >&6 | |
d213114b | 28608 | if test $ac_cv_lib_m_sinhl = yes; then |
28609 | ||
28610 | cat >>confdefs.h <<\_ACEOF | |
28611 | #define HAVE_SINHL 1 | |
28612 | _ACEOF | |
28613 | ||
28614 | fi | |
28615 | ||
82eaf560 | 28616 | echo "$as_me:$LINENO: checking for csinhf in -lm" >&5 |
28617 | echo $ECHO_N "checking for csinhf in -lm... $ECHO_C" >&6 | |
d213114b | 28618 | if test "${ac_cv_lib_m_csinhf+set}" = set; then |
28619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28620 | else | |
28621 | ac_check_lib_save_LIBS=$LIBS | |
28622 | LIBS="-lm $LIBS" | |
28623 | if test x$gcc_no_link = xyes; then | |
28624 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28625 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28626 | { (exit 1); exit 1; }; } | |
28627 | fi | |
28628 | cat >conftest.$ac_ext <<_ACEOF | |
28629 | /* confdefs.h. */ | |
28630 | _ACEOF | |
28631 | cat confdefs.h >>conftest.$ac_ext | |
28632 | cat >>conftest.$ac_ext <<_ACEOF | |
28633 | /* end confdefs.h. */ | |
28634 | ||
82eaf560 | 28635 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28636 | #ifdef __cplusplus |
28637 | extern "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 | 28641 | char csinhf (); |
28642 | int | |
28643 | main () | |
28644 | { | |
82eaf560 | 28645 | csinhf (); |
d213114b | 28646 | ; |
28647 | return 0; | |
28648 | } | |
28649 | _ACEOF | |
28650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 28651 | if { (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 |
28673 | else | |
28674 | echo "$as_me: failed program was:" >&5 | |
28675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28676 | ||
82eaf560 | 28677 | ac_cv_lib_m_csinhf=no |
d213114b | 28678 | fi |
82eaf560 | 28679 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28680 | conftest$ac_exeext conftest.$ac_ext |
28681 | LIBS=$ac_check_lib_save_LIBS | |
28682 | fi | |
82eaf560 | 28683 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinhf" >&5 |
28684 | echo "${ECHO_T}$ac_cv_lib_m_csinhf" >&6 | |
d213114b | 28685 | if test $ac_cv_lib_m_csinhf = yes; then |
28686 | ||
28687 | cat >>confdefs.h <<\_ACEOF | |
28688 | #define HAVE_CSINHF 1 | |
28689 | _ACEOF | |
28690 | ||
28691 | fi | |
28692 | ||
82eaf560 | 28693 | echo "$as_me:$LINENO: checking for csinh in -lm" >&5 |
28694 | echo $ECHO_N "checking for csinh in -lm... $ECHO_C" >&6 | |
d213114b | 28695 | if test "${ac_cv_lib_m_csinh+set}" = set; then |
28696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28697 | else | |
28698 | ac_check_lib_save_LIBS=$LIBS | |
28699 | LIBS="-lm $LIBS" | |
28700 | if test x$gcc_no_link = xyes; then | |
28701 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28702 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28703 | { (exit 1); exit 1; }; } | |
28704 | fi | |
28705 | cat >conftest.$ac_ext <<_ACEOF | |
28706 | /* confdefs.h. */ | |
28707 | _ACEOF | |
28708 | cat confdefs.h >>conftest.$ac_ext | |
28709 | cat >>conftest.$ac_ext <<_ACEOF | |
28710 | /* end confdefs.h. */ | |
28711 | ||
82eaf560 | 28712 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28713 | #ifdef __cplusplus |
28714 | extern "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 | 28718 | char csinh (); |
28719 | int | |
28720 | main () | |
28721 | { | |
82eaf560 | 28722 | csinh (); |
d213114b | 28723 | ; |
28724 | return 0; | |
28725 | } | |
28726 | _ACEOF | |
28727 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 28728 | if { (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 |
28750 | else | |
28751 | echo "$as_me: failed program was:" >&5 | |
28752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28753 | ||
82eaf560 | 28754 | ac_cv_lib_m_csinh=no |
d213114b | 28755 | fi |
82eaf560 | 28756 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28757 | conftest$ac_exeext conftest.$ac_ext |
28758 | LIBS=$ac_check_lib_save_LIBS | |
28759 | fi | |
82eaf560 | 28760 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinh" >&5 |
28761 | echo "${ECHO_T}$ac_cv_lib_m_csinh" >&6 | |
d213114b | 28762 | if test $ac_cv_lib_m_csinh = yes; then |
28763 | ||
28764 | cat >>confdefs.h <<\_ACEOF | |
28765 | #define HAVE_CSINH 1 | |
28766 | _ACEOF | |
28767 | ||
28768 | fi | |
28769 | ||
82eaf560 | 28770 | echo "$as_me:$LINENO: checking for csinhl in -lm" >&5 |
28771 | echo $ECHO_N "checking for csinhl in -lm... $ECHO_C" >&6 | |
d213114b | 28772 | if test "${ac_cv_lib_m_csinhl+set}" = set; then |
28773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28774 | else | |
28775 | ac_check_lib_save_LIBS=$LIBS | |
28776 | LIBS="-lm $LIBS" | |
28777 | if test x$gcc_no_link = xyes; then | |
28778 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28779 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28780 | { (exit 1); exit 1; }; } | |
28781 | fi | |
28782 | cat >conftest.$ac_ext <<_ACEOF | |
28783 | /* confdefs.h. */ | |
28784 | _ACEOF | |
28785 | cat confdefs.h >>conftest.$ac_ext | |
28786 | cat >>conftest.$ac_ext <<_ACEOF | |
28787 | /* end confdefs.h. */ | |
28788 | ||
82eaf560 | 28789 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28790 | #ifdef __cplusplus |
28791 | extern "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 | 28795 | char csinhl (); |
28796 | int | |
28797 | main () | |
28798 | { | |
82eaf560 | 28799 | csinhl (); |
d213114b | 28800 | ; |
28801 | return 0; | |
28802 | } | |
28803 | _ACEOF | |
28804 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 28805 | if { (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 |
28827 | else | |
28828 | echo "$as_me: failed program was:" >&5 | |
28829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28830 | ||
82eaf560 | 28831 | ac_cv_lib_m_csinhl=no |
d213114b | 28832 | fi |
82eaf560 | 28833 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28834 | conftest$ac_exeext conftest.$ac_ext |
28835 | LIBS=$ac_check_lib_save_LIBS | |
28836 | fi | |
82eaf560 | 28837 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinhl" >&5 |
28838 | echo "${ECHO_T}$ac_cv_lib_m_csinhl" >&6 | |
d213114b | 28839 | if test $ac_cv_lib_m_csinhl = yes; then |
28840 | ||
28841 | cat >>confdefs.h <<\_ACEOF | |
28842 | #define HAVE_CSINHL 1 | |
28843 | _ACEOF | |
28844 | ||
28845 | fi | |
28846 | ||
82eaf560 | 28847 | echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5 |
28848 | echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6 | |
d213114b | 28849 | if test "${ac_cv_lib_m_sqrtf+set}" = set; then |
28850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28851 | else | |
28852 | ac_check_lib_save_LIBS=$LIBS | |
28853 | LIBS="-lm $LIBS" | |
28854 | if test x$gcc_no_link = xyes; then | |
28855 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28856 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28857 | { (exit 1); exit 1; }; } | |
28858 | fi | |
28859 | cat >conftest.$ac_ext <<_ACEOF | |
28860 | /* confdefs.h. */ | |
28861 | _ACEOF | |
28862 | cat confdefs.h >>conftest.$ac_ext | |
28863 | cat >>conftest.$ac_ext <<_ACEOF | |
28864 | /* end confdefs.h. */ | |
28865 | ||
82eaf560 | 28866 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28867 | #ifdef __cplusplus |
28868 | extern "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 | 28872 | char sqrtf (); |
28873 | int | |
28874 | main () | |
28875 | { | |
82eaf560 | 28876 | sqrtf (); |
d213114b | 28877 | ; |
28878 | return 0; | |
28879 | } | |
28880 | _ACEOF | |
28881 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 28882 | if { (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 |
28904 | else | |
28905 | echo "$as_me: failed program was:" >&5 | |
28906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28907 | ||
82eaf560 | 28908 | ac_cv_lib_m_sqrtf=no |
d213114b | 28909 | fi |
82eaf560 | 28910 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28911 | conftest$ac_exeext conftest.$ac_ext |
28912 | LIBS=$ac_check_lib_save_LIBS | |
28913 | fi | |
82eaf560 | 28914 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5 |
28915 | echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6 | |
d213114b | 28916 | if test $ac_cv_lib_m_sqrtf = yes; then |
28917 | ||
28918 | cat >>confdefs.h <<\_ACEOF | |
28919 | #define HAVE_SQRTF 1 | |
28920 | _ACEOF | |
28921 | ||
28922 | fi | |
28923 | ||
82eaf560 | 28924 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
28925 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 | |
d213114b | 28926 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
28927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28928 | else | |
28929 | ac_check_lib_save_LIBS=$LIBS | |
28930 | LIBS="-lm $LIBS" | |
28931 | if test x$gcc_no_link = xyes; then | |
28932 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
28933 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
28934 | { (exit 1); exit 1; }; } | |
28935 | fi | |
28936 | cat >conftest.$ac_ext <<_ACEOF | |
28937 | /* confdefs.h. */ | |
28938 | _ACEOF | |
28939 | cat confdefs.h >>conftest.$ac_ext | |
28940 | cat >>conftest.$ac_ext <<_ACEOF | |
28941 | /* end confdefs.h. */ | |
28942 | ||
82eaf560 | 28943 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 28944 | #ifdef __cplusplus |
28945 | extern "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 | 28949 | char sqrt (); |
28950 | int | |
28951 | main () | |
28952 | { | |
82eaf560 | 28953 | sqrt (); |
d213114b | 28954 | ; |
28955 | return 0; | |
28956 | } | |
28957 | _ACEOF | |
28958 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 28959 | if { (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 |
28981 | else | |
28982 | echo "$as_me: failed program was:" >&5 | |
28983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28984 | ||
82eaf560 | 28985 | ac_cv_lib_m_sqrt=no |
d213114b | 28986 | fi |
82eaf560 | 28987 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 28988 | conftest$ac_exeext conftest.$ac_ext |
28989 | LIBS=$ac_check_lib_save_LIBS | |
28990 | fi | |
82eaf560 | 28991 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
28992 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 | |
d213114b | 28993 | if test $ac_cv_lib_m_sqrt = yes; then |
28994 | ||
28995 | cat >>confdefs.h <<\_ACEOF | |
28996 | #define HAVE_SQRT 1 | |
28997 | _ACEOF | |
28998 | ||
28999 | fi | |
29000 | ||
82eaf560 | 29001 | echo "$as_me:$LINENO: checking for sqrtl in -lm" >&5 |
29002 | echo $ECHO_N "checking for sqrtl in -lm... $ECHO_C" >&6 | |
d213114b | 29003 | if test "${ac_cv_lib_m_sqrtl+set}" = set; then |
29004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29005 | else | |
29006 | ac_check_lib_save_LIBS=$LIBS | |
29007 | LIBS="-lm $LIBS" | |
29008 | if test x$gcc_no_link = xyes; then | |
29009 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29010 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29011 | { (exit 1); exit 1; }; } | |
29012 | fi | |
29013 | cat >conftest.$ac_ext <<_ACEOF | |
29014 | /* confdefs.h. */ | |
29015 | _ACEOF | |
29016 | cat confdefs.h >>conftest.$ac_ext | |
29017 | cat >>conftest.$ac_ext <<_ACEOF | |
29018 | /* end confdefs.h. */ | |
29019 | ||
82eaf560 | 29020 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29021 | #ifdef __cplusplus |
29022 | extern "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 | 29026 | char sqrtl (); |
29027 | int | |
29028 | main () | |
29029 | { | |
82eaf560 | 29030 | sqrtl (); |
d213114b | 29031 | ; |
29032 | return 0; | |
29033 | } | |
29034 | _ACEOF | |
29035 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 29036 | if { (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 |
29058 | else | |
29059 | echo "$as_me: failed program was:" >&5 | |
29060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29061 | ||
82eaf560 | 29062 | ac_cv_lib_m_sqrtl=no |
d213114b | 29063 | fi |
82eaf560 | 29064 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29065 | conftest$ac_exeext conftest.$ac_ext |
29066 | LIBS=$ac_check_lib_save_LIBS | |
29067 | fi | |
82eaf560 | 29068 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtl" >&5 |
29069 | echo "${ECHO_T}$ac_cv_lib_m_sqrtl" >&6 | |
d213114b | 29070 | if test $ac_cv_lib_m_sqrtl = yes; then |
29071 | ||
29072 | cat >>confdefs.h <<\_ACEOF | |
29073 | #define HAVE_SQRTL 1 | |
29074 | _ACEOF | |
29075 | ||
29076 | fi | |
29077 | ||
82eaf560 | 29078 | echo "$as_me:$LINENO: checking for csqrtf in -lm" >&5 |
29079 | echo $ECHO_N "checking for csqrtf in -lm... $ECHO_C" >&6 | |
d213114b | 29080 | if test "${ac_cv_lib_m_csqrtf+set}" = set; then |
29081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29082 | else | |
29083 | ac_check_lib_save_LIBS=$LIBS | |
29084 | LIBS="-lm $LIBS" | |
29085 | if test x$gcc_no_link = xyes; then | |
29086 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29087 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29088 | { (exit 1); exit 1; }; } | |
29089 | fi | |
29090 | cat >conftest.$ac_ext <<_ACEOF | |
29091 | /* confdefs.h. */ | |
29092 | _ACEOF | |
29093 | cat confdefs.h >>conftest.$ac_ext | |
29094 | cat >>conftest.$ac_ext <<_ACEOF | |
29095 | /* end confdefs.h. */ | |
29096 | ||
82eaf560 | 29097 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29098 | #ifdef __cplusplus |
29099 | extern "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 | 29103 | char csqrtf (); |
29104 | int | |
29105 | main () | |
29106 | { | |
82eaf560 | 29107 | csqrtf (); |
d213114b | 29108 | ; |
29109 | return 0; | |
29110 | } | |
29111 | _ACEOF | |
29112 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 29113 | if { (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 |
29135 | else | |
29136 | echo "$as_me: failed program was:" >&5 | |
29137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29138 | ||
82eaf560 | 29139 | ac_cv_lib_m_csqrtf=no |
d213114b | 29140 | fi |
82eaf560 | 29141 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29142 | conftest$ac_exeext conftest.$ac_ext |
29143 | LIBS=$ac_check_lib_save_LIBS | |
29144 | fi | |
82eaf560 | 29145 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrtf" >&5 |
29146 | echo "${ECHO_T}$ac_cv_lib_m_csqrtf" >&6 | |
d213114b | 29147 | if test $ac_cv_lib_m_csqrtf = yes; then |
29148 | ||
29149 | cat >>confdefs.h <<\_ACEOF | |
29150 | #define HAVE_CSQRTF 1 | |
29151 | _ACEOF | |
29152 | ||
29153 | fi | |
29154 | ||
82eaf560 | 29155 | echo "$as_me:$LINENO: checking for csqrt in -lm" >&5 |
29156 | echo $ECHO_N "checking for csqrt in -lm... $ECHO_C" >&6 | |
d213114b | 29157 | if test "${ac_cv_lib_m_csqrt+set}" = set; then |
29158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29159 | else | |
29160 | ac_check_lib_save_LIBS=$LIBS | |
29161 | LIBS="-lm $LIBS" | |
29162 | if test x$gcc_no_link = xyes; then | |
29163 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29164 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29165 | { (exit 1); exit 1; }; } | |
29166 | fi | |
29167 | cat >conftest.$ac_ext <<_ACEOF | |
29168 | /* confdefs.h. */ | |
29169 | _ACEOF | |
29170 | cat confdefs.h >>conftest.$ac_ext | |
29171 | cat >>conftest.$ac_ext <<_ACEOF | |
29172 | /* end confdefs.h. */ | |
29173 | ||
82eaf560 | 29174 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29175 | #ifdef __cplusplus |
29176 | extern "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 | 29180 | char csqrt (); |
29181 | int | |
29182 | main () | |
29183 | { | |
82eaf560 | 29184 | csqrt (); |
d213114b | 29185 | ; |
29186 | return 0; | |
29187 | } | |
29188 | _ACEOF | |
29189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 29190 | if { (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 |
29212 | else | |
29213 | echo "$as_me: failed program was:" >&5 | |
29214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29215 | ||
82eaf560 | 29216 | ac_cv_lib_m_csqrt=no |
d213114b | 29217 | fi |
82eaf560 | 29218 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29219 | conftest$ac_exeext conftest.$ac_ext |
29220 | LIBS=$ac_check_lib_save_LIBS | |
29221 | fi | |
82eaf560 | 29222 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrt" >&5 |
29223 | echo "${ECHO_T}$ac_cv_lib_m_csqrt" >&6 | |
d213114b | 29224 | if test $ac_cv_lib_m_csqrt = yes; then |
29225 | ||
29226 | cat >>confdefs.h <<\_ACEOF | |
29227 | #define HAVE_CSQRT 1 | |
29228 | _ACEOF | |
29229 | ||
29230 | fi | |
29231 | ||
82eaf560 | 29232 | echo "$as_me:$LINENO: checking for csqrtl in -lm" >&5 |
29233 | echo $ECHO_N "checking for csqrtl in -lm... $ECHO_C" >&6 | |
d213114b | 29234 | if test "${ac_cv_lib_m_csqrtl+set}" = set; then |
29235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29236 | else | |
29237 | ac_check_lib_save_LIBS=$LIBS | |
29238 | LIBS="-lm $LIBS" | |
29239 | if test x$gcc_no_link = xyes; then | |
29240 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29241 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29242 | { (exit 1); exit 1; }; } | |
29243 | fi | |
29244 | cat >conftest.$ac_ext <<_ACEOF | |
29245 | /* confdefs.h. */ | |
29246 | _ACEOF | |
29247 | cat confdefs.h >>conftest.$ac_ext | |
29248 | cat >>conftest.$ac_ext <<_ACEOF | |
29249 | /* end confdefs.h. */ | |
29250 | ||
82eaf560 | 29251 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29252 | #ifdef __cplusplus |
29253 | extern "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 | 29257 | char csqrtl (); |
29258 | int | |
29259 | main () | |
29260 | { | |
82eaf560 | 29261 | csqrtl (); |
d213114b | 29262 | ; |
29263 | return 0; | |
29264 | } | |
29265 | _ACEOF | |
29266 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 29267 | if { (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 |
29289 | else | |
29290 | echo "$as_me: failed program was:" >&5 | |
29291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29292 | ||
82eaf560 | 29293 | ac_cv_lib_m_csqrtl=no |
d213114b | 29294 | fi |
82eaf560 | 29295 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29296 | conftest$ac_exeext conftest.$ac_ext |
29297 | LIBS=$ac_check_lib_save_LIBS | |
29298 | fi | |
82eaf560 | 29299 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrtl" >&5 |
29300 | echo "${ECHO_T}$ac_cv_lib_m_csqrtl" >&6 | |
d213114b | 29301 | if test $ac_cv_lib_m_csqrtl = yes; then |
29302 | ||
29303 | cat >>confdefs.h <<\_ACEOF | |
29304 | #define HAVE_CSQRTL 1 | |
29305 | _ACEOF | |
29306 | ||
29307 | fi | |
29308 | ||
82eaf560 | 29309 | echo "$as_me:$LINENO: checking for tanf in -lm" >&5 |
29310 | echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6 | |
d213114b | 29311 | if test "${ac_cv_lib_m_tanf+set}" = set; then |
29312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29313 | else | |
29314 | ac_check_lib_save_LIBS=$LIBS | |
29315 | LIBS="-lm $LIBS" | |
29316 | if test x$gcc_no_link = xyes; then | |
29317 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29318 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29319 | { (exit 1); exit 1; }; } | |
29320 | fi | |
29321 | cat >conftest.$ac_ext <<_ACEOF | |
29322 | /* confdefs.h. */ | |
29323 | _ACEOF | |
29324 | cat confdefs.h >>conftest.$ac_ext | |
29325 | cat >>conftest.$ac_ext <<_ACEOF | |
29326 | /* end confdefs.h. */ | |
29327 | ||
82eaf560 | 29328 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29329 | #ifdef __cplusplus |
29330 | extern "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 | 29334 | char tanf (); |
29335 | int | |
29336 | main () | |
29337 | { | |
82eaf560 | 29338 | tanf (); |
d213114b | 29339 | ; |
29340 | return 0; | |
29341 | } | |
29342 | _ACEOF | |
29343 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 29344 | if { (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 |
29366 | else | |
29367 | echo "$as_me: failed program was:" >&5 | |
29368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29369 | ||
82eaf560 | 29370 | ac_cv_lib_m_tanf=no |
d213114b | 29371 | fi |
82eaf560 | 29372 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29373 | conftest$ac_exeext conftest.$ac_ext |
29374 | LIBS=$ac_check_lib_save_LIBS | |
29375 | fi | |
82eaf560 | 29376 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5 |
29377 | echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6 | |
d213114b | 29378 | if test $ac_cv_lib_m_tanf = yes; then |
29379 | ||
29380 | cat >>confdefs.h <<\_ACEOF | |
29381 | #define HAVE_TANF 1 | |
29382 | _ACEOF | |
29383 | ||
29384 | fi | |
29385 | ||
82eaf560 | 29386 | echo "$as_me:$LINENO: checking for tan in -lm" >&5 |
29387 | echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6 | |
d213114b | 29388 | if test "${ac_cv_lib_m_tan+set}" = set; then |
29389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29390 | else | |
29391 | ac_check_lib_save_LIBS=$LIBS | |
29392 | LIBS="-lm $LIBS" | |
29393 | if test x$gcc_no_link = xyes; then | |
29394 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29395 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29396 | { (exit 1); exit 1; }; } | |
29397 | fi | |
29398 | cat >conftest.$ac_ext <<_ACEOF | |
29399 | /* confdefs.h. */ | |
29400 | _ACEOF | |
29401 | cat confdefs.h >>conftest.$ac_ext | |
29402 | cat >>conftest.$ac_ext <<_ACEOF | |
29403 | /* end confdefs.h. */ | |
29404 | ||
82eaf560 | 29405 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29406 | #ifdef __cplusplus |
29407 | extern "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 | 29411 | char tan (); |
29412 | int | |
29413 | main () | |
29414 | { | |
82eaf560 | 29415 | tan (); |
d213114b | 29416 | ; |
29417 | return 0; | |
29418 | } | |
29419 | _ACEOF | |
29420 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 29421 | if { (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 |
29443 | else | |
29444 | echo "$as_me: failed program was:" >&5 | |
29445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29446 | ||
82eaf560 | 29447 | ac_cv_lib_m_tan=no |
d213114b | 29448 | fi |
82eaf560 | 29449 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29450 | conftest$ac_exeext conftest.$ac_ext |
29451 | LIBS=$ac_check_lib_save_LIBS | |
29452 | fi | |
82eaf560 | 29453 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5 |
29454 | echo "${ECHO_T}$ac_cv_lib_m_tan" >&6 | |
d213114b | 29455 | if test $ac_cv_lib_m_tan = yes; then |
29456 | ||
29457 | cat >>confdefs.h <<\_ACEOF | |
29458 | #define HAVE_TAN 1 | |
29459 | _ACEOF | |
29460 | ||
29461 | fi | |
29462 | ||
82eaf560 | 29463 | echo "$as_me:$LINENO: checking for tanl in -lm" >&5 |
29464 | echo $ECHO_N "checking for tanl in -lm... $ECHO_C" >&6 | |
d213114b | 29465 | if test "${ac_cv_lib_m_tanl+set}" = set; then |
29466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29467 | else | |
29468 | ac_check_lib_save_LIBS=$LIBS | |
29469 | LIBS="-lm $LIBS" | |
29470 | if test x$gcc_no_link = xyes; then | |
29471 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29472 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29473 | { (exit 1); exit 1; }; } | |
29474 | fi | |
29475 | cat >conftest.$ac_ext <<_ACEOF | |
29476 | /* confdefs.h. */ | |
29477 | _ACEOF | |
29478 | cat confdefs.h >>conftest.$ac_ext | |
29479 | cat >>conftest.$ac_ext <<_ACEOF | |
29480 | /* end confdefs.h. */ | |
29481 | ||
82eaf560 | 29482 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29483 | #ifdef __cplusplus |
29484 | extern "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 | 29488 | char tanl (); |
29489 | int | |
29490 | main () | |
29491 | { | |
82eaf560 | 29492 | tanl (); |
d213114b | 29493 | ; |
29494 | return 0; | |
29495 | } | |
29496 | _ACEOF | |
29497 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 29498 | if { (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 |
29520 | else | |
29521 | echo "$as_me: failed program was:" >&5 | |
29522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29523 | ||
82eaf560 | 29524 | ac_cv_lib_m_tanl=no |
d213114b | 29525 | fi |
82eaf560 | 29526 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29527 | conftest$ac_exeext conftest.$ac_ext |
29528 | LIBS=$ac_check_lib_save_LIBS | |
29529 | fi | |
82eaf560 | 29530 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanl" >&5 |
29531 | echo "${ECHO_T}$ac_cv_lib_m_tanl" >&6 | |
d213114b | 29532 | if test $ac_cv_lib_m_tanl = yes; then |
29533 | ||
29534 | cat >>confdefs.h <<\_ACEOF | |
29535 | #define HAVE_TANL 1 | |
29536 | _ACEOF | |
29537 | ||
29538 | fi | |
29539 | ||
82eaf560 | 29540 | echo "$as_me:$LINENO: checking for ctanf in -lm" >&5 |
29541 | echo $ECHO_N "checking for ctanf in -lm... $ECHO_C" >&6 | |
d213114b | 29542 | if test "${ac_cv_lib_m_ctanf+set}" = set; then |
29543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29544 | else | |
29545 | ac_check_lib_save_LIBS=$LIBS | |
29546 | LIBS="-lm $LIBS" | |
29547 | if test x$gcc_no_link = xyes; then | |
29548 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29549 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29550 | { (exit 1); exit 1; }; } | |
29551 | fi | |
29552 | cat >conftest.$ac_ext <<_ACEOF | |
29553 | /* confdefs.h. */ | |
29554 | _ACEOF | |
29555 | cat confdefs.h >>conftest.$ac_ext | |
29556 | cat >>conftest.$ac_ext <<_ACEOF | |
29557 | /* end confdefs.h. */ | |
29558 | ||
82eaf560 | 29559 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29560 | #ifdef __cplusplus |
29561 | extern "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 | 29565 | char ctanf (); |
29566 | int | |
29567 | main () | |
29568 | { | |
82eaf560 | 29569 | ctanf (); |
d213114b | 29570 | ; |
29571 | return 0; | |
29572 | } | |
29573 | _ACEOF | |
29574 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 29575 | if { (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 |
29597 | else | |
29598 | echo "$as_me: failed program was:" >&5 | |
29599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29600 | ||
82eaf560 | 29601 | ac_cv_lib_m_ctanf=no |
d213114b | 29602 | fi |
82eaf560 | 29603 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29604 | conftest$ac_exeext conftest.$ac_ext |
29605 | LIBS=$ac_check_lib_save_LIBS | |
29606 | fi | |
82eaf560 | 29607 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanf" >&5 |
29608 | echo "${ECHO_T}$ac_cv_lib_m_ctanf" >&6 | |
d213114b | 29609 | if test $ac_cv_lib_m_ctanf = yes; then |
29610 | ||
29611 | cat >>confdefs.h <<\_ACEOF | |
29612 | #define HAVE_CTANF 1 | |
29613 | _ACEOF | |
29614 | ||
29615 | fi | |
29616 | ||
82eaf560 | 29617 | echo "$as_me:$LINENO: checking for ctan in -lm" >&5 |
29618 | echo $ECHO_N "checking for ctan in -lm... $ECHO_C" >&6 | |
d213114b | 29619 | if test "${ac_cv_lib_m_ctan+set}" = set; then |
29620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29621 | else | |
29622 | ac_check_lib_save_LIBS=$LIBS | |
29623 | LIBS="-lm $LIBS" | |
29624 | if test x$gcc_no_link = xyes; then | |
29625 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29626 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29627 | { (exit 1); exit 1; }; } | |
29628 | fi | |
29629 | cat >conftest.$ac_ext <<_ACEOF | |
29630 | /* confdefs.h. */ | |
29631 | _ACEOF | |
29632 | cat confdefs.h >>conftest.$ac_ext | |
29633 | cat >>conftest.$ac_ext <<_ACEOF | |
29634 | /* end confdefs.h. */ | |
29635 | ||
82eaf560 | 29636 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29637 | #ifdef __cplusplus |
29638 | extern "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 | 29642 | char ctan (); |
29643 | int | |
29644 | main () | |
29645 | { | |
82eaf560 | 29646 | ctan (); |
d213114b | 29647 | ; |
29648 | return 0; | |
29649 | } | |
29650 | _ACEOF | |
29651 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 29652 | if { (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 |
29674 | else | |
29675 | echo "$as_me: failed program was:" >&5 | |
29676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29677 | ||
82eaf560 | 29678 | ac_cv_lib_m_ctan=no |
d213114b | 29679 | fi |
82eaf560 | 29680 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29681 | conftest$ac_exeext conftest.$ac_ext |
29682 | LIBS=$ac_check_lib_save_LIBS | |
29683 | fi | |
82eaf560 | 29684 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctan" >&5 |
29685 | echo "${ECHO_T}$ac_cv_lib_m_ctan" >&6 | |
d213114b | 29686 | if test $ac_cv_lib_m_ctan = yes; then |
29687 | ||
29688 | cat >>confdefs.h <<\_ACEOF | |
29689 | #define HAVE_CTAN 1 | |
29690 | _ACEOF | |
29691 | ||
29692 | fi | |
29693 | ||
82eaf560 | 29694 | echo "$as_me:$LINENO: checking for ctanl in -lm" >&5 |
29695 | echo $ECHO_N "checking for ctanl in -lm... $ECHO_C" >&6 | |
d213114b | 29696 | if test "${ac_cv_lib_m_ctanl+set}" = set; then |
29697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29698 | else | |
29699 | ac_check_lib_save_LIBS=$LIBS | |
29700 | LIBS="-lm $LIBS" | |
29701 | if test x$gcc_no_link = xyes; then | |
29702 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29703 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29704 | { (exit 1); exit 1; }; } | |
29705 | fi | |
29706 | cat >conftest.$ac_ext <<_ACEOF | |
29707 | /* confdefs.h. */ | |
29708 | _ACEOF | |
29709 | cat confdefs.h >>conftest.$ac_ext | |
29710 | cat >>conftest.$ac_ext <<_ACEOF | |
29711 | /* end confdefs.h. */ | |
29712 | ||
82eaf560 | 29713 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29714 | #ifdef __cplusplus |
29715 | extern "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 | 29719 | char ctanl (); |
29720 | int | |
29721 | main () | |
29722 | { | |
82eaf560 | 29723 | ctanl (); |
d213114b | 29724 | ; |
29725 | return 0; | |
29726 | } | |
29727 | _ACEOF | |
29728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 29729 | if { (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 |
29751 | else | |
29752 | echo "$as_me: failed program was:" >&5 | |
29753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29754 | ||
82eaf560 | 29755 | ac_cv_lib_m_ctanl=no |
d213114b | 29756 | fi |
82eaf560 | 29757 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29758 | conftest$ac_exeext conftest.$ac_ext |
29759 | LIBS=$ac_check_lib_save_LIBS | |
29760 | fi | |
82eaf560 | 29761 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanl" >&5 |
29762 | echo "${ECHO_T}$ac_cv_lib_m_ctanl" >&6 | |
d213114b | 29763 | if test $ac_cv_lib_m_ctanl = yes; then |
29764 | ||
29765 | cat >>confdefs.h <<\_ACEOF | |
29766 | #define HAVE_CTANL 1 | |
29767 | _ACEOF | |
29768 | ||
29769 | fi | |
29770 | ||
82eaf560 | 29771 | echo "$as_me:$LINENO: checking for tanhf in -lm" >&5 |
29772 | echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6 | |
d213114b | 29773 | if test "${ac_cv_lib_m_tanhf+set}" = set; then |
29774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29775 | else | |
29776 | ac_check_lib_save_LIBS=$LIBS | |
29777 | LIBS="-lm $LIBS" | |
29778 | if test x$gcc_no_link = xyes; then | |
29779 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29780 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29781 | { (exit 1); exit 1; }; } | |
29782 | fi | |
29783 | cat >conftest.$ac_ext <<_ACEOF | |
29784 | /* confdefs.h. */ | |
29785 | _ACEOF | |
29786 | cat confdefs.h >>conftest.$ac_ext | |
29787 | cat >>conftest.$ac_ext <<_ACEOF | |
29788 | /* end confdefs.h. */ | |
29789 | ||
82eaf560 | 29790 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29791 | #ifdef __cplusplus |
29792 | extern "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 | 29796 | char tanhf (); |
29797 | int | |
29798 | main () | |
29799 | { | |
82eaf560 | 29800 | tanhf (); |
d213114b | 29801 | ; |
29802 | return 0; | |
29803 | } | |
29804 | _ACEOF | |
29805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 29806 | if { (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 |
29828 | else | |
29829 | echo "$as_me: failed program was:" >&5 | |
29830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29831 | ||
82eaf560 | 29832 | ac_cv_lib_m_tanhf=no |
d213114b | 29833 | fi |
82eaf560 | 29834 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29835 | conftest$ac_exeext conftest.$ac_ext |
29836 | LIBS=$ac_check_lib_save_LIBS | |
29837 | fi | |
82eaf560 | 29838 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5 |
29839 | echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6 | |
d213114b | 29840 | if test $ac_cv_lib_m_tanhf = yes; then |
29841 | ||
29842 | cat >>confdefs.h <<\_ACEOF | |
29843 | #define HAVE_TANHF 1 | |
29844 | _ACEOF | |
29845 | ||
29846 | fi | |
29847 | ||
82eaf560 | 29848 | echo "$as_me:$LINENO: checking for tanh in -lm" >&5 |
29849 | echo $ECHO_N "checking for tanh in -lm... $ECHO_C" >&6 | |
d213114b | 29850 | if test "${ac_cv_lib_m_tanh+set}" = set; then |
29851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29852 | else | |
29853 | ac_check_lib_save_LIBS=$LIBS | |
29854 | LIBS="-lm $LIBS" | |
29855 | if test x$gcc_no_link = xyes; then | |
29856 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29857 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29858 | { (exit 1); exit 1; }; } | |
29859 | fi | |
29860 | cat >conftest.$ac_ext <<_ACEOF | |
29861 | /* confdefs.h. */ | |
29862 | _ACEOF | |
29863 | cat confdefs.h >>conftest.$ac_ext | |
29864 | cat >>conftest.$ac_ext <<_ACEOF | |
29865 | /* end confdefs.h. */ | |
29866 | ||
82eaf560 | 29867 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29868 | #ifdef __cplusplus |
29869 | extern "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 | 29873 | char tanh (); |
29874 | int | |
29875 | main () | |
29876 | { | |
82eaf560 | 29877 | tanh (); |
d213114b | 29878 | ; |
29879 | return 0; | |
29880 | } | |
29881 | _ACEOF | |
29882 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 29883 | if { (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 |
29905 | else | |
29906 | echo "$as_me: failed program was:" >&5 | |
29907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29908 | ||
82eaf560 | 29909 | ac_cv_lib_m_tanh=no |
d213114b | 29910 | fi |
82eaf560 | 29911 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29912 | conftest$ac_exeext conftest.$ac_ext |
29913 | LIBS=$ac_check_lib_save_LIBS | |
29914 | fi | |
82eaf560 | 29915 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanh" >&5 |
29916 | echo "${ECHO_T}$ac_cv_lib_m_tanh" >&6 | |
d213114b | 29917 | if test $ac_cv_lib_m_tanh = yes; then |
29918 | ||
29919 | cat >>confdefs.h <<\_ACEOF | |
29920 | #define HAVE_TANH 1 | |
29921 | _ACEOF | |
29922 | ||
29923 | fi | |
29924 | ||
82eaf560 | 29925 | echo "$as_me:$LINENO: checking for tanhl in -lm" >&5 |
29926 | echo $ECHO_N "checking for tanhl in -lm... $ECHO_C" >&6 | |
d213114b | 29927 | if test "${ac_cv_lib_m_tanhl+set}" = set; then |
29928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29929 | else | |
29930 | ac_check_lib_save_LIBS=$LIBS | |
29931 | LIBS="-lm $LIBS" | |
29932 | if test x$gcc_no_link = xyes; then | |
29933 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
29934 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
29935 | { (exit 1); exit 1; }; } | |
29936 | fi | |
29937 | cat >conftest.$ac_ext <<_ACEOF | |
29938 | /* confdefs.h. */ | |
29939 | _ACEOF | |
29940 | cat confdefs.h >>conftest.$ac_ext | |
29941 | cat >>conftest.$ac_ext <<_ACEOF | |
29942 | /* end confdefs.h. */ | |
29943 | ||
82eaf560 | 29944 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 29945 | #ifdef __cplusplus |
29946 | extern "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 | 29950 | char tanhl (); |
29951 | int | |
29952 | main () | |
29953 | { | |
82eaf560 | 29954 | tanhl (); |
d213114b | 29955 | ; |
29956 | return 0; | |
29957 | } | |
29958 | _ACEOF | |
29959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 29960 | if { (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 |
29982 | else | |
29983 | echo "$as_me: failed program was:" >&5 | |
29984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29985 | ||
82eaf560 | 29986 | ac_cv_lib_m_tanhl=no |
d213114b | 29987 | fi |
82eaf560 | 29988 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 29989 | conftest$ac_exeext conftest.$ac_ext |
29990 | LIBS=$ac_check_lib_save_LIBS | |
29991 | fi | |
82eaf560 | 29992 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhl" >&5 |
29993 | echo "${ECHO_T}$ac_cv_lib_m_tanhl" >&6 | |
d213114b | 29994 | if test $ac_cv_lib_m_tanhl = yes; then |
29995 | ||
29996 | cat >>confdefs.h <<\_ACEOF | |
29997 | #define HAVE_TANHL 1 | |
29998 | _ACEOF | |
29999 | ||
30000 | fi | |
30001 | ||
82eaf560 | 30002 | echo "$as_me:$LINENO: checking for ctanhf in -lm" >&5 |
30003 | echo $ECHO_N "checking for ctanhf in -lm... $ECHO_C" >&6 | |
d213114b | 30004 | if test "${ac_cv_lib_m_ctanhf+set}" = set; then |
30005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30006 | else | |
30007 | ac_check_lib_save_LIBS=$LIBS | |
30008 | LIBS="-lm $LIBS" | |
30009 | if test x$gcc_no_link = xyes; then | |
30010 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30011 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30012 | { (exit 1); exit 1; }; } | |
30013 | fi | |
30014 | cat >conftest.$ac_ext <<_ACEOF | |
30015 | /* confdefs.h. */ | |
30016 | _ACEOF | |
30017 | cat confdefs.h >>conftest.$ac_ext | |
30018 | cat >>conftest.$ac_ext <<_ACEOF | |
30019 | /* end confdefs.h. */ | |
30020 | ||
82eaf560 | 30021 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 30022 | #ifdef __cplusplus |
30023 | extern "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 | 30027 | char ctanhf (); |
30028 | int | |
30029 | main () | |
30030 | { | |
82eaf560 | 30031 | ctanhf (); |
d213114b | 30032 | ; |
30033 | return 0; | |
30034 | } | |
30035 | _ACEOF | |
30036 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 30037 | if { (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 |
30059 | else | |
30060 | echo "$as_me: failed program was:" >&5 | |
30061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30062 | ||
82eaf560 | 30063 | ac_cv_lib_m_ctanhf=no |
d213114b | 30064 | fi |
82eaf560 | 30065 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 30066 | conftest$ac_exeext conftest.$ac_ext |
30067 | LIBS=$ac_check_lib_save_LIBS | |
30068 | fi | |
82eaf560 | 30069 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanhf" >&5 |
30070 | echo "${ECHO_T}$ac_cv_lib_m_ctanhf" >&6 | |
d213114b | 30071 | if test $ac_cv_lib_m_ctanhf = yes; then |
30072 | ||
30073 | cat >>confdefs.h <<\_ACEOF | |
30074 | #define HAVE_CTANHF 1 | |
30075 | _ACEOF | |
30076 | ||
30077 | fi | |
30078 | ||
82eaf560 | 30079 | echo "$as_me:$LINENO: checking for ctanh in -lm" >&5 |
30080 | echo $ECHO_N "checking for ctanh in -lm... $ECHO_C" >&6 | |
d213114b | 30081 | if test "${ac_cv_lib_m_ctanh+set}" = set; then |
30082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30083 | else | |
30084 | ac_check_lib_save_LIBS=$LIBS | |
30085 | LIBS="-lm $LIBS" | |
30086 | if test x$gcc_no_link = xyes; then | |
30087 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30088 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30089 | { (exit 1); exit 1; }; } | |
30090 | fi | |
30091 | cat >conftest.$ac_ext <<_ACEOF | |
30092 | /* confdefs.h. */ | |
30093 | _ACEOF | |
30094 | cat confdefs.h >>conftest.$ac_ext | |
30095 | cat >>conftest.$ac_ext <<_ACEOF | |
30096 | /* end confdefs.h. */ | |
30097 | ||
82eaf560 | 30098 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 30099 | #ifdef __cplusplus |
30100 | extern "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 | 30104 | char ctanh (); |
30105 | int | |
30106 | main () | |
30107 | { | |
82eaf560 | 30108 | ctanh (); |
d213114b | 30109 | ; |
30110 | return 0; | |
30111 | } | |
30112 | _ACEOF | |
30113 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 30114 | if { (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 |
30136 | else | |
30137 | echo "$as_me: failed program was:" >&5 | |
30138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30139 | ||
82eaf560 | 30140 | ac_cv_lib_m_ctanh=no |
d213114b | 30141 | fi |
82eaf560 | 30142 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 30143 | conftest$ac_exeext conftest.$ac_ext |
30144 | LIBS=$ac_check_lib_save_LIBS | |
30145 | fi | |
82eaf560 | 30146 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanh" >&5 |
30147 | echo "${ECHO_T}$ac_cv_lib_m_ctanh" >&6 | |
d213114b | 30148 | if test $ac_cv_lib_m_ctanh = yes; then |
30149 | ||
30150 | cat >>confdefs.h <<\_ACEOF | |
30151 | #define HAVE_CTANH 1 | |
30152 | _ACEOF | |
30153 | ||
30154 | fi | |
30155 | ||
82eaf560 | 30156 | echo "$as_me:$LINENO: checking for ctanhl in -lm" >&5 |
30157 | echo $ECHO_N "checking for ctanhl in -lm... $ECHO_C" >&6 | |
d213114b | 30158 | if test "${ac_cv_lib_m_ctanhl+set}" = set; then |
30159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30160 | else | |
30161 | ac_check_lib_save_LIBS=$LIBS | |
30162 | LIBS="-lm $LIBS" | |
30163 | if test x$gcc_no_link = xyes; then | |
30164 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30165 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30166 | { (exit 1); exit 1; }; } | |
30167 | fi | |
30168 | cat >conftest.$ac_ext <<_ACEOF | |
30169 | /* confdefs.h. */ | |
30170 | _ACEOF | |
30171 | cat confdefs.h >>conftest.$ac_ext | |
30172 | cat >>conftest.$ac_ext <<_ACEOF | |
30173 | /* end confdefs.h. */ | |
30174 | ||
82eaf560 | 30175 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 30176 | #ifdef __cplusplus |
30177 | extern "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 | 30181 | char ctanhl (); |
30182 | int | |
30183 | main () | |
30184 | { | |
82eaf560 | 30185 | ctanhl (); |
d213114b | 30186 | ; |
30187 | return 0; | |
30188 | } | |
30189 | _ACEOF | |
30190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 30191 | if { (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 |
30213 | else | |
30214 | echo "$as_me: failed program was:" >&5 | |
30215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30216 | ||
82eaf560 | 30217 | ac_cv_lib_m_ctanhl=no |
d213114b | 30218 | fi |
82eaf560 | 30219 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 30220 | conftest$ac_exeext conftest.$ac_ext |
30221 | LIBS=$ac_check_lib_save_LIBS | |
30222 | fi | |
82eaf560 | 30223 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanhl" >&5 |
30224 | echo "${ECHO_T}$ac_cv_lib_m_ctanhl" >&6 | |
d213114b | 30225 | if test $ac_cv_lib_m_ctanhl = yes; then |
30226 | ||
30227 | cat >>confdefs.h <<\_ACEOF | |
30228 | #define HAVE_CTANHL 1 | |
50f0ca0a | 30229 | _ACEOF |
30230 | ||
30231 | fi | |
30232 | ||
82eaf560 | 30233 | echo "$as_me:$LINENO: checking for truncf in -lm" >&5 |
30234 | echo $ECHO_N "checking for truncf in -lm... $ECHO_C" >&6 | |
50f0ca0a | 30235 | if test "${ac_cv_lib_m_truncf+set}" = set; then |
30236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30237 | else | |
30238 | ac_check_lib_save_LIBS=$LIBS | |
30239 | LIBS="-lm $LIBS" | |
b52ee437 | 30240 | if test x$gcc_no_link = xyes; then |
30241 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30242 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30243 | { (exit 1); exit 1; }; } | |
30244 | fi | |
50f0ca0a | 30245 | cat >conftest.$ac_ext <<_ACEOF |
30246 | /* confdefs.h. */ | |
30247 | _ACEOF | |
30248 | cat confdefs.h >>conftest.$ac_ext | |
30249 | cat >>conftest.$ac_ext <<_ACEOF | |
30250 | /* end confdefs.h. */ | |
30251 | ||
82eaf560 | 30252 | /* Override any gcc2 internal prototype to avoid an error. */ |
50f0ca0a | 30253 | #ifdef __cplusplus |
30254 | extern "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 | 30258 | char truncf (); |
30259 | int | |
30260 | main () | |
30261 | { | |
82eaf560 | 30262 | truncf (); |
d213114b | 30263 | ; |
30264 | return 0; | |
30265 | } | |
30266 | _ACEOF | |
30267 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 30268 | if { (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 |
30290 | else | |
30291 | echo "$as_me: failed program was:" >&5 | |
30292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30293 | ||
82eaf560 | 30294 | ac_cv_lib_m_truncf=no |
d213114b | 30295 | fi |
82eaf560 | 30296 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 30297 | conftest$ac_exeext conftest.$ac_ext |
30298 | LIBS=$ac_check_lib_save_LIBS | |
30299 | fi | |
82eaf560 | 30300 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncf" >&5 |
30301 | echo "${ECHO_T}$ac_cv_lib_m_truncf" >&6 | |
d213114b | 30302 | if test $ac_cv_lib_m_truncf = yes; then |
30303 | ||
30304 | cat >>confdefs.h <<\_ACEOF | |
30305 | #define HAVE_TRUNCF 1 | |
30306 | _ACEOF | |
30307 | ||
30308 | fi | |
30309 | ||
82eaf560 | 30310 | echo "$as_me:$LINENO: checking for trunc in -lm" >&5 |
30311 | echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6 | |
d213114b | 30312 | if test "${ac_cv_lib_m_trunc+set}" = set; then |
30313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30314 | else | |
30315 | ac_check_lib_save_LIBS=$LIBS | |
30316 | LIBS="-lm $LIBS" | |
30317 | if test x$gcc_no_link = xyes; then | |
30318 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30319 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30320 | { (exit 1); exit 1; }; } | |
30321 | fi | |
30322 | cat >conftest.$ac_ext <<_ACEOF | |
30323 | /* confdefs.h. */ | |
30324 | _ACEOF | |
30325 | cat confdefs.h >>conftest.$ac_ext | |
30326 | cat >>conftest.$ac_ext <<_ACEOF | |
30327 | /* end confdefs.h. */ | |
30328 | ||
82eaf560 | 30329 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 30330 | #ifdef __cplusplus |
30331 | extern "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 | 30335 | char trunc (); |
30336 | int | |
30337 | main () | |
30338 | { | |
82eaf560 | 30339 | trunc (); |
d213114b | 30340 | ; |
30341 | return 0; | |
30342 | } | |
30343 | _ACEOF | |
30344 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 30345 | if { (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 |
30367 | else | |
30368 | echo "$as_me: failed program was:" >&5 | |
30369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30370 | ||
82eaf560 | 30371 | ac_cv_lib_m_trunc=no |
d213114b | 30372 | fi |
82eaf560 | 30373 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 30374 | conftest$ac_exeext conftest.$ac_ext |
30375 | LIBS=$ac_check_lib_save_LIBS | |
30376 | fi | |
82eaf560 | 30377 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5 |
30378 | echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6 | |
d213114b | 30379 | if test $ac_cv_lib_m_trunc = yes; then |
30380 | ||
30381 | cat >>confdefs.h <<\_ACEOF | |
30382 | #define HAVE_TRUNC 1 | |
30383 | _ACEOF | |
30384 | ||
30385 | fi | |
30386 | ||
82eaf560 | 30387 | echo "$as_me:$LINENO: checking for truncl in -lm" >&5 |
30388 | echo $ECHO_N "checking for truncl in -lm... $ECHO_C" >&6 | |
d213114b | 30389 | if test "${ac_cv_lib_m_truncl+set}" = set; then |
30390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30391 | else | |
30392 | ac_check_lib_save_LIBS=$LIBS | |
30393 | LIBS="-lm $LIBS" | |
30394 | if test x$gcc_no_link = xyes; then | |
30395 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30396 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30397 | { (exit 1); exit 1; }; } | |
30398 | fi | |
30399 | cat >conftest.$ac_ext <<_ACEOF | |
30400 | /* confdefs.h. */ | |
30401 | _ACEOF | |
30402 | cat confdefs.h >>conftest.$ac_ext | |
30403 | cat >>conftest.$ac_ext <<_ACEOF | |
30404 | /* end confdefs.h. */ | |
30405 | ||
82eaf560 | 30406 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 30407 | #ifdef __cplusplus |
30408 | extern "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 | 30412 | char truncl (); |
30413 | int | |
30414 | main () | |
30415 | { | |
82eaf560 | 30416 | truncl (); |
d213114b | 30417 | ; |
30418 | return 0; | |
30419 | } | |
30420 | _ACEOF | |
30421 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 30422 | if { (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 |
30444 | else | |
30445 | echo "$as_me: failed program was:" >&5 | |
30446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30447 | ||
82eaf560 | 30448 | ac_cv_lib_m_truncl=no |
d213114b | 30449 | fi |
82eaf560 | 30450 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 30451 | conftest$ac_exeext conftest.$ac_ext |
30452 | LIBS=$ac_check_lib_save_LIBS | |
30453 | fi | |
82eaf560 | 30454 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncl" >&5 |
30455 | echo "${ECHO_T}$ac_cv_lib_m_truncl" >&6 | |
d213114b | 30456 | if test $ac_cv_lib_m_truncl = yes; then |
30457 | ||
30458 | cat >>confdefs.h <<\_ACEOF | |
30459 | #define HAVE_TRUNCL 1 | |
30460 | _ACEOF | |
30461 | ||
30462 | fi | |
30463 | ||
82eaf560 | 30464 | echo "$as_me:$LINENO: checking for erff in -lm" >&5 |
30465 | echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6 | |
d213114b | 30466 | if test "${ac_cv_lib_m_erff+set}" = set; then |
30467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30468 | else | |
30469 | ac_check_lib_save_LIBS=$LIBS | |
30470 | LIBS="-lm $LIBS" | |
30471 | if test x$gcc_no_link = xyes; then | |
30472 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30473 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30474 | { (exit 1); exit 1; }; } | |
30475 | fi | |
30476 | cat >conftest.$ac_ext <<_ACEOF | |
30477 | /* confdefs.h. */ | |
30478 | _ACEOF | |
30479 | cat confdefs.h >>conftest.$ac_ext | |
30480 | cat >>conftest.$ac_ext <<_ACEOF | |
30481 | /* end confdefs.h. */ | |
30482 | ||
82eaf560 | 30483 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 30484 | #ifdef __cplusplus |
30485 | extern "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 | 30489 | char erff (); |
30490 | int | |
30491 | main () | |
30492 | { | |
82eaf560 | 30493 | erff (); |
d213114b | 30494 | ; |
30495 | return 0; | |
30496 | } | |
30497 | _ACEOF | |
30498 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 30499 | if { (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 |
30521 | else | |
30522 | echo "$as_me: failed program was:" >&5 | |
30523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30524 | ||
82eaf560 | 30525 | ac_cv_lib_m_erff=no |
d213114b | 30526 | fi |
82eaf560 | 30527 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 30528 | conftest$ac_exeext conftest.$ac_ext |
30529 | LIBS=$ac_check_lib_save_LIBS | |
30530 | fi | |
82eaf560 | 30531 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5 |
30532 | echo "${ECHO_T}$ac_cv_lib_m_erff" >&6 | |
d213114b | 30533 | if test $ac_cv_lib_m_erff = yes; then |
30534 | ||
30535 | cat >>confdefs.h <<\_ACEOF | |
30536 | #define HAVE_ERFF 1 | |
30537 | _ACEOF | |
30538 | ||
30539 | fi | |
30540 | ||
82eaf560 | 30541 | echo "$as_me:$LINENO: checking for erf in -lm" >&5 |
30542 | echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6 | |
d213114b | 30543 | if test "${ac_cv_lib_m_erf+set}" = set; then |
30544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30545 | else | |
30546 | ac_check_lib_save_LIBS=$LIBS | |
30547 | LIBS="-lm $LIBS" | |
30548 | if test x$gcc_no_link = xyes; then | |
30549 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30550 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30551 | { (exit 1); exit 1; }; } | |
30552 | fi | |
30553 | cat >conftest.$ac_ext <<_ACEOF | |
30554 | /* confdefs.h. */ | |
30555 | _ACEOF | |
30556 | cat confdefs.h >>conftest.$ac_ext | |
30557 | cat >>conftest.$ac_ext <<_ACEOF | |
30558 | /* end confdefs.h. */ | |
30559 | ||
82eaf560 | 30560 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 30561 | #ifdef __cplusplus |
30562 | extern "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 | 30566 | char erf (); |
30567 | int | |
30568 | main () | |
30569 | { | |
82eaf560 | 30570 | erf (); |
d213114b | 30571 | ; |
30572 | return 0; | |
30573 | } | |
30574 | _ACEOF | |
30575 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 30576 | if { (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 |
30598 | else | |
30599 | echo "$as_me: failed program was:" >&5 | |
30600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30601 | ||
82eaf560 | 30602 | ac_cv_lib_m_erf=no |
d213114b | 30603 | fi |
82eaf560 | 30604 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 30605 | conftest$ac_exeext conftest.$ac_ext |
30606 | LIBS=$ac_check_lib_save_LIBS | |
30607 | fi | |
82eaf560 | 30608 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5 |
30609 | echo "${ECHO_T}$ac_cv_lib_m_erf" >&6 | |
d213114b | 30610 | if test $ac_cv_lib_m_erf = yes; then |
30611 | ||
30612 | cat >>confdefs.h <<\_ACEOF | |
30613 | #define HAVE_ERF 1 | |
30614 | _ACEOF | |
30615 | ||
30616 | fi | |
30617 | ||
82eaf560 | 30618 | echo "$as_me:$LINENO: checking for erfl in -lm" >&5 |
30619 | echo $ECHO_N "checking for erfl in -lm... $ECHO_C" >&6 | |
d213114b | 30620 | if test "${ac_cv_lib_m_erfl+set}" = set; then |
30621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30622 | else | |
30623 | ac_check_lib_save_LIBS=$LIBS | |
30624 | LIBS="-lm $LIBS" | |
30625 | if test x$gcc_no_link = xyes; then | |
30626 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30627 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30628 | { (exit 1); exit 1; }; } | |
30629 | fi | |
30630 | cat >conftest.$ac_ext <<_ACEOF | |
30631 | /* confdefs.h. */ | |
30632 | _ACEOF | |
30633 | cat confdefs.h >>conftest.$ac_ext | |
30634 | cat >>conftest.$ac_ext <<_ACEOF | |
30635 | /* end confdefs.h. */ | |
30636 | ||
82eaf560 | 30637 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 30638 | #ifdef __cplusplus |
30639 | extern "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 | 30643 | char erfl (); |
30644 | int | |
30645 | main () | |
30646 | { | |
82eaf560 | 30647 | erfl (); |
d213114b | 30648 | ; |
30649 | return 0; | |
30650 | } | |
30651 | _ACEOF | |
30652 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 30653 | if { (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 |
30675 | else | |
30676 | echo "$as_me: failed program was:" >&5 | |
30677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30678 | ||
82eaf560 | 30679 | ac_cv_lib_m_erfl=no |
d213114b | 30680 | fi |
82eaf560 | 30681 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 30682 | conftest$ac_exeext conftest.$ac_ext |
30683 | LIBS=$ac_check_lib_save_LIBS | |
30684 | fi | |
82eaf560 | 30685 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfl" >&5 |
30686 | echo "${ECHO_T}$ac_cv_lib_m_erfl" >&6 | |
d213114b | 30687 | if test $ac_cv_lib_m_erfl = yes; then |
30688 | ||
30689 | cat >>confdefs.h <<\_ACEOF | |
30690 | #define HAVE_ERFL 1 | |
30691 | _ACEOF | |
30692 | ||
30693 | fi | |
30694 | ||
82eaf560 | 30695 | echo "$as_me:$LINENO: checking for erfcf in -lm" >&5 |
30696 | echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6 | |
d213114b | 30697 | if test "${ac_cv_lib_m_erfcf+set}" = set; then |
30698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30699 | else | |
30700 | ac_check_lib_save_LIBS=$LIBS | |
30701 | LIBS="-lm $LIBS" | |
30702 | if test x$gcc_no_link = xyes; then | |
30703 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30704 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30705 | { (exit 1); exit 1; }; } | |
30706 | fi | |
30707 | cat >conftest.$ac_ext <<_ACEOF | |
30708 | /* confdefs.h. */ | |
30709 | _ACEOF | |
30710 | cat confdefs.h >>conftest.$ac_ext | |
30711 | cat >>conftest.$ac_ext <<_ACEOF | |
30712 | /* end confdefs.h. */ | |
30713 | ||
82eaf560 | 30714 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 30715 | #ifdef __cplusplus |
30716 | extern "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 | 30720 | char erfcf (); |
30721 | int | |
30722 | main () | |
30723 | { | |
82eaf560 | 30724 | erfcf (); |
d213114b | 30725 | ; |
30726 | return 0; | |
30727 | } | |
30728 | _ACEOF | |
30729 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 30730 | if { (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 |
30752 | else | |
30753 | echo "$as_me: failed program was:" >&5 | |
30754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30755 | ||
82eaf560 | 30756 | ac_cv_lib_m_erfcf=no |
d213114b | 30757 | fi |
82eaf560 | 30758 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 30759 | conftest$ac_exeext conftest.$ac_ext |
30760 | LIBS=$ac_check_lib_save_LIBS | |
30761 | fi | |
82eaf560 | 30762 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5 |
30763 | echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6 | |
d213114b | 30764 | if test $ac_cv_lib_m_erfcf = yes; then |
30765 | ||
30766 | cat >>confdefs.h <<\_ACEOF | |
30767 | #define HAVE_ERFCF 1 | |
30768 | _ACEOF | |
30769 | ||
30770 | fi | |
30771 | ||
82eaf560 | 30772 | echo "$as_me:$LINENO: checking for erfc in -lm" >&5 |
30773 | echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6 | |
d213114b | 30774 | if test "${ac_cv_lib_m_erfc+set}" = set; then |
30775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30776 | else | |
30777 | ac_check_lib_save_LIBS=$LIBS | |
30778 | LIBS="-lm $LIBS" | |
30779 | if test x$gcc_no_link = xyes; then | |
30780 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30781 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30782 | { (exit 1); exit 1; }; } | |
30783 | fi | |
30784 | cat >conftest.$ac_ext <<_ACEOF | |
30785 | /* confdefs.h. */ | |
30786 | _ACEOF | |
30787 | cat confdefs.h >>conftest.$ac_ext | |
30788 | cat >>conftest.$ac_ext <<_ACEOF | |
30789 | /* end confdefs.h. */ | |
30790 | ||
82eaf560 | 30791 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 30792 | #ifdef __cplusplus |
30793 | extern "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 | 30797 | char erfc (); |
50f0ca0a | 30798 | int |
30799 | main () | |
30800 | { | |
82eaf560 | 30801 | erfc (); |
50f0ca0a | 30802 | ; |
30803 | return 0; | |
30804 | } | |
30805 | _ACEOF | |
30806 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 30807 | if { (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 | 30829 | else |
30830 | echo "$as_me: failed program was:" >&5 | |
30831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30832 | ||
82eaf560 | 30833 | ac_cv_lib_m_erfc=no |
50f0ca0a | 30834 | fi |
82eaf560 | 30835 | rm -f conftest.err conftest.$ac_objext \ |
50f0ca0a | 30836 | conftest$ac_exeext conftest.$ac_ext |
30837 | LIBS=$ac_check_lib_save_LIBS | |
30838 | fi | |
82eaf560 | 30839 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5 |
30840 | echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6 | |
d213114b | 30841 | if test $ac_cv_lib_m_erfc = yes; then |
50f0ca0a | 30842 | |
30843 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 30844 | #define HAVE_ERFC 1 |
50f0ca0a | 30845 | _ACEOF |
30846 | ||
30847 | fi | |
30848 | ||
82eaf560 | 30849 | echo "$as_me:$LINENO: checking for erfcl in -lm" >&5 |
30850 | echo $ECHO_N "checking for erfcl in -lm... $ECHO_C" >&6 | |
d213114b | 30851 | if test "${ac_cv_lib_m_erfcl+set}" = set; then |
158e0e64 | 30852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
30853 | else | |
30854 | ac_check_lib_save_LIBS=$LIBS | |
30855 | LIBS="-lm $LIBS" | |
b52ee437 | 30856 | if test x$gcc_no_link = xyes; then |
30857 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30858 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30859 | { (exit 1); exit 1; }; } | |
30860 | fi | |
158e0e64 | 30861 | cat >conftest.$ac_ext <<_ACEOF |
30862 | /* confdefs.h. */ | |
30863 | _ACEOF | |
30864 | cat confdefs.h >>conftest.$ac_ext | |
30865 | cat >>conftest.$ac_ext <<_ACEOF | |
30866 | /* end confdefs.h. */ | |
30867 | ||
82eaf560 | 30868 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 30869 | #ifdef __cplusplus |
30870 | extern "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 | 30874 | char erfcl (); |
158e0e64 | 30875 | int |
30876 | main () | |
30877 | { | |
82eaf560 | 30878 | erfcl (); |
158e0e64 | 30879 | ; |
30880 | return 0; | |
30881 | } | |
30882 | _ACEOF | |
30883 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 30884 | if { (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 | 30906 | else |
30907 | echo "$as_me: failed program was:" >&5 | |
30908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30909 | ||
82eaf560 | 30910 | ac_cv_lib_m_erfcl=no |
158e0e64 | 30911 | fi |
82eaf560 | 30912 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 30913 | conftest$ac_exeext conftest.$ac_ext |
30914 | LIBS=$ac_check_lib_save_LIBS | |
30915 | fi | |
82eaf560 | 30916 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcl" >&5 |
30917 | echo "${ECHO_T}$ac_cv_lib_m_erfcl" >&6 | |
d213114b | 30918 | if test $ac_cv_lib_m_erfcl = yes; then |
158e0e64 | 30919 | |
30920 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 30921 | #define HAVE_ERFCL 1 |
158e0e64 | 30922 | _ACEOF |
30923 | ||
30924 | fi | |
30925 | ||
82eaf560 | 30926 | echo "$as_me:$LINENO: checking for j0f in -lm" >&5 |
30927 | echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6 | |
d213114b | 30928 | if test "${ac_cv_lib_m_j0f+set}" = set; then |
158e0e64 | 30929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
30930 | else | |
30931 | ac_check_lib_save_LIBS=$LIBS | |
30932 | LIBS="-lm $LIBS" | |
b52ee437 | 30933 | if test x$gcc_no_link = xyes; then |
30934 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
30935 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
30936 | { (exit 1); exit 1; }; } | |
30937 | fi | |
158e0e64 | 30938 | cat >conftest.$ac_ext <<_ACEOF |
30939 | /* confdefs.h. */ | |
30940 | _ACEOF | |
30941 | cat confdefs.h >>conftest.$ac_ext | |
30942 | cat >>conftest.$ac_ext <<_ACEOF | |
30943 | /* end confdefs.h. */ | |
30944 | ||
82eaf560 | 30945 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 30946 | #ifdef __cplusplus |
30947 | extern "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 | 30951 | char j0f (); |
158e0e64 | 30952 | int |
30953 | main () | |
30954 | { | |
82eaf560 | 30955 | j0f (); |
158e0e64 | 30956 | ; |
30957 | return 0; | |
30958 | } | |
30959 | _ACEOF | |
30960 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 30961 | if { (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 | 30983 | else |
30984 | echo "$as_me: failed program was:" >&5 | |
30985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30986 | ||
82eaf560 | 30987 | ac_cv_lib_m_j0f=no |
d213114b | 30988 | fi |
82eaf560 | 30989 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 30990 | conftest$ac_exeext conftest.$ac_ext |
30991 | LIBS=$ac_check_lib_save_LIBS | |
30992 | fi | |
82eaf560 | 30993 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5 |
30994 | echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6 | |
d213114b | 30995 | if test $ac_cv_lib_m_j0f = yes; then |
30996 | ||
30997 | cat >>confdefs.h <<\_ACEOF | |
30998 | #define HAVE_J0F 1 | |
30999 | _ACEOF | |
31000 | ||
31001 | fi | |
31002 | ||
82eaf560 | 31003 | echo "$as_me:$LINENO: checking for j0 in -lm" >&5 |
31004 | echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6 | |
d213114b | 31005 | if test "${ac_cv_lib_m_j0+set}" = set; then |
31006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31007 | else | |
31008 | ac_check_lib_save_LIBS=$LIBS | |
31009 | LIBS="-lm $LIBS" | |
31010 | if test x$gcc_no_link = xyes; then | |
31011 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31012 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31013 | { (exit 1); exit 1; }; } | |
31014 | fi | |
31015 | cat >conftest.$ac_ext <<_ACEOF | |
31016 | /* confdefs.h. */ | |
31017 | _ACEOF | |
31018 | cat confdefs.h >>conftest.$ac_ext | |
31019 | cat >>conftest.$ac_ext <<_ACEOF | |
31020 | /* end confdefs.h. */ | |
31021 | ||
82eaf560 | 31022 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 31023 | #ifdef __cplusplus |
31024 | extern "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 | 31028 | char j0 (); |
31029 | int | |
31030 | main () | |
31031 | { | |
82eaf560 | 31032 | j0 (); |
d213114b | 31033 | ; |
31034 | return 0; | |
31035 | } | |
31036 | _ACEOF | |
31037 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 31038 | if { (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 |
31060 | else | |
31061 | echo "$as_me: failed program was:" >&5 | |
31062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31063 | ||
82eaf560 | 31064 | ac_cv_lib_m_j0=no |
d213114b | 31065 | fi |
82eaf560 | 31066 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 31067 | conftest$ac_exeext conftest.$ac_ext |
31068 | LIBS=$ac_check_lib_save_LIBS | |
31069 | fi | |
82eaf560 | 31070 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5 |
31071 | echo "${ECHO_T}$ac_cv_lib_m_j0" >&6 | |
d213114b | 31072 | if test $ac_cv_lib_m_j0 = yes; then |
31073 | ||
31074 | cat >>confdefs.h <<\_ACEOF | |
31075 | #define HAVE_J0 1 | |
31076 | _ACEOF | |
31077 | ||
31078 | fi | |
31079 | ||
82eaf560 | 31080 | echo "$as_me:$LINENO: checking for j0l in -lm" >&5 |
31081 | echo $ECHO_N "checking for j0l in -lm... $ECHO_C" >&6 | |
d213114b | 31082 | if test "${ac_cv_lib_m_j0l+set}" = set; then |
31083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31084 | else | |
31085 | ac_check_lib_save_LIBS=$LIBS | |
31086 | LIBS="-lm $LIBS" | |
31087 | if test x$gcc_no_link = xyes; then | |
31088 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31089 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31090 | { (exit 1); exit 1; }; } | |
31091 | fi | |
31092 | cat >conftest.$ac_ext <<_ACEOF | |
31093 | /* confdefs.h. */ | |
31094 | _ACEOF | |
31095 | cat confdefs.h >>conftest.$ac_ext | |
31096 | cat >>conftest.$ac_ext <<_ACEOF | |
31097 | /* end confdefs.h. */ | |
31098 | ||
82eaf560 | 31099 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 31100 | #ifdef __cplusplus |
31101 | extern "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 | 31105 | char j0l (); |
31106 | int | |
31107 | main () | |
31108 | { | |
82eaf560 | 31109 | j0l (); |
d213114b | 31110 | ; |
31111 | return 0; | |
31112 | } | |
31113 | _ACEOF | |
31114 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 31115 | if { (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 |
31137 | else | |
31138 | echo "$as_me: failed program was:" >&5 | |
31139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31140 | ||
82eaf560 | 31141 | ac_cv_lib_m_j0l=no |
d213114b | 31142 | fi |
82eaf560 | 31143 | rm -f conftest.err conftest.$ac_objext \ |
d213114b | 31144 | conftest$ac_exeext conftest.$ac_ext |
31145 | LIBS=$ac_check_lib_save_LIBS | |
31146 | fi | |
82eaf560 | 31147 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0l" >&5 |
31148 | echo "${ECHO_T}$ac_cv_lib_m_j0l" >&6 | |
d213114b | 31149 | if test $ac_cv_lib_m_j0l = yes; then |
31150 | ||
31151 | cat >>confdefs.h <<\_ACEOF | |
31152 | #define HAVE_J0L 1 | |
31153 | _ACEOF | |
31154 | ||
31155 | fi | |
31156 | ||
82eaf560 | 31157 | echo "$as_me:$LINENO: checking for j1f in -lm" >&5 |
31158 | echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6 | |
d213114b | 31159 | if test "${ac_cv_lib_m_j1f+set}" = set; then |
31160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31161 | else | |
31162 | ac_check_lib_save_LIBS=$LIBS | |
31163 | LIBS="-lm $LIBS" | |
31164 | if test x$gcc_no_link = xyes; then | |
31165 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31166 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31167 | { (exit 1); exit 1; }; } | |
31168 | fi | |
31169 | cat >conftest.$ac_ext <<_ACEOF | |
31170 | /* confdefs.h. */ | |
31171 | _ACEOF | |
31172 | cat confdefs.h >>conftest.$ac_ext | |
31173 | cat >>conftest.$ac_ext <<_ACEOF | |
31174 | /* end confdefs.h. */ | |
31175 | ||
82eaf560 | 31176 | /* Override any gcc2 internal prototype to avoid an error. */ |
d213114b | 31177 | #ifdef __cplusplus |
31178 | extern "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 | 31182 | char j1f (); |
31183 | int | |
31184 | main () | |
31185 | { | |
82eaf560 | 31186 | j1f (); |
d213114b | 31187 | ; |
31188 | return 0; | |
31189 | } | |
31190 | _ACEOF | |
31191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 31192 | if { (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 |
31214 | else | |
31215 | echo "$as_me: failed program was:" >&5 | |
31216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31217 | ||
82eaf560 | 31218 | ac_cv_lib_m_j1f=no |
158e0e64 | 31219 | fi |
82eaf560 | 31220 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31221 | conftest$ac_exeext conftest.$ac_ext |
31222 | LIBS=$ac_check_lib_save_LIBS | |
31223 | fi | |
82eaf560 | 31224 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5 |
31225 | echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6 | |
d213114b | 31226 | if test $ac_cv_lib_m_j1f = yes; then |
158e0e64 | 31227 | |
31228 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31229 | #define HAVE_J1F 1 |
158e0e64 | 31230 | _ACEOF |
31231 | ||
31232 | fi | |
31233 | ||
82eaf560 | 31234 | echo "$as_me:$LINENO: checking for j1 in -lm" >&5 |
31235 | echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6 | |
d213114b | 31236 | if test "${ac_cv_lib_m_j1+set}" = set; then |
158e0e64 | 31237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31238 | else | |
31239 | ac_check_lib_save_LIBS=$LIBS | |
31240 | LIBS="-lm $LIBS" | |
b52ee437 | 31241 | if test x$gcc_no_link = xyes; then |
31242 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31243 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31244 | { (exit 1); exit 1; }; } | |
31245 | fi | |
158e0e64 | 31246 | cat >conftest.$ac_ext <<_ACEOF |
31247 | /* confdefs.h. */ | |
31248 | _ACEOF | |
31249 | cat confdefs.h >>conftest.$ac_ext | |
31250 | cat >>conftest.$ac_ext <<_ACEOF | |
31251 | /* end confdefs.h. */ | |
31252 | ||
82eaf560 | 31253 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 31254 | #ifdef __cplusplus |
31255 | extern "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 | 31259 | char j1 (); |
158e0e64 | 31260 | int |
31261 | main () | |
31262 | { | |
82eaf560 | 31263 | j1 (); |
158e0e64 | 31264 | ; |
31265 | return 0; | |
31266 | } | |
31267 | _ACEOF | |
31268 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 31269 | if { (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 | 31291 | else |
31292 | echo "$as_me: failed program was:" >&5 | |
31293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31294 | ||
82eaf560 | 31295 | ac_cv_lib_m_j1=no |
158e0e64 | 31296 | fi |
82eaf560 | 31297 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31298 | conftest$ac_exeext conftest.$ac_ext |
31299 | LIBS=$ac_check_lib_save_LIBS | |
31300 | fi | |
82eaf560 | 31301 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5 |
31302 | echo "${ECHO_T}$ac_cv_lib_m_j1" >&6 | |
d213114b | 31303 | if test $ac_cv_lib_m_j1 = yes; then |
158e0e64 | 31304 | |
31305 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31306 | #define HAVE_J1 1 |
158e0e64 | 31307 | _ACEOF |
31308 | ||
31309 | fi | |
31310 | ||
82eaf560 | 31311 | echo "$as_me:$LINENO: checking for j1l in -lm" >&5 |
31312 | echo $ECHO_N "checking for j1l in -lm... $ECHO_C" >&6 | |
d213114b | 31313 | if test "${ac_cv_lib_m_j1l+set}" = set; then |
158e0e64 | 31314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31315 | else | |
31316 | ac_check_lib_save_LIBS=$LIBS | |
31317 | LIBS="-lm $LIBS" | |
b52ee437 | 31318 | if test x$gcc_no_link = xyes; then |
31319 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31320 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31321 | { (exit 1); exit 1; }; } | |
31322 | fi | |
158e0e64 | 31323 | cat >conftest.$ac_ext <<_ACEOF |
31324 | /* confdefs.h. */ | |
31325 | _ACEOF | |
31326 | cat confdefs.h >>conftest.$ac_ext | |
31327 | cat >>conftest.$ac_ext <<_ACEOF | |
31328 | /* end confdefs.h. */ | |
31329 | ||
82eaf560 | 31330 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 31331 | #ifdef __cplusplus |
31332 | extern "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 | 31336 | char j1l (); |
158e0e64 | 31337 | int |
31338 | main () | |
31339 | { | |
82eaf560 | 31340 | j1l (); |
158e0e64 | 31341 | ; |
31342 | return 0; | |
31343 | } | |
31344 | _ACEOF | |
31345 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 31346 | if { (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 | 31368 | else |
31369 | echo "$as_me: failed program was:" >&5 | |
31370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31371 | ||
82eaf560 | 31372 | ac_cv_lib_m_j1l=no |
158e0e64 | 31373 | fi |
82eaf560 | 31374 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31375 | conftest$ac_exeext conftest.$ac_ext |
31376 | LIBS=$ac_check_lib_save_LIBS | |
31377 | fi | |
82eaf560 | 31378 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1l" >&5 |
31379 | echo "${ECHO_T}$ac_cv_lib_m_j1l" >&6 | |
d213114b | 31380 | if test $ac_cv_lib_m_j1l = yes; then |
158e0e64 | 31381 | |
31382 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31383 | #define HAVE_J1L 1 |
158e0e64 | 31384 | _ACEOF |
31385 | ||
31386 | fi | |
31387 | ||
82eaf560 | 31388 | echo "$as_me:$LINENO: checking for jnf in -lm" >&5 |
31389 | echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6 | |
d213114b | 31390 | if test "${ac_cv_lib_m_jnf+set}" = set; then |
158e0e64 | 31391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31392 | else | |
31393 | ac_check_lib_save_LIBS=$LIBS | |
31394 | LIBS="-lm $LIBS" | |
b52ee437 | 31395 | if test x$gcc_no_link = xyes; then |
31396 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31397 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31398 | { (exit 1); exit 1; }; } | |
31399 | fi | |
158e0e64 | 31400 | cat >conftest.$ac_ext <<_ACEOF |
31401 | /* confdefs.h. */ | |
31402 | _ACEOF | |
31403 | cat confdefs.h >>conftest.$ac_ext | |
31404 | cat >>conftest.$ac_ext <<_ACEOF | |
31405 | /* end confdefs.h. */ | |
31406 | ||
82eaf560 | 31407 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 31408 | #ifdef __cplusplus |
31409 | extern "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 | 31413 | char jnf (); |
158e0e64 | 31414 | int |
31415 | main () | |
31416 | { | |
82eaf560 | 31417 | jnf (); |
158e0e64 | 31418 | ; |
31419 | return 0; | |
31420 | } | |
31421 | _ACEOF | |
31422 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 31423 | if { (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 | 31445 | else |
31446 | echo "$as_me: failed program was:" >&5 | |
31447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31448 | ||
82eaf560 | 31449 | ac_cv_lib_m_jnf=no |
158e0e64 | 31450 | fi |
82eaf560 | 31451 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31452 | conftest$ac_exeext conftest.$ac_ext |
31453 | LIBS=$ac_check_lib_save_LIBS | |
31454 | fi | |
82eaf560 | 31455 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5 |
31456 | echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6 | |
d213114b | 31457 | if test $ac_cv_lib_m_jnf = yes; then |
158e0e64 | 31458 | |
31459 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31460 | #define HAVE_JNF 1 |
158e0e64 | 31461 | _ACEOF |
31462 | ||
31463 | fi | |
31464 | ||
82eaf560 | 31465 | echo "$as_me:$LINENO: checking for jn in -lm" >&5 |
31466 | echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6 | |
d213114b | 31467 | if test "${ac_cv_lib_m_jn+set}" = set; then |
158e0e64 | 31468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31469 | else | |
31470 | ac_check_lib_save_LIBS=$LIBS | |
31471 | LIBS="-lm $LIBS" | |
b52ee437 | 31472 | if test x$gcc_no_link = xyes; then |
31473 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31474 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31475 | { (exit 1); exit 1; }; } | |
31476 | fi | |
158e0e64 | 31477 | cat >conftest.$ac_ext <<_ACEOF |
31478 | /* confdefs.h. */ | |
31479 | _ACEOF | |
31480 | cat confdefs.h >>conftest.$ac_ext | |
31481 | cat >>conftest.$ac_ext <<_ACEOF | |
31482 | /* end confdefs.h. */ | |
31483 | ||
82eaf560 | 31484 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 31485 | #ifdef __cplusplus |
31486 | extern "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 | 31490 | char jn (); |
158e0e64 | 31491 | int |
31492 | main () | |
31493 | { | |
82eaf560 | 31494 | jn (); |
158e0e64 | 31495 | ; |
31496 | return 0; | |
31497 | } | |
31498 | _ACEOF | |
31499 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 31500 | if { (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 | 31522 | else |
31523 | echo "$as_me: failed program was:" >&5 | |
31524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31525 | ||
82eaf560 | 31526 | ac_cv_lib_m_jn=no |
158e0e64 | 31527 | fi |
82eaf560 | 31528 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31529 | conftest$ac_exeext conftest.$ac_ext |
31530 | LIBS=$ac_check_lib_save_LIBS | |
31531 | fi | |
82eaf560 | 31532 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5 |
31533 | echo "${ECHO_T}$ac_cv_lib_m_jn" >&6 | |
d213114b | 31534 | if test $ac_cv_lib_m_jn = yes; then |
158e0e64 | 31535 | |
31536 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31537 | #define HAVE_JN 1 |
158e0e64 | 31538 | _ACEOF |
31539 | ||
31540 | fi | |
31541 | ||
82eaf560 | 31542 | echo "$as_me:$LINENO: checking for jnl in -lm" >&5 |
31543 | echo $ECHO_N "checking for jnl in -lm... $ECHO_C" >&6 | |
d213114b | 31544 | if test "${ac_cv_lib_m_jnl+set}" = set; then |
158e0e64 | 31545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31546 | else | |
31547 | ac_check_lib_save_LIBS=$LIBS | |
31548 | LIBS="-lm $LIBS" | |
b52ee437 | 31549 | if test x$gcc_no_link = xyes; then |
31550 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31551 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31552 | { (exit 1); exit 1; }; } | |
31553 | fi | |
158e0e64 | 31554 | cat >conftest.$ac_ext <<_ACEOF |
31555 | /* confdefs.h. */ | |
31556 | _ACEOF | |
31557 | cat confdefs.h >>conftest.$ac_ext | |
31558 | cat >>conftest.$ac_ext <<_ACEOF | |
31559 | /* end confdefs.h. */ | |
31560 | ||
82eaf560 | 31561 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 31562 | #ifdef __cplusplus |
31563 | extern "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 | 31567 | char jnl (); |
158e0e64 | 31568 | int |
31569 | main () | |
31570 | { | |
82eaf560 | 31571 | jnl (); |
158e0e64 | 31572 | ; |
31573 | return 0; | |
31574 | } | |
31575 | _ACEOF | |
31576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 31577 | if { (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 | 31599 | else |
31600 | echo "$as_me: failed program was:" >&5 | |
31601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31602 | ||
82eaf560 | 31603 | ac_cv_lib_m_jnl=no |
158e0e64 | 31604 | fi |
82eaf560 | 31605 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31606 | conftest$ac_exeext conftest.$ac_ext |
31607 | LIBS=$ac_check_lib_save_LIBS | |
31608 | fi | |
82eaf560 | 31609 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnl" >&5 |
31610 | echo "${ECHO_T}$ac_cv_lib_m_jnl" >&6 | |
d213114b | 31611 | if test $ac_cv_lib_m_jnl = yes; then |
158e0e64 | 31612 | |
31613 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31614 | #define HAVE_JNL 1 |
158e0e64 | 31615 | _ACEOF |
31616 | ||
31617 | fi | |
31618 | ||
82eaf560 | 31619 | echo "$as_me:$LINENO: checking for y0f in -lm" >&5 |
31620 | echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6 | |
d213114b | 31621 | if test "${ac_cv_lib_m_y0f+set}" = set; then |
158e0e64 | 31622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31623 | else | |
31624 | ac_check_lib_save_LIBS=$LIBS | |
31625 | LIBS="-lm $LIBS" | |
b52ee437 | 31626 | if test x$gcc_no_link = xyes; then |
31627 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31628 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31629 | { (exit 1); exit 1; }; } | |
31630 | fi | |
158e0e64 | 31631 | cat >conftest.$ac_ext <<_ACEOF |
31632 | /* confdefs.h. */ | |
31633 | _ACEOF | |
31634 | cat confdefs.h >>conftest.$ac_ext | |
31635 | cat >>conftest.$ac_ext <<_ACEOF | |
31636 | /* end confdefs.h. */ | |
31637 | ||
82eaf560 | 31638 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 31639 | #ifdef __cplusplus |
31640 | extern "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 | 31644 | char y0f (); |
158e0e64 | 31645 | int |
31646 | main () | |
31647 | { | |
82eaf560 | 31648 | y0f (); |
158e0e64 | 31649 | ; |
31650 | return 0; | |
31651 | } | |
31652 | _ACEOF | |
31653 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 31654 | if { (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 | 31676 | else |
31677 | echo "$as_me: failed program was:" >&5 | |
31678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31679 | ||
82eaf560 | 31680 | ac_cv_lib_m_y0f=no |
158e0e64 | 31681 | fi |
82eaf560 | 31682 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31683 | conftest$ac_exeext conftest.$ac_ext |
31684 | LIBS=$ac_check_lib_save_LIBS | |
31685 | fi | |
82eaf560 | 31686 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5 |
31687 | echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6 | |
d213114b | 31688 | if test $ac_cv_lib_m_y0f = yes; then |
158e0e64 | 31689 | |
31690 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31691 | #define HAVE_Y0F 1 |
158e0e64 | 31692 | _ACEOF |
31693 | ||
31694 | fi | |
31695 | ||
82eaf560 | 31696 | echo "$as_me:$LINENO: checking for y0 in -lm" >&5 |
31697 | echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6 | |
d213114b | 31698 | if test "${ac_cv_lib_m_y0+set}" = set; then |
158e0e64 | 31699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31700 | else | |
31701 | ac_check_lib_save_LIBS=$LIBS | |
31702 | LIBS="-lm $LIBS" | |
b52ee437 | 31703 | if test x$gcc_no_link = xyes; then |
31704 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31705 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31706 | { (exit 1); exit 1; }; } | |
31707 | fi | |
158e0e64 | 31708 | cat >conftest.$ac_ext <<_ACEOF |
31709 | /* confdefs.h. */ | |
31710 | _ACEOF | |
31711 | cat confdefs.h >>conftest.$ac_ext | |
31712 | cat >>conftest.$ac_ext <<_ACEOF | |
31713 | /* end confdefs.h. */ | |
31714 | ||
82eaf560 | 31715 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 31716 | #ifdef __cplusplus |
31717 | extern "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 | 31721 | char y0 (); |
158e0e64 | 31722 | int |
31723 | main () | |
31724 | { | |
82eaf560 | 31725 | y0 (); |
158e0e64 | 31726 | ; |
31727 | return 0; | |
31728 | } | |
31729 | _ACEOF | |
31730 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 31731 | if { (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 | 31753 | else |
31754 | echo "$as_me: failed program was:" >&5 | |
31755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31756 | ||
82eaf560 | 31757 | ac_cv_lib_m_y0=no |
158e0e64 | 31758 | fi |
82eaf560 | 31759 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31760 | conftest$ac_exeext conftest.$ac_ext |
31761 | LIBS=$ac_check_lib_save_LIBS | |
31762 | fi | |
82eaf560 | 31763 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5 |
31764 | echo "${ECHO_T}$ac_cv_lib_m_y0" >&6 | |
d213114b | 31765 | if test $ac_cv_lib_m_y0 = yes; then |
158e0e64 | 31766 | |
31767 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31768 | #define HAVE_Y0 1 |
158e0e64 | 31769 | _ACEOF |
31770 | ||
31771 | fi | |
31772 | ||
82eaf560 | 31773 | echo "$as_me:$LINENO: checking for y0l in -lm" >&5 |
31774 | echo $ECHO_N "checking for y0l in -lm... $ECHO_C" >&6 | |
d213114b | 31775 | if test "${ac_cv_lib_m_y0l+set}" = set; then |
158e0e64 | 31776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31777 | else | |
31778 | ac_check_lib_save_LIBS=$LIBS | |
31779 | LIBS="-lm $LIBS" | |
b52ee437 | 31780 | if test x$gcc_no_link = xyes; then |
31781 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31782 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31783 | { (exit 1); exit 1; }; } | |
31784 | fi | |
158e0e64 | 31785 | cat >conftest.$ac_ext <<_ACEOF |
31786 | /* confdefs.h. */ | |
31787 | _ACEOF | |
31788 | cat confdefs.h >>conftest.$ac_ext | |
31789 | cat >>conftest.$ac_ext <<_ACEOF | |
31790 | /* end confdefs.h. */ | |
31791 | ||
82eaf560 | 31792 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 31793 | #ifdef __cplusplus |
31794 | extern "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 | 31798 | char y0l (); |
158e0e64 | 31799 | int |
31800 | main () | |
31801 | { | |
82eaf560 | 31802 | y0l (); |
158e0e64 | 31803 | ; |
31804 | return 0; | |
31805 | } | |
31806 | _ACEOF | |
31807 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 31808 | if { (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 | 31830 | else |
31831 | echo "$as_me: failed program was:" >&5 | |
31832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31833 | ||
82eaf560 | 31834 | ac_cv_lib_m_y0l=no |
158e0e64 | 31835 | fi |
82eaf560 | 31836 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31837 | conftest$ac_exeext conftest.$ac_ext |
31838 | LIBS=$ac_check_lib_save_LIBS | |
31839 | fi | |
82eaf560 | 31840 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0l" >&5 |
31841 | echo "${ECHO_T}$ac_cv_lib_m_y0l" >&6 | |
d213114b | 31842 | if test $ac_cv_lib_m_y0l = yes; then |
158e0e64 | 31843 | |
31844 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31845 | #define HAVE_Y0L 1 |
158e0e64 | 31846 | _ACEOF |
31847 | ||
31848 | fi | |
31849 | ||
82eaf560 | 31850 | echo "$as_me:$LINENO: checking for y1f in -lm" >&5 |
31851 | echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6 | |
d213114b | 31852 | if test "${ac_cv_lib_m_y1f+set}" = set; then |
158e0e64 | 31853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31854 | else | |
31855 | ac_check_lib_save_LIBS=$LIBS | |
31856 | LIBS="-lm $LIBS" | |
b52ee437 | 31857 | if test x$gcc_no_link = xyes; then |
31858 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31859 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31860 | { (exit 1); exit 1; }; } | |
31861 | fi | |
158e0e64 | 31862 | cat >conftest.$ac_ext <<_ACEOF |
31863 | /* confdefs.h. */ | |
31864 | _ACEOF | |
31865 | cat confdefs.h >>conftest.$ac_ext | |
31866 | cat >>conftest.$ac_ext <<_ACEOF | |
31867 | /* end confdefs.h. */ | |
31868 | ||
82eaf560 | 31869 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 31870 | #ifdef __cplusplus |
31871 | extern "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 | 31875 | char y1f (); |
158e0e64 | 31876 | int |
31877 | main () | |
31878 | { | |
82eaf560 | 31879 | y1f (); |
158e0e64 | 31880 | ; |
31881 | return 0; | |
31882 | } | |
31883 | _ACEOF | |
31884 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 31885 | if { (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 | 31907 | else |
31908 | echo "$as_me: failed program was:" >&5 | |
31909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31910 | ||
82eaf560 | 31911 | ac_cv_lib_m_y1f=no |
158e0e64 | 31912 | fi |
82eaf560 | 31913 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31914 | conftest$ac_exeext conftest.$ac_ext |
31915 | LIBS=$ac_check_lib_save_LIBS | |
31916 | fi | |
82eaf560 | 31917 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5 |
31918 | echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6 | |
d213114b | 31919 | if test $ac_cv_lib_m_y1f = yes; then |
158e0e64 | 31920 | |
31921 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31922 | #define HAVE_Y1F 1 |
158e0e64 | 31923 | _ACEOF |
31924 | ||
31925 | fi | |
31926 | ||
82eaf560 | 31927 | echo "$as_me:$LINENO: checking for y1 in -lm" >&5 |
31928 | echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6 | |
d213114b | 31929 | if test "${ac_cv_lib_m_y1+set}" = set; then |
158e0e64 | 31930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31931 | else | |
31932 | ac_check_lib_save_LIBS=$LIBS | |
31933 | LIBS="-lm $LIBS" | |
b52ee437 | 31934 | if test x$gcc_no_link = xyes; then |
31935 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
31936 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
31937 | { (exit 1); exit 1; }; } | |
31938 | fi | |
158e0e64 | 31939 | cat >conftest.$ac_ext <<_ACEOF |
31940 | /* confdefs.h. */ | |
31941 | _ACEOF | |
31942 | cat confdefs.h >>conftest.$ac_ext | |
31943 | cat >>conftest.$ac_ext <<_ACEOF | |
31944 | /* end confdefs.h. */ | |
31945 | ||
82eaf560 | 31946 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 31947 | #ifdef __cplusplus |
31948 | extern "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 | 31952 | char y1 (); |
158e0e64 | 31953 | int |
31954 | main () | |
31955 | { | |
82eaf560 | 31956 | y1 (); |
158e0e64 | 31957 | ; |
31958 | return 0; | |
31959 | } | |
31960 | _ACEOF | |
31961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 31962 | if { (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 | 31984 | else |
31985 | echo "$as_me: failed program was:" >&5 | |
31986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31987 | ||
82eaf560 | 31988 | ac_cv_lib_m_y1=no |
158e0e64 | 31989 | fi |
82eaf560 | 31990 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 31991 | conftest$ac_exeext conftest.$ac_ext |
31992 | LIBS=$ac_check_lib_save_LIBS | |
31993 | fi | |
82eaf560 | 31994 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5 |
31995 | echo "${ECHO_T}$ac_cv_lib_m_y1" >&6 | |
d213114b | 31996 | if test $ac_cv_lib_m_y1 = yes; then |
158e0e64 | 31997 | |
31998 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 31999 | #define HAVE_Y1 1 |
158e0e64 | 32000 | _ACEOF |
32001 | ||
32002 | fi | |
32003 | ||
82eaf560 | 32004 | echo "$as_me:$LINENO: checking for y1l in -lm" >&5 |
32005 | echo $ECHO_N "checking for y1l in -lm... $ECHO_C" >&6 | |
d213114b | 32006 | if test "${ac_cv_lib_m_y1l+set}" = set; then |
158e0e64 | 32007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
32008 | else | |
32009 | ac_check_lib_save_LIBS=$LIBS | |
32010 | LIBS="-lm $LIBS" | |
b52ee437 | 32011 | if test x$gcc_no_link = xyes; then |
32012 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
32013 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
32014 | { (exit 1); exit 1; }; } | |
32015 | fi | |
158e0e64 | 32016 | cat >conftest.$ac_ext <<_ACEOF |
32017 | /* confdefs.h. */ | |
32018 | _ACEOF | |
32019 | cat confdefs.h >>conftest.$ac_ext | |
32020 | cat >>conftest.$ac_ext <<_ACEOF | |
32021 | /* end confdefs.h. */ | |
32022 | ||
82eaf560 | 32023 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 32024 | #ifdef __cplusplus |
32025 | extern "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 | 32029 | char y1l (); |
158e0e64 | 32030 | int |
32031 | main () | |
32032 | { | |
82eaf560 | 32033 | y1l (); |
158e0e64 | 32034 | ; |
32035 | return 0; | |
32036 | } | |
32037 | _ACEOF | |
32038 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 32039 | if { (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 | 32061 | else |
32062 | echo "$as_me: failed program was:" >&5 | |
32063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32064 | ||
82eaf560 | 32065 | ac_cv_lib_m_y1l=no |
158e0e64 | 32066 | fi |
82eaf560 | 32067 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 32068 | conftest$ac_exeext conftest.$ac_ext |
32069 | LIBS=$ac_check_lib_save_LIBS | |
32070 | fi | |
82eaf560 | 32071 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1l" >&5 |
32072 | echo "${ECHO_T}$ac_cv_lib_m_y1l" >&6 | |
d213114b | 32073 | if test $ac_cv_lib_m_y1l = yes; then |
158e0e64 | 32074 | |
32075 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 32076 | #define HAVE_Y1L 1 |
158e0e64 | 32077 | _ACEOF |
32078 | ||
32079 | fi | |
32080 | ||
82eaf560 | 32081 | echo "$as_me:$LINENO: checking for ynf in -lm" >&5 |
32082 | echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6 | |
d213114b | 32083 | if test "${ac_cv_lib_m_ynf+set}" = set; then |
158e0e64 | 32084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
32085 | else | |
32086 | ac_check_lib_save_LIBS=$LIBS | |
32087 | LIBS="-lm $LIBS" | |
b52ee437 | 32088 | if test x$gcc_no_link = xyes; then |
32089 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
32090 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
32091 | { (exit 1); exit 1; }; } | |
32092 | fi | |
158e0e64 | 32093 | cat >conftest.$ac_ext <<_ACEOF |
32094 | /* confdefs.h. */ | |
32095 | _ACEOF | |
32096 | cat confdefs.h >>conftest.$ac_ext | |
32097 | cat >>conftest.$ac_ext <<_ACEOF | |
32098 | /* end confdefs.h. */ | |
32099 | ||
82eaf560 | 32100 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 32101 | #ifdef __cplusplus |
32102 | extern "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 | 32106 | char ynf (); |
158e0e64 | 32107 | int |
32108 | main () | |
32109 | { | |
82eaf560 | 32110 | ynf (); |
158e0e64 | 32111 | ; |
32112 | return 0; | |
32113 | } | |
32114 | _ACEOF | |
32115 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 32116 | if { (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 | 32138 | else |
32139 | echo "$as_me: failed program was:" >&5 | |
32140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32141 | ||
82eaf560 | 32142 | ac_cv_lib_m_ynf=no |
158e0e64 | 32143 | fi |
82eaf560 | 32144 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 32145 | conftest$ac_exeext conftest.$ac_ext |
32146 | LIBS=$ac_check_lib_save_LIBS | |
32147 | fi | |
82eaf560 | 32148 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5 |
32149 | echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6 | |
d213114b | 32150 | if test $ac_cv_lib_m_ynf = yes; then |
158e0e64 | 32151 | |
32152 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 32153 | #define HAVE_YNF 1 |
158e0e64 | 32154 | _ACEOF |
32155 | ||
32156 | fi | |
32157 | ||
82eaf560 | 32158 | echo "$as_me:$LINENO: checking for yn in -lm" >&5 |
32159 | echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6 | |
158e0e64 | 32160 | if test "${ac_cv_lib_m_yn+set}" = set; then |
32161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32162 | else | |
32163 | ac_check_lib_save_LIBS=$LIBS | |
32164 | LIBS="-lm $LIBS" | |
b52ee437 | 32165 | if test x$gcc_no_link = xyes; then |
32166 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
32167 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
32168 | { (exit 1); exit 1; }; } | |
32169 | fi | |
158e0e64 | 32170 | cat >conftest.$ac_ext <<_ACEOF |
32171 | /* confdefs.h. */ | |
32172 | _ACEOF | |
32173 | cat confdefs.h >>conftest.$ac_ext | |
32174 | cat >>conftest.$ac_ext <<_ACEOF | |
32175 | /* end confdefs.h. */ | |
32176 | ||
82eaf560 | 32177 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 32178 | #ifdef __cplusplus |
32179 | extern "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 | 32183 | char yn (); |
32184 | int | |
32185 | main () | |
32186 | { | |
82eaf560 | 32187 | yn (); |
158e0e64 | 32188 | ; |
32189 | return 0; | |
32190 | } | |
32191 | _ACEOF | |
32192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 32193 | if { (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 |
32215 | else | |
32216 | echo "$as_me: failed program was:" >&5 | |
32217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32218 | ||
82eaf560 | 32219 | ac_cv_lib_m_yn=no |
158e0e64 | 32220 | fi |
82eaf560 | 32221 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 32222 | conftest$ac_exeext conftest.$ac_ext |
32223 | LIBS=$ac_check_lib_save_LIBS | |
32224 | fi | |
82eaf560 | 32225 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5 |
32226 | echo "${ECHO_T}$ac_cv_lib_m_yn" >&6 | |
158e0e64 | 32227 | if test $ac_cv_lib_m_yn = yes; then |
32228 | ||
32229 | cat >>confdefs.h <<\_ACEOF | |
32230 | #define HAVE_YN 1 | |
32231 | _ACEOF | |
32232 | ||
32233 | fi | |
32234 | ||
82eaf560 | 32235 | echo "$as_me:$LINENO: checking for ynl in -lm" >&5 |
32236 | echo $ECHO_N "checking for ynl in -lm... $ECHO_C" >&6 | |
d213114b | 32237 | if test "${ac_cv_lib_m_ynl+set}" = set; then |
158e0e64 | 32238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
32239 | else | |
32240 | ac_check_lib_save_LIBS=$LIBS | |
32241 | LIBS="-lm $LIBS" | |
b52ee437 | 32242 | if test x$gcc_no_link = xyes; then |
32243 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
32244 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
32245 | { (exit 1); exit 1; }; } | |
32246 | fi | |
158e0e64 | 32247 | cat >conftest.$ac_ext <<_ACEOF |
32248 | /* confdefs.h. */ | |
32249 | _ACEOF | |
32250 | cat confdefs.h >>conftest.$ac_ext | |
32251 | cat >>conftest.$ac_ext <<_ACEOF | |
32252 | /* end confdefs.h. */ | |
32253 | ||
82eaf560 | 32254 | /* Override any gcc2 internal prototype to avoid an error. */ |
158e0e64 | 32255 | #ifdef __cplusplus |
32256 | extern "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 | 32260 | char ynl (); |
158e0e64 | 32261 | int |
32262 | main () | |
32263 | { | |
82eaf560 | 32264 | ynl (); |
158e0e64 | 32265 | ; |
32266 | return 0; | |
32267 | } | |
32268 | _ACEOF | |
32269 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 32270 | if { (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 | 32292 | else |
32293 | echo "$as_me: failed program was:" >&5 | |
32294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32295 | ||
82eaf560 | 32296 | ac_cv_lib_m_ynl=no |
158e0e64 | 32297 | fi |
82eaf560 | 32298 | rm -f conftest.err conftest.$ac_objext \ |
158e0e64 | 32299 | conftest$ac_exeext conftest.$ac_ext |
32300 | LIBS=$ac_check_lib_save_LIBS | |
32301 | fi | |
82eaf560 | 32302 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynl" >&5 |
32303 | echo "${ECHO_T}$ac_cv_lib_m_ynl" >&6 | |
d213114b | 32304 | if test $ac_cv_lib_m_ynl = yes; then |
158e0e64 | 32305 | |
32306 | cat >>confdefs.h <<\_ACEOF | |
d213114b | 32307 | #define HAVE_YNL 1 |
158e0e64 | 32308 | _ACEOF |
32309 | ||
32310 | fi | |
32311 | ||
82eaf560 | 32312 | echo "$as_me:$LINENO: checking for tgamma in -lm" >&5 |
32313 | echo $ECHO_N "checking for tgamma in -lm... $ECHO_C" >&6 | |
6d516d29 | 32314 | if test "${ac_cv_lib_m_tgamma+set}" = set; then |
32315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32316 | else | |
32317 | ac_check_lib_save_LIBS=$LIBS | |
32318 | LIBS="-lm $LIBS" | |
32319 | if test x$gcc_no_link = xyes; then | |
32320 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
32321 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
32322 | { (exit 1); exit 1; }; } | |
32323 | fi | |
32324 | cat >conftest.$ac_ext <<_ACEOF | |
32325 | /* confdefs.h. */ | |
32326 | _ACEOF | |
32327 | cat confdefs.h >>conftest.$ac_ext | |
32328 | cat >>conftest.$ac_ext <<_ACEOF | |
32329 | /* end confdefs.h. */ | |
32330 | ||
82eaf560 | 32331 | /* Override any gcc2 internal prototype to avoid an error. */ |
6d516d29 | 32332 | #ifdef __cplusplus |
32333 | extern "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 | 32337 | char tgamma (); |
32338 | int | |
32339 | main () | |
32340 | { | |
82eaf560 | 32341 | tgamma (); |
6d516d29 | 32342 | ; |
32343 | return 0; | |
32344 | } | |
32345 | _ACEOF | |
32346 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 32347 | if { (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 |
32369 | else | |
32370 | echo "$as_me: failed program was:" >&5 | |
32371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32372 | ||
82eaf560 | 32373 | ac_cv_lib_m_tgamma=no |
6d516d29 | 32374 | fi |
82eaf560 | 32375 | rm -f conftest.err conftest.$ac_objext \ |
6d516d29 | 32376 | conftest$ac_exeext conftest.$ac_ext |
32377 | LIBS=$ac_check_lib_save_LIBS | |
32378 | fi | |
82eaf560 | 32379 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tgamma" >&5 |
32380 | echo "${ECHO_T}$ac_cv_lib_m_tgamma" >&6 | |
6d516d29 | 32381 | if test $ac_cv_lib_m_tgamma = yes; then |
32382 | ||
32383 | cat >>confdefs.h <<\_ACEOF | |
32384 | #define HAVE_TGAMMA 1 | |
32385 | _ACEOF | |
32386 | ||
32387 | fi | |
32388 | ||
82eaf560 | 32389 | echo "$as_me:$LINENO: checking for tgammaf in -lm" >&5 |
32390 | echo $ECHO_N "checking for tgammaf in -lm... $ECHO_C" >&6 | |
6d516d29 | 32391 | if test "${ac_cv_lib_m_tgammaf+set}" = set; then |
32392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32393 | else | |
32394 | ac_check_lib_save_LIBS=$LIBS | |
32395 | LIBS="-lm $LIBS" | |
32396 | if test x$gcc_no_link = xyes; then | |
32397 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
32398 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
32399 | { (exit 1); exit 1; }; } | |
32400 | fi | |
32401 | cat >conftest.$ac_ext <<_ACEOF | |
32402 | /* confdefs.h. */ | |
32403 | _ACEOF | |
32404 | cat confdefs.h >>conftest.$ac_ext | |
32405 | cat >>conftest.$ac_ext <<_ACEOF | |
32406 | /* end confdefs.h. */ | |
32407 | ||
82eaf560 | 32408 | /* Override any gcc2 internal prototype to avoid an error. */ |
6d516d29 | 32409 | #ifdef __cplusplus |
32410 | extern "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 | 32414 | char tgammaf (); |
32415 | int | |
32416 | main () | |
32417 | { | |
82eaf560 | 32418 | tgammaf (); |
6d516d29 | 32419 | ; |
32420 | return 0; | |
32421 | } | |
32422 | _ACEOF | |
32423 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 32424 | if { (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 |
32446 | else | |
32447 | echo "$as_me: failed program was:" >&5 | |
32448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32449 | ||
82eaf560 | 32450 | ac_cv_lib_m_tgammaf=no |
6d516d29 | 32451 | fi |
82eaf560 | 32452 | rm -f conftest.err conftest.$ac_objext \ |
6d516d29 | 32453 | conftest$ac_exeext conftest.$ac_ext |
32454 | LIBS=$ac_check_lib_save_LIBS | |
32455 | fi | |
82eaf560 | 32456 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tgammaf" >&5 |
32457 | echo "${ECHO_T}$ac_cv_lib_m_tgammaf" >&6 | |
6d516d29 | 32458 | if test $ac_cv_lib_m_tgammaf = yes; then |
32459 | ||
32460 | cat >>confdefs.h <<\_ACEOF | |
32461 | #define HAVE_TGAMMAF 1 | |
32462 | _ACEOF | |
32463 | ||
32464 | fi | |
32465 | ||
82eaf560 | 32466 | echo "$as_me:$LINENO: checking for tgammal in -lm" >&5 |
32467 | echo $ECHO_N "checking for tgammal in -lm... $ECHO_C" >&6 | |
6d516d29 | 32468 | if test "${ac_cv_lib_m_tgammal+set}" = set; then |
32469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32470 | else | |
32471 | ac_check_lib_save_LIBS=$LIBS | |
32472 | LIBS="-lm $LIBS" | |
32473 | if test x$gcc_no_link = xyes; then | |
32474 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
32475 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
32476 | { (exit 1); exit 1; }; } | |
32477 | fi | |
32478 | cat >conftest.$ac_ext <<_ACEOF | |
32479 | /* confdefs.h. */ | |
32480 | _ACEOF | |
32481 | cat confdefs.h >>conftest.$ac_ext | |
32482 | cat >>conftest.$ac_ext <<_ACEOF | |
32483 | /* end confdefs.h. */ | |
32484 | ||
82eaf560 | 32485 | /* Override any gcc2 internal prototype to avoid an error. */ |
6d516d29 | 32486 | #ifdef __cplusplus |
32487 | extern "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 | 32491 | char tgammal (); |
32492 | int | |
32493 | main () | |
32494 | { | |
82eaf560 | 32495 | tgammal (); |
6d516d29 | 32496 | ; |
32497 | return 0; | |
32498 | } | |
32499 | _ACEOF | |
32500 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 32501 | if { (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 |
32523 | else | |
32524 | echo "$as_me: failed program was:" >&5 | |
32525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32526 | ||
82eaf560 | 32527 | ac_cv_lib_m_tgammal=no |
6d516d29 | 32528 | fi |
82eaf560 | 32529 | rm -f conftest.err conftest.$ac_objext \ |
6d516d29 | 32530 | conftest$ac_exeext conftest.$ac_ext |
32531 | LIBS=$ac_check_lib_save_LIBS | |
32532 | fi | |
82eaf560 | 32533 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tgammal" >&5 |
32534 | echo "${ECHO_T}$ac_cv_lib_m_tgammal" >&6 | |
6d516d29 | 32535 | if test $ac_cv_lib_m_tgammal = yes; then |
32536 | ||
32537 | cat >>confdefs.h <<\_ACEOF | |
32538 | #define HAVE_TGAMMAL 1 | |
32539 | _ACEOF | |
32540 | ||
32541 | fi | |
32542 | ||
82eaf560 | 32543 | echo "$as_me:$LINENO: checking for lgamma in -lm" >&5 |
32544 | echo $ECHO_N "checking for lgamma in -lm... $ECHO_C" >&6 | |
6d516d29 | 32545 | if test "${ac_cv_lib_m_lgamma+set}" = set; then |
32546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32547 | else | |
32548 | ac_check_lib_save_LIBS=$LIBS | |
32549 | LIBS="-lm $LIBS" | |
32550 | if test x$gcc_no_link = xyes; then | |
32551 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
32552 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
32553 | { (exit 1); exit 1; }; } | |
32554 | fi | |
32555 | cat >conftest.$ac_ext <<_ACEOF | |
32556 | /* confdefs.h. */ | |
32557 | _ACEOF | |
32558 | cat confdefs.h >>conftest.$ac_ext | |
32559 | cat >>conftest.$ac_ext <<_ACEOF | |
32560 | /* end confdefs.h. */ | |
32561 | ||
82eaf560 | 32562 | /* Override any gcc2 internal prototype to avoid an error. */ |
6d516d29 | 32563 | #ifdef __cplusplus |
32564 | extern "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 | 32568 | char lgamma (); |
32569 | int | |
32570 | main () | |
32571 | { | |
82eaf560 | 32572 | lgamma (); |
6d516d29 | 32573 | ; |
32574 | return 0; | |
32575 | } | |
32576 | _ACEOF | |
32577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 32578 | if { (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 |
32600 | else | |
32601 | echo "$as_me: failed program was:" >&5 | |
32602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32603 | ||
82eaf560 | 32604 | ac_cv_lib_m_lgamma=no |
6d516d29 | 32605 | fi |
82eaf560 | 32606 | rm -f conftest.err conftest.$ac_objext \ |
6d516d29 | 32607 | conftest$ac_exeext conftest.$ac_ext |
32608 | LIBS=$ac_check_lib_save_LIBS | |
32609 | fi | |
82eaf560 | 32610 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_lgamma" >&5 |
32611 | echo "${ECHO_T}$ac_cv_lib_m_lgamma" >&6 | |
6d516d29 | 32612 | if test $ac_cv_lib_m_lgamma = yes; then |
32613 | ||
32614 | cat >>confdefs.h <<\_ACEOF | |
32615 | #define HAVE_LGAMMA 1 | |
32616 | _ACEOF | |
32617 | ||
32618 | fi | |
32619 | ||
82eaf560 | 32620 | echo "$as_me:$LINENO: checking for lgammaf in -lm" >&5 |
32621 | echo $ECHO_N "checking for lgammaf in -lm... $ECHO_C" >&6 | |
6d516d29 | 32622 | if test "${ac_cv_lib_m_lgammaf+set}" = set; then |
32623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32624 | else | |
32625 | ac_check_lib_save_LIBS=$LIBS | |
32626 | LIBS="-lm $LIBS" | |
32627 | if test x$gcc_no_link = xyes; then | |
32628 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
32629 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
32630 | { (exit 1); exit 1; }; } | |
32631 | fi | |
32632 | cat >conftest.$ac_ext <<_ACEOF | |
32633 | /* confdefs.h. */ | |
32634 | _ACEOF | |
32635 | cat confdefs.h >>conftest.$ac_ext | |
32636 | cat >>conftest.$ac_ext <<_ACEOF | |
32637 | /* end confdefs.h. */ | |
32638 | ||
82eaf560 | 32639 | /* Override any gcc2 internal prototype to avoid an error. */ |
6d516d29 | 32640 | #ifdef __cplusplus |
32641 | extern "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 | 32645 | char lgammaf (); |
32646 | int | |
32647 | main () | |
32648 | { | |
82eaf560 | 32649 | lgammaf (); |
6d516d29 | 32650 | ; |
32651 | return 0; | |
32652 | } | |
32653 | _ACEOF | |
32654 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 32655 | if { (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 |
32677 | else | |
32678 | echo "$as_me: failed program was:" >&5 | |
32679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32680 | ||
82eaf560 | 32681 | ac_cv_lib_m_lgammaf=no |
6d516d29 | 32682 | fi |
82eaf560 | 32683 | rm -f conftest.err conftest.$ac_objext \ |
6d516d29 | 32684 | conftest$ac_exeext conftest.$ac_ext |
32685 | LIBS=$ac_check_lib_save_LIBS | |
32686 | fi | |
82eaf560 | 32687 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_lgammaf" >&5 |
32688 | echo "${ECHO_T}$ac_cv_lib_m_lgammaf" >&6 | |
6d516d29 | 32689 | if test $ac_cv_lib_m_lgammaf = yes; then |
32690 | ||
32691 | cat >>confdefs.h <<\_ACEOF | |
32692 | #define HAVE_LGAMMAF 1 | |
32693 | _ACEOF | |
32694 | ||
32695 | fi | |
32696 | ||
82eaf560 | 32697 | echo "$as_me:$LINENO: checking for lgammal in -lm" >&5 |
32698 | echo $ECHO_N "checking for lgammal in -lm... $ECHO_C" >&6 | |
6d516d29 | 32699 | if test "${ac_cv_lib_m_lgammal+set}" = set; then |
32700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32701 | else | |
32702 | ac_check_lib_save_LIBS=$LIBS | |
32703 | LIBS="-lm $LIBS" | |
32704 | if test x$gcc_no_link = xyes; then | |
32705 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
32706 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
32707 | { (exit 1); exit 1; }; } | |
32708 | fi | |
32709 | cat >conftest.$ac_ext <<_ACEOF | |
32710 | /* confdefs.h. */ | |
32711 | _ACEOF | |
32712 | cat confdefs.h >>conftest.$ac_ext | |
32713 | cat >>conftest.$ac_ext <<_ACEOF | |
32714 | /* end confdefs.h. */ | |
32715 | ||
82eaf560 | 32716 | /* Override any gcc2 internal prototype to avoid an error. */ |
6d516d29 | 32717 | #ifdef __cplusplus |
32718 | extern "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 | 32722 | char lgammal (); |
32723 | int | |
32724 | main () | |
32725 | { | |
82eaf560 | 32726 | lgammal (); |
6d516d29 | 32727 | ; |
32728 | return 0; | |
32729 | } | |
32730 | _ACEOF | |
32731 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 32732 | if { (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 |
32754 | else | |
32755 | echo "$as_me: failed program was:" >&5 | |
32756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32757 | ||
82eaf560 | 32758 | ac_cv_lib_m_lgammal=no |
6d516d29 | 32759 | fi |
82eaf560 | 32760 | rm -f conftest.err conftest.$ac_objext \ |
6d516d29 | 32761 | conftest$ac_exeext conftest.$ac_ext |
32762 | LIBS=$ac_check_lib_save_LIBS | |
32763 | fi | |
82eaf560 | 32764 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_lgammal" >&5 |
32765 | echo "${ECHO_T}$ac_cv_lib_m_lgammal" >&6 | |
6d516d29 | 32766 | if test $ac_cv_lib_m_lgammal = yes; then |
32767 | ||
32768 | cat >>confdefs.h <<\_ACEOF | |
32769 | #define HAVE_LGAMMAL 1 | |
32770 | _ACEOF | |
32771 | ||
32772 | fi | |
32773 | ||
a31bd8a4 | 32774 | |
839904a0 | 32775 | # On AIX, clog is present in libm as __clog |
82eaf560 | 32776 | echo "$as_me:$LINENO: checking for __clog in -lm" >&5 |
32777 | echo $ECHO_N "checking for __clog in -lm... $ECHO_C" >&6 | |
62a413d5 | 32778 | if test "${ac_cv_lib_m___clog+set}" = set; then |
32779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32780 | else | |
32781 | ac_check_lib_save_LIBS=$LIBS | |
32782 | LIBS="-lm $LIBS" | |
32783 | if test x$gcc_no_link = xyes; then | |
32784 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
32785 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
32786 | { (exit 1); exit 1; }; } | |
32787 | fi | |
32788 | cat >conftest.$ac_ext <<_ACEOF | |
32789 | /* confdefs.h. */ | |
32790 | _ACEOF | |
32791 | cat confdefs.h >>conftest.$ac_ext | |
32792 | cat >>conftest.$ac_ext <<_ACEOF | |
32793 | /* end confdefs.h. */ | |
32794 | ||
82eaf560 | 32795 | /* Override any gcc2 internal prototype to avoid an error. */ |
62a413d5 | 32796 | #ifdef __cplusplus |
32797 | extern "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 | 32801 | char __clog (); |
32802 | int | |
32803 | main () | |
32804 | { | |
82eaf560 | 32805 | __clog (); |
62a413d5 | 32806 | ; |
32807 | return 0; | |
32808 | } | |
32809 | _ACEOF | |
32810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 32811 | if { (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 |
32833 | else | |
32834 | echo "$as_me: failed program was:" >&5 | |
32835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32836 | ||
82eaf560 | 32837 | ac_cv_lib_m___clog=no |
62a413d5 | 32838 | fi |
82eaf560 | 32839 | rm -f conftest.err conftest.$ac_objext \ |
62a413d5 | 32840 | conftest$ac_exeext conftest.$ac_ext |
32841 | LIBS=$ac_check_lib_save_LIBS | |
32842 | fi | |
82eaf560 | 32843 | echo "$as_me:$LINENO: result: $ac_cv_lib_m___clog" >&5 |
32844 | echo "${ECHO_T}$ac_cv_lib_m___clog" >&6 | |
62a413d5 | 32845 | if test $ac_cv_lib_m___clog = yes; then |
32846 | ||
32847 | cat >>confdefs.h <<\_ACEOF | |
32848 | #define HAVE_CLOG 1 | |
32849 | _ACEOF | |
32850 | ||
32851 | fi | |
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 |
32857 | echo $ECHO_N "checking whether isfinite is broken... $ECHO_C" >&6 | |
6992582a | 32858 | if test "${libgfor_cv_have_broken_isfinite+set}" = set; then |
839904a0 | 32859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
32860 | else | |
32861 | ||
32862 | libgfor_check_for_broken_isfinite_save_LIBS=$LIBS | |
32863 | LIBS="$LIBS -lm" | |
32864 | if test "$cross_compiling" = yes; then | |
32865 | ||
32866 | case "${target}" in | |
6992582a | 32867 | hppa*-*-hpux*) libgfor_cv_have_broken_isfinite=yes ;; |
32868 | *) libgfor_cv_have_broken_isfinite=no ;; | |
839904a0 | 32869 | esac |
32870 | else | |
32871 | cat >conftest.$ac_ext <<_ACEOF | |
32872 | /* confdefs.h. */ | |
32873 | _ACEOF | |
32874 | cat confdefs.h >>conftest.$ac_ext | |
32875 | cat >>conftest.$ac_ext <<_ACEOF | |
32876 | /* end confdefs.h. */ | |
32877 | ||
839904a0 | 32878 | #include <math.h> |
839904a0 | 32879 | #include <float.h> |
32880 | int 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 | |
32890 | return 0; | |
32891 | } | |
32892 | _ACEOF | |
32893 | rm -f conftest$ac_exeext | |
82eaf560 | 32894 | if { (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 | 32905 | else |
32906 | echo "$as_me: program exited with status $ac_status" >&5 | |
32907 | echo "$as_me: failed program was:" >&5 | |
32908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32909 | ||
32910 | ( exit $ac_status ) | |
6992582a | 32911 | libgfor_cv_have_broken_isfinite=yes |
839904a0 | 32912 | fi |
82eaf560 | 32913 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
839904a0 | 32914 | fi |
32915 | LIBS=$libgfor_check_for_broken_isfinite_save_LIBS | |
32916 | fi | |
6992582a | 32917 | echo "$as_me:$LINENO: result: $libgfor_cv_have_broken_isfinite" >&5 |
32918 | echo "${ECHO_T}$libgfor_cv_have_broken_isfinite" >&6 | |
32919 | if test x"$libgfor_cv_have_broken_isfinite" = xyes; then | |
839904a0 | 32920 | |
32921 | cat >>confdefs.h <<\_ACEOF | |
32922 | #define HAVE_BROKEN_ISFINITE 1 | |
32923 | _ACEOF | |
32924 | ||
32925 | fi | |
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 |
32930 | echo $ECHO_N "checking whether isnan is broken... $ECHO_C" >&6 | |
6992582a | 32931 | if test "${libgfor_cv_have_broken_isnan+set}" = set; then |
839904a0 | 32932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
32933 | else | |
32934 | ||
32935 | libgfor_check_for_broken_isnan_save_LIBS=$LIBS | |
32936 | LIBS="$LIBS -lm" | |
32937 | if test "$cross_compiling" = yes; then | |
32938 | ||
32939 | case "${target}" in | |
6992582a | 32940 | hppa*-*-hpux*) libgfor_cv_have_broken_isnan=yes ;; |
32941 | *) libgfor_cv_have_broken_isnan=no ;; | |
839904a0 | 32942 | esac |
32943 | else | |
32944 | cat >conftest.$ac_ext <<_ACEOF | |
32945 | /* confdefs.h. */ | |
32946 | _ACEOF | |
32947 | cat confdefs.h >>conftest.$ac_ext | |
32948 | cat >>conftest.$ac_ext <<_ACEOF | |
32949 | /* end confdefs.h. */ | |
32950 | ||
839904a0 | 32951 | #include <math.h> |
839904a0 | 32952 | #include <float.h> |
32953 | int 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 | |
32981 | return 0; | |
32982 | } | |
32983 | _ACEOF | |
32984 | rm -f conftest$ac_exeext | |
82eaf560 | 32985 | if { (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 | 32996 | else |
32997 | echo "$as_me: program exited with status $ac_status" >&5 | |
32998 | echo "$as_me: failed program was:" >&5 | |
32999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33000 | ||
33001 | ( exit $ac_status ) | |
6992582a | 33002 | libgfor_cv_have_broken_isnan=yes |
839904a0 | 33003 | fi |
82eaf560 | 33004 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
839904a0 | 33005 | fi |
33006 | LIBS=$libgfor_check_for_broken_isnan_save_LIBS | |
33007 | fi | |
6992582a | 33008 | echo "$as_me:$LINENO: result: $libgfor_cv_have_broken_isnan" >&5 |
33009 | echo "${ECHO_T}$libgfor_cv_have_broken_isnan" >&6 | |
33010 | if test x"$libgfor_cv_have_broken_isnan" = xyes; then | |
839904a0 | 33011 | |
33012 | cat >>confdefs.h <<\_ACEOF | |
33013 | #define HAVE_BROKEN_ISNAN 1 | |
33014 | _ACEOF | |
33015 | ||
33016 | fi | |
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 |
33021 | echo $ECHO_N "checking whether fpclassify is broken... $ECHO_C" >&6 | |
6992582a | 33022 | if test "${libgfor_cv_have_broken_fpclassify+set}" = set; then |
839904a0 | 33023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
33024 | else | |
33025 | ||
33026 | libgfor_check_for_broken_fpclassify_save_LIBS=$LIBS | |
33027 | LIBS="$LIBS -lm" | |
33028 | if test "$cross_compiling" = yes; then | |
33029 | ||
33030 | case "${target}" in | |
6992582a | 33031 | hppa*-*-hpux*) libgfor_cv_have_broken_fpclassify=yes ;; |
33032 | *) libgfor_cv_have_broken_fpclassify=no ;; | |
839904a0 | 33033 | esac |
33034 | else | |
33035 | cat >conftest.$ac_ext <<_ACEOF | |
33036 | /* confdefs.h. */ | |
33037 | _ACEOF | |
33038 | cat confdefs.h >>conftest.$ac_ext | |
33039 | cat >>conftest.$ac_ext <<_ACEOF | |
33040 | /* end confdefs.h. */ | |
33041 | ||
839904a0 | 33042 | #include <math.h> |
839904a0 | 33043 | #include <float.h> |
33044 | int 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 | |
33056 | return 0; | |
33057 | } | |
33058 | _ACEOF | |
33059 | rm -f conftest$ac_exeext | |
82eaf560 | 33060 | if { (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 | 33071 | else |
33072 | echo "$as_me: program exited with status $ac_status" >&5 | |
33073 | echo "$as_me: failed program was:" >&5 | |
33074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33075 | ||
33076 | ( exit $ac_status ) | |
6992582a | 33077 | libgfor_cv_have_broken_fpclassify=yes |
839904a0 | 33078 | fi |
82eaf560 | 33079 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
839904a0 | 33080 | fi |
33081 | LIBS=$libgfor_check_for_broken_fpclassify_save_LIBS | |
33082 | fi | |
6992582a | 33083 | echo "$as_me:$LINENO: result: $libgfor_cv_have_broken_fpclassify" >&5 |
33084 | echo "${ECHO_T}$libgfor_cv_have_broken_fpclassify" >&6 | |
33085 | if test x"$libgfor_cv_have_broken_fpclassify" = xyes; then | |
839904a0 | 33086 | |
33087 | cat >>confdefs.h <<\_ACEOF | |
33088 | #define HAVE_BROKEN_FPCLASSIFY 1 | |
33089 | _ACEOF | |
33090 | ||
33091 | fi | |
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 |
33096 | echo $ECHO_N "checking whether the target stat is reliable... $ECHO_C" >&6 | |
6992582a | 33097 | if test "${libgfor_cv_have_working_stat+set}" = set; then |
daad4fd5 | 33098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
33099 | else | |
33100 | ||
33101 | if test "$cross_compiling" = yes; then | |
33102 | ||
33103 | case "${target}" in | |
6992582a | 33104 | *mingw*) libgfor_cv_have_working_stat=no ;; |
33105 | *) libgfor_cv_have_working_stat=yes;; | |
daad4fd5 | 33106 | esac |
33107 | else | |
33108 | cat >conftest.$ac_ext <<_ACEOF | |
33109 | /* confdefs.h. */ | |
33110 | _ACEOF | |
33111 | cat confdefs.h >>conftest.$ac_ext | |
33112 | cat >>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 | ||
33120 | int 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 | |
33136 | rm -f conftest$ac_exeext | |
82eaf560 | 33137 | if { (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 | 33148 | else |
33149 | echo "$as_me: program exited with status $ac_status" >&5 | |
33150 | echo "$as_me: failed program was:" >&5 | |
33151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33152 | ||
33153 | ( exit $ac_status ) | |
6992582a | 33154 | libgfor_cv_have_working_stat=no |
daad4fd5 | 33155 | fi |
82eaf560 | 33156 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
daad4fd5 | 33157 | fi |
33158 | fi | |
6992582a | 33159 | echo "$as_me:$LINENO: result: $libgfor_cv_have_working_stat" >&5 |
33160 | echo "${ECHO_T}$libgfor_cv_have_working_stat" >&6 | |
33161 | if test x"$libgfor_cv_have_working_stat" = xyes; then | |
daad4fd5 | 33162 | |
33163 | cat >>confdefs.h <<\_ACEOF | |
33164 | #define HAVE_WORKING_STAT 1 | |
33165 | _ACEOF | |
33166 | ||
33167 | fi | |
33168 | ||
3b99ec70 | 33169 | # Check whether __mingw_snprintf() is present |
33170 | ||
82eaf560 | 33171 | echo "$as_me:$LINENO: checking whether __mingw_snprintf is present" >&5 |
33172 | echo $ECHO_N "checking whether __mingw_snprintf is present... $ECHO_C" >&6 | |
6992582a | 33173 | if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then |
3b99ec70 | 33174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
33175 | else | |
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 | |
33179 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
33180 | { (exit 1); exit 1; }; } | |
33181 | fi | |
33182 | cat >conftest.$ac_ext <<_ACEOF | |
33183 | /* confdefs.h. */ | |
33184 | _ACEOF | |
33185 | cat confdefs.h >>conftest.$ac_ext | |
33186 | cat >>conftest.$ac_ext <<_ACEOF | |
33187 | /* end confdefs.h. */ | |
33188 | ||
33189 | #include <stdio.h> | |
33190 | extern int __mingw_snprintf (char *, size_t, const char *, ...); | |
33191 | ||
33192 | int | |
33193 | main () | |
33194 | { | |
33195 | ||
33196 | __mingw_snprintf (NULL, 0, "%d\n", 1); | |
33197 | ||
33198 | ; | |
33199 | return 0; | |
33200 | } | |
33201 | _ACEOF | |
33202 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 33203 | if { (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 | 33225 | else |
33226 | echo "$as_me: failed program was:" >&5 | |
33227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33228 | ||
6992582a | 33229 | eval "libgfor_cv_have_mingw_snprintf=no" |
3b99ec70 | 33230 | fi |
82eaf560 | 33231 | rm -f conftest.err conftest.$ac_objext \ |
3b99ec70 | 33232 | conftest$ac_exeext conftest.$ac_ext |
33233 | ||
33234 | fi | |
6992582a | 33235 | echo "$as_me:$LINENO: result: $libgfor_cv_have_mingw_snprintf" >&5 |
33236 | echo "${ECHO_T}$libgfor_cv_have_mingw_snprintf" >&6 | |
33237 | if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then | |
3b99ec70 | 33238 | |
33239 | cat >>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 | |
33249 | echo $ECHO_N "checking whether powf is broken... $ECHO_C" >&6 | |
33250 | if test "${libgfor_cv_have_broken_powf+set}" = set; then | |
33251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33252 | else | |
33253 | ||
33254 | case "${target}" in | |
33255 | hppa*64*-*-hpux*) libgfor_cv_have_broken_powf=yes ;; | |
33256 | *) libgfor_cv_have_broken_powf=no;; | |
33257 | esac | |
33258 | fi | |
33259 | echo "$as_me:$LINENO: result: $libgfor_cv_have_broken_powf" >&5 | |
33260 | echo "${ECHO_T}$libgfor_cv_have_broken_powf" >&6 | |
33261 | if test x"$libgfor_cv_have_broken_powf" = xyes; then | |
33262 | ||
33263 | cat >>confdefs.h <<\_ACEOF | |
33264 | #define HAVE_BROKEN_POWF 1 | |
33265 | _ACEOF | |
33266 | ||
33267 | fi | |
33268 | ||
33269 | ||
8c84a5de | 33270 | # Check for GNU libc feenableexcept |
82eaf560 | 33271 | echo "$as_me:$LINENO: checking for feenableexcept in -lm" >&5 |
33272 | echo $ECHO_N "checking for feenableexcept in -lm... $ECHO_C" >&6 | |
8c84a5de | 33273 | if test "${ac_cv_lib_m_feenableexcept+set}" = set; then |
33274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33275 | else | |
33276 | ac_check_lib_save_LIBS=$LIBS | |
33277 | LIBS="-lm $LIBS" | |
33278 | if test x$gcc_no_link = xyes; then | |
33279 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
33280 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
33281 | { (exit 1); exit 1; }; } | |
33282 | fi | |
33283 | cat >conftest.$ac_ext <<_ACEOF | |
33284 | /* confdefs.h. */ | |
33285 | _ACEOF | |
33286 | cat confdefs.h >>conftest.$ac_ext | |
33287 | cat >>conftest.$ac_ext <<_ACEOF | |
33288 | /* end confdefs.h. */ | |
33289 | ||
82eaf560 | 33290 | /* Override any gcc2 internal prototype to avoid an error. */ |
8c84a5de | 33291 | #ifdef __cplusplus |
33292 | extern "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 | 33296 | char feenableexcept (); |
33297 | int | |
33298 | main () | |
33299 | { | |
82eaf560 | 33300 | feenableexcept (); |
8c84a5de | 33301 | ; |
33302 | return 0; | |
33303 | } | |
33304 | _ACEOF | |
33305 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 33306 | if { (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 |
33328 | else | |
33329 | echo "$as_me: failed program was:" >&5 | |
33330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33331 | ||
82eaf560 | 33332 | ac_cv_lib_m_feenableexcept=no |
8c84a5de | 33333 | fi |
82eaf560 | 33334 | rm -f conftest.err conftest.$ac_objext \ |
8c84a5de | 33335 | conftest$ac_exeext conftest.$ac_ext |
33336 | LIBS=$ac_check_lib_save_LIBS | |
33337 | fi | |
82eaf560 | 33338 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_feenableexcept" >&5 |
33339 | echo "${ECHO_T}$ac_cv_lib_m_feenableexcept" >&6 | |
8c84a5de | 33340 | if test $ac_cv_lib_m_feenableexcept = yes; then |
33341 | have_feenableexcept=yes | |
33342 | cat >>confdefs.h <<\_ACEOF | |
33343 | #define HAVE_FEENABLEEXCEPT 1 | |
33344 | _ACEOF | |
33345 | ||
33346 | fi | |
33347 | ||
33348 | ||
aaa798ba | 33349 | # Check for SysV fpsetmask |
33350 | ||
82eaf560 | 33351 | echo "$as_me:$LINENO: checking whether fpsetmask is present" >&5 |
33352 | echo $ECHO_N "checking whether fpsetmask is present... $ECHO_C" >&6 | |
6992582a | 33353 | if test "${libgfor_cv_have_fpsetmask+set}" = set; then |
aaa798ba | 33354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
33355 | else | |
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 | |
33359 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
33360 | { (exit 1); exit 1; }; } | |
33361 | fi | |
33362 | cat >conftest.$ac_ext <<_ACEOF | |
33363 | /* confdefs.h. */ | |
33364 | _ACEOF | |
33365 | cat confdefs.h >>conftest.$ac_ext | |
33366 | cat >>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 */ | |
33375 | int | |
33376 | main () | |
33377 | { | |
33378 | fpsetmask(0); | |
33379 | ; | |
33380 | return 0; | |
33381 | } | |
33382 | _ACEOF | |
33383 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 33384 | if { (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 | 33406 | else |
33407 | echo "$as_me: failed program was:" >&5 | |
33408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33409 | ||
6992582a | 33410 | eval "libgfor_cv_have_fpsetmask=no" |
aaa798ba | 33411 | fi |
82eaf560 | 33412 | rm -f conftest.err conftest.$ac_objext \ |
aaa798ba | 33413 | conftest$ac_exeext conftest.$ac_ext |
33414 | ||
33415 | fi | |
6992582a | 33416 | echo "$as_me:$LINENO: result: $libgfor_cv_have_fpsetmask" >&5 |
33417 | echo "${ECHO_T}$libgfor_cv_have_fpsetmask" >&6 | |
33418 | if test x"$libgfor_cv_have_fpsetmask" = xyes; then | |
aaa798ba | 33419 | |
33420 | cat >>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 | 33428 | echo "$as_me:$LINENO: checking for fp_trap" >&5 |
33429 | echo $ECHO_N "checking for fp_trap... $ECHO_C" >&6 | |
aaa798ba | 33430 | if test "${ac_cv_func_fp_trap+set}" = set; then |
33431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33432 | else | |
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 | |
33435 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
33436 | { (exit 1); exit 1; }; } | |
33437 | fi | |
33438 | cat >conftest.$ac_ext <<_ACEOF | |
33439 | /* confdefs.h. */ | |
33440 | _ACEOF | |
33441 | cat confdefs.h >>conftest.$ac_ext | |
33442 | cat >>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 |
33463 | extern "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 | 33468 | char 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 | 33473 | choke me |
82eaf560 | 33474 | #else |
33475 | char (*f) () = fp_trap; | |
33476 | #endif | |
33477 | #ifdef __cplusplus | |
33478 | } | |
aaa798ba | 33479 | #endif |
33480 | ||
33481 | int | |
33482 | main () | |
33483 | { | |
82eaf560 | 33484 | return f != fp_trap; |
aaa798ba | 33485 | ; |
33486 | return 0; | |
33487 | } | |
33488 | _ACEOF | |
33489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 33490 | if { (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 |
33512 | else | |
33513 | echo "$as_me: failed program was:" >&5 | |
33514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33515 | ||
82eaf560 | 33516 | ac_cv_func_fp_trap=no |
aaa798ba | 33517 | fi |
82eaf560 | 33518 | rm -f conftest.err conftest.$ac_objext \ |
aaa798ba | 33519 | conftest$ac_exeext conftest.$ac_ext |
33520 | fi | |
82eaf560 | 33521 | echo "$as_me:$LINENO: result: $ac_cv_func_fp_trap" >&5 |
33522 | echo "${ECHO_T}$ac_cv_func_fp_trap" >&6 | |
aaa798ba | 33523 | if test $ac_cv_func_fp_trap = yes; then |
33524 | have_fp_trap=yes | |
33525 | cat >>confdefs.h <<\_ACEOF | |
33526 | #define HAVE_FP_TRAP 1 | |
33527 | _ACEOF | |
33528 | ||
33529 | fi | |
33530 | ||
82eaf560 | 33531 | echo "$as_me:$LINENO: checking for fp_enable" >&5 |
33532 | echo $ECHO_N "checking for fp_enable... $ECHO_C" >&6 | |
aaa798ba | 33533 | if test "${ac_cv_func_fp_enable+set}" = set; then |
33534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33535 | else | |
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 | |
33538 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
33539 | { (exit 1); exit 1; }; } | |
33540 | fi | |
33541 | cat >conftest.$ac_ext <<_ACEOF | |
33542 | /* confdefs.h. */ | |
33543 | _ACEOF | |
33544 | cat confdefs.h >>conftest.$ac_ext | |
33545 | cat >>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 |
33566 | extern "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 | 33571 | char 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 | 33576 | choke me |
82eaf560 | 33577 | #else |
33578 | char (*f) () = fp_enable; | |
33579 | #endif | |
33580 | #ifdef __cplusplus | |
33581 | } | |
aaa798ba | 33582 | #endif |
33583 | ||
33584 | int | |
33585 | main () | |
33586 | { | |
82eaf560 | 33587 | return f != fp_enable; |
aaa798ba | 33588 | ; |
33589 | return 0; | |
33590 | } | |
33591 | _ACEOF | |
33592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 33593 | if { (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 |
33615 | else | |
33616 | echo "$as_me: failed program was:" >&5 | |
33617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33618 | ||
82eaf560 | 33619 | ac_cv_func_fp_enable=no |
aaa798ba | 33620 | fi |
82eaf560 | 33621 | rm -f conftest.err conftest.$ac_objext \ |
aaa798ba | 33622 | conftest$ac_exeext conftest.$ac_ext |
33623 | fi | |
82eaf560 | 33624 | echo "$as_me:$LINENO: result: $ac_cv_func_fp_enable" >&5 |
33625 | echo "${ECHO_T}$ac_cv_func_fp_enable" >&6 | |
aaa798ba | 33626 | if test $ac_cv_func_fp_enable = yes; then |
33627 | have_fp_enable=yes | |
33628 | cat >>confdefs.h <<\_ACEOF | |
33629 | #define HAVE_FP_ENABLE 1 | |
33630 | _ACEOF | |
33631 | ||
33632 | fi | |
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 | |
33640 | echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} | |
33641 | FPU_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 |
33647 | echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6 | |
6992582a | 33648 | if test "${libgfor_cv_have_attribute_visibility+set}" = set; then |
7b6cb5bd | 33649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
33650 | else | |
33651 | ||
33652 | save_CFLAGS="$CFLAGS" | |
33653 | CFLAGS="$CFLAGS -Werror" | |
33654 | cat >conftest.$ac_ext <<_ACEOF | |
33655 | /* confdefs.h. */ | |
33656 | _ACEOF | |
33657 | cat confdefs.h >>conftest.$ac_ext | |
33658 | cat >>conftest.$ac_ext <<_ACEOF | |
33659 | /* end confdefs.h. */ | |
33660 | void __attribute__((visibility("hidden"))) foo(void) { } | |
33661 | int | |
33662 | main () | |
33663 | { | |
33664 | ||
33665 | ; | |
33666 | return 0; | |
33667 | } | |
33668 | _ACEOF | |
33669 | rm -f conftest.$ac_objext | |
82eaf560 | 33670 | if { (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 | 33692 | else |
33693 | echo "$as_me: failed program was:" >&5 | |
33694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33695 | ||
6992582a | 33696 | libgfor_cv_have_attribute_visibility=no |
7b6cb5bd | 33697 | fi |
82eaf560 | 33698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7b6cb5bd | 33699 | CFLAGS="$save_CFLAGS" |
33700 | fi | |
6992582a | 33701 | echo "$as_me:$LINENO: result: $libgfor_cv_have_attribute_visibility" >&5 |
33702 | echo "${ECHO_T}$libgfor_cv_have_attribute_visibility" >&6 | |
33703 | if test $libgfor_cv_have_attribute_visibility = yes; then | |
7b6cb5bd | 33704 | |
33705 | cat >>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 |
33712 | echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6 | |
6992582a | 33713 | if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then |
7b6cb5bd | 33714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
33715 | else | |
33716 | ||
33717 | save_CFLAGS="$CFLAGS" | |
33718 | CFLAGS="$CFLAGS -Werror" | |
33719 | cat >conftest.$ac_ext <<_ACEOF | |
33720 | /* confdefs.h. */ | |
33721 | _ACEOF | |
33722 | cat confdefs.h >>conftest.$ac_ext | |
33723 | cat >>conftest.$ac_ext <<_ACEOF | |
33724 | /* end confdefs.h. */ | |
33725 | void __attribute__((dllexport)) foo(void) { } | |
33726 | int | |
33727 | main () | |
33728 | { | |
33729 | ||
33730 | ; | |
33731 | return 0; | |
33732 | } | |
33733 | _ACEOF | |
33734 | rm -f conftest.$ac_objext | |
82eaf560 | 33735 | if { (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 | 33757 | else |
33758 | echo "$as_me: failed program was:" >&5 | |
33759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33760 | ||
6992582a | 33761 | libgfor_cv_have_attribute_dllexport=no |
7b6cb5bd | 33762 | fi |
82eaf560 | 33763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7b6cb5bd | 33764 | CFLAGS="$save_CFLAGS" |
33765 | fi | |
6992582a | 33766 | echo "$as_me:$LINENO: result: $libgfor_cv_have_attribute_dllexport" >&5 |
33767 | echo "${ECHO_T}$libgfor_cv_have_attribute_dllexport" >&6 | |
33768 | if test $libgfor_cv_have_attribute_dllexport = yes; then | |
7b6cb5bd | 33769 | |
33770 | cat >>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 |
33777 | echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6 | |
6992582a | 33778 | if test "${libgfor_cv_have_attribute_alias+set}" = set; then |
7b6cb5bd | 33779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
33780 | else | |
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 | |
33784 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
33785 | { (exit 1); exit 1; }; } | |
33786 | fi | |
33787 | cat >conftest.$ac_ext <<_ACEOF | |
7b6cb5bd | 33788 | /* confdefs.h. */ |
33789 | _ACEOF | |
33790 | cat confdefs.h >>conftest.$ac_ext | |
33791 | cat >>conftest.$ac_ext <<_ACEOF | |
33792 | /* end confdefs.h. */ | |
33793 | ||
7b6cb5bd | 33794 | void foo(void) { } |
5a2b0c34 | 33795 | extern void bar(void) __attribute__((alias("foo"))); |
7b6cb5bd | 33796 | int |
33797 | main () | |
33798 | { | |
33799 | bar(); | |
33800 | ; | |
33801 | return 0; | |
33802 | } | |
33803 | _ACEOF | |
33804 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 33805 | if { (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 | 33827 | else |
33828 | echo "$as_me: failed program was:" >&5 | |
33829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33830 | ||
6992582a | 33831 | libgfor_cv_have_attribute_alias=no |
7b6cb5bd | 33832 | fi |
82eaf560 | 33833 | rm -f conftest.err conftest.$ac_objext \ |
7b6cb5bd | 33834 | conftest$ac_exeext conftest.$ac_ext |
33835 | fi | |
6992582a | 33836 | echo "$as_me:$LINENO: result: $libgfor_cv_have_attribute_alias" >&5 |
33837 | echo "${ECHO_T}$libgfor_cv_have_attribute_alias" >&6 | |
33838 | if test $libgfor_cv_have_attribute_alias = yes; then | |
7b6cb5bd | 33839 | |
33840 | cat >>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 |
33849 | echo $ECHO_N "checking whether the target supports __sync_fetch_and_add... $ECHO_C" >&6 | |
6992582a | 33850 | if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then |
60c514ba | 33851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
33852 | else | |
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 | |
33856 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
33857 | { (exit 1); exit 1; }; } | |
33858 | fi | |
33859 | cat >conftest.$ac_ext <<_ACEOF | |
33860 | /* confdefs.h. */ | |
33861 | _ACEOF | |
33862 | cat confdefs.h >>conftest.$ac_ext | |
33863 | cat >>conftest.$ac_ext <<_ACEOF | |
33864 | /* end confdefs.h. */ | |
33865 | int foovar = 0; | |
33866 | int | |
33867 | main () | |
33868 | { | |
33869 | ||
33870 | if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1); | |
33871 | if (foovar > 10) return __sync_add_and_fetch (&foovar, -1); | |
33872 | ; | |
33873 | return 0; | |
33874 | } | |
33875 | _ACEOF | |
33876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
82eaf560 | 33877 | if { (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 | 33899 | else |
33900 | echo "$as_me: failed program was:" >&5 | |
33901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33902 | ||
6992582a | 33903 | libgfor_cv_have_sync_fetch_and_add=no |
60c514ba | 33904 | fi |
82eaf560 | 33905 | rm -f conftest.err conftest.$ac_objext \ |
60c514ba | 33906 | conftest$ac_exeext conftest.$ac_ext |
33907 | fi | |
6992582a | 33908 | echo "$as_me:$LINENO: result: $libgfor_cv_have_sync_fetch_and_add" >&5 |
33909 | echo "${ECHO_T}$libgfor_cv_have_sync_fetch_and_add" >&6 | |
33910 | if test $libgfor_cv_have_sync_fetch_and_add = yes; then | |
60c514ba | 33911 | |
33912 | cat >>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 |
33921 | echo $ECHO_N "checking configured target thread model... $ECHO_C" >&6 | |
e0771fc0 | 33922 | if test "${libgfor_cv_target_thread_file+set}" = set; then |
60c514ba | 33923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
33924 | else | |
33925 | ||
e0771fc0 | 33926 | libgfor_cv_target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` |
60c514ba | 33927 | fi |
e0771fc0 | 33928 | echo "$as_me:$LINENO: result: $libgfor_cv_target_thread_file" >&5 |
33929 | echo "${ECHO_T}$libgfor_cv_target_thread_file" >&6 | |
60c514ba | 33930 | |
e0771fc0 | 33931 | if test $libgfor_cv_target_thread_file != single; then |
60c514ba | 33932 | |
33933 | cat >>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 |
33942 | echo $ECHO_N "checking whether pragma weak works... $ECHO_C" >&6 | |
6992582a | 33943 | if test "${libgfor_cv_have_pragma_weak+set}" = set; then |
60c514ba | 33944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
33945 | else | |
33946 | ||
33947 | gfor_save_CFLAGS="$CFLAGS" | |
33948 | CFLAGS="$CFLAGS -Wunknown-pragmas" | |
33949 | cat >conftest.$ac_ext <<_ACEOF | |
33950 | /* confdefs.h. */ | |
33951 | _ACEOF | |
33952 | cat confdefs.h >>conftest.$ac_ext | |
33953 | cat >>conftest.$ac_ext <<_ACEOF | |
33954 | /* end confdefs.h. */ | |
33955 | void foo (void); | |
33956 | #pragma weak foo | |
33957 | int | |
33958 | main () | |
33959 | { | |
33960 | if (foo) foo (); | |
33961 | ; | |
33962 | return 0; | |
33963 | } | |
33964 | _ACEOF | |
33965 | rm -f conftest.$ac_objext | |
82eaf560 | 33966 | if { (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 | 33988 | else |
33989 | echo "$as_me: failed program was:" >&5 | |
33990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33991 | ||
6992582a | 33992 | libgfor_cv_have_pragma_weak=no |
60c514ba | 33993 | fi |
82eaf560 | 33994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
60c514ba | 33995 | fi |
6992582a | 33996 | echo "$as_me:$LINENO: result: $libgfor_cv_have_pragma_weak" >&5 |
33997 | echo "${ECHO_T}$libgfor_cv_have_pragma_weak" >&6 | |
33998 | if test $libgfor_cv_have_pragma_weak = yes; then | |
60c514ba | 33999 | |
34000 | cat >>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 | |
34008 | cat >>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 |
34018 | echo $ECHO_N "checking whether the target can unlink an open file... $ECHO_C" >&6 | |
6992582a | 34019 | if test "${libgfor_cv_have_unlink_open_file+set}" = set; then |
1dc95e51 | 34020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
34021 | else | |
34022 | ||
34023 | if test "$cross_compiling" = yes; then | |
34024 | ||
34025 | case "${target}" in | |
6992582a | 34026 | *mingw*) libgfor_cv_have_unlink_open_file=no ;; |
34027 | *) libgfor_cv_have_unlink_open_file=yes;; | |
1dc95e51 | 34028 | esac |
34029 | else | |
34030 | cat >conftest.$ac_ext <<_ACEOF | |
34031 | /* confdefs.h. */ | |
34032 | _ACEOF | |
34033 | cat confdefs.h >>conftest.$ac_ext | |
34034 | cat >>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 | ||
34042 | int 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 | |
34060 | rm -f conftest$ac_exeext | |
82eaf560 | 34061 | if { (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 | 34072 | else |
34073 | echo "$as_me: program exited with status $ac_status" >&5 | |
34074 | echo "$as_me: failed program was:" >&5 | |
34075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34076 | ||
34077 | ( exit $ac_status ) | |
6992582a | 34078 | libgfor_cv_have_unlink_open_file=no |
1dc95e51 | 34079 | fi |
82eaf560 | 34080 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
1dc95e51 | 34081 | fi |
34082 | fi | |
6992582a | 34083 | echo "$as_me:$LINENO: result: $libgfor_cv_have_unlink_open_file" >&5 |
34084 | echo "${ECHO_T}$libgfor_cv_have_unlink_open_file" >&6 | |
34085 | if test x"$libgfor_cv_have_unlink_open_file" = xyes; then | |
1dc95e51 | 34086 | |
34087 | cat >>confdefs.h <<\_ACEOF | |
34088 | #define HAVE_UNLINK_OPEN_FILE 1 | |
34089 | _ACEOF | |
34090 | ||
34091 | fi | |
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 |
34096 | echo $ECHO_N "checking whether the target has CRLF as line terminator... $ECHO_C" >&6 | |
6992582a | 34097 | if test "${libgfor_cv_have_crlf+set}" = set; then |
cf55c3cf | 34098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
34099 | else | |
34100 | ||
34101 | if test "$cross_compiling" = yes; then | |
34102 | ||
34103 | case "${target}" in | |
6992582a | 34104 | *mingw*) libgfor_cv_have_crlf=yes ;; |
34105 | *) libgfor_cv_have_crlf=no;; | |
cf55c3cf | 34106 | esac |
34107 | else | |
34108 | cat >conftest.$ac_ext <<_ACEOF | |
34109 | /* confdefs.h. */ | |
34110 | _ACEOF | |
34111 | cat confdefs.h >>conftest.$ac_ext | |
34112 | cat >>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 | ||
34124 | int 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 | |
34150 | rm -f conftest$ac_exeext | |
82eaf560 | 34151 | if { (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 | 34162 | else |
34163 | echo "$as_me: program exited with status $ac_status" >&5 | |
34164 | echo "$as_me: failed program was:" >&5 | |
34165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34166 | ||
34167 | ( exit $ac_status ) | |
6992582a | 34168 | libgfor_cv_have_crlf=no |
cf55c3cf | 34169 | fi |
82eaf560 | 34170 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
cf55c3cf | 34171 | fi |
34172 | fi | |
6992582a | 34173 | echo "$as_me:$LINENO: result: $libgfor_cv_have_crlf" >&5 |
34174 | echo "${ECHO_T}$libgfor_cv_have_crlf" >&6 | |
34175 | if test x"$libgfor_cv_have_crlf" = xyes; then | |
cf55c3cf | 34176 | |
34177 | cat >>confdefs.h <<\_ACEOF | |
34178 | #define HAVE_CRLF 1 | |
34179 | _ACEOF | |
34180 | ||
34181 | fi | |
34182 | ||
4ee9c684 | 34183 | cat >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 | |
34228 | if 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 |
34235 | fi | |
34236 | rm -f confcache | |
34237 | ||
90973b19 | 34238 | if test ${multilib} = yes; then |
34239 | multilib_arg="--enable-multilib" | |
4ee9c684 | 34240 | else |
90973b19 | 34241 | multilib_arg= |
4ee9c684 | 34242 | fi |
4ee9c684 | 34243 | |
90973b19 | 34244 | # Write our Makefile. |
82eaf560 | 34245 | ac_config_files="$ac_config_files Makefile" |
90973b19 | 34246 | |
4ee9c684 | 34247 | cat >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 | |
34292 | if 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 |
34299 | fi | |
34300 | rm -f confcache | |
34301 | ||
34302 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
34303 | # Let make expand exec_prefix. | |
34304 | test "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). | |
34310 | if test "x$srcdir" = x.; then | |
34311 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
34312 | s/:*\$(srcdir):*/:/; | |
34313 | s/:*\${srcdir}:*/:/; | |
34314 | s/:*@srcdir@:*/:/; | |
34315 | s/^\([^=]*=[ ]*\):*/\1/; | |
34316 | s/:*$//; | |
34317 | s/^[^=]*=[ ]*$//; | |
34318 | }' | |
34319 | fi | |
34320 | ||
4ee9c684 | 34321 | DEFS=-DHAVE_CONFIG_H |
34322 | ||
34323 | ac_libobjs= | |
34324 | ac_ltlibobjs= | |
34325 | for 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 | 34332 | done |
34333 | LIBOBJS=$ac_libobjs | |
34334 | ||
34335 | LTLIBOBJS=$ac_ltlibobjs | |
34336 | ||
34337 | ||
93773f82 | 34338 | if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then |
34339 | { { echo "$as_me:$LINENO: error: conditional \"onestep\" was never defined. | |
34340 | Usually this means the macro was only invoked conditionally." >&5 | |
34341 | echo "$as_me: error: conditional \"onestep\" was never defined. | |
34342 | Usually this means the macro was only invoked conditionally." >&2;} | |
34343 | { (exit 1); exit 1; }; } | |
34344 | fi | |
4ee9c684 | 34345 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
34346 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
34347 | Usually this means the macro was only invoked conditionally." >&5 | |
34348 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
34349 | Usually this means the macro was only invoked conditionally." >&2;} | |
34350 | { (exit 1); exit 1; }; } | |
34351 | fi | |
2fd61f51 | 34352 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
34353 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
34354 | Usually this means the macro was only invoked conditionally." >&5 | |
34355 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
34356 | Usually this means the macro was only invoked conditionally." >&2;} | |
34357 | { (exit 1); exit 1; }; } | |
34358 | fi | |
34359 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
34360 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
34361 | Usually this means the macro was only invoked conditionally." >&5 | |
34362 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
34363 | Usually this means the macro was only invoked conditionally." >&2;} | |
34364 | { (exit 1); exit 1; }; } | |
34365 | fi | |
ce1a737c | 34366 | if 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. | |
34368 | Usually this means the macro was only invoked conditionally." >&5 | |
34369 | echo "$as_me: error: conditional \"LIBGFOR_USE_SYMVER\" was never defined. | |
34370 | Usually this means the macro was only invoked conditionally." >&2;} | |
34371 | { (exit 1); exit 1; }; } | |
34372 | fi | |
4ee9c684 | 34373 | |
34374 | : ${CONFIG_STATUS=./config.status} | |
34375 | ac_clean_files_save=$ac_clean_files | |
34376 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
34377 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
34378 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
34379 | cat >$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 | ||
34386 | debug=false | |
34387 | ac_cs_recheck=false | |
34388 | ac_cs_silent=false | |
34389 | SHELL=\${CONFIG_SHELL-$SHELL} | |
34390 | _ACEOF | |
34391 | ||
34392 | cat >>$CONFIG_STATUS <<\_ACEOF | |
34393 | ## --------------------- ## | |
34394 | ## M4sh Initialization. ## | |
34395 | ## --------------------- ## | |
34396 | ||
82eaf560 | 34397 | # Be Bourne compatible |
4ee9c684 | 34398 | if 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 | 34404 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
34405 | set -o posix | |
4ee9c684 | 34406 | fi |
82eaf560 | 34407 | DUALCASE=1; export DUALCASE # for MKS sh |
4ee9c684 | 34408 | |
34409 | # Support unset when possible. | |
34410 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
34411 | as_unset=unset | |
34412 | else | |
34413 | as_unset=false | |
34414 | fi | |
34415 | ||
34416 | ||
34417 | # Work around bugs in pre-3.0 UWIN ksh. | |
82eaf560 | 34418 | $as_unset ENV MAIL MAILPATH |
4ee9c684 | 34419 | PS1='$ ' |
34420 | PS2='> ' | |
34421 | PS4='+ ' | |
34422 | ||
34423 | # NLS nuisances. | |
34424 | for 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 | |
34428 | do | |
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 |
34434 | done | |
34435 | ||
34436 | # Required to use basename. | |
82eaf560 | 34437 | if expr a : '\(a\)' >/dev/null 2>&1; then |
4ee9c684 | 34438 | as_expr=expr |
34439 | else | |
34440 | as_expr=false | |
34441 | fi | |
34442 | ||
82eaf560 | 34443 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
4ee9c684 | 34444 | as_basename=basename |
34445 | else | |
34446 | as_basename=false | |
34447 | fi | |
34448 | ||
34449 | ||
34450 | # Name of the executable. | |
82eaf560 | 34451 | as_me=`$as_basename "$0" || |
4ee9c684 | 34452 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
34453 | X"$0" : 'X\(//\)$' \| \ | |
82eaf560 | 34454 | X"$0" : 'X\(/\)$' \| \ |
34455 | . : '\(.\)' 2>/dev/null || | |
4ee9c684 | 34456 | echo 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. | |
34465 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
34466 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
34467 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
34468 | as_cr_digits='0123456789' | |
34469 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
34470 | ||
34471 | # The user is always right. | |
34472 | if 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 | |
34482 | fi | |
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 | |
34495 | for as_dir in $PATH | |
34496 | do | |
34497 | IFS=$as_save_IFS | |
34498 | test -z "$as_dir" && as_dir=. | |
34499 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
34500 | done | |
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 | |
34511 | echo "$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 | |
34517 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
34518 | do | |
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 | |
34538 | done | |
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 | |
34562 | echo "$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 | 34574 | case `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 | 34579 | esac |
34580 | ||
82eaf560 | 34581 | if expr a : '\(a\)' >/dev/null 2>&1; then |
4ee9c684 | 34582 | as_expr=expr |
34583 | else | |
34584 | as_expr=false | |
34585 | fi | |
34586 | ||
34587 | rm -f conf$$ conf$$.exe conf$$.file | |
34588 | echo >conf$$.file | |
34589 | if 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 | 34598 | elif ln conf$$.file conf$$ 2>/dev/null; then |
34599 | as_ln_s=ln | |
34600 | else | |
34601 | as_ln_s='cp -p' | |
34602 | fi | |
82eaf560 | 34603 | rm -f conf$$ conf$$.exe conf$$.file |
4ee9c684 | 34604 | |
34605 | if mkdir -p . 2>/dev/null; then | |
34606 | as_mkdir_p=: | |
34607 | else | |
34608 | test -d ./-p && rmdir ./-p | |
34609 | as_mkdir_p=false | |
34610 | fi | |
34611 | ||
82eaf560 | 34612 | as_executable_p="test -f" |
4ee9c684 | 34613 | |
34614 | # Sed expression to map a string onto a valid CPP name. | |
34615 | as_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. | |
34618 | as_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. | |
34623 | as_nl=' | |
34624 | ' | |
34625 | IFS=" $as_nl" | |
34626 | ||
34627 | # CDPATH. | |
34628 | $as_unset CDPATH | |
34629 | ||
4ee9c684 | 34630 | exec 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. |
34635 | exec 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 | |
34642 | cat >&5 <<_CSEOF | |
34643 | ||
76c0a846 | 34644 | This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was |
82eaf560 | 34645 | generated 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 |
34654 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
34655 | echo >&5 | |
4ee9c684 | 34656 | _ACEOF |
34657 | ||
34658 | # Files that config.status was made for. | |
82eaf560 | 34659 | if test -n "$ac_config_files"; then |
34660 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
34661 | fi | |
a106dabe | 34662 | |
82eaf560 | 34663 | if test -n "$ac_config_headers"; then |
34664 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
34665 | fi | |
34666 | ||
34667 | if test -n "$ac_config_links"; then | |
34668 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
34669 | fi | |
34670 | ||
34671 | if test -n "$ac_config_commands"; then | |
34672 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
34673 | fi | |
4ee9c684 | 34674 | |
34675 | cat >>$CONFIG_STATUS <<\_ACEOF | |
82eaf560 | 34676 | |
4ee9c684 | 34677 | ac_cs_usage="\ |
34678 | \`$as_me' instantiates files from templates according to the | |
34679 | current configuration. | |
34680 | ||
34681 | Usage: $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 | ||
34693 | Configuration files: | |
34694 | $config_files | |
34695 | ||
34696 | Configuration headers: | |
34697 | $config_headers | |
34698 | ||
34699 | Configuration commands: | |
34700 | $config_commands | |
34701 | ||
34702 | Report bugs to <bug-autoconf@gnu.org>." | |
ff4425cf | 34703 | _ACEOF |
82eaf560 | 34704 | |
4ee9c684 | 34705 | cat >>$CONFIG_STATUS <<_ACEOF |
34706 | ac_cs_version="\\ | |
76c0a846 | 34707 | GNU Fortran Runtime Library config.status 0.3 |
82eaf560 | 34708 | configured by $0, generated by GNU Autoconf 2.59, |
34709 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
4ee9c684 | 34710 | |
82eaf560 | 34711 | Copyright (C) 2003 Free Software Foundation, Inc. |
4ee9c684 | 34712 | This config.status script is free software; the Free Software Foundation |
34713 | gives unlimited permission to copy, distribute and modify it." | |
82eaf560 | 34714 | srcdir=$srcdir |
34715 | INSTALL="$INSTALL" | |
4ee9c684 | 34716 | _ACEOF |
34717 | ||
34718 | cat >>$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. | |
34721 | ac_need_defaults=: | |
34722 | while test $# != 0 | |
34723 | do | |
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 |
34744 | cat >>$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 | |
34752 | Try \`$0 --help' for more information." >&5 | |
34753 | echo "$as_me: error: ambiguous option: $1 | |
34754 | Try \`$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 |
34774 | Try \`$0 --help' for more information." >&5 | |
34775 | echo "$as_me: error: unrecognized option: $1 | |
34776 | Try \`$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 | |
34783 | done | |
34784 | ||
34785 | ac_configure_extra_args= | |
34786 | ||
34787 | if $ac_cs_silent; then | |
34788 | exec 6>/dev/null | |
34789 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
34790 | fi | |
34791 | ||
34792 | _ACEOF | |
34793 | cat >>$CONFIG_STATUS <<_ACEOF | |
34794 | if \$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 | 34797 | fi |
34798 | ||
542f9784 | 34799 | _ACEOF |
34800 | ||
34801 | cat >>$CONFIG_STATUS <<_ACEOF | |
34802 | # | |
82eaf560 | 34803 | # INIT-COMMANDS section. |
542f9784 | 34804 | # |
34805 | ||
82eaf560 | 34806 | |
542f9784 | 34807 | srcdir="$srcdir" |
34808 | host="$host" | |
34809 | target="$target" | |
34810 | with_multisubdir="$with_multisubdir" | |
34811 | with_multisrctop="$with_multisrctop" | |
34812 | with_target_subdir="$with_target_subdir" | |
34813 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
34814 | multi_basedir="$multi_basedir" | |
34815 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
34816 | CC="$CC" | |
34817 | AMDEP_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 | ||
34824 | sed_quote_subst='$sed_quote_subst' | |
34825 | double_quote_subst='$double_quote_subst' | |
34826 | delay_variable_subst='$delay_variable_subst' | |
34827 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
34828 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
34829 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
34830 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
34831 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
34832 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
34833 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
34834 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
34835 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
34836 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
34837 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
34838 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
34839 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
34840 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
34841 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
34842 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
34843 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
34844 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
34845 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
34846 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
34847 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
34848 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
34849 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
34850 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
34851 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
34852 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
34853 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
34854 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
00aafda4 | 34855 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
542f9784 | 34856 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
34857 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
34858 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
34859 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
34860 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
34861 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
34862 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34863 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34864 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34865 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
34866 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
34867 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
34868 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
34869 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
34870 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
34871 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
00aafda4 | 34872 | lt_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 | 34873 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
34874 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
34875 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
34876 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
34877 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
34878 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
34879 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
34880 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
34881 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
34882 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
00aafda4 | 34883 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
34884 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
34885 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
34886 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
34887 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
542f9784 | 34888 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
34889 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34890 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34891 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
34892 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
34893 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
34894 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
34895 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
34896 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34897 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34898 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34899 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34900 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34901 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34902 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
34903 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
34904 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
34905 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
34906 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
34907 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
34908 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
34909 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
34910 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
34911 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
34912 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
34913 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
34914 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
34915 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
34916 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
34917 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34918 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
34919 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
34920 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34921 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
34922 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
34923 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
34924 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
34925 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
34926 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
34927 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
34928 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
34929 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
34930 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
34931 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
34932 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34933 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34934 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
34935 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
34936 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
34937 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
34938 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
34939 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
34940 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
34941 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
34942 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
34943 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
34944 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
00aafda4 | 34945 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' |
542f9784 | 34946 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
34947 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
34948 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
34949 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
34950 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
34951 | LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34952 | old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34953 | compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34954 | GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34955 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34956 | lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34957 | lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34958 | lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34959 | lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34960 | archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34961 | enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34962 | export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34963 | whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34964 | compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34965 | old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34966 | old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34967 | archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34968 | archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34969 | module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34970 | module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34971 | with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34972 | allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34973 | no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34974 | hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34975 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34976 | hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34977 | hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34978 | hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34979 | hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34980 | hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34981 | hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34982 | inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34983 | link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34984 | fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34985 | always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34986 | export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34987 | exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34988 | include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34989 | prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34990 | file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34991 | hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
00aafda4 | 34992 | compiler_lib_search_dirs_FC='`$ECHO "X$compiler_lib_search_dirs_FC" | $Xsed -e "$delay_single_quote_subst"`' |
542f9784 | 34993 | predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`' |
34994 | postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34995 | predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34996 | postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34997 | compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
34998 | ||
34999 | LTCC='$LTCC' | |
35000 | LTCFLAGS='$LTCFLAGS' | |
35001 | compiler='$compiler_DEFAULT' | |
35002 | ||
35003 | # Quote evaled strings. | |
35004 | for var in SED \ | |
35005 | GREP \ | |
35006 | EGREP \ | |
35007 | FGREP \ | |
35008 | LD \ | |
35009 | NM \ | |
35010 | LN_S \ | |
35011 | lt_SP2NL \ | |
35012 | lt_NL2SP \ | |
35013 | reload_flag \ | |
00aafda4 | 35014 | OBJDUMP \ |
542f9784 | 35015 | deplibs_check_method \ |
35016 | file_magic_cmd \ | |
35017 | AR \ | |
35018 | AR_FLAGS \ | |
35019 | STRIP \ | |
35020 | RANLIB \ | |
35021 | CC \ | |
35022 | CFLAGS \ | |
35023 | compiler \ | |
35024 | lt_cv_sys_global_symbol_pipe \ | |
35025 | lt_cv_sys_global_symbol_to_cdecl \ | |
35026 | lt_cv_sys_global_symbol_to_c_name_address \ | |
00aafda4 | 35027 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
542f9784 | 35028 | SHELL \ |
35029 | ECHO \ | |
35030 | lt_prog_compiler_no_builtin_flag \ | |
35031 | lt_prog_compiler_wl \ | |
35032 | lt_prog_compiler_pic \ | |
35033 | lt_prog_compiler_static \ | |
35034 | lt_cv_prog_compiler_c_o \ | |
35035 | need_locks \ | |
00aafda4 | 35036 | DSYMUTIL \ |
35037 | NMEDIT \ | |
35038 | LIPO \ | |
35039 | OTOOL \ | |
35040 | OTOOL64 \ | |
542f9784 | 35041 | shrext_cmds \ |
35042 | export_dynamic_flag_spec \ | |
35043 | whole_archive_flag_spec \ | |
35044 | compiler_needs_object \ | |
35045 | with_gnu_ld \ | |
35046 | allow_undefined_flag \ | |
35047 | no_undefined_flag \ | |
35048 | hardcode_libdir_flag_spec \ | |
35049 | hardcode_libdir_flag_spec_ld \ | |
35050 | hardcode_libdir_separator \ | |
35051 | fix_srcfile_path \ | |
35052 | exclude_expsyms \ | |
35053 | include_expsyms \ | |
35054 | file_list_spec \ | |
35055 | variables_saved_for_relink \ | |
35056 | libname_spec \ | |
35057 | library_names_spec \ | |
35058 | soname_spec \ | |
35059 | finish_eval \ | |
35060 | old_striplib \ | |
35061 | striplib \ | |
00aafda4 | 35062 | compiler_lib_search_dirs \ |
542f9784 | 35063 | predep_objects \ |
35064 | postdep_objects \ | |
35065 | predeps \ | |
35066 | postdeps \ | |
35067 | compiler_lib_search_path \ | |
35068 | LD_FC \ | |
35069 | compiler_FC \ | |
35070 | lt_prog_compiler_no_builtin_flag_FC \ | |
35071 | lt_prog_compiler_wl_FC \ | |
35072 | lt_prog_compiler_pic_FC \ | |
35073 | lt_prog_compiler_static_FC \ | |
35074 | lt_cv_prog_compiler_c_o_FC \ | |
35075 | export_dynamic_flag_spec_FC \ | |
35076 | whole_archive_flag_spec_FC \ | |
35077 | compiler_needs_object_FC \ | |
35078 | with_gnu_ld_FC \ | |
35079 | allow_undefined_flag_FC \ | |
35080 | no_undefined_flag_FC \ | |
35081 | hardcode_libdir_flag_spec_FC \ | |
35082 | hardcode_libdir_flag_spec_ld_FC \ | |
35083 | hardcode_libdir_separator_FC \ | |
35084 | fix_srcfile_path_FC \ | |
35085 | exclude_expsyms_FC \ | |
35086 | include_expsyms_FC \ | |
35087 | file_list_spec_FC \ | |
00aafda4 | 35088 | compiler_lib_search_dirs_FC \ |
542f9784 | 35089 | predep_objects_FC \ |
35090 | postdep_objects_FC \ | |
35091 | predeps_FC \ | |
35092 | postdeps_FC \ | |
35093 | compiler_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 | |
35102 | done | |
35103 | ||
35104 | # Double-quote double-evaled strings. | |
35105 | for var in reload_cmds \ | |
35106 | old_postinstall_cmds \ | |
35107 | old_postuninstall_cmds \ | |
35108 | old_archive_cmds \ | |
35109 | extract_expsyms_cmds \ | |
35110 | old_archive_from_new_cmds \ | |
35111 | old_archive_from_expsyms_cmds \ | |
35112 | archive_cmds \ | |
35113 | archive_expsym_cmds \ | |
35114 | module_cmds \ | |
35115 | module_expsym_cmds \ | |
35116 | export_symbols_cmds \ | |
35117 | prelink_cmds \ | |
35118 | postinstall_cmds \ | |
35119 | postuninstall_cmds \ | |
35120 | finish_cmds \ | |
35121 | sys_lib_search_path_spec \ | |
35122 | sys_lib_dlsearch_path_spec \ | |
35123 | old_archive_cmds_FC \ | |
35124 | old_archive_from_new_cmds_FC \ | |
35125 | old_archive_from_expsyms_cmds_FC \ | |
35126 | archive_cmds_FC \ | |
35127 | archive_expsym_cmds_FC \ | |
35128 | module_cmds_FC \ | |
35129 | module_expsym_cmds_FC \ | |
35130 | export_symbols_cmds_FC \ | |
35131 | prelink_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 | |
35140 | done | |
35141 | ||
35142 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
35143 | case \$lt_ECHO in | |
35144 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
35145 | ;; | |
35146 | esac | |
35147 | ||
35148 | ac_aux_dir='$ac_aux_dir' | |
35149 | xsi_shell='$xsi_shell' | |
35150 | lt_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. | |
35154 | if test -n "\${ZSH_VERSION+set}" ; then | |
35155 | setopt NO_GLOB_SUBST | |
35156 | fi | |
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 | 35170 | GCC="$GCC" |
35171 | CC="$CC" | |
35172 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
35173 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
35174 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
35175 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
35176 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
35177 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
35178 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
35179 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
35180 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
35181 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
35182 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
35183 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
35184 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
35185 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
35186 | ||
35187 | ||
4ee9c684 | 35188 | _ACEOF |
35189 | ||
ff4425cf | 35190 | |
82eaf560 | 35191 | |
35192 | cat >>$CONFIG_STATUS <<\_ACEOF | |
4ee9c684 | 35193 | for ac_config_target in $ac_config_targets |
35194 | do | |
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 |
35204 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
35205 | { (exit 1); exit 1; }; };; | |
35206 | esac | |
35207 | done | |
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. | |
35213 | if $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 | |
35217 | fi | |
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 | ||
35246 | cat >>$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 | 35254 | if 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 | |
35258 | s,@SHELL@,$SHELL,;t t | |
35259 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
35260 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
35261 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
35262 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
35263 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
35264 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
35265 | s,@exec_prefix@,$exec_prefix,;t t | |
35266 | s,@prefix@,$prefix,;t t | |
35267 | s,@program_transform_name@,$program_transform_name,;t t | |
35268 | s,@bindir@,$bindir,;t t | |
35269 | s,@sbindir@,$sbindir,;t t | |
35270 | s,@libexecdir@,$libexecdir,;t t | |
35271 | s,@datadir@,$datadir,;t t | |
35272 | s,@sysconfdir@,$sysconfdir,;t t | |
35273 | s,@sharedstatedir@,$sharedstatedir,;t t | |
35274 | s,@localstatedir@,$localstatedir,;t t | |
35275 | s,@libdir@,$libdir,;t t | |
35276 | s,@includedir@,$includedir,;t t | |
35277 | s,@oldincludedir@,$oldincludedir,;t t | |
35278 | s,@infodir@,$infodir,;t t | |
35279 | s,@mandir@,$mandir,;t t | |
35280 | s,@build_alias@,$build_alias,;t t | |
35281 | s,@host_alias@,$host_alias,;t t | |
35282 | s,@target_alias@,$target_alias,;t t | |
35283 | s,@DEFS@,$DEFS,;t t | |
35284 | s,@ECHO_C@,$ECHO_C,;t t | |
35285 | s,@ECHO_N@,$ECHO_N,;t t | |
35286 | s,@ECHO_T@,$ECHO_T,;t t | |
35287 | s,@LIBS@,$LIBS,;t t | |
35288 | s,@build@,$build,;t t | |
35289 | s,@build_cpu@,$build_cpu,;t t | |
35290 | s,@build_vendor@,$build_vendor,;t t | |
35291 | s,@build_os@,$build_os,;t t | |
35292 | s,@build_libsubdir@,$build_libsubdir,;t t | |
35293 | s,@build_subdir@,$build_subdir,;t t | |
35294 | s,@host_subdir@,$host_subdir,;t t | |
35295 | s,@target_subdir@,$target_subdir,;t t | |
35296 | s,@onestep_TRUE@,$onestep_TRUE,;t t | |
35297 | s,@onestep_FALSE@,$onestep_FALSE,;t t | |
35298 | s,@onestep@,$onestep,;t t | |
35299 | s,@host@,$host,;t t | |
35300 | s,@host_cpu@,$host_cpu,;t t | |
35301 | s,@host_vendor@,$host_vendor,;t t | |
35302 | s,@host_os@,$host_os,;t t | |
35303 | s,@target@,$target,;t t | |
35304 | s,@target_cpu@,$target_cpu,;t t | |
35305 | s,@target_vendor@,$target_vendor,;t t | |
35306 | s,@target_os@,$target_os,;t t | |
35307 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
35308 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
35309 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
35310 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
35311 | s,@PACKAGE@,$PACKAGE,;t t | |
35312 | s,@VERSION@,$VERSION,;t t | |
35313 | s,@ACLOCAL@,$ACLOCAL,;t t | |
35314 | s,@AUTOCONF@,$AUTOCONF,;t t | |
35315 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
35316 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
35317 | s,@MAKEINFO@,$MAKEINFO,;t t | |
35318 | s,@install_sh@,$install_sh,;t t | |
35319 | s,@STRIP@,$STRIP,;t t | |
35320 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
35321 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
35322 | s,@mkdir_p@,$mkdir_p,;t t | |
35323 | s,@AWK@,$AWK,;t t | |
35324 | s,@SET_MAKE@,$SET_MAKE,;t t | |
35325 | s,@am__leading_dot@,$am__leading_dot,;t t | |
35326 | s,@AMTAR@,$AMTAR,;t t | |
35327 | s,@am__tar@,$am__tar,;t t | |
35328 | s,@am__untar@,$am__untar,;t t | |
35329 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
35330 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
35331 | s,@MAINT@,$MAINT,;t t | |
35332 | s,@multi_basedir@,$multi_basedir,;t t | |
35333 | s,@toolexecdir@,$toolexecdir,;t t | |
35334 | s,@toolexeclibdir@,$toolexeclibdir,;t t | |
35335 | s,@CC@,$CC,;t t | |
35336 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
35337 | s,@EXEEXT@,$EXEEXT,;t t | |
35338 | s,@OBJEXT@,$OBJEXT,;t t | |
35339 | s,@DEPDIR@,$DEPDIR,;t t | |
35340 | s,@am__include@,$am__include,;t t | |
35341 | s,@am__quote@,$am__quote,;t t | |
35342 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
35343 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
35344 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
35345 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
35346 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
35347 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
35348 | s,@AM_FCFLAGS@,$AM_FCFLAGS,;t t | |
35349 | s,@AM_CFLAGS@,$AM_CFLAGS,;t t | |
35350 | s,@CFLAGS@,$CFLAGS,;t t | |
35351 | s,@LIBGFOR_USE_SYMVER_TRUE@,$LIBGFOR_USE_SYMVER_TRUE,;t t | |
35352 | s,@LIBGFOR_USE_SYMVER_FALSE@,$LIBGFOR_USE_SYMVER_FALSE,;t t | |
35353 | s,@AS@,$AS,;t t | |
35354 | s,@ac_ct_AS@,$ac_ct_AS,;t t | |
35355 | s,@AR@,$AR,;t t | |
35356 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
35357 | s,@RANLIB@,$RANLIB,;t t | |
35358 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
35359 | s,@LIBTOOL@,$LIBTOOL,;t t | |
35360 | s,@SED@,$SED,;t t | |
35361 | s,@EGREP@,$EGREP,;t t | |
35362 | s,@FGREP@,$FGREP,;t t | |
35363 | s,@GREP@,$GREP,;t t | |
35364 | s,@LD@,$LD,;t t | |
35365 | s,@DUMPBIN@,$DUMPBIN,;t t | |
35366 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t | |
35367 | s,@NM@,$NM,;t t | |
35368 | s,@LN_S@,$LN_S,;t t | |
00aafda4 | 35369 | s,@OBJDUMP@,$OBJDUMP,;t t |
35370 | s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t | |
82eaf560 | 35371 | s,@lt_ECHO@,$lt_ECHO,;t t |
00aafda4 | 35372 | s,@DSYMUTIL@,$DSYMUTIL,;t t |
35373 | s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t | |
35374 | s,@NMEDIT@,$NMEDIT,;t t | |
35375 | s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t | |
35376 | s,@LIPO@,$LIPO,;t t | |
35377 | s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t | |
35378 | s,@OTOOL@,$OTOOL,;t t | |
35379 | s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t | |
35380 | s,@OTOOL64@,$OTOOL64,;t t | |
35381 | s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t | |
82eaf560 | 35382 | s,@CPP@,$CPP,;t t |
35383 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
35384 | s,@enable_shared@,$enable_shared,;t t | |
35385 | s,@enable_static@,$enable_static,;t t | |
35386 | s,@FC@,$FC,;t t | |
35387 | s,@FCFLAGS@,$FCFLAGS,;t t | |
35388 | s,@LDFLAGS@,$LDFLAGS,;t t | |
35389 | s,@ac_ct_FC@,$ac_ct_FC,;t t | |
35390 | s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t | |
35391 | s,@FPU_HOST_HEADER@,$FPU_HOST_HEADER,;t t | |
35392 | s,@LIBOBJS@,$LIBOBJS,;t t | |
35393 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
35394 | CEOF | |
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 | 35435 | fi # test -n "$CONFIG_FILES" |
ce1a737c | 35436 | |
4ee9c684 | 35437 | _ACEOF |
35438 | cat >>$CONFIG_STATUS <<\_ACEOF | |
82eaf560 | 35439 | for 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 | 35458 | echo 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 | 35477 | echo 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 | |
35486 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
4ee9c684 | 35487 | { (exit 1); exit 1; }; }; } |
82eaf560 | 35488 | |
4ee9c684 | 35489 | ac_builddir=. |
35490 | ||
82eaf560 | 35491 | if 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'` | |
35495 | else | |
35496 | ac_dir_suffix= ac_top_builddir= | |
35497 | fi | |
4ee9c684 | 35498 | |
35499 | case $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 | 35513 | esac |
35514 | ||
82eaf560 | 35515 | # Do not use `cd foo && pwd` to compute absolute paths, because |
35516 | # the directories may not exist. | |
35517 | case `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;; | |
35525 | esac | |
35526 | case $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;; | |
35534 | esac | |
35535 | case $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;; | |
35543 | esac | |
35544 | case $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;; | |
35552 | esac | |
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 | |
35562 | echo "$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 | |
35585 | echo "$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 | |
35598 | echo "$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 | 35604 | cat >>$CONFIG_STATUS <<_ACEOF |
35605 | sed "$ac_vpsub | |
35606 | $extrasub | |
35607 | _ACEOF | |
35608 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35609 | :t | |
35610 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
82eaf560 | 35611 | s,@configure_input@,$configure_input,;t t |
35612 | s,@srcdir@,$ac_srcdir,;t t | |
35613 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
35614 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
35615 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
35616 | s,@builddir@,$ac_builddir,;t t | |
35617 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
35618 | s,@top_builddir@,$ac_top_builddir,;t t | |
35619 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
35620 | s,@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 | ||
35630 | done | |
35631 | _ACEOF | |
35632 | cat >>$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. | |
35642 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
35643 | ac_dB='[ ].*$,\1#\2' | |
35644 | ac_dC=' ' | |
35645 | ac_dD=',;t' | |
35646 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
35647 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
35648 | ac_uB='$,\1#\2define\3' | |
35649 | ac_uC=' ' | |
35650 | ac_uD=',;t' | |
35651 | ||
35652 | for 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 | |
35665 | echo "$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 | |
35676 | echo "$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 | |
35690 | echo "$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. | |
35707 | rm -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'. | |
35714 | cat >confdef2sed.sed <<\_ACEOF | |
35715 | s/[\\&,]/\\&/g | |
35716 | s,[\\$`],\\&,g | |
35717 | t clear | |
35718 | : clear | |
35719 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
35720 | t end | |
35721 | s,^[ ]*#[ ]*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. | |
35727 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
35728 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
35729 | rm -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 | 35734 | cat >>conftest.undefs <<\_ACEOF |
35735 | s,^[ ]*#[ ]*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). | |
35740 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
35741 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
35742 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
35743 | echo ' :' >>$CONFIG_STATUS | |
35744 | rm -f conftest.tail | |
35745 | while grep . conftest.defines >/dev/null | |
4ee9c684 | 35746 | do |
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 | |
35763 | done | |
82eaf560 | 35764 | rm -f conftest.defines |
35765 | echo ' fi # grep' >>$CONFIG_STATUS | |
35766 | echo >>$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). | |
35770 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
35771 | rm -f conftest.tail | |
35772 | while grep . conftest.undefs >/dev/null | |
35773 | do | |
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 | |
35790 | done | |
35791 | rm -f conftest.undefs | |
4ee9c684 | 35792 | |
35793 | cat >>$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 |
35807 | echo "$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 || | |
35815 | echo 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 || | |
35834 | echo 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 | |
35843 | echo "$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 | |
35855 | for _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 | |
35862 | done | |
82eaf560 | 35863 | echo "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 | 35869 | echo 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 | |
35875 | done | |
35876 | _ACEOF | |
35877 | cat >>$CONFIG_STATUS <<\_ACEOF | |
a106dabe | 35878 | |
82eaf560 | 35879 | # |
35880 | # CONFIG_COMMANDS section. | |
35881 | # | |
35882 | for 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 || | |
35891 | echo 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 || | |
35910 | echo 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 | |
35919 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
35920 | { (exit 1); exit 1; }; }; } | |
35921 | ||
35922 | ac_builddir=. | |
35923 | ||
35924 | if 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'` | |
35928 | else | |
35929 | ac_dir_suffix= ac_top_builddir= | |
35930 | fi | |
35931 | ||
35932 | case $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 ;; | |
35946 | esac | |
35947 | ||
35948 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
35949 | # the directories may not exist. | |
35950 | case `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;; | |
35958 | esac | |
35959 | case $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;; | |
35967 | esac | |
35968 | case $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;; | |
35976 | esac | |
35977 | case $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;; | |
35985 | esac | |
4ee9c684 | 35986 | |
35987 | ||
82eaf560 | 35988 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
35989 | echo "$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. | |
35994 | case " $CONFIG_FILES " in | |
35995 | *" Makefile "*) | |
35996 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
35997 | ;; | |
35998 | esac ;; | |
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 | 36015 | echo 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 | 36048 | echo 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 | 36067 | echo 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 | |
36076 | echo "$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 | |
36082 | done | |
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. | |
36133 | available_tags="FC " | |
36134 | ||
36135 | # ### BEGIN LIBTOOL CONFIG | |
36136 | ||
36137 | # Which release of libtool.m4 was used? | |
36138 | macro_version=$macro_version | |
36139 | macro_revision=$macro_revision | |
36140 | ||
36141 | # Whether or not to build shared libraries. | |
36142 | build_libtool_libs=$enable_shared | |
36143 | ||
36144 | # Whether or not to build static libraries. | |
36145 | build_old_libs=$enable_static | |
36146 | ||
36147 | # What type of objects to build. | |
36148 | pic_mode=$pic_mode | |
36149 | ||
36150 | # Whether or not to optimize for fast installation. | |
36151 | fast_install=$enable_fast_install | |
36152 | ||
36153 | # The host system. | |
36154 | host_alias=$host_alias | |
36155 | host=$host | |
36156 | host_os=$host_os | |
36157 | ||
36158 | # The build system. | |
36159 | build_alias=$build_alias | |
36160 | build=$build | |
36161 | build_os=$build_os | |
36162 | ||
36163 | # A sed program that does not truncate output. | |
36164 | SED=$lt_SED | |
36165 | ||
36166 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
36167 | Xsed="\$SED -e 1s/^X//" | |
36168 | ||
36169 | # A grep program that handles long lines. | |
36170 | GREP=$lt_GREP | |
36171 | ||
36172 | # An ERE matcher. | |
36173 | EGREP=$lt_EGREP | |
36174 | ||
36175 | # A literal string matcher. | |
36176 | FGREP=$lt_FGREP | |
36177 | ||
36178 | # A BSD- or MS-compatible name lister. | |
36179 | NM=$lt_NM | |
36180 | ||
36181 | # Whether we need soft or hard links. | |
36182 | LN_S=$lt_LN_S | |
36183 | ||
36184 | # What is the maximum length of a command? | |
36185 | max_cmd_len=$max_cmd_len | |
36186 | ||
36187 | # Object file suffix (normally "o"). | |
36188 | objext=$ac_objext | |
36189 | ||
36190 | # Executable file suffix (normally ""). | |
36191 | exeext=$exeext | |
36192 | ||
36193 | # whether the shell understands "unset". | |
36194 | lt_unset=$lt_unset | |
36195 | ||
36196 | # turn spaces into newlines. | |
36197 | SP2NL=$lt_lt_SP2NL | |
36198 | ||
36199 | # turn newlines into spaces. | |
36200 | NL2SP=$lt_lt_NL2SP | |
36201 | ||
36202 | # How to create reloadable object files. | |
36203 | reload_flag=$lt_reload_flag | |
36204 | reload_cmds=$lt_reload_cmds | |
36205 | ||
00aafda4 | 36206 | # An object symbol dumper. |
36207 | OBJDUMP=$lt_OBJDUMP | |
36208 | ||
542f9784 | 36209 | # Method to check whether dependent libraries are shared objects. |
36210 | deplibs_check_method=$lt_deplibs_check_method | |
36211 | ||
36212 | # Command to use when deplibs_check_method == "file_magic". | |
36213 | file_magic_cmd=$lt_file_magic_cmd | |
36214 | ||
36215 | # The archiver. | |
36216 | AR=$lt_AR | |
36217 | AR_FLAGS=$lt_AR_FLAGS | |
36218 | ||
36219 | # A symbol stripping program. | |
36220 | STRIP=$lt_STRIP | |
36221 | ||
36222 | # Commands used to install an old-style archive. | |
36223 | RANLIB=$lt_RANLIB | |
36224 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
36225 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
36226 | ||
36227 | # A C compiler. | |
36228 | LTCC=$lt_CC | |
36229 | ||
36230 | # LTCC compiler flags. | |
36231 | LTCFLAGS=$lt_CFLAGS | |
36232 | ||
36233 | # Take the output of nm and produce a listing of raw symbols and C names. | |
36234 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
36235 | ||
36236 | # Transform the output of nm in a proper C declaration. | |
36237 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
36238 | ||
36239 | # Transform the output of nm in a C name address pair. | |
36240 | global_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. |
36243 | global_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. |
36246 | objdir=$objdir | |
36247 | ||
36248 | # Shell to use when invoking shell scripts. | |
36249 | SHELL=$lt_SHELL | |
36250 | ||
36251 | # An echo program that does not interpret backslashes. | |
36252 | ECHO=$lt_ECHO | |
36253 | ||
36254 | # Used to examine libraries when file_magic_cmd begins with "file". | |
36255 | MAGIC_CMD=$MAGIC_CMD | |
36256 | ||
36257 | # Must we lock files when doing compilation? | |
36258 | need_locks=$lt_need_locks | |
36259 | ||
00aafda4 | 36260 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
36261 | DSYMUTIL=$lt_DSYMUTIL | |
36262 | ||
36263 | # Tool to change global to local symbols on Mac OS X. | |
36264 | NMEDIT=$lt_NMEDIT | |
36265 | ||
36266 | # Tool to manipulate fat objects and archives on Mac OS X. | |
36267 | LIPO=$lt_LIPO | |
36268 | ||
36269 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
36270 | OTOOL=$lt_OTOOL | |
36271 | ||
36272 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
36273 | OTOOL64=$lt_OTOOL64 | |
36274 | ||
542f9784 | 36275 | # Old archive suffix (normally "a"). |
36276 | libext=$libext | |
36277 | ||
36278 | # Shared library suffix (normally ".so"). | |
36279 | shrext_cmds=$lt_shrext_cmds | |
36280 | ||
36281 | # The commands to extract the exported symbol list from a shared archive. | |
36282 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
36283 | ||
36284 | # Variables whose values should be saved in libtool wrapper scripts and | |
36285 | # restored at link time. | |
36286 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
36287 | ||
36288 | # Do we need the "lib" prefix for modules? | |
36289 | need_lib_prefix=$need_lib_prefix | |
36290 | ||
36291 | # Do we need a version for libraries? | |
36292 | need_version=$need_version | |
36293 | ||
36294 | # Library versioning type. | |
36295 | version_type=$version_type | |
36296 | ||
36297 | # Shared library runtime path variable. | |
36298 | runpath_var=$runpath_var | |
36299 | ||
36300 | # Shared library path variable. | |
36301 | shlibpath_var=$shlibpath_var | |
36302 | ||
36303 | # Is shlibpath searched before the hard-coded library search path? | |
36304 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
36305 | ||
36306 | # Format of library name prefix. | |
36307 | libname_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 | |
36311 | library_names_spec=$lt_library_names_spec | |
36312 | ||
36313 | # The coded name of the library, if different from the real name. | |
36314 | soname_spec=$lt_soname_spec | |
36315 | ||
36316 | # Command to use after installation of a shared archive. | |
36317 | postinstall_cmds=$lt_postinstall_cmds | |
36318 | ||
36319 | # Command to use after uninstallation of a shared archive. | |
36320 | postuninstall_cmds=$lt_postuninstall_cmds | |
36321 | ||
36322 | # Commands used to finish a libtool library installation in a directory. | |
36323 | finish_cmds=$lt_finish_cmds | |
36324 | ||
36325 | # As "finish_cmds", except a single script fragment to be evaled but | |
36326 | # not shown. | |
36327 | finish_eval=$lt_finish_eval | |
36328 | ||
36329 | # Whether we should hardcode library paths into libraries. | |
36330 | hardcode_into_libs=$hardcode_into_libs | |
36331 | ||
36332 | # Compile-time system search path for libraries. | |
36333 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
36334 | ||
36335 | # Run-time system search path for libraries. | |
36336 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
36337 | ||
36338 | # Whether dlopen is supported. | |
36339 | dlopen_support=$enable_dlopen | |
36340 | ||
36341 | # Whether dlopen of programs is supported. | |
36342 | dlopen_self=$enable_dlopen_self | |
36343 | ||
36344 | # Whether dlopen of statically linked programs is supported. | |
36345 | dlopen_self_static=$enable_dlopen_self_static | |
36346 | ||
36347 | # Commands to strip libraries. | |
36348 | old_striplib=$lt_old_striplib | |
36349 | striplib=$lt_striplib | |
36350 | ||
36351 | ||
36352 | # The linker used to build libraries. | |
36353 | LD=$lt_LD | |
36354 | ||
36355 | # Commands used to build an old-style archive. | |
36356 | old_archive_cmds=$lt_old_archive_cmds | |
36357 | ||
36358 | # A language specific compiler. | |
36359 | CC=$lt_compiler | |
36360 | ||
36361 | # Is the compiler the GNU compiler? | |
36362 | with_gcc=$GCC | |
36363 | ||
36364 | # Compiler flag to turn off builtin functions. | |
36365 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
36366 | ||
36367 | # How to pass a linker flag through the compiler. | |
36368 | wl=$lt_lt_prog_compiler_wl | |
36369 | ||
36370 | # Additional compiler flags for building library objects. | |
36371 | pic_flag=$lt_lt_prog_compiler_pic | |
36372 | ||
36373 | # Compiler flag to prevent dynamic linking. | |
36374 | link_static_flag=$lt_lt_prog_compiler_static | |
36375 | ||
36376 | # Does compiler simultaneously support -c and -o options? | |
36377 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
36378 | ||
36379 | # Whether or not to add -lc for building shared libraries. | |
36380 | build_libtool_need_lc=$archive_cmds_need_lc | |
36381 | ||
36382 | # Whether or not to disallow shared libs when runtime libs are static. | |
36383 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
36384 | ||
36385 | # Compiler flag to allow reflexive dlopens. | |
36386 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
36387 | ||
36388 | # Compiler flag to generate shared objects directly from archives. | |
36389 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
36390 | ||
36391 | # Whether the compiler copes with passing no objects directly. | |
36392 | compiler_needs_object=$lt_compiler_needs_object | |
36393 | ||
36394 | # Create an old-style archive from a shared archive. | |
36395 | old_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. | |
36398 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
36399 | ||
36400 | # Commands used to build a shared archive. | |
36401 | archive_cmds=$lt_archive_cmds | |
36402 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
36403 | ||
36404 | # Commands used to build a loadable module if different from building | |
36405 | # a shared archive. | |
36406 | module_cmds=$lt_module_cmds | |
36407 | module_expsym_cmds=$lt_module_expsym_cmds | |
36408 | ||
36409 | # Whether we are building with GNU ld or not. | |
36410 | with_gnu_ld=$lt_with_gnu_ld | |
36411 | ||
36412 | # Flag that allows shared libraries with undefined symbols to be built. | |
36413 | allow_undefined_flag=$lt_allow_undefined_flag | |
36414 | ||
36415 | # Flag that enforces no undefined symbols. | |
36416 | no_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 | |
36420 | hardcode_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. | |
36424 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
36425 | ||
36426 | # Whether we need a single "-rpath" flag with a separated argument. | |
36427 | hardcode_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. | |
36431 | hardcode_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. | |
36437 | hardcode_direct_absolute=$hardcode_direct_absolute | |
36438 | ||
36439 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
36440 | # into the resulting binary. | |
36441 | hardcode_minus_L=$hardcode_minus_L | |
36442 | ||
36443 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
36444 | # into the resulting binary. | |
36445 | hardcode_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. | |
36450 | hardcode_automatic=$hardcode_automatic | |
36451 | ||
36452 | # Set to yes if linker adds runtime paths of dependent libraries | |
36453 | # to runtime path list. | |
36454 | inherit_rpath=$inherit_rpath | |
36455 | ||
36456 | # Whether libtool must link a program against all its dependency libraries. | |
36457 | link_all_deplibs=$link_all_deplibs | |
36458 | ||
36459 | # Fix the shell variable \$srcfile for the compiler. | |
36460 | fix_srcfile_path=$lt_fix_srcfile_path | |
36461 | ||
36462 | # Set to "yes" if exported symbols are required. | |
36463 | always_export_symbols=$always_export_symbols | |
36464 | ||
36465 | # The commands to list exported symbols. | |
36466 | export_symbols_cmds=$lt_export_symbols_cmds | |
36467 | ||
36468 | # Symbols that should not be listed in the preloaded symbols. | |
36469 | exclude_expsyms=$lt_exclude_expsyms | |
36470 | ||
36471 | # Symbols that must always be exported. | |
36472 | include_expsyms=$lt_include_expsyms | |
36473 | ||
36474 | # Commands necessary for linking programs (against libraries) with templates. | |
36475 | prelink_cmds=$lt_prelink_cmds | |
36476 | ||
36477 | # Specify filename containing input files. | |
36478 | file_list_spec=$lt_file_list_spec | |
36479 | ||
36480 | # How to hardcode a shared library path into an executable. | |
36481 | hardcode_action=$hardcode_action | |
36482 | ||
00aafda4 | 36483 | # The directories searched by this compiler when creating a shared library. |
36484 | compiler_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. | |
36488 | predep_objects=$lt_predep_objects | |
36489 | postdep_objects=$lt_postdep_objects | |
36490 | predeps=$lt_predeps | |
36491 | postdeps=$lt_postdeps | |
36492 | ||
36493 | # The library search path used internally by the compiler when linking | |
36494 | # a shared library. | |
36495 | compiler_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. | |
36507 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
36508 | COLLECT_NAMES= | |
36509 | export COLLECT_NAMES | |
36510 | fi | |
36511 | _LT_EOF | |
36512 | ;; | |
36513 | esac | |
36514 | ||
36515 | ||
36516 | ltmain="$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. | |
36533 | func_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 | |
36542 | func_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. | |
36559 | func_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). | |
36573 | func_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 | |
36583 | func_opt_split () | |
36584 | { | |
36585 | func_opt_split_opt=${1%%=*} | |
36586 | func_opt_split_arg=${1#*=} | |
36587 | } | |
36588 | ||
36589 | # func_lo2o object | |
36590 | func_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 | |
36599 | func_xform () | |
36600 | { | |
36601 | func_xform_result=${1%.*}.lo | |
36602 | } | |
36603 | ||
36604 | # func_arith arithmetic-term... | |
36605 | func_arith () | |
36606 | { | |
36607 | func_arith_result=$(( $* )) | |
36608 | } | |
36609 | ||
36610 | # func_len string | |
36611 | # STRING may not start with a hyphen. | |
36612 | func_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. | |
36625 | func_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 | |
36637 | func_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 | |
36649 | func_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: | |
36660 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
36661 | my_sed_long_arg='1s/^-[^=]*=//' | |
36662 | ||
36663 | # func_opt_split | |
36664 | func_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 | |
36671 | func_lo2o () | |
36672 | { | |
36673 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
36674 | } | |
00aafda4 | 36675 | |
36676 | # func_xform libobj-or-source | |
36677 | func_xform () | |
36678 | { | |
36679 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
36680 | } | |
36681 | ||
36682 | # func_arith arithmetic-term... | |
36683 | func_arith () | |
36684 | { | |
36685 | func_arith_result=`expr "$@"` | |
36686 | } | |
36687 | ||
36688 | # func_len string | |
36689 | # STRING may not start with a hyphen. | |
36690 | func_len () | |
36691 | { | |
36692 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
36693 | } | |
36694 | ||
542f9784 | 36695 | _LT_EOF |
36696 | esac | |
36697 | ||
36698 | case $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. | |
36704 | func_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. | |
36715 | func_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. | |
36738 | LD=$lt_LD_FC | |
36739 | ||
36740 | # Commands used to build an old-style archive. | |
36741 | old_archive_cmds=$lt_old_archive_cmds_FC | |
36742 | ||
36743 | # A language specific compiler. | |
36744 | CC=$lt_compiler_FC | |
36745 | ||
36746 | # Is the compiler the GNU compiler? | |
36747 | with_gcc=$GCC_FC | |
36748 | ||
36749 | # Compiler flag to turn off builtin functions. | |
36750 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
36751 | ||
36752 | # How to pass a linker flag through the compiler. | |
36753 | wl=$lt_lt_prog_compiler_wl_FC | |
36754 | ||
36755 | # Additional compiler flags for building library objects. | |
36756 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
36757 | ||
36758 | # Compiler flag to prevent dynamic linking. | |
36759 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
36760 | ||
36761 | # Does compiler simultaneously support -c and -o options? | |
36762 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
36763 | ||
36764 | # Whether or not to add -lc for building shared libraries. | |
36765 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
36766 | ||
36767 | # Whether or not to disallow shared libs when runtime libs are static. | |
36768 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
36769 | ||
36770 | # Compiler flag to allow reflexive dlopens. | |
36771 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
36772 | ||
36773 | # Compiler flag to generate shared objects directly from archives. | |
36774 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
36775 | ||
36776 | # Whether the compiler copes with passing no objects directly. | |
36777 | compiler_needs_object=$lt_compiler_needs_object_FC | |
36778 | ||
36779 | # Create an old-style archive from a shared archive. | |
36780 | old_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. | |
36783 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
36784 | ||
36785 | # Commands used to build a shared archive. | |
36786 | archive_cmds=$lt_archive_cmds_FC | |
36787 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
36788 | ||
36789 | # Commands used to build a loadable module if different from building | |
36790 | # a shared archive. | |
36791 | module_cmds=$lt_module_cmds_FC | |
36792 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
36793 | ||
36794 | # Whether we are building with GNU ld or not. | |
36795 | with_gnu_ld=$lt_with_gnu_ld_FC | |
36796 | ||
36797 | # Flag that allows shared libraries with undefined symbols to be built. | |
36798 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
36799 | ||
36800 | # Flag that enforces no undefined symbols. | |
36801 | no_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 | |
36805 | hardcode_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. | |
36809 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
36810 | ||
36811 | # Whether we need a single "-rpath" flag with a separated argument. | |
36812 | hardcode_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. | |
36816 | hardcode_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. | |
36822 | hardcode_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. | |
36826 | hardcode_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. | |
36830 | hardcode_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. | |
36835 | hardcode_automatic=$hardcode_automatic_FC | |
36836 | ||
36837 | # Set to yes if linker adds runtime paths of dependent libraries | |
36838 | # to runtime path list. | |
36839 | inherit_rpath=$inherit_rpath_FC | |
36840 | ||
36841 | # Whether libtool must link a program against all its dependency libraries. | |
36842 | link_all_deplibs=$link_all_deplibs_FC | |
36843 | ||
36844 | # Fix the shell variable \$srcfile for the compiler. | |
36845 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
36846 | ||
36847 | # Set to "yes" if exported symbols are required. | |
36848 | always_export_symbols=$always_export_symbols_FC | |
36849 | ||
36850 | # The commands to list exported symbols. | |
36851 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
36852 | ||
36853 | # Symbols that should not be listed in the preloaded symbols. | |
36854 | exclude_expsyms=$lt_exclude_expsyms_FC | |
36855 | ||
36856 | # Symbols that must always be exported. | |
36857 | include_expsyms=$lt_include_expsyms_FC | |
36858 | ||
36859 | # Commands necessary for linking programs (against libraries) with templates. | |
36860 | prelink_cmds=$lt_prelink_cmds_FC | |
36861 | ||
36862 | # Specify filename containing input files. | |
36863 | file_list_spec=$lt_file_list_spec_FC | |
36864 | ||
36865 | # How to hardcode a shared library path into an executable. | |
36866 | hardcode_action=$hardcode_action_FC | |
36867 | ||
00aafda4 | 36868 | # The directories searched by this compiler when creating a shared library. |
36869 | compiler_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. | |
36873 | predep_objects=$lt_predep_objects_FC | |
36874 | postdep_objects=$lt_postdep_objects_FC | |
36875 | predeps=$lt_predeps_FC | |
36876 | postdeps=$lt_postdeps_FC | |
36877 | ||
36878 | # The library search path used internally by the compiler when linking | |
36879 | # a shared library. | |
36880 | compiler_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 | 36887 | if test "$GCC" = yes; then |
36888 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
36889 | else | |
36890 | echo "/* generated for $CC */" > tmp-stdint.h | |
36891 | fi | |
36892 | ||
36893 | sed '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> | |
36899 | EOF | |
36900 | ||
36901 | if test "$acx_cv_header_stdint" != stdint.h; then | |
36902 | echo "#include <stddef.h>" >> tmp-stdint.h | |
36903 | fi | |
36904 | if test "$acx_cv_header_stdint" != stddef.h; then | |
36905 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
36906 | fi | |
36907 | ||
36908 | sed '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 | ||
36919 | EOF | |
36920 | ||
36921 | # ----------------- done header, emit basic int types ------------- | |
36922 | if 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 | 36972 | EOF |
36973 | elif 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 | 37010 | EOF |
37011 | else | |
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 | |
37033 | EOF | |
37034 | fi | |
37035 | ||
37036 | # ------------- done basic int types, emit int64_t types ------------ | |
37037 | if 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 | |
37047 | EOF | |
37048 | elif 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 | 37062 | EOF |
37063 | elif 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 | 37078 | EOF |
37079 | else | |
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 */ | |
37126 | EOF | |
37127 | fi | |
37128 | ||
37129 | # ------------- done int64_t types, emit intptr types ------------ | |
37130 | if 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 | 37140 | EOF |
37141 | fi | |
37142 | ||
37143 | # ------------- done intptr types, emit int_least types ------------ | |
37144 | if 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 | |
37161 | EOF | |
37162 | fi | |
37163 | ||
37164 | # ------------- done intptr types, emit int_fast types ------------ | |
37165 | if 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 | |
37182 | EOF | |
37183 | fi | |
37184 | ||
37185 | if 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 | |
37199 | EOF | |
37200 | fi | |
37201 | ||
37202 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
37203 | ||
37204 | #endif /* GCC_GENERATED_STDINT_H */ | |
37205 | EOF | |
37206 | ||
37207 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
37208 | rm -f tmp-stdint.h | |
37209 | else | |
37210 | mv -f tmp-stdint.h gstdint.h | |
37211 | fi | |
37212 | ||
37213 | ;; | |
4ee9c684 | 37214 | esac |
82eaf560 | 37215 | done |
37216 | _ACEOF | |
4ee9c684 | 37217 | |
82eaf560 | 37218 | cat >>$CONFIG_STATUS <<\_ACEOF |
4ee9c684 | 37219 | |
37220 | { (exit 0); exit 0; } | |
37221 | _ACEOF | |
37222 | chmod +x $CONFIG_STATUS | |
37223 | ac_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. | |
37234 | if 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; } | |
37245 | fi | |
37246 |