]>
Commit | Line | Data |
---|---|---|
6de9cd9a DN |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69 for GNU Fortran Runtime Library 0.3. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5213506e | 7 | # |
6de9cd9a | 8 | # |
6de9cd9a DN |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
6de9cd9a | 14 | |
5213506e RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
6de9cd9a DN |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
6de9cd9a DN |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
6de9cd9a | 31 | fi |
6de9cd9a | 32 | |
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
6de9cd9a DN |
79 | fi |
80 | ||
81 | ||
5213506e RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 90 | as_myself= |
5213506e RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
6de9cd9a DN |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
5213506e RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
22e05272 JM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
5213506e RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
5213506e RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
21be0a5a | 199 | test \$(( 1 + 1 )) = 2 || exit 1 |
43e02a8a RW |
200 | |
201 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
202 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | PATH=/empty FPATH=/empty; export PATH FPATH | |
206 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
21be0a5a | 207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
5213506e RW |
208 | if (eval "$as_required") 2>/dev/null; then : |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
6de9cd9a | 219 | do |
5213506e RW |
220 | IFS=$as_save_IFS |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
22e05272 JM |
247 | export CONFIG_SHELL |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
5213506e RW |
266 | fi |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
6de9cd9a | 274 | else |
5213506e RW |
275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
6de9cd9a | 279 | fi |
5213506e RW |
280 | exit 1 |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
22e05272 JM |
367 | |
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
5213506e RW |
375 | # as_fn_append VAR VALUE |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
410 | ||
22e05272 JM |
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
5213506e RW |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 415 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
416 | as_fn_error () |
417 | { | |
22e05272 JM |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5213506e | 422 | fi |
22e05272 | 423 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
6de9cd9a | 426 | |
5213506e RW |
427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6de9cd9a DN |
429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
5213506e | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6de9cd9a DN |
435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
5213506e RW |
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
6de9cd9a | 445 | |
5213506e | 446 | as_me=`$as_basename -- "$0" || |
6de9cd9a DN |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
c0e7e2bf | 464 | |
38d24731 RW |
465 | # Avoid depending upon Character Ranges. |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
f489fba1 | 471 | |
6de9cd9a | 472 | |
5213506e RW |
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
6de9cd9a | 482 | sed ' |
5213506e RW |
483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
6de9cd9a | 487 | N |
5213506e RW |
488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
6de9cd9a | 490 | t loop |
5213506e | 491 | s/-\n.*// |
6de9cd9a | 492 | ' >$as_me.lineno && |
5213506e RW |
493 | chmod +x "$as_me.lineno" || |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
6de9cd9a | 495 | |
22e05272 JM |
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
6de9cd9a DN |
500 | # Don't try to exec as it changes $[0], causing all sort of problems |
501 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
502 | # original and so on. Autoconf is especially sensitive to this). |
503 | . "./$as_me.lineno" | |
6de9cd9a DN |
504 | # Exit status is that of the last command. |
505 | exit | |
506 | } | |
507 | ||
5213506e RW |
508 | ECHO_C= ECHO_N= ECHO_T= |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
6de9cd9a DN |
519 | esac |
520 | ||
5213506e RW |
521 | rm -f conf$$ conf$$.exe conf$$.file |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
6de9cd9a | 524 | else |
5213506e RW |
525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
6de9cd9a | 527 | fi |
5213506e RW |
528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
38d24731 | 530 | as_ln_s='ln -s' |
5213506e RW |
531 | # ... but there are two gotchas: |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 534 | # In both cases, we have to default to `cp -pR'. |
5213506e | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 536 | as_ln_s='cp -pR' |
5213506e RW |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
22e05272 | 540 | as_ln_s='cp -pR' |
38d24731 | 541 | fi |
6de9cd9a | 542 | else |
22e05272 | 543 | as_ln_s='cp -pR' |
6de9cd9a | 544 | fi |
5213506e RW |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
6de9cd9a DN |
547 | |
548 | if mkdir -p . 2>/dev/null; then | |
5213506e | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
6de9cd9a DN |
550 | else |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
22e05272 JM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
6de9cd9a DN |
557 | |
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
1cf3d07d SE |
564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
1cf3d07d | 566 | |
22e05272 JM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
5213506e | 569 | |
6de9cd9a | 570 | # Name of the host. |
22e05272 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
6de9cd9a DN |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
6de9cd9a DN |
575 | # |
576 | # Initializations. | |
577 | # | |
578 | ac_default_prefix=/usr/local | |
5213506e | 579 | ac_clean_files= |
6de9cd9a | 580 | ac_config_libobj_dir=. |
5213506e | 581 | LIBOBJS= |
6de9cd9a DN |
582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
38d24731 | 586 | |
6de9cd9a DN |
587 | # Identity of this package. |
588 | PACKAGE_NAME='GNU Fortran Runtime Library' | |
589 | PACKAGE_TARNAME='libgfortran' | |
0dce3ca1 FXC |
590 | PACKAGE_VERSION='0.3' |
591 | PACKAGE_STRING='GNU Fortran Runtime Library 0.3' | |
6de9cd9a | 592 | PACKAGE_BUGREPORT='' |
5213506e | 593 | PACKAGE_URL='http://www.gnu.org/software/libgfortran/' |
6de9cd9a DN |
594 | |
595 | # Factoring default headers for most tests. | |
596 | ac_includes_default="\ | |
597 | #include <stdio.h> | |
5213506e | 598 | #ifdef HAVE_SYS_TYPES_H |
6de9cd9a DN |
599 | # include <sys/types.h> |
600 | #endif | |
5213506e | 601 | #ifdef HAVE_SYS_STAT_H |
6de9cd9a DN |
602 | # include <sys/stat.h> |
603 | #endif | |
5213506e | 604 | #ifdef STDC_HEADERS |
6de9cd9a DN |
605 | # include <stdlib.h> |
606 | # include <stddef.h> | |
607 | #else | |
5213506e | 608 | # ifdef HAVE_STDLIB_H |
6de9cd9a DN |
609 | # include <stdlib.h> |
610 | # endif | |
611 | #endif | |
5213506e RW |
612 | #ifdef HAVE_STRING_H |
613 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
6de9cd9a DN |
614 | # include <memory.h> |
615 | # endif | |
616 | # include <string.h> | |
617 | #endif | |
5213506e | 618 | #ifdef HAVE_STRINGS_H |
6de9cd9a DN |
619 | # include <strings.h> |
620 | #endif | |
5213506e | 621 | #ifdef HAVE_INTTYPES_H |
6de9cd9a | 622 | # include <inttypes.h> |
6de9cd9a | 623 | #endif |
5213506e RW |
624 | #ifdef HAVE_STDINT_H |
625 | # include <stdint.h> | |
626 | #endif | |
627 | #ifdef HAVE_UNISTD_H | |
6de9cd9a DN |
628 | # include <unistd.h> |
629 | #endif" | |
630 | ||
74544378 JB |
631 | ac_header_list= |
632 | ac_func_list= | |
1ec601bf | 633 | ac_c_werror_flag= |
828012a5 | 634 | ac_c_werror_flag= |
5213506e RW |
635 | ac_subst_vars='am__EXEEXT_FALSE |
636 | am__EXEEXT_TRUE | |
637 | LTLIBOBJS | |
638 | LIBOBJS | |
3c36aa6b | 639 | get_gcc_base_ver |
1d5cf7fc TK |
640 | HAVE_AVX128_FALSE |
641 | HAVE_AVX128_TRUE | |
47ddb895 | 642 | tmake_file |
5213506e | 643 | IEEE_FLAGS |
8b198102 FXC |
644 | IEEE_SUPPORT |
645 | IEEE_SUPPORT_FALSE | |
646 | IEEE_SUPPORT_TRUE | |
5213506e | 647 | FPU_HOST_HEADER |
133d0d42 | 648 | USE_IEC_60559 |
1ec601bf FXC |
649 | LIBQUADINCLUDE |
650 | LIBQUADLIB_DEP | |
651 | LIBQUADLIB | |
652 | LIBQUADSPEC | |
5213506e RW |
653 | extra_ldflags_libgfortran |
654 | ac_ct_FC | |
655 | FCFLAGS | |
656 | FC | |
657 | enable_static | |
658 | enable_shared | |
7de6ba7a | 659 | lt_host_flags |
9b025925 | 660 | LIBM |
5213506e RW |
661 | OTOOL64 |
662 | OTOOL | |
663 | LIPO | |
664 | NMEDIT | |
665 | DSYMUTIL | |
5213506e RW |
666 | OBJDUMP |
667 | LN_S | |
668 | NM | |
669 | ac_ct_DUMPBIN | |
670 | DUMPBIN | |
5213506e RW |
671 | LIBTOOL |
672 | RANLIB | |
673 | AR | |
674 | AS | |
66dbcf2d RO |
675 | HAVE_HWCAP_FALSE |
676 | HAVE_HWCAP_TRUE | |
677 | HWCAP_LDFLAGS | |
678 | LD | |
679 | FGREP | |
680 | SED | |
5213506e | 681 | SECTION_FLAGS |
2e764ae1 TB |
682 | LIBGOMP_CHECKED_REAL_KINDS |
683 | LIBGOMP_CHECKED_INT_KINDS | |
ee95f928 BS |
684 | LIBGFOR_MINIMAL_FALSE |
685 | LIBGFOR_MINIMAL_TRUE | |
49ea7a0e RO |
686 | LIBGFOR_USE_SYMVER_SUN_FALSE |
687 | LIBGFOR_USE_SYMVER_SUN_TRUE | |
688 | LIBGFOR_USE_SYMVER_GNU_FALSE | |
689 | LIBGFOR_USE_SYMVER_GNU_TRUE | |
5213506e RW |
690 | LIBGFOR_USE_SYMVER_FALSE |
691 | LIBGFOR_USE_SYMVER_TRUE | |
692 | AM_CFLAGS | |
693 | AM_FCFLAGS | |
49ad4d2c TK |
694 | HAVE_REAL_17_FALSE |
695 | HAVE_REAL_17_TRUE | |
21be0a5a JB |
696 | toolexeclibdir |
697 | toolexecdir | |
698 | EGREP | |
699 | GREP | |
700 | CPP | |
5213506e RW |
701 | am__fastdepCC_FALSE |
702 | am__fastdepCC_TRUE | |
703 | CCDEPMODE | |
c20fdb91 | 704 | am__nodep |
5213506e RW |
705 | AMDEPBACKSLASH |
706 | AMDEP_FALSE | |
707 | AMDEP_TRUE | |
708 | am__quote | |
709 | am__include | |
710 | DEPDIR | |
711 | OBJEXT | |
712 | EXEEXT | |
713 | ac_ct_CC | |
714 | CPPFLAGS | |
715 | LDFLAGS | |
716 | CFLAGS | |
717 | CC | |
5213506e RW |
718 | multi_basedir |
719 | MAINT | |
720 | MAINTAINER_MODE_FALSE | |
721 | MAINTAINER_MODE_TRUE | |
22e05272 JM |
722 | AM_BACKSLASH |
723 | AM_DEFAULT_VERBOSITY | |
724 | AM_DEFAULT_V | |
725 | AM_V | |
5213506e RW |
726 | am__untar |
727 | am__tar | |
728 | AMTAR | |
729 | am__leading_dot | |
730 | SET_MAKE | |
731 | AWK | |
732 | mkdir_p | |
733 | MKDIR_P | |
734 | INSTALL_STRIP_PROGRAM | |
735 | STRIP | |
736 | install_sh | |
737 | MAKEINFO | |
738 | AUTOHEADER | |
739 | AUTOMAKE | |
740 | AUTOCONF | |
741 | ACLOCAL | |
742 | VERSION | |
743 | PACKAGE | |
744 | CYGPATH_W | |
745 | am__isrc | |
746 | INSTALL_DATA | |
747 | INSTALL_SCRIPT | |
748 | INSTALL_PROGRAM | |
60858d8a | 749 | target_noncanonical |
5213506e RW |
750 | target_os |
751 | target_vendor | |
752 | target_cpu | |
753 | target | |
754 | host_os | |
755 | host_vendor | |
756 | host_cpu | |
757 | host | |
758 | onestep | |
759 | onestep_FALSE | |
760 | onestep_TRUE | |
761 | target_subdir | |
762 | host_subdir | |
763 | build_subdir | |
764 | build_libsubdir | |
765 | build_os | |
766 | build_vendor | |
767 | build_cpu | |
768 | build | |
769 | target_alias | |
770 | host_alias | |
771 | build_alias | |
772 | LIBS | |
773 | ECHO_T | |
774 | ECHO_N | |
775 | ECHO_C | |
776 | DEFS | |
777 | mandir | |
778 | localedir | |
779 | libdir | |
780 | psdir | |
781 | pdfdir | |
782 | dvidir | |
783 | htmldir | |
784 | infodir | |
785 | docdir | |
786 | oldincludedir | |
787 | includedir | |
788 | localstatedir | |
789 | sharedstatedir | |
790 | sysconfdir | |
791 | datadir | |
792 | datarootdir | |
793 | libexecdir | |
794 | sbindir | |
795 | bindir | |
796 | program_transform_name | |
797 | prefix | |
798 | exec_prefix | |
799 | PACKAGE_URL | |
800 | PACKAGE_BUGREPORT | |
801 | PACKAGE_STRING | |
802 | PACKAGE_VERSION | |
803 | PACKAGE_TARNAME | |
804 | PACKAGE_NAME | |
805 | PATH_SEPARATOR | |
806 | SHELL' | |
6de9cd9a | 807 | ac_subst_files='' |
5213506e RW |
808 | ac_user_opts=' |
809 | enable_option_checking | |
810 | with_build_libsubdir | |
811 | enable_version_specific_runtime_libs | |
812 | enable_intermodule | |
22e05272 | 813 | enable_silent_rules |
5213506e RW |
814 | enable_maintainer_mode |
815 | enable_multilib | |
816 | enable_dependency_tracking | |
e8e66971 | 817 | with_toolexeclibdir |
26724ef9 | 818 | enable_cet |
bf382f5f | 819 | enable_symvers |
66dbcf2d | 820 | with_gnu_ld |
5213506e RW |
821 | enable_shared |
822 | enable_static | |
823 | with_pic | |
824 | enable_fast_install | |
5213506e RW |
825 | enable_libtool_lock |
826 | enable_largefile | |
87e6d9dc | 827 | enable_libquadmath_support |
3c36aa6b | 828 | with_gcc_major_version_only |
5213506e RW |
829 | ' |
830 | ac_precious_vars='build_alias | |
831 | host_alias | |
832 | target_alias | |
21be0a5a JB |
833 | CC |
834 | CFLAGS | |
835 | LDFLAGS | |
836 | LIBS | |
5213506e | 837 | CPPFLAGS |
21be0a5a | 838 | CPP |
5213506e | 839 | FC |
21be0a5a | 840 | FCFLAGS' |
5213506e | 841 | |
6de9cd9a DN |
842 | |
843 | # Initialize some variables set by options. | |
844 | ac_init_help= | |
845 | ac_init_version=false | |
5213506e RW |
846 | ac_unrecognized_opts= |
847 | ac_unrecognized_sep= | |
6de9cd9a DN |
848 | # The variables have the same names as the options, with |
849 | # dashes changed to underlines. | |
850 | cache_file=/dev/null | |
851 | exec_prefix=NONE | |
852 | no_create= | |
853 | no_recursion= | |
854 | prefix=NONE | |
855 | program_prefix=NONE | |
856 | program_suffix=NONE | |
857 | program_transform_name=s,x,x, | |
858 | silent= | |
859 | site= | |
860 | srcdir= | |
861 | verbose= | |
862 | x_includes=NONE | |
863 | x_libraries=NONE | |
864 | ||
865 | # Installation directory options. | |
866 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
867 | # and all the variables that are supposed to be based on exec_prefix | |
868 | # by default will actually change. | |
869 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 870 | # (The list follows the same order as the GNU Coding Standards.) |
6de9cd9a DN |
871 | bindir='${exec_prefix}/bin' |
872 | sbindir='${exec_prefix}/sbin' | |
873 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
874 | datarootdir='${prefix}/share' |
875 | datadir='${datarootdir}' | |
6de9cd9a DN |
876 | sysconfdir='${prefix}/etc' |
877 | sharedstatedir='${prefix}/com' | |
878 | localstatedir='${prefix}/var' | |
6de9cd9a DN |
879 | includedir='${prefix}/include' |
880 | oldincludedir='/usr/include' | |
5213506e RW |
881 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
882 | infodir='${datarootdir}/info' | |
883 | htmldir='${docdir}' | |
884 | dvidir='${docdir}' | |
885 | pdfdir='${docdir}' | |
886 | psdir='${docdir}' | |
887 | libdir='${exec_prefix}/lib' | |
888 | localedir='${datarootdir}/locale' | |
889 | mandir='${datarootdir}/man' | |
6de9cd9a DN |
890 | |
891 | ac_prev= | |
5213506e | 892 | ac_dashdash= |
6de9cd9a DN |
893 | for ac_option |
894 | do | |
895 | # If the previous option needs an argument, assign it. | |
896 | if test -n "$ac_prev"; then | |
5213506e | 897 | eval $ac_prev=\$ac_option |
6de9cd9a DN |
898 | ac_prev= |
899 | continue | |
900 | fi | |
901 | ||
5213506e | 902 | case $ac_option in |
22e05272 JM |
903 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
904 | *=) ac_optarg= ;; | |
905 | *) ac_optarg=yes ;; | |
5213506e | 906 | esac |
6de9cd9a DN |
907 | |
908 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
909 | ||
5213506e RW |
910 | case $ac_dashdash$ac_option in |
911 | --) | |
912 | ac_dashdash=yes ;; | |
6de9cd9a DN |
913 | |
914 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
915 | ac_prev=bindir ;; | |
916 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
917 | bindir=$ac_optarg ;; | |
918 | ||
919 | -build | --build | --buil | --bui | --bu) | |
920 | ac_prev=build_alias ;; | |
921 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
922 | build_alias=$ac_optarg ;; | |
923 | ||
924 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
925 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
926 | ac_prev=cache_file ;; | |
927 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
928 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
929 | cache_file=$ac_optarg ;; | |
930 | ||
931 | --config-cache | -C) | |
932 | cache_file=config.cache ;; | |
933 | ||
5213506e | 934 | -datadir | --datadir | --datadi | --datad) |
6de9cd9a | 935 | ac_prev=datadir ;; |
5213506e | 936 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
6de9cd9a DN |
937 | datadir=$ac_optarg ;; |
938 | ||
5213506e RW |
939 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
940 | | --dataroo | --dataro | --datar) | |
941 | ac_prev=datarootdir ;; | |
942 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
943 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
944 | datarootdir=$ac_optarg ;; | |
945 | ||
6de9cd9a | 946 | -disable-* | --disable-*) |
5213506e | 947 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
6de9cd9a | 948 | # Reject names that are not valid shell variable names. |
5213506e | 949 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 950 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
951 | ac_useropt_orig=$ac_useropt |
952 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
953 | case $ac_user_opts in | |
954 | *" | |
955 | "enable_$ac_useropt" | |
956 | "*) ;; | |
957 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
958 | ac_unrecognized_sep=', ';; | |
959 | esac | |
960 | eval enable_$ac_useropt=no ;; | |
961 | ||
962 | -docdir | --docdir | --docdi | --doc | --do) | |
963 | ac_prev=docdir ;; | |
964 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
965 | docdir=$ac_optarg ;; | |
966 | ||
967 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
968 | ac_prev=dvidir ;; | |
969 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
970 | dvidir=$ac_optarg ;; | |
6de9cd9a DN |
971 | |
972 | -enable-* | --enable-*) | |
5213506e | 973 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
6de9cd9a | 974 | # Reject names that are not valid shell variable names. |
5213506e | 975 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 976 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
977 | ac_useropt_orig=$ac_useropt |
978 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
979 | case $ac_user_opts in | |
980 | *" | |
981 | "enable_$ac_useropt" | |
982 | "*) ;; | |
983 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
984 | ac_unrecognized_sep=', ';; | |
38d24731 | 985 | esac |
5213506e | 986 | eval enable_$ac_useropt=\$ac_optarg ;; |
6de9cd9a DN |
987 | |
988 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
989 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
990 | | --exec | --exe | --ex) | |
991 | ac_prev=exec_prefix ;; | |
992 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
993 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
994 | | --exec=* | --exe=* | --ex=*) | |
995 | exec_prefix=$ac_optarg ;; | |
996 | ||
997 | -gas | --gas | --ga | --g) | |
998 | # Obsolete; use --with-gas. | |
999 | with_gas=yes ;; | |
1000 | ||
1001 | -help | --help | --hel | --he | -h) | |
1002 | ac_init_help=long ;; | |
1003 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1004 | ac_init_help=recursive ;; | |
1005 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1006 | ac_init_help=short ;; | |
1007 | ||
1008 | -host | --host | --hos | --ho) | |
1009 | ac_prev=host_alias ;; | |
1010 | -host=* | --host=* | --hos=* | --ho=*) | |
1011 | host_alias=$ac_optarg ;; | |
1012 | ||
5213506e RW |
1013 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1014 | ac_prev=htmldir ;; | |
1015 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1016 | | --ht=*) | |
1017 | htmldir=$ac_optarg ;; | |
1018 | ||
6de9cd9a DN |
1019 | -includedir | --includedir | --includedi | --included | --include \ |
1020 | | --includ | --inclu | --incl | --inc) | |
1021 | ac_prev=includedir ;; | |
1022 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1023 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1024 | includedir=$ac_optarg ;; | |
1025 | ||
1026 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1027 | ac_prev=infodir ;; | |
1028 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1029 | infodir=$ac_optarg ;; | |
1030 | ||
1031 | -libdir | --libdir | --libdi | --libd) | |
1032 | ac_prev=libdir ;; | |
1033 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1034 | libdir=$ac_optarg ;; | |
1035 | ||
1036 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1037 | | --libexe | --libex | --libe) | |
1038 | ac_prev=libexecdir ;; | |
1039 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1040 | | --libexe=* | --libex=* | --libe=*) | |
1041 | libexecdir=$ac_optarg ;; | |
1042 | ||
5213506e RW |
1043 | -localedir | --localedir | --localedi | --localed | --locale) |
1044 | ac_prev=localedir ;; | |
1045 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1046 | localedir=$ac_optarg ;; | |
1047 | ||
6de9cd9a | 1048 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1049 | | --localstate | --localstat | --localsta | --localst | --locals) |
6de9cd9a DN |
1050 | ac_prev=localstatedir ;; |
1051 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1052 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
6de9cd9a DN |
1053 | localstatedir=$ac_optarg ;; |
1054 | ||
1055 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1056 | ac_prev=mandir ;; | |
1057 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1058 | mandir=$ac_optarg ;; | |
1059 | ||
1060 | -nfp | --nfp | --nf) | |
1061 | # Obsolete; use --without-fp. | |
1062 | with_fp=no ;; | |
1063 | ||
1064 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1065 | | --no-cr | --no-c | -n) | |
1066 | no_create=yes ;; | |
1067 | ||
1068 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1069 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1070 | no_recursion=yes ;; | |
1071 | ||
1072 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1073 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1074 | | --oldin | --oldi | --old | --ol | --o) | |
1075 | ac_prev=oldincludedir ;; | |
1076 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1077 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1078 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1079 | oldincludedir=$ac_optarg ;; | |
1080 | ||
1081 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1082 | ac_prev=prefix ;; | |
1083 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1084 | prefix=$ac_optarg ;; | |
1085 | ||
1086 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1087 | | --program-pre | --program-pr | --program-p) | |
1088 | ac_prev=program_prefix ;; | |
1089 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1090 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1091 | program_prefix=$ac_optarg ;; | |
1092 | ||
1093 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1094 | | --program-suf | --program-su | --program-s) | |
1095 | ac_prev=program_suffix ;; | |
1096 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1097 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1098 | program_suffix=$ac_optarg ;; | |
1099 | ||
1100 | -program-transform-name | --program-transform-name \ | |
1101 | | --program-transform-nam | --program-transform-na \ | |
1102 | | --program-transform-n | --program-transform- \ | |
1103 | | --program-transform | --program-transfor \ | |
1104 | | --program-transfo | --program-transf \ | |
1105 | | --program-trans | --program-tran \ | |
1106 | | --progr-tra | --program-tr | --program-t) | |
1107 | ac_prev=program_transform_name ;; | |
1108 | -program-transform-name=* | --program-transform-name=* \ | |
1109 | | --program-transform-nam=* | --program-transform-na=* \ | |
1110 | | --program-transform-n=* | --program-transform-=* \ | |
1111 | | --program-transform=* | --program-transfor=* \ | |
1112 | | --program-transfo=* | --program-transf=* \ | |
1113 | | --program-trans=* | --program-tran=* \ | |
1114 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1115 | program_transform_name=$ac_optarg ;; | |
1116 | ||
5213506e RW |
1117 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1118 | ac_prev=pdfdir ;; | |
1119 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1120 | pdfdir=$ac_optarg ;; | |
1121 | ||
1122 | -psdir | --psdir | --psdi | --psd | --ps) | |
1123 | ac_prev=psdir ;; | |
1124 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1125 | psdir=$ac_optarg ;; | |
1126 | ||
6de9cd9a DN |
1127 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1128 | | -silent | --silent | --silen | --sile | --sil) | |
1129 | silent=yes ;; | |
1130 | ||
1131 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1132 | ac_prev=sbindir ;; | |
1133 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1134 | | --sbi=* | --sb=*) | |
1135 | sbindir=$ac_optarg ;; | |
1136 | ||
1137 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1138 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1139 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1140 | | --sha | --sh) | |
1141 | ac_prev=sharedstatedir ;; | |
1142 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1143 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1144 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1145 | | --sha=* | --sh=*) | |
1146 | sharedstatedir=$ac_optarg ;; | |
1147 | ||
1148 | -site | --site | --sit) | |
1149 | ac_prev=site ;; | |
1150 | -site=* | --site=* | --sit=*) | |
1151 | site=$ac_optarg ;; | |
1152 | ||
1153 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1154 | ac_prev=srcdir ;; | |
1155 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1156 | srcdir=$ac_optarg ;; | |
1157 | ||
1158 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1159 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1160 | ac_prev=sysconfdir ;; | |
1161 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1162 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1163 | sysconfdir=$ac_optarg ;; | |
1164 | ||
1165 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1166 | ac_prev=target_alias ;; | |
1167 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1168 | target_alias=$ac_optarg ;; | |
1169 | ||
1170 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1171 | verbose=yes ;; | |
1172 | ||
1173 | -version | --version | --versio | --versi | --vers | -V) | |
1174 | ac_init_version=: ;; | |
1175 | ||
1176 | -with-* | --with-*) | |
5213506e | 1177 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
6de9cd9a | 1178 | # Reject names that are not valid shell variable names. |
5213506e | 1179 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1180 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1181 | ac_useropt_orig=$ac_useropt |
1182 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1183 | case $ac_user_opts in | |
1184 | *" | |
1185 | "with_$ac_useropt" | |
1186 | "*) ;; | |
1187 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1188 | ac_unrecognized_sep=', ';; | |
38d24731 | 1189 | esac |
5213506e | 1190 | eval with_$ac_useropt=\$ac_optarg ;; |
6de9cd9a DN |
1191 | |
1192 | -without-* | --without-*) | |
5213506e | 1193 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
6de9cd9a | 1194 | # Reject names that are not valid shell variable names. |
5213506e | 1195 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1196 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1197 | ac_useropt_orig=$ac_useropt |
1198 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1199 | case $ac_user_opts in | |
1200 | *" | |
1201 | "with_$ac_useropt" | |
1202 | "*) ;; | |
1203 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1204 | ac_unrecognized_sep=', ';; | |
1205 | esac | |
1206 | eval with_$ac_useropt=no ;; | |
6de9cd9a DN |
1207 | |
1208 | --x) | |
1209 | # Obsolete; use --with-x. | |
1210 | with_x=yes ;; | |
1211 | ||
1212 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1213 | | --x-incl | --x-inc | --x-in | --x-i) | |
1214 | ac_prev=x_includes ;; | |
1215 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1216 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1217 | x_includes=$ac_optarg ;; | |
1218 | ||
1219 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1220 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1221 | ac_prev=x_libraries ;; | |
1222 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1223 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1224 | x_libraries=$ac_optarg ;; | |
1225 | ||
22e05272 JM |
1226 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1227 | Try \`$0 --help' for more information" | |
6de9cd9a DN |
1228 | ;; |
1229 | ||
1230 | *=*) | |
1231 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1232 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1233 | case $ac_envvar in #( |
1234 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1235 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1236 | esac |
1237 | eval $ac_envvar=\$ac_optarg | |
6de9cd9a DN |
1238 | export $ac_envvar ;; |
1239 | ||
1240 | *) | |
1241 | # FIXME: should be removed in autoconf 3.0. | |
5213506e | 1242 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
6de9cd9a | 1243 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1244 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1245 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
6de9cd9a DN |
1246 | ;; |
1247 | ||
1248 | esac | |
1249 | done | |
1250 | ||
1251 | if test -n "$ac_prev"; then | |
1252 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
22e05272 | 1253 | as_fn_error $? "missing argument to $ac_option" |
6de9cd9a DN |
1254 | fi |
1255 | ||
5213506e RW |
1256 | if test -n "$ac_unrecognized_opts"; then |
1257 | case $enable_option_checking in | |
1258 | no) ;; | |
22e05272 | 1259 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1260 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
38d24731 | 1261 | esac |
5213506e | 1262 | fi |
38d24731 | 1263 | |
5213506e RW |
1264 | # Check all directory arguments for consistency. |
1265 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1266 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1267 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
e9085da5 | 1268 | libdir localedir mandir |
38d24731 | 1269 | do |
5213506e RW |
1270 | eval ac_val=\$$ac_var |
1271 | # Remove trailing slashes. | |
1272 | case $ac_val in | |
1273 | */ ) | |
1274 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1275 | eval $ac_var=\$ac_val;; | |
1276 | esac | |
1277 | # Be sure to have absolute directory names. | |
38d24731 | 1278 | case $ac_val in |
5213506e RW |
1279 | [\\/$]* | ?:[\\/]* ) continue;; |
1280 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
6de9cd9a | 1281 | esac |
22e05272 | 1282 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
6de9cd9a DN |
1283 | done |
1284 | ||
1285 | # There might be people who depend on the old broken behavior: `$host' | |
1286 | # used to hold the argument of --host etc. | |
1287 | # FIXME: To remove some day. | |
1288 | build=$build_alias | |
1289 | host=$host_alias | |
1290 | target=$target_alias | |
1291 | ||
1292 | # FIXME: To remove some day. | |
1293 | if test "x$host_alias" != x; then | |
1294 | if test "x$build_alias" = x; then | |
1295 | cross_compiling=maybe | |
6de9cd9a DN |
1296 | elif test "x$build_alias" != "x$host_alias"; then |
1297 | cross_compiling=yes | |
1298 | fi | |
1299 | fi | |
1300 | ||
1301 | ac_tool_prefix= | |
1302 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1303 | ||
1304 | test "$silent" = yes && exec 6>/dev/null | |
1305 | ||
1306 | ||
5213506e RW |
1307 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1308 | ac_ls_di=`ls -di .` && | |
1309 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1310 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1311 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1312 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1313 | |
1314 | ||
6de9cd9a DN |
1315 | # Find the source files, if location was not specified. |
1316 | if test -z "$srcdir"; then | |
1317 | ac_srcdir_defaulted=yes | |
5213506e RW |
1318 | # Try the directory containing this script, then the parent directory. |
1319 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1320 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1321 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1322 | X"$as_myself" : 'X\(//\)$' \| \ | |
1323 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1324 | $as_echo X"$as_myself" | | |
1325 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1326 | s//\1/ | |
1327 | q | |
1328 | } | |
1329 | /^X\(\/\/\)[^/].*/{ | |
1330 | s//\1/ | |
1331 | q | |
1332 | } | |
1333 | /^X\(\/\/\)$/{ | |
1334 | s//\1/ | |
1335 | q | |
1336 | } | |
1337 | /^X\(\/\).*/{ | |
1338 | s//\1/ | |
1339 | q | |
1340 | } | |
1341 | s/.*/./; q'` | |
6de9cd9a | 1342 | srcdir=$ac_confdir |
5213506e | 1343 | if test ! -r "$srcdir/$ac_unique_file"; then |
6de9cd9a DN |
1344 | srcdir=.. |
1345 | fi | |
1346 | else | |
1347 | ac_srcdir_defaulted=no | |
1348 | fi | |
5213506e RW |
1349 | if test ! -r "$srcdir/$ac_unique_file"; then |
1350 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1351 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1352 | fi |
1353 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1354 | ac_abs_confdir=`( | |
22e05272 | 1355 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1356 | pwd)` |
1357 | # When building in place, set srcdir=. | |
1358 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1359 | srcdir=. | |
1360 | fi | |
1361 | # Remove unnecessary trailing slashes from srcdir. | |
1362 | # Double slashes in file names in object file debugging info | |
1363 | # mess up M-x gdb in Emacs. | |
1364 | case $srcdir in | |
1365 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1366 | esac | |
1367 | for ac_var in $ac_precious_vars; do | |
1368 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1369 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1370 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1371 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1372 | done | |
6de9cd9a DN |
1373 | |
1374 | # | |
1375 | # Report the --help message. | |
1376 | # | |
1377 | if test "$ac_init_help" = "long"; then | |
1378 | # Omit some internal or obsolete options to make the list less imposing. | |
1379 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1380 | cat <<_ACEOF | |
0dce3ca1 | 1381 | \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems. |
6de9cd9a DN |
1382 | |
1383 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1384 | ||
1385 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1386 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1387 | ||
1388 | Defaults for the options are specified in brackets. | |
1389 | ||
1390 | Configuration: | |
1391 | -h, --help display this help and exit | |
1392 | --help=short display options specific to this package | |
1393 | --help=recursive display the short help of all the included packages | |
1394 | -V, --version display version information and exit | |
22e05272 | 1395 | -q, --quiet, --silent do not print \`checking ...' messages |
6de9cd9a DN |
1396 | --cache-file=FILE cache test results in FILE [disabled] |
1397 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1398 | -n, --no-create do not create output files | |
1399 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1400 | ||
6de9cd9a DN |
1401 | Installation directories: |
1402 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1403 | [$ac_default_prefix] |
6de9cd9a | 1404 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1405 | [PREFIX] |
6de9cd9a DN |
1406 | |
1407 | By default, \`make install' will install all the files in | |
1408 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1409 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1410 | for instance \`--prefix=\$HOME'. | |
1411 | ||
1412 | For better control, use the options below. | |
1413 | ||
1414 | Fine tuning of the installation directories: | |
5213506e RW |
1415 | --bindir=DIR user executables [EPREFIX/bin] |
1416 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1417 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1418 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1419 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1420 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1421 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1422 | --includedir=DIR C header files [PREFIX/include] | |
1423 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1424 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1425 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1426 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1427 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1428 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1429 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran] | |
1430 | --htmldir=DIR html documentation [DOCDIR] | |
1431 | --dvidir=DIR dvi documentation [DOCDIR] | |
1432 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1433 | --psdir=DIR ps documentation [DOCDIR] | |
6de9cd9a DN |
1434 | _ACEOF |
1435 | ||
1436 | cat <<\_ACEOF | |
1437 | ||
1438 | Program names: | |
1439 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1440 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1441 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1442 | ||
1443 | System types: | |
1444 | --build=BUILD configure for building on BUILD [guessed] | |
1445 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
96b8a615 | 1446 | --target=TARGET configure for building compilers for TARGET [HOST] |
6de9cd9a DN |
1447 | _ACEOF |
1448 | fi | |
1449 | ||
1450 | if test -n "$ac_init_help"; then | |
1451 | case $ac_init_help in | |
0dce3ca1 | 1452 | short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";; |
6de9cd9a DN |
1453 | esac |
1454 | cat <<\_ACEOF | |
1455 | ||
1456 | Optional Features: | |
5213506e | 1457 | --disable-option-checking ignore unrecognized --enable/--with options |
6de9cd9a DN |
1458 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1459 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
87e6d9dc TB |
1460 | --enable-version-specific-runtime-libs |
1461 | specify that runtime libraries should be installed | |
1462 | in a compiler-specific directory | |
b808ac33 | 1463 | --enable-intermodule build the library in one step |
22e05272 JM |
1464 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1465 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1466 | --enable-maintainer-mode | |
1467 | enable make rules and dependencies not useful (and | |
1468 | sometimes confusing) to the casual installer | |
96b8a615 | 1469 | --enable-multilib build many library versions (default) |
22e05272 JM |
1470 | --enable-dependency-tracking |
1471 | do not reject slow dependency extractors | |
1472 | --disable-dependency-tracking | |
1473 | speeds up one-time build | |
8d286dd1 | 1474 | --enable-cet enable Intel CET in target libraries [default=auto] |
bf382f5f | 1475 | --disable-symvers disable symbol versioning for libgfortran |
5213506e RW |
1476 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1477 | --enable-static[=PKGS] build static libraries [default=yes] | |
1cf3d07d SE |
1478 | --enable-fast-install[=PKGS] |
1479 | optimize for fast installation [default=yes] | |
6de9cd9a | 1480 | --disable-libtool-lock avoid locking (might break parallel builds) |
9cdc381b | 1481 | --disable-largefile omit support for large files |
87e6d9dc TB |
1482 | --disable-libquadmath-support |
1483 | disable libquadmath support for Fortran | |
6de9cd9a DN |
1484 | |
1485 | Optional Packages: | |
1486 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1487 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
57255173 | 1488 | --with-build-libsubdir=DIR Directory where to find libraries for build system |
e8e66971 MR |
1489 | --with-toolexeclibdir=DIR |
1490 | install libraries built with a cross compiler within | |
1491 | DIR | |
66dbcf2d | 1492 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1cf3d07d SE |
1493 | --with-pic try to use only PIC/non-PIC objects [default=use |
1494 | both] | |
3c36aa6b JJ |
1495 | --with-gcc-major-version-only |
1496 | use only GCC major number in filesystem paths | |
6de9cd9a DN |
1497 | |
1498 | Some influential environment variables: | |
1499 | CC C compiler command | |
1500 | CFLAGS C compiler flags | |
1501 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1502 | nonstandard directory <lib dir> | |
5213506e | 1503 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1504 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1505 | you have headers in a nonstandard directory <include dir> |
1cf3d07d | 1506 | CPP C preprocessor |
c7a35fe9 AS |
1507 | FC Fortran compiler command |
1508 | FCFLAGS Fortran compiler flags | |
6de9cd9a DN |
1509 | |
1510 | Use these variables to override the choices made by `configure' or to help | |
1511 | it to find libraries and programs with nonstandard names/locations. | |
1512 | ||
5213506e RW |
1513 | Report bugs to the package provider. |
1514 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
1515 | General help using GNU software: <http://www.gnu.org/gethelp/>. | |
6de9cd9a | 1516 | _ACEOF |
5213506e | 1517 | ac_status=$? |
6de9cd9a DN |
1518 | fi |
1519 | ||
1520 | if test "$ac_init_help" = "recursive"; then | |
1521 | # If there are subdirs, report their specific --help. | |
6de9cd9a | 1522 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1523 | test -d "$ac_dir" || |
1524 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1525 | continue | |
6de9cd9a DN |
1526 | ac_builddir=. |
1527 | ||
5213506e RW |
1528 | case "$ac_dir" in |
1529 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1530 | *) | |
1531 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1532 | # A ".." for each directory in $ac_dir_suffix. | |
1533 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1534 | case $ac_top_builddir_sub in | |
1535 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1536 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1537 | esac ;; | |
1538 | esac | |
1539 | ac_abs_top_builddir=$ac_pwd | |
1540 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1541 | # for backward compatibility: | |
1542 | ac_top_builddir=$ac_top_build_prefix | |
6de9cd9a DN |
1543 | |
1544 | case $srcdir in | |
5213506e | 1545 | .) # We are building in place. |
6de9cd9a | 1546 | ac_srcdir=. |
5213506e RW |
1547 | ac_top_srcdir=$ac_top_builddir_sub |
1548 | ac_abs_top_srcdir=$ac_pwd ;; | |
1549 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
6de9cd9a | 1550 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1551 | ac_top_srcdir=$srcdir |
1552 | ac_abs_top_srcdir=$srcdir ;; | |
1553 | *) # Relative name. | |
1554 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1555 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1556 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
78511f8b | 1557 | esac |
5213506e RW |
1558 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1559 | ||
1560 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1561 | # Check for guested configure. | |
1562 | if test -f "$ac_srcdir/configure.gnu"; then | |
1563 | echo && | |
1564 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1565 | elif test -f "$ac_srcdir/configure"; then | |
1566 | echo && | |
1567 | $SHELL "$ac_srcdir/configure" --help=recursive | |
6de9cd9a | 1568 | else |
5213506e RW |
1569 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1570 | fi || ac_status=$? | |
1571 | cd "$ac_pwd" || { ac_status=$?; break; } | |
6de9cd9a DN |
1572 | done |
1573 | fi | |
1574 | ||
5213506e | 1575 | test -n "$ac_init_help" && exit $ac_status |
6de9cd9a DN |
1576 | if $ac_init_version; then |
1577 | cat <<\_ACEOF | |
0dce3ca1 | 1578 | GNU Fortran Runtime Library configure 0.3 |
22e05272 | 1579 | generated by GNU Autoconf 2.69 |
6de9cd9a | 1580 | |
22e05272 | 1581 | Copyright (C) 2012 Free Software Foundation, Inc. |
6de9cd9a DN |
1582 | This configure script is free software; the Free Software Foundation |
1583 | gives unlimited permission to copy, distribute and modify it. | |
1584 | _ACEOF | |
5213506e | 1585 | exit |
6de9cd9a | 1586 | fi |
6de9cd9a | 1587 | |
5213506e RW |
1588 | ## ------------------------ ## |
1589 | ## Autoconf initialization. ## | |
1590 | ## ------------------------ ## | |
6de9cd9a | 1591 | |
5213506e RW |
1592 | # ac_fn_c_try_compile LINENO |
1593 | # -------------------------- | |
1594 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1595 | ac_fn_c_try_compile () | |
1596 | { | |
1597 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1598 | rm -f conftest.$ac_objext | |
1599 | if { { ac_try="$ac_compile" | |
1600 | case "(($ac_try" in | |
1601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1602 | *) ac_try_echo=$ac_try;; | |
1603 | esac | |
1604 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1605 | $as_echo "$ac_try_echo"; } >&5 | |
1606 | (eval "$ac_compile") 2>conftest.err | |
1607 | ac_status=$? | |
1608 | if test -s conftest.err; then | |
1609 | grep -v '^ *+' conftest.err >conftest.er1 | |
1610 | cat conftest.er1 >&5 | |
1611 | mv -f conftest.er1 conftest.err | |
1612 | fi | |
1613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1614 | test $ac_status = 0; } && { | |
1615 | test -z "$ac_c_werror_flag" || | |
1616 | test ! -s conftest.err | |
1617 | } && test -s conftest.$ac_objext; then : | |
1618 | ac_retval=0 | |
1619 | else | |
1620 | $as_echo "$as_me: failed program was:" >&5 | |
1621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1622 | |
5213506e RW |
1623 | ac_retval=1 |
1624 | fi | |
22e05272 JM |
1625 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1626 | as_fn_set_status $ac_retval | |
5213506e RW |
1627 | |
1628 | } # ac_fn_c_try_compile | |
1629 | ||
21be0a5a JB |
1630 | # ac_fn_c_try_cpp LINENO |
1631 | # ---------------------- | |
1632 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1633 | ac_fn_c_try_cpp () | |
6de9cd9a | 1634 | { |
5213506e | 1635 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
21be0a5a | 1636 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
5213506e RW |
1637 | case "(($ac_try" in |
1638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1639 | *) ac_try_echo=$ac_try;; | |
1640 | esac | |
1641 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1642 | $as_echo "$ac_try_echo"; } >&5 | |
21be0a5a | 1643 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
5213506e RW |
1644 | ac_status=$? |
1645 | if test -s conftest.err; then | |
1646 | grep -v '^ *+' conftest.err >conftest.er1 | |
1647 | cat conftest.er1 >&5 | |
1648 | mv -f conftest.er1 conftest.err | |
1649 | fi | |
1650 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 1651 | test $ac_status = 0; } > conftest.i && { |
21be0a5a | 1652 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5213506e | 1653 | test ! -s conftest.err |
5213506e RW |
1654 | }; then : |
1655 | ac_retval=0 | |
1656 | else | |
1657 | $as_echo "$as_me: failed program was:" >&5 | |
1658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1659 | |
21be0a5a | 1660 | ac_retval=1 |
5213506e | 1661 | fi |
22e05272 JM |
1662 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1663 | as_fn_set_status $ac_retval | |
6de9cd9a | 1664 | |
21be0a5a | 1665 | } # ac_fn_c_try_cpp |
6de9cd9a | 1666 | |
21be0a5a | 1667 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
5213506e | 1668 | # ------------------------------------------------------- |
21be0a5a JB |
1669 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1670 | # the include files in INCLUDES and setting the cache variable VAR | |
1671 | # accordingly. | |
1672 | ac_fn_c_check_header_mongrel () | |
5213506e RW |
1673 | { |
1674 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
22e05272 | 1675 | if eval \${$3+:} false; then : |
5213506e RW |
1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1677 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1678 | if eval \${$3+:} false; then : |
5213506e | 1679 | $as_echo_n "(cached) " >&6 |
21be0a5a JB |
1680 | fi |
1681 | eval ac_res=\$$3 | |
1682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1683 | $as_echo "$ac_res" >&6; } | |
5213506e | 1684 | else |
21be0a5a JB |
1685 | # Is the header compilable? |
1686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1687 | $as_echo_n "checking $2 usability... " >&6; } | |
1688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e RW |
1689 | /* end confdefs.h. */ |
1690 | $4 | |
1691 | #include <$2> | |
1692 | _ACEOF | |
1693 | if ac_fn_c_try_compile "$LINENO"; then : | |
21be0a5a | 1694 | ac_header_compiler=yes |
5213506e | 1695 | else |
21be0a5a | 1696 | ac_header_compiler=no |
5213506e RW |
1697 | fi |
1698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21be0a5a JB |
1699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1700 | $as_echo "$ac_header_compiler" >&6; } | |
6de9cd9a | 1701 | |
21be0a5a JB |
1702 | # Is the header present? |
1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1704 | $as_echo_n "checking $2 presence... " >&6; } | |
1705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1706 | /* end confdefs.h. */ | |
1707 | #include <$2> | |
1708 | _ACEOF | |
1709 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1710 | ac_header_preproc=yes | |
1711 | else | |
1712 | ac_header_preproc=no | |
1713 | fi | |
22e05272 | 1714 | rm -f conftest.err conftest.i conftest.$ac_ext |
21be0a5a JB |
1715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1716 | $as_echo "$ac_header_preproc" >&6; } | |
6de9cd9a | 1717 | |
21be0a5a JB |
1718 | # So? What about this header? |
1719 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1720 | yes:no: ) | |
1721 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1722 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1724 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1725 | ;; | |
1726 | no:yes:* ) | |
1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1728 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1730 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1731 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1732 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1733 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1734 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1735 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1736 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1737 | ;; | |
5213506e | 1738 | esac |
21be0a5a JB |
1739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1740 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1741 | if eval \${$3+:} false; then : |
21be0a5a | 1742 | $as_echo_n "(cached) " >&6 |
5213506e | 1743 | else |
21be0a5a JB |
1744 | eval "$3=\$ac_header_compiler" |
1745 | fi | |
1746 | eval ac_res=\$$3 | |
1747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1748 | $as_echo "$ac_res" >&6; } | |
5213506e | 1749 | fi |
22e05272 | 1750 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 1751 | |
21be0a5a | 1752 | } # ac_fn_c_check_header_mongrel |
6de9cd9a | 1753 | |
5213506e RW |
1754 | # ac_fn_c_try_run LINENO |
1755 | # ---------------------- | |
1756 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1757 | # that executables *can* be run. | |
1758 | ac_fn_c_try_run () | |
1759 | { | |
1760 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1761 | if { { ac_try="$ac_link" | |
1762 | case "(($ac_try" in | |
1763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1764 | *) ac_try_echo=$ac_try;; | |
1765 | esac | |
1766 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1767 | $as_echo "$ac_try_echo"; } >&5 | |
1768 | (eval "$ac_link") 2>&5 | |
1769 | ac_status=$? | |
1770 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1771 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1772 | { { case "(($ac_try" in | |
1773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1774 | *) ac_try_echo=$ac_try;; | |
1775 | esac | |
1776 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1777 | $as_echo "$ac_try_echo"; } >&5 | |
1778 | (eval "$ac_try") 2>&5 | |
1779 | ac_status=$? | |
1780 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1781 | test $ac_status = 0; }; }; then : | |
1782 | ac_retval=0 | |
1783 | else | |
1784 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1785 | $as_echo "$as_me: failed program was:" >&5 | |
1786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1787 | |
5213506e RW |
1788 | ac_retval=$ac_status |
1789 | fi | |
1790 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1791 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1792 | as_fn_set_status $ac_retval | |
6de9cd9a | 1793 | |
5213506e | 1794 | } # ac_fn_c_try_run |
6de9cd9a | 1795 | |
21be0a5a JB |
1796 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1797 | # ------------------------------------------------------- | |
1798 | # Tests whether HEADER exists and can be compiled using the include files in | |
1799 | # INCLUDES, setting the cache variable VAR accordingly. | |
1800 | ac_fn_c_check_header_compile () | |
1801 | { | |
1802 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1804 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1805 | if eval \${$3+:} false; then : |
21be0a5a JB |
1806 | $as_echo_n "(cached) " >&6 |
1807 | else | |
1808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1809 | /* end confdefs.h. */ | |
1810 | $4 | |
1811 | #include <$2> | |
1812 | _ACEOF | |
1813 | if ac_fn_c_try_compile "$LINENO"; then : | |
1814 | eval "$3=yes" | |
1815 | else | |
1816 | eval "$3=no" | |
1817 | fi | |
1818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1819 | fi | |
1820 | eval ac_res=\$$3 | |
1821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1822 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1823 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
21be0a5a JB |
1824 | |
1825 | } # ac_fn_c_check_header_compile | |
1826 | ||
1827 | # ac_fn_c_try_link LINENO | |
1828 | # ----------------------- | |
1829 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1830 | ac_fn_c_try_link () | |
1831 | { | |
1832 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1833 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1834 | if { { ac_try="$ac_link" | |
1835 | case "(($ac_try" in | |
1836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1837 | *) ac_try_echo=$ac_try;; | |
1838 | esac | |
1839 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1840 | $as_echo "$ac_try_echo"; } >&5 | |
1841 | (eval "$ac_link") 2>conftest.err | |
1842 | ac_status=$? | |
1843 | if test -s conftest.err; then | |
1844 | grep -v '^ *+' conftest.err >conftest.er1 | |
1845 | cat conftest.er1 >&5 | |
1846 | mv -f conftest.er1 conftest.err | |
1847 | fi | |
1848 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1849 | test $ac_status = 0; } && { | |
1850 | test -z "$ac_c_werror_flag" || | |
1851 | test ! -s conftest.err | |
1852 | } && test -s conftest$ac_exeext && { | |
1853 | test "$cross_compiling" = yes || | |
22e05272 | 1854 | test -x conftest$ac_exeext |
21be0a5a JB |
1855 | }; then : |
1856 | ac_retval=0 | |
1857 | else | |
1858 | $as_echo "$as_me: failed program was:" >&5 | |
1859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1860 | ||
1861 | ac_retval=1 | |
1862 | fi | |
1863 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1864 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1865 | # interfere with the next link command; also delete a directory that is | |
1866 | # left behind by Apple's compiler. We do this before executing the actions. | |
1867 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1868 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1869 | as_fn_set_status $ac_retval | |
21be0a5a JB |
1870 | |
1871 | } # ac_fn_c_try_link | |
1872 | ||
5213506e RW |
1873 | # ac_fn_c_check_func LINENO FUNC VAR |
1874 | # ---------------------------------- | |
1875 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1876 | ac_fn_c_check_func () | |
1877 | { | |
1878 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1880 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1881 | if eval \${$3+:} false; then : |
5213506e RW |
1882 | $as_echo_n "(cached) " >&6 |
1883 | else | |
1884 | if test x$gcc_no_link = xyes; then | |
22e05272 | 1885 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5213506e RW |
1886 | fi |
1887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1888 | /* end confdefs.h. */ | |
1889 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1890 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1891 | #define $2 innocuous_$2 | |
6de9cd9a | 1892 | |
5213506e RW |
1893 | /* System header to define __stub macros and hopefully few prototypes, |
1894 | which can conflict with char $2 (); below. | |
1895 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1896 | <limits.h> exists even on freestanding compilers. */ | |
6de9cd9a | 1897 | |
5213506e RW |
1898 | #ifdef __STDC__ |
1899 | # include <limits.h> | |
1900 | #else | |
1901 | # include <assert.h> | |
1902 | #endif | |
6de9cd9a | 1903 | |
5213506e RW |
1904 | #undef $2 |
1905 | ||
1906 | /* Override any GCC internal prototype to avoid an error. | |
1907 | Use char because int might match the return type of a GCC | |
1908 | builtin and then its argument prototype would still apply. */ | |
1909 | #ifdef __cplusplus | |
1910 | extern "C" | |
1911 | #endif | |
1912 | char $2 (); | |
1913 | /* The GNU C library defines this for functions which it implements | |
1914 | to always fail with ENOSYS. Some functions are actually named | |
1915 | something starting with __ and the normal name is an alias. */ | |
1916 | #if defined __stub_$2 || defined __stub___$2 | |
1917 | choke me | |
1918 | #endif | |
1919 | ||
1920 | int | |
1921 | main () | |
38d24731 | 1922 | { |
5213506e RW |
1923 | return $2 (); |
1924 | ; | |
1925 | return 0; | |
38d24731 | 1926 | } |
5213506e RW |
1927 | _ACEOF |
1928 | if ac_fn_c_try_link "$LINENO"; then : | |
1929 | eval "$3=yes" | |
1930 | else | |
1931 | eval "$3=no" | |
1932 | fi | |
1933 | rm -f core conftest.err conftest.$ac_objext \ | |
1934 | conftest$ac_exeext conftest.$ac_ext | |
1935 | fi | |
1936 | eval ac_res=\$$3 | |
1937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1938 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1939 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 1940 | |
5213506e | 1941 | } # ac_fn_c_check_func |
6de9cd9a | 1942 | |
5213506e RW |
1943 | # ac_fn_fc_try_compile LINENO |
1944 | # --------------------------- | |
1945 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1946 | ac_fn_fc_try_compile () | |
1947 | { | |
1948 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1949 | rm -f conftest.$ac_objext | |
1950 | if { { ac_try="$ac_compile" | |
1951 | case "(($ac_try" in | |
1952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1953 | *) ac_try_echo=$ac_try;; | |
1954 | esac | |
1955 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1956 | $as_echo "$ac_try_echo"; } >&5 | |
1957 | (eval "$ac_compile") 2>conftest.err | |
1958 | ac_status=$? | |
1959 | if test -s conftest.err; then | |
1960 | grep -v '^ *+' conftest.err >conftest.er1 | |
1961 | cat conftest.er1 >&5 | |
1962 | mv -f conftest.er1 conftest.err | |
1963 | fi | |
1964 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1965 | test $ac_status = 0; } && { | |
1966 | test -z "$ac_fc_werror_flag" || | |
1967 | test ! -s conftest.err | |
1968 | } && test -s conftest.$ac_objext; then : | |
1969 | ac_retval=0 | |
1970 | else | |
1971 | $as_echo "$as_me: failed program was:" >&5 | |
1972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1973 | |
5213506e RW |
1974 | ac_retval=1 |
1975 | fi | |
22e05272 JM |
1976 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1977 | as_fn_set_status $ac_retval | |
6de9cd9a | 1978 | |
5213506e | 1979 | } # ac_fn_fc_try_compile |
6de9cd9a | 1980 | |
5213506e RW |
1981 | # ac_fn_fc_try_link LINENO |
1982 | # ------------------------ | |
1983 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1984 | ac_fn_fc_try_link () | |
1985 | { | |
1986 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1987 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1988 | if { { ac_try="$ac_link" | |
1989 | case "(($ac_try" in | |
1990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1991 | *) ac_try_echo=$ac_try;; | |
1992 | esac | |
1993 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1994 | $as_echo "$ac_try_echo"; } >&5 | |
1995 | (eval "$ac_link") 2>conftest.err | |
1996 | ac_status=$? | |
1997 | if test -s conftest.err; then | |
1998 | grep -v '^ *+' conftest.err >conftest.er1 | |
1999 | cat conftest.er1 >&5 | |
2000 | mv -f conftest.er1 conftest.err | |
2001 | fi | |
2002 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2003 | test $ac_status = 0; } && { | |
2004 | test -z "$ac_fc_werror_flag" || | |
2005 | test ! -s conftest.err | |
2006 | } && test -s conftest$ac_exeext && { | |
2007 | test "$cross_compiling" = yes || | |
22e05272 | 2008 | test -x conftest$ac_exeext |
5213506e RW |
2009 | }; then : |
2010 | ac_retval=0 | |
2011 | else | |
2012 | $as_echo "$as_me: failed program was:" >&5 | |
2013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 2014 | |
5213506e RW |
2015 | ac_retval=1 |
2016 | fi | |
2017 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2018 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2019 | # interfere with the next link command; also delete a directory that is | |
2020 | # left behind by Apple's compiler. We do this before executing the actions. | |
2021 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
2022 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2023 | as_fn_set_status $ac_retval | |
6de9cd9a | 2024 | |
5213506e | 2025 | } # ac_fn_fc_try_link |
6de9cd9a | 2026 | |
5213506e RW |
2027 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2028 | # ------------------------------------------- | |
2029 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2030 | # variable VAR accordingly. | |
2031 | ac_fn_c_check_type () | |
2032 | { | |
2033 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2035 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 2036 | if eval \${$3+:} false; then : |
5213506e RW |
2037 | $as_echo_n "(cached) " >&6 |
2038 | else | |
2039 | eval "$3=no" | |
2040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2041 | /* end confdefs.h. */ | |
2042 | $4 | |
2043 | int | |
2044 | main () | |
2045 | { | |
2046 | if (sizeof ($2)) | |
2047 | return 0; | |
2048 | ; | |
2049 | return 0; | |
2050 | } | |
6de9cd9a | 2051 | _ACEOF |
5213506e RW |
2052 | if ac_fn_c_try_compile "$LINENO"; then : |
2053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2054 | /* end confdefs.h. */ | |
2055 | $4 | |
2056 | int | |
2057 | main () | |
2058 | { | |
2059 | if (sizeof (($2))) | |
2060 | return 0; | |
2061 | ; | |
2062 | return 0; | |
2063 | } | |
6de9cd9a | 2064 | _ACEOF |
5213506e | 2065 | if ac_fn_c_try_compile "$LINENO"; then : |
6de9cd9a | 2066 | |
5213506e RW |
2067 | else |
2068 | eval "$3=yes" | |
2069 | fi | |
2070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2071 | fi | |
2072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2073 | fi | |
2074 | eval ac_res=\$$3 | |
2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2076 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2077 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 2078 | |
5213506e | 2079 | } # ac_fn_c_check_type |
6de9cd9a | 2080 | |
21be0a5a JB |
2081 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2082 | # -------------------------------------------- | |
2083 | # Tries to find the compile-time value of EXPR in a program that includes | |
2084 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2085 | # computed | |
2086 | ac_fn_c_compute_int () | |
5213506e RW |
2087 | { |
2088 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c13e029b PB |
2089 | if test "$cross_compiling" = yes; then |
2090 | # Depending upon the size, compute the lo and hi bounds. | |
2091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e | 2092 | /* end confdefs.h. */ |
c13e029b | 2093 | $4 |
5213506e RW |
2094 | int |
2095 | main () | |
2096 | { | |
c13e029b | 2097 | static int test_array [1 - 2 * !(($2) >= 0)]; |
22e05272 JM |
2098 | test_array [0] = 0; |
2099 | return test_array [0]; | |
6de9cd9a | 2100 | |
5213506e RW |
2101 | ; |
2102 | return 0; | |
2103 | } | |
2104 | _ACEOF | |
2105 | if ac_fn_c_try_compile "$LINENO"; then : | |
c13e029b PB |
2106 | ac_lo=0 ac_mid=0 |
2107 | while :; do | |
2108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e | 2109 | /* end confdefs.h. */ |
c13e029b | 2110 | $4 |
5213506e RW |
2111 | int |
2112 | main () | |
2113 | { | |
c13e029b | 2114 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
22e05272 JM |
2115 | test_array [0] = 0; |
2116 | return test_array [0]; | |
6de9cd9a | 2117 | |
5213506e RW |
2118 | ; |
2119 | return 0; | |
2120 | } | |
2121 | _ACEOF | |
2122 | if ac_fn_c_try_compile "$LINENO"; then : | |
c13e029b | 2123 | ac_hi=$ac_mid; break |
5213506e | 2124 | else |
c13e029b PB |
2125 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2126 | if test $ac_lo -le $ac_mid; then | |
2127 | ac_lo= ac_hi= | |
2128 | break | |
2129 | fi | |
2130 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
5213506e RW |
2131 | fi |
2132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c13e029b PB |
2133 | done |
2134 | else | |
2135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2136 | /* end confdefs.h. */ | |
2137 | $4 | |
2138 | int | |
2139 | main () | |
2140 | { | |
2141 | static int test_array [1 - 2 * !(($2) < 0)]; | |
22e05272 JM |
2142 | test_array [0] = 0; |
2143 | return test_array [0]; | |
c13e029b PB |
2144 | |
2145 | ; | |
2146 | return 0; | |
2147 | } | |
2148 | _ACEOF | |
2149 | if ac_fn_c_try_compile "$LINENO"; then : | |
2150 | ac_hi=-1 ac_mid=-1 | |
2151 | while :; do | |
2152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2153 | /* end confdefs.h. */ | |
2154 | $4 | |
2155 | int | |
2156 | main () | |
2157 | { | |
2158 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
22e05272 JM |
2159 | test_array [0] = 0; |
2160 | return test_array [0]; | |
c13e029b PB |
2161 | |
2162 | ; | |
2163 | return 0; | |
2164 | } | |
2165 | _ACEOF | |
2166 | if ac_fn_c_try_compile "$LINENO"; then : | |
2167 | ac_lo=$ac_mid; break | |
2168 | else | |
2169 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2170 | if test $ac_mid -le $ac_hi; then | |
2171 | ac_lo= ac_hi= | |
2172 | break | |
2173 | fi | |
2174 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
5213506e RW |
2175 | fi |
2176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c13e029b | 2177 | done |
d72a3ac1 | 2178 | else |
c13e029b | 2179 | ac_lo= ac_hi= |
5213506e | 2180 | fi |
c13e029b | 2181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d72a3ac1 | 2182 | fi |
c13e029b PB |
2183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2184 | # Binary search between lo and hi bounds. | |
2185 | while test "x$ac_lo" != "x$ac_hi"; do | |
2186 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e | 2188 | /* end confdefs.h. */ |
c13e029b | 2189 | $4 |
5213506e RW |
2190 | int |
2191 | main () | |
2192 | { | |
c13e029b | 2193 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
22e05272 JM |
2194 | test_array [0] = 0; |
2195 | return test_array [0]; | |
6de9cd9a | 2196 | |
5213506e RW |
2197 | ; |
2198 | return 0; | |
2199 | } | |
2200 | _ACEOF | |
2201 | if ac_fn_c_try_compile "$LINENO"; then : | |
c13e029b PB |
2202 | ac_hi=$ac_mid |
2203 | else | |
2204 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
5213506e RW |
2205 | fi |
2206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c13e029b PB |
2207 | done |
2208 | case $ac_lo in #(( | |
2209 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2210 | '') ac_retval=1 ;; | |
2211 | esac | |
2212 | else | |
2213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2214 | /* end confdefs.h. */ | |
2215 | $4 | |
2216 | static long int longval () { return $2; } | |
2217 | static unsigned long int ulongval () { return $2; } | |
2218 | #include <stdio.h> | |
2219 | #include <stdlib.h> | |
2220 | int | |
2221 | main () | |
2222 | { | |
6de9cd9a | 2223 | |
c13e029b PB |
2224 | FILE *f = fopen ("conftest.val", "w"); |
2225 | if (! f) | |
2226 | return 1; | |
2227 | if (($2) < 0) | |
2228 | { | |
2229 | long int i = longval (); | |
2230 | if (i != ($2)) | |
2231 | return 1; | |
2232 | fprintf (f, "%ld", i); | |
2233 | } | |
2234 | else | |
2235 | { | |
2236 | unsigned long int i = ulongval (); | |
2237 | if (i != ($2)) | |
2238 | return 1; | |
2239 | fprintf (f, "%lu", i); | |
2240 | } | |
2241 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2242 | on some platforms. */ | |
2243 | return ferror (f) || fclose (f) != 0; | |
2244 | ||
2245 | ; | |
2246 | return 0; | |
2247 | } | |
2248 | _ACEOF | |
2249 | if ac_fn_c_try_run "$LINENO"; then : | |
2250 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
5213506e | 2251 | else |
c13e029b | 2252 | ac_retval=1 |
d72a3ac1 | 2253 | fi |
c13e029b PB |
2254 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2255 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2256 | rm -f conftest.val | |
2257 | ||
2258 | fi | |
22e05272 JM |
2259 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2260 | as_fn_set_status $ac_retval | |
6de9cd9a | 2261 | |
c13e029b | 2262 | } # ac_fn_c_compute_int |
6de9cd9a | 2263 | |
5213506e RW |
2264 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2265 | # ---------------------------------------------------- | |
2266 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2267 | # INCLUDES, setting cache variable VAR accordingly. | |
2268 | ac_fn_c_check_member () | |
2269 | { | |
2270 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2272 | $as_echo_n "checking for $2.$3... " >&6; } | |
22e05272 | 2273 | if eval \${$4+:} false; then : |
5213506e RW |
2274 | $as_echo_n "(cached) " >&6 |
2275 | else | |
2276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2277 | /* end confdefs.h. */ | |
2278 | $5 | |
2279 | int | |
2280 | main () | |
2281 | { | |
2282 | static $2 ac_aggr; | |
2283 | if (ac_aggr.$3) | |
2284 | return 0; | |
2285 | ; | |
2286 | return 0; | |
2287 | } | |
2288 | _ACEOF | |
2289 | if ac_fn_c_try_compile "$LINENO"; then : | |
2290 | eval "$4=yes" | |
2291 | else | |
2292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2293 | /* end confdefs.h. */ | |
2294 | $5 | |
2295 | int | |
2296 | main () | |
2297 | { | |
2298 | static $2 ac_aggr; | |
2299 | if (sizeof ac_aggr.$3) | |
2300 | return 0; | |
2301 | ; | |
2302 | return 0; | |
2303 | } | |
2304 | _ACEOF | |
2305 | if ac_fn_c_try_compile "$LINENO"; then : | |
2306 | eval "$4=yes" | |
2307 | else | |
2308 | eval "$4=no" | |
2309 | fi | |
2310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2311 | fi | |
2312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2313 | fi | |
2314 | eval ac_res=\$$4 | |
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2316 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2317 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 2318 | |
5213506e RW |
2319 | } # ac_fn_c_check_member |
2320 | cat >config.log <<_ACEOF | |
2321 | This file contains any messages produced by compilers while | |
2322 | running configure, to aid debugging if configure makes a mistake. | |
6de9cd9a | 2323 | |
5213506e | 2324 | It was created by GNU Fortran Runtime Library $as_me 0.3, which was |
22e05272 | 2325 | generated by GNU Autoconf 2.69. Invocation command line was |
6de9cd9a | 2326 | |
5213506e | 2327 | $ $0 $@ |
6de9cd9a | 2328 | |
5213506e RW |
2329 | _ACEOF |
2330 | exec 5>>config.log | |
2331 | { | |
2332 | cat <<_ASUNAME | |
2333 | ## --------- ## | |
2334 | ## Platform. ## | |
2335 | ## --------- ## | |
6de9cd9a | 2336 | |
5213506e RW |
2337 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2338 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2339 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2340 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2341 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
6de9cd9a | 2342 | |
5213506e RW |
2343 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2344 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
6de9cd9a | 2345 | |
5213506e RW |
2346 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2347 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2348 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2349 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2350 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2351 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2352 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
6de9cd9a | 2353 | |
5213506e | 2354 | _ASUNAME |
18c04407 | 2355 | |
5213506e RW |
2356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2357 | for as_dir in $PATH | |
2358 | do | |
2359 | IFS=$as_save_IFS | |
2360 | test -z "$as_dir" && as_dir=. | |
2361 | $as_echo "PATH: $as_dir" | |
2362 | done | |
2363 | IFS=$as_save_IFS | |
18c04407 | 2364 | |
5213506e | 2365 | } >&5 |
18c04407 | 2366 | |
5213506e | 2367 | cat >&5 <<_ACEOF |
6de9cd9a DN |
2368 | |
2369 | ||
5213506e RW |
2370 | ## ----------- ## |
2371 | ## Core tests. ## | |
2372 | ## ----------- ## | |
78511f8b | 2373 | |
5213506e | 2374 | _ACEOF |
38d24731 | 2375 | |
96b8a615 | 2376 | |
5213506e RW |
2377 | # Keep a trace of the command line. |
2378 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2379 | # Strip out --silent because we don't want to record it for future runs. | |
2380 | # Also quote any args containing shell meta-characters. | |
2381 | # Make two passes to allow for proper duplicate-argument suppression. | |
2382 | ac_configure_args= | |
2383 | ac_configure_args0= | |
2384 | ac_configure_args1= | |
2385 | ac_must_keep_next=false | |
2386 | for ac_pass in 1 2 | |
2387 | do | |
2388 | for ac_arg | |
2389 | do | |
2390 | case $ac_arg in | |
2391 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2392 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2393 | | -silent | --silent | --silen | --sile | --sil) | |
2394 | continue ;; | |
2395 | *\'*) | |
2396 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2397 | esac | |
2398 | case $ac_pass in | |
2399 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2400 | 2) | |
2401 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2402 | if test $ac_must_keep_next = true; then | |
2403 | ac_must_keep_next=false # Got value, back to normal. | |
2404 | else | |
2405 | case $ac_arg in | |
2406 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2407 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2408 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2409 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2410 | case "$ac_configure_args0 " in | |
2411 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2412 | esac | |
2413 | ;; | |
2414 | -* ) ac_must_keep_next=true ;; | |
2415 | esac | |
2416 | fi | |
2417 | as_fn_append ac_configure_args " '$ac_arg'" | |
2418 | ;; | |
2419 | esac | |
2420 | done | |
6de9cd9a | 2421 | done |
5213506e RW |
2422 | { ac_configure_args0=; unset ac_configure_args0;} |
2423 | { ac_configure_args1=; unset ac_configure_args1;} | |
96b8a615 | 2424 | |
5213506e RW |
2425 | # When interrupted or exit'd, cleanup temporary files, and complete |
2426 | # config.log. We remove comments because anyway the quotes in there | |
2427 | # would cause problems or look ugly. | |
2428 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2429 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2430 | trap 'exit_status=$? | |
2431 | # Save into config.log some information that might help in debugging. | |
2432 | { | |
2433 | echo | |
96b8a615 | 2434 | |
22e05272 | 2435 | $as_echo "## ---------------- ## |
5213506e | 2436 | ## Cache variables. ## |
22e05272 | 2437 | ## ---------------- ##" |
5213506e RW |
2438 | echo |
2439 | # The following way of writing the cache mishandles newlines in values, | |
2440 | ( | |
2441 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2442 | eval ac_val=\$$ac_var | |
2443 | case $ac_val in #( | |
2444 | *${as_nl}*) | |
2445 | case $ac_var in #( | |
2446 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2447 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2448 | esac | |
2449 | case $ac_var in #( | |
2450 | _ | IFS | as_nl) ;; #( | |
2451 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2452 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2453 | esac ;; | |
2454 | esac | |
2455 | done | |
2456 | (set) 2>&1 | | |
2457 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2458 | *${as_nl}ac_space=\ *) | |
2459 | sed -n \ | |
2460 | "s/'\''/'\''\\\\'\'''\''/g; | |
2461 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2462 | ;; #( | |
2463 | *) | |
2464 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2465 | ;; | |
2466 | esac | | |
2467 | sort | |
2468 | ) | |
2469 | echo | |
2470 | ||
22e05272 | 2471 | $as_echo "## ----------------- ## |
5213506e | 2472 | ## Output variables. ## |
22e05272 | 2473 | ## ----------------- ##" |
5213506e RW |
2474 | echo |
2475 | for ac_var in $ac_subst_vars | |
2476 | do | |
2477 | eval ac_val=\$$ac_var | |
2478 | case $ac_val in | |
2479 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2480 | esac | |
2481 | $as_echo "$ac_var='\''$ac_val'\''" | |
2482 | done | sort | |
2483 | echo | |
2484 | ||
2485 | if test -n "$ac_subst_files"; then | |
22e05272 | 2486 | $as_echo "## ------------------- ## |
5213506e | 2487 | ## File substitutions. ## |
22e05272 | 2488 | ## ------------------- ##" |
5213506e RW |
2489 | echo |
2490 | for ac_var in $ac_subst_files | |
2491 | do | |
2492 | eval ac_val=\$$ac_var | |
2493 | case $ac_val in | |
2494 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2495 | esac | |
2496 | $as_echo "$ac_var='\''$ac_val'\''" | |
2497 | done | sort | |
2498 | echo | |
2499 | fi | |
2500 | ||
2501 | if test -s confdefs.h; then | |
22e05272 | 2502 | $as_echo "## ----------- ## |
5213506e | 2503 | ## confdefs.h. ## |
22e05272 | 2504 | ## ----------- ##" |
5213506e RW |
2505 | echo |
2506 | cat confdefs.h | |
2507 | echo | |
2508 | fi | |
2509 | test "$ac_signal" != 0 && | |
2510 | $as_echo "$as_me: caught signal $ac_signal" | |
2511 | $as_echo "$as_me: exit $exit_status" | |
2512 | } >&5 | |
2513 | rm -f core *.core core.conftest.* && | |
2514 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2515 | exit $exit_status | |
2516 | ' 0 | |
2517 | for ac_signal in 1 2 13 15; do | |
2518 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2519 | done | |
2520 | ac_signal=0 | |
2521 | ||
2522 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2523 | rm -f -r conftest* confdefs.h | |
2524 | ||
2525 | $as_echo "/* confdefs.h */" > confdefs.h | |
2526 | ||
2527 | # Predefined preprocessor variables. | |
2528 | ||
2529 | cat >>confdefs.h <<_ACEOF | |
2530 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2531 | _ACEOF | |
2532 | ||
2533 | cat >>confdefs.h <<_ACEOF | |
2534 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2535 | _ACEOF | |
2536 | ||
2537 | cat >>confdefs.h <<_ACEOF | |
2538 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2539 | _ACEOF | |
2540 | ||
2541 | cat >>confdefs.h <<_ACEOF | |
2542 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2543 | _ACEOF | |
2544 | ||
2545 | cat >>confdefs.h <<_ACEOF | |
2546 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2547 | _ACEOF | |
2548 | ||
2549 | cat >>confdefs.h <<_ACEOF | |
2550 | #define PACKAGE_URL "$PACKAGE_URL" | |
2551 | _ACEOF | |
2552 | ||
2553 | ||
2554 | # Let the site file select an alternate cache file if it wants to. | |
2555 | # Prefer an explicitly selected file to automatically selected ones. | |
2556 | ac_site_file1=NONE | |
2557 | ac_site_file2=NONE | |
2558 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2559 | # We do not want a PATH search for config.site. |
2560 | case $CONFIG_SITE in #(( | |
2561 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2562 | */*) ac_site_file1=$CONFIG_SITE;; | |
2563 | *) ac_site_file1=./$CONFIG_SITE;; | |
2564 | esac | |
5213506e RW |
2565 | elif test "x$prefix" != xNONE; then |
2566 | ac_site_file1=$prefix/share/config.site | |
2567 | ac_site_file2=$prefix/etc/config.site | |
2568 | else | |
2569 | ac_site_file1=$ac_default_prefix/share/config.site | |
2570 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2571 | fi | |
2572 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2573 | do | |
2574 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2575 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2577 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2578 | sed 's/^/| /' "$ac_site_file" >&5 | |
22e05272 JM |
2579 | . "$ac_site_file" \ |
2580 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2581 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2582 | as_fn_error $? "failed to load site script $ac_site_file | |
2583 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
2584 | fi |
2585 | done | |
2586 | ||
2587 | if test -r "$cache_file"; then | |
22e05272 JM |
2588 | # Some versions of bash will fail to source /dev/null (special files |
2589 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2590 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2592 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2593 | case $cache_file in | |
2594 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2595 | *) . "./$cache_file";; | |
2596 | esac | |
2597 | fi | |
2598 | else | |
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2600 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2601 | >$cache_file | |
2602 | fi | |
2603 | ||
74544378 | 2604 | as_fn_append ac_header_list " unistd.h" |
864c28e1 | 2605 | as_fn_append ac_header_list " sys/random.h" |
74544378 JB |
2606 | as_fn_append ac_header_list " sys/time.h" |
2607 | as_fn_append ac_header_list " sys/times.h" | |
2608 | as_fn_append ac_header_list " sys/resource.h" | |
2609 | as_fn_append ac_header_list " sys/types.h" | |
2610 | as_fn_append ac_header_list " sys/stat.h" | |
edaaef60 | 2611 | as_fn_append ac_header_list " sys/uio.h" |
74544378 JB |
2612 | as_fn_append ac_header_list " sys/wait.h" |
2613 | as_fn_append ac_header_list " floatingpoint.h" | |
2614 | as_fn_append ac_header_list " ieeefp.h" | |
2615 | as_fn_append ac_header_list " fenv.h" | |
2616 | as_fn_append ac_header_list " fptrap.h" | |
fa86f4f9 | 2617 | as_fn_append ac_header_list " fpxcp.h" |
74544378 JB |
2618 | as_fn_append ac_header_list " pwd.h" |
2619 | as_fn_append ac_header_list " complex.h" | |
9cbecd06 | 2620 | as_fn_append ac_header_list " xlocale.h" |
74544378 JB |
2621 | as_fn_append ac_func_list " getrusage" |
2622 | as_fn_append ac_func_list " times" | |
2623 | as_fn_append ac_func_list " mkstemp" | |
2624 | as_fn_append ac_func_list " strtof" | |
2625 | as_fn_append ac_func_list " strtold" | |
2626 | as_fn_append ac_func_list " snprintf" | |
2627 | as_fn_append ac_func_list " ftruncate" | |
2628 | as_fn_append ac_func_list " chsize" | |
2629 | as_fn_append ac_func_list " chdir" | |
d66d6d15 | 2630 | as_fn_append ac_func_list " getentropy" |
74544378 JB |
2631 | as_fn_append ac_func_list " getlogin" |
2632 | as_fn_append ac_func_list " gethostname" | |
2633 | as_fn_append ac_func_list " kill" | |
2634 | as_fn_append ac_func_list " link" | |
2635 | as_fn_append ac_func_list " symlink" | |
2636 | as_fn_append ac_func_list " sleep" | |
2637 | as_fn_append ac_func_list " ttyname" | |
ef536b41 JB |
2638 | as_fn_append ac_func_list " sigaction" |
2639 | as_fn_append ac_func_list " waitpid" | |
74544378 JB |
2640 | as_fn_append ac_func_list " alarm" |
2641 | as_fn_append ac_func_list " access" | |
2642 | as_fn_append ac_func_list " fork" | |
f8886038 | 2643 | as_fn_append ac_func_list " posix_spawn" |
74544378 | 2644 | as_fn_append ac_func_list " setmode" |
b5b58343 | 2645 | as_fn_append ac_func_list " fcntl" |
edaaef60 | 2646 | as_fn_append ac_func_list " writev" |
74544378 JB |
2647 | as_fn_append ac_func_list " gettimeofday" |
2648 | as_fn_append ac_func_list " stat" | |
2649 | as_fn_append ac_func_list " fstat" | |
2650 | as_fn_append ac_func_list " lstat" | |
2651 | as_fn_append ac_func_list " getpwuid" | |
2652 | as_fn_append ac_func_list " vsnprintf" | |
2653 | as_fn_append ac_func_list " dup" | |
2654 | as_fn_append ac_func_list " getcwd" | |
2655 | as_fn_append ac_func_list " localtime_r" | |
2656 | as_fn_append ac_func_list " gmtime_r" | |
74544378 JB |
2657 | as_fn_append ac_func_list " getpwuid_r" |
2658 | as_fn_append ac_func_list " ttyname_r" | |
2659 | as_fn_append ac_func_list " clock_gettime" | |
74544378 JB |
2660 | as_fn_append ac_func_list " getgid" |
2661 | as_fn_append ac_func_list " getpid" | |
74544378 JB |
2662 | as_fn_append ac_func_list " getuid" |
2663 | as_fn_append ac_func_list " geteuid" | |
8ecd1c0d | 2664 | as_fn_append ac_func_list " umask" |
68ee9c08 | 2665 | as_fn_append ac_func_list " getegid" |
227e441f | 2666 | as_fn_append ac_func_list " secure_getenv" |
68ee9c08 | 2667 | as_fn_append ac_func_list " __secure_getenv" |
c20fdb91 | 2668 | as_fn_append ac_func_list " mkostemp" |
4269f19c JB |
2669 | as_fn_append ac_func_list " strnlen" |
2670 | as_fn_append ac_func_list " strndup" | |
9cbecd06 JB |
2671 | as_fn_append ac_func_list " newlocale" |
2672 | as_fn_append ac_func_list " freelocale" | |
2673 | as_fn_append ac_func_list " uselocale" | |
2674 | as_fn_append ac_func_list " strerror_l" | |
133d0d42 JJ |
2675 | as_fn_append ac_func_list " strtof128" |
2676 | as_fn_append ac_func_list " strfromf128" | |
db9f46a9 | 2677 | as_fn_append ac_header_list " math.h" |
5213506e RW |
2678 | # Check that the precious variables saved in the cache have kept the same |
2679 | # value. | |
2680 | ac_cache_corrupted=false | |
2681 | for ac_var in $ac_precious_vars; do | |
2682 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2683 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2684 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2685 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2686 | case $ac_old_set,$ac_new_set in | |
2687 | set,) | |
2688 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2689 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2690 | ac_cache_corrupted=: ;; | |
2691 | ,set) | |
2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2693 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2694 | ac_cache_corrupted=: ;; | |
2695 | ,);; | |
2696 | *) | |
2697 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2698 | # differences in whitespace do not lead to failure. | |
2699 | ac_old_val_w=`echo x $ac_old_val` | |
2700 | ac_new_val_w=`echo x $ac_new_val` | |
2701 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2702 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2703 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2704 | ac_cache_corrupted=: | |
2705 | else | |
2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2707 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2708 | eval $ac_var=\$ac_old_val | |
2709 | fi | |
2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2711 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2713 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2714 | fi;; | |
2715 | esac | |
2716 | # Pass precious variables to config.status. | |
2717 | if test "$ac_new_set" = set; then | |
2718 | case $ac_new_val in | |
2719 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2720 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2721 | esac | |
2722 | case " $ac_configure_args " in | |
2723 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2724 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2725 | esac | |
2726 | fi | |
2727 | done | |
2728 | if $ac_cache_corrupted; then | |
2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2730 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2732 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2733 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
5213506e RW |
2734 | fi |
2735 | ## -------------------- ## | |
2736 | ## Main body of script. ## | |
2737 | ## -------------------- ## | |
2738 | ||
2739 | ac_ext=c | |
2740 | ac_cpp='$CPP $CPPFLAGS' | |
2741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2744 | ||
2745 | ||
2746 | ||
2747 | ||
2748 | ||
2749 | ac_config_headers="$ac_config_headers config.h" | |
2750 | ||
2751 | ac_aux_dir= | |
2752 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
22e05272 JM |
2753 | if test -f "$ac_dir/install-sh"; then |
2754 | ac_aux_dir=$ac_dir | |
2755 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2756 | break | |
2757 | elif test -f "$ac_dir/install.sh"; then | |
2758 | ac_aux_dir=$ac_dir | |
2759 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2760 | break | |
2761 | elif test -f "$ac_dir/shtool"; then | |
2762 | ac_aux_dir=$ac_dir | |
2763 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2764 | break | |
2765 | fi | |
5213506e RW |
2766 | done |
2767 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2768 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
5213506e RW |
2769 | fi |
2770 | ||
2771 | # These three variables are undocumented and unsupported, | |
2772 | # and are intended to be withdrawn in a future Autoconf release. | |
2773 | # They can cause serious problems if a builder's source tree is in a directory | |
2774 | # whose full name contains unusual characters. | |
2775 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2776 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2777 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2778 | ||
2779 | ||
2780 | # Make sure we can run config.sub. | |
2781 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
22e05272 | 2782 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2783 | |
2784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2785 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2786 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2787 | $as_echo_n "(cached) " >&6 |
2788 | else | |
2789 | ac_build_alias=$build_alias | |
2790 | test "x$ac_build_alias" = x && | |
2791 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2792 | test "x$ac_build_alias" = x && | |
22e05272 | 2793 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2794 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2795 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2796 | |
2797 | fi | |
2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2799 | $as_echo "$ac_cv_build" >&6; } | |
2800 | case $ac_cv_build in | |
2801 | *-*-*) ;; | |
22e05272 | 2802 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e RW |
2803 | esac |
2804 | build=$ac_cv_build | |
2805 | ac_save_IFS=$IFS; IFS='-' | |
2806 | set x $ac_cv_build | |
2807 | shift | |
2808 | build_cpu=$1 | |
2809 | build_vendor=$2 | |
2810 | shift; shift | |
2811 | # Remember, the first character of IFS is used to create $*, | |
2812 | # except with old shells: | |
2813 | build_os=$* | |
2814 | IFS=$ac_save_IFS | |
2815 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2816 | ||
2817 | ||
2818 | case ${build_alias} in | |
2819 | "") build_noncanonical=${build} ;; | |
2820 | *) build_noncanonical=${build_alias} ;; | |
2821 | esac | |
891c05b1 JJ |
2822 | |
2823 | case ${host_alias} in | |
2824 | "") host_noncanonical=${build_noncanonical} ;; | |
2825 | *) host_noncanonical=${host_alias} ;; | |
2826 | esac | |
2827 | ||
2828 | case ${target_alias} in | |
2829 | "") target_noncanonical=${host_noncanonical} ;; | |
2830 | *) target_noncanonical=${target_alias} ;; | |
2831 | esac | |
2832 | ||
57255173 PB |
2833 | |
2834 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
2835 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2836 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2837 | # However, they still use the build modules, because the corresponding | |
2838 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2839 | # finishes. So: | |
2840 | # - build_subdir is where we find build modules, and never changes. | |
2841 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2842 | ||
2843 | # Prefix 'build-' so this never conflicts with target_subdir. | |
891c05b1 | 2844 | build_subdir="build-${build_noncanonical}" |
57255173 | 2845 | |
5213506e RW |
2846 | # Check whether --with-build-libsubdir was given. |
2847 | if test "${with_build_libsubdir+set}" = set; then : | |
2848 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
57255173 PB |
2849 | else |
2850 | build_libsubdir="$build_subdir" | |
5213506e RW |
2851 | fi |
2852 | ||
891c05b1 JJ |
2853 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2854 | if ( test $srcdir = . && test -d gcc ) \ | |
2855 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2856 | host_subdir="host-${host_noncanonical}" | |
2857 | else | |
2858 | host_subdir=. | |
2859 | fi | |
2860 | # No prefix. | |
2861 | target_subdir=${target_noncanonical} | |
2862 | ||
2863 | ||
2864 | # ------- | |
2865 | # Options | |
2866 | # ------- | |
2867 | ||
5213506e RW |
2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
2869 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2870 | # Check whether --enable-version-specific-runtime-libs was given. | |
2871 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2872 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
891c05b1 JJ |
2873 | yes) version_specific_libs=yes ;; |
2874 | no) version_specific_libs=no ;; | |
22e05272 | 2875 | *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
891c05b1 JJ |
2876 | esac |
2877 | else | |
2878 | version_specific_libs=no | |
5213506e RW |
2879 | fi |
2880 | ||
2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
2882 | $as_echo "$version_specific_libs" >&6; } | |
891c05b1 | 2883 | |
b808ac33 | 2884 | # Build with intermodule optimisations |
5213506e RW |
2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5 |
2886 | $as_echo_n "checking for --enable-intermodule... " >&6; } | |
2887 | # Check whether --enable-intermodule was given. | |
2888 | if test "${enable_intermodule+set}" = set; then : | |
2889 | enableval=$enable_intermodule; case "$enable_intermodule" in | |
b808ac33 BF |
2890 | yes) onestep="-onestep";; |
2891 | *) onestep="";; | |
2892 | esac | |
2893 | else | |
2894 | onestep="" | |
5213506e | 2895 | fi |
b808ac33 | 2896 | |
5213506e RW |
2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5 |
2898 | $as_echo "$enable_intermodule" >&6; } | |
2899 | if test x$onestep = x-onestep; then | |
b808ac33 BF |
2900 | onestep_TRUE= |
2901 | onestep_FALSE='#' | |
2902 | else | |
2903 | onestep_TRUE='#' | |
2904 | onestep_FALSE= | |
2905 | fi | |
2906 | ||
2907 | ||
891c05b1 JJ |
2908 | |
2909 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
2910 | # | |
2911 | # You will slowly go insane if you do not grok the following fact: when | |
2912 | # building this library, the top-level /target/ becomes the library's /host/. | |
2913 | # | |
2914 | # configure then causes --target to default to --host, exactly like any | |
2915 | # other package using autoconf. Therefore, 'target' and 'host' will | |
2916 | # always be the same. This makes sense both for native and cross compilers | |
2917 | # just think about it for a little while. :-) | |
2918 | # | |
2919 | # Also, if this library is being configured as part of a cross compiler, the | |
2920 | # top-level configure script will pass the "real" host as $with_cross_host. | |
2921 | # | |
2922 | # Do not delete or change the following two lines. For why, see | |
2923 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
5213506e RW |
2924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2925 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2926 | if ${ac_cv_host+:} false; then : |
5213506e RW |
2927 | $as_echo_n "(cached) " >&6 |
2928 | else | |
2929 | if test "x$host_alias" = x; then | |
2930 | ac_cv_host=$ac_cv_build | |
2931 | else | |
2932 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2933 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e RW |
2934 | fi |
2935 | ||
2936 | fi | |
2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2938 | $as_echo "$ac_cv_host" >&6; } | |
2939 | case $ac_cv_host in | |
2940 | *-*-*) ;; | |
22e05272 | 2941 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2942 | esac |
96b8a615 | 2943 | host=$ac_cv_host |
5213506e RW |
2944 | ac_save_IFS=$IFS; IFS='-' |
2945 | set x $ac_cv_host | |
2946 | shift | |
2947 | host_cpu=$1 | |
2948 | host_vendor=$2 | |
2949 | shift; shift | |
2950 | # Remember, the first character of IFS is used to create $*, | |
2951 | # except with old shells: | |
2952 | host_os=$* | |
2953 | IFS=$ac_save_IFS | |
2954 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
38d24731 RW |
2955 | |
2956 | ||
5213506e RW |
2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2958 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2959 | if ${ac_cv_target+:} false; then : |
5213506e | 2960 | $as_echo_n "(cached) " >&6 |
96b8a615 | 2961 | else |
5213506e RW |
2962 | if test "x$target_alias" = x; then |
2963 | ac_cv_target=$ac_cv_host | |
2964 | else | |
2965 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2966 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2967 | fi |
96b8a615 AJ |
2968 | |
2969 | fi | |
5213506e RW |
2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2971 | $as_echo "$ac_cv_target" >&6; } | |
2972 | case $ac_cv_target in | |
2973 | *-*-*) ;; | |
22e05272 | 2974 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2975 | esac |
96b8a615 | 2976 | target=$ac_cv_target |
5213506e RW |
2977 | ac_save_IFS=$IFS; IFS='-' |
2978 | set x $ac_cv_target | |
2979 | shift | |
2980 | target_cpu=$1 | |
2981 | target_vendor=$2 | |
2982 | shift; shift | |
2983 | # Remember, the first character of IFS is used to create $*, | |
2984 | # except with old shells: | |
2985 | target_os=$* | |
2986 | IFS=$ac_save_IFS | |
2987 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
96b8a615 AJ |
2988 | |
2989 | ||
2990 | # The aliases save the names the user supplied, while $host etc. | |
2991 | # will get canonicalized. | |
2992 | test -n "$target_alias" && | |
2993 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2994 | NONENONEs,x,x, && | |
2995 | program_prefix=${target_alias}- | |
5213506e | 2996 | |
60858d8a TB |
2997 | |
2998 | ||
2999 | ||
96b8a615 AJ |
3000 | target_alias=${target_alias-$host_alias} |
3001 | ||
60858d8a | 3002 | |
96b8a615 AJ |
3003 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the |
3004 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
679c0f9a | 3005 | # 1.9.6: minimum required version |
96b8a615 AJ |
3006 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch |
3007 | # of other PACKAGE_* variables will, however, and there's nothing | |
3008 | # we can do about that; they come from AC_INIT). | |
3009 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
3010 | # file in the top srcdir, etc, etc), so stop complaining. | |
13917ae3 | 3011 | # no-dist: we don't want 'dist' and related rules. |
96b8a615 AJ |
3012 | # -Wall: turns on all automake warnings... |
3013 | # -Wno-portability: ...except this one, since GNU make is required. | |
22e05272 | 3014 | am__api_version='1.15' |
5213506e | 3015 | |
6de9cd9a DN |
3016 | # Find a good install program. We prefer a C program (faster), |
3017 | # so one script is as good as another. But avoid the broken or | |
3018 | # incompatible versions: | |
3019 | # SysV /etc/install, /usr/sbin/install | |
3020 | # SunOS /usr/etc/install | |
3021 | # IRIX /sbin/install | |
3022 | # AIX /bin/install | |
3023 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3024 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3025 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3026 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3027 | # OS/2's system install, which has a completely different semantic | |
3028 | # ./install, which can be erroneously created by make from ./install.sh. | |
38d24731 | 3029 | # Reject install programs that cannot install multiple files. |
5213506e RW |
3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3031 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
6de9cd9a | 3032 | if test -z "$INSTALL"; then |
22e05272 | 3033 | if ${ac_cv_path_install+:} false; then : |
5213506e | 3034 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3035 | else |
3036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3037 | for as_dir in $PATH | |
3038 | do | |
3039 | IFS=$as_save_IFS | |
3040 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3041 | # Account for people who put trailing slashes in PATH elements. |
3042 | case $as_dir/ in #(( | |
3043 | ./ | .// | /[cC]/* | \ | |
6de9cd9a | 3044 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 3045 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
6de9cd9a DN |
3046 | /usr/ucb/* ) ;; |
3047 | *) | |
3048 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3049 | # Don't use installbsd from OSF since it installs stuff as root | |
3050 | # by default. | |
3051 | for ac_prog in ginstall scoinst install; do | |
3052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3053 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
6de9cd9a DN |
3054 | if test $ac_prog = install && |
3055 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3056 | # AIX install. It has an incompatible calling convention. | |
3057 | : | |
3058 | elif test $ac_prog = install && | |
3059 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3060 | # program-specific install script used by HP pwplus--don't use. | |
3061 | : | |
3062 | else | |
38d24731 RW |
3063 | rm -rf conftest.one conftest.two conftest.dir |
3064 | echo one > conftest.one | |
3065 | echo two > conftest.two | |
3066 | mkdir conftest.dir | |
3067 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3068 | test -s conftest.one && test -s conftest.two && | |
3069 | test -s conftest.dir/conftest.one && | |
3070 | test -s conftest.dir/conftest.two | |
3071 | then | |
3072 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3073 | break 3 | |
3074 | fi | |
6de9cd9a DN |
3075 | fi |
3076 | fi | |
3077 | done | |
3078 | done | |
3079 | ;; | |
3080 | esac | |
5213506e RW |
3081 | |
3082 | done | |
3083 | IFS=$as_save_IFS | |
6de9cd9a | 3084 | |
38d24731 | 3085 | rm -rf conftest.one conftest.two conftest.dir |
6de9cd9a DN |
3086 | |
3087 | fi | |
3088 | if test "${ac_cv_path_install+set}" = set; then | |
3089 | INSTALL=$ac_cv_path_install | |
3090 | else | |
f489fba1 FXC |
3091 | # As a last resort, use the slow shell script. Don't cache a |
3092 | # value for INSTALL within a source directory, because that will | |
6de9cd9a | 3093 | # break other packages using the cache if that directory is |
f489fba1 | 3094 | # removed, or if the value is a relative name. |
6de9cd9a DN |
3095 | INSTALL=$ac_install_sh |
3096 | fi | |
3097 | fi | |
5213506e RW |
3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3099 | $as_echo "$INSTALL" >&6; } | |
6de9cd9a DN |
3100 | |
3101 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3102 | # It thinks the first close brace ends the variable substitution. | |
3103 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3104 | ||
3105 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3106 | ||
3107 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3108 | ||
5213506e RW |
3109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3110 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
5213506e RW |
3111 | # Reject unsafe characters in $srcdir or the absolute working directory |
3112 | # name. Accept space and tab only in the latter. | |
3113 | am_lf=' | |
3114 | ' | |
3115 | case `pwd` in | |
3116 | *[\\\"\#\$\&\'\`$am_lf]*) | |
22e05272 | 3117 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
5213506e RW |
3118 | esac |
3119 | case $srcdir in | |
3120 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
22e05272 | 3121 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
5213506e RW |
3122 | esac |
3123 | ||
22e05272 | 3124 | # Do 'set' in a subshell so we don't clobber the current shell's |
6de9cd9a DN |
3125 | # arguments. Must try -L first in case configure is actually a |
3126 | # symlink; some systems play weird games with the mod time of symlinks | |
3127 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3128 | # directory). | |
3129 | if ( | |
22e05272 JM |
3130 | am_has_slept=no |
3131 | for am_try in 1 2; do | |
3132 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
3133 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3134 | if test "$*" = "X"; then | |
3135 | # -L didn't work. | |
3136 | set X `ls -t "$srcdir/configure" conftest.file` | |
3137 | fi | |
3138 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3139 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3140 | ||
3141 | # If neither matched, then we have a broken ls. This can happen | |
3142 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3143 | # broken ls alias from the environment. This has actually | |
3144 | # happened. Such a system could not be considered "sane". | |
3145 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3146 | alias in your environment" "$LINENO" 5 | |
3147 | fi | |
3148 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
3149 | break | |
3150 | fi | |
3151 | # Just in case. | |
3152 | sleep 1 | |
3153 | am_has_slept=yes | |
3154 | done | |
6de9cd9a DN |
3155 | test "$2" = conftest.file |
3156 | ) | |
3157 | then | |
3158 | # Ok. | |
3159 | : | |
3160 | else | |
22e05272 | 3161 | as_fn_error $? "newly created file is older than distributed files! |
5213506e | 3162 | Check your system clock" "$LINENO" 5 |
6de9cd9a | 3163 | fi |
5213506e RW |
3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3165 | $as_echo "yes" >&6; } | |
22e05272 JM |
3166 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
3167 | # generated files are strictly newer. | |
3168 | am_sleep_pid= | |
3169 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3170 | ( sleep 1 ) & | |
3171 | am_sleep_pid=$! | |
3172 | fi | |
3173 | ||
3174 | rm -f conftest.file | |
3175 | ||
6de9cd9a | 3176 | test "$program_prefix" != NONE && |
5213506e | 3177 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
6de9cd9a DN |
3178 | # Use a double $ so make ignores it. |
3179 | test "$program_suffix" != NONE && | |
5213506e RW |
3180 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3181 | # Double any \ or $. | |
6de9cd9a | 3182 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
3183 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3184 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
6de9cd9a | 3185 | |
22e05272 JM |
3186 | # Expand $ac_aux_dir to an absolute path. |
3187 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
6de9cd9a | 3188 | |
5213506e RW |
3189 | if test x"${MISSING+set}" != xset; then |
3190 | case $am_aux_dir in | |
3191 | *\ * | *\ *) | |
3192 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3193 | *) | |
3194 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3195 | esac | |
3196 | fi | |
6de9cd9a | 3197 | # Use eval to expand $SHELL |
22e05272 JM |
3198 | if eval "$MISSING --is-lightweight"; then |
3199 | am_missing_run="$MISSING " | |
6de9cd9a DN |
3200 | else |
3201 | am_missing_run= | |
22e05272 JM |
3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3203 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
6de9cd9a DN |
3204 | fi |
3205 | ||
22e05272 | 3206 | if test x"${install_sh+set}" != xset; then |
5213506e RW |
3207 | case $am_aux_dir in |
3208 | *\ * | *\ *) | |
3209 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3210 | *) | |
3211 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3212 | esac | |
3213 | fi | |
3214 | ||
22e05272 JM |
3215 | # Installed binaries are usually stripped using 'strip' when the user |
3216 | # run "make install-strip". However 'strip' might not be the right | |
5213506e | 3217 | # tool to use in cross-compilation environments, therefore Automake |
22e05272 | 3218 | # will honor the 'STRIP' environment variable to overrule this program. |
5213506e RW |
3219 | if test "$cross_compiling" != no; then |
3220 | if test -n "$ac_tool_prefix"; then | |
3221 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3222 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3224 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3225 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 3226 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 3227 | else |
5213506e RW |
3228 | if test -n "$STRIP"; then |
3229 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6de9cd9a DN |
3230 | else |
3231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3232 | for as_dir in $PATH | |
3233 | do | |
3234 | IFS=$as_save_IFS | |
3235 | test -z "$as_dir" && as_dir=. | |
5213506e | 3236 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3237 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3238 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3239 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6de9cd9a DN |
3240 | break 2 |
3241 | fi | |
3242 | done | |
5213506e RW |
3243 | done |
3244 | IFS=$as_save_IFS | |
6de9cd9a DN |
3245 | |
3246 | fi | |
3247 | fi | |
5213506e RW |
3248 | STRIP=$ac_cv_prog_STRIP |
3249 | if test -n "$STRIP"; then | |
3250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3251 | $as_echo "$STRIP" >&6; } | |
6de9cd9a | 3252 | else |
5213506e RW |
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3254 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3255 | fi |
3256 | ||
6de9cd9a | 3257 | |
5213506e RW |
3258 | fi |
3259 | if test -z "$ac_cv_prog_STRIP"; then | |
3260 | ac_ct_STRIP=$STRIP | |
3261 | # Extract the first word of "strip", so it can be a program name with args. | |
3262 | set dummy strip; ac_word=$2 | |
3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3264 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3265 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e | 3266 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 3267 | else |
5213506e RW |
3268 | if test -n "$ac_ct_STRIP"; then |
3269 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38d24731 | 3270 | else |
5213506e RW |
3271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3272 | for as_dir in $PATH | |
3273 | do | |
3274 | IFS=$as_save_IFS | |
3275 | test -z "$as_dir" && as_dir=. | |
3276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3278 | ac_cv_prog_ac_ct_STRIP="strip" |
3279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3280 | break 2 | |
3281 | fi | |
3282 | done | |
3283 | done | |
3284 | IFS=$as_save_IFS | |
3285 | ||
38d24731 | 3286 | fi |
6de9cd9a | 3287 | fi |
5213506e RW |
3288 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3289 | if test -n "$ac_ct_STRIP"; then | |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3291 | $as_echo "$ac_ct_STRIP" >&6; } | |
3292 | else | |
3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3294 | $as_echo "no" >&6; } | |
3295 | fi | |
3296 | ||
3297 | if test "x$ac_ct_STRIP" = x; then | |
3298 | STRIP=":" | |
3299 | else | |
3300 | case $cross_compiling:$ac_tool_warned in | |
3301 | yes:) | |
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3303 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3304 | ac_tool_warned=yes ;; | |
3305 | esac | |
3306 | STRIP=$ac_ct_STRIP | |
3307 | fi | |
3308 | else | |
3309 | STRIP="$ac_cv_prog_STRIP" | |
3310 | fi | |
3311 | ||
3312 | fi | |
3313 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3314 | ||
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3316 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3317 | if test -z "$MKDIR_P"; then | |
22e05272 | 3318 | if ${ac_cv_path_mkdir+:} false; then : |
5213506e RW |
3319 | $as_echo_n "(cached) " >&6 |
3320 | else | |
3321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3322 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3323 | do | |
3324 | IFS=$as_save_IFS | |
3325 | test -z "$as_dir" && as_dir=. | |
3326 | for ac_prog in mkdir gmkdir; do | |
3327 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3328 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
5213506e RW |
3329 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3330 | 'mkdir (GNU coreutils) '* | \ | |
3331 | 'mkdir (coreutils) '* | \ | |
3332 | 'mkdir (fileutils) '4.1*) | |
3333 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3334 | break 3;; | |
3335 | esac | |
3336 | done | |
3337 | done | |
3338 | done | |
3339 | IFS=$as_save_IFS | |
3340 | ||
3341 | fi | |
3342 | ||
22e05272 | 3343 | test -d ./--version && rmdir ./--version |
5213506e RW |
3344 | if test "${ac_cv_path_mkdir+set}" = set; then |
3345 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3346 | else | |
3347 | # As a last resort, use the slow shell script. Don't cache a | |
3348 | # value for MKDIR_P within a source directory, because that will | |
3349 | # break other packages using the cache if that directory is | |
3350 | # removed, or if the value is a relative name. | |
5213506e RW |
3351 | MKDIR_P="$ac_install_sh -d" |
3352 | fi | |
3353 | fi | |
3354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3355 | $as_echo "$MKDIR_P" >&6; } | |
3356 | ||
5213506e RW |
3357 | for ac_prog in gawk mawk nawk awk |
3358 | do | |
3359 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3360 | set dummy $ac_prog; ac_word=$2 | |
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3362 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3363 | if ${ac_cv_prog_AWK+:} false; then : |
5213506e RW |
3364 | $as_echo_n "(cached) " >&6 |
3365 | else | |
3366 | if test -n "$AWK"; then | |
3367 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3368 | else | |
3369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3370 | for as_dir in $PATH | |
3371 | do | |
3372 | IFS=$as_save_IFS | |
3373 | test -z "$as_dir" && as_dir=. | |
3374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3375 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3376 | ac_cv_prog_AWK="$ac_prog" |
3377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3378 | break 2 | |
3379 | fi | |
3380 | done | |
3381 | done | |
3382 | IFS=$as_save_IFS | |
3383 | ||
3384 | fi | |
3385 | fi | |
3386 | AWK=$ac_cv_prog_AWK | |
3387 | if test -n "$AWK"; then | |
3388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3389 | $as_echo "$AWK" >&6; } | |
3390 | else | |
3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3392 | $as_echo "no" >&6; } | |
3393 | fi | |
3394 | ||
3395 | ||
3396 | test -n "$AWK" && break | |
3397 | done | |
3398 | ||
3399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3400 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3401 | set x ${MAKE-make} | |
3402 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 3403 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
5213506e RW |
3404 | $as_echo_n "(cached) " >&6 |
3405 | else | |
3406 | cat >conftest.make <<\_ACEOF | |
3407 | SHELL = /bin/sh | |
3408 | all: | |
3409 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3410 | _ACEOF | |
22e05272 | 3411 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
5213506e RW |
3412 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3413 | *@@@%%%=?*=@@@%%%*) | |
3414 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3415 | *) | |
3416 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3417 | esac | |
3418 | rm -f conftest.make | |
3419 | fi | |
3420 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3422 | $as_echo "yes" >&6; } | |
6de9cd9a DN |
3423 | SET_MAKE= |
3424 | else | |
5213506e RW |
3425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3426 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3427 | SET_MAKE="MAKE=${MAKE-make}" |
3428 | fi | |
3429 | ||
3430 | rm -rf .tst 2>/dev/null | |
3431 | mkdir .tst 2>/dev/null | |
3432 | if test -d .tst; then | |
3433 | am__leading_dot=. | |
3434 | else | |
3435 | am__leading_dot=_ | |
3436 | fi | |
3437 | rmdir .tst 2>/dev/null | |
3438 | ||
22e05272 JM |
3439 | # Check whether --enable-silent-rules was given. |
3440 | if test "${enable_silent_rules+set}" = set; then : | |
3441 | enableval=$enable_silent_rules; | |
3442 | fi | |
3443 | ||
3444 | case $enable_silent_rules in # ((( | |
3445 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3446 | no) AM_DEFAULT_VERBOSITY=1;; | |
3447 | *) AM_DEFAULT_VERBOSITY=1;; | |
3448 | esac | |
3449 | am_make=${MAKE-make} | |
3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3451 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3452 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3453 | $as_echo_n "(cached) " >&6 | |
3454 | else | |
3455 | if $as_echo 'TRUE=$(BAR$(V)) | |
3456 | BAR0=false | |
3457 | BAR1=true | |
3458 | V=1 | |
3459 | am__doit: | |
3460 | @$(TRUE) | |
3461 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3462 | am_cv_make_support_nested_variables=yes | |
3463 | else | |
3464 | am_cv_make_support_nested_variables=no | |
3465 | fi | |
3466 | fi | |
3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3468 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3469 | if test $am_cv_make_support_nested_variables = yes; then | |
3470 | AM_V='$(V)' | |
3471 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3472 | else | |
3473 | AM_V=$AM_DEFAULT_VERBOSITY | |
3474 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3475 | fi | |
3476 | AM_BACKSLASH='\' | |
3477 | ||
5213506e RW |
3478 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3479 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3480 | # is not polluted with repeated "-I." | |
3481 | am__isrc=' -I$(srcdir)' | |
3482 | # test to see if srcdir already configured | |
3483 | if test -f $srcdir/config.status; then | |
22e05272 | 3484 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
5213506e | 3485 | fi |
6de9cd9a DN |
3486 | fi |
3487 | ||
3488 | # test whether we have cygpath | |
3489 | if test -z "$CYGPATH_W"; then | |
3490 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3491 | CYGPATH_W='cygpath -w' | |
3492 | else | |
3493 | CYGPATH_W=echo | |
3494 | fi | |
3495 | fi | |
3496 | ||
3497 | ||
3498 | # Define the identity of the package. | |
3499 | PACKAGE='libgfortran' | |
0dce3ca1 | 3500 | VERSION='0.3' |
6de9cd9a DN |
3501 | |
3502 | ||
6de9cd9a DN |
3503 | # Some tools Automake needs. |
3504 | ||
3505 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3506 | ||
3507 | ||
3508 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3509 | ||
3510 | ||
3511 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3512 | ||
3513 | ||
3514 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3515 | ||
3516 | ||
3517 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3518 | ||
22e05272 JM |
3519 | # For better backward compatibility. To be removed once Automake 1.9.x |
3520 | # dies out for good. For more background, see: | |
3521 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3522 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3523 | mkdir_p='$(MKDIR_P)' | |
3524 | ||
3525 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3526 | # system "awk" is bad on some platforms. | |
c20fdb91 JB |
3527 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3528 | # in the wild :-( We should find a proper way to deprecate it ... | |
3529 | AMTAR='$${TAR-tar}' | |
d49ec2d1 | 3530 | |
22e05272 JM |
3531 | |
3532 | # We'll loop over all known methods to create a tar archive until one works. | |
3533 | _am_tools='gnutar pax cpio none' | |
3534 | ||
c20fdb91 | 3535 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
d49ec2d1 KC |
3536 | |
3537 | ||
6de9cd9a DN |
3538 | |
3539 | ||
3540 | ||
6de9cd9a | 3541 | |
22e05272 JM |
3542 | # POSIX will say in a future version that running "rm -f" with no argument |
3543 | # is OK; and we want to be able to make that assumption in our Makefile | |
3544 | # recipes. So use an aggressive probe to check that the usage we want is | |
3545 | # actually supported "in the wild" to an acceptable degree. | |
3546 | # See automake bug#10828. | |
3547 | # To make any issue more visible, cause the running configure to be aborted | |
3548 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3549 | # user can still override this though. | |
3550 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3551 | cat >&2 <<'END' | |
3552 | Oops! | |
3553 | ||
3554 | Your 'rm' program seems unable to run without file operands specified | |
3555 | on the command line, even when the '-f' option is present. This is contrary | |
3556 | to the behaviour of most rm programs out there, and not conforming with | |
3557 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3558 | ||
3559 | Please tell bug-automake@gnu.org about your system, including the value | |
3560 | of your $PATH and any error possibly output before this message. This | |
3561 | can help us improve future automake versions. | |
3562 | ||
3563 | END | |
3564 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3565 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3566 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3567 | echo >&2 | |
3568 | else | |
3569 | cat >&2 <<'END' | |
3570 | Aborting the configuration process, to ensure you take notice of the issue. | |
3571 | ||
3572 | You can download and install GNU coreutils to get an 'rm' implementation | |
3573 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3574 | ||
3575 | If you want to complete the configuration process using your problematic | |
3576 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3577 | to "yes", and re-run configure. | |
3578 | ||
3579 | END | |
3580 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3581 | fi | |
3582 | fi | |
3583 | ||
3584 | ||
5213506e RW |
3585 | |
3586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3587 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3588 | # Check whether --enable-maintainer-mode was given. | |
3589 | if test "${enable_maintainer_mode+set}" = set; then : | |
3590 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
6de9cd9a DN |
3591 | else |
3592 | USE_MAINTAINER_MODE=no | |
5213506e | 3593 | fi |
6de9cd9a | 3594 | |
5213506e RW |
3595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3596 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3597 | if test $USE_MAINTAINER_MODE = yes; then | |
6de9cd9a DN |
3598 | MAINTAINER_MODE_TRUE= |
3599 | MAINTAINER_MODE_FALSE='#' | |
3600 | else | |
3601 | MAINTAINER_MODE_TRUE='#' | |
3602 | MAINTAINER_MODE_FALSE= | |
3603 | fi | |
3604 | ||
3605 | MAINT=$MAINTAINER_MODE_TRUE | |
3606 | ||
3607 | ||
96b8a615 | 3608 | # Default to --enable-multilib |
5213506e RW |
3609 | # Check whether --enable-multilib was given. |
3610 | if test "${enable_multilib+set}" = set; then : | |
3611 | enableval=$enable_multilib; case "$enableval" in | |
96b8a615 AJ |
3612 | yes) multilib=yes ;; |
3613 | no) multilib=no ;; | |
22e05272 | 3614 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
96b8a615 AJ |
3615 | esac |
3616 | else | |
3617 | multilib=yes | |
5213506e RW |
3618 | fi |
3619 | ||
96b8a615 AJ |
3620 | |
3621 | # We may get other options which we leave undocumented: | |
3622 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3623 | # See config-ml.in if you want the gory details. | |
3624 | ||
3625 | if test "$srcdir" = "."; then | |
3626 | if test "$with_target_subdir" != "."; then | |
3627 | multi_basedir="$srcdir/$with_multisrctop../.." | |
3628 | else | |
3629 | multi_basedir="$srcdir/$with_multisrctop.." | |
3630 | fi | |
3631 | else | |
3632 | multi_basedir="$srcdir/.." | |
3633 | fi | |
3634 | ||
3635 | ||
9f9ef303 FXC |
3636 | # Even if the default multilib is not a cross compilation, |
3637 | # it may be that some of the other multilibs are. | |
3638 | if test $cross_compiling = no && test $multilib = yes \ | |
3639 | && test "x${with_multisubdir}" != x ; then | |
3640 | cross_compiling=maybe | |
3641 | fi | |
3642 | ||
5213506e | 3643 | ac_config_commands="$ac_config_commands default-1" |
96b8a615 AJ |
3644 | |
3645 | ||
3646 | # Handy for debugging: | |
3647 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
3648 | ||
3649 | # Are we being configured with some form of cross compiler? | |
3650 | # NB: We don't actually need to know this just now, but when, say, a test | |
3651 | # suite is included, we'll have to know. | |
3652 | if test "$build" != "$host"; then | |
3653 | LIBGFOR_IS_NATIVE=false | |
f02d008e | 3654 | |
96b8a615 AJ |
3655 | else |
3656 | LIBGFOR_IS_NATIVE=true | |
3657 | fi | |
3658 | ||
21be0a5a | 3659 | DEPDIR="${am__leading_dot}deps" |
96b8a615 | 3660 | |
21be0a5a | 3661 | ac_config_commands="$ac_config_commands depfiles" |
96b8a615 | 3662 | |
6de9cd9a | 3663 | |
21be0a5a JB |
3664 | am_make=${MAKE-make} |
3665 | cat > confinc << 'END' | |
3666 | am__doit: | |
3667 | @echo this is the am__doit target | |
3668 | .PHONY: am__doit | |
3669 | END | |
3670 | # If we don't find an include directive, just comment out the code. | |
3671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3672 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3673 | am__include="#" | |
3674 | am__quote= | |
3675 | _am_result=none | |
3676 | # First try GNU make style include. | |
3677 | echo "include confinc" > confmf | |
22e05272 | 3678 | # Ignore all kinds of additional output from 'make'. |
21be0a5a JB |
3679 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3680 | *the\ am__doit\ target*) | |
3681 | am__include=include | |
3682 | am__quote= | |
3683 | _am_result=GNU | |
3684 | ;; | |
3685 | esac | |
3686 | # Now try BSD make style include. | |
3687 | if test "$am__include" = "#"; then | |
3688 | echo '.include "confinc"' > confmf | |
3689 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3690 | *the\ am__doit\ target*) | |
3691 | am__include=.include | |
3692 | am__quote="\"" | |
3693 | _am_result=BSD | |
3694 | ;; | |
3695 | esac | |
3696 | fi | |
1ec601bf | 3697 | |
6de9cd9a | 3698 | |
21be0a5a JB |
3699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3700 | $as_echo "$_am_result" >&6; } | |
3701 | rm -f confinc confmf | |
3702 | ||
3703 | # Check whether --enable-dependency-tracking was given. | |
3704 | if test "${enable_dependency_tracking+set}" = set; then : | |
3705 | enableval=$enable_dependency_tracking; | |
3706 | fi | |
3707 | ||
3708 | if test "x$enable_dependency_tracking" != xno; then | |
3709 | am_depcomp="$ac_aux_dir/depcomp" | |
3710 | AMDEPBACKSLASH='\' | |
c20fdb91 | 3711 | am__nodep='_no' |
21be0a5a JB |
3712 | fi |
3713 | if test "x$enable_dependency_tracking" != xno; then | |
3714 | AMDEP_TRUE= | |
3715 | AMDEP_FALSE='#' | |
3716 | else | |
3717 | AMDEP_TRUE='#' | |
3718 | AMDEP_FALSE= | |
3719 | fi | |
6de9cd9a DN |
3720 | |
3721 | ||
6de9cd9a DN |
3722 | ac_ext=c |
3723 | ac_cpp='$CPP $CPPFLAGS' | |
3724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3727 | if test -n "$ac_tool_prefix"; then | |
3728 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3729 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3731 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3732 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3733 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3734 | else |
3735 | if test -n "$CC"; then | |
3736 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3737 | else | |
3738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3739 | for as_dir in $PATH | |
3740 | do | |
3741 | IFS=$as_save_IFS | |
3742 | test -z "$as_dir" && as_dir=. | |
5213506e | 3743 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3745 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3747 | break 2 |
3748 | fi | |
3749 | done | |
5213506e RW |
3750 | done |
3751 | IFS=$as_save_IFS | |
6de9cd9a DN |
3752 | |
3753 | fi | |
3754 | fi | |
3755 | CC=$ac_cv_prog_CC | |
3756 | if test -n "$CC"; then | |
5213506e RW |
3757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3758 | $as_echo "$CC" >&6; } | |
6de9cd9a | 3759 | else |
5213506e RW |
3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3761 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3762 | fi |
3763 | ||
5213506e | 3764 | |
6de9cd9a DN |
3765 | fi |
3766 | if test -z "$ac_cv_prog_CC"; then | |
3767 | ac_ct_CC=$CC | |
3768 | # Extract the first word of "gcc", so it can be a program name with args. | |
3769 | set dummy gcc; ac_word=$2 | |
5213506e RW |
3770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3771 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3772 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3773 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3774 | else |
3775 | if test -n "$ac_ct_CC"; then | |
3776 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3777 | else | |
3778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3779 | for as_dir in $PATH | |
3780 | do | |
3781 | IFS=$as_save_IFS | |
3782 | test -z "$as_dir" && as_dir=. | |
5213506e | 3783 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3784 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3785 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 3786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3787 | break 2 |
3788 | fi | |
3789 | done | |
5213506e RW |
3790 | done |
3791 | IFS=$as_save_IFS | |
6de9cd9a DN |
3792 | |
3793 | fi | |
3794 | fi | |
3795 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3796 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3798 | $as_echo "$ac_ct_CC" >&6; } | |
6de9cd9a | 3799 | else |
5213506e RW |
3800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3801 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3802 | fi |
3803 | ||
5213506e RW |
3804 | if test "x$ac_ct_CC" = x; then |
3805 | CC="" | |
3806 | else | |
3807 | case $cross_compiling:$ac_tool_warned in | |
3808 | yes:) | |
3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3810 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3811 | ac_tool_warned=yes ;; | |
3812 | esac | |
3813 | CC=$ac_ct_CC | |
3814 | fi | |
6de9cd9a DN |
3815 | else |
3816 | CC="$ac_cv_prog_CC" | |
3817 | fi | |
3818 | ||
3819 | if test -z "$CC"; then | |
5213506e RW |
3820 | if test -n "$ac_tool_prefix"; then |
3821 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
6de9cd9a | 3822 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3824 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3825 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3826 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3827 | else |
3828 | if test -n "$CC"; then | |
3829 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3830 | else | |
3831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3832 | for as_dir in $PATH | |
3833 | do | |
3834 | IFS=$as_save_IFS | |
3835 | test -z "$as_dir" && as_dir=. | |
5213506e | 3836 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3837 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3838 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 3839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3840 | break 2 |
3841 | fi | |
3842 | done | |
5213506e RW |
3843 | done |
3844 | IFS=$as_save_IFS | |
6de9cd9a DN |
3845 | |
3846 | fi | |
3847 | fi | |
3848 | CC=$ac_cv_prog_CC | |
3849 | if test -n "$CC"; then | |
5213506e RW |
3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3851 | $as_echo "$CC" >&6; } | |
38d24731 | 3852 | else |
5213506e RW |
3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3854 | $as_echo "no" >&6; } | |
38d24731 RW |
3855 | fi |
3856 | ||
38d24731 | 3857 | |
5213506e | 3858 | fi |
6de9cd9a DN |
3859 | fi |
3860 | if test -z "$CC"; then | |
3861 | # Extract the first word of "cc", so it can be a program name with args. | |
3862 | set dummy cc; ac_word=$2 | |
5213506e RW |
3863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3864 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3865 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3866 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3867 | else |
3868 | if test -n "$CC"; then | |
3869 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3870 | else | |
3871 | ac_prog_rejected=no | |
3872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3873 | for as_dir in $PATH | |
3874 | do | |
3875 | IFS=$as_save_IFS | |
3876 | test -z "$as_dir" && as_dir=. | |
5213506e | 3877 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3878 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a DN |
3879 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3880 | ac_prog_rejected=yes | |
3881 | continue | |
3882 | fi | |
3883 | ac_cv_prog_CC="cc" | |
5213506e | 3884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3885 | break 2 |
3886 | fi | |
3887 | done | |
5213506e RW |
3888 | done |
3889 | IFS=$as_save_IFS | |
6de9cd9a DN |
3890 | |
3891 | if test $ac_prog_rejected = yes; then | |
3892 | # We found a bogon in the path, so make sure we never use it. | |
3893 | set dummy $ac_cv_prog_CC | |
3894 | shift | |
3895 | if test $# != 0; then | |
3896 | # We chose a different compiler from the bogus one. | |
3897 | # However, it has the same basename, so the bogon will be chosen | |
3898 | # first if we set CC to just the basename; use the full file name. | |
3899 | shift | |
3900 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3901 | fi | |
3902 | fi | |
3903 | fi | |
3904 | fi | |
3905 | CC=$ac_cv_prog_CC | |
3906 | if test -n "$CC"; then | |
5213506e RW |
3907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3908 | $as_echo "$CC" >&6; } | |
6de9cd9a | 3909 | else |
5213506e RW |
3910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3911 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3912 | fi |
3913 | ||
5213506e | 3914 | |
6de9cd9a DN |
3915 | fi |
3916 | if test -z "$CC"; then | |
3917 | if test -n "$ac_tool_prefix"; then | |
5213506e | 3918 | for ac_prog in cl.exe |
6de9cd9a DN |
3919 | do |
3920 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3921 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3923 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3924 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3925 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3926 | else |
3927 | if test -n "$CC"; then | |
3928 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3929 | else | |
3930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3931 | for as_dir in $PATH | |
3932 | do | |
3933 | IFS=$as_save_IFS | |
3934 | test -z "$as_dir" && as_dir=. | |
5213506e | 3935 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3937 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 3938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3939 | break 2 |
3940 | fi | |
3941 | done | |
5213506e RW |
3942 | done |
3943 | IFS=$as_save_IFS | |
6de9cd9a DN |
3944 | |
3945 | fi | |
3946 | fi | |
3947 | CC=$ac_cv_prog_CC | |
3948 | if test -n "$CC"; then | |
5213506e RW |
3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3950 | $as_echo "$CC" >&6; } | |
6de9cd9a | 3951 | else |
5213506e RW |
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3953 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3954 | fi |
3955 | ||
5213506e | 3956 | |
6de9cd9a DN |
3957 | test -n "$CC" && break |
3958 | done | |
3959 | fi | |
3960 | if test -z "$CC"; then | |
3961 | ac_ct_CC=$CC | |
5213506e | 3962 | for ac_prog in cl.exe |
6de9cd9a DN |
3963 | do |
3964 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3965 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3967 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3968 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3969 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3970 | else |
3971 | if test -n "$ac_ct_CC"; then | |
3972 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3973 | else | |
3974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3975 | for as_dir in $PATH | |
3976 | do | |
3977 | IFS=$as_save_IFS | |
3978 | test -z "$as_dir" && as_dir=. | |
5213506e | 3979 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3980 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3981 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 3982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3983 | break 2 |
3984 | fi | |
3985 | done | |
5213506e RW |
3986 | done |
3987 | IFS=$as_save_IFS | |
6de9cd9a DN |
3988 | |
3989 | fi | |
3990 | fi | |
3991 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3992 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3994 | $as_echo "$ac_ct_CC" >&6; } | |
6de9cd9a | 3995 | else |
5213506e RW |
3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3997 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3998 | fi |
3999 | ||
5213506e | 4000 | |
6de9cd9a DN |
4001 | test -n "$ac_ct_CC" && break |
4002 | done | |
4003 | ||
5213506e RW |
4004 | if test "x$ac_ct_CC" = x; then |
4005 | CC="" | |
4006 | else | |
4007 | case $cross_compiling:$ac_tool_warned in | |
4008 | yes:) | |
4009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4010 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4011 | ac_tool_warned=yes ;; | |
4012 | esac | |
4013 | CC=$ac_ct_CC | |
4014 | fi | |
6de9cd9a DN |
4015 | fi |
4016 | ||
4017 | fi | |
4018 | ||
4019 | ||
5213506e RW |
4020 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4021 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4022 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4023 | See \`config.log' for more details" "$LINENO" 5; } | |
6de9cd9a DN |
4024 | |
4025 | # Provide some information about the compiler. | |
5213506e RW |
4026 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4027 | set X $ac_compile | |
4028 | ac_compiler=$2 | |
4029 | for ac_option in --version -v -V -qversion; do | |
4030 | { { ac_try="$ac_compiler $ac_option >&5" | |
4031 | case "(($ac_try" in | |
4032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4033 | *) ac_try_echo=$ac_try;; | |
4034 | esac | |
4035 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4036 | $as_echo "$ac_try_echo"; } >&5 | |
4037 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
6de9cd9a | 4038 | ac_status=$? |
5213506e RW |
4039 | if test -s conftest.err; then |
4040 | sed '10a\ | |
4041 | ... rest of stderr output deleted ... | |
4042 | 10q' conftest.err >conftest.er1 | |
4043 | cat conftest.er1 >&5 | |
5213506e | 4044 | fi |
22e05272 | 4045 | rm -f conftest.er1 conftest.err |
5213506e RW |
4046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4047 | test $ac_status = 0; } | |
4048 | done | |
6de9cd9a | 4049 | |
5213506e | 4050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a | 4051 | /* end confdefs.h. */ |
02ce382c | 4052 | #include <stdio.h> |
f02d008e JD |
4053 | int |
4054 | main () | |
4055 | { | |
02ce382c | 4056 | printf ("hello world\n"); |
f02d008e JD |
4057 | ; |
4058 | return 0; | |
4059 | } | |
4060 | _ACEOF | |
4061 | # FIXME: Cleanup? | |
5213506e | 4062 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
f02d008e JD |
4063 | (eval $ac_link) 2>&5 |
4064 | ac_status=$? | |
5213506e RW |
4065 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4066 | test $ac_status = 0; }; then : | |
f02d008e JD |
4067 | gcc_no_link=no |
4068 | else | |
4069 | gcc_no_link=yes | |
4070 | fi | |
f02d008e JD |
4071 | if test x$gcc_no_link = xyes; then |
4072 | # Setting cross_compile will disable run tests; it will | |
4073 | # also disable AC_CHECK_FILE but that's generally | |
4074 | # correct if we can't link. | |
4075 | cross_compiling=yes | |
4076 | EXEEXT= | |
4077 | else | |
5213506e | 4078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
4079 | /* end confdefs.h. */ |
4080 | ||
6de9cd9a DN |
4081 | int |
4082 | main () | |
4083 | { | |
4084 | ||
4085 | ; | |
4086 | return 0; | |
4087 | } | |
4088 | _ACEOF | |
4089 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4090 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
6de9cd9a DN |
4091 | # Try to create an executable without -o first, disregard a.out. |
4092 | # It will help us diagnose broken compilers, and finding out an intuition | |
4093 | # of exeext. | |
22e05272 JM |
4094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4095 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4096 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4097 | ||
4098 | # The possible output files: | |
4099 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4100 | ||
4101 | ac_rmfiles= | |
4102 | for ac_file in $ac_files | |
4103 | do | |
4104 | case $ac_file in | |
4105 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4106 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4107 | esac | |
4108 | done | |
4109 | rm -f $ac_rmfiles | |
4110 | ||
4111 | if { { ac_try="$ac_link_default" | |
4112 | case "(($ac_try" in | |
4113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4114 | *) ac_try_echo=$ac_try;; | |
4115 | esac | |
4116 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4117 | $as_echo "$ac_try_echo"; } >&5 | |
4118 | (eval "$ac_link_default") 2>&5 | |
4119 | ac_status=$? | |
4120 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4121 | test $ac_status = 0; }; then : | |
4122 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4123 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4124 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4125 | # so that the user can short-circuit this test for compilers unknown to | |
4126 | # Autoconf. | |
4127 | for ac_file in $ac_files '' | |
6de9cd9a DN |
4128 | do |
4129 | test -f "$ac_file" || continue | |
4130 | case $ac_file in | |
5213506e | 4131 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
6de9cd9a DN |
4132 | ;; |
4133 | [ab].out ) | |
4134 | # We found the default executable, but exeext='' is most | |
4135 | # certainly right. | |
4136 | break;; | |
4137 | *.* ) | |
5213506e RW |
4138 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4139 | then :; else | |
4140 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4141 | fi | |
4142 | # We set ac_cv_exeext here because the later test for it is not | |
4143 | # safe: cross compilers may not add the suffix if given an `-o' | |
4144 | # argument, so we may need to know it at that point already. | |
4145 | # Even if this section looks crufty: it has the advantage of | |
4146 | # actually working. | |
6de9cd9a DN |
4147 | break;; |
4148 | * ) | |
4149 | break;; | |
4150 | esac | |
4151 | done | |
5213506e RW |
4152 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4153 | ||
6de9cd9a | 4154 | else |
5213506e RW |
4155 | ac_file='' |
4156 | fi | |
5213506e | 4157 | if test -z "$ac_file"; then : |
22e05272 JM |
4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4159 | $as_echo "no" >&6; } | |
4160 | $as_echo "$as_me: failed program was:" >&5 | |
6de9cd9a DN |
4161 | sed 's/^/| /' conftest.$ac_ext >&5 |
4162 | ||
5213506e RW |
4163 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4164 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4165 | as_fn_error 77 "C compiler cannot create executables |
4166 | See \`config.log' for more details" "$LINENO" 5; } | |
4167 | else | |
4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4169 | $as_echo "yes" >&6; } | |
6de9cd9a | 4170 | fi |
22e05272 JM |
4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4172 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4174 | $as_echo "$ac_file" >&6; } | |
6de9cd9a | 4175 | ac_exeext=$ac_cv_exeext |
6de9cd9a | 4176 | |
22e05272 | 4177 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
6de9cd9a | 4178 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4180 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4181 | if { { ac_try="$ac_link" | |
4182 | case "(($ac_try" in | |
4183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4184 | *) ac_try_echo=$ac_try;; | |
4185 | esac | |
4186 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4187 | $as_echo "$ac_try_echo"; } >&5 | |
4188 | (eval "$ac_link") 2>&5 | |
6de9cd9a | 4189 | ac_status=$? |
5213506e RW |
4190 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4191 | test $ac_status = 0; }; then : | |
6de9cd9a DN |
4192 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4193 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4194 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4195 | # `rm'. | |
4196 | for ac_file in conftest.exe conftest conftest.*; do | |
4197 | test -f "$ac_file" || continue | |
4198 | case $ac_file in | |
5213506e | 4199 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
6de9cd9a | 4200 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
6de9cd9a DN |
4201 | break;; |
4202 | * ) break;; | |
4203 | esac | |
4204 | done | |
4205 | else | |
5213506e RW |
4206 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4207 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4208 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4209 | See \`config.log' for more details" "$LINENO" 5; } | |
6de9cd9a | 4210 | fi |
22e05272 | 4211 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4213 | $as_echo "$ac_cv_exeext" >&6; } | |
6de9cd9a DN |
4214 | |
4215 | rm -f conftest.$ac_ext | |
4216 | EXEEXT=$ac_cv_exeext | |
4217 | ac_exeext=$EXEEXT | |
22e05272 JM |
4218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4219 | /* end confdefs.h. */ | |
4220 | #include <stdio.h> | |
4221 | int | |
4222 | main () | |
4223 | { | |
4224 | FILE *f = fopen ("conftest.out", "w"); | |
4225 | return ferror (f) || fclose (f) != 0; | |
4226 | ||
4227 | ; | |
4228 | return 0; | |
4229 | } | |
4230 | _ACEOF | |
4231 | ac_clean_files="$ac_clean_files conftest.out" | |
4232 | # Check that the compiler produces executables we can run. If not, either | |
4233 | # the compiler is broken, or we cross compile. | |
4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4235 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4236 | if test "$cross_compiling" != yes; then | |
4237 | { { ac_try="$ac_link" | |
4238 | case "(($ac_try" in | |
4239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4240 | *) ac_try_echo=$ac_try;; | |
4241 | esac | |
4242 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4243 | $as_echo "$ac_try_echo"; } >&5 | |
4244 | (eval "$ac_link") 2>&5 | |
4245 | ac_status=$? | |
4246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4247 | test $ac_status = 0; } | |
4248 | if { ac_try='./conftest$ac_cv_exeext' | |
4249 | { { case "(($ac_try" in | |
4250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4251 | *) ac_try_echo=$ac_try;; | |
4252 | esac | |
4253 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4254 | $as_echo "$ac_try_echo"; } >&5 | |
4255 | (eval "$ac_try") 2>&5 | |
4256 | ac_status=$? | |
4257 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4258 | test $ac_status = 0; }; }; then | |
4259 | cross_compiling=no | |
4260 | else | |
4261 | if test "$cross_compiling" = maybe; then | |
4262 | cross_compiling=yes | |
4263 | else | |
4264 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4265 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4266 | as_fn_error $? "cannot run C compiled programs. | |
4267 | If you meant to cross compile, use \`--host'. | |
4268 | See \`config.log' for more details" "$LINENO" 5; } | |
4269 | fi | |
4270 | fi | |
4271 | fi | |
4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4273 | $as_echo "$cross_compiling" >&6; } | |
4274 | ||
4275 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4276 | ac_clean_files=$ac_clean_files_save | |
f02d008e | 4277 | fi |
5213506e RW |
4278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4279 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4280 | if ${ac_cv_objext+:} false; then : |
5213506e | 4281 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4282 | else |
5213506e | 4283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a DN |
4284 | /* end confdefs.h. */ |
4285 | ||
4286 | int | |
4287 | main () | |
4288 | { | |
4289 | ||
4290 | ; | |
4291 | return 0; | |
4292 | } | |
4293 | _ACEOF | |
4294 | rm -f conftest.o conftest.obj | |
5213506e RW |
4295 | if { { ac_try="$ac_compile" |
4296 | case "(($ac_try" in | |
4297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4298 | *) ac_try_echo=$ac_try;; | |
4299 | esac | |
4300 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4301 | $as_echo "$ac_try_echo"; } >&5 | |
4302 | (eval "$ac_compile") 2>&5 | |
4303 | ac_status=$? | |
4304 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4305 | test $ac_status = 0; }; then : | |
4306 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4307 | test -f "$ac_file" || continue; | |
6de9cd9a | 4308 | case $ac_file in |
5213506e | 4309 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
6de9cd9a DN |
4310 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4311 | break;; | |
4312 | esac | |
4313 | done | |
4314 | else | |
5213506e | 4315 | $as_echo "$as_me: failed program was:" >&5 |
6de9cd9a DN |
4316 | sed 's/^/| /' conftest.$ac_ext >&5 |
4317 | ||
5213506e RW |
4318 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4319 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4320 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4321 | See \`config.log' for more details" "$LINENO" 5; } | |
78511f8b | 4322 | fi |
78511f8b JB |
4323 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4324 | fi | |
5213506e RW |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4326 | $as_echo "$ac_cv_objext" >&6; } | |
78511f8b JB |
4327 | OBJEXT=$ac_cv_objext |
4328 | ac_objext=$OBJEXT | |
5213506e RW |
4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4330 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4331 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4332 | $as_echo_n "(cached) " >&6 |
78511f8b | 4333 | else |
5213506e | 4334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a | 4335 | /* end confdefs.h. */ |
6de9cd9a | 4336 | |
6de9cd9a DN |
4337 | int |
4338 | main () | |
4339 | { | |
78511f8b JB |
4340 | #ifndef __GNUC__ |
4341 | choke me | |
4342 | #endif | |
c0e7e2bf | 4343 | |
6de9cd9a DN |
4344 | ; |
4345 | return 0; | |
4346 | } | |
4347 | _ACEOF | |
5213506e | 4348 | if ac_fn_c_try_compile "$LINENO"; then : |
78511f8b | 4349 | ac_compiler_gnu=yes |
6de9cd9a | 4350 | else |
5213506e | 4351 | ac_compiler_gnu=no |
78511f8b | 4352 | fi |
5213506e | 4353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
78511f8b JB |
4354 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4355 | ||
4356 | fi | |
5213506e RW |
4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4358 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4359 | if test $ac_compiler_gnu = yes; then | |
4360 | GCC=yes | |
4361 | else | |
4362 | GCC= | |
4363 | fi | |
78511f8b JB |
4364 | ac_test_CFLAGS=${CFLAGS+set} |
4365 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4367 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4368 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e | 4369 | $as_echo_n "(cached) " >&6 |
78511f8b | 4370 | else |
5213506e RW |
4371 | ac_save_c_werror_flag=$ac_c_werror_flag |
4372 | ac_c_werror_flag=yes | |
4373 | ac_cv_prog_cc_g=no | |
4374 | CFLAGS="-g" | |
4375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6de9cd9a | 4376 | /* end confdefs.h. */ |
c0e7e2bf | 4377 | |
6de9cd9a DN |
4378 | int |
4379 | main () | |
4380 | { | |
c0e7e2bf | 4381 | |
6de9cd9a DN |
4382 | ; |
4383 | return 0; | |
4384 | } | |
4385 | _ACEOF | |
5213506e | 4386 | if ac_fn_c_try_compile "$LINENO"; then : |
f489fba1 FXC |
4387 | ac_cv_prog_cc_g=yes |
4388 | else | |
5213506e RW |
4389 | CFLAGS="" |
4390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4391 | /* end confdefs.h. */ | |
4392 | ||
4393 | int | |
4394 | main () | |
4395 | { | |
4396 | ||
4397 | ; | |
4398 | return 0; | |
4399 | } | |
4400 | _ACEOF | |
4401 | if ac_fn_c_try_compile "$LINENO"; then : | |
4402 | ||
4403 | else | |
4404 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4405 | CFLAGS="-g" | |
4406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4407 | /* end confdefs.h. */ | |
f489fba1 | 4408 | |
5213506e RW |
4409 | int |
4410 | main () | |
4411 | { | |
4412 | ||
4413 | ; | |
4414 | return 0; | |
4415 | } | |
4416 | _ACEOF | |
4417 | if ac_fn_c_try_compile "$LINENO"; then : | |
4418 | ac_cv_prog_cc_g=yes | |
4419 | fi | |
4420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
38d24731 | 4421 | fi |
5213506e | 4422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
38d24731 | 4423 | fi |
5213506e RW |
4424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4425 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4426 | fi | |
4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4428 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
38d24731 RW |
4429 | if test "$ac_test_CFLAGS" = set; then |
4430 | CFLAGS=$ac_save_CFLAGS | |
4431 | elif test $ac_cv_prog_cc_g = yes; then | |
4432 | if test "$GCC" = yes; then | |
4433 | CFLAGS="-g -O2" | |
4434 | else | |
4435 | CFLAGS="-g" | |
4436 | fi | |
4437 | else | |
4438 | if test "$GCC" = yes; then | |
4439 | CFLAGS="-O2" | |
4440 | else | |
4441 | CFLAGS= | |
4442 | fi | |
4443 | fi | |
5213506e RW |
4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4445 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4446 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4447 | $as_echo_n "(cached) " >&6 |
38d24731 | 4448 | else |
5213506e | 4449 | ac_cv_prog_cc_c89=no |
38d24731 | 4450 | ac_save_CC=$CC |
5213506e | 4451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f489fba1 | 4452 | /* end confdefs.h. */ |
38d24731 RW |
4453 | #include <stdarg.h> |
4454 | #include <stdio.h> | |
22e05272 | 4455 | struct stat; |
38d24731 RW |
4456 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4457 | struct buf { int x; }; | |
4458 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4459 | static char *e (p, i) | |
4460 | char **p; | |
4461 | int i; | |
4462 | { | |
4463 | return p[i]; | |
4464 | } | |
4465 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4466 | { | |
4467 | char *s; | |
4468 | va_list v; | |
4469 | va_start (v,p); | |
4470 | s = g (p, va_arg (v,int)); | |
4471 | va_end (v); | |
4472 | return s; | |
4473 | } | |
f489fba1 | 4474 | |
38d24731 RW |
4475 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4476 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4477 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4478 | as 'x'. The following induces an error, until -std is added to get |
38d24731 RW |
4479 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4480 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4481 | that's true only with -std. */ |
38d24731 RW |
4482 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4483 | ||
5213506e RW |
4484 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4485 | inside strings and character constants. */ | |
4486 | #define FOO(x) 'x' | |
4487 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4488 | ||
38d24731 RW |
4489 | int test (int i, double x); |
4490 | struct s1 {int (*f) (int a);}; | |
4491 | struct s2 {int (*f) (double a);}; | |
4492 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4493 | int argc; | |
4494 | char **argv; | |
f489fba1 FXC |
4495 | int |
4496 | main () | |
4497 | { | |
38d24731 | 4498 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
f489fba1 FXC |
4499 | ; |
4500 | return 0; | |
4501 | } | |
4502 | _ACEOF | |
5213506e RW |
4503 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4504 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
38d24731 RW |
4505 | do |
4506 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4507 | if ac_fn_c_try_compile "$LINENO"; then : |
4508 | ac_cv_prog_cc_c89=$ac_arg | |
38d24731 | 4509 | fi |
5213506e RW |
4510 | rm -f core conftest.err conftest.$ac_objext |
4511 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
38d24731 | 4512 | done |
5213506e | 4513 | rm -f conftest.$ac_ext |
38d24731 RW |
4514 | CC=$ac_save_CC |
4515 | ||
4516 | fi | |
5213506e RW |
4517 | # AC_CACHE_VAL |
4518 | case "x$ac_cv_prog_cc_c89" in | |
4519 | x) | |
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4521 | $as_echo "none needed" >&6; } ;; | |
4522 | xno) | |
4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4524 | $as_echo "unsupported" >&6; } ;; | |
38d24731 | 4525 | *) |
5213506e RW |
4526 | CC="$CC $ac_cv_prog_cc_c89" |
4527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4528 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
38d24731 | 4529 | esac |
5213506e | 4530 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
6de9cd9a DN |
4531 | |
4532 | fi | |
6de9cd9a | 4533 | |
6de9cd9a DN |
4534 | ac_ext=c |
4535 | ac_cpp='$CPP $CPPFLAGS' | |
4536 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4537 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4538 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
679c0f9a | 4539 | |
22e05272 JM |
4540 | ac_ext=c |
4541 | ac_cpp='$CPP $CPPFLAGS' | |
4542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4546 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4547 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4548 | $as_echo_n "(cached) " >&6 | |
4549 | else | |
4550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4551 | /* end confdefs.h. */ | |
4552 | ||
4553 | int | |
4554 | main () | |
4555 | { | |
4556 | ||
4557 | ; | |
4558 | return 0; | |
4559 | } | |
4560 | _ACEOF | |
4561 | # Make sure it works both with $CC and with simple cc. | |
4562 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4563 | # compilers refuse to overwrite an existing .o file with -o, | |
4564 | # though they will create one. | |
4565 | am_cv_prog_cc_c_o=yes | |
4566 | for am_i in 1 2; do | |
4567 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4568 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4569 | ac_status=$? | |
4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4571 | (exit $ac_status); } \ | |
4572 | && test -f conftest2.$ac_objext; then | |
4573 | : OK | |
4574 | else | |
4575 | am_cv_prog_cc_c_o=no | |
4576 | break | |
4577 | fi | |
4578 | done | |
4579 | rm -f core conftest* | |
4580 | unset am_i | |
4581 | fi | |
4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4583 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4584 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4585 | # Losing compiler, so override with the script. | |
4586 | # FIXME: It is wrong to rewrite CC. | |
4587 | # But if we don't then we get into trouble of one sort or another. | |
4588 | # A longer-term fix would be to have automake use am__CC in this case, | |
4589 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4590 | CC="$am_aux_dir/compile $CC" | |
4591 | fi | |
4592 | ac_ext=c | |
4593 | ac_cpp='$CPP $CPPFLAGS' | |
4594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4597 | ||
4598 | ||
679c0f9a TT |
4599 | depcc="$CC" am_compiler_list= |
4600 | ||
5213506e RW |
4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4602 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 4603 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
5213506e | 4604 | $as_echo_n "(cached) " >&6 |
679c0f9a TT |
4605 | else |
4606 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4607 | # We make a subdir and do the tests there. Otherwise we can end up | |
4608 | # making bogus files that we don't know about and never remove. For | |
4609 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
4610 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4611 | # in D". | |
c20fdb91 | 4612 | rm -rf conftest.dir |
679c0f9a TT |
4613 | mkdir conftest.dir |
4614 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4615 | # using a relative directory. | |
4616 | cp "$am_depcomp" conftest.dir | |
4617 | cd conftest.dir | |
4618 | # We will build objects and dependencies in a subdirectory because | |
4619 | # it helps to detect inapplicable dependency modes. For instance | |
4620 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4621 | # side effect of compilation, but ICC will put the dependencies in | |
4622 | # the current directory while Tru64 will put them in the object | |
4623 | # directory. | |
4624 | mkdir sub | |
4625 | ||
4626 | am_cv_CC_dependencies_compiler_type=none | |
4627 | if test "$am_compiler_list" = ""; then | |
4628 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4629 | fi | |
5213506e RW |
4630 | am__universal=false |
4631 | case " $depcc " in #( | |
4632 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4633 | esac | |
4634 | ||
679c0f9a TT |
4635 | for depmode in $am_compiler_list; do |
4636 | # Setup a source with many dependencies, because some compilers | |
4637 | # like to wrap large dependency lists on column 80 (with \), and | |
4638 | # we should not choose a depcomp mode which is confused by this. | |
4639 | # | |
4640 | # We need to recreate these files for each test, as the compiler may | |
4641 | # overwrite some of them when testing with obscure command lines. | |
4642 | # This happens at least with the AIX C compiler. | |
4643 | : > sub/conftest.c | |
4644 | for i in 1 2 3 4 5 6; do | |
4645 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
4646 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4647 | # Solaris 10 /bin/sh. | |
4648 | echo '/* dummy */' > sub/conftst$i.h | |
679c0f9a TT |
4649 | done |
4650 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4651 | ||
22e05272 | 4652 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
5213506e | 4653 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
4654 | # handle '-M -o', and we need to detect this. Also, some Intel |
4655 | # versions had trouble with output in subdirs. | |
5213506e RW |
4656 | am__obj=sub/conftest.${OBJEXT-o} |
4657 | am__minus_obj="-o $am__obj" | |
679c0f9a | 4658 | case $depmode in |
5213506e RW |
4659 | gcc) |
4660 | # This depmode causes a compiler race in universal mode. | |
4661 | test "$am__universal" = false || continue | |
4662 | ;; | |
679c0f9a | 4663 | nosideeffect) |
22e05272 JM |
4664 | # After this tag, mechanisms are not by side-effect, so they'll |
4665 | # only be used when explicitly requested. | |
679c0f9a TT |
4666 | if test "x$enable_dependency_tracking" = xyes; then |
4667 | continue | |
4668 | else | |
4669 | break | |
4670 | fi | |
4671 | ;; | |
c20fdb91 | 4672 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 4673 | # This compiler won't grok '-c -o', but also, the minuso test has |
5213506e RW |
4674 | # not run yet. These depmodes are late enough in the game, and |
4675 | # so weak that their functioning should not be impacted. | |
4676 | am__obj=conftest.${OBJEXT-o} | |
4677 | am__minus_obj= | |
4678 | ;; | |
679c0f9a TT |
4679 | none) break ;; |
4680 | esac | |
679c0f9a | 4681 | if depmode=$depmode \ |
5213506e | 4682 | source=sub/conftest.c object=$am__obj \ |
679c0f9a | 4683 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5213506e | 4684 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
679c0f9a | 4685 | >/dev/null 2>conftest.err && |
5213506e | 4686 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
679c0f9a | 4687 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5213506e | 4688 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
679c0f9a TT |
4689 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4690 | # icc doesn't choke on unknown options, it will just issue warnings | |
4691 | # or remarks (even with -Werror). So we grep stderr for any message | |
4692 | # that says an option was ignored or not supported. | |
4693 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4694 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4695 | # The diagnosis changed in icc 8.0: | |
4696 | # icc: Command line remark: option '-MP' not supported | |
4697 | if (grep 'ignoring option' conftest.err || | |
4698 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4699 | am_cv_CC_dependencies_compiler_type=$depmode | |
4700 | break | |
4701 | fi | |
4702 | fi | |
4703 | done | |
4704 | ||
4705 | cd .. | |
4706 | rm -rf conftest.dir | |
4707 | else | |
4708 | am_cv_CC_dependencies_compiler_type=none | |
4709 | fi | |
4710 | ||
4711 | fi | |
5213506e RW |
4712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4713 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
679c0f9a TT |
4714 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4715 | ||
5213506e | 4716 | if |
679c0f9a TT |
4717 | test "x$enable_dependency_tracking" != xno \ |
4718 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4719 | am__fastdepCC_TRUE= | |
4720 | am__fastdepCC_FALSE='#' | |
4721 | else | |
4722 | am__fastdepCC_TRUE='#' | |
4723 | am__fastdepCC_FALSE= | |
4724 | fi | |
4725 | ||
6de9cd9a | 4726 | |
6de9cd9a | 4727 | |
21be0a5a JB |
4728 | ac_ext=c |
4729 | ac_cpp='$CPP $CPPFLAGS' | |
4730 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4731 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4732 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4734 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4735 | # On Suns, sometimes $CPP names a directory. | |
4736 | if test -n "$CPP" && test -d "$CPP"; then | |
4737 | CPP= | |
6de9cd9a | 4738 | fi |
21be0a5a | 4739 | if test -z "$CPP"; then |
22e05272 | 4740 | if ${ac_cv_prog_CPP+:} false; then : |
21be0a5a JB |
4741 | $as_echo_n "(cached) " >&6 |
4742 | else | |
4743 | # Double quotes because CPP needs to be expanded | |
4744 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4745 | do | |
4746 | ac_preproc_ok=false | |
4747 | for ac_c_preproc_warn_flag in '' yes | |
4748 | do | |
4749 | # Use a header file that comes with gcc, so configuring glibc | |
4750 | # with a fresh cross-compiler works. | |
4751 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4752 | # <limits.h> exists even on freestanding compilers. | |
4753 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4754 | # not just through cpp. "Syntax error" is here to catch this case. | |
4755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c0e7e2bf | 4756 | /* end confdefs.h. */ |
21be0a5a JB |
4757 | #ifdef __STDC__ |
4758 | # include <limits.h> | |
4759 | #else | |
4760 | # include <assert.h> | |
4761 | #endif | |
4762 | Syntax error | |
c0e7e2bf | 4763 | _ACEOF |
21be0a5a JB |
4764 | if ac_fn_c_try_cpp "$LINENO"; then : |
4765 | ||
49ea7a0e | 4766 | else |
21be0a5a JB |
4767 | # Broken: fails on valid input. |
4768 | continue | |
49ea7a0e | 4769 | fi |
22e05272 | 4770 | rm -f conftest.err conftest.i conftest.$ac_ext |
49ea7a0e | 4771 | |
21be0a5a JB |
4772 | # OK, works on sane cases. Now check whether nonexistent headers |
4773 | # can be detected and how. | |
4774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4775 | /* end confdefs.h. */ | |
4776 | #include <ac_nonexistent.h> | |
49ea7a0e | 4777 | _ACEOF |
21be0a5a JB |
4778 | if ac_fn_c_try_cpp "$LINENO"; then : |
4779 | # Broken: success on invalid input. | |
4780 | continue | |
c0e7e2bf | 4781 | else |
21be0a5a JB |
4782 | # Passes both tests. |
4783 | ac_preproc_ok=: | |
4784 | break | |
49ea7a0e | 4785 | fi |
22e05272 | 4786 | rm -f conftest.err conftest.i conftest.$ac_ext |
21be0a5a JB |
4787 | |
4788 | done | |
4789 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 4790 | rm -f conftest.i conftest.err conftest.$ac_ext |
21be0a5a JB |
4791 | if $ac_preproc_ok; then : |
4792 | break | |
c0e7e2bf JB |
4793 | fi |
4794 | ||
21be0a5a JB |
4795 | done |
4796 | ac_cv_prog_CPP=$CPP | |
4797 | ||
4798 | fi | |
4799 | CPP=$ac_cv_prog_CPP | |
49ea7a0e | 4800 | else |
21be0a5a | 4801 | ac_cv_prog_CPP=$CPP |
49ea7a0e | 4802 | fi |
21be0a5a JB |
4803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4804 | $as_echo "$CPP" >&6; } | |
4805 | ac_preproc_ok=false | |
4806 | for ac_c_preproc_warn_flag in '' yes | |
4807 | do | |
4808 | # Use a header file that comes with gcc, so configuring glibc | |
4809 | # with a fresh cross-compiler works. | |
4810 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4811 | # <limits.h> exists even on freestanding compilers. | |
4812 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4813 | # not just through cpp. "Syntax error" is here to catch this case. | |
4814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4815 | /* end confdefs.h. */ | |
4816 | #ifdef __STDC__ | |
4817 | # include <limits.h> | |
4818 | #else | |
4819 | # include <assert.h> | |
4820 | #endif | |
4821 | Syntax error | |
4822 | _ACEOF | |
4823 | if ac_fn_c_try_cpp "$LINENO"; then : | |
49ea7a0e | 4824 | |
49ea7a0e | 4825 | else |
21be0a5a JB |
4826 | # Broken: fails on valid input. |
4827 | continue | |
49ea7a0e | 4828 | fi |
22e05272 | 4829 | rm -f conftest.err conftest.i conftest.$ac_ext |
49ea7a0e | 4830 | |
21be0a5a JB |
4831 | # OK, works on sane cases. Now check whether nonexistent headers |
4832 | # can be detected and how. | |
4833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c049309d | 4834 | /* end confdefs.h. */ |
21be0a5a | 4835 | #include <ac_nonexistent.h> |
c049309d | 4836 | _ACEOF |
21be0a5a JB |
4837 | if ac_fn_c_try_cpp "$LINENO"; then : |
4838 | # Broken: success on invalid input. | |
4839 | continue | |
c049309d | 4840 | else |
21be0a5a JB |
4841 | # Passes both tests. |
4842 | ac_preproc_ok=: | |
4843 | break | |
c049309d | 4844 | fi |
22e05272 | 4845 | rm -f conftest.err conftest.i conftest.$ac_ext |
21be0a5a JB |
4846 | |
4847 | done | |
4848 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 4849 | rm -f conftest.i conftest.err conftest.$ac_ext |
21be0a5a JB |
4850 | if $ac_preproc_ok; then : |
4851 | ||
c049309d | 4852 | else |
21be0a5a JB |
4853 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4854 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4855 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4856 | See \`config.log' for more details" "$LINENO" 5; } | |
c049309d | 4857 | fi |
c049309d | 4858 | |
21be0a5a JB |
4859 | ac_ext=c |
4860 | ac_cpp='$CPP $CPPFLAGS' | |
4861 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4862 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4863 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c049309d | 4864 | |
21be0a5a JB |
4865 | |
4866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4867 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 4868 | if ${ac_cv_path_GREP+:} false; then : |
5213506e | 4869 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4870 | else |
21be0a5a JB |
4871 | if test -z "$GREP"; then |
4872 | ac_path_GREP_found=false | |
4873 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4875 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
96b8a615 AJ |
4876 | do |
4877 | IFS=$as_save_IFS | |
4878 | test -z "$as_dir" && as_dir=. | |
21be0a5a | 4879 | for ac_prog in grep ggrep; do |
5213506e | 4880 | for ac_exec_ext in '' $ac_executable_extensions; do |
21be0a5a | 4881 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 4882 | as_fn_executable_p "$ac_path_GREP" || continue |
21be0a5a JB |
4883 | # Check for GNU ac_path_GREP and select it if it is found. |
4884 | # Check for GNU $ac_path_GREP | |
4885 | case `"$ac_path_GREP" --version 2>&1` in | |
4886 | *GNU*) | |
4887 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4888 | *) | |
4889 | ac_count=0 | |
4890 | $as_echo_n 0123456789 >"conftest.in" | |
4891 | while : | |
4892 | do | |
4893 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4894 | mv "conftest.tmp" "conftest.in" | |
4895 | cp "conftest.in" "conftest.nl" | |
4896 | $as_echo 'GREP' >> "conftest.nl" | |
4897 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4898 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4899 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4900 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4901 | # Best one so far, save it but keep looking for a better one | |
4902 | ac_cv_path_GREP="$ac_path_GREP" | |
4903 | ac_path_GREP_max=$ac_count | |
4904 | fi | |
4905 | # 10*(2^10) chars as input seems more than enough | |
4906 | test $ac_count -gt 10 && break | |
5213506e | 4907 | done |
21be0a5a JB |
4908 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4909 | esac | |
6de9cd9a | 4910 | |
21be0a5a JB |
4911 | $ac_path_GREP_found && break 3 |
4912 | done | |
4913 | done | |
4914 | done | |
4915 | IFS=$as_save_IFS | |
4916 | if test -z "$ac_cv_path_GREP"; then | |
22e05272 | 4917 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
21be0a5a | 4918 | fi |
6de9cd9a | 4919 | else |
21be0a5a | 4920 | ac_cv_path_GREP=$GREP |
6de9cd9a DN |
4921 | fi |
4922 | ||
6de9cd9a | 4923 | fi |
21be0a5a JB |
4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4925 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4926 | GREP="$ac_cv_path_GREP" | |
6de9cd9a | 4927 | |
21be0a5a JB |
4928 | |
4929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4930 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 4931 | if ${ac_cv_path_EGREP+:} false; then : |
5213506e | 4932 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4933 | else |
21be0a5a JB |
4934 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4935 | then ac_cv_path_EGREP="$GREP -E" | |
4936 | else | |
4937 | if test -z "$EGREP"; then | |
4938 | ac_path_EGREP_found=false | |
4939 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4941 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6de9cd9a DN |
4942 | do |
4943 | IFS=$as_save_IFS | |
4944 | test -z "$as_dir" && as_dir=. | |
21be0a5a | 4945 | for ac_prog in egrep; do |
5213506e | 4946 | for ac_exec_ext in '' $ac_executable_extensions; do |
21be0a5a | 4947 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 4948 | as_fn_executable_p "$ac_path_EGREP" || continue |
21be0a5a JB |
4949 | # Check for GNU ac_path_EGREP and select it if it is found. |
4950 | # Check for GNU $ac_path_EGREP | |
4951 | case `"$ac_path_EGREP" --version 2>&1` in | |
4952 | *GNU*) | |
4953 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4954 | *) | |
4955 | ac_count=0 | |
4956 | $as_echo_n 0123456789 >"conftest.in" | |
4957 | while : | |
4958 | do | |
4959 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4960 | mv "conftest.tmp" "conftest.in" | |
4961 | cp "conftest.in" "conftest.nl" | |
4962 | $as_echo 'EGREP' >> "conftest.nl" | |
4963 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4964 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4965 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4966 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4967 | # Best one so far, save it but keep looking for a better one | |
4968 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4969 | ac_path_EGREP_max=$ac_count | |
4970 | fi | |
4971 | # 10*(2^10) chars as input seems more than enough | |
4972 | test $ac_count -gt 10 && break | |
5213506e | 4973 | done |
21be0a5a JB |
4974 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4975 | esac | |
6de9cd9a | 4976 | |
21be0a5a JB |
4977 | $ac_path_EGREP_found && break 3 |
4978 | done | |
4979 | done | |
4980 | done | |
4981 | IFS=$as_save_IFS | |
4982 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 4983 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
21be0a5a | 4984 | fi |
6de9cd9a | 4985 | else |
21be0a5a | 4986 | ac_cv_path_EGREP=$EGREP |
6de9cd9a DN |
4987 | fi |
4988 | ||
21be0a5a | 4989 | fi |
6de9cd9a | 4990 | fi |
21be0a5a JB |
4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4992 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4993 | EGREP="$ac_cv_path_EGREP" | |
4994 | ||
4995 | ||
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4997 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 4998 | if ${ac_cv_header_stdc+:} false; then : |
5213506e | 4999 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5000 | else |
21be0a5a JB |
5001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5002 | /* end confdefs.h. */ | |
5003 | #include <stdlib.h> | |
5004 | #include <stdarg.h> | |
5005 | #include <string.h> | |
5006 | #include <float.h> | |
5007 | ||
5008 | int | |
5009 | main () | |
5010 | { | |
5011 | ||
5012 | ; | |
5013 | return 0; | |
5014 | } | |
5015 | _ACEOF | |
5016 | if ac_fn_c_try_compile "$LINENO"; then : | |
5017 | ac_cv_header_stdc=yes | |
6de9cd9a | 5018 | else |
21be0a5a JB |
5019 | ac_cv_header_stdc=no |
5020 | fi | |
5021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6de9cd9a | 5022 | |
21be0a5a JB |
5023 | if test $ac_cv_header_stdc = yes; then |
5024 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5026 | /* end confdefs.h. */ | |
5027 | #include <string.h> | |
5028 | ||
5029 | _ACEOF | |
5030 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5031 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5032 | ||
5033 | else | |
5034 | ac_cv_header_stdc=no | |
6de9cd9a | 5035 | fi |
21be0a5a JB |
5036 | rm -f conftest* |
5037 | ||
6de9cd9a | 5038 | fi |
21be0a5a JB |
5039 | |
5040 | if test $ac_cv_header_stdc = yes; then | |
5041 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5043 | /* end confdefs.h. */ | |
5044 | #include <stdlib.h> | |
5045 | ||
5046 | _ACEOF | |
5047 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5048 | $EGREP "free" >/dev/null 2>&1; then : | |
5049 | ||
6de9cd9a | 5050 | else |
21be0a5a | 5051 | ac_cv_header_stdc=no |
6de9cd9a | 5052 | fi |
21be0a5a | 5053 | rm -f conftest* |
6de9cd9a | 5054 | |
6de9cd9a DN |
5055 | fi |
5056 | ||
21be0a5a JB |
5057 | if test $ac_cv_header_stdc = yes; then |
5058 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5059 | if test "$cross_compiling" = yes; then : | |
5060 | : | |
5061 | else | |
5062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5063 | /* end confdefs.h. */ | |
5064 | #include <ctype.h> | |
5065 | #include <stdlib.h> | |
5066 | #if ((' ' & 0x0FF) == 0x020) | |
5067 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5068 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5069 | #else | |
5070 | # define ISLOWER(c) \ | |
5071 | (('a' <= (c) && (c) <= 'i') \ | |
5072 | || ('j' <= (c) && (c) <= 'r') \ | |
5073 | || ('s' <= (c) && (c) <= 'z')) | |
5074 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5075 | #endif | |
5076 | ||
5077 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5078 | int | |
5079 | main () | |
5080 | { | |
5081 | int i; | |
5082 | for (i = 0; i < 256; i++) | |
5083 | if (XOR (islower (i), ISLOWER (i)) | |
5084 | || toupper (i) != TOUPPER (i)) | |
5085 | return 2; | |
5086 | return 0; | |
5087 | } | |
5088 | _ACEOF | |
5089 | if ac_fn_c_try_run "$LINENO"; then : | |
5090 | ||
5091 | else | |
5092 | ac_cv_header_stdc=no | |
5093 | fi | |
5094 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5095 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5096 | fi | |
5097 | ||
5098 | fi | |
5099 | fi | |
5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5101 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5102 | if test $ac_cv_header_stdc = yes; then | |
5103 | ||
5104 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5105 | ||
5106 | fi | |
5107 | ||
5108 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5109 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5110 | inttypes.h stdint.h unistd.h | |
5111 | do : | |
5112 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5113 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5114 | " | |
22e05272 | 5115 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
21be0a5a JB |
5116 | cat >>confdefs.h <<_ACEOF |
5117 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5118 | _ACEOF | |
5119 | ||
5120 | fi | |
5121 | ||
5122 | done | |
5123 | ||
5124 | ||
5125 | ||
5126 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
22e05272 | 5127 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
21be0a5a JB |
5128 | MINIX=yes |
5129 | else | |
5130 | MINIX= | |
5131 | fi | |
5132 | ||
5133 | ||
5134 | if test "$MINIX" = yes; then | |
5135 | ||
5136 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5137 | ||
5138 | ||
5139 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5140 | ||
5141 | ||
5142 | $as_echo "#define _MINIX 1" >>confdefs.h | |
5143 | ||
5144 | fi | |
5145 | ||
5146 | ||
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5148 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
22e05272 | 5149 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
21be0a5a JB |
5150 | $as_echo_n "(cached) " >&6 |
5151 | else | |
5152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5153 | /* end confdefs.h. */ | |
5154 | ||
22e05272 JM |
5155 | # define __EXTENSIONS__ 1 |
5156 | $ac_includes_default | |
21be0a5a JB |
5157 | int |
5158 | main () | |
5159 | { | |
5160 | ||
5161 | ; | |
5162 | return 0; | |
5163 | } | |
5164 | _ACEOF | |
5165 | if ac_fn_c_try_compile "$LINENO"; then : | |
5166 | ac_cv_safe_to_define___extensions__=yes | |
5167 | else | |
5168 | ac_cv_safe_to_define___extensions__=no | |
5169 | fi | |
5170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5171 | fi | |
5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5173 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5174 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5175 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5176 | ||
5177 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5178 | ||
5179 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5180 | ||
5181 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5182 | ||
5183 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5184 | ||
5185 | ||
5186 | ||
e8e66971 MR |
5187 | |
5188 | # Check whether --with-toolexeclibdir was given. | |
5189 | if test "${with_toolexeclibdir+set}" = set; then : | |
5190 | withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in | |
5191 | /) | |
5192 | ;; | |
5193 | */) | |
5194 | with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` | |
5195 | ;; | |
5196 | esac | |
5197 | else | |
5198 | with_toolexeclibdir=no | |
5199 | fi | |
5200 | ||
5201 | ||
5202 | ||
21be0a5a JB |
5203 | # Calculate toolexeclibdir |
5204 | # Also toolexecdir, though it's only used in toolexeclibdir | |
5205 | case ${version_specific_libs} in | |
5206 | yes) | |
5207 | # Need the gcc compiler version to know where to install libraries | |
5208 | # and header files if --enable-version-specific-runtime-libs option | |
5209 | # is selected. | |
5210 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
5211 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
5212 | ;; | |
5213 | no) | |
5214 | if test -n "$with_cross_host" && | |
5215 | test x"$with_cross_host" != x"no"; then | |
5216 | # Install a library built with a cross compiler in tooldir, not libdir. | |
5217 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
e8e66971 MR |
5218 | case ${with_toolexeclibdir} in |
5219 | no) | |
5220 | toolexeclibdir='$(toolexecdir)/lib' | |
5221 | ;; | |
5222 | *) | |
5223 | toolexeclibdir=${with_toolexeclibdir} | |
5224 | ;; | |
5225 | esac | |
21be0a5a JB |
5226 | else |
5227 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
5228 | toolexeclibdir='$(libdir)' | |
5229 | fi | |
5230 | multi_os_directory=`$CC -print-multi-os-directory` | |
5231 | case $multi_os_directory in | |
5232 | .) ;; # Avoid trailing /. | |
5233 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
5234 | esac | |
5235 | ;; | |
5236 | esac | |
5237 | ||
5238 | ||
5239 | ||
5240 | # Create a spec file, so that compile/link tests don't fail | |
5241 | test -f libgfortran.spec || touch libgfortran.spec | |
5242 | ||
60858d8a TB |
5243 | ac_ext=c |
5244 | ac_cpp='$CPP $CPPFLAGS' | |
5245 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5246 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5247 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5248 | ||
21be0a5a JB |
5249 | # Check the compiler. |
5250 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
5251 | # We must force CC to /not/ be precious variables; otherwise | |
5252 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
5253 | # As a side effect, we have to subst CFLAGS ourselves. | |
5254 | ||
5255 | ||
5256 | ||
5257 | ac_ext=c | |
5258 | ac_cpp='$CPP $CPPFLAGS' | |
5259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5262 | if test -n "$ac_tool_prefix"; then | |
5263 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
5264 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5266 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5267 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 5268 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5269 | else |
21be0a5a JB |
5270 | if test -n "$CC"; then |
5271 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6de9cd9a | 5272 | else |
96b8a615 AJ |
5273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5274 | for as_dir in $PATH | |
5275 | do | |
5276 | IFS=$as_save_IFS | |
5277 | test -z "$as_dir" && as_dir=. | |
5213506e | 5278 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5279 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 5280 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 5281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
5282 | break 2 |
5283 | fi | |
5284 | done | |
5213506e RW |
5285 | done |
5286 | IFS=$as_save_IFS | |
6de9cd9a | 5287 | |
6de9cd9a | 5288 | fi |
96b8a615 | 5289 | fi |
21be0a5a JB |
5290 | CC=$ac_cv_prog_CC |
5291 | if test -n "$CC"; then | |
5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5293 | $as_echo "$CC" >&6; } | |
96b8a615 | 5294 | else |
5213506e RW |
5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5296 | $as_echo "no" >&6; } | |
96b8a615 | 5297 | fi |
6de9cd9a | 5298 | |
5213506e | 5299 | |
6de9cd9a | 5300 | fi |
21be0a5a JB |
5301 | if test -z "$ac_cv_prog_CC"; then |
5302 | ac_ct_CC=$CC | |
5303 | # Extract the first word of "gcc", so it can be a program name with args. | |
5304 | set dummy gcc; ac_word=$2 | |
5213506e RW |
5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5306 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5307 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 5308 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5309 | else |
21be0a5a JB |
5310 | if test -n "$ac_ct_CC"; then |
5311 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6de9cd9a | 5312 | else |
96b8a615 AJ |
5313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5314 | for as_dir in $PATH | |
5315 | do | |
5316 | IFS=$as_save_IFS | |
5317 | test -z "$as_dir" && as_dir=. | |
5213506e | 5318 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5319 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 5320 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 5321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
5322 | break 2 |
5323 | fi | |
5324 | done | |
5213506e RW |
5325 | done |
5326 | IFS=$as_save_IFS | |
6de9cd9a | 5327 | |
6de9cd9a | 5328 | fi |
6de9cd9a | 5329 | fi |
21be0a5a JB |
5330 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
5331 | if test -n "$ac_ct_CC"; then | |
5332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5333 | $as_echo "$ac_ct_CC" >&6; } | |
6de9cd9a | 5334 | else |
5213506e RW |
5335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5336 | $as_echo "no" >&6; } | |
6de9cd9a DN |
5337 | fi |
5338 | ||
21be0a5a JB |
5339 | if test "x$ac_ct_CC" = x; then |
5340 | CC="" | |
5213506e RW |
5341 | else |
5342 | case $cross_compiling:$ac_tool_warned in | |
5343 | yes:) | |
5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5345 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5346 | ac_tool_warned=yes ;; | |
5347 | esac | |
21be0a5a | 5348 | CC=$ac_ct_CC |
5213506e | 5349 | fi |
96b8a615 | 5350 | else |
21be0a5a | 5351 | CC="$ac_cv_prog_CC" |
6de9cd9a | 5352 | fi |
96b8a615 | 5353 | |
21be0a5a JB |
5354 | if test -z "$CC"; then |
5355 | if test -n "$ac_tool_prefix"; then | |
5356 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
5357 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5359 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5360 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 5361 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5362 | else |
21be0a5a JB |
5363 | if test -n "$CC"; then |
5364 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6de9cd9a | 5365 | else |
21be0a5a JB |
5366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5367 | for as_dir in $PATH | |
5368 | do | |
5369 | IFS=$as_save_IFS | |
5370 | test -z "$as_dir" && as_dir=. | |
5371 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5372 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5373 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5375 | break 2 | |
5376 | fi | |
5377 | done | |
5378 | done | |
5379 | IFS=$as_save_IFS | |
5380 | ||
5381 | fi | |
5382 | fi | |
5383 | CC=$ac_cv_prog_CC | |
5384 | if test -n "$CC"; then | |
5385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5386 | $as_echo "$CC" >&6; } | |
5387 | else | |
5388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5389 | $as_echo "no" >&6; } | |
5390 | fi | |
5391 | ||
5392 | ||
5393 | fi | |
5394 | fi | |
5395 | if test -z "$CC"; then | |
5396 | # Extract the first word of "cc", so it can be a program name with args. | |
5397 | set dummy cc; ac_word=$2 | |
5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5399 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5400 | if ${ac_cv_prog_CC+:} false; then : |
21be0a5a JB |
5401 | $as_echo_n "(cached) " >&6 |
5402 | else | |
5403 | if test -n "$CC"; then | |
5404 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5405 | else | |
5406 | ac_prog_rejected=no | |
5407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5408 | for as_dir in $PATH | |
5409 | do | |
5410 | IFS=$as_save_IFS | |
5411 | test -z "$as_dir" && as_dir=. | |
5412 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5413 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5414 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
5415 | ac_prog_rejected=yes | |
5416 | continue | |
5417 | fi | |
5418 | ac_cv_prog_CC="cc" | |
5419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5420 | break 2 | |
5421 | fi | |
5422 | done | |
5423 | done | |
5424 | IFS=$as_save_IFS | |
5425 | ||
5426 | if test $ac_prog_rejected = yes; then | |
5427 | # We found a bogon in the path, so make sure we never use it. | |
5428 | set dummy $ac_cv_prog_CC | |
5429 | shift | |
5430 | if test $# != 0; then | |
5431 | # We chose a different compiler from the bogus one. | |
5432 | # However, it has the same basename, so the bogon will be chosen | |
5433 | # first if we set CC to just the basename; use the full file name. | |
5434 | shift | |
5435 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
5436 | fi | |
5437 | fi | |
5438 | fi | |
5439 | fi | |
5440 | CC=$ac_cv_prog_CC | |
5441 | if test -n "$CC"; then | |
5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5443 | $as_echo "$CC" >&6; } | |
5444 | else | |
5445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5446 | $as_echo "no" >&6; } | |
5447 | fi | |
5448 | ||
5449 | ||
5450 | fi | |
5451 | if test -z "$CC"; then | |
5452 | if test -n "$ac_tool_prefix"; then | |
5453 | for ac_prog in cl.exe | |
5454 | do | |
5455 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5456 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5458 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5459 | if ${ac_cv_prog_CC+:} false; then : |
21be0a5a JB |
5460 | $as_echo_n "(cached) " >&6 |
5461 | else | |
5462 | if test -n "$CC"; then | |
5463 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5464 | else | |
5465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5466 | for as_dir in $PATH | |
5467 | do | |
5468 | IFS=$as_save_IFS | |
5469 | test -z "$as_dir" && as_dir=. | |
5470 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5472 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5474 | break 2 | |
5475 | fi | |
5476 | done | |
5477 | done | |
5478 | IFS=$as_save_IFS | |
5479 | ||
5480 | fi | |
5481 | fi | |
5482 | CC=$ac_cv_prog_CC | |
5483 | if test -n "$CC"; then | |
5484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5485 | $as_echo "$CC" >&6; } | |
5486 | else | |
5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5488 | $as_echo "no" >&6; } | |
5489 | fi | |
5490 | ||
5491 | ||
5492 | test -n "$CC" && break | |
5493 | done | |
5494 | fi | |
5495 | if test -z "$CC"; then | |
5496 | ac_ct_CC=$CC | |
5497 | for ac_prog in cl.exe | |
5498 | do | |
5499 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5500 | set dummy $ac_prog; ac_word=$2 | |
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5502 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5503 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
21be0a5a JB |
5504 | $as_echo_n "(cached) " >&6 |
5505 | else | |
5506 | if test -n "$ac_ct_CC"; then | |
5507 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5508 | else | |
5509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5510 | for as_dir in $PATH | |
5511 | do | |
5512 | IFS=$as_save_IFS | |
5513 | test -z "$as_dir" && as_dir=. | |
5514 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5515 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5516 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5517 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5518 | break 2 | |
5519 | fi | |
5520 | done | |
5521 | done | |
5522 | IFS=$as_save_IFS | |
5523 | ||
5524 | fi | |
5525 | fi | |
5526 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5527 | if test -n "$ac_ct_CC"; then | |
5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5529 | $as_echo "$ac_ct_CC" >&6; } | |
5530 | else | |
5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5532 | $as_echo "no" >&6; } | |
5533 | fi | |
5534 | ||
5535 | ||
5536 | test -n "$ac_ct_CC" && break | |
5537 | done | |
5538 | ||
5539 | if test "x$ac_ct_CC" = x; then | |
5540 | CC="" | |
5541 | else | |
5542 | case $cross_compiling:$ac_tool_warned in | |
5543 | yes:) | |
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5545 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5546 | ac_tool_warned=yes ;; | |
5547 | esac | |
5548 | CC=$ac_ct_CC | |
5549 | fi | |
5550 | fi | |
5551 | ||
5552 | fi | |
5553 | ||
5554 | ||
5555 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5556 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
5557 | as_fn_error $? "no acceptable C compiler found in \$PATH |
5558 | See \`config.log' for more details" "$LINENO" 5; } | |
21be0a5a JB |
5559 | |
5560 | # Provide some information about the compiler. | |
5561 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5562 | set X $ac_compile | |
5563 | ac_compiler=$2 | |
5564 | for ac_option in --version -v -V -qversion; do | |
5565 | { { ac_try="$ac_compiler $ac_option >&5" | |
5566 | case "(($ac_try" in | |
5567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5568 | *) ac_try_echo=$ac_try;; | |
5569 | esac | |
5570 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5571 | $as_echo "$ac_try_echo"; } >&5 | |
5572 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5573 | ac_status=$? | |
5574 | if test -s conftest.err; then | |
5575 | sed '10a\ | |
5576 | ... rest of stderr output deleted ... | |
5577 | 10q' conftest.err >conftest.er1 | |
5578 | cat conftest.er1 >&5 | |
21be0a5a | 5579 | fi |
22e05272 | 5580 | rm -f conftest.er1 conftest.err |
21be0a5a JB |
5581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5582 | test $ac_status = 0; } | |
5583 | done | |
5584 | ||
5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
5586 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 5587 | if ${ac_cv_c_compiler_gnu+:} false; then : |
21be0a5a JB |
5588 | $as_echo_n "(cached) " >&6 |
5589 | else | |
5590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5591 | /* end confdefs.h. */ | |
5592 | ||
5593 | int | |
5594 | main () | |
5595 | { | |
5596 | #ifndef __GNUC__ | |
5597 | choke me | |
5598 | #endif | |
5599 | ||
5600 | ; | |
5601 | return 0; | |
5602 | } | |
5603 | _ACEOF | |
5604 | if ac_fn_c_try_compile "$LINENO"; then : | |
5605 | ac_compiler_gnu=yes | |
5606 | else | |
5607 | ac_compiler_gnu=no | |
5608 | fi | |
5609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5610 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
5611 | ||
5612 | fi | |
5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5614 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5615 | if test $ac_compiler_gnu = yes; then | |
5616 | GCC=yes | |
5617 | else | |
5618 | GCC= | |
5619 | fi | |
5620 | ac_test_CFLAGS=${CFLAGS+set} | |
5621 | ac_save_CFLAGS=$CFLAGS | |
5622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5623 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 5624 | if ${ac_cv_prog_cc_g+:} false; then : |
21be0a5a JB |
5625 | $as_echo_n "(cached) " >&6 |
5626 | else | |
5627 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5628 | ac_c_werror_flag=yes | |
5629 | ac_cv_prog_cc_g=no | |
5630 | CFLAGS="-g" | |
5631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5632 | /* end confdefs.h. */ | |
5633 | ||
5634 | int | |
5635 | main () | |
5636 | { | |
5637 | ||
5638 | ; | |
5639 | return 0; | |
5640 | } | |
5641 | _ACEOF | |
5642 | if ac_fn_c_try_compile "$LINENO"; then : | |
5643 | ac_cv_prog_cc_g=yes | |
5644 | else | |
5645 | CFLAGS="" | |
5646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5647 | /* end confdefs.h. */ | |
5648 | ||
5649 | int | |
5650 | main () | |
5651 | { | |
5652 | ||
5653 | ; | |
5654 | return 0; | |
5655 | } | |
5656 | _ACEOF | |
5657 | if ac_fn_c_try_compile "$LINENO"; then : | |
5658 | ||
5659 | else | |
5660 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5661 | CFLAGS="-g" | |
5662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5663 | /* end confdefs.h. */ | |
5664 | ||
5665 | int | |
5666 | main () | |
5667 | { | |
5668 | ||
5669 | ; | |
5670 | return 0; | |
5671 | } | |
5672 | _ACEOF | |
5673 | if ac_fn_c_try_compile "$LINENO"; then : | |
5674 | ac_cv_prog_cc_g=yes | |
5675 | fi | |
5676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5677 | fi | |
5678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5679 | fi | |
5680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5681 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5682 | fi | |
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5684 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5685 | if test "$ac_test_CFLAGS" = set; then | |
5686 | CFLAGS=$ac_save_CFLAGS | |
5687 | elif test $ac_cv_prog_cc_g = yes; then | |
5688 | if test "$GCC" = yes; then | |
5689 | CFLAGS="-g -O2" | |
5690 | else | |
5691 | CFLAGS="-g" | |
5692 | fi | |
5693 | else | |
5694 | if test "$GCC" = yes; then | |
5695 | CFLAGS="-O2" | |
5696 | else | |
5697 | CFLAGS= | |
5698 | fi | |
5699 | fi | |
5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5701 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 5702 | if ${ac_cv_prog_cc_c89+:} false; then : |
21be0a5a JB |
5703 | $as_echo_n "(cached) " >&6 |
5704 | else | |
5705 | ac_cv_prog_cc_c89=no | |
5706 | ac_save_CC=$CC | |
5707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5708 | /* end confdefs.h. */ | |
5709 | #include <stdarg.h> | |
5710 | #include <stdio.h> | |
22e05272 | 5711 | struct stat; |
21be0a5a JB |
5712 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
5713 | struct buf { int x; }; | |
5714 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5715 | static char *e (p, i) | |
5716 | char **p; | |
5717 | int i; | |
5718 | { | |
5719 | return p[i]; | |
5720 | } | |
5721 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5722 | { | |
5723 | char *s; | |
5724 | va_list v; | |
5725 | va_start (v,p); | |
5726 | s = g (p, va_arg (v,int)); | |
5727 | va_end (v); | |
5728 | return s; | |
5729 | } | |
5730 | ||
5731 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5732 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5733 | These don't provoke an error unfortunately, instead are silently treated | |
5734 | as 'x'. The following induces an error, until -std is added to get | |
5735 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5736 | array size at least. It's necessary to write '\x00'==0 to get something | |
5737 | that's true only with -std. */ | |
5738 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5739 | ||
5740 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5741 | inside strings and character constants. */ | |
5742 | #define FOO(x) 'x' | |
5743 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5744 | ||
5745 | int test (int i, double x); | |
5746 | struct s1 {int (*f) (int a);}; | |
5747 | struct s2 {int (*f) (double a);}; | |
5748 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5749 | int argc; | |
5750 | char **argv; | |
5751 | int | |
5752 | main () | |
5753 | { | |
5754 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5755 | ; | |
5756 | return 0; | |
5757 | } | |
5758 | _ACEOF | |
5759 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5760 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5761 | do | |
5762 | CC="$ac_save_CC $ac_arg" | |
5763 | if ac_fn_c_try_compile "$LINENO"; then : | |
5764 | ac_cv_prog_cc_c89=$ac_arg | |
5765 | fi | |
5766 | rm -f core conftest.err conftest.$ac_objext | |
5767 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5768 | done | |
5769 | rm -f conftest.$ac_ext | |
5770 | CC=$ac_save_CC | |
5771 | ||
5772 | fi | |
5773 | # AC_CACHE_VAL | |
5774 | case "x$ac_cv_prog_cc_c89" in | |
5775 | x) | |
5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5777 | $as_echo "none needed" >&6; } ;; | |
5778 | xno) | |
5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5780 | $as_echo "unsupported" >&6; } ;; | |
5781 | *) | |
5782 | CC="$CC $ac_cv_prog_cc_c89" | |
5783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5784 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5785 | esac | |
5786 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5787 | ||
5788 | fi | |
5789 | ||
5790 | ac_ext=c | |
5791 | ac_cpp='$CPP $CPPFLAGS' | |
5792 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5793 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5794 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5795 | ||
22e05272 JM |
5796 | ac_ext=c |
5797 | ac_cpp='$CPP $CPPFLAGS' | |
5798 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5799 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5800 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5802 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
5803 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5804 | $as_echo_n "(cached) " >&6 | |
5805 | else | |
5806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5807 | /* end confdefs.h. */ | |
5808 | ||
5809 | int | |
5810 | main () | |
5811 | { | |
5812 | ||
5813 | ; | |
5814 | return 0; | |
5815 | } | |
5816 | _ACEOF | |
5817 | # Make sure it works both with $CC and with simple cc. | |
5818 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5819 | # compilers refuse to overwrite an existing .o file with -o, | |
5820 | # though they will create one. | |
5821 | am_cv_prog_cc_c_o=yes | |
5822 | for am_i in 1 2; do | |
5823 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5824 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5825 | ac_status=$? | |
5826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5827 | (exit $ac_status); } \ | |
5828 | && test -f conftest2.$ac_objext; then | |
5829 | : OK | |
5830 | else | |
5831 | am_cv_prog_cc_c_o=no | |
5832 | break | |
5833 | fi | |
5834 | done | |
5835 | rm -f core conftest* | |
5836 | unset am_i | |
5837 | fi | |
5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5839 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5840 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5841 | # Losing compiler, so override with the script. | |
5842 | # FIXME: It is wrong to rewrite CC. | |
5843 | # But if we don't then we get into trouble of one sort or another. | |
5844 | # A longer-term fix would be to have automake use am__CC in this case, | |
5845 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5846 | CC="$am_aux_dir/compile $CC" | |
5847 | fi | |
5848 | ac_ext=c | |
5849 | ac_cpp='$CPP $CPPFLAGS' | |
5850 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5851 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5852 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5853 | ||
5854 | ||
21be0a5a JB |
5855 | depcc="$CC" am_compiler_list= |
5856 | ||
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5858 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 5859 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
21be0a5a JB |
5860 | $as_echo_n "(cached) " >&6 |
5861 | else | |
5862 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5863 | # We make a subdir and do the tests there. Otherwise we can end up | |
5864 | # making bogus files that we don't know about and never remove. For | |
5865 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
5866 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5867 | # in D". | |
c20fdb91 | 5868 | rm -rf conftest.dir |
21be0a5a JB |
5869 | mkdir conftest.dir |
5870 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5871 | # using a relative directory. | |
5872 | cp "$am_depcomp" conftest.dir | |
5873 | cd conftest.dir | |
5874 | # We will build objects and dependencies in a subdirectory because | |
5875 | # it helps to detect inapplicable dependency modes. For instance | |
5876 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5877 | # side effect of compilation, but ICC will put the dependencies in | |
5878 | # the current directory while Tru64 will put them in the object | |
5879 | # directory. | |
5880 | mkdir sub | |
5881 | ||
5882 | am_cv_CC_dependencies_compiler_type=none | |
5883 | if test "$am_compiler_list" = ""; then | |
5884 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5885 | fi | |
5886 | am__universal=false | |
5887 | case " $depcc " in #( | |
5888 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5889 | esac | |
5890 | ||
5891 | for depmode in $am_compiler_list; do | |
5892 | # Setup a source with many dependencies, because some compilers | |
5893 | # like to wrap large dependency lists on column 80 (with \), and | |
5894 | # we should not choose a depcomp mode which is confused by this. | |
5895 | # | |
5896 | # We need to recreate these files for each test, as the compiler may | |
5897 | # overwrite some of them when testing with obscure command lines. | |
5898 | # This happens at least with the AIX C compiler. | |
5899 | : > sub/conftest.c | |
5900 | for i in 1 2 3 4 5 6; do | |
5901 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
5902 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5903 | # Solaris 10 /bin/sh. | |
5904 | echo '/* dummy */' > sub/conftst$i.h | |
21be0a5a JB |
5905 | done |
5906 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5907 | ||
22e05272 | 5908 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
21be0a5a | 5909 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
5910 | # handle '-M -o', and we need to detect this. Also, some Intel |
5911 | # versions had trouble with output in subdirs. | |
21be0a5a JB |
5912 | am__obj=sub/conftest.${OBJEXT-o} |
5913 | am__minus_obj="-o $am__obj" | |
5914 | case $depmode in | |
5915 | gcc) | |
5916 | # This depmode causes a compiler race in universal mode. | |
5917 | test "$am__universal" = false || continue | |
5918 | ;; | |
5919 | nosideeffect) | |
22e05272 JM |
5920 | # After this tag, mechanisms are not by side-effect, so they'll |
5921 | # only be used when explicitly requested. | |
21be0a5a JB |
5922 | if test "x$enable_dependency_tracking" = xyes; then |
5923 | continue | |
5924 | else | |
5925 | break | |
5926 | fi | |
5927 | ;; | |
c20fdb91 | 5928 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 5929 | # This compiler won't grok '-c -o', but also, the minuso test has |
21be0a5a JB |
5930 | # not run yet. These depmodes are late enough in the game, and |
5931 | # so weak that their functioning should not be impacted. | |
5932 | am__obj=conftest.${OBJEXT-o} | |
5933 | am__minus_obj= | |
5934 | ;; | |
5935 | none) break ;; | |
5936 | esac | |
5937 | if depmode=$depmode \ | |
5938 | source=sub/conftest.c object=$am__obj \ | |
5939 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5940 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5941 | >/dev/null 2>conftest.err && | |
5942 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5943 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5944 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5945 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5946 | # icc doesn't choke on unknown options, it will just issue warnings | |
5947 | # or remarks (even with -Werror). So we grep stderr for any message | |
5948 | # that says an option was ignored or not supported. | |
5949 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5950 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5951 | # The diagnosis changed in icc 8.0: | |
5952 | # icc: Command line remark: option '-MP' not supported | |
5953 | if (grep 'ignoring option' conftest.err || | |
5954 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5955 | am_cv_CC_dependencies_compiler_type=$depmode | |
5956 | break | |
5957 | fi | |
5958 | fi | |
5959 | done | |
5960 | ||
5961 | cd .. | |
5962 | rm -rf conftest.dir | |
5963 | else | |
5964 | am_cv_CC_dependencies_compiler_type=none | |
5965 | fi | |
5966 | ||
5967 | fi | |
5968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5969 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5970 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5971 | ||
5972 | if | |
5973 | test "x$enable_dependency_tracking" != xno \ | |
5974 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5975 | am__fastdepCC_TRUE= | |
5976 | am__fastdepCC_FALSE='#' | |
5977 | else | |
5978 | am__fastdepCC_TRUE='#' | |
5979 | am__fastdepCC_FALSE= | |
5980 | fi | |
5981 | ||
5982 | ||
5983 | ||
5984 | ||
60858d8a TB |
5985 | |
5986 | ||
60858d8a TB |
5987 | |
5988 | ||
21be0a5a | 5989 | # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
49ad4d2c | 5990 | have_real_17=no |
21be0a5a | 5991 | if test "x$GCC" = "xyes"; then |
83aac698 | 5992 | AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" |
f7b6856f JB |
5993 | ## We like to use C11 and C99 routines when available. This makes |
5994 | ## sure that | |
21be0a5a | 5995 | ## __STDC_VERSION__ is set such that libc includes make them available. |
581d2326 | 5996 | AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla" |
21be0a5a JB |
5997 | ## Compile the following tests with the same system header contents |
5998 | ## that we'll encounter when compiling our own source files. | |
f7b6856f | 5999 | CFLAGS="-std=gnu11 $CFLAGS" |
49ad4d2c TK |
6000 | |
6001 | case x$target in | |
6002 | xpowerpc64le*-linux*) | |
6003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6004 | /* end confdefs.h. */ | |
6005 | #if __SIZEOF_LONG_DOUBLE__ != 16 | |
6006 | #error long double is double | |
6007 | #endif | |
6008 | int | |
6009 | main () | |
6010 | { | |
6011 | (void) 0; | |
6012 | ; | |
6013 | return 0; | |
6014 | } | |
6015 | _ACEOF | |
6016 | if ac_fn_c_try_cpp "$LINENO"; then : | |
a8fea8cd TK |
6017 | AM_FCFLAGS="$AM_FCFLAGS -mabi=ibmlongdouble -mno-gnu-attribute"; |
6018 | AM_CFLAGS="$AM_CFLAGS -mabi=ibmlongdouble -mno-gnu-attribute"; | |
6019 | CFLAGS="$CFLAGS -mabi=ibmlongdouble -mno-gnu-attribute"; | |
49ad4d2c TK |
6020 | have_real_17=yes |
6021 | fi | |
6022 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6023 | ;; | |
6024 | *) | |
6025 | ;; | |
6026 | esac | |
6027 | fi | |
6028 | if test "x$have_real_17" != xno; then | |
6029 | HAVE_REAL_17_TRUE= | |
6030 | HAVE_REAL_17_FALSE='#' | |
6031 | else | |
6032 | HAVE_REAL_17_TRUE='#' | |
6033 | HAVE_REAL_17_FALSE= | |
21be0a5a JB |
6034 | fi |
6035 | ||
6f4977fc | 6036 | |
26724ef9 IT |
6037 | # Add CET specific flags if CET is enabled |
6038 | # Check whether --enable-cet was given. | |
6039 | if test "${enable_cet+set}" = set; then : | |
6040 | enableval=$enable_cet; | |
6041 | case "$enableval" in | |
a0e1df88 | 6042 | yes|no|auto) ;; |
22e05272 | 6043 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; |
26724ef9 IT |
6044 | esac |
6045 | ||
6046 | else | |
8d286dd1 | 6047 | enable_cet=auto |
26724ef9 IT |
6048 | fi |
6049 | ||
6050 | ||
14e335ed IT |
6051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 |
6052 | $as_echo_n "checking for CET support... " >&6; } | |
6053 | ||
9051b548 | 6054 | # NB: Avoid nested save_CFLAGS and save_LDFLAGS. |
26724ef9 IT |
6055 | case "$host" in |
6056 | i[34567]86-*-linux* | x86_64-*-linux*) | |
6057 | case "$enable_cet" in | |
a0e1df88 | 6058 | auto) |
14e335ed | 6059 | # Check if target supports multi-byte NOPs |
c0f8c22a | 6060 | # and if compiler and assembler support CET insn. |
9051b548 | 6061 | cet_save_CFLAGS="$CFLAGS" |
4c1a5d8b | 6062 | CFLAGS="$CFLAGS -fcf-protection" |
26724ef9 IT |
6063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6064 | /* end confdefs.h. */ | |
6065 | ||
6066 | int | |
6067 | main () | |
6068 | { | |
14e335ed IT |
6069 | |
6070 | #if !defined(__SSE2__) | |
6071 | #error target does not support multi-byte NOPs | |
6072 | #else | |
26724ef9 | 6073 | asm ("setssbsy"); |
14e335ed IT |
6074 | #endif |
6075 | ||
26724ef9 IT |
6076 | ; |
6077 | return 0; | |
6078 | } | |
6079 | _ACEOF | |
6080 | if ac_fn_c_try_compile "$LINENO"; then : | |
6081 | enable_cet=yes | |
6082 | else | |
6083 | enable_cet=no | |
6084 | fi | |
6085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9051b548 | 6086 | CFLAGS="$cet_save_CFLAGS" |
26724ef9 IT |
6087 | ;; |
6088 | yes) | |
6089 | # Check if assembler supports CET. | |
6090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6091 | /* end confdefs.h. */ | |
6092 | ||
6093 | int | |
6094 | main () | |
6095 | { | |
6096 | asm ("setssbsy"); | |
6097 | ; | |
6098 | return 0; | |
6099 | } | |
6100 | _ACEOF | |
6101 | if ac_fn_c_try_compile "$LINENO"; then : | |
6102 | ||
6103 | else | |
22e05272 | 6104 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 |
26724ef9 IT |
6105 | fi |
6106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6107 | ;; | |
6108 | esac | |
6109 | ;; | |
6110 | *) | |
6111 | enable_cet=no | |
6112 | ;; | |
6113 | esac | |
6114 | if test x$enable_cet = xyes; then | |
7b47ecf2 | 6115 | CET_FLAGS="-fcf-protection -mshstk" |
14e335ed IT |
6116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6117 | $as_echo "yes" >&6; } | |
6118 | else | |
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6120 | $as_echo "no" >&6; } | |
26724ef9 IT |
6121 | fi |
6122 | ||
6123 | AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS" | |
6124 | AM_CFLAGS="$AM_CFLAGS $CET_FLAGS" | |
6125 | CFLAGS="$CFLAGS $CET_FLAGS" | |
6126 | ||
6127 | ||
21be0a5a JB |
6128 | |
6129 | ||
6130 | ||
6131 | # Check for symbol versioning (copied from libssp). | |
6132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 | |
6133 | $as_echo_n "checking whether symbol versioning is supported... " >&6; } | |
bf382f5f RO |
6134 | # Check whether --enable-symvers was given. |
6135 | if test "${enable_symvers+set}" = set; then : | |
6136 | enableval=$enable_symvers; gfortran_use_symver=$enableval | |
6137 | else | |
6138 | gfortran_use_symver=yes | |
6139 | fi | |
6140 | ||
19af62db | 6141 | if test "x$gfortran_use_symver" != xno; then |
bf382f5f RO |
6142 | save_LDFLAGS="$LDFLAGS" |
6143 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" | |
6144 | cat > conftest.map <<EOF | |
21be0a5a JB |
6145 | FOO_1.0 { |
6146 | global: *foo*; bar; local: *; | |
6147 | }; | |
6148 | EOF | |
bf382f5f | 6149 | if test x$gcc_no_link = xyes; then |
22e05272 | 6150 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
6151 | fi |
6152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6153 | /* end confdefs.h. */ | |
6154 | int foo; | |
6155 | int | |
6156 | main () | |
6157 | { | |
6158 | ||
6159 | ; | |
6160 | return 0; | |
6161 | } | |
6162 | _ACEOF | |
6163 | if ac_fn_c_try_link "$LINENO"; then : | |
6164 | gfortran_use_symver=gnu | |
6165 | else | |
6166 | gfortran_use_symver=no | |
6167 | fi | |
6168 | rm -f core conftest.err conftest.$ac_objext \ | |
6169 | conftest$ac_exeext conftest.$ac_ext | |
bf382f5f RO |
6170 | if test x$gfortran_use_symver = xno; then |
6171 | case "$target_os" in | |
6172 | solaris2*) | |
6173 | LDFLAGS="$save_LDFLAGS" | |
6174 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map" | |
6175 | # Sun ld cannot handle wildcards and treats all entries as undefined. | |
6176 | cat > conftest.map <<EOF | |
21be0a5a JB |
6177 | FOO_1.0 { |
6178 | global: foo; local: *; | |
6179 | }; | |
6180 | EOF | |
bf382f5f | 6181 | if test x$gcc_no_link = xyes; then |
22e05272 | 6182 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
6183 | fi |
6184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6185 | /* end confdefs.h. */ | |
6186 | int foo; | |
6187 | int | |
6188 | main () | |
6189 | { | |
6190 | ||
6191 | ; | |
6192 | return 0; | |
6193 | } | |
6194 | _ACEOF | |
6195 | if ac_fn_c_try_link "$LINENO"; then : | |
6196 | gfortran_use_symver=sun | |
6197 | else | |
6198 | gfortran_use_symver=no | |
6199 | fi | |
6200 | rm -f core conftest.err conftest.$ac_objext \ | |
6201 | conftest$ac_exeext conftest.$ac_ext | |
bf382f5f RO |
6202 | ;; |
6203 | esac | |
6204 | fi | |
6205 | LDFLAGS="$save_LDFLAGS" | |
21be0a5a | 6206 | fi |
21be0a5a JB |
6207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5 |
6208 | $as_echo "$gfortran_use_symver" >&6; } | |
6209 | if test "x$gfortran_use_symver" != xno; then | |
6210 | LIBGFOR_USE_SYMVER_TRUE= | |
6211 | LIBGFOR_USE_SYMVER_FALSE='#' | |
6212 | else | |
6213 | LIBGFOR_USE_SYMVER_TRUE='#' | |
6214 | LIBGFOR_USE_SYMVER_FALSE= | |
6215 | fi | |
6216 | ||
6217 | if test "x$gfortran_use_symver" = xgnu; then | |
6218 | LIBGFOR_USE_SYMVER_GNU_TRUE= | |
6219 | LIBGFOR_USE_SYMVER_GNU_FALSE='#' | |
6220 | else | |
6221 | LIBGFOR_USE_SYMVER_GNU_TRUE='#' | |
6222 | LIBGFOR_USE_SYMVER_GNU_FALSE= | |
6223 | fi | |
6224 | ||
6225 | if test "x$gfortran_use_symver" = xsun; then | |
6226 | LIBGFOR_USE_SYMVER_SUN_TRUE= | |
6227 | LIBGFOR_USE_SYMVER_SUN_FALSE='#' | |
6228 | else | |
6229 | LIBGFOR_USE_SYMVER_SUN_TRUE='#' | |
6230 | LIBGFOR_USE_SYMVER_SUN_FALSE= | |
6231 | fi | |
6232 | ||
6233 | ||
ee95f928 BS |
6234 | # For GPU offloading, not everything in libfortran can be supported. |
6235 | # Currently, the only target that has this problem is nvptx. The | |
6236 | # following is a (partial) list of features that are unsupportable on | |
6237 | # this particular target: | |
6238 | # * Constructors | |
6239 | # * alloca | |
6240 | # * C library support for I/O, with printf as the one notable exception | |
6241 | # * C library support for other features such as signal, environment | |
6242 | # variables, time functions | |
6243 | ||
b1e86e33 | 6244 | if test "x${target_cpu}" = xnvptx; then |
ee95f928 BS |
6245 | LIBGFOR_MINIMAL_TRUE= |
6246 | LIBGFOR_MINIMAL_FALSE='#' | |
6247 | else | |
6248 | LIBGFOR_MINIMAL_TRUE='#' | |
6249 | LIBGFOR_MINIMAL_FALSE= | |
6250 | fi | |
6251 | ||
6252 | ||
2e764ae1 TB |
6253 | # Some compiler target support may have limited support for integer |
6254 | # or floating point numbers – or may want to reduce the libgfortran size | |
6255 | # although they do have the support. | |
6256 | LIBGOMP_CHECKED_INT_KINDS="1 2 4 8 16" | |
6257 | LIBGOMP_CHECKED_REAL_KINDS="4 8 10 16" | |
6258 | ||
2e764ae1 TB |
6259 | |
6260 | ||
6261 | ||
21be0a5a JB |
6262 | # Figure out whether the compiler supports "-ffunction-sections -fdata-sections", |
6263 | # similarly to how libstdc++ does it | |
6264 | ac_test_CFLAGS="${CFLAGS+set}" | |
6265 | ac_save_CFLAGS="$CFLAGS" | |
6266 | ||
6267 | # Check for -ffunction-sections -fdata-sections | |
6268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5 | |
6269 | $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; } | |
6270 | CFLAGS='-Werror -ffunction-sections -fdata-sections' | |
6271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6272 | /* end confdefs.h. */ | |
6273 | ||
6274 | int | |
6275 | main () | |
6276 | { | |
6277 | int foo; | |
6278 | ; | |
6279 | return 0; | |
6280 | } | |
6281 | _ACEOF | |
6282 | if ac_fn_c_try_compile "$LINENO"; then : | |
6283 | ac_fdsections=yes | |
6284 | else | |
6285 | ac_fdsections=no | |
6286 | fi | |
6287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6288 | if test "$ac_test_CFLAGS" = set; then | |
6289 | CFLAGS="$ac_save_CFLAGS" | |
6290 | else | |
6291 | # this is the suspicious part | |
6292 | CFLAGS="" | |
6293 | fi | |
6294 | if test x"$ac_fdsections" = x"yes"; then | |
6295 | SECTION_FLAGS='-ffunction-sections -fdata-sections' | |
6296 | fi | |
6297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5 | |
6298 | $as_echo "$ac_fdsections" >&6; } | |
6299 | ||
6300 | ||
66dbcf2d RO |
6301 | # Check linker hardware capability support. |
6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
6303 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 6304 | if ${ac_cv_path_SED+:} false; then : |
21be0a5a JB |
6305 | $as_echo_n "(cached) " >&6 |
6306 | else | |
66dbcf2d RO |
6307 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
6308 | for ac_i in 1 2 3 4 5 6 7; do | |
6309 | ac_script="$ac_script$as_nl$ac_script" | |
6310 | done | |
6311 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6312 | { ac_script=; unset ac_script;} | |
6313 | if test -z "$SED"; then | |
6314 | ac_path_SED_found=false | |
6315 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21be0a5a JB |
6317 | for as_dir in $PATH |
6318 | do | |
6319 | IFS=$as_save_IFS | |
6320 | test -z "$as_dir" && as_dir=. | |
66dbcf2d | 6321 | for ac_prog in sed gsed; do |
21be0a5a | 6322 | for ac_exec_ext in '' $ac_executable_extensions; do |
66dbcf2d | 6323 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 6324 | as_fn_executable_p "$ac_path_SED" || continue |
66dbcf2d RO |
6325 | # Check for GNU ac_path_SED and select it if it is found. |
6326 | # Check for GNU $ac_path_SED | |
6327 | case `"$ac_path_SED" --version 2>&1` in | |
6328 | *GNU*) | |
6329 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6330 | *) | |
6331 | ac_count=0 | |
6332 | $as_echo_n 0123456789 >"conftest.in" | |
6333 | while : | |
6334 | do | |
6335 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6336 | mv "conftest.tmp" "conftest.in" | |
6337 | cp "conftest.in" "conftest.nl" | |
6338 | $as_echo '' >> "conftest.nl" | |
6339 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6340 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6341 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6342 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6343 | # Best one so far, save it but keep looking for a better one | |
6344 | ac_cv_path_SED="$ac_path_SED" | |
6345 | ac_path_SED_max=$ac_count | |
6346 | fi | |
6347 | # 10*(2^10) chars as input seems more than enough | |
6348 | test $ac_count -gt 10 && break | |
21be0a5a | 6349 | done |
66dbcf2d RO |
6350 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
6351 | esac | |
21be0a5a | 6352 | |
66dbcf2d RO |
6353 | $ac_path_SED_found && break 3 |
6354 | done | |
6355 | done | |
21be0a5a JB |
6356 | done |
6357 | IFS=$as_save_IFS | |
66dbcf2d | 6358 | if test -z "$ac_cv_path_SED"; then |
22e05272 | 6359 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
66dbcf2d | 6360 | fi |
21be0a5a | 6361 | else |
66dbcf2d | 6362 | ac_cv_path_SED=$SED |
21be0a5a JB |
6363 | fi |
6364 | ||
21be0a5a | 6365 | fi |
66dbcf2d RO |
6366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
6367 | $as_echo "$ac_cv_path_SED" >&6; } | |
6368 | SED="$ac_cv_path_SED" | |
6369 | rm -f conftest.sed | |
21be0a5a | 6370 | |
66dbcf2d RO |
6371 | test -z "$SED" && SED=sed |
6372 | Xsed="$SED -e 1s/^X//" | |
21be0a5a | 6373 | |
21be0a5a JB |
6374 | |
6375 | ||
66dbcf2d RO |
6376 | |
6377 | ||
6378 | ||
6379 | ||
6380 | ||
6381 | ||
6382 | ||
6383 | ||
6384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
6385 | $as_echo_n "checking for fgrep... " >&6; } | |
22e05272 | 6386 | if ${ac_cv_path_FGREP+:} false; then : |
21be0a5a JB |
6387 | $as_echo_n "(cached) " >&6 |
6388 | else | |
66dbcf2d RO |
6389 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
6390 | then ac_cv_path_FGREP="$GREP -F" | |
6391 | else | |
6392 | if test -z "$FGREP"; then | |
6393 | ac_path_FGREP_found=false | |
6394 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6396 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
21be0a5a JB |
6397 | do |
6398 | IFS=$as_save_IFS | |
6399 | test -z "$as_dir" && as_dir=. | |
66dbcf2d | 6400 | for ac_prog in fgrep; do |
21be0a5a | 6401 | for ac_exec_ext in '' $ac_executable_extensions; do |
66dbcf2d | 6402 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 6403 | as_fn_executable_p "$ac_path_FGREP" || continue |
66dbcf2d RO |
6404 | # Check for GNU ac_path_FGREP and select it if it is found. |
6405 | # Check for GNU $ac_path_FGREP | |
6406 | case `"$ac_path_FGREP" --version 2>&1` in | |
6407 | *GNU*) | |
6408 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6409 | *) | |
6410 | ac_count=0 | |
6411 | $as_echo_n 0123456789 >"conftest.in" | |
6412 | while : | |
6413 | do | |
6414 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6415 | mv "conftest.tmp" "conftest.in" | |
6416 | cp "conftest.in" "conftest.nl" | |
6417 | $as_echo 'FGREP' >> "conftest.nl" | |
6418 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6419 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6420 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6421 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6422 | # Best one so far, save it but keep looking for a better one | |
6423 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6424 | ac_path_FGREP_max=$ac_count | |
6425 | fi | |
6426 | # 10*(2^10) chars as input seems more than enough | |
6427 | test $ac_count -gt 10 && break | |
6428 | done | |
6429 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6430 | esac | |
6431 | ||
6432 | $ac_path_FGREP_found && break 3 | |
6433 | done | |
6434 | done | |
21be0a5a JB |
6435 | done |
6436 | IFS=$as_save_IFS | |
66dbcf2d | 6437 | if test -z "$ac_cv_path_FGREP"; then |
22e05272 | 6438 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
66dbcf2d RO |
6439 | fi |
6440 | else | |
6441 | ac_cv_path_FGREP=$FGREP | |
6442 | fi | |
21be0a5a | 6443 | |
66dbcf2d | 6444 | fi |
21be0a5a | 6445 | fi |
66dbcf2d RO |
6446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
6447 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6448 | FGREP="$ac_cv_path_FGREP" | |
1cf3d07d SE |
6449 | |
6450 | ||
66dbcf2d | 6451 | test -z "$GREP" && GREP=grep |
1cf3d07d SE |
6452 | |
6453 | ||
6454 | ||
6455 | ||
6de9cd9a | 6456 | |
1cf3d07d SE |
6457 | |
6458 | ||
6459 | ||
6460 | ||
6461 | ||
6462 | ||
6463 | ||
43e02a8a | 6464 | |
43e02a8a | 6465 | |
43e02a8a | 6466 | |
43e02a8a | 6467 | |
43e02a8a RW |
6468 | |
6469 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6470 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6471 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
6472 | ||
6473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
6474 | $as_echo_n "checking how to print strings... " >&6; } | |
6475 | # Test print first, because it will be a builtin if present. | |
6476 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
6477 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6478 | ECHO='print -r --' | |
6479 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6480 | ECHO='printf %s\n' | |
6481 | else | |
6482 | # Use this function as a fallback that always works. | |
6483 | func_fallback_echo () | |
6484 | { | |
6485 | eval 'cat <<_LTECHO_EOF | |
6486 | $1 | |
6487 | _LTECHO_EOF' | |
6488 | } | |
6489 | ECHO='func_fallback_echo' | |
6490 | fi | |
6491 | ||
6492 | # func_echo_all arg... | |
6493 | # Invoke $ECHO with all args, space-separated. | |
6494 | func_echo_all () | |
6495 | { | |
6496 | $ECHO "" | |
6497 | } | |
6498 | ||
6499 | case "$ECHO" in | |
6500 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
6501 | $as_echo "printf" >&6; } ;; | |
6502 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6503 | $as_echo "print -r" >&6; } ;; | |
6504 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
6505 | $as_echo "cat" >&6; } ;; | |
6506 | esac | |
6507 | ||
6508 | ||
6509 | ||
6510 | ||
6511 | ||
6512 | ||
6513 | ||
6514 | ||
6515 | ||
6516 | ||
6517 | ||
6518 | ||
21be0a5a JB |
6519 | |
6520 | ||
5213506e | 6521 | |
5213506e | 6522 | |
66dbcf2d RO |
6523 | # Check whether --with-gnu-ld was given. |
6524 | if test "${with_gnu_ld+set}" = set; then : | |
6525 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
6526 | else | |
6527 | with_gnu_ld=no | |
1cf3d07d | 6528 | fi |
21be0a5a | 6529 | |
66dbcf2d RO |
6530 | ac_prog=ld |
6531 | if test "$GCC" = yes; then | |
6532 | # Check if gcc -print-prog-name=ld gives a path. | |
6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
6534 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
6535 | case $host in | |
6536 | *-*-mingw*) | |
6537 | # gcc leaves a trailing carriage return which upsets mingw | |
6538 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6539 | *) | |
6540 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6541 | esac | |
6542 | case $ac_prog in | |
6543 | # Accept absolute paths. | |
6544 | [\\/]* | ?:[\\/]*) | |
6545 | re_direlt='/[^/][^/]*/\.\./' | |
6546 | # Canonicalize the pathname of ld | |
6547 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6548 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6549 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6550 | done | |
6551 | test -z "$LD" && LD="$ac_prog" | |
6552 | ;; | |
6553 | "") | |
6554 | # If it fails, then pretend we aren't using GCC. | |
6555 | ac_prog=ld | |
6556 | ;; | |
6557 | *) | |
6558 | # If it is relative, then search for the first ld in PATH. | |
6559 | with_gnu_ld=unknown | |
6560 | ;; | |
6561 | esac | |
6562 | elif test "$with_gnu_ld" = yes; then | |
6563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
6564 | $as_echo_n "checking for GNU ld... " >&6; } | |
6565 | else | |
6566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
6567 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
6568 | fi | |
22e05272 | 6569 | if ${lt_cv_path_LD+:} false; then : |
66dbcf2d RO |
6570 | $as_echo_n "(cached) " >&6 |
6571 | else | |
6572 | if test -z "$LD"; then | |
6573 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6574 | for ac_dir in $PATH; do | |
6575 | IFS="$lt_save_ifs" | |
6576 | test -z "$ac_dir" && ac_dir=. | |
6577 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6578 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6579 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6580 | # but apparently some variants of GNU ld only accept -v. | |
6581 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6582 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6583 | *GNU* | *'with BFD'*) | |
6584 | test "$with_gnu_ld" != no && break | |
6585 | ;; | |
6586 | *) | |
6587 | test "$with_gnu_ld" != yes && break | |
6588 | ;; | |
6589 | esac | |
6590 | fi | |
6591 | done | |
6592 | IFS="$lt_save_ifs" | |
6593 | else | |
6594 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6595 | fi | |
6596 | fi | |
6597 | ||
6598 | LD="$lt_cv_path_LD" | |
6599 | if test -n "$LD"; then | |
6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6601 | $as_echo "$LD" >&6; } | |
6602 | else | |
6603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6604 | $as_echo "no" >&6; } | |
6605 | fi | |
22e05272 | 6606 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
66dbcf2d RO |
6607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
6608 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 6609 | if ${lt_cv_prog_gnu_ld+:} false; then : |
66dbcf2d RO |
6610 | $as_echo_n "(cached) " >&6 |
6611 | else | |
6612 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6613 | case `$LD -v 2>&1 </dev/null` in | |
6614 | *GNU* | *'with BFD'*) | |
6615 | lt_cv_prog_gnu_ld=yes | |
6616 | ;; | |
6617 | *) | |
6618 | lt_cv_prog_gnu_ld=no | |
6619 | ;; | |
6620 | esac | |
6621 | fi | |
6622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6623 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6624 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
21be0a5a JB |
6625 | |
6626 | ||
6627 | ||
6628 | ||
6629 | ||
6630 | ||
6631 | ||
6632 | ||
1cf3d07d SE |
6633 | |
6634 | ||
66dbcf2d RO |
6635 | test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS='' |
6636 | ||
6637 | ||
6638 | ac_save_LDFLAGS="$LDFLAGS" | |
6639 | LDFLAGS="$LFLAGS -mclear-hwcap" | |
6640 | ||
6641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5 | |
6642 | $as_echo_n "checking for -mclear-hwcap... " >&6; } | |
6643 | if test x$gcc_no_link = xyes; then | |
22e05272 | 6644 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
66dbcf2d RO |
6645 | fi |
6646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6647 | /* end confdefs.h. */ | |
6648 | ||
6649 | int | |
6650 | main () | |
6651 | { | |
6652 | return 0; | |
6653 | ; | |
6654 | return 0; | |
6655 | } | |
6656 | _ACEOF | |
6657 | if ac_fn_c_try_link "$LINENO"; then : | |
6658 | ac_hwcap_ldflags=yes | |
6659 | else | |
6660 | ac_hwcap_ldflags=no | |
6661 | fi | |
6662 | rm -f core conftest.err conftest.$ac_objext \ | |
6663 | conftest$ac_exeext conftest.$ac_ext | |
6664 | if test "$ac_hwcap_ldflags" = "yes"; then | |
6665 | HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS" | |
6666 | fi | |
6667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5 | |
6668 | $as_echo "$ac_hwcap_ldflags" >&6; } | |
6669 | ||
6670 | LDFLAGS="$ac_save_LDFLAGS" | |
6671 | ||
6672 | ||
6673 | ||
6674 | if test $ac_hwcap_ldflags != no; then | |
6675 | HAVE_HWCAP_TRUE= | |
6676 | HAVE_HWCAP_FALSE='#' | |
6677 | else | |
6678 | HAVE_HWCAP_TRUE='#' | |
6679 | HAVE_HWCAP_FALSE= | |
6680 | fi | |
6681 | ||
6682 | ||
6683 | ||
6684 | # Find other programs we need. | |
6685 | if test -n "$ac_tool_prefix"; then | |
6686 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
6687 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6689 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6690 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 6691 | $as_echo_n "(cached) " >&6 |
38d24731 | 6692 | else |
66dbcf2d RO |
6693 | if test -n "$AS"; then |
6694 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
6695 | else | |
6696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6697 | for as_dir in $PATH | |
5213506e RW |
6698 | do |
6699 | IFS=$as_save_IFS | |
6700 | test -z "$as_dir" && as_dir=. | |
5213506e | 6701 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6703 | ac_cv_prog_AS="${ac_tool_prefix}as" |
6704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6705 | break 2 | |
6706 | fi | |
6707 | done | |
5213506e | 6708 | done |
66dbcf2d RO |
6709 | IFS=$as_save_IFS |
6710 | ||
6711 | fi | |
6712 | fi | |
6713 | AS=$ac_cv_prog_AS | |
6714 | if test -n "$AS"; then | |
6715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
6716 | $as_echo "$AS" >&6; } | |
6717 | else | |
6718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6719 | $as_echo "no" >&6; } | |
6720 | fi | |
6721 | ||
6722 | ||
6723 | fi | |
6724 | if test -z "$ac_cv_prog_AS"; then | |
6725 | ac_ct_AS=$AS | |
6726 | # Extract the first word of "as", so it can be a program name with args. | |
6727 | set dummy as; ac_word=$2 | |
6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6729 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6730 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
66dbcf2d RO |
6731 | $as_echo_n "(cached) " >&6 |
6732 | else | |
6733 | if test -n "$ac_ct_AS"; then | |
6734 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
6735 | else | |
6736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6737 | for as_dir in $PATH | |
6738 | do | |
6739 | IFS=$as_save_IFS | |
6740 | test -z "$as_dir" && as_dir=. | |
6741 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6742 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6743 | ac_cv_prog_ac_ct_AS="as" |
6744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6745 | break 2 | |
6746 | fi | |
6747 | done | |
6748 | done | |
6749 | IFS=$as_save_IFS | |
6750 | ||
6751 | fi | |
6752 | fi | |
6753 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
6754 | if test -n "$ac_ct_AS"; then | |
6755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | |
6756 | $as_echo "$ac_ct_AS" >&6; } | |
6757 | else | |
6758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6759 | $as_echo "no" >&6; } | |
6760 | fi | |
6761 | ||
6762 | if test "x$ac_ct_AS" = x; then | |
6763 | AS="" | |
6764 | else | |
6765 | case $cross_compiling:$ac_tool_warned in | |
6766 | yes:) | |
6767 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6768 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6769 | ac_tool_warned=yes ;; | |
5213506e | 6770 | esac |
66dbcf2d RO |
6771 | AS=$ac_ct_AS |
6772 | fi | |
6773 | else | |
6774 | AS="$ac_cv_prog_AS" | |
6775 | fi | |
5213506e | 6776 | |
66dbcf2d RO |
6777 | if test -n "$ac_tool_prefix"; then |
6778 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6779 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6781 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6782 | if ${ac_cv_prog_AR+:} false; then : |
66dbcf2d RO |
6783 | $as_echo_n "(cached) " >&6 |
6784 | else | |
6785 | if test -n "$AR"; then | |
6786 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6787 | else | |
6788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6789 | for as_dir in $PATH | |
6790 | do | |
6791 | IFS=$as_save_IFS | |
6792 | test -z "$as_dir" && as_dir=. | |
6793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6794 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6795 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6797 | break 2 | |
6798 | fi | |
6799 | done | |
5213506e | 6800 | done |
66dbcf2d RO |
6801 | IFS=$as_save_IFS |
6802 | ||
6803 | fi | |
6804 | fi | |
6805 | AR=$ac_cv_prog_AR | |
6806 | if test -n "$AR"; then | |
6807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6808 | $as_echo "$AR" >&6; } | |
6809 | else | |
6810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6811 | $as_echo "no" >&6; } | |
6812 | fi | |
6813 | ||
6814 | ||
6815 | fi | |
6816 | if test -z "$ac_cv_prog_AR"; then | |
6817 | ac_ct_AR=$AR | |
6818 | # Extract the first word of "ar", so it can be a program name with args. | |
6819 | set dummy ar; ac_word=$2 | |
6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6821 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6822 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
66dbcf2d RO |
6823 | $as_echo_n "(cached) " >&6 |
6824 | else | |
6825 | if test -n "$ac_ct_AR"; then | |
6826 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6827 | else | |
6828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6829 | for as_dir in $PATH | |
6830 | do | |
6831 | IFS=$as_save_IFS | |
6832 | test -z "$as_dir" && as_dir=. | |
6833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6834 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6835 | ac_cv_prog_ac_ct_AR="ar" |
6836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6837 | break 2 | |
6838 | fi | |
6839 | done | |
6840 | done | |
6841 | IFS=$as_save_IFS | |
6842 | ||
6843 | fi | |
6844 | fi | |
6845 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6846 | if test -n "$ac_ct_AR"; then | |
6847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6848 | $as_echo "$ac_ct_AR" >&6; } | |
6849 | else | |
6850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6851 | $as_echo "no" >&6; } | |
6852 | fi | |
6853 | ||
6854 | if test "x$ac_ct_AR" = x; then | |
6855 | AR="" | |
6856 | else | |
6857 | case $cross_compiling:$ac_tool_warned in | |
6858 | yes:) | |
6859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6860 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6861 | ac_tool_warned=yes ;; | |
6862 | esac | |
6863 | AR=$ac_ct_AR | |
6864 | fi | |
6865 | else | |
6866 | AR="$ac_cv_prog_AR" | |
6867 | fi | |
6868 | ||
6869 | if test -n "$ac_tool_prefix"; then | |
6870 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6871 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6873 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6874 | if ${ac_cv_prog_RANLIB+:} false; then : |
66dbcf2d RO |
6875 | $as_echo_n "(cached) " >&6 |
6876 | else | |
6877 | if test -n "$RANLIB"; then | |
6878 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6879 | else | |
6880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6881 | for as_dir in $PATH | |
6882 | do | |
6883 | IFS=$as_save_IFS | |
6884 | test -z "$as_dir" && as_dir=. | |
6885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6886 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6887 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6889 | break 2 | |
6890 | fi | |
6891 | done | |
6892 | done | |
6893 | IFS=$as_save_IFS | |
6894 | ||
6895 | fi | |
6896 | fi | |
6897 | RANLIB=$ac_cv_prog_RANLIB | |
6898 | if test -n "$RANLIB"; then | |
6899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6900 | $as_echo "$RANLIB" >&6; } | |
6901 | else | |
6902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6903 | $as_echo "no" >&6; } | |
6904 | fi | |
6905 | ||
6906 | ||
6907 | fi | |
6908 | if test -z "$ac_cv_prog_RANLIB"; then | |
6909 | ac_ct_RANLIB=$RANLIB | |
6910 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6911 | set dummy ranlib; ac_word=$2 | |
6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6913 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6914 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
66dbcf2d RO |
6915 | $as_echo_n "(cached) " >&6 |
6916 | else | |
6917 | if test -n "$ac_ct_RANLIB"; then | |
6918 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6919 | else | |
6920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6921 | for as_dir in $PATH | |
6922 | do | |
6923 | IFS=$as_save_IFS | |
6924 | test -z "$as_dir" && as_dir=. | |
6925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6926 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6927 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6929 | break 2 | |
6930 | fi | |
6931 | done | |
5213506e RW |
6932 | done |
6933 | IFS=$as_save_IFS | |
66dbcf2d RO |
6934 | |
6935 | fi | |
6936 | fi | |
6937 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6938 | if test -n "$ac_ct_RANLIB"; then | |
6939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6940 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5213506e | 6941 | else |
66dbcf2d RO |
6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6943 | $as_echo "no" >&6; } | |
1cf3d07d | 6944 | fi |
5213506e | 6945 | |
66dbcf2d RO |
6946 | if test "x$ac_ct_RANLIB" = x; then |
6947 | RANLIB="ranlib-not-found-in-path-error" | |
6948 | else | |
6949 | case $cross_compiling:$ac_tool_warned in | |
6950 | yes:) | |
6951 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6952 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6953 | ac_tool_warned=yes ;; | |
6954 | esac | |
6955 | RANLIB=$ac_ct_RANLIB | |
6956 | fi | |
6957 | else | |
6958 | RANLIB="$ac_cv_prog_RANLIB" | |
5213506e | 6959 | fi |
1cf3d07d | 6960 | |
66dbcf2d RO |
6961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
6962 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6963 | set x ${MAKE-make} | |
6964 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 6965 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
66dbcf2d RO |
6966 | $as_echo_n "(cached) " >&6 |
6967 | else | |
6968 | cat >conftest.make <<\_ACEOF | |
6969 | SHELL = /bin/sh | |
6970 | all: | |
6971 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
6972 | _ACEOF | |
22e05272 | 6973 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
66dbcf2d RO |
6974 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6975 | *@@@%%%=?*=@@@%%%*) | |
6976 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6977 | *) | |
6978 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
6979 | esac | |
6980 | rm -f conftest.make | |
6981 | fi | |
6982 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6984 | $as_echo "yes" >&6; } | |
6985 | SET_MAKE= | |
6986 | else | |
6987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6988 | $as_echo "no" >&6; } | |
6989 | SET_MAKE="MAKE=${MAKE-make}" | |
6990 | fi | |
1cf3d07d SE |
6991 | |
6992 | ||
6993 | ||
66dbcf2d RO |
6994 | # Configure libtool |
6995 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
6996 | enable_dlopen=yes | |
1cf3d07d SE |
6997 | |
6998 | ||
6999 | ||
66dbcf2d RO |
7000 | case `pwd` in |
7001 | *\ * | *\ *) | |
7002 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
7003 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
7004 | esac | |
1cf3d07d SE |
7005 | |
7006 | ||
7007 | ||
66dbcf2d RO |
7008 | macro_version='2.2.7a' |
7009 | macro_revision='1.3134' | |
1cf3d07d SE |
7010 | |
7011 | ||
7012 | ||
7013 | ||
7014 | ||
7015 | ||
7016 | ||
7017 | ||
5213506e | 7018 | |
96b8a615 | 7019 | |
96b8a615 AJ |
7020 | |
7021 | ||
96b8a615 | 7022 | |
66dbcf2d | 7023 | ltmain="$ac_aux_dir/ltmain.sh" |
1cf3d07d | 7024 | |
66dbcf2d RO |
7025 | # Backslashify metacharacters that are still active within |
7026 | # double-quoted strings. | |
7027 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
1cf3d07d | 7028 | |
66dbcf2d RO |
7029 | # Same as above, but do not quote variable references. |
7030 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
1cf3d07d | 7031 | |
66dbcf2d RO |
7032 | # Sed substitution to delay expansion of an escaped shell variable in a |
7033 | # double_quote_subst'ed string. | |
7034 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
1cf3d07d | 7035 | |
66dbcf2d RO |
7036 | # Sed substitution to delay expansion of an escaped single quote. |
7037 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
1cf3d07d | 7038 | |
66dbcf2d RO |
7039 | # Sed substitution to avoid accidental globbing in evaled expressions |
7040 | no_glob_subst='s/\*/\\\*/g' | |
1cf3d07d | 7041 | |
5213506e RW |
7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
7043 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
22e05272 | 7044 | if ${lt_cv_path_NM+:} false; then : |
5213506e | 7045 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
7046 | else |
7047 | if test -n "$NM"; then | |
7048 | # Let the user override the test. | |
7049 | lt_cv_path_NM="$NM" | |
7050 | else | |
1cf3d07d SE |
7051 | lt_nm_to_check="${ac_tool_prefix}nm" |
7052 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
7053 | lt_nm_to_check="$lt_nm_to_check nm" | |
7054 | fi | |
7055 | for lt_tmp_nm in $lt_nm_to_check; do | |
7056 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7057 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
7058 | IFS="$lt_save_ifs" | |
7059 | test -z "$ac_dir" && ac_dir=. | |
7060 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
7061 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
7062 | # Check to see if the nm accepts a BSD-compat flag. | |
7063 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
7064 | # nm: unknown option "B" ignored | |
7065 | # Tru64's nm complains that /dev/null is an invalid object file | |
7066 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
7067 | */dev/null* | *'Invalid file or object type'*) | |
7068 | lt_cv_path_NM="$tmp_nm -B" | |
7069 | break | |
7070 | ;; | |
7071 | *) | |
7072 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
7073 | */dev/null*) | |
7074 | lt_cv_path_NM="$tmp_nm -p" | |
7075 | break | |
7076 | ;; | |
7077 | *) | |
7078 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
7079 | continue # so that we can try to find one that supports BSD flags | |
7080 | ;; | |
7081 | esac | |
7082 | ;; | |
7083 | esac | |
7084 | fi | |
7085 | done | |
7086 | IFS="$lt_save_ifs" | |
7087 | done | |
7088 | : ${lt_cv_path_NM=no} | |
7089 | fi | |
7090 | fi | |
5213506e RW |
7091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
7092 | $as_echo "$lt_cv_path_NM" >&6; } | |
1cf3d07d SE |
7093 | if test "$lt_cv_path_NM" != "no"; then |
7094 | NM="$lt_cv_path_NM" | |
7095 | else | |
7096 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
43e02a8a RW |
7097 | if test -n "$DUMPBIN"; then : |
7098 | # Let the user override the test. | |
7099 | else | |
7100 | if test -n "$ac_tool_prefix"; then | |
7101 | for ac_prog in dumpbin "link -dump" | |
1cf3d07d SE |
7102 | do |
7103 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7104 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7106 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7107 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
5213506e | 7108 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7109 | else |
7110 | if test -n "$DUMPBIN"; then | |
7111 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
7112 | else | |
7113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7114 | for as_dir in $PATH | |
7115 | do | |
7116 | IFS=$as_save_IFS | |
7117 | test -z "$as_dir" && as_dir=. | |
5213506e | 7118 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7119 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7120 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5213506e | 7121 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
7122 | break 2 |
7123 | fi | |
7124 | done | |
5213506e RW |
7125 | done |
7126 | IFS=$as_save_IFS | |
1cf3d07d SE |
7127 | |
7128 | fi | |
7129 | fi | |
7130 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
7131 | if test -n "$DUMPBIN"; then | |
5213506e RW |
7132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
7133 | $as_echo "$DUMPBIN" >&6; } | |
1cf3d07d | 7134 | else |
5213506e RW |
7135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7136 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7137 | fi |
7138 | ||
5213506e | 7139 | |
1cf3d07d SE |
7140 | test -n "$DUMPBIN" && break |
7141 | done | |
7142 | fi | |
7143 | if test -z "$DUMPBIN"; then | |
7144 | ac_ct_DUMPBIN=$DUMPBIN | |
43e02a8a | 7145 | for ac_prog in dumpbin "link -dump" |
1cf3d07d SE |
7146 | do |
7147 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7148 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
7149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7150 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7151 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
5213506e | 7152 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7153 | else |
7154 | if test -n "$ac_ct_DUMPBIN"; then | |
7155 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
7156 | else | |
7157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7158 | for as_dir in $PATH | |
7159 | do | |
7160 | IFS=$as_save_IFS | |
7161 | test -z "$as_dir" && as_dir=. | |
5213506e | 7162 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7163 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7164 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5213506e | 7165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
7166 | break 2 |
7167 | fi | |
7168 | done | |
5213506e RW |
7169 | done |
7170 | IFS=$as_save_IFS | |
1cf3d07d SE |
7171 | |
7172 | fi | |
7173 | fi | |
7174 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
7175 | if test -n "$ac_ct_DUMPBIN"; then | |
5213506e RW |
7176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
7177 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
1cf3d07d | 7178 | else |
5213506e RW |
7179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7180 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7181 | fi |
7182 | ||
5213506e | 7183 | |
1cf3d07d SE |
7184 | test -n "$ac_ct_DUMPBIN" && break |
7185 | done | |
1cf3d07d | 7186 | |
5213506e RW |
7187 | if test "x$ac_ct_DUMPBIN" = x; then |
7188 | DUMPBIN=":" | |
7189 | else | |
7190 | case $cross_compiling:$ac_tool_warned in | |
7191 | yes:) | |
7192 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7193 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7194 | ac_tool_warned=yes ;; | |
7195 | esac | |
7196 | DUMPBIN=$ac_ct_DUMPBIN | |
7197 | fi | |
96b8a615 | 7198 | fi |
1cf3d07d | 7199 | |
43e02a8a RW |
7200 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
7201 | *COFF*) | |
7202 | DUMPBIN="$DUMPBIN -symbols" | |
7203 | ;; | |
7204 | *) | |
7205 | DUMPBIN=: | |
7206 | ;; | |
7207 | esac | |
7208 | fi | |
1cf3d07d SE |
7209 | |
7210 | if test "$DUMPBIN" != ":"; then | |
7211 | NM="$DUMPBIN" | |
7212 | fi | |
96b8a615 | 7213 | fi |
1cf3d07d SE |
7214 | test -z "$NM" && NM=nm |
7215 | ||
7216 | ||
96b8a615 | 7217 | |
1cf3d07d SE |
7218 | |
7219 | ||
7220 | ||
5213506e RW |
7221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
7222 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
22e05272 | 7223 | if ${lt_cv_nm_interface+:} false; then : |
5213506e | 7224 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7225 | else |
7226 | lt_cv_nm_interface="BSD nm" | |
7227 | echo "int some_variable = 0;" > conftest.$ac_ext | |
43e02a8a | 7228 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
1cf3d07d SE |
7229 | (eval "$ac_compile" 2>conftest.err) |
7230 | cat conftest.err >&5 | |
43e02a8a | 7231 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
1cf3d07d SE |
7232 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
7233 | cat conftest.err >&5 | |
43e02a8a | 7234 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
1cf3d07d SE |
7235 | cat conftest.out >&5 |
7236 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
7237 | lt_cv_nm_interface="MS dumpbin" | |
7238 | fi | |
7239 | rm -f conftest* | |
7240 | fi | |
5213506e RW |
7241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
7242 | $as_echo "$lt_cv_nm_interface" >&6; } | |
96b8a615 | 7243 | |
5213506e RW |
7244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
7245 | $as_echo_n "checking whether ln -s works... " >&6; } | |
96b8a615 AJ |
7246 | LN_S=$as_ln_s |
7247 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
7248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7249 | $as_echo "yes" >&6; } | |
96b8a615 | 7250 | else |
5213506e RW |
7251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
7252 | $as_echo "no, using $LN_S" >&6; } | |
96b8a615 AJ |
7253 | fi |
7254 | ||
1cf3d07d | 7255 | # find the maximum length of command line arguments |
5213506e RW |
7256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
7257 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
22e05272 | 7258 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
5213506e | 7259 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7260 | else |
7261 | i=0 | |
7262 | teststring="ABCD" | |
7263 | ||
7264 | case $build_os in | |
7265 | msdosdjgpp*) | |
7266 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
7267 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
7268 | # during glob expansion). Even if it were fixed, the result of this | |
7269 | # check would be larger than it should be. | |
7270 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
7271 | ;; | |
7272 | ||
7273 | gnu*) | |
7274 | # Under GNU Hurd, this test is not required because there is | |
7275 | # no limit to the length of command line arguments. | |
7276 | # Libtool will interpret -1 as no limit whatsoever | |
7277 | lt_cv_sys_max_cmd_len=-1; | |
7278 | ;; | |
7279 | ||
d58dead8 | 7280 | cygwin* | mingw* | cegcc*) |
1cf3d07d SE |
7281 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
7282 | # about 5 minutes as the teststring grows exponentially. | |
7283 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
7284 | # you end up with a "frozen" computer, even though with patience | |
7285 | # the test eventually succeeds (with a max line length of 256k). | |
7286 | # Instead, let's just punt: use the minimum linelength reported by | |
7287 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
7288 | lt_cv_sys_max_cmd_len=8192; | |
7289 | ;; | |
7290 | ||
43e02a8a RW |
7291 | mint*) |
7292 | # On MiNT this can take a long time and run out of memory. | |
7293 | lt_cv_sys_max_cmd_len=8192; | |
7294 | ;; | |
7295 | ||
1cf3d07d SE |
7296 | amigaos*) |
7297 | # On AmigaOS with pdksh, this test takes hours, literally. | |
7298 | # So we just punt and use a minimum line length of 8192. | |
7299 | lt_cv_sys_max_cmd_len=8192; | |
7300 | ;; | |
7301 | ||
7302 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
7303 | # This has been around since 386BSD, at least. Likely further. | |
7304 | if test -x /sbin/sysctl; then | |
7305 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
7306 | elif test -x /usr/sbin/sysctl; then | |
7307 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
7308 | else | |
7309 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
7310 | fi | |
7311 | # And add a safety zone | |
7312 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
7313 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7314 | ;; | |
7315 | ||
7316 | interix*) | |
7317 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
7318 | lt_cv_sys_max_cmd_len=196608 | |
7319 | ;; | |
7320 | ||
7321 | osf*) | |
7322 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
7323 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
7324 | # nice to cause kernel panics so lets avoid the loop below. | |
7325 | # First set a reasonable default. | |
7326 | lt_cv_sys_max_cmd_len=16384 | |
7327 | # | |
7328 | if test -x /sbin/sysconfig; then | |
7329 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
7330 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
7331 | esac | |
7332 | fi | |
7333 | ;; | |
7334 | sco3.2v5*) | |
7335 | lt_cv_sys_max_cmd_len=102400 | |
7336 | ;; | |
7337 | sysv5* | sco5v6* | sysv4.2uw2*) | |
7338 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
7339 | if test -n "$kargmax"; then | |
7340 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
7341 | else | |
7342 | lt_cv_sys_max_cmd_len=32768 | |
7343 | fi | |
7344 | ;; | |
7345 | *) | |
d58dead8 PG |
7346 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
7347 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
82a6cadf PB |
7348 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
7349 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7350 | else | |
7351 | # Make teststring a little bigger before we do anything with it. | |
7352 | # a 1K string should be a reasonable start. | |
7353 | for i in 1 2 3 4 5 6 7 8 ; do | |
7354 | teststring=$teststring$teststring | |
7355 | done | |
7356 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
7357 | # If test is not a shell built-in, we'll probably end up computing a | |
7358 | # maximum length that is only half of the actual maximum length, but | |
7359 | # we can't tell. | |
43e02a8a RW |
7360 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
7361 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
82a6cadf PB |
7362 | test $i != 17 # 1/2 MB should be enough |
7363 | do | |
7364 | i=`expr $i + 1` | |
7365 | teststring=$teststring$teststring | |
7366 | done | |
7367 | # Only check the string length outside the loop. | |
7368 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
7369 | teststring= | |
7370 | # Add a significant safety factor because C++ compilers can tack on | |
7371 | # massive amounts of additional arguments before passing them to the | |
7372 | # linker. It appears as though 1/2 is a usable value. | |
7373 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
7374 | fi | |
1cf3d07d SE |
7375 | ;; |
7376 | esac | |
7377 | ||
7378 | fi | |
7379 | ||
7380 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5213506e RW |
7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
7382 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
1cf3d07d | 7383 | else |
5213506e RW |
7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
7385 | $as_echo "none" >&6; } | |
1cf3d07d SE |
7386 | fi |
7387 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
7388 | ||
7389 | ||
7390 | ||
7391 | ||
7392 | ||
7393 | ||
1cf3d07d SE |
7394 | : ${CP="cp -f"} |
7395 | : ${MV="mv -f"} | |
7396 | : ${RM="rm -f"} | |
7397 | ||
5213506e RW |
7398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
7399 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
1cf3d07d SE |
7400 | # Try some XSI features |
7401 | xsi_shell=no | |
7402 | ( _lt_dummy="a/b/c" | |
7403 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
d58dead8 PG |
7404 | = c,a/b,, \ |
7405 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
7406 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
1cf3d07d | 7407 | && xsi_shell=yes |
5213506e RW |
7408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
7409 | $as_echo "$xsi_shell" >&6; } | |
1cf3d07d SE |
7410 | |
7411 | ||
5213506e RW |
7412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
7413 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
1cf3d07d SE |
7414 | lt_shell_append=no |
7415 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
7416 | >/dev/null 2>&1 \ | |
7417 | && lt_shell_append=yes | |
5213506e RW |
7418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
7419 | $as_echo "$lt_shell_append" >&6; } | |
1cf3d07d SE |
7420 | |
7421 | ||
7422 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7423 | lt_unset=unset | |
7424 | else | |
7425 | lt_unset=false | |
7426 | fi | |
7427 | ||
7428 | ||
7429 | ||
7430 | ||
7431 | ||
7432 | # test EBCDIC or ASCII | |
7433 | case `echo X|tr X '\101'` in | |
7434 | A) # ASCII based system | |
7435 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
7436 | lt_SP2NL='tr \040 \012' | |
7437 | lt_NL2SP='tr \015\012 \040\040' | |
7438 | ;; | |
7439 | *) # EBCDIC based system | |
7440 | lt_SP2NL='tr \100 \n' | |
7441 | lt_NL2SP='tr \r\n \100\100' | |
7442 | ;; | |
7443 | esac | |
7444 | ||
7445 | ||
7446 | ||
7447 | ||
7448 | ||
7449 | ||
7450 | ||
7451 | ||
7452 | ||
5213506e RW |
7453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
7454 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
22e05272 | 7455 | if ${lt_cv_ld_reload_flag+:} false; then : |
5213506e | 7456 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7457 | else |
7458 | lt_cv_ld_reload_flag='-r' | |
7459 | fi | |
5213506e RW |
7460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
7461 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
1cf3d07d SE |
7462 | reload_flag=$lt_cv_ld_reload_flag |
7463 | case $reload_flag in | |
7464 | "" | " "*) ;; | |
7465 | *) reload_flag=" $reload_flag" ;; | |
7466 | esac | |
7467 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7468 | case $host_os in | |
7469 | darwin*) | |
7470 | if test "$GCC" = yes; then | |
7471 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
7472 | else | |
7473 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7474 | fi | |
7475 | ;; | |
7476 | esac | |
7477 | ||
7478 | ||
7479 | ||
7480 | ||
7481 | ||
7482 | ||
7483 | ||
7484 | ||
7485 | ||
d58dead8 PG |
7486 | if test -n "$ac_tool_prefix"; then |
7487 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
7488 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5213506e RW |
7489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7490 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7491 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 7492 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
7493 | else |
7494 | if test -n "$OBJDUMP"; then | |
7495 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
7496 | else | |
7497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7498 | for as_dir in $PATH | |
7499 | do | |
7500 | IFS=$as_save_IFS | |
7501 | test -z "$as_dir" && as_dir=. | |
5213506e | 7502 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7503 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 7504 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5213506e | 7505 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
7506 | break 2 |
7507 | fi | |
7508 | done | |
5213506e RW |
7509 | done |
7510 | IFS=$as_save_IFS | |
d58dead8 PG |
7511 | |
7512 | fi | |
7513 | fi | |
7514 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
7515 | if test -n "$OBJDUMP"; then | |
5213506e RW |
7516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
7517 | $as_echo "$OBJDUMP" >&6; } | |
d58dead8 | 7518 | else |
5213506e RW |
7519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7520 | $as_echo "no" >&6; } | |
d58dead8 PG |
7521 | fi |
7522 | ||
5213506e | 7523 | |
d58dead8 PG |
7524 | fi |
7525 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
7526 | ac_ct_OBJDUMP=$OBJDUMP | |
7527 | # Extract the first word of "objdump", so it can be a program name with args. | |
7528 | set dummy objdump; ac_word=$2 | |
5213506e RW |
7529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7530 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7531 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
5213506e | 7532 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
7533 | else |
7534 | if test -n "$ac_ct_OBJDUMP"; then | |
7535 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
7536 | else | |
7537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7538 | for as_dir in $PATH | |
7539 | do | |
7540 | IFS=$as_save_IFS | |
7541 | test -z "$as_dir" && as_dir=. | |
5213506e | 7542 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7543 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 7544 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5213506e | 7545 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
7546 | break 2 |
7547 | fi | |
7548 | done | |
5213506e RW |
7549 | done |
7550 | IFS=$as_save_IFS | |
d58dead8 | 7551 | |
d58dead8 PG |
7552 | fi |
7553 | fi | |
7554 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
7555 | if test -n "$ac_ct_OBJDUMP"; then | |
5213506e RW |
7556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
7557 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
d58dead8 | 7558 | else |
5213506e RW |
7559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7560 | $as_echo "no" >&6; } | |
d58dead8 PG |
7561 | fi |
7562 | ||
5213506e RW |
7563 | if test "x$ac_ct_OBJDUMP" = x; then |
7564 | OBJDUMP="false" | |
7565 | else | |
7566 | case $cross_compiling:$ac_tool_warned in | |
7567 | yes:) | |
7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7569 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7570 | ac_tool_warned=yes ;; | |
7571 | esac | |
7572 | OBJDUMP=$ac_ct_OBJDUMP | |
7573 | fi | |
d58dead8 PG |
7574 | else |
7575 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
7576 | fi | |
7577 | ||
7578 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
7579 | ||
7580 | ||
7581 | ||
7582 | ||
7583 | ||
7584 | ||
7585 | ||
7586 | ||
1cf3d07d | 7587 | |
5213506e RW |
7588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
7589 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
22e05272 | 7590 | if ${lt_cv_deplibs_check_method+:} false; then : |
5213506e | 7591 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
7592 | else |
7593 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
7594 | lt_cv_file_magic_test_file= | |
7595 | lt_cv_deplibs_check_method='unknown' | |
7596 | # Need to set the preceding variable on all platforms that support | |
7597 | # interlibrary dependencies. | |
7598 | # 'none' -- dependencies not supported. | |
7599 | # `unknown' -- same as none, but documents that we really don't know. | |
7600 | # 'pass_all' -- all dependencies passed with no checks. | |
7601 | # 'test_compile' -- check by making test program. | |
1cf3d07d SE |
7602 | # 'file_magic [[regex]]' -- check by looking for files in library path |
7603 | # which responds to the $file_magic_cmd with a given extended regex. | |
96b8a615 AJ |
7604 | # If you have `file' or equivalent on your system and you're not sure |
7605 | # whether `pass_all' will *always* work, you probably want this one. | |
7606 | ||
7607 | case $host_os in | |
4f6bebc3 | 7608 | aix[4-9]*) |
96b8a615 AJ |
7609 | lt_cv_deplibs_check_method=pass_all |
7610 | ;; | |
7611 | ||
7612 | beos*) | |
7613 | lt_cv_deplibs_check_method=pass_all | |
7614 | ;; | |
7615 | ||
1cf3d07d | 7616 | bsdi[45]*) |
96b8a615 AJ |
7617 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
7618 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
7619 | lt_cv_file_magic_test_file=/shlib/libc.so | |
7620 | ;; | |
7621 | ||
1cf3d07d SE |
7622 | cygwin*) |
7623 | # func_win32_libid is a shell function defined in ltmain.sh | |
7624 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
7625 | lt_cv_file_magic_cmd='func_win32_libid' | |
7626 | ;; | |
7627 | ||
7628 | mingw* | pw32*) | |
7629 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
7630 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
7631 | # unless we find 'file', for example because we are cross-compiling. | |
43e02a8a RW |
7632 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
7633 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
1cf3d07d SE |
7634 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
7635 | lt_cv_file_magic_cmd='func_win32_libid' | |
7636 | else | |
7637 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
7638 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7639 | fi | |
96b8a615 AJ |
7640 | ;; |
7641 | ||
43e02a8a | 7642 | cegcc*) |
d58dead8 PG |
7643 | # use the weaker test based on 'objdump'. See mingw*. |
7644 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
7645 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7646 | ;; | |
7647 | ||
96b8a615 | 7648 | darwin* | rhapsody*) |
96b8a615 AJ |
7649 | lt_cv_deplibs_check_method=pass_all |
7650 | ;; | |
7651 | ||
1cf3d07d SE |
7652 | freebsd* | dragonfly*) |
7653 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
96b8a615 AJ |
7654 | case $host_cpu in |
7655 | i*86 ) | |
7656 | # Not sure whether the presence of OpenBSD here was a mistake. | |
7657 | # Let's accept both of them until this is cleared up. | |
1cf3d07d | 7658 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
96b8a615 AJ |
7659 | lt_cv_file_magic_cmd=/usr/bin/file |
7660 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
7661 | ;; | |
7662 | esac | |
7663 | else | |
7664 | lt_cv_deplibs_check_method=pass_all | |
7665 | fi | |
7666 | ;; | |
7667 | ||
7668 | gnu*) | |
7669 | lt_cv_deplibs_check_method=pass_all | |
7670 | ;; | |
7671 | ||
43e02a8a RW |
7672 | haiku*) |
7673 | lt_cv_deplibs_check_method=pass_all | |
7674 | ;; | |
7675 | ||
1cf3d07d SE |
7676 | hpux10.20* | hpux11*) |
7677 | lt_cv_file_magic_cmd=/usr/bin/file | |
96b8a615 | 7678 | case $host_cpu in |
96b8a615 AJ |
7679 | ia64*) |
7680 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
96b8a615 AJ |
7681 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
7682 | ;; | |
1cf3d07d | 7683 | hppa*64*) |
43e02a8a | 7684 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
1cf3d07d | 7685 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
96b8a615 AJ |
7686 | ;; |
7687 | *) | |
43e02a8a | 7688 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
1cf3d07d | 7689 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
96b8a615 AJ |
7690 | ;; |
7691 | esac | |
1cf3d07d SE |
7692 | ;; |
7693 | ||
7694 | interix[3-9]*) | |
7695 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
7696 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
7697 | ;; | |
7698 | ||
7699 | irix5* | irix6* | nonstopux*) | |
7700 | case $LD in | |
7701 | *-32|*"-32 ") libmagic=32-bit;; | |
7702 | *-n32|*"-n32 ") libmagic=N32;; | |
7703 | *-64|*"-64 ") libmagic=64-bit;; | |
7704 | *) libmagic=never-match;; | |
7705 | esac | |
96b8a615 AJ |
7706 | lt_cv_deplibs_check_method=pass_all |
7707 | ;; | |
7708 | ||
7709 | # This must be Linux ELF. | |
e9085da5 | 7710 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
2c92e90f | 7711 | lt_cv_deplibs_check_method=pass_all |
96b8a615 AJ |
7712 | ;; |
7713 | ||
1cf3d07d SE |
7714 | netbsd*) |
7715 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7716 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
96b8a615 | 7717 | else |
1cf3d07d | 7718 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
96b8a615 AJ |
7719 | fi |
7720 | ;; | |
7721 | ||
1cf3d07d | 7722 | newos6*) |
96b8a615 AJ |
7723 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
7724 | lt_cv_file_magic_cmd=/usr/bin/file | |
7725 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7726 | ;; | |
7727 | ||
1cf3d07d SE |
7728 | *nto* | *qnx*) |
7729 | lt_cv_deplibs_check_method=pass_all | |
7730 | ;; | |
7731 | ||
7732 | openbsd*) | |
7733 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7734 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
7735 | else | |
7736 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7737 | fi | |
7738 | ;; | |
7739 | ||
96b8a615 | 7740 | osf3* | osf4* | osf5*) |
96b8a615 AJ |
7741 | lt_cv_deplibs_check_method=pass_all |
7742 | ;; | |
7743 | ||
1cf3d07d | 7744 | rdos*) |
96b8a615 AJ |
7745 | lt_cv_deplibs_check_method=pass_all |
7746 | ;; | |
7747 | ||
7748 | solaris*) | |
7749 | lt_cv_deplibs_check_method=pass_all | |
96b8a615 AJ |
7750 | ;; |
7751 | ||
1cf3d07d | 7752 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
96b8a615 AJ |
7753 | lt_cv_deplibs_check_method=pass_all |
7754 | ;; | |
7755 | ||
1cf3d07d | 7756 | sysv4 | sysv4.3*) |
96b8a615 | 7757 | case $host_vendor in |
96b8a615 AJ |
7758 | motorola) |
7759 | 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]' | |
7760 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7761 | ;; | |
1cf3d07d SE |
7762 | ncr) |
7763 | lt_cv_deplibs_check_method=pass_all | |
7764 | ;; | |
7765 | sequent) | |
7766 | lt_cv_file_magic_cmd='/bin/file' | |
7767 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7768 | ;; | |
7769 | sni) | |
7770 | lt_cv_file_magic_cmd='/bin/file' | |
7771 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7772 | lt_cv_file_magic_test_file=/lib/libc.so | |
7773 | ;; | |
7774 | siemens) | |
7775 | lt_cv_deplibs_check_method=pass_all | |
7776 | ;; | |
7777 | pc) | |
7778 | lt_cv_deplibs_check_method=pass_all | |
7779 | ;; | |
96b8a615 AJ |
7780 | esac |
7781 | ;; | |
1cf3d07d SE |
7782 | |
7783 | tpf*) | |
7784 | lt_cv_deplibs_check_method=pass_all | |
7785 | ;; | |
0ecd0f1c OH |
7786 | vxworks*) |
7787 | # Assume VxWorks cross toolchains are built on Linux, possibly | |
7788 | # as canadian for Windows hosts. | |
7789 | lt_cv_deplibs_check_method=pass_all | |
7790 | ;; | |
96b8a615 AJ |
7791 | esac |
7792 | ||
7793 | fi | |
5213506e RW |
7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
7795 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
96b8a615 AJ |
7796 | file_magic_cmd=$lt_cv_file_magic_cmd |
7797 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1cf3d07d | 7798 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
96b8a615 AJ |
7799 | |
7800 | ||
7801 | ||
7802 | ||
96b8a615 | 7803 | |
96b8a615 | 7804 | |
96b8a615 | 7805 | |
96b8a615 | 7806 | |
6de9cd9a | 7807 | |
6de9cd9a | 7808 | |
6de9cd9a | 7809 | |
6de9cd9a | 7810 | |
96b8a615 | 7811 | if test -n "$ac_tool_prefix"; then |
1cf3d07d SE |
7812 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
7813 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
7814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7815 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7816 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 7817 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 7818 | else |
1cf3d07d SE |
7819 | if test -n "$AR"; then |
7820 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
96b8a615 AJ |
7821 | else |
7822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7823 | for as_dir in $PATH | |
7824 | do | |
7825 | IFS=$as_save_IFS | |
7826 | test -z "$as_dir" && as_dir=. | |
5213506e | 7827 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7829 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 7830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7831 | break 2 |
7832 | fi | |
7833 | done | |
5213506e RW |
7834 | done |
7835 | IFS=$as_save_IFS | |
6de9cd9a | 7836 | |
96b8a615 AJ |
7837 | fi |
7838 | fi | |
1cf3d07d SE |
7839 | AR=$ac_cv_prog_AR |
7840 | if test -n "$AR"; then | |
5213506e RW |
7841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7842 | $as_echo "$AR" >&6; } | |
96b8a615 | 7843 | else |
5213506e RW |
7844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7845 | $as_echo "no" >&6; } | |
6de9cd9a DN |
7846 | fi |
7847 | ||
5213506e | 7848 | |
96b8a615 | 7849 | fi |
1cf3d07d SE |
7850 | if test -z "$ac_cv_prog_AR"; then |
7851 | ac_ct_AR=$AR | |
7852 | # Extract the first word of "ar", so it can be a program name with args. | |
7853 | set dummy ar; ac_word=$2 | |
5213506e RW |
7854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7855 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7856 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5213506e | 7857 | $as_echo_n "(cached) " >&6 |
96b8a615 | 7858 | else |
1cf3d07d SE |
7859 | if test -n "$ac_ct_AR"; then |
7860 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
96b8a615 AJ |
7861 | else |
7862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7863 | for as_dir in $PATH | |
7864 | do | |
7865 | IFS=$as_save_IFS | |
7866 | test -z "$as_dir" && as_dir=. | |
5213506e | 7867 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7868 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7869 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 7870 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7871 | break 2 |
7872 | fi | |
7873 | done | |
5213506e RW |
7874 | done |
7875 | IFS=$as_save_IFS | |
6de9cd9a | 7876 | |
96b8a615 AJ |
7877 | fi |
7878 | fi | |
1cf3d07d SE |
7879 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7880 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
7881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
7882 | $as_echo "$ac_ct_AR" >&6; } | |
6de9cd9a | 7883 | else |
5213506e RW |
7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7885 | $as_echo "no" >&6; } | |
6de9cd9a | 7886 | fi |
6de9cd9a | 7887 | |
5213506e RW |
7888 | if test "x$ac_ct_AR" = x; then |
7889 | AR="false" | |
7890 | else | |
7891 | case $cross_compiling:$ac_tool_warned in | |
7892 | yes:) | |
7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7894 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7895 | ac_tool_warned=yes ;; | |
7896 | esac | |
7897 | AR=$ac_ct_AR | |
7898 | fi | |
96b8a615 | 7899 | else |
1cf3d07d | 7900 | AR="$ac_cv_prog_AR" |
6de9cd9a DN |
7901 | fi |
7902 | ||
1cf3d07d SE |
7903 | test -z "$AR" && AR=ar |
7904 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
7905 | ||
7906 | ||
7907 | ||
7908 | ||
7909 | ||
7910 | ||
7911 | ||
7912 | ||
7913 | ||
7914 | ||
7915 | ||
96b8a615 AJ |
7916 | if test -n "$ac_tool_prefix"; then |
7917 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7918 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5213506e RW |
7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7920 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7921 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 7922 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 7923 | else |
96b8a615 AJ |
7924 | if test -n "$STRIP"; then |
7925 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7926 | else | |
7927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7928 | for as_dir in $PATH | |
7929 | do | |
7930 | IFS=$as_save_IFS | |
7931 | test -z "$as_dir" && as_dir=. | |
5213506e | 7932 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7933 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
96b8a615 | 7934 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5213506e | 7935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7936 | break 2 |
7937 | fi | |
7938 | done | |
5213506e RW |
7939 | done |
7940 | IFS=$as_save_IFS | |
6de9cd9a | 7941 | |
96b8a615 AJ |
7942 | fi |
7943 | fi | |
7944 | STRIP=$ac_cv_prog_STRIP | |
7945 | if test -n "$STRIP"; then | |
5213506e RW |
7946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
7947 | $as_echo "$STRIP" >&6; } | |
6de9cd9a | 7948 | else |
5213506e RW |
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7950 | $as_echo "no" >&6; } | |
96b8a615 | 7951 | fi |
6de9cd9a | 7952 | |
5213506e | 7953 | |
6de9cd9a | 7954 | fi |
96b8a615 AJ |
7955 | if test -z "$ac_cv_prog_STRIP"; then |
7956 | ac_ct_STRIP=$STRIP | |
7957 | # Extract the first word of "strip", so it can be a program name with args. | |
7958 | set dummy strip; ac_word=$2 | |
5213506e RW |
7959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7960 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7961 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e | 7962 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
7963 | else |
7964 | if test -n "$ac_ct_STRIP"; then | |
7965 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7966 | else | |
7967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7968 | for as_dir in $PATH | |
7969 | do | |
7970 | IFS=$as_save_IFS | |
7971 | test -z "$as_dir" && as_dir=. | |
5213506e | 7972 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7973 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
96b8a615 | 7974 | ac_cv_prog_ac_ct_STRIP="strip" |
5213506e | 7975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7976 | break 2 |
7977 | fi | |
7978 | done | |
5213506e RW |
7979 | done |
7980 | IFS=$as_save_IFS | |
96b8a615 | 7981 | |
6de9cd9a DN |
7982 | fi |
7983 | fi | |
96b8a615 AJ |
7984 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
7985 | if test -n "$ac_ct_STRIP"; then | |
5213506e RW |
7986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
7987 | $as_echo "$ac_ct_STRIP" >&6; } | |
96b8a615 | 7988 | else |
5213506e RW |
7989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7990 | $as_echo "no" >&6; } | |
6de9cd9a | 7991 | fi |
6de9cd9a | 7992 | |
5213506e RW |
7993 | if test "x$ac_ct_STRIP" = x; then |
7994 | STRIP=":" | |
7995 | else | |
7996 | case $cross_compiling:$ac_tool_warned in | |
7997 | yes:) | |
7998 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7999 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8000 | ac_tool_warned=yes ;; | |
8001 | esac | |
8002 | STRIP=$ac_ct_STRIP | |
8003 | fi | |
96b8a615 AJ |
8004 | else |
8005 | STRIP="$ac_cv_prog_STRIP" | |
6de9cd9a DN |
8006 | fi |
8007 | ||
1cf3d07d | 8008 | test -z "$STRIP" && STRIP=: |
6de9cd9a DN |
8009 | |
8010 | ||
8011 | ||
8012 | ||
8013 | ||
8014 | ||
1cf3d07d SE |
8015 | if test -n "$ac_tool_prefix"; then |
8016 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8017 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
8018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8019 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8020 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 8021 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 8022 | else |
1cf3d07d SE |
8023 | if test -n "$RANLIB"; then |
8024 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8025 | else | |
8026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8027 | for as_dir in $PATH | |
8028 | do | |
8029 | IFS=$as_save_IFS | |
8030 | test -z "$as_dir" && as_dir=. | |
5213506e | 8031 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8032 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 8033 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 8034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
8035 | break 2 |
8036 | fi | |
8037 | done | |
5213506e RW |
8038 | done |
8039 | IFS=$as_save_IFS | |
1cf3d07d SE |
8040 | |
8041 | fi | |
8042 | fi | |
8043 | RANLIB=$ac_cv_prog_RANLIB | |
8044 | if test -n "$RANLIB"; then | |
5213506e RW |
8045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8046 | $as_echo "$RANLIB" >&6; } | |
1cf3d07d | 8047 | else |
5213506e RW |
8048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8049 | $as_echo "no" >&6; } | |
1cf3d07d SE |
8050 | fi |
8051 | ||
5213506e | 8052 | |
1cf3d07d SE |
8053 | fi |
8054 | if test -z "$ac_cv_prog_RANLIB"; then | |
8055 | ac_ct_RANLIB=$RANLIB | |
8056 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8057 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
8058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8059 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8060 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5213506e | 8061 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8062 | else |
8063 | if test -n "$ac_ct_RANLIB"; then | |
8064 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8065 | else | |
8066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8067 | for as_dir in $PATH | |
8068 | do | |
8069 | IFS=$as_save_IFS | |
8070 | test -z "$as_dir" && as_dir=. | |
5213506e | 8071 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8072 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 8073 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 8074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
8075 | break 2 |
8076 | fi | |
8077 | done | |
5213506e RW |
8078 | done |
8079 | IFS=$as_save_IFS | |
1cf3d07d | 8080 | |
1cf3d07d SE |
8081 | fi |
8082 | fi | |
8083 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8084 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
8085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8086 | $as_echo "$ac_ct_RANLIB" >&6; } | |
1cf3d07d | 8087 | else |
5213506e RW |
8088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8089 | $as_echo "no" >&6; } | |
1cf3d07d SE |
8090 | fi |
8091 | ||
5213506e RW |
8092 | if test "x$ac_ct_RANLIB" = x; then |
8093 | RANLIB=":" | |
8094 | else | |
8095 | case $cross_compiling:$ac_tool_warned in | |
8096 | yes:) | |
8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8098 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8099 | ac_tool_warned=yes ;; | |
8100 | esac | |
8101 | RANLIB=$ac_ct_RANLIB | |
8102 | fi | |
1cf3d07d SE |
8103 | else |
8104 | RANLIB="$ac_cv_prog_RANLIB" | |
8105 | fi | |
8106 | ||
8107 | test -z "$RANLIB" && RANLIB=: | |
8108 | ||
8109 | ||
8110 | ||
8111 | ||
8112 | ||
8113 | ||
8114 | # Determine commands to create old-style static archives. | |
d58dead8 | 8115 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1cf3d07d SE |
8116 | old_postinstall_cmds='chmod 644 $oldlib' |
8117 | old_postuninstall_cmds= | |
8118 | ||
8119 | if test -n "$RANLIB"; then | |
8120 | case $host_os in | |
8121 | openbsd*) | |
8122 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
8123 | ;; | |
8124 | *) | |
8125 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
8126 | ;; | |
8127 | esac | |
8128 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
8129 | fi | |
8130 | ||
43e02a8a RW |
8131 | case $host_os in |
8132 | darwin*) | |
8133 | lock_old_archive_extraction=yes ;; | |
8134 | *) | |
8135 | lock_old_archive_extraction=no ;; | |
8136 | esac | |
8137 | ||
8138 | ||
8139 | ||
8140 | ||
8141 | ||
8142 | ||
1cf3d07d SE |
8143 | |
8144 | ||
8145 | ||
8146 | ||
8147 | ||
8148 | ||
8149 | ||
8150 | ||
8151 | ||
8152 | ||
8153 | ||
8154 | ||
8155 | ||
8156 | ||
8157 | ||
8158 | ||
8159 | ||
8160 | ||
8161 | ||
8162 | ||
8163 | ||
8164 | ||
8165 | ||
8166 | ||
8167 | ||
8168 | ||
8169 | ||
8170 | ||
8171 | ||
8172 | ||
8173 | ||
8174 | ||
8175 | ||
8176 | # If no C compiler was specified, use CC. | |
8177 | LTCC=${LTCC-"$CC"} | |
8178 | ||
8179 | # If no C compiler flags were specified, use CFLAGS. | |
8180 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8181 | ||
8182 | # Allow CC to be a program name with arguments. | |
8183 | compiler=$CC | |
8184 | ||
8185 | ||
8186 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5213506e RW |
8187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8188 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
22e05272 | 8189 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
5213506e | 8190 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8191 | else |
8192 | ||
8193 | # These are sane defaults that work on at least a few old systems. | |
8194 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
8195 | ||
8196 | # Character class describing NM global symbol codes. | |
8197 | symcode='[BCDEGRST]' | |
8198 | ||
8199 | # Regexp to match symbols that can be accessed directly from C. | |
8200 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
8201 | ||
8202 | # Define system-specific variables. | |
8203 | case $host_os in | |
8204 | aix*) | |
8205 | symcode='[BCDT]' | |
8206 | ;; | |
d58dead8 | 8207 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8208 | symcode='[ABCDGISTW]' |
8209 | ;; | |
8210 | hpux*) | |
8211 | if test "$host_cpu" = ia64; then | |
8212 | symcode='[ABCDEGRST]' | |
8213 | fi | |
8214 | ;; | |
8215 | irix* | nonstopux*) | |
8216 | symcode='[BCDEGRST]' | |
8217 | ;; | |
8218 | osf*) | |
8219 | symcode='[BCDEGQRST]' | |
8220 | ;; | |
8221 | solaris*) | |
8222 | symcode='[BDRT]' | |
8223 | ;; | |
8224 | sco3.2v5*) | |
8225 | symcode='[DT]' | |
8226 | ;; | |
8227 | sysv4.2uw2*) | |
8228 | symcode='[DT]' | |
8229 | ;; | |
8230 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
8231 | symcode='[ABDT]' | |
8232 | ;; | |
8233 | sysv4) | |
8234 | symcode='[DFNSTU]' | |
8235 | ;; | |
8236 | esac | |
8237 | ||
8238 | # If we're using GNU nm, then use its standard symbol codes. | |
8239 | case `$NM -V 2>&1` in | |
8240 | *GNU* | *'with BFD'*) | |
8241 | symcode='[ABCDGIRSTW]' ;; | |
8242 | esac | |
8243 | ||
8244 | # Transform an extracted symbol line into a proper C declaration. | |
8245 | # Some systems (esp. on ia64) link data and code symbols differently, | |
8246 | # so use this general approach. | |
8247 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
8248 | ||
8249 | # Transform an extracted symbol line into symbol name and symbol address | |
8250 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
d58dead8 | 8251 | 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'" |
1cf3d07d SE |
8252 | |
8253 | # Handle CRLF in mingw tool chain | |
8254 | opt_cr= | |
8255 | case $build_os in | |
8256 | mingw*) | |
8257 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
8258 | ;; | |
8259 | esac | |
8260 | ||
8261 | # Try without a prefix underscore, then with it. | |
8262 | for ac_symprfx in "" "_"; do | |
8263 | ||
8264 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
8265 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
8266 | ||
8267 | # Write the raw and C identifiers. | |
8268 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
8269 | # Fake it for dumpbin and say T for any non-static function | |
8270 | # and D for any global variable. | |
8271 | # Also find C++ and __fastcall symbols from MSVC++, | |
8272 | # which start with @ or ?. | |
8273 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
8274 | " {last_section=section; section=\$ 3};"\ | |
8275 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
8276 | " \$ 0!~/External *\|/{next};"\ | |
8277 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
8278 | " {if(hide[section]) next};"\ | |
8279 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
8280 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
8281 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
8282 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
8283 | " ' prfx=^$ac_symprfx" | |
8284 | else | |
8285 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
8286 | fi | |
8287 | ||
8288 | # Check to see that the pipe works correctly. | |
8289 | pipe_works=no | |
8290 | ||
8291 | rm -f conftest* | |
8292 | cat > conftest.$ac_ext <<_LT_EOF | |
8293 | #ifdef __cplusplus | |
8294 | extern "C" { | |
8295 | #endif | |
8296 | char nm_test_var; | |
8297 | void nm_test_func(void); | |
8298 | void nm_test_func(void){} | |
8299 | #ifdef __cplusplus | |
8300 | } | |
8301 | #endif | |
8302 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8303 | _LT_EOF | |
8304 | ||
5213506e | 8305 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8306 | (eval $ac_compile) 2>&5 |
8307 | ac_status=$? | |
5213506e RW |
8308 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8309 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8310 | # Now try to grab the symbols. |
8311 | nlist=conftest.nm | |
43e02a8a RW |
8312 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
8313 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
1cf3d07d | 8314 | ac_status=$? |
5213506e RW |
8315 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8316 | test $ac_status = 0; } && test -s "$nlist"; then | |
1cf3d07d SE |
8317 | # Try sorting and uniquifying the output. |
8318 | if sort "$nlist" | uniq > "$nlist"T; then | |
8319 | mv -f "$nlist"T "$nlist" | |
8320 | else | |
8321 | rm -f "$nlist"T | |
8322 | fi | |
8323 | ||
8324 | # Make sure that we snagged all the symbols we need. | |
8325 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
8326 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
8327 | cat <<_LT_EOF > conftest.$ac_ext | |
8328 | #ifdef __cplusplus | |
8329 | extern "C" { | |
8330 | #endif | |
8331 | ||
8332 | _LT_EOF | |
8333 | # Now generate the symbol file. | |
8334 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
8335 | ||
8336 | cat <<_LT_EOF >> conftest.$ac_ext | |
8337 | ||
8338 | /* The mapping between symbol names and symbols. */ | |
8339 | const struct { | |
8340 | const char *name; | |
8341 | void *address; | |
8342 | } | |
8343 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
8344 | { | |
8345 | { "@PROGRAM@", (void *) 0 }, | |
8346 | _LT_EOF | |
8347 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
8348 | cat <<\_LT_EOF >> conftest.$ac_ext | |
8349 | {0, (void *) 0} | |
8350 | }; | |
8351 | ||
8352 | /* This works around a problem in FreeBSD linker */ | |
8353 | #ifdef FREEBSD_WORKAROUND | |
8354 | static const void *lt_preloaded_setup() { | |
8355 | return lt__PROGRAM__LTX_preloaded_symbols; | |
8356 | } | |
8357 | #endif | |
8358 | ||
8359 | #ifdef __cplusplus | |
8360 | } | |
8361 | #endif | |
8362 | _LT_EOF | |
8363 | # Now try linking the two files. | |
8364 | mv conftest.$ac_objext conftstm.$ac_objext | |
8365 | lt_save_LIBS="$LIBS" | |
8366 | lt_save_CFLAGS="$CFLAGS" | |
8367 | LIBS="conftstm.$ac_objext" | |
8368 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5213506e | 8369 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
8370 | (eval $ac_link) 2>&5 |
8371 | ac_status=$? | |
5213506e RW |
8372 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8373 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
1cf3d07d SE |
8374 | pipe_works=yes |
8375 | fi | |
8376 | LIBS="$lt_save_LIBS" | |
8377 | CFLAGS="$lt_save_CFLAGS" | |
8378 | else | |
8379 | echo "cannot find nm_test_func in $nlist" >&5 | |
8380 | fi | |
8381 | else | |
8382 | echo "cannot find nm_test_var in $nlist" >&5 | |
8383 | fi | |
8384 | else | |
8385 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
8386 | fi | |
8387 | else | |
8388 | echo "$progname: failed program was:" >&5 | |
8389 | cat conftest.$ac_ext >&5 | |
8390 | fi | |
d58dead8 | 8391 | rm -rf conftest* conftst* |
1cf3d07d SE |
8392 | |
8393 | # Do not use the global_symbol_pipe unless it works. | |
8394 | if test "$pipe_works" = yes; then | |
8395 | break | |
8396 | else | |
8397 | lt_cv_sys_global_symbol_pipe= | |
8398 | fi | |
8399 | done | |
8400 | ||
8401 | fi | |
8402 | ||
8403 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
8404 | lt_cv_sys_global_symbol_to_cdecl= | |
8405 | fi | |
8406 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5213506e RW |
8407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8408 | $as_echo "failed" >&6; } | |
1cf3d07d | 8409 | else |
5213506e RW |
8410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8411 | $as_echo "ok" >&6; } | |
1cf3d07d SE |
8412 | fi |
8413 | ||
8414 | ||
8415 | ||
8416 | ||
8417 | ||
8418 | ||
8419 | ||
8420 | ||
8421 | ||
8422 | ||
8423 | ||
8424 | ||
8425 | ||
8426 | ||
8427 | ||
d58dead8 PG |
8428 | |
8429 | ||
8430 | ||
8431 | ||
8432 | ||
1cf3d07d SE |
8433 | |
8434 | ||
5213506e RW |
8435 | # Check whether --enable-libtool-lock was given. |
8436 | if test "${enable_libtool_lock+set}" = set; then : | |
8437 | enableval=$enable_libtool_lock; | |
8438 | fi | |
1cf3d07d | 8439 | |
1cf3d07d | 8440 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6de9cd9a | 8441 | |
96b8a615 AJ |
8442 | # Some flags need to be propagated to the compiler or linker for good |
8443 | # libtool support. | |
8444 | case $host in | |
1cf3d07d | 8445 | ia64-*-hpux*) |
96b8a615 | 8446 | # Find out which ABI we are using. |
1cf3d07d | 8447 | echo 'int i;' > conftest.$ac_ext |
5213506e | 8448 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8449 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8450 | ac_status=$? |
5213506e RW |
8451 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8452 | test $ac_status = 0; }; then | |
96b8a615 | 8453 | case `/usr/bin/file conftest.$ac_objext` in |
1cf3d07d SE |
8454 | *ELF-32*) |
8455 | HPUX_IA64_MODE="32" | |
8456 | ;; | |
8457 | *ELF-64*) | |
8458 | HPUX_IA64_MODE="64" | |
8459 | ;; | |
96b8a615 | 8460 | esac |
96b8a615 AJ |
8461 | fi |
8462 | rm -rf conftest* | |
8463 | ;; | |
1cf3d07d | 8464 | *-*-irix6*) |
96b8a615 | 8465 | # Find out which ABI we are using. |
43e02a8a | 8466 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
5213506e | 8467 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8468 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8469 | ac_status=$? |
5213506e RW |
8470 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8471 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8472 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8473 | case `/usr/bin/file conftest.$ac_objext` in | |
8474 | *32-bit*) | |
8475 | LD="${LD-ld} -melf32bsmip" | |
8476 | ;; | |
8477 | *N32*) | |
8478 | LD="${LD-ld} -melf32bmipn32" | |
8479 | ;; | |
8480 | *64-bit*) | |
8481 | LD="${LD-ld} -melf64bmip" | |
8482 | ;; | |
8483 | esac | |
8484 | else | |
8485 | case `/usr/bin/file conftest.$ac_objext` in | |
8486 | *32-bit*) | |
8487 | LD="${LD-ld} -32" | |
8488 | ;; | |
8489 | *N32*) | |
8490 | LD="${LD-ld} -n32" | |
8491 | ;; | |
8492 | *64-bit*) | |
8493 | LD="${LD-ld} -64" | |
8494 | ;; | |
8495 | esac | |
8496 | fi | |
96b8a615 AJ |
8497 | fi |
8498 | rm -rf conftest* | |
8499 | ;; | |
6de9cd9a | 8500 | |
3cbe17f7 | 8501 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
1cf3d07d | 8502 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
96b8a615 AJ |
8503 | # Find out which ABI we are using. |
8504 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 8505 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8506 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8507 | ac_status=$? |
5213506e RW |
8508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8509 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8510 | case `/usr/bin/file conftest.o` in |
8511 | *32-bit*) | |
8512 | case $host in | |
8513 | x86_64-*kfreebsd*-gnu) | |
8514 | LD="${LD-ld} -m elf_i386_fbsd" | |
8515 | ;; | |
8516 | x86_64-*linux*) | |
e6d5f8c9 L |
8517 | case `/usr/bin/file conftest.o` in |
8518 | *x86-64*) | |
8519 | LD="${LD-ld} -m elf32_x86_64" | |
8520 | ;; | |
8521 | *) | |
8522 | LD="${LD-ld} -m elf_i386" | |
8523 | ;; | |
8524 | esac | |
1cf3d07d | 8525 | ;; |
3cbe17f7 AM |
8526 | powerpc64le-*linux*) |
8527 | LD="${LD-ld} -m elf32lppclinux" | |
8528 | ;; | |
8529 | powerpc64-*linux*) | |
1cf3d07d SE |
8530 | LD="${LD-ld} -m elf32ppclinux" |
8531 | ;; | |
8532 | s390x-*linux*) | |
8533 | LD="${LD-ld} -m elf_s390" | |
8534 | ;; | |
8535 | sparc64-*linux*) | |
8536 | LD="${LD-ld} -m elf32_sparc" | |
8537 | ;; | |
8538 | esac | |
8539 | ;; | |
8540 | *64-bit*) | |
8541 | case $host in | |
8542 | x86_64-*kfreebsd*-gnu) | |
8543 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
8544 | ;; | |
8545 | x86_64-*linux*) | |
8546 | LD="${LD-ld} -m elf_x86_64" | |
8547 | ;; | |
3cbe17f7 AM |
8548 | powerpcle-*linux*) |
8549 | LD="${LD-ld} -m elf64lppc" | |
8550 | ;; | |
8551 | powerpc-*linux*) | |
1cf3d07d SE |
8552 | LD="${LD-ld} -m elf64ppc" |
8553 | ;; | |
8554 | s390*-*linux*|s390*-*tpf*) | |
8555 | LD="${LD-ld} -m elf64_s390" | |
8556 | ;; | |
8557 | sparc*-*linux*) | |
8558 | LD="${LD-ld} -m elf64_sparc" | |
8559 | ;; | |
8560 | esac | |
8561 | ;; | |
96b8a615 | 8562 | esac |
6de9cd9a | 8563 | fi |
96b8a615 AJ |
8564 | rm -rf conftest* |
8565 | ;; | |
6de9cd9a | 8566 | |
96b8a615 AJ |
8567 | *-*-sco3.2v5*) |
8568 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8569 | SAVE_CFLAGS="$CFLAGS" | |
8570 | CFLAGS="$CFLAGS -belf" | |
5213506e RW |
8571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8572 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
22e05272 | 8573 | if ${lt_cv_cc_needs_belf+:} false; then : |
5213506e | 8574 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 8575 | else |
1cf3d07d | 8576 | ac_ext=c |
96b8a615 AJ |
8577 | ac_cpp='$CPP $CPPFLAGS' |
8578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a | 8581 | |
f02d008e | 8582 | if test x$gcc_no_link = xyes; then |
22e05272 | 8583 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 8584 | fi |
5213506e | 8585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a | 8586 | /* end confdefs.h. */ |
6de9cd9a DN |
8587 | |
8588 | int | |
8589 | main () | |
8590 | { | |
96b8a615 | 8591 | |
6de9cd9a DN |
8592 | ; |
8593 | return 0; | |
8594 | } | |
8595 | _ACEOF | |
5213506e | 8596 | if ac_fn_c_try_link "$LINENO"; then : |
96b8a615 | 8597 | lt_cv_cc_needs_belf=yes |
6de9cd9a | 8598 | else |
5213506e | 8599 | lt_cv_cc_needs_belf=no |
6de9cd9a | 8600 | fi |
5213506e RW |
8601 | rm -f core conftest.err conftest.$ac_objext \ |
8602 | conftest$ac_exeext conftest.$ac_ext | |
96b8a615 AJ |
8603 | ac_ext=c |
8604 | ac_cpp='$CPP $CPPFLAGS' | |
8605 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8606 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8607 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8608 | ||
6de9cd9a | 8609 | fi |
5213506e RW |
8610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8611 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
96b8a615 AJ |
8612 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
8613 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8614 | CFLAGS="$SAVE_CFLAGS" | |
8615 | fi | |
8616 | ;; | |
1cf3d07d SE |
8617 | sparc*-*solaris*) |
8618 | # Find out which ABI we are using. | |
8619 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 8620 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8621 | (eval $ac_compile) 2>&5 |
8622 | ac_status=$? | |
5213506e RW |
8623 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8624 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8625 | case `/usr/bin/file conftest.o` in |
8626 | *64-bit*) | |
8627 | case $lt_cv_prog_gnu_ld in | |
8628 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
d58dead8 PG |
8629 | *) |
8630 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8631 | LD="${LD-ld} -64" | |
8632 | fi | |
8633 | ;; | |
1cf3d07d SE |
8634 | esac |
8635 | ;; | |
8636 | esac | |
8637 | fi | |
8638 | rm -rf conftest* | |
8639 | ;; | |
96b8a615 AJ |
8640 | esac |
8641 | ||
1cf3d07d | 8642 | need_locks="$enable_libtool_lock" |
96b8a615 | 8643 | |
d58dead8 PG |
8644 | |
8645 | case $host_os in | |
8646 | rhapsody* | darwin*) | |
8647 | if test -n "$ac_tool_prefix"; then | |
8648 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8649 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5213506e RW |
8650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8651 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8652 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
5213506e | 8653 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
8654 | else |
8655 | if test -n "$DSYMUTIL"; then | |
8656 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8657 | else | |
8658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8659 | for as_dir in $PATH | |
8660 | do | |
8661 | IFS=$as_save_IFS | |
8662 | test -z "$as_dir" && as_dir=. | |
5213506e | 8663 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8664 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 8665 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
5213506e | 8666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8667 | break 2 |
8668 | fi | |
8669 | done | |
5213506e RW |
8670 | done |
8671 | IFS=$as_save_IFS | |
d58dead8 PG |
8672 | |
8673 | fi | |
8674 | fi | |
8675 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8676 | if test -n "$DSYMUTIL"; then | |
5213506e RW |
8677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8678 | $as_echo "$DSYMUTIL" >&6; } | |
d58dead8 | 8679 | else |
5213506e RW |
8680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8681 | $as_echo "no" >&6; } | |
d58dead8 PG |
8682 | fi |
8683 | ||
5213506e | 8684 | |
d58dead8 PG |
8685 | fi |
8686 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8687 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8688 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8689 | set dummy dsymutil; ac_word=$2 | |
5213506e RW |
8690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8691 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8692 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
5213506e | 8693 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8694 | else |
21be0a5a JB |
8695 | if test -n "$ac_ct_DSYMUTIL"; then |
8696 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
d58dead8 PG |
8697 | else |
8698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8699 | for as_dir in $PATH | |
8700 | do | |
8701 | IFS=$as_save_IFS | |
8702 | test -z "$as_dir" && as_dir=. | |
5213506e | 8703 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8704 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8705 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
5213506e | 8706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8707 | break 2 |
8708 | fi | |
8709 | done | |
5213506e RW |
8710 | done |
8711 | IFS=$as_save_IFS | |
d58dead8 | 8712 | |
d58dead8 PG |
8713 | fi |
8714 | fi | |
21be0a5a JB |
8715 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
8716 | if test -n "$ac_ct_DSYMUTIL"; then | |
8717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8718 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
d58dead8 | 8719 | else |
5213506e RW |
8720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8721 | $as_echo "no" >&6; } | |
d58dead8 PG |
8722 | fi |
8723 | ||
21be0a5a JB |
8724 | if test "x$ac_ct_DSYMUTIL" = x; then |
8725 | DSYMUTIL=":" | |
5213506e RW |
8726 | else |
8727 | case $cross_compiling:$ac_tool_warned in | |
8728 | yes:) | |
8729 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8730 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8731 | ac_tool_warned=yes ;; | |
8732 | esac | |
21be0a5a | 8733 | DSYMUTIL=$ac_ct_DSYMUTIL |
5213506e | 8734 | fi |
d58dead8 | 8735 | else |
21be0a5a | 8736 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d58dead8 PG |
8737 | fi |
8738 | ||
8739 | if test -n "$ac_tool_prefix"; then | |
21be0a5a JB |
8740 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
8741 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5213506e RW |
8742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8743 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8744 | if ${ac_cv_prog_NMEDIT+:} false; then : |
5213506e | 8745 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8746 | else |
21be0a5a JB |
8747 | if test -n "$NMEDIT"; then |
8748 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
d58dead8 PG |
8749 | else |
8750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8751 | for as_dir in $PATH | |
8752 | do | |
8753 | IFS=$as_save_IFS | |
8754 | test -z "$as_dir" && as_dir=. | |
5213506e | 8755 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8756 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8757 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
5213506e | 8758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8759 | break 2 |
8760 | fi | |
8761 | done | |
5213506e RW |
8762 | done |
8763 | IFS=$as_save_IFS | |
d58dead8 PG |
8764 | |
8765 | fi | |
8766 | fi | |
21be0a5a JB |
8767 | NMEDIT=$ac_cv_prog_NMEDIT |
8768 | if test -n "$NMEDIT"; then | |
8769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8770 | $as_echo "$NMEDIT" >&6; } | |
d58dead8 | 8771 | else |
5213506e RW |
8772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8773 | $as_echo "no" >&6; } | |
d58dead8 PG |
8774 | fi |
8775 | ||
5213506e | 8776 | |
d58dead8 | 8777 | fi |
21be0a5a JB |
8778 | if test -z "$ac_cv_prog_NMEDIT"; then |
8779 | ac_ct_NMEDIT=$NMEDIT | |
8780 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8781 | set dummy nmedit; ac_word=$2 | |
5213506e RW |
8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8783 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8784 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
5213506e | 8785 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8786 | else |
21be0a5a JB |
8787 | if test -n "$ac_ct_NMEDIT"; then |
8788 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
d58dead8 PG |
8789 | else |
8790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8791 | for as_dir in $PATH | |
8792 | do | |
8793 | IFS=$as_save_IFS | |
8794 | test -z "$as_dir" && as_dir=. | |
5213506e | 8795 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8796 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8797 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
5213506e | 8798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8799 | break 2 |
8800 | fi | |
8801 | done | |
5213506e RW |
8802 | done |
8803 | IFS=$as_save_IFS | |
d58dead8 | 8804 | |
d58dead8 PG |
8805 | fi |
8806 | fi | |
21be0a5a JB |
8807 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
8808 | if test -n "$ac_ct_NMEDIT"; then | |
8809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8810 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
d58dead8 | 8811 | else |
5213506e RW |
8812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8813 | $as_echo "no" >&6; } | |
d58dead8 PG |
8814 | fi |
8815 | ||
21be0a5a JB |
8816 | if test "x$ac_ct_NMEDIT" = x; then |
8817 | NMEDIT=":" | |
5213506e RW |
8818 | else |
8819 | case $cross_compiling:$ac_tool_warned in | |
8820 | yes:) | |
8821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8822 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8823 | ac_tool_warned=yes ;; | |
8824 | esac | |
21be0a5a | 8825 | NMEDIT=$ac_ct_NMEDIT |
5213506e | 8826 | fi |
d58dead8 | 8827 | else |
21be0a5a | 8828 | NMEDIT="$ac_cv_prog_NMEDIT" |
d58dead8 PG |
8829 | fi |
8830 | ||
8831 | if test -n "$ac_tool_prefix"; then | |
21be0a5a JB |
8832 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
8833 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5213506e RW |
8834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8835 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8836 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 8837 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8838 | else |
21be0a5a JB |
8839 | if test -n "$LIPO"; then |
8840 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
d58dead8 PG |
8841 | else |
8842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8843 | for as_dir in $PATH | |
8844 | do | |
8845 | IFS=$as_save_IFS | |
8846 | test -z "$as_dir" && as_dir=. | |
5213506e | 8847 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8848 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8849 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
5213506e | 8850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8851 | break 2 |
8852 | fi | |
8853 | done | |
5213506e RW |
8854 | done |
8855 | IFS=$as_save_IFS | |
d58dead8 PG |
8856 | |
8857 | fi | |
8858 | fi | |
21be0a5a JB |
8859 | LIPO=$ac_cv_prog_LIPO |
8860 | if test -n "$LIPO"; then | |
8861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8862 | $as_echo "$LIPO" >&6; } | |
d58dead8 | 8863 | else |
5213506e RW |
8864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8865 | $as_echo "no" >&6; } | |
d58dead8 PG |
8866 | fi |
8867 | ||
5213506e | 8868 | |
d58dead8 | 8869 | fi |
21be0a5a JB |
8870 | if test -z "$ac_cv_prog_LIPO"; then |
8871 | ac_ct_LIPO=$LIPO | |
8872 | # Extract the first word of "lipo", so it can be a program name with args. | |
8873 | set dummy lipo; ac_word=$2 | |
5213506e RW |
8874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8875 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8876 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
5213506e | 8877 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8878 | else |
21be0a5a JB |
8879 | if test -n "$ac_ct_LIPO"; then |
8880 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
d58dead8 PG |
8881 | else |
8882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8883 | for as_dir in $PATH | |
8884 | do | |
8885 | IFS=$as_save_IFS | |
8886 | test -z "$as_dir" && as_dir=. | |
5213506e | 8887 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8888 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8889 | ac_cv_prog_ac_ct_LIPO="lipo" |
5213506e | 8890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8891 | break 2 |
8892 | fi | |
8893 | done | |
5213506e RW |
8894 | done |
8895 | IFS=$as_save_IFS | |
d58dead8 | 8896 | |
d58dead8 PG |
8897 | fi |
8898 | fi | |
21be0a5a JB |
8899 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
8900 | if test -n "$ac_ct_LIPO"; then | |
8901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8902 | $as_echo "$ac_ct_LIPO" >&6; } | |
d58dead8 | 8903 | else |
5213506e RW |
8904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8905 | $as_echo "no" >&6; } | |
d58dead8 PG |
8906 | fi |
8907 | ||
21be0a5a JB |
8908 | if test "x$ac_ct_LIPO" = x; then |
8909 | LIPO=":" | |
5213506e RW |
8910 | else |
8911 | case $cross_compiling:$ac_tool_warned in | |
8912 | yes:) | |
8913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8914 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8915 | ac_tool_warned=yes ;; | |
8916 | esac | |
21be0a5a | 8917 | LIPO=$ac_ct_LIPO |
5213506e | 8918 | fi |
d58dead8 | 8919 | else |
21be0a5a | 8920 | LIPO="$ac_cv_prog_LIPO" |
d58dead8 PG |
8921 | fi |
8922 | ||
21be0a5a JB |
8923 | if test -n "$ac_tool_prefix"; then |
8924 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8925 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8927 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8928 | if ${ac_cv_prog_OTOOL+:} false; then : |
5213506e | 8929 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8930 | else |
21be0a5a JB |
8931 | if test -n "$OTOOL"; then |
8932 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
43e02a8a | 8933 | else |
21be0a5a JB |
8934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8935 | for as_dir in $PATH | |
8936 | do | |
8937 | IFS=$as_save_IFS | |
8938 | test -z "$as_dir" && as_dir=. | |
8939 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8940 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8941 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
8942 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8943 | break 2 | |
8944 | fi | |
8945 | done | |
8946 | done | |
8947 | IFS=$as_save_IFS | |
43e02a8a RW |
8948 | |
8949 | fi | |
21be0a5a JB |
8950 | fi |
8951 | OTOOL=$ac_cv_prog_OTOOL | |
8952 | if test -n "$OTOOL"; then | |
8953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8954 | $as_echo "$OTOOL" >&6; } | |
8955 | else | |
8956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8957 | $as_echo "no" >&6; } | |
8958 | fi | |
8959 | ||
d58dead8 | 8960 | |
1cf3d07d | 8961 | fi |
21be0a5a JB |
8962 | if test -z "$ac_cv_prog_OTOOL"; then |
8963 | ac_ct_OTOOL=$OTOOL | |
8964 | # Extract the first word of "otool", so it can be a program name with args. | |
8965 | set dummy otool; ac_word=$2 | |
8966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8967 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8968 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
5213506e | 8969 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 8970 | else |
21be0a5a JB |
8971 | if test -n "$ac_ct_OTOOL"; then |
8972 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8973 | else | |
8974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8975 | for as_dir in $PATH | |
1cf3d07d | 8976 | do |
21be0a5a JB |
8977 | IFS=$as_save_IFS |
8978 | test -z "$as_dir" && as_dir=. | |
8979 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8980 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8981 | ac_cv_prog_ac_ct_OTOOL="otool" |
8982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8983 | break 2 | |
8984 | fi | |
8985 | done | |
8986 | done | |
8987 | IFS=$as_save_IFS | |
6de9cd9a | 8988 | |
21be0a5a JB |
8989 | fi |
8990 | fi | |
8991 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8992 | if test -n "$ac_ct_OTOOL"; then | |
8993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8994 | $as_echo "$ac_ct_OTOOL" >&6; } | |
5213506e | 8995 | else |
21be0a5a JB |
8996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8997 | $as_echo "no" >&6; } | |
1cf3d07d | 8998 | fi |
96b8a615 | 8999 | |
21be0a5a JB |
9000 | if test "x$ac_ct_OTOOL" = x; then |
9001 | OTOOL=":" | |
9002 | else | |
9003 | case $cross_compiling:$ac_tool_warned in | |
9004 | yes:) | |
9005 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9006 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9007 | ac_tool_warned=yes ;; | |
9008 | esac | |
9009 | OTOOL=$ac_ct_OTOOL | |
9010 | fi | |
1cf3d07d | 9011 | else |
21be0a5a | 9012 | OTOOL="$ac_cv_prog_OTOOL" |
1cf3d07d | 9013 | fi |
6de9cd9a | 9014 | |
21be0a5a JB |
9015 | if test -n "$ac_tool_prefix"; then |
9016 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
9017 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
9018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9019 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9020 | if ${ac_cv_prog_OTOOL64+:} false; then : |
21be0a5a JB |
9021 | $as_echo_n "(cached) " >&6 |
9022 | else | |
9023 | if test -n "$OTOOL64"; then | |
9024 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
9025 | else | |
9026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9027 | for as_dir in $PATH | |
9028 | do | |
9029 | IFS=$as_save_IFS | |
9030 | test -z "$as_dir" && as_dir=. | |
9031 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 9032 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
9033 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
9034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9035 | break 2 | |
9036 | fi | |
1cf3d07d | 9037 | done |
21be0a5a JB |
9038 | done |
9039 | IFS=$as_save_IFS | |
9040 | ||
9041 | fi | |
9042 | fi | |
9043 | OTOOL64=$ac_cv_prog_OTOOL64 | |
9044 | if test -n "$OTOOL64"; then | |
9045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
9046 | $as_echo "$OTOOL64" >&6; } | |
9047 | else | |
9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9049 | $as_echo "no" >&6; } | |
1cf3d07d | 9050 | fi |
6de9cd9a | 9051 | |
96b8a615 | 9052 | |
1cf3d07d | 9053 | fi |
21be0a5a JB |
9054 | if test -z "$ac_cv_prog_OTOOL64"; then |
9055 | ac_ct_OTOOL64=$OTOOL64 | |
9056 | # Extract the first word of "otool64", so it can be a program name with args. | |
9057 | set dummy otool64; ac_word=$2 | |
9058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9059 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9060 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
21be0a5a | 9061 | $as_echo_n "(cached) " >&6 |
96b8a615 | 9062 | else |
21be0a5a JB |
9063 | if test -n "$ac_ct_OTOOL64"; then |
9064 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
9065 | else | |
9066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9067 | for as_dir in $PATH | |
96b8a615 | 9068 | do |
21be0a5a JB |
9069 | IFS=$as_save_IFS |
9070 | test -z "$as_dir" && as_dir=. | |
9071 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 9072 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
9073 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
9074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9075 | break 2 | |
9076 | fi | |
9077 | done | |
9078 | done | |
9079 | IFS=$as_save_IFS | |
96b8a615 | 9080 | |
21be0a5a JB |
9081 | fi |
9082 | fi | |
9083 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
9084 | if test -n "$ac_ct_OTOOL64"; then | |
9085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
9086 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
5213506e | 9087 | else |
21be0a5a JB |
9088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9089 | $as_echo "no" >&6; } | |
96b8a615 AJ |
9090 | fi |
9091 | ||
21be0a5a JB |
9092 | if test "x$ac_ct_OTOOL64" = x; then |
9093 | OTOOL64=":" | |
9094 | else | |
9095 | case $cross_compiling:$ac_tool_warned in | |
9096 | yes:) | |
9097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9098 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9099 | ac_tool_warned=yes ;; | |
9100 | esac | |
9101 | OTOOL64=$ac_ct_OTOOL64 | |
9102 | fi | |
6de9cd9a | 9103 | else |
21be0a5a | 9104 | OTOOL64="$ac_cv_prog_OTOOL64" |
6de9cd9a | 9105 | fi |
6de9cd9a | 9106 | |
5213506e | 9107 | |
1cf3d07d | 9108 | |
1cf3d07d SE |
9109 | |
9110 | ||
6de9cd9a | 9111 | |
1cf3d07d | 9112 | |
6de9cd9a | 9113 | |
1cf3d07d | 9114 | |
5213506e | 9115 | |
6de9cd9a | 9116 | |
e87045f3 | 9117 | |
15e92535 | 9118 | |
5213506e | 9119 | |
15e92535 | 9120 | |
15e92535 | 9121 | |
21be0a5a JB |
9122 | |
9123 | ||
9124 | ||
9125 | ||
9126 | ||
9127 | ||
9128 | ||
9129 | ||
9130 | ||
9131 | ||
9132 | ||
9133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
9134 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
22e05272 | 9135 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
21be0a5a | 9136 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 9137 | else |
21be0a5a JB |
9138 | lt_cv_apple_cc_single_mod=no |
9139 | if test -z "${LT_MULTI_MODULE}"; then | |
9140 | # By default we will add the -single_module flag. You can override | |
9141 | # by either setting the environment variable LT_MULTI_MODULE | |
9142 | # non-empty at configure time, or by adding -multi_module to the | |
9143 | # link flags. | |
9144 | rm -rf libconftest.dylib* | |
9145 | echo "int foo(void){return 1;}" > conftest.c | |
9146 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9147 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
9148 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9149 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
9150 | _lt_result=$? | |
9151 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
9152 | lt_cv_apple_cc_single_mod=yes | |
9153 | else | |
9154 | cat conftest.err >&5 | |
9155 | fi | |
9156 | rm -rf libconftest.dylib* | |
9157 | rm -f conftest.* | |
9158 | fi | |
9159 | fi | |
9160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
9161 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
9163 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
22e05272 | 9164 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
21be0a5a JB |
9165 | $as_echo_n "(cached) " >&6 |
9166 | else | |
9167 | lt_cv_ld_exported_symbols_list=no | |
9168 | save_LDFLAGS=$LDFLAGS | |
9169 | echo "_main" > conftest.sym | |
9170 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
9171 | if test x$gcc_no_link = xyes; then | |
22e05272 | 9172 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
9173 | fi |
9174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d | 9175 | /* end confdefs.h. */ |
15e92535 | 9176 | |
1cf3d07d SE |
9177 | int |
9178 | main () | |
9179 | { | |
21be0a5a JB |
9180 | |
9181 | ; | |
5213506e | 9182 | return 0; |
1cf3d07d | 9183 | } |
15e92535 | 9184 | _ACEOF |
21be0a5a JB |
9185 | if ac_fn_c_try_link "$LINENO"; then : |
9186 | lt_cv_ld_exported_symbols_list=yes | |
5213506e | 9187 | else |
21be0a5a | 9188 | lt_cv_ld_exported_symbols_list=no |
1cf3d07d | 9189 | fi |
21be0a5a JB |
9190 | rm -f core conftest.err conftest.$ac_objext \ |
9191 | conftest$ac_exeext conftest.$ac_ext | |
9192 | LDFLAGS="$save_LDFLAGS" | |
15e92535 FXC |
9193 | |
9194 | fi | |
21be0a5a JB |
9195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
9196 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
9198 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
22e05272 | 9199 | if ${lt_cv_ld_force_load+:} false; then : |
21be0a5a JB |
9200 | $as_echo_n "(cached) " >&6 |
9201 | else | |
9202 | lt_cv_ld_force_load=no | |
9203 | cat > conftest.c << _LT_EOF | |
9204 | int forced_loaded() { return 2;} | |
9205 | _LT_EOF | |
9206 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
9207 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
9208 | echo "$AR cru libconftest.a conftest.o" >&5 | |
9209 | $AR cru libconftest.a conftest.o 2>&5 | |
9210 | cat > conftest.c << _LT_EOF | |
9211 | int main() { return 0;} | |
9212 | _LT_EOF | |
9213 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
9214 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
9215 | _lt_result=$? | |
9216 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
9217 | lt_cv_ld_force_load=yes | |
9218 | else | |
9219 | cat conftest.err >&5 | |
9220 | fi | |
9221 | rm -f conftest.err libconftest.a conftest conftest.c | |
9222 | rm -rf conftest.dSYM | |
1cf3d07d SE |
9223 | |
9224 | fi | |
21be0a5a JB |
9225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
9226 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
1352bc88 IS |
9227 | # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to |
9228 | # build without first building modern cctools / linker. | |
9229 | case $host_cpu-$host_os in | |
9230 | *-rhapsody* | *-darwin1.[012]) | |
21be0a5a | 9231 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
1352bc88 | 9232 | *-darwin1.*) |
21be0a5a | 9233 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
1352bc88 IS |
9234 | *-darwin*) |
9235 | # darwin 5.x (macOS 10.1) onwards we only need to adjust when the | |
9236 | # deployment target is forced to an earlier version. | |
9237 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in | |
9238 | UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) | |
9239 | ;; | |
ebf6d33b | 9240 | 10.[012][,.]*) |
1352bc88 IS |
9241 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
9242 | ;; | |
9243 | *) | |
9244 | ;; | |
9245 | esac | |
21be0a5a JB |
9246 | ;; |
9247 | esac | |
9248 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
9249 | _lt_dar_single_mod='$single_module' | |
9250 | fi | |
9251 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
9252 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
9253 | else | |
9254 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9255 | fi | |
9256 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
9257 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
9258 | else | |
9259 | _lt_dsymutil= | |
9260 | fi | |
9261 | ;; | |
9262 | esac | |
1cf3d07d | 9263 | |
1cf3d07d | 9264 | for ac_header in dlfcn.h |
5213506e RW |
9265 | do : |
9266 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
9267 | " | |
22e05272 | 9268 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
1cf3d07d | 9269 | cat >>confdefs.h <<_ACEOF |
5213506e | 9270 | #define HAVE_DLFCN_H 1 |
9cdc381b | 9271 | _ACEOF |
9cdc381b | 9272 | |
1cf3d07d SE |
9273 | fi |
9274 | ||
9275 | done | |
9276 | ||
9277 | ||
9278 | ||
43e02a8a RW |
9279 | |
9280 | ||
d58dead8 PG |
9281 | # Set options |
9282 | ||
9283 | ||
9284 | ||
9285 | ||
9286 | enable_win32_dll=no | |
9287 | ||
9288 | ||
5213506e RW |
9289 | # Check whether --enable-shared was given. |
9290 | if test "${enable_shared+set}" = set; then : | |
9291 | enableval=$enable_shared; p=${PACKAGE-default} | |
d58dead8 PG |
9292 | case $enableval in |
9293 | yes) enable_shared=yes ;; | |
9294 | no) enable_shared=no ;; | |
9295 | *) | |
9296 | enable_shared=no | |
9297 | # Look at the argument we got. We use all the common list separators. | |
9298 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9299 | for pkg in $enableval; do | |
9300 | IFS="$lt_save_ifs" | |
9301 | if test "X$pkg" = "X$p"; then | |
9302 | enable_shared=yes | |
9303 | fi | |
9304 | done | |
9305 | IFS="$lt_save_ifs" | |
9306 | ;; | |
9307 | esac | |
9308 | else | |
9309 | enable_shared=yes | |
5213506e RW |
9310 | fi |
9311 | ||
d58dead8 PG |
9312 | |
9313 | ||
9314 | ||
9315 | ||
9316 | ||
9317 | ||
9318 | ||
9319 | ||
5213506e RW |
9320 | # Check whether --enable-static was given. |
9321 | if test "${enable_static+set}" = set; then : | |
9322 | enableval=$enable_static; p=${PACKAGE-default} | |
d58dead8 PG |
9323 | case $enableval in |
9324 | yes) enable_static=yes ;; | |
9325 | no) enable_static=no ;; | |
9326 | *) | |
9327 | enable_static=no | |
9328 | # Look at the argument we got. We use all the common list separators. | |
9329 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9330 | for pkg in $enableval; do | |
9331 | IFS="$lt_save_ifs" | |
9332 | if test "X$pkg" = "X$p"; then | |
9333 | enable_static=yes | |
9334 | fi | |
9335 | done | |
9336 | IFS="$lt_save_ifs" | |
9337 | ;; | |
9338 | esac | |
9339 | else | |
9340 | enable_static=yes | |
5213506e RW |
9341 | fi |
9342 | ||
d58dead8 PG |
9343 | |
9344 | ||
9345 | ||
9346 | ||
9347 | ||
9348 | ||
9349 | ||
9350 | ||
9351 | ||
5213506e RW |
9352 | # Check whether --with-pic was given. |
9353 | if test "${with_pic+set}" = set; then : | |
9354 | withval=$with_pic; pic_mode="$withval" | |
d58dead8 PG |
9355 | else |
9356 | pic_mode=default | |
5213506e RW |
9357 | fi |
9358 | ||
d58dead8 PG |
9359 | |
9360 | test -z "$pic_mode" && pic_mode=default | |
9361 | ||
9362 | ||
9363 | ||
9364 | ||
9365 | ||
9366 | ||
9367 | ||
5213506e RW |
9368 | # Check whether --enable-fast-install was given. |
9369 | if test "${enable_fast_install+set}" = set; then : | |
9370 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
d58dead8 PG |
9371 | case $enableval in |
9372 | yes) enable_fast_install=yes ;; | |
9373 | no) enable_fast_install=no ;; | |
9374 | *) | |
9375 | enable_fast_install=no | |
9376 | # Look at the argument we got. We use all the common list separators. | |
9377 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9378 | for pkg in $enableval; do | |
9379 | IFS="$lt_save_ifs" | |
9380 | if test "X$pkg" = "X$p"; then | |
9381 | enable_fast_install=yes | |
9382 | fi | |
9383 | done | |
9384 | IFS="$lt_save_ifs" | |
9385 | ;; | |
9386 | esac | |
9387 | else | |
9388 | enable_fast_install=yes | |
5213506e RW |
9389 | fi |
9390 | ||
d58dead8 PG |
9391 | |
9392 | ||
9393 | ||
9394 | ||
9395 | ||
9396 | ||
9397 | ||
9398 | ||
9399 | ||
9400 | ||
1cf3d07d SE |
9401 | # This can be used to rebuild libtool when needed |
9402 | LIBTOOL_DEPS="$ltmain" | |
9403 | ||
9404 | # Always use our own libtool. | |
9405 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9406 | ||
9407 | ||
9408 | ||
9409 | ||
9410 | ||
9411 | ||
9412 | ||
9413 | ||
9414 | ||
9415 | ||
9416 | ||
9417 | ||
9418 | ||
9419 | ||
9420 | ||
9421 | ||
9422 | ||
9423 | ||
9424 | ||
9425 | ||
9426 | ||
9427 | ||
9428 | ||
43e02a8a | 9429 | |
1cf3d07d SE |
9430 | |
9431 | ||
9432 | test -z "$LN_S" && LN_S="ln -s" | |
9433 | ||
9434 | ||
9435 | ||
9436 | ||
9437 | ||
9cdc381b | 9438 | |
1cf3d07d SE |
9439 | |
9440 | ||
9441 | ||
9442 | ||
9443 | ||
9444 | ||
9445 | ||
9446 | ||
9447 | if test -n "${ZSH_VERSION+set}" ; then | |
9448 | setopt NO_GLOB_SUBST | |
9cdc381b | 9449 | fi |
9cdc381b | 9450 | |
5213506e RW |
9451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
9452 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 9453 | if ${lt_cv_objdir+:} false; then : |
5213506e | 9454 | $as_echo_n "(cached) " >&6 |
9cdc381b | 9455 | else |
1cf3d07d SE |
9456 | rm -f .libs 2>/dev/null |
9457 | mkdir .libs 2>/dev/null | |
9458 | if test -d .libs; then | |
9459 | lt_cv_objdir=.libs | |
9460 | else | |
9461 | # MS-DOS does not allow filenames that begin with a dot. | |
9462 | lt_cv_objdir=_libs | |
9cdc381b | 9463 | fi |
1cf3d07d | 9464 | rmdir .libs 2>/dev/null |
9cdc381b | 9465 | fi |
5213506e RW |
9466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
9467 | $as_echo "$lt_cv_objdir" >&6; } | |
1cf3d07d SE |
9468 | objdir=$lt_cv_objdir |
9469 | ||
9470 | ||
9471 | ||
9472 | ||
9cdc381b BD |
9473 | |
9474 | cat >>confdefs.h <<_ACEOF | |
1cf3d07d | 9475 | #define LT_OBJDIR "$lt_cv_objdir/" |
9cdc381b BD |
9476 | _ACEOF |
9477 | ||
1cf3d07d SE |
9478 | |
9479 | ||
9480 | ||
1cf3d07d SE |
9481 | case $host_os in |
9482 | aix3*) | |
9483 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9484 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9485 | # vanish in a puff of smoke. | |
9486 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9487 | COLLECT_NAMES= | |
9488 | export COLLECT_NAMES | |
9489 | fi | |
9490 | ;; | |
9491 | esac | |
9492 | ||
1cf3d07d SE |
9493 | # Global variables: |
9494 | ofile=libtool | |
9495 | can_build_shared=yes | |
9496 | ||
9497 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
9498 | # which needs '.lib'). | |
9499 | libext=a | |
9500 | ||
9501 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9502 | ||
9503 | old_CC="$CC" | |
9504 | old_CFLAGS="$CFLAGS" | |
9505 | ||
9506 | # Set sane defaults for various variables | |
9507 | test -z "$CC" && CC=cc | |
9508 | test -z "$LTCC" && LTCC=$CC | |
9509 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9510 | test -z "$LD" && LD=ld | |
9511 | test -z "$ac_objext" && ac_objext=o | |
9512 | ||
9513 | for cc_temp in $compiler""; do | |
9514 | case $cc_temp in | |
9515 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9516 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9517 | \-*) ;; | |
9518 | *) break;; | |
9519 | esac | |
9520 | done | |
43e02a8a | 9521 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
9522 | |
9523 | ||
9524 | # Only perform the check for file, if the check method requires it | |
9525 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9526 | case $deplibs_check_method in | |
9527 | file_magic*) | |
9528 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5213506e RW |
9529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
9530 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
22e05272 | 9531 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 9532 | $as_echo_n "(cached) " >&6 |
9cdc381b | 9533 | else |
1cf3d07d SE |
9534 | case $MAGIC_CMD in |
9535 | [\\/*] | ?:[\\/]*) | |
9536 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9537 | ;; | |
9538 | *) | |
9539 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9540 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9541 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9542 | for ac_dir in $ac_dummy; do | |
9543 | IFS="$lt_save_ifs" | |
9544 | test -z "$ac_dir" && ac_dir=. | |
9545 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9546 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9547 | if test -n "$file_magic_test_file"; then | |
9548 | case $deplibs_check_method in | |
9549 | "file_magic "*) | |
9550 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9551 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9552 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9553 | $EGREP "$file_magic_regex" > /dev/null; then | |
9554 | : | |
9555 | else | |
9556 | cat <<_LT_EOF 1>&2 | |
9cdc381b | 9557 | |
1cf3d07d SE |
9558 | *** Warning: the command libtool uses to detect shared libraries, |
9559 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9560 | *** The result is that libtool may fail to recognize shared libraries | |
9561 | *** as such. This will affect the creation of libtool libraries that | |
9562 | *** depend on shared libraries, but programs linked with such libtool | |
9563 | *** libraries will work regardless of this problem. Nevertheless, you | |
9564 | *** may want to report the problem to your system manager and/or to | |
9565 | *** bug-libtool@gnu.org | |
9566 | ||
9567 | _LT_EOF | |
9568 | fi ;; | |
9569 | esac | |
9570 | fi | |
9571 | break | |
9572 | fi | |
9573 | done | |
9574 | IFS="$lt_save_ifs" | |
9575 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9576 | ;; | |
9577 | esac | |
9578 | fi | |
9579 | ||
9580 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9581 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
9582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9583 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 9584 | else |
5213506e RW |
9585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9586 | $as_echo "no" >&6; } | |
1cf3d07d SE |
9587 | fi |
9588 | ||
9589 | ||
9590 | ||
9591 | ||
9592 | ||
9593 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9594 | if test -n "$ac_tool_prefix"; then | |
5213506e RW |
9595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
9596 | $as_echo_n "checking for file... " >&6; } | |
22e05272 | 9597 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 9598 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
9599 | else |
9600 | case $MAGIC_CMD in | |
9601 | [\\/*] | ?:[\\/]*) | |
9602 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9603 | ;; | |
9604 | *) | |
9605 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9606 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9607 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9608 | for ac_dir in $ac_dummy; do | |
9609 | IFS="$lt_save_ifs" | |
9610 | test -z "$ac_dir" && ac_dir=. | |
9611 | if test -f $ac_dir/file; then | |
9612 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9613 | if test -n "$file_magic_test_file"; then | |
9614 | case $deplibs_check_method in | |
9615 | "file_magic "*) | |
9616 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9617 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9618 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9619 | $EGREP "$file_magic_regex" > /dev/null; then | |
9620 | : | |
9621 | else | |
9622 | cat <<_LT_EOF 1>&2 | |
9623 | ||
9624 | *** Warning: the command libtool uses to detect shared libraries, | |
9625 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9626 | *** The result is that libtool may fail to recognize shared libraries | |
9627 | *** as such. This will affect the creation of libtool libraries that | |
9628 | *** depend on shared libraries, but programs linked with such libtool | |
9629 | *** libraries will work regardless of this problem. Nevertheless, you | |
9630 | *** may want to report the problem to your system manager and/or to | |
9631 | *** bug-libtool@gnu.org | |
9632 | ||
9633 | _LT_EOF | |
9634 | fi ;; | |
9635 | esac | |
9636 | fi | |
9637 | break | |
9638 | fi | |
9639 | done | |
9640 | IFS="$lt_save_ifs" | |
9641 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9642 | ;; | |
9643 | esac | |
9644 | fi | |
9645 | ||
9646 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9647 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
9648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9649 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 9650 | else |
5213506e RW |
9651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9652 | $as_echo "no" >&6; } | |
1cf3d07d SE |
9653 | fi |
9654 | ||
9655 | ||
9656 | else | |
9657 | MAGIC_CMD=: | |
9658 | fi | |
9659 | fi | |
9660 | ||
9661 | fi | |
9662 | ;; | |
9663 | esac | |
9664 | ||
9665 | # Use C for the default configuration in the libtool script | |
9666 | ||
9667 | lt_save_CC="$CC" | |
9668 | ac_ext=c | |
9669 | ac_cpp='$CPP $CPPFLAGS' | |
9670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9673 | ||
9674 | ||
9675 | # Source file extension for C test sources. | |
9676 | ac_ext=c | |
9677 | ||
9678 | # Object file extension for compiled C test sources. | |
9679 | objext=o | |
9680 | objext=$objext | |
9681 | ||
9682 | # Code to be used in simple compile tests | |
9683 | lt_simple_compile_test_code="int some_variable = 0;" | |
9684 | ||
9685 | # Code to be used in simple link tests | |
9686 | lt_simple_link_test_code='int main(){return(0);}' | |
9687 | ||
9688 | ||
9689 | ||
9690 | ||
9691 | ||
9692 | ||
9693 | ||
9694 | # If no C compiler was specified, use CC. | |
9695 | LTCC=${LTCC-"$CC"} | |
9696 | ||
9697 | # If no C compiler flags were specified, use CFLAGS. | |
9698 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9699 | ||
9700 | # Allow CC to be a program name with arguments. | |
9701 | compiler=$CC | |
9702 | ||
9703 | # Save the default compiler, since it gets overwritten when the other | |
9704 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9705 | compiler_DEFAULT=$CC | |
9706 | ||
9707 | # save warnings/boilerplate of simple test code | |
9708 | ac_outfile=conftest.$ac_objext | |
9709 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9710 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9711 | _lt_compiler_boilerplate=`cat conftest.err` | |
9712 | $RM conftest* | |
9713 | ||
9714 | ac_outfile=conftest.$ac_objext | |
9715 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9716 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9717 | _lt_linker_boilerplate=`cat conftest.err` | |
d58dead8 | 9718 | $RM -r conftest* |
1cf3d07d SE |
9719 | |
9720 | ||
9721 | ## CAVEAT EMPTOR: | |
9722 | ## There is no encapsulation within the following macros, do not change | |
9723 | ## the running order or otherwise move them around unless you know exactly | |
9724 | ## what you are doing... | |
9725 | if test -n "$compiler"; then | |
9726 | ||
9727 | lt_prog_compiler_no_builtin_flag= | |
9728 | ||
9729 | if test "$GCC" = yes; then | |
43e02a8a RW |
9730 | case $cc_basename in |
9731 | nvcc*) | |
9732 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9733 | *) | |
9734 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9735 | esac | |
1cf3d07d | 9736 | |
5213506e RW |
9737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9738 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
22e05272 | 9739 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
5213506e | 9740 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
9741 | else |
9742 | lt_cv_prog_compiler_rtti_exceptions=no | |
9743 | ac_outfile=conftest.$ac_objext | |
9744 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9745 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9746 | # Insert the option either (1) after the last *FLAGS variable, or | |
9747 | # (2) before a word containing "conftest.", or (3) at the end. | |
9748 | # Note that $ac_compile itself does not contain backslashes and begins | |
9749 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9750 | # The option is referenced via a variable to avoid confusing sed. | |
9751 | lt_compile=`echo "$ac_compile" | $SED \ | |
9752 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9753 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9754 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 9755 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
9756 | (eval "$lt_compile" 2>conftest.err) |
9757 | ac_status=$? | |
9758 | cat conftest.err >&5 | |
43e02a8a | 9759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
9760 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9761 | # The compiler can only warn and ignore the option if not recognized | |
9762 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 9763 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
9764 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9765 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9766 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9767 | fi | |
9768 | fi | |
9769 | $RM conftest* | |
9770 | ||
9771 | fi | |
5213506e RW |
9772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
9773 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
1cf3d07d SE |
9774 | |
9775 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9776 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9777 | else | |
9778 | : | |
9779 | fi | |
9780 | ||
9781 | fi | |
9782 | ||
9783 | ||
9784 | ||
9785 | ||
9786 | ||
9787 | ||
9788 | lt_prog_compiler_wl= | |
9789 | lt_prog_compiler_pic= | |
9790 | lt_prog_compiler_static= | |
9791 | ||
5213506e RW |
9792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9793 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
9794 | |
9795 | if test "$GCC" = yes; then | |
9796 | lt_prog_compiler_wl='-Wl,' | |
9797 | lt_prog_compiler_static='-static' | |
9798 | ||
9799 | case $host_os in | |
9800 | aix*) | |
9801 | # All AIX code is PIC. | |
9802 | if test "$host_cpu" = ia64; then | |
9803 | # AIX 5 now supports IA64 processor | |
9804 | lt_prog_compiler_static='-Bstatic' | |
9805 | fi | |
bad8a4a7 | 9806 | lt_prog_compiler_pic='-fPIC' |
1cf3d07d SE |
9807 | ;; |
9808 | ||
9809 | amigaos*) | |
d58dead8 PG |
9810 | case $host_cpu in |
9811 | powerpc) | |
9812 | # see comment about AmigaOS4 .so support | |
9813 | lt_prog_compiler_pic='-fPIC' | |
9814 | ;; | |
9815 | m68k) | |
9816 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9817 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9818 | # like `-m68040'. | |
9819 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9820 | ;; | |
9821 | esac | |
1cf3d07d SE |
9822 | ;; |
9823 | ||
9824 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9825 | # PIC is the default for these OSes. | |
9826 | ;; | |
9827 | ||
d58dead8 | 9828 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
9829 | # This hack is so that the source file can tell whether it is being |
9830 | # built for inclusion in a dll (and should export symbols for example). | |
9831 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9832 | # (--disable-auto-import) libraries | |
9833 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9834 | ;; | |
9835 | ||
9836 | darwin* | rhapsody*) | |
9837 | # PIC is the default on this platform | |
9838 | # Common symbols not allowed in MH_DYLIB files | |
9839 | lt_prog_compiler_pic='-fno-common' | |
9840 | ;; | |
9841 | ||
43e02a8a RW |
9842 | haiku*) |
9843 | # PIC is the default for Haiku. | |
9844 | # The "-static" flag exists, but is broken. | |
9845 | lt_prog_compiler_static= | |
9846 | ;; | |
9847 | ||
1cf3d07d | 9848 | hpux*) |
d58dead8 PG |
9849 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
9850 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9851 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 9852 | case $host_cpu in |
d58dead8 | 9853 | hppa*64*) |
1cf3d07d SE |
9854 | # +Z the default |
9855 | ;; | |
9856 | *) | |
9857 | lt_prog_compiler_pic='-fPIC' | |
9858 | ;; | |
9859 | esac | |
9860 | ;; | |
9861 | ||
9862 | interix[3-9]*) | |
9863 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9864 | # Instead, we relocate shared libraries at runtime. | |
9865 | ;; | |
9866 | ||
9867 | msdosdjgpp*) | |
9868 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9869 | # on systems that don't support them. | |
9870 | lt_prog_compiler_can_build_shared=no | |
9871 | enable_shared=no | |
9872 | ;; | |
9873 | ||
9874 | *nto* | *qnx*) | |
9875 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9876 | # it will coredump. | |
9877 | lt_prog_compiler_pic='-fPIC -shared' | |
9878 | ;; | |
9879 | ||
9880 | sysv4*MP*) | |
9881 | if test -d /usr/nec; then | |
9882 | lt_prog_compiler_pic=-Kconform_pic | |
9883 | fi | |
9884 | ;; | |
9885 | ||
9886 | *) | |
9887 | lt_prog_compiler_pic='-fPIC' | |
9888 | ;; | |
9889 | esac | |
43e02a8a RW |
9890 | |
9891 | case $cc_basename in | |
9892 | nvcc*) # Cuda Compiler Driver 2.2 | |
9893 | lt_prog_compiler_wl='-Xlinker ' | |
9894 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9895 | ;; | |
9896 | esac | |
1cf3d07d SE |
9897 | else |
9898 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9899 | case $host_os in | |
9900 | aix*) | |
9901 | lt_prog_compiler_wl='-Wl,' | |
9902 | if test "$host_cpu" = ia64; then | |
9903 | # AIX 5 now supports IA64 processor | |
9904 | lt_prog_compiler_static='-Bstatic' | |
9905 | else | |
9906 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9907 | fi | |
9908 | ;; | |
1cf3d07d | 9909 | |
d58dead8 | 9910 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
9911 | # This hack is so that the source file can tell whether it is being |
9912 | # built for inclusion in a dll (and should export symbols for example). | |
9913 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9914 | ;; | |
9915 | ||
9916 | hpux9* | hpux10* | hpux11*) | |
9917 | lt_prog_compiler_wl='-Wl,' | |
9918 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9919 | # not for PA HP-UX. | |
9920 | case $host_cpu in | |
9921 | hppa*64*|ia64*) | |
9922 | # +Z the default | |
9923 | ;; | |
9924 | *) | |
9925 | lt_prog_compiler_pic='+Z' | |
9926 | ;; | |
9927 | esac | |
9928 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9929 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9930 | ;; | |
9931 | ||
9932 | irix5* | irix6* | nonstopux*) | |
9933 | lt_prog_compiler_wl='-Wl,' | |
9934 | # PIC (with -KPIC) is the default. | |
9935 | lt_prog_compiler_static='-non_shared' | |
9936 | ;; | |
9937 | ||
7a9d3fe8 | 9938 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 9939 | case $cc_basename in |
d58dead8 PG |
9940 | # old Intel for x86_64 which still supported -KPIC. |
9941 | ecc*) | |
1cf3d07d SE |
9942 | lt_prog_compiler_wl='-Wl,' |
9943 | lt_prog_compiler_pic='-KPIC' | |
9944 | lt_prog_compiler_static='-static' | |
9945 | ;; | |
d58dead8 PG |
9946 | # icc used to be incompatible with GCC. |
9947 | # ICC 10 doesn't accept -KPIC any more. | |
9948 | icc* | ifort*) | |
9949 | lt_prog_compiler_wl='-Wl,' | |
9950 | lt_prog_compiler_pic='-fPIC' | |
9951 | lt_prog_compiler_static='-static' | |
9952 | ;; | |
9953 | # Lahey Fortran 8.1. | |
9954 | lf95*) | |
9955 | lt_prog_compiler_wl='-Wl,' | |
9956 | lt_prog_compiler_pic='--shared' | |
9957 | lt_prog_compiler_static='--static' | |
9958 | ;; | |
43e02a8a | 9959 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
9960 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9961 | # which looks to be a dead project) | |
9962 | lt_prog_compiler_wl='-Wl,' | |
9963 | lt_prog_compiler_pic='-fpic' | |
9964 | lt_prog_compiler_static='-Bstatic' | |
9965 | ;; | |
9966 | ccc*) | |
9967 | lt_prog_compiler_wl='-Wl,' | |
9968 | # All Alpha code is PIC. | |
9969 | lt_prog_compiler_static='-non_shared' | |
9970 | ;; | |
43e02a8a RW |
9971 | xl* | bgxl* | bgf* | mpixl*) |
9972 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
d58dead8 PG |
9973 | lt_prog_compiler_wl='-Wl,' |
9974 | lt_prog_compiler_pic='-qpic' | |
9975 | lt_prog_compiler_static='-qstaticlink' | |
9976 | ;; | |
1cf3d07d SE |
9977 | *) |
9978 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
9979 | *Sun\ F* | *Sun*Fortran*) |
9980 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
9981 | lt_prog_compiler_pic='-KPIC' |
9982 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 9983 | lt_prog_compiler_wl='' |
1cf3d07d | 9984 | ;; |
43e02a8a RW |
9985 | *Sun\ C*) |
9986 | # Sun C 5.9 | |
1cf3d07d SE |
9987 | lt_prog_compiler_pic='-KPIC' |
9988 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 9989 | lt_prog_compiler_wl='-Wl,' |
1cf3d07d SE |
9990 | ;; |
9991 | esac | |
9992 | ;; | |
9993 | esac | |
9994 | ;; | |
9995 | ||
9996 | newsos6) | |
9997 | lt_prog_compiler_pic='-KPIC' | |
9998 | lt_prog_compiler_static='-Bstatic' | |
9999 | ;; | |
10000 | ||
10001 | *nto* | *qnx*) | |
10002 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
10003 | # it will coredump. | |
10004 | lt_prog_compiler_pic='-fPIC -shared' | |
10005 | ;; | |
10006 | ||
10007 | osf3* | osf4* | osf5*) | |
10008 | lt_prog_compiler_wl='-Wl,' | |
10009 | # All OSF/1 code is PIC. | |
10010 | lt_prog_compiler_static='-non_shared' | |
10011 | ;; | |
10012 | ||
10013 | rdos*) | |
10014 | lt_prog_compiler_static='-non_shared' | |
10015 | ;; | |
10016 | ||
10017 | solaris*) | |
10018 | lt_prog_compiler_pic='-KPIC' | |
10019 | lt_prog_compiler_static='-Bstatic' | |
10020 | case $cc_basename in | |
10021 | f77* | f90* | f95*) | |
10022 | lt_prog_compiler_wl='-Qoption ld ';; | |
10023 | *) | |
10024 | lt_prog_compiler_wl='-Wl,';; | |
10025 | esac | |
10026 | ;; | |
10027 | ||
10028 | sunos4*) | |
10029 | lt_prog_compiler_wl='-Qoption ld ' | |
10030 | lt_prog_compiler_pic='-PIC' | |
10031 | lt_prog_compiler_static='-Bstatic' | |
10032 | ;; | |
10033 | ||
10034 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
10035 | lt_prog_compiler_wl='-Wl,' | |
10036 | lt_prog_compiler_pic='-KPIC' | |
10037 | lt_prog_compiler_static='-Bstatic' | |
10038 | ;; | |
10039 | ||
10040 | sysv4*MP*) | |
10041 | if test -d /usr/nec ;then | |
10042 | lt_prog_compiler_pic='-Kconform_pic' | |
10043 | lt_prog_compiler_static='-Bstatic' | |
10044 | fi | |
10045 | ;; | |
10046 | ||
10047 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
10048 | lt_prog_compiler_wl='-Wl,' | |
10049 | lt_prog_compiler_pic='-KPIC' | |
10050 | lt_prog_compiler_static='-Bstatic' | |
10051 | ;; | |
10052 | ||
10053 | unicos*) | |
10054 | lt_prog_compiler_wl='-Wl,' | |
10055 | lt_prog_compiler_can_build_shared=no | |
10056 | ;; | |
10057 | ||
10058 | uts4*) | |
10059 | lt_prog_compiler_pic='-pic' | |
10060 | lt_prog_compiler_static='-Bstatic' | |
10061 | ;; | |
10062 | ||
10063 | *) | |
10064 | lt_prog_compiler_can_build_shared=no | |
10065 | ;; | |
10066 | esac | |
10067 | fi | |
10068 | ||
10069 | case $host_os in | |
10070 | # For platforms which do not support PIC, -DPIC is meaningless: | |
10071 | *djgpp*) | |
10072 | lt_prog_compiler_pic= | |
10073 | ;; | |
10074 | *) | |
10075 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
10076 | ;; | |
10077 | esac | |
5213506e RW |
10078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
10079 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
1cf3d07d SE |
10080 | |
10081 | ||
10082 | ||
10083 | ||
10084 | ||
10085 | ||
10086 | # | |
10087 | # Check to make sure the PIC flag actually works. | |
10088 | # | |
10089 | if test -n "$lt_prog_compiler_pic"; then | |
5213506e RW |
10090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
10091 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
22e05272 | 10092 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
5213506e | 10093 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 10094 | else |
d58dead8 | 10095 | lt_cv_prog_compiler_pic_works=no |
1cf3d07d SE |
10096 | ac_outfile=conftest.$ac_objext |
10097 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10098 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
10099 | # Insert the option either (1) after the last *FLAGS variable, or | |
10100 | # (2) before a word containing "conftest.", or (3) at the end. | |
10101 | # Note that $ac_compile itself does not contain backslashes and begins | |
10102 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10103 | # The option is referenced via a variable to avoid confusing sed. | |
10104 | lt_compile=`echo "$ac_compile" | $SED \ | |
10105 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10106 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10107 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10108 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10109 | (eval "$lt_compile" 2>conftest.err) |
10110 | ac_status=$? | |
10111 | cat conftest.err >&5 | |
43e02a8a | 10112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10113 | if (exit $ac_status) && test -s "$ac_outfile"; then |
10114 | # The compiler can only warn and ignore the option if not recognized | |
10115 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 10116 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
10117 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10118 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 10119 | lt_cv_prog_compiler_pic_works=yes |
1cf3d07d SE |
10120 | fi |
10121 | fi | |
10122 | $RM conftest* | |
10123 | ||
10124 | fi | |
5213506e RW |
10125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
10126 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
1cf3d07d | 10127 | |
d58dead8 | 10128 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
1cf3d07d SE |
10129 | case $lt_prog_compiler_pic in |
10130 | "" | " "*) ;; | |
10131 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10132 | esac | |
10133 | else | |
10134 | lt_prog_compiler_pic= | |
10135 | lt_prog_compiler_can_build_shared=no | |
10136 | fi | |
10137 | ||
10138 | fi | |
10139 | ||
10140 | ||
10141 | ||
10142 | ||
10143 | ||
10144 | ||
10145 | # | |
10146 | # Check to make sure the static flag actually works. | |
10147 | # | |
10148 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
5213506e RW |
10149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
10150 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 10151 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
5213506e | 10152 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 10153 | else |
d58dead8 | 10154 | lt_cv_prog_compiler_static_works=no |
1cf3d07d SE |
10155 | save_LDFLAGS="$LDFLAGS" |
10156 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
10157 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10158 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10159 | # The linker can only warn and ignore the option if not recognized | |
10160 | # So say no if there are warnings | |
10161 | if test -s conftest.err; then | |
10162 | # Append any errors to the config.log. | |
10163 | cat conftest.err 1>&5 | |
43e02a8a | 10164 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
10165 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10166 | if diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 10167 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
10168 | fi |
10169 | else | |
d58dead8 | 10170 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
10171 | fi |
10172 | fi | |
d58dead8 | 10173 | $RM -r conftest* |
1cf3d07d SE |
10174 | LDFLAGS="$save_LDFLAGS" |
10175 | ||
10176 | fi | |
5213506e RW |
10177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
10178 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
1cf3d07d | 10179 | |
d58dead8 | 10180 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
1cf3d07d SE |
10181 | : |
10182 | else | |
10183 | lt_prog_compiler_static= | |
10184 | fi | |
10185 | ||
10186 | ||
10187 | ||
10188 | ||
10189 | ||
10190 | ||
10191 | ||
5213506e RW |
10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10193 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 10194 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 10195 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10196 | else |
10197 | lt_cv_prog_compiler_c_o=no | |
10198 | $RM -r conftest 2>/dev/null | |
10199 | mkdir conftest | |
10200 | cd conftest | |
10201 | mkdir out | |
10202 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10203 | ||
10204 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10205 | # Insert the option either (1) after the last *FLAGS variable, or | |
10206 | # (2) before a word containing "conftest.", or (3) at the end. | |
10207 | # Note that $ac_compile itself does not contain backslashes and begins | |
10208 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10209 | lt_compile=`echo "$ac_compile" | $SED \ | |
10210 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10211 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10212 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10213 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10214 | (eval "$lt_compile" 2>out/conftest.err) |
10215 | ac_status=$? | |
10216 | cat out/conftest.err >&5 | |
43e02a8a | 10217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10218 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10219 | then | |
10220 | # The compiler can only warn and ignore the option if not recognized | |
10221 | # So say no if there are warnings | |
43e02a8a | 10222 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
10223 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10224 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10225 | lt_cv_prog_compiler_c_o=yes | |
10226 | fi | |
10227 | fi | |
10228 | chmod u+w . 2>&5 | |
10229 | $RM conftest* | |
10230 | # SGI C++ compiler will create directory out/ii_files/ for | |
10231 | # template instantiation | |
10232 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10233 | $RM out/* && rmdir out | |
10234 | cd .. | |
10235 | $RM -r conftest | |
10236 | $RM conftest* | |
10237 | ||
10238 | fi | |
5213506e RW |
10239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10240 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
10241 | |
10242 | ||
10243 | ||
10244 | ||
10245 | ||
10246 | ||
5213506e RW |
10247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10248 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 10249 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 10250 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10251 | else |
10252 | lt_cv_prog_compiler_c_o=no | |
10253 | $RM -r conftest 2>/dev/null | |
10254 | mkdir conftest | |
10255 | cd conftest | |
10256 | mkdir out | |
10257 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10258 | ||
10259 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10260 | # Insert the option either (1) after the last *FLAGS variable, or | |
10261 | # (2) before a word containing "conftest.", or (3) at the end. | |
10262 | # Note that $ac_compile itself does not contain backslashes and begins | |
10263 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10264 | lt_compile=`echo "$ac_compile" | $SED \ | |
10265 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10266 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10267 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10268 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10269 | (eval "$lt_compile" 2>out/conftest.err) |
10270 | ac_status=$? | |
10271 | cat out/conftest.err >&5 | |
43e02a8a | 10272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10273 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10274 | then | |
10275 | # The compiler can only warn and ignore the option if not recognized | |
10276 | # So say no if there are warnings | |
43e02a8a | 10277 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
10278 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10279 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10280 | lt_cv_prog_compiler_c_o=yes | |
10281 | fi | |
10282 | fi | |
10283 | chmod u+w . 2>&5 | |
10284 | $RM conftest* | |
10285 | # SGI C++ compiler will create directory out/ii_files/ for | |
10286 | # template instantiation | |
10287 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10288 | $RM out/* && rmdir out | |
10289 | cd .. | |
10290 | $RM -r conftest | |
10291 | $RM conftest* | |
10292 | ||
10293 | fi | |
5213506e RW |
10294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10295 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
10296 | |
10297 | ||
10298 | ||
10299 | ||
10300 | hard_links="nottested" | |
10301 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10302 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
10303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
10304 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
10305 | hard_links=yes |
10306 | $RM conftest* | |
10307 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10308 | touch conftest.a | |
10309 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10310 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
10311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
10312 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 10313 | if test "$hard_links" = no; then |
5213506e RW |
10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
10315 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
10316 | need_locks=warn |
10317 | fi | |
10318 | else | |
10319 | need_locks=no | |
10320 | fi | |
10321 | ||
10322 | ||
10323 | ||
10324 | ||
10325 | ||
10326 | ||
5213506e RW |
10327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10328 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
10329 | |
10330 | runpath_var= | |
10331 | allow_undefined_flag= | |
10332 | always_export_symbols=no | |
10333 | archive_cmds= | |
10334 | archive_expsym_cmds= | |
10335 | compiler_needs_object=no | |
10336 | enable_shared_with_static_runtimes=no | |
10337 | export_dynamic_flag_spec= | |
10338 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10339 | hardcode_automatic=no | |
10340 | hardcode_direct=no | |
10341 | hardcode_direct_absolute=no | |
10342 | hardcode_libdir_flag_spec= | |
10343 | hardcode_libdir_flag_spec_ld= | |
10344 | hardcode_libdir_separator= | |
10345 | hardcode_minus_L=no | |
10346 | hardcode_shlibpath_var=unsupported | |
10347 | inherit_rpath=no | |
10348 | link_all_deplibs=unknown | |
10349 | module_cmds= | |
10350 | module_expsym_cmds= | |
10351 | old_archive_from_new_cmds= | |
10352 | old_archive_from_expsyms_cmds= | |
10353 | thread_safe_flag_spec= | |
10354 | whole_archive_flag_spec= | |
10355 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10356 | # included in the symbol list | |
10357 | include_expsyms= | |
10358 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10359 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10360 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10361 | # as well as any symbol that contains `d'. | |
d58dead8 | 10362 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
10363 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
10364 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10365 | # the symbol is explicitly referenced. Since portable code cannot | |
10366 | # rely on this symbol name, it's probably fine to never include it in | |
10367 | # preloaded symbol tables. | |
d58dead8 | 10368 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
10369 | extract_expsyms_cmds= |
10370 | ||
10371 | case $host_os in | |
d58dead8 | 10372 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10373 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
10374 | # When not using gcc, we currently assume that we are using | |
10375 | # Microsoft Visual C++. | |
10376 | if test "$GCC" != yes; then | |
10377 | with_gnu_ld=no | |
10378 | fi | |
10379 | ;; | |
10380 | interix*) | |
10381 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10382 | with_gnu_ld=yes | |
10383 | ;; | |
10384 | openbsd*) | |
10385 | with_gnu_ld=no | |
10386 | ;; | |
10387 | esac | |
10388 | ||
10389 | ld_shlibs=yes | |
43e02a8a RW |
10390 | |
10391 | # On some targets, GNU ld is compatible enough with the native linker | |
10392 | # that we're better off using the native interface for both. | |
10393 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 10394 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
10395 | case $host_os in |
10396 | aix*) | |
10397 | # The AIX port of GNU ld has always aspired to compatibility | |
10398 | # with the native linker. However, as the warning in the GNU ld | |
10399 | # block says, versions before 2.19.5* couldn't really create working | |
10400 | # shared libraries, regardless of the interface used. | |
10401 | case `$LD -v 2>&1` in | |
10402 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10403 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10404 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10405 | *) | |
10406 | lt_use_gnu_ld_interface=yes | |
10407 | ;; | |
10408 | esac | |
10409 | ;; | |
10410 | *) | |
10411 | lt_use_gnu_ld_interface=yes | |
10412 | ;; | |
10413 | esac | |
10414 | fi | |
10415 | ||
10416 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
10417 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10418 | wlarc='${wl}' | |
10419 | ||
10420 | # Set some defaults for GNU ld with shared library support. These | |
10421 | # are reset later if shared libraries are not supported. Putting them | |
10422 | # here allows them to be overridden if necessary. | |
10423 | runpath_var=LD_RUN_PATH | |
10424 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10425 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10426 | # ancient GNU ld didn't support --whole-archive et. al. | |
10427 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10428 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10429 | else | |
10430 | whole_archive_flag_spec= | |
10431 | fi | |
10432 | supports_anon_versioning=no | |
10433 | case `$LD -v 2>&1` in | |
43e02a8a | 10434 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
10435 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
10436 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10437 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10438 | *\ 2.11.*) ;; # other 2.11 versions | |
10439 | *) supports_anon_versioning=yes ;; | |
10440 | esac | |
10441 | ||
10442 | # See if GNU ld supports shared libraries. | |
10443 | case $host_os in | |
4f6bebc3 | 10444 | aix[3-9]*) |
1cf3d07d SE |
10445 | # On AIX/PPC, the GNU linker is very broken |
10446 | if test "$host_cpu" != ia64; then | |
10447 | ld_shlibs=no | |
10448 | cat <<_LT_EOF 1>&2 | |
10449 | ||
43e02a8a | 10450 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
10451 | *** to be unable to reliably create shared libraries on AIX. |
10452 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
10453 | *** really care for shared libraries, you may want to install binutils |
10454 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10455 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
10456 | |
10457 | _LT_EOF | |
10458 | fi | |
10459 | ;; | |
10460 | ||
10461 | amigaos*) | |
d58dead8 PG |
10462 | case $host_cpu in |
10463 | powerpc) | |
10464 | # see comment about AmigaOS4 .so support | |
10465 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10466 | archive_expsym_cmds='' | |
10467 | ;; | |
10468 | m68k) | |
10469 | 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)' | |
10470 | hardcode_libdir_flag_spec='-L$libdir' | |
10471 | hardcode_minus_L=yes | |
10472 | ;; | |
10473 | esac | |
1cf3d07d SE |
10474 | ;; |
10475 | ||
10476 | beos*) | |
10477 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10478 | allow_undefined_flag=unsupported | |
10479 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10480 | # support --undefined. This deserves some investigation. FIXME | |
10481 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10482 | else | |
10483 | ld_shlibs=no | |
10484 | fi | |
10485 | ;; | |
10486 | ||
d58dead8 | 10487 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10488 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
10489 | # as there is no search path for DLLs. | |
10490 | hardcode_libdir_flag_spec='-L$libdir' | |
43e02a8a | 10491 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
1cf3d07d SE |
10492 | allow_undefined_flag=unsupported |
10493 | always_export_symbols=no | |
10494 | enable_shared_with_static_runtimes=yes | |
10495 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10496 | ||
10497 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10498 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10499 | # If the export-symbols file already is a .def file (1st line | |
10500 | # is EXPORTS), use it as is; otherwise, prepend... | |
10501 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10502 | cp $export_symbols $output_objdir/$soname.def; | |
10503 | else | |
10504 | echo EXPORTS > $output_objdir/$soname.def; | |
10505 | cat $export_symbols >> $output_objdir/$soname.def; | |
10506 | fi~ | |
10507 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10508 | else | |
10509 | ld_shlibs=no | |
10510 | fi | |
10511 | ;; | |
10512 | ||
43e02a8a RW |
10513 | haiku*) |
10514 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10515 | link_all_deplibs=yes | |
10516 | ;; | |
10517 | ||
1cf3d07d SE |
10518 | interix[3-9]*) |
10519 | hardcode_direct=no | |
10520 | hardcode_shlibpath_var=no | |
10521 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10522 | export_dynamic_flag_spec='${wl}-E' | |
10523 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10524 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10525 | # default) and relocated if they conflict, which is a slow very memory | |
10526 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10527 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10528 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10529 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10530 | 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' | |
10531 | ;; | |
10532 | ||
e9085da5 | 10533 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
10534 | tmp_diet=no |
10535 | if test "$host_os" = linux-dietlibc; then | |
10536 | case $cc_basename in | |
10537 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10538 | esac | |
10539 | fi | |
10540 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10541 | && test "$tmp_diet" = no | |
10542 | then | |
a699d672 | 10543 | tmp_addflag=' $pic_flag' |
d58dead8 | 10544 | tmp_sharedflag='-shared' |
1cf3d07d SE |
10545 | case $cc_basename,$host_cpu in |
10546 | pgcc*) # Portland Group C compiler | |
43e02a8a | 10547 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
1cf3d07d SE |
10548 | tmp_addflag=' $pic_flag' |
10549 | ;; | |
43e02a8a RW |
10550 | pgf77* | pgf90* | pgf95* | pgfortran*) |
10551 | # Portland Group f77 and f90 compilers | |
10552 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
1cf3d07d SE |
10553 | tmp_addflag=' $pic_flag -Mnomain' ;; |
10554 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10555 | tmp_addflag=' -i_dynamic' ;; | |
10556 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10557 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10558 | ifc* | ifort*) # Intel Fortran compiler | |
10559 | tmp_addflag=' -nofor_main' ;; | |
d58dead8 PG |
10560 | lf95*) # Lahey Fortran 8.1 |
10561 | whole_archive_flag_spec= | |
10562 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 10563 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
d58dead8 PG |
10564 | tmp_sharedflag='-qmkshrobj' |
10565 | tmp_addflag= ;; | |
43e02a8a RW |
10566 | nvcc*) # Cuda Compiler Driver 2.2 |
10567 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
10568 | compiler_needs_object=yes | |
10569 | ;; | |
1cf3d07d SE |
10570 | esac |
10571 | case `$CC -V 2>&1 | sed 5q` in | |
10572 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 10573 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
1cf3d07d SE |
10574 | compiler_needs_object=yes |
10575 | tmp_sharedflag='-G' ;; | |
10576 | *Sun\ F*) # Sun Fortran 8.3 | |
10577 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
10578 | esac |
10579 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10580 | ||
10581 | if test "x$supports_anon_versioning" = xyes; then | |
10582 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10583 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10584 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10585 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10586 | fi | |
d58dead8 PG |
10587 | |
10588 | case $cc_basename in | |
43e02a8a | 10589 | xlf* | bgf* | bgxlf* | mpixlf*) |
d58dead8 PG |
10590 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10591 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10592 | hardcode_libdir_flag_spec= | |
10593 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10594 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10595 | if test "x$supports_anon_versioning" = xyes; then | |
10596 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10597 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10598 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10599 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10600 | fi | |
10601 | ;; | |
10602 | esac | |
1cf3d07d SE |
10603 | else |
10604 | ld_shlibs=no | |
10605 | fi | |
10606 | ;; | |
10607 | ||
10608 | netbsd*) | |
10609 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10610 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10611 | wlarc= | |
10612 | else | |
10613 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10614 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10615 | fi | |
10616 | ;; | |
10617 | ||
10618 | solaris*) | |
10619 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10620 | ld_shlibs=no | |
10621 | cat <<_LT_EOF 1>&2 | |
10622 | ||
10623 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10624 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10625 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10626 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10627 | *** your PATH or compiler configuration so that the native linker is | |
10628 | *** used, and then restart. | |
10629 | ||
10630 | _LT_EOF | |
10631 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10632 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10633 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10634 | else | |
10635 | ld_shlibs=no | |
10636 | fi | |
10637 | ;; | |
10638 | ||
10639 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10640 | case `$LD -v 2>&1` in | |
10641 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10642 | ld_shlibs=no | |
10643 | cat <<_LT_EOF 1>&2 | |
10644 | ||
10645 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10646 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10647 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10648 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10649 | *** your PATH or compiler configuration so that the native linker is | |
10650 | *** used, and then restart. | |
10651 | ||
10652 | _LT_EOF | |
10653 | ;; | |
10654 | *) | |
10655 | # For security reasons, it is highly recommended that you always | |
10656 | # use absolute paths for naming shared libraries, and exclude the | |
10657 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10658 | # requires that you compile everything twice, which is a pain. | |
10659 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10660 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10661 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10662 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10663 | else | |
10664 | ld_shlibs=no | |
10665 | fi | |
10666 | ;; | |
10667 | esac | |
10668 | ;; | |
10669 | ||
10670 | sunos4*) | |
10671 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10672 | wlarc= | |
10673 | hardcode_direct=yes | |
10674 | hardcode_shlibpath_var=no | |
10675 | ;; | |
10676 | ||
10677 | *) | |
10678 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10679 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10680 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10681 | else | |
10682 | ld_shlibs=no | |
10683 | fi | |
10684 | ;; | |
10685 | esac | |
10686 | ||
10687 | if test "$ld_shlibs" = no; then | |
10688 | runpath_var= | |
10689 | hardcode_libdir_flag_spec= | |
10690 | export_dynamic_flag_spec= | |
10691 | whole_archive_flag_spec= | |
10692 | fi | |
10693 | else | |
10694 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10695 | case $host_os in | |
10696 | aix3*) | |
10697 | allow_undefined_flag=unsupported | |
10698 | always_export_symbols=yes | |
10699 | 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' | |
10700 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10701 | # are no directories specified by -L. | |
10702 | hardcode_minus_L=yes | |
10703 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10704 | # Neither direct hardcoding nor static linking is supported with a | |
10705 | # broken collect2. | |
10706 | hardcode_direct=unsupported | |
10707 | fi | |
10708 | ;; | |
10709 | ||
4f6bebc3 | 10710 | aix[4-9]*) |
1cf3d07d SE |
10711 | if test "$host_cpu" = ia64; then |
10712 | # On IA64, the linker does run time linking by default, so we don't | |
10713 | # have to do anything special. | |
10714 | aix_use_runtimelinking=no | |
10715 | exp_sym_flag='-Bexport' | |
10716 | no_entry_flag="" | |
10717 | else | |
10718 | # If we're using GNU nm, then we don't want the "-C" option. | |
10719 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
10720 | # Also, AIX nm treats weak defined symbols like other global |
10721 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 10722 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 10723 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
1cf3d07d | 10724 | else |
d3ca2257 | 10725 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
1cf3d07d SE |
10726 | fi |
10727 | aix_use_runtimelinking=no | |
10728 | ||
10729 | # Test if we are trying to use run time linking or normal | |
10730 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10731 | # need to do runtime linking. | |
4f6bebc3 | 10732 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
10733 | for ld_flag in $LDFLAGS; do |
10734 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10735 | aix_use_runtimelinking=yes | |
10736 | break | |
10737 | fi | |
10738 | done | |
10739 | ;; | |
10740 | esac | |
10741 | ||
10742 | exp_sym_flag='-bexport' | |
10743 | no_entry_flag='-bnoentry' | |
10744 | fi | |
10745 | ||
10746 | # When large executables or shared objects are built, AIX ld can | |
10747 | # have problems creating the table of contents. If linking a library | |
10748 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10749 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10750 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10751 | ||
10752 | archive_cmds='' | |
10753 | hardcode_direct=yes | |
10754 | hardcode_direct_absolute=yes | |
10755 | hardcode_libdir_separator=':' | |
10756 | link_all_deplibs=yes | |
10757 | file_list_spec='${wl}-f,' | |
10758 | ||
10759 | if test "$GCC" = yes; then | |
10760 | case $host_os in aix4.[012]|aix4.[012].*) | |
10761 | # We only want to do this on AIX 4.2 and lower, the check | |
10762 | # below for broken collect2 doesn't work under 4.3+ | |
10763 | collect2name=`${CC} -print-prog-name=collect2` | |
10764 | if test -f "$collect2name" && | |
10765 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10766 | then | |
10767 | # We have reworked collect2 | |
10768 | : | |
10769 | else | |
10770 | # We have old collect2 | |
10771 | hardcode_direct=unsupported | |
10772 | # It fails to find uninstalled libraries when the uninstalled | |
10773 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10774 | # to unsupported forces relinking | |
10775 | hardcode_minus_L=yes | |
10776 | hardcode_libdir_flag_spec='-L$libdir' | |
10777 | hardcode_libdir_separator= | |
10778 | fi | |
10779 | ;; | |
10780 | esac | |
10781 | shared_flag='-shared' | |
10782 | if test "$aix_use_runtimelinking" = yes; then | |
10783 | shared_flag="$shared_flag "'${wl}-G' | |
10784 | fi | |
10785 | else | |
10786 | # not using gcc | |
10787 | if test "$host_cpu" = ia64; then | |
10788 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10789 | # chokes on -Wl,-G. The following line is correct: | |
10790 | shared_flag='-G' | |
10791 | else | |
10792 | if test "$aix_use_runtimelinking" = yes; then | |
10793 | shared_flag='${wl}-G' | |
10794 | else | |
10795 | shared_flag='${wl}-bM:SRE' | |
10796 | fi | |
10797 | fi | |
10798 | fi | |
10799 | ||
d58dead8 | 10800 | export_dynamic_flag_spec='${wl}-bexpall' |
1cf3d07d SE |
10801 | # It seems that -bexpall does not export symbols beginning with |
10802 | # underscore (_), so it is better to generate a list of symbols to export. | |
10803 | always_export_symbols=yes | |
10804 | if test "$aix_use_runtimelinking" = yes; then | |
10805 | # Warning - without using the other runtime loading flags (-brtl), | |
10806 | # -berok will link without error, but may produce a broken library. | |
10807 | allow_undefined_flag='-berok' | |
10808 | # Determine the default libpath from the value encoded in an | |
10809 | # empty executable. | |
10810 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10811 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10812 | fi |
5213506e | 10813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10814 | /* end confdefs.h. */ |
10815 | ||
10816 | int | |
10817 | main () | |
10818 | { | |
10819 | ||
10820 | ; | |
10821 | return 0; | |
10822 | } | |
10823 | _ACEOF | |
5213506e | 10824 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10825 | |
10826 | lt_aix_libpath_sed=' | |
10827 | /Import File Strings/,/^$/ { | |
10828 | /^0/ { | |
10829 | s/^0 *\(.*\)$/\1/ | |
10830 | p | |
10831 | } | |
10832 | }' | |
10833 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10834 | # Check for a 64-bit object if we didn't find anything. | |
10835 | if test -z "$aix_libpath"; then | |
10836 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10837 | fi | |
1cf3d07d | 10838 | fi |
5213506e RW |
10839 | rm -f core conftest.err conftest.$ac_objext \ |
10840 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10841 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10842 | ||
10843 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 10844 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
1cf3d07d SE |
10845 | else |
10846 | if test "$host_cpu" = ia64; then | |
10847 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10848 | allow_undefined_flag="-z nodefs" | |
10849 | 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" | |
10850 | else | |
10851 | # Determine the default libpath from the value encoded in an | |
10852 | # empty executable. | |
10853 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10854 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10855 | fi |
5213506e | 10856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10857 | /* end confdefs.h. */ |
10858 | ||
10859 | int | |
10860 | main () | |
10861 | { | |
10862 | ||
10863 | ; | |
10864 | return 0; | |
10865 | } | |
10866 | _ACEOF | |
5213506e | 10867 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10868 | |
10869 | lt_aix_libpath_sed=' | |
10870 | /Import File Strings/,/^$/ { | |
10871 | /^0/ { | |
10872 | s/^0 *\(.*\)$/\1/ | |
10873 | p | |
10874 | } | |
10875 | }' | |
10876 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10877 | # Check for a 64-bit object if we didn't find anything. | |
10878 | if test -z "$aix_libpath"; then | |
10879 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10880 | fi | |
1cf3d07d | 10881 | fi |
5213506e RW |
10882 | rm -f core conftest.err conftest.$ac_objext \ |
10883 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10884 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10885 | ||
10886 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10887 | # Warning - without using the other run time loading flags, | |
10888 | # -berok will link without error, but may produce a broken library. | |
10889 | no_undefined_flag=' ${wl}-bernotok' | |
10890 | allow_undefined_flag=' ${wl}-berok' | |
43e02a8a RW |
10891 | if test "$with_gnu_ld" = yes; then |
10892 | # We only use this code for GNU lds that support --whole-archive. | |
10893 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10894 | else | |
10895 | # Exported symbols can be pulled into shared objects from archives | |
10896 | whole_archive_flag_spec='$convenience' | |
10897 | fi | |
1cf3d07d SE |
10898 | archive_cmds_need_lc=yes |
10899 | # This is similar to how AIX traditionally builds its shared libraries. | |
10900 | 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' | |
10901 | fi | |
10902 | fi | |
10903 | ;; | |
10904 | ||
10905 | amigaos*) | |
d58dead8 PG |
10906 | case $host_cpu in |
10907 | powerpc) | |
10908 | # see comment about AmigaOS4 .so support | |
10909 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10910 | archive_expsym_cmds='' | |
10911 | ;; | |
10912 | m68k) | |
10913 | 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)' | |
10914 | hardcode_libdir_flag_spec='-L$libdir' | |
10915 | hardcode_minus_L=yes | |
10916 | ;; | |
10917 | esac | |
1cf3d07d SE |
10918 | ;; |
10919 | ||
10920 | bsdi[45]*) | |
10921 | export_dynamic_flag_spec=-rdynamic | |
10922 | ;; | |
10923 | ||
d58dead8 | 10924 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10925 | # When not using gcc, we currently assume that we are using |
10926 | # Microsoft Visual C++. | |
10927 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10928 | # no search path for DLLs. | |
10929 | hardcode_libdir_flag_spec=' ' | |
10930 | allow_undefined_flag=unsupported | |
10931 | # Tell ltmain to make .lib files, not .a files. | |
10932 | libext=lib | |
10933 | # Tell ltmain to make .dll files, not .so files. | |
10934 | shrext_cmds=".dll" | |
10935 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 10936 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
10937 | # The linker will automatically build a .lib file if we build a DLL. |
10938 | old_archive_from_new_cmds='true' | |
10939 | # FIXME: Should let the user specify the lib program. | |
10940 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10941 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10942 | enable_shared_with_static_runtimes=yes | |
10943 | ;; | |
10944 | ||
10945 | darwin* | rhapsody*) | |
1cf3d07d | 10946 | |
d58dead8 PG |
10947 | |
10948 | archive_cmds_need_lc=no | |
10949 | hardcode_direct=no | |
10950 | hardcode_automatic=yes | |
10951 | hardcode_shlibpath_var=unsupported | |
43e02a8a RW |
10952 | if test "$lt_cv_ld_force_load" = "yes"; then |
10953 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
10954 | else | |
10955 | whole_archive_flag_spec='' | |
10956 | fi | |
d58dead8 PG |
10957 | link_all_deplibs=yes |
10958 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10959 | case $cc_basename in | |
10960 | ifort*) _lt_dar_can_shared=yes ;; | |
10961 | *) _lt_dar_can_shared=$GCC ;; | |
10962 | esac | |
10963 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 10964 | output_verbose_link_cmd=func_echo_all |
d58dead8 PG |
10965 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10966 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10967 | 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}" | |
10968 | 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}" | |
10969 | ||
10970 | else | |
10971 | ld_shlibs=no | |
10972 | fi | |
10973 | ||
1cf3d07d SE |
10974 | ;; |
10975 | ||
10976 | dgux*) | |
10977 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10978 | hardcode_libdir_flag_spec='-L$libdir' | |
10979 | hardcode_shlibpath_var=no | |
10980 | ;; | |
10981 | ||
1cf3d07d SE |
10982 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10983 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10984 | # does not break anything, and helps significantly (at the cost of a little | |
10985 | # extra space). | |
10986 | freebsd2.2*) | |
10987 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10988 | hardcode_libdir_flag_spec='-R$libdir' | |
10989 | hardcode_direct=yes | |
10990 | hardcode_shlibpath_var=no | |
10991 | ;; | |
10992 | ||
10993 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 10994 | freebsd2.*) |
1cf3d07d SE |
10995 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10996 | hardcode_direct=yes | |
10997 | hardcode_minus_L=yes | |
10998 | hardcode_shlibpath_var=no | |
10999 | ;; | |
11000 | ||
11001 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
11002 | freebsd* | dragonfly*) | |
11003 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
11004 | hardcode_libdir_flag_spec='-R$libdir' | |
11005 | hardcode_direct=yes | |
11006 | hardcode_shlibpath_var=no | |
11007 | ;; | |
11008 | ||
11009 | hpux9*) | |
11010 | if test "$GCC" = yes; then | |
11011 | 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' | |
11012 | else | |
11013 | 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' | |
11014 | fi | |
11015 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11016 | hardcode_libdir_separator=: | |
11017 | hardcode_direct=yes | |
11018 | ||
11019 | # hardcode_minus_L: Not really in the search PATH, | |
11020 | # but as the default location of the library. | |
11021 | hardcode_minus_L=yes | |
11022 | export_dynamic_flag_spec='${wl}-E' | |
11023 | ;; | |
11024 | ||
11025 | hpux10*) | |
43e02a8a | 11026 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
11027 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
11028 | else | |
11029 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11030 | fi | |
11031 | if test "$with_gnu_ld" = no; then | |
11032 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11033 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
11034 | hardcode_libdir_separator=: | |
11035 | hardcode_direct=yes | |
11036 | hardcode_direct_absolute=yes | |
11037 | export_dynamic_flag_spec='${wl}-E' | |
11038 | # hardcode_minus_L: Not really in the search PATH, | |
11039 | # but as the default location of the library. | |
11040 | hardcode_minus_L=yes | |
11041 | fi | |
11042 | ;; | |
11043 | ||
11044 | hpux11*) | |
43e02a8a | 11045 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
11046 | case $host_cpu in |
11047 | hppa*64*) | |
4e4ba647 | 11048 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
11049 | ;; |
11050 | ia64*) | |
d58dead8 | 11051 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
11052 | ;; |
11053 | *) | |
11054 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11055 | ;; | |
11056 | esac | |
11057 | else | |
11058 | case $host_cpu in | |
11059 | hppa*64*) | |
4e4ba647 | 11060 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
11061 | ;; |
11062 | ia64*) | |
11063 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
11064 | ;; | |
11065 | *) | |
43e02a8a RW |
11066 | |
11067 | # Older versions of the 11.00 compiler do not understand -b yet | |
11068 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
11069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
11070 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
22e05272 | 11071 | if ${lt_cv_prog_compiler__b+:} false; then : |
43e02a8a RW |
11072 | $as_echo_n "(cached) " >&6 |
11073 | else | |
11074 | lt_cv_prog_compiler__b=no | |
11075 | save_LDFLAGS="$LDFLAGS" | |
11076 | LDFLAGS="$LDFLAGS -b" | |
11077 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11078 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11079 | # The linker can only warn and ignore the option if not recognized | |
11080 | # So say no if there are warnings | |
11081 | if test -s conftest.err; then | |
11082 | # Append any errors to the config.log. | |
11083 | cat conftest.err 1>&5 | |
11084 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11085 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11086 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11087 | lt_cv_prog_compiler__b=yes | |
11088 | fi | |
11089 | else | |
11090 | lt_cv_prog_compiler__b=yes | |
11091 | fi | |
11092 | fi | |
11093 | $RM -r conftest* | |
11094 | LDFLAGS="$save_LDFLAGS" | |
11095 | ||
11096 | fi | |
11097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11098 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11099 | ||
11100 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
11101 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11102 | else | |
11103 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11104 | fi | |
11105 | ||
1cf3d07d SE |
11106 | ;; |
11107 | esac | |
11108 | fi | |
11109 | if test "$with_gnu_ld" = no; then | |
11110 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11111 | hardcode_libdir_separator=: | |
11112 | ||
11113 | case $host_cpu in | |
11114 | hppa*64*|ia64*) | |
11115 | hardcode_direct=no | |
11116 | hardcode_shlibpath_var=no | |
11117 | ;; | |
11118 | *) | |
11119 | hardcode_direct=yes | |
11120 | hardcode_direct_absolute=yes | |
11121 | export_dynamic_flag_spec='${wl}-E' | |
11122 | ||
11123 | # hardcode_minus_L: Not really in the search PATH, | |
11124 | # but as the default location of the library. | |
11125 | hardcode_minus_L=yes | |
11126 | ;; | |
11127 | esac | |
11128 | fi | |
11129 | ;; | |
11130 | ||
11131 | irix5* | irix6* | nonstopux*) | |
11132 | if test "$GCC" = yes; then | |
43e02a8a | 11133 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
11134 | # Try to use the -exported_symbol ld option, if it does not |
11135 | # work, assume that -exports_file does not work either and | |
11136 | # implicitly export all symbols. | |
11137 | save_LDFLAGS="$LDFLAGS" | |
11138 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
11139 | if test x$gcc_no_link = xyes; then | |
22e05272 | 11140 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 11141 | fi |
5213506e RW |
11142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11143 | /* end confdefs.h. */ | |
1cf3d07d SE |
11144 | int foo(void) {} |
11145 | _ACEOF | |
5213506e | 11146 | if ac_fn_c_try_link "$LINENO"; then : |
43e02a8a | 11147 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
1cf3d07d | 11148 | |
1cf3d07d | 11149 | fi |
5213506e RW |
11150 | rm -f core conftest.err conftest.$ac_objext \ |
11151 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11152 | LDFLAGS="$save_LDFLAGS" |
11153 | else | |
43e02a8a RW |
11154 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
11155 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
1cf3d07d SE |
11156 | fi |
11157 | archive_cmds_need_lc='no' | |
11158 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11159 | hardcode_libdir_separator=: | |
11160 | inherit_rpath=yes | |
11161 | link_all_deplibs=yes | |
11162 | ;; | |
11163 | ||
11164 | netbsd*) | |
11165 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11166 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11167 | else | |
11168 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11169 | fi | |
11170 | hardcode_libdir_flag_spec='-R$libdir' | |
11171 | hardcode_direct=yes | |
11172 | hardcode_shlibpath_var=no | |
11173 | ;; | |
11174 | ||
11175 | newsos6) | |
11176 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11177 | hardcode_direct=yes | |
11178 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11179 | hardcode_libdir_separator=: | |
11180 | hardcode_shlibpath_var=no | |
11181 | ;; | |
11182 | ||
11183 | *nto* | *qnx*) | |
11184 | ;; | |
11185 | ||
11186 | openbsd*) | |
d58dead8 PG |
11187 | if test -f /usr/libexec/ld.so; then |
11188 | hardcode_direct=yes | |
11189 | hardcode_shlibpath_var=no | |
11190 | hardcode_direct_absolute=yes | |
11191 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 11192 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d58dead8 | 11193 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 11194 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
d58dead8 PG |
11195 | export_dynamic_flag_spec='${wl}-E' |
11196 | else | |
11197 | case $host_os in | |
11198 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
11199 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11200 | hardcode_libdir_flag_spec='-R$libdir' | |
11201 | ;; | |
11202 | *) | |
11203 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11204 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11205 | ;; | |
11206 | esac | |
11207 | fi | |
11208 | else | |
11209 | ld_shlibs=no | |
1cf3d07d SE |
11210 | fi |
11211 | ;; | |
11212 | ||
11213 | os2*) | |
11214 | hardcode_libdir_flag_spec='-L$libdir' | |
11215 | hardcode_minus_L=yes | |
11216 | allow_undefined_flag=unsupported | |
43e02a8a | 11217 | 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' |
1cf3d07d SE |
11218 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
11219 | ;; | |
11220 | ||
11221 | osf3*) | |
11222 | if test "$GCC" = yes; then | |
11223 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 11224 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
11225 | else |
11226 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 11227 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
11228 | fi |
11229 | archive_cmds_need_lc='no' | |
11230 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11231 | hardcode_libdir_separator=: | |
11232 | ;; | |
11233 | ||
11234 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11235 | if test "$GCC" = yes; then | |
11236 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 11237 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
11238 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
11239 | else | |
11240 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 11241 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
1cf3d07d | 11242 | 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~ |
43e02a8a | 11243 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
1cf3d07d SE |
11244 | |
11245 | # Both c and cxx compiler support -rpath directly | |
11246 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11247 | fi | |
11248 | archive_cmds_need_lc='no' | |
11249 | hardcode_libdir_separator=: | |
11250 | ;; | |
11251 | ||
11252 | solaris*) | |
11253 | no_undefined_flag=' -z defs' | |
11254 | if test "$GCC" = yes; then | |
11255 | wlarc='${wl}' | |
11256 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11257 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11258 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11259 | else | |
11260 | case `$CC -V 2>&1` in | |
11261 | *"Compilers 5.0"*) | |
11262 | wlarc='' | |
11263 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11264 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11265 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11266 | ;; | |
11267 | *) | |
11268 | wlarc='${wl}' | |
11269 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11270 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11271 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11272 | ;; | |
11273 | esac | |
11274 | fi | |
11275 | hardcode_libdir_flag_spec='-R$libdir' | |
11276 | hardcode_shlibpath_var=no | |
11277 | case $host_os in | |
11278 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11279 | *) | |
11280 | # The compiler driver will combine and reorder linker options, | |
11281 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11282 | # but is careful enough not to reorder. | |
11283 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11284 | if test "$GCC" = yes; then | |
11285 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11286 | else | |
11287 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11288 | fi | |
11289 | ;; | |
11290 | esac | |
11291 | link_all_deplibs=yes | |
11292 | ;; | |
11293 | ||
11294 | sunos4*) | |
11295 | if test "x$host_vendor" = xsequent; then | |
11296 | # Use $CC to link under sequent, because it throws in some extra .o | |
11297 | # files that make .init and .fini sections work. | |
11298 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11299 | else | |
11300 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11301 | fi | |
11302 | hardcode_libdir_flag_spec='-L$libdir' | |
11303 | hardcode_direct=yes | |
11304 | hardcode_minus_L=yes | |
11305 | hardcode_shlibpath_var=no | |
11306 | ;; | |
11307 | ||
11308 | sysv4) | |
11309 | case $host_vendor in | |
11310 | sni) | |
11311 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11312 | hardcode_direct=yes # is this really true??? | |
11313 | ;; | |
11314 | siemens) | |
11315 | ## LD is ld it makes a PLAMLIB | |
11316 | ## CC just makes a GrossModule. | |
11317 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11318 | reload_cmds='$CC -r -o $output$reload_objs' | |
11319 | hardcode_direct=no | |
11320 | ;; | |
11321 | motorola) | |
11322 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11323 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11324 | ;; | |
11325 | esac | |
11326 | runpath_var='LD_RUN_PATH' | |
11327 | hardcode_shlibpath_var=no | |
11328 | ;; | |
11329 | ||
11330 | sysv4.3*) | |
11331 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11332 | hardcode_shlibpath_var=no | |
11333 | export_dynamic_flag_spec='-Bexport' | |
11334 | ;; | |
11335 | ||
11336 | sysv4*MP*) | |
11337 | if test -d /usr/nec; then | |
11338 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11339 | hardcode_shlibpath_var=no | |
11340 | runpath_var=LD_RUN_PATH | |
11341 | hardcode_runpath_var=yes | |
11342 | ld_shlibs=yes | |
11343 | fi | |
11344 | ;; | |
11345 | ||
11346 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11347 | no_undefined_flag='${wl}-z,text' | |
11348 | archive_cmds_need_lc=no | |
11349 | hardcode_shlibpath_var=no | |
11350 | runpath_var='LD_RUN_PATH' | |
11351 | ||
11352 | if test "$GCC" = yes; then | |
11353 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11354 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11355 | else | |
11356 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11357 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11358 | fi | |
11359 | ;; | |
11360 | ||
11361 | sysv5* | sco3.2v5* | sco5v6*) | |
11362 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11363 | # link with -lc, and that would cause any symbols used from libc to | |
11364 | # always be unresolved, which means just about no library would | |
11365 | # ever link correctly. If we're not using GNU ld we use -z text | |
11366 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11367 | # as -z defs. | |
11368 | no_undefined_flag='${wl}-z,text' | |
11369 | allow_undefined_flag='${wl}-z,nodefs' | |
11370 | archive_cmds_need_lc=no | |
11371 | hardcode_shlibpath_var=no | |
11372 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11373 | hardcode_libdir_separator=':' | |
11374 | link_all_deplibs=yes | |
11375 | export_dynamic_flag_spec='${wl}-Bexport' | |
11376 | runpath_var='LD_RUN_PATH' | |
11377 | ||
11378 | if test "$GCC" = yes; then | |
11379 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11380 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11381 | else | |
11382 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11383 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11384 | fi | |
11385 | ;; | |
11386 | ||
11387 | uts4*) | |
11388 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11389 | hardcode_libdir_flag_spec='-L$libdir' | |
11390 | hardcode_shlibpath_var=no | |
11391 | ;; | |
11392 | ||
11393 | *) | |
11394 | ld_shlibs=no | |
11395 | ;; | |
11396 | esac | |
11397 | ||
11398 | if test x$host_vendor = xsni; then | |
11399 | case $host in | |
11400 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11401 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11402 | ;; | |
11403 | esac | |
11404 | fi | |
11405 | fi | |
11406 | ||
5213506e RW |
11407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
11408 | $as_echo "$ld_shlibs" >&6; } | |
1cf3d07d SE |
11409 | test "$ld_shlibs" = no && can_build_shared=no |
11410 | ||
11411 | with_gnu_ld=$with_gnu_ld | |
11412 | ||
11413 | ||
11414 | ||
11415 | ||
11416 | ||
11417 | ||
11418 | ||
11419 | ||
11420 | ||
11421 | ||
11422 | ||
11423 | ||
11424 | ||
11425 | ||
11426 | ||
11427 | # | |
11428 | # Do we need to explicitly link libc? | |
11429 | # | |
11430 | case "x$archive_cmds_need_lc" in | |
11431 | x|xyes) | |
11432 | # Assume -lc should be added | |
11433 | archive_cmds_need_lc=yes | |
11434 | ||
11435 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11436 | case $archive_cmds in | |
11437 | *'~'*) | |
11438 | # FIXME: we may have to deal with multi-command sequences. | |
11439 | ;; | |
11440 | '$CC '*) | |
11441 | # Test whether the compiler implicitly links with -lc since on some | |
11442 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11443 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
11444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
11445 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 11446 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
5213506e | 11447 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
11448 | else |
11449 | $RM conftest* | |
11450 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 11451 | |
5213506e | 11452 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
11453 | (eval $ac_compile) 2>&5 |
11454 | ac_status=$? | |
5213506e RW |
11455 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11456 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
11457 | soname=conftest |
11458 | lib=conftest | |
11459 | libobjs=conftest.$ac_objext | |
11460 | deplibs= | |
11461 | wl=$lt_prog_compiler_wl | |
11462 | pic_flag=$lt_prog_compiler_pic | |
11463 | compiler_flags=-v | |
11464 | linker_flags=-v | |
11465 | verstring= | |
11466 | output_objdir=. | |
11467 | libname=conftest | |
11468 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11469 | allow_undefined_flag= | |
5213506e | 11470 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d SE |
11471 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11472 | ac_status=$? | |
5213506e RW |
11473 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11474 | test $ac_status = 0; } | |
baafc534 RW |
11475 | then |
11476 | lt_cv_archive_cmds_need_lc=no | |
11477 | else | |
11478 | lt_cv_archive_cmds_need_lc=yes | |
11479 | fi | |
11480 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11481 | else | |
11482 | cat conftest.err 1>&5 | |
11483 | fi | |
11484 | $RM conftest* | |
11485 | ||
11486 | fi | |
5213506e RW |
11487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
11488 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
baafc534 | 11489 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
1cf3d07d SE |
11490 | ;; |
11491 | esac | |
11492 | fi | |
11493 | ;; | |
11494 | esac | |
11495 | ||
11496 | ||
11497 | ||
11498 | ||
11499 | ||
11500 | ||
11501 | ||
11502 | ||
11503 | ||
11504 | ||
11505 | ||
11506 | ||
11507 | ||
11508 | ||
11509 | ||
11510 | ||
11511 | ||
11512 | ||
11513 | ||
11514 | ||
11515 | ||
11516 | ||
11517 | ||
11518 | ||
11519 | ||
11520 | ||
11521 | ||
11522 | ||
11523 | ||
11524 | ||
11525 | ||
11526 | ||
11527 | ||
11528 | ||
11529 | ||
11530 | ||
11531 | ||
11532 | ||
11533 | ||
11534 | ||
11535 | ||
11536 | ||
11537 | ||
11538 | ||
11539 | ||
11540 | ||
11541 | ||
11542 | ||
11543 | ||
11544 | ||
11545 | ||
11546 | ||
11547 | ||
11548 | ||
11549 | ||
11550 | ||
11551 | ||
11552 | ||
11553 | ||
11554 | ||
11555 | ||
11556 | ||
11557 | ||
11558 | ||
11559 | ||
11560 | ||
11561 | ||
11562 | ||
11563 | ||
11564 | ||
11565 | ||
11566 | ||
11567 | ||
11568 | ||
11569 | ||
11570 | ||
11571 | ||
11572 | ||
11573 | ||
11574 | ||
11575 | ||
11576 | ||
11577 | ||
11578 | ||
11579 | ||
11580 | ||
11581 | ||
11582 | ||
11583 | ||
11584 | ||
11585 | ||
11586 | ||
11587 | ||
11588 | ||
11589 | ||
11590 | ||
11591 | ||
11592 | ||
11593 | ||
11594 | ||
11595 | ||
11596 | ||
11597 | ||
11598 | ||
11599 | ||
11600 | ||
11601 | ||
11602 | ||
11603 | ||
11604 | ||
11605 | ||
11606 | ||
11607 | ||
11608 | ||
11609 | ||
11610 | ||
11611 | ||
11612 | ||
11613 | ||
11614 | ||
11615 | ||
11616 | ||
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | ||
11633 | ||
11634 | ||
11635 | ||
11636 | ||
11637 | ||
11638 | ||
11639 | ||
11640 | ||
11641 | ||
11642 | ||
11643 | ||
11644 | ||
11645 | ||
11646 | ||
11647 | ||
11648 | ||
11649 | ||
11650 | ||
11651 | ||
5213506e RW |
11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
11653 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
d58dead8 PG |
11654 | |
11655 | if test "$GCC" = yes; then | |
1cf3d07d SE |
11656 | case $host_os in |
11657 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11658 | *) lt_awk_arg="/^libraries:/" ;; | |
11659 | esac | |
43e02a8a RW |
11660 | case $host_os in |
11661 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11662 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11663 | esac | |
11664 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11665 | case $lt_search_path_spec in | |
11666 | *\;*) | |
1cf3d07d SE |
11667 | # if the path contains ";" then we assume it to be the separator |
11668 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11669 | # assumed that no part of a normal pathname contains ";" but that should | |
11670 | # okay in the real world where ";" in dirpaths is itself problematic. | |
43e02a8a RW |
11671 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11672 | ;; | |
11673 | *) | |
11674 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11675 | ;; | |
11676 | esac | |
1cf3d07d SE |
11677 | # Ok, now we have the path, separated by spaces, we can step through it |
11678 | # and add multilib dir if necessary. | |
11679 | lt_tmp_lt_search_path_spec= | |
11680 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11681 | for lt_sys_path in $lt_search_path_spec; do | |
11682 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11683 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11684 | else | |
11685 | test -d "$lt_sys_path" && \ | |
11686 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11687 | fi | |
11688 | done | |
43e02a8a | 11689 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
1cf3d07d SE |
11690 | BEGIN {RS=" "; FS="/|\n";} { |
11691 | lt_foo=""; | |
11692 | lt_count=0; | |
11693 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11694 | if ($lt_i != "" && $lt_i != ".") { | |
11695 | if ($lt_i == "..") { | |
11696 | lt_count++; | |
11697 | } else { | |
11698 | if (lt_count == 0) { | |
11699 | lt_foo="/" $lt_i lt_foo; | |
11700 | } else { | |
11701 | lt_count--; | |
11702 | } | |
11703 | } | |
11704 | } | |
11705 | } | |
11706 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11707 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11708 | }'` | |
43e02a8a RW |
11709 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11710 | # for these hosts. | |
11711 | case $host_os in | |
11712 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11713 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11714 | esac | |
11715 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
1cf3d07d SE |
11716 | else |
11717 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11718 | fi | |
11719 | library_names_spec= | |
11720 | libname_spec='lib$name' | |
11721 | soname_spec= | |
11722 | shrext_cmds=".so" | |
11723 | postinstall_cmds= | |
11724 | postuninstall_cmds= | |
11725 | finish_cmds= | |
11726 | finish_eval= | |
11727 | shlibpath_var= | |
11728 | shlibpath_overrides_runpath=unknown | |
11729 | version_type=none | |
11730 | dynamic_linker="$host_os ld.so" | |
11731 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11732 | need_lib_prefix=unknown | |
11733 | hardcode_into_libs=no | |
11734 | ||
11735 | # when you set need_version to no, make sure it does not cause -set_version | |
11736 | # flags to be left without arguments | |
11737 | need_version=unknown | |
11738 | ||
11739 | case $host_os in | |
11740 | aix3*) | |
11741 | version_type=linux | |
11742 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11743 | shlibpath_var=LIBPATH | |
11744 | ||
11745 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11746 | soname_spec='${libname}${release}${shared_ext}$major' | |
11747 | ;; | |
11748 | ||
4f6bebc3 | 11749 | aix[4-9]*) |
1cf3d07d SE |
11750 | version_type=linux |
11751 | need_lib_prefix=no | |
11752 | need_version=no | |
11753 | hardcode_into_libs=yes | |
11754 | if test "$host_cpu" = ia64; then | |
11755 | # AIX 5 supports IA64 | |
11756 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11757 | shlibpath_var=LD_LIBRARY_PATH | |
11758 | else | |
11759 | # With GCC up to 2.95.x, collect2 would create an import file | |
11760 | # for dependence libraries. The import file would start with | |
11761 | # the line `#! .'. This would cause the generated library to | |
11762 | # depend on `.', always an invalid library. This was fixed in | |
11763 | # development snapshots of GCC prior to 3.0. | |
11764 | case $host_os in | |
11765 | aix4 | aix4.[01] | aix4.[01].*) | |
11766 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11767 | echo ' yes ' | |
11768 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11769 | : | |
11770 | else | |
11771 | can_build_shared=no | |
11772 | fi | |
11773 | ;; | |
11774 | esac | |
11775 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11776 | # soname into executable. Probably we can add versioning support to | |
11777 | # collect2, so additional links can be useful in future. | |
11778 | if test "$aix_use_runtimelinking" = yes; then | |
11779 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11780 | # instead of lib<name>.a to let people know that these are not | |
11781 | # typical AIX shared libraries. | |
11782 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11783 | else | |
11784 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11785 | # and later when we are not doing run time linking. | |
11786 | library_names_spec='${libname}${release}.a $libname.a' | |
11787 | soname_spec='${libname}${release}${shared_ext}$major' | |
11788 | fi | |
11789 | shlibpath_var=LIBPATH | |
11790 | fi | |
11791 | ;; | |
11792 | ||
11793 | amigaos*) | |
d58dead8 PG |
11794 | case $host_cpu in |
11795 | powerpc) | |
11796 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11797 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11799 | ;; | |
11800 | m68k) | |
1cf3d07d SE |
11801 | library_names_spec='$libname.ixlibrary $libname.a' |
11802 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 11803 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' |
d58dead8 PG |
11804 | ;; |
11805 | esac | |
1cf3d07d SE |
11806 | ;; |
11807 | ||
11808 | beos*) | |
11809 | library_names_spec='${libname}${shared_ext}' | |
11810 | dynamic_linker="$host_os ld.so" | |
11811 | shlibpath_var=LIBRARY_PATH | |
11812 | ;; | |
11813 | ||
11814 | bsdi[45]*) | |
11815 | version_type=linux | |
11816 | need_version=no | |
11817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11818 | soname_spec='${libname}${release}${shared_ext}$major' | |
11819 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11820 | shlibpath_var=LD_LIBRARY_PATH | |
11821 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11822 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11823 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11824 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11825 | # libtool to hard-code these into programs | |
11826 | ;; | |
11827 | ||
d58dead8 | 11828 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
11829 | version_type=windows |
11830 | shrext_cmds=".dll" | |
11831 | need_version=no | |
11832 | need_lib_prefix=no | |
11833 | ||
d58dead8 PG |
11834 | case $GCC,$host_os in |
11835 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
11836 | library_names_spec='$libname.dll.a' |
11837 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11838 | postinstall_cmds='base_file=`basename \${file}`~ | |
11839 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11840 | dldir=$destdir/`dirname \$dlpath`~ | |
11841 | test -d \$dldir || mkdir -p \$dldir~ | |
11842 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11843 | chmod a+x \$dldir/$dlname~ | |
11844 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11845 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11846 | fi' | |
11847 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11848 | dlpath=$dir/\$dldll~ | |
11849 | $RM \$dlpath' | |
11850 | shlibpath_overrides_runpath=yes | |
11851 | ||
11852 | case $host_os in | |
11853 | cygwin*) | |
11854 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11855 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a RW |
11856 | |
11857 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
1cf3d07d | 11858 | ;; |
d58dead8 | 11859 | mingw* | cegcc*) |
1cf3d07d SE |
11860 | # MinGW DLLs use traditional 'lib' prefix |
11861 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
11862 | ;; |
11863 | pw32*) | |
11864 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11865 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11866 | ;; | |
11867 | esac | |
11868 | ;; | |
11869 | ||
11870 | *) | |
11871 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11872 | ;; | |
11873 | esac | |
11874 | dynamic_linker='Win32 ld.exe' | |
11875 | # FIXME: first we should search . and the directory the executable is in | |
11876 | shlibpath_var=PATH | |
11877 | ;; | |
11878 | ||
11879 | darwin* | rhapsody*) | |
11880 | dynamic_linker="$host_os dyld" | |
11881 | version_type=darwin | |
11882 | need_lib_prefix=no | |
11883 | need_version=no | |
11884 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11885 | soname_spec='${libname}${release}${major}$shared_ext' | |
11886 | shlibpath_overrides_runpath=yes | |
11887 | shlibpath_var=DYLD_LIBRARY_PATH | |
11888 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11889 | ||
11890 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11891 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11892 | ;; | |
11893 | ||
11894 | dgux*) | |
11895 | version_type=linux | |
11896 | need_lib_prefix=no | |
11897 | need_version=no | |
11898 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11899 | soname_spec='${libname}${release}${shared_ext}$major' | |
11900 | shlibpath_var=LD_LIBRARY_PATH | |
11901 | ;; | |
11902 | ||
1cf3d07d SE |
11903 | freebsd* | dragonfly*) |
11904 | # DragonFly does not have aout. When/if they implement a new | |
11905 | # versioning mechanism, adjust this. | |
11906 | if test -x /usr/bin/objformat; then | |
11907 | objformat=`/usr/bin/objformat` | |
11908 | else | |
11909 | case $host_os in | |
c6084f68 | 11910 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
11911 | *) objformat=elf ;; |
11912 | esac | |
11913 | fi | |
11914 | version_type=freebsd-$objformat | |
11915 | case $version_type in | |
11916 | freebsd-elf*) | |
11917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11918 | need_version=no | |
11919 | need_lib_prefix=no | |
11920 | ;; | |
11921 | freebsd-*) | |
11922 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11923 | need_version=yes | |
11924 | ;; | |
11925 | esac | |
11926 | shlibpath_var=LD_LIBRARY_PATH | |
11927 | case $host_os in | |
c6084f68 | 11928 | freebsd2.*) |
1cf3d07d SE |
11929 | shlibpath_overrides_runpath=yes |
11930 | ;; | |
11931 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11932 | shlibpath_overrides_runpath=yes | |
11933 | hardcode_into_libs=yes | |
11934 | ;; | |
11935 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11936 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11937 | shlibpath_overrides_runpath=no | |
11938 | hardcode_into_libs=yes | |
11939 | ;; | |
11940 | *) # from 4.6 on, and DragonFly | |
11941 | shlibpath_overrides_runpath=yes | |
11942 | hardcode_into_libs=yes | |
11943 | ;; | |
11944 | esac | |
11945 | ;; | |
11946 | ||
43e02a8a RW |
11947 | haiku*) |
11948 | version_type=linux | |
11949 | need_lib_prefix=no | |
11950 | need_version=no | |
11951 | dynamic_linker="$host_os runtime_loader" | |
11952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11953 | soname_spec='${libname}${release}${shared_ext}$major' | |
11954 | shlibpath_var=LIBRARY_PATH | |
11955 | shlibpath_overrides_runpath=yes | |
11956 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
11957 | hardcode_into_libs=yes | |
11958 | ;; | |
11959 | ||
1cf3d07d SE |
11960 | hpux9* | hpux10* | hpux11*) |
11961 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11962 | # link against other versions. | |
11963 | version_type=sunos | |
11964 | need_lib_prefix=no | |
11965 | need_version=no | |
11966 | case $host_cpu in | |
11967 | ia64*) | |
11968 | shrext_cmds='.so' | |
11969 | hardcode_into_libs=yes | |
11970 | dynamic_linker="$host_os dld.so" | |
11971 | shlibpath_var=LD_LIBRARY_PATH | |
11972 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11973 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11974 | soname_spec='${libname}${release}${shared_ext}$major' | |
11975 | if test "X$HPUX_IA64_MODE" = X32; then | |
11976 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11977 | else | |
11978 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11979 | fi | |
11980 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11981 | ;; | |
11982 | hppa*64*) | |
11983 | shrext_cmds='.sl' | |
11984 | hardcode_into_libs=yes | |
11985 | dynamic_linker="$host_os dld.sl" | |
11986 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11987 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11989 | soname_spec='${libname}${release}${shared_ext}$major' | |
11990 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11991 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11992 | ;; | |
11993 | *) | |
11994 | shrext_cmds='.sl' | |
11995 | dynamic_linker="$host_os dld.sl" | |
11996 | shlibpath_var=SHLIB_PATH | |
11997 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11998 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11999 | soname_spec='${libname}${release}${shared_ext}$major' | |
12000 | ;; | |
12001 | esac | |
43e02a8a | 12002 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 12003 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
12004 | # or fails outright, so override atomically: |
12005 | install_override_mode=555 | |
1cf3d07d SE |
12006 | ;; |
12007 | ||
12008 | interix[3-9]*) | |
12009 | version_type=linux | |
12010 | need_lib_prefix=no | |
12011 | need_version=no | |
12012 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12013 | soname_spec='${libname}${release}${shared_ext}$major' | |
12014 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12015 | shlibpath_var=LD_LIBRARY_PATH | |
12016 | shlibpath_overrides_runpath=no | |
12017 | hardcode_into_libs=yes | |
12018 | ;; | |
12019 | ||
12020 | irix5* | irix6* | nonstopux*) | |
12021 | case $host_os in | |
12022 | nonstopux*) version_type=nonstopux ;; | |
12023 | *) | |
12024 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
12025 | version_type=linux | |
12026 | else | |
12027 | version_type=irix | |
12028 | fi ;; | |
12029 | esac | |
12030 | need_lib_prefix=no | |
12031 | need_version=no | |
12032 | soname_spec='${libname}${release}${shared_ext}$major' | |
12033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12034 | case $host_os in | |
12035 | irix5* | nonstopux*) | |
12036 | libsuff= shlibsuff= | |
12037 | ;; | |
12038 | *) | |
12039 | case $LD in # libtool.m4 will add one of these switches to LD | |
12040 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12041 | libsuff= shlibsuff= libmagic=32-bit;; | |
12042 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12043 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12044 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12045 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12046 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12047 | esac | |
12048 | ;; | |
12049 | esac | |
12050 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12051 | shlibpath_overrides_runpath=no | |
12052 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12053 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12054 | hardcode_into_libs=yes | |
12055 | ;; | |
12056 | ||
12057 | # No shared lib support for Linux oldld, aout, or coff. | |
12058 | linux*oldld* | linux*aout* | linux*coff*) | |
12059 | dynamic_linker=no | |
12060 | ;; | |
12061 | ||
12062 | # This must be Linux ELF. | |
e9085da5 MR |
12063 | |
12064 | # uclinux* changes (here and below) have been submitted to the libtool | |
12065 | # project, but have not yet been accepted: they are GCC-local changes | |
12066 | # for the time being. (See | |
12067 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
f56de355 | 12068 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
1cf3d07d SE |
12069 | version_type=linux |
12070 | need_lib_prefix=no | |
12071 | need_version=no | |
12072 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12073 | soname_spec='${libname}${release}${shared_ext}$major' | |
12074 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12075 | shlibpath_var=LD_LIBRARY_PATH | |
12076 | shlibpath_overrides_runpath=no | |
baafc534 | 12077 | |
1cf3d07d | 12078 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 12079 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 12080 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
12081 | else |
12082 | lt_cv_shlibpath_overrides_runpath=no | |
12083 | save_LDFLAGS=$LDFLAGS | |
12084 | save_libdir=$libdir | |
12085 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12086 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12087 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12088 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12089 | fi |
5213506e | 12090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12091 | /* end confdefs.h. */ |
12092 | ||
12093 | int | |
12094 | main () | |
12095 | { | |
12096 | ||
12097 | ; | |
12098 | return 0; | |
12099 | } | |
12100 | _ACEOF | |
5213506e RW |
12101 | if ac_fn_c_try_link "$LINENO"; then : |
12102 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 12103 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 12104 | fi |
1cf3d07d | 12105 | fi |
5213506e RW |
12106 | rm -f core conftest.err conftest.$ac_objext \ |
12107 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
12108 | LDFLAGS=$save_LDFLAGS |
12109 | libdir=$save_libdir | |
12110 | ||
12111 | fi | |
12112 | ||
12113 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
12114 | |
12115 | # This implies no fast_install, which is unacceptable. | |
12116 | # Some rework will be needed to allow for fast_install | |
12117 | # before this can be enabled. | |
12118 | hardcode_into_libs=yes | |
12119 | ||
12120 | # Append ld.so.conf contents to the search path | |
12121 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 12122 | 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;s/"//g;/^$/d' | tr '\n' ' '` |
1cf3d07d SE |
12123 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
12124 | fi | |
12125 | ||
12126 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12127 | # powerpc, because MkLinux only supported shared libraries with the | |
12128 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12129 | # most powerpc-linux boxes support dynamic linking these days and | |
12130 | # people can always --disable-shared, the test was removed, and we | |
12131 | # assume the GNU/Linux dynamic linker is in use. | |
12132 | dynamic_linker='GNU/Linux ld.so' | |
12133 | ;; | |
12134 | ||
12135 | netbsd*) | |
12136 | version_type=sunos | |
12137 | need_lib_prefix=no | |
12138 | need_version=no | |
12139 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12140 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12141 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12142 | dynamic_linker='NetBSD (a.out) ld.so' | |
12143 | else | |
12144 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12145 | soname_spec='${libname}${release}${shared_ext}$major' | |
12146 | dynamic_linker='NetBSD ld.elf_so' | |
12147 | fi | |
12148 | shlibpath_var=LD_LIBRARY_PATH | |
12149 | shlibpath_overrides_runpath=yes | |
12150 | hardcode_into_libs=yes | |
12151 | ;; | |
12152 | ||
12153 | newsos6) | |
12154 | version_type=linux | |
12155 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12156 | shlibpath_var=LD_LIBRARY_PATH | |
12157 | shlibpath_overrides_runpath=yes | |
12158 | ;; | |
12159 | ||
12160 | *nto* | *qnx*) | |
12161 | version_type=qnx | |
12162 | need_lib_prefix=no | |
12163 | need_version=no | |
12164 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12165 | soname_spec='${libname}${release}${shared_ext}$major' | |
12166 | shlibpath_var=LD_LIBRARY_PATH | |
12167 | shlibpath_overrides_runpath=no | |
12168 | hardcode_into_libs=yes | |
12169 | dynamic_linker='ldqnx.so' | |
12170 | ;; | |
12171 | ||
12172 | openbsd*) | |
12173 | version_type=sunos | |
12174 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12175 | need_lib_prefix=no | |
12176 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12177 | case $host_os in | |
12178 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12179 | *) need_version=no ;; | |
12180 | esac | |
12181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12182 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12183 | shlibpath_var=LD_LIBRARY_PATH | |
12184 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12185 | case $host_os in | |
12186 | openbsd2.[89] | openbsd2.[89].*) | |
12187 | shlibpath_overrides_runpath=no | |
12188 | ;; | |
12189 | *) | |
12190 | shlibpath_overrides_runpath=yes | |
12191 | ;; | |
12192 | esac | |
12193 | else | |
12194 | shlibpath_overrides_runpath=yes | |
12195 | fi | |
12196 | ;; | |
12197 | ||
12198 | os2*) | |
12199 | libname_spec='$name' | |
12200 | shrext_cmds=".dll" | |
12201 | need_lib_prefix=no | |
12202 | library_names_spec='$libname${shared_ext} $libname.a' | |
12203 | dynamic_linker='OS/2 ld.exe' | |
12204 | shlibpath_var=LIBPATH | |
12205 | ;; | |
12206 | ||
12207 | osf3* | osf4* | osf5*) | |
12208 | version_type=osf | |
12209 | need_lib_prefix=no | |
12210 | need_version=no | |
12211 | soname_spec='${libname}${release}${shared_ext}$major' | |
12212 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12213 | shlibpath_var=LD_LIBRARY_PATH | |
12214 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12215 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12216 | ;; | |
12217 | ||
12218 | rdos*) | |
12219 | dynamic_linker=no | |
12220 | ;; | |
12221 | ||
12222 | solaris*) | |
12223 | version_type=linux | |
12224 | need_lib_prefix=no | |
12225 | need_version=no | |
12226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12227 | soname_spec='${libname}${release}${shared_ext}$major' | |
12228 | shlibpath_var=LD_LIBRARY_PATH | |
12229 | shlibpath_overrides_runpath=yes | |
12230 | hardcode_into_libs=yes | |
12231 | # ldd complains unless libraries are executable | |
12232 | postinstall_cmds='chmod +x $lib' | |
12233 | ;; | |
12234 | ||
12235 | sunos4*) | |
12236 | version_type=sunos | |
12237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12238 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12239 | shlibpath_var=LD_LIBRARY_PATH | |
12240 | shlibpath_overrides_runpath=yes | |
12241 | if test "$with_gnu_ld" = yes; then | |
12242 | need_lib_prefix=no | |
12243 | fi | |
12244 | need_version=yes | |
12245 | ;; | |
12246 | ||
12247 | sysv4 | sysv4.3*) | |
12248 | version_type=linux | |
12249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12250 | soname_spec='${libname}${release}${shared_ext}$major' | |
12251 | shlibpath_var=LD_LIBRARY_PATH | |
12252 | case $host_vendor in | |
12253 | sni) | |
12254 | shlibpath_overrides_runpath=no | |
12255 | need_lib_prefix=no | |
12256 | runpath_var=LD_RUN_PATH | |
12257 | ;; | |
12258 | siemens) | |
12259 | need_lib_prefix=no | |
12260 | ;; | |
12261 | motorola) | |
12262 | need_lib_prefix=no | |
12263 | need_version=no | |
12264 | shlibpath_overrides_runpath=no | |
12265 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12266 | ;; | |
12267 | esac | |
12268 | ;; | |
12269 | ||
12270 | sysv4*MP*) | |
12271 | if test -d /usr/nec ;then | |
12272 | version_type=linux | |
12273 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12274 | soname_spec='$libname${shared_ext}.$major' | |
12275 | shlibpath_var=LD_LIBRARY_PATH | |
12276 | fi | |
12277 | ;; | |
12278 | ||
12279 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12280 | version_type=freebsd-elf | |
12281 | need_lib_prefix=no | |
12282 | need_version=no | |
12283 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12284 | soname_spec='${libname}${release}${shared_ext}$major' | |
12285 | shlibpath_var=LD_LIBRARY_PATH | |
12286 | shlibpath_overrides_runpath=yes | |
12287 | hardcode_into_libs=yes | |
12288 | if test "$with_gnu_ld" = yes; then | |
12289 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12290 | else | |
12291 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12292 | case $host_os in | |
12293 | sco3.2v5*) | |
12294 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12295 | ;; | |
12296 | esac | |
12297 | fi | |
12298 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12299 | ;; | |
12300 | ||
12301 | tpf*) | |
12302 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12303 | version_type=linux | |
12304 | need_lib_prefix=no | |
12305 | need_version=no | |
d58dead8 | 12306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
12307 | shlibpath_var=LD_LIBRARY_PATH |
12308 | shlibpath_overrides_runpath=no | |
12309 | hardcode_into_libs=yes | |
12310 | ;; | |
12311 | ||
12312 | uts4*) | |
12313 | version_type=linux | |
12314 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12315 | soname_spec='${libname}${release}${shared_ext}$major' | |
12316 | shlibpath_var=LD_LIBRARY_PATH | |
12317 | ;; | |
12318 | ||
0ecd0f1c OH |
12319 | # Shared libraries for VwWorks, >= 7 only at this stage |
12320 | # and (fpic) still incompatible with "large" code models | |
12321 | # in a few configurations. Only for RTP mode in any case, | |
12322 | # and upon explicit request at configure time. | |
12323 | vxworks7*) | |
12324 | dynamic_linker=no | |
12325 | case ${with_multisubdir}-${enable_shared} in | |
12326 | *large*) | |
12327 | ;; | |
12328 | *mrtp*-yes) | |
12329 | version_type=linux | |
12330 | need_lib_prefix=no | |
12331 | need_version=no | |
12332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12333 | soname_spec='${libname}${release}${shared_ext}$major' | |
12334 | dynamic_linker="$host_os module_loader" | |
12335 | ;; | |
12336 | esac | |
12337 | ;; | |
1cf3d07d SE |
12338 | *) |
12339 | dynamic_linker=no | |
12340 | ;; | |
12341 | esac | |
5213506e RW |
12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
12343 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
12344 | test "$dynamic_linker" = no && can_build_shared=no |
12345 | ||
12346 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12347 | if test "$GCC" = yes; then | |
12348 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12349 | fi | |
12350 | ||
d58dead8 PG |
12351 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
12352 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12353 | fi | |
12354 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12355 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12356 | fi | |
12357 | ||
1cf3d07d SE |
12358 | |
12359 | ||
12360 | ||
12361 | ||
12362 | ||
12363 | ||
12364 | ||
12365 | ||
12366 | ||
12367 | ||
12368 | ||
12369 | ||
12370 | ||
12371 | ||
12372 | ||
12373 | ||
12374 | ||
12375 | ||
12376 | ||
12377 | ||
12378 | ||
12379 | ||
12380 | ||
12381 | ||
12382 | ||
12383 | ||
12384 | ||
12385 | ||
12386 | ||
12387 | ||
12388 | ||
12389 | ||
12390 | ||
12391 | ||
12392 | ||
12393 | ||
12394 | ||
12395 | ||
12396 | ||
12397 | ||
12398 | ||
12399 | ||
12400 | ||
12401 | ||
12402 | ||
12403 | ||
12404 | ||
12405 | ||
12406 | ||
12407 | ||
12408 | ||
12409 | ||
12410 | ||
12411 | ||
12412 | ||
12413 | ||
12414 | ||
12415 | ||
12416 | ||
12417 | ||
12418 | ||
12419 | ||
12420 | ||
12421 | ||
12422 | ||
12423 | ||
12424 | ||
12425 | ||
12426 | ||
12427 | ||
12428 | ||
12429 | ||
12430 | ||
12431 | ||
12432 | ||
12433 | ||
12434 | ||
12435 | ||
12436 | ||
12437 | ||
43e02a8a RW |
12438 | |
12439 | ||
12440 | ||
12441 | ||
12442 | ||
1cf3d07d SE |
12443 | |
12444 | ||
12445 | ||
12446 | ||
12447 | ||
12448 | ||
5213506e RW |
12449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
12450 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
12451 | hardcode_action= |
12452 | if test -n "$hardcode_libdir_flag_spec" || | |
12453 | test -n "$runpath_var" || | |
12454 | test "X$hardcode_automatic" = "Xyes" ; then | |
12455 | ||
12456 | # We can hardcode non-existent directories. | |
12457 | if test "$hardcode_direct" != no && | |
12458 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12459 | # have to relink, otherwise we might link with an installed library | |
12460 | # when we should be linking with a yet-to-be-installed one | |
12461 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12462 | test "$hardcode_minus_L" != no; then | |
12463 | # Linking always hardcodes the temporary library directory. | |
12464 | hardcode_action=relink | |
12465 | else | |
12466 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12467 | hardcode_action=immediate | |
12468 | fi | |
12469 | else | |
12470 | # We cannot hardcode anything, or else we can only hardcode existing | |
12471 | # directories. | |
12472 | hardcode_action=unsupported | |
12473 | fi | |
5213506e RW |
12474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
12475 | $as_echo "$hardcode_action" >&6; } | |
1cf3d07d SE |
12476 | |
12477 | if test "$hardcode_action" = relink || | |
12478 | test "$inherit_rpath" = yes; then | |
12479 | # Fast installation is not supported | |
12480 | enable_fast_install=no | |
12481 | elif test "$shlibpath_overrides_runpath" = yes || | |
12482 | test "$enable_shared" = no; then | |
12483 | # Fast installation is not necessary | |
12484 | enable_fast_install=needless | |
12485 | fi | |
12486 | ||
12487 | ||
12488 | ||
12489 | ||
12490 | ||
12491 | ||
12492 | if test "x$enable_dlopen" != xyes; then | |
12493 | enable_dlopen=unknown | |
12494 | enable_dlopen_self=unknown | |
12495 | enable_dlopen_self_static=unknown | |
12496 | else | |
12497 | lt_cv_dlopen=no | |
12498 | lt_cv_dlopen_libs= | |
12499 | ||
12500 | case $host_os in | |
12501 | beos*) | |
12502 | lt_cv_dlopen="load_add_on" | |
12503 | lt_cv_dlopen_libs= | |
12504 | lt_cv_dlopen_self=yes | |
12505 | ;; | |
12506 | ||
d58dead8 | 12507 | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12508 | lt_cv_dlopen="LoadLibrary" |
12509 | lt_cv_dlopen_libs= | |
12510 | ;; | |
12511 | ||
12512 | cygwin*) | |
12513 | lt_cv_dlopen="dlopen" | |
12514 | lt_cv_dlopen_libs= | |
12515 | ;; | |
12516 | ||
12517 | darwin*) | |
12518 | # if libdl is installed we need to link against it | |
5213506e RW |
12519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12520 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 12521 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 12522 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12523 | else |
12524 | ac_check_lib_save_LIBS=$LIBS | |
12525 | LIBS="-ldl $LIBS" | |
12526 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12527 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12528 | fi |
5213506e | 12529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12530 | /* end confdefs.h. */ |
12531 | ||
5213506e RW |
12532 | /* Override any GCC internal prototype to avoid an error. |
12533 | Use char because int might match the return type of a GCC | |
12534 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12535 | #ifdef __cplusplus |
12536 | extern "C" | |
12537 | #endif | |
1cf3d07d SE |
12538 | char dlopen (); |
12539 | int | |
12540 | main () | |
12541 | { | |
5213506e | 12542 | return dlopen (); |
1cf3d07d SE |
12543 | ; |
12544 | return 0; | |
12545 | } | |
12546 | _ACEOF | |
5213506e | 12547 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12548 | ac_cv_lib_dl_dlopen=yes |
12549 | else | |
5213506e | 12550 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 12551 | fi |
5213506e RW |
12552 | rm -f core conftest.err conftest.$ac_objext \ |
12553 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12554 | LIBS=$ac_check_lib_save_LIBS |
12555 | fi | |
5213506e RW |
12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12557 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 12558 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
12559 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12560 | else | |
12561 | ||
12562 | lt_cv_dlopen="dyld" | |
12563 | lt_cv_dlopen_libs= | |
12564 | lt_cv_dlopen_self=yes | |
12565 | ||
12566 | fi | |
12567 | ||
12568 | ;; | |
12569 | ||
12570 | *) | |
5213506e | 12571 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
22e05272 | 12572 | if test "x$ac_cv_func_shl_load" = xyes; then : |
1cf3d07d SE |
12573 | lt_cv_dlopen="shl_load" |
12574 | else | |
5213506e RW |
12575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12576 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
22e05272 | 12577 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
5213506e | 12578 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12579 | else |
12580 | ac_check_lib_save_LIBS=$LIBS | |
12581 | LIBS="-ldld $LIBS" | |
12582 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12583 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12584 | fi |
5213506e | 12585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12586 | /* end confdefs.h. */ |
12587 | ||
5213506e RW |
12588 | /* Override any GCC internal prototype to avoid an error. |
12589 | Use char because int might match the return type of a GCC | |
12590 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12591 | #ifdef __cplusplus |
12592 | extern "C" | |
12593 | #endif | |
1cf3d07d SE |
12594 | char shl_load (); |
12595 | int | |
12596 | main () | |
12597 | { | |
5213506e | 12598 | return shl_load (); |
1cf3d07d SE |
12599 | ; |
12600 | return 0; | |
12601 | } | |
12602 | _ACEOF | |
5213506e | 12603 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12604 | ac_cv_lib_dld_shl_load=yes |
12605 | else | |
5213506e | 12606 | ac_cv_lib_dld_shl_load=no |
1cf3d07d | 12607 | fi |
5213506e RW |
12608 | rm -f core conftest.err conftest.$ac_objext \ |
12609 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12610 | LIBS=$ac_check_lib_save_LIBS |
12611 | fi | |
5213506e RW |
12612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12613 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
22e05272 | 12614 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
d58dead8 | 12615 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
1cf3d07d | 12616 | else |
5213506e | 12617 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
22e05272 | 12618 | if test "x$ac_cv_func_dlopen" = xyes; then : |
1cf3d07d SE |
12619 | lt_cv_dlopen="dlopen" |
12620 | else | |
5213506e RW |
12621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12622 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 12623 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 12624 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12625 | else |
12626 | ac_check_lib_save_LIBS=$LIBS | |
12627 | LIBS="-ldl $LIBS" | |
12628 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12629 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12630 | fi |
5213506e | 12631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12632 | /* end confdefs.h. */ |
12633 | ||
5213506e RW |
12634 | /* Override any GCC internal prototype to avoid an error. |
12635 | Use char because int might match the return type of a GCC | |
12636 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12637 | #ifdef __cplusplus |
12638 | extern "C" | |
12639 | #endif | |
1cf3d07d SE |
12640 | char dlopen (); |
12641 | int | |
12642 | main () | |
12643 | { | |
5213506e | 12644 | return dlopen (); |
1cf3d07d SE |
12645 | ; |
12646 | return 0; | |
12647 | } | |
12648 | _ACEOF | |
5213506e | 12649 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12650 | ac_cv_lib_dl_dlopen=yes |
12651 | else | |
5213506e | 12652 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 12653 | fi |
5213506e RW |
12654 | rm -f core conftest.err conftest.$ac_objext \ |
12655 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12656 | LIBS=$ac_check_lib_save_LIBS |
12657 | fi | |
5213506e RW |
12658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12659 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 12660 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
12661 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12662 | else | |
5213506e RW |
12663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
12664 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
22e05272 | 12665 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
5213506e | 12666 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12667 | else |
12668 | ac_check_lib_save_LIBS=$LIBS | |
12669 | LIBS="-lsvld $LIBS" | |
12670 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12671 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12672 | fi |
5213506e | 12673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12674 | /* end confdefs.h. */ |
12675 | ||
5213506e RW |
12676 | /* Override any GCC internal prototype to avoid an error. |
12677 | Use char because int might match the return type of a GCC | |
12678 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12679 | #ifdef __cplusplus |
12680 | extern "C" | |
12681 | #endif | |
1cf3d07d SE |
12682 | char dlopen (); |
12683 | int | |
12684 | main () | |
12685 | { | |
5213506e | 12686 | return dlopen (); |
1cf3d07d SE |
12687 | ; |
12688 | return 0; | |
12689 | } | |
12690 | _ACEOF | |
5213506e | 12691 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12692 | ac_cv_lib_svld_dlopen=yes |
12693 | else | |
5213506e | 12694 | ac_cv_lib_svld_dlopen=no |
1cf3d07d | 12695 | fi |
5213506e RW |
12696 | rm -f core conftest.err conftest.$ac_objext \ |
12697 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12698 | LIBS=$ac_check_lib_save_LIBS |
12699 | fi | |
5213506e RW |
12700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12701 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
22e05272 | 12702 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
1cf3d07d SE |
12703 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12704 | else | |
5213506e RW |
12705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12706 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
22e05272 | 12707 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
5213506e | 12708 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12709 | else |
12710 | ac_check_lib_save_LIBS=$LIBS | |
12711 | LIBS="-ldld $LIBS" | |
12712 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12713 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12714 | fi |
5213506e | 12715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12716 | /* end confdefs.h. */ |
12717 | ||
5213506e RW |
12718 | /* Override any GCC internal prototype to avoid an error. |
12719 | Use char because int might match the return type of a GCC | |
12720 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12721 | #ifdef __cplusplus |
12722 | extern "C" | |
12723 | #endif | |
1cf3d07d SE |
12724 | char dld_link (); |
12725 | int | |
12726 | main () | |
12727 | { | |
5213506e | 12728 | return dld_link (); |
1cf3d07d SE |
12729 | ; |
12730 | return 0; | |
12731 | } | |
12732 | _ACEOF | |
5213506e | 12733 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12734 | ac_cv_lib_dld_dld_link=yes |
12735 | else | |
5213506e | 12736 | ac_cv_lib_dld_dld_link=no |
1cf3d07d | 12737 | fi |
5213506e RW |
12738 | rm -f core conftest.err conftest.$ac_objext \ |
12739 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12740 | LIBS=$ac_check_lib_save_LIBS |
12741 | fi | |
5213506e RW |
12742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12743 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
22e05272 | 12744 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
d58dead8 | 12745 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
1cf3d07d SE |
12746 | fi |
12747 | ||
12748 | ||
12749 | fi | |
12750 | ||
12751 | ||
12752 | fi | |
12753 | ||
12754 | ||
12755 | fi | |
12756 | ||
12757 | ||
12758 | fi | |
12759 | ||
12760 | ||
12761 | fi | |
12762 | ||
12763 | ;; | |
12764 | esac | |
12765 | ||
12766 | if test "x$lt_cv_dlopen" != xno; then | |
12767 | enable_dlopen=yes | |
12768 | else | |
12769 | enable_dlopen=no | |
12770 | fi | |
12771 | ||
12772 | case $lt_cv_dlopen in | |
12773 | dlopen) | |
12774 | save_CPPFLAGS="$CPPFLAGS" | |
12775 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12776 | ||
12777 | save_LDFLAGS="$LDFLAGS" | |
12778 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12779 | ||
12780 | save_LIBS="$LIBS" | |
12781 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12782 | ||
5213506e RW |
12783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12784 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
22e05272 | 12785 | if ${lt_cv_dlopen_self+:} false; then : |
5213506e | 12786 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12787 | else |
12788 | if test "$cross_compiling" = yes; then : | |
12789 | lt_cv_dlopen_self=cross | |
12790 | else | |
12791 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12792 | lt_status=$lt_dlunknown | |
12793 | cat > conftest.$ac_ext <<_LT_EOF | |
6d2294a8 | 12794 | #line 12794 "configure" |
1cf3d07d SE |
12795 | #include "confdefs.h" |
12796 | ||
12797 | #if HAVE_DLFCN_H | |
12798 | #include <dlfcn.h> | |
12799 | #endif | |
12800 | ||
12801 | #include <stdio.h> | |
12802 | ||
12803 | #ifdef RTLD_GLOBAL | |
12804 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12805 | #else | |
12806 | # ifdef DL_GLOBAL | |
12807 | # define LT_DLGLOBAL DL_GLOBAL | |
12808 | # else | |
12809 | # define LT_DLGLOBAL 0 | |
12810 | # endif | |
12811 | #endif | |
12812 | ||
12813 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12814 | find out it does not work in some platform. */ | |
12815 | #ifndef LT_DLLAZY_OR_NOW | |
12816 | # ifdef RTLD_LAZY | |
12817 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12818 | # else | |
12819 | # ifdef DL_LAZY | |
12820 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12821 | # else | |
12822 | # ifdef RTLD_NOW | |
12823 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12824 | # else | |
12825 | # ifdef DL_NOW | |
12826 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12827 | # else | |
12828 | # define LT_DLLAZY_OR_NOW 0 | |
12829 | # endif | |
12830 | # endif | |
12831 | # endif | |
12832 | # endif | |
12833 | #endif | |
12834 | ||
43e02a8a RW |
12835 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12836 | correspondingly for the symbols needed. */ | |
12837 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12838 | void fnord () __attribute__((visibility("default"))); | |
12839 | #endif | |
12840 | ||
12841 | void fnord () { int i=42; } | |
1cf3d07d SE |
12842 | int main () |
12843 | { | |
12844 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12845 | int status = $lt_dlunknown; | |
12846 | ||
12847 | if (self) | |
12848 | { | |
12849 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
12850 | else |
12851 | { | |
12852 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12853 | else puts (dlerror ()); | |
12854 | } | |
1cf3d07d SE |
12855 | /* dlclose (self); */ |
12856 | } | |
12857 | else | |
12858 | puts (dlerror ()); | |
12859 | ||
d58dead8 | 12860 | return status; |
1cf3d07d SE |
12861 | } |
12862 | _LT_EOF | |
5213506e | 12863 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
12864 | (eval $ac_link) 2>&5 |
12865 | ac_status=$? | |
5213506e RW |
12866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12867 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
12868 | (./conftest; exit; ) >&5 2>/dev/null |
12869 | lt_status=$? | |
12870 | case x$lt_status in | |
12871 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12872 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12873 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12874 | esac | |
12875 | else : | |
12876 | # compilation failed | |
12877 | lt_cv_dlopen_self=no | |
12878 | fi | |
12879 | fi | |
12880 | rm -fr conftest* | |
12881 | ||
12882 | ||
12883 | fi | |
5213506e RW |
12884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12885 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
1cf3d07d SE |
12886 | |
12887 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12888 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
5213506e RW |
12889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
12890 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
22e05272 | 12891 | if ${lt_cv_dlopen_self_static+:} false; then : |
5213506e | 12892 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12893 | else |
12894 | if test "$cross_compiling" = yes; then : | |
12895 | lt_cv_dlopen_self_static=cross | |
12896 | else | |
12897 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12898 | lt_status=$lt_dlunknown | |
12899 | cat > conftest.$ac_ext <<_LT_EOF | |
6d2294a8 | 12900 | #line 12900 "configure" |
1cf3d07d SE |
12901 | #include "confdefs.h" |
12902 | ||
12903 | #if HAVE_DLFCN_H | |
12904 | #include <dlfcn.h> | |
12905 | #endif | |
12906 | ||
12907 | #include <stdio.h> | |
12908 | ||
12909 | #ifdef RTLD_GLOBAL | |
12910 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12911 | #else | |
12912 | # ifdef DL_GLOBAL | |
12913 | # define LT_DLGLOBAL DL_GLOBAL | |
12914 | # else | |
12915 | # define LT_DLGLOBAL 0 | |
12916 | # endif | |
12917 | #endif | |
12918 | ||
12919 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12920 | find out it does not work in some platform. */ | |
12921 | #ifndef LT_DLLAZY_OR_NOW | |
12922 | # ifdef RTLD_LAZY | |
12923 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12924 | # else | |
12925 | # ifdef DL_LAZY | |
12926 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12927 | # else | |
12928 | # ifdef RTLD_NOW | |
12929 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12930 | # else | |
12931 | # ifdef DL_NOW | |
12932 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12933 | # else | |
12934 | # define LT_DLLAZY_OR_NOW 0 | |
12935 | # endif | |
12936 | # endif | |
12937 | # endif | |
12938 | # endif | |
12939 | #endif | |
12940 | ||
43e02a8a RW |
12941 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12942 | correspondingly for the symbols needed. */ | |
12943 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12944 | void fnord () __attribute__((visibility("default"))); | |
12945 | #endif | |
12946 | ||
12947 | void fnord () { int i=42; } | |
1cf3d07d SE |
12948 | int main () |
12949 | { | |
12950 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12951 | int status = $lt_dlunknown; | |
12952 | ||
12953 | if (self) | |
12954 | { | |
12955 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
12956 | else |
12957 | { | |
12958 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12959 | else puts (dlerror ()); | |
12960 | } | |
1cf3d07d SE |
12961 | /* dlclose (self); */ |
12962 | } | |
12963 | else | |
12964 | puts (dlerror ()); | |
12965 | ||
d58dead8 | 12966 | return status; |
1cf3d07d SE |
12967 | } |
12968 | _LT_EOF | |
5213506e | 12969 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
12970 | (eval $ac_link) 2>&5 |
12971 | ac_status=$? | |
5213506e RW |
12972 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12973 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
12974 | (./conftest; exit; ) >&5 2>/dev/null |
12975 | lt_status=$? | |
12976 | case x$lt_status in | |
12977 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12978 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12979 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12980 | esac | |
12981 | else : | |
12982 | # compilation failed | |
12983 | lt_cv_dlopen_self_static=no | |
12984 | fi | |
12985 | fi | |
12986 | rm -fr conftest* | |
12987 | ||
12988 | ||
12989 | fi | |
5213506e RW |
12990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12991 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
1cf3d07d SE |
12992 | fi |
12993 | ||
12994 | CPPFLAGS="$save_CPPFLAGS" | |
12995 | LDFLAGS="$save_LDFLAGS" | |
12996 | LIBS="$save_LIBS" | |
12997 | ;; | |
12998 | esac | |
12999 | ||
13000 | case $lt_cv_dlopen_self in | |
13001 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
13002 | *) enable_dlopen_self=unknown ;; | |
13003 | esac | |
13004 | ||
13005 | case $lt_cv_dlopen_self_static in | |
13006 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
13007 | *) enable_dlopen_self_static=unknown ;; | |
13008 | esac | |
13009 | fi | |
13010 | ||
13011 | ||
13012 | ||
13013 | ||
13014 | ||
13015 | ||
13016 | ||
13017 | ||
13018 | ||
13019 | ||
13020 | ||
13021 | ||
13022 | ||
13023 | ||
13024 | ||
13025 | ||
13026 | ||
13027 | striplib= | |
13028 | old_striplib= | |
5213506e RW |
13029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
13030 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
1cf3d07d SE |
13031 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
13032 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
13033 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
5213506e RW |
13034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13035 | $as_echo "yes" >&6; } | |
1cf3d07d SE |
13036 | else |
13037 | # FIXME - insert some real tests, host_os isn't really good enough | |
13038 | case $host_os in | |
13039 | darwin*) | |
13040 | if test -n "$STRIP" ; then | |
13041 | striplib="$STRIP -x" | |
13042 | old_striplib="$STRIP -S" | |
5213506e RW |
13043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13044 | $as_echo "yes" >&6; } | |
1cf3d07d | 13045 | else |
5213506e RW |
13046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13047 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13048 | fi |
13049 | ;; | |
13050 | *) | |
5213506e RW |
13051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13052 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13053 | ;; |
13054 | esac | |
13055 | fi | |
13056 | ||
13057 | ||
13058 | ||
13059 | ||
13060 | ||
13061 | ||
13062 | ||
13063 | ||
13064 | ||
13065 | ||
13066 | ||
13067 | ||
43e02a8a RW |
13068 | # Report which library types will actually be built |
13069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
13070 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13072 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 13073 | |
43e02a8a RW |
13074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13075 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
13076 | test "$can_build_shared" = "no" && enable_shared=no | |
1cf3d07d | 13077 | |
43e02a8a RW |
13078 | # On AIX, shared libraries and static libraries use the same namespace, and |
13079 | # are all built from PIC. | |
13080 | case $host_os in | |
13081 | aix3*) | |
13082 | test "$enable_shared" = yes && enable_static=no | |
13083 | if test -n "$RANLIB"; then | |
13084 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13085 | postinstall_cmds='$RANLIB $lib' | |
13086 | fi | |
13087 | ;; | |
1cf3d07d | 13088 | |
43e02a8a RW |
13089 | aix[4-9]*) |
13090 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
13091 | test "$enable_shared" = yes && enable_static=no | |
13092 | fi | |
13093 | ;; | |
13094 | esac | |
13095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
13096 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 13097 | |
43e02a8a RW |
13098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13099 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13100 | # Make sure either enable_shared or enable_static is yes. | |
13101 | test "$enable_shared" = yes || enable_static=yes | |
13102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
13103 | $as_echo "$enable_static" >&6; } | |
1cf3d07d | 13104 | |
1cf3d07d | 13105 | |
1cf3d07d | 13106 | |
1cf3d07d SE |
13107 | |
13108 | fi | |
1cf3d07d SE |
13109 | ac_ext=c |
13110 | ac_cpp='$CPP $CPPFLAGS' | |
13111 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13112 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13113 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13114 | ||
43e02a8a RW |
13115 | CC="$lt_save_CC" |
13116 | ||
13117 | ||
13118 | ||
13119 | ||
13120 | ||
13121 | ||
13122 | ||
13123 | ||
13124 | ||
13125 | ||
13126 | ||
13127 | ||
13128 | ||
13129 | ac_config_commands="$ac_config_commands libtool" | |
13130 | ||
13131 | ||
13132 | ||
13133 | ||
13134 | # Only expand once: | |
13135 | ||
13136 | ||
9b025925 IS |
13137 | LIBM= |
13138 | case $host in | |
13139 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | |
13140 | # These system don't have libm, or don't need it | |
13141 | ;; | |
13142 | *-ncr-sysv4.3*) | |
13143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 | |
13144 | $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } | |
13145 | if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : | |
13146 | $as_echo_n "(cached) " >&6 | |
13147 | else | |
13148 | ac_check_lib_save_LIBS=$LIBS | |
13149 | LIBS="-lmw $LIBS" | |
13150 | if test x$gcc_no_link = xyes; then | |
13151 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
13152 | fi | |
13153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13154 | /* end confdefs.h. */ | |
13155 | ||
13156 | /* Override any GCC internal prototype to avoid an error. | |
13157 | Use char because int might match the return type of a GCC | |
13158 | builtin and then its argument prototype would still apply. */ | |
13159 | #ifdef __cplusplus | |
13160 | extern "C" | |
13161 | #endif | |
13162 | char _mwvalidcheckl (); | |
13163 | int | |
13164 | main () | |
13165 | { | |
13166 | return _mwvalidcheckl (); | |
13167 | ; | |
13168 | return 0; | |
13169 | } | |
13170 | _ACEOF | |
13171 | if ac_fn_c_try_link "$LINENO"; then : | |
13172 | ac_cv_lib_mw__mwvalidcheckl=yes | |
13173 | else | |
13174 | ac_cv_lib_mw__mwvalidcheckl=no | |
13175 | fi | |
13176 | rm -f core conftest.err conftest.$ac_objext \ | |
13177 | conftest$ac_exeext conftest.$ac_ext | |
13178 | LIBS=$ac_check_lib_save_LIBS | |
13179 | fi | |
13180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 | |
13181 | $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } | |
13182 | if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : | |
13183 | LIBM="-lmw" | |
13184 | fi | |
13185 | ||
13186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 | |
13187 | $as_echo_n "checking for cos in -lm... " >&6; } | |
13188 | if ${ac_cv_lib_m_cos+:} false; then : | |
13189 | $as_echo_n "(cached) " >&6 | |
13190 | else | |
13191 | ac_check_lib_save_LIBS=$LIBS | |
13192 | LIBS="-lm $LIBS" | |
13193 | if test x$gcc_no_link = xyes; then | |
13194 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
13195 | fi | |
13196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13197 | /* end confdefs.h. */ | |
13198 | ||
13199 | /* Override any GCC internal prototype to avoid an error. | |
13200 | Use char because int might match the return type of a GCC | |
13201 | builtin and then its argument prototype would still apply. */ | |
13202 | #ifdef __cplusplus | |
13203 | extern "C" | |
13204 | #endif | |
13205 | char cos (); | |
13206 | int | |
13207 | main () | |
13208 | { | |
13209 | return cos (); | |
13210 | ; | |
13211 | return 0; | |
13212 | } | |
13213 | _ACEOF | |
13214 | if ac_fn_c_try_link "$LINENO"; then : | |
13215 | ac_cv_lib_m_cos=yes | |
13216 | else | |
13217 | ac_cv_lib_m_cos=no | |
13218 | fi | |
13219 | rm -f core conftest.err conftest.$ac_objext \ | |
13220 | conftest$ac_exeext conftest.$ac_ext | |
13221 | LIBS=$ac_check_lib_save_LIBS | |
13222 | fi | |
13223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 | |
13224 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
13225 | if test "x$ac_cv_lib_m_cos" = xyes; then : | |
13226 | LIBM="$LIBM -lm" | |
13227 | fi | |
13228 | ||
13229 | ;; | |
13230 | *) | |
13231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 | |
13232 | $as_echo_n "checking for cos in -lm... " >&6; } | |
13233 | if ${ac_cv_lib_m_cos+:} false; then : | |
13234 | $as_echo_n "(cached) " >&6 | |
13235 | else | |
13236 | ac_check_lib_save_LIBS=$LIBS | |
13237 | LIBS="-lm $LIBS" | |
13238 | if test x$gcc_no_link = xyes; then | |
13239 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
13240 | fi | |
13241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13242 | /* end confdefs.h. */ | |
13243 | ||
13244 | /* Override any GCC internal prototype to avoid an error. | |
13245 | Use char because int might match the return type of a GCC | |
13246 | builtin and then its argument prototype would still apply. */ | |
13247 | #ifdef __cplusplus | |
13248 | extern "C" | |
13249 | #endif | |
13250 | char cos (); | |
13251 | int | |
13252 | main () | |
13253 | { | |
13254 | return cos (); | |
13255 | ; | |
13256 | return 0; | |
13257 | } | |
13258 | _ACEOF | |
13259 | if ac_fn_c_try_link "$LINENO"; then : | |
13260 | ac_cv_lib_m_cos=yes | |
13261 | else | |
13262 | ac_cv_lib_m_cos=no | |
13263 | fi | |
13264 | rm -f core conftest.err conftest.$ac_objext \ | |
13265 | conftest$ac_exeext conftest.$ac_ext | |
13266 | LIBS=$ac_check_lib_save_LIBS | |
13267 | fi | |
13268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 | |
13269 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
13270 | if test "x$ac_cv_lib_m_cos" = xyes; then : | |
13271 | LIBM="-lm" | |
13272 | fi | |
13273 | ||
13274 | ;; | |
13275 | esac | |
13276 | ||
13277 | ||
43e02a8a RW |
13278 | |
13279 | ||
7de6ba7a DK |
13280 | |
13281 | case $host in | |
13282 | *-cygwin* | *-mingw*) | |
13283 | # 'host' will be top-level target in the case of a target lib, | |
13284 | # we must compare to with_cross_host to decide if this is a native | |
13285 | # or cross-compiler and select where to install dlls appropriately. | |
13286 | if test -n "$with_cross_host" && | |
13287 | test x"$with_cross_host" != x"no"; then | |
13288 | lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
13289 | else | |
13290 | lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
13291 | fi | |
13292 | ;; | |
13293 | *) | |
13294 | lt_host_flags= | |
13295 | ;; | |
13296 | esac | |
13297 | ||
13298 | ||
13299 | ||
13300 | ||
13301 | ||
43e02a8a | 13302 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 |
1cf3d07d | 13303 | |
43e02a8a RW |
13304 | # We need gfortran to compile parts of the library |
13305 | #AC_PROG_FC(gfortran) | |
13306 | FC="$GFORTRAN" | |
5213506e RW |
13307 | ac_ext=${ac_fc_srcext-f} |
13308 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13309 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
13310 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13311 | if test -n "$ac_tool_prefix"; then | |
43e02a8a | 13312 | for ac_prog in gfortran |
1cf3d07d SE |
13313 | do |
13314 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13315 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
13316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13317 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13318 | if ${ac_cv_prog_FC+:} false; then : |
5213506e | 13319 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13320 | else |
13321 | if test -n "$FC"; then | |
13322 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
13323 | else | |
13324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13325 | for as_dir in $PATH | |
13326 | do | |
13327 | IFS=$as_save_IFS | |
13328 | test -z "$as_dir" && as_dir=. | |
5213506e | 13329 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13330 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 13331 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
5213506e | 13332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
13333 | break 2 |
13334 | fi | |
13335 | done | |
5213506e RW |
13336 | done |
13337 | IFS=$as_save_IFS | |
1cf3d07d SE |
13338 | |
13339 | fi | |
13340 | fi | |
13341 | FC=$ac_cv_prog_FC | |
13342 | if test -n "$FC"; then | |
5213506e RW |
13343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
13344 | $as_echo "$FC" >&6; } | |
1cf3d07d | 13345 | else |
5213506e RW |
13346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13347 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13348 | fi |
13349 | ||
5213506e | 13350 | |
1cf3d07d SE |
13351 | test -n "$FC" && break |
13352 | done | |
13353 | fi | |
13354 | if test -z "$FC"; then | |
13355 | ac_ct_FC=$FC | |
43e02a8a | 13356 | for ac_prog in gfortran |
1cf3d07d SE |
13357 | do |
13358 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13359 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
13360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13361 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13362 | if ${ac_cv_prog_ac_ct_FC+:} false; then : |
5213506e | 13363 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13364 | else |
13365 | if test -n "$ac_ct_FC"; then | |
13366 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
13367 | else | |
13368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13369 | for as_dir in $PATH | |
13370 | do | |
13371 | IFS=$as_save_IFS | |
13372 | test -z "$as_dir" && as_dir=. | |
5213506e | 13373 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13374 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 13375 | ac_cv_prog_ac_ct_FC="$ac_prog" |
5213506e | 13376 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
13377 | break 2 |
13378 | fi | |
13379 | done | |
5213506e RW |
13380 | done |
13381 | IFS=$as_save_IFS | |
1cf3d07d SE |
13382 | |
13383 | fi | |
13384 | fi | |
13385 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
13386 | if test -n "$ac_ct_FC"; then | |
5213506e RW |
13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
13388 | $as_echo "$ac_ct_FC" >&6; } | |
1cf3d07d | 13389 | else |
5213506e RW |
13390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13391 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13392 | fi |
13393 | ||
5213506e | 13394 | |
1cf3d07d | 13395 | test -n "$ac_ct_FC" && break |
38d24731 RW |
13396 | done |
13397 | ||
5213506e RW |
13398 | if test "x$ac_ct_FC" = x; then |
13399 | FC="" | |
13400 | else | |
13401 | case $cross_compiling:$ac_tool_warned in | |
13402 | yes:) | |
13403 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13404 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13405 | ac_tool_warned=yes ;; | |
13406 | esac | |
13407 | FC=$ac_ct_FC | |
13408 | fi | |
1cf3d07d SE |
13409 | fi |
13410 | ||
13411 | ||
13412 | # Provide some information about the compiler. | |
5213506e RW |
13413 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
13414 | set X $ac_compile | |
13415 | ac_compiler=$2 | |
13416 | for ac_option in --version -v -V -qversion; do | |
13417 | { { ac_try="$ac_compiler $ac_option >&5" | |
13418 | case "(($ac_try" in | |
13419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13420 | *) ac_try_echo=$ac_try;; | |
13421 | esac | |
13422 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
13423 | $as_echo "$ac_try_echo"; } >&5 | |
13424 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1cf3d07d | 13425 | ac_status=$? |
5213506e RW |
13426 | if test -s conftest.err; then |
13427 | sed '10a\ | |
13428 | ... rest of stderr output deleted ... | |
13429 | 10q' conftest.err >conftest.er1 | |
13430 | cat conftest.er1 >&5 | |
5213506e | 13431 | fi |
22e05272 | 13432 | rm -f conftest.er1 conftest.err |
5213506e RW |
13433 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13434 | test $ac_status = 0; } | |
13435 | done | |
1cf3d07d SE |
13436 | rm -f a.out |
13437 | ||
13438 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
13439 | # input file. (Note that this only needs to work for GNU compilers.) | |
13440 | ac_save_ext=$ac_ext | |
13441 | ac_ext=F | |
5213506e RW |
13442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
13443 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | |
22e05272 | 13444 | if ${ac_cv_fc_compiler_gnu+:} false; then : |
5213506e | 13445 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 13446 | else |
5213506e | 13447 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13448 | program main |
13449 | #ifndef __GNUC__ | |
13450 | choke me | |
13451 | #endif | |
13452 | ||
13453 | end | |
13454 | _ACEOF | |
5213506e | 13455 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
13456 | ac_compiler_gnu=yes |
13457 | else | |
5213506e | 13458 | ac_compiler_gnu=no |
1cf3d07d | 13459 | fi |
5213506e | 13460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
13461 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
13462 | ||
13463 | fi | |
5213506e RW |
13464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
13465 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
1cf3d07d | 13466 | ac_ext=$ac_save_ext |
5213506e RW |
13467 | ac_test_FCFLAGS=${FCFLAGS+set} |
13468 | ac_save_FCFLAGS=$FCFLAGS | |
1cf3d07d | 13469 | FCFLAGS= |
5213506e RW |
13470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
13471 | $as_echo_n "checking whether $FC accepts -g... " >&6; } | |
22e05272 | 13472 | if ${ac_cv_prog_fc_g+:} false; then : |
5213506e | 13473 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13474 | else |
13475 | FCFLAGS=-g | |
5213506e | 13476 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13477 | program main |
13478 | ||
13479 | end | |
13480 | _ACEOF | |
5213506e | 13481 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
13482 | ac_cv_prog_fc_g=yes |
13483 | else | |
5213506e | 13484 | ac_cv_prog_fc_g=no |
1cf3d07d | 13485 | fi |
5213506e | 13486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
13487 | |
13488 | fi | |
5213506e RW |
13489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
13490 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
13491 | if test "$ac_test_FCFLAGS" = set; then | |
13492 | FCFLAGS=$ac_save_FCFLAGS | |
1cf3d07d SE |
13493 | elif test $ac_cv_prog_fc_g = yes; then |
13494 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13495 | FCFLAGS="-g -O2" | |
13496 | else | |
13497 | FCFLAGS="-g" | |
13498 | fi | |
13499 | else | |
13500 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13501 | FCFLAGS="-O2" | |
13502 | else | |
13503 | FCFLAGS= | |
13504 | fi | |
13505 | fi | |
13506 | ||
22e05272 JM |
13507 | if test $ac_compiler_gnu = yes; then |
13508 | GFC=yes | |
13509 | else | |
13510 | GFC= | |
13511 | fi | |
1cf3d07d SE |
13512 | ac_ext=c |
13513 | ac_cpp='$CPP $CPPFLAGS' | |
13514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13515 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13516 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13517 | ||
5213506e RW |
13518 | ac_ext=${ac_fc_srcext-f} |
13519 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13520 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
13521 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13522 | ||
13523 | ||
43e02a8a RW |
13524 | if test -z "$FC" || test "X$FC" = "Xno"; then |
13525 | _lt_disable_FC=yes | |
13526 | fi | |
13527 | ||
1cf3d07d SE |
13528 | archive_cmds_need_lc_FC=no |
13529 | allow_undefined_flag_FC= | |
13530 | always_export_symbols_FC=no | |
13531 | archive_expsym_cmds_FC= | |
13532 | export_dynamic_flag_spec_FC= | |
13533 | hardcode_direct_FC=no | |
13534 | hardcode_direct_absolute_FC=no | |
13535 | hardcode_libdir_flag_spec_FC= | |
13536 | hardcode_libdir_flag_spec_ld_FC= | |
13537 | hardcode_libdir_separator_FC= | |
13538 | hardcode_minus_L_FC=no | |
13539 | hardcode_automatic_FC=no | |
13540 | inherit_rpath_FC=no | |
13541 | module_cmds_FC= | |
13542 | module_expsym_cmds_FC= | |
13543 | link_all_deplibs_FC=unknown | |
13544 | old_archive_cmds_FC=$old_archive_cmds | |
43e02a8a RW |
13545 | reload_flag_FC=$reload_flag |
13546 | reload_cmds_FC=$reload_cmds | |
1cf3d07d SE |
13547 | no_undefined_flag_FC= |
13548 | whole_archive_flag_spec_FC= | |
13549 | enable_shared_with_static_runtimes_FC=no | |
13550 | ||
13551 | # Source file extension for fc test sources. | |
13552 | ac_ext=${ac_fc_srcext-f} | |
13553 | ||
13554 | # Object file extension for compiled fc test sources. | |
13555 | objext=o | |
13556 | objext_FC=$objext | |
13557 | ||
13558 | # No sense in running all these tests if we already determined that | |
13559 | # the FC compiler isn't working. Some variables (like enable_shared) | |
13560 | # are currently assumed to apply to all compilers on this platform, | |
13561 | # and will be corrupted by setting them based on a non-working compiler. | |
13562 | if test "$_lt_disable_FC" != yes; then | |
13563 | # Code to be used in simple compile tests | |
13564 | lt_simple_compile_test_code="\ | |
13565 | subroutine t | |
13566 | return | |
13567 | end | |
13568 | " | |
13569 | ||
13570 | # Code to be used in simple link tests | |
13571 | lt_simple_link_test_code="\ | |
13572 | program t | |
13573 | end | |
13574 | " | |
13575 | ||
13576 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13577 | ||
13578 | ||
13579 | ||
13580 | ||
13581 | ||
13582 | ||
13583 | # If no C compiler was specified, use CC. | |
13584 | LTCC=${LTCC-"$CC"} | |
13585 | ||
13586 | # If no C compiler flags were specified, use CFLAGS. | |
13587 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13588 | ||
13589 | # Allow CC to be a program name with arguments. | |
13590 | compiler=$CC | |
13591 | ||
13592 | ||
13593 | # save warnings/boilerplate of simple test code | |
13594 | ac_outfile=conftest.$ac_objext | |
13595 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13596 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13597 | _lt_compiler_boilerplate=`cat conftest.err` | |
13598 | $RM conftest* | |
13599 | ||
13600 | ac_outfile=conftest.$ac_objext | |
13601 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13602 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13603 | _lt_linker_boilerplate=`cat conftest.err` | |
d58dead8 | 13604 | $RM -r conftest* |
1cf3d07d SE |
13605 | |
13606 | ||
13607 | # Allow CC to be a program name with arguments. | |
13608 | lt_save_CC="$CC" | |
d58dead8 | 13609 | lt_save_GCC=$GCC |
1cf3d07d SE |
13610 | CC=${FC-"f95"} |
13611 | compiler=$CC | |
d58dead8 PG |
13612 | GCC=$ac_cv_fc_compiler_gnu |
13613 | ||
1cf3d07d SE |
13614 | compiler_FC=$CC |
13615 | for cc_temp in $compiler""; do | |
13616 | case $cc_temp in | |
13617 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13618 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13619 | \-*) ;; | |
13620 | *) break;; | |
13621 | esac | |
13622 | done | |
43e02a8a | 13623 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
13624 | |
13625 | ||
13626 | if test -n "$compiler"; then | |
5213506e RW |
13627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
13628 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13630 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 13631 | |
5213506e RW |
13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13633 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
1cf3d07d SE |
13634 | test "$can_build_shared" = "no" && enable_shared=no |
13635 | ||
13636 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13637 | # are all built from PIC. | |
13638 | case $host_os in | |
13639 | aix3*) | |
13640 | test "$enable_shared" = yes && enable_static=no | |
13641 | if test -n "$RANLIB"; then | |
13642 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13643 | postinstall_cmds='$RANLIB $lib' | |
13644 | fi | |
13645 | ;; | |
4f6bebc3 | 13646 | aix[4-9]*) |
1cf3d07d SE |
13647 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13648 | test "$enable_shared" = yes && enable_static=no | |
13649 | fi | |
13650 | ;; | |
13651 | esac | |
5213506e RW |
13652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
13653 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 13654 | |
5213506e RW |
13655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13656 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
1cf3d07d SE |
13657 | # Make sure either enable_shared or enable_static is yes. |
13658 | test "$enable_shared" = yes || enable_static=yes | |
5213506e RW |
13659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
13660 | $as_echo "$enable_static" >&6; } | |
1cf3d07d SE |
13661 | |
13662 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
13663 | LD_FC="$LD" | |
13664 | ||
13665 | ## CAVEAT EMPTOR: | |
13666 | ## There is no encapsulation within the following macros, do not change | |
13667 | ## the running order or otherwise move them around unless you know exactly | |
13668 | ## what you are doing... | |
13669 | # Dependencies to place before and after the object being linked: | |
13670 | predep_objects_FC= | |
13671 | postdep_objects_FC= | |
13672 | predeps_FC= | |
13673 | postdeps_FC= | |
13674 | compiler_lib_search_path_FC= | |
13675 | ||
13676 | cat > conftest.$ac_ext <<_LT_EOF | |
13677 | subroutine foo | |
13678 | implicit none | |
13679 | integer a | |
13680 | a=0 | |
13681 | return | |
13682 | end | |
13683 | _LT_EOF | |
13684 | ||
5213506e | 13685 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
13686 | (eval $ac_compile) 2>&5 |
13687 | ac_status=$? | |
5213506e RW |
13688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13689 | test $ac_status = 0; }; then | |
1cf3d07d SE |
13690 | # Parse the compiler output and extract the necessary |
13691 | # objects, libraries and library flags. | |
13692 | ||
13693 | # Sentinel used to keep track of whether or not we are before | |
13694 | # the conftest object file. | |
13695 | pre_test_object_deps_done=no | |
13696 | ||
d58dead8 | 13697 | for p in `eval "$output_verbose_link_cmd"`; do |
1cf3d07d SE |
13698 | case $p in |
13699 | ||
13700 | -L* | -R* | -l*) | |
13701 | # Some compilers place space between "-{L,R}" and the path. | |
13702 | # Remove the space. | |
13703 | if test $p = "-L" || | |
13704 | test $p = "-R"; then | |
13705 | prev=$p | |
13706 | continue | |
13707 | else | |
13708 | prev= | |
13709 | fi | |
13710 | ||
13711 | if test "$pre_test_object_deps_done" = no; then | |
13712 | case $p in | |
13713 | -L* | -R*) | |
13714 | # Internal compiler library paths should come after those | |
13715 | # provided the user. The postdeps already come after the | |
13716 | # user supplied libs so there is no need to process them. | |
13717 | if test -z "$compiler_lib_search_path_FC"; then | |
13718 | compiler_lib_search_path_FC="${prev}${p}" | |
13719 | else | |
13720 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
13721 | fi | |
13722 | ;; | |
13723 | # The "-l" case would never come before the object being | |
13724 | # linked, so don't bother handling this case. | |
13725 | esac | |
13726 | else | |
13727 | if test -z "$postdeps_FC"; then | |
13728 | postdeps_FC="${prev}${p}" | |
13729 | else | |
13730 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
13731 | fi | |
13732 | fi | |
13733 | ;; | |
13734 | ||
13735 | *.$objext) | |
13736 | # This assumes that the test object file only shows up | |
13737 | # once in the compiler output. | |
13738 | if test "$p" = "conftest.$objext"; then | |
13739 | pre_test_object_deps_done=yes | |
13740 | continue | |
13741 | fi | |
13742 | ||
13743 | if test "$pre_test_object_deps_done" = no; then | |
13744 | if test -z "$predep_objects_FC"; then | |
13745 | predep_objects_FC="$p" | |
13746 | else | |
13747 | predep_objects_FC="$predep_objects_FC $p" | |
13748 | fi | |
13749 | else | |
13750 | if test -z "$postdep_objects_FC"; then | |
13751 | postdep_objects_FC="$p" | |
13752 | else | |
13753 | postdep_objects_FC="$postdep_objects_FC $p" | |
13754 | fi | |
13755 | fi | |
13756 | ;; | |
13757 | ||
13758 | *) ;; # Ignore the rest. | |
13759 | ||
13760 | esac | |
13761 | done | |
13762 | ||
13763 | # Clean up. | |
13764 | rm -f a.out a.exe | |
13765 | else | |
13766 | echo "libtool.m4: error: problem compiling FC test program" | |
13767 | fi | |
13768 | ||
13769 | $RM -f confest.$objext | |
13770 | ||
13771 | # PORTME: override above test on systems where it is broken | |
13772 | ||
13773 | ||
13774 | case " $postdeps_FC " in | |
13775 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
13776 | esac | |
d58dead8 PG |
13777 | compiler_lib_search_dirs_FC= |
13778 | if test -n "${compiler_lib_search_path_FC}"; then | |
13779 | compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13780 | fi | |
13781 | ||
13782 | ||
13783 | ||
13784 | ||
13785 | ||
1cf3d07d SE |
13786 | |
13787 | ||
13788 | ||
13789 | ||
13790 | ||
13791 | ||
13792 | ||
13793 | ||
13794 | ||
13795 | ||
13796 | ||
13797 | ||
13798 | ||
13799 | ||
13800 | ||
13801 | ||
13802 | ||
13803 | ||
13804 | ||
13805 | ||
13806 | ||
13807 | ||
13808 | ||
13809 | ||
13810 | ||
13811 | ||
13812 | lt_prog_compiler_wl_FC= | |
13813 | lt_prog_compiler_pic_FC= | |
13814 | lt_prog_compiler_static_FC= | |
13815 | ||
5213506e RW |
13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
13817 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
13818 | |
13819 | if test "$GCC" = yes; then | |
13820 | lt_prog_compiler_wl_FC='-Wl,' | |
13821 | lt_prog_compiler_static_FC='-static' | |
13822 | ||
13823 | case $host_os in | |
13824 | aix*) | |
13825 | # All AIX code is PIC. | |
13826 | if test "$host_cpu" = ia64; then | |
13827 | # AIX 5 now supports IA64 processor | |
13828 | lt_prog_compiler_static_FC='-Bstatic' | |
13829 | fi | |
bad8a4a7 | 13830 | lt_prog_compiler_pic_FC='-fPIC' |
1cf3d07d SE |
13831 | ;; |
13832 | ||
13833 | amigaos*) | |
d58dead8 PG |
13834 | case $host_cpu in |
13835 | powerpc) | |
13836 | # see comment about AmigaOS4 .so support | |
13837 | lt_prog_compiler_pic_FC='-fPIC' | |
13838 | ;; | |
13839 | m68k) | |
13840 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13841 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13842 | # like `-m68040'. | |
13843 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
13844 | ;; | |
13845 | esac | |
1cf3d07d SE |
13846 | ;; |
13847 | ||
13848 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13849 | # PIC is the default for these OSes. | |
13850 | ;; | |
13851 | ||
d58dead8 | 13852 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
13853 | # This hack is so that the source file can tell whether it is being |
13854 | # built for inclusion in a dll (and should export symbols for example). | |
13855 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13856 | # (--disable-auto-import) libraries | |
13857 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13858 | ;; | |
13859 | ||
13860 | darwin* | rhapsody*) | |
13861 | # PIC is the default on this platform | |
13862 | # Common symbols not allowed in MH_DYLIB files | |
13863 | lt_prog_compiler_pic_FC='-fno-common' | |
13864 | ;; | |
13865 | ||
43e02a8a RW |
13866 | haiku*) |
13867 | # PIC is the default for Haiku. | |
13868 | # The "-static" flag exists, but is broken. | |
13869 | lt_prog_compiler_static_FC= | |
13870 | ;; | |
13871 | ||
1cf3d07d | 13872 | hpux*) |
d58dead8 PG |
13873 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
13874 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13875 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 13876 | case $host_cpu in |
d58dead8 | 13877 | hppa*64*) |
1cf3d07d SE |
13878 | # +Z the default |
13879 | ;; | |
13880 | *) | |
13881 | lt_prog_compiler_pic_FC='-fPIC' | |
13882 | ;; | |
13883 | esac | |
13884 | ;; | |
13885 | ||
13886 | interix[3-9]*) | |
13887 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13888 | # Instead, we relocate shared libraries at runtime. | |
13889 | ;; | |
13890 | ||
13891 | msdosdjgpp*) | |
13892 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13893 | # on systems that don't support them. | |
13894 | lt_prog_compiler_can_build_shared_FC=no | |
13895 | enable_shared=no | |
13896 | ;; | |
13897 | ||
13898 | *nto* | *qnx*) | |
13899 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13900 | # it will coredump. | |
13901 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13902 | ;; | |
13903 | ||
13904 | sysv4*MP*) | |
13905 | if test -d /usr/nec; then | |
13906 | lt_prog_compiler_pic_FC=-Kconform_pic | |
13907 | fi | |
13908 | ;; | |
13909 | ||
13910 | *) | |
13911 | lt_prog_compiler_pic_FC='-fPIC' | |
13912 | ;; | |
13913 | esac | |
43e02a8a RW |
13914 | |
13915 | case $cc_basename in | |
13916 | nvcc*) # Cuda Compiler Driver 2.2 | |
13917 | lt_prog_compiler_wl_FC='-Xlinker ' | |
13918 | lt_prog_compiler_pic_FC='-Xcompiler -fPIC' | |
13919 | ;; | |
13920 | esac | |
1cf3d07d SE |
13921 | else |
13922 | # PORTME Check for flag to pass linker flags through the system compiler. | |
13923 | case $host_os in | |
13924 | aix*) | |
13925 | lt_prog_compiler_wl_FC='-Wl,' | |
13926 | if test "$host_cpu" = ia64; then | |
13927 | # AIX 5 now supports IA64 processor | |
13928 | lt_prog_compiler_static_FC='-Bstatic' | |
13929 | else | |
13930 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
13931 | fi | |
13932 | ;; | |
1cf3d07d | 13933 | |
d58dead8 | 13934 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
13935 | # This hack is so that the source file can tell whether it is being |
13936 | # built for inclusion in a dll (and should export symbols for example). | |
13937 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13938 | ;; | |
13939 | ||
13940 | hpux9* | hpux10* | hpux11*) | |
13941 | lt_prog_compiler_wl_FC='-Wl,' | |
13942 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13943 | # not for PA HP-UX. | |
13944 | case $host_cpu in | |
13945 | hppa*64*|ia64*) | |
13946 | # +Z the default | |
13947 | ;; | |
13948 | *) | |
13949 | lt_prog_compiler_pic_FC='+Z' | |
13950 | ;; | |
13951 | esac | |
13952 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13953 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
13954 | ;; | |
13955 | ||
13956 | irix5* | irix6* | nonstopux*) | |
13957 | lt_prog_compiler_wl_FC='-Wl,' | |
13958 | # PIC (with -KPIC) is the default. | |
13959 | lt_prog_compiler_static_FC='-non_shared' | |
13960 | ;; | |
13961 | ||
7a9d3fe8 | 13962 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 13963 | case $cc_basename in |
d58dead8 PG |
13964 | # old Intel for x86_64 which still supported -KPIC. |
13965 | ecc*) | |
1cf3d07d SE |
13966 | lt_prog_compiler_wl_FC='-Wl,' |
13967 | lt_prog_compiler_pic_FC='-KPIC' | |
13968 | lt_prog_compiler_static_FC='-static' | |
13969 | ;; | |
d58dead8 PG |
13970 | # icc used to be incompatible with GCC. |
13971 | # ICC 10 doesn't accept -KPIC any more. | |
13972 | icc* | ifort*) | |
13973 | lt_prog_compiler_wl_FC='-Wl,' | |
13974 | lt_prog_compiler_pic_FC='-fPIC' | |
13975 | lt_prog_compiler_static_FC='-static' | |
13976 | ;; | |
13977 | # Lahey Fortran 8.1. | |
13978 | lf95*) | |
13979 | lt_prog_compiler_wl_FC='-Wl,' | |
13980 | lt_prog_compiler_pic_FC='--shared' | |
13981 | lt_prog_compiler_static_FC='--static' | |
13982 | ;; | |
43e02a8a | 13983 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
13984 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13985 | # which looks to be a dead project) | |
13986 | lt_prog_compiler_wl_FC='-Wl,' | |
13987 | lt_prog_compiler_pic_FC='-fpic' | |
13988 | lt_prog_compiler_static_FC='-Bstatic' | |
13989 | ;; | |
13990 | ccc*) | |
13991 | lt_prog_compiler_wl_FC='-Wl,' | |
13992 | # All Alpha code is PIC. | |
13993 | lt_prog_compiler_static_FC='-non_shared' | |
13994 | ;; | |
43e02a8a RW |
13995 | xl* | bgxl* | bgf* | mpixl*) |
13996 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
d58dead8 PG |
13997 | lt_prog_compiler_wl_FC='-Wl,' |
13998 | lt_prog_compiler_pic_FC='-qpic' | |
13999 | lt_prog_compiler_static_FC='-qstaticlink' | |
14000 | ;; | |
1cf3d07d SE |
14001 | *) |
14002 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
14003 | *Sun\ F* | *Sun*Fortran*) |
14004 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
14005 | lt_prog_compiler_pic_FC='-KPIC' |
14006 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 14007 | lt_prog_compiler_wl_FC='' |
1cf3d07d | 14008 | ;; |
43e02a8a RW |
14009 | *Sun\ C*) |
14010 | # Sun C 5.9 | |
1cf3d07d SE |
14011 | lt_prog_compiler_pic_FC='-KPIC' |
14012 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 14013 | lt_prog_compiler_wl_FC='-Wl,' |
1cf3d07d SE |
14014 | ;; |
14015 | esac | |
14016 | ;; | |
14017 | esac | |
14018 | ;; | |
14019 | ||
14020 | newsos6) | |
14021 | lt_prog_compiler_pic_FC='-KPIC' | |
14022 | lt_prog_compiler_static_FC='-Bstatic' | |
14023 | ;; | |
14024 | ||
14025 | *nto* | *qnx*) | |
14026 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14027 | # it will coredump. | |
14028 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
14029 | ;; | |
14030 | ||
14031 | osf3* | osf4* | osf5*) | |
14032 | lt_prog_compiler_wl_FC='-Wl,' | |
14033 | # All OSF/1 code is PIC. | |
14034 | lt_prog_compiler_static_FC='-non_shared' | |
14035 | ;; | |
14036 | ||
14037 | rdos*) | |
14038 | lt_prog_compiler_static_FC='-non_shared' | |
14039 | ;; | |
14040 | ||
14041 | solaris*) | |
14042 | lt_prog_compiler_pic_FC='-KPIC' | |
14043 | lt_prog_compiler_static_FC='-Bstatic' | |
14044 | case $cc_basename in | |
14045 | f77* | f90* | f95*) | |
14046 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
14047 | *) | |
14048 | lt_prog_compiler_wl_FC='-Wl,';; | |
14049 | esac | |
14050 | ;; | |
14051 | ||
14052 | sunos4*) | |
14053 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
14054 | lt_prog_compiler_pic_FC='-PIC' | |
14055 | lt_prog_compiler_static_FC='-Bstatic' | |
14056 | ;; | |
14057 | ||
14058 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
14059 | lt_prog_compiler_wl_FC='-Wl,' | |
14060 | lt_prog_compiler_pic_FC='-KPIC' | |
14061 | lt_prog_compiler_static_FC='-Bstatic' | |
14062 | ;; | |
14063 | ||
14064 | sysv4*MP*) | |
14065 | if test -d /usr/nec ;then | |
14066 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
14067 | lt_prog_compiler_static_FC='-Bstatic' | |
14068 | fi | |
14069 | ;; | |
14070 | ||
14071 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14072 | lt_prog_compiler_wl_FC='-Wl,' | |
14073 | lt_prog_compiler_pic_FC='-KPIC' | |
14074 | lt_prog_compiler_static_FC='-Bstatic' | |
14075 | ;; | |
14076 | ||
14077 | unicos*) | |
14078 | lt_prog_compiler_wl_FC='-Wl,' | |
14079 | lt_prog_compiler_can_build_shared_FC=no | |
14080 | ;; | |
14081 | ||
14082 | uts4*) | |
14083 | lt_prog_compiler_pic_FC='-pic' | |
14084 | lt_prog_compiler_static_FC='-Bstatic' | |
14085 | ;; | |
14086 | ||
14087 | *) | |
14088 | lt_prog_compiler_can_build_shared_FC=no | |
14089 | ;; | |
14090 | esac | |
14091 | fi | |
14092 | ||
14093 | case $host_os in | |
14094 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14095 | *djgpp*) | |
14096 | lt_prog_compiler_pic_FC= | |
14097 | ;; | |
14098 | *) | |
14099 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
14100 | ;; | |
14101 | esac | |
5213506e RW |
14102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 |
14103 | $as_echo "$lt_prog_compiler_pic_FC" >&6; } | |
1cf3d07d SE |
14104 | |
14105 | ||
14106 | ||
14107 | # | |
14108 | # Check to make sure the PIC flag actually works. | |
14109 | # | |
14110 | if test -n "$lt_prog_compiler_pic_FC"; then | |
5213506e RW |
14111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 |
14112 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } | |
22e05272 | 14113 | if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : |
5213506e | 14114 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 14115 | else |
d58dead8 | 14116 | lt_cv_prog_compiler_pic_works_FC=no |
1cf3d07d SE |
14117 | ac_outfile=conftest.$ac_objext |
14118 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14119 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
14120 | # Insert the option either (1) after the last *FLAGS variable, or | |
14121 | # (2) before a word containing "conftest.", or (3) at the end. | |
14122 | # Note that $ac_compile itself does not contain backslashes and begins | |
14123 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14124 | # The option is referenced via a variable to avoid confusing sed. | |
14125 | lt_compile=`echo "$ac_compile" | $SED \ | |
14126 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14127 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14128 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 14129 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
14130 | (eval "$lt_compile" 2>conftest.err) |
14131 | ac_status=$? | |
14132 | cat conftest.err >&5 | |
43e02a8a | 14133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
14134 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14135 | # The compiler can only warn and ignore the option if not recognized | |
14136 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 14137 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
14138 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14139 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 14140 | lt_cv_prog_compiler_pic_works_FC=yes |
1cf3d07d SE |
14141 | fi |
14142 | fi | |
14143 | $RM conftest* | |
14144 | ||
14145 | fi | |
5213506e RW |
14146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
14147 | $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } | |
1cf3d07d | 14148 | |
d58dead8 | 14149 | if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then |
1cf3d07d SE |
14150 | case $lt_prog_compiler_pic_FC in |
14151 | "" | " "*) ;; | |
14152 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
14153 | esac | |
14154 | else | |
14155 | lt_prog_compiler_pic_FC= | |
14156 | lt_prog_compiler_can_build_shared_FC=no | |
14157 | fi | |
14158 | ||
14159 | fi | |
14160 | ||
14161 | ||
14162 | ||
14163 | # | |
14164 | # Check to make sure the static flag actually works. | |
14165 | # | |
14166 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
5213506e RW |
14167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14168 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 14169 | if ${lt_cv_prog_compiler_static_works_FC+:} false; then : |
5213506e | 14170 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 14171 | else |
d58dead8 | 14172 | lt_cv_prog_compiler_static_works_FC=no |
1cf3d07d SE |
14173 | save_LDFLAGS="$LDFLAGS" |
14174 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14175 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14176 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14177 | # The linker can only warn and ignore the option if not recognized | |
14178 | # So say no if there are warnings | |
14179 | if test -s conftest.err; then | |
14180 | # Append any errors to the config.log. | |
14181 | cat conftest.err 1>&5 | |
43e02a8a | 14182 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
14183 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14184 | if diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 14185 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
14186 | fi |
14187 | else | |
d58dead8 | 14188 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
14189 | fi |
14190 | fi | |
d58dead8 | 14191 | $RM -r conftest* |
1cf3d07d SE |
14192 | LDFLAGS="$save_LDFLAGS" |
14193 | ||
14194 | fi | |
5213506e RW |
14195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
14196 | $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } | |
1cf3d07d | 14197 | |
d58dead8 | 14198 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
1cf3d07d SE |
14199 | : |
14200 | else | |
14201 | lt_prog_compiler_static_FC= | |
14202 | fi | |
14203 | ||
14204 | ||
14205 | ||
14206 | ||
5213506e RW |
14207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14208 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 14209 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 14210 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
14211 | else |
14212 | lt_cv_prog_compiler_c_o_FC=no | |
14213 | $RM -r conftest 2>/dev/null | |
14214 | mkdir conftest | |
14215 | cd conftest | |
14216 | mkdir out | |
14217 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14218 | ||
14219 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14220 | # Insert the option either (1) after the last *FLAGS variable, or | |
14221 | # (2) before a word containing "conftest.", or (3) at the end. | |
14222 | # Note that $ac_compile itself does not contain backslashes and begins | |
14223 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14224 | lt_compile=`echo "$ac_compile" | $SED \ | |
14225 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14226 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14227 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 14228 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
14229 | (eval "$lt_compile" 2>out/conftest.err) |
14230 | ac_status=$? | |
14231 | cat out/conftest.err >&5 | |
43e02a8a | 14232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
14233 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14234 | then | |
14235 | # The compiler can only warn and ignore the option if not recognized | |
14236 | # So say no if there are warnings | |
43e02a8a | 14237 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
14238 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14239 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14240 | lt_cv_prog_compiler_c_o_FC=yes | |
14241 | fi | |
14242 | fi | |
14243 | chmod u+w . 2>&5 | |
14244 | $RM conftest* | |
14245 | # SGI C++ compiler will create directory out/ii_files/ for | |
14246 | # template instantiation | |
14247 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14248 | $RM out/* && rmdir out | |
14249 | cd .. | |
14250 | $RM -r conftest | |
14251 | $RM conftest* | |
14252 | ||
14253 | fi | |
5213506e RW |
14254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14255 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
14256 | |
14257 | ||
14258 | ||
5213506e RW |
14259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14260 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 14261 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 14262 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
14263 | else |
14264 | lt_cv_prog_compiler_c_o_FC=no | |
14265 | $RM -r conftest 2>/dev/null | |
14266 | mkdir conftest | |
14267 | cd conftest | |
14268 | mkdir out | |
14269 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14270 | ||
14271 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14272 | # Insert the option either (1) after the last *FLAGS variable, or | |
14273 | # (2) before a word containing "conftest.", or (3) at the end. | |
14274 | # Note that $ac_compile itself does not contain backslashes and begins | |
14275 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14276 | lt_compile=`echo "$ac_compile" | $SED \ | |
14277 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14278 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14279 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 14280 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
14281 | (eval "$lt_compile" 2>out/conftest.err) |
14282 | ac_status=$? | |
14283 | cat out/conftest.err >&5 | |
43e02a8a | 14284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
14285 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14286 | then | |
14287 | # The compiler can only warn and ignore the option if not recognized | |
14288 | # So say no if there are warnings | |
43e02a8a | 14289 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
14290 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14291 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14292 | lt_cv_prog_compiler_c_o_FC=yes | |
14293 | fi | |
14294 | fi | |
14295 | chmod u+w . 2>&5 | |
14296 | $RM conftest* | |
14297 | # SGI C++ compiler will create directory out/ii_files/ for | |
14298 | # template instantiation | |
14299 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14300 | $RM out/* && rmdir out | |
14301 | cd .. | |
14302 | $RM -r conftest | |
14303 | $RM conftest* | |
14304 | ||
14305 | fi | |
5213506e RW |
14306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14307 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
14308 | |
14309 | ||
14310 | ||
14311 | ||
14312 | hard_links="nottested" | |
14313 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
14314 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
14315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
14316 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
14317 | hard_links=yes |
14318 | $RM conftest* | |
14319 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14320 | touch conftest.a | |
14321 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14322 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
14323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
14324 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 14325 | if test "$hard_links" = no; then |
5213506e RW |
14326 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14327 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
14328 | need_locks=warn |
14329 | fi | |
14330 | else | |
14331 | need_locks=no | |
14332 | fi | |
14333 | ||
14334 | ||
14335 | ||
5213506e RW |
14336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14337 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
14338 | |
14339 | runpath_var= | |
14340 | allow_undefined_flag_FC= | |
14341 | always_export_symbols_FC=no | |
14342 | archive_cmds_FC= | |
14343 | archive_expsym_cmds_FC= | |
14344 | compiler_needs_object_FC=no | |
14345 | enable_shared_with_static_runtimes_FC=no | |
14346 | export_dynamic_flag_spec_FC= | |
14347 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14348 | hardcode_automatic_FC=no | |
14349 | hardcode_direct_FC=no | |
14350 | hardcode_direct_absolute_FC=no | |
14351 | hardcode_libdir_flag_spec_FC= | |
14352 | hardcode_libdir_flag_spec_ld_FC= | |
14353 | hardcode_libdir_separator_FC= | |
14354 | hardcode_minus_L_FC=no | |
14355 | hardcode_shlibpath_var_FC=unsupported | |
14356 | inherit_rpath_FC=no | |
14357 | link_all_deplibs_FC=unknown | |
14358 | module_cmds_FC= | |
14359 | module_expsym_cmds_FC= | |
14360 | old_archive_from_new_cmds_FC= | |
14361 | old_archive_from_expsyms_cmds_FC= | |
14362 | thread_safe_flag_spec_FC= | |
14363 | whole_archive_flag_spec_FC= | |
14364 | # include_expsyms should be a list of space-separated symbols to be *always* | |
14365 | # included in the symbol list | |
14366 | include_expsyms_FC= | |
14367 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
14368 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
14369 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
14370 | # as well as any symbol that contains `d'. | |
d58dead8 | 14371 | exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
14372 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14373 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
14374 | # the symbol is explicitly referenced. Since portable code cannot | |
14375 | # rely on this symbol name, it's probably fine to never include it in | |
14376 | # preloaded symbol tables. | |
d58dead8 | 14377 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
14378 | extract_expsyms_cmds= |
14379 | ||
14380 | case $host_os in | |
d58dead8 | 14381 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14382 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14383 | # When not using gcc, we currently assume that we are using | |
14384 | # Microsoft Visual C++. | |
14385 | if test "$GCC" != yes; then | |
14386 | with_gnu_ld=no | |
14387 | fi | |
14388 | ;; | |
14389 | interix*) | |
14390 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
14391 | with_gnu_ld=yes | |
14392 | ;; | |
14393 | openbsd*) | |
14394 | with_gnu_ld=no | |
14395 | ;; | |
14396 | esac | |
14397 | ||
14398 | ld_shlibs_FC=yes | |
43e02a8a RW |
14399 | |
14400 | # On some targets, GNU ld is compatible enough with the native linker | |
14401 | # that we're better off using the native interface for both. | |
14402 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 14403 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
14404 | case $host_os in |
14405 | aix*) | |
14406 | # The AIX port of GNU ld has always aspired to compatibility | |
14407 | # with the native linker. However, as the warning in the GNU ld | |
14408 | # block says, versions before 2.19.5* couldn't really create working | |
14409 | # shared libraries, regardless of the interface used. | |
14410 | case `$LD -v 2>&1` in | |
14411 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
14412 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
14413 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
14414 | *) | |
14415 | lt_use_gnu_ld_interface=yes | |
14416 | ;; | |
14417 | esac | |
14418 | ;; | |
14419 | *) | |
14420 | lt_use_gnu_ld_interface=yes | |
14421 | ;; | |
14422 | esac | |
14423 | fi | |
14424 | ||
14425 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
14426 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14427 | wlarc='${wl}' | |
14428 | ||
14429 | # Set some defaults for GNU ld with shared library support. These | |
14430 | # are reset later if shared libraries are not supported. Putting them | |
14431 | # here allows them to be overridden if necessary. | |
14432 | runpath_var=LD_RUN_PATH | |
14433 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14434 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
14435 | # ancient GNU ld didn't support --whole-archive et. al. | |
14436 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
14437 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
14438 | else | |
14439 | whole_archive_flag_spec_FC= | |
14440 | fi | |
14441 | supports_anon_versioning=no | |
14442 | case `$LD -v 2>&1` in | |
43e02a8a | 14443 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
14444 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14445 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
14446 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
14447 | *\ 2.11.*) ;; # other 2.11 versions | |
14448 | *) supports_anon_versioning=yes ;; | |
14449 | esac | |
14450 | ||
14451 | # See if GNU ld supports shared libraries. | |
14452 | case $host_os in | |
4f6bebc3 | 14453 | aix[3-9]*) |
1cf3d07d SE |
14454 | # On AIX/PPC, the GNU linker is very broken |
14455 | if test "$host_cpu" != ia64; then | |
14456 | ld_shlibs_FC=no | |
14457 | cat <<_LT_EOF 1>&2 | |
14458 | ||
43e02a8a | 14459 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
14460 | *** to be unable to reliably create shared libraries on AIX. |
14461 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
14462 | *** really care for shared libraries, you may want to install binutils |
14463 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
14464 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
14465 | |
14466 | _LT_EOF | |
14467 | fi | |
14468 | ;; | |
14469 | ||
14470 | amigaos*) | |
d58dead8 PG |
14471 | case $host_cpu in |
14472 | powerpc) | |
14473 | # see comment about AmigaOS4 .so support | |
14474 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14475 | archive_expsym_cmds_FC='' | |
14476 | ;; | |
14477 | m68k) | |
14478 | 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)' | |
14479 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14480 | hardcode_minus_L_FC=yes | |
14481 | ;; | |
14482 | esac | |
1cf3d07d SE |
14483 | ;; |
14484 | ||
14485 | beos*) | |
14486 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14487 | allow_undefined_flag_FC=unsupported | |
14488 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
14489 | # support --undefined. This deserves some investigation. FIXME | |
14490 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14491 | else | |
14492 | ld_shlibs_FC=no | |
14493 | fi | |
14494 | ;; | |
14495 | ||
d58dead8 | 14496 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14497 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, |
14498 | # as there is no search path for DLLs. | |
14499 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
43e02a8a | 14500 | export_dynamic_flag_spec_FC='${wl}--export-all-symbols' |
1cf3d07d SE |
14501 | allow_undefined_flag_FC=unsupported |
14502 | always_export_symbols_FC=no | |
14503 | enable_shared_with_static_runtimes_FC=yes | |
14504 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
14505 | ||
14506 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
14507 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14508 | # If the export-symbols file already is a .def file (1st line | |
14509 | # is EXPORTS), use it as is; otherwise, prepend... | |
14510 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
14511 | cp $export_symbols $output_objdir/$soname.def; | |
14512 | else | |
14513 | echo EXPORTS > $output_objdir/$soname.def; | |
14514 | cat $export_symbols >> $output_objdir/$soname.def; | |
14515 | fi~ | |
14516 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14517 | else | |
14518 | ld_shlibs_FC=no | |
14519 | fi | |
14520 | ;; | |
14521 | ||
43e02a8a RW |
14522 | haiku*) |
14523 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14524 | link_all_deplibs_FC=yes | |
14525 | ;; | |
14526 | ||
1cf3d07d SE |
14527 | interix[3-9]*) |
14528 | hardcode_direct_FC=no | |
14529 | hardcode_shlibpath_var_FC=no | |
14530 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
14531 | export_dynamic_flag_spec_FC='${wl}-E' | |
14532 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
14533 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14534 | # default) and relocated if they conflict, which is a slow very memory | |
14535 | # consuming and fragmenting process. To avoid this, we pick a random, | |
14536 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14537 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
14538 | 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' | |
14539 | 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' | |
14540 | ;; | |
14541 | ||
e9085da5 | 14542 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
14543 | tmp_diet=no |
14544 | if test "$host_os" = linux-dietlibc; then | |
14545 | case $cc_basename in | |
14546 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
14547 | esac | |
14548 | fi | |
14549 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
14550 | && test "$tmp_diet" = no | |
14551 | then | |
a699d672 | 14552 | tmp_addflag=' $pic_flag' |
d58dead8 | 14553 | tmp_sharedflag='-shared' |
1cf3d07d SE |
14554 | case $cc_basename,$host_cpu in |
14555 | pgcc*) # Portland Group C compiler | |
43e02a8a | 14556 | whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
1cf3d07d SE |
14557 | tmp_addflag=' $pic_flag' |
14558 | ;; | |
43e02a8a RW |
14559 | pgf77* | pgf90* | pgf95* | pgfortran*) |
14560 | # Portland Group f77 and f90 compilers | |
14561 | whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
1cf3d07d SE |
14562 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14563 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
14564 | tmp_addflag=' -i_dynamic' ;; | |
14565 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
14566 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
14567 | ifc* | ifort*) # Intel Fortran compiler | |
14568 | tmp_addflag=' -nofor_main' ;; | |
d58dead8 PG |
14569 | lf95*) # Lahey Fortran 8.1 |
14570 | whole_archive_flag_spec_FC= | |
14571 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 14572 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
d58dead8 PG |
14573 | tmp_sharedflag='-qmkshrobj' |
14574 | tmp_addflag= ;; | |
43e02a8a RW |
14575 | nvcc*) # Cuda Compiler Driver 2.2 |
14576 | whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
14577 | compiler_needs_object_FC=yes | |
14578 | ;; | |
1cf3d07d SE |
14579 | esac |
14580 | case `$CC -V 2>&1 | sed 5q` in | |
14581 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 14582 | whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
1cf3d07d SE |
14583 | compiler_needs_object_FC=yes |
14584 | tmp_sharedflag='-G' ;; | |
14585 | *Sun\ F*) # Sun Fortran 8.3 | |
14586 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
14587 | esac |
14588 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14589 | ||
14590 | if test "x$supports_anon_versioning" = xyes; then | |
14591 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14592 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14593 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14594 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
14595 | fi | |
d58dead8 PG |
14596 | |
14597 | case $cc_basename in | |
43e02a8a | 14598 | xlf* | bgf* | bgxlf* | mpixlf*) |
d58dead8 PG |
14599 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
14600 | whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' | |
14601 | hardcode_libdir_flag_spec_FC= | |
14602 | hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' | |
14603 | archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
14604 | if test "x$supports_anon_versioning" = xyes; then | |
14605 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14606 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14607 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14608 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
14609 | fi | |
14610 | ;; | |
14611 | esac | |
1cf3d07d SE |
14612 | else |
14613 | ld_shlibs_FC=no | |
14614 | fi | |
14615 | ;; | |
14616 | ||
14617 | netbsd*) | |
14618 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14619 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
14620 | wlarc= | |
14621 | else | |
14622 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14623 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14624 | fi | |
14625 | ;; | |
14626 | ||
14627 | solaris*) | |
14628 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
14629 | ld_shlibs_FC=no | |
14630 | cat <<_LT_EOF 1>&2 | |
14631 | ||
14632 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
14633 | *** create shared libraries on Solaris systems. Therefore, libtool | |
14634 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14635 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
14636 | *** your PATH or compiler configuration so that the native linker is | |
14637 | *** used, and then restart. | |
14638 | ||
14639 | _LT_EOF | |
14640 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14641 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14642 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14643 | else | |
14644 | ld_shlibs_FC=no | |
14645 | fi | |
14646 | ;; | |
14647 | ||
14648 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
14649 | case `$LD -v 2>&1` in | |
14650 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
14651 | ld_shlibs_FC=no | |
14652 | cat <<_LT_EOF 1>&2 | |
14653 | ||
14654 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
14655 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
14656 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14657 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
14658 | *** your PATH or compiler configuration so that the native linker is | |
14659 | *** used, and then restart. | |
14660 | ||
14661 | _LT_EOF | |
14662 | ;; | |
14663 | *) | |
14664 | # For security reasons, it is highly recommended that you always | |
14665 | # use absolute paths for naming shared libraries, and exclude the | |
14666 | # DT_RUNPATH tag from executables and libraries. But doing so | |
14667 | # requires that you compile everything twice, which is a pain. | |
14668 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14669 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14670 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14671 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14672 | else | |
14673 | ld_shlibs_FC=no | |
14674 | fi | |
14675 | ;; | |
14676 | esac | |
14677 | ;; | |
14678 | ||
14679 | sunos4*) | |
14680 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14681 | wlarc= | |
14682 | hardcode_direct_FC=yes | |
14683 | hardcode_shlibpath_var_FC=no | |
14684 | ;; | |
14685 | ||
14686 | *) | |
14687 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14688 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14689 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14690 | else | |
14691 | ld_shlibs_FC=no | |
14692 | fi | |
14693 | ;; | |
14694 | esac | |
14695 | ||
14696 | if test "$ld_shlibs_FC" = no; then | |
14697 | runpath_var= | |
14698 | hardcode_libdir_flag_spec_FC= | |
14699 | export_dynamic_flag_spec_FC= | |
14700 | whole_archive_flag_spec_FC= | |
14701 | fi | |
14702 | else | |
14703 | # PORTME fill in a description of your system's linker (not GNU ld) | |
14704 | case $host_os in | |
14705 | aix3*) | |
14706 | allow_undefined_flag_FC=unsupported | |
14707 | always_export_symbols_FC=yes | |
14708 | 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' | |
14709 | # Note: this linker hardcodes the directories in LIBPATH if there | |
14710 | # are no directories specified by -L. | |
14711 | hardcode_minus_L_FC=yes | |
14712 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
14713 | # Neither direct hardcoding nor static linking is supported with a | |
14714 | # broken collect2. | |
14715 | hardcode_direct_FC=unsupported | |
14716 | fi | |
14717 | ;; | |
14718 | ||
4f6bebc3 | 14719 | aix[4-9]*) |
1cf3d07d SE |
14720 | if test "$host_cpu" = ia64; then |
14721 | # On IA64, the linker does run time linking by default, so we don't | |
14722 | # have to do anything special. | |
14723 | aix_use_runtimelinking=no | |
14724 | exp_sym_flag='-Bexport' | |
14725 | no_entry_flag="" | |
14726 | else | |
14727 | # If we're using GNU nm, then we don't want the "-C" option. | |
14728 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
14729 | # Also, AIX nm treats weak defined symbols like other global |
14730 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 14731 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 14732 | export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
1cf3d07d | 14733 | else |
d3ca2257 | 14734 | export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
1cf3d07d SE |
14735 | fi |
14736 | aix_use_runtimelinking=no | |
14737 | ||
14738 | # Test if we are trying to use run time linking or normal | |
14739 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14740 | # need to do runtime linking. | |
4f6bebc3 | 14741 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
14742 | for ld_flag in $LDFLAGS; do |
14743 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14744 | aix_use_runtimelinking=yes | |
14745 | break | |
14746 | fi | |
14747 | done | |
14748 | ;; | |
14749 | esac | |
14750 | ||
14751 | exp_sym_flag='-bexport' | |
14752 | no_entry_flag='-bnoentry' | |
14753 | fi | |
14754 | ||
14755 | # When large executables or shared objects are built, AIX ld can | |
14756 | # have problems creating the table of contents. If linking a library | |
14757 | # or program results in "error TOC overflow" add -mminimal-toc to | |
14758 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14759 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14760 | ||
14761 | archive_cmds_FC='' | |
14762 | hardcode_direct_FC=yes | |
14763 | hardcode_direct_absolute_FC=yes | |
14764 | hardcode_libdir_separator_FC=':' | |
14765 | link_all_deplibs_FC=yes | |
14766 | file_list_spec_FC='${wl}-f,' | |
14767 | ||
14768 | if test "$GCC" = yes; then | |
14769 | case $host_os in aix4.[012]|aix4.[012].*) | |
14770 | # We only want to do this on AIX 4.2 and lower, the check | |
14771 | # below for broken collect2 doesn't work under 4.3+ | |
14772 | collect2name=`${CC} -print-prog-name=collect2` | |
14773 | if test -f "$collect2name" && | |
14774 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
14775 | then | |
14776 | # We have reworked collect2 | |
14777 | : | |
14778 | else | |
14779 | # We have old collect2 | |
14780 | hardcode_direct_FC=unsupported | |
14781 | # It fails to find uninstalled libraries when the uninstalled | |
14782 | # path is not listed in the libpath. Setting hardcode_minus_L | |
14783 | # to unsupported forces relinking | |
14784 | hardcode_minus_L_FC=yes | |
14785 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14786 | hardcode_libdir_separator_FC= | |
14787 | fi | |
14788 | ;; | |
14789 | esac | |
14790 | shared_flag='-shared' | |
14791 | if test "$aix_use_runtimelinking" = yes; then | |
14792 | shared_flag="$shared_flag "'${wl}-G' | |
14793 | fi | |
14794 | else | |
14795 | # not using gcc | |
14796 | if test "$host_cpu" = ia64; then | |
14797 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14798 | # chokes on -Wl,-G. The following line is correct: | |
14799 | shared_flag='-G' | |
14800 | else | |
14801 | if test "$aix_use_runtimelinking" = yes; then | |
14802 | shared_flag='${wl}-G' | |
14803 | else | |
14804 | shared_flag='${wl}-bM:SRE' | |
14805 | fi | |
14806 | fi | |
14807 | fi | |
14808 | ||
d58dead8 | 14809 | export_dynamic_flag_spec_FC='${wl}-bexpall' |
1cf3d07d SE |
14810 | # It seems that -bexpall does not export symbols beginning with |
14811 | # underscore (_), so it is better to generate a list of symbols to export. | |
14812 | always_export_symbols_FC=yes | |
14813 | if test "$aix_use_runtimelinking" = yes; then | |
14814 | # Warning - without using the other runtime loading flags (-brtl), | |
14815 | # -berok will link without error, but may produce a broken library. | |
14816 | allow_undefined_flag_FC='-berok' | |
14817 | # Determine the default libpath from the value encoded in an | |
14818 | # empty executable. | |
14819 | if test x$gcc_no_link = xyes; then | |
22e05272 | 14820 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 14821 | fi |
5213506e | 14822 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14823 | program main |
14824 | ||
14825 | end | |
14826 | _ACEOF | |
5213506e | 14827 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
14828 | |
14829 | lt_aix_libpath_sed=' | |
14830 | /Import File Strings/,/^$/ { | |
14831 | /^0/ { | |
14832 | s/^0 *\(.*\)$/\1/ | |
14833 | p | |
14834 | } | |
14835 | }' | |
14836 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14837 | # Check for a 64-bit object if we didn't find anything. | |
14838 | if test -z "$aix_libpath"; then | |
14839 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14840 | fi | |
1cf3d07d | 14841 | fi |
5213506e RW |
14842 | rm -f core conftest.err conftest.$ac_objext \ |
14843 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
14844 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14845 | ||
14846 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 14847 | 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
1cf3d07d SE |
14848 | else |
14849 | if test "$host_cpu" = ia64; then | |
14850 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
14851 | allow_undefined_flag_FC="-z nodefs" | |
14852 | 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" | |
14853 | else | |
14854 | # Determine the default libpath from the value encoded in an | |
14855 | # empty executable. | |
14856 | if test x$gcc_no_link = xyes; then | |
22e05272 | 14857 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 14858 | fi |
5213506e | 14859 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14860 | program main |
14861 | ||
14862 | end | |
14863 | _ACEOF | |
5213506e | 14864 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
14865 | |
14866 | lt_aix_libpath_sed=' | |
14867 | /Import File Strings/,/^$/ { | |
14868 | /^0/ { | |
14869 | s/^0 *\(.*\)$/\1/ | |
14870 | p | |
14871 | } | |
14872 | }' | |
14873 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14874 | # Check for a 64-bit object if we didn't find anything. | |
14875 | if test -z "$aix_libpath"; then | |
14876 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14877 | fi | |
1cf3d07d | 14878 | fi |
5213506e RW |
14879 | rm -f core conftest.err conftest.$ac_objext \ |
14880 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
14881 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14882 | ||
14883 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14884 | # Warning - without using the other run time loading flags, | |
14885 | # -berok will link without error, but may produce a broken library. | |
14886 | no_undefined_flag_FC=' ${wl}-bernotok' | |
14887 | allow_undefined_flag_FC=' ${wl}-berok' | |
43e02a8a RW |
14888 | if test "$with_gnu_ld" = yes; then |
14889 | # We only use this code for GNU lds that support --whole-archive. | |
14890 | whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
14891 | else | |
14892 | # Exported symbols can be pulled into shared objects from archives | |
14893 | whole_archive_flag_spec_FC='$convenience' | |
14894 | fi | |
1cf3d07d SE |
14895 | archive_cmds_need_lc_FC=yes |
14896 | # This is similar to how AIX traditionally builds its shared libraries. | |
14897 | 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' | |
14898 | fi | |
14899 | fi | |
14900 | ;; | |
14901 | ||
14902 | amigaos*) | |
d58dead8 PG |
14903 | case $host_cpu in |
14904 | powerpc) | |
14905 | # see comment about AmigaOS4 .so support | |
14906 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14907 | archive_expsym_cmds_FC='' | |
14908 | ;; | |
14909 | m68k) | |
14910 | 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)' | |
14911 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14912 | hardcode_minus_L_FC=yes | |
14913 | ;; | |
14914 | esac | |
1cf3d07d SE |
14915 | ;; |
14916 | ||
14917 | bsdi[45]*) | |
14918 | export_dynamic_flag_spec_FC=-rdynamic | |
14919 | ;; | |
14920 | ||
d58dead8 | 14921 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14922 | # When not using gcc, we currently assume that we are using |
14923 | # Microsoft Visual C++. | |
14924 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14925 | # no search path for DLLs. | |
14926 | hardcode_libdir_flag_spec_FC=' ' | |
14927 | allow_undefined_flag_FC=unsupported | |
14928 | # Tell ltmain to make .lib files, not .a files. | |
14929 | libext=lib | |
14930 | # Tell ltmain to make .dll files, not .so files. | |
14931 | shrext_cmds=".dll" | |
14932 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 14933 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
14934 | # The linker will automatically build a .lib file if we build a DLL. |
14935 | old_archive_from_new_cmds_FC='true' | |
14936 | # FIXME: Should let the user specify the lib program. | |
14937 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
14938 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
14939 | enable_shared_with_static_runtimes_FC=yes | |
14940 | ;; | |
14941 | ||
14942 | darwin* | rhapsody*) | |
1cf3d07d | 14943 | |
d58dead8 PG |
14944 | |
14945 | archive_cmds_need_lc_FC=no | |
14946 | hardcode_direct_FC=no | |
14947 | hardcode_automatic_FC=yes | |
14948 | hardcode_shlibpath_var_FC=unsupported | |
43e02a8a RW |
14949 | if test "$lt_cv_ld_force_load" = "yes"; then |
14950 | whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
14951 | else | |
14952 | whole_archive_flag_spec_FC='' | |
14953 | fi | |
d58dead8 PG |
14954 | link_all_deplibs_FC=yes |
14955 | allow_undefined_flag_FC="$_lt_dar_allow_undefined" | |
14956 | case $cc_basename in | |
14957 | ifort*) _lt_dar_can_shared=yes ;; | |
14958 | *) _lt_dar_can_shared=$GCC ;; | |
14959 | esac | |
14960 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 14961 | output_verbose_link_cmd=func_echo_all |
d58dead8 PG |
14962 | 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}" |
14963 | module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
14964 | 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}" | |
14965 | 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}" | |
14966 | ||
14967 | else | |
14968 | ld_shlibs_FC=no | |
14969 | fi | |
14970 | ||
1cf3d07d SE |
14971 | ;; |
14972 | ||
14973 | dgux*) | |
14974 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14975 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14976 | hardcode_shlibpath_var_FC=no | |
14977 | ;; | |
14978 | ||
1cf3d07d SE |
14979 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14980 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
14981 | # does not break anything, and helps significantly (at the cost of a little | |
14982 | # extra space). | |
14983 | freebsd2.2*) | |
14984 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14985 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14986 | hardcode_direct_FC=yes | |
14987 | hardcode_shlibpath_var_FC=no | |
14988 | ;; | |
14989 | ||
14990 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 14991 | freebsd2.*) |
1cf3d07d SE |
14992 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14993 | hardcode_direct_FC=yes | |
14994 | hardcode_minus_L_FC=yes | |
14995 | hardcode_shlibpath_var_FC=no | |
14996 | ;; | |
14997 | ||
14998 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
14999 | freebsd* | dragonfly*) | |
15000 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
15001 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15002 | hardcode_direct_FC=yes | |
15003 | hardcode_shlibpath_var_FC=no | |
15004 | ;; | |
15005 | ||
15006 | hpux9*) | |
15007 | if test "$GCC" = yes; then | |
15008 | 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' | |
15009 | else | |
15010 | 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' | |
15011 | fi | |
15012 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
15013 | hardcode_libdir_separator_FC=: | |
15014 | hardcode_direct_FC=yes | |
15015 | ||
15016 | # hardcode_minus_L: Not really in the search PATH, | |
15017 | # but as the default location of the library. | |
15018 | hardcode_minus_L_FC=yes | |
15019 | export_dynamic_flag_spec_FC='${wl}-E' | |
15020 | ;; | |
15021 | ||
15022 | hpux10*) | |
43e02a8a | 15023 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
15024 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15025 | else | |
15026 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
15027 | fi | |
15028 | if test "$with_gnu_ld" = no; then | |
15029 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
15030 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
15031 | hardcode_libdir_separator_FC=: | |
15032 | hardcode_direct_FC=yes | |
15033 | hardcode_direct_absolute_FC=yes | |
15034 | export_dynamic_flag_spec_FC='${wl}-E' | |
15035 | # hardcode_minus_L: Not really in the search PATH, | |
15036 | # but as the default location of the library. | |
15037 | hardcode_minus_L_FC=yes | |
15038 | fi | |
15039 | ;; | |
15040 | ||
15041 | hpux11*) | |
43e02a8a | 15042 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
15043 | case $host_cpu in |
15044 | hppa*64*) | |
4e4ba647 | 15045 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
15046 | ;; |
15047 | ia64*) | |
d58dead8 | 15048 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
15049 | ;; |
15050 | *) | |
15051 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
15052 | ;; | |
15053 | esac | |
15054 | else | |
15055 | case $host_cpu in | |
15056 | hppa*64*) | |
4e4ba647 | 15057 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
15058 | ;; |
15059 | ia64*) | |
15060 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
15061 | ;; | |
15062 | *) | |
43e02a8a | 15063 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
15064 | ;; |
15065 | esac | |
15066 | fi | |
15067 | if test "$with_gnu_ld" = no; then | |
15068 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
15069 | hardcode_libdir_separator_FC=: | |
15070 | ||
15071 | case $host_cpu in | |
15072 | hppa*64*|ia64*) | |
15073 | hardcode_direct_FC=no | |
15074 | hardcode_shlibpath_var_FC=no | |
15075 | ;; | |
15076 | *) | |
15077 | hardcode_direct_FC=yes | |
15078 | hardcode_direct_absolute_FC=yes | |
15079 | export_dynamic_flag_spec_FC='${wl}-E' | |
15080 | ||
15081 | # hardcode_minus_L: Not really in the search PATH, | |
15082 | # but as the default location of the library. | |
15083 | hardcode_minus_L_FC=yes | |
15084 | ;; | |
15085 | esac | |
15086 | fi | |
15087 | ;; | |
15088 | ||
15089 | irix5* | irix6* | nonstopux*) | |
15090 | if test "$GCC" = yes; then | |
43e02a8a | 15091 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
15092 | # Try to use the -exported_symbol ld option, if it does not |
15093 | # work, assume that -exports_file does not work either and | |
15094 | # implicitly export all symbols. | |
15095 | save_LDFLAGS="$LDFLAGS" | |
15096 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
15097 | if test x$gcc_no_link = xyes; then | |
22e05272 | 15098 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 15099 | fi |
5213506e | 15100 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
15101 | int foo(void) {} |
15102 | _ACEOF | |
5213506e | 15103 | if ac_fn_fc_try_link "$LINENO"; then : |
43e02a8a | 15104 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
1cf3d07d | 15105 | |
1cf3d07d | 15106 | fi |
5213506e RW |
15107 | rm -f core conftest.err conftest.$ac_objext \ |
15108 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
15109 | LDFLAGS="$save_LDFLAGS" |
15110 | else | |
43e02a8a RW |
15111 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
15112 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
1cf3d07d SE |
15113 | fi |
15114 | archive_cmds_need_lc_FC='no' | |
15115 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
15116 | hardcode_libdir_separator_FC=: | |
15117 | inherit_rpath_FC=yes | |
15118 | link_all_deplibs_FC=yes | |
15119 | ;; | |
15120 | ||
15121 | netbsd*) | |
15122 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15123 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
15124 | else | |
15125 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
15126 | fi | |
15127 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15128 | hardcode_direct_FC=yes | |
15129 | hardcode_shlibpath_var_FC=no | |
15130 | ;; | |
15131 | ||
15132 | newsos6) | |
15133 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15134 | hardcode_direct_FC=yes | |
15135 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
15136 | hardcode_libdir_separator_FC=: | |
15137 | hardcode_shlibpath_var_FC=no | |
15138 | ;; | |
15139 | ||
15140 | *nto* | *qnx*) | |
15141 | ;; | |
15142 | ||
15143 | openbsd*) | |
d58dead8 PG |
15144 | if test -f /usr/libexec/ld.so; then |
15145 | hardcode_direct_FC=yes | |
15146 | hardcode_shlibpath_var_FC=no | |
15147 | hardcode_direct_absolute_FC=yes | |
15148 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 15149 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d58dead8 | 15150 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 15151 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' |
d58dead8 PG |
15152 | export_dynamic_flag_spec_FC='${wl}-E' |
15153 | else | |
15154 | case $host_os in | |
15155 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
15156 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
15157 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15158 | ;; | |
15159 | *) | |
15160 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
15161 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
15162 | ;; | |
15163 | esac | |
15164 | fi | |
15165 | else | |
15166 | ld_shlibs_FC=no | |
1cf3d07d SE |
15167 | fi |
15168 | ;; | |
15169 | ||
15170 | os2*) | |
15171 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15172 | hardcode_minus_L_FC=yes | |
15173 | allow_undefined_flag_FC=unsupported | |
43e02a8a | 15174 | 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' |
1cf3d07d SE |
15175 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
15176 | ;; | |
15177 | ||
15178 | osf3*) | |
15179 | if test "$GCC" = yes; then | |
15180 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 15181 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
15182 | else |
15183 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 15184 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
15185 | fi |
15186 | archive_cmds_need_lc_FC='no' | |
15187 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
15188 | hardcode_libdir_separator_FC=: | |
15189 | ;; | |
15190 | ||
15191 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
15192 | if test "$GCC" = yes; then | |
15193 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 15194 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
15195 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' |
15196 | else | |
15197 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 15198 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
1cf3d07d | 15199 | 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~ |
43e02a8a | 15200 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
1cf3d07d SE |
15201 | |
15202 | # Both c and cxx compiler support -rpath directly | |
15203 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
15204 | fi | |
15205 | archive_cmds_need_lc_FC='no' | |
15206 | hardcode_libdir_separator_FC=: | |
15207 | ;; | |
15208 | ||
15209 | solaris*) | |
15210 | no_undefined_flag_FC=' -z defs' | |
15211 | if test "$GCC" = yes; then | |
15212 | wlarc='${wl}' | |
15213 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15214 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
15215 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
15216 | else | |
15217 | case `$CC -V 2>&1` in | |
15218 | *"Compilers 5.0"*) | |
15219 | wlarc='' | |
15220 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15221 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
15222 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
15223 | ;; | |
15224 | *) | |
15225 | wlarc='${wl}' | |
15226 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15227 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
15228 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
15229 | ;; | |
15230 | esac | |
15231 | fi | |
15232 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15233 | hardcode_shlibpath_var_FC=no | |
15234 | case $host_os in | |
15235 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
15236 | *) | |
15237 | # The compiler driver will combine and reorder linker options, | |
15238 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
15239 | # but is careful enough not to reorder. | |
15240 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
15241 | if test "$GCC" = yes; then | |
15242 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
15243 | else | |
15244 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
15245 | fi | |
15246 | ;; | |
15247 | esac | |
15248 | link_all_deplibs_FC=yes | |
15249 | ;; | |
15250 | ||
15251 | sunos4*) | |
15252 | if test "x$host_vendor" = xsequent; then | |
15253 | # Use $CC to link under sequent, because it throws in some extra .o | |
15254 | # files that make .init and .fini sections work. | |
15255 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15256 | else | |
15257 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
15258 | fi | |
15259 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15260 | hardcode_direct_FC=yes | |
15261 | hardcode_minus_L_FC=yes | |
15262 | hardcode_shlibpath_var_FC=no | |
15263 | ;; | |
15264 | ||
15265 | sysv4) | |
15266 | case $host_vendor in | |
15267 | sni) | |
15268 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15269 | hardcode_direct_FC=yes # is this really true??? | |
15270 | ;; | |
15271 | siemens) | |
15272 | ## LD is ld it makes a PLAMLIB | |
15273 | ## CC just makes a GrossModule. | |
15274 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
15275 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
15276 | hardcode_direct_FC=no | |
15277 | ;; | |
15278 | motorola) | |
15279 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15280 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
15281 | ;; | |
15282 | esac | |
15283 | runpath_var='LD_RUN_PATH' | |
15284 | hardcode_shlibpath_var_FC=no | |
15285 | ;; | |
15286 | ||
15287 | sysv4.3*) | |
15288 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15289 | hardcode_shlibpath_var_FC=no | |
15290 | export_dynamic_flag_spec_FC='-Bexport' | |
15291 | ;; | |
15292 | ||
15293 | sysv4*MP*) | |
15294 | if test -d /usr/nec; then | |
15295 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15296 | hardcode_shlibpath_var_FC=no | |
15297 | runpath_var=LD_RUN_PATH | |
15298 | hardcode_runpath_var=yes | |
15299 | ld_shlibs_FC=yes | |
15300 | fi | |
15301 | ;; | |
15302 | ||
15303 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
15304 | no_undefined_flag_FC='${wl}-z,text' | |
15305 | archive_cmds_need_lc_FC=no | |
15306 | hardcode_shlibpath_var_FC=no | |
15307 | runpath_var='LD_RUN_PATH' | |
15308 | ||
15309 | if test "$GCC" = yes; then | |
15310 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15311 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15312 | else | |
15313 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15314 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15315 | fi | |
15316 | ;; | |
15317 | ||
15318 | sysv5* | sco3.2v5* | sco5v6*) | |
15319 | # Note: We can NOT use -z defs as we might desire, because we do not | |
15320 | # link with -lc, and that would cause any symbols used from libc to | |
15321 | # always be unresolved, which means just about no library would | |
15322 | # ever link correctly. If we're not using GNU ld we use -z text | |
15323 | # though, which does catch some bad symbols but isn't as heavy-handed | |
15324 | # as -z defs. | |
15325 | no_undefined_flag_FC='${wl}-z,text' | |
15326 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
15327 | archive_cmds_need_lc_FC=no | |
15328 | hardcode_shlibpath_var_FC=no | |
15329 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
15330 | hardcode_libdir_separator_FC=':' | |
15331 | link_all_deplibs_FC=yes | |
15332 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
15333 | runpath_var='LD_RUN_PATH' | |
15334 | ||
15335 | if test "$GCC" = yes; then | |
15336 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15337 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15338 | else | |
15339 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15340 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15341 | fi | |
15342 | ;; | |
15343 | ||
15344 | uts4*) | |
15345 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15346 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15347 | hardcode_shlibpath_var_FC=no | |
15348 | ;; | |
15349 | ||
15350 | *) | |
15351 | ld_shlibs_FC=no | |
15352 | ;; | |
15353 | esac | |
15354 | ||
15355 | if test x$host_vendor = xsni; then | |
15356 | case $host in | |
15357 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
15358 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
15359 | ;; | |
15360 | esac | |
15361 | fi | |
15362 | fi | |
15363 | ||
5213506e RW |
15364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 |
15365 | $as_echo "$ld_shlibs_FC" >&6; } | |
1cf3d07d SE |
15366 | test "$ld_shlibs_FC" = no && can_build_shared=no |
15367 | ||
15368 | with_gnu_ld_FC=$with_gnu_ld | |
15369 | ||
15370 | ||
15371 | ||
15372 | ||
15373 | ||
15374 | ||
15375 | # | |
15376 | # Do we need to explicitly link libc? | |
15377 | # | |
15378 | case "x$archive_cmds_need_lc_FC" in | |
15379 | x|xyes) | |
15380 | # Assume -lc should be added | |
15381 | archive_cmds_need_lc_FC=yes | |
15382 | ||
15383 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
15384 | case $archive_cmds_FC in | |
15385 | *'~'*) | |
15386 | # FIXME: we may have to deal with multi-command sequences. | |
15387 | ;; | |
15388 | '$CC '*) | |
15389 | # Test whether the compiler implicitly links with -lc since on some | |
15390 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15391 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
15392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
15393 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 15394 | if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : |
5213506e | 15395 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
15396 | else |
15397 | $RM conftest* | |
15398 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 15399 | |
5213506e | 15400 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
15401 | (eval $ac_compile) 2>&5 |
15402 | ac_status=$? | |
5213506e RW |
15403 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15404 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
15405 | soname=conftest |
15406 | lib=conftest | |
15407 | libobjs=conftest.$ac_objext | |
15408 | deplibs= | |
15409 | wl=$lt_prog_compiler_wl_FC | |
15410 | pic_flag=$lt_prog_compiler_pic_FC | |
15411 | compiler_flags=-v | |
15412 | linker_flags=-v | |
15413 | verstring= | |
15414 | output_objdir=. | |
15415 | libname=conftest | |
15416 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
15417 | allow_undefined_flag_FC= | |
5213506e | 15418 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d | 15419 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9cdc381b | 15420 | ac_status=$? |
5213506e RW |
15421 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15422 | test $ac_status = 0; } | |
baafc534 RW |
15423 | then |
15424 | lt_cv_archive_cmds_need_lc_FC=no | |
15425 | else | |
15426 | lt_cv_archive_cmds_need_lc_FC=yes | |
15427 | fi | |
15428 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
15429 | else | |
15430 | cat conftest.err 1>&5 | |
15431 | fi | |
15432 | $RM conftest* | |
15433 | ||
15434 | fi | |
5213506e RW |
15435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 |
15436 | $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } | |
baafc534 | 15437 | archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC |
1cf3d07d SE |
15438 | ;; |
15439 | esac | |
15440 | fi | |
15441 | ;; | |
15442 | esac | |
9cdc381b | 15443 | |
9cdc381b | 15444 | |
1cf3d07d SE |
15445 | |
15446 | ||
15447 | ||
15448 | ||
15449 | ||
15450 | ||
15451 | ||
15452 | ||
15453 | ||
15454 | ||
15455 | ||
15456 | ||
15457 | ||
15458 | ||
15459 | ||
15460 | ||
15461 | ||
15462 | ||
15463 | ||
15464 | ||
15465 | ||
15466 | ||
15467 | ||
15468 | ||
15469 | ||
15470 | ||
15471 | ||
15472 | ||
15473 | ||
15474 | ||
15475 | ||
15476 | ||
15477 | ||
15478 | ||
15479 | ||
15480 | ||
15481 | ||
15482 | ||
15483 | ||
15484 | ||
15485 | ||
15486 | ||
15487 | ||
15488 | ||
15489 | ||
15490 | ||
15491 | ||
15492 | ||
15493 | ||
15494 | ||
15495 | ||
15496 | ||
15497 | ||
15498 | ||
15499 | ||
15500 | ||
15501 | ||
15502 | ||
15503 | ||
15504 | ||
15505 | ||
15506 | ||
5213506e RW |
15507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
15508 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
d58dead8 | 15509 | |
1cf3d07d SE |
15510 | library_names_spec= |
15511 | libname_spec='lib$name' | |
15512 | soname_spec= | |
15513 | shrext_cmds=".so" | |
15514 | postinstall_cmds= | |
15515 | postuninstall_cmds= | |
15516 | finish_cmds= | |
15517 | finish_eval= | |
15518 | shlibpath_var= | |
15519 | shlibpath_overrides_runpath=unknown | |
15520 | version_type=none | |
15521 | dynamic_linker="$host_os ld.so" | |
15522 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15523 | need_lib_prefix=unknown | |
15524 | hardcode_into_libs=no | |
15525 | ||
15526 | # when you set need_version to no, make sure it does not cause -set_version | |
15527 | # flags to be left without arguments | |
15528 | need_version=unknown | |
15529 | ||
15530 | case $host_os in | |
15531 | aix3*) | |
15532 | version_type=linux | |
15533 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
15534 | shlibpath_var=LIBPATH | |
15535 | ||
15536 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15537 | soname_spec='${libname}${release}${shared_ext}$major' | |
15538 | ;; | |
15539 | ||
4f6bebc3 | 15540 | aix[4-9]*) |
1cf3d07d SE |
15541 | version_type=linux |
15542 | need_lib_prefix=no | |
15543 | need_version=no | |
15544 | hardcode_into_libs=yes | |
15545 | if test "$host_cpu" = ia64; then | |
15546 | # AIX 5 supports IA64 | |
15547 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15548 | shlibpath_var=LD_LIBRARY_PATH | |
15549 | else | |
15550 | # With GCC up to 2.95.x, collect2 would create an import file | |
15551 | # for dependence libraries. The import file would start with | |
15552 | # the line `#! .'. This would cause the generated library to | |
15553 | # depend on `.', always an invalid library. This was fixed in | |
15554 | # development snapshots of GCC prior to 3.0. | |
15555 | case $host_os in | |
15556 | aix4 | aix4.[01] | aix4.[01].*) | |
15557 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15558 | echo ' yes ' | |
15559 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
15560 | : | |
15561 | else | |
15562 | can_build_shared=no | |
15563 | fi | |
15564 | ;; | |
15565 | esac | |
15566 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15567 | # soname into executable. Probably we can add versioning support to | |
15568 | # collect2, so additional links can be useful in future. | |
15569 | if test "$aix_use_runtimelinking" = yes; then | |
15570 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15571 | # instead of lib<name>.a to let people know that these are not | |
15572 | # typical AIX shared libraries. | |
15573 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15574 | else | |
15575 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15576 | # and later when we are not doing run time linking. | |
15577 | library_names_spec='${libname}${release}.a $libname.a' | |
15578 | soname_spec='${libname}${release}${shared_ext}$major' | |
15579 | fi | |
15580 | shlibpath_var=LIBPATH | |
15581 | fi | |
15582 | ;; | |
15583 | ||
15584 | amigaos*) | |
d58dead8 PG |
15585 | case $host_cpu in |
15586 | powerpc) | |
15587 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15588 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15590 | ;; | |
15591 | m68k) | |
1cf3d07d SE |
15592 | library_names_spec='$libname.ixlibrary $libname.a' |
15593 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 15594 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' |
d58dead8 PG |
15595 | ;; |
15596 | esac | |
1cf3d07d SE |
15597 | ;; |
15598 | ||
15599 | beos*) | |
15600 | library_names_spec='${libname}${shared_ext}' | |
15601 | dynamic_linker="$host_os ld.so" | |
15602 | shlibpath_var=LIBRARY_PATH | |
15603 | ;; | |
15604 | ||
15605 | bsdi[45]*) | |
15606 | version_type=linux | |
15607 | need_version=no | |
15608 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15609 | soname_spec='${libname}${release}${shared_ext}$major' | |
15610 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15611 | shlibpath_var=LD_LIBRARY_PATH | |
15612 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15613 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15614 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15615 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15616 | # libtool to hard-code these into programs | |
15617 | ;; | |
15618 | ||
d58dead8 | 15619 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
15620 | version_type=windows |
15621 | shrext_cmds=".dll" | |
15622 | need_version=no | |
15623 | need_lib_prefix=no | |
15624 | ||
d58dead8 PG |
15625 | case $GCC,$host_os in |
15626 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
15627 | library_names_spec='$libname.dll.a' |
15628 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15629 | postinstall_cmds='base_file=`basename \${file}`~ | |
15630 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15631 | dldir=$destdir/`dirname \$dlpath`~ | |
15632 | test -d \$dldir || mkdir -p \$dldir~ | |
15633 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15634 | chmod a+x \$dldir/$dlname~ | |
15635 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15636 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15637 | fi' | |
15638 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15639 | dlpath=$dir/\$dldll~ | |
15640 | $RM \$dlpath' | |
15641 | shlibpath_overrides_runpath=yes | |
15642 | ||
15643 | case $host_os in | |
15644 | cygwin*) | |
15645 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15646 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a | 15647 | |
1cf3d07d | 15648 | ;; |
d58dead8 | 15649 | mingw* | cegcc*) |
1cf3d07d SE |
15650 | # MinGW DLLs use traditional 'lib' prefix |
15651 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
15652 | ;; |
15653 | pw32*) | |
15654 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15655 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15656 | ;; | |
15657 | esac | |
15658 | ;; | |
15659 | ||
15660 | *) | |
15661 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
15662 | ;; | |
15663 | esac | |
15664 | dynamic_linker='Win32 ld.exe' | |
15665 | # FIXME: first we should search . and the directory the executable is in | |
15666 | shlibpath_var=PATH | |
15667 | ;; | |
15668 | ||
15669 | darwin* | rhapsody*) | |
15670 | dynamic_linker="$host_os dyld" | |
15671 | version_type=darwin | |
15672 | need_lib_prefix=no | |
15673 | need_version=no | |
15674 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15675 | soname_spec='${libname}${release}${major}$shared_ext' | |
15676 | shlibpath_overrides_runpath=yes | |
15677 | shlibpath_var=DYLD_LIBRARY_PATH | |
15678 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
15679 | ||
15680 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
15681 | ;; | |
15682 | ||
15683 | dgux*) | |
15684 | version_type=linux | |
15685 | need_lib_prefix=no | |
15686 | need_version=no | |
15687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15688 | soname_spec='${libname}${release}${shared_ext}$major' | |
15689 | shlibpath_var=LD_LIBRARY_PATH | |
15690 | ;; | |
15691 | ||
1cf3d07d SE |
15692 | freebsd* | dragonfly*) |
15693 | # DragonFly does not have aout. When/if they implement a new | |
15694 | # versioning mechanism, adjust this. | |
15695 | if test -x /usr/bin/objformat; then | |
15696 | objformat=`/usr/bin/objformat` | |
15697 | else | |
15698 | case $host_os in | |
c6084f68 | 15699 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
15700 | *) objformat=elf ;; |
15701 | esac | |
15702 | fi | |
15703 | version_type=freebsd-$objformat | |
15704 | case $version_type in | |
15705 | freebsd-elf*) | |
15706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15707 | need_version=no | |
15708 | need_lib_prefix=no | |
15709 | ;; | |
15710 | freebsd-*) | |
15711 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15712 | need_version=yes | |
15713 | ;; | |
15714 | esac | |
15715 | shlibpath_var=LD_LIBRARY_PATH | |
15716 | case $host_os in | |
c6084f68 | 15717 | freebsd2.*) |
1cf3d07d SE |
15718 | shlibpath_overrides_runpath=yes |
15719 | ;; | |
15720 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15721 | shlibpath_overrides_runpath=yes | |
15722 | hardcode_into_libs=yes | |
15723 | ;; | |
15724 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15725 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15726 | shlibpath_overrides_runpath=no | |
15727 | hardcode_into_libs=yes | |
15728 | ;; | |
15729 | *) # from 4.6 on, and DragonFly | |
15730 | shlibpath_overrides_runpath=yes | |
15731 | hardcode_into_libs=yes | |
15732 | ;; | |
15733 | esac | |
15734 | ;; | |
15735 | ||
43e02a8a RW |
15736 | haiku*) |
15737 | version_type=linux | |
15738 | need_lib_prefix=no | |
15739 | need_version=no | |
15740 | dynamic_linker="$host_os runtime_loader" | |
15741 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15742 | soname_spec='${libname}${release}${shared_ext}$major' | |
15743 | shlibpath_var=LIBRARY_PATH | |
15744 | shlibpath_overrides_runpath=yes | |
15745 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
15746 | hardcode_into_libs=yes | |
15747 | ;; | |
15748 | ||
1cf3d07d SE |
15749 | hpux9* | hpux10* | hpux11*) |
15750 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15751 | # link against other versions. | |
15752 | version_type=sunos | |
15753 | need_lib_prefix=no | |
15754 | need_version=no | |
15755 | case $host_cpu in | |
15756 | ia64*) | |
15757 | shrext_cmds='.so' | |
15758 | hardcode_into_libs=yes | |
15759 | dynamic_linker="$host_os dld.so" | |
15760 | shlibpath_var=LD_LIBRARY_PATH | |
15761 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15763 | soname_spec='${libname}${release}${shared_ext}$major' | |
15764 | if test "X$HPUX_IA64_MODE" = X32; then | |
15765 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15766 | else | |
15767 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15768 | fi | |
15769 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15770 | ;; | |
15771 | hppa*64*) | |
15772 | shrext_cmds='.sl' | |
15773 | hardcode_into_libs=yes | |
15774 | dynamic_linker="$host_os dld.sl" | |
15775 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15776 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15778 | soname_spec='${libname}${release}${shared_ext}$major' | |
15779 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15780 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15781 | ;; | |
15782 | *) | |
15783 | shrext_cmds='.sl' | |
15784 | dynamic_linker="$host_os dld.sl" | |
15785 | shlibpath_var=SHLIB_PATH | |
15786 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15787 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15788 | soname_spec='${libname}${release}${shared_ext}$major' | |
15789 | ;; | |
15790 | esac | |
43e02a8a | 15791 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 15792 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
15793 | # or fails outright, so override atomically: |
15794 | install_override_mode=555 | |
1cf3d07d SE |
15795 | ;; |
15796 | ||
15797 | interix[3-9]*) | |
15798 | version_type=linux | |
15799 | need_lib_prefix=no | |
15800 | need_version=no | |
15801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15802 | soname_spec='${libname}${release}${shared_ext}$major' | |
15803 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15804 | shlibpath_var=LD_LIBRARY_PATH | |
15805 | shlibpath_overrides_runpath=no | |
15806 | hardcode_into_libs=yes | |
15807 | ;; | |
15808 | ||
15809 | irix5* | irix6* | nonstopux*) | |
15810 | case $host_os in | |
15811 | nonstopux*) version_type=nonstopux ;; | |
15812 | *) | |
15813 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15814 | version_type=linux | |
15815 | else | |
15816 | version_type=irix | |
15817 | fi ;; | |
15818 | esac | |
15819 | need_lib_prefix=no | |
15820 | need_version=no | |
15821 | soname_spec='${libname}${release}${shared_ext}$major' | |
15822 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15823 | case $host_os in | |
15824 | irix5* | nonstopux*) | |
15825 | libsuff= shlibsuff= | |
15826 | ;; | |
15827 | *) | |
15828 | case $LD in # libtool.m4 will add one of these switches to LD | |
15829 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15830 | libsuff= shlibsuff= libmagic=32-bit;; | |
15831 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15832 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15833 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15834 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15835 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15836 | esac | |
15837 | ;; | |
15838 | esac | |
15839 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15840 | shlibpath_overrides_runpath=no | |
15841 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15842 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15843 | hardcode_into_libs=yes | |
15844 | ;; | |
15845 | ||
15846 | # No shared lib support for Linux oldld, aout, or coff. | |
15847 | linux*oldld* | linux*aout* | linux*coff*) | |
15848 | dynamic_linker=no | |
15849 | ;; | |
15850 | ||
15851 | # This must be Linux ELF. | |
e9085da5 MR |
15852 | |
15853 | # uclinux* changes (here and below) have been submitted to the libtool | |
15854 | # project, but have not yet been accepted: they are GCC-local changes | |
15855 | # for the time being. (See | |
15856 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
c0f8c22a | 15857 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
1cf3d07d SE |
15858 | version_type=linux |
15859 | need_lib_prefix=no | |
15860 | need_version=no | |
15861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15862 | soname_spec='${libname}${release}${shared_ext}$major' | |
15863 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15864 | shlibpath_var=LD_LIBRARY_PATH | |
15865 | shlibpath_overrides_runpath=no | |
baafc534 | 15866 | |
1cf3d07d | 15867 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 15868 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 15869 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
15870 | else |
15871 | lt_cv_shlibpath_overrides_runpath=no | |
15872 | save_LDFLAGS=$LDFLAGS | |
15873 | save_libdir=$libdir | |
15874 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
15875 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
15876 | if test x$gcc_no_link = xyes; then | |
22e05272 | 15877 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 15878 | fi |
5213506e | 15879 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
15880 | program main |
15881 | ||
15882 | end | |
9cdc381b | 15883 | _ACEOF |
5213506e RW |
15884 | if ac_fn_fc_try_link "$LINENO"; then : |
15885 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 15886 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 15887 | fi |
9cdc381b | 15888 | fi |
5213506e RW |
15889 | rm -f core conftest.err conftest.$ac_objext \ |
15890 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
15891 | LDFLAGS=$save_LDFLAGS |
15892 | libdir=$save_libdir | |
15893 | ||
15894 | fi | |
15895 | ||
15896 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
15897 | |
15898 | # This implies no fast_install, which is unacceptable. | |
15899 | # Some rework will be needed to allow for fast_install | |
15900 | # before this can be enabled. | |
15901 | hardcode_into_libs=yes | |
15902 | ||
15903 | # Append ld.so.conf contents to the search path | |
15904 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 15905 | 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;s/"//g;/^$/d' | tr '\n' ' '` |
1cf3d07d SE |
15906 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15907 | fi | |
15908 | ||
15909 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15910 | # powerpc, because MkLinux only supported shared libraries with the | |
15911 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15912 | # most powerpc-linux boxes support dynamic linking these days and | |
15913 | # people can always --disable-shared, the test was removed, and we | |
15914 | # assume the GNU/Linux dynamic linker is in use. | |
15915 | dynamic_linker='GNU/Linux ld.so' | |
15916 | ;; | |
15917 | ||
15918 | netbsd*) | |
15919 | version_type=sunos | |
15920 | need_lib_prefix=no | |
15921 | need_version=no | |
15922 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15924 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15925 | dynamic_linker='NetBSD (a.out) ld.so' | |
15926 | else | |
15927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15928 | soname_spec='${libname}${release}${shared_ext}$major' | |
15929 | dynamic_linker='NetBSD ld.elf_so' | |
15930 | fi | |
15931 | shlibpath_var=LD_LIBRARY_PATH | |
15932 | shlibpath_overrides_runpath=yes | |
15933 | hardcode_into_libs=yes | |
15934 | ;; | |
15935 | ||
15936 | newsos6) | |
15937 | version_type=linux | |
15938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15939 | shlibpath_var=LD_LIBRARY_PATH | |
15940 | shlibpath_overrides_runpath=yes | |
15941 | ;; | |
15942 | ||
15943 | *nto* | *qnx*) | |
15944 | version_type=qnx | |
15945 | need_lib_prefix=no | |
15946 | need_version=no | |
15947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15948 | soname_spec='${libname}${release}${shared_ext}$major' | |
15949 | shlibpath_var=LD_LIBRARY_PATH | |
15950 | shlibpath_overrides_runpath=no | |
15951 | hardcode_into_libs=yes | |
15952 | dynamic_linker='ldqnx.so' | |
15953 | ;; | |
15954 | ||
15955 | openbsd*) | |
15956 | version_type=sunos | |
15957 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15958 | need_lib_prefix=no | |
15959 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15960 | case $host_os in | |
15961 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15962 | *) need_version=no ;; | |
15963 | esac | |
15964 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15965 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15966 | shlibpath_var=LD_LIBRARY_PATH | |
15967 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15968 | case $host_os in | |
15969 | openbsd2.[89] | openbsd2.[89].*) | |
15970 | shlibpath_overrides_runpath=no | |
15971 | ;; | |
15972 | *) | |
15973 | shlibpath_overrides_runpath=yes | |
15974 | ;; | |
15975 | esac | |
15976 | else | |
15977 | shlibpath_overrides_runpath=yes | |
15978 | fi | |
15979 | ;; | |
15980 | ||
15981 | os2*) | |
15982 | libname_spec='$name' | |
15983 | shrext_cmds=".dll" | |
15984 | need_lib_prefix=no | |
15985 | library_names_spec='$libname${shared_ext} $libname.a' | |
15986 | dynamic_linker='OS/2 ld.exe' | |
15987 | shlibpath_var=LIBPATH | |
15988 | ;; | |
15989 | ||
15990 | osf3* | osf4* | osf5*) | |
15991 | version_type=osf | |
15992 | need_lib_prefix=no | |
15993 | need_version=no | |
15994 | soname_spec='${libname}${release}${shared_ext}$major' | |
15995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15996 | shlibpath_var=LD_LIBRARY_PATH | |
15997 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15998 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15999 | ;; | |
16000 | ||
16001 | rdos*) | |
16002 | dynamic_linker=no | |
16003 | ;; | |
16004 | ||
16005 | solaris*) | |
16006 | version_type=linux | |
16007 | need_lib_prefix=no | |
16008 | need_version=no | |
16009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16010 | soname_spec='${libname}${release}${shared_ext}$major' | |
16011 | shlibpath_var=LD_LIBRARY_PATH | |
16012 | shlibpath_overrides_runpath=yes | |
16013 | hardcode_into_libs=yes | |
16014 | # ldd complains unless libraries are executable | |
16015 | postinstall_cmds='chmod +x $lib' | |
16016 | ;; | |
16017 | ||
16018 | sunos4*) | |
16019 | version_type=sunos | |
16020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
16021 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
16022 | shlibpath_var=LD_LIBRARY_PATH | |
16023 | shlibpath_overrides_runpath=yes | |
16024 | if test "$with_gnu_ld" = yes; then | |
16025 | need_lib_prefix=no | |
16026 | fi | |
16027 | need_version=yes | |
16028 | ;; | |
16029 | ||
16030 | sysv4 | sysv4.3*) | |
16031 | version_type=linux | |
16032 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16033 | soname_spec='${libname}${release}${shared_ext}$major' | |
16034 | shlibpath_var=LD_LIBRARY_PATH | |
16035 | case $host_vendor in | |
16036 | sni) | |
16037 | shlibpath_overrides_runpath=no | |
16038 | need_lib_prefix=no | |
16039 | runpath_var=LD_RUN_PATH | |
16040 | ;; | |
16041 | siemens) | |
16042 | need_lib_prefix=no | |
16043 | ;; | |
16044 | motorola) | |
16045 | need_lib_prefix=no | |
16046 | need_version=no | |
16047 | shlibpath_overrides_runpath=no | |
16048 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
16049 | ;; | |
16050 | esac | |
16051 | ;; | |
16052 | ||
16053 | sysv4*MP*) | |
16054 | if test -d /usr/nec ;then | |
16055 | version_type=linux | |
16056 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
16057 | soname_spec='$libname${shared_ext}.$major' | |
16058 | shlibpath_var=LD_LIBRARY_PATH | |
16059 | fi | |
16060 | ;; | |
16061 | ||
16062 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
16063 | version_type=freebsd-elf | |
16064 | need_lib_prefix=no | |
16065 | need_version=no | |
16066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
16067 | soname_spec='${libname}${release}${shared_ext}$major' | |
16068 | shlibpath_var=LD_LIBRARY_PATH | |
16069 | shlibpath_overrides_runpath=yes | |
16070 | hardcode_into_libs=yes | |
16071 | if test "$with_gnu_ld" = yes; then | |
16072 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
16073 | else | |
16074 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
16075 | case $host_os in | |
16076 | sco3.2v5*) | |
16077 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
16078 | ;; | |
16079 | esac | |
16080 | fi | |
16081 | sys_lib_dlsearch_path_spec='/usr/lib' | |
16082 | ;; | |
16083 | ||
16084 | tpf*) | |
16085 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
16086 | version_type=linux | |
16087 | need_lib_prefix=no | |
16088 | need_version=no | |
d58dead8 | 16089 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
16090 | shlibpath_var=LD_LIBRARY_PATH |
16091 | shlibpath_overrides_runpath=no | |
16092 | hardcode_into_libs=yes | |
16093 | ;; | |
16094 | ||
16095 | uts4*) | |
16096 | version_type=linux | |
16097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16098 | soname_spec='${libname}${release}${shared_ext}$major' | |
16099 | shlibpath_var=LD_LIBRARY_PATH | |
16100 | ;; | |
16101 | ||
0ecd0f1c OH |
16102 | # Shared libraries for VwWorks, >= 7 only at this stage |
16103 | # and (fpic) still incompatible with "large" code models | |
16104 | # in a few configurations. Only for RTP mode in any case, | |
16105 | # and upon explicit request at configure time. | |
16106 | vxworks7*) | |
16107 | dynamic_linker=no | |
16108 | case ${with_multisubdir}-${enable_shared} in | |
16109 | *large*) | |
16110 | ;; | |
16111 | *mrtp*-yes) | |
16112 | version_type=linux | |
16113 | need_lib_prefix=no | |
16114 | need_version=no | |
16115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16116 | soname_spec='${libname}${release}${shared_ext}$major' | |
16117 | dynamic_linker="$host_os module_loader" | |
16118 | ;; | |
16119 | esac | |
16120 | ;; | |
1cf3d07d SE |
16121 | *) |
16122 | dynamic_linker=no | |
16123 | ;; | |
16124 | esac | |
5213506e RW |
16125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
16126 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
16127 | test "$dynamic_linker" = no && can_build_shared=no |
16128 | ||
16129 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
16130 | if test "$GCC" = yes; then | |
16131 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9cdc381b | 16132 | fi |
9cdc381b | 16133 | |
d58dead8 PG |
16134 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
16135 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
16136 | fi | |
16137 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
16138 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
16139 | fi | |
16140 | ||
9cdc381b | 16141 | |
1cf3d07d SE |
16142 | |
16143 | ||
16144 | ||
16145 | ||
16146 | ||
16147 | ||
16148 | ||
16149 | ||
16150 | ||
16151 | ||
16152 | ||
16153 | ||
16154 | ||
16155 | ||
16156 | ||
16157 | ||
16158 | ||
16159 | ||
16160 | ||
16161 | ||
16162 | ||
16163 | ||
16164 | ||
16165 | ||
16166 | ||
16167 | ||
16168 | ||
16169 | ||
16170 | ||
16171 | ||
16172 | ||
43e02a8a RW |
16173 | |
16174 | ||
1cf3d07d SE |
16175 | |
16176 | ||
16177 | ||
5213506e RW |
16178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
16179 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
16180 | hardcode_action_FC= |
16181 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
16182 | test -n "$runpath_var_FC" || | |
16183 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
16184 | ||
16185 | # We can hardcode non-existent directories. | |
16186 | if test "$hardcode_direct_FC" != no && | |
16187 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
16188 | # have to relink, otherwise we might link with an installed library | |
16189 | # when we should be linking with a yet-to-be-installed one | |
16190 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
16191 | test "$hardcode_minus_L_FC" != no; then | |
16192 | # Linking always hardcodes the temporary library directory. | |
16193 | hardcode_action_FC=relink | |
16194 | else | |
16195 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
16196 | hardcode_action_FC=immediate | |
16197 | fi | |
16198 | else | |
16199 | # We cannot hardcode anything, or else we can only hardcode existing | |
16200 | # directories. | |
16201 | hardcode_action_FC=unsupported | |
9cdc381b | 16202 | fi |
5213506e RW |
16203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 |
16204 | $as_echo "$hardcode_action_FC" >&6; } | |
1cf3d07d SE |
16205 | |
16206 | if test "$hardcode_action_FC" = relink || | |
16207 | test "$inherit_rpath_FC" = yes; then | |
16208 | # Fast installation is not supported | |
16209 | enable_fast_install=no | |
16210 | elif test "$shlibpath_overrides_runpath" = yes || | |
16211 | test "$enable_shared" = no; then | |
16212 | # Fast installation is not necessary | |
16213 | enable_fast_install=needless | |
9cdc381b BD |
16214 | fi |
16215 | ||
1cf3d07d SE |
16216 | |
16217 | ||
16218 | ||
16219 | ||
16220 | ||
16221 | ||
16222 | fi # test -n "$compiler" | |
16223 | ||
d58dead8 | 16224 | GCC=$lt_save_GCC |
1cf3d07d SE |
16225 | CC="$lt_save_CC" |
16226 | fi # test "$_lt_disable_FC" != yes | |
16227 | ||
dd46a4de | 16228 | ac_ext=c |
96b8a615 AJ |
16229 | ac_cpp='$CPP $CPPFLAGS' |
16230 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16231 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16232 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1cf3d07d SE |
16233 | |
16234 | ||
16235 | ||
16236 | # extra LD Flags which are required for targets | |
16237 | case "${host}" in | |
16238 | *-darwin*) | |
16239 | # Darwin needs -single_module when linking libgfortran | |
16240 | extra_ldflags_libgfortran=-Wl,-single_module | |
16241 | ;; | |
16242 | esac | |
16243 | ||
16244 | ||
16245 | # We need a working compiler at that point, otherwise give a clear | |
16246 | # error message and bail out. | |
16247 | ||
5213506e RW |
16248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5 |
16249 | $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; } | |
16250 | ac_ext=${ac_fc_srcext-f} | |
16251 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
16252 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
16253 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
16254 | ||
5213506e | 16255 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
16256 | |
16257 | program foo | |
16258 | real, parameter :: bar = sin (12.34 / 2.5) | |
16259 | end program foo | |
6de9cd9a | 16260 | _ACEOF |
5213506e RW |
16261 | if ac_fn_fc_try_compile "$LINENO"; then : |
16262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16263 | $as_echo "yes" >&6; } | |
6de9cd9a | 16264 | else |
5213506e RW |
16265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16266 | $as_echo "no" >&6; } | |
22e05272 | 16267 | as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5 |
6de9cd9a | 16268 | |
96b8a615 | 16269 | fi |
5213506e | 16270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
16271 | ac_ext=c |
16272 | ac_cpp='$CPP $CPPFLAGS' | |
16273 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16274 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16275 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
96b8a615 | 16276 | |
96b8a615 | 16277 | |
1cf3d07d | 16278 | |
5213506e RW |
16279 | # Check whether --enable-largefile was given. |
16280 | if test "${enable_largefile+set}" = set; then : | |
16281 | enableval=$enable_largefile; | |
16282 | fi | |
1cf3d07d | 16283 | |
1cf3d07d SE |
16284 | if test "$enable_largefile" != no; then |
16285 | ||
5213506e RW |
16286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
16287 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
22e05272 | 16288 | if ${ac_cv_sys_largefile_CC+:} false; then : |
5213506e | 16289 | $as_echo_n "(cached) " >&6 |
96b8a615 | 16290 | else |
1cf3d07d SE |
16291 | ac_cv_sys_largefile_CC=no |
16292 | if test "$GCC" != yes; then | |
16293 | ac_save_CC=$CC | |
16294 | while :; do | |
5213506e RW |
16295 | # IRIX 6.2 and later do not support large files by default, |
16296 | # so use the C compiler's -n32 option if that helps. | |
16297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
96b8a615 | 16298 | /* end confdefs.h. */ |
1cf3d07d SE |
16299 | #include <sys/types.h> |
16300 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16301 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16302 | since some C++ compilers masquerading as C compilers | |
16303 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16304 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16305 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16306 | && LARGE_OFF_T % 2147483647 == 1) | |
16307 | ? 1 : -1]; | |
4c4b3eb0 PB |
16308 | int |
16309 | main () | |
16310 | { | |
4c4b3eb0 PB |
16311 | |
16312 | ; | |
16313 | return 0; | |
16314 | } | |
16315 | _ACEOF | |
5213506e RW |
16316 | if ac_fn_c_try_compile "$LINENO"; then : |
16317 | break | |
4c4b3eb0 | 16318 | fi |
5213506e RW |
16319 | rm -f core conftest.err conftest.$ac_objext |
16320 | CC="$CC -n32" | |
16321 | if ac_fn_c_try_compile "$LINENO"; then : | |
16322 | ac_cv_sys_largefile_CC=' -n32'; break | |
16323 | fi | |
16324 | rm -f core conftest.err conftest.$ac_objext | |
16325 | break | |
16326 | done | |
16327 | CC=$ac_save_CC | |
16328 | rm -f conftest.$ac_ext | |
16329 | fi | |
16330 | fi | |
16331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
16332 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
16333 | if test "$ac_cv_sys_largefile_CC" != no; then | |
16334 | CC=$CC$ac_cv_sys_largefile_CC | |
16335 | fi | |
4c4b3eb0 | 16336 | |
5213506e RW |
16337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
16338 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
22e05272 | 16339 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
5213506e RW |
16340 | $as_echo_n "(cached) " >&6 |
16341 | else | |
16342 | while :; do | |
16343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16344 | /* end confdefs.h. */ |
5213506e RW |
16345 | #include <sys/types.h> |
16346 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16347 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16348 | since some C++ compilers masquerading as C compilers | |
16349 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16350 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16351 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16352 | && LARGE_OFF_T % 2147483647 == 1) | |
16353 | ? 1 : -1]; | |
4c4b3eb0 PB |
16354 | int |
16355 | main () | |
16356 | { | |
4c4b3eb0 PB |
16357 | |
16358 | ; | |
16359 | return 0; | |
16360 | } | |
16361 | _ACEOF | |
5213506e RW |
16362 | if ac_fn_c_try_compile "$LINENO"; then : |
16363 | ac_cv_sys_file_offset_bits=no; break | |
16364 | fi | |
16365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16367 | /* end confdefs.h. */ |
5213506e RW |
16368 | #define _FILE_OFFSET_BITS 64 |
16369 | #include <sys/types.h> | |
16370 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16371 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16372 | since some C++ compilers masquerading as C compilers | |
16373 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16374 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16375 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16376 | && LARGE_OFF_T % 2147483647 == 1) | |
16377 | ? 1 : -1]; | |
4c4b3eb0 PB |
16378 | int |
16379 | main () | |
16380 | { | |
4c4b3eb0 PB |
16381 | |
16382 | ; | |
16383 | return 0; | |
16384 | } | |
16385 | _ACEOF | |
5213506e RW |
16386 | if ac_fn_c_try_compile "$LINENO"; then : |
16387 | ac_cv_sys_file_offset_bits=64; break | |
4c4b3eb0 | 16388 | fi |
5213506e RW |
16389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16390 | ac_cv_sys_file_offset_bits=unknown | |
16391 | break | |
16392 | done | |
4c4b3eb0 | 16393 | fi |
5213506e RW |
16394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
16395 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
16396 | case $ac_cv_sys_file_offset_bits in #( | |
16397 | no | unknown) ;; | |
16398 | *) | |
16399 | cat >>confdefs.h <<_ACEOF | |
16400 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4c4b3eb0 | 16401 | _ACEOF |
5213506e RW |
16402 | ;; |
16403 | esac | |
16404 | rm -rf conftest* | |
16405 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
16406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
16407 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
22e05272 | 16408 | if ${ac_cv_sys_large_files+:} false; then : |
5213506e RW |
16409 | $as_echo_n "(cached) " >&6 |
16410 | else | |
16411 | while :; do | |
16412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16413 | /* end confdefs.h. */ |
5213506e RW |
16414 | #include <sys/types.h> |
16415 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16416 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16417 | since some C++ compilers masquerading as C compilers | |
16418 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16419 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16420 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16421 | && LARGE_OFF_T % 2147483647 == 1) | |
16422 | ? 1 : -1]; | |
4c4b3eb0 PB |
16423 | int |
16424 | main () | |
16425 | { | |
4c4b3eb0 PB |
16426 | |
16427 | ; | |
16428 | return 0; | |
16429 | } | |
16430 | _ACEOF | |
5213506e RW |
16431 | if ac_fn_c_try_compile "$LINENO"; then : |
16432 | ac_cv_sys_large_files=no; break | |
4c4b3eb0 | 16433 | fi |
5213506e RW |
16434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16436 | /* end confdefs.h. */ |
5213506e RW |
16437 | #define _LARGE_FILES 1 |
16438 | #include <sys/types.h> | |
16439 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16440 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16441 | since some C++ compilers masquerading as C compilers | |
16442 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16443 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16444 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16445 | && LARGE_OFF_T % 2147483647 == 1) | |
16446 | ? 1 : -1]; | |
4c4b3eb0 PB |
16447 | int |
16448 | main () | |
16449 | { | |
16450 | ||
4c4b3eb0 PB |
16451 | ; |
16452 | return 0; | |
16453 | } | |
16454 | _ACEOF | |
5213506e RW |
16455 | if ac_fn_c_try_compile "$LINENO"; then : |
16456 | ac_cv_sys_large_files=1; break | |
4c4b3eb0 | 16457 | fi |
5213506e RW |
16458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16459 | ac_cv_sys_large_files=unknown | |
16460 | break | |
16461 | done | |
38d24731 | 16462 | fi |
5213506e RW |
16463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
16464 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
16465 | case $ac_cv_sys_large_files in #( | |
16466 | no | unknown) ;; | |
16467 | *) | |
4c4b3eb0 | 16468 | cat >>confdefs.h <<_ACEOF |
5213506e | 16469 | #define _LARGE_FILES $ac_cv_sys_large_files |
4c4b3eb0 | 16470 | _ACEOF |
5213506e RW |
16471 | ;; |
16472 | esac | |
16473 | rm -rf conftest* | |
16474 | fi | |
22e05272 JM |
16475 | |
16476 | ||
4c4b3eb0 PB |
16477 | fi |
16478 | ||
44720bef JB |
16479 | |
16480 | # Types | |
5213506e | 16481 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
22e05272 | 16482 | if test "x$ac_cv_type_off_t" = xyes; then : |
4c4b3eb0 | 16483 | |
5213506e | 16484 | else |
4c4b3eb0 | 16485 | |
5213506e RW |
16486 | cat >>confdefs.h <<_ACEOF |
16487 | #define off_t long int | |
16488 | _ACEOF | |
4c4b3eb0 | 16489 | |
44720bef JB |
16490 | fi |
16491 | ||
16492 | ||
16493 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" | |
22e05272 | 16494 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
44720bef JB |
16495 | |
16496 | $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h | |
16497 | ||
16498 | else | |
16499 | for ac_type in 'int' 'long int' 'long long int'; do | |
16500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16501 | /* end confdefs.h. */ | |
16502 | $ac_includes_default | |
16503 | int | |
16504 | main () | |
16505 | { | |
16506 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
22e05272 JM |
16507 | test_array [0] = 0; |
16508 | return test_array [0]; | |
44720bef JB |
16509 | |
16510 | ; | |
16511 | return 0; | |
16512 | } | |
16513 | _ACEOF | |
16514 | if ac_fn_c_try_compile "$LINENO"; then : | |
16515 | ||
16516 | cat >>confdefs.h <<_ACEOF | |
16517 | #define intptr_t $ac_type | |
16518 | _ACEOF | |
16519 | ||
16520 | ac_type= | |
16521 | fi | |
16522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16523 | test -z "$ac_type" && break | |
16524 | done | |
16525 | fi | |
16526 | ||
16527 | ||
16528 | ||
16529 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | |
22e05272 | 16530 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
44720bef JB |
16531 | |
16532 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | |
16533 | ||
16534 | else | |
16535 | for ac_type in 'unsigned int' 'unsigned long int' \ | |
16536 | 'unsigned long long int'; do | |
16537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16538 | /* end confdefs.h. */ | |
16539 | $ac_includes_default | |
16540 | int | |
16541 | main () | |
16542 | { | |
16543 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
22e05272 JM |
16544 | test_array [0] = 0; |
16545 | return test_array [0]; | |
44720bef JB |
16546 | |
16547 | ; | |
16548 | return 0; | |
16549 | } | |
16550 | _ACEOF | |
16551 | if ac_fn_c_try_compile "$LINENO"; then : | |
16552 | ||
16553 | cat >>confdefs.h <<_ACEOF | |
16554 | #define uintptr_t $ac_type | |
16555 | _ACEOF | |
16556 | ||
16557 | ac_type= | |
16558 | fi | |
16559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16560 | test -z "$ac_type" && break | |
16561 | done | |
16562 | fi | |
16563 | ||
16564 | ||
16565 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
22e05272 | 16566 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
44720bef JB |
16567 | |
16568 | cat >>confdefs.h <<_ACEOF | |
16569 | #define HAVE_PTRDIFF_T 1 | |
16570 | _ACEOF | |
16571 | ||
16572 | ||
4c4b3eb0 PB |
16573 | fi |
16574 | ||
4c4b3eb0 | 16575 | |
74544378 | 16576 | # check header files (we assume C89 is available, so don't check for that) |
df65f093 | 16577 | |
5213506e | 16578 | |
df65f093 | 16579 | |
74544378 JB |
16580 | for ac_header in $ac_header_list |
16581 | do : | |
16582 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16583 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
16584 | " | |
22e05272 | 16585 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
74544378 JB |
16586 | cat >>confdefs.h <<_ACEOF |
16587 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
df65f093 SK |
16588 | _ACEOF |
16589 | ||
5213506e | 16590 | fi |
df65f093 | 16591 | |
74544378 | 16592 | done |
864c28e1 RO |
16593 | |
16594 | ||
df65f093 | 16595 | |
5213506e | 16596 | |
5213506e | 16597 | |
df65f093 | 16598 | |
5213506e | 16599 | |
5213506e | 16600 | |
df65f093 | 16601 | |
df65f093 | 16602 | |
df65f093 SK |
16603 | |
16604 | ||
df65f093 | 16605 | |
df65f093 | 16606 | |
df65f093 SK |
16607 | |
16608 | ||
df65f093 SK |
16609 | |
16610 | ||
41724e6a | 16611 | |
2cbcdeba | 16612 | |
3969c39f | 16613 | |
1fb2002d FXC |
16614 | |
16615 | ||
32aa3bff | 16616 | |
f77b6ca3 | 16617 | |
f77b6ca3 | 16618 | |
f77b6ca3 | 16619 | |
f77b6ca3 | 16620 | |
f77b6ca3 | 16621 | |
f77b6ca3 | 16622 | |
fa86f4f9 TB |
16623 | |
16624 | ||
9cbecd06 JB |
16625 | |
16626 | ||
edaaef60 JB |
16627 | |
16628 | ||
f77b6ca3 | 16629 | |
f77b6ca3 | 16630 | |
6de9cd9a | 16631 | |
c13e029b | 16632 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |
6de9cd9a | 16633 | |
c13e029b PB |
16634 | acx_cv_header_stdint=stddef.h |
16635 | acx_cv_header_stdint_kind="(already complete)" | |
16636 | for i in stdint.h $inttype_headers; do | |
16637 | unset ac_cv_type_uintptr_t | |
16638 | unset ac_cv_type_uintmax_t | |
16639 | unset ac_cv_type_int_least32_t | |
16640 | unset ac_cv_type_int_fast32_t | |
16641 | unset ac_cv_type_uint64_t | |
16642 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
16643 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
16644 | #include <$i> | |
16645 | " | |
22e05272 | 16646 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
c13e029b | 16647 | acx_cv_header_stdint=$i |
5213506e | 16648 | else |
c13e029b | 16649 | continue |
5213506e | 16650 | fi |
6de9cd9a | 16651 | |
c13e029b PB |
16652 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16653 | #include <$i> | |
16654 | " | |
22e05272 | 16655 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
96b8a615 | 16656 | |
5213506e | 16657 | else |
c13e029b | 16658 | acx_cv_header_stdint_kind="(mostly complete)" |
5213506e | 16659 | fi |
96b8a615 | 16660 | |
c13e029b PB |
16661 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> |
16662 | #include <$i> | |
16663 | " | |
22e05272 | 16664 | if test "x$ac_cv_type_int_least32_t" = xyes; then : |
c13e029b | 16665 | |
f77b6ca3 | 16666 | else |
c13e029b | 16667 | acx_cv_header_stdint_kind="(mostly complete)" |
5213506e | 16668 | fi |
5213506e | 16669 | |
c13e029b PB |
16670 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> |
16671 | #include <$i> | |
16672 | " | |
22e05272 | 16673 | if test "x$ac_cv_type_int_fast32_t" = xyes; then : |
f77b6ca3 | 16674 | |
c13e029b PB |
16675 | else |
16676 | acx_cv_header_stdint_kind="(mostly complete)" | |
16677 | fi | |
d72a3ac1 | 16678 | |
c13e029b PB |
16679 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16680 | #include <$i> | |
16681 | " | |
22e05272 | 16682 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
d72a3ac1 | 16683 | |
5213506e | 16684 | else |
c13e029b PB |
16685 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
16686 | fi | |
f77b6ca3 | 16687 | |
c13e029b PB |
16688 | break |
16689 | done | |
16690 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16691 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
16692 | for i in stdint.h $inttype_headers; do | |
16693 | unset ac_cv_type_uintptr_t | |
16694 | unset ac_cv_type_uint32_t | |
16695 | unset ac_cv_type_uint64_t | |
16696 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
16697 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
16698 | #include <$i> | |
16699 | " | |
22e05272 | 16700 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
c13e029b PB |
16701 | acx_cv_header_stdint=$i |
16702 | else | |
16703 | continue | |
5213506e | 16704 | fi |
f77b6ca3 | 16705 | |
c13e029b PB |
16706 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16707 | #include <$i> | |
16708 | " | |
22e05272 | 16709 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
8845001b | 16710 | |
c13e029b | 16711 | fi |
185d7d97 | 16712 | |
c13e029b PB |
16713 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16714 | #include <$i> | |
16715 | " | |
22e05272 | 16716 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
185d7d97 | 16717 | |
c13e029b | 16718 | fi |
35059811 | 16719 | |
c13e029b PB |
16720 | break |
16721 | done | |
16722 | fi | |
16723 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16724 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
16725 | for i in sys/types.h $inttype_headers; do | |
16726 | unset ac_cv_type_u_int32_t | |
16727 | unset ac_cv_type_u_int64_t | |
16728 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
16729 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
16730 | #include <$i> | |
16731 | " | |
22e05272 | 16732 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
c13e029b | 16733 | acx_cv_header_stdint=$i |
d72a3ac1 | 16734 | else |
c13e029b PB |
16735 | continue |
16736 | fi | |
a119fc1c | 16737 | |
c13e029b PB |
16738 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> |
16739 | #include <$i> | |
16740 | " | |
22e05272 | 16741 | if test "x$ac_cv_type_u_int64_t" = xyes; then : |
a119fc1c | 16742 | |
c13e029b | 16743 | fi |
a119fc1c | 16744 | |
c13e029b PB |
16745 | break |
16746 | done | |
a119fc1c | 16747 | fi |
c13e029b PB |
16748 | if test "$acx_cv_header_stdint" = stddef.h; then |
16749 | acx_cv_header_stdint_kind="(using manual detection)" | |
5213506e | 16750 | fi |
a119fc1c | 16751 | |
c13e029b PB |
16752 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
16753 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
16754 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
16755 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
16756 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
a119fc1c | 16757 | |
c13e029b | 16758 | # ----------------- Summarize what we found so far |
5213506e | 16759 | |
c13e029b PB |
16760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 |
16761 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
a119fc1c | 16762 | |
c13e029b PB |
16763 | case `$as_basename -- gstdint.h || |
16764 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
16765 | Xgstdint.h : 'X\(//\)$' \| \ | |
16766 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
16767 | $as_echo X/gstdint.h | | |
16768 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16769 | s//\1/ | |
16770 | q | |
16771 | } | |
16772 | /^X\/\(\/\/\)$/{ | |
16773 | s//\1/ | |
16774 | q | |
16775 | } | |
16776 | /^X\/\(\/\).*/{ | |
16777 | s//\1/ | |
16778 | q | |
16779 | } | |
16780 | s/.*/./; q'` in | |
16781 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16782 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16783 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16784 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16785 | *) ;; | |
16786 | esac | |
a119fc1c | 16787 | |
c13e029b PB |
16788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
16789 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
a63a0959 | 16790 | |
c13e029b | 16791 | # ----------------- done included file, check C basic types -------- |
868d75db | 16792 | |
c13e029b PB |
16793 | # Lacking an uintptr_t? Test size of void * |
16794 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
16795 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
16796 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16797 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16798 | # This bug is HP SR number 8606223364. | |
16799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
16800 | $as_echo_n "checking size of void *... " >&6; } | |
22e05272 | 16801 | if ${ac_cv_sizeof_void_p+:} false; then : |
c13e029b PB |
16802 | $as_echo_n "(cached) " >&6 |
16803 | else | |
16804 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
868d75db | 16805 | |
c13e029b PB |
16806 | else |
16807 | if test "$ac_cv_type_void_p" = yes; then | |
16808 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16809 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16810 | as_fn_error 77 "cannot compute sizeof (void *) |
16811 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16812 | else |
16813 | ac_cv_sizeof_void_p=0 | |
16814 | fi | |
16815 | fi | |
d72a3ac1 | 16816 | |
c13e029b PB |
16817 | fi |
16818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
16819 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
d72a3ac1 | 16820 | |
868d75db FXC |
16821 | |
16822 | ||
d72a3ac1 | 16823 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16824 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
d72a3ac1 | 16825 | _ACEOF |
d72a3ac1 | 16826 | |
c13e029b PB |
16827 | ;; |
16828 | esac | |
d72a3ac1 | 16829 | |
c13e029b PB |
16830 | # Lacking an uint64_t? Test size of long |
16831 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
16832 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
16833 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16834 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16835 | # This bug is HP SR number 8606223364. | |
16836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
16837 | $as_echo_n "checking size of long... " >&6; } | |
22e05272 | 16838 | if ${ac_cv_sizeof_long+:} false; then : |
5213506e RW |
16839 | $as_echo_n "(cached) " >&6 |
16840 | else | |
c13e029b | 16841 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
d72a3ac1 | 16842 | |
7f483eec | 16843 | else |
c13e029b PB |
16844 | if test "$ac_cv_type_long" = yes; then |
16845 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16846 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16847 | as_fn_error 77 "cannot compute sizeof (long) |
16848 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16849 | else |
16850 | ac_cv_sizeof_long=0 | |
16851 | fi | |
5213506e | 16852 | fi |
7f483eec | 16853 | |
c13e029b PB |
16854 | fi |
16855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
16856 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
d72a3ac1 | 16857 | |
7f483eec | 16858 | |
d72a3ac1 PB |
16859 | |
16860 | cat >>confdefs.h <<_ACEOF | |
c13e029b | 16861 | #define SIZEOF_LONG $ac_cv_sizeof_long |
d72a3ac1 | 16862 | _ACEOF |
7f483eec | 16863 | |
c13e029b PB |
16864 | ;; |
16865 | esac | |
29e86cb0 | 16866 | |
c13e029b PB |
16867 | if test $acx_cv_header_stdint = stddef.h; then |
16868 | # Lacking a good header? Test size of everything and deduce all types. | |
16869 | # The cast to long int works around a bug in the HP C Compiler | |
16870 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16871 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16872 | # This bug is HP SR number 8606223364. | |
16873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
16874 | $as_echo_n "checking size of int... " >&6; } | |
22e05272 | 16875 | if ${ac_cv_sizeof_int+:} false; then : |
c13e029b PB |
16876 | $as_echo_n "(cached) " >&6 |
16877 | else | |
16878 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
6422c112 | 16879 | |
c13e029b PB |
16880 | else |
16881 | if test "$ac_cv_type_int" = yes; then | |
16882 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16883 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16884 | as_fn_error 77 "cannot compute sizeof (int) |
16885 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16886 | else |
16887 | ac_cv_sizeof_int=0 | |
16888 | fi | |
16889 | fi | |
d8163f5c | 16890 | |
c13e029b PB |
16891 | fi |
16892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
16893 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
2515e5a7 FXC |
16894 | |
16895 | ||
868d75db | 16896 | |
d72a3ac1 | 16897 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16898 | #define SIZEOF_INT $ac_cv_sizeof_int |
d72a3ac1 PB |
16899 | _ACEOF |
16900 | ||
d72a3ac1 | 16901 | |
c13e029b PB |
16902 | # The cast to long int works around a bug in the HP C Compiler |
16903 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16904 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16905 | # This bug is HP SR number 8606223364. | |
16906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
16907 | $as_echo_n "checking size of short... " >&6; } | |
22e05272 | 16908 | if ${ac_cv_sizeof_short+:} false; then : |
c13e029b PB |
16909 | $as_echo_n "(cached) " >&6 |
16910 | else | |
16911 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
d72a3ac1 | 16912 | |
c13e029b PB |
16913 | else |
16914 | if test "$ac_cv_type_short" = yes; then | |
16915 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16916 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16917 | as_fn_error 77 "cannot compute sizeof (short) |
16918 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16919 | else |
16920 | ac_cv_sizeof_short=0 | |
16921 | fi | |
16922 | fi | |
d72a3ac1 | 16923 | |
c13e029b PB |
16924 | fi |
16925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
16926 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
d72a3ac1 PB |
16927 | |
16928 | ||
16929 | ||
c13e029b PB |
16930 | cat >>confdefs.h <<_ACEOF |
16931 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16932 | _ACEOF | |
d72a3ac1 PB |
16933 | |
16934 | ||
c13e029b PB |
16935 | # The cast to long int works around a bug in the HP C Compiler |
16936 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16937 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16938 | # This bug is HP SR number 8606223364. | |
16939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
16940 | $as_echo_n "checking size of char... " >&6; } | |
22e05272 | 16941 | if ${ac_cv_sizeof_char+:} false; then : |
c13e029b PB |
16942 | $as_echo_n "(cached) " >&6 |
16943 | else | |
16944 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
d72a3ac1 | 16945 | |
c13e029b PB |
16946 | else |
16947 | if test "$ac_cv_type_char" = yes; then | |
16948 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16949 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16950 | as_fn_error 77 "cannot compute sizeof (char) |
16951 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16952 | else |
16953 | ac_cv_sizeof_char=0 | |
16954 | fi | |
16955 | fi | |
d72a3ac1 | 16956 | |
c13e029b PB |
16957 | fi |
16958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
16959 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
d72a3ac1 PB |
16960 | |
16961 | ||
d72a3ac1 | 16962 | |
5213506e | 16963 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16964 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
868d75db | 16965 | _ACEOF |
868d75db | 16966 | |
868d75db | 16967 | |
2017c370 | 16968 | |
c13e029b PB |
16969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 |
16970 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
16971 | case "$ac_cv_sizeof_char" in | |
16972 | 1) acx_cv_type_int8_t=char ;; | |
22e05272 | 16973 | *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16974 | esac |
16975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
16976 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
16977 | ||
16978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
16979 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
16980 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
16981 | 2:*) acx_cv_type_int16_t=int ;; | |
16982 | *:2) acx_cv_type_int16_t=short ;; | |
22e05272 | 16983 | *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16984 | esac |
16985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
16986 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
16987 | ||
16988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
16989 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
16990 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
16991 | 4:*) acx_cv_type_int32_t=int ;; | |
16992 | *:4) acx_cv_type_int32_t=long ;; | |
22e05272 | 16993 | *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16994 | esac |
16995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
16996 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
5213506e RW |
16997 | fi |
16998 | ||
c13e029b | 16999 | # These tests are here to make the output prettier |
d72a3ac1 | 17000 | |
c13e029b PB |
17001 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then |
17002 | case "$ac_cv_sizeof_long" in | |
17003 | 8) acx_cv_type_int64_t=long ;; | |
17004 | esac | |
17005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
17006 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
17007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
17008 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
17009 | fi | |
17010 | ||
17011 | # Now we can use the above types | |
17012 | ||
17013 | if test "$ac_cv_type_uintptr_t" != yes; then | |
17014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
17015 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
17016 | case $ac_cv_sizeof_void_p in | |
17017 | 2) acx_cv_type_intptr_t=int16_t ;; | |
17018 | 4) acx_cv_type_intptr_t=int32_t ;; | |
17019 | 8) acx_cv_type_intptr_t=int64_t ;; | |
22e05272 | 17020 | *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
c13e029b PB |
17021 | esac |
17022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
17023 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
17024 | fi | |
d72a3ac1 | 17025 | |
c13e029b | 17026 | # ----------------- done all checks, emit header ------------- |
5213506e | 17027 | ac_config_commands="$ac_config_commands gstdint.h" |
2017c370 | 17028 | |
2017c370 | 17029 | |
5213506e RW |
17030 | |
17031 | ||
17032 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
22e05272 | 17033 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
5213506e RW |
17034 | |
17035 | cat >>confdefs.h <<_ACEOF | |
17036 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
2017c370 | 17037 | _ACEOF |
2017c370 | 17038 | |
5213506e | 17039 | |
2017c370 | 17040 | fi |
5213506e | 17041 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
22e05272 | 17042 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
5213506e RW |
17043 | |
17044 | cat >>confdefs.h <<_ACEOF | |
17045 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
2017c370 JB |
17046 | _ACEOF |
17047 | ||
5213506e | 17048 | |
2017c370 | 17049 | fi |
5213506e | 17050 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
22e05272 | 17051 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
2017c370 | 17052 | |
5213506e RW |
17053 | cat >>confdefs.h <<_ACEOF |
17054 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
17055 | _ACEOF | |
868d75db FXC |
17056 | |
17057 | ||
f02d008e | 17058 | fi |
5213506e RW |
17059 | |
17060 | ||
bd459d0b JG |
17061 | case "${host}--x${with_newlib}" in |
17062 | mips*--xyes) | |
17063 | hardwire_newlib=1;; | |
d3ca2257 NS |
17064 | nvptx*--xyes) |
17065 | hardwire_newlib=1;; | |
bd459d0b JG |
17066 | esac |
17067 | ||
5213506e | 17068 | # Check for library functions. |
bd459d0b | 17069 | if test "${hardwire_newlib:-0}" -eq 1; then |
b4005c71 SE |
17070 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS |
17071 | # may not work correctly, because the compiler may not be able to | |
17072 | # link executables. | |
17073 | ||
17074 | $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h | |
17075 | ||
17076 | ||
17077 | $as_echo "#define HAVE_STRTOF 1" >>confdefs.h | |
17078 | ||
17079 | ||
b4005c71 SE |
17080 | $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h |
17081 | ||
17082 | ||
b4005c71 SE |
17083 | $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h |
17084 | ||
17085 | ||
17086 | $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h | |
17087 | ||
17088 | ||
17089 | $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h | |
17090 | ||
cb83df66 | 17091 | |
ebfedee6 HPN |
17092 | $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h |
17093 | ||
17094 | ||
17095 | $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h | |
17096 | ||
17097 | ||
cb83df66 SE |
17098 | # At some point, we should differentiate between architectures |
17099 | # like x86, which have long double versions, and alpha/powerpc/etc., | |
17100 | # which don't. For the time being, punt. | |
17101 | if test x"long_double_math_on_this_cpu" = x"yes"; then | |
17102 | ||
17103 | $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h | |
17104 | ||
17105 | fi | |
b4005c71 | 17106 | else |
f77b6ca3 | 17107 | |
f77b6ca3 | 17108 | |
74544378 JB |
17109 | |
17110 | for ac_func in $ac_func_list | |
5213506e RW |
17111 | do : |
17112 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
17113 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 17114 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
5213506e RW |
17115 | cat >>confdefs.h <<_ACEOF |
17116 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17117 | _ACEOF | |
f77b6ca3 | 17118 | |
5213506e RW |
17119 | fi |
17120 | done | |
f77b6ca3 | 17121 | |
f77b6ca3 | 17122 | |
5213506e | 17123 | |
96b8a615 | 17124 | |
5213506e | 17125 | |
5213506e | 17126 | |
5213506e | 17127 | |
6de9cd9a | 17128 | |
6de9cd9a | 17129 | |
b6e7a3d1 | 17130 | |
b6e7a3d1 | 17131 | |
6de9cd9a | 17132 | |
4c0c6b9f | 17133 | |
4c0c6b9f | 17134 | |
4c0c6b9f | 17135 | |
4c0c6b9f | 17136 | |
4c0c6b9f | 17137 | |
4c0c6b9f | 17138 | |
4c0c6b9f | 17139 | |
4c0c6b9f | 17140 | |
868d75db | 17141 | |
868d75db | 17142 | |
868d75db | 17143 | |
868d75db | 17144 | |
4c0c6b9f | 17145 | |
4c0c6b9f | 17146 | |
4c0c6b9f | 17147 | |
4c0c6b9f | 17148 | |
6422c112 | 17149 | |
6422c112 | 17150 | |
6422c112 | 17151 | |
74544378 JB |
17152 | |
17153 | ||
17154 | ||
17155 | ||
17156 | ||
17157 | ||
17158 | ||
17159 | ||
17160 | ||
17161 | ||
17162 | ||
17163 | ||
17164 | ||
17165 | ||
17166 | ||
17167 | ||
17168 | ||
17169 | ||
17170 | ||
17171 | ||
17172 | ||
17173 | ||
17174 | ||
17175 | ||
17176 | ||
17177 | ||
17178 | ||
17179 | ||
17180 | ||
17181 | ||
17182 | ||
17183 | ||
17184 | ||
17185 | ||
17186 | ||
17187 | ||
17188 | ||
17189 | ||
17190 | ||
17191 | ||
17192 | ||
17193 | ||
17194 | ||
17195 | ||
17196 | ||
17197 | ||
17198 | ||
17199 | ||
17200 | ||
17201 | ||
17202 | ||
17203 | ||
17204 | ||
17205 | ||
17206 | ||
17207 | ||
68ee9c08 | 17208 | |
227e441f | 17209 | |
9cbecd06 JB |
17210 | |
17211 | ||
4269f19c JB |
17212 | |
17213 | ||
b5b58343 UW |
17214 | |
17215 | ||
70480968 JB |
17216 | |
17217 | ||
d66d6d15 JB |
17218 | |
17219 | ||
edaaef60 JB |
17220 | |
17221 | ||
ef536b41 JB |
17222 | |
17223 | ||
17224 | ||
17225 | ||
133d0d42 JJ |
17226 | |
17227 | ||
17228 | ||
17229 | ||
f8886038 JB |
17230 | |
17231 | ||
227e441f | 17232 | |
8ecd1c0d TB |
17233 | |
17234 | ||
b4005c71 | 17235 | fi |
74544378 | 17236 | |
4179e59a TB |
17237 | # Check strerror_r, cannot be above as versions with two and three arguments exist |
17238 | ||
17239 | ac_save_CFLAGS="$CFLAGS" | |
17240 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
17241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17242 | /* end confdefs.h. */ | |
17243 | #define _GNU_SOURCE 1 | |
17244 | #include <string.h> | |
17245 | #include <locale.h> | |
17246 | int | |
17247 | main () | |
17248 | { | |
17249 | char s[128]; strerror_r(5, s, 128); | |
17250 | ; | |
17251 | return 0; | |
17252 | } | |
17253 | _ACEOF | |
17254 | if ac_fn_c_try_compile "$LINENO"; then : | |
17255 | ||
17256 | $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h | |
17257 | ||
17258 | fi | |
17259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17260 | CFLAGS="$ac_save_CFLAGS" | |
17261 | ||
17262 | ac_save_CFLAGS="$CFLAGS" | |
17263 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
17264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17265 | /* end confdefs.h. */ | |
17266 | #define _GNU_SOURCE 1 | |
17267 | #include <string.h> | |
17268 | #include <locale.h> | |
17269 | int | |
17270 | main () | |
17271 | { | |
17272 | char s[128]; strerror_r(5, s); | |
17273 | ; | |
17274 | return 0; | |
17275 | } | |
17276 | _ACEOF | |
17277 | if ac_fn_c_try_compile "$LINENO"; then : | |
17278 | ||
17279 | $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h | |
17280 | ||
17281 | fi | |
17282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17283 | CFLAGS="$ac_save_CFLAGS" | |
6422c112 | 17284 | |
4c0c6b9f | 17285 | |
453310d8 | 17286 | # Check for C99 (and other IEEE) math functions |
db9f46a9 TG |
17287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 |
17288 | $as_echo_n "checking for sin in -lm... " >&6; } | |
22e05272 | 17289 | if ${ac_cv_lib_m_sin+:} false; then : |
5213506e | 17290 | $as_echo_n "(cached) " >&6 |
453310d8 RS |
17291 | else |
17292 | ac_check_lib_save_LIBS=$LIBS | |
17293 | LIBS="-lm $LIBS" | |
f02d008e | 17294 | if test x$gcc_no_link = xyes; then |
22e05272 | 17295 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17296 | fi |
5213506e | 17297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17298 | /* end confdefs.h. */ |
17299 | ||
5213506e RW |
17300 | /* Override any GCC internal prototype to avoid an error. |
17301 | Use char because int might match the return type of a GCC | |
17302 | builtin and then its argument prototype would still apply. */ | |
453310d8 RS |
17303 | #ifdef __cplusplus |
17304 | extern "C" | |
17305 | #endif | |
db9f46a9 | 17306 | char sin (); |
453310d8 RS |
17307 | int |
17308 | main () | |
17309 | { | |
db9f46a9 | 17310 | return sin (); |
453310d8 RS |
17311 | ; |
17312 | return 0; | |
17313 | } | |
17314 | _ACEOF | |
5213506e | 17315 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17316 | ac_cv_lib_m_sin=yes |
453310d8 | 17317 | else |
db9f46a9 | 17318 | ac_cv_lib_m_sin=no |
453310d8 | 17319 | fi |
5213506e RW |
17320 | rm -f core conftest.err conftest.$ac_objext \ |
17321 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 RS |
17322 | LIBS=$ac_check_lib_save_LIBS |
17323 | fi | |
db9f46a9 TG |
17324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 |
17325 | $as_echo "$ac_cv_lib_m_sin" >&6; } | |
22e05272 | 17326 | if test "x$ac_cv_lib_m_sin" = xyes; then : |
db9f46a9 TG |
17327 | cat >>confdefs.h <<_ACEOF |
17328 | #define HAVE_LIBM 1 | |
17329 | _ACEOF | |
453310d8 | 17330 | |
db9f46a9 | 17331 | LIBS="-lm $LIBS" |
453310d8 RS |
17332 | |
17333 | fi | |
17334 | ||
db9f46a9 TG |
17335 | |
17336 | ||
17337 | ||
17338 | ||
17339 | ||
17340 | ||
17341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5 | |
17342 | $as_echo_n "checking for acosf... " >&6; } | |
22e05272 | 17343 | if ${gcc_cv_math_func_acosf+:} false; then : |
5213506e | 17344 | $as_echo_n "(cached) " >&6 |
f02d008e | 17345 | else |
db9f46a9 | 17346 | if test x$gcc_no_link = xyes; then |
22e05272 | 17347 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17348 | fi |
5213506e | 17349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17350 | /* end confdefs.h. */ |
17351 | ||
db9f46a9 TG |
17352 | #ifdef HAVE_COMPLEX_H |
17353 | #include <complex.h> | |
17354 | #endif | |
17355 | #ifdef HAVE_MATH_H | |
17356 | #include <math.h> | |
f02d008e | 17357 | #endif |
db9f46a9 TG |
17358 | |
17359 | int (*ptr)() = (int (*)())acosf; | |
17360 | ||
f02d008e JD |
17361 | int |
17362 | main () | |
17363 | { | |
f02d008e JD |
17364 | return 0; |
17365 | } | |
db9f46a9 | 17366 | |
f02d008e | 17367 | _ACEOF |
5213506e | 17368 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17369 | gcc_cv_math_func_acosf=yes |
f02d008e | 17370 | else |
db9f46a9 | 17371 | gcc_cv_math_func_acosf=no |
f02d008e | 17372 | fi |
5213506e RW |
17373 | rm -f core conftest.err conftest.$ac_objext \ |
17374 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17375 | fi |
db9f46a9 TG |
17376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5 |
17377 | $as_echo "$gcc_cv_math_func_acosf" >&6; } | |
17378 | if test $gcc_cv_math_func_acosf = yes; then | |
f1cdfa01 | 17379 | |
f38a14ca TG |
17380 | cat >>confdefs.h <<_ACEOF |
17381 | #define HAVE_ACOSF 1 | |
17382 | _ACEOF | |
db9f46a9 TG |
17383 | |
17384 | fi | |
f02d008e | 17385 | |
f02d008e | 17386 | |
f02d008e | 17387 | |
db9f46a9 TG |
17388 | |
17389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5 | |
17390 | $as_echo_n "checking for acos... " >&6; } | |
22e05272 | 17391 | if ${gcc_cv_math_func_acos+:} false; then : |
5213506e | 17392 | $as_echo_n "(cached) " >&6 |
453310d8 | 17393 | else |
db9f46a9 | 17394 | if test x$gcc_no_link = xyes; then |
22e05272 | 17395 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17396 | fi |
5213506e | 17397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17398 | /* end confdefs.h. */ |
17399 | ||
db9f46a9 TG |
17400 | #ifdef HAVE_COMPLEX_H |
17401 | #include <complex.h> | |
453310d8 | 17402 | #endif |
db9f46a9 TG |
17403 | #ifdef HAVE_MATH_H |
17404 | #include <math.h> | |
17405 | #endif | |
17406 | ||
17407 | int (*ptr)() = (int (*)())acos; | |
17408 | ||
453310d8 RS |
17409 | int |
17410 | main () | |
17411 | { | |
453310d8 RS |
17412 | return 0; |
17413 | } | |
db9f46a9 | 17414 | |
453310d8 | 17415 | _ACEOF |
5213506e | 17416 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17417 | gcc_cv_math_func_acos=yes |
453310d8 | 17418 | else |
db9f46a9 | 17419 | gcc_cv_math_func_acos=no |
453310d8 | 17420 | fi |
5213506e RW |
17421 | rm -f core conftest.err conftest.$ac_objext \ |
17422 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17423 | fi |
db9f46a9 TG |
17424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5 |
17425 | $as_echo "$gcc_cv_math_func_acos" >&6; } | |
17426 | if test $gcc_cv_math_func_acos = yes; then | |
f1cdfa01 | 17427 | |
f38a14ca TG |
17428 | cat >>confdefs.h <<_ACEOF |
17429 | #define HAVE_ACOS 1 | |
17430 | _ACEOF | |
db9f46a9 TG |
17431 | |
17432 | fi | |
17433 | ||
453310d8 | 17434 | |
453310d8 | 17435 | |
453310d8 | 17436 | |
db9f46a9 TG |
17437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5 |
17438 | $as_echo_n "checking for acosl... " >&6; } | |
22e05272 | 17439 | if ${gcc_cv_math_func_acosl+:} false; then : |
5213506e | 17440 | $as_echo_n "(cached) " >&6 |
f02d008e | 17441 | else |
db9f46a9 | 17442 | if test x$gcc_no_link = xyes; then |
22e05272 | 17443 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17444 | fi |
5213506e | 17445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17446 | /* end confdefs.h. */ |
17447 | ||
db9f46a9 TG |
17448 | #ifdef HAVE_COMPLEX_H |
17449 | #include <complex.h> | |
17450 | #endif | |
17451 | #ifdef HAVE_MATH_H | |
17452 | #include <math.h> | |
f02d008e | 17453 | #endif |
db9f46a9 TG |
17454 | |
17455 | int (*ptr)() = (int (*)())acosl; | |
17456 | ||
f02d008e JD |
17457 | int |
17458 | main () | |
17459 | { | |
f02d008e JD |
17460 | return 0; |
17461 | } | |
db9f46a9 | 17462 | |
f02d008e | 17463 | _ACEOF |
5213506e | 17464 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17465 | gcc_cv_math_func_acosl=yes |
f02d008e | 17466 | else |
db9f46a9 | 17467 | gcc_cv_math_func_acosl=no |
f02d008e | 17468 | fi |
5213506e RW |
17469 | rm -f core conftest.err conftest.$ac_objext \ |
17470 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17471 | fi |
db9f46a9 TG |
17472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5 |
17473 | $as_echo "$gcc_cv_math_func_acosl" >&6; } | |
17474 | if test $gcc_cv_math_func_acosl = yes; then | |
f1cdfa01 | 17475 | |
f38a14ca TG |
17476 | cat >>confdefs.h <<_ACEOF |
17477 | #define HAVE_ACOSL 1 | |
17478 | _ACEOF | |
db9f46a9 TG |
17479 | |
17480 | fi | |
f02d008e | 17481 | |
f02d008e | 17482 | |
f02d008e | 17483 | |
db9f46a9 TG |
17484 | |
17485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5 | |
17486 | $as_echo_n "checking for acoshf... " >&6; } | |
22e05272 | 17487 | if ${gcc_cv_math_func_acoshf+:} false; then : |
5213506e | 17488 | $as_echo_n "(cached) " >&6 |
453310d8 | 17489 | else |
db9f46a9 | 17490 | if test x$gcc_no_link = xyes; then |
22e05272 | 17491 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17492 | fi |
5213506e | 17493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17494 | /* end confdefs.h. */ |
17495 | ||
db9f46a9 TG |
17496 | #ifdef HAVE_COMPLEX_H |
17497 | #include <complex.h> | |
453310d8 | 17498 | #endif |
db9f46a9 TG |
17499 | #ifdef HAVE_MATH_H |
17500 | #include <math.h> | |
17501 | #endif | |
17502 | ||
17503 | int (*ptr)() = (int (*)())acoshf; | |
17504 | ||
453310d8 RS |
17505 | int |
17506 | main () | |
17507 | { | |
453310d8 RS |
17508 | return 0; |
17509 | } | |
db9f46a9 | 17510 | |
453310d8 | 17511 | _ACEOF |
5213506e | 17512 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17513 | gcc_cv_math_func_acoshf=yes |
453310d8 | 17514 | else |
db9f46a9 | 17515 | gcc_cv_math_func_acoshf=no |
453310d8 | 17516 | fi |
5213506e RW |
17517 | rm -f core conftest.err conftest.$ac_objext \ |
17518 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17519 | fi |
db9f46a9 TG |
17520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5 |
17521 | $as_echo "$gcc_cv_math_func_acoshf" >&6; } | |
17522 | if test $gcc_cv_math_func_acoshf = yes; then | |
f1cdfa01 | 17523 | |
f38a14ca TG |
17524 | cat >>confdefs.h <<_ACEOF |
17525 | #define HAVE_ACOSHF 1 | |
17526 | _ACEOF | |
453310d8 | 17527 | |
db9f46a9 | 17528 | fi |
453310d8 | 17529 | |
453310d8 | 17530 | |
db9f46a9 TG |
17531 | |
17532 | ||
17533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5 | |
17534 | $as_echo_n "checking for acosh... " >&6; } | |
22e05272 | 17535 | if ${gcc_cv_math_func_acosh+:} false; then : |
5213506e | 17536 | $as_echo_n "(cached) " >&6 |
453310d8 | 17537 | else |
db9f46a9 | 17538 | if test x$gcc_no_link = xyes; then |
22e05272 | 17539 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17540 | fi |
5213506e | 17541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17542 | /* end confdefs.h. */ |
17543 | ||
db9f46a9 TG |
17544 | #ifdef HAVE_COMPLEX_H |
17545 | #include <complex.h> | |
17546 | #endif | |
17547 | #ifdef HAVE_MATH_H | |
17548 | #include <math.h> | |
453310d8 | 17549 | #endif |
db9f46a9 TG |
17550 | |
17551 | int (*ptr)() = (int (*)())acosh; | |
17552 | ||
453310d8 RS |
17553 | int |
17554 | main () | |
17555 | { | |
5213506e RW |
17556 | return 0; |
17557 | } | |
db9f46a9 | 17558 | |
5213506e RW |
17559 | _ACEOF |
17560 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 17561 | gcc_cv_math_func_acosh=yes |
453310d8 | 17562 | else |
db9f46a9 | 17563 | gcc_cv_math_func_acosh=no |
453310d8 | 17564 | fi |
5213506e RW |
17565 | rm -f core conftest.err conftest.$ac_objext \ |
17566 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17567 | fi |
db9f46a9 TG |
17568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5 |
17569 | $as_echo "$gcc_cv_math_func_acosh" >&6; } | |
17570 | if test $gcc_cv_math_func_acosh = yes; then | |
f1cdfa01 | 17571 | |
f38a14ca TG |
17572 | cat >>confdefs.h <<_ACEOF |
17573 | #define HAVE_ACOSH 1 | |
17574 | _ACEOF | |
db9f46a9 TG |
17575 | |
17576 | fi | |
453310d8 | 17577 | |
453310d8 | 17578 | |
453310d8 | 17579 | |
db9f46a9 TG |
17580 | |
17581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5 | |
17582 | $as_echo_n "checking for acoshl... " >&6; } | |
22e05272 | 17583 | if ${gcc_cv_math_func_acoshl+:} false; then : |
5213506e | 17584 | $as_echo_n "(cached) " >&6 |
f02d008e | 17585 | else |
db9f46a9 | 17586 | if test x$gcc_no_link = xyes; then |
22e05272 | 17587 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17588 | fi |
5213506e | 17589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17590 | /* end confdefs.h. */ |
17591 | ||
db9f46a9 TG |
17592 | #ifdef HAVE_COMPLEX_H |
17593 | #include <complex.h> | |
f02d008e | 17594 | #endif |
db9f46a9 TG |
17595 | #ifdef HAVE_MATH_H |
17596 | #include <math.h> | |
17597 | #endif | |
17598 | ||
17599 | int (*ptr)() = (int (*)())acoshl; | |
17600 | ||
f02d008e JD |
17601 | int |
17602 | main () | |
17603 | { | |
f02d008e JD |
17604 | return 0; |
17605 | } | |
db9f46a9 | 17606 | |
f02d008e | 17607 | _ACEOF |
5213506e | 17608 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17609 | gcc_cv_math_func_acoshl=yes |
f02d008e | 17610 | else |
db9f46a9 | 17611 | gcc_cv_math_func_acoshl=no |
f02d008e | 17612 | fi |
5213506e RW |
17613 | rm -f core conftest.err conftest.$ac_objext \ |
17614 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17615 | fi |
db9f46a9 TG |
17616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5 |
17617 | $as_echo "$gcc_cv_math_func_acoshl" >&6; } | |
17618 | if test $gcc_cv_math_func_acoshl = yes; then | |
f1cdfa01 | 17619 | |
f38a14ca TG |
17620 | cat >>confdefs.h <<_ACEOF |
17621 | #define HAVE_ACOSHL 1 | |
17622 | _ACEOF | |
db9f46a9 TG |
17623 | |
17624 | fi | |
17625 | ||
f02d008e | 17626 | |
f02d008e | 17627 | |
f02d008e | 17628 | |
db9f46a9 TG |
17629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5 |
17630 | $as_echo_n "checking for asinf... " >&6; } | |
22e05272 | 17631 | if ${gcc_cv_math_func_asinf+:} false; then : |
5213506e | 17632 | $as_echo_n "(cached) " >&6 |
453310d8 | 17633 | else |
db9f46a9 | 17634 | if test x$gcc_no_link = xyes; then |
22e05272 | 17635 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17636 | fi |
5213506e | 17637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17638 | /* end confdefs.h. */ |
17639 | ||
db9f46a9 TG |
17640 | #ifdef HAVE_COMPLEX_H |
17641 | #include <complex.h> | |
17642 | #endif | |
17643 | #ifdef HAVE_MATH_H | |
17644 | #include <math.h> | |
453310d8 | 17645 | #endif |
db9f46a9 TG |
17646 | |
17647 | int (*ptr)() = (int (*)())asinf; | |
17648 | ||
453310d8 RS |
17649 | int |
17650 | main () | |
17651 | { | |
453310d8 RS |
17652 | return 0; |
17653 | } | |
db9f46a9 | 17654 | |
453310d8 | 17655 | _ACEOF |
5213506e | 17656 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17657 | gcc_cv_math_func_asinf=yes |
453310d8 | 17658 | else |
db9f46a9 | 17659 | gcc_cv_math_func_asinf=no |
453310d8 | 17660 | fi |
5213506e RW |
17661 | rm -f core conftest.err conftest.$ac_objext \ |
17662 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17663 | fi |
db9f46a9 TG |
17664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5 |
17665 | $as_echo "$gcc_cv_math_func_asinf" >&6; } | |
17666 | if test $gcc_cv_math_func_asinf = yes; then | |
f1cdfa01 | 17667 | |
f38a14ca TG |
17668 | cat >>confdefs.h <<_ACEOF |
17669 | #define HAVE_ASINF 1 | |
17670 | _ACEOF | |
db9f46a9 TG |
17671 | |
17672 | fi | |
453310d8 | 17673 | |
453310d8 | 17674 | |
453310d8 | 17675 | |
db9f46a9 TG |
17676 | |
17677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5 | |
17678 | $as_echo_n "checking for asin... " >&6; } | |
22e05272 | 17679 | if ${gcc_cv_math_func_asin+:} false; then : |
5213506e | 17680 | $as_echo_n "(cached) " >&6 |
453310d8 | 17681 | else |
db9f46a9 | 17682 | if test x$gcc_no_link = xyes; then |
22e05272 | 17683 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17684 | fi |
5213506e | 17685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17686 | /* end confdefs.h. */ |
17687 | ||
db9f46a9 TG |
17688 | #ifdef HAVE_COMPLEX_H |
17689 | #include <complex.h> | |
453310d8 | 17690 | #endif |
db9f46a9 TG |
17691 | #ifdef HAVE_MATH_H |
17692 | #include <math.h> | |
17693 | #endif | |
17694 | ||
17695 | int (*ptr)() = (int (*)())asin; | |
17696 | ||
453310d8 RS |
17697 | int |
17698 | main () | |
17699 | { | |
453310d8 RS |
17700 | return 0; |
17701 | } | |
db9f46a9 | 17702 | |
453310d8 | 17703 | _ACEOF |
5213506e | 17704 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17705 | gcc_cv_math_func_asin=yes |
453310d8 | 17706 | else |
db9f46a9 | 17707 | gcc_cv_math_func_asin=no |
453310d8 | 17708 | fi |
5213506e RW |
17709 | rm -f core conftest.err conftest.$ac_objext \ |
17710 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17711 | fi |
db9f46a9 TG |
17712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5 |
17713 | $as_echo "$gcc_cv_math_func_asin" >&6; } | |
17714 | if test $gcc_cv_math_func_asin = yes; then | |
f1cdfa01 | 17715 | |
f38a14ca TG |
17716 | cat >>confdefs.h <<_ACEOF |
17717 | #define HAVE_ASIN 1 | |
17718 | _ACEOF | |
453310d8 | 17719 | |
db9f46a9 | 17720 | fi |
453310d8 | 17721 | |
453310d8 | 17722 | |
db9f46a9 TG |
17723 | |
17724 | ||
17725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5 | |
17726 | $as_echo_n "checking for asinl... " >&6; } | |
22e05272 | 17727 | if ${gcc_cv_math_func_asinl+:} false; then : |
5213506e | 17728 | $as_echo_n "(cached) " >&6 |
453310d8 | 17729 | else |
db9f46a9 | 17730 | if test x$gcc_no_link = xyes; then |
22e05272 | 17731 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17732 | fi |
5213506e | 17733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17734 | /* end confdefs.h. */ |
17735 | ||
db9f46a9 TG |
17736 | #ifdef HAVE_COMPLEX_H |
17737 | #include <complex.h> | |
17738 | #endif | |
17739 | #ifdef HAVE_MATH_H | |
17740 | #include <math.h> | |
453310d8 | 17741 | #endif |
db9f46a9 TG |
17742 | |
17743 | int (*ptr)() = (int (*)())asinl; | |
17744 | ||
453310d8 RS |
17745 | int |
17746 | main () | |
17747 | { | |
453310d8 RS |
17748 | return 0; |
17749 | } | |
db9f46a9 | 17750 | |
453310d8 | 17751 | _ACEOF |
5213506e | 17752 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17753 | gcc_cv_math_func_asinl=yes |
453310d8 | 17754 | else |
db9f46a9 | 17755 | gcc_cv_math_func_asinl=no |
453310d8 | 17756 | fi |
5213506e RW |
17757 | rm -f core conftest.err conftest.$ac_objext \ |
17758 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17759 | fi |
db9f46a9 TG |
17760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5 |
17761 | $as_echo "$gcc_cv_math_func_asinl" >&6; } | |
17762 | if test $gcc_cv_math_func_asinl = yes; then | |
f1cdfa01 | 17763 | |
f38a14ca TG |
17764 | cat >>confdefs.h <<_ACEOF |
17765 | #define HAVE_ASINL 1 | |
17766 | _ACEOF | |
db9f46a9 TG |
17767 | |
17768 | fi | |
453310d8 | 17769 | |
453310d8 | 17770 | |
453310d8 | 17771 | |
db9f46a9 TG |
17772 | |
17773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5 | |
17774 | $as_echo_n "checking for asinhf... " >&6; } | |
22e05272 | 17775 | if ${gcc_cv_math_func_asinhf+:} false; then : |
5213506e | 17776 | $as_echo_n "(cached) " >&6 |
453310d8 | 17777 | else |
db9f46a9 | 17778 | if test x$gcc_no_link = xyes; then |
22e05272 | 17779 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17780 | fi |
5213506e | 17781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17782 | /* end confdefs.h. */ |
17783 | ||
db9f46a9 TG |
17784 | #ifdef HAVE_COMPLEX_H |
17785 | #include <complex.h> | |
453310d8 | 17786 | #endif |
db9f46a9 TG |
17787 | #ifdef HAVE_MATH_H |
17788 | #include <math.h> | |
17789 | #endif | |
17790 | ||
17791 | int (*ptr)() = (int (*)())asinhf; | |
17792 | ||
453310d8 RS |
17793 | int |
17794 | main () | |
17795 | { | |
453310d8 RS |
17796 | return 0; |
17797 | } | |
db9f46a9 | 17798 | |
453310d8 | 17799 | _ACEOF |
5213506e | 17800 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17801 | gcc_cv_math_func_asinhf=yes |
453310d8 | 17802 | else |
db9f46a9 | 17803 | gcc_cv_math_func_asinhf=no |
453310d8 | 17804 | fi |
5213506e RW |
17805 | rm -f core conftest.err conftest.$ac_objext \ |
17806 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17807 | fi |
db9f46a9 TG |
17808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5 |
17809 | $as_echo "$gcc_cv_math_func_asinhf" >&6; } | |
17810 | if test $gcc_cv_math_func_asinhf = yes; then | |
f1cdfa01 | 17811 | |
f38a14ca TG |
17812 | cat >>confdefs.h <<_ACEOF |
17813 | #define HAVE_ASINHF 1 | |
17814 | _ACEOF | |
db9f46a9 TG |
17815 | |
17816 | fi | |
17817 | ||
453310d8 | 17818 | |
453310d8 | 17819 | |
453310d8 | 17820 | |
db9f46a9 TG |
17821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5 |
17822 | $as_echo_n "checking for asinh... " >&6; } | |
22e05272 | 17823 | if ${gcc_cv_math_func_asinh+:} false; then : |
5213506e | 17824 | $as_echo_n "(cached) " >&6 |
453310d8 | 17825 | else |
db9f46a9 | 17826 | if test x$gcc_no_link = xyes; then |
22e05272 | 17827 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17828 | fi |
5213506e | 17829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17830 | /* end confdefs.h. */ |
17831 | ||
db9f46a9 TG |
17832 | #ifdef HAVE_COMPLEX_H |
17833 | #include <complex.h> | |
17834 | #endif | |
17835 | #ifdef HAVE_MATH_H | |
17836 | #include <math.h> | |
453310d8 | 17837 | #endif |
db9f46a9 TG |
17838 | |
17839 | int (*ptr)() = (int (*)())asinh; | |
17840 | ||
453310d8 RS |
17841 | int |
17842 | main () | |
17843 | { | |
453310d8 RS |
17844 | return 0; |
17845 | } | |
db9f46a9 | 17846 | |
453310d8 | 17847 | _ACEOF |
5213506e | 17848 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17849 | gcc_cv_math_func_asinh=yes |
453310d8 | 17850 | else |
db9f46a9 | 17851 | gcc_cv_math_func_asinh=no |
453310d8 | 17852 | fi |
5213506e RW |
17853 | rm -f core conftest.err conftest.$ac_objext \ |
17854 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17855 | fi |
db9f46a9 TG |
17856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5 |
17857 | $as_echo "$gcc_cv_math_func_asinh" >&6; } | |
17858 | if test $gcc_cv_math_func_asinh = yes; then | |
f1cdfa01 | 17859 | |
f38a14ca TG |
17860 | cat >>confdefs.h <<_ACEOF |
17861 | #define HAVE_ASINH 1 | |
17862 | _ACEOF | |
db9f46a9 TG |
17863 | |
17864 | fi | |
453310d8 | 17865 | |
453310d8 | 17866 | |
453310d8 | 17867 | |
db9f46a9 TG |
17868 | |
17869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5 | |
17870 | $as_echo_n "checking for asinhl... " >&6; } | |
22e05272 | 17871 | if ${gcc_cv_math_func_asinhl+:} false; then : |
5213506e | 17872 | $as_echo_n "(cached) " >&6 |
6e4d9244 | 17873 | else |
db9f46a9 | 17874 | if test x$gcc_no_link = xyes; then |
22e05272 | 17875 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17876 | fi |
5213506e | 17877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6e4d9244 EB |
17878 | /* end confdefs.h. */ |
17879 | ||
db9f46a9 TG |
17880 | #ifdef HAVE_COMPLEX_H |
17881 | #include <complex.h> | |
6e4d9244 | 17882 | #endif |
db9f46a9 TG |
17883 | #ifdef HAVE_MATH_H |
17884 | #include <math.h> | |
17885 | #endif | |
17886 | ||
17887 | int (*ptr)() = (int (*)())asinhl; | |
17888 | ||
6e4d9244 EB |
17889 | int |
17890 | main () | |
17891 | { | |
6e4d9244 EB |
17892 | return 0; |
17893 | } | |
db9f46a9 | 17894 | |
6e4d9244 | 17895 | _ACEOF |
5213506e | 17896 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17897 | gcc_cv_math_func_asinhl=yes |
6e4d9244 | 17898 | else |
db9f46a9 | 17899 | gcc_cv_math_func_asinhl=no |
6e4d9244 | 17900 | fi |
5213506e RW |
17901 | rm -f core conftest.err conftest.$ac_objext \ |
17902 | conftest$ac_exeext conftest.$ac_ext | |
6e4d9244 | 17903 | fi |
db9f46a9 TG |
17904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5 |
17905 | $as_echo "$gcc_cv_math_func_asinhl" >&6; } | |
17906 | if test $gcc_cv_math_func_asinhl = yes; then | |
f1cdfa01 | 17907 | |
f38a14ca TG |
17908 | cat >>confdefs.h <<_ACEOF |
17909 | #define HAVE_ASINHL 1 | |
17910 | _ACEOF | |
6e4d9244 | 17911 | |
db9f46a9 | 17912 | fi |
6e4d9244 | 17913 | |
6e4d9244 | 17914 | |
db9f46a9 TG |
17915 | |
17916 | ||
17917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5 | |
17918 | $as_echo_n "checking for atan2f... " >&6; } | |
22e05272 | 17919 | if ${gcc_cv_math_func_atan2f+:} false; then : |
5213506e | 17920 | $as_echo_n "(cached) " >&6 |
453310d8 | 17921 | else |
db9f46a9 | 17922 | if test x$gcc_no_link = xyes; then |
22e05272 | 17923 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17924 | fi |
5213506e | 17925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17926 | /* end confdefs.h. */ |
17927 | ||
db9f46a9 TG |
17928 | #ifdef HAVE_COMPLEX_H |
17929 | #include <complex.h> | |
453310d8 | 17930 | #endif |
db9f46a9 TG |
17931 | #ifdef HAVE_MATH_H |
17932 | #include <math.h> | |
17933 | #endif | |
17934 | ||
17935 | int (*ptr)() = (int (*)())atan2f; | |
17936 | ||
17937 | int | |
453310d8 RS |
17938 | main () |
17939 | { | |
453310d8 RS |
17940 | return 0; |
17941 | } | |
db9f46a9 | 17942 | |
453310d8 | 17943 | _ACEOF |
5213506e | 17944 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17945 | gcc_cv_math_func_atan2f=yes |
453310d8 | 17946 | else |
db9f46a9 | 17947 | gcc_cv_math_func_atan2f=no |
453310d8 | 17948 | fi |
5213506e RW |
17949 | rm -f core conftest.err conftest.$ac_objext \ |
17950 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17951 | fi |
db9f46a9 TG |
17952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5 |
17953 | $as_echo "$gcc_cv_math_func_atan2f" >&6; } | |
17954 | if test $gcc_cv_math_func_atan2f = yes; then | |
f1cdfa01 | 17955 | |
f38a14ca TG |
17956 | cat >>confdefs.h <<_ACEOF |
17957 | #define HAVE_ATAN2F 1 | |
17958 | _ACEOF | |
db9f46a9 TG |
17959 | |
17960 | fi | |
453310d8 | 17961 | |
453310d8 | 17962 | |
453310d8 | 17963 | |
db9f46a9 TG |
17964 | |
17965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5 | |
17966 | $as_echo_n "checking for atan2... " >&6; } | |
22e05272 | 17967 | if ${gcc_cv_math_func_atan2+:} false; then : |
5213506e | 17968 | $as_echo_n "(cached) " >&6 |
453310d8 | 17969 | else |
db9f46a9 | 17970 | if test x$gcc_no_link = xyes; then |
22e05272 | 17971 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17972 | fi |
5213506e | 17973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17974 | /* end confdefs.h. */ |
17975 | ||
db9f46a9 TG |
17976 | #ifdef HAVE_COMPLEX_H |
17977 | #include <complex.h> | |
453310d8 | 17978 | #endif |
db9f46a9 TG |
17979 | #ifdef HAVE_MATH_H |
17980 | #include <math.h> | |
17981 | #endif | |
17982 | ||
17983 | int (*ptr)() = (int (*)())atan2; | |
17984 | ||
453310d8 RS |
17985 | int |
17986 | main () | |
17987 | { | |
453310d8 RS |
17988 | return 0; |
17989 | } | |
db9f46a9 | 17990 | |
453310d8 | 17991 | _ACEOF |
5213506e | 17992 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17993 | gcc_cv_math_func_atan2=yes |
453310d8 | 17994 | else |
db9f46a9 | 17995 | gcc_cv_math_func_atan2=no |
453310d8 | 17996 | fi |
5213506e RW |
17997 | rm -f core conftest.err conftest.$ac_objext \ |
17998 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17999 | fi |
db9f46a9 TG |
18000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5 |
18001 | $as_echo "$gcc_cv_math_func_atan2" >&6; } | |
18002 | if test $gcc_cv_math_func_atan2 = yes; then | |
f1cdfa01 | 18003 | |
f38a14ca TG |
18004 | cat >>confdefs.h <<_ACEOF |
18005 | #define HAVE_ATAN2 1 | |
18006 | _ACEOF | |
453310d8 | 18007 | |
db9f46a9 | 18008 | fi |
453310d8 | 18009 | |
453310d8 | 18010 | |
db9f46a9 TG |
18011 | |
18012 | ||
18013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5 | |
18014 | $as_echo_n "checking for atan2l... " >&6; } | |
22e05272 | 18015 | if ${gcc_cv_math_func_atan2l+:} false; then : |
5213506e | 18016 | $as_echo_n "(cached) " >&6 |
453310d8 | 18017 | else |
db9f46a9 | 18018 | if test x$gcc_no_link = xyes; then |
22e05272 | 18019 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18020 | fi |
5213506e | 18021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18022 | /* end confdefs.h. */ |
18023 | ||
db9f46a9 TG |
18024 | #ifdef HAVE_COMPLEX_H |
18025 | #include <complex.h> | |
18026 | #endif | |
18027 | #ifdef HAVE_MATH_H | |
18028 | #include <math.h> | |
453310d8 | 18029 | #endif |
db9f46a9 TG |
18030 | |
18031 | int (*ptr)() = (int (*)())atan2l; | |
18032 | ||
453310d8 RS |
18033 | int |
18034 | main () | |
18035 | { | |
453310d8 RS |
18036 | return 0; |
18037 | } | |
db9f46a9 | 18038 | |
453310d8 | 18039 | _ACEOF |
5213506e | 18040 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18041 | gcc_cv_math_func_atan2l=yes |
453310d8 | 18042 | else |
db9f46a9 | 18043 | gcc_cv_math_func_atan2l=no |
453310d8 | 18044 | fi |
5213506e RW |
18045 | rm -f core conftest.err conftest.$ac_objext \ |
18046 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18047 | fi |
db9f46a9 TG |
18048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5 |
18049 | $as_echo "$gcc_cv_math_func_atan2l" >&6; } | |
18050 | if test $gcc_cv_math_func_atan2l = yes; then | |
f1cdfa01 | 18051 | |
f38a14ca TG |
18052 | cat >>confdefs.h <<_ACEOF |
18053 | #define HAVE_ATAN2L 1 | |
18054 | _ACEOF | |
db9f46a9 TG |
18055 | |
18056 | fi | |
453310d8 | 18057 | |
453310d8 | 18058 | |
453310d8 | 18059 | |
db9f46a9 TG |
18060 | |
18061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5 | |
18062 | $as_echo_n "checking for atanf... " >&6; } | |
22e05272 | 18063 | if ${gcc_cv_math_func_atanf+:} false; then : |
5213506e | 18064 | $as_echo_n "(cached) " >&6 |
453310d8 | 18065 | else |
db9f46a9 | 18066 | if test x$gcc_no_link = xyes; then |
22e05272 | 18067 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18068 | fi |
5213506e | 18069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18070 | /* end confdefs.h. */ |
18071 | ||
db9f46a9 TG |
18072 | #ifdef HAVE_COMPLEX_H |
18073 | #include <complex.h> | |
453310d8 | 18074 | #endif |
db9f46a9 TG |
18075 | #ifdef HAVE_MATH_H |
18076 | #include <math.h> | |
18077 | #endif | |
18078 | ||
18079 | int (*ptr)() = (int (*)())atanf; | |
18080 | ||
453310d8 RS |
18081 | int |
18082 | main () | |
18083 | { | |
453310d8 RS |
18084 | return 0; |
18085 | } | |
db9f46a9 | 18086 | |
453310d8 | 18087 | _ACEOF |
5213506e | 18088 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18089 | gcc_cv_math_func_atanf=yes |
453310d8 | 18090 | else |
db9f46a9 | 18091 | gcc_cv_math_func_atanf=no |
453310d8 | 18092 | fi |
5213506e RW |
18093 | rm -f core conftest.err conftest.$ac_objext \ |
18094 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18095 | fi |
db9f46a9 TG |
18096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5 |
18097 | $as_echo "$gcc_cv_math_func_atanf" >&6; } | |
18098 | if test $gcc_cv_math_func_atanf = yes; then | |
f1cdfa01 | 18099 | |
f38a14ca TG |
18100 | cat >>confdefs.h <<_ACEOF |
18101 | #define HAVE_ATANF 1 | |
18102 | _ACEOF | |
db9f46a9 TG |
18103 | |
18104 | fi | |
18105 | ||
453310d8 | 18106 | |
453310d8 | 18107 | |
453310d8 | 18108 | |
db9f46a9 TG |
18109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5 |
18110 | $as_echo_n "checking for atan... " >&6; } | |
22e05272 | 18111 | if ${gcc_cv_math_func_atan+:} false; then : |
5213506e | 18112 | $as_echo_n "(cached) " >&6 |
453310d8 | 18113 | else |
db9f46a9 | 18114 | if test x$gcc_no_link = xyes; then |
22e05272 | 18115 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18116 | fi |
5213506e | 18117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18118 | /* end confdefs.h. */ |
18119 | ||
db9f46a9 TG |
18120 | #ifdef HAVE_COMPLEX_H |
18121 | #include <complex.h> | |
18122 | #endif | |
18123 | #ifdef HAVE_MATH_H | |
18124 | #include <math.h> | |
453310d8 | 18125 | #endif |
db9f46a9 TG |
18126 | |
18127 | int (*ptr)() = (int (*)())atan; | |
18128 | ||
453310d8 RS |
18129 | int |
18130 | main () | |
18131 | { | |
453310d8 RS |
18132 | return 0; |
18133 | } | |
db9f46a9 | 18134 | |
453310d8 | 18135 | _ACEOF |
5213506e | 18136 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18137 | gcc_cv_math_func_atan=yes |
453310d8 | 18138 | else |
db9f46a9 | 18139 | gcc_cv_math_func_atan=no |
453310d8 | 18140 | fi |
5213506e RW |
18141 | rm -f core conftest.err conftest.$ac_objext \ |
18142 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18143 | fi |
db9f46a9 TG |
18144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5 |
18145 | $as_echo "$gcc_cv_math_func_atan" >&6; } | |
18146 | if test $gcc_cv_math_func_atan = yes; then | |
f1cdfa01 | 18147 | |
f38a14ca TG |
18148 | cat >>confdefs.h <<_ACEOF |
18149 | #define HAVE_ATAN 1 | |
18150 | _ACEOF | |
db9f46a9 TG |
18151 | |
18152 | fi | |
453310d8 | 18153 | |
453310d8 | 18154 | |
453310d8 | 18155 | |
db9f46a9 TG |
18156 | |
18157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5 | |
18158 | $as_echo_n "checking for atanl... " >&6; } | |
22e05272 | 18159 | if ${gcc_cv_math_func_atanl+:} false; then : |
5213506e | 18160 | $as_echo_n "(cached) " >&6 |
32aa3bff | 18161 | else |
db9f46a9 | 18162 | if test x$gcc_no_link = xyes; then |
22e05272 | 18163 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18164 | fi |
5213506e | 18165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
32aa3bff FXC |
18166 | /* end confdefs.h. */ |
18167 | ||
db9f46a9 TG |
18168 | #ifdef HAVE_COMPLEX_H |
18169 | #include <complex.h> | |
32aa3bff | 18170 | #endif |
db9f46a9 TG |
18171 | #ifdef HAVE_MATH_H |
18172 | #include <math.h> | |
18173 | #endif | |
18174 | ||
18175 | int (*ptr)() = (int (*)())atanl; | |
18176 | ||
32aa3bff FXC |
18177 | int |
18178 | main () | |
18179 | { | |
32aa3bff FXC |
18180 | return 0; |
18181 | } | |
db9f46a9 | 18182 | |
32aa3bff | 18183 | _ACEOF |
5213506e | 18184 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18185 | gcc_cv_math_func_atanl=yes |
32aa3bff | 18186 | else |
db9f46a9 | 18187 | gcc_cv_math_func_atanl=no |
32aa3bff | 18188 | fi |
5213506e RW |
18189 | rm -f core conftest.err conftest.$ac_objext \ |
18190 | conftest$ac_exeext conftest.$ac_ext | |
32aa3bff | 18191 | fi |
db9f46a9 TG |
18192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5 |
18193 | $as_echo "$gcc_cv_math_func_atanl" >&6; } | |
18194 | if test $gcc_cv_math_func_atanl = yes; then | |
f1cdfa01 | 18195 | |
f38a14ca TG |
18196 | cat >>confdefs.h <<_ACEOF |
18197 | #define HAVE_ATANL 1 | |
18198 | _ACEOF | |
32aa3bff | 18199 | |
db9f46a9 | 18200 | fi |
32aa3bff | 18201 | |
32aa3bff | 18202 | |
db9f46a9 TG |
18203 | |
18204 | ||
18205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5 | |
18206 | $as_echo_n "checking for atanhf... " >&6; } | |
22e05272 | 18207 | if ${gcc_cv_math_func_atanhf+:} false; then : |
5213506e | 18208 | $as_echo_n "(cached) " >&6 |
453310d8 | 18209 | else |
db9f46a9 | 18210 | if test x$gcc_no_link = xyes; then |
22e05272 | 18211 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18212 | fi |
5213506e | 18213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18214 | /* end confdefs.h. */ |
18215 | ||
db9f46a9 TG |
18216 | #ifdef HAVE_COMPLEX_H |
18217 | #include <complex.h> | |
18218 | #endif | |
18219 | #ifdef HAVE_MATH_H | |
18220 | #include <math.h> | |
453310d8 | 18221 | #endif |
db9f46a9 TG |
18222 | |
18223 | int (*ptr)() = (int (*)())atanhf; | |
18224 | ||
453310d8 RS |
18225 | int |
18226 | main () | |
18227 | { | |
453310d8 RS |
18228 | return 0; |
18229 | } | |
db9f46a9 | 18230 | |
453310d8 | 18231 | _ACEOF |
5213506e | 18232 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18233 | gcc_cv_math_func_atanhf=yes |
453310d8 | 18234 | else |
db9f46a9 | 18235 | gcc_cv_math_func_atanhf=no |
453310d8 | 18236 | fi |
5213506e RW |
18237 | rm -f core conftest.err conftest.$ac_objext \ |
18238 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18239 | fi |
db9f46a9 TG |
18240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5 |
18241 | $as_echo "$gcc_cv_math_func_atanhf" >&6; } | |
18242 | if test $gcc_cv_math_func_atanhf = yes; then | |
f1cdfa01 | 18243 | |
f38a14ca TG |
18244 | cat >>confdefs.h <<_ACEOF |
18245 | #define HAVE_ATANHF 1 | |
18246 | _ACEOF | |
db9f46a9 TG |
18247 | |
18248 | fi | |
453310d8 | 18249 | |
453310d8 | 18250 | |
453310d8 | 18251 | |
db9f46a9 TG |
18252 | |
18253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5 | |
18254 | $as_echo_n "checking for atanh... " >&6; } | |
22e05272 | 18255 | if ${gcc_cv_math_func_atanh+:} false; then : |
5213506e | 18256 | $as_echo_n "(cached) " >&6 |
453310d8 | 18257 | else |
db9f46a9 | 18258 | if test x$gcc_no_link = xyes; then |
22e05272 | 18259 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18260 | fi |
5213506e | 18261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18262 | /* end confdefs.h. */ |
18263 | ||
db9f46a9 TG |
18264 | #ifdef HAVE_COMPLEX_H |
18265 | #include <complex.h> | |
453310d8 | 18266 | #endif |
db9f46a9 TG |
18267 | #ifdef HAVE_MATH_H |
18268 | #include <math.h> | |
18269 | #endif | |
18270 | ||
18271 | int (*ptr)() = (int (*)())atanh; | |
18272 | ||
453310d8 RS |
18273 | int |
18274 | main () | |
18275 | { | |
453310d8 RS |
18276 | return 0; |
18277 | } | |
db9f46a9 | 18278 | |
453310d8 | 18279 | _ACEOF |
5213506e | 18280 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18281 | gcc_cv_math_func_atanh=yes |
453310d8 | 18282 | else |
db9f46a9 | 18283 | gcc_cv_math_func_atanh=no |
453310d8 | 18284 | fi |
5213506e RW |
18285 | rm -f core conftest.err conftest.$ac_objext \ |
18286 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18287 | fi |
db9f46a9 TG |
18288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5 |
18289 | $as_echo "$gcc_cv_math_func_atanh" >&6; } | |
18290 | if test $gcc_cv_math_func_atanh = yes; then | |
f1cdfa01 | 18291 | |
f38a14ca TG |
18292 | cat >>confdefs.h <<_ACEOF |
18293 | #define HAVE_ATANH 1 | |
18294 | _ACEOF | |
db9f46a9 TG |
18295 | |
18296 | fi | |
18297 | ||
453310d8 | 18298 | |
453310d8 | 18299 | |
453310d8 | 18300 | |
db9f46a9 TG |
18301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5 |
18302 | $as_echo_n "checking for atanhl... " >&6; } | |
22e05272 | 18303 | if ${gcc_cv_math_func_atanhl+:} false; then : |
5213506e | 18304 | $as_echo_n "(cached) " >&6 |
bf4d99cf | 18305 | else |
db9f46a9 | 18306 | if test x$gcc_no_link = xyes; then |
22e05272 | 18307 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18308 | fi |
5213506e | 18309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bf4d99cf TS |
18310 | /* end confdefs.h. */ |
18311 | ||
db9f46a9 TG |
18312 | #ifdef HAVE_COMPLEX_H |
18313 | #include <complex.h> | |
18314 | #endif | |
18315 | #ifdef HAVE_MATH_H | |
18316 | #include <math.h> | |
bf4d99cf | 18317 | #endif |
db9f46a9 TG |
18318 | |
18319 | int (*ptr)() = (int (*)())atanhl; | |
18320 | ||
bf4d99cf TS |
18321 | int |
18322 | main () | |
18323 | { | |
bf4d99cf TS |
18324 | return 0; |
18325 | } | |
db9f46a9 | 18326 | |
bf4d99cf | 18327 | _ACEOF |
5213506e | 18328 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18329 | gcc_cv_math_func_atanhl=yes |
bf4d99cf | 18330 | else |
db9f46a9 | 18331 | gcc_cv_math_func_atanhl=no |
bf4d99cf | 18332 | fi |
5213506e RW |
18333 | rm -f core conftest.err conftest.$ac_objext \ |
18334 | conftest$ac_exeext conftest.$ac_ext | |
bf4d99cf | 18335 | fi |
db9f46a9 TG |
18336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5 |
18337 | $as_echo "$gcc_cv_math_func_atanhl" >&6; } | |
18338 | if test $gcc_cv_math_func_atanhl = yes; then | |
f1cdfa01 | 18339 | |
f38a14ca TG |
18340 | cat >>confdefs.h <<_ACEOF |
18341 | #define HAVE_ATANHL 1 | |
18342 | _ACEOF | |
db9f46a9 TG |
18343 | |
18344 | fi | |
bf4d99cf | 18345 | |
bf4d99cf | 18346 | |
bf4d99cf | 18347 | |
db9f46a9 TG |
18348 | |
18349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5 | |
18350 | $as_echo_n "checking for cargf... " >&6; } | |
22e05272 | 18351 | if ${gcc_cv_math_func_cargf+:} false; then : |
5213506e | 18352 | $as_echo_n "(cached) " >&6 |
a2a2059f | 18353 | else |
db9f46a9 | 18354 | if test x$gcc_no_link = xyes; then |
22e05272 | 18355 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18356 | fi |
5213506e | 18357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2a2059f BD |
18358 | /* end confdefs.h. */ |
18359 | ||
db9f46a9 TG |
18360 | #ifdef HAVE_COMPLEX_H |
18361 | #include <complex.h> | |
a2a2059f | 18362 | #endif |
db9f46a9 TG |
18363 | #ifdef HAVE_MATH_H |
18364 | #include <math.h> | |
18365 | #endif | |
18366 | ||
18367 | int (*ptr)() = (int (*)())cargf; | |
18368 | ||
453310d8 RS |
18369 | int |
18370 | main () | |
18371 | { | |
453310d8 RS |
18372 | return 0; |
18373 | } | |
db9f46a9 | 18374 | |
453310d8 | 18375 | _ACEOF |
5213506e | 18376 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18377 | gcc_cv_math_func_cargf=yes |
453310d8 | 18378 | else |
db9f46a9 | 18379 | gcc_cv_math_func_cargf=no |
453310d8 | 18380 | fi |
5213506e RW |
18381 | rm -f core conftest.err conftest.$ac_objext \ |
18382 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18383 | fi |
db9f46a9 TG |
18384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5 |
18385 | $as_echo "$gcc_cv_math_func_cargf" >&6; } | |
18386 | if test $gcc_cv_math_func_cargf = yes; then | |
f1cdfa01 | 18387 | |
f38a14ca TG |
18388 | cat >>confdefs.h <<_ACEOF |
18389 | #define HAVE_CARGF 1 | |
18390 | _ACEOF | |
453310d8 | 18391 | |
db9f46a9 | 18392 | fi |
453310d8 | 18393 | |
453310d8 | 18394 | |
db9f46a9 TG |
18395 | |
18396 | ||
18397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5 | |
18398 | $as_echo_n "checking for carg... " >&6; } | |
22e05272 | 18399 | if ${gcc_cv_math_func_carg+:} false; then : |
5213506e | 18400 | $as_echo_n "(cached) " >&6 |
453310d8 | 18401 | else |
db9f46a9 | 18402 | if test x$gcc_no_link = xyes; then |
22e05272 | 18403 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18404 | fi |
5213506e | 18405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18406 | /* end confdefs.h. */ |
18407 | ||
db9f46a9 TG |
18408 | #ifdef HAVE_COMPLEX_H |
18409 | #include <complex.h> | |
18410 | #endif | |
18411 | #ifdef HAVE_MATH_H | |
18412 | #include <math.h> | |
453310d8 | 18413 | #endif |
db9f46a9 TG |
18414 | |
18415 | int (*ptr)() = (int (*)())carg; | |
18416 | ||
a2a2059f BD |
18417 | int |
18418 | main () | |
18419 | { | |
a2a2059f BD |
18420 | return 0; |
18421 | } | |
db9f46a9 | 18422 | |
a2a2059f | 18423 | _ACEOF |
5213506e | 18424 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18425 | gcc_cv_math_func_carg=yes |
a2a2059f | 18426 | else |
db9f46a9 | 18427 | gcc_cv_math_func_carg=no |
a2a2059f | 18428 | fi |
5213506e RW |
18429 | rm -f core conftest.err conftest.$ac_objext \ |
18430 | conftest$ac_exeext conftest.$ac_ext | |
a2a2059f | 18431 | fi |
db9f46a9 TG |
18432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5 |
18433 | $as_echo "$gcc_cv_math_func_carg" >&6; } | |
18434 | if test $gcc_cv_math_func_carg = yes; then | |
f1cdfa01 | 18435 | |
f38a14ca TG |
18436 | cat >>confdefs.h <<_ACEOF |
18437 | #define HAVE_CARG 1 | |
18438 | _ACEOF | |
db9f46a9 TG |
18439 | |
18440 | fi | |
a2a2059f | 18441 | |
a2a2059f | 18442 | |
a2a2059f | 18443 | |
db9f46a9 TG |
18444 | |
18445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5 | |
18446 | $as_echo_n "checking for cargl... " >&6; } | |
22e05272 | 18447 | if ${gcc_cv_math_func_cargl+:} false; then : |
5213506e | 18448 | $as_echo_n "(cached) " >&6 |
a2a2059f | 18449 | else |
db9f46a9 | 18450 | if test x$gcc_no_link = xyes; then |
22e05272 | 18451 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18452 | fi |
5213506e | 18453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2a2059f BD |
18454 | /* end confdefs.h. */ |
18455 | ||
db9f46a9 TG |
18456 | #ifdef HAVE_COMPLEX_H |
18457 | #include <complex.h> | |
a2a2059f | 18458 | #endif |
db9f46a9 TG |
18459 | #ifdef HAVE_MATH_H |
18460 | #include <math.h> | |
18461 | #endif | |
18462 | ||
18463 | int (*ptr)() = (int (*)())cargl; | |
18464 | ||
a2a2059f BD |
18465 | int |
18466 | main () | |
18467 | { | |
a2a2059f BD |
18468 | return 0; |
18469 | } | |
db9f46a9 | 18470 | |
a2a2059f | 18471 | _ACEOF |
5213506e | 18472 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18473 | gcc_cv_math_func_cargl=yes |
a2a2059f | 18474 | else |
db9f46a9 | 18475 | gcc_cv_math_func_cargl=no |
a2a2059f | 18476 | fi |
5213506e RW |
18477 | rm -f core conftest.err conftest.$ac_objext \ |
18478 | conftest$ac_exeext conftest.$ac_ext | |
a2a2059f | 18479 | fi |
db9f46a9 TG |
18480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5 |
18481 | $as_echo "$gcc_cv_math_func_cargl" >&6; } | |
18482 | if test $gcc_cv_math_func_cargl = yes; then | |
f1cdfa01 | 18483 | |
f38a14ca TG |
18484 | cat >>confdefs.h <<_ACEOF |
18485 | #define HAVE_CARGL 1 | |
18486 | _ACEOF | |
db9f46a9 TG |
18487 | |
18488 | fi | |
18489 | ||
a2a2059f | 18490 | |
a2a2059f | 18491 | |
a2a2059f | 18492 | |
db9f46a9 TG |
18493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5 |
18494 | $as_echo_n "checking for ceilf... " >&6; } | |
22e05272 | 18495 | if ${gcc_cv_math_func_ceilf+:} false; then : |
5213506e | 18496 | $as_echo_n "(cached) " >&6 |
ae973d6a | 18497 | else |
db9f46a9 | 18498 | if test x$gcc_no_link = xyes; then |
22e05272 | 18499 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18500 | fi |
5213506e | 18501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ae973d6a FXC |
18502 | /* end confdefs.h. */ |
18503 | ||
db9f46a9 TG |
18504 | #ifdef HAVE_COMPLEX_H |
18505 | #include <complex.h> | |
18506 | #endif | |
18507 | #ifdef HAVE_MATH_H | |
18508 | #include <math.h> | |
ae973d6a | 18509 | #endif |
db9f46a9 TG |
18510 | |
18511 | int (*ptr)() = (int (*)())ceilf; | |
18512 | ||
ae973d6a FXC |
18513 | int |
18514 | main () | |
18515 | { | |
ae973d6a FXC |
18516 | return 0; |
18517 | } | |
db9f46a9 | 18518 | |
ae973d6a | 18519 | _ACEOF |
5213506e | 18520 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18521 | gcc_cv_math_func_ceilf=yes |
ae973d6a | 18522 | else |
db9f46a9 | 18523 | gcc_cv_math_func_ceilf=no |
ae973d6a | 18524 | fi |
5213506e RW |
18525 | rm -f core conftest.err conftest.$ac_objext \ |
18526 | conftest$ac_exeext conftest.$ac_ext | |
ae973d6a | 18527 | fi |
db9f46a9 TG |
18528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5 |
18529 | $as_echo "$gcc_cv_math_func_ceilf" >&6; } | |
18530 | if test $gcc_cv_math_func_ceilf = yes; then | |
f1cdfa01 | 18531 | |
f38a14ca TG |
18532 | cat >>confdefs.h <<_ACEOF |
18533 | #define HAVE_CEILF 1 | |
18534 | _ACEOF | |
db9f46a9 TG |
18535 | |
18536 | fi | |
ae973d6a | 18537 | |
ae973d6a | 18538 | |
ae973d6a | 18539 | |
db9f46a9 TG |
18540 | |
18541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5 | |
18542 | $as_echo_n "checking for ceil... " >&6; } | |
22e05272 | 18543 | if ${gcc_cv_math_func_ceil+:} false; then : |
5213506e | 18544 | $as_echo_n "(cached) " >&6 |
a9e7b9d3 | 18545 | else |
db9f46a9 | 18546 | if test x$gcc_no_link = xyes; then |
22e05272 | 18547 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18548 | fi |
5213506e | 18549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a9e7b9d3 PB |
18550 | /* end confdefs.h. */ |
18551 | ||
db9f46a9 TG |
18552 | #ifdef HAVE_COMPLEX_H |
18553 | #include <complex.h> | |
a9e7b9d3 | 18554 | #endif |
db9f46a9 TG |
18555 | #ifdef HAVE_MATH_H |
18556 | #include <math.h> | |
18557 | #endif | |
18558 | ||
18559 | int (*ptr)() = (int (*)())ceil; | |
18560 | ||
a9e7b9d3 PB |
18561 | int |
18562 | main () | |
18563 | { | |
a9e7b9d3 PB |
18564 | return 0; |
18565 | } | |
db9f46a9 | 18566 | |
a9e7b9d3 | 18567 | _ACEOF |
5213506e | 18568 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18569 | gcc_cv_math_func_ceil=yes |
a9e7b9d3 | 18570 | else |
db9f46a9 | 18571 | gcc_cv_math_func_ceil=no |
a9e7b9d3 | 18572 | fi |
5213506e RW |
18573 | rm -f core conftest.err conftest.$ac_objext \ |
18574 | conftest$ac_exeext conftest.$ac_ext | |
a9e7b9d3 | 18575 | fi |
db9f46a9 TG |
18576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5 |
18577 | $as_echo "$gcc_cv_math_func_ceil" >&6; } | |
18578 | if test $gcc_cv_math_func_ceil = yes; then | |
f1cdfa01 | 18579 | |
f38a14ca TG |
18580 | cat >>confdefs.h <<_ACEOF |
18581 | #define HAVE_CEIL 1 | |
18582 | _ACEOF | |
a9e7b9d3 | 18583 | |
db9f46a9 | 18584 | fi |
a9e7b9d3 | 18585 | |
a9e7b9d3 | 18586 | |
db9f46a9 TG |
18587 | |
18588 | ||
18589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5 | |
18590 | $as_echo_n "checking for ceill... " >&6; } | |
22e05272 | 18591 | if ${gcc_cv_math_func_ceill+:} false; then : |
5213506e | 18592 | $as_echo_n "(cached) " >&6 |
a9e7b9d3 | 18593 | else |
db9f46a9 | 18594 | if test x$gcc_no_link = xyes; then |
22e05272 | 18595 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18596 | fi |
5213506e | 18597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a9e7b9d3 PB |
18598 | /* end confdefs.h. */ |
18599 | ||
db9f46a9 TG |
18600 | #ifdef HAVE_COMPLEX_H |
18601 | #include <complex.h> | |
18602 | #endif | |
18603 | #ifdef HAVE_MATH_H | |
18604 | #include <math.h> | |
a9e7b9d3 | 18605 | #endif |
db9f46a9 TG |
18606 | |
18607 | int (*ptr)() = (int (*)())ceill; | |
18608 | ||
a9e7b9d3 PB |
18609 | int |
18610 | main () | |
18611 | { | |
a9e7b9d3 PB |
18612 | return 0; |
18613 | } | |
db9f46a9 | 18614 | |
a9e7b9d3 | 18615 | _ACEOF |
5213506e | 18616 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18617 | gcc_cv_math_func_ceill=yes |
a9e7b9d3 | 18618 | else |
db9f46a9 | 18619 | gcc_cv_math_func_ceill=no |
a9e7b9d3 | 18620 | fi |
5213506e RW |
18621 | rm -f core conftest.err conftest.$ac_objext \ |
18622 | conftest$ac_exeext conftest.$ac_ext | |
a9e7b9d3 | 18623 | fi |
db9f46a9 TG |
18624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5 |
18625 | $as_echo "$gcc_cv_math_func_ceill" >&6; } | |
18626 | if test $gcc_cv_math_func_ceill = yes; then | |
f1cdfa01 | 18627 | |
f38a14ca TG |
18628 | cat >>confdefs.h <<_ACEOF |
18629 | #define HAVE_CEILL 1 | |
18630 | _ACEOF | |
db9f46a9 TG |
18631 | |
18632 | fi | |
a9e7b9d3 | 18633 | |
453310d8 | 18634 | |
453310d8 | 18635 | |
db9f46a9 TG |
18636 | |
18637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5 | |
18638 | $as_echo_n "checking for copysignf... " >&6; } | |
22e05272 | 18639 | if ${gcc_cv_math_func_copysignf+:} false; then : |
5213506e | 18640 | $as_echo_n "(cached) " >&6 |
453310d8 | 18641 | else |
db9f46a9 | 18642 | if test x$gcc_no_link = xyes; then |
22e05272 | 18643 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18644 | fi |
5213506e | 18645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18646 | /* end confdefs.h. */ |
18647 | ||
db9f46a9 TG |
18648 | #ifdef HAVE_COMPLEX_H |
18649 | #include <complex.h> | |
453310d8 | 18650 | #endif |
db9f46a9 TG |
18651 | #ifdef HAVE_MATH_H |
18652 | #include <math.h> | |
18653 | #endif | |
18654 | ||
18655 | int (*ptr)() = (int (*)())copysignf; | |
18656 | ||
453310d8 RS |
18657 | int |
18658 | main () | |
18659 | { | |
453310d8 RS |
18660 | return 0; |
18661 | } | |
db9f46a9 | 18662 | |
453310d8 | 18663 | _ACEOF |
5213506e | 18664 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18665 | gcc_cv_math_func_copysignf=yes |
453310d8 | 18666 | else |
db9f46a9 | 18667 | gcc_cv_math_func_copysignf=no |
453310d8 | 18668 | fi |
5213506e RW |
18669 | rm -f core conftest.err conftest.$ac_objext \ |
18670 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18671 | fi |
db9f46a9 TG |
18672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5 |
18673 | $as_echo "$gcc_cv_math_func_copysignf" >&6; } | |
18674 | if test $gcc_cv_math_func_copysignf = yes; then | |
f1cdfa01 | 18675 | |
f38a14ca TG |
18676 | cat >>confdefs.h <<_ACEOF |
18677 | #define HAVE_COPYSIGNF 1 | |
18678 | _ACEOF | |
db9f46a9 TG |
18679 | |
18680 | fi | |
18681 | ||
453310d8 | 18682 | |
453310d8 | 18683 | |
453310d8 | 18684 | |
db9f46a9 TG |
18685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5 |
18686 | $as_echo_n "checking for copysign... " >&6; } | |
22e05272 | 18687 | if ${gcc_cv_math_func_copysign+:} false; then : |
5213506e | 18688 | $as_echo_n "(cached) " >&6 |
453310d8 | 18689 | else |
db9f46a9 | 18690 | if test x$gcc_no_link = xyes; then |
22e05272 | 18691 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18692 | fi |
5213506e | 18693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18694 | /* end confdefs.h. */ |
18695 | ||
db9f46a9 TG |
18696 | #ifdef HAVE_COMPLEX_H |
18697 | #include <complex.h> | |
18698 | #endif | |
18699 | #ifdef HAVE_MATH_H | |
18700 | #include <math.h> | |
453310d8 | 18701 | #endif |
db9f46a9 TG |
18702 | |
18703 | int (*ptr)() = (int (*)())copysign; | |
18704 | ||
453310d8 RS |
18705 | int |
18706 | main () | |
18707 | { | |
453310d8 RS |
18708 | return 0; |
18709 | } | |
db9f46a9 | 18710 | |
453310d8 | 18711 | _ACEOF |
5213506e | 18712 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18713 | gcc_cv_math_func_copysign=yes |
453310d8 | 18714 | else |
db9f46a9 | 18715 | gcc_cv_math_func_copysign=no |
453310d8 | 18716 | fi |
5213506e RW |
18717 | rm -f core conftest.err conftest.$ac_objext \ |
18718 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18719 | fi |
db9f46a9 TG |
18720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5 |
18721 | $as_echo "$gcc_cv_math_func_copysign" >&6; } | |
18722 | if test $gcc_cv_math_func_copysign = yes; then | |
f1cdfa01 | 18723 | |
f38a14ca TG |
18724 | cat >>confdefs.h <<_ACEOF |
18725 | #define HAVE_COPYSIGN 1 | |
18726 | _ACEOF | |
db9f46a9 TG |
18727 | |
18728 | fi | |
453310d8 | 18729 | |
453310d8 | 18730 | |
453310d8 | 18731 | |
db9f46a9 TG |
18732 | |
18733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5 | |
18734 | $as_echo_n "checking for copysignl... " >&6; } | |
22e05272 | 18735 | if ${gcc_cv_math_func_copysignl+:} false; then : |
5213506e | 18736 | $as_echo_n "(cached) " >&6 |
453310d8 | 18737 | else |
db9f46a9 | 18738 | if test x$gcc_no_link = xyes; then |
22e05272 | 18739 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18740 | fi |
5213506e | 18741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18742 | /* end confdefs.h. */ |
18743 | ||
db9f46a9 TG |
18744 | #ifdef HAVE_COMPLEX_H |
18745 | #include <complex.h> | |
453310d8 | 18746 | #endif |
db9f46a9 TG |
18747 | #ifdef HAVE_MATH_H |
18748 | #include <math.h> | |
18749 | #endif | |
18750 | ||
18751 | int (*ptr)() = (int (*)())copysignl; | |
18752 | ||
453310d8 RS |
18753 | int |
18754 | main () | |
18755 | { | |
5213506e RW |
18756 | return 0; |
18757 | } | |
db9f46a9 | 18758 | |
5213506e RW |
18759 | _ACEOF |
18760 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 18761 | gcc_cv_math_func_copysignl=yes |
453310d8 | 18762 | else |
db9f46a9 | 18763 | gcc_cv_math_func_copysignl=no |
453310d8 | 18764 | fi |
5213506e RW |
18765 | rm -f core conftest.err conftest.$ac_objext \ |
18766 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18767 | fi |
db9f46a9 TG |
18768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5 |
18769 | $as_echo "$gcc_cv_math_func_copysignl" >&6; } | |
18770 | if test $gcc_cv_math_func_copysignl = yes; then | |
f1cdfa01 | 18771 | |
f38a14ca TG |
18772 | cat >>confdefs.h <<_ACEOF |
18773 | #define HAVE_COPYSIGNL 1 | |
18774 | _ACEOF | |
453310d8 | 18775 | |
db9f46a9 | 18776 | fi |
a9e7b9d3 | 18777 | |
a9e7b9d3 | 18778 | |
db9f46a9 TG |
18779 | |
18780 | ||
18781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5 | |
18782 | $as_echo_n "checking for cosf... " >&6; } | |
22e05272 | 18783 | if ${gcc_cv_math_func_cosf+:} false; then : |
5213506e | 18784 | $as_echo_n "(cached) " >&6 |
69a2d125 | 18785 | else |
db9f46a9 | 18786 | if test x$gcc_no_link = xyes; then |
22e05272 | 18787 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18788 | fi |
5213506e | 18789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
69a2d125 EB |
18790 | /* end confdefs.h. */ |
18791 | ||
db9f46a9 TG |
18792 | #ifdef HAVE_COMPLEX_H |
18793 | #include <complex.h> | |
18794 | #endif | |
18795 | #ifdef HAVE_MATH_H | |
18796 | #include <math.h> | |
69a2d125 | 18797 | #endif |
db9f46a9 TG |
18798 | |
18799 | int (*ptr)() = (int (*)())cosf; | |
18800 | ||
69a2d125 EB |
18801 | int |
18802 | main () | |
18803 | { | |
69a2d125 EB |
18804 | return 0; |
18805 | } | |
db9f46a9 | 18806 | |
69a2d125 | 18807 | _ACEOF |
5213506e | 18808 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18809 | gcc_cv_math_func_cosf=yes |
69a2d125 | 18810 | else |
db9f46a9 | 18811 | gcc_cv_math_func_cosf=no |
69a2d125 | 18812 | fi |
5213506e RW |
18813 | rm -f core conftest.err conftest.$ac_objext \ |
18814 | conftest$ac_exeext conftest.$ac_ext | |
69a2d125 | 18815 | fi |
db9f46a9 TG |
18816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5 |
18817 | $as_echo "$gcc_cv_math_func_cosf" >&6; } | |
18818 | if test $gcc_cv_math_func_cosf = yes; then | |
f1cdfa01 | 18819 | |
f38a14ca TG |
18820 | cat >>confdefs.h <<_ACEOF |
18821 | #define HAVE_COSF 1 | |
18822 | _ACEOF | |
db9f46a9 TG |
18823 | |
18824 | fi | |
69a2d125 | 18825 | |
1409cd0b | 18826 | |
1409cd0b | 18827 | |
db9f46a9 TG |
18828 | |
18829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5 | |
18830 | $as_echo_n "checking for cos... " >&6; } | |
22e05272 | 18831 | if ${gcc_cv_math_func_cos+:} false; then : |
5213506e | 18832 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18833 | else |
db9f46a9 | 18834 | if test x$gcc_no_link = xyes; then |
22e05272 | 18835 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18836 | fi |
5213506e | 18837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18838 | /* end confdefs.h. */ |
18839 | ||
db9f46a9 TG |
18840 | #ifdef HAVE_COMPLEX_H |
18841 | #include <complex.h> | |
1409cd0b | 18842 | #endif |
db9f46a9 TG |
18843 | #ifdef HAVE_MATH_H |
18844 | #include <math.h> | |
18845 | #endif | |
18846 | ||
18847 | int (*ptr)() = (int (*)())cos; | |
18848 | ||
1409cd0b FXC |
18849 | int |
18850 | main () | |
18851 | { | |
1409cd0b FXC |
18852 | return 0; |
18853 | } | |
db9f46a9 | 18854 | |
1409cd0b | 18855 | _ACEOF |
5213506e | 18856 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18857 | gcc_cv_math_func_cos=yes |
1409cd0b | 18858 | else |
db9f46a9 | 18859 | gcc_cv_math_func_cos=no |
1409cd0b | 18860 | fi |
5213506e RW |
18861 | rm -f core conftest.err conftest.$ac_objext \ |
18862 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18863 | fi |
db9f46a9 TG |
18864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5 |
18865 | $as_echo "$gcc_cv_math_func_cos" >&6; } | |
18866 | if test $gcc_cv_math_func_cos = yes; then | |
f1cdfa01 | 18867 | |
f38a14ca TG |
18868 | cat >>confdefs.h <<_ACEOF |
18869 | #define HAVE_COS 1 | |
18870 | _ACEOF | |
db9f46a9 TG |
18871 | |
18872 | fi | |
18873 | ||
1409cd0b | 18874 | |
1409cd0b | 18875 | |
1409cd0b | 18876 | |
db9f46a9 TG |
18877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5 |
18878 | $as_echo_n "checking for cosl... " >&6; } | |
22e05272 | 18879 | if ${gcc_cv_math_func_cosl+:} false; then : |
5213506e | 18880 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18881 | else |
db9f46a9 | 18882 | if test x$gcc_no_link = xyes; then |
22e05272 | 18883 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18884 | fi |
5213506e | 18885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18886 | /* end confdefs.h. */ |
18887 | ||
db9f46a9 TG |
18888 | #ifdef HAVE_COMPLEX_H |
18889 | #include <complex.h> | |
18890 | #endif | |
18891 | #ifdef HAVE_MATH_H | |
18892 | #include <math.h> | |
1409cd0b | 18893 | #endif |
db9f46a9 TG |
18894 | |
18895 | int (*ptr)() = (int (*)())cosl; | |
18896 | ||
1409cd0b FXC |
18897 | int |
18898 | main () | |
18899 | { | |
1409cd0b FXC |
18900 | return 0; |
18901 | } | |
db9f46a9 | 18902 | |
1409cd0b | 18903 | _ACEOF |
5213506e | 18904 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18905 | gcc_cv_math_func_cosl=yes |
1409cd0b | 18906 | else |
db9f46a9 | 18907 | gcc_cv_math_func_cosl=no |
1409cd0b | 18908 | fi |
5213506e RW |
18909 | rm -f core conftest.err conftest.$ac_objext \ |
18910 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18911 | fi |
db9f46a9 TG |
18912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5 |
18913 | $as_echo "$gcc_cv_math_func_cosl" >&6; } | |
18914 | if test $gcc_cv_math_func_cosl = yes; then | |
f1cdfa01 | 18915 | |
f38a14ca TG |
18916 | cat >>confdefs.h <<_ACEOF |
18917 | #define HAVE_COSL 1 | |
18918 | _ACEOF | |
db9f46a9 TG |
18919 | |
18920 | fi | |
1409cd0b | 18921 | |
1409cd0b | 18922 | |
1409cd0b | 18923 | |
db9f46a9 TG |
18924 | |
18925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5 | |
18926 | $as_echo_n "checking for ccosf... " >&6; } | |
22e05272 | 18927 | if ${gcc_cv_math_func_ccosf+:} false; then : |
5213506e | 18928 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18929 | else |
db9f46a9 | 18930 | if test x$gcc_no_link = xyes; then |
22e05272 | 18931 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18932 | fi |
5213506e | 18933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18934 | /* end confdefs.h. */ |
18935 | ||
db9f46a9 TG |
18936 | #ifdef HAVE_COMPLEX_H |
18937 | #include <complex.h> | |
1409cd0b | 18938 | #endif |
db9f46a9 TG |
18939 | #ifdef HAVE_MATH_H |
18940 | #include <math.h> | |
18941 | #endif | |
18942 | ||
18943 | int (*ptr)() = (int (*)())ccosf; | |
18944 | ||
1409cd0b FXC |
18945 | int |
18946 | main () | |
18947 | { | |
1409cd0b FXC |
18948 | return 0; |
18949 | } | |
db9f46a9 | 18950 | |
1409cd0b | 18951 | _ACEOF |
5213506e | 18952 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18953 | gcc_cv_math_func_ccosf=yes |
1409cd0b | 18954 | else |
db9f46a9 | 18955 | gcc_cv_math_func_ccosf=no |
1409cd0b | 18956 | fi |
5213506e RW |
18957 | rm -f core conftest.err conftest.$ac_objext \ |
18958 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18959 | fi |
db9f46a9 TG |
18960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5 |
18961 | $as_echo "$gcc_cv_math_func_ccosf" >&6; } | |
18962 | if test $gcc_cv_math_func_ccosf = yes; then | |
f1cdfa01 | 18963 | |
f38a14ca TG |
18964 | cat >>confdefs.h <<_ACEOF |
18965 | #define HAVE_CCOSF 1 | |
18966 | _ACEOF | |
1409cd0b | 18967 | |
db9f46a9 | 18968 | fi |
1409cd0b | 18969 | |
1409cd0b | 18970 | |
db9f46a9 TG |
18971 | |
18972 | ||
18973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5 | |
18974 | $as_echo_n "checking for ccos... " >&6; } | |
22e05272 | 18975 | if ${gcc_cv_math_func_ccos+:} false; then : |
5213506e | 18976 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18977 | else |
db9f46a9 | 18978 | if test x$gcc_no_link = xyes; then |
22e05272 | 18979 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18980 | fi |
5213506e | 18981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18982 | /* end confdefs.h. */ |
18983 | ||
db9f46a9 TG |
18984 | #ifdef HAVE_COMPLEX_H |
18985 | #include <complex.h> | |
18986 | #endif | |
18987 | #ifdef HAVE_MATH_H | |
18988 | #include <math.h> | |
1409cd0b | 18989 | #endif |
db9f46a9 TG |
18990 | |
18991 | int (*ptr)() = (int (*)())ccos; | |
18992 | ||
1409cd0b FXC |
18993 | int |
18994 | main () | |
18995 | { | |
1409cd0b FXC |
18996 | return 0; |
18997 | } | |
db9f46a9 | 18998 | |
1409cd0b | 18999 | _ACEOF |
5213506e | 19000 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19001 | gcc_cv_math_func_ccos=yes |
1409cd0b | 19002 | else |
db9f46a9 | 19003 | gcc_cv_math_func_ccos=no |
1409cd0b | 19004 | fi |
5213506e RW |
19005 | rm -f core conftest.err conftest.$ac_objext \ |
19006 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19007 | fi |
db9f46a9 TG |
19008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5 |
19009 | $as_echo "$gcc_cv_math_func_ccos" >&6; } | |
19010 | if test $gcc_cv_math_func_ccos = yes; then | |
f1cdfa01 | 19011 | |
f38a14ca TG |
19012 | cat >>confdefs.h <<_ACEOF |
19013 | #define HAVE_CCOS 1 | |
19014 | _ACEOF | |
db9f46a9 TG |
19015 | |
19016 | fi | |
1409cd0b | 19017 | |
1409cd0b | 19018 | |
1409cd0b | 19019 | |
db9f46a9 TG |
19020 | |
19021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5 | |
19022 | $as_echo_n "checking for ccosl... " >&6; } | |
22e05272 | 19023 | if ${gcc_cv_math_func_ccosl+:} false; then : |
5213506e | 19024 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19025 | else |
db9f46a9 | 19026 | if test x$gcc_no_link = xyes; then |
22e05272 | 19027 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19028 | fi |
5213506e | 19029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19030 | /* end confdefs.h. */ |
19031 | ||
db9f46a9 TG |
19032 | #ifdef HAVE_COMPLEX_H |
19033 | #include <complex.h> | |
1409cd0b | 19034 | #endif |
db9f46a9 TG |
19035 | #ifdef HAVE_MATH_H |
19036 | #include <math.h> | |
19037 | #endif | |
19038 | ||
19039 | int (*ptr)() = (int (*)())ccosl; | |
19040 | ||
1409cd0b FXC |
19041 | int |
19042 | main () | |
19043 | { | |
1409cd0b FXC |
19044 | return 0; |
19045 | } | |
db9f46a9 | 19046 | |
1409cd0b | 19047 | _ACEOF |
5213506e | 19048 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19049 | gcc_cv_math_func_ccosl=yes |
1409cd0b | 19050 | else |
db9f46a9 | 19051 | gcc_cv_math_func_ccosl=no |
1409cd0b | 19052 | fi |
5213506e RW |
19053 | rm -f core conftest.err conftest.$ac_objext \ |
19054 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19055 | fi |
db9f46a9 TG |
19056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5 |
19057 | $as_echo "$gcc_cv_math_func_ccosl" >&6; } | |
19058 | if test $gcc_cv_math_func_ccosl = yes; then | |
f1cdfa01 | 19059 | |
f38a14ca TG |
19060 | cat >>confdefs.h <<_ACEOF |
19061 | #define HAVE_CCOSL 1 | |
19062 | _ACEOF | |
db9f46a9 TG |
19063 | |
19064 | fi | |
19065 | ||
1409cd0b | 19066 | |
1409cd0b | 19067 | |
1409cd0b | 19068 | |
db9f46a9 TG |
19069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5 |
19070 | $as_echo_n "checking for coshf... " >&6; } | |
22e05272 | 19071 | if ${gcc_cv_math_func_coshf+:} false; then : |
5213506e | 19072 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19073 | else |
db9f46a9 | 19074 | if test x$gcc_no_link = xyes; then |
22e05272 | 19075 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19076 | fi |
5213506e | 19077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19078 | /* end confdefs.h. */ |
19079 | ||
db9f46a9 TG |
19080 | #ifdef HAVE_COMPLEX_H |
19081 | #include <complex.h> | |
19082 | #endif | |
19083 | #ifdef HAVE_MATH_H | |
19084 | #include <math.h> | |
1409cd0b | 19085 | #endif |
db9f46a9 TG |
19086 | |
19087 | int (*ptr)() = (int (*)())coshf; | |
19088 | ||
1409cd0b FXC |
19089 | int |
19090 | main () | |
19091 | { | |
1409cd0b FXC |
19092 | return 0; |
19093 | } | |
db9f46a9 | 19094 | |
1409cd0b | 19095 | _ACEOF |
5213506e | 19096 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19097 | gcc_cv_math_func_coshf=yes |
1409cd0b | 19098 | else |
db9f46a9 | 19099 | gcc_cv_math_func_coshf=no |
1409cd0b | 19100 | fi |
5213506e RW |
19101 | rm -f core conftest.err conftest.$ac_objext \ |
19102 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19103 | fi |
db9f46a9 TG |
19104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5 |
19105 | $as_echo "$gcc_cv_math_func_coshf" >&6; } | |
19106 | if test $gcc_cv_math_func_coshf = yes; then | |
f1cdfa01 | 19107 | |
f38a14ca TG |
19108 | cat >>confdefs.h <<_ACEOF |
19109 | #define HAVE_COSHF 1 | |
19110 | _ACEOF | |
db9f46a9 TG |
19111 | |
19112 | fi | |
1409cd0b | 19113 | |
1409cd0b | 19114 | |
1409cd0b | 19115 | |
db9f46a9 TG |
19116 | |
19117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5 | |
19118 | $as_echo_n "checking for cosh... " >&6; } | |
22e05272 | 19119 | if ${gcc_cv_math_func_cosh+:} false; then : |
5213506e | 19120 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19121 | else |
db9f46a9 | 19122 | if test x$gcc_no_link = xyes; then |
22e05272 | 19123 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19124 | fi |
5213506e | 19125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19126 | /* end confdefs.h. */ |
19127 | ||
db9f46a9 TG |
19128 | #ifdef HAVE_COMPLEX_H |
19129 | #include <complex.h> | |
1409cd0b | 19130 | #endif |
db9f46a9 TG |
19131 | #ifdef HAVE_MATH_H |
19132 | #include <math.h> | |
19133 | #endif | |
19134 | ||
19135 | int (*ptr)() = (int (*)())cosh; | |
19136 | ||
1409cd0b FXC |
19137 | int |
19138 | main () | |
19139 | { | |
1409cd0b FXC |
19140 | return 0; |
19141 | } | |
db9f46a9 | 19142 | |
1409cd0b | 19143 | _ACEOF |
5213506e | 19144 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19145 | gcc_cv_math_func_cosh=yes |
1409cd0b | 19146 | else |
db9f46a9 | 19147 | gcc_cv_math_func_cosh=no |
1409cd0b | 19148 | fi |
5213506e RW |
19149 | rm -f core conftest.err conftest.$ac_objext \ |
19150 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19151 | fi |
db9f46a9 TG |
19152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5 |
19153 | $as_echo "$gcc_cv_math_func_cosh" >&6; } | |
19154 | if test $gcc_cv_math_func_cosh = yes; then | |
f1cdfa01 | 19155 | |
f38a14ca TG |
19156 | cat >>confdefs.h <<_ACEOF |
19157 | #define HAVE_COSH 1 | |
19158 | _ACEOF | |
1409cd0b | 19159 | |
db9f46a9 | 19160 | fi |
1409cd0b | 19161 | |
1409cd0b | 19162 | |
db9f46a9 TG |
19163 | |
19164 | ||
19165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5 | |
19166 | $as_echo_n "checking for coshl... " >&6; } | |
22e05272 | 19167 | if ${gcc_cv_math_func_coshl+:} false; then : |
5213506e | 19168 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19169 | else |
db9f46a9 | 19170 | if test x$gcc_no_link = xyes; then |
22e05272 | 19171 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19172 | fi |
5213506e | 19173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19174 | /* end confdefs.h. */ |
19175 | ||
db9f46a9 TG |
19176 | #ifdef HAVE_COMPLEX_H |
19177 | #include <complex.h> | |
19178 | #endif | |
19179 | #ifdef HAVE_MATH_H | |
19180 | #include <math.h> | |
1409cd0b | 19181 | #endif |
db9f46a9 TG |
19182 | |
19183 | int (*ptr)() = (int (*)())coshl; | |
19184 | ||
1409cd0b FXC |
19185 | int |
19186 | main () | |
19187 | { | |
1409cd0b FXC |
19188 | return 0; |
19189 | } | |
db9f46a9 | 19190 | |
1409cd0b | 19191 | _ACEOF |
5213506e | 19192 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19193 | gcc_cv_math_func_coshl=yes |
1409cd0b | 19194 | else |
db9f46a9 | 19195 | gcc_cv_math_func_coshl=no |
1409cd0b | 19196 | fi |
5213506e RW |
19197 | rm -f core conftest.err conftest.$ac_objext \ |
19198 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19199 | fi |
db9f46a9 TG |
19200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5 |
19201 | $as_echo "$gcc_cv_math_func_coshl" >&6; } | |
19202 | if test $gcc_cv_math_func_coshl = yes; then | |
f1cdfa01 | 19203 | |
f38a14ca TG |
19204 | cat >>confdefs.h <<_ACEOF |
19205 | #define HAVE_COSHL 1 | |
19206 | _ACEOF | |
db9f46a9 TG |
19207 | |
19208 | fi | |
1409cd0b | 19209 | |
1409cd0b | 19210 | |
1409cd0b | 19211 | |
db9f46a9 TG |
19212 | |
19213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5 | |
19214 | $as_echo_n "checking for ccoshf... " >&6; } | |
22e05272 | 19215 | if ${gcc_cv_math_func_ccoshf+:} false; then : |
5213506e | 19216 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19217 | else |
db9f46a9 | 19218 | if test x$gcc_no_link = xyes; then |
22e05272 | 19219 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19220 | fi |
5213506e | 19221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19222 | /* end confdefs.h. */ |
19223 | ||
db9f46a9 TG |
19224 | #ifdef HAVE_COMPLEX_H |
19225 | #include <complex.h> | |
1409cd0b | 19226 | #endif |
db9f46a9 TG |
19227 | #ifdef HAVE_MATH_H |
19228 | #include <math.h> | |
19229 | #endif | |
19230 | ||
19231 | int (*ptr)() = (int (*)())ccoshf; | |
19232 | ||
1409cd0b FXC |
19233 | int |
19234 | main () | |
19235 | { | |
1409cd0b FXC |
19236 | return 0; |
19237 | } | |
db9f46a9 | 19238 | |
1409cd0b | 19239 | _ACEOF |
5213506e | 19240 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19241 | gcc_cv_math_func_ccoshf=yes |
1409cd0b | 19242 | else |
db9f46a9 | 19243 | gcc_cv_math_func_ccoshf=no |
1409cd0b | 19244 | fi |
5213506e RW |
19245 | rm -f core conftest.err conftest.$ac_objext \ |
19246 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19247 | fi |
db9f46a9 TG |
19248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5 |
19249 | $as_echo "$gcc_cv_math_func_ccoshf" >&6; } | |
19250 | if test $gcc_cv_math_func_ccoshf = yes; then | |
f1cdfa01 | 19251 | |
f38a14ca TG |
19252 | cat >>confdefs.h <<_ACEOF |
19253 | #define HAVE_CCOSHF 1 | |
19254 | _ACEOF | |
db9f46a9 TG |
19255 | |
19256 | fi | |
19257 | ||
1409cd0b | 19258 | |
1409cd0b | 19259 | |
1409cd0b | 19260 | |
db9f46a9 TG |
19261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5 |
19262 | $as_echo_n "checking for ccosh... " >&6; } | |
22e05272 | 19263 | if ${gcc_cv_math_func_ccosh+:} false; then : |
5213506e | 19264 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19265 | else |
db9f46a9 | 19266 | if test x$gcc_no_link = xyes; then |
22e05272 | 19267 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19268 | fi |
5213506e | 19269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19270 | /* end confdefs.h. */ |
19271 | ||
db9f46a9 TG |
19272 | #ifdef HAVE_COMPLEX_H |
19273 | #include <complex.h> | |
19274 | #endif | |
19275 | #ifdef HAVE_MATH_H | |
19276 | #include <math.h> | |
1409cd0b | 19277 | #endif |
db9f46a9 TG |
19278 | |
19279 | int (*ptr)() = (int (*)())ccosh; | |
19280 | ||
1409cd0b FXC |
19281 | int |
19282 | main () | |
19283 | { | |
1409cd0b FXC |
19284 | return 0; |
19285 | } | |
db9f46a9 | 19286 | |
1409cd0b | 19287 | _ACEOF |
5213506e | 19288 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19289 | gcc_cv_math_func_ccosh=yes |
1409cd0b | 19290 | else |
db9f46a9 | 19291 | gcc_cv_math_func_ccosh=no |
1409cd0b | 19292 | fi |
5213506e RW |
19293 | rm -f core conftest.err conftest.$ac_objext \ |
19294 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19295 | fi |
db9f46a9 TG |
19296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5 |
19297 | $as_echo "$gcc_cv_math_func_ccosh" >&6; } | |
19298 | if test $gcc_cv_math_func_ccosh = yes; then | |
f1cdfa01 | 19299 | |
f38a14ca TG |
19300 | cat >>confdefs.h <<_ACEOF |
19301 | #define HAVE_CCOSH 1 | |
19302 | _ACEOF | |
db9f46a9 TG |
19303 | |
19304 | fi | |
1409cd0b | 19305 | |
1409cd0b | 19306 | |
1409cd0b | 19307 | |
db9f46a9 TG |
19308 | |
19309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5 | |
19310 | $as_echo_n "checking for ccoshl... " >&6; } | |
22e05272 | 19311 | if ${gcc_cv_math_func_ccoshl+:} false; then : |
5213506e | 19312 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19313 | else |
db9f46a9 | 19314 | if test x$gcc_no_link = xyes; then |
22e05272 | 19315 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19316 | fi |
5213506e | 19317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19318 | /* end confdefs.h. */ |
19319 | ||
db9f46a9 TG |
19320 | #ifdef HAVE_COMPLEX_H |
19321 | #include <complex.h> | |
1409cd0b | 19322 | #endif |
db9f46a9 TG |
19323 | #ifdef HAVE_MATH_H |
19324 | #include <math.h> | |
19325 | #endif | |
19326 | ||
19327 | int (*ptr)() = (int (*)())ccoshl; | |
19328 | ||
1409cd0b FXC |
19329 | int |
19330 | main () | |
19331 | { | |
1409cd0b FXC |
19332 | return 0; |
19333 | } | |
db9f46a9 | 19334 | |
1409cd0b | 19335 | _ACEOF |
5213506e | 19336 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19337 | gcc_cv_math_func_ccoshl=yes |
1409cd0b | 19338 | else |
db9f46a9 | 19339 | gcc_cv_math_func_ccoshl=no |
1409cd0b | 19340 | fi |
5213506e RW |
19341 | rm -f core conftest.err conftest.$ac_objext \ |
19342 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19343 | fi |
db9f46a9 TG |
19344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5 |
19345 | $as_echo "$gcc_cv_math_func_ccoshl" >&6; } | |
19346 | if test $gcc_cv_math_func_ccoshl = yes; then | |
f1cdfa01 | 19347 | |
f38a14ca TG |
19348 | cat >>confdefs.h <<_ACEOF |
19349 | #define HAVE_CCOSHL 1 | |
19350 | _ACEOF | |
1409cd0b | 19351 | |
db9f46a9 | 19352 | fi |
1409cd0b | 19353 | |
1409cd0b | 19354 | |
db9f46a9 TG |
19355 | |
19356 | ||
19357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5 | |
19358 | $as_echo_n "checking for expf... " >&6; } | |
22e05272 | 19359 | if ${gcc_cv_math_func_expf+:} false; then : |
5213506e | 19360 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19361 | else |
db9f46a9 | 19362 | if test x$gcc_no_link = xyes; then |
22e05272 | 19363 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19364 | fi |
5213506e | 19365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19366 | /* end confdefs.h. */ |
19367 | ||
db9f46a9 TG |
19368 | #ifdef HAVE_COMPLEX_H |
19369 | #include <complex.h> | |
19370 | #endif | |
19371 | #ifdef HAVE_MATH_H | |
19372 | #include <math.h> | |
1409cd0b | 19373 | #endif |
db9f46a9 TG |
19374 | |
19375 | int (*ptr)() = (int (*)())expf; | |
19376 | ||
1409cd0b FXC |
19377 | int |
19378 | main () | |
19379 | { | |
1409cd0b FXC |
19380 | return 0; |
19381 | } | |
db9f46a9 | 19382 | |
1409cd0b | 19383 | _ACEOF |
5213506e | 19384 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19385 | gcc_cv_math_func_expf=yes |
1409cd0b | 19386 | else |
db9f46a9 | 19387 | gcc_cv_math_func_expf=no |
1409cd0b | 19388 | fi |
5213506e RW |
19389 | rm -f core conftest.err conftest.$ac_objext \ |
19390 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19391 | fi |
db9f46a9 TG |
19392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5 |
19393 | $as_echo "$gcc_cv_math_func_expf" >&6; } | |
19394 | if test $gcc_cv_math_func_expf = yes; then | |
f1cdfa01 | 19395 | |
f38a14ca TG |
19396 | cat >>confdefs.h <<_ACEOF |
19397 | #define HAVE_EXPF 1 | |
19398 | _ACEOF | |
db9f46a9 TG |
19399 | |
19400 | fi | |
1409cd0b | 19401 | |
1409cd0b | 19402 | |
1409cd0b | 19403 | |
db9f46a9 TG |
19404 | |
19405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5 | |
19406 | $as_echo_n "checking for exp... " >&6; } | |
22e05272 | 19407 | if ${gcc_cv_math_func_exp+:} false; then : |
5213506e | 19408 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19409 | else |
db9f46a9 | 19410 | if test x$gcc_no_link = xyes; then |
22e05272 | 19411 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19412 | fi |
5213506e | 19413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19414 | /* end confdefs.h. */ |
19415 | ||
db9f46a9 TG |
19416 | #ifdef HAVE_COMPLEX_H |
19417 | #include <complex.h> | |
1409cd0b | 19418 | #endif |
db9f46a9 TG |
19419 | #ifdef HAVE_MATH_H |
19420 | #include <math.h> | |
19421 | #endif | |
19422 | ||
19423 | int (*ptr)() = (int (*)())exp; | |
19424 | ||
1409cd0b FXC |
19425 | int |
19426 | main () | |
19427 | { | |
1409cd0b FXC |
19428 | return 0; |
19429 | } | |
db9f46a9 | 19430 | |
1409cd0b | 19431 | _ACEOF |
5213506e | 19432 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19433 | gcc_cv_math_func_exp=yes |
1409cd0b | 19434 | else |
db9f46a9 | 19435 | gcc_cv_math_func_exp=no |
1409cd0b | 19436 | fi |
5213506e RW |
19437 | rm -f core conftest.err conftest.$ac_objext \ |
19438 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19439 | fi |
db9f46a9 TG |
19440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5 |
19441 | $as_echo "$gcc_cv_math_func_exp" >&6; } | |
19442 | if test $gcc_cv_math_func_exp = yes; then | |
f1cdfa01 | 19443 | |
f38a14ca TG |
19444 | cat >>confdefs.h <<_ACEOF |
19445 | #define HAVE_EXP 1 | |
19446 | _ACEOF | |
db9f46a9 TG |
19447 | |
19448 | fi | |
19449 | ||
1409cd0b | 19450 | |
1409cd0b | 19451 | |
1409cd0b | 19452 | |
db9f46a9 TG |
19453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5 |
19454 | $as_echo_n "checking for expl... " >&6; } | |
22e05272 | 19455 | if ${gcc_cv_math_func_expl+:} false; then : |
5213506e | 19456 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19457 | else |
db9f46a9 | 19458 | if test x$gcc_no_link = xyes; then |
22e05272 | 19459 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19460 | fi |
5213506e | 19461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19462 | /* end confdefs.h. */ |
19463 | ||
db9f46a9 TG |
19464 | #ifdef HAVE_COMPLEX_H |
19465 | #include <complex.h> | |
19466 | #endif | |
19467 | #ifdef HAVE_MATH_H | |
19468 | #include <math.h> | |
1409cd0b | 19469 | #endif |
db9f46a9 TG |
19470 | |
19471 | int (*ptr)() = (int (*)())expl; | |
19472 | ||
1409cd0b FXC |
19473 | int |
19474 | main () | |
19475 | { | |
1409cd0b FXC |
19476 | return 0; |
19477 | } | |
db9f46a9 | 19478 | |
1409cd0b | 19479 | _ACEOF |
5213506e | 19480 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19481 | gcc_cv_math_func_expl=yes |
1409cd0b | 19482 | else |
db9f46a9 | 19483 | gcc_cv_math_func_expl=no |
1409cd0b | 19484 | fi |
5213506e RW |
19485 | rm -f core conftest.err conftest.$ac_objext \ |
19486 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19487 | fi |
db9f46a9 TG |
19488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5 |
19489 | $as_echo "$gcc_cv_math_func_expl" >&6; } | |
19490 | if test $gcc_cv_math_func_expl = yes; then | |
f1cdfa01 | 19491 | |
f38a14ca TG |
19492 | cat >>confdefs.h <<_ACEOF |
19493 | #define HAVE_EXPL 1 | |
19494 | _ACEOF | |
db9f46a9 TG |
19495 | |
19496 | fi | |
1409cd0b | 19497 | |
1409cd0b | 19498 | |
1409cd0b | 19499 | |
db9f46a9 TG |
19500 | |
19501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5 | |
19502 | $as_echo_n "checking for cexpf... " >&6; } | |
22e05272 | 19503 | if ${gcc_cv_math_func_cexpf+:} false; then : |
5213506e | 19504 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19505 | else |
db9f46a9 | 19506 | if test x$gcc_no_link = xyes; then |
22e05272 | 19507 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19508 | fi |
5213506e | 19509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19510 | /* end confdefs.h. */ |
19511 | ||
db9f46a9 TG |
19512 | #ifdef HAVE_COMPLEX_H |
19513 | #include <complex.h> | |
1409cd0b | 19514 | #endif |
db9f46a9 TG |
19515 | #ifdef HAVE_MATH_H |
19516 | #include <math.h> | |
19517 | #endif | |
19518 | ||
19519 | int (*ptr)() = (int (*)())cexpf; | |
19520 | ||
1409cd0b FXC |
19521 | int |
19522 | main () | |
19523 | { | |
1409cd0b FXC |
19524 | return 0; |
19525 | } | |
db9f46a9 | 19526 | |
1409cd0b | 19527 | _ACEOF |
5213506e | 19528 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19529 | gcc_cv_math_func_cexpf=yes |
1409cd0b | 19530 | else |
db9f46a9 | 19531 | gcc_cv_math_func_cexpf=no |
1409cd0b | 19532 | fi |
5213506e RW |
19533 | rm -f core conftest.err conftest.$ac_objext \ |
19534 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19535 | fi |
db9f46a9 TG |
19536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5 |
19537 | $as_echo "$gcc_cv_math_func_cexpf" >&6; } | |
19538 | if test $gcc_cv_math_func_cexpf = yes; then | |
f1cdfa01 | 19539 | |
f38a14ca TG |
19540 | cat >>confdefs.h <<_ACEOF |
19541 | #define HAVE_CEXPF 1 | |
19542 | _ACEOF | |
1409cd0b | 19543 | |
db9f46a9 | 19544 | fi |
1409cd0b | 19545 | |
1409cd0b | 19546 | |
db9f46a9 TG |
19547 | |
19548 | ||
19549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5 | |
19550 | $as_echo_n "checking for cexp... " >&6; } | |
22e05272 | 19551 | if ${gcc_cv_math_func_cexp+:} false; then : |
5213506e | 19552 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19553 | else |
db9f46a9 | 19554 | if test x$gcc_no_link = xyes; then |
22e05272 | 19555 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19556 | fi |
5213506e | 19557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19558 | /* end confdefs.h. */ |
19559 | ||
db9f46a9 TG |
19560 | #ifdef HAVE_COMPLEX_H |
19561 | #include <complex.h> | |
19562 | #endif | |
19563 | #ifdef HAVE_MATH_H | |
19564 | #include <math.h> | |
1409cd0b | 19565 | #endif |
db9f46a9 TG |
19566 | |
19567 | int (*ptr)() = (int (*)())cexp; | |
19568 | ||
1409cd0b FXC |
19569 | int |
19570 | main () | |
19571 | { | |
1409cd0b FXC |
19572 | return 0; |
19573 | } | |
db9f46a9 | 19574 | |
1409cd0b | 19575 | _ACEOF |
5213506e | 19576 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19577 | gcc_cv_math_func_cexp=yes |
1409cd0b | 19578 | else |
db9f46a9 | 19579 | gcc_cv_math_func_cexp=no |
1409cd0b | 19580 | fi |
5213506e RW |
19581 | rm -f core conftest.err conftest.$ac_objext \ |
19582 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19583 | fi |
db9f46a9 TG |
19584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5 |
19585 | $as_echo "$gcc_cv_math_func_cexp" >&6; } | |
19586 | if test $gcc_cv_math_func_cexp = yes; then | |
f1cdfa01 | 19587 | |
f38a14ca TG |
19588 | cat >>confdefs.h <<_ACEOF |
19589 | #define HAVE_CEXP 1 | |
19590 | _ACEOF | |
db9f46a9 TG |
19591 | |
19592 | fi | |
1409cd0b | 19593 | |
1409cd0b | 19594 | |
1409cd0b | 19595 | |
db9f46a9 TG |
19596 | |
19597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5 | |
19598 | $as_echo_n "checking for cexpl... " >&6; } | |
22e05272 | 19599 | if ${gcc_cv_math_func_cexpl+:} false; then : |
5213506e | 19600 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19601 | else |
db9f46a9 | 19602 | if test x$gcc_no_link = xyes; then |
22e05272 | 19603 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19604 | fi |
5213506e | 19605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19606 | /* end confdefs.h. */ |
19607 | ||
db9f46a9 TG |
19608 | #ifdef HAVE_COMPLEX_H |
19609 | #include <complex.h> | |
1409cd0b | 19610 | #endif |
db9f46a9 TG |
19611 | #ifdef HAVE_MATH_H |
19612 | #include <math.h> | |
19613 | #endif | |
19614 | ||
19615 | int (*ptr)() = (int (*)())cexpl; | |
19616 | ||
1409cd0b FXC |
19617 | int |
19618 | main () | |
19619 | { | |
1409cd0b FXC |
19620 | return 0; |
19621 | } | |
db9f46a9 | 19622 | |
1409cd0b | 19623 | _ACEOF |
5213506e | 19624 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19625 | gcc_cv_math_func_cexpl=yes |
1409cd0b | 19626 | else |
db9f46a9 | 19627 | gcc_cv_math_func_cexpl=no |
1409cd0b | 19628 | fi |
5213506e RW |
19629 | rm -f core conftest.err conftest.$ac_objext \ |
19630 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19631 | fi |
db9f46a9 TG |
19632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5 |
19633 | $as_echo "$gcc_cv_math_func_cexpl" >&6; } | |
19634 | if test $gcc_cv_math_func_cexpl = yes; then | |
f1cdfa01 | 19635 | |
f38a14ca TG |
19636 | cat >>confdefs.h <<_ACEOF |
19637 | #define HAVE_CEXPL 1 | |
19638 | _ACEOF | |
db9f46a9 TG |
19639 | |
19640 | fi | |
19641 | ||
1409cd0b | 19642 | |
1409cd0b | 19643 | |
1409cd0b | 19644 | |
db9f46a9 TG |
19645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5 |
19646 | $as_echo_n "checking for fabsf... " >&6; } | |
22e05272 | 19647 | if ${gcc_cv_math_func_fabsf+:} false; then : |
5213506e | 19648 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19649 | else |
db9f46a9 | 19650 | if test x$gcc_no_link = xyes; then |
22e05272 | 19651 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19652 | fi |
5213506e | 19653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19654 | /* end confdefs.h. */ |
19655 | ||
db9f46a9 TG |
19656 | #ifdef HAVE_COMPLEX_H |
19657 | #include <complex.h> | |
19658 | #endif | |
19659 | #ifdef HAVE_MATH_H | |
19660 | #include <math.h> | |
1409cd0b | 19661 | #endif |
db9f46a9 TG |
19662 | |
19663 | int (*ptr)() = (int (*)())fabsf; | |
19664 | ||
1409cd0b FXC |
19665 | int |
19666 | main () | |
19667 | { | |
1409cd0b FXC |
19668 | return 0; |
19669 | } | |
db9f46a9 | 19670 | |
1409cd0b | 19671 | _ACEOF |
5213506e | 19672 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19673 | gcc_cv_math_func_fabsf=yes |
1409cd0b | 19674 | else |
db9f46a9 | 19675 | gcc_cv_math_func_fabsf=no |
1409cd0b | 19676 | fi |
5213506e RW |
19677 | rm -f core conftest.err conftest.$ac_objext \ |
19678 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19679 | fi |
db9f46a9 TG |
19680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5 |
19681 | $as_echo "$gcc_cv_math_func_fabsf" >&6; } | |
19682 | if test $gcc_cv_math_func_fabsf = yes; then | |
f1cdfa01 | 19683 | |
f38a14ca TG |
19684 | cat >>confdefs.h <<_ACEOF |
19685 | #define HAVE_FABSF 1 | |
19686 | _ACEOF | |
db9f46a9 TG |
19687 | |
19688 | fi | |
1409cd0b | 19689 | |
1409cd0b | 19690 | |
1409cd0b | 19691 | |
db9f46a9 TG |
19692 | |
19693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5 | |
19694 | $as_echo_n "checking for fabs... " >&6; } | |
22e05272 | 19695 | if ${gcc_cv_math_func_fabs+:} false; then : |
5213506e | 19696 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19697 | else |
db9f46a9 | 19698 | if test x$gcc_no_link = xyes; then |
22e05272 | 19699 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19700 | fi |
5213506e | 19701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19702 | /* end confdefs.h. */ |
19703 | ||
db9f46a9 TG |
19704 | #ifdef HAVE_COMPLEX_H |
19705 | #include <complex.h> | |
1409cd0b | 19706 | #endif |
db9f46a9 TG |
19707 | #ifdef HAVE_MATH_H |
19708 | #include <math.h> | |
19709 | #endif | |
19710 | ||
19711 | int (*ptr)() = (int (*)())fabs; | |
19712 | ||
1409cd0b FXC |
19713 | int |
19714 | main () | |
19715 | { | |
1409cd0b FXC |
19716 | return 0; |
19717 | } | |
db9f46a9 | 19718 | |
1409cd0b | 19719 | _ACEOF |
5213506e | 19720 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19721 | gcc_cv_math_func_fabs=yes |
1409cd0b | 19722 | else |
db9f46a9 | 19723 | gcc_cv_math_func_fabs=no |
1409cd0b | 19724 | fi |
5213506e RW |
19725 | rm -f core conftest.err conftest.$ac_objext \ |
19726 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19727 | fi |
db9f46a9 TG |
19728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5 |
19729 | $as_echo "$gcc_cv_math_func_fabs" >&6; } | |
19730 | if test $gcc_cv_math_func_fabs = yes; then | |
f1cdfa01 | 19731 | |
f38a14ca TG |
19732 | cat >>confdefs.h <<_ACEOF |
19733 | #define HAVE_FABS 1 | |
19734 | _ACEOF | |
1409cd0b | 19735 | |
db9f46a9 | 19736 | fi |
1409cd0b | 19737 | |
1409cd0b | 19738 | |
db9f46a9 TG |
19739 | |
19740 | ||
19741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5 | |
19742 | $as_echo_n "checking for fabsl... " >&6; } | |
22e05272 | 19743 | if ${gcc_cv_math_func_fabsl+:} false; then : |
5213506e | 19744 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19745 | else |
db9f46a9 | 19746 | if test x$gcc_no_link = xyes; then |
22e05272 | 19747 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19748 | fi |
5213506e | 19749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19750 | /* end confdefs.h. */ |
19751 | ||
db9f46a9 TG |
19752 | #ifdef HAVE_COMPLEX_H |
19753 | #include <complex.h> | |
19754 | #endif | |
19755 | #ifdef HAVE_MATH_H | |
19756 | #include <math.h> | |
1409cd0b | 19757 | #endif |
db9f46a9 TG |
19758 | |
19759 | int (*ptr)() = (int (*)())fabsl; | |
19760 | ||
1409cd0b FXC |
19761 | int |
19762 | main () | |
19763 | { | |
1409cd0b FXC |
19764 | return 0; |
19765 | } | |
db9f46a9 | 19766 | |
1409cd0b | 19767 | _ACEOF |
5213506e | 19768 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19769 | gcc_cv_math_func_fabsl=yes |
1409cd0b | 19770 | else |
db9f46a9 | 19771 | gcc_cv_math_func_fabsl=no |
1409cd0b | 19772 | fi |
5213506e RW |
19773 | rm -f core conftest.err conftest.$ac_objext \ |
19774 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19775 | fi |
db9f46a9 TG |
19776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5 |
19777 | $as_echo "$gcc_cv_math_func_fabsl" >&6; } | |
19778 | if test $gcc_cv_math_func_fabsl = yes; then | |
f1cdfa01 | 19779 | |
f38a14ca TG |
19780 | cat >>confdefs.h <<_ACEOF |
19781 | #define HAVE_FABSL 1 | |
19782 | _ACEOF | |
db9f46a9 TG |
19783 | |
19784 | fi | |
1409cd0b | 19785 | |
1409cd0b | 19786 | |
1409cd0b | 19787 | |
db9f46a9 TG |
19788 | |
19789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5 | |
19790 | $as_echo_n "checking for cabsf... " >&6; } | |
22e05272 | 19791 | if ${gcc_cv_math_func_cabsf+:} false; then : |
5213506e | 19792 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19793 | else |
db9f46a9 | 19794 | if test x$gcc_no_link = xyes; then |
22e05272 | 19795 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19796 | fi |
5213506e | 19797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19798 | /* end confdefs.h. */ |
19799 | ||
db9f46a9 TG |
19800 | #ifdef HAVE_COMPLEX_H |
19801 | #include <complex.h> | |
1409cd0b | 19802 | #endif |
db9f46a9 TG |
19803 | #ifdef HAVE_MATH_H |
19804 | #include <math.h> | |
19805 | #endif | |
19806 | ||
19807 | int (*ptr)() = (int (*)())cabsf; | |
19808 | ||
1409cd0b FXC |
19809 | int |
19810 | main () | |
19811 | { | |
1409cd0b FXC |
19812 | return 0; |
19813 | } | |
db9f46a9 | 19814 | |
1409cd0b | 19815 | _ACEOF |
5213506e | 19816 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19817 | gcc_cv_math_func_cabsf=yes |
1409cd0b | 19818 | else |
db9f46a9 | 19819 | gcc_cv_math_func_cabsf=no |
1409cd0b | 19820 | fi |
5213506e RW |
19821 | rm -f core conftest.err conftest.$ac_objext \ |
19822 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19823 | fi |
db9f46a9 TG |
19824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5 |
19825 | $as_echo "$gcc_cv_math_func_cabsf" >&6; } | |
19826 | if test $gcc_cv_math_func_cabsf = yes; then | |
f1cdfa01 | 19827 | |
f38a14ca TG |
19828 | cat >>confdefs.h <<_ACEOF |
19829 | #define HAVE_CABSF 1 | |
19830 | _ACEOF | |
db9f46a9 TG |
19831 | |
19832 | fi | |
19833 | ||
1409cd0b | 19834 | |
1409cd0b | 19835 | |
1409cd0b | 19836 | |
db9f46a9 TG |
19837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5 |
19838 | $as_echo_n "checking for cabs... " >&6; } | |
22e05272 | 19839 | if ${gcc_cv_math_func_cabs+:} false; then : |
5213506e | 19840 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19841 | else |
db9f46a9 | 19842 | if test x$gcc_no_link = xyes; then |
22e05272 | 19843 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19844 | fi |
5213506e | 19845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19846 | /* end confdefs.h. */ |
19847 | ||
db9f46a9 TG |
19848 | #ifdef HAVE_COMPLEX_H |
19849 | #include <complex.h> | |
19850 | #endif | |
19851 | #ifdef HAVE_MATH_H | |
19852 | #include <math.h> | |
1409cd0b | 19853 | #endif |
db9f46a9 TG |
19854 | |
19855 | int (*ptr)() = (int (*)())cabs; | |
19856 | ||
1409cd0b FXC |
19857 | int |
19858 | main () | |
19859 | { | |
1409cd0b FXC |
19860 | return 0; |
19861 | } | |
db9f46a9 | 19862 | |
1409cd0b | 19863 | _ACEOF |
5213506e | 19864 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19865 | gcc_cv_math_func_cabs=yes |
1409cd0b | 19866 | else |
db9f46a9 | 19867 | gcc_cv_math_func_cabs=no |
1409cd0b | 19868 | fi |
5213506e RW |
19869 | rm -f core conftest.err conftest.$ac_objext \ |
19870 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19871 | fi |
db9f46a9 TG |
19872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5 |
19873 | $as_echo "$gcc_cv_math_func_cabs" >&6; } | |
19874 | if test $gcc_cv_math_func_cabs = yes; then | |
f1cdfa01 | 19875 | |
f38a14ca TG |
19876 | cat >>confdefs.h <<_ACEOF |
19877 | #define HAVE_CABS 1 | |
19878 | _ACEOF | |
db9f46a9 TG |
19879 | |
19880 | fi | |
1409cd0b | 19881 | |
1409cd0b | 19882 | |
1409cd0b | 19883 | |
db9f46a9 TG |
19884 | |
19885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5 | |
19886 | $as_echo_n "checking for cabsl... " >&6; } | |
22e05272 | 19887 | if ${gcc_cv_math_func_cabsl+:} false; then : |
5213506e | 19888 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19889 | else |
db9f46a9 | 19890 | if test x$gcc_no_link = xyes; then |
22e05272 | 19891 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19892 | fi |
5213506e | 19893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19894 | /* end confdefs.h. */ |
19895 | ||
db9f46a9 TG |
19896 | #ifdef HAVE_COMPLEX_H |
19897 | #include <complex.h> | |
1409cd0b | 19898 | #endif |
db9f46a9 TG |
19899 | #ifdef HAVE_MATH_H |
19900 | #include <math.h> | |
19901 | #endif | |
19902 | ||
19903 | int (*ptr)() = (int (*)())cabsl; | |
19904 | ||
1409cd0b FXC |
19905 | int |
19906 | main () | |
19907 | { | |
1409cd0b FXC |
19908 | return 0; |
19909 | } | |
db9f46a9 | 19910 | |
1409cd0b | 19911 | _ACEOF |
5213506e | 19912 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19913 | gcc_cv_math_func_cabsl=yes |
1409cd0b | 19914 | else |
db9f46a9 | 19915 | gcc_cv_math_func_cabsl=no |
1409cd0b | 19916 | fi |
5213506e RW |
19917 | rm -f core conftest.err conftest.$ac_objext \ |
19918 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19919 | fi |
db9f46a9 TG |
19920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5 |
19921 | $as_echo "$gcc_cv_math_func_cabsl" >&6; } | |
19922 | if test $gcc_cv_math_func_cabsl = yes; then | |
f1cdfa01 | 19923 | |
f38a14ca TG |
19924 | cat >>confdefs.h <<_ACEOF |
19925 | #define HAVE_CABSL 1 | |
19926 | _ACEOF | |
1409cd0b | 19927 | |
db9f46a9 | 19928 | fi |
1409cd0b | 19929 | |
1409cd0b | 19930 | |
db9f46a9 TG |
19931 | |
19932 | ||
19933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5 | |
19934 | $as_echo_n "checking for floorf... " >&6; } | |
22e05272 | 19935 | if ${gcc_cv_math_func_floorf+:} false; then : |
5213506e | 19936 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19937 | else |
db9f46a9 | 19938 | if test x$gcc_no_link = xyes; then |
22e05272 | 19939 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19940 | fi |
5213506e | 19941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19942 | /* end confdefs.h. */ |
19943 | ||
db9f46a9 TG |
19944 | #ifdef HAVE_COMPLEX_H |
19945 | #include <complex.h> | |
19946 | #endif | |
19947 | #ifdef HAVE_MATH_H | |
19948 | #include <math.h> | |
1409cd0b | 19949 | #endif |
db9f46a9 TG |
19950 | |
19951 | int (*ptr)() = (int (*)())floorf; | |
19952 | ||
1409cd0b FXC |
19953 | int |
19954 | main () | |
19955 | { | |
5213506e RW |
19956 | return 0; |
19957 | } | |
db9f46a9 | 19958 | |
5213506e RW |
19959 | _ACEOF |
19960 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 19961 | gcc_cv_math_func_floorf=yes |
1409cd0b | 19962 | else |
db9f46a9 | 19963 | gcc_cv_math_func_floorf=no |
1409cd0b | 19964 | fi |
5213506e RW |
19965 | rm -f core conftest.err conftest.$ac_objext \ |
19966 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19967 | fi |
db9f46a9 TG |
19968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5 |
19969 | $as_echo "$gcc_cv_math_func_floorf" >&6; } | |
19970 | if test $gcc_cv_math_func_floorf = yes; then | |
f1cdfa01 | 19971 | |
f38a14ca TG |
19972 | cat >>confdefs.h <<_ACEOF |
19973 | #define HAVE_FLOORF 1 | |
19974 | _ACEOF | |
db9f46a9 TG |
19975 | |
19976 | fi | |
1409cd0b | 19977 | |
1409cd0b | 19978 | |
1409cd0b | 19979 | |
db9f46a9 TG |
19980 | |
19981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5 | |
19982 | $as_echo_n "checking for floor... " >&6; } | |
22e05272 | 19983 | if ${gcc_cv_math_func_floor+:} false; then : |
5213506e | 19984 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19985 | else |
db9f46a9 | 19986 | if test x$gcc_no_link = xyes; then |
22e05272 | 19987 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19988 | fi |
5213506e | 19989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19990 | /* end confdefs.h. */ |
19991 | ||
db9f46a9 TG |
19992 | #ifdef HAVE_COMPLEX_H |
19993 | #include <complex.h> | |
1409cd0b | 19994 | #endif |
db9f46a9 TG |
19995 | #ifdef HAVE_MATH_H |
19996 | #include <math.h> | |
19997 | #endif | |
19998 | ||
19999 | int (*ptr)() = (int (*)())floor; | |
20000 | ||
1409cd0b FXC |
20001 | int |
20002 | main () | |
20003 | { | |
1409cd0b FXC |
20004 | return 0; |
20005 | } | |
db9f46a9 | 20006 | |
1409cd0b | 20007 | _ACEOF |
5213506e | 20008 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20009 | gcc_cv_math_func_floor=yes |
1409cd0b | 20010 | else |
db9f46a9 | 20011 | gcc_cv_math_func_floor=no |
1409cd0b | 20012 | fi |
5213506e RW |
20013 | rm -f core conftest.err conftest.$ac_objext \ |
20014 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20015 | fi |
db9f46a9 TG |
20016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5 |
20017 | $as_echo "$gcc_cv_math_func_floor" >&6; } | |
20018 | if test $gcc_cv_math_func_floor = yes; then | |
f1cdfa01 | 20019 | |
f38a14ca TG |
20020 | cat >>confdefs.h <<_ACEOF |
20021 | #define HAVE_FLOOR 1 | |
20022 | _ACEOF | |
db9f46a9 TG |
20023 | |
20024 | fi | |
20025 | ||
1409cd0b | 20026 | |
1409cd0b | 20027 | |
1409cd0b | 20028 | |
db9f46a9 TG |
20029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5 |
20030 | $as_echo_n "checking for floorl... " >&6; } | |
22e05272 | 20031 | if ${gcc_cv_math_func_floorl+:} false; then : |
5213506e | 20032 | $as_echo_n "(cached) " >&6 |
eb647f7d | 20033 | else |
db9f46a9 | 20034 | if test x$gcc_no_link = xyes; then |
22e05272 | 20035 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 20036 | fi |
5213506e | 20037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
20038 | /* end confdefs.h. */ |
20039 | ||
db9f46a9 TG |
20040 | #ifdef HAVE_COMPLEX_H |
20041 | #include <complex.h> | |
20042 | #endif | |
20043 | #ifdef HAVE_MATH_H | |
20044 | #include <math.h> | |
eb647f7d | 20045 | #endif |
db9f46a9 TG |
20046 | |
20047 | int (*ptr)() = (int (*)())floorl; | |
20048 | ||
eb647f7d FXC |
20049 | int |
20050 | main () | |
20051 | { | |
eb647f7d FXC |
20052 | return 0; |
20053 | } | |
db9f46a9 | 20054 | |
eb647f7d | 20055 | _ACEOF |
5213506e | 20056 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20057 | gcc_cv_math_func_floorl=yes |
eb647f7d | 20058 | else |
db9f46a9 | 20059 | gcc_cv_math_func_floorl=no |
eb647f7d | 20060 | fi |
5213506e RW |
20061 | rm -f core conftest.err conftest.$ac_objext \ |
20062 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 20063 | fi |
db9f46a9 TG |
20064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5 |
20065 | $as_echo "$gcc_cv_math_func_floorl" >&6; } | |
20066 | if test $gcc_cv_math_func_floorl = yes; then | |
f1cdfa01 | 20067 | |
f38a14ca TG |
20068 | cat >>confdefs.h <<_ACEOF |
20069 | #define HAVE_FLOORL 1 | |
20070 | _ACEOF | |
db9f46a9 TG |
20071 | |
20072 | fi | |
eb647f7d | 20073 | |
eb647f7d | 20074 | |
eb647f7d | 20075 | |
db9f46a9 | 20076 | |
1868599f JJ |
20077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5 |
20078 | $as_echo_n "checking for fmaf... " >&6; } | |
20079 | if ${gcc_cv_math_func_fmaf+:} false; then : | |
20080 | $as_echo_n "(cached) " >&6 | |
20081 | else | |
20082 | if test x$gcc_no_link = xyes; then | |
20083 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
20084 | fi | |
20085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20086 | /* end confdefs.h. */ | |
20087 | ||
20088 | #ifdef HAVE_COMPLEX_H | |
20089 | #include <complex.h> | |
20090 | #endif | |
20091 | #ifdef HAVE_MATH_H | |
20092 | #include <math.h> | |
20093 | #endif | |
20094 | ||
20095 | int (*ptr)() = (int (*)())fmaf; | |
20096 | ||
20097 | int | |
20098 | main () | |
20099 | { | |
20100 | return 0; | |
20101 | } | |
20102 | ||
20103 | _ACEOF | |
20104 | if ac_fn_c_try_link "$LINENO"; then : | |
20105 | gcc_cv_math_func_fmaf=yes | |
20106 | else | |
20107 | gcc_cv_math_func_fmaf=no | |
20108 | fi | |
20109 | rm -f core conftest.err conftest.$ac_objext \ | |
20110 | conftest$ac_exeext conftest.$ac_ext | |
20111 | fi | |
20112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5 | |
20113 | $as_echo "$gcc_cv_math_func_fmaf" >&6; } | |
20114 | if test $gcc_cv_math_func_fmaf = yes; then | |
20115 | ||
20116 | cat >>confdefs.h <<_ACEOF | |
20117 | #define HAVE_FMAF 1 | |
20118 | _ACEOF | |
20119 | ||
20120 | fi | |
20121 | ||
20122 | ||
20123 | ||
20124 | ||
20125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5 | |
20126 | $as_echo_n "checking for fma... " >&6; } | |
20127 | if ${gcc_cv_math_func_fma+:} false; then : | |
20128 | $as_echo_n "(cached) " >&6 | |
20129 | else | |
20130 | if test x$gcc_no_link = xyes; then | |
20131 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
20132 | fi | |
20133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20134 | /* end confdefs.h. */ | |
20135 | ||
20136 | #ifdef HAVE_COMPLEX_H | |
20137 | #include <complex.h> | |
20138 | #endif | |
20139 | #ifdef HAVE_MATH_H | |
20140 | #include <math.h> | |
20141 | #endif | |
20142 | ||
20143 | int (*ptr)() = (int (*)())fma; | |
20144 | ||
20145 | int | |
20146 | main () | |
20147 | { | |
20148 | return 0; | |
20149 | } | |
20150 | ||
20151 | _ACEOF | |
20152 | if ac_fn_c_try_link "$LINENO"; then : | |
20153 | gcc_cv_math_func_fma=yes | |
20154 | else | |
20155 | gcc_cv_math_func_fma=no | |
20156 | fi | |
20157 | rm -f core conftest.err conftest.$ac_objext \ | |
20158 | conftest$ac_exeext conftest.$ac_ext | |
20159 | fi | |
20160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5 | |
20161 | $as_echo "$gcc_cv_math_func_fma" >&6; } | |
20162 | if test $gcc_cv_math_func_fma = yes; then | |
20163 | ||
20164 | cat >>confdefs.h <<_ACEOF | |
20165 | #define HAVE_FMA 1 | |
20166 | _ACEOF | |
20167 | ||
20168 | fi | |
20169 | ||
20170 | ||
20171 | ||
20172 | ||
20173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5 | |
20174 | $as_echo_n "checking for fmal... " >&6; } | |
20175 | if ${gcc_cv_math_func_fmal+:} false; then : | |
20176 | $as_echo_n "(cached) " >&6 | |
20177 | else | |
20178 | if test x$gcc_no_link = xyes; then | |
20179 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
20180 | fi | |
20181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20182 | /* end confdefs.h. */ | |
20183 | ||
20184 | #ifdef HAVE_COMPLEX_H | |
20185 | #include <complex.h> | |
20186 | #endif | |
20187 | #ifdef HAVE_MATH_H | |
20188 | #include <math.h> | |
20189 | #endif | |
20190 | ||
20191 | int (*ptr)() = (int (*)())fmal; | |
20192 | ||
20193 | int | |
20194 | main () | |
20195 | { | |
20196 | return 0; | |
20197 | } | |
20198 | ||
20199 | _ACEOF | |
20200 | if ac_fn_c_try_link "$LINENO"; then : | |
20201 | gcc_cv_math_func_fmal=yes | |
20202 | else | |
20203 | gcc_cv_math_func_fmal=no | |
20204 | fi | |
20205 | rm -f core conftest.err conftest.$ac_objext \ | |
20206 | conftest$ac_exeext conftest.$ac_ext | |
20207 | fi | |
20208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5 | |
20209 | $as_echo "$gcc_cv_math_func_fmal" >&6; } | |
20210 | if test $gcc_cv_math_func_fmal = yes; then | |
20211 | ||
20212 | cat >>confdefs.h <<_ACEOF | |
20213 | #define HAVE_FMAL 1 | |
20214 | _ACEOF | |
20215 | ||
20216 | fi | |
20217 | ||
20218 | ||
20219 | ||
20220 | ||
db9f46a9 TG |
20221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5 |
20222 | $as_echo_n "checking for fmodf... " >&6; } | |
22e05272 | 20223 | if ${gcc_cv_math_func_fmodf+:} false; then : |
5213506e | 20224 | $as_echo_n "(cached) " >&6 |
eb647f7d | 20225 | else |
db9f46a9 | 20226 | if test x$gcc_no_link = xyes; then |
22e05272 | 20227 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 20228 | fi |
5213506e | 20229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
20230 | /* end confdefs.h. */ |
20231 | ||
db9f46a9 TG |
20232 | #ifdef HAVE_COMPLEX_H |
20233 | #include <complex.h> | |
eb647f7d | 20234 | #endif |
db9f46a9 TG |
20235 | #ifdef HAVE_MATH_H |
20236 | #include <math.h> | |
20237 | #endif | |
20238 | ||
20239 | int (*ptr)() = (int (*)())fmodf; | |
20240 | ||
eb647f7d FXC |
20241 | int |
20242 | main () | |
20243 | { | |
eb647f7d FXC |
20244 | return 0; |
20245 | } | |
db9f46a9 | 20246 | |
eb647f7d | 20247 | _ACEOF |
5213506e | 20248 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20249 | gcc_cv_math_func_fmodf=yes |
eb647f7d | 20250 | else |
db9f46a9 | 20251 | gcc_cv_math_func_fmodf=no |
eb647f7d | 20252 | fi |
5213506e RW |
20253 | rm -f core conftest.err conftest.$ac_objext \ |
20254 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 20255 | fi |
db9f46a9 TG |
20256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5 |
20257 | $as_echo "$gcc_cv_math_func_fmodf" >&6; } | |
20258 | if test $gcc_cv_math_func_fmodf = yes; then | |
f1cdfa01 | 20259 | |
f38a14ca TG |
20260 | cat >>confdefs.h <<_ACEOF |
20261 | #define HAVE_FMODF 1 | |
20262 | _ACEOF | |
eb647f7d | 20263 | |
db9f46a9 | 20264 | fi |
eb647f7d | 20265 | |
eb647f7d | 20266 | |
db9f46a9 TG |
20267 | |
20268 | ||
20269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5 | |
20270 | $as_echo_n "checking for fmod... " >&6; } | |
22e05272 | 20271 | if ${gcc_cv_math_func_fmod+:} false; then : |
5213506e | 20272 | $as_echo_n "(cached) " >&6 |
eb647f7d | 20273 | else |
db9f46a9 | 20274 | if test x$gcc_no_link = xyes; then |
22e05272 | 20275 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 20276 | fi |
5213506e | 20277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
20278 | /* end confdefs.h. */ |
20279 | ||
db9f46a9 TG |
20280 | #ifdef HAVE_COMPLEX_H |
20281 | #include <complex.h> | |
20282 | #endif | |
20283 | #ifdef HAVE_MATH_H | |
20284 | #include <math.h> | |
eb647f7d | 20285 | #endif |
db9f46a9 TG |
20286 | |
20287 | int (*ptr)() = (int (*)())fmod; | |
20288 | ||
eb647f7d FXC |
20289 | int |
20290 | main () | |
20291 | { | |
eb647f7d FXC |
20292 | return 0; |
20293 | } | |
db9f46a9 | 20294 | |
eb647f7d | 20295 | _ACEOF |
5213506e | 20296 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20297 | gcc_cv_math_func_fmod=yes |
eb647f7d | 20298 | else |
db9f46a9 | 20299 | gcc_cv_math_func_fmod=no |
eb647f7d | 20300 | fi |
5213506e RW |
20301 | rm -f core conftest.err conftest.$ac_objext \ |
20302 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 20303 | fi |
db9f46a9 TG |
20304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5 |
20305 | $as_echo "$gcc_cv_math_func_fmod" >&6; } | |
20306 | if test $gcc_cv_math_func_fmod = yes; then | |
f1cdfa01 | 20307 | |
f38a14ca TG |
20308 | cat >>confdefs.h <<_ACEOF |
20309 | #define HAVE_FMOD 1 | |
20310 | _ACEOF | |
db9f46a9 TG |
20311 | |
20312 | fi | |
eb647f7d | 20313 | |
eb647f7d | 20314 | |
eb647f7d | 20315 | |
db9f46a9 TG |
20316 | |
20317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5 | |
20318 | $as_echo_n "checking for fmodl... " >&6; } | |
22e05272 | 20319 | if ${gcc_cv_math_func_fmodl+:} false; then : |
5213506e | 20320 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20321 | else |
db9f46a9 | 20322 | if test x$gcc_no_link = xyes; then |
22e05272 | 20323 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20324 | fi |
5213506e | 20325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20326 | /* end confdefs.h. */ |
20327 | ||
db9f46a9 TG |
20328 | #ifdef HAVE_COMPLEX_H |
20329 | #include <complex.h> | |
1409cd0b | 20330 | #endif |
db9f46a9 TG |
20331 | #ifdef HAVE_MATH_H |
20332 | #include <math.h> | |
20333 | #endif | |
20334 | ||
20335 | int (*ptr)() = (int (*)())fmodl; | |
20336 | ||
1409cd0b FXC |
20337 | int |
20338 | main () | |
20339 | { | |
1409cd0b FXC |
20340 | return 0; |
20341 | } | |
db9f46a9 | 20342 | |
1409cd0b | 20343 | _ACEOF |
5213506e | 20344 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20345 | gcc_cv_math_func_fmodl=yes |
1409cd0b | 20346 | else |
db9f46a9 | 20347 | gcc_cv_math_func_fmodl=no |
1409cd0b | 20348 | fi |
5213506e RW |
20349 | rm -f core conftest.err conftest.$ac_objext \ |
20350 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20351 | fi |
db9f46a9 TG |
20352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5 |
20353 | $as_echo "$gcc_cv_math_func_fmodl" >&6; } | |
20354 | if test $gcc_cv_math_func_fmodl = yes; then | |
f1cdfa01 | 20355 | |
f38a14ca TG |
20356 | cat >>confdefs.h <<_ACEOF |
20357 | #define HAVE_FMODL 1 | |
20358 | _ACEOF | |
db9f46a9 TG |
20359 | |
20360 | fi | |
20361 | ||
1409cd0b | 20362 | |
1409cd0b | 20363 | |
1409cd0b | 20364 | |
db9f46a9 TG |
20365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5 |
20366 | $as_echo_n "checking for frexpf... " >&6; } | |
22e05272 | 20367 | if ${gcc_cv_math_func_frexpf+:} false; then : |
5213506e | 20368 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20369 | else |
db9f46a9 | 20370 | if test x$gcc_no_link = xyes; then |
22e05272 | 20371 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20372 | fi |
5213506e | 20373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20374 | /* end confdefs.h. */ |
20375 | ||
db9f46a9 TG |
20376 | #ifdef HAVE_COMPLEX_H |
20377 | #include <complex.h> | |
20378 | #endif | |
20379 | #ifdef HAVE_MATH_H | |
20380 | #include <math.h> | |
1409cd0b | 20381 | #endif |
db9f46a9 TG |
20382 | |
20383 | int (*ptr)() = (int (*)())frexpf; | |
20384 | ||
1409cd0b FXC |
20385 | int |
20386 | main () | |
20387 | { | |
1409cd0b FXC |
20388 | return 0; |
20389 | } | |
db9f46a9 | 20390 | |
1409cd0b | 20391 | _ACEOF |
5213506e | 20392 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20393 | gcc_cv_math_func_frexpf=yes |
1409cd0b | 20394 | else |
db9f46a9 | 20395 | gcc_cv_math_func_frexpf=no |
1409cd0b | 20396 | fi |
5213506e RW |
20397 | rm -f core conftest.err conftest.$ac_objext \ |
20398 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20399 | fi |
db9f46a9 TG |
20400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5 |
20401 | $as_echo "$gcc_cv_math_func_frexpf" >&6; } | |
20402 | if test $gcc_cv_math_func_frexpf = yes; then | |
f1cdfa01 | 20403 | |
f38a14ca TG |
20404 | cat >>confdefs.h <<_ACEOF |
20405 | #define HAVE_FREXPF 1 | |
20406 | _ACEOF | |
db9f46a9 TG |
20407 | |
20408 | fi | |
1409cd0b | 20409 | |
1409cd0b | 20410 | |
1409cd0b | 20411 | |
db9f46a9 TG |
20412 | |
20413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5 | |
20414 | $as_echo_n "checking for frexp... " >&6; } | |
22e05272 | 20415 | if ${gcc_cv_math_func_frexp+:} false; then : |
5213506e | 20416 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20417 | else |
db9f46a9 | 20418 | if test x$gcc_no_link = xyes; then |
22e05272 | 20419 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20420 | fi |
5213506e | 20421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20422 | /* end confdefs.h. */ |
20423 | ||
db9f46a9 TG |
20424 | #ifdef HAVE_COMPLEX_H |
20425 | #include <complex.h> | |
1409cd0b | 20426 | #endif |
db9f46a9 TG |
20427 | #ifdef HAVE_MATH_H |
20428 | #include <math.h> | |
20429 | #endif | |
20430 | ||
20431 | int (*ptr)() = (int (*)())frexp; | |
20432 | ||
1409cd0b FXC |
20433 | int |
20434 | main () | |
20435 | { | |
1409cd0b FXC |
20436 | return 0; |
20437 | } | |
db9f46a9 | 20438 | |
1409cd0b | 20439 | _ACEOF |
5213506e | 20440 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20441 | gcc_cv_math_func_frexp=yes |
1409cd0b | 20442 | else |
db9f46a9 | 20443 | gcc_cv_math_func_frexp=no |
1409cd0b | 20444 | fi |
5213506e RW |
20445 | rm -f core conftest.err conftest.$ac_objext \ |
20446 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20447 | fi |
db9f46a9 TG |
20448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5 |
20449 | $as_echo "$gcc_cv_math_func_frexp" >&6; } | |
20450 | if test $gcc_cv_math_func_frexp = yes; then | |
f1cdfa01 | 20451 | |
f38a14ca TG |
20452 | cat >>confdefs.h <<_ACEOF |
20453 | #define HAVE_FREXP 1 | |
20454 | _ACEOF | |
1409cd0b | 20455 | |
db9f46a9 | 20456 | fi |
1409cd0b | 20457 | |
1409cd0b | 20458 | |
db9f46a9 TG |
20459 | |
20460 | ||
20461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5 | |
20462 | $as_echo_n "checking for frexpl... " >&6; } | |
22e05272 | 20463 | if ${gcc_cv_math_func_frexpl+:} false; then : |
5213506e | 20464 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20465 | else |
db9f46a9 | 20466 | if test x$gcc_no_link = xyes; then |
22e05272 | 20467 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20468 | fi |
5213506e | 20469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20470 | /* end confdefs.h. */ |
20471 | ||
db9f46a9 TG |
20472 | #ifdef HAVE_COMPLEX_H |
20473 | #include <complex.h> | |
20474 | #endif | |
20475 | #ifdef HAVE_MATH_H | |
20476 | #include <math.h> | |
1409cd0b | 20477 | #endif |
db9f46a9 TG |
20478 | |
20479 | int (*ptr)() = (int (*)())frexpl; | |
20480 | ||
1409cd0b FXC |
20481 | int |
20482 | main () | |
20483 | { | |
1409cd0b FXC |
20484 | return 0; |
20485 | } | |
db9f46a9 | 20486 | |
1409cd0b | 20487 | _ACEOF |
5213506e | 20488 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20489 | gcc_cv_math_func_frexpl=yes |
1409cd0b | 20490 | else |
db9f46a9 | 20491 | gcc_cv_math_func_frexpl=no |
1409cd0b | 20492 | fi |
5213506e RW |
20493 | rm -f core conftest.err conftest.$ac_objext \ |
20494 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20495 | fi |
db9f46a9 TG |
20496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5 |
20497 | $as_echo "$gcc_cv_math_func_frexpl" >&6; } | |
20498 | if test $gcc_cv_math_func_frexpl = yes; then | |
f1cdfa01 | 20499 | |
f38a14ca TG |
20500 | cat >>confdefs.h <<_ACEOF |
20501 | #define HAVE_FREXPL 1 | |
20502 | _ACEOF | |
db9f46a9 TG |
20503 | |
20504 | fi | |
1409cd0b | 20505 | |
1409cd0b | 20506 | |
1409cd0b | 20507 | |
db9f46a9 TG |
20508 | |
20509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5 | |
20510 | $as_echo_n "checking for hypotf... " >&6; } | |
22e05272 | 20511 | if ${gcc_cv_math_func_hypotf+:} false; then : |
5213506e | 20512 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20513 | else |
db9f46a9 | 20514 | if test x$gcc_no_link = xyes; then |
22e05272 | 20515 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20516 | fi |
5213506e | 20517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20518 | /* end confdefs.h. */ |
20519 | ||
db9f46a9 TG |
20520 | #ifdef HAVE_COMPLEX_H |
20521 | #include <complex.h> | |
1409cd0b | 20522 | #endif |
db9f46a9 TG |
20523 | #ifdef HAVE_MATH_H |
20524 | #include <math.h> | |
20525 | #endif | |
20526 | ||
20527 | int (*ptr)() = (int (*)())hypotf; | |
20528 | ||
1409cd0b FXC |
20529 | int |
20530 | main () | |
20531 | { | |
1409cd0b FXC |
20532 | return 0; |
20533 | } | |
db9f46a9 | 20534 | |
1409cd0b | 20535 | _ACEOF |
5213506e | 20536 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20537 | gcc_cv_math_func_hypotf=yes |
1409cd0b | 20538 | else |
db9f46a9 | 20539 | gcc_cv_math_func_hypotf=no |
1409cd0b | 20540 | fi |
5213506e RW |
20541 | rm -f core conftest.err conftest.$ac_objext \ |
20542 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20543 | fi |
db9f46a9 TG |
20544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5 |
20545 | $as_echo "$gcc_cv_math_func_hypotf" >&6; } | |
20546 | if test $gcc_cv_math_func_hypotf = yes; then | |
f1cdfa01 | 20547 | |
f38a14ca TG |
20548 | cat >>confdefs.h <<_ACEOF |
20549 | #define HAVE_HYPOTF 1 | |
20550 | _ACEOF | |
db9f46a9 TG |
20551 | |
20552 | fi | |
20553 | ||
1409cd0b | 20554 | |
1409cd0b | 20555 | |
1409cd0b | 20556 | |
db9f46a9 TG |
20557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5 |
20558 | $as_echo_n "checking for hypot... " >&6; } | |
22e05272 | 20559 | if ${gcc_cv_math_func_hypot+:} false; then : |
5213506e | 20560 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20561 | else |
db9f46a9 | 20562 | if test x$gcc_no_link = xyes; then |
22e05272 | 20563 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20564 | fi |
5213506e | 20565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20566 | /* end confdefs.h. */ |
20567 | ||
db9f46a9 TG |
20568 | #ifdef HAVE_COMPLEX_H |
20569 | #include <complex.h> | |
20570 | #endif | |
20571 | #ifdef HAVE_MATH_H | |
20572 | #include <math.h> | |
1409cd0b | 20573 | #endif |
db9f46a9 TG |
20574 | |
20575 | int (*ptr)() = (int (*)())hypot; | |
20576 | ||
1409cd0b FXC |
20577 | int |
20578 | main () | |
20579 | { | |
1409cd0b FXC |
20580 | return 0; |
20581 | } | |
db9f46a9 | 20582 | |
1409cd0b | 20583 | _ACEOF |
5213506e | 20584 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20585 | gcc_cv_math_func_hypot=yes |
1409cd0b | 20586 | else |
db9f46a9 | 20587 | gcc_cv_math_func_hypot=no |
1409cd0b | 20588 | fi |
5213506e RW |
20589 | rm -f core conftest.err conftest.$ac_objext \ |
20590 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20591 | fi |
db9f46a9 TG |
20592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5 |
20593 | $as_echo "$gcc_cv_math_func_hypot" >&6; } | |
20594 | if test $gcc_cv_math_func_hypot = yes; then | |
f1cdfa01 | 20595 | |
f38a14ca TG |
20596 | cat >>confdefs.h <<_ACEOF |
20597 | #define HAVE_HYPOT 1 | |
20598 | _ACEOF | |
db9f46a9 TG |
20599 | |
20600 | fi | |
1409cd0b | 20601 | |
1409cd0b | 20602 | |
1409cd0b | 20603 | |
db9f46a9 TG |
20604 | |
20605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5 | |
20606 | $as_echo_n "checking for hypotl... " >&6; } | |
22e05272 | 20607 | if ${gcc_cv_math_func_hypotl+:} false; then : |
5213506e | 20608 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20609 | else |
db9f46a9 | 20610 | if test x$gcc_no_link = xyes; then |
22e05272 | 20611 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20612 | fi |
5213506e | 20613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20614 | /* end confdefs.h. */ |
20615 | ||
db9f46a9 TG |
20616 | #ifdef HAVE_COMPLEX_H |
20617 | #include <complex.h> | |
cc6d3bde | 20618 | #endif |
db9f46a9 TG |
20619 | #ifdef HAVE_MATH_H |
20620 | #include <math.h> | |
20621 | #endif | |
20622 | ||
20623 | int (*ptr)() = (int (*)())hypotl; | |
20624 | ||
cc6d3bde SK |
20625 | int |
20626 | main () | |
20627 | { | |
cc6d3bde SK |
20628 | return 0; |
20629 | } | |
db9f46a9 | 20630 | |
cc6d3bde | 20631 | _ACEOF |
5213506e | 20632 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20633 | gcc_cv_math_func_hypotl=yes |
cc6d3bde | 20634 | else |
db9f46a9 | 20635 | gcc_cv_math_func_hypotl=no |
cc6d3bde | 20636 | fi |
5213506e RW |
20637 | rm -f core conftest.err conftest.$ac_objext \ |
20638 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20639 | fi |
db9f46a9 TG |
20640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5 |
20641 | $as_echo "$gcc_cv_math_func_hypotl" >&6; } | |
20642 | if test $gcc_cv_math_func_hypotl = yes; then | |
f1cdfa01 | 20643 | |
f38a14ca TG |
20644 | cat >>confdefs.h <<_ACEOF |
20645 | #define HAVE_HYPOTL 1 | |
20646 | _ACEOF | |
cc6d3bde | 20647 | |
db9f46a9 | 20648 | fi |
cc6d3bde | 20649 | |
cc6d3bde | 20650 | |
db9f46a9 TG |
20651 | |
20652 | ||
20653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5 | |
20654 | $as_echo_n "checking for ldexpf... " >&6; } | |
22e05272 | 20655 | if ${gcc_cv_math_func_ldexpf+:} false; then : |
5213506e | 20656 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20657 | else |
db9f46a9 | 20658 | if test x$gcc_no_link = xyes; then |
22e05272 | 20659 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20660 | fi |
5213506e | 20661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20662 | /* end confdefs.h. */ |
20663 | ||
db9f46a9 TG |
20664 | #ifdef HAVE_COMPLEX_H |
20665 | #include <complex.h> | |
20666 | #endif | |
20667 | #ifdef HAVE_MATH_H | |
20668 | #include <math.h> | |
cc6d3bde | 20669 | #endif |
db9f46a9 TG |
20670 | |
20671 | int (*ptr)() = (int (*)())ldexpf; | |
20672 | ||
cc6d3bde SK |
20673 | int |
20674 | main () | |
20675 | { | |
cc6d3bde SK |
20676 | return 0; |
20677 | } | |
db9f46a9 | 20678 | |
cc6d3bde | 20679 | _ACEOF |
5213506e | 20680 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20681 | gcc_cv_math_func_ldexpf=yes |
cc6d3bde | 20682 | else |
db9f46a9 | 20683 | gcc_cv_math_func_ldexpf=no |
cc6d3bde | 20684 | fi |
5213506e RW |
20685 | rm -f core conftest.err conftest.$ac_objext \ |
20686 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20687 | fi |
db9f46a9 TG |
20688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5 |
20689 | $as_echo "$gcc_cv_math_func_ldexpf" >&6; } | |
20690 | if test $gcc_cv_math_func_ldexpf = yes; then | |
f1cdfa01 | 20691 | |
f38a14ca TG |
20692 | cat >>confdefs.h <<_ACEOF |
20693 | #define HAVE_LDEXPF 1 | |
20694 | _ACEOF | |
db9f46a9 TG |
20695 | |
20696 | fi | |
cc6d3bde | 20697 | |
cc6d3bde | 20698 | |
cc6d3bde | 20699 | |
db9f46a9 TG |
20700 | |
20701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5 | |
20702 | $as_echo_n "checking for ldexp... " >&6; } | |
22e05272 | 20703 | if ${gcc_cv_math_func_ldexp+:} false; then : |
5213506e | 20704 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20705 | else |
db9f46a9 | 20706 | if test x$gcc_no_link = xyes; then |
22e05272 | 20707 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20708 | fi |
5213506e | 20709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20710 | /* end confdefs.h. */ |
20711 | ||
db9f46a9 TG |
20712 | #ifdef HAVE_COMPLEX_H |
20713 | #include <complex.h> | |
cc6d3bde | 20714 | #endif |
db9f46a9 TG |
20715 | #ifdef HAVE_MATH_H |
20716 | #include <math.h> | |
20717 | #endif | |
20718 | ||
20719 | int (*ptr)() = (int (*)())ldexp; | |
20720 | ||
cc6d3bde SK |
20721 | int |
20722 | main () | |
20723 | { | |
cc6d3bde SK |
20724 | return 0; |
20725 | } | |
db9f46a9 | 20726 | |
cc6d3bde | 20727 | _ACEOF |
5213506e | 20728 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20729 | gcc_cv_math_func_ldexp=yes |
cc6d3bde | 20730 | else |
db9f46a9 | 20731 | gcc_cv_math_func_ldexp=no |
cc6d3bde | 20732 | fi |
5213506e RW |
20733 | rm -f core conftest.err conftest.$ac_objext \ |
20734 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20735 | fi |
db9f46a9 TG |
20736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5 |
20737 | $as_echo "$gcc_cv_math_func_ldexp" >&6; } | |
20738 | if test $gcc_cv_math_func_ldexp = yes; then | |
f1cdfa01 | 20739 | |
f38a14ca TG |
20740 | cat >>confdefs.h <<_ACEOF |
20741 | #define HAVE_LDEXP 1 | |
20742 | _ACEOF | |
db9f46a9 TG |
20743 | |
20744 | fi | |
20745 | ||
cc6d3bde | 20746 | |
cc6d3bde | 20747 | |
cc6d3bde | 20748 | |
db9f46a9 TG |
20749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5 |
20750 | $as_echo_n "checking for ldexpl... " >&6; } | |
22e05272 | 20751 | if ${gcc_cv_math_func_ldexpl+:} false; then : |
5213506e | 20752 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20753 | else |
db9f46a9 | 20754 | if test x$gcc_no_link = xyes; then |
22e05272 | 20755 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20756 | fi |
5213506e | 20757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20758 | /* end confdefs.h. */ |
20759 | ||
db9f46a9 TG |
20760 | #ifdef HAVE_COMPLEX_H |
20761 | #include <complex.h> | |
20762 | #endif | |
20763 | #ifdef HAVE_MATH_H | |
20764 | #include <math.h> | |
1409cd0b | 20765 | #endif |
db9f46a9 TG |
20766 | |
20767 | int (*ptr)() = (int (*)())ldexpl; | |
20768 | ||
1409cd0b FXC |
20769 | int |
20770 | main () | |
20771 | { | |
1409cd0b FXC |
20772 | return 0; |
20773 | } | |
db9f46a9 | 20774 | |
1409cd0b | 20775 | _ACEOF |
5213506e | 20776 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20777 | gcc_cv_math_func_ldexpl=yes |
1409cd0b | 20778 | else |
db9f46a9 | 20779 | gcc_cv_math_func_ldexpl=no |
1409cd0b | 20780 | fi |
5213506e RW |
20781 | rm -f core conftest.err conftest.$ac_objext \ |
20782 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20783 | fi |
db9f46a9 TG |
20784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5 |
20785 | $as_echo "$gcc_cv_math_func_ldexpl" >&6; } | |
20786 | if test $gcc_cv_math_func_ldexpl = yes; then | |
f1cdfa01 | 20787 | |
f38a14ca TG |
20788 | cat >>confdefs.h <<_ACEOF |
20789 | #define HAVE_LDEXPL 1 | |
20790 | _ACEOF | |
db9f46a9 TG |
20791 | |
20792 | fi | |
1409cd0b | 20793 | |
1409cd0b | 20794 | |
1409cd0b | 20795 | |
db9f46a9 TG |
20796 | |
20797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5 | |
20798 | $as_echo_n "checking for logf... " >&6; } | |
22e05272 | 20799 | if ${gcc_cv_math_func_logf+:} false; then : |
5213506e | 20800 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20801 | else |
db9f46a9 | 20802 | if test x$gcc_no_link = xyes; then |
22e05272 | 20803 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20804 | fi |
5213506e | 20805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20806 | /* end confdefs.h. */ |
20807 | ||
db9f46a9 TG |
20808 | #ifdef HAVE_COMPLEX_H |
20809 | #include <complex.h> | |
1409cd0b | 20810 | #endif |
db9f46a9 TG |
20811 | #ifdef HAVE_MATH_H |
20812 | #include <math.h> | |
20813 | #endif | |
20814 | ||
20815 | int (*ptr)() = (int (*)())logf; | |
20816 | ||
1409cd0b FXC |
20817 | int |
20818 | main () | |
20819 | { | |
1409cd0b FXC |
20820 | return 0; |
20821 | } | |
db9f46a9 | 20822 | |
1409cd0b | 20823 | _ACEOF |
5213506e | 20824 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20825 | gcc_cv_math_func_logf=yes |
1409cd0b | 20826 | else |
db9f46a9 | 20827 | gcc_cv_math_func_logf=no |
1409cd0b | 20828 | fi |
5213506e RW |
20829 | rm -f core conftest.err conftest.$ac_objext \ |
20830 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20831 | fi |
db9f46a9 TG |
20832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5 |
20833 | $as_echo "$gcc_cv_math_func_logf" >&6; } | |
20834 | if test $gcc_cv_math_func_logf = yes; then | |
f1cdfa01 | 20835 | |
f38a14ca TG |
20836 | cat >>confdefs.h <<_ACEOF |
20837 | #define HAVE_LOGF 1 | |
20838 | _ACEOF | |
1409cd0b | 20839 | |
db9f46a9 | 20840 | fi |
1409cd0b | 20841 | |
1409cd0b | 20842 | |
db9f46a9 TG |
20843 | |
20844 | ||
20845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5 | |
20846 | $as_echo_n "checking for log... " >&6; } | |
22e05272 | 20847 | if ${gcc_cv_math_func_log+:} false; then : |
5213506e | 20848 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20849 | else |
db9f46a9 | 20850 | if test x$gcc_no_link = xyes; then |
22e05272 | 20851 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20852 | fi |
5213506e | 20853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20854 | /* end confdefs.h. */ |
20855 | ||
db9f46a9 TG |
20856 | #ifdef HAVE_COMPLEX_H |
20857 | #include <complex.h> | |
20858 | #endif | |
20859 | #ifdef HAVE_MATH_H | |
20860 | #include <math.h> | |
1409cd0b | 20861 | #endif |
db9f46a9 TG |
20862 | |
20863 | int (*ptr)() = (int (*)())log; | |
20864 | ||
1409cd0b FXC |
20865 | int |
20866 | main () | |
20867 | { | |
1409cd0b FXC |
20868 | return 0; |
20869 | } | |
db9f46a9 | 20870 | |
1409cd0b | 20871 | _ACEOF |
5213506e | 20872 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20873 | gcc_cv_math_func_log=yes |
1409cd0b | 20874 | else |
db9f46a9 | 20875 | gcc_cv_math_func_log=no |
1409cd0b | 20876 | fi |
5213506e RW |
20877 | rm -f core conftest.err conftest.$ac_objext \ |
20878 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20879 | fi |
db9f46a9 TG |
20880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5 |
20881 | $as_echo "$gcc_cv_math_func_log" >&6; } | |
20882 | if test $gcc_cv_math_func_log = yes; then | |
f1cdfa01 | 20883 | |
f38a14ca TG |
20884 | cat >>confdefs.h <<_ACEOF |
20885 | #define HAVE_LOG 1 | |
20886 | _ACEOF | |
db9f46a9 TG |
20887 | |
20888 | fi | |
1409cd0b | 20889 | |
1409cd0b | 20890 | |
1409cd0b | 20891 | |
db9f46a9 TG |
20892 | |
20893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5 | |
20894 | $as_echo_n "checking for logl... " >&6; } | |
22e05272 | 20895 | if ${gcc_cv_math_func_logl+:} false; then : |
5213506e | 20896 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20897 | else |
db9f46a9 | 20898 | if test x$gcc_no_link = xyes; then |
22e05272 | 20899 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20900 | fi |
5213506e | 20901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20902 | /* end confdefs.h. */ |
20903 | ||
db9f46a9 TG |
20904 | #ifdef HAVE_COMPLEX_H |
20905 | #include <complex.h> | |
1409cd0b | 20906 | #endif |
db9f46a9 TG |
20907 | #ifdef HAVE_MATH_H |
20908 | #include <math.h> | |
20909 | #endif | |
20910 | ||
20911 | int (*ptr)() = (int (*)())logl; | |
20912 | ||
1409cd0b FXC |
20913 | int |
20914 | main () | |
20915 | { | |
1409cd0b FXC |
20916 | return 0; |
20917 | } | |
db9f46a9 | 20918 | |
1409cd0b | 20919 | _ACEOF |
5213506e | 20920 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20921 | gcc_cv_math_func_logl=yes |
1409cd0b | 20922 | else |
db9f46a9 | 20923 | gcc_cv_math_func_logl=no |
1409cd0b | 20924 | fi |
5213506e RW |
20925 | rm -f core conftest.err conftest.$ac_objext \ |
20926 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20927 | fi |
db9f46a9 TG |
20928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5 |
20929 | $as_echo "$gcc_cv_math_func_logl" >&6; } | |
20930 | if test $gcc_cv_math_func_logl = yes; then | |
f1cdfa01 | 20931 | |
f38a14ca TG |
20932 | cat >>confdefs.h <<_ACEOF |
20933 | #define HAVE_LOGL 1 | |
20934 | _ACEOF | |
db9f46a9 TG |
20935 | |
20936 | fi | |
20937 | ||
1409cd0b | 20938 | |
1409cd0b | 20939 | |
1409cd0b | 20940 | |
db9f46a9 TG |
20941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5 |
20942 | $as_echo_n "checking for clogf... " >&6; } | |
22e05272 | 20943 | if ${gcc_cv_math_func_clogf+:} false; then : |
5213506e | 20944 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20945 | else |
db9f46a9 | 20946 | if test x$gcc_no_link = xyes; then |
22e05272 | 20947 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20948 | fi |
5213506e | 20949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20950 | /* end confdefs.h. */ |
20951 | ||
db9f46a9 TG |
20952 | #ifdef HAVE_COMPLEX_H |
20953 | #include <complex.h> | |
20954 | #endif | |
20955 | #ifdef HAVE_MATH_H | |
20956 | #include <math.h> | |
1409cd0b | 20957 | #endif |
db9f46a9 TG |
20958 | |
20959 | int (*ptr)() = (int (*)())clogf; | |
20960 | ||
1409cd0b FXC |
20961 | int |
20962 | main () | |
20963 | { | |
1409cd0b FXC |
20964 | return 0; |
20965 | } | |
db9f46a9 | 20966 | |
1409cd0b | 20967 | _ACEOF |
5213506e | 20968 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20969 | gcc_cv_math_func_clogf=yes |
1409cd0b | 20970 | else |
db9f46a9 | 20971 | gcc_cv_math_func_clogf=no |
1409cd0b | 20972 | fi |
5213506e RW |
20973 | rm -f core conftest.err conftest.$ac_objext \ |
20974 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20975 | fi |
db9f46a9 TG |
20976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5 |
20977 | $as_echo "$gcc_cv_math_func_clogf" >&6; } | |
20978 | if test $gcc_cv_math_func_clogf = yes; then | |
f1cdfa01 | 20979 | |
f38a14ca TG |
20980 | cat >>confdefs.h <<_ACEOF |
20981 | #define HAVE_CLOGF 1 | |
20982 | _ACEOF | |
db9f46a9 TG |
20983 | |
20984 | fi | |
1409cd0b | 20985 | |
1409cd0b | 20986 | |
1409cd0b | 20987 | |
db9f46a9 TG |
20988 | |
20989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5 | |
20990 | $as_echo_n "checking for clog... " >&6; } | |
22e05272 | 20991 | if ${gcc_cv_math_func_clog+:} false; then : |
5213506e | 20992 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20993 | else |
db9f46a9 | 20994 | if test x$gcc_no_link = xyes; then |
22e05272 | 20995 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20996 | fi |
5213506e | 20997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20998 | /* end confdefs.h. */ |
20999 | ||
db9f46a9 TG |
21000 | #ifdef HAVE_COMPLEX_H |
21001 | #include <complex.h> | |
1409cd0b | 21002 | #endif |
db9f46a9 TG |
21003 | #ifdef HAVE_MATH_H |
21004 | #include <math.h> | |
21005 | #endif | |
21006 | ||
21007 | int (*ptr)() = (int (*)())clog; | |
21008 | ||
1409cd0b FXC |
21009 | int |
21010 | main () | |
21011 | { | |
1409cd0b FXC |
21012 | return 0; |
21013 | } | |
db9f46a9 | 21014 | |
1409cd0b | 21015 | _ACEOF |
5213506e | 21016 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21017 | gcc_cv_math_func_clog=yes |
1409cd0b | 21018 | else |
db9f46a9 | 21019 | gcc_cv_math_func_clog=no |
1409cd0b | 21020 | fi |
5213506e RW |
21021 | rm -f core conftest.err conftest.$ac_objext \ |
21022 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21023 | fi |
db9f46a9 TG |
21024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5 |
21025 | $as_echo "$gcc_cv_math_func_clog" >&6; } | |
21026 | if test $gcc_cv_math_func_clog = yes; then | |
f1cdfa01 | 21027 | |
f38a14ca TG |
21028 | cat >>confdefs.h <<_ACEOF |
21029 | #define HAVE_CLOG 1 | |
21030 | _ACEOF | |
1409cd0b | 21031 | |
db9f46a9 | 21032 | fi |
1409cd0b | 21033 | |
1409cd0b | 21034 | |
db9f46a9 TG |
21035 | |
21036 | ||
21037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5 | |
21038 | $as_echo_n "checking for clogl... " >&6; } | |
22e05272 | 21039 | if ${gcc_cv_math_func_clogl+:} false; then : |
5213506e | 21040 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21041 | else |
db9f46a9 | 21042 | if test x$gcc_no_link = xyes; then |
22e05272 | 21043 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21044 | fi |
5213506e | 21045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21046 | /* end confdefs.h. */ |
21047 | ||
db9f46a9 TG |
21048 | #ifdef HAVE_COMPLEX_H |
21049 | #include <complex.h> | |
21050 | #endif | |
21051 | #ifdef HAVE_MATH_H | |
21052 | #include <math.h> | |
1409cd0b | 21053 | #endif |
db9f46a9 TG |
21054 | |
21055 | int (*ptr)() = (int (*)())clogl; | |
21056 | ||
1409cd0b FXC |
21057 | int |
21058 | main () | |
21059 | { | |
1409cd0b FXC |
21060 | return 0; |
21061 | } | |
db9f46a9 | 21062 | |
1409cd0b | 21063 | _ACEOF |
5213506e | 21064 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21065 | gcc_cv_math_func_clogl=yes |
1409cd0b | 21066 | else |
db9f46a9 | 21067 | gcc_cv_math_func_clogl=no |
1409cd0b | 21068 | fi |
5213506e RW |
21069 | rm -f core conftest.err conftest.$ac_objext \ |
21070 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21071 | fi |
db9f46a9 TG |
21072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5 |
21073 | $as_echo "$gcc_cv_math_func_clogl" >&6; } | |
21074 | if test $gcc_cv_math_func_clogl = yes; then | |
f1cdfa01 | 21075 | |
f38a14ca TG |
21076 | cat >>confdefs.h <<_ACEOF |
21077 | #define HAVE_CLOGL 1 | |
21078 | _ACEOF | |
db9f46a9 TG |
21079 | |
21080 | fi | |
1409cd0b | 21081 | |
1409cd0b | 21082 | |
1409cd0b | 21083 | |
db9f46a9 TG |
21084 | |
21085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5 | |
21086 | $as_echo_n "checking for log10f... " >&6; } | |
22e05272 | 21087 | if ${gcc_cv_math_func_log10f+:} false; then : |
5213506e | 21088 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21089 | else |
db9f46a9 | 21090 | if test x$gcc_no_link = xyes; then |
22e05272 | 21091 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21092 | fi |
5213506e | 21093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21094 | /* end confdefs.h. */ |
21095 | ||
db9f46a9 TG |
21096 | #ifdef HAVE_COMPLEX_H |
21097 | #include <complex.h> | |
1409cd0b | 21098 | #endif |
db9f46a9 TG |
21099 | #ifdef HAVE_MATH_H |
21100 | #include <math.h> | |
21101 | #endif | |
21102 | ||
21103 | int (*ptr)() = (int (*)())log10f; | |
21104 | ||
1409cd0b FXC |
21105 | int |
21106 | main () | |
21107 | { | |
1409cd0b FXC |
21108 | return 0; |
21109 | } | |
db9f46a9 | 21110 | |
1409cd0b | 21111 | _ACEOF |
5213506e | 21112 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21113 | gcc_cv_math_func_log10f=yes |
1409cd0b | 21114 | else |
db9f46a9 | 21115 | gcc_cv_math_func_log10f=no |
1409cd0b | 21116 | fi |
5213506e RW |
21117 | rm -f core conftest.err conftest.$ac_objext \ |
21118 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21119 | fi |
db9f46a9 TG |
21120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5 |
21121 | $as_echo "$gcc_cv_math_func_log10f" >&6; } | |
21122 | if test $gcc_cv_math_func_log10f = yes; then | |
f1cdfa01 | 21123 | |
f38a14ca TG |
21124 | cat >>confdefs.h <<_ACEOF |
21125 | #define HAVE_LOG10F 1 | |
21126 | _ACEOF | |
db9f46a9 TG |
21127 | |
21128 | fi | |
21129 | ||
1409cd0b | 21130 | |
1409cd0b | 21131 | |
1409cd0b | 21132 | |
db9f46a9 TG |
21133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5 |
21134 | $as_echo_n "checking for log10... " >&6; } | |
22e05272 | 21135 | if ${gcc_cv_math_func_log10+:} false; then : |
5213506e | 21136 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21137 | else |
db9f46a9 | 21138 | if test x$gcc_no_link = xyes; then |
22e05272 | 21139 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21140 | fi |
5213506e | 21141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21142 | /* end confdefs.h. */ |
21143 | ||
db9f46a9 TG |
21144 | #ifdef HAVE_COMPLEX_H |
21145 | #include <complex.h> | |
21146 | #endif | |
21147 | #ifdef HAVE_MATH_H | |
21148 | #include <math.h> | |
1409cd0b | 21149 | #endif |
db9f46a9 TG |
21150 | |
21151 | int (*ptr)() = (int (*)())log10; | |
21152 | ||
1409cd0b FXC |
21153 | int |
21154 | main () | |
21155 | { | |
1409cd0b FXC |
21156 | return 0; |
21157 | } | |
db9f46a9 | 21158 | |
1409cd0b | 21159 | _ACEOF |
5213506e | 21160 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21161 | gcc_cv_math_func_log10=yes |
1409cd0b | 21162 | else |
db9f46a9 | 21163 | gcc_cv_math_func_log10=no |
1409cd0b | 21164 | fi |
5213506e RW |
21165 | rm -f core conftest.err conftest.$ac_objext \ |
21166 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21167 | fi |
db9f46a9 TG |
21168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5 |
21169 | $as_echo "$gcc_cv_math_func_log10" >&6; } | |
21170 | if test $gcc_cv_math_func_log10 = yes; then | |
f1cdfa01 | 21171 | |
f38a14ca TG |
21172 | cat >>confdefs.h <<_ACEOF |
21173 | #define HAVE_LOG10 1 | |
21174 | _ACEOF | |
db9f46a9 TG |
21175 | |
21176 | fi | |
1409cd0b | 21177 | |
1409cd0b | 21178 | |
1409cd0b | 21179 | |
db9f46a9 TG |
21180 | |
21181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5 | |
21182 | $as_echo_n "checking for log10l... " >&6; } | |
22e05272 | 21183 | if ${gcc_cv_math_func_log10l+:} false; then : |
5213506e | 21184 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21185 | else |
db9f46a9 | 21186 | if test x$gcc_no_link = xyes; then |
22e05272 | 21187 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21188 | fi |
5213506e | 21189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21190 | /* end confdefs.h. */ |
21191 | ||
db9f46a9 TG |
21192 | #ifdef HAVE_COMPLEX_H |
21193 | #include <complex.h> | |
1409cd0b | 21194 | #endif |
db9f46a9 TG |
21195 | #ifdef HAVE_MATH_H |
21196 | #include <math.h> | |
21197 | #endif | |
21198 | ||
21199 | int (*ptr)() = (int (*)())log10l; | |
21200 | ||
1409cd0b FXC |
21201 | int |
21202 | main () | |
21203 | { | |
1409cd0b FXC |
21204 | return 0; |
21205 | } | |
db9f46a9 | 21206 | |
1409cd0b | 21207 | _ACEOF |
5213506e | 21208 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21209 | gcc_cv_math_func_log10l=yes |
1409cd0b | 21210 | else |
db9f46a9 | 21211 | gcc_cv_math_func_log10l=no |
1409cd0b | 21212 | fi |
5213506e RW |
21213 | rm -f core conftest.err conftest.$ac_objext \ |
21214 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21215 | fi |
db9f46a9 TG |
21216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5 |
21217 | $as_echo "$gcc_cv_math_func_log10l" >&6; } | |
21218 | if test $gcc_cv_math_func_log10l = yes; then | |
f1cdfa01 | 21219 | |
f38a14ca TG |
21220 | cat >>confdefs.h <<_ACEOF |
21221 | #define HAVE_LOG10L 1 | |
21222 | _ACEOF | |
1409cd0b | 21223 | |
db9f46a9 | 21224 | fi |
1409cd0b | 21225 | |
1409cd0b | 21226 | |
db9f46a9 TG |
21227 | |
21228 | ||
21229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5 | |
21230 | $as_echo_n "checking for clog10f... " >&6; } | |
22e05272 | 21231 | if ${gcc_cv_math_func_clog10f+:} false; then : |
5213506e | 21232 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21233 | else |
db9f46a9 | 21234 | if test x$gcc_no_link = xyes; then |
22e05272 | 21235 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21236 | fi |
5213506e | 21237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21238 | /* end confdefs.h. */ |
21239 | ||
db9f46a9 TG |
21240 | #ifdef HAVE_COMPLEX_H |
21241 | #include <complex.h> | |
21242 | #endif | |
21243 | #ifdef HAVE_MATH_H | |
21244 | #include <math.h> | |
1409cd0b | 21245 | #endif |
db9f46a9 TG |
21246 | |
21247 | int (*ptr)() = (int (*)())clog10f; | |
21248 | ||
1409cd0b FXC |
21249 | int |
21250 | main () | |
21251 | { | |
1409cd0b FXC |
21252 | return 0; |
21253 | } | |
db9f46a9 | 21254 | |
1409cd0b | 21255 | _ACEOF |
5213506e | 21256 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21257 | gcc_cv_math_func_clog10f=yes |
1409cd0b | 21258 | else |
db9f46a9 | 21259 | gcc_cv_math_func_clog10f=no |
1409cd0b | 21260 | fi |
5213506e RW |
21261 | rm -f core conftest.err conftest.$ac_objext \ |
21262 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21263 | fi |
db9f46a9 TG |
21264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5 |
21265 | $as_echo "$gcc_cv_math_func_clog10f" >&6; } | |
21266 | if test $gcc_cv_math_func_clog10f = yes; then | |
f1cdfa01 | 21267 | |
f38a14ca TG |
21268 | cat >>confdefs.h <<_ACEOF |
21269 | #define HAVE_CLOG10F 1 | |
21270 | _ACEOF | |
db9f46a9 TG |
21271 | |
21272 | fi | |
1409cd0b | 21273 | |
1409cd0b | 21274 | |
1409cd0b | 21275 | |
db9f46a9 TG |
21276 | |
21277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5 | |
21278 | $as_echo_n "checking for clog10... " >&6; } | |
22e05272 | 21279 | if ${gcc_cv_math_func_clog10+:} false; then : |
5213506e | 21280 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21281 | else |
db9f46a9 | 21282 | if test x$gcc_no_link = xyes; then |
22e05272 | 21283 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21284 | fi |
5213506e | 21285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21286 | /* end confdefs.h. */ |
21287 | ||
db9f46a9 TG |
21288 | #ifdef HAVE_COMPLEX_H |
21289 | #include <complex.h> | |
1409cd0b | 21290 | #endif |
db9f46a9 TG |
21291 | #ifdef HAVE_MATH_H |
21292 | #include <math.h> | |
21293 | #endif | |
21294 | ||
21295 | int (*ptr)() = (int (*)())clog10; | |
21296 | ||
1409cd0b FXC |
21297 | int |
21298 | main () | |
21299 | { | |
5213506e RW |
21300 | return 0; |
21301 | } | |
db9f46a9 | 21302 | |
5213506e RW |
21303 | _ACEOF |
21304 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 21305 | gcc_cv_math_func_clog10=yes |
1409cd0b | 21306 | else |
db9f46a9 | 21307 | gcc_cv_math_func_clog10=no |
1409cd0b | 21308 | fi |
5213506e RW |
21309 | rm -f core conftest.err conftest.$ac_objext \ |
21310 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21311 | fi |
db9f46a9 TG |
21312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5 |
21313 | $as_echo "$gcc_cv_math_func_clog10" >&6; } | |
21314 | if test $gcc_cv_math_func_clog10 = yes; then | |
f1cdfa01 | 21315 | |
f38a14ca TG |
21316 | cat >>confdefs.h <<_ACEOF |
21317 | #define HAVE_CLOG10 1 | |
21318 | _ACEOF | |
db9f46a9 TG |
21319 | |
21320 | fi | |
21321 | ||
1409cd0b | 21322 | |
1409cd0b | 21323 | |
1409cd0b | 21324 | |
db9f46a9 TG |
21325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5 |
21326 | $as_echo_n "checking for clog10l... " >&6; } | |
22e05272 | 21327 | if ${gcc_cv_math_func_clog10l+:} false; then : |
5213506e | 21328 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21329 | else |
db9f46a9 | 21330 | if test x$gcc_no_link = xyes; then |
22e05272 | 21331 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21332 | fi |
5213506e | 21333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21334 | /* end confdefs.h. */ |
21335 | ||
db9f46a9 TG |
21336 | #ifdef HAVE_COMPLEX_H |
21337 | #include <complex.h> | |
21338 | #endif | |
21339 | #ifdef HAVE_MATH_H | |
21340 | #include <math.h> | |
1409cd0b | 21341 | #endif |
db9f46a9 TG |
21342 | |
21343 | int (*ptr)() = (int (*)())clog10l; | |
21344 | ||
1409cd0b FXC |
21345 | int |
21346 | main () | |
21347 | { | |
1409cd0b FXC |
21348 | return 0; |
21349 | } | |
db9f46a9 | 21350 | |
1409cd0b | 21351 | _ACEOF |
5213506e | 21352 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21353 | gcc_cv_math_func_clog10l=yes |
1409cd0b | 21354 | else |
db9f46a9 | 21355 | gcc_cv_math_func_clog10l=no |
1409cd0b | 21356 | fi |
5213506e RW |
21357 | rm -f core conftest.err conftest.$ac_objext \ |
21358 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21359 | fi |
db9f46a9 TG |
21360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5 |
21361 | $as_echo "$gcc_cv_math_func_clog10l" >&6; } | |
21362 | if test $gcc_cv_math_func_clog10l = yes; then | |
f1cdfa01 | 21363 | |
f38a14ca TG |
21364 | cat >>confdefs.h <<_ACEOF |
21365 | #define HAVE_CLOG10L 1 | |
21366 | _ACEOF | |
db9f46a9 TG |
21367 | |
21368 | fi | |
1409cd0b | 21369 | |
1409cd0b | 21370 | |
1409cd0b | 21371 | |
db9f46a9 TG |
21372 | |
21373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5 | |
21374 | $as_echo_n "checking for nextafterf... " >&6; } | |
22e05272 | 21375 | if ${gcc_cv_math_func_nextafterf+:} false; then : |
5213506e | 21376 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21377 | else |
db9f46a9 | 21378 | if test x$gcc_no_link = xyes; then |
22e05272 | 21379 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21380 | fi |
5213506e | 21381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21382 | /* end confdefs.h. */ |
21383 | ||
db9f46a9 TG |
21384 | #ifdef HAVE_COMPLEX_H |
21385 | #include <complex.h> | |
1409cd0b | 21386 | #endif |
db9f46a9 TG |
21387 | #ifdef HAVE_MATH_H |
21388 | #include <math.h> | |
21389 | #endif | |
21390 | ||
21391 | int (*ptr)() = (int (*)())nextafterf; | |
21392 | ||
1409cd0b FXC |
21393 | int |
21394 | main () | |
21395 | { | |
1409cd0b FXC |
21396 | return 0; |
21397 | } | |
db9f46a9 | 21398 | |
1409cd0b | 21399 | _ACEOF |
5213506e | 21400 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21401 | gcc_cv_math_func_nextafterf=yes |
1409cd0b | 21402 | else |
db9f46a9 | 21403 | gcc_cv_math_func_nextafterf=no |
1409cd0b | 21404 | fi |
5213506e RW |
21405 | rm -f core conftest.err conftest.$ac_objext \ |
21406 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21407 | fi |
db9f46a9 TG |
21408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5 |
21409 | $as_echo "$gcc_cv_math_func_nextafterf" >&6; } | |
21410 | if test $gcc_cv_math_func_nextafterf = yes; then | |
f1cdfa01 | 21411 | |
f38a14ca TG |
21412 | cat >>confdefs.h <<_ACEOF |
21413 | #define HAVE_NEXTAFTERF 1 | |
21414 | _ACEOF | |
1409cd0b | 21415 | |
db9f46a9 | 21416 | fi |
1409cd0b | 21417 | |
1409cd0b | 21418 | |
db9f46a9 TG |
21419 | |
21420 | ||
21421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5 | |
21422 | $as_echo_n "checking for nextafter... " >&6; } | |
22e05272 | 21423 | if ${gcc_cv_math_func_nextafter+:} false; then : |
5213506e | 21424 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21425 | else |
db9f46a9 | 21426 | if test x$gcc_no_link = xyes; then |
22e05272 | 21427 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21428 | fi |
5213506e | 21429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21430 | /* end confdefs.h. */ |
21431 | ||
db9f46a9 TG |
21432 | #ifdef HAVE_COMPLEX_H |
21433 | #include <complex.h> | |
21434 | #endif | |
21435 | #ifdef HAVE_MATH_H | |
21436 | #include <math.h> | |
1409cd0b | 21437 | #endif |
db9f46a9 TG |
21438 | |
21439 | int (*ptr)() = (int (*)())nextafter; | |
21440 | ||
1409cd0b FXC |
21441 | int |
21442 | main () | |
21443 | { | |
1409cd0b FXC |
21444 | return 0; |
21445 | } | |
db9f46a9 | 21446 | |
1409cd0b | 21447 | _ACEOF |
5213506e | 21448 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21449 | gcc_cv_math_func_nextafter=yes |
1409cd0b | 21450 | else |
db9f46a9 | 21451 | gcc_cv_math_func_nextafter=no |
1409cd0b | 21452 | fi |
5213506e RW |
21453 | rm -f core conftest.err conftest.$ac_objext \ |
21454 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21455 | fi |
db9f46a9 TG |
21456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5 |
21457 | $as_echo "$gcc_cv_math_func_nextafter" >&6; } | |
21458 | if test $gcc_cv_math_func_nextafter = yes; then | |
f1cdfa01 | 21459 | |
f38a14ca TG |
21460 | cat >>confdefs.h <<_ACEOF |
21461 | #define HAVE_NEXTAFTER 1 | |
21462 | _ACEOF | |
db9f46a9 TG |
21463 | |
21464 | fi | |
1409cd0b | 21465 | |
1409cd0b | 21466 | |
1409cd0b | 21467 | |
db9f46a9 TG |
21468 | |
21469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5 | |
21470 | $as_echo_n "checking for nextafterl... " >&6; } | |
22e05272 | 21471 | if ${gcc_cv_math_func_nextafterl+:} false; then : |
5213506e | 21472 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21473 | else |
db9f46a9 | 21474 | if test x$gcc_no_link = xyes; then |
22e05272 | 21475 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21476 | fi |
5213506e | 21477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21478 | /* end confdefs.h. */ |
21479 | ||
db9f46a9 TG |
21480 | #ifdef HAVE_COMPLEX_H |
21481 | #include <complex.h> | |
1409cd0b | 21482 | #endif |
db9f46a9 TG |
21483 | #ifdef HAVE_MATH_H |
21484 | #include <math.h> | |
21485 | #endif | |
21486 | ||
21487 | int (*ptr)() = (int (*)())nextafterl; | |
21488 | ||
1409cd0b FXC |
21489 | int |
21490 | main () | |
21491 | { | |
1409cd0b FXC |
21492 | return 0; |
21493 | } | |
db9f46a9 | 21494 | |
1409cd0b | 21495 | _ACEOF |
5213506e | 21496 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21497 | gcc_cv_math_func_nextafterl=yes |
1409cd0b | 21498 | else |
db9f46a9 | 21499 | gcc_cv_math_func_nextafterl=no |
1409cd0b | 21500 | fi |
5213506e RW |
21501 | rm -f core conftest.err conftest.$ac_objext \ |
21502 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21503 | fi |
db9f46a9 TG |
21504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5 |
21505 | $as_echo "$gcc_cv_math_func_nextafterl" >&6; } | |
21506 | if test $gcc_cv_math_func_nextafterl = yes; then | |
f1cdfa01 | 21507 | |
f38a14ca TG |
21508 | cat >>confdefs.h <<_ACEOF |
21509 | #define HAVE_NEXTAFTERL 1 | |
21510 | _ACEOF | |
db9f46a9 TG |
21511 | |
21512 | fi | |
21513 | ||
1409cd0b | 21514 | |
1409cd0b | 21515 | |
1409cd0b | 21516 | |
db9f46a9 TG |
21517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5 |
21518 | $as_echo_n "checking for powf... " >&6; } | |
22e05272 | 21519 | if ${gcc_cv_math_func_powf+:} false; then : |
5213506e | 21520 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21521 | else |
db9f46a9 | 21522 | if test x$gcc_no_link = xyes; then |
22e05272 | 21523 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21524 | fi |
5213506e | 21525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21526 | /* end confdefs.h. */ |
21527 | ||
db9f46a9 TG |
21528 | #ifdef HAVE_COMPLEX_H |
21529 | #include <complex.h> | |
21530 | #endif | |
21531 | #ifdef HAVE_MATH_H | |
21532 | #include <math.h> | |
1409cd0b | 21533 | #endif |
db9f46a9 TG |
21534 | |
21535 | int (*ptr)() = (int (*)())powf; | |
21536 | ||
1409cd0b FXC |
21537 | int |
21538 | main () | |
21539 | { | |
1409cd0b FXC |
21540 | return 0; |
21541 | } | |
db9f46a9 | 21542 | |
1409cd0b | 21543 | _ACEOF |
5213506e | 21544 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21545 | gcc_cv_math_func_powf=yes |
1409cd0b | 21546 | else |
db9f46a9 | 21547 | gcc_cv_math_func_powf=no |
1409cd0b | 21548 | fi |
5213506e RW |
21549 | rm -f core conftest.err conftest.$ac_objext \ |
21550 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21551 | fi |
db9f46a9 TG |
21552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5 |
21553 | $as_echo "$gcc_cv_math_func_powf" >&6; } | |
21554 | if test $gcc_cv_math_func_powf = yes; then | |
f1cdfa01 | 21555 | |
f38a14ca TG |
21556 | cat >>confdefs.h <<_ACEOF |
21557 | #define HAVE_POWF 1 | |
21558 | _ACEOF | |
db9f46a9 TG |
21559 | |
21560 | fi | |
1409cd0b | 21561 | |
1409cd0b | 21562 | |
1409cd0b | 21563 | |
db9f46a9 TG |
21564 | |
21565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5 | |
21566 | $as_echo_n "checking for pow... " >&6; } | |
22e05272 | 21567 | if ${gcc_cv_math_func_pow+:} false; then : |
5213506e | 21568 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21569 | else |
db9f46a9 | 21570 | if test x$gcc_no_link = xyes; then |
22e05272 | 21571 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21572 | fi |
5213506e | 21573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21574 | /* end confdefs.h. */ |
21575 | ||
db9f46a9 TG |
21576 | #ifdef HAVE_COMPLEX_H |
21577 | #include <complex.h> | |
1409cd0b | 21578 | #endif |
db9f46a9 TG |
21579 | #ifdef HAVE_MATH_H |
21580 | #include <math.h> | |
21581 | #endif | |
21582 | ||
21583 | int (*ptr)() = (int (*)())pow; | |
21584 | ||
1409cd0b FXC |
21585 | int |
21586 | main () | |
21587 | { | |
1409cd0b FXC |
21588 | return 0; |
21589 | } | |
db9f46a9 | 21590 | |
1409cd0b | 21591 | _ACEOF |
5213506e | 21592 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21593 | gcc_cv_math_func_pow=yes |
1409cd0b | 21594 | else |
db9f46a9 | 21595 | gcc_cv_math_func_pow=no |
1409cd0b | 21596 | fi |
5213506e RW |
21597 | rm -f core conftest.err conftest.$ac_objext \ |
21598 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21599 | fi |
db9f46a9 TG |
21600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5 |
21601 | $as_echo "$gcc_cv_math_func_pow" >&6; } | |
21602 | if test $gcc_cv_math_func_pow = yes; then | |
f1cdfa01 | 21603 | |
f38a14ca TG |
21604 | cat >>confdefs.h <<_ACEOF |
21605 | #define HAVE_POW 1 | |
21606 | _ACEOF | |
1409cd0b | 21607 | |
db9f46a9 | 21608 | fi |
1409cd0b | 21609 | |
1409cd0b | 21610 | |
db9f46a9 TG |
21611 | |
21612 | ||
db9f46a9 TG |
21613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5 |
21614 | $as_echo_n "checking for cpowf... " >&6; } | |
22e05272 | 21615 | if ${gcc_cv_math_func_cpowf+:} false; then : |
5213506e | 21616 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21617 | else |
db9f46a9 | 21618 | if test x$gcc_no_link = xyes; then |
22e05272 | 21619 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21620 | fi |
5213506e | 21621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21622 | /* end confdefs.h. */ |
21623 | ||
db9f46a9 TG |
21624 | #ifdef HAVE_COMPLEX_H |
21625 | #include <complex.h> | |
1409cd0b | 21626 | #endif |
db9f46a9 TG |
21627 | #ifdef HAVE_MATH_H |
21628 | #include <math.h> | |
21629 | #endif | |
21630 | ||
21631 | int (*ptr)() = (int (*)())cpowf; | |
21632 | ||
1409cd0b FXC |
21633 | int |
21634 | main () | |
21635 | { | |
1409cd0b FXC |
21636 | return 0; |
21637 | } | |
db9f46a9 | 21638 | |
1409cd0b | 21639 | _ACEOF |
5213506e | 21640 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21641 | gcc_cv_math_func_cpowf=yes |
1409cd0b | 21642 | else |
db9f46a9 | 21643 | gcc_cv_math_func_cpowf=no |
1409cd0b | 21644 | fi |
5213506e RW |
21645 | rm -f core conftest.err conftest.$ac_objext \ |
21646 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21647 | fi |
db9f46a9 TG |
21648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5 |
21649 | $as_echo "$gcc_cv_math_func_cpowf" >&6; } | |
21650 | if test $gcc_cv_math_func_cpowf = yes; then | |
f1cdfa01 | 21651 | |
f38a14ca TG |
21652 | cat >>confdefs.h <<_ACEOF |
21653 | #define HAVE_CPOWF 1 | |
21654 | _ACEOF | |
db9f46a9 TG |
21655 | |
21656 | fi | |
21657 | ||
1409cd0b | 21658 | |
1409cd0b | 21659 | |
1409cd0b | 21660 | |
db9f46a9 TG |
21661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5 |
21662 | $as_echo_n "checking for cpow... " >&6; } | |
22e05272 | 21663 | if ${gcc_cv_math_func_cpow+:} false; then : |
5213506e | 21664 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21665 | else |
db9f46a9 | 21666 | if test x$gcc_no_link = xyes; then |
22e05272 | 21667 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21668 | fi |
5213506e | 21669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21670 | /* end confdefs.h. */ |
21671 | ||
db9f46a9 TG |
21672 | #ifdef HAVE_COMPLEX_H |
21673 | #include <complex.h> | |
21674 | #endif | |
21675 | #ifdef HAVE_MATH_H | |
21676 | #include <math.h> | |
1409cd0b | 21677 | #endif |
db9f46a9 TG |
21678 | |
21679 | int (*ptr)() = (int (*)())cpow; | |
21680 | ||
1409cd0b FXC |
21681 | int |
21682 | main () | |
21683 | { | |
1409cd0b FXC |
21684 | return 0; |
21685 | } | |
db9f46a9 | 21686 | |
1409cd0b | 21687 | _ACEOF |
5213506e | 21688 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21689 | gcc_cv_math_func_cpow=yes |
1409cd0b | 21690 | else |
db9f46a9 | 21691 | gcc_cv_math_func_cpow=no |
1409cd0b | 21692 | fi |
5213506e RW |
21693 | rm -f core conftest.err conftest.$ac_objext \ |
21694 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21695 | fi |
db9f46a9 TG |
21696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5 |
21697 | $as_echo "$gcc_cv_math_func_cpow" >&6; } | |
21698 | if test $gcc_cv_math_func_cpow = yes; then | |
f1cdfa01 | 21699 | |
f38a14ca TG |
21700 | cat >>confdefs.h <<_ACEOF |
21701 | #define HAVE_CPOW 1 | |
21702 | _ACEOF | |
db9f46a9 TG |
21703 | |
21704 | fi | |
1409cd0b | 21705 | |
1409cd0b | 21706 | |
1409cd0b | 21707 | |
db9f46a9 TG |
21708 | |
21709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5 | |
21710 | $as_echo_n "checking for cpowl... " >&6; } | |
22e05272 | 21711 | if ${gcc_cv_math_func_cpowl+:} false; then : |
5213506e | 21712 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21713 | else |
db9f46a9 | 21714 | if test x$gcc_no_link = xyes; then |
22e05272 | 21715 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21716 | fi |
5213506e | 21717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21718 | /* end confdefs.h. */ |
21719 | ||
db9f46a9 TG |
21720 | #ifdef HAVE_COMPLEX_H |
21721 | #include <complex.h> | |
1409cd0b | 21722 | #endif |
db9f46a9 TG |
21723 | #ifdef HAVE_MATH_H |
21724 | #include <math.h> | |
21725 | #endif | |
21726 | ||
21727 | int (*ptr)() = (int (*)())cpowl; | |
21728 | ||
1409cd0b FXC |
21729 | int |
21730 | main () | |
21731 | { | |
1409cd0b FXC |
21732 | return 0; |
21733 | } | |
db9f46a9 | 21734 | |
1409cd0b | 21735 | _ACEOF |
5213506e | 21736 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21737 | gcc_cv_math_func_cpowl=yes |
1409cd0b | 21738 | else |
db9f46a9 | 21739 | gcc_cv_math_func_cpowl=no |
1409cd0b | 21740 | fi |
5213506e RW |
21741 | rm -f core conftest.err conftest.$ac_objext \ |
21742 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21743 | fi |
db9f46a9 TG |
21744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5 |
21745 | $as_echo "$gcc_cv_math_func_cpowl" >&6; } | |
21746 | if test $gcc_cv_math_func_cpowl = yes; then | |
f1cdfa01 | 21747 | |
f38a14ca TG |
21748 | cat >>confdefs.h <<_ACEOF |
21749 | #define HAVE_CPOWL 1 | |
21750 | _ACEOF | |
1409cd0b | 21751 | |
db9f46a9 | 21752 | fi |
1409cd0b | 21753 | |
1409cd0b | 21754 | |
db9f46a9 TG |
21755 | |
21756 | ||
21757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5 | |
21758 | $as_echo_n "checking for roundf... " >&6; } | |
22e05272 | 21759 | if ${gcc_cv_math_func_roundf+:} false; then : |
5213506e | 21760 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21761 | else |
db9f46a9 | 21762 | if test x$gcc_no_link = xyes; then |
22e05272 | 21763 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21764 | fi |
5213506e | 21765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21766 | /* end confdefs.h. */ |
21767 | ||
db9f46a9 TG |
21768 | #ifdef HAVE_COMPLEX_H |
21769 | #include <complex.h> | |
21770 | #endif | |
21771 | #ifdef HAVE_MATH_H | |
21772 | #include <math.h> | |
1409cd0b | 21773 | #endif |
db9f46a9 TG |
21774 | |
21775 | int (*ptr)() = (int (*)())roundf; | |
21776 | ||
1409cd0b FXC |
21777 | int |
21778 | main () | |
21779 | { | |
1409cd0b FXC |
21780 | return 0; |
21781 | } | |
db9f46a9 | 21782 | |
1409cd0b | 21783 | _ACEOF |
5213506e | 21784 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21785 | gcc_cv_math_func_roundf=yes |
1409cd0b | 21786 | else |
db9f46a9 | 21787 | gcc_cv_math_func_roundf=no |
1409cd0b | 21788 | fi |
5213506e RW |
21789 | rm -f core conftest.err conftest.$ac_objext \ |
21790 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21791 | fi |
db9f46a9 TG |
21792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5 |
21793 | $as_echo "$gcc_cv_math_func_roundf" >&6; } | |
21794 | if test $gcc_cv_math_func_roundf = yes; then | |
f1cdfa01 | 21795 | |
f38a14ca TG |
21796 | cat >>confdefs.h <<_ACEOF |
21797 | #define HAVE_ROUNDF 1 | |
21798 | _ACEOF | |
db9f46a9 TG |
21799 | |
21800 | fi | |
1409cd0b | 21801 | |
1409cd0b | 21802 | |
1409cd0b | 21803 | |
db9f46a9 TG |
21804 | |
21805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5 | |
21806 | $as_echo_n "checking for round... " >&6; } | |
22e05272 | 21807 | if ${gcc_cv_math_func_round+:} false; then : |
5213506e | 21808 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21809 | else |
db9f46a9 | 21810 | if test x$gcc_no_link = xyes; then |
22e05272 | 21811 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21812 | fi |
5213506e | 21813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21814 | /* end confdefs.h. */ |
21815 | ||
db9f46a9 TG |
21816 | #ifdef HAVE_COMPLEX_H |
21817 | #include <complex.h> | |
1409cd0b | 21818 | #endif |
db9f46a9 TG |
21819 | #ifdef HAVE_MATH_H |
21820 | #include <math.h> | |
21821 | #endif | |
21822 | ||
21823 | int (*ptr)() = (int (*)())round; | |
21824 | ||
1409cd0b FXC |
21825 | int |
21826 | main () | |
21827 | { | |
1409cd0b FXC |
21828 | return 0; |
21829 | } | |
db9f46a9 | 21830 | |
1409cd0b | 21831 | _ACEOF |
5213506e | 21832 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21833 | gcc_cv_math_func_round=yes |
1409cd0b | 21834 | else |
db9f46a9 | 21835 | gcc_cv_math_func_round=no |
1409cd0b | 21836 | fi |
5213506e RW |
21837 | rm -f core conftest.err conftest.$ac_objext \ |
21838 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21839 | fi |
db9f46a9 TG |
21840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5 |
21841 | $as_echo "$gcc_cv_math_func_round" >&6; } | |
21842 | if test $gcc_cv_math_func_round = yes; then | |
f1cdfa01 | 21843 | |
f38a14ca TG |
21844 | cat >>confdefs.h <<_ACEOF |
21845 | #define HAVE_ROUND 1 | |
21846 | _ACEOF | |
db9f46a9 TG |
21847 | |
21848 | fi | |
21849 | ||
1409cd0b | 21850 | |
1409cd0b | 21851 | |
1409cd0b | 21852 | |
db9f46a9 TG |
21853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5 |
21854 | $as_echo_n "checking for roundl... " >&6; } | |
22e05272 | 21855 | if ${gcc_cv_math_func_roundl+:} false; then : |
5213506e | 21856 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21857 | else |
db9f46a9 | 21858 | if test x$gcc_no_link = xyes; then |
22e05272 | 21859 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21860 | fi |
5213506e | 21861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21862 | /* end confdefs.h. */ |
21863 | ||
db9f46a9 TG |
21864 | #ifdef HAVE_COMPLEX_H |
21865 | #include <complex.h> | |
21866 | #endif | |
21867 | #ifdef HAVE_MATH_H | |
21868 | #include <math.h> | |
94f548c2 | 21869 | #endif |
db9f46a9 TG |
21870 | |
21871 | int (*ptr)() = (int (*)())roundl; | |
21872 | ||
94f548c2 FXC |
21873 | int |
21874 | main () | |
21875 | { | |
94f548c2 FXC |
21876 | return 0; |
21877 | } | |
db9f46a9 | 21878 | |
94f548c2 | 21879 | _ACEOF |
5213506e | 21880 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21881 | gcc_cv_math_func_roundl=yes |
94f548c2 | 21882 | else |
db9f46a9 | 21883 | gcc_cv_math_func_roundl=no |
94f548c2 | 21884 | fi |
5213506e RW |
21885 | rm -f core conftest.err conftest.$ac_objext \ |
21886 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21887 | fi |
db9f46a9 TG |
21888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5 |
21889 | $as_echo "$gcc_cv_math_func_roundl" >&6; } | |
21890 | if test $gcc_cv_math_func_roundl = yes; then | |
f1cdfa01 | 21891 | |
f38a14ca TG |
21892 | cat >>confdefs.h <<_ACEOF |
21893 | #define HAVE_ROUNDL 1 | |
21894 | _ACEOF | |
db9f46a9 TG |
21895 | |
21896 | fi | |
94f548c2 | 21897 | |
94f548c2 | 21898 | |
94f548c2 | 21899 | |
db9f46a9 TG |
21900 | |
21901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5 | |
21902 | $as_echo_n "checking for lroundf... " >&6; } | |
22e05272 | 21903 | if ${gcc_cv_math_func_lroundf+:} false; then : |
5213506e | 21904 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21905 | else |
db9f46a9 | 21906 | if test x$gcc_no_link = xyes; then |
22e05272 | 21907 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21908 | fi |
5213506e | 21909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21910 | /* end confdefs.h. */ |
21911 | ||
db9f46a9 TG |
21912 | #ifdef HAVE_COMPLEX_H |
21913 | #include <complex.h> | |
94f548c2 | 21914 | #endif |
db9f46a9 TG |
21915 | #ifdef HAVE_MATH_H |
21916 | #include <math.h> | |
21917 | #endif | |
21918 | ||
21919 | int (*ptr)() = (int (*)())lroundf; | |
21920 | ||
94f548c2 FXC |
21921 | int |
21922 | main () | |
21923 | { | |
94f548c2 FXC |
21924 | return 0; |
21925 | } | |
db9f46a9 | 21926 | |
94f548c2 | 21927 | _ACEOF |
5213506e | 21928 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21929 | gcc_cv_math_func_lroundf=yes |
94f548c2 | 21930 | else |
db9f46a9 | 21931 | gcc_cv_math_func_lroundf=no |
94f548c2 | 21932 | fi |
5213506e RW |
21933 | rm -f core conftest.err conftest.$ac_objext \ |
21934 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21935 | fi |
db9f46a9 TG |
21936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5 |
21937 | $as_echo "$gcc_cv_math_func_lroundf" >&6; } | |
21938 | if test $gcc_cv_math_func_lroundf = yes; then | |
f1cdfa01 | 21939 | |
f38a14ca TG |
21940 | cat >>confdefs.h <<_ACEOF |
21941 | #define HAVE_LROUNDF 1 | |
21942 | _ACEOF | |
94f548c2 | 21943 | |
db9f46a9 | 21944 | fi |
94f548c2 | 21945 | |
94f548c2 | 21946 | |
db9f46a9 TG |
21947 | |
21948 | ||
21949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5 | |
21950 | $as_echo_n "checking for lround... " >&6; } | |
22e05272 | 21951 | if ${gcc_cv_math_func_lround+:} false; then : |
5213506e | 21952 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21953 | else |
db9f46a9 | 21954 | if test x$gcc_no_link = xyes; then |
22e05272 | 21955 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21956 | fi |
5213506e | 21957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21958 | /* end confdefs.h. */ |
21959 | ||
db9f46a9 TG |
21960 | #ifdef HAVE_COMPLEX_H |
21961 | #include <complex.h> | |
21962 | #endif | |
21963 | #ifdef HAVE_MATH_H | |
21964 | #include <math.h> | |
94f548c2 | 21965 | #endif |
db9f46a9 TG |
21966 | |
21967 | int (*ptr)() = (int (*)())lround; | |
21968 | ||
94f548c2 FXC |
21969 | int |
21970 | main () | |
21971 | { | |
94f548c2 FXC |
21972 | return 0; |
21973 | } | |
db9f46a9 | 21974 | |
94f548c2 | 21975 | _ACEOF |
5213506e | 21976 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21977 | gcc_cv_math_func_lround=yes |
94f548c2 | 21978 | else |
db9f46a9 | 21979 | gcc_cv_math_func_lround=no |
94f548c2 | 21980 | fi |
5213506e RW |
21981 | rm -f core conftest.err conftest.$ac_objext \ |
21982 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21983 | fi |
db9f46a9 TG |
21984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5 |
21985 | $as_echo "$gcc_cv_math_func_lround" >&6; } | |
21986 | if test $gcc_cv_math_func_lround = yes; then | |
f1cdfa01 | 21987 | |
f38a14ca TG |
21988 | cat >>confdefs.h <<_ACEOF |
21989 | #define HAVE_LROUND 1 | |
21990 | _ACEOF | |
db9f46a9 TG |
21991 | |
21992 | fi | |
21993 | ||
94f548c2 | 21994 | |
94f548c2 | 21995 | |
94f548c2 | 21996 | |
db9f46a9 TG |
21997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5 |
21998 | $as_echo_n "checking for lroundl... " >&6; } | |
22e05272 | 21999 | if ${gcc_cv_math_func_lroundl+:} false; then : |
5213506e | 22000 | $as_echo_n "(cached) " >&6 |
94f548c2 | 22001 | else |
db9f46a9 | 22002 | if test x$gcc_no_link = xyes; then |
22e05272 | 22003 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 22004 | fi |
5213506e | 22005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
22006 | /* end confdefs.h. */ |
22007 | ||
db9f46a9 TG |
22008 | #ifdef HAVE_COMPLEX_H |
22009 | #include <complex.h> | |
22010 | #endif | |
22011 | #ifdef HAVE_MATH_H | |
22012 | #include <math.h> | |
94f548c2 | 22013 | #endif |
db9f46a9 TG |
22014 | |
22015 | int (*ptr)() = (int (*)())lroundl; | |
22016 | ||
94f548c2 FXC |
22017 | int |
22018 | main () | |
22019 | { | |
94f548c2 FXC |
22020 | return 0; |
22021 | } | |
db9f46a9 | 22022 | |
94f548c2 | 22023 | _ACEOF |
5213506e | 22024 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22025 | gcc_cv_math_func_lroundl=yes |
94f548c2 | 22026 | else |
db9f46a9 | 22027 | gcc_cv_math_func_lroundl=no |
94f548c2 | 22028 | fi |
5213506e RW |
22029 | rm -f core conftest.err conftest.$ac_objext \ |
22030 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 22031 | fi |
db9f46a9 TG |
22032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5 |
22033 | $as_echo "$gcc_cv_math_func_lroundl" >&6; } | |
22034 | if test $gcc_cv_math_func_lroundl = yes; then | |
f1cdfa01 | 22035 | |
f38a14ca TG |
22036 | cat >>confdefs.h <<_ACEOF |
22037 | #define HAVE_LROUNDL 1 | |
22038 | _ACEOF | |
94f548c2 | 22039 | |
db9f46a9 | 22040 | fi |
94f548c2 | 22041 | |
94f548c2 | 22042 | |
db9f46a9 TG |
22043 | |
22044 | ||
22045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5 | |
22046 | $as_echo_n "checking for llroundf... " >&6; } | |
22e05272 | 22047 | if ${gcc_cv_math_func_llroundf+:} false; then : |
5213506e | 22048 | $as_echo_n "(cached) " >&6 |
94f548c2 | 22049 | else |
db9f46a9 | 22050 | if test x$gcc_no_link = xyes; then |
22e05272 | 22051 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 22052 | fi |
5213506e | 22053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
22054 | /* end confdefs.h. */ |
22055 | ||
db9f46a9 TG |
22056 | #ifdef HAVE_COMPLEX_H |
22057 | #include <complex.h> | |
94f548c2 | 22058 | #endif |
db9f46a9 TG |
22059 | #ifdef HAVE_MATH_H |
22060 | #include <math.h> | |
22061 | #endif | |
22062 | ||
22063 | int (*ptr)() = (int (*)())llroundf; | |
22064 | ||
94f548c2 FXC |
22065 | int |
22066 | main () | |
22067 | { | |
94f548c2 FXC |
22068 | return 0; |
22069 | } | |
db9f46a9 | 22070 | |
94f548c2 | 22071 | _ACEOF |
5213506e | 22072 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22073 | gcc_cv_math_func_llroundf=yes |
94f548c2 | 22074 | else |
db9f46a9 | 22075 | gcc_cv_math_func_llroundf=no |
94f548c2 | 22076 | fi |
5213506e RW |
22077 | rm -f core conftest.err conftest.$ac_objext \ |
22078 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 22079 | fi |
db9f46a9 TG |
22080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5 |
22081 | $as_echo "$gcc_cv_math_func_llroundf" >&6; } | |
22082 | if test $gcc_cv_math_func_llroundf = yes; then | |
f1cdfa01 | 22083 | |
f38a14ca TG |
22084 | cat >>confdefs.h <<_ACEOF |
22085 | #define HAVE_LLROUNDF 1 | |
22086 | _ACEOF | |
94f548c2 | 22087 | |
db9f46a9 | 22088 | fi |
94f548c2 | 22089 | |
94f548c2 | 22090 | |
db9f46a9 TG |
22091 | |
22092 | ||
22093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5 | |
22094 | $as_echo_n "checking for llround... " >&6; } | |
22e05272 | 22095 | if ${gcc_cv_math_func_llround+:} false; then : |
5213506e | 22096 | $as_echo_n "(cached) " >&6 |
94f548c2 | 22097 | else |
db9f46a9 | 22098 | if test x$gcc_no_link = xyes; then |
22e05272 | 22099 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 22100 | fi |
5213506e | 22101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
22102 | /* end confdefs.h. */ |
22103 | ||
db9f46a9 TG |
22104 | #ifdef HAVE_COMPLEX_H |
22105 | #include <complex.h> | |
22106 | #endif | |
22107 | #ifdef HAVE_MATH_H | |
22108 | #include <math.h> | |
94f548c2 | 22109 | #endif |
db9f46a9 TG |
22110 | |
22111 | int (*ptr)() = (int (*)())llround; | |
22112 | ||
94f548c2 FXC |
22113 | int |
22114 | main () | |
22115 | { | |
94f548c2 FXC |
22116 | return 0; |
22117 | } | |
db9f46a9 | 22118 | |
94f548c2 | 22119 | _ACEOF |
5213506e | 22120 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22121 | gcc_cv_math_func_llround=yes |
94f548c2 | 22122 | else |
db9f46a9 | 22123 | gcc_cv_math_func_llround=no |
94f548c2 | 22124 | fi |
5213506e RW |
22125 | rm -f core conftest.err conftest.$ac_objext \ |
22126 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 22127 | fi |
db9f46a9 TG |
22128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5 |
22129 | $as_echo "$gcc_cv_math_func_llround" >&6; } | |
22130 | if test $gcc_cv_math_func_llround = yes; then | |
f1cdfa01 | 22131 | |
f38a14ca TG |
22132 | cat >>confdefs.h <<_ACEOF |
22133 | #define HAVE_LLROUND 1 | |
22134 | _ACEOF | |
db9f46a9 TG |
22135 | |
22136 | fi | |
22137 | ||
94f548c2 | 22138 | |
94f548c2 | 22139 | |
94f548c2 | 22140 | |
db9f46a9 TG |
22141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5 |
22142 | $as_echo_n "checking for llroundl... " >&6; } | |
22e05272 | 22143 | if ${gcc_cv_math_func_llroundl+:} false; then : |
5213506e | 22144 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22145 | else |
db9f46a9 | 22146 | if test x$gcc_no_link = xyes; then |
22e05272 | 22147 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22148 | fi |
5213506e | 22149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22150 | /* end confdefs.h. */ |
22151 | ||
db9f46a9 TG |
22152 | #ifdef HAVE_COMPLEX_H |
22153 | #include <complex.h> | |
22154 | #endif | |
22155 | #ifdef HAVE_MATH_H | |
22156 | #include <math.h> | |
1409cd0b | 22157 | #endif |
db9f46a9 TG |
22158 | |
22159 | int (*ptr)() = (int (*)())llroundl; | |
22160 | ||
1409cd0b FXC |
22161 | int |
22162 | main () | |
22163 | { | |
1409cd0b FXC |
22164 | return 0; |
22165 | } | |
db9f46a9 | 22166 | |
1409cd0b | 22167 | _ACEOF |
5213506e | 22168 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22169 | gcc_cv_math_func_llroundl=yes |
1409cd0b | 22170 | else |
db9f46a9 | 22171 | gcc_cv_math_func_llroundl=no |
1409cd0b | 22172 | fi |
5213506e RW |
22173 | rm -f core conftest.err conftest.$ac_objext \ |
22174 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22175 | fi |
db9f46a9 TG |
22176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5 |
22177 | $as_echo "$gcc_cv_math_func_llroundl" >&6; } | |
22178 | if test $gcc_cv_math_func_llroundl = yes; then | |
f1cdfa01 | 22179 | |
f38a14ca TG |
22180 | cat >>confdefs.h <<_ACEOF |
22181 | #define HAVE_LLROUNDL 1 | |
22182 | _ACEOF | |
1409cd0b | 22183 | |
db9f46a9 | 22184 | fi |
1409cd0b | 22185 | |
1409cd0b | 22186 | |
db9f46a9 TG |
22187 | |
22188 | ||
22189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5 | |
22190 | $as_echo_n "checking for scalbnf... " >&6; } | |
22e05272 | 22191 | if ${gcc_cv_math_func_scalbnf+:} false; then : |
5213506e | 22192 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22193 | else |
db9f46a9 | 22194 | if test x$gcc_no_link = xyes; then |
22e05272 | 22195 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22196 | fi |
5213506e | 22197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22198 | /* end confdefs.h. */ |
22199 | ||
db9f46a9 TG |
22200 | #ifdef HAVE_COMPLEX_H |
22201 | #include <complex.h> | |
1409cd0b | 22202 | #endif |
db9f46a9 TG |
22203 | #ifdef HAVE_MATH_H |
22204 | #include <math.h> | |
22205 | #endif | |
22206 | ||
22207 | int (*ptr)() = (int (*)())scalbnf; | |
22208 | ||
1409cd0b FXC |
22209 | int |
22210 | main () | |
22211 | { | |
1409cd0b FXC |
22212 | return 0; |
22213 | } | |
db9f46a9 | 22214 | |
1409cd0b | 22215 | _ACEOF |
5213506e | 22216 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22217 | gcc_cv_math_func_scalbnf=yes |
1409cd0b | 22218 | else |
db9f46a9 | 22219 | gcc_cv_math_func_scalbnf=no |
1409cd0b | 22220 | fi |
5213506e RW |
22221 | rm -f core conftest.err conftest.$ac_objext \ |
22222 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22223 | fi |
db9f46a9 TG |
22224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5 |
22225 | $as_echo "$gcc_cv_math_func_scalbnf" >&6; } | |
22226 | if test $gcc_cv_math_func_scalbnf = yes; then | |
f1cdfa01 | 22227 | |
f38a14ca TG |
22228 | cat >>confdefs.h <<_ACEOF |
22229 | #define HAVE_SCALBNF 1 | |
22230 | _ACEOF | |
1409cd0b | 22231 | |
db9f46a9 | 22232 | fi |
1409cd0b | 22233 | |
1409cd0b | 22234 | |
db9f46a9 TG |
22235 | |
22236 | ||
22237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5 | |
22238 | $as_echo_n "checking for scalbn... " >&6; } | |
22e05272 | 22239 | if ${gcc_cv_math_func_scalbn+:} false; then : |
5213506e | 22240 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22241 | else |
db9f46a9 | 22242 | if test x$gcc_no_link = xyes; then |
22e05272 | 22243 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22244 | fi |
5213506e | 22245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22246 | /* end confdefs.h. */ |
22247 | ||
db9f46a9 TG |
22248 | #ifdef HAVE_COMPLEX_H |
22249 | #include <complex.h> | |
22250 | #endif | |
22251 | #ifdef HAVE_MATH_H | |
22252 | #include <math.h> | |
1409cd0b | 22253 | #endif |
db9f46a9 TG |
22254 | |
22255 | int (*ptr)() = (int (*)())scalbn; | |
22256 | ||
1409cd0b FXC |
22257 | int |
22258 | main () | |
22259 | { | |
1409cd0b FXC |
22260 | return 0; |
22261 | } | |
db9f46a9 | 22262 | |
1409cd0b | 22263 | _ACEOF |
5213506e | 22264 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22265 | gcc_cv_math_func_scalbn=yes |
1409cd0b | 22266 | else |
db9f46a9 | 22267 | gcc_cv_math_func_scalbn=no |
1409cd0b | 22268 | fi |
5213506e RW |
22269 | rm -f core conftest.err conftest.$ac_objext \ |
22270 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22271 | fi |
db9f46a9 TG |
22272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5 |
22273 | $as_echo "$gcc_cv_math_func_scalbn" >&6; } | |
22274 | if test $gcc_cv_math_func_scalbn = yes; then | |
f1cdfa01 | 22275 | |
f38a14ca TG |
22276 | cat >>confdefs.h <<_ACEOF |
22277 | #define HAVE_SCALBN 1 | |
22278 | _ACEOF | |
db9f46a9 TG |
22279 | |
22280 | fi | |
22281 | ||
1409cd0b | 22282 | |
1409cd0b | 22283 | |
1409cd0b | 22284 | |
db9f46a9 TG |
22285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5 |
22286 | $as_echo_n "checking for scalbnl... " >&6; } | |
22e05272 | 22287 | if ${gcc_cv_math_func_scalbnl+:} false; then : |
5213506e | 22288 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22289 | else |
db9f46a9 | 22290 | if test x$gcc_no_link = xyes; then |
22e05272 | 22291 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22292 | fi |
5213506e | 22293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22294 | /* end confdefs.h. */ |
22295 | ||
db9f46a9 TG |
22296 | #ifdef HAVE_COMPLEX_H |
22297 | #include <complex.h> | |
22298 | #endif | |
22299 | #ifdef HAVE_MATH_H | |
22300 | #include <math.h> | |
1409cd0b | 22301 | #endif |
db9f46a9 TG |
22302 | |
22303 | int (*ptr)() = (int (*)())scalbnl; | |
22304 | ||
1409cd0b FXC |
22305 | int |
22306 | main () | |
22307 | { | |
1409cd0b FXC |
22308 | return 0; |
22309 | } | |
db9f46a9 | 22310 | |
1409cd0b | 22311 | _ACEOF |
5213506e | 22312 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22313 | gcc_cv_math_func_scalbnl=yes |
1409cd0b | 22314 | else |
db9f46a9 | 22315 | gcc_cv_math_func_scalbnl=no |
1409cd0b | 22316 | fi |
5213506e RW |
22317 | rm -f core conftest.err conftest.$ac_objext \ |
22318 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22319 | fi |
db9f46a9 TG |
22320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5 |
22321 | $as_echo "$gcc_cv_math_func_scalbnl" >&6; } | |
22322 | if test $gcc_cv_math_func_scalbnl = yes; then | |
f1cdfa01 | 22323 | |
f38a14ca TG |
22324 | cat >>confdefs.h <<_ACEOF |
22325 | #define HAVE_SCALBNL 1 | |
22326 | _ACEOF | |
1409cd0b | 22327 | |
db9f46a9 | 22328 | fi |
1409cd0b | 22329 | |
1409cd0b | 22330 | |
db9f46a9 TG |
22331 | |
22332 | ||
22333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5 | |
22334 | $as_echo_n "checking for sinf... " >&6; } | |
22e05272 | 22335 | if ${gcc_cv_math_func_sinf+:} false; then : |
5213506e | 22336 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22337 | else |
db9f46a9 | 22338 | if test x$gcc_no_link = xyes; then |
22e05272 | 22339 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22340 | fi |
5213506e | 22341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22342 | /* end confdefs.h. */ |
22343 | ||
db9f46a9 TG |
22344 | #ifdef HAVE_COMPLEX_H |
22345 | #include <complex.h> | |
1409cd0b | 22346 | #endif |
db9f46a9 TG |
22347 | #ifdef HAVE_MATH_H |
22348 | #include <math.h> | |
22349 | #endif | |
22350 | ||
22351 | int (*ptr)() = (int (*)())sinf; | |
22352 | ||
1409cd0b FXC |
22353 | int |
22354 | main () | |
22355 | { | |
1409cd0b FXC |
22356 | return 0; |
22357 | } | |
db9f46a9 | 22358 | |
1409cd0b | 22359 | _ACEOF |
5213506e | 22360 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22361 | gcc_cv_math_func_sinf=yes |
1409cd0b | 22362 | else |
db9f46a9 | 22363 | gcc_cv_math_func_sinf=no |
1409cd0b | 22364 | fi |
5213506e RW |
22365 | rm -f core conftest.err conftest.$ac_objext \ |
22366 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22367 | fi |
db9f46a9 TG |
22368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5 |
22369 | $as_echo "$gcc_cv_math_func_sinf" >&6; } | |
22370 | if test $gcc_cv_math_func_sinf = yes; then | |
f1cdfa01 | 22371 | |
f38a14ca TG |
22372 | cat >>confdefs.h <<_ACEOF |
22373 | #define HAVE_SINF 1 | |
22374 | _ACEOF | |
1409cd0b | 22375 | |
db9f46a9 | 22376 | fi |
1409cd0b | 22377 | |
1409cd0b | 22378 | |
db9f46a9 TG |
22379 | |
22380 | ||
22381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5 | |
22382 | $as_echo_n "checking for sin... " >&6; } | |
22e05272 | 22383 | if ${gcc_cv_math_func_sin+:} false; then : |
5213506e | 22384 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22385 | else |
db9f46a9 | 22386 | if test x$gcc_no_link = xyes; then |
22e05272 | 22387 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22388 | fi |
5213506e | 22389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22390 | /* end confdefs.h. */ |
22391 | ||
db9f46a9 TG |
22392 | #ifdef HAVE_COMPLEX_H |
22393 | #include <complex.h> | |
1409cd0b | 22394 | #endif |
db9f46a9 TG |
22395 | #ifdef HAVE_MATH_H |
22396 | #include <math.h> | |
22397 | #endif | |
22398 | ||
22399 | int (*ptr)() = (int (*)())sin; | |
22400 | ||
1409cd0b FXC |
22401 | int |
22402 | main () | |
22403 | { | |
1409cd0b FXC |
22404 | return 0; |
22405 | } | |
db9f46a9 | 22406 | |
1409cd0b | 22407 | _ACEOF |
5213506e | 22408 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22409 | gcc_cv_math_func_sin=yes |
1409cd0b | 22410 | else |
db9f46a9 | 22411 | gcc_cv_math_func_sin=no |
1409cd0b | 22412 | fi |
5213506e RW |
22413 | rm -f core conftest.err conftest.$ac_objext \ |
22414 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22415 | fi |
db9f46a9 TG |
22416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5 |
22417 | $as_echo "$gcc_cv_math_func_sin" >&6; } | |
22418 | if test $gcc_cv_math_func_sin = yes; then | |
f1cdfa01 | 22419 | |
f38a14ca TG |
22420 | cat >>confdefs.h <<_ACEOF |
22421 | #define HAVE_SIN 1 | |
22422 | _ACEOF | |
db9f46a9 TG |
22423 | |
22424 | fi | |
22425 | ||
1409cd0b | 22426 | |
1409cd0b | 22427 | |
1409cd0b | 22428 | |
db9f46a9 TG |
22429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5 |
22430 | $as_echo_n "checking for sinl... " >&6; } | |
22e05272 | 22431 | if ${gcc_cv_math_func_sinl+:} false; then : |
5213506e | 22432 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22433 | else |
db9f46a9 | 22434 | if test x$gcc_no_link = xyes; then |
22e05272 | 22435 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22436 | fi |
5213506e | 22437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22438 | /* end confdefs.h. */ |
22439 | ||
db9f46a9 TG |
22440 | #ifdef HAVE_COMPLEX_H |
22441 | #include <complex.h> | |
1409cd0b | 22442 | #endif |
db9f46a9 TG |
22443 | #ifdef HAVE_MATH_H |
22444 | #include <math.h> | |
22445 | #endif | |
22446 | ||
22447 | int (*ptr)() = (int (*)())sinl; | |
22448 | ||
1409cd0b FXC |
22449 | int |
22450 | main () | |
22451 | { | |
5213506e RW |
22452 | return 0; |
22453 | } | |
db9f46a9 | 22454 | |
5213506e RW |
22455 | _ACEOF |
22456 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 22457 | gcc_cv_math_func_sinl=yes |
1409cd0b | 22458 | else |
db9f46a9 | 22459 | gcc_cv_math_func_sinl=no |
1409cd0b | 22460 | fi |
5213506e RW |
22461 | rm -f core conftest.err conftest.$ac_objext \ |
22462 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22463 | fi |
db9f46a9 TG |
22464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5 |
22465 | $as_echo "$gcc_cv_math_func_sinl" >&6; } | |
22466 | if test $gcc_cv_math_func_sinl = yes; then | |
f1cdfa01 | 22467 | |
f38a14ca TG |
22468 | cat >>confdefs.h <<_ACEOF |
22469 | #define HAVE_SINL 1 | |
22470 | _ACEOF | |
db9f46a9 TG |
22471 | |
22472 | fi | |
1409cd0b | 22473 | |
1409cd0b | 22474 | |
1409cd0b | 22475 | |
db9f46a9 TG |
22476 | |
22477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5 | |
22478 | $as_echo_n "checking for csinf... " >&6; } | |
22e05272 | 22479 | if ${gcc_cv_math_func_csinf+:} false; then : |
5213506e | 22480 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22481 | else |
db9f46a9 | 22482 | if test x$gcc_no_link = xyes; then |
22e05272 | 22483 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22484 | fi |
5213506e | 22485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22486 | /* end confdefs.h. */ |
22487 | ||
db9f46a9 TG |
22488 | #ifdef HAVE_COMPLEX_H |
22489 | #include <complex.h> | |
22490 | #endif | |
22491 | #ifdef HAVE_MATH_H | |
22492 | #include <math.h> | |
1409cd0b | 22493 | #endif |
db9f46a9 TG |
22494 | |
22495 | int (*ptr)() = (int (*)())csinf; | |
22496 | ||
1409cd0b FXC |
22497 | int |
22498 | main () | |
22499 | { | |
1409cd0b FXC |
22500 | return 0; |
22501 | } | |
db9f46a9 | 22502 | |
1409cd0b | 22503 | _ACEOF |
5213506e | 22504 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22505 | gcc_cv_math_func_csinf=yes |
1409cd0b | 22506 | else |
db9f46a9 | 22507 | gcc_cv_math_func_csinf=no |
1409cd0b | 22508 | fi |
5213506e RW |
22509 | rm -f core conftest.err conftest.$ac_objext \ |
22510 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22511 | fi |
db9f46a9 TG |
22512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5 |
22513 | $as_echo "$gcc_cv_math_func_csinf" >&6; } | |
22514 | if test $gcc_cv_math_func_csinf = yes; then | |
f1cdfa01 | 22515 | |
f38a14ca TG |
22516 | cat >>confdefs.h <<_ACEOF |
22517 | #define HAVE_CSINF 1 | |
22518 | _ACEOF | |
1409cd0b | 22519 | |
db9f46a9 | 22520 | fi |
1409cd0b | 22521 | |
1409cd0b | 22522 | |
db9f46a9 TG |
22523 | |
22524 | ||
22525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5 | |
22526 | $as_echo_n "checking for csin... " >&6; } | |
22e05272 | 22527 | if ${gcc_cv_math_func_csin+:} false; then : |
5213506e | 22528 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22529 | else |
db9f46a9 | 22530 | if test x$gcc_no_link = xyes; then |
22e05272 | 22531 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22532 | fi |
5213506e | 22533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22534 | /* end confdefs.h. */ |
22535 | ||
db9f46a9 TG |
22536 | #ifdef HAVE_COMPLEX_H |
22537 | #include <complex.h> | |
1409cd0b | 22538 | #endif |
db9f46a9 TG |
22539 | #ifdef HAVE_MATH_H |
22540 | #include <math.h> | |
22541 | #endif | |
22542 | ||
22543 | int (*ptr)() = (int (*)())csin; | |
22544 | ||
1409cd0b FXC |
22545 | int |
22546 | main () | |
22547 | { | |
1409cd0b FXC |
22548 | return 0; |
22549 | } | |
db9f46a9 | 22550 | |
1409cd0b | 22551 | _ACEOF |
5213506e | 22552 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22553 | gcc_cv_math_func_csin=yes |
1409cd0b | 22554 | else |
db9f46a9 | 22555 | gcc_cv_math_func_csin=no |
1409cd0b | 22556 | fi |
5213506e RW |
22557 | rm -f core conftest.err conftest.$ac_objext \ |
22558 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22559 | fi |
db9f46a9 TG |
22560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5 |
22561 | $as_echo "$gcc_cv_math_func_csin" >&6; } | |
22562 | if test $gcc_cv_math_func_csin = yes; then | |
f1cdfa01 | 22563 | |
f38a14ca TG |
22564 | cat >>confdefs.h <<_ACEOF |
22565 | #define HAVE_CSIN 1 | |
22566 | _ACEOF | |
db9f46a9 TG |
22567 | |
22568 | fi | |
22569 | ||
1409cd0b | 22570 | |
1409cd0b | 22571 | |
1409cd0b | 22572 | |
db9f46a9 TG |
22573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5 |
22574 | $as_echo_n "checking for csinl... " >&6; } | |
22e05272 | 22575 | if ${gcc_cv_math_func_csinl+:} false; then : |
5213506e | 22576 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22577 | else |
db9f46a9 | 22578 | if test x$gcc_no_link = xyes; then |
22e05272 | 22579 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22580 | fi |
5213506e | 22581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22582 | /* end confdefs.h. */ |
22583 | ||
db9f46a9 TG |
22584 | #ifdef HAVE_COMPLEX_H |
22585 | #include <complex.h> | |
1409cd0b | 22586 | #endif |
db9f46a9 TG |
22587 | #ifdef HAVE_MATH_H |
22588 | #include <math.h> | |
22589 | #endif | |
22590 | ||
22591 | int (*ptr)() = (int (*)())csinl; | |
22592 | ||
1409cd0b FXC |
22593 | int |
22594 | main () | |
22595 | { | |
1409cd0b FXC |
22596 | return 0; |
22597 | } | |
db9f46a9 | 22598 | |
1409cd0b | 22599 | _ACEOF |
5213506e | 22600 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22601 | gcc_cv_math_func_csinl=yes |
1409cd0b | 22602 | else |
db9f46a9 | 22603 | gcc_cv_math_func_csinl=no |
1409cd0b | 22604 | fi |
5213506e RW |
22605 | rm -f core conftest.err conftest.$ac_objext \ |
22606 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22607 | fi |
db9f46a9 TG |
22608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5 |
22609 | $as_echo "$gcc_cv_math_func_csinl" >&6; } | |
22610 | if test $gcc_cv_math_func_csinl = yes; then | |
f1cdfa01 | 22611 | |
f38a14ca TG |
22612 | cat >>confdefs.h <<_ACEOF |
22613 | #define HAVE_CSINL 1 | |
22614 | _ACEOF | |
db9f46a9 TG |
22615 | |
22616 | fi | |
1409cd0b | 22617 | |
1409cd0b | 22618 | |
1409cd0b | 22619 | |
db9f46a9 TG |
22620 | |
22621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5 | |
22622 | $as_echo_n "checking for sinhf... " >&6; } | |
22e05272 | 22623 | if ${gcc_cv_math_func_sinhf+:} false; then : |
5213506e | 22624 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22625 | else |
db9f46a9 | 22626 | if test x$gcc_no_link = xyes; then |
22e05272 | 22627 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22628 | fi |
5213506e | 22629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22630 | /* end confdefs.h. */ |
22631 | ||
db9f46a9 TG |
22632 | #ifdef HAVE_COMPLEX_H |
22633 | #include <complex.h> | |
22634 | #endif | |
22635 | #ifdef HAVE_MATH_H | |
22636 | #include <math.h> | |
1409cd0b | 22637 | #endif |
db9f46a9 TG |
22638 | |
22639 | int (*ptr)() = (int (*)())sinhf; | |
22640 | ||
1409cd0b FXC |
22641 | int |
22642 | main () | |
22643 | { | |
1409cd0b FXC |
22644 | return 0; |
22645 | } | |
db9f46a9 | 22646 | |
1409cd0b | 22647 | _ACEOF |
5213506e | 22648 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22649 | gcc_cv_math_func_sinhf=yes |
1409cd0b | 22650 | else |
db9f46a9 | 22651 | gcc_cv_math_func_sinhf=no |
1409cd0b | 22652 | fi |
5213506e RW |
22653 | rm -f core conftest.err conftest.$ac_objext \ |
22654 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22655 | fi |
db9f46a9 TG |
22656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5 |
22657 | $as_echo "$gcc_cv_math_func_sinhf" >&6; } | |
22658 | if test $gcc_cv_math_func_sinhf = yes; then | |
f1cdfa01 | 22659 | |
f38a14ca TG |
22660 | cat >>confdefs.h <<_ACEOF |
22661 | #define HAVE_SINHF 1 | |
22662 | _ACEOF | |
1409cd0b | 22663 | |
db9f46a9 | 22664 | fi |
1409cd0b | 22665 | |
1409cd0b | 22666 | |
db9f46a9 TG |
22667 | |
22668 | ||
22669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5 | |
22670 | $as_echo_n "checking for sinh... " >&6; } | |
22e05272 | 22671 | if ${gcc_cv_math_func_sinh+:} false; then : |
5213506e | 22672 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22673 | else |
db9f46a9 | 22674 | if test x$gcc_no_link = xyes; then |
22e05272 | 22675 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22676 | fi |
5213506e | 22677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22678 | /* end confdefs.h. */ |
22679 | ||
db9f46a9 TG |
22680 | #ifdef HAVE_COMPLEX_H |
22681 | #include <complex.h> | |
1409cd0b | 22682 | #endif |
db9f46a9 TG |
22683 | #ifdef HAVE_MATH_H |
22684 | #include <math.h> | |
22685 | #endif | |
22686 | ||
22687 | int (*ptr)() = (int (*)())sinh; | |
22688 | ||
1409cd0b FXC |
22689 | int |
22690 | main () | |
22691 | { | |
1409cd0b FXC |
22692 | return 0; |
22693 | } | |
db9f46a9 | 22694 | |
1409cd0b | 22695 | _ACEOF |
5213506e | 22696 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22697 | gcc_cv_math_func_sinh=yes |
1409cd0b | 22698 | else |
db9f46a9 | 22699 | gcc_cv_math_func_sinh=no |
1409cd0b | 22700 | fi |
5213506e RW |
22701 | rm -f core conftest.err conftest.$ac_objext \ |
22702 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22703 | fi |
db9f46a9 TG |
22704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5 |
22705 | $as_echo "$gcc_cv_math_func_sinh" >&6; } | |
22706 | if test $gcc_cv_math_func_sinh = yes; then | |
f1cdfa01 | 22707 | |
f38a14ca TG |
22708 | cat >>confdefs.h <<_ACEOF |
22709 | #define HAVE_SINH 1 | |
22710 | _ACEOF | |
db9f46a9 TG |
22711 | |
22712 | fi | |
22713 | ||
1409cd0b | 22714 | |
1409cd0b | 22715 | |
1409cd0b | 22716 | |
db9f46a9 TG |
22717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5 |
22718 | $as_echo_n "checking for sinhl... " >&6; } | |
22e05272 | 22719 | if ${gcc_cv_math_func_sinhl+:} false; then : |
5213506e | 22720 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22721 | else |
db9f46a9 | 22722 | if test x$gcc_no_link = xyes; then |
22e05272 | 22723 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22724 | fi |
5213506e | 22725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22726 | /* end confdefs.h. */ |
22727 | ||
db9f46a9 TG |
22728 | #ifdef HAVE_COMPLEX_H |
22729 | #include <complex.h> | |
1409cd0b | 22730 | #endif |
db9f46a9 TG |
22731 | #ifdef HAVE_MATH_H |
22732 | #include <math.h> | |
22733 | #endif | |
22734 | ||
22735 | int (*ptr)() = (int (*)())sinhl; | |
22736 | ||
1409cd0b FXC |
22737 | int |
22738 | main () | |
22739 | { | |
1409cd0b FXC |
22740 | return 0; |
22741 | } | |
db9f46a9 | 22742 | |
1409cd0b | 22743 | _ACEOF |
5213506e | 22744 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22745 | gcc_cv_math_func_sinhl=yes |
1409cd0b | 22746 | else |
db9f46a9 | 22747 | gcc_cv_math_func_sinhl=no |
1409cd0b | 22748 | fi |
5213506e RW |
22749 | rm -f core conftest.err conftest.$ac_objext \ |
22750 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22751 | fi |
db9f46a9 TG |
22752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5 |
22753 | $as_echo "$gcc_cv_math_func_sinhl" >&6; } | |
22754 | if test $gcc_cv_math_func_sinhl = yes; then | |
f1cdfa01 | 22755 | |
f38a14ca TG |
22756 | cat >>confdefs.h <<_ACEOF |
22757 | #define HAVE_SINHL 1 | |
22758 | _ACEOF | |
db9f46a9 TG |
22759 | |
22760 | fi | |
1409cd0b | 22761 | |
1409cd0b | 22762 | |
1409cd0b | 22763 | |
db9f46a9 TG |
22764 | |
22765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5 | |
22766 | $as_echo_n "checking for csinhf... " >&6; } | |
22e05272 | 22767 | if ${gcc_cv_math_func_csinhf+:} false; then : |
5213506e | 22768 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22769 | else |
db9f46a9 | 22770 | if test x$gcc_no_link = xyes; then |
22e05272 | 22771 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22772 | fi |
5213506e | 22773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22774 | /* end confdefs.h. */ |
22775 | ||
db9f46a9 TG |
22776 | #ifdef HAVE_COMPLEX_H |
22777 | #include <complex.h> | |
22778 | #endif | |
22779 | #ifdef HAVE_MATH_H | |
22780 | #include <math.h> | |
1409cd0b | 22781 | #endif |
db9f46a9 TG |
22782 | |
22783 | int (*ptr)() = (int (*)())csinhf; | |
22784 | ||
1409cd0b FXC |
22785 | int |
22786 | main () | |
22787 | { | |
1409cd0b FXC |
22788 | return 0; |
22789 | } | |
db9f46a9 | 22790 | |
1409cd0b | 22791 | _ACEOF |
5213506e | 22792 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22793 | gcc_cv_math_func_csinhf=yes |
1409cd0b | 22794 | else |
db9f46a9 | 22795 | gcc_cv_math_func_csinhf=no |
1409cd0b | 22796 | fi |
5213506e RW |
22797 | rm -f core conftest.err conftest.$ac_objext \ |
22798 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22799 | fi |
db9f46a9 TG |
22800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5 |
22801 | $as_echo "$gcc_cv_math_func_csinhf" >&6; } | |
22802 | if test $gcc_cv_math_func_csinhf = yes; then | |
f1cdfa01 | 22803 | |
f38a14ca TG |
22804 | cat >>confdefs.h <<_ACEOF |
22805 | #define HAVE_CSINHF 1 | |
22806 | _ACEOF | |
1409cd0b | 22807 | |
db9f46a9 | 22808 | fi |
1409cd0b | 22809 | |
1409cd0b | 22810 | |
db9f46a9 TG |
22811 | |
22812 | ||
22813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5 | |
22814 | $as_echo_n "checking for csinh... " >&6; } | |
22e05272 | 22815 | if ${gcc_cv_math_func_csinh+:} false; then : |
5213506e | 22816 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22817 | else |
db9f46a9 | 22818 | if test x$gcc_no_link = xyes; then |
22e05272 | 22819 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22820 | fi |
5213506e | 22821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22822 | /* end confdefs.h. */ |
22823 | ||
db9f46a9 TG |
22824 | #ifdef HAVE_COMPLEX_H |
22825 | #include <complex.h> | |
1409cd0b | 22826 | #endif |
db9f46a9 TG |
22827 | #ifdef HAVE_MATH_H |
22828 | #include <math.h> | |
22829 | #endif | |
22830 | ||
22831 | int (*ptr)() = (int (*)())csinh; | |
22832 | ||
1409cd0b FXC |
22833 | int |
22834 | main () | |
22835 | { | |
1409cd0b FXC |
22836 | return 0; |
22837 | } | |
db9f46a9 | 22838 | |
1409cd0b | 22839 | _ACEOF |
5213506e | 22840 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22841 | gcc_cv_math_func_csinh=yes |
1409cd0b | 22842 | else |
db9f46a9 | 22843 | gcc_cv_math_func_csinh=no |
1409cd0b | 22844 | fi |
5213506e RW |
22845 | rm -f core conftest.err conftest.$ac_objext \ |
22846 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22847 | fi |
db9f46a9 TG |
22848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5 |
22849 | $as_echo "$gcc_cv_math_func_csinh" >&6; } | |
22850 | if test $gcc_cv_math_func_csinh = yes; then | |
f1cdfa01 | 22851 | |
f38a14ca TG |
22852 | cat >>confdefs.h <<_ACEOF |
22853 | #define HAVE_CSINH 1 | |
22854 | _ACEOF | |
db9f46a9 TG |
22855 | |
22856 | fi | |
22857 | ||
1409cd0b | 22858 | |
1409cd0b | 22859 | |
1409cd0b | 22860 | |
db9f46a9 TG |
22861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5 |
22862 | $as_echo_n "checking for csinhl... " >&6; } | |
22e05272 | 22863 | if ${gcc_cv_math_func_csinhl+:} false; then : |
5213506e | 22864 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22865 | else |
db9f46a9 | 22866 | if test x$gcc_no_link = xyes; then |
22e05272 | 22867 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22868 | fi |
5213506e | 22869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22870 | /* end confdefs.h. */ |
22871 | ||
db9f46a9 TG |
22872 | #ifdef HAVE_COMPLEX_H |
22873 | #include <complex.h> | |
1409cd0b | 22874 | #endif |
db9f46a9 TG |
22875 | #ifdef HAVE_MATH_H |
22876 | #include <math.h> | |
22877 | #endif | |
22878 | ||
22879 | int (*ptr)() = (int (*)())csinhl; | |
22880 | ||
1409cd0b FXC |
22881 | int |
22882 | main () | |
22883 | { | |
1409cd0b FXC |
22884 | return 0; |
22885 | } | |
db9f46a9 | 22886 | |
1409cd0b | 22887 | _ACEOF |
5213506e | 22888 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22889 | gcc_cv_math_func_csinhl=yes |
1409cd0b | 22890 | else |
db9f46a9 | 22891 | gcc_cv_math_func_csinhl=no |
1409cd0b | 22892 | fi |
5213506e RW |
22893 | rm -f core conftest.err conftest.$ac_objext \ |
22894 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22895 | fi |
db9f46a9 TG |
22896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5 |
22897 | $as_echo "$gcc_cv_math_func_csinhl" >&6; } | |
22898 | if test $gcc_cv_math_func_csinhl = yes; then | |
f1cdfa01 | 22899 | |
f38a14ca TG |
22900 | cat >>confdefs.h <<_ACEOF |
22901 | #define HAVE_CSINHL 1 | |
22902 | _ACEOF | |
db9f46a9 TG |
22903 | |
22904 | fi | |
1409cd0b | 22905 | |
1409cd0b | 22906 | |
1409cd0b | 22907 | |
db9f46a9 TG |
22908 | |
22909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5 | |
22910 | $as_echo_n "checking for sqrtf... " >&6; } | |
22e05272 | 22911 | if ${gcc_cv_math_func_sqrtf+:} false; then : |
5213506e | 22912 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22913 | else |
db9f46a9 | 22914 | if test x$gcc_no_link = xyes; then |
22e05272 | 22915 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22916 | fi |
5213506e | 22917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22918 | /* end confdefs.h. */ |
22919 | ||
db9f46a9 TG |
22920 | #ifdef HAVE_COMPLEX_H |
22921 | #include <complex.h> | |
22922 | #endif | |
22923 | #ifdef HAVE_MATH_H | |
22924 | #include <math.h> | |
1409cd0b | 22925 | #endif |
db9f46a9 TG |
22926 | |
22927 | int (*ptr)() = (int (*)())sqrtf; | |
22928 | ||
1409cd0b FXC |
22929 | int |
22930 | main () | |
22931 | { | |
1409cd0b FXC |
22932 | return 0; |
22933 | } | |
db9f46a9 | 22934 | |
1409cd0b | 22935 | _ACEOF |
5213506e | 22936 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22937 | gcc_cv_math_func_sqrtf=yes |
1409cd0b | 22938 | else |
db9f46a9 | 22939 | gcc_cv_math_func_sqrtf=no |
1409cd0b | 22940 | fi |
5213506e RW |
22941 | rm -f core conftest.err conftest.$ac_objext \ |
22942 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22943 | fi |
db9f46a9 TG |
22944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5 |
22945 | $as_echo "$gcc_cv_math_func_sqrtf" >&6; } | |
22946 | if test $gcc_cv_math_func_sqrtf = yes; then | |
f1cdfa01 | 22947 | |
f38a14ca TG |
22948 | cat >>confdefs.h <<_ACEOF |
22949 | #define HAVE_SQRTF 1 | |
22950 | _ACEOF | |
db9f46a9 TG |
22951 | |
22952 | fi | |
1409cd0b | 22953 | |
1409cd0b | 22954 | |
db9f46a9 TG |
22955 | |
22956 | ||
22957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5 | |
22958 | $as_echo_n "checking for sqrt... " >&6; } | |
22e05272 | 22959 | if ${gcc_cv_math_func_sqrt+:} false; then : |
db9f46a9 TG |
22960 | $as_echo_n "(cached) " >&6 |
22961 | else | |
22962 | if test x$gcc_no_link = xyes; then | |
22e05272 | 22963 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22964 | fi |
db9f46a9 TG |
22965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22966 | /* end confdefs.h. */ | |
22967 | ||
22968 | #ifdef HAVE_COMPLEX_H | |
22969 | #include <complex.h> | |
22970 | #endif | |
22971 | #ifdef HAVE_MATH_H | |
22972 | #include <math.h> | |
22973 | #endif | |
22974 | ||
22975 | int (*ptr)() = (int (*)())sqrt; | |
22976 | ||
22977 | int | |
22978 | main () | |
22979 | { | |
22980 | return 0; | |
22981 | } | |
22982 | ||
22983 | _ACEOF | |
22984 | if ac_fn_c_try_link "$LINENO"; then : | |
22985 | gcc_cv_math_func_sqrt=yes | |
22986 | else | |
22987 | gcc_cv_math_func_sqrt=no | |
22988 | fi | |
22989 | rm -f core conftest.err conftest.$ac_objext \ | |
22990 | conftest$ac_exeext conftest.$ac_ext | |
22991 | fi | |
22992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5 | |
22993 | $as_echo "$gcc_cv_math_func_sqrt" >&6; } | |
22994 | if test $gcc_cv_math_func_sqrt = yes; then | |
f1cdfa01 | 22995 | |
f38a14ca TG |
22996 | cat >>confdefs.h <<_ACEOF |
22997 | #define HAVE_SQRT 1 | |
22998 | _ACEOF | |
db9f46a9 TG |
22999 | |
23000 | fi | |
1409cd0b | 23001 | |
db9f46a9 TG |
23002 | |
23003 | ||
23004 | ||
23005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5 | |
23006 | $as_echo_n "checking for sqrtl... " >&6; } | |
22e05272 | 23007 | if ${gcc_cv_math_func_sqrtl+:} false; then : |
5213506e | 23008 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23009 | else |
db9f46a9 | 23010 | if test x$gcc_no_link = xyes; then |
22e05272 | 23011 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23012 | fi |
5213506e | 23013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23014 | /* end confdefs.h. */ |
23015 | ||
db9f46a9 TG |
23016 | #ifdef HAVE_COMPLEX_H |
23017 | #include <complex.h> | |
23018 | #endif | |
23019 | #ifdef HAVE_MATH_H | |
23020 | #include <math.h> | |
1409cd0b | 23021 | #endif |
db9f46a9 TG |
23022 | |
23023 | int (*ptr)() = (int (*)())sqrtl; | |
23024 | ||
1409cd0b FXC |
23025 | int |
23026 | main () | |
23027 | { | |
1409cd0b FXC |
23028 | return 0; |
23029 | } | |
db9f46a9 | 23030 | |
1409cd0b | 23031 | _ACEOF |
5213506e | 23032 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23033 | gcc_cv_math_func_sqrtl=yes |
1409cd0b | 23034 | else |
db9f46a9 | 23035 | gcc_cv_math_func_sqrtl=no |
1409cd0b | 23036 | fi |
5213506e RW |
23037 | rm -f core conftest.err conftest.$ac_objext \ |
23038 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23039 | fi |
db9f46a9 TG |
23040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5 |
23041 | $as_echo "$gcc_cv_math_func_sqrtl" >&6; } | |
23042 | if test $gcc_cv_math_func_sqrtl = yes; then | |
f1cdfa01 | 23043 | |
f38a14ca TG |
23044 | cat >>confdefs.h <<_ACEOF |
23045 | #define HAVE_SQRTL 1 | |
23046 | _ACEOF | |
db9f46a9 TG |
23047 | |
23048 | fi | |
1409cd0b | 23049 | |
1409cd0b | 23050 | |
1409cd0b | 23051 | |
db9f46a9 TG |
23052 | |
23053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5 | |
23054 | $as_echo_n "checking for csqrtf... " >&6; } | |
22e05272 | 23055 | if ${gcc_cv_math_func_csqrtf+:} false; then : |
5213506e | 23056 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23057 | else |
db9f46a9 | 23058 | if test x$gcc_no_link = xyes; then |
22e05272 | 23059 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23060 | fi |
5213506e | 23061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23062 | /* end confdefs.h. */ |
23063 | ||
db9f46a9 TG |
23064 | #ifdef HAVE_COMPLEX_H |
23065 | #include <complex.h> | |
1409cd0b | 23066 | #endif |
db9f46a9 TG |
23067 | #ifdef HAVE_MATH_H |
23068 | #include <math.h> | |
23069 | #endif | |
23070 | ||
23071 | int (*ptr)() = (int (*)())csqrtf; | |
23072 | ||
1409cd0b FXC |
23073 | int |
23074 | main () | |
23075 | { | |
1409cd0b FXC |
23076 | return 0; |
23077 | } | |
db9f46a9 | 23078 | |
1409cd0b | 23079 | _ACEOF |
5213506e | 23080 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23081 | gcc_cv_math_func_csqrtf=yes |
1409cd0b | 23082 | else |
db9f46a9 | 23083 | gcc_cv_math_func_csqrtf=no |
1409cd0b | 23084 | fi |
5213506e RW |
23085 | rm -f core conftest.err conftest.$ac_objext \ |
23086 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23087 | fi |
db9f46a9 TG |
23088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5 |
23089 | $as_echo "$gcc_cv_math_func_csqrtf" >&6; } | |
23090 | if test $gcc_cv_math_func_csqrtf = yes; then | |
f1cdfa01 | 23091 | |
f38a14ca TG |
23092 | cat >>confdefs.h <<_ACEOF |
23093 | #define HAVE_CSQRTF 1 | |
23094 | _ACEOF | |
1409cd0b | 23095 | |
db9f46a9 | 23096 | fi |
1409cd0b | 23097 | |
1409cd0b | 23098 | |
db9f46a9 TG |
23099 | |
23100 | ||
23101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5 | |
23102 | $as_echo_n "checking for csqrt... " >&6; } | |
22e05272 | 23103 | if ${gcc_cv_math_func_csqrt+:} false; then : |
5213506e | 23104 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23105 | else |
db9f46a9 | 23106 | if test x$gcc_no_link = xyes; then |
22e05272 | 23107 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23108 | fi |
5213506e | 23109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23110 | /* end confdefs.h. */ |
23111 | ||
db9f46a9 TG |
23112 | #ifdef HAVE_COMPLEX_H |
23113 | #include <complex.h> | |
23114 | #endif | |
23115 | #ifdef HAVE_MATH_H | |
23116 | #include <math.h> | |
1409cd0b | 23117 | #endif |
db9f46a9 TG |
23118 | |
23119 | int (*ptr)() = (int (*)())csqrt; | |
23120 | ||
1409cd0b FXC |
23121 | int |
23122 | main () | |
23123 | { | |
1409cd0b FXC |
23124 | return 0; |
23125 | } | |
db9f46a9 | 23126 | |
1409cd0b | 23127 | _ACEOF |
5213506e | 23128 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23129 | gcc_cv_math_func_csqrt=yes |
1409cd0b | 23130 | else |
db9f46a9 | 23131 | gcc_cv_math_func_csqrt=no |
1409cd0b | 23132 | fi |
5213506e RW |
23133 | rm -f core conftest.err conftest.$ac_objext \ |
23134 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23135 | fi |
db9f46a9 TG |
23136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5 |
23137 | $as_echo "$gcc_cv_math_func_csqrt" >&6; } | |
23138 | if test $gcc_cv_math_func_csqrt = yes; then | |
f1cdfa01 | 23139 | |
f38a14ca TG |
23140 | cat >>confdefs.h <<_ACEOF |
23141 | #define HAVE_CSQRT 1 | |
23142 | _ACEOF | |
db9f46a9 TG |
23143 | |
23144 | fi | |
1409cd0b | 23145 | |
1409cd0b | 23146 | |
1409cd0b | 23147 | |
db9f46a9 TG |
23148 | |
23149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5 | |
23150 | $as_echo_n "checking for csqrtl... " >&6; } | |
22e05272 | 23151 | if ${gcc_cv_math_func_csqrtl+:} false; then : |
5213506e | 23152 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23153 | else |
db9f46a9 | 23154 | if test x$gcc_no_link = xyes; then |
22e05272 | 23155 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23156 | fi |
5213506e | 23157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23158 | /* end confdefs.h. */ |
23159 | ||
db9f46a9 TG |
23160 | #ifdef HAVE_COMPLEX_H |
23161 | #include <complex.h> | |
1409cd0b | 23162 | #endif |
db9f46a9 TG |
23163 | #ifdef HAVE_MATH_H |
23164 | #include <math.h> | |
23165 | #endif | |
23166 | ||
23167 | int (*ptr)() = (int (*)())csqrtl; | |
23168 | ||
1409cd0b FXC |
23169 | int |
23170 | main () | |
23171 | { | |
1409cd0b FXC |
23172 | return 0; |
23173 | } | |
db9f46a9 | 23174 | |
1409cd0b | 23175 | _ACEOF |
5213506e | 23176 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23177 | gcc_cv_math_func_csqrtl=yes |
1409cd0b | 23178 | else |
db9f46a9 | 23179 | gcc_cv_math_func_csqrtl=no |
1409cd0b | 23180 | fi |
5213506e RW |
23181 | rm -f core conftest.err conftest.$ac_objext \ |
23182 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23183 | fi |
db9f46a9 TG |
23184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5 |
23185 | $as_echo "$gcc_cv_math_func_csqrtl" >&6; } | |
23186 | if test $gcc_cv_math_func_csqrtl = yes; then | |
f1cdfa01 | 23187 | |
f38a14ca TG |
23188 | cat >>confdefs.h <<_ACEOF |
23189 | #define HAVE_CSQRTL 1 | |
23190 | _ACEOF | |
db9f46a9 TG |
23191 | |
23192 | fi | |
23193 | ||
1409cd0b | 23194 | |
1409cd0b | 23195 | |
1409cd0b | 23196 | |
db9f46a9 TG |
23197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5 |
23198 | $as_echo_n "checking for tanf... " >&6; } | |
22e05272 | 23199 | if ${gcc_cv_math_func_tanf+:} false; then : |
5213506e | 23200 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23201 | else |
db9f46a9 | 23202 | if test x$gcc_no_link = xyes; then |
22e05272 | 23203 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23204 | fi |
5213506e | 23205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23206 | /* end confdefs.h. */ |
23207 | ||
db9f46a9 TG |
23208 | #ifdef HAVE_COMPLEX_H |
23209 | #include <complex.h> | |
23210 | #endif | |
23211 | #ifdef HAVE_MATH_H | |
23212 | #include <math.h> | |
1409cd0b | 23213 | #endif |
db9f46a9 TG |
23214 | |
23215 | int (*ptr)() = (int (*)())tanf; | |
23216 | ||
1409cd0b FXC |
23217 | int |
23218 | main () | |
23219 | { | |
1409cd0b FXC |
23220 | return 0; |
23221 | } | |
db9f46a9 | 23222 | |
1409cd0b | 23223 | _ACEOF |
5213506e | 23224 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23225 | gcc_cv_math_func_tanf=yes |
1409cd0b | 23226 | else |
db9f46a9 | 23227 | gcc_cv_math_func_tanf=no |
1409cd0b | 23228 | fi |
5213506e RW |
23229 | rm -f core conftest.err conftest.$ac_objext \ |
23230 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23231 | fi |
db9f46a9 TG |
23232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5 |
23233 | $as_echo "$gcc_cv_math_func_tanf" >&6; } | |
23234 | if test $gcc_cv_math_func_tanf = yes; then | |
f1cdfa01 | 23235 | |
f38a14ca TG |
23236 | cat >>confdefs.h <<_ACEOF |
23237 | #define HAVE_TANF 1 | |
23238 | _ACEOF | |
db9f46a9 TG |
23239 | |
23240 | fi | |
1409cd0b | 23241 | |
1409cd0b | 23242 | |
1409cd0b | 23243 | |
db9f46a9 TG |
23244 | |
23245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5 | |
23246 | $as_echo_n "checking for tan... " >&6; } | |
22e05272 | 23247 | if ${gcc_cv_math_func_tan+:} false; then : |
5213506e | 23248 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23249 | else |
db9f46a9 | 23250 | if test x$gcc_no_link = xyes; then |
22e05272 | 23251 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23252 | fi |
5213506e | 23253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23254 | /* end confdefs.h. */ |
23255 | ||
db9f46a9 TG |
23256 | #ifdef HAVE_COMPLEX_H |
23257 | #include <complex.h> | |
1409cd0b | 23258 | #endif |
db9f46a9 TG |
23259 | #ifdef HAVE_MATH_H |
23260 | #include <math.h> | |
23261 | #endif | |
23262 | ||
23263 | int (*ptr)() = (int (*)())tan; | |
23264 | ||
1409cd0b FXC |
23265 | int |
23266 | main () | |
23267 | { | |
1409cd0b FXC |
23268 | return 0; |
23269 | } | |
db9f46a9 | 23270 | |
1409cd0b | 23271 | _ACEOF |
5213506e | 23272 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23273 | gcc_cv_math_func_tan=yes |
1409cd0b | 23274 | else |
db9f46a9 | 23275 | gcc_cv_math_func_tan=no |
1409cd0b | 23276 | fi |
5213506e RW |
23277 | rm -f core conftest.err conftest.$ac_objext \ |
23278 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23279 | fi |
db9f46a9 TG |
23280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5 |
23281 | $as_echo "$gcc_cv_math_func_tan" >&6; } | |
23282 | if test $gcc_cv_math_func_tan = yes; then | |
f1cdfa01 | 23283 | |
f38a14ca TG |
23284 | cat >>confdefs.h <<_ACEOF |
23285 | #define HAVE_TAN 1 | |
23286 | _ACEOF | |
1409cd0b | 23287 | |
db9f46a9 | 23288 | fi |
1409cd0b | 23289 | |
1409cd0b | 23290 | |
db9f46a9 TG |
23291 | |
23292 | ||
23293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5 | |
23294 | $as_echo_n "checking for tanl... " >&6; } | |
22e05272 | 23295 | if ${gcc_cv_math_func_tanl+:} false; then : |
5213506e | 23296 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23297 | else |
db9f46a9 | 23298 | if test x$gcc_no_link = xyes; then |
22e05272 | 23299 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23300 | fi |
5213506e | 23301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23302 | /* end confdefs.h. */ |
23303 | ||
db9f46a9 TG |
23304 | #ifdef HAVE_COMPLEX_H |
23305 | #include <complex.h> | |
23306 | #endif | |
23307 | #ifdef HAVE_MATH_H | |
23308 | #include <math.h> | |
1409cd0b | 23309 | #endif |
db9f46a9 TG |
23310 | |
23311 | int (*ptr)() = (int (*)())tanl; | |
23312 | ||
1409cd0b FXC |
23313 | int |
23314 | main () | |
23315 | { | |
1409cd0b FXC |
23316 | return 0; |
23317 | } | |
db9f46a9 | 23318 | |
1409cd0b | 23319 | _ACEOF |
5213506e | 23320 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23321 | gcc_cv_math_func_tanl=yes |
1409cd0b | 23322 | else |
db9f46a9 | 23323 | gcc_cv_math_func_tanl=no |
1409cd0b | 23324 | fi |
5213506e RW |
23325 | rm -f core conftest.err conftest.$ac_objext \ |
23326 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23327 | fi |
db9f46a9 TG |
23328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5 |
23329 | $as_echo "$gcc_cv_math_func_tanl" >&6; } | |
23330 | if test $gcc_cv_math_func_tanl = yes; then | |
f1cdfa01 | 23331 | |
f38a14ca TG |
23332 | cat >>confdefs.h <<_ACEOF |
23333 | #define HAVE_TANL 1 | |
23334 | _ACEOF | |
db9f46a9 TG |
23335 | |
23336 | fi | |
1409cd0b | 23337 | |
1409cd0b | 23338 | |
1409cd0b | 23339 | |
db9f46a9 TG |
23340 | |
23341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5 | |
23342 | $as_echo_n "checking for ctanf... " >&6; } | |
22e05272 | 23343 | if ${gcc_cv_math_func_ctanf+:} false; then : |
5213506e | 23344 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23345 | else |
db9f46a9 | 23346 | if test x$gcc_no_link = xyes; then |
22e05272 | 23347 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23348 | fi |
5213506e | 23349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23350 | /* end confdefs.h. */ |
23351 | ||
db9f46a9 TG |
23352 | #ifdef HAVE_COMPLEX_H |
23353 | #include <complex.h> | |
1409cd0b | 23354 | #endif |
db9f46a9 TG |
23355 | #ifdef HAVE_MATH_H |
23356 | #include <math.h> | |
23357 | #endif | |
23358 | ||
23359 | int (*ptr)() = (int (*)())ctanf; | |
23360 | ||
1409cd0b FXC |
23361 | int |
23362 | main () | |
23363 | { | |
1409cd0b FXC |
23364 | return 0; |
23365 | } | |
db9f46a9 | 23366 | |
1409cd0b | 23367 | _ACEOF |
5213506e | 23368 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23369 | gcc_cv_math_func_ctanf=yes |
1409cd0b | 23370 | else |
db9f46a9 | 23371 | gcc_cv_math_func_ctanf=no |
1409cd0b | 23372 | fi |
5213506e RW |
23373 | rm -f core conftest.err conftest.$ac_objext \ |
23374 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23375 | fi |
db9f46a9 TG |
23376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5 |
23377 | $as_echo "$gcc_cv_math_func_ctanf" >&6; } | |
23378 | if test $gcc_cv_math_func_ctanf = yes; then | |
f1cdfa01 | 23379 | |
f38a14ca TG |
23380 | cat >>confdefs.h <<_ACEOF |
23381 | #define HAVE_CTANF 1 | |
23382 | _ACEOF | |
db9f46a9 TG |
23383 | |
23384 | fi | |
23385 | ||
1409cd0b | 23386 | |
1409cd0b | 23387 | |
1409cd0b | 23388 | |
db9f46a9 TG |
23389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5 |
23390 | $as_echo_n "checking for ctan... " >&6; } | |
22e05272 | 23391 | if ${gcc_cv_math_func_ctan+:} false; then : |
5213506e | 23392 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23393 | else |
db9f46a9 | 23394 | if test x$gcc_no_link = xyes; then |
22e05272 | 23395 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23396 | fi |
5213506e | 23397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23398 | /* end confdefs.h. */ |
23399 | ||
db9f46a9 TG |
23400 | #ifdef HAVE_COMPLEX_H |
23401 | #include <complex.h> | |
23402 | #endif | |
23403 | #ifdef HAVE_MATH_H | |
23404 | #include <math.h> | |
1409cd0b | 23405 | #endif |
db9f46a9 TG |
23406 | |
23407 | int (*ptr)() = (int (*)())ctan; | |
23408 | ||
1409cd0b FXC |
23409 | int |
23410 | main () | |
23411 | { | |
1409cd0b FXC |
23412 | return 0; |
23413 | } | |
db9f46a9 | 23414 | |
1409cd0b | 23415 | _ACEOF |
5213506e | 23416 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23417 | gcc_cv_math_func_ctan=yes |
1409cd0b | 23418 | else |
db9f46a9 | 23419 | gcc_cv_math_func_ctan=no |
1409cd0b | 23420 | fi |
5213506e RW |
23421 | rm -f core conftest.err conftest.$ac_objext \ |
23422 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23423 | fi |
db9f46a9 TG |
23424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5 |
23425 | $as_echo "$gcc_cv_math_func_ctan" >&6; } | |
23426 | if test $gcc_cv_math_func_ctan = yes; then | |
f1cdfa01 | 23427 | |
f38a14ca TG |
23428 | cat >>confdefs.h <<_ACEOF |
23429 | #define HAVE_CTAN 1 | |
23430 | _ACEOF | |
db9f46a9 TG |
23431 | |
23432 | fi | |
1409cd0b | 23433 | |
1409cd0b | 23434 | |
1409cd0b | 23435 | |
db9f46a9 TG |
23436 | |
23437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5 | |
23438 | $as_echo_n "checking for ctanl... " >&6; } | |
22e05272 | 23439 | if ${gcc_cv_math_func_ctanl+:} false; then : |
5213506e | 23440 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23441 | else |
db9f46a9 | 23442 | if test x$gcc_no_link = xyes; then |
22e05272 | 23443 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23444 | fi |
5213506e | 23445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23446 | /* end confdefs.h. */ |
23447 | ||
db9f46a9 TG |
23448 | #ifdef HAVE_COMPLEX_H |
23449 | #include <complex.h> | |
1409cd0b | 23450 | #endif |
db9f46a9 TG |
23451 | #ifdef HAVE_MATH_H |
23452 | #include <math.h> | |
23453 | #endif | |
23454 | ||
23455 | int (*ptr)() = (int (*)())ctanl; | |
23456 | ||
1409cd0b FXC |
23457 | int |
23458 | main () | |
23459 | { | |
1409cd0b FXC |
23460 | return 0; |
23461 | } | |
db9f46a9 | 23462 | |
1409cd0b | 23463 | _ACEOF |
5213506e | 23464 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23465 | gcc_cv_math_func_ctanl=yes |
1409cd0b | 23466 | else |
db9f46a9 | 23467 | gcc_cv_math_func_ctanl=no |
1409cd0b | 23468 | fi |
5213506e RW |
23469 | rm -f core conftest.err conftest.$ac_objext \ |
23470 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23471 | fi |
db9f46a9 TG |
23472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5 |
23473 | $as_echo "$gcc_cv_math_func_ctanl" >&6; } | |
23474 | if test $gcc_cv_math_func_ctanl = yes; then | |
f1cdfa01 | 23475 | |
f38a14ca TG |
23476 | cat >>confdefs.h <<_ACEOF |
23477 | #define HAVE_CTANL 1 | |
23478 | _ACEOF | |
1409cd0b | 23479 | |
db9f46a9 | 23480 | fi |
1409cd0b | 23481 | |
1409cd0b | 23482 | |
db9f46a9 TG |
23483 | |
23484 | ||
23485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5 | |
23486 | $as_echo_n "checking for tanhf... " >&6; } | |
22e05272 | 23487 | if ${gcc_cv_math_func_tanhf+:} false; then : |
5213506e | 23488 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23489 | else |
db9f46a9 | 23490 | if test x$gcc_no_link = xyes; then |
22e05272 | 23491 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23492 | fi |
5213506e | 23493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23494 | /* end confdefs.h. */ |
23495 | ||
db9f46a9 TG |
23496 | #ifdef HAVE_COMPLEX_H |
23497 | #include <complex.h> | |
23498 | #endif | |
23499 | #ifdef HAVE_MATH_H | |
23500 | #include <math.h> | |
1409cd0b | 23501 | #endif |
db9f46a9 TG |
23502 | |
23503 | int (*ptr)() = (int (*)())tanhf; | |
23504 | ||
1409cd0b FXC |
23505 | int |
23506 | main () | |
23507 | { | |
1409cd0b FXC |
23508 | return 0; |
23509 | } | |
db9f46a9 | 23510 | |
1409cd0b | 23511 | _ACEOF |
5213506e | 23512 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23513 | gcc_cv_math_func_tanhf=yes |
1409cd0b | 23514 | else |
db9f46a9 | 23515 | gcc_cv_math_func_tanhf=no |
1409cd0b | 23516 | fi |
5213506e RW |
23517 | rm -f core conftest.err conftest.$ac_objext \ |
23518 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23519 | fi |
db9f46a9 TG |
23520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5 |
23521 | $as_echo "$gcc_cv_math_func_tanhf" >&6; } | |
23522 | if test $gcc_cv_math_func_tanhf = yes; then | |
f1cdfa01 | 23523 | |
f38a14ca TG |
23524 | cat >>confdefs.h <<_ACEOF |
23525 | #define HAVE_TANHF 1 | |
23526 | _ACEOF | |
db9f46a9 TG |
23527 | |
23528 | fi | |
1409cd0b | 23529 | |
1409cd0b | 23530 | |
1409cd0b | 23531 | |
db9f46a9 TG |
23532 | |
23533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5 | |
23534 | $as_echo_n "checking for tanh... " >&6; } | |
22e05272 | 23535 | if ${gcc_cv_math_func_tanh+:} false; then : |
5213506e | 23536 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23537 | else |
db9f46a9 | 23538 | if test x$gcc_no_link = xyes; then |
22e05272 | 23539 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23540 | fi |
5213506e | 23541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23542 | /* end confdefs.h. */ |
23543 | ||
db9f46a9 TG |
23544 | #ifdef HAVE_COMPLEX_H |
23545 | #include <complex.h> | |
1409cd0b | 23546 | #endif |
db9f46a9 TG |
23547 | #ifdef HAVE_MATH_H |
23548 | #include <math.h> | |
23549 | #endif | |
23550 | ||
23551 | int (*ptr)() = (int (*)())tanh; | |
23552 | ||
1409cd0b FXC |
23553 | int |
23554 | main () | |
23555 | { | |
1409cd0b FXC |
23556 | return 0; |
23557 | } | |
db9f46a9 | 23558 | |
1409cd0b | 23559 | _ACEOF |
5213506e | 23560 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23561 | gcc_cv_math_func_tanh=yes |
1409cd0b | 23562 | else |
db9f46a9 | 23563 | gcc_cv_math_func_tanh=no |
1409cd0b | 23564 | fi |
5213506e RW |
23565 | rm -f core conftest.err conftest.$ac_objext \ |
23566 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23567 | fi |
db9f46a9 TG |
23568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5 |
23569 | $as_echo "$gcc_cv_math_func_tanh" >&6; } | |
23570 | if test $gcc_cv_math_func_tanh = yes; then | |
f1cdfa01 | 23571 | |
f38a14ca TG |
23572 | cat >>confdefs.h <<_ACEOF |
23573 | #define HAVE_TANH 1 | |
23574 | _ACEOF | |
db9f46a9 TG |
23575 | |
23576 | fi | |
23577 | ||
1409cd0b | 23578 | |
1409cd0b | 23579 | |
1409cd0b | 23580 | |
db9f46a9 TG |
23581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5 |
23582 | $as_echo_n "checking for tanhl... " >&6; } | |
22e05272 | 23583 | if ${gcc_cv_math_func_tanhl+:} false; then : |
5213506e | 23584 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23585 | else |
db9f46a9 | 23586 | if test x$gcc_no_link = xyes; then |
22e05272 | 23587 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23588 | fi |
5213506e | 23589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23590 | /* end confdefs.h. */ |
23591 | ||
db9f46a9 TG |
23592 | #ifdef HAVE_COMPLEX_H |
23593 | #include <complex.h> | |
23594 | #endif | |
23595 | #ifdef HAVE_MATH_H | |
23596 | #include <math.h> | |
1409cd0b | 23597 | #endif |
db9f46a9 TG |
23598 | |
23599 | int (*ptr)() = (int (*)())tanhl; | |
23600 | ||
1409cd0b FXC |
23601 | int |
23602 | main () | |
23603 | { | |
1409cd0b FXC |
23604 | return 0; |
23605 | } | |
db9f46a9 | 23606 | |
1409cd0b | 23607 | _ACEOF |
5213506e | 23608 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23609 | gcc_cv_math_func_tanhl=yes |
1409cd0b | 23610 | else |
db9f46a9 | 23611 | gcc_cv_math_func_tanhl=no |
1409cd0b | 23612 | fi |
5213506e RW |
23613 | rm -f core conftest.err conftest.$ac_objext \ |
23614 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23615 | fi |
db9f46a9 TG |
23616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5 |
23617 | $as_echo "$gcc_cv_math_func_tanhl" >&6; } | |
23618 | if test $gcc_cv_math_func_tanhl = yes; then | |
f1cdfa01 | 23619 | |
f38a14ca TG |
23620 | cat >>confdefs.h <<_ACEOF |
23621 | #define HAVE_TANHL 1 | |
23622 | _ACEOF | |
db9f46a9 TG |
23623 | |
23624 | fi | |
1409cd0b | 23625 | |
1409cd0b | 23626 | |
1409cd0b | 23627 | |
db9f46a9 TG |
23628 | |
23629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5 | |
23630 | $as_echo_n "checking for ctanhf... " >&6; } | |
22e05272 | 23631 | if ${gcc_cv_math_func_ctanhf+:} false; then : |
5213506e | 23632 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23633 | else |
db9f46a9 | 23634 | if test x$gcc_no_link = xyes; then |
22e05272 | 23635 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db9f46a9 TG |
23636 | fi |
23637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23638 | /* end confdefs.h. */ | |
23639 | ||
23640 | #ifdef HAVE_COMPLEX_H | |
23641 | #include <complex.h> | |
1409cd0b | 23642 | #endif |
db9f46a9 TG |
23643 | #ifdef HAVE_MATH_H |
23644 | #include <math.h> | |
23645 | #endif | |
23646 | ||
23647 | int (*ptr)() = (int (*)())ctanhf; | |
23648 | ||
1409cd0b FXC |
23649 | int |
23650 | main () | |
23651 | { | |
1409cd0b FXC |
23652 | return 0; |
23653 | } | |
db9f46a9 | 23654 | |
1409cd0b | 23655 | _ACEOF |
5213506e | 23656 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23657 | gcc_cv_math_func_ctanhf=yes |
1409cd0b | 23658 | else |
db9f46a9 | 23659 | gcc_cv_math_func_ctanhf=no |
1409cd0b | 23660 | fi |
5213506e RW |
23661 | rm -f core conftest.err conftest.$ac_objext \ |
23662 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23663 | fi |
db9f46a9 TG |
23664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5 |
23665 | $as_echo "$gcc_cv_math_func_ctanhf" >&6; } | |
23666 | if test $gcc_cv_math_func_ctanhf = yes; then | |
f1cdfa01 | 23667 | |
f38a14ca TG |
23668 | cat >>confdefs.h <<_ACEOF |
23669 | #define HAVE_CTANHF 1 | |
23670 | _ACEOF | |
1409cd0b | 23671 | |
db9f46a9 | 23672 | fi |
1409cd0b | 23673 | |
1409cd0b | 23674 | |
db9f46a9 TG |
23675 | |
23676 | ||
23677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5 | |
23678 | $as_echo_n "checking for ctanh... " >&6; } | |
22e05272 | 23679 | if ${gcc_cv_math_func_ctanh+:} false; then : |
5213506e | 23680 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23681 | else |
db9f46a9 | 23682 | if test x$gcc_no_link = xyes; then |
22e05272 | 23683 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23684 | fi |
5213506e | 23685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23686 | /* end confdefs.h. */ |
23687 | ||
db9f46a9 TG |
23688 | #ifdef HAVE_COMPLEX_H |
23689 | #include <complex.h> | |
23690 | #endif | |
23691 | #ifdef HAVE_MATH_H | |
23692 | #include <math.h> | |
1409cd0b | 23693 | #endif |
db9f46a9 TG |
23694 | |
23695 | int (*ptr)() = (int (*)())ctanh; | |
23696 | ||
1409cd0b FXC |
23697 | int |
23698 | main () | |
23699 | { | |
5213506e RW |
23700 | return 0; |
23701 | } | |
db9f46a9 | 23702 | |
5213506e RW |
23703 | _ACEOF |
23704 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 23705 | gcc_cv_math_func_ctanh=yes |
1409cd0b | 23706 | else |
db9f46a9 | 23707 | gcc_cv_math_func_ctanh=no |
1409cd0b | 23708 | fi |
5213506e RW |
23709 | rm -f core conftest.err conftest.$ac_objext \ |
23710 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23711 | fi |
db9f46a9 TG |
23712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5 |
23713 | $as_echo "$gcc_cv_math_func_ctanh" >&6; } | |
23714 | if test $gcc_cv_math_func_ctanh = yes; then | |
f1cdfa01 | 23715 | |
f38a14ca TG |
23716 | cat >>confdefs.h <<_ACEOF |
23717 | #define HAVE_CTANH 1 | |
23718 | _ACEOF | |
db9f46a9 TG |
23719 | |
23720 | fi | |
1409cd0b | 23721 | |
1409cd0b | 23722 | |
1409cd0b | 23723 | |
db9f46a9 TG |
23724 | |
23725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5 | |
23726 | $as_echo_n "checking for ctanhl... " >&6; } | |
22e05272 | 23727 | if ${gcc_cv_math_func_ctanhl+:} false; then : |
5213506e | 23728 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23729 | else |
db9f46a9 | 23730 | if test x$gcc_no_link = xyes; then |
22e05272 | 23731 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23732 | fi |
5213506e | 23733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23734 | /* end confdefs.h. */ |
23735 | ||
db9f46a9 TG |
23736 | #ifdef HAVE_COMPLEX_H |
23737 | #include <complex.h> | |
1409cd0b | 23738 | #endif |
db9f46a9 TG |
23739 | #ifdef HAVE_MATH_H |
23740 | #include <math.h> | |
23741 | #endif | |
23742 | ||
23743 | int (*ptr)() = (int (*)())ctanhl; | |
23744 | ||
1409cd0b FXC |
23745 | int |
23746 | main () | |
23747 | { | |
1409cd0b FXC |
23748 | return 0; |
23749 | } | |
db9f46a9 | 23750 | |
1409cd0b | 23751 | _ACEOF |
5213506e | 23752 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23753 | gcc_cv_math_func_ctanhl=yes |
1409cd0b | 23754 | else |
db9f46a9 | 23755 | gcc_cv_math_func_ctanhl=no |
1409cd0b | 23756 | fi |
5213506e RW |
23757 | rm -f core conftest.err conftest.$ac_objext \ |
23758 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23759 | fi |
db9f46a9 TG |
23760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5 |
23761 | $as_echo "$gcc_cv_math_func_ctanhl" >&6; } | |
23762 | if test $gcc_cv_math_func_ctanhl = yes; then | |
f1cdfa01 | 23763 | |
f38a14ca TG |
23764 | cat >>confdefs.h <<_ACEOF |
23765 | #define HAVE_CTANHL 1 | |
23766 | _ACEOF | |
db9f46a9 TG |
23767 | |
23768 | fi | |
23769 | ||
1409cd0b | 23770 | |
69a2d125 | 23771 | |
69a2d125 | 23772 | |
db9f46a9 TG |
23773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5 |
23774 | $as_echo_n "checking for truncf... " >&6; } | |
22e05272 | 23775 | if ${gcc_cv_math_func_truncf+:} false; then : |
5213506e | 23776 | $as_echo_n "(cached) " >&6 |
69a2d125 | 23777 | else |
db9f46a9 | 23778 | if test x$gcc_no_link = xyes; then |
22e05272 | 23779 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 23780 | fi |
5213506e | 23781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
69a2d125 EB |
23782 | /* end confdefs.h. */ |
23783 | ||
db9f46a9 TG |
23784 | #ifdef HAVE_COMPLEX_H |
23785 | #include <complex.h> | |
23786 | #endif | |
23787 | #ifdef HAVE_MATH_H | |
23788 | #include <math.h> | |
69a2d125 | 23789 | #endif |
db9f46a9 TG |
23790 | |
23791 | int (*ptr)() = (int (*)())truncf; | |
23792 | ||
1409cd0b FXC |
23793 | int |
23794 | main () | |
23795 | { | |
1409cd0b FXC |
23796 | return 0; |
23797 | } | |
db9f46a9 | 23798 | |
1409cd0b | 23799 | _ACEOF |
5213506e | 23800 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23801 | gcc_cv_math_func_truncf=yes |
1409cd0b | 23802 | else |
db9f46a9 | 23803 | gcc_cv_math_func_truncf=no |
1409cd0b | 23804 | fi |
5213506e RW |
23805 | rm -f core conftest.err conftest.$ac_objext \ |
23806 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23807 | fi |
db9f46a9 TG |
23808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5 |
23809 | $as_echo "$gcc_cv_math_func_truncf" >&6; } | |
23810 | if test $gcc_cv_math_func_truncf = yes; then | |
f1cdfa01 | 23811 | |
f38a14ca TG |
23812 | cat >>confdefs.h <<_ACEOF |
23813 | #define HAVE_TRUNCF 1 | |
23814 | _ACEOF | |
db9f46a9 TG |
23815 | |
23816 | fi | |
1409cd0b | 23817 | |
1409cd0b | 23818 | |
1409cd0b | 23819 | |
db9f46a9 TG |
23820 | |
23821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5 | |
23822 | $as_echo_n "checking for trunc... " >&6; } | |
22e05272 | 23823 | if ${gcc_cv_math_func_trunc+:} false; then : |
5213506e | 23824 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23825 | else |
db9f46a9 | 23826 | if test x$gcc_no_link = xyes; then |
22e05272 | 23827 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23828 | fi |
5213506e | 23829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23830 | /* end confdefs.h. */ |
23831 | ||
db9f46a9 TG |
23832 | #ifdef HAVE_COMPLEX_H |
23833 | #include <complex.h> | |
1409cd0b | 23834 | #endif |
db9f46a9 TG |
23835 | #ifdef HAVE_MATH_H |
23836 | #include <math.h> | |
23837 | #endif | |
23838 | ||
23839 | int (*ptr)() = (int (*)())trunc; | |
23840 | ||
1409cd0b FXC |
23841 | int |
23842 | main () | |
23843 | { | |
1409cd0b FXC |
23844 | return 0; |
23845 | } | |
db9f46a9 | 23846 | |
1409cd0b | 23847 | _ACEOF |
5213506e | 23848 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23849 | gcc_cv_math_func_trunc=yes |
1409cd0b | 23850 | else |
db9f46a9 | 23851 | gcc_cv_math_func_trunc=no |
1409cd0b | 23852 | fi |
5213506e RW |
23853 | rm -f core conftest.err conftest.$ac_objext \ |
23854 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23855 | fi |
db9f46a9 TG |
23856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5 |
23857 | $as_echo "$gcc_cv_math_func_trunc" >&6; } | |
23858 | if test $gcc_cv_math_func_trunc = yes; then | |
f1cdfa01 | 23859 | |
f38a14ca TG |
23860 | cat >>confdefs.h <<_ACEOF |
23861 | #define HAVE_TRUNC 1 | |
23862 | _ACEOF | |
1409cd0b | 23863 | |
db9f46a9 | 23864 | fi |
1409cd0b | 23865 | |
1409cd0b | 23866 | |
db9f46a9 TG |
23867 | |
23868 | ||
23869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5 | |
23870 | $as_echo_n "checking for truncl... " >&6; } | |
22e05272 | 23871 | if ${gcc_cv_math_func_truncl+:} false; then : |
5213506e | 23872 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23873 | else |
db9f46a9 | 23874 | if test x$gcc_no_link = xyes; then |
22e05272 | 23875 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23876 | fi |
5213506e | 23877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23878 | /* end confdefs.h. */ |
23879 | ||
db9f46a9 TG |
23880 | #ifdef HAVE_COMPLEX_H |
23881 | #include <complex.h> | |
23882 | #endif | |
23883 | #ifdef HAVE_MATH_H | |
23884 | #include <math.h> | |
1409cd0b | 23885 | #endif |
db9f46a9 TG |
23886 | |
23887 | int (*ptr)() = (int (*)())truncl; | |
23888 | ||
1409cd0b FXC |
23889 | int |
23890 | main () | |
23891 | { | |
1409cd0b FXC |
23892 | return 0; |
23893 | } | |
db9f46a9 | 23894 | |
1409cd0b | 23895 | _ACEOF |
5213506e | 23896 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23897 | gcc_cv_math_func_truncl=yes |
1409cd0b | 23898 | else |
db9f46a9 | 23899 | gcc_cv_math_func_truncl=no |
1409cd0b | 23900 | fi |
5213506e RW |
23901 | rm -f core conftest.err conftest.$ac_objext \ |
23902 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23903 | fi |
db9f46a9 TG |
23904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5 |
23905 | $as_echo "$gcc_cv_math_func_truncl" >&6; } | |
23906 | if test $gcc_cv_math_func_truncl = yes; then | |
f1cdfa01 | 23907 | |
f38a14ca TG |
23908 | cat >>confdefs.h <<_ACEOF |
23909 | #define HAVE_TRUNCL 1 | |
23910 | _ACEOF | |
db9f46a9 TG |
23911 | |
23912 | fi | |
1409cd0b | 23913 | |
1409cd0b | 23914 | |
1409cd0b | 23915 | |
db9f46a9 TG |
23916 | |
23917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5 | |
23918 | $as_echo_n "checking for erff... " >&6; } | |
22e05272 | 23919 | if ${gcc_cv_math_func_erff+:} false; then : |
5213506e | 23920 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23921 | else |
db9f46a9 | 23922 | if test x$gcc_no_link = xyes; then |
22e05272 | 23923 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23924 | fi |
5213506e | 23925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23926 | /* end confdefs.h. */ |
23927 | ||
db9f46a9 TG |
23928 | #ifdef HAVE_COMPLEX_H |
23929 | #include <complex.h> | |
1409cd0b | 23930 | #endif |
db9f46a9 TG |
23931 | #ifdef HAVE_MATH_H |
23932 | #include <math.h> | |
23933 | #endif | |
23934 | ||
23935 | int (*ptr)() = (int (*)())erff; | |
23936 | ||
1409cd0b FXC |
23937 | int |
23938 | main () | |
23939 | { | |
1409cd0b FXC |
23940 | return 0; |
23941 | } | |
db9f46a9 | 23942 | |
1409cd0b | 23943 | _ACEOF |
5213506e | 23944 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23945 | gcc_cv_math_func_erff=yes |
1409cd0b | 23946 | else |
db9f46a9 | 23947 | gcc_cv_math_func_erff=no |
1409cd0b | 23948 | fi |
5213506e RW |
23949 | rm -f core conftest.err conftest.$ac_objext \ |
23950 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23951 | fi |
db9f46a9 TG |
23952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5 |
23953 | $as_echo "$gcc_cv_math_func_erff" >&6; } | |
23954 | if test $gcc_cv_math_func_erff = yes; then | |
f1cdfa01 | 23955 | |
f38a14ca TG |
23956 | cat >>confdefs.h <<_ACEOF |
23957 | #define HAVE_ERFF 1 | |
23958 | _ACEOF | |
db9f46a9 TG |
23959 | |
23960 | fi | |
23961 | ||
1409cd0b | 23962 | |
1409cd0b | 23963 | |
1409cd0b | 23964 | |
db9f46a9 TG |
23965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5 |
23966 | $as_echo_n "checking for erf... " >&6; } | |
22e05272 | 23967 | if ${gcc_cv_math_func_erf+:} false; then : |
5213506e | 23968 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23969 | else |
db9f46a9 | 23970 | if test x$gcc_no_link = xyes; then |
22e05272 | 23971 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23972 | fi |
5213506e | 23973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23974 | /* end confdefs.h. */ |
23975 | ||
db9f46a9 TG |
23976 | #ifdef HAVE_COMPLEX_H |
23977 | #include <complex.h> | |
23978 | #endif | |
23979 | #ifdef HAVE_MATH_H | |
23980 | #include <math.h> | |
1409cd0b | 23981 | #endif |
db9f46a9 TG |
23982 | |
23983 | int (*ptr)() = (int (*)())erf; | |
23984 | ||
1409cd0b FXC |
23985 | int |
23986 | main () | |
23987 | { | |
1409cd0b FXC |
23988 | return 0; |
23989 | } | |
db9f46a9 | 23990 | |
1409cd0b | 23991 | _ACEOF |
5213506e | 23992 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23993 | gcc_cv_math_func_erf=yes |
1409cd0b | 23994 | else |
db9f46a9 | 23995 | gcc_cv_math_func_erf=no |
1409cd0b | 23996 | fi |
5213506e RW |
23997 | rm -f core conftest.err conftest.$ac_objext \ |
23998 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23999 | fi |
db9f46a9 TG |
24000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5 |
24001 | $as_echo "$gcc_cv_math_func_erf" >&6; } | |
24002 | if test $gcc_cv_math_func_erf = yes; then | |
f1cdfa01 | 24003 | |
f38a14ca TG |
24004 | cat >>confdefs.h <<_ACEOF |
24005 | #define HAVE_ERF 1 | |
24006 | _ACEOF | |
db9f46a9 TG |
24007 | |
24008 | fi | |
1409cd0b | 24009 | |
1409cd0b | 24010 | |
1409cd0b | 24011 | |
db9f46a9 | 24012 | |
db9f46a9 TG |
24013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5 |
24014 | $as_echo_n "checking for erfcf... " >&6; } | |
22e05272 | 24015 | if ${gcc_cv_math_func_erfcf+:} false; then : |
5213506e | 24016 | $as_echo_n "(cached) " >&6 |
1409cd0b | 24017 | else |
db9f46a9 | 24018 | if test x$gcc_no_link = xyes; then |
22e05272 | 24019 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 24020 | fi |
5213506e | 24021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
24022 | /* end confdefs.h. */ |
24023 | ||
db9f46a9 TG |
24024 | #ifdef HAVE_COMPLEX_H |
24025 | #include <complex.h> | |
24026 | #endif | |
24027 | #ifdef HAVE_MATH_H | |
24028 | #include <math.h> | |
1409cd0b | 24029 | #endif |
db9f46a9 TG |
24030 | |
24031 | int (*ptr)() = (int (*)())erfcf; | |
24032 | ||
1409cd0b FXC |
24033 | int |
24034 | main () | |
24035 | { | |
1409cd0b FXC |
24036 | return 0; |
24037 | } | |
db9f46a9 | 24038 | |
1409cd0b | 24039 | _ACEOF |
5213506e | 24040 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24041 | gcc_cv_math_func_erfcf=yes |
1409cd0b | 24042 | else |
db9f46a9 | 24043 | gcc_cv_math_func_erfcf=no |
1409cd0b | 24044 | fi |
5213506e RW |
24045 | rm -f core conftest.err conftest.$ac_objext \ |
24046 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 24047 | fi |
db9f46a9 TG |
24048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5 |
24049 | $as_echo "$gcc_cv_math_func_erfcf" >&6; } | |
24050 | if test $gcc_cv_math_func_erfcf = yes; then | |
f1cdfa01 | 24051 | |
f38a14ca TG |
24052 | cat >>confdefs.h <<_ACEOF |
24053 | #define HAVE_ERFCF 1 | |
24054 | _ACEOF | |
db9f46a9 TG |
24055 | |
24056 | fi | |
1409cd0b | 24057 | |
1409cd0b | 24058 | |
1409cd0b | 24059 | |
db9f46a9 TG |
24060 | |
24061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5 | |
24062 | $as_echo_n "checking for erfc... " >&6; } | |
22e05272 | 24063 | if ${gcc_cv_math_func_erfc+:} false; then : |
5213506e | 24064 | $as_echo_n "(cached) " >&6 |
1409cd0b | 24065 | else |
db9f46a9 | 24066 | if test x$gcc_no_link = xyes; then |
22e05272 | 24067 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 24068 | fi |
5213506e | 24069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
24070 | /* end confdefs.h. */ |
24071 | ||
db9f46a9 TG |
24072 | #ifdef HAVE_COMPLEX_H |
24073 | #include <complex.h> | |
1409cd0b | 24074 | #endif |
db9f46a9 TG |
24075 | #ifdef HAVE_MATH_H |
24076 | #include <math.h> | |
24077 | #endif | |
24078 | ||
24079 | int (*ptr)() = (int (*)())erfc; | |
24080 | ||
69a2d125 EB |
24081 | int |
24082 | main () | |
24083 | { | |
69a2d125 EB |
24084 | return 0; |
24085 | } | |
db9f46a9 | 24086 | |
69a2d125 | 24087 | _ACEOF |
5213506e | 24088 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24089 | gcc_cv_math_func_erfc=yes |
69a2d125 | 24090 | else |
db9f46a9 | 24091 | gcc_cv_math_func_erfc=no |
69a2d125 | 24092 | fi |
5213506e RW |
24093 | rm -f core conftest.err conftest.$ac_objext \ |
24094 | conftest$ac_exeext conftest.$ac_ext | |
69a2d125 | 24095 | fi |
db9f46a9 TG |
24096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5 |
24097 | $as_echo "$gcc_cv_math_func_erfc" >&6; } | |
24098 | if test $gcc_cv_math_func_erfc = yes; then | |
f1cdfa01 | 24099 | |
f38a14ca TG |
24100 | cat >>confdefs.h <<_ACEOF |
24101 | #define HAVE_ERFC 1 | |
24102 | _ACEOF | |
db9f46a9 TG |
24103 | |
24104 | fi | |
24105 | ||
69a2d125 | 24106 | |
69a2d125 | 24107 | |
69a2d125 | 24108 | |
db9f46a9 TG |
24109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5 |
24110 | $as_echo_n "checking for erfcl... " >&6; } | |
22e05272 | 24111 | if ${gcc_cv_math_func_erfcl+:} false; then : |
5213506e | 24112 | $as_echo_n "(cached) " >&6 |
e8525382 | 24113 | else |
db9f46a9 | 24114 | if test x$gcc_no_link = xyes; then |
22e05272 | 24115 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24116 | fi |
5213506e | 24117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24118 | /* end confdefs.h. */ |
24119 | ||
db9f46a9 TG |
24120 | #ifdef HAVE_COMPLEX_H |
24121 | #include <complex.h> | |
24122 | #endif | |
24123 | #ifdef HAVE_MATH_H | |
24124 | #include <math.h> | |
e8525382 | 24125 | #endif |
db9f46a9 TG |
24126 | |
24127 | int (*ptr)() = (int (*)())erfcl; | |
24128 | ||
e8525382 SK |
24129 | int |
24130 | main () | |
24131 | { | |
e8525382 SK |
24132 | return 0; |
24133 | } | |
db9f46a9 | 24134 | |
e8525382 | 24135 | _ACEOF |
5213506e | 24136 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24137 | gcc_cv_math_func_erfcl=yes |
e8525382 | 24138 | else |
db9f46a9 | 24139 | gcc_cv_math_func_erfcl=no |
e8525382 | 24140 | fi |
5213506e RW |
24141 | rm -f core conftest.err conftest.$ac_objext \ |
24142 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24143 | fi |
db9f46a9 TG |
24144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5 |
24145 | $as_echo "$gcc_cv_math_func_erfcl" >&6; } | |
24146 | if test $gcc_cv_math_func_erfcl = yes; then | |
f1cdfa01 | 24147 | |
f38a14ca TG |
24148 | cat >>confdefs.h <<_ACEOF |
24149 | #define HAVE_ERFCL 1 | |
24150 | _ACEOF | |
db9f46a9 TG |
24151 | |
24152 | fi | |
e8525382 | 24153 | |
e8525382 | 24154 | |
e8525382 | 24155 | |
db9f46a9 TG |
24156 | |
24157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5 | |
24158 | $as_echo_n "checking for j0f... " >&6; } | |
22e05272 | 24159 | if ${gcc_cv_math_func_j0f+:} false; then : |
5213506e | 24160 | $as_echo_n "(cached) " >&6 |
e8525382 | 24161 | else |
db9f46a9 | 24162 | if test x$gcc_no_link = xyes; then |
22e05272 | 24163 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24164 | fi |
5213506e | 24165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24166 | /* end confdefs.h. */ |
24167 | ||
db9f46a9 TG |
24168 | #ifdef HAVE_COMPLEX_H |
24169 | #include <complex.h> | |
e8525382 | 24170 | #endif |
db9f46a9 TG |
24171 | #ifdef HAVE_MATH_H |
24172 | #include <math.h> | |
24173 | #endif | |
24174 | ||
24175 | int (*ptr)() = (int (*)())j0f; | |
24176 | ||
e8525382 SK |
24177 | int |
24178 | main () | |
24179 | { | |
e8525382 SK |
24180 | return 0; |
24181 | } | |
db9f46a9 | 24182 | |
e8525382 | 24183 | _ACEOF |
5213506e | 24184 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24185 | gcc_cv_math_func_j0f=yes |
e8525382 | 24186 | else |
db9f46a9 | 24187 | gcc_cv_math_func_j0f=no |
1409cd0b | 24188 | fi |
5213506e RW |
24189 | rm -f core conftest.err conftest.$ac_objext \ |
24190 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 24191 | fi |
db9f46a9 TG |
24192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5 |
24193 | $as_echo "$gcc_cv_math_func_j0f" >&6; } | |
24194 | if test $gcc_cv_math_func_j0f = yes; then | |
f1cdfa01 | 24195 | |
f38a14ca TG |
24196 | cat >>confdefs.h <<_ACEOF |
24197 | #define HAVE_J0F 1 | |
24198 | _ACEOF | |
1409cd0b | 24199 | |
db9f46a9 | 24200 | fi |
1409cd0b | 24201 | |
1409cd0b | 24202 | |
db9f46a9 TG |
24203 | |
24204 | ||
24205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5 | |
24206 | $as_echo_n "checking for j0... " >&6; } | |
22e05272 | 24207 | if ${gcc_cv_math_func_j0+:} false; then : |
5213506e | 24208 | $as_echo_n "(cached) " >&6 |
1409cd0b | 24209 | else |
db9f46a9 | 24210 | if test x$gcc_no_link = xyes; then |
22e05272 | 24211 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 24212 | fi |
5213506e | 24213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
24214 | /* end confdefs.h. */ |
24215 | ||
db9f46a9 TG |
24216 | #ifdef HAVE_COMPLEX_H |
24217 | #include <complex.h> | |
24218 | #endif | |
24219 | #ifdef HAVE_MATH_H | |
24220 | #include <math.h> | |
1409cd0b | 24221 | #endif |
db9f46a9 TG |
24222 | |
24223 | int (*ptr)() = (int (*)())j0; | |
24224 | ||
1409cd0b FXC |
24225 | int |
24226 | main () | |
24227 | { | |
1409cd0b FXC |
24228 | return 0; |
24229 | } | |
db9f46a9 | 24230 | |
1409cd0b | 24231 | _ACEOF |
5213506e | 24232 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24233 | gcc_cv_math_func_j0=yes |
1409cd0b | 24234 | else |
db9f46a9 | 24235 | gcc_cv_math_func_j0=no |
1409cd0b | 24236 | fi |
5213506e RW |
24237 | rm -f core conftest.err conftest.$ac_objext \ |
24238 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 24239 | fi |
db9f46a9 TG |
24240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5 |
24241 | $as_echo "$gcc_cv_math_func_j0" >&6; } | |
24242 | if test $gcc_cv_math_func_j0 = yes; then | |
f1cdfa01 | 24243 | |
f38a14ca TG |
24244 | cat >>confdefs.h <<_ACEOF |
24245 | #define HAVE_J0 1 | |
24246 | _ACEOF | |
db9f46a9 TG |
24247 | |
24248 | fi | |
1409cd0b | 24249 | |
1409cd0b | 24250 | |
1409cd0b | 24251 | |
db9f46a9 | 24252 | |
db9f46a9 TG |
24253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5 |
24254 | $as_echo_n "checking for j1f... " >&6; } | |
22e05272 | 24255 | if ${gcc_cv_math_func_j1f+:} false; then : |
5213506e | 24256 | $as_echo_n "(cached) " >&6 |
1409cd0b | 24257 | else |
db9f46a9 | 24258 | if test x$gcc_no_link = xyes; then |
22e05272 | 24259 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 24260 | fi |
5213506e | 24261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
24262 | /* end confdefs.h. */ |
24263 | ||
db9f46a9 TG |
24264 | #ifdef HAVE_COMPLEX_H |
24265 | #include <complex.h> | |
24266 | #endif | |
24267 | #ifdef HAVE_MATH_H | |
24268 | #include <math.h> | |
1409cd0b | 24269 | #endif |
db9f46a9 TG |
24270 | |
24271 | int (*ptr)() = (int (*)())j1f; | |
24272 | ||
1409cd0b FXC |
24273 | int |
24274 | main () | |
24275 | { | |
1409cd0b FXC |
24276 | return 0; |
24277 | } | |
db9f46a9 | 24278 | |
1409cd0b | 24279 | _ACEOF |
5213506e | 24280 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24281 | gcc_cv_math_func_j1f=yes |
1409cd0b | 24282 | else |
db9f46a9 | 24283 | gcc_cv_math_func_j1f=no |
e8525382 | 24284 | fi |
5213506e RW |
24285 | rm -f core conftest.err conftest.$ac_objext \ |
24286 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24287 | fi |
db9f46a9 TG |
24288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5 |
24289 | $as_echo "$gcc_cv_math_func_j1f" >&6; } | |
24290 | if test $gcc_cv_math_func_j1f = yes; then | |
f1cdfa01 | 24291 | |
f38a14ca TG |
24292 | cat >>confdefs.h <<_ACEOF |
24293 | #define HAVE_J1F 1 | |
24294 | _ACEOF | |
db9f46a9 TG |
24295 | |
24296 | fi | |
e8525382 | 24297 | |
e8525382 | 24298 | |
e8525382 | 24299 | |
db9f46a9 TG |
24300 | |
24301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5 | |
24302 | $as_echo_n "checking for j1... " >&6; } | |
22e05272 | 24303 | if ${gcc_cv_math_func_j1+:} false; then : |
5213506e | 24304 | $as_echo_n "(cached) " >&6 |
e8525382 | 24305 | else |
db9f46a9 | 24306 | if test x$gcc_no_link = xyes; then |
22e05272 | 24307 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24308 | fi |
5213506e | 24309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24310 | /* end confdefs.h. */ |
24311 | ||
db9f46a9 TG |
24312 | #ifdef HAVE_COMPLEX_H |
24313 | #include <complex.h> | |
e8525382 | 24314 | #endif |
db9f46a9 TG |
24315 | #ifdef HAVE_MATH_H |
24316 | #include <math.h> | |
24317 | #endif | |
24318 | ||
24319 | int (*ptr)() = (int (*)())j1; | |
24320 | ||
e8525382 SK |
24321 | int |
24322 | main () | |
24323 | { | |
e8525382 SK |
24324 | return 0; |
24325 | } | |
db9f46a9 | 24326 | |
e8525382 | 24327 | _ACEOF |
5213506e | 24328 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24329 | gcc_cv_math_func_j1=yes |
e8525382 | 24330 | else |
db9f46a9 | 24331 | gcc_cv_math_func_j1=no |
e8525382 | 24332 | fi |
5213506e RW |
24333 | rm -f core conftest.err conftest.$ac_objext \ |
24334 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24335 | fi |
db9f46a9 TG |
24336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5 |
24337 | $as_echo "$gcc_cv_math_func_j1" >&6; } | |
24338 | if test $gcc_cv_math_func_j1 = yes; then | |
f1cdfa01 | 24339 | |
f38a14ca TG |
24340 | cat >>confdefs.h <<_ACEOF |
24341 | #define HAVE_J1 1 | |
24342 | _ACEOF | |
e8525382 | 24343 | |
db9f46a9 | 24344 | fi |
e8525382 | 24345 | |
e8525382 | 24346 | |
db9f46a9 TG |
24347 | |
24348 | ||
db9f46a9 TG |
24349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5 |
24350 | $as_echo_n "checking for jnf... " >&6; } | |
22e05272 | 24351 | if ${gcc_cv_math_func_jnf+:} false; then : |
5213506e | 24352 | $as_echo_n "(cached) " >&6 |
e8525382 | 24353 | else |
db9f46a9 | 24354 | if test x$gcc_no_link = xyes; then |
22e05272 | 24355 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24356 | fi |
5213506e | 24357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24358 | /* end confdefs.h. */ |
24359 | ||
db9f46a9 TG |
24360 | #ifdef HAVE_COMPLEX_H |
24361 | #include <complex.h> | |
e8525382 | 24362 | #endif |
db9f46a9 TG |
24363 | #ifdef HAVE_MATH_H |
24364 | #include <math.h> | |
24365 | #endif | |
24366 | ||
24367 | int (*ptr)() = (int (*)())jnf; | |
24368 | ||
e8525382 SK |
24369 | int |
24370 | main () | |
24371 | { | |
e8525382 SK |
24372 | return 0; |
24373 | } | |
db9f46a9 | 24374 | |
e8525382 | 24375 | _ACEOF |
5213506e | 24376 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24377 | gcc_cv_math_func_jnf=yes |
e8525382 | 24378 | else |
db9f46a9 | 24379 | gcc_cv_math_func_jnf=no |
e8525382 | 24380 | fi |
5213506e RW |
24381 | rm -f core conftest.err conftest.$ac_objext \ |
24382 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24383 | fi |
db9f46a9 TG |
24384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5 |
24385 | $as_echo "$gcc_cv_math_func_jnf" >&6; } | |
24386 | if test $gcc_cv_math_func_jnf = yes; then | |
f1cdfa01 | 24387 | |
f38a14ca TG |
24388 | cat >>confdefs.h <<_ACEOF |
24389 | #define HAVE_JNF 1 | |
24390 | _ACEOF | |
db9f46a9 TG |
24391 | |
24392 | fi | |
24393 | ||
e8525382 | 24394 | |
e8525382 | 24395 | |
e8525382 | 24396 | |
db9f46a9 TG |
24397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5 |
24398 | $as_echo_n "checking for jn... " >&6; } | |
22e05272 | 24399 | if ${gcc_cv_math_func_jn+:} false; then : |
5213506e | 24400 | $as_echo_n "(cached) " >&6 |
e8525382 | 24401 | else |
db9f46a9 | 24402 | if test x$gcc_no_link = xyes; then |
22e05272 | 24403 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24404 | fi |
5213506e | 24405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24406 | /* end confdefs.h. */ |
24407 | ||
db9f46a9 TG |
24408 | #ifdef HAVE_COMPLEX_H |
24409 | #include <complex.h> | |
24410 | #endif | |
24411 | #ifdef HAVE_MATH_H | |
24412 | #include <math.h> | |
e8525382 | 24413 | #endif |
db9f46a9 TG |
24414 | |
24415 | int (*ptr)() = (int (*)())jn; | |
24416 | ||
e8525382 SK |
24417 | int |
24418 | main () | |
24419 | { | |
e8525382 SK |
24420 | return 0; |
24421 | } | |
db9f46a9 | 24422 | |
e8525382 | 24423 | _ACEOF |
5213506e | 24424 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24425 | gcc_cv_math_func_jn=yes |
e8525382 | 24426 | else |
db9f46a9 | 24427 | gcc_cv_math_func_jn=no |
e8525382 | 24428 | fi |
5213506e RW |
24429 | rm -f core conftest.err conftest.$ac_objext \ |
24430 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24431 | fi |
db9f46a9 TG |
24432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5 |
24433 | $as_echo "$gcc_cv_math_func_jn" >&6; } | |
24434 | if test $gcc_cv_math_func_jn = yes; then | |
f1cdfa01 | 24435 | |
f38a14ca TG |
24436 | cat >>confdefs.h <<_ACEOF |
24437 | #define HAVE_JN 1 | |
24438 | _ACEOF | |
db9f46a9 TG |
24439 | |
24440 | fi | |
e8525382 | 24441 | |
e8525382 | 24442 | |
e8525382 | 24443 | |
db9f46a9 TG |
24444 | |
24445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5 | |
24446 | $as_echo_n "checking for jnl... " >&6; } | |
22e05272 | 24447 | if ${gcc_cv_math_func_jnl+:} false; then : |
5213506e | 24448 | $as_echo_n "(cached) " >&6 |
e8525382 | 24449 | else |
db9f46a9 | 24450 | if test x$gcc_no_link = xyes; then |
22e05272 | 24451 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24452 | fi |
5213506e | 24453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24454 | /* end confdefs.h. */ |
24455 | ||
db9f46a9 TG |
24456 | #ifdef HAVE_COMPLEX_H |
24457 | #include <complex.h> | |
e8525382 | 24458 | #endif |
db9f46a9 TG |
24459 | #ifdef HAVE_MATH_H |
24460 | #include <math.h> | |
24461 | #endif | |
24462 | ||
24463 | int (*ptr)() = (int (*)())jnl; | |
24464 | ||
e8525382 SK |
24465 | int |
24466 | main () | |
24467 | { | |
e8525382 SK |
24468 | return 0; |
24469 | } | |
db9f46a9 | 24470 | |
e8525382 | 24471 | _ACEOF |
5213506e | 24472 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24473 | gcc_cv_math_func_jnl=yes |
e8525382 | 24474 | else |
db9f46a9 | 24475 | gcc_cv_math_func_jnl=no |
e8525382 | 24476 | fi |
5213506e RW |
24477 | rm -f core conftest.err conftest.$ac_objext \ |
24478 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24479 | fi |
db9f46a9 TG |
24480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5 |
24481 | $as_echo "$gcc_cv_math_func_jnl" >&6; } | |
24482 | if test $gcc_cv_math_func_jnl = yes; then | |
f1cdfa01 | 24483 | |
f38a14ca TG |
24484 | cat >>confdefs.h <<_ACEOF |
24485 | #define HAVE_JNL 1 | |
24486 | _ACEOF | |
e8525382 | 24487 | |
db9f46a9 | 24488 | fi |
e8525382 | 24489 | |
e8525382 | 24490 | |
db9f46a9 TG |
24491 | |
24492 | ||
24493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5 | |
24494 | $as_echo_n "checking for y0f... " >&6; } | |
22e05272 | 24495 | if ${gcc_cv_math_func_y0f+:} false; then : |
5213506e | 24496 | $as_echo_n "(cached) " >&6 |
e8525382 | 24497 | else |
db9f46a9 | 24498 | if test x$gcc_no_link = xyes; then |
22e05272 | 24499 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24500 | fi |
5213506e | 24501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24502 | /* end confdefs.h. */ |
24503 | ||
db9f46a9 TG |
24504 | #ifdef HAVE_COMPLEX_H |
24505 | #include <complex.h> | |
24506 | #endif | |
24507 | #ifdef HAVE_MATH_H | |
24508 | #include <math.h> | |
e8525382 | 24509 | #endif |
db9f46a9 TG |
24510 | |
24511 | int (*ptr)() = (int (*)())y0f; | |
24512 | ||
e8525382 SK |
24513 | int |
24514 | main () | |
24515 | { | |
e8525382 SK |
24516 | return 0; |
24517 | } | |
db9f46a9 | 24518 | |
e8525382 | 24519 | _ACEOF |
5213506e | 24520 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24521 | gcc_cv_math_func_y0f=yes |
e8525382 | 24522 | else |
db9f46a9 | 24523 | gcc_cv_math_func_y0f=no |
e8525382 | 24524 | fi |
5213506e RW |
24525 | rm -f core conftest.err conftest.$ac_objext \ |
24526 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24527 | fi |
db9f46a9 TG |
24528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5 |
24529 | $as_echo "$gcc_cv_math_func_y0f" >&6; } | |
24530 | if test $gcc_cv_math_func_y0f = yes; then | |
f1cdfa01 | 24531 | |
f38a14ca TG |
24532 | cat >>confdefs.h <<_ACEOF |
24533 | #define HAVE_Y0F 1 | |
24534 | _ACEOF | |
db9f46a9 TG |
24535 | |
24536 | fi | |
e8525382 | 24537 | |
e8525382 | 24538 | |
e8525382 | 24539 | |
db9f46a9 TG |
24540 | |
24541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5 | |
24542 | $as_echo_n "checking for y0... " >&6; } | |
22e05272 | 24543 | if ${gcc_cv_math_func_y0+:} false; then : |
5213506e | 24544 | $as_echo_n "(cached) " >&6 |
e8525382 | 24545 | else |
db9f46a9 | 24546 | if test x$gcc_no_link = xyes; then |
22e05272 | 24547 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24548 | fi |
5213506e | 24549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24550 | /* end confdefs.h. */ |
24551 | ||
db9f46a9 TG |
24552 | #ifdef HAVE_COMPLEX_H |
24553 | #include <complex.h> | |
e8525382 | 24554 | #endif |
db9f46a9 TG |
24555 | #ifdef HAVE_MATH_H |
24556 | #include <math.h> | |
24557 | #endif | |
24558 | ||
24559 | int (*ptr)() = (int (*)())y0; | |
24560 | ||
e8525382 SK |
24561 | int |
24562 | main () | |
24563 | { | |
e8525382 SK |
24564 | return 0; |
24565 | } | |
db9f46a9 | 24566 | |
e8525382 | 24567 | _ACEOF |
5213506e | 24568 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24569 | gcc_cv_math_func_y0=yes |
e8525382 | 24570 | else |
db9f46a9 | 24571 | gcc_cv_math_func_y0=no |
e8525382 | 24572 | fi |
5213506e RW |
24573 | rm -f core conftest.err conftest.$ac_objext \ |
24574 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24575 | fi |
db9f46a9 TG |
24576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5 |
24577 | $as_echo "$gcc_cv_math_func_y0" >&6; } | |
24578 | if test $gcc_cv_math_func_y0 = yes; then | |
f1cdfa01 | 24579 | |
f38a14ca TG |
24580 | cat >>confdefs.h <<_ACEOF |
24581 | #define HAVE_Y0 1 | |
24582 | _ACEOF | |
db9f46a9 TG |
24583 | |
24584 | fi | |
24585 | ||
e8525382 | 24586 | |
e8525382 | 24587 | |
e8525382 | 24588 | |
db9f46a9 TG |
24589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5 |
24590 | $as_echo_n "checking for y1f... " >&6; } | |
22e05272 | 24591 | if ${gcc_cv_math_func_y1f+:} false; then : |
5213506e | 24592 | $as_echo_n "(cached) " >&6 |
e8525382 | 24593 | else |
db9f46a9 | 24594 | if test x$gcc_no_link = xyes; then |
22e05272 | 24595 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24596 | fi |
5213506e | 24597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24598 | /* end confdefs.h. */ |
24599 | ||
db9f46a9 TG |
24600 | #ifdef HAVE_COMPLEX_H |
24601 | #include <complex.h> | |
e8525382 | 24602 | #endif |
db9f46a9 TG |
24603 | #ifdef HAVE_MATH_H |
24604 | #include <math.h> | |
24605 | #endif | |
24606 | ||
24607 | int (*ptr)() = (int (*)())y1f; | |
24608 | ||
e8525382 SK |
24609 | int |
24610 | main () | |
24611 | { | |
e8525382 SK |
24612 | return 0; |
24613 | } | |
db9f46a9 | 24614 | |
e8525382 | 24615 | _ACEOF |
5213506e | 24616 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24617 | gcc_cv_math_func_y1f=yes |
e8525382 | 24618 | else |
db9f46a9 | 24619 | gcc_cv_math_func_y1f=no |
e8525382 | 24620 | fi |
5213506e RW |
24621 | rm -f core conftest.err conftest.$ac_objext \ |
24622 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24623 | fi |
db9f46a9 TG |
24624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5 |
24625 | $as_echo "$gcc_cv_math_func_y1f" >&6; } | |
24626 | if test $gcc_cv_math_func_y1f = yes; then | |
f1cdfa01 | 24627 | |
f38a14ca TG |
24628 | cat >>confdefs.h <<_ACEOF |
24629 | #define HAVE_Y1F 1 | |
24630 | _ACEOF | |
e8525382 | 24631 | |
db9f46a9 | 24632 | fi |
e8525382 | 24633 | |
e8525382 | 24634 | |
db9f46a9 TG |
24635 | |
24636 | ||
24637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5 | |
24638 | $as_echo_n "checking for y1... " >&6; } | |
22e05272 | 24639 | if ${gcc_cv_math_func_y1+:} false; then : |
5213506e | 24640 | $as_echo_n "(cached) " >&6 |
e8525382 | 24641 | else |
db9f46a9 | 24642 | if test x$gcc_no_link = xyes; then |
22e05272 | 24643 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24644 | fi |
5213506e | 24645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24646 | /* end confdefs.h. */ |
24647 | ||
db9f46a9 TG |
24648 | #ifdef HAVE_COMPLEX_H |
24649 | #include <complex.h> | |
24650 | #endif | |
24651 | #ifdef HAVE_MATH_H | |
24652 | #include <math.h> | |
e8525382 | 24653 | #endif |
db9f46a9 TG |
24654 | |
24655 | int (*ptr)() = (int (*)())y1; | |
24656 | ||
e8525382 SK |
24657 | int |
24658 | main () | |
24659 | { | |
e8525382 SK |
24660 | return 0; |
24661 | } | |
db9f46a9 | 24662 | |
e8525382 | 24663 | _ACEOF |
5213506e | 24664 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24665 | gcc_cv_math_func_y1=yes |
e8525382 | 24666 | else |
db9f46a9 | 24667 | gcc_cv_math_func_y1=no |
e8525382 | 24668 | fi |
5213506e RW |
24669 | rm -f core conftest.err conftest.$ac_objext \ |
24670 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24671 | fi |
db9f46a9 TG |
24672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5 |
24673 | $as_echo "$gcc_cv_math_func_y1" >&6; } | |
24674 | if test $gcc_cv_math_func_y1 = yes; then | |
f1cdfa01 | 24675 | |
f38a14ca TG |
24676 | cat >>confdefs.h <<_ACEOF |
24677 | #define HAVE_Y1 1 | |
24678 | _ACEOF | |
db9f46a9 TG |
24679 | |
24680 | fi | |
e8525382 | 24681 | |
e8525382 | 24682 | |
e8525382 | 24683 | |
db9f46a9 | 24684 | |
db9f46a9 TG |
24685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5 |
24686 | $as_echo_n "checking for ynf... " >&6; } | |
22e05272 | 24687 | if ${gcc_cv_math_func_ynf+:} false; then : |
5213506e | 24688 | $as_echo_n "(cached) " >&6 |
db9f46a9 TG |
24689 | else |
24690 | if test x$gcc_no_link = xyes; then | |
22e05272 | 24691 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24692 | fi |
5213506e | 24693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24694 | /* end confdefs.h. */ |
24695 | ||
db9f46a9 TG |
24696 | #ifdef HAVE_COMPLEX_H |
24697 | #include <complex.h> | |
24698 | #endif | |
24699 | #ifdef HAVE_MATH_H | |
24700 | #include <math.h> | |
e8525382 | 24701 | #endif |
db9f46a9 TG |
24702 | |
24703 | int (*ptr)() = (int (*)())ynf; | |
24704 | ||
e8525382 SK |
24705 | int |
24706 | main () | |
24707 | { | |
e8525382 SK |
24708 | return 0; |
24709 | } | |
db9f46a9 | 24710 | |
e8525382 | 24711 | _ACEOF |
5213506e | 24712 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24713 | gcc_cv_math_func_ynf=yes |
e8525382 | 24714 | else |
db9f46a9 | 24715 | gcc_cv_math_func_ynf=no |
e8525382 | 24716 | fi |
5213506e RW |
24717 | rm -f core conftest.err conftest.$ac_objext \ |
24718 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24719 | fi |
db9f46a9 TG |
24720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5 |
24721 | $as_echo "$gcc_cv_math_func_ynf" >&6; } | |
24722 | if test $gcc_cv_math_func_ynf = yes; then | |
f1cdfa01 | 24723 | |
f38a14ca TG |
24724 | cat >>confdefs.h <<_ACEOF |
24725 | #define HAVE_YNF 1 | |
24726 | _ACEOF | |
db9f46a9 TG |
24727 | |
24728 | fi | |
e8525382 | 24729 | |
e8525382 | 24730 | |
e8525382 | 24731 | |
db9f46a9 TG |
24732 | |
24733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5 | |
24734 | $as_echo_n "checking for yn... " >&6; } | |
22e05272 | 24735 | if ${gcc_cv_math_func_yn+:} false; then : |
5213506e | 24736 | $as_echo_n "(cached) " >&6 |
e8525382 | 24737 | else |
db9f46a9 | 24738 | if test x$gcc_no_link = xyes; then |
22e05272 | 24739 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24740 | fi |
5213506e | 24741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24742 | /* end confdefs.h. */ |
24743 | ||
db9f46a9 TG |
24744 | #ifdef HAVE_COMPLEX_H |
24745 | #include <complex.h> | |
e8525382 | 24746 | #endif |
db9f46a9 TG |
24747 | #ifdef HAVE_MATH_H |
24748 | #include <math.h> | |
24749 | #endif | |
24750 | ||
24751 | int (*ptr)() = (int (*)())yn; | |
24752 | ||
e8525382 SK |
24753 | int |
24754 | main () | |
24755 | { | |
e8525382 SK |
24756 | return 0; |
24757 | } | |
db9f46a9 | 24758 | |
e8525382 | 24759 | _ACEOF |
5213506e | 24760 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24761 | gcc_cv_math_func_yn=yes |
e8525382 | 24762 | else |
db9f46a9 | 24763 | gcc_cv_math_func_yn=no |
e8525382 | 24764 | fi |
5213506e RW |
24765 | rm -f core conftest.err conftest.$ac_objext \ |
24766 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24767 | fi |
db9f46a9 TG |
24768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5 |
24769 | $as_echo "$gcc_cv_math_func_yn" >&6; } | |
24770 | if test $gcc_cv_math_func_yn = yes; then | |
f1cdfa01 | 24771 | |
f38a14ca TG |
24772 | cat >>confdefs.h <<_ACEOF |
24773 | #define HAVE_YN 1 | |
24774 | _ACEOF | |
db9f46a9 TG |
24775 | |
24776 | fi | |
24777 | ||
e8525382 | 24778 | |
e8525382 | 24779 | |
e8525382 | 24780 | |
db9f46a9 TG |
24781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5 |
24782 | $as_echo_n "checking for ynl... " >&6; } | |
22e05272 | 24783 | if ${gcc_cv_math_func_ynl+:} false; then : |
5213506e | 24784 | $as_echo_n "(cached) " >&6 |
e8525382 | 24785 | else |
db9f46a9 | 24786 | if test x$gcc_no_link = xyes; then |
22e05272 | 24787 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24788 | fi |
5213506e | 24789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24790 | /* end confdefs.h. */ |
24791 | ||
db9f46a9 TG |
24792 | #ifdef HAVE_COMPLEX_H |
24793 | #include <complex.h> | |
24794 | #endif | |
24795 | #ifdef HAVE_MATH_H | |
24796 | #include <math.h> | |
e8525382 | 24797 | #endif |
db9f46a9 TG |
24798 | |
24799 | int (*ptr)() = (int (*)())ynl; | |
24800 | ||
e8525382 SK |
24801 | int |
24802 | main () | |
24803 | { | |
e8525382 SK |
24804 | return 0; |
24805 | } | |
db9f46a9 | 24806 | |
e8525382 | 24807 | _ACEOF |
5213506e | 24808 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24809 | gcc_cv_math_func_ynl=yes |
e8525382 | 24810 | else |
db9f46a9 | 24811 | gcc_cv_math_func_ynl=no |
e8525382 | 24812 | fi |
5213506e RW |
24813 | rm -f core conftest.err conftest.$ac_objext \ |
24814 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24815 | fi |
db9f46a9 TG |
24816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5 |
24817 | $as_echo "$gcc_cv_math_func_ynl" >&6; } | |
24818 | if test $gcc_cv_math_func_ynl = yes; then | |
f1cdfa01 | 24819 | |
f38a14ca TG |
24820 | cat >>confdefs.h <<_ACEOF |
24821 | #define HAVE_YNL 1 | |
24822 | _ACEOF | |
db9f46a9 TG |
24823 | |
24824 | fi | |
e8525382 | 24825 | |
e8525382 | 24826 | |
e8525382 | 24827 | |
db9f46a9 TG |
24828 | |
24829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5 | |
24830 | $as_echo_n "checking for tgamma... " >&6; } | |
22e05272 | 24831 | if ${gcc_cv_math_func_tgamma+:} false; then : |
5213506e | 24832 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24833 | else |
db9f46a9 | 24834 | if test x$gcc_no_link = xyes; then |
22e05272 | 24835 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24836 | fi |
5213506e | 24837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24838 | /* end confdefs.h. */ |
24839 | ||
db9f46a9 TG |
24840 | #ifdef HAVE_COMPLEX_H |
24841 | #include <complex.h> | |
fb0a0e15 | 24842 | #endif |
db9f46a9 TG |
24843 | #ifdef HAVE_MATH_H |
24844 | #include <math.h> | |
24845 | #endif | |
24846 | ||
24847 | int (*ptr)() = (int (*)())tgamma; | |
24848 | ||
fb0a0e15 FXC |
24849 | int |
24850 | main () | |
24851 | { | |
fb0a0e15 FXC |
24852 | return 0; |
24853 | } | |
db9f46a9 | 24854 | |
fb0a0e15 | 24855 | _ACEOF |
5213506e | 24856 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24857 | gcc_cv_math_func_tgamma=yes |
fb0a0e15 | 24858 | else |
db9f46a9 | 24859 | gcc_cv_math_func_tgamma=no |
fb0a0e15 | 24860 | fi |
5213506e RW |
24861 | rm -f core conftest.err conftest.$ac_objext \ |
24862 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24863 | fi |
db9f46a9 TG |
24864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5 |
24865 | $as_echo "$gcc_cv_math_func_tgamma" >&6; } | |
24866 | if test $gcc_cv_math_func_tgamma = yes; then | |
f1cdfa01 | 24867 | |
f38a14ca TG |
24868 | cat >>confdefs.h <<_ACEOF |
24869 | #define HAVE_TGAMMA 1 | |
24870 | _ACEOF | |
fb0a0e15 | 24871 | |
db9f46a9 | 24872 | fi |
fb0a0e15 | 24873 | |
fb0a0e15 | 24874 | |
db9f46a9 TG |
24875 | |
24876 | ||
24877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5 | |
24878 | $as_echo_n "checking for tgammaf... " >&6; } | |
22e05272 | 24879 | if ${gcc_cv_math_func_tgammaf+:} false; then : |
5213506e | 24880 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24881 | else |
db9f46a9 | 24882 | if test x$gcc_no_link = xyes; then |
22e05272 | 24883 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24884 | fi |
5213506e | 24885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24886 | /* end confdefs.h. */ |
24887 | ||
db9f46a9 TG |
24888 | #ifdef HAVE_COMPLEX_H |
24889 | #include <complex.h> | |
24890 | #endif | |
24891 | #ifdef HAVE_MATH_H | |
24892 | #include <math.h> | |
fb0a0e15 | 24893 | #endif |
db9f46a9 TG |
24894 | |
24895 | int (*ptr)() = (int (*)())tgammaf; | |
24896 | ||
fb0a0e15 FXC |
24897 | int |
24898 | main () | |
24899 | { | |
fb0a0e15 FXC |
24900 | return 0; |
24901 | } | |
db9f46a9 | 24902 | |
fb0a0e15 | 24903 | _ACEOF |
5213506e | 24904 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24905 | gcc_cv_math_func_tgammaf=yes |
fb0a0e15 | 24906 | else |
db9f46a9 | 24907 | gcc_cv_math_func_tgammaf=no |
fb0a0e15 | 24908 | fi |
5213506e RW |
24909 | rm -f core conftest.err conftest.$ac_objext \ |
24910 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24911 | fi |
db9f46a9 TG |
24912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5 |
24913 | $as_echo "$gcc_cv_math_func_tgammaf" >&6; } | |
24914 | if test $gcc_cv_math_func_tgammaf = yes; then | |
f1cdfa01 | 24915 | |
f38a14ca TG |
24916 | cat >>confdefs.h <<_ACEOF |
24917 | #define HAVE_TGAMMAF 1 | |
24918 | _ACEOF | |
db9f46a9 TG |
24919 | |
24920 | fi | |
fb0a0e15 | 24921 | |
fb0a0e15 | 24922 | |
fb0a0e15 | 24923 | |
db9f46a9 | 24924 | |
db9f46a9 TG |
24925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5 |
24926 | $as_echo_n "checking for lgamma... " >&6; } | |
22e05272 | 24927 | if ${gcc_cv_math_func_lgamma+:} false; then : |
5213506e | 24928 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24929 | else |
db9f46a9 | 24930 | if test x$gcc_no_link = xyes; then |
22e05272 | 24931 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24932 | fi |
5213506e | 24933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24934 | /* end confdefs.h. */ |
24935 | ||
db9f46a9 TG |
24936 | #ifdef HAVE_COMPLEX_H |
24937 | #include <complex.h> | |
24938 | #endif | |
24939 | #ifdef HAVE_MATH_H | |
24940 | #include <math.h> | |
fb0a0e15 | 24941 | #endif |
db9f46a9 TG |
24942 | |
24943 | int (*ptr)() = (int (*)())lgamma; | |
24944 | ||
fb0a0e15 FXC |
24945 | int |
24946 | main () | |
24947 | { | |
fb0a0e15 FXC |
24948 | return 0; |
24949 | } | |
db9f46a9 | 24950 | |
fb0a0e15 | 24951 | _ACEOF |
5213506e | 24952 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24953 | gcc_cv_math_func_lgamma=yes |
fb0a0e15 | 24954 | else |
db9f46a9 | 24955 | gcc_cv_math_func_lgamma=no |
fb0a0e15 | 24956 | fi |
5213506e RW |
24957 | rm -f core conftest.err conftest.$ac_objext \ |
24958 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24959 | fi |
db9f46a9 TG |
24960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5 |
24961 | $as_echo "$gcc_cv_math_func_lgamma" >&6; } | |
24962 | if test $gcc_cv_math_func_lgamma = yes; then | |
f1cdfa01 | 24963 | |
f38a14ca TG |
24964 | cat >>confdefs.h <<_ACEOF |
24965 | #define HAVE_LGAMMA 1 | |
24966 | _ACEOF | |
db9f46a9 TG |
24967 | |
24968 | fi | |
fb0a0e15 | 24969 | |
fb0a0e15 | 24970 | |
fb0a0e15 | 24971 | |
db9f46a9 TG |
24972 | |
24973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5 | |
24974 | $as_echo_n "checking for lgammaf... " >&6; } | |
22e05272 | 24975 | if ${gcc_cv_math_func_lgammaf+:} false; then : |
5213506e | 24976 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24977 | else |
db9f46a9 | 24978 | if test x$gcc_no_link = xyes; then |
22e05272 | 24979 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24980 | fi |
5213506e | 24981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24982 | /* end confdefs.h. */ |
24983 | ||
db9f46a9 TG |
24984 | #ifdef HAVE_COMPLEX_H |
24985 | #include <complex.h> | |
fb0a0e15 | 24986 | #endif |
db9f46a9 TG |
24987 | #ifdef HAVE_MATH_H |
24988 | #include <math.h> | |
24989 | #endif | |
24990 | ||
24991 | int (*ptr)() = (int (*)())lgammaf; | |
24992 | ||
fb0a0e15 FXC |
24993 | int |
24994 | main () | |
24995 | { | |
fb0a0e15 FXC |
24996 | return 0; |
24997 | } | |
db9f46a9 | 24998 | |
fb0a0e15 | 24999 | _ACEOF |
5213506e | 25000 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 25001 | gcc_cv_math_func_lgammaf=yes |
fb0a0e15 | 25002 | else |
db9f46a9 | 25003 | gcc_cv_math_func_lgammaf=no |
fb0a0e15 | 25004 | fi |
5213506e RW |
25005 | rm -f core conftest.err conftest.$ac_objext \ |
25006 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 25007 | fi |
db9f46a9 TG |
25008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5 |
25009 | $as_echo "$gcc_cv_math_func_lgammaf" >&6; } | |
25010 | if test $gcc_cv_math_func_lgammaf = yes; then | |
f1cdfa01 | 25011 | |
f38a14ca TG |
25012 | cat >>confdefs.h <<_ACEOF |
25013 | #define HAVE_LGAMMAF 1 | |
25014 | _ACEOF | |
fb0a0e15 | 25015 | |
db9f46a9 | 25016 | fi |
fb0a0e15 | 25017 | |
fb0a0e15 | 25018 | |
db1cf15c | 25019 | # Check for GFORTRAN_C99_1.1 funcs |
db9f46a9 TG |
25020 | |
25021 | ||
25022 | ||
25023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5 | |
25024 | $as_echo_n "checking for cacos... " >&6; } | |
22e05272 | 25025 | if ${gcc_cv_math_func_cacos+:} false; then : |
db1cf15c IS |
25026 | $as_echo_n "(cached) " >&6 |
25027 | else | |
db9f46a9 | 25028 | if test x$gcc_no_link = xyes; then |
22e05272 | 25029 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25030 | fi |
25031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25032 | /* end confdefs.h. */ | |
25033 | ||
db9f46a9 TG |
25034 | #ifdef HAVE_COMPLEX_H |
25035 | #include <complex.h> | |
db1cf15c | 25036 | #endif |
db9f46a9 TG |
25037 | #ifdef HAVE_MATH_H |
25038 | #include <math.h> | |
25039 | #endif | |
25040 | ||
25041 | int (*ptr)() = (int (*)())cacos; | |
25042 | ||
db1cf15c IS |
25043 | int |
25044 | main () | |
25045 | { | |
db1cf15c IS |
25046 | return 0; |
25047 | } | |
db9f46a9 | 25048 | |
db1cf15c IS |
25049 | _ACEOF |
25050 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25051 | gcc_cv_math_func_cacos=yes |
db1cf15c | 25052 | else |
db9f46a9 | 25053 | gcc_cv_math_func_cacos=no |
db1cf15c IS |
25054 | fi |
25055 | rm -f core conftest.err conftest.$ac_objext \ | |
25056 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25057 | fi |
db9f46a9 TG |
25058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5 |
25059 | $as_echo "$gcc_cv_math_func_cacos" >&6; } | |
25060 | if test $gcc_cv_math_func_cacos = yes; then | |
f1cdfa01 | 25061 | |
f38a14ca TG |
25062 | cat >>confdefs.h <<_ACEOF |
25063 | #define HAVE_CACOS 1 | |
25064 | _ACEOF | |
db1cf15c | 25065 | |
db9f46a9 | 25066 | fi |
db1cf15c | 25067 | |
db1cf15c | 25068 | |
db9f46a9 TG |
25069 | |
25070 | ||
25071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5 | |
25072 | $as_echo_n "checking for cacosf... " >&6; } | |
22e05272 | 25073 | if ${gcc_cv_math_func_cacosf+:} false; then : |
db1cf15c IS |
25074 | $as_echo_n "(cached) " >&6 |
25075 | else | |
db9f46a9 | 25076 | if test x$gcc_no_link = xyes; then |
22e05272 | 25077 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25078 | fi |
25079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25080 | /* end confdefs.h. */ | |
25081 | ||
db9f46a9 TG |
25082 | #ifdef HAVE_COMPLEX_H |
25083 | #include <complex.h> | |
25084 | #endif | |
25085 | #ifdef HAVE_MATH_H | |
25086 | #include <math.h> | |
db1cf15c | 25087 | #endif |
db9f46a9 TG |
25088 | |
25089 | int (*ptr)() = (int (*)())cacosf; | |
25090 | ||
db1cf15c IS |
25091 | int |
25092 | main () | |
25093 | { | |
db1cf15c IS |
25094 | return 0; |
25095 | } | |
db9f46a9 | 25096 | |
db1cf15c IS |
25097 | _ACEOF |
25098 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25099 | gcc_cv_math_func_cacosf=yes |
db1cf15c | 25100 | else |
db9f46a9 | 25101 | gcc_cv_math_func_cacosf=no |
db1cf15c IS |
25102 | fi |
25103 | rm -f core conftest.err conftest.$ac_objext \ | |
25104 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25105 | fi |
db9f46a9 TG |
25106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5 |
25107 | $as_echo "$gcc_cv_math_func_cacosf" >&6; } | |
25108 | if test $gcc_cv_math_func_cacosf = yes; then | |
f1cdfa01 | 25109 | |
f38a14ca TG |
25110 | cat >>confdefs.h <<_ACEOF |
25111 | #define HAVE_CACOSF 1 | |
25112 | _ACEOF | |
db9f46a9 TG |
25113 | |
25114 | fi | |
db1cf15c | 25115 | |
db1cf15c | 25116 | |
db1cf15c | 25117 | |
db9f46a9 TG |
25118 | |
25119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5 | |
25120 | $as_echo_n "checking for cacosh... " >&6; } | |
22e05272 | 25121 | if ${gcc_cv_math_func_cacosh+:} false; then : |
db1cf15c IS |
25122 | $as_echo_n "(cached) " >&6 |
25123 | else | |
db9f46a9 | 25124 | if test x$gcc_no_link = xyes; then |
22e05272 | 25125 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25126 | fi |
25127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25128 | /* end confdefs.h. */ | |
25129 | ||
db9f46a9 TG |
25130 | #ifdef HAVE_COMPLEX_H |
25131 | #include <complex.h> | |
db1cf15c | 25132 | #endif |
db9f46a9 TG |
25133 | #ifdef HAVE_MATH_H |
25134 | #include <math.h> | |
25135 | #endif | |
25136 | ||
25137 | int (*ptr)() = (int (*)())cacosh; | |
25138 | ||
db1cf15c IS |
25139 | int |
25140 | main () | |
25141 | { | |
db1cf15c IS |
25142 | return 0; |
25143 | } | |
db9f46a9 | 25144 | |
db1cf15c IS |
25145 | _ACEOF |
25146 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25147 | gcc_cv_math_func_cacosh=yes |
db1cf15c | 25148 | else |
db9f46a9 | 25149 | gcc_cv_math_func_cacosh=no |
db1cf15c IS |
25150 | fi |
25151 | rm -f core conftest.err conftest.$ac_objext \ | |
25152 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25153 | fi |
db9f46a9 TG |
25154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5 |
25155 | $as_echo "$gcc_cv_math_func_cacosh" >&6; } | |
25156 | if test $gcc_cv_math_func_cacosh = yes; then | |
f1cdfa01 | 25157 | |
f38a14ca TG |
25158 | cat >>confdefs.h <<_ACEOF |
25159 | #define HAVE_CACOSH 1 | |
25160 | _ACEOF | |
db9f46a9 TG |
25161 | |
25162 | fi | |
25163 | ||
db1cf15c | 25164 | |
db1cf15c | 25165 | |
db1cf15c | 25166 | |
db9f46a9 TG |
25167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5 |
25168 | $as_echo_n "checking for cacoshf... " >&6; } | |
22e05272 | 25169 | if ${gcc_cv_math_func_cacoshf+:} false; then : |
db1cf15c IS |
25170 | $as_echo_n "(cached) " >&6 |
25171 | else | |
db9f46a9 | 25172 | if test x$gcc_no_link = xyes; then |
22e05272 | 25173 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25174 | fi |
25175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25176 | /* end confdefs.h. */ | |
25177 | ||
db9f46a9 TG |
25178 | #ifdef HAVE_COMPLEX_H |
25179 | #include <complex.h> | |
25180 | #endif | |
25181 | #ifdef HAVE_MATH_H | |
25182 | #include <math.h> | |
db1cf15c | 25183 | #endif |
db9f46a9 TG |
25184 | |
25185 | int (*ptr)() = (int (*)())cacoshf; | |
25186 | ||
db1cf15c IS |
25187 | int |
25188 | main () | |
25189 | { | |
db1cf15c IS |
25190 | return 0; |
25191 | } | |
db9f46a9 | 25192 | |
db1cf15c IS |
25193 | _ACEOF |
25194 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25195 | gcc_cv_math_func_cacoshf=yes |
db1cf15c | 25196 | else |
db9f46a9 | 25197 | gcc_cv_math_func_cacoshf=no |
db1cf15c IS |
25198 | fi |
25199 | rm -f core conftest.err conftest.$ac_objext \ | |
25200 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25201 | fi |
db9f46a9 TG |
25202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5 |
25203 | $as_echo "$gcc_cv_math_func_cacoshf" >&6; } | |
25204 | if test $gcc_cv_math_func_cacoshf = yes; then | |
f1cdfa01 | 25205 | |
f38a14ca TG |
25206 | cat >>confdefs.h <<_ACEOF |
25207 | #define HAVE_CACOSHF 1 | |
25208 | _ACEOF | |
db9f46a9 TG |
25209 | |
25210 | fi | |
db1cf15c | 25211 | |
db1cf15c | 25212 | |
db1cf15c | 25213 | |
db9f46a9 TG |
25214 | |
25215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5 | |
25216 | $as_echo_n "checking for cacoshl... " >&6; } | |
22e05272 | 25217 | if ${gcc_cv_math_func_cacoshl+:} false; then : |
db1cf15c IS |
25218 | $as_echo_n "(cached) " >&6 |
25219 | else | |
db9f46a9 | 25220 | if test x$gcc_no_link = xyes; then |
22e05272 | 25221 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25222 | fi |
25223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25224 | /* end confdefs.h. */ | |
25225 | ||
db9f46a9 TG |
25226 | #ifdef HAVE_COMPLEX_H |
25227 | #include <complex.h> | |
db1cf15c | 25228 | #endif |
db9f46a9 TG |
25229 | #ifdef HAVE_MATH_H |
25230 | #include <math.h> | |
25231 | #endif | |
25232 | ||
25233 | int (*ptr)() = (int (*)())cacoshl; | |
25234 | ||
db1cf15c IS |
25235 | int |
25236 | main () | |
25237 | { | |
db1cf15c IS |
25238 | return 0; |
25239 | } | |
db9f46a9 | 25240 | |
db1cf15c IS |
25241 | _ACEOF |
25242 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25243 | gcc_cv_math_func_cacoshl=yes |
db1cf15c | 25244 | else |
db9f46a9 | 25245 | gcc_cv_math_func_cacoshl=no |
db1cf15c IS |
25246 | fi |
25247 | rm -f core conftest.err conftest.$ac_objext \ | |
25248 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25249 | fi |
db9f46a9 TG |
25250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5 |
25251 | $as_echo "$gcc_cv_math_func_cacoshl" >&6; } | |
25252 | if test $gcc_cv_math_func_cacoshl = yes; then | |
f1cdfa01 | 25253 | |
f38a14ca TG |
25254 | cat >>confdefs.h <<_ACEOF |
25255 | #define HAVE_CACOSHL 1 | |
25256 | _ACEOF | |
db1cf15c | 25257 | |
db9f46a9 | 25258 | fi |
db1cf15c | 25259 | |
db1cf15c | 25260 | |
db9f46a9 TG |
25261 | |
25262 | ||
25263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5 | |
25264 | $as_echo_n "checking for cacosl... " >&6; } | |
22e05272 | 25265 | if ${gcc_cv_math_func_cacosl+:} false; then : |
db1cf15c IS |
25266 | $as_echo_n "(cached) " >&6 |
25267 | else | |
db9f46a9 | 25268 | if test x$gcc_no_link = xyes; then |
22e05272 | 25269 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25270 | fi |
25271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25272 | /* end confdefs.h. */ | |
25273 | ||
db9f46a9 TG |
25274 | #ifdef HAVE_COMPLEX_H |
25275 | #include <complex.h> | |
25276 | #endif | |
25277 | #ifdef HAVE_MATH_H | |
25278 | #include <math.h> | |
db1cf15c | 25279 | #endif |
db9f46a9 TG |
25280 | |
25281 | int (*ptr)() = (int (*)())cacosl; | |
25282 | ||
db1cf15c IS |
25283 | int |
25284 | main () | |
25285 | { | |
db1cf15c IS |
25286 | return 0; |
25287 | } | |
db9f46a9 | 25288 | |
db1cf15c IS |
25289 | _ACEOF |
25290 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25291 | gcc_cv_math_func_cacosl=yes |
db1cf15c | 25292 | else |
db9f46a9 | 25293 | gcc_cv_math_func_cacosl=no |
db1cf15c IS |
25294 | fi |
25295 | rm -f core conftest.err conftest.$ac_objext \ | |
25296 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25297 | fi |
db9f46a9 TG |
25298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5 |
25299 | $as_echo "$gcc_cv_math_func_cacosl" >&6; } | |
25300 | if test $gcc_cv_math_func_cacosl = yes; then | |
f1cdfa01 | 25301 | |
f38a14ca TG |
25302 | cat >>confdefs.h <<_ACEOF |
25303 | #define HAVE_CACOSL 1 | |
25304 | _ACEOF | |
db9f46a9 TG |
25305 | |
25306 | fi | |
db1cf15c | 25307 | |
db1cf15c | 25308 | |
db1cf15c | 25309 | |
db9f46a9 TG |
25310 | |
25311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5 | |
25312 | $as_echo_n "checking for casin... " >&6; } | |
22e05272 | 25313 | if ${gcc_cv_math_func_casin+:} false; then : |
db1cf15c IS |
25314 | $as_echo_n "(cached) " >&6 |
25315 | else | |
db9f46a9 | 25316 | if test x$gcc_no_link = xyes; then |
22e05272 | 25317 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25318 | fi |
25319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25320 | /* end confdefs.h. */ | |
25321 | ||
db9f46a9 TG |
25322 | #ifdef HAVE_COMPLEX_H |
25323 | #include <complex.h> | |
db1cf15c | 25324 | #endif |
db9f46a9 TG |
25325 | #ifdef HAVE_MATH_H |
25326 | #include <math.h> | |
25327 | #endif | |
25328 | ||
25329 | int (*ptr)() = (int (*)())casin; | |
25330 | ||
db1cf15c IS |
25331 | int |
25332 | main () | |
25333 | { | |
db1cf15c IS |
25334 | return 0; |
25335 | } | |
db9f46a9 | 25336 | |
db1cf15c IS |
25337 | _ACEOF |
25338 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25339 | gcc_cv_math_func_casin=yes |
db1cf15c | 25340 | else |
db9f46a9 | 25341 | gcc_cv_math_func_casin=no |
db1cf15c IS |
25342 | fi |
25343 | rm -f core conftest.err conftest.$ac_objext \ | |
25344 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25345 | fi |
db9f46a9 TG |
25346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5 |
25347 | $as_echo "$gcc_cv_math_func_casin" >&6; } | |
25348 | if test $gcc_cv_math_func_casin = yes; then | |
f1cdfa01 | 25349 | |
f38a14ca TG |
25350 | cat >>confdefs.h <<_ACEOF |
25351 | #define HAVE_CASIN 1 | |
25352 | _ACEOF | |
db9f46a9 TG |
25353 | |
25354 | fi | |
25355 | ||
db1cf15c | 25356 | |
db1cf15c | 25357 | |
db1cf15c | 25358 | |
db9f46a9 TG |
25359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5 |
25360 | $as_echo_n "checking for casinf... " >&6; } | |
22e05272 | 25361 | if ${gcc_cv_math_func_casinf+:} false; then : |
db1cf15c IS |
25362 | $as_echo_n "(cached) " >&6 |
25363 | else | |
db9f46a9 | 25364 | if test x$gcc_no_link = xyes; then |
22e05272 | 25365 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25366 | fi |
25367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25368 | /* end confdefs.h. */ | |
25369 | ||
db9f46a9 TG |
25370 | #ifdef HAVE_COMPLEX_H |
25371 | #include <complex.h> | |
25372 | #endif | |
25373 | #ifdef HAVE_MATH_H | |
25374 | #include <math.h> | |
db1cf15c | 25375 | #endif |
db9f46a9 TG |
25376 | |
25377 | int (*ptr)() = (int (*)())casinf; | |
25378 | ||
db1cf15c IS |
25379 | int |
25380 | main () | |
25381 | { | |
db1cf15c IS |
25382 | return 0; |
25383 | } | |
db9f46a9 | 25384 | |
db1cf15c IS |
25385 | _ACEOF |
25386 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25387 | gcc_cv_math_func_casinf=yes |
db1cf15c | 25388 | else |
db9f46a9 | 25389 | gcc_cv_math_func_casinf=no |
db1cf15c IS |
25390 | fi |
25391 | rm -f core conftest.err conftest.$ac_objext \ | |
25392 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25393 | fi |
db9f46a9 TG |
25394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5 |
25395 | $as_echo "$gcc_cv_math_func_casinf" >&6; } | |
25396 | if test $gcc_cv_math_func_casinf = yes; then | |
f1cdfa01 | 25397 | |
f38a14ca TG |
25398 | cat >>confdefs.h <<_ACEOF |
25399 | #define HAVE_CASINF 1 | |
25400 | _ACEOF | |
db9f46a9 TG |
25401 | |
25402 | fi | |
db1cf15c | 25403 | |
db1cf15c | 25404 | |
db1cf15c | 25405 | |
db9f46a9 TG |
25406 | |
25407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5 | |
25408 | $as_echo_n "checking for casinh... " >&6; } | |
22e05272 | 25409 | if ${gcc_cv_math_func_casinh+:} false; then : |
db1cf15c IS |
25410 | $as_echo_n "(cached) " >&6 |
25411 | else | |
db9f46a9 | 25412 | if test x$gcc_no_link = xyes; then |
22e05272 | 25413 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25414 | fi |
25415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25416 | /* end confdefs.h. */ | |
25417 | ||
db9f46a9 TG |
25418 | #ifdef HAVE_COMPLEX_H |
25419 | #include <complex.h> | |
db1cf15c | 25420 | #endif |
db9f46a9 TG |
25421 | #ifdef HAVE_MATH_H |
25422 | #include <math.h> | |
25423 | #endif | |
25424 | ||
25425 | int (*ptr)() = (int (*)())casinh; | |
25426 | ||
db1cf15c IS |
25427 | int |
25428 | main () | |
25429 | { | |
db1cf15c IS |
25430 | return 0; |
25431 | } | |
db9f46a9 | 25432 | |
db1cf15c IS |
25433 | _ACEOF |
25434 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25435 | gcc_cv_math_func_casinh=yes |
db1cf15c | 25436 | else |
db9f46a9 | 25437 | gcc_cv_math_func_casinh=no |
db1cf15c IS |
25438 | fi |
25439 | rm -f core conftest.err conftest.$ac_objext \ | |
25440 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25441 | fi |
db9f46a9 TG |
25442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5 |
25443 | $as_echo "$gcc_cv_math_func_casinh" >&6; } | |
25444 | if test $gcc_cv_math_func_casinh = yes; then | |
f1cdfa01 | 25445 | |
f38a14ca TG |
25446 | cat >>confdefs.h <<_ACEOF |
25447 | #define HAVE_CASINH 1 | |
25448 | _ACEOF | |
db1cf15c | 25449 | |
db9f46a9 | 25450 | fi |
db1cf15c | 25451 | |
db1cf15c | 25452 | |
db9f46a9 TG |
25453 | |
25454 | ||
25455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5 | |
25456 | $as_echo_n "checking for casinhf... " >&6; } | |
22e05272 | 25457 | if ${gcc_cv_math_func_casinhf+:} false; then : |
db1cf15c IS |
25458 | $as_echo_n "(cached) " >&6 |
25459 | else | |
db9f46a9 | 25460 | if test x$gcc_no_link = xyes; then |
22e05272 | 25461 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25462 | fi |
25463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25464 | /* end confdefs.h. */ | |
25465 | ||
db9f46a9 TG |
25466 | #ifdef HAVE_COMPLEX_H |
25467 | #include <complex.h> | |
25468 | #endif | |
25469 | #ifdef HAVE_MATH_H | |
25470 | #include <math.h> | |
db1cf15c | 25471 | #endif |
db9f46a9 TG |
25472 | |
25473 | int (*ptr)() = (int (*)())casinhf; | |
25474 | ||
db1cf15c IS |
25475 | int |
25476 | main () | |
25477 | { | |
db1cf15c IS |
25478 | return 0; |
25479 | } | |
db9f46a9 | 25480 | |
db1cf15c IS |
25481 | _ACEOF |
25482 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25483 | gcc_cv_math_func_casinhf=yes |
db1cf15c | 25484 | else |
db9f46a9 | 25485 | gcc_cv_math_func_casinhf=no |
db1cf15c IS |
25486 | fi |
25487 | rm -f core conftest.err conftest.$ac_objext \ | |
25488 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25489 | fi |
db9f46a9 TG |
25490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5 |
25491 | $as_echo "$gcc_cv_math_func_casinhf" >&6; } | |
25492 | if test $gcc_cv_math_func_casinhf = yes; then | |
f1cdfa01 | 25493 | |
f38a14ca TG |
25494 | cat >>confdefs.h <<_ACEOF |
25495 | #define HAVE_CASINHF 1 | |
25496 | _ACEOF | |
db9f46a9 TG |
25497 | |
25498 | fi | |
db1cf15c | 25499 | |
db1cf15c | 25500 | |
db1cf15c | 25501 | |
db9f46a9 TG |
25502 | |
25503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5 | |
25504 | $as_echo_n "checking for casinhl... " >&6; } | |
22e05272 | 25505 | if ${gcc_cv_math_func_casinhl+:} false; then : |
db1cf15c IS |
25506 | $as_echo_n "(cached) " >&6 |
25507 | else | |
db9f46a9 | 25508 | if test x$gcc_no_link = xyes; then |
22e05272 | 25509 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25510 | fi |
25511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25512 | /* end confdefs.h. */ | |
25513 | ||
db9f46a9 TG |
25514 | #ifdef HAVE_COMPLEX_H |
25515 | #include <complex.h> | |
db1cf15c | 25516 | #endif |
db9f46a9 TG |
25517 | #ifdef HAVE_MATH_H |
25518 | #include <math.h> | |
25519 | #endif | |
25520 | ||
25521 | int (*ptr)() = (int (*)())casinhl; | |
25522 | ||
db1cf15c IS |
25523 | int |
25524 | main () | |
25525 | { | |
db1cf15c IS |
25526 | return 0; |
25527 | } | |
db9f46a9 | 25528 | |
db1cf15c IS |
25529 | _ACEOF |
25530 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25531 | gcc_cv_math_func_casinhl=yes |
db1cf15c | 25532 | else |
db9f46a9 | 25533 | gcc_cv_math_func_casinhl=no |
db1cf15c IS |
25534 | fi |
25535 | rm -f core conftest.err conftest.$ac_objext \ | |
25536 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25537 | fi |
db9f46a9 TG |
25538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5 |
25539 | $as_echo "$gcc_cv_math_func_casinhl" >&6; } | |
25540 | if test $gcc_cv_math_func_casinhl = yes; then | |
f1cdfa01 | 25541 | |
f38a14ca TG |
25542 | cat >>confdefs.h <<_ACEOF |
25543 | #define HAVE_CASINHL 1 | |
25544 | _ACEOF | |
db9f46a9 TG |
25545 | |
25546 | fi | |
25547 | ||
db1cf15c | 25548 | |
db1cf15c | 25549 | |
db1cf15c | 25550 | |
db9f46a9 TG |
25551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5 |
25552 | $as_echo_n "checking for casinl... " >&6; } | |
22e05272 | 25553 | if ${gcc_cv_math_func_casinl+:} false; then : |
db1cf15c IS |
25554 | $as_echo_n "(cached) " >&6 |
25555 | else | |
db9f46a9 | 25556 | if test x$gcc_no_link = xyes; then |
22e05272 | 25557 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25558 | fi |
25559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25560 | /* end confdefs.h. */ | |
25561 | ||
db9f46a9 TG |
25562 | #ifdef HAVE_COMPLEX_H |
25563 | #include <complex.h> | |
25564 | #endif | |
25565 | #ifdef HAVE_MATH_H | |
25566 | #include <math.h> | |
db1cf15c | 25567 | #endif |
db9f46a9 TG |
25568 | |
25569 | int (*ptr)() = (int (*)())casinl; | |
25570 | ||
db1cf15c IS |
25571 | int |
25572 | main () | |
25573 | { | |
db1cf15c IS |
25574 | return 0; |
25575 | } | |
db9f46a9 | 25576 | |
db1cf15c IS |
25577 | _ACEOF |
25578 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25579 | gcc_cv_math_func_casinl=yes |
db1cf15c | 25580 | else |
db9f46a9 | 25581 | gcc_cv_math_func_casinl=no |
db1cf15c IS |
25582 | fi |
25583 | rm -f core conftest.err conftest.$ac_objext \ | |
25584 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25585 | fi |
db9f46a9 TG |
25586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5 |
25587 | $as_echo "$gcc_cv_math_func_casinl" >&6; } | |
25588 | if test $gcc_cv_math_func_casinl = yes; then | |
f1cdfa01 | 25589 | |
f38a14ca TG |
25590 | cat >>confdefs.h <<_ACEOF |
25591 | #define HAVE_CASINL 1 | |
25592 | _ACEOF | |
db9f46a9 TG |
25593 | |
25594 | fi | |
db1cf15c | 25595 | |
db1cf15c | 25596 | |
db1cf15c | 25597 | |
db9f46a9 TG |
25598 | |
25599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5 | |
25600 | $as_echo_n "checking for catan... " >&6; } | |
22e05272 | 25601 | if ${gcc_cv_math_func_catan+:} false; then : |
db1cf15c IS |
25602 | $as_echo_n "(cached) " >&6 |
25603 | else | |
db9f46a9 | 25604 | if test x$gcc_no_link = xyes; then |
22e05272 | 25605 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25606 | fi |
25607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25608 | /* end confdefs.h. */ | |
25609 | ||
db9f46a9 TG |
25610 | #ifdef HAVE_COMPLEX_H |
25611 | #include <complex.h> | |
db1cf15c | 25612 | #endif |
db9f46a9 TG |
25613 | #ifdef HAVE_MATH_H |
25614 | #include <math.h> | |
25615 | #endif | |
25616 | ||
25617 | int (*ptr)() = (int (*)())catan; | |
25618 | ||
db1cf15c IS |
25619 | int |
25620 | main () | |
25621 | { | |
db1cf15c IS |
25622 | return 0; |
25623 | } | |
db9f46a9 | 25624 | |
db1cf15c IS |
25625 | _ACEOF |
25626 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25627 | gcc_cv_math_func_catan=yes |
db1cf15c | 25628 | else |
db9f46a9 | 25629 | gcc_cv_math_func_catan=no |
db1cf15c IS |
25630 | fi |
25631 | rm -f core conftest.err conftest.$ac_objext \ | |
25632 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25633 | fi |
db9f46a9 TG |
25634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5 |
25635 | $as_echo "$gcc_cv_math_func_catan" >&6; } | |
25636 | if test $gcc_cv_math_func_catan = yes; then | |
f1cdfa01 | 25637 | |
f38a14ca TG |
25638 | cat >>confdefs.h <<_ACEOF |
25639 | #define HAVE_CATAN 1 | |
25640 | _ACEOF | |
db1cf15c | 25641 | |
db9f46a9 | 25642 | fi |
db1cf15c | 25643 | |
db1cf15c | 25644 | |
db9f46a9 TG |
25645 | |
25646 | ||
25647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5 | |
25648 | $as_echo_n "checking for catanf... " >&6; } | |
22e05272 | 25649 | if ${gcc_cv_math_func_catanf+:} false; then : |
db1cf15c IS |
25650 | $as_echo_n "(cached) " >&6 |
25651 | else | |
db9f46a9 | 25652 | if test x$gcc_no_link = xyes; then |
22e05272 | 25653 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25654 | fi |
25655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25656 | /* end confdefs.h. */ | |
25657 | ||
db9f46a9 TG |
25658 | #ifdef HAVE_COMPLEX_H |
25659 | #include <complex.h> | |
25660 | #endif | |
25661 | #ifdef HAVE_MATH_H | |
25662 | #include <math.h> | |
db1cf15c | 25663 | #endif |
db9f46a9 TG |
25664 | |
25665 | int (*ptr)() = (int (*)())catanf; | |
25666 | ||
db1cf15c IS |
25667 | int |
25668 | main () | |
25669 | { | |
db1cf15c IS |
25670 | return 0; |
25671 | } | |
db9f46a9 | 25672 | |
db1cf15c IS |
25673 | _ACEOF |
25674 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25675 | gcc_cv_math_func_catanf=yes |
db1cf15c | 25676 | else |
db9f46a9 | 25677 | gcc_cv_math_func_catanf=no |
db1cf15c IS |
25678 | fi |
25679 | rm -f core conftest.err conftest.$ac_objext \ | |
25680 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25681 | fi |
db9f46a9 TG |
25682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5 |
25683 | $as_echo "$gcc_cv_math_func_catanf" >&6; } | |
25684 | if test $gcc_cv_math_func_catanf = yes; then | |
f1cdfa01 | 25685 | |
f38a14ca TG |
25686 | cat >>confdefs.h <<_ACEOF |
25687 | #define HAVE_CATANF 1 | |
25688 | _ACEOF | |
db9f46a9 TG |
25689 | |
25690 | fi | |
db1cf15c | 25691 | |
db1cf15c | 25692 | |
db1cf15c | 25693 | |
db9f46a9 TG |
25694 | |
25695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5 | |
25696 | $as_echo_n "checking for catanh... " >&6; } | |
22e05272 | 25697 | if ${gcc_cv_math_func_catanh+:} false; then : |
db1cf15c IS |
25698 | $as_echo_n "(cached) " >&6 |
25699 | else | |
db9f46a9 | 25700 | if test x$gcc_no_link = xyes; then |
22e05272 | 25701 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25702 | fi |
25703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25704 | /* end confdefs.h. */ | |
25705 | ||
db9f46a9 TG |
25706 | #ifdef HAVE_COMPLEX_H |
25707 | #include <complex.h> | |
db1cf15c | 25708 | #endif |
db9f46a9 TG |
25709 | #ifdef HAVE_MATH_H |
25710 | #include <math.h> | |
25711 | #endif | |
25712 | ||
25713 | int (*ptr)() = (int (*)())catanh; | |
25714 | ||
db1cf15c IS |
25715 | int |
25716 | main () | |
25717 | { | |
db1cf15c IS |
25718 | return 0; |
25719 | } | |
db9f46a9 | 25720 | |
db1cf15c IS |
25721 | _ACEOF |
25722 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25723 | gcc_cv_math_func_catanh=yes |
db1cf15c | 25724 | else |
db9f46a9 | 25725 | gcc_cv_math_func_catanh=no |
db1cf15c IS |
25726 | fi |
25727 | rm -f core conftest.err conftest.$ac_objext \ | |
25728 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25729 | fi |
db9f46a9 TG |
25730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5 |
25731 | $as_echo "$gcc_cv_math_func_catanh" >&6; } | |
25732 | if test $gcc_cv_math_func_catanh = yes; then | |
f1cdfa01 | 25733 | |
f38a14ca TG |
25734 | cat >>confdefs.h <<_ACEOF |
25735 | #define HAVE_CATANH 1 | |
25736 | _ACEOF | |
db9f46a9 TG |
25737 | |
25738 | fi | |
25739 | ||
db1cf15c | 25740 | |
db1cf15c | 25741 | |
db1cf15c | 25742 | |
db9f46a9 TG |
25743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5 |
25744 | $as_echo_n "checking for catanhf... " >&6; } | |
22e05272 | 25745 | if ${gcc_cv_math_func_catanhf+:} false; then : |
db1cf15c IS |
25746 | $as_echo_n "(cached) " >&6 |
25747 | else | |
db9f46a9 | 25748 | if test x$gcc_no_link = xyes; then |
22e05272 | 25749 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25750 | fi |
25751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25752 | /* end confdefs.h. */ | |
25753 | ||
db9f46a9 TG |
25754 | #ifdef HAVE_COMPLEX_H |
25755 | #include <complex.h> | |
25756 | #endif | |
25757 | #ifdef HAVE_MATH_H | |
25758 | #include <math.h> | |
db1cf15c | 25759 | #endif |
db9f46a9 TG |
25760 | |
25761 | int (*ptr)() = (int (*)())catanhf; | |
25762 | ||
db1cf15c IS |
25763 | int |
25764 | main () | |
25765 | { | |
db1cf15c IS |
25766 | return 0; |
25767 | } | |
db9f46a9 | 25768 | |
db1cf15c IS |
25769 | _ACEOF |
25770 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25771 | gcc_cv_math_func_catanhf=yes |
db1cf15c | 25772 | else |
db9f46a9 | 25773 | gcc_cv_math_func_catanhf=no |
db1cf15c IS |
25774 | fi |
25775 | rm -f core conftest.err conftest.$ac_objext \ | |
25776 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25777 | fi |
db9f46a9 TG |
25778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5 |
25779 | $as_echo "$gcc_cv_math_func_catanhf" >&6; } | |
25780 | if test $gcc_cv_math_func_catanhf = yes; then | |
f1cdfa01 | 25781 | |
f38a14ca TG |
25782 | cat >>confdefs.h <<_ACEOF |
25783 | #define HAVE_CATANHF 1 | |
25784 | _ACEOF | |
db9f46a9 TG |
25785 | |
25786 | fi | |
db1cf15c | 25787 | |
db1cf15c | 25788 | |
db1cf15c | 25789 | |
db9f46a9 TG |
25790 | |
25791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5 | |
25792 | $as_echo_n "checking for catanhl... " >&6; } | |
22e05272 | 25793 | if ${gcc_cv_math_func_catanhl+:} false; then : |
db1cf15c IS |
25794 | $as_echo_n "(cached) " >&6 |
25795 | else | |
db9f46a9 | 25796 | if test x$gcc_no_link = xyes; then |
22e05272 | 25797 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25798 | fi |
25799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25800 | /* end confdefs.h. */ | |
25801 | ||
db9f46a9 TG |
25802 | #ifdef HAVE_COMPLEX_H |
25803 | #include <complex.h> | |
db1cf15c | 25804 | #endif |
db9f46a9 TG |
25805 | #ifdef HAVE_MATH_H |
25806 | #include <math.h> | |
25807 | #endif | |
25808 | ||
25809 | int (*ptr)() = (int (*)())catanhl; | |
25810 | ||
db1cf15c IS |
25811 | int |
25812 | main () | |
25813 | { | |
db1cf15c IS |
25814 | return 0; |
25815 | } | |
db9f46a9 | 25816 | |
db1cf15c IS |
25817 | _ACEOF |
25818 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25819 | gcc_cv_math_func_catanhl=yes |
db1cf15c | 25820 | else |
db9f46a9 | 25821 | gcc_cv_math_func_catanhl=no |
db1cf15c IS |
25822 | fi |
25823 | rm -f core conftest.err conftest.$ac_objext \ | |
25824 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25825 | fi |
db9f46a9 TG |
25826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5 |
25827 | $as_echo "$gcc_cv_math_func_catanhl" >&6; } | |
25828 | if test $gcc_cv_math_func_catanhl = yes; then | |
f1cdfa01 | 25829 | |
f38a14ca TG |
25830 | cat >>confdefs.h <<_ACEOF |
25831 | #define HAVE_CATANHL 1 | |
25832 | _ACEOF | |
db1cf15c | 25833 | |
db9f46a9 | 25834 | fi |
db1cf15c | 25835 | |
db1cf15c | 25836 | |
db9f46a9 TG |
25837 | |
25838 | ||
25839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5 | |
25840 | $as_echo_n "checking for catanl... " >&6; } | |
22e05272 | 25841 | if ${gcc_cv_math_func_catanl+:} false; then : |
db1cf15c IS |
25842 | $as_echo_n "(cached) " >&6 |
25843 | else | |
db9f46a9 | 25844 | if test x$gcc_no_link = xyes; then |
22e05272 | 25845 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25846 | fi |
25847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25848 | /* end confdefs.h. */ | |
25849 | ||
db9f46a9 TG |
25850 | #ifdef HAVE_COMPLEX_H |
25851 | #include <complex.h> | |
25852 | #endif | |
25853 | #ifdef HAVE_MATH_H | |
25854 | #include <math.h> | |
db1cf15c | 25855 | #endif |
db9f46a9 TG |
25856 | |
25857 | int (*ptr)() = (int (*)())catanl; | |
25858 | ||
db1cf15c IS |
25859 | int |
25860 | main () | |
25861 | { | |
db1cf15c IS |
25862 | return 0; |
25863 | } | |
db9f46a9 | 25864 | |
db1cf15c IS |
25865 | _ACEOF |
25866 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25867 | gcc_cv_math_func_catanl=yes |
db1cf15c | 25868 | else |
db9f46a9 | 25869 | gcc_cv_math_func_catanl=no |
db1cf15c IS |
25870 | fi |
25871 | rm -f core conftest.err conftest.$ac_objext \ | |
25872 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25873 | fi |
db9f46a9 TG |
25874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5 |
25875 | $as_echo "$gcc_cv_math_func_catanl" >&6; } | |
25876 | if test $gcc_cv_math_func_catanl = yes; then | |
f1cdfa01 | 25877 | |
f38a14ca TG |
25878 | cat >>confdefs.h <<_ACEOF |
25879 | #define HAVE_CATANL 1 | |
25880 | _ACEOF | |
db1cf15c | 25881 | |
db9f46a9 | 25882 | fi |
db1cf15c IS |
25883 | |
25884 | ||
6f4977fc TK |
25885 | # For POWER, check the ieee128 math functions |
25886 | ||
25887 | if test "x$have_real_17" = "xyes"; then | |
25888 | ||
a8fea8cd TK |
25889 | cat >>confdefs.h <<_ACEOF |
25890 | #define HAVE_REAL_17 1 | |
25891 | _ACEOF | |
25892 | ||
25893 | ||
25894 | ||
6f4977fc TK |
25895 | |
25896 | ||
25897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __acoshieee128" >&5 | |
25898 | $as_echo_n "checking for __acoshieee128... " >&6; } | |
25899 | if ${gcc_cv_math_func___acoshieee128+:} false; then : | |
25900 | $as_echo_n "(cached) " >&6 | |
25901 | else | |
25902 | if test x$gcc_no_link = xyes; then | |
25903 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25904 | fi | |
25905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25906 | /* end confdefs.h. */ | |
25907 | ||
5097cdf9 JJ |
25908 | _Float128 __acoshieee128 (_Float128); |
25909 | _Float128 (*ptr)(_Float128) = __acoshieee128; | |
6f4977fc TK |
25910 | |
25911 | int | |
25912 | main () | |
25913 | { | |
25914 | return 0; | |
25915 | } | |
25916 | ||
25917 | _ACEOF | |
25918 | if ac_fn_c_try_link "$LINENO"; then : | |
25919 | gcc_cv_math_func___acoshieee128=yes | |
25920 | else | |
25921 | gcc_cv_math_func___acoshieee128=no | |
25922 | fi | |
25923 | rm -f core conftest.err conftest.$ac_objext \ | |
25924 | conftest$ac_exeext conftest.$ac_ext | |
25925 | fi | |
25926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___acoshieee128" >&5 | |
25927 | $as_echo "$gcc_cv_math_func___acoshieee128" >&6; } | |
25928 | if test $gcc_cv_math_func___acoshieee128 = yes; then | |
25929 | ||
25930 | cat >>confdefs.h <<_ACEOF | |
25931 | #define HAVE___ACOSHIEEE128 1 | |
25932 | _ACEOF | |
25933 | ||
25934 | fi | |
25935 | ||
25936 | ||
25937 | ||
25938 | ||
25939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __acosieee128" >&5 | |
25940 | $as_echo_n "checking for __acosieee128... " >&6; } | |
25941 | if ${gcc_cv_math_func___acosieee128+:} false; then : | |
25942 | $as_echo_n "(cached) " >&6 | |
25943 | else | |
25944 | if test x$gcc_no_link = xyes; then | |
25945 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25946 | fi | |
25947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25948 | /* end confdefs.h. */ | |
25949 | ||
5097cdf9 JJ |
25950 | _Float128 __acosieee128 (_Float128); |
25951 | _Float128 (*ptr)(_Float128) = __acosieee128; | |
6f4977fc TK |
25952 | |
25953 | int | |
25954 | main () | |
25955 | { | |
25956 | return 0; | |
25957 | } | |
25958 | ||
25959 | _ACEOF | |
25960 | if ac_fn_c_try_link "$LINENO"; then : | |
25961 | gcc_cv_math_func___acosieee128=yes | |
25962 | else | |
25963 | gcc_cv_math_func___acosieee128=no | |
25964 | fi | |
25965 | rm -f core conftest.err conftest.$ac_objext \ | |
25966 | conftest$ac_exeext conftest.$ac_ext | |
25967 | fi | |
25968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___acosieee128" >&5 | |
25969 | $as_echo "$gcc_cv_math_func___acosieee128" >&6; } | |
25970 | if test $gcc_cv_math_func___acosieee128 = yes; then | |
25971 | ||
25972 | cat >>confdefs.h <<_ACEOF | |
25973 | #define HAVE___ACOSIEEE128 1 | |
25974 | _ACEOF | |
25975 | ||
25976 | fi | |
25977 | ||
25978 | ||
25979 | ||
25980 | ||
25981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asinhieee128" >&5 | |
25982 | $as_echo_n "checking for __asinhieee128... " >&6; } | |
25983 | if ${gcc_cv_math_func___asinhieee128+:} false; then : | |
25984 | $as_echo_n "(cached) " >&6 | |
25985 | else | |
25986 | if test x$gcc_no_link = xyes; then | |
25987 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25988 | fi | |
25989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25990 | /* end confdefs.h. */ | |
25991 | ||
5097cdf9 JJ |
25992 | _Float128 __asinhieee128 (_Float128); |
25993 | _Float128 (*ptr)(_Float128) = __asinhieee128; | |
6f4977fc TK |
25994 | |
25995 | int | |
25996 | main () | |
25997 | { | |
25998 | return 0; | |
25999 | } | |
26000 | ||
26001 | _ACEOF | |
26002 | if ac_fn_c_try_link "$LINENO"; then : | |
26003 | gcc_cv_math_func___asinhieee128=yes | |
26004 | else | |
26005 | gcc_cv_math_func___asinhieee128=no | |
26006 | fi | |
26007 | rm -f core conftest.err conftest.$ac_objext \ | |
26008 | conftest$ac_exeext conftest.$ac_ext | |
26009 | fi | |
26010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___asinhieee128" >&5 | |
26011 | $as_echo "$gcc_cv_math_func___asinhieee128" >&6; } | |
26012 | if test $gcc_cv_math_func___asinhieee128 = yes; then | |
26013 | ||
26014 | cat >>confdefs.h <<_ACEOF | |
26015 | #define HAVE___ASINHIEEE128 1 | |
26016 | _ACEOF | |
26017 | ||
26018 | fi | |
26019 | ||
26020 | ||
26021 | ||
26022 | ||
26023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asinieee128" >&5 | |
26024 | $as_echo_n "checking for __asinieee128... " >&6; } | |
26025 | if ${gcc_cv_math_func___asinieee128+:} false; then : | |
26026 | $as_echo_n "(cached) " >&6 | |
26027 | else | |
26028 | if test x$gcc_no_link = xyes; then | |
26029 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26030 | fi | |
26031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26032 | /* end confdefs.h. */ | |
26033 | ||
5097cdf9 JJ |
26034 | _Float128 __asinieee128 (_Float128); |
26035 | _Float128 (*ptr)(_Float128) = __asinieee128; | |
6f4977fc TK |
26036 | |
26037 | int | |
26038 | main () | |
26039 | { | |
26040 | return 0; | |
26041 | } | |
26042 | ||
26043 | _ACEOF | |
26044 | if ac_fn_c_try_link "$LINENO"; then : | |
26045 | gcc_cv_math_func___asinieee128=yes | |
26046 | else | |
26047 | gcc_cv_math_func___asinieee128=no | |
26048 | fi | |
26049 | rm -f core conftest.err conftest.$ac_objext \ | |
26050 | conftest$ac_exeext conftest.$ac_ext | |
26051 | fi | |
26052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___asinieee128" >&5 | |
26053 | $as_echo "$gcc_cv_math_func___asinieee128" >&6; } | |
26054 | if test $gcc_cv_math_func___asinieee128 = yes; then | |
26055 | ||
26056 | cat >>confdefs.h <<_ACEOF | |
26057 | #define HAVE___ASINIEEE128 1 | |
26058 | _ACEOF | |
26059 | ||
26060 | fi | |
26061 | ||
26062 | ||
26063 | ||
26064 | ||
26065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atan2ieee128" >&5 | |
26066 | $as_echo_n "checking for __atan2ieee128... " >&6; } | |
26067 | if ${gcc_cv_math_func___atan2ieee128+:} false; then : | |
26068 | $as_echo_n "(cached) " >&6 | |
26069 | else | |
26070 | if test x$gcc_no_link = xyes; then | |
26071 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26072 | fi | |
26073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26074 | /* end confdefs.h. */ | |
26075 | ||
5097cdf9 JJ |
26076 | _Float128 __atan2ieee128 (_Float128); |
26077 | _Float128 (*ptr)(_Float128) = __atan2ieee128; | |
6f4977fc TK |
26078 | |
26079 | int | |
26080 | main () | |
26081 | { | |
26082 | return 0; | |
26083 | } | |
26084 | ||
26085 | _ACEOF | |
26086 | if ac_fn_c_try_link "$LINENO"; then : | |
26087 | gcc_cv_math_func___atan2ieee128=yes | |
26088 | else | |
26089 | gcc_cv_math_func___atan2ieee128=no | |
26090 | fi | |
26091 | rm -f core conftest.err conftest.$ac_objext \ | |
26092 | conftest$ac_exeext conftest.$ac_ext | |
26093 | fi | |
26094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atan2ieee128" >&5 | |
26095 | $as_echo "$gcc_cv_math_func___atan2ieee128" >&6; } | |
26096 | if test $gcc_cv_math_func___atan2ieee128 = yes; then | |
26097 | ||
26098 | cat >>confdefs.h <<_ACEOF | |
26099 | #define HAVE___ATAN2IEEE128 1 | |
26100 | _ACEOF | |
26101 | ||
26102 | fi | |
26103 | ||
26104 | ||
26105 | ||
26106 | ||
26107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atanhieee128" >&5 | |
26108 | $as_echo_n "checking for __atanhieee128... " >&6; } | |
26109 | if ${gcc_cv_math_func___atanhieee128+:} false; then : | |
26110 | $as_echo_n "(cached) " >&6 | |
26111 | else | |
26112 | if test x$gcc_no_link = xyes; then | |
26113 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26114 | fi | |
26115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26116 | /* end confdefs.h. */ | |
26117 | ||
5097cdf9 JJ |
26118 | _Float128 __atanhieee128 (_Float128); |
26119 | _Float128 (*ptr)(_Float128) = __atanhieee128; | |
6f4977fc TK |
26120 | |
26121 | int | |
26122 | main () | |
26123 | { | |
26124 | return 0; | |
26125 | } | |
26126 | ||
26127 | _ACEOF | |
26128 | if ac_fn_c_try_link "$LINENO"; then : | |
26129 | gcc_cv_math_func___atanhieee128=yes | |
26130 | else | |
26131 | gcc_cv_math_func___atanhieee128=no | |
26132 | fi | |
26133 | rm -f core conftest.err conftest.$ac_objext \ | |
26134 | conftest$ac_exeext conftest.$ac_ext | |
26135 | fi | |
26136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atanhieee128" >&5 | |
26137 | $as_echo "$gcc_cv_math_func___atanhieee128" >&6; } | |
26138 | if test $gcc_cv_math_func___atanhieee128 = yes; then | |
26139 | ||
26140 | cat >>confdefs.h <<_ACEOF | |
26141 | #define HAVE___ATANHIEEE128 1 | |
26142 | _ACEOF | |
26143 | ||
26144 | fi | |
26145 | ||
26146 | ||
26147 | ||
26148 | ||
26149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atanieee128" >&5 | |
26150 | $as_echo_n "checking for __atanieee128... " >&6; } | |
26151 | if ${gcc_cv_math_func___atanieee128+:} false; then : | |
26152 | $as_echo_n "(cached) " >&6 | |
26153 | else | |
26154 | if test x$gcc_no_link = xyes; then | |
26155 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26156 | fi | |
26157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26158 | /* end confdefs.h. */ | |
26159 | ||
5097cdf9 JJ |
26160 | _Float128 __atanieee128 (_Float128); |
26161 | _Float128 (*ptr)(_Float128) = __atanieee128; | |
6f4977fc TK |
26162 | |
26163 | int | |
26164 | main () | |
26165 | { | |
26166 | return 0; | |
26167 | } | |
26168 | ||
26169 | _ACEOF | |
26170 | if ac_fn_c_try_link "$LINENO"; then : | |
26171 | gcc_cv_math_func___atanieee128=yes | |
26172 | else | |
26173 | gcc_cv_math_func___atanieee128=no | |
26174 | fi | |
26175 | rm -f core conftest.err conftest.$ac_objext \ | |
26176 | conftest$ac_exeext conftest.$ac_ext | |
26177 | fi | |
26178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atanieee128" >&5 | |
26179 | $as_echo "$gcc_cv_math_func___atanieee128" >&6; } | |
26180 | if test $gcc_cv_math_func___atanieee128 = yes; then | |
26181 | ||
26182 | cat >>confdefs.h <<_ACEOF | |
26183 | #define HAVE___ATANIEEE128 1 | |
26184 | _ACEOF | |
26185 | ||
26186 | fi | |
26187 | ||
26188 | ||
26189 | ||
26190 | ||
26191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __coshieee128" >&5 | |
26192 | $as_echo_n "checking for __coshieee128... " >&6; } | |
26193 | if ${gcc_cv_math_func___coshieee128+:} false; then : | |
26194 | $as_echo_n "(cached) " >&6 | |
26195 | else | |
26196 | if test x$gcc_no_link = xyes; then | |
26197 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26198 | fi | |
26199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26200 | /* end confdefs.h. */ | |
26201 | ||
5097cdf9 JJ |
26202 | _Float128 __coshieee128 (_Float128); |
26203 | _Float128 (*ptr)(_Float128) = __coshieee128; | |
6f4977fc TK |
26204 | |
26205 | int | |
26206 | main () | |
26207 | { | |
26208 | return 0; | |
26209 | } | |
26210 | ||
26211 | _ACEOF | |
26212 | if ac_fn_c_try_link "$LINENO"; then : | |
26213 | gcc_cv_math_func___coshieee128=yes | |
26214 | else | |
26215 | gcc_cv_math_func___coshieee128=no | |
26216 | fi | |
26217 | rm -f core conftest.err conftest.$ac_objext \ | |
26218 | conftest$ac_exeext conftest.$ac_ext | |
26219 | fi | |
26220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___coshieee128" >&5 | |
26221 | $as_echo "$gcc_cv_math_func___coshieee128" >&6; } | |
26222 | if test $gcc_cv_math_func___coshieee128 = yes; then | |
26223 | ||
26224 | cat >>confdefs.h <<_ACEOF | |
26225 | #define HAVE___COSHIEEE128 1 | |
26226 | _ACEOF | |
26227 | ||
26228 | fi | |
26229 | ||
26230 | ||
26231 | ||
26232 | ||
26233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cosieee128" >&5 | |
26234 | $as_echo_n "checking for __cosieee128... " >&6; } | |
26235 | if ${gcc_cv_math_func___cosieee128+:} false; then : | |
26236 | $as_echo_n "(cached) " >&6 | |
26237 | else | |
26238 | if test x$gcc_no_link = xyes; then | |
26239 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26240 | fi | |
26241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26242 | /* end confdefs.h. */ | |
26243 | ||
5097cdf9 JJ |
26244 | _Float128 __cosieee128 (_Float128); |
26245 | _Float128 (*ptr)(_Float128) = __cosieee128; | |
6f4977fc TK |
26246 | |
26247 | int | |
26248 | main () | |
26249 | { | |
26250 | return 0; | |
26251 | } | |
26252 | ||
26253 | _ACEOF | |
26254 | if ac_fn_c_try_link "$LINENO"; then : | |
26255 | gcc_cv_math_func___cosieee128=yes | |
26256 | else | |
26257 | gcc_cv_math_func___cosieee128=no | |
26258 | fi | |
26259 | rm -f core conftest.err conftest.$ac_objext \ | |
26260 | conftest$ac_exeext conftest.$ac_ext | |
26261 | fi | |
26262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___cosieee128" >&5 | |
26263 | $as_echo "$gcc_cv_math_func___cosieee128" >&6; } | |
26264 | if test $gcc_cv_math_func___cosieee128 = yes; then | |
26265 | ||
26266 | cat >>confdefs.h <<_ACEOF | |
26267 | #define HAVE___COSIEEE128 1 | |
26268 | _ACEOF | |
26269 | ||
26270 | fi | |
26271 | ||
26272 | ||
26273 | ||
26274 | ||
26275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __erfieee128" >&5 | |
26276 | $as_echo_n "checking for __erfieee128... " >&6; } | |
26277 | if ${gcc_cv_math_func___erfieee128+:} false; then : | |
26278 | $as_echo_n "(cached) " >&6 | |
26279 | else | |
26280 | if test x$gcc_no_link = xyes; then | |
26281 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26282 | fi | |
26283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26284 | /* end confdefs.h. */ | |
26285 | ||
5097cdf9 JJ |
26286 | _Float128 __erfieee128 (_Float128); |
26287 | _Float128 (*ptr)(_Float128) = __erfieee128; | |
6f4977fc TK |
26288 | |
26289 | int | |
26290 | main () | |
26291 | { | |
26292 | return 0; | |
26293 | } | |
26294 | ||
26295 | _ACEOF | |
26296 | if ac_fn_c_try_link "$LINENO"; then : | |
26297 | gcc_cv_math_func___erfieee128=yes | |
26298 | else | |
26299 | gcc_cv_math_func___erfieee128=no | |
26300 | fi | |
26301 | rm -f core conftest.err conftest.$ac_objext \ | |
26302 | conftest$ac_exeext conftest.$ac_ext | |
26303 | fi | |
26304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___erfieee128" >&5 | |
26305 | $as_echo "$gcc_cv_math_func___erfieee128" >&6; } | |
26306 | if test $gcc_cv_math_func___erfieee128 = yes; then | |
26307 | ||
26308 | cat >>confdefs.h <<_ACEOF | |
26309 | #define HAVE___ERFIEEE128 1 | |
26310 | _ACEOF | |
26311 | ||
26312 | fi | |
26313 | ||
26314 | ||
26315 | ||
26316 | ||
26317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __expieee128" >&5 | |
26318 | $as_echo_n "checking for __expieee128... " >&6; } | |
26319 | if ${gcc_cv_math_func___expieee128+:} false; then : | |
26320 | $as_echo_n "(cached) " >&6 | |
26321 | else | |
26322 | if test x$gcc_no_link = xyes; then | |
26323 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26324 | fi | |
26325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26326 | /* end confdefs.h. */ | |
26327 | ||
5097cdf9 JJ |
26328 | _Float128 __expieee128 (_Float128); |
26329 | _Float128 (*ptr)(_Float128) = __expieee128; | |
6f4977fc TK |
26330 | |
26331 | int | |
26332 | main () | |
26333 | { | |
26334 | return 0; | |
26335 | } | |
26336 | ||
26337 | _ACEOF | |
26338 | if ac_fn_c_try_link "$LINENO"; then : | |
26339 | gcc_cv_math_func___expieee128=yes | |
26340 | else | |
26341 | gcc_cv_math_func___expieee128=no | |
26342 | fi | |
26343 | rm -f core conftest.err conftest.$ac_objext \ | |
26344 | conftest$ac_exeext conftest.$ac_ext | |
26345 | fi | |
26346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___expieee128" >&5 | |
26347 | $as_echo "$gcc_cv_math_func___expieee128" >&6; } | |
26348 | if test $gcc_cv_math_func___expieee128 = yes; then | |
26349 | ||
26350 | cat >>confdefs.h <<_ACEOF | |
26351 | #define HAVE___EXPIEEE128 1 | |
26352 | _ACEOF | |
26353 | ||
26354 | fi | |
26355 | ||
26356 | ||
26357 | ||
26358 | ||
26359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fabsieee128" >&5 | |
26360 | $as_echo_n "checking for __fabsieee128... " >&6; } | |
26361 | if ${gcc_cv_math_func___fabsieee128+:} false; then : | |
26362 | $as_echo_n "(cached) " >&6 | |
26363 | else | |
26364 | if test x$gcc_no_link = xyes; then | |
26365 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26366 | fi | |
26367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26368 | /* end confdefs.h. */ | |
26369 | ||
5097cdf9 JJ |
26370 | _Float128 __fabsieee128 (_Float128); |
26371 | _Float128 (*ptr)(_Float128) = __fabsieee128; | |
6f4977fc TK |
26372 | |
26373 | int | |
26374 | main () | |
26375 | { | |
26376 | return 0; | |
26377 | } | |
26378 | ||
26379 | _ACEOF | |
26380 | if ac_fn_c_try_link "$LINENO"; then : | |
26381 | gcc_cv_math_func___fabsieee128=yes | |
26382 | else | |
26383 | gcc_cv_math_func___fabsieee128=no | |
26384 | fi | |
26385 | rm -f core conftest.err conftest.$ac_objext \ | |
26386 | conftest$ac_exeext conftest.$ac_ext | |
26387 | fi | |
26388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___fabsieee128" >&5 | |
26389 | $as_echo "$gcc_cv_math_func___fabsieee128" >&6; } | |
26390 | if test $gcc_cv_math_func___fabsieee128 = yes; then | |
26391 | ||
26392 | cat >>confdefs.h <<_ACEOF | |
26393 | #define HAVE___FABSIEEE128 1 | |
26394 | _ACEOF | |
26395 | ||
26396 | fi | |
26397 | ||
26398 | ||
26399 | ||
26400 | ||
26401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __jnieee128" >&5 | |
26402 | $as_echo_n "checking for __jnieee128... " >&6; } | |
26403 | if ${gcc_cv_math_func___jnieee128+:} false; then : | |
26404 | $as_echo_n "(cached) " >&6 | |
26405 | else | |
26406 | if test x$gcc_no_link = xyes; then | |
26407 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26408 | fi | |
26409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26410 | /* end confdefs.h. */ | |
26411 | ||
5097cdf9 JJ |
26412 | _Float128 __jnieee128 (_Float128); |
26413 | _Float128 (*ptr)(_Float128) = __jnieee128; | |
6f4977fc TK |
26414 | |
26415 | int | |
26416 | main () | |
26417 | { | |
26418 | return 0; | |
26419 | } | |
26420 | ||
26421 | _ACEOF | |
26422 | if ac_fn_c_try_link "$LINENO"; then : | |
26423 | gcc_cv_math_func___jnieee128=yes | |
26424 | else | |
26425 | gcc_cv_math_func___jnieee128=no | |
26426 | fi | |
26427 | rm -f core conftest.err conftest.$ac_objext \ | |
26428 | conftest$ac_exeext conftest.$ac_ext | |
26429 | fi | |
26430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___jnieee128" >&5 | |
26431 | $as_echo "$gcc_cv_math_func___jnieee128" >&6; } | |
26432 | if test $gcc_cv_math_func___jnieee128 = yes; then | |
26433 | ||
26434 | cat >>confdefs.h <<_ACEOF | |
26435 | #define HAVE___JNIEEE128 1 | |
26436 | _ACEOF | |
26437 | ||
26438 | fi | |
26439 | ||
26440 | ||
26441 | ||
26442 | ||
26443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __log10ieee128" >&5 | |
26444 | $as_echo_n "checking for __log10ieee128... " >&6; } | |
26445 | if ${gcc_cv_math_func___log10ieee128+:} false; then : | |
26446 | $as_echo_n "(cached) " >&6 | |
26447 | else | |
26448 | if test x$gcc_no_link = xyes; then | |
26449 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26450 | fi | |
26451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26452 | /* end confdefs.h. */ | |
26453 | ||
5097cdf9 JJ |
26454 | _Float128 __log10ieee128 (_Float128); |
26455 | _Float128 (*ptr)(_Float128) = __log10ieee128; | |
6f4977fc TK |
26456 | |
26457 | int | |
26458 | main () | |
26459 | { | |
26460 | return 0; | |
26461 | } | |
26462 | ||
26463 | _ACEOF | |
26464 | if ac_fn_c_try_link "$LINENO"; then : | |
26465 | gcc_cv_math_func___log10ieee128=yes | |
26466 | else | |
26467 | gcc_cv_math_func___log10ieee128=no | |
26468 | fi | |
26469 | rm -f core conftest.err conftest.$ac_objext \ | |
26470 | conftest$ac_exeext conftest.$ac_ext | |
26471 | fi | |
26472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___log10ieee128" >&5 | |
26473 | $as_echo "$gcc_cv_math_func___log10ieee128" >&6; } | |
26474 | if test $gcc_cv_math_func___log10ieee128 = yes; then | |
26475 | ||
26476 | cat >>confdefs.h <<_ACEOF | |
26477 | #define HAVE___LOG10IEEE128 1 | |
26478 | _ACEOF | |
26479 | ||
26480 | fi | |
26481 | ||
26482 | ||
26483 | ||
26484 | ||
26485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __logieee128" >&5 | |
26486 | $as_echo_n "checking for __logieee128... " >&6; } | |
26487 | if ${gcc_cv_math_func___logieee128+:} false; then : | |
26488 | $as_echo_n "(cached) " >&6 | |
26489 | else | |
26490 | if test x$gcc_no_link = xyes; then | |
26491 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26492 | fi | |
26493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26494 | /* end confdefs.h. */ | |
26495 | ||
5097cdf9 JJ |
26496 | _Float128 __logieee128 (_Float128); |
26497 | _Float128 (*ptr)(_Float128) = __logieee128; | |
6f4977fc TK |
26498 | |
26499 | int | |
26500 | main () | |
26501 | { | |
26502 | return 0; | |
26503 | } | |
26504 | ||
26505 | _ACEOF | |
26506 | if ac_fn_c_try_link "$LINENO"; then : | |
26507 | gcc_cv_math_func___logieee128=yes | |
26508 | else | |
26509 | gcc_cv_math_func___logieee128=no | |
26510 | fi | |
26511 | rm -f core conftest.err conftest.$ac_objext \ | |
26512 | conftest$ac_exeext conftest.$ac_ext | |
26513 | fi | |
26514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___logieee128" >&5 | |
26515 | $as_echo "$gcc_cv_math_func___logieee128" >&6; } | |
26516 | if test $gcc_cv_math_func___logieee128 = yes; then | |
26517 | ||
26518 | cat >>confdefs.h <<_ACEOF | |
26519 | #define HAVE___LOGIEEE128 1 | |
26520 | _ACEOF | |
26521 | ||
26522 | fi | |
26523 | ||
26524 | ||
26525 | ||
26526 | ||
26527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __powieee128" >&5 | |
26528 | $as_echo_n "checking for __powieee128... " >&6; } | |
26529 | if ${gcc_cv_math_func___powieee128+:} false; then : | |
26530 | $as_echo_n "(cached) " >&6 | |
26531 | else | |
26532 | if test x$gcc_no_link = xyes; then | |
26533 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26534 | fi | |
26535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26536 | /* end confdefs.h. */ | |
26537 | ||
5097cdf9 JJ |
26538 | _Float128 __powieee128 (_Float128); |
26539 | _Float128 (*ptr)(_Float128) = __powieee128; | |
6f4977fc TK |
26540 | |
26541 | int | |
26542 | main () | |
26543 | { | |
26544 | return 0; | |
26545 | } | |
26546 | ||
26547 | _ACEOF | |
26548 | if ac_fn_c_try_link "$LINENO"; then : | |
26549 | gcc_cv_math_func___powieee128=yes | |
26550 | else | |
26551 | gcc_cv_math_func___powieee128=no | |
26552 | fi | |
26553 | rm -f core conftest.err conftest.$ac_objext \ | |
26554 | conftest$ac_exeext conftest.$ac_ext | |
26555 | fi | |
26556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___powieee128" >&5 | |
26557 | $as_echo "$gcc_cv_math_func___powieee128" >&6; } | |
26558 | if test $gcc_cv_math_func___powieee128 = yes; then | |
26559 | ||
26560 | cat >>confdefs.h <<_ACEOF | |
26561 | #define HAVE___POWIEEE128 1 | |
26562 | _ACEOF | |
26563 | ||
26564 | fi | |
26565 | ||
26566 | ||
26567 | ||
26568 | ||
26569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sinhieee128" >&5 | |
26570 | $as_echo_n "checking for __sinhieee128... " >&6; } | |
26571 | if ${gcc_cv_math_func___sinhieee128+:} false; then : | |
26572 | $as_echo_n "(cached) " >&6 | |
26573 | else | |
26574 | if test x$gcc_no_link = xyes; then | |
26575 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26576 | fi | |
26577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26578 | /* end confdefs.h. */ | |
26579 | ||
5097cdf9 JJ |
26580 | _Float128 __sinhieee128 (_Float128); |
26581 | _Float128 (*ptr)(_Float128) = __sinhieee128; | |
6f4977fc TK |
26582 | |
26583 | int | |
26584 | main () | |
26585 | { | |
26586 | return 0; | |
26587 | } | |
26588 | ||
26589 | _ACEOF | |
26590 | if ac_fn_c_try_link "$LINENO"; then : | |
26591 | gcc_cv_math_func___sinhieee128=yes | |
26592 | else | |
26593 | gcc_cv_math_func___sinhieee128=no | |
26594 | fi | |
26595 | rm -f core conftest.err conftest.$ac_objext \ | |
26596 | conftest$ac_exeext conftest.$ac_ext | |
26597 | fi | |
26598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sinhieee128" >&5 | |
26599 | $as_echo "$gcc_cv_math_func___sinhieee128" >&6; } | |
26600 | if test $gcc_cv_math_func___sinhieee128 = yes; then | |
26601 | ||
26602 | cat >>confdefs.h <<_ACEOF | |
26603 | #define HAVE___SINHIEEE128 1 | |
26604 | _ACEOF | |
26605 | ||
26606 | fi | |
26607 | ||
26608 | ||
26609 | ||
26610 | ||
26611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sinieee128" >&5 | |
26612 | $as_echo_n "checking for __sinieee128... " >&6; } | |
26613 | if ${gcc_cv_math_func___sinieee128+:} false; then : | |
26614 | $as_echo_n "(cached) " >&6 | |
26615 | else | |
26616 | if test x$gcc_no_link = xyes; then | |
26617 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26618 | fi | |
26619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26620 | /* end confdefs.h. */ | |
26621 | ||
5097cdf9 JJ |
26622 | _Float128 __sinieee128 (_Float128); |
26623 | _Float128 (*ptr)(_Float128) = __sinieee128; | |
6f4977fc TK |
26624 | |
26625 | int | |
26626 | main () | |
26627 | { | |
26628 | return 0; | |
26629 | } | |
26630 | ||
26631 | _ACEOF | |
26632 | if ac_fn_c_try_link "$LINENO"; then : | |
26633 | gcc_cv_math_func___sinieee128=yes | |
26634 | else | |
26635 | gcc_cv_math_func___sinieee128=no | |
26636 | fi | |
26637 | rm -f core conftest.err conftest.$ac_objext \ | |
26638 | conftest$ac_exeext conftest.$ac_ext | |
26639 | fi | |
26640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sinieee128" >&5 | |
26641 | $as_echo "$gcc_cv_math_func___sinieee128" >&6; } | |
26642 | if test $gcc_cv_math_func___sinieee128 = yes; then | |
26643 | ||
26644 | cat >>confdefs.h <<_ACEOF | |
26645 | #define HAVE___SINIEEE128 1 | |
26646 | _ACEOF | |
26647 | ||
26648 | fi | |
26649 | ||
26650 | ||
26651 | ||
26652 | ||
26653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sqrtieee128" >&5 | |
26654 | $as_echo_n "checking for __sqrtieee128... " >&6; } | |
26655 | if ${gcc_cv_math_func___sqrtieee128+:} false; then : | |
26656 | $as_echo_n "(cached) " >&6 | |
26657 | else | |
26658 | if test x$gcc_no_link = xyes; then | |
26659 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26660 | fi | |
26661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26662 | /* end confdefs.h. */ | |
26663 | ||
5097cdf9 JJ |
26664 | _Float128 __sqrtieee128 (_Float128); |
26665 | _Float128 (*ptr)(_Float128) = __sqrtieee128; | |
6f4977fc TK |
26666 | |
26667 | int | |
26668 | main () | |
26669 | { | |
26670 | return 0; | |
26671 | } | |
26672 | ||
26673 | _ACEOF | |
26674 | if ac_fn_c_try_link "$LINENO"; then : | |
26675 | gcc_cv_math_func___sqrtieee128=yes | |
26676 | else | |
26677 | gcc_cv_math_func___sqrtieee128=no | |
26678 | fi | |
26679 | rm -f core conftest.err conftest.$ac_objext \ | |
26680 | conftest$ac_exeext conftest.$ac_ext | |
26681 | fi | |
26682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sqrtieee128" >&5 | |
26683 | $as_echo "$gcc_cv_math_func___sqrtieee128" >&6; } | |
26684 | if test $gcc_cv_math_func___sqrtieee128 = yes; then | |
26685 | ||
26686 | cat >>confdefs.h <<_ACEOF | |
26687 | #define HAVE___SQRTIEEE128 1 | |
26688 | _ACEOF | |
26689 | ||
26690 | fi | |
26691 | ||
26692 | ||
26693 | ||
26694 | ||
26695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __tanhieee128" >&5 | |
26696 | $as_echo_n "checking for __tanhieee128... " >&6; } | |
26697 | if ${gcc_cv_math_func___tanhieee128+:} false; then : | |
26698 | $as_echo_n "(cached) " >&6 | |
26699 | else | |
26700 | if test x$gcc_no_link = xyes; then | |
26701 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26702 | fi | |
26703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26704 | /* end confdefs.h. */ | |
26705 | ||
5097cdf9 JJ |
26706 | _Float128 __tanhieee128 (_Float128); |
26707 | _Float128 (*ptr)(_Float128) = __tanhieee128; | |
6f4977fc TK |
26708 | |
26709 | int | |
26710 | main () | |
26711 | { | |
26712 | return 0; | |
26713 | } | |
26714 | ||
26715 | _ACEOF | |
26716 | if ac_fn_c_try_link "$LINENO"; then : | |
26717 | gcc_cv_math_func___tanhieee128=yes | |
26718 | else | |
26719 | gcc_cv_math_func___tanhieee128=no | |
26720 | fi | |
26721 | rm -f core conftest.err conftest.$ac_objext \ | |
26722 | conftest$ac_exeext conftest.$ac_ext | |
26723 | fi | |
26724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___tanhieee128" >&5 | |
26725 | $as_echo "$gcc_cv_math_func___tanhieee128" >&6; } | |
26726 | if test $gcc_cv_math_func___tanhieee128 = yes; then | |
26727 | ||
26728 | cat >>confdefs.h <<_ACEOF | |
26729 | #define HAVE___TANHIEEE128 1 | |
26730 | _ACEOF | |
26731 | ||
26732 | fi | |
26733 | ||
26734 | ||
26735 | ||
26736 | ||
26737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __tanieee128" >&5 | |
26738 | $as_echo_n "checking for __tanieee128... " >&6; } | |
26739 | if ${gcc_cv_math_func___tanieee128+:} false; then : | |
26740 | $as_echo_n "(cached) " >&6 | |
26741 | else | |
26742 | if test x$gcc_no_link = xyes; then | |
26743 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26744 | fi | |
26745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26746 | /* end confdefs.h. */ | |
26747 | ||
5097cdf9 JJ |
26748 | _Float128 __tanieee128 (_Float128); |
26749 | _Float128 (*ptr)(_Float128) = __tanieee128; | |
6f4977fc TK |
26750 | |
26751 | int | |
26752 | main () | |
26753 | { | |
26754 | return 0; | |
26755 | } | |
26756 | ||
26757 | _ACEOF | |
26758 | if ac_fn_c_try_link "$LINENO"; then : | |
26759 | gcc_cv_math_func___tanieee128=yes | |
26760 | else | |
26761 | gcc_cv_math_func___tanieee128=no | |
26762 | fi | |
26763 | rm -f core conftest.err conftest.$ac_objext \ | |
26764 | conftest$ac_exeext conftest.$ac_ext | |
26765 | fi | |
26766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___tanieee128" >&5 | |
26767 | $as_echo "$gcc_cv_math_func___tanieee128" >&6; } | |
26768 | if test $gcc_cv_math_func___tanieee128 = yes; then | |
26769 | ||
26770 | cat >>confdefs.h <<_ACEOF | |
26771 | #define HAVE___TANIEEE128 1 | |
26772 | _ACEOF | |
26773 | ||
26774 | fi | |
26775 | ||
26776 | ||
26777 | ||
26778 | ||
26779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ynieee128" >&5 | |
26780 | $as_echo_n "checking for __ynieee128... " >&6; } | |
26781 | if ${gcc_cv_math_func___ynieee128+:} false; then : | |
26782 | $as_echo_n "(cached) " >&6 | |
26783 | else | |
26784 | if test x$gcc_no_link = xyes; then | |
26785 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26786 | fi | |
26787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26788 | /* end confdefs.h. */ | |
26789 | ||
5097cdf9 JJ |
26790 | _Float128 __ynieee128 (_Float128); |
26791 | _Float128 (*ptr)(_Float128) = __ynieee128; | |
6f4977fc TK |
26792 | |
26793 | int | |
26794 | main () | |
26795 | { | |
26796 | return 0; | |
26797 | } | |
26798 | ||
26799 | _ACEOF | |
26800 | if ac_fn_c_try_link "$LINENO"; then : | |
26801 | gcc_cv_math_func___ynieee128=yes | |
26802 | else | |
26803 | gcc_cv_math_func___ynieee128=no | |
26804 | fi | |
26805 | rm -f core conftest.err conftest.$ac_objext \ | |
26806 | conftest$ac_exeext conftest.$ac_ext | |
26807 | fi | |
26808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___ynieee128" >&5 | |
26809 | $as_echo "$gcc_cv_math_func___ynieee128" >&6; } | |
26810 | if test $gcc_cv_math_func___ynieee128 = yes; then | |
26811 | ||
26812 | cat >>confdefs.h <<_ACEOF | |
26813 | #define HAVE___YNIEEE128 1 | |
26814 | _ACEOF | |
26815 | ||
26816 | fi | |
26817 | ||
26818 | fi | |
26819 | ||
118ea208 | 26820 | # On AIX, clog is present in libm as __clog |
5213506e RW |
26821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5 |
26822 | $as_echo_n "checking for __clog in -lm... " >&6; } | |
22e05272 | 26823 | if ${ac_cv_lib_m___clog+:} false; then : |
5213506e | 26824 | $as_echo_n "(cached) " >&6 |
e097b4f1 DE |
26825 | else |
26826 | ac_check_lib_save_LIBS=$LIBS | |
26827 | LIBS="-lm $LIBS" | |
26828 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26829 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
e097b4f1 | 26830 | fi |
5213506e | 26831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e097b4f1 DE |
26832 | /* end confdefs.h. */ |
26833 | ||
5213506e RW |
26834 | /* Override any GCC internal prototype to avoid an error. |
26835 | Use char because int might match the return type of a GCC | |
26836 | builtin and then its argument prototype would still apply. */ | |
e097b4f1 DE |
26837 | #ifdef __cplusplus |
26838 | extern "C" | |
26839 | #endif | |
e097b4f1 DE |
26840 | char __clog (); |
26841 | int | |
26842 | main () | |
26843 | { | |
5213506e | 26844 | return __clog (); |
e097b4f1 DE |
26845 | ; |
26846 | return 0; | |
26847 | } | |
26848 | _ACEOF | |
5213506e | 26849 | if ac_fn_c_try_link "$LINENO"; then : |
e097b4f1 DE |
26850 | ac_cv_lib_m___clog=yes |
26851 | else | |
5213506e | 26852 | ac_cv_lib_m___clog=no |
e097b4f1 | 26853 | fi |
5213506e RW |
26854 | rm -f core conftest.err conftest.$ac_objext \ |
26855 | conftest$ac_exeext conftest.$ac_ext | |
e097b4f1 DE |
26856 | LIBS=$ac_check_lib_save_LIBS |
26857 | fi | |
5213506e RW |
26858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5 |
26859 | $as_echo "$ac_cv_lib_m___clog" >&6; } | |
22e05272 | 26860 | if test "x$ac_cv_lib_m___clog" = xyes; then : |
e097b4f1 | 26861 | |
5213506e | 26862 | $as_echo "#define HAVE_CLOG 1" >>confdefs.h |
e097b4f1 DE |
26863 | |
26864 | fi | |
26865 | ||
26866 | ||
1868599f JJ |
26867 | |
26868 | ||
26869 | if test $gcc_cv_math_func_copysign = no; then | |
26870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5 | |
26871 | $as_echo_n "checking for inline __builtin_copysign... " >&6; } | |
26872 | if ${gcc_cv_math_inline_builtin_copysign+:} false; then : | |
26873 | $as_echo_n "(cached) " >&6 | |
26874 | else | |
26875 | if test x$gcc_no_link = xyes; then | |
26876 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26877 | fi | |
26878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26879 | /* end confdefs.h. */ | |
26880 | ||
26881 | double | |
26882 | copysign_fallback (double x, double y) | |
26883 | { | |
26884 | return __builtin_copysign (x, y); | |
26885 | } | |
26886 | ||
26887 | int | |
26888 | main () | |
26889 | { | |
26890 | return 0; | |
26891 | } | |
26892 | ||
26893 | _ACEOF | |
26894 | if ac_fn_c_try_link "$LINENO"; then : | |
26895 | gcc_cv_math_inline_builtin_copysign=yes | |
26896 | else | |
26897 | gcc_cv_math_inline_builtin_copysign=no | |
26898 | fi | |
26899 | rm -f core conftest.err conftest.$ac_objext \ | |
26900 | conftest$ac_exeext conftest.$ac_ext | |
26901 | fi | |
26902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5 | |
26903 | $as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; } | |
26904 | if test $gcc_cv_math_inline_builtin_copysign = yes; then | |
26905 | ||
26906 | cat >>confdefs.h <<_ACEOF | |
26907 | #define HAVE_INLINE_BUILTIN_COPYSIGN 1 | |
26908 | _ACEOF | |
26909 | ||
26910 | fi | |
26911 | fi | |
26912 | ||
26913 | ||
26914 | if test $gcc_cv_math_func_copysignl = no; then | |
26915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5 | |
26916 | $as_echo_n "checking for inline __builtin_copysignl... " >&6; } | |
26917 | if ${gcc_cv_math_inline_builtin_copysignl+:} false; then : | |
26918 | $as_echo_n "(cached) " >&6 | |
26919 | else | |
26920 | if test x$gcc_no_link = xyes; then | |
26921 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26922 | fi | |
26923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26924 | /* end confdefs.h. */ | |
26925 | ||
26926 | long double | |
26927 | copysignl_fallback (long double x, long double y) | |
26928 | { | |
26929 | return __builtin_copysignl (x, y); | |
26930 | } | |
26931 | ||
26932 | int | |
26933 | main () | |
26934 | { | |
26935 | return 0; | |
26936 | } | |
26937 | ||
26938 | _ACEOF | |
26939 | if ac_fn_c_try_link "$LINENO"; then : | |
26940 | gcc_cv_math_inline_builtin_copysignl=yes | |
26941 | else | |
26942 | gcc_cv_math_inline_builtin_copysignl=no | |
26943 | fi | |
26944 | rm -f core conftest.err conftest.$ac_objext \ | |
26945 | conftest$ac_exeext conftest.$ac_ext | |
26946 | fi | |
26947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5 | |
26948 | $as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; } | |
26949 | if test $gcc_cv_math_inline_builtin_copysignl = yes; then | |
26950 | ||
26951 | cat >>confdefs.h <<_ACEOF | |
26952 | #define HAVE_INLINE_BUILTIN_COPYSIGNL 1 | |
26953 | _ACEOF | |
26954 | ||
26955 | fi | |
26956 | fi | |
26957 | ||
26958 | ||
26959 | if test $gcc_cv_math_func_fabs = no; then | |
26960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5 | |
26961 | $as_echo_n "checking for inline __builtin_fabs... " >&6; } | |
26962 | if ${gcc_cv_math_inline_builtin_fabs+:} false; then : | |
26963 | $as_echo_n "(cached) " >&6 | |
26964 | else | |
26965 | if test x$gcc_no_link = xyes; then | |
26966 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26967 | fi | |
26968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26969 | /* end confdefs.h. */ | |
26970 | ||
26971 | double | |
26972 | fabs_fallback (double x) | |
26973 | { | |
26974 | return __builtin_fabs (x); | |
26975 | } | |
26976 | ||
26977 | int | |
26978 | main () | |
26979 | { | |
26980 | return 0; | |
26981 | } | |
26982 | ||
26983 | _ACEOF | |
26984 | if ac_fn_c_try_link "$LINENO"; then : | |
26985 | gcc_cv_math_inline_builtin_fabs=yes | |
26986 | else | |
26987 | gcc_cv_math_inline_builtin_fabs=no | |
26988 | fi | |
26989 | rm -f core conftest.err conftest.$ac_objext \ | |
26990 | conftest$ac_exeext conftest.$ac_ext | |
26991 | fi | |
26992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5 | |
26993 | $as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; } | |
26994 | if test $gcc_cv_math_inline_builtin_fabs = yes; then | |
26995 | ||
26996 | cat >>confdefs.h <<_ACEOF | |
26997 | #define HAVE_INLINE_BUILTIN_FABS 1 | |
26998 | _ACEOF | |
26999 | ||
27000 | fi | |
27001 | fi | |
27002 | ||
27003 | ||
27004 | if test $gcc_cv_math_func_fabsl = no; then | |
27005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5 | |
27006 | $as_echo_n "checking for inline __builtin_fabsl... " >&6; } | |
27007 | if ${gcc_cv_math_inline_builtin_fabsl+:} false; then : | |
27008 | $as_echo_n "(cached) " >&6 | |
27009 | else | |
27010 | if test x$gcc_no_link = xyes; then | |
27011 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27012 | fi | |
27013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27014 | /* end confdefs.h. */ | |
27015 | ||
27016 | long double | |
27017 | fabsl_fallback (long double x) | |
27018 | { | |
27019 | return __builtin_fabsl (x); | |
27020 | } | |
27021 | ||
27022 | int | |
27023 | main () | |
27024 | { | |
27025 | return 0; | |
27026 | } | |
27027 | ||
27028 | _ACEOF | |
27029 | if ac_fn_c_try_link "$LINENO"; then : | |
27030 | gcc_cv_math_inline_builtin_fabsl=yes | |
27031 | else | |
27032 | gcc_cv_math_inline_builtin_fabsl=no | |
27033 | fi | |
27034 | rm -f core conftest.err conftest.$ac_objext \ | |
27035 | conftest$ac_exeext conftest.$ac_ext | |
27036 | fi | |
27037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5 | |
27038 | $as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; } | |
27039 | if test $gcc_cv_math_inline_builtin_fabsl = yes; then | |
27040 | ||
27041 | cat >>confdefs.h <<_ACEOF | |
27042 | #define HAVE_INLINE_BUILTIN_FABSL 1 | |
27043 | _ACEOF | |
27044 | ||
27045 | fi | |
27046 | fi | |
27047 | ||
ad238e4f | 27048 | |
ad238e4f | 27049 | |
ad238e4f | 27050 | |
133d0d42 JJ |
27051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf128" >&5 |
27052 | $as_echo_n "checking for acosf128... " >&6; } | |
27053 | if ${gcc_cv_math_func_acosf128+:} false; then : | |
27054 | $as_echo_n "(cached) " >&6 | |
ad238e4f | 27055 | else |
133d0d42 JJ |
27056 | if test x$gcc_no_link = xyes; then |
27057 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27058 | fi | |
27059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad238e4f FXC |
27060 | /* end confdefs.h. */ |
27061 | ||
133d0d42 JJ |
27062 | #ifdef HAVE_COMPLEX_H |
27063 | #include <complex.h> | |
27064 | #endif | |
27065 | #ifdef HAVE_MATH_H | |
27066 | #include <math.h> | |
27067 | #endif | |
ad238e4f | 27068 | |
133d0d42 | 27069 | int (*ptr)() = (int (*)())acosf128; |
ad238e4f | 27070 | |
133d0d42 JJ |
27071 | int |
27072 | main () | |
27073 | { | |
ad238e4f FXC |
27074 | return 0; |
27075 | } | |
133d0d42 | 27076 | |
ad238e4f | 27077 | _ACEOF |
133d0d42 JJ |
27078 | if ac_fn_c_try_link "$LINENO"; then : |
27079 | gcc_cv_math_func_acosf128=yes | |
ad238e4f | 27080 | else |
133d0d42 | 27081 | gcc_cv_math_func_acosf128=no |
ad238e4f | 27082 | fi |
133d0d42 JJ |
27083 | rm -f core conftest.err conftest.$ac_objext \ |
27084 | conftest$ac_exeext conftest.$ac_ext | |
ad238e4f | 27085 | fi |
133d0d42 JJ |
27086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf128" >&5 |
27087 | $as_echo "$gcc_cv_math_func_acosf128" >&6; } | |
27088 | if test $gcc_cv_math_func_acosf128 = yes; then | |
5213506e | 27089 | |
133d0d42 JJ |
27090 | cat >>confdefs.h <<_ACEOF |
27091 | #define HAVE_ACOSF128 1 | |
27092 | _ACEOF | |
ad238e4f | 27093 | |
133d0d42 | 27094 | fi |
ad238e4f | 27095 | |
ad238e4f | 27096 | |
db8092dc | 27097 | |
133d0d42 JJ |
27098 | |
27099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf128" >&5 | |
27100 | $as_echo_n "checking for acoshf128... " >&6; } | |
27101 | if ${gcc_cv_math_func_acoshf128+:} false; then : | |
5213506e | 27102 | $as_echo_n "(cached) " >&6 |
db8092dc | 27103 | else |
133d0d42 | 27104 | if test x$gcc_no_link = xyes; then |
22e05272 | 27105 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db8092dc | 27106 | fi |
5213506e | 27107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db8092dc FXC |
27108 | /* end confdefs.h. */ |
27109 | ||
133d0d42 JJ |
27110 | #ifdef HAVE_COMPLEX_H |
27111 | #include <complex.h> | |
27112 | #endif | |
27113 | #ifdef HAVE_MATH_H | |
27114 | #include <math.h> | |
27115 | #endif | |
27116 | ||
27117 | int (*ptr)() = (int (*)())acoshf128; | |
db8092dc FXC |
27118 | |
27119 | int | |
27120 | main () | |
27121 | { | |
db8092dc FXC |
27122 | return 0; |
27123 | } | |
133d0d42 | 27124 | |
db8092dc | 27125 | _ACEOF |
5213506e | 27126 | if ac_fn_c_try_link "$LINENO"; then : |
133d0d42 | 27127 | gcc_cv_math_func_acoshf128=yes |
db8092dc | 27128 | else |
133d0d42 | 27129 | gcc_cv_math_func_acoshf128=no |
db8092dc | 27130 | fi |
5213506e RW |
27131 | rm -f core conftest.err conftest.$ac_objext \ |
27132 | conftest$ac_exeext conftest.$ac_ext | |
db8092dc | 27133 | fi |
133d0d42 JJ |
27134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf128" >&5 |
27135 | $as_echo "$gcc_cv_math_func_acoshf128" >&6; } | |
27136 | if test $gcc_cv_math_func_acoshf128 = yes; then | |
db8092dc | 27137 | |
133d0d42 JJ |
27138 | cat >>confdefs.h <<_ACEOF |
27139 | #define HAVE_ACOSHF128 1 | |
27140 | _ACEOF | |
db8092dc FXC |
27141 | |
27142 | fi | |
27143 | ||
27144 | ||
1ec601bf | 27145 | |
87e6d9dc | 27146 | |
133d0d42 JJ |
27147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf128" >&5 |
27148 | $as_echo_n "checking for asinf128... " >&6; } | |
27149 | if ${gcc_cv_math_func_asinf128+:} false; then : | |
1ec601bf FXC |
27150 | $as_echo_n "(cached) " >&6 |
27151 | else | |
133d0d42 JJ |
27152 | if test x$gcc_no_link = xyes; then |
27153 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27154 | fi | |
27155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1ec601bf FXC |
27156 | /* end confdefs.h. */ |
27157 | ||
133d0d42 JJ |
27158 | #ifdef HAVE_COMPLEX_H |
27159 | #include <complex.h> | |
27160 | #endif | |
27161 | #ifdef HAVE_MATH_H | |
27162 | #include <math.h> | |
27163 | #endif | |
69eb61d4 | 27164 | |
133d0d42 | 27165 | int (*ptr)() = (int (*)())asinf128; |
1ec601bf FXC |
27166 | |
27167 | int | |
27168 | main () | |
27169 | { | |
69eb61d4 TB |
27170 | return 0; |
27171 | } | |
133d0d42 | 27172 | |
69eb61d4 | 27173 | _ACEOF |
133d0d42 JJ |
27174 | if ac_fn_c_try_link "$LINENO"; then : |
27175 | gcc_cv_math_func_asinf128=yes | |
27176 | else | |
27177 | gcc_cv_math_func_asinf128=no | |
27178 | fi | |
27179 | rm -f core conftest.err conftest.$ac_objext \ | |
27180 | conftest$ac_exeext conftest.$ac_ext | |
27181 | fi | |
27182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf128" >&5 | |
27183 | $as_echo "$gcc_cv_math_func_asinf128" >&6; } | |
27184 | if test $gcc_cv_math_func_asinf128 = yes; then | |
1ec601bf | 27185 | |
133d0d42 JJ |
27186 | cat >>confdefs.h <<_ACEOF |
27187 | #define HAVE_ASINF128 1 | |
27188 | _ACEOF | |
1ec601bf | 27189 | |
133d0d42 | 27190 | fi |
69eb61d4 | 27191 | |
69eb61d4 | 27192 | |
133d0d42 JJ |
27193 | |
27194 | ||
27195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf128" >&5 | |
27196 | $as_echo_n "checking for asinhf128... " >&6; } | |
27197 | if ${gcc_cv_math_func_asinhf128+:} false; then : | |
27198 | $as_echo_n "(cached) " >&6 | |
69eb61d4 TB |
27199 | else |
27200 | if test x$gcc_no_link = xyes; then | |
22e05272 | 27201 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
69eb61d4 TB |
27202 | fi |
27203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27204 | /* end confdefs.h. */ | |
27205 | ||
133d0d42 JJ |
27206 | #ifdef HAVE_COMPLEX_H |
27207 | #include <complex.h> | |
27208 | #endif | |
27209 | #ifdef HAVE_MATH_H | |
27210 | #include <math.h> | |
27211 | #endif | |
69eb61d4 | 27212 | |
133d0d42 | 27213 | int (*ptr)() = (int (*)())asinhf128; |
69eb61d4 TB |
27214 | |
27215 | int | |
27216 | main () | |
27217 | { | |
1ec601bf FXC |
27218 | return 0; |
27219 | } | |
133d0d42 | 27220 | |
1ec601bf FXC |
27221 | _ACEOF |
27222 | if ac_fn_c_try_link "$LINENO"; then : | |
133d0d42 | 27223 | gcc_cv_math_func_asinhf128=yes |
1ec601bf | 27224 | else |
133d0d42 | 27225 | gcc_cv_math_func_asinhf128=no |
1ec601bf FXC |
27226 | fi |
27227 | rm -f core conftest.err conftest.$ac_objext \ | |
27228 | conftest$ac_exeext conftest.$ac_ext | |
69eb61d4 | 27229 | fi |
133d0d42 JJ |
27230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf128" >&5 |
27231 | $as_echo "$gcc_cv_math_func_asinhf128" >&6; } | |
27232 | if test $gcc_cv_math_func_asinhf128 = yes; then | |
1ec601bf | 27233 | |
133d0d42 JJ |
27234 | cat >>confdefs.h <<_ACEOF |
27235 | #define HAVE_ASINHF128 1 | |
27236 | _ACEOF | |
1ec601bf | 27237 | |
133d0d42 | 27238 | fi |
1ec601bf FXC |
27239 | |
27240 | ||
1ec601bf | 27241 | |
1ec601bf | 27242 | |
133d0d42 JJ |
27243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f128" >&5 |
27244 | $as_echo_n "checking for atan2f128... " >&6; } | |
27245 | if ${gcc_cv_math_func_atan2f128+:} false; then : | |
27246 | $as_echo_n "(cached) " >&6 | |
27247 | else | |
27248 | if test x$gcc_no_link = xyes; then | |
22e05272 | 27249 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1ec601bf FXC |
27250 | fi |
27251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27252 | /* end confdefs.h. */ | |
27253 | ||
133d0d42 JJ |
27254 | #ifdef HAVE_COMPLEX_H |
27255 | #include <complex.h> | |
27256 | #endif | |
27257 | #ifdef HAVE_MATH_H | |
27258 | #include <math.h> | |
27259 | #endif | |
27260 | ||
27261 | int (*ptr)() = (int (*)())atan2f128; | |
27262 | ||
1ec601bf FXC |
27263 | int |
27264 | main () | |
27265 | { | |
1ec601bf FXC |
27266 | return 0; |
27267 | } | |
133d0d42 | 27268 | |
1ec601bf FXC |
27269 | _ACEOF |
27270 | if ac_fn_c_try_link "$LINENO"; then : | |
133d0d42 | 27271 | gcc_cv_math_func_atan2f128=yes |
1ec601bf | 27272 | else |
133d0d42 | 27273 | gcc_cv_math_func_atan2f128=no |
1ec601bf FXC |
27274 | fi |
27275 | rm -f core conftest.err conftest.$ac_objext \ | |
27276 | conftest$ac_exeext conftest.$ac_ext | |
133d0d42 JJ |
27277 | fi |
27278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f128" >&5 | |
27279 | $as_echo "$gcc_cv_math_func_atan2f128" >&6; } | |
27280 | if test $gcc_cv_math_func_atan2f128 = yes; then | |
828012a5 | 27281 | |
133d0d42 JJ |
27282 | cat >>confdefs.h <<_ACEOF |
27283 | #define HAVE_ATAN2F128 1 | |
27284 | _ACEOF | |
27285 | ||
27286 | fi | |
27287 | ||
27288 | ||
27289 | ||
27290 | ||
27291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf128" >&5 | |
27292 | $as_echo_n "checking for atanf128... " >&6; } | |
27293 | if ${gcc_cv_math_func_atanf128+:} false; then : | |
27294 | $as_echo_n "(cached) " >&6 | |
27295 | else | |
27296 | if test x$gcc_no_link = xyes; then | |
22e05272 | 27297 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
828012a5 RO |
27298 | fi |
27299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27300 | /* end confdefs.h. */ | |
27301 | ||
133d0d42 JJ |
27302 | #ifdef HAVE_COMPLEX_H |
27303 | #include <complex.h> | |
27304 | #endif | |
27305 | #ifdef HAVE_MATH_H | |
27306 | #include <math.h> | |
27307 | #endif | |
27308 | ||
27309 | int (*ptr)() = (int (*)())atanf128; | |
27310 | ||
828012a5 RO |
27311 | int |
27312 | main () | |
27313 | { | |
133d0d42 JJ |
27314 | return 0; |
27315 | } | |
27316 | ||
27317 | _ACEOF | |
27318 | if ac_fn_c_try_link "$LINENO"; then : | |
27319 | gcc_cv_math_func_atanf128=yes | |
27320 | else | |
27321 | gcc_cv_math_func_atanf128=no | |
27322 | fi | |
27323 | rm -f core conftest.err conftest.$ac_objext \ | |
27324 | conftest$ac_exeext conftest.$ac_ext | |
27325 | fi | |
27326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf128" >&5 | |
27327 | $as_echo "$gcc_cv_math_func_atanf128" >&6; } | |
27328 | if test $gcc_cv_math_func_atanf128 = yes; then | |
27329 | ||
27330 | cat >>confdefs.h <<_ACEOF | |
27331 | #define HAVE_ATANF128 1 | |
27332 | _ACEOF | |
27333 | ||
27334 | fi | |
27335 | ||
27336 | ||
27337 | ||
27338 | ||
27339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf128" >&5 | |
27340 | $as_echo_n "checking for atanhf128... " >&6; } | |
27341 | if ${gcc_cv_math_func_atanhf128+:} false; then : | |
27342 | $as_echo_n "(cached) " >&6 | |
27343 | else | |
27344 | if test x$gcc_no_link = xyes; then | |
27345 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27346 | fi | |
27347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27348 | /* end confdefs.h. */ | |
27349 | ||
27350 | #ifdef HAVE_COMPLEX_H | |
27351 | #include <complex.h> | |
27352 | #endif | |
27353 | #ifdef HAVE_MATH_H | |
27354 | #include <math.h> | |
27355 | #endif | |
27356 | ||
27357 | int (*ptr)() = (int (*)())atanhf128; | |
27358 | ||
27359 | int | |
27360 | main () | |
27361 | { | |
27362 | return 0; | |
27363 | } | |
27364 | ||
27365 | _ACEOF | |
27366 | if ac_fn_c_try_link "$LINENO"; then : | |
27367 | gcc_cv_math_func_atanhf128=yes | |
27368 | else | |
27369 | gcc_cv_math_func_atanhf128=no | |
27370 | fi | |
27371 | rm -f core conftest.err conftest.$ac_objext \ | |
27372 | conftest$ac_exeext conftest.$ac_ext | |
27373 | fi | |
27374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf128" >&5 | |
27375 | $as_echo "$gcc_cv_math_func_atanhf128" >&6; } | |
27376 | if test $gcc_cv_math_func_atanhf128 = yes; then | |
27377 | ||
27378 | cat >>confdefs.h <<_ACEOF | |
27379 | #define HAVE_ATANHF128 1 | |
27380 | _ACEOF | |
27381 | ||
27382 | fi | |
27383 | ||
27384 | ||
27385 | ||
27386 | ||
27387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf128" >&5 | |
27388 | $as_echo_n "checking for cargf128... " >&6; } | |
27389 | if ${gcc_cv_math_func_cargf128+:} false; then : | |
27390 | $as_echo_n "(cached) " >&6 | |
27391 | else | |
27392 | if test x$gcc_no_link = xyes; then | |
27393 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27394 | fi | |
27395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27396 | /* end confdefs.h. */ | |
27397 | ||
27398 | #ifdef HAVE_COMPLEX_H | |
27399 | #include <complex.h> | |
27400 | #endif | |
27401 | #ifdef HAVE_MATH_H | |
27402 | #include <math.h> | |
27403 | #endif | |
27404 | ||
27405 | int (*ptr)() = (int (*)())cargf128; | |
27406 | ||
27407 | int | |
27408 | main () | |
27409 | { | |
27410 | return 0; | |
27411 | } | |
27412 | ||
27413 | _ACEOF | |
27414 | if ac_fn_c_try_link "$LINENO"; then : | |
27415 | gcc_cv_math_func_cargf128=yes | |
27416 | else | |
27417 | gcc_cv_math_func_cargf128=no | |
27418 | fi | |
27419 | rm -f core conftest.err conftest.$ac_objext \ | |
27420 | conftest$ac_exeext conftest.$ac_ext | |
27421 | fi | |
27422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf128" >&5 | |
27423 | $as_echo "$gcc_cv_math_func_cargf128" >&6; } | |
27424 | if test $gcc_cv_math_func_cargf128 = yes; then | |
27425 | ||
27426 | cat >>confdefs.h <<_ACEOF | |
27427 | #define HAVE_CARGF128 1 | |
27428 | _ACEOF | |
27429 | ||
27430 | fi | |
27431 | ||
27432 | ||
27433 | ||
27434 | ||
27435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf128" >&5 | |
27436 | $as_echo_n "checking for ceilf128... " >&6; } | |
27437 | if ${gcc_cv_math_func_ceilf128+:} false; then : | |
27438 | $as_echo_n "(cached) " >&6 | |
27439 | else | |
27440 | if test x$gcc_no_link = xyes; then | |
27441 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27442 | fi | |
27443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27444 | /* end confdefs.h. */ | |
27445 | ||
27446 | #ifdef HAVE_COMPLEX_H | |
27447 | #include <complex.h> | |
27448 | #endif | |
27449 | #ifdef HAVE_MATH_H | |
27450 | #include <math.h> | |
27451 | #endif | |
27452 | ||
27453 | int (*ptr)() = (int (*)())ceilf128; | |
27454 | ||
27455 | int | |
27456 | main () | |
27457 | { | |
27458 | return 0; | |
27459 | } | |
27460 | ||
27461 | _ACEOF | |
27462 | if ac_fn_c_try_link "$LINENO"; then : | |
27463 | gcc_cv_math_func_ceilf128=yes | |
27464 | else | |
27465 | gcc_cv_math_func_ceilf128=no | |
27466 | fi | |
27467 | rm -f core conftest.err conftest.$ac_objext \ | |
27468 | conftest$ac_exeext conftest.$ac_ext | |
27469 | fi | |
27470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf128" >&5 | |
27471 | $as_echo "$gcc_cv_math_func_ceilf128" >&6; } | |
27472 | if test $gcc_cv_math_func_ceilf128 = yes; then | |
27473 | ||
27474 | cat >>confdefs.h <<_ACEOF | |
27475 | #define HAVE_CEILF128 1 | |
27476 | _ACEOF | |
27477 | ||
27478 | fi | |
27479 | ||
27480 | ||
27481 | ||
27482 | ||
27483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf128" >&5 | |
27484 | $as_echo_n "checking for copysignf128... " >&6; } | |
27485 | if ${gcc_cv_math_func_copysignf128+:} false; then : | |
27486 | $as_echo_n "(cached) " >&6 | |
27487 | else | |
27488 | if test x$gcc_no_link = xyes; then | |
27489 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27490 | fi | |
27491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27492 | /* end confdefs.h. */ | |
27493 | ||
27494 | #ifdef HAVE_COMPLEX_H | |
27495 | #include <complex.h> | |
27496 | #endif | |
27497 | #ifdef HAVE_MATH_H | |
27498 | #include <math.h> | |
27499 | #endif | |
27500 | ||
27501 | int (*ptr)() = (int (*)())copysignf128; | |
27502 | ||
27503 | int | |
27504 | main () | |
27505 | { | |
27506 | return 0; | |
27507 | } | |
27508 | ||
27509 | _ACEOF | |
27510 | if ac_fn_c_try_link "$LINENO"; then : | |
27511 | gcc_cv_math_func_copysignf128=yes | |
27512 | else | |
27513 | gcc_cv_math_func_copysignf128=no | |
27514 | fi | |
27515 | rm -f core conftest.err conftest.$ac_objext \ | |
27516 | conftest$ac_exeext conftest.$ac_ext | |
27517 | fi | |
27518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf128" >&5 | |
27519 | $as_echo "$gcc_cv_math_func_copysignf128" >&6; } | |
27520 | if test $gcc_cv_math_func_copysignf128 = yes; then | |
27521 | ||
27522 | cat >>confdefs.h <<_ACEOF | |
27523 | #define HAVE_COPYSIGNF128 1 | |
27524 | _ACEOF | |
27525 | ||
27526 | fi | |
27527 | ||
27528 | ||
27529 | ||
27530 | ||
27531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf128" >&5 | |
27532 | $as_echo_n "checking for cosf128... " >&6; } | |
27533 | if ${gcc_cv_math_func_cosf128+:} false; then : | |
27534 | $as_echo_n "(cached) " >&6 | |
27535 | else | |
27536 | if test x$gcc_no_link = xyes; then | |
27537 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27538 | fi | |
27539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27540 | /* end confdefs.h. */ | |
27541 | ||
27542 | #ifdef HAVE_COMPLEX_H | |
27543 | #include <complex.h> | |
27544 | #endif | |
27545 | #ifdef HAVE_MATH_H | |
27546 | #include <math.h> | |
27547 | #endif | |
27548 | ||
27549 | int (*ptr)() = (int (*)())cosf128; | |
27550 | ||
27551 | int | |
27552 | main () | |
27553 | { | |
27554 | return 0; | |
27555 | } | |
27556 | ||
27557 | _ACEOF | |
27558 | if ac_fn_c_try_link "$LINENO"; then : | |
27559 | gcc_cv_math_func_cosf128=yes | |
27560 | else | |
27561 | gcc_cv_math_func_cosf128=no | |
27562 | fi | |
27563 | rm -f core conftest.err conftest.$ac_objext \ | |
27564 | conftest$ac_exeext conftest.$ac_ext | |
27565 | fi | |
27566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf128" >&5 | |
27567 | $as_echo "$gcc_cv_math_func_cosf128" >&6; } | |
27568 | if test $gcc_cv_math_func_cosf128 = yes; then | |
27569 | ||
27570 | cat >>confdefs.h <<_ACEOF | |
27571 | #define HAVE_COSF128 1 | |
27572 | _ACEOF | |
27573 | ||
27574 | fi | |
27575 | ||
27576 | ||
27577 | ||
27578 | ||
27579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf128" >&5 | |
27580 | $as_echo_n "checking for ccosf128... " >&6; } | |
27581 | if ${gcc_cv_math_func_ccosf128+:} false; then : | |
27582 | $as_echo_n "(cached) " >&6 | |
27583 | else | |
27584 | if test x$gcc_no_link = xyes; then | |
27585 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27586 | fi | |
27587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27588 | /* end confdefs.h. */ | |
27589 | ||
27590 | #ifdef HAVE_COMPLEX_H | |
27591 | #include <complex.h> | |
27592 | #endif | |
27593 | #ifdef HAVE_MATH_H | |
27594 | #include <math.h> | |
27595 | #endif | |
27596 | ||
27597 | int (*ptr)() = (int (*)())ccosf128; | |
27598 | ||
27599 | int | |
27600 | main () | |
27601 | { | |
27602 | return 0; | |
27603 | } | |
27604 | ||
27605 | _ACEOF | |
27606 | if ac_fn_c_try_link "$LINENO"; then : | |
27607 | gcc_cv_math_func_ccosf128=yes | |
27608 | else | |
27609 | gcc_cv_math_func_ccosf128=no | |
27610 | fi | |
27611 | rm -f core conftest.err conftest.$ac_objext \ | |
27612 | conftest$ac_exeext conftest.$ac_ext | |
27613 | fi | |
27614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf128" >&5 | |
27615 | $as_echo "$gcc_cv_math_func_ccosf128" >&6; } | |
27616 | if test $gcc_cv_math_func_ccosf128 = yes; then | |
27617 | ||
27618 | cat >>confdefs.h <<_ACEOF | |
27619 | #define HAVE_CCOSF128 1 | |
27620 | _ACEOF | |
27621 | ||
27622 | fi | |
27623 | ||
27624 | ||
27625 | ||
27626 | ||
27627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf128" >&5 | |
27628 | $as_echo_n "checking for coshf128... " >&6; } | |
27629 | if ${gcc_cv_math_func_coshf128+:} false; then : | |
27630 | $as_echo_n "(cached) " >&6 | |
27631 | else | |
27632 | if test x$gcc_no_link = xyes; then | |
27633 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27634 | fi | |
27635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27636 | /* end confdefs.h. */ | |
27637 | ||
27638 | #ifdef HAVE_COMPLEX_H | |
27639 | #include <complex.h> | |
27640 | #endif | |
27641 | #ifdef HAVE_MATH_H | |
27642 | #include <math.h> | |
27643 | #endif | |
27644 | ||
27645 | int (*ptr)() = (int (*)())coshf128; | |
27646 | ||
27647 | int | |
27648 | main () | |
27649 | { | |
27650 | return 0; | |
27651 | } | |
27652 | ||
27653 | _ACEOF | |
27654 | if ac_fn_c_try_link "$LINENO"; then : | |
27655 | gcc_cv_math_func_coshf128=yes | |
27656 | else | |
27657 | gcc_cv_math_func_coshf128=no | |
27658 | fi | |
27659 | rm -f core conftest.err conftest.$ac_objext \ | |
27660 | conftest$ac_exeext conftest.$ac_ext | |
27661 | fi | |
27662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf128" >&5 | |
27663 | $as_echo "$gcc_cv_math_func_coshf128" >&6; } | |
27664 | if test $gcc_cv_math_func_coshf128 = yes; then | |
27665 | ||
27666 | cat >>confdefs.h <<_ACEOF | |
27667 | #define HAVE_COSHF128 1 | |
27668 | _ACEOF | |
27669 | ||
27670 | fi | |
27671 | ||
27672 | ||
27673 | ||
27674 | ||
27675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf128" >&5 | |
27676 | $as_echo_n "checking for ccoshf128... " >&6; } | |
27677 | if ${gcc_cv_math_func_ccoshf128+:} false; then : | |
27678 | $as_echo_n "(cached) " >&6 | |
27679 | else | |
27680 | if test x$gcc_no_link = xyes; then | |
27681 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27682 | fi | |
27683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27684 | /* end confdefs.h. */ | |
27685 | ||
27686 | #ifdef HAVE_COMPLEX_H | |
27687 | #include <complex.h> | |
27688 | #endif | |
27689 | #ifdef HAVE_MATH_H | |
27690 | #include <math.h> | |
27691 | #endif | |
27692 | ||
27693 | int (*ptr)() = (int (*)())ccoshf128; | |
27694 | ||
27695 | int | |
27696 | main () | |
27697 | { | |
27698 | return 0; | |
27699 | } | |
27700 | ||
27701 | _ACEOF | |
27702 | if ac_fn_c_try_link "$LINENO"; then : | |
27703 | gcc_cv_math_func_ccoshf128=yes | |
27704 | else | |
27705 | gcc_cv_math_func_ccoshf128=no | |
27706 | fi | |
27707 | rm -f core conftest.err conftest.$ac_objext \ | |
27708 | conftest$ac_exeext conftest.$ac_ext | |
27709 | fi | |
27710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf128" >&5 | |
27711 | $as_echo "$gcc_cv_math_func_ccoshf128" >&6; } | |
27712 | if test $gcc_cv_math_func_ccoshf128 = yes; then | |
27713 | ||
27714 | cat >>confdefs.h <<_ACEOF | |
27715 | #define HAVE_CCOSHF128 1 | |
27716 | _ACEOF | |
27717 | ||
27718 | fi | |
27719 | ||
27720 | ||
27721 | ||
27722 | ||
27723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf128" >&5 | |
27724 | $as_echo_n "checking for expf128... " >&6; } | |
27725 | if ${gcc_cv_math_func_expf128+:} false; then : | |
27726 | $as_echo_n "(cached) " >&6 | |
27727 | else | |
27728 | if test x$gcc_no_link = xyes; then | |
27729 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27730 | fi | |
27731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27732 | /* end confdefs.h. */ | |
27733 | ||
27734 | #ifdef HAVE_COMPLEX_H | |
27735 | #include <complex.h> | |
27736 | #endif | |
27737 | #ifdef HAVE_MATH_H | |
27738 | #include <math.h> | |
27739 | #endif | |
27740 | ||
27741 | int (*ptr)() = (int (*)())expf128; | |
27742 | ||
27743 | int | |
27744 | main () | |
27745 | { | |
27746 | return 0; | |
27747 | } | |
27748 | ||
27749 | _ACEOF | |
27750 | if ac_fn_c_try_link "$LINENO"; then : | |
27751 | gcc_cv_math_func_expf128=yes | |
27752 | else | |
27753 | gcc_cv_math_func_expf128=no | |
27754 | fi | |
27755 | rm -f core conftest.err conftest.$ac_objext \ | |
27756 | conftest$ac_exeext conftest.$ac_ext | |
27757 | fi | |
27758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf128" >&5 | |
27759 | $as_echo "$gcc_cv_math_func_expf128" >&6; } | |
27760 | if test $gcc_cv_math_func_expf128 = yes; then | |
27761 | ||
27762 | cat >>confdefs.h <<_ACEOF | |
27763 | #define HAVE_EXPF128 1 | |
27764 | _ACEOF | |
27765 | ||
27766 | fi | |
27767 | ||
27768 | ||
27769 | ||
27770 | ||
27771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf128" >&5 | |
27772 | $as_echo_n "checking for cexpf128... " >&6; } | |
27773 | if ${gcc_cv_math_func_cexpf128+:} false; then : | |
27774 | $as_echo_n "(cached) " >&6 | |
27775 | else | |
27776 | if test x$gcc_no_link = xyes; then | |
27777 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27778 | fi | |
27779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27780 | /* end confdefs.h. */ | |
27781 | ||
27782 | #ifdef HAVE_COMPLEX_H | |
27783 | #include <complex.h> | |
27784 | #endif | |
27785 | #ifdef HAVE_MATH_H | |
27786 | #include <math.h> | |
27787 | #endif | |
27788 | ||
27789 | int (*ptr)() = (int (*)())cexpf128; | |
27790 | ||
27791 | int | |
27792 | main () | |
27793 | { | |
27794 | return 0; | |
27795 | } | |
27796 | ||
27797 | _ACEOF | |
27798 | if ac_fn_c_try_link "$LINENO"; then : | |
27799 | gcc_cv_math_func_cexpf128=yes | |
27800 | else | |
27801 | gcc_cv_math_func_cexpf128=no | |
27802 | fi | |
27803 | rm -f core conftest.err conftest.$ac_objext \ | |
27804 | conftest$ac_exeext conftest.$ac_ext | |
27805 | fi | |
27806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf128" >&5 | |
27807 | $as_echo "$gcc_cv_math_func_cexpf128" >&6; } | |
27808 | if test $gcc_cv_math_func_cexpf128 = yes; then | |
27809 | ||
27810 | cat >>confdefs.h <<_ACEOF | |
27811 | #define HAVE_CEXPF128 1 | |
27812 | _ACEOF | |
27813 | ||
27814 | fi | |
27815 | ||
27816 | ||
27817 | ||
27818 | ||
27819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf128" >&5 | |
27820 | $as_echo_n "checking for fabsf128... " >&6; } | |
27821 | if ${gcc_cv_math_func_fabsf128+:} false; then : | |
27822 | $as_echo_n "(cached) " >&6 | |
27823 | else | |
27824 | if test x$gcc_no_link = xyes; then | |
27825 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27826 | fi | |
27827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27828 | /* end confdefs.h. */ | |
27829 | ||
27830 | #ifdef HAVE_COMPLEX_H | |
27831 | #include <complex.h> | |
27832 | #endif | |
27833 | #ifdef HAVE_MATH_H | |
27834 | #include <math.h> | |
27835 | #endif | |
27836 | ||
27837 | int (*ptr)() = (int (*)())fabsf128; | |
27838 | ||
27839 | int | |
27840 | main () | |
27841 | { | |
27842 | return 0; | |
27843 | } | |
27844 | ||
27845 | _ACEOF | |
27846 | if ac_fn_c_try_link "$LINENO"; then : | |
27847 | gcc_cv_math_func_fabsf128=yes | |
27848 | else | |
27849 | gcc_cv_math_func_fabsf128=no | |
27850 | fi | |
27851 | rm -f core conftest.err conftest.$ac_objext \ | |
27852 | conftest$ac_exeext conftest.$ac_ext | |
27853 | fi | |
27854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf128" >&5 | |
27855 | $as_echo "$gcc_cv_math_func_fabsf128" >&6; } | |
27856 | if test $gcc_cv_math_func_fabsf128 = yes; then | |
27857 | ||
27858 | cat >>confdefs.h <<_ACEOF | |
27859 | #define HAVE_FABSF128 1 | |
27860 | _ACEOF | |
27861 | ||
27862 | fi | |
27863 | ||
27864 | ||
27865 | ||
27866 | ||
27867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf128" >&5 | |
27868 | $as_echo_n "checking for cabsf128... " >&6; } | |
27869 | if ${gcc_cv_math_func_cabsf128+:} false; then : | |
27870 | $as_echo_n "(cached) " >&6 | |
27871 | else | |
27872 | if test x$gcc_no_link = xyes; then | |
27873 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27874 | fi | |
27875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27876 | /* end confdefs.h. */ | |
27877 | ||
27878 | #ifdef HAVE_COMPLEX_H | |
27879 | #include <complex.h> | |
27880 | #endif | |
27881 | #ifdef HAVE_MATH_H | |
27882 | #include <math.h> | |
27883 | #endif | |
27884 | ||
27885 | int (*ptr)() = (int (*)())cabsf128; | |
27886 | ||
27887 | int | |
27888 | main () | |
27889 | { | |
27890 | return 0; | |
27891 | } | |
27892 | ||
27893 | _ACEOF | |
27894 | if ac_fn_c_try_link "$LINENO"; then : | |
27895 | gcc_cv_math_func_cabsf128=yes | |
27896 | else | |
27897 | gcc_cv_math_func_cabsf128=no | |
27898 | fi | |
27899 | rm -f core conftest.err conftest.$ac_objext \ | |
27900 | conftest$ac_exeext conftest.$ac_ext | |
27901 | fi | |
27902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf128" >&5 | |
27903 | $as_echo "$gcc_cv_math_func_cabsf128" >&6; } | |
27904 | if test $gcc_cv_math_func_cabsf128 = yes; then | |
27905 | ||
27906 | cat >>confdefs.h <<_ACEOF | |
27907 | #define HAVE_CABSF128 1 | |
27908 | _ACEOF | |
27909 | ||
27910 | fi | |
27911 | ||
27912 | ||
27913 | ||
27914 | ||
27915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf128" >&5 | |
27916 | $as_echo_n "checking for floorf128... " >&6; } | |
27917 | if ${gcc_cv_math_func_floorf128+:} false; then : | |
27918 | $as_echo_n "(cached) " >&6 | |
27919 | else | |
27920 | if test x$gcc_no_link = xyes; then | |
27921 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27922 | fi | |
27923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27924 | /* end confdefs.h. */ | |
27925 | ||
27926 | #ifdef HAVE_COMPLEX_H | |
27927 | #include <complex.h> | |
27928 | #endif | |
27929 | #ifdef HAVE_MATH_H | |
27930 | #include <math.h> | |
27931 | #endif | |
27932 | ||
27933 | int (*ptr)() = (int (*)())floorf128; | |
27934 | ||
27935 | int | |
27936 | main () | |
27937 | { | |
27938 | return 0; | |
27939 | } | |
27940 | ||
27941 | _ACEOF | |
27942 | if ac_fn_c_try_link "$LINENO"; then : | |
27943 | gcc_cv_math_func_floorf128=yes | |
27944 | else | |
27945 | gcc_cv_math_func_floorf128=no | |
27946 | fi | |
27947 | rm -f core conftest.err conftest.$ac_objext \ | |
27948 | conftest$ac_exeext conftest.$ac_ext | |
27949 | fi | |
27950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf128" >&5 | |
27951 | $as_echo "$gcc_cv_math_func_floorf128" >&6; } | |
27952 | if test $gcc_cv_math_func_floorf128 = yes; then | |
27953 | ||
27954 | cat >>confdefs.h <<_ACEOF | |
27955 | #define HAVE_FLOORF128 1 | |
27956 | _ACEOF | |
27957 | ||
27958 | fi | |
27959 | ||
27960 | ||
27961 | ||
27962 | ||
27963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf128" >&5 | |
27964 | $as_echo_n "checking for fmaf128... " >&6; } | |
27965 | if ${gcc_cv_math_func_fmaf128+:} false; then : | |
27966 | $as_echo_n "(cached) " >&6 | |
27967 | else | |
27968 | if test x$gcc_no_link = xyes; then | |
27969 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27970 | fi | |
27971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27972 | /* end confdefs.h. */ | |
27973 | ||
27974 | #ifdef HAVE_COMPLEX_H | |
27975 | #include <complex.h> | |
27976 | #endif | |
27977 | #ifdef HAVE_MATH_H | |
27978 | #include <math.h> | |
27979 | #endif | |
27980 | ||
27981 | int (*ptr)() = (int (*)())fmaf128; | |
27982 | ||
27983 | int | |
27984 | main () | |
27985 | { | |
27986 | return 0; | |
27987 | } | |
27988 | ||
27989 | _ACEOF | |
27990 | if ac_fn_c_try_link "$LINENO"; then : | |
27991 | gcc_cv_math_func_fmaf128=yes | |
27992 | else | |
27993 | gcc_cv_math_func_fmaf128=no | |
27994 | fi | |
27995 | rm -f core conftest.err conftest.$ac_objext \ | |
27996 | conftest$ac_exeext conftest.$ac_ext | |
27997 | fi | |
27998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf128" >&5 | |
27999 | $as_echo "$gcc_cv_math_func_fmaf128" >&6; } | |
28000 | if test $gcc_cv_math_func_fmaf128 = yes; then | |
28001 | ||
28002 | cat >>confdefs.h <<_ACEOF | |
28003 | #define HAVE_FMAF128 1 | |
28004 | _ACEOF | |
28005 | ||
28006 | fi | |
28007 | ||
28008 | ||
28009 | ||
28010 | ||
28011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf128" >&5 | |
28012 | $as_echo_n "checking for fmodf128... " >&6; } | |
28013 | if ${gcc_cv_math_func_fmodf128+:} false; then : | |
28014 | $as_echo_n "(cached) " >&6 | |
28015 | else | |
28016 | if test x$gcc_no_link = xyes; then | |
28017 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28018 | fi | |
28019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28020 | /* end confdefs.h. */ | |
28021 | ||
28022 | #ifdef HAVE_COMPLEX_H | |
28023 | #include <complex.h> | |
28024 | #endif | |
28025 | #ifdef HAVE_MATH_H | |
28026 | #include <math.h> | |
28027 | #endif | |
28028 | ||
28029 | int (*ptr)() = (int (*)())fmodf128; | |
28030 | ||
28031 | int | |
28032 | main () | |
28033 | { | |
28034 | return 0; | |
28035 | } | |
28036 | ||
28037 | _ACEOF | |
28038 | if ac_fn_c_try_link "$LINENO"; then : | |
28039 | gcc_cv_math_func_fmodf128=yes | |
28040 | else | |
28041 | gcc_cv_math_func_fmodf128=no | |
28042 | fi | |
28043 | rm -f core conftest.err conftest.$ac_objext \ | |
28044 | conftest$ac_exeext conftest.$ac_ext | |
28045 | fi | |
28046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf128" >&5 | |
28047 | $as_echo "$gcc_cv_math_func_fmodf128" >&6; } | |
28048 | if test $gcc_cv_math_func_fmodf128 = yes; then | |
28049 | ||
28050 | cat >>confdefs.h <<_ACEOF | |
28051 | #define HAVE_FMODF128 1 | |
28052 | _ACEOF | |
28053 | ||
28054 | fi | |
28055 | ||
28056 | ||
28057 | ||
28058 | ||
28059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf128" >&5 | |
28060 | $as_echo_n "checking for frexpf128... " >&6; } | |
28061 | if ${gcc_cv_math_func_frexpf128+:} false; then : | |
28062 | $as_echo_n "(cached) " >&6 | |
28063 | else | |
28064 | if test x$gcc_no_link = xyes; then | |
28065 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28066 | fi | |
28067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28068 | /* end confdefs.h. */ | |
28069 | ||
28070 | #ifdef HAVE_COMPLEX_H | |
28071 | #include <complex.h> | |
28072 | #endif | |
28073 | #ifdef HAVE_MATH_H | |
28074 | #include <math.h> | |
28075 | #endif | |
28076 | ||
28077 | int (*ptr)() = (int (*)())frexpf128; | |
28078 | ||
28079 | int | |
28080 | main () | |
28081 | { | |
28082 | return 0; | |
28083 | } | |
28084 | ||
28085 | _ACEOF | |
28086 | if ac_fn_c_try_link "$LINENO"; then : | |
28087 | gcc_cv_math_func_frexpf128=yes | |
28088 | else | |
28089 | gcc_cv_math_func_frexpf128=no | |
28090 | fi | |
28091 | rm -f core conftest.err conftest.$ac_objext \ | |
28092 | conftest$ac_exeext conftest.$ac_ext | |
28093 | fi | |
28094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf128" >&5 | |
28095 | $as_echo "$gcc_cv_math_func_frexpf128" >&6; } | |
28096 | if test $gcc_cv_math_func_frexpf128 = yes; then | |
28097 | ||
28098 | cat >>confdefs.h <<_ACEOF | |
28099 | #define HAVE_FREXPF128 1 | |
28100 | _ACEOF | |
28101 | ||
28102 | fi | |
28103 | ||
28104 | ||
28105 | ||
28106 | ||
28107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf128" >&5 | |
28108 | $as_echo_n "checking for hypotf128... " >&6; } | |
28109 | if ${gcc_cv_math_func_hypotf128+:} false; then : | |
28110 | $as_echo_n "(cached) " >&6 | |
28111 | else | |
28112 | if test x$gcc_no_link = xyes; then | |
28113 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28114 | fi | |
28115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28116 | /* end confdefs.h. */ | |
28117 | ||
28118 | #ifdef HAVE_COMPLEX_H | |
28119 | #include <complex.h> | |
28120 | #endif | |
28121 | #ifdef HAVE_MATH_H | |
28122 | #include <math.h> | |
28123 | #endif | |
28124 | ||
28125 | int (*ptr)() = (int (*)())hypotf128; | |
28126 | ||
28127 | int | |
28128 | main () | |
28129 | { | |
28130 | return 0; | |
28131 | } | |
28132 | ||
28133 | _ACEOF | |
28134 | if ac_fn_c_try_link "$LINENO"; then : | |
28135 | gcc_cv_math_func_hypotf128=yes | |
28136 | else | |
28137 | gcc_cv_math_func_hypotf128=no | |
28138 | fi | |
28139 | rm -f core conftest.err conftest.$ac_objext \ | |
28140 | conftest$ac_exeext conftest.$ac_ext | |
28141 | fi | |
28142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf128" >&5 | |
28143 | $as_echo "$gcc_cv_math_func_hypotf128" >&6; } | |
28144 | if test $gcc_cv_math_func_hypotf128 = yes; then | |
28145 | ||
28146 | cat >>confdefs.h <<_ACEOF | |
28147 | #define HAVE_HYPOTF128 1 | |
28148 | _ACEOF | |
28149 | ||
28150 | fi | |
28151 | ||
28152 | ||
28153 | ||
28154 | ||
28155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf128" >&5 | |
28156 | $as_echo_n "checking for ldexpf128... " >&6; } | |
28157 | if ${gcc_cv_math_func_ldexpf128+:} false; then : | |
28158 | $as_echo_n "(cached) " >&6 | |
28159 | else | |
28160 | if test x$gcc_no_link = xyes; then | |
28161 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28162 | fi | |
28163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28164 | /* end confdefs.h. */ | |
28165 | ||
28166 | #ifdef HAVE_COMPLEX_H | |
28167 | #include <complex.h> | |
28168 | #endif | |
28169 | #ifdef HAVE_MATH_H | |
28170 | #include <math.h> | |
28171 | #endif | |
28172 | ||
28173 | int (*ptr)() = (int (*)())ldexpf128; | |
28174 | ||
28175 | int | |
28176 | main () | |
28177 | { | |
28178 | return 0; | |
28179 | } | |
28180 | ||
28181 | _ACEOF | |
28182 | if ac_fn_c_try_link "$LINENO"; then : | |
28183 | gcc_cv_math_func_ldexpf128=yes | |
28184 | else | |
28185 | gcc_cv_math_func_ldexpf128=no | |
28186 | fi | |
28187 | rm -f core conftest.err conftest.$ac_objext \ | |
28188 | conftest$ac_exeext conftest.$ac_ext | |
28189 | fi | |
28190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf128" >&5 | |
28191 | $as_echo "$gcc_cv_math_func_ldexpf128" >&6; } | |
28192 | if test $gcc_cv_math_func_ldexpf128 = yes; then | |
28193 | ||
28194 | cat >>confdefs.h <<_ACEOF | |
28195 | #define HAVE_LDEXPF128 1 | |
28196 | _ACEOF | |
28197 | ||
28198 | fi | |
28199 | ||
28200 | ||
28201 | ||
28202 | ||
28203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf128" >&5 | |
28204 | $as_echo_n "checking for logf128... " >&6; } | |
28205 | if ${gcc_cv_math_func_logf128+:} false; then : | |
28206 | $as_echo_n "(cached) " >&6 | |
28207 | else | |
28208 | if test x$gcc_no_link = xyes; then | |
28209 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28210 | fi | |
28211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28212 | /* end confdefs.h. */ | |
28213 | ||
28214 | #ifdef HAVE_COMPLEX_H | |
28215 | #include <complex.h> | |
28216 | #endif | |
28217 | #ifdef HAVE_MATH_H | |
28218 | #include <math.h> | |
28219 | #endif | |
28220 | ||
28221 | int (*ptr)() = (int (*)())logf128; | |
28222 | ||
28223 | int | |
28224 | main () | |
28225 | { | |
28226 | return 0; | |
28227 | } | |
28228 | ||
28229 | _ACEOF | |
28230 | if ac_fn_c_try_link "$LINENO"; then : | |
28231 | gcc_cv_math_func_logf128=yes | |
28232 | else | |
28233 | gcc_cv_math_func_logf128=no | |
28234 | fi | |
28235 | rm -f core conftest.err conftest.$ac_objext \ | |
28236 | conftest$ac_exeext conftest.$ac_ext | |
28237 | fi | |
28238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf128" >&5 | |
28239 | $as_echo "$gcc_cv_math_func_logf128" >&6; } | |
28240 | if test $gcc_cv_math_func_logf128 = yes; then | |
28241 | ||
28242 | cat >>confdefs.h <<_ACEOF | |
28243 | #define HAVE_LOGF128 1 | |
28244 | _ACEOF | |
28245 | ||
28246 | fi | |
28247 | ||
28248 | ||
28249 | ||
28250 | ||
28251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf128" >&5 | |
28252 | $as_echo_n "checking for clogf128... " >&6; } | |
28253 | if ${gcc_cv_math_func_clogf128+:} false; then : | |
28254 | $as_echo_n "(cached) " >&6 | |
28255 | else | |
28256 | if test x$gcc_no_link = xyes; then | |
28257 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28258 | fi | |
28259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28260 | /* end confdefs.h. */ | |
28261 | ||
28262 | #ifdef HAVE_COMPLEX_H | |
28263 | #include <complex.h> | |
28264 | #endif | |
28265 | #ifdef HAVE_MATH_H | |
28266 | #include <math.h> | |
28267 | #endif | |
28268 | ||
28269 | int (*ptr)() = (int (*)())clogf128; | |
28270 | ||
28271 | int | |
28272 | main () | |
28273 | { | |
28274 | return 0; | |
28275 | } | |
28276 | ||
28277 | _ACEOF | |
28278 | if ac_fn_c_try_link "$LINENO"; then : | |
28279 | gcc_cv_math_func_clogf128=yes | |
28280 | else | |
28281 | gcc_cv_math_func_clogf128=no | |
28282 | fi | |
28283 | rm -f core conftest.err conftest.$ac_objext \ | |
28284 | conftest$ac_exeext conftest.$ac_ext | |
28285 | fi | |
28286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf128" >&5 | |
28287 | $as_echo "$gcc_cv_math_func_clogf128" >&6; } | |
28288 | if test $gcc_cv_math_func_clogf128 = yes; then | |
28289 | ||
28290 | cat >>confdefs.h <<_ACEOF | |
28291 | #define HAVE_CLOGF128 1 | |
28292 | _ACEOF | |
28293 | ||
28294 | fi | |
28295 | ||
28296 | ||
28297 | ||
28298 | ||
28299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f128" >&5 | |
28300 | $as_echo_n "checking for log10f128... " >&6; } | |
28301 | if ${gcc_cv_math_func_log10f128+:} false; then : | |
28302 | $as_echo_n "(cached) " >&6 | |
28303 | else | |
28304 | if test x$gcc_no_link = xyes; then | |
28305 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28306 | fi | |
28307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28308 | /* end confdefs.h. */ | |
28309 | ||
28310 | #ifdef HAVE_COMPLEX_H | |
28311 | #include <complex.h> | |
28312 | #endif | |
28313 | #ifdef HAVE_MATH_H | |
28314 | #include <math.h> | |
28315 | #endif | |
28316 | ||
28317 | int (*ptr)() = (int (*)())log10f128; | |
28318 | ||
28319 | int | |
28320 | main () | |
28321 | { | |
28322 | return 0; | |
28323 | } | |
28324 | ||
28325 | _ACEOF | |
28326 | if ac_fn_c_try_link "$LINENO"; then : | |
28327 | gcc_cv_math_func_log10f128=yes | |
28328 | else | |
28329 | gcc_cv_math_func_log10f128=no | |
28330 | fi | |
28331 | rm -f core conftest.err conftest.$ac_objext \ | |
28332 | conftest$ac_exeext conftest.$ac_ext | |
28333 | fi | |
28334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f128" >&5 | |
28335 | $as_echo "$gcc_cv_math_func_log10f128" >&6; } | |
28336 | if test $gcc_cv_math_func_log10f128 = yes; then | |
28337 | ||
28338 | cat >>confdefs.h <<_ACEOF | |
28339 | #define HAVE_LOG10F128 1 | |
28340 | _ACEOF | |
28341 | ||
28342 | fi | |
28343 | ||
28344 | ||
28345 | ||
28346 | ||
28347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f128" >&5 | |
28348 | $as_echo_n "checking for clog10f128... " >&6; } | |
28349 | if ${gcc_cv_math_func_clog10f128+:} false; then : | |
28350 | $as_echo_n "(cached) " >&6 | |
28351 | else | |
28352 | if test x$gcc_no_link = xyes; then | |
28353 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28354 | fi | |
28355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28356 | /* end confdefs.h. */ | |
28357 | ||
28358 | #ifdef HAVE_COMPLEX_H | |
28359 | #include <complex.h> | |
28360 | #endif | |
28361 | #ifdef HAVE_MATH_H | |
28362 | #include <math.h> | |
28363 | #endif | |
28364 | ||
28365 | int (*ptr)() = (int (*)())clog10f128; | |
28366 | ||
28367 | int | |
28368 | main () | |
28369 | { | |
28370 | return 0; | |
28371 | } | |
28372 | ||
28373 | _ACEOF | |
28374 | if ac_fn_c_try_link "$LINENO"; then : | |
28375 | gcc_cv_math_func_clog10f128=yes | |
28376 | else | |
28377 | gcc_cv_math_func_clog10f128=no | |
28378 | fi | |
28379 | rm -f core conftest.err conftest.$ac_objext \ | |
28380 | conftest$ac_exeext conftest.$ac_ext | |
28381 | fi | |
28382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f128" >&5 | |
28383 | $as_echo "$gcc_cv_math_func_clog10f128" >&6; } | |
28384 | if test $gcc_cv_math_func_clog10f128 = yes; then | |
28385 | ||
28386 | cat >>confdefs.h <<_ACEOF | |
28387 | #define HAVE_CLOG10F128 1 | |
28388 | _ACEOF | |
28389 | ||
28390 | fi | |
28391 | ||
28392 | ||
28393 | ||
28394 | ||
28395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf128" >&5 | |
28396 | $as_echo_n "checking for nextafterf128... " >&6; } | |
28397 | if ${gcc_cv_math_func_nextafterf128+:} false; then : | |
28398 | $as_echo_n "(cached) " >&6 | |
28399 | else | |
28400 | if test x$gcc_no_link = xyes; then | |
28401 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28402 | fi | |
28403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28404 | /* end confdefs.h. */ | |
28405 | ||
28406 | #ifdef HAVE_COMPLEX_H | |
28407 | #include <complex.h> | |
28408 | #endif | |
28409 | #ifdef HAVE_MATH_H | |
28410 | #include <math.h> | |
28411 | #endif | |
28412 | ||
28413 | int (*ptr)() = (int (*)())nextafterf128; | |
28414 | ||
28415 | int | |
28416 | main () | |
28417 | { | |
28418 | return 0; | |
28419 | } | |
28420 | ||
28421 | _ACEOF | |
28422 | if ac_fn_c_try_link "$LINENO"; then : | |
28423 | gcc_cv_math_func_nextafterf128=yes | |
28424 | else | |
28425 | gcc_cv_math_func_nextafterf128=no | |
28426 | fi | |
28427 | rm -f core conftest.err conftest.$ac_objext \ | |
28428 | conftest$ac_exeext conftest.$ac_ext | |
28429 | fi | |
28430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf128" >&5 | |
28431 | $as_echo "$gcc_cv_math_func_nextafterf128" >&6; } | |
28432 | if test $gcc_cv_math_func_nextafterf128 = yes; then | |
28433 | ||
28434 | cat >>confdefs.h <<_ACEOF | |
28435 | #define HAVE_NEXTAFTERF128 1 | |
28436 | _ACEOF | |
28437 | ||
28438 | fi | |
28439 | ||
28440 | ||
28441 | ||
28442 | ||
28443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf128" >&5 | |
28444 | $as_echo_n "checking for powf128... " >&6; } | |
28445 | if ${gcc_cv_math_func_powf128+:} false; then : | |
28446 | $as_echo_n "(cached) " >&6 | |
28447 | else | |
28448 | if test x$gcc_no_link = xyes; then | |
28449 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28450 | fi | |
28451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28452 | /* end confdefs.h. */ | |
28453 | ||
28454 | #ifdef HAVE_COMPLEX_H | |
28455 | #include <complex.h> | |
28456 | #endif | |
28457 | #ifdef HAVE_MATH_H | |
28458 | #include <math.h> | |
28459 | #endif | |
28460 | ||
28461 | int (*ptr)() = (int (*)())powf128; | |
28462 | ||
28463 | int | |
28464 | main () | |
28465 | { | |
28466 | return 0; | |
28467 | } | |
28468 | ||
28469 | _ACEOF | |
28470 | if ac_fn_c_try_link "$LINENO"; then : | |
28471 | gcc_cv_math_func_powf128=yes | |
28472 | else | |
28473 | gcc_cv_math_func_powf128=no | |
28474 | fi | |
28475 | rm -f core conftest.err conftest.$ac_objext \ | |
28476 | conftest$ac_exeext conftest.$ac_ext | |
28477 | fi | |
28478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf128" >&5 | |
28479 | $as_echo "$gcc_cv_math_func_powf128" >&6; } | |
28480 | if test $gcc_cv_math_func_powf128 = yes; then | |
28481 | ||
28482 | cat >>confdefs.h <<_ACEOF | |
28483 | #define HAVE_POWF128 1 | |
28484 | _ACEOF | |
28485 | ||
28486 | fi | |
28487 | ||
28488 | ||
28489 | ||
28490 | ||
28491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf128" >&5 | |
28492 | $as_echo_n "checking for cpowf128... " >&6; } | |
28493 | if ${gcc_cv_math_func_cpowf128+:} false; then : | |
28494 | $as_echo_n "(cached) " >&6 | |
28495 | else | |
28496 | if test x$gcc_no_link = xyes; then | |
28497 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28498 | fi | |
28499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28500 | /* end confdefs.h. */ | |
28501 | ||
28502 | #ifdef HAVE_COMPLEX_H | |
28503 | #include <complex.h> | |
28504 | #endif | |
28505 | #ifdef HAVE_MATH_H | |
28506 | #include <math.h> | |
28507 | #endif | |
28508 | ||
28509 | int (*ptr)() = (int (*)())cpowf128; | |
28510 | ||
28511 | int | |
28512 | main () | |
28513 | { | |
28514 | return 0; | |
28515 | } | |
28516 | ||
28517 | _ACEOF | |
28518 | if ac_fn_c_try_link "$LINENO"; then : | |
28519 | gcc_cv_math_func_cpowf128=yes | |
28520 | else | |
28521 | gcc_cv_math_func_cpowf128=no | |
28522 | fi | |
28523 | rm -f core conftest.err conftest.$ac_objext \ | |
28524 | conftest$ac_exeext conftest.$ac_ext | |
28525 | fi | |
28526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf128" >&5 | |
28527 | $as_echo "$gcc_cv_math_func_cpowf128" >&6; } | |
28528 | if test $gcc_cv_math_func_cpowf128 = yes; then | |
28529 | ||
28530 | cat >>confdefs.h <<_ACEOF | |
28531 | #define HAVE_CPOWF128 1 | |
28532 | _ACEOF | |
28533 | ||
28534 | fi | |
28535 | ||
28536 | ||
28537 | ||
28538 | ||
28539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf128" >&5 | |
28540 | $as_echo_n "checking for roundf128... " >&6; } | |
28541 | if ${gcc_cv_math_func_roundf128+:} false; then : | |
28542 | $as_echo_n "(cached) " >&6 | |
28543 | else | |
28544 | if test x$gcc_no_link = xyes; then | |
28545 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28546 | fi | |
28547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28548 | /* end confdefs.h. */ | |
28549 | ||
28550 | #ifdef HAVE_COMPLEX_H | |
28551 | #include <complex.h> | |
28552 | #endif | |
28553 | #ifdef HAVE_MATH_H | |
28554 | #include <math.h> | |
28555 | #endif | |
28556 | ||
28557 | int (*ptr)() = (int (*)())roundf128; | |
28558 | ||
28559 | int | |
28560 | main () | |
28561 | { | |
28562 | return 0; | |
28563 | } | |
28564 | ||
28565 | _ACEOF | |
28566 | if ac_fn_c_try_link "$LINENO"; then : | |
28567 | gcc_cv_math_func_roundf128=yes | |
28568 | else | |
28569 | gcc_cv_math_func_roundf128=no | |
28570 | fi | |
28571 | rm -f core conftest.err conftest.$ac_objext \ | |
28572 | conftest$ac_exeext conftest.$ac_ext | |
28573 | fi | |
28574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf128" >&5 | |
28575 | $as_echo "$gcc_cv_math_func_roundf128" >&6; } | |
28576 | if test $gcc_cv_math_func_roundf128 = yes; then | |
28577 | ||
28578 | cat >>confdefs.h <<_ACEOF | |
28579 | #define HAVE_ROUNDF128 1 | |
28580 | _ACEOF | |
28581 | ||
28582 | fi | |
28583 | ||
28584 | ||
28585 | ||
28586 | ||
28587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf128" >&5 | |
28588 | $as_echo_n "checking for lroundf128... " >&6; } | |
28589 | if ${gcc_cv_math_func_lroundf128+:} false; then : | |
28590 | $as_echo_n "(cached) " >&6 | |
28591 | else | |
28592 | if test x$gcc_no_link = xyes; then | |
28593 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28594 | fi | |
28595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28596 | /* end confdefs.h. */ | |
28597 | ||
28598 | #ifdef HAVE_COMPLEX_H | |
28599 | #include <complex.h> | |
28600 | #endif | |
28601 | #ifdef HAVE_MATH_H | |
28602 | #include <math.h> | |
28603 | #endif | |
28604 | ||
28605 | int (*ptr)() = (int (*)())lroundf128; | |
28606 | ||
28607 | int | |
28608 | main () | |
28609 | { | |
28610 | return 0; | |
28611 | } | |
28612 | ||
28613 | _ACEOF | |
28614 | if ac_fn_c_try_link "$LINENO"; then : | |
28615 | gcc_cv_math_func_lroundf128=yes | |
28616 | else | |
28617 | gcc_cv_math_func_lroundf128=no | |
28618 | fi | |
28619 | rm -f core conftest.err conftest.$ac_objext \ | |
28620 | conftest$ac_exeext conftest.$ac_ext | |
28621 | fi | |
28622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf128" >&5 | |
28623 | $as_echo "$gcc_cv_math_func_lroundf128" >&6; } | |
28624 | if test $gcc_cv_math_func_lroundf128 = yes; then | |
28625 | ||
28626 | cat >>confdefs.h <<_ACEOF | |
28627 | #define HAVE_LROUNDF128 1 | |
28628 | _ACEOF | |
28629 | ||
28630 | fi | |
28631 | ||
28632 | ||
28633 | ||
28634 | ||
28635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf128" >&5 | |
28636 | $as_echo_n "checking for llroundf128... " >&6; } | |
28637 | if ${gcc_cv_math_func_llroundf128+:} false; then : | |
28638 | $as_echo_n "(cached) " >&6 | |
28639 | else | |
28640 | if test x$gcc_no_link = xyes; then | |
28641 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28642 | fi | |
28643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28644 | /* end confdefs.h. */ | |
28645 | ||
28646 | #ifdef HAVE_COMPLEX_H | |
28647 | #include <complex.h> | |
28648 | #endif | |
28649 | #ifdef HAVE_MATH_H | |
28650 | #include <math.h> | |
28651 | #endif | |
28652 | ||
28653 | int (*ptr)() = (int (*)())llroundf128; | |
28654 | ||
28655 | int | |
28656 | main () | |
28657 | { | |
28658 | return 0; | |
28659 | } | |
28660 | ||
28661 | _ACEOF | |
28662 | if ac_fn_c_try_link "$LINENO"; then : | |
28663 | gcc_cv_math_func_llroundf128=yes | |
28664 | else | |
28665 | gcc_cv_math_func_llroundf128=no | |
28666 | fi | |
28667 | rm -f core conftest.err conftest.$ac_objext \ | |
28668 | conftest$ac_exeext conftest.$ac_ext | |
28669 | fi | |
28670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf128" >&5 | |
28671 | $as_echo "$gcc_cv_math_func_llroundf128" >&6; } | |
28672 | if test $gcc_cv_math_func_llroundf128 = yes; then | |
28673 | ||
28674 | cat >>confdefs.h <<_ACEOF | |
28675 | #define HAVE_LLROUNDF128 1 | |
28676 | _ACEOF | |
28677 | ||
28678 | fi | |
28679 | ||
28680 | ||
28681 | ||
28682 | ||
28683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf128" >&5 | |
28684 | $as_echo_n "checking for scalbnf128... " >&6; } | |
28685 | if ${gcc_cv_math_func_scalbnf128+:} false; then : | |
28686 | $as_echo_n "(cached) " >&6 | |
28687 | else | |
28688 | if test x$gcc_no_link = xyes; then | |
28689 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28690 | fi | |
28691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28692 | /* end confdefs.h. */ | |
28693 | ||
28694 | #ifdef HAVE_COMPLEX_H | |
28695 | #include <complex.h> | |
28696 | #endif | |
28697 | #ifdef HAVE_MATH_H | |
28698 | #include <math.h> | |
28699 | #endif | |
28700 | ||
28701 | int (*ptr)() = (int (*)())scalbnf128; | |
28702 | ||
28703 | int | |
28704 | main () | |
28705 | { | |
28706 | return 0; | |
28707 | } | |
28708 | ||
28709 | _ACEOF | |
28710 | if ac_fn_c_try_link "$LINENO"; then : | |
28711 | gcc_cv_math_func_scalbnf128=yes | |
28712 | else | |
28713 | gcc_cv_math_func_scalbnf128=no | |
28714 | fi | |
28715 | rm -f core conftest.err conftest.$ac_objext \ | |
28716 | conftest$ac_exeext conftest.$ac_ext | |
28717 | fi | |
28718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf128" >&5 | |
28719 | $as_echo "$gcc_cv_math_func_scalbnf128" >&6; } | |
28720 | if test $gcc_cv_math_func_scalbnf128 = yes; then | |
28721 | ||
28722 | cat >>confdefs.h <<_ACEOF | |
28723 | #define HAVE_SCALBNF128 1 | |
28724 | _ACEOF | |
28725 | ||
28726 | fi | |
28727 | ||
28728 | ||
28729 | ||
28730 | ||
28731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf128" >&5 | |
28732 | $as_echo_n "checking for sinf128... " >&6; } | |
28733 | if ${gcc_cv_math_func_sinf128+:} false; then : | |
28734 | $as_echo_n "(cached) " >&6 | |
28735 | else | |
28736 | if test x$gcc_no_link = xyes; then | |
28737 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28738 | fi | |
28739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28740 | /* end confdefs.h. */ | |
28741 | ||
28742 | #ifdef HAVE_COMPLEX_H | |
28743 | #include <complex.h> | |
28744 | #endif | |
28745 | #ifdef HAVE_MATH_H | |
28746 | #include <math.h> | |
28747 | #endif | |
28748 | ||
28749 | int (*ptr)() = (int (*)())sinf128; | |
28750 | ||
28751 | int | |
28752 | main () | |
28753 | { | |
28754 | return 0; | |
28755 | } | |
28756 | ||
28757 | _ACEOF | |
28758 | if ac_fn_c_try_link "$LINENO"; then : | |
28759 | gcc_cv_math_func_sinf128=yes | |
28760 | else | |
28761 | gcc_cv_math_func_sinf128=no | |
28762 | fi | |
28763 | rm -f core conftest.err conftest.$ac_objext \ | |
28764 | conftest$ac_exeext conftest.$ac_ext | |
28765 | fi | |
28766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf128" >&5 | |
28767 | $as_echo "$gcc_cv_math_func_sinf128" >&6; } | |
28768 | if test $gcc_cv_math_func_sinf128 = yes; then | |
28769 | ||
28770 | cat >>confdefs.h <<_ACEOF | |
28771 | #define HAVE_SINF128 1 | |
28772 | _ACEOF | |
28773 | ||
28774 | fi | |
28775 | ||
28776 | ||
28777 | ||
28778 | ||
28779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf128" >&5 | |
28780 | $as_echo_n "checking for csinf128... " >&6; } | |
28781 | if ${gcc_cv_math_func_csinf128+:} false; then : | |
28782 | $as_echo_n "(cached) " >&6 | |
28783 | else | |
28784 | if test x$gcc_no_link = xyes; then | |
28785 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28786 | fi | |
28787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28788 | /* end confdefs.h. */ | |
28789 | ||
28790 | #ifdef HAVE_COMPLEX_H | |
28791 | #include <complex.h> | |
28792 | #endif | |
28793 | #ifdef HAVE_MATH_H | |
28794 | #include <math.h> | |
28795 | #endif | |
28796 | ||
28797 | int (*ptr)() = (int (*)())csinf128; | |
28798 | ||
28799 | int | |
28800 | main () | |
28801 | { | |
28802 | return 0; | |
28803 | } | |
28804 | ||
28805 | _ACEOF | |
28806 | if ac_fn_c_try_link "$LINENO"; then : | |
28807 | gcc_cv_math_func_csinf128=yes | |
28808 | else | |
28809 | gcc_cv_math_func_csinf128=no | |
28810 | fi | |
28811 | rm -f core conftest.err conftest.$ac_objext \ | |
28812 | conftest$ac_exeext conftest.$ac_ext | |
28813 | fi | |
28814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf128" >&5 | |
28815 | $as_echo "$gcc_cv_math_func_csinf128" >&6; } | |
28816 | if test $gcc_cv_math_func_csinf128 = yes; then | |
28817 | ||
28818 | cat >>confdefs.h <<_ACEOF | |
28819 | #define HAVE_CSINF128 1 | |
28820 | _ACEOF | |
28821 | ||
28822 | fi | |
28823 | ||
28824 | ||
28825 | ||
28826 | ||
28827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf128" >&5 | |
28828 | $as_echo_n "checking for sinhf128... " >&6; } | |
28829 | if ${gcc_cv_math_func_sinhf128+:} false; then : | |
28830 | $as_echo_n "(cached) " >&6 | |
28831 | else | |
28832 | if test x$gcc_no_link = xyes; then | |
28833 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28834 | fi | |
28835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28836 | /* end confdefs.h. */ | |
28837 | ||
28838 | #ifdef HAVE_COMPLEX_H | |
28839 | #include <complex.h> | |
28840 | #endif | |
28841 | #ifdef HAVE_MATH_H | |
28842 | #include <math.h> | |
28843 | #endif | |
28844 | ||
28845 | int (*ptr)() = (int (*)())sinhf128; | |
28846 | ||
28847 | int | |
28848 | main () | |
28849 | { | |
28850 | return 0; | |
28851 | } | |
28852 | ||
28853 | _ACEOF | |
28854 | if ac_fn_c_try_link "$LINENO"; then : | |
28855 | gcc_cv_math_func_sinhf128=yes | |
28856 | else | |
28857 | gcc_cv_math_func_sinhf128=no | |
28858 | fi | |
28859 | rm -f core conftest.err conftest.$ac_objext \ | |
28860 | conftest$ac_exeext conftest.$ac_ext | |
28861 | fi | |
28862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf128" >&5 | |
28863 | $as_echo "$gcc_cv_math_func_sinhf128" >&6; } | |
28864 | if test $gcc_cv_math_func_sinhf128 = yes; then | |
28865 | ||
28866 | cat >>confdefs.h <<_ACEOF | |
28867 | #define HAVE_SINHF128 1 | |
28868 | _ACEOF | |
28869 | ||
28870 | fi | |
28871 | ||
28872 | ||
28873 | ||
28874 | ||
28875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf128" >&5 | |
28876 | $as_echo_n "checking for csinhf128... " >&6; } | |
28877 | if ${gcc_cv_math_func_csinhf128+:} false; then : | |
28878 | $as_echo_n "(cached) " >&6 | |
28879 | else | |
28880 | if test x$gcc_no_link = xyes; then | |
28881 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28882 | fi | |
28883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28884 | /* end confdefs.h. */ | |
28885 | ||
28886 | #ifdef HAVE_COMPLEX_H | |
28887 | #include <complex.h> | |
28888 | #endif | |
28889 | #ifdef HAVE_MATH_H | |
28890 | #include <math.h> | |
28891 | #endif | |
28892 | ||
28893 | int (*ptr)() = (int (*)())csinhf128; | |
28894 | ||
28895 | int | |
28896 | main () | |
28897 | { | |
28898 | return 0; | |
28899 | } | |
28900 | ||
28901 | _ACEOF | |
28902 | if ac_fn_c_try_link "$LINENO"; then : | |
28903 | gcc_cv_math_func_csinhf128=yes | |
28904 | else | |
28905 | gcc_cv_math_func_csinhf128=no | |
28906 | fi | |
28907 | rm -f core conftest.err conftest.$ac_objext \ | |
28908 | conftest$ac_exeext conftest.$ac_ext | |
28909 | fi | |
28910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf128" >&5 | |
28911 | $as_echo "$gcc_cv_math_func_csinhf128" >&6; } | |
28912 | if test $gcc_cv_math_func_csinhf128 = yes; then | |
28913 | ||
28914 | cat >>confdefs.h <<_ACEOF | |
28915 | #define HAVE_CSINHF128 1 | |
28916 | _ACEOF | |
28917 | ||
28918 | fi | |
28919 | ||
28920 | ||
28921 | ||
28922 | ||
28923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf128" >&5 | |
28924 | $as_echo_n "checking for sqrtf128... " >&6; } | |
28925 | if ${gcc_cv_math_func_sqrtf128+:} false; then : | |
28926 | $as_echo_n "(cached) " >&6 | |
28927 | else | |
28928 | if test x$gcc_no_link = xyes; then | |
28929 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28930 | fi | |
28931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28932 | /* end confdefs.h. */ | |
28933 | ||
28934 | #ifdef HAVE_COMPLEX_H | |
28935 | #include <complex.h> | |
28936 | #endif | |
28937 | #ifdef HAVE_MATH_H | |
28938 | #include <math.h> | |
28939 | #endif | |
28940 | ||
28941 | int (*ptr)() = (int (*)())sqrtf128; | |
28942 | ||
28943 | int | |
28944 | main () | |
28945 | { | |
28946 | return 0; | |
28947 | } | |
28948 | ||
28949 | _ACEOF | |
28950 | if ac_fn_c_try_link "$LINENO"; then : | |
28951 | gcc_cv_math_func_sqrtf128=yes | |
28952 | else | |
28953 | gcc_cv_math_func_sqrtf128=no | |
28954 | fi | |
28955 | rm -f core conftest.err conftest.$ac_objext \ | |
28956 | conftest$ac_exeext conftest.$ac_ext | |
28957 | fi | |
28958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf128" >&5 | |
28959 | $as_echo "$gcc_cv_math_func_sqrtf128" >&6; } | |
28960 | if test $gcc_cv_math_func_sqrtf128 = yes; then | |
28961 | ||
28962 | cat >>confdefs.h <<_ACEOF | |
28963 | #define HAVE_SQRTF128 1 | |
28964 | _ACEOF | |
28965 | ||
28966 | fi | |
28967 | ||
28968 | ||
28969 | ||
28970 | ||
28971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf128" >&5 | |
28972 | $as_echo_n "checking for csqrtf128... " >&6; } | |
28973 | if ${gcc_cv_math_func_csqrtf128+:} false; then : | |
28974 | $as_echo_n "(cached) " >&6 | |
28975 | else | |
28976 | if test x$gcc_no_link = xyes; then | |
28977 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28978 | fi | |
28979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28980 | /* end confdefs.h. */ | |
28981 | ||
28982 | #ifdef HAVE_COMPLEX_H | |
28983 | #include <complex.h> | |
28984 | #endif | |
28985 | #ifdef HAVE_MATH_H | |
28986 | #include <math.h> | |
28987 | #endif | |
28988 | ||
28989 | int (*ptr)() = (int (*)())csqrtf128; | |
28990 | ||
28991 | int | |
28992 | main () | |
28993 | { | |
28994 | return 0; | |
28995 | } | |
28996 | ||
28997 | _ACEOF | |
28998 | if ac_fn_c_try_link "$LINENO"; then : | |
28999 | gcc_cv_math_func_csqrtf128=yes | |
29000 | else | |
29001 | gcc_cv_math_func_csqrtf128=no | |
29002 | fi | |
29003 | rm -f core conftest.err conftest.$ac_objext \ | |
29004 | conftest$ac_exeext conftest.$ac_ext | |
29005 | fi | |
29006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf128" >&5 | |
29007 | $as_echo "$gcc_cv_math_func_csqrtf128" >&6; } | |
29008 | if test $gcc_cv_math_func_csqrtf128 = yes; then | |
29009 | ||
29010 | cat >>confdefs.h <<_ACEOF | |
29011 | #define HAVE_CSQRTF128 1 | |
29012 | _ACEOF | |
29013 | ||
29014 | fi | |
29015 | ||
29016 | ||
29017 | ||
29018 | ||
29019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf128" >&5 | |
29020 | $as_echo_n "checking for tanf128... " >&6; } | |
29021 | if ${gcc_cv_math_func_tanf128+:} false; then : | |
29022 | $as_echo_n "(cached) " >&6 | |
29023 | else | |
29024 | if test x$gcc_no_link = xyes; then | |
29025 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29026 | fi | |
29027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29028 | /* end confdefs.h. */ | |
29029 | ||
29030 | #ifdef HAVE_COMPLEX_H | |
29031 | #include <complex.h> | |
29032 | #endif | |
29033 | #ifdef HAVE_MATH_H | |
29034 | #include <math.h> | |
29035 | #endif | |
29036 | ||
29037 | int (*ptr)() = (int (*)())tanf128; | |
29038 | ||
29039 | int | |
29040 | main () | |
29041 | { | |
29042 | return 0; | |
29043 | } | |
29044 | ||
29045 | _ACEOF | |
29046 | if ac_fn_c_try_link "$LINENO"; then : | |
29047 | gcc_cv_math_func_tanf128=yes | |
29048 | else | |
29049 | gcc_cv_math_func_tanf128=no | |
29050 | fi | |
29051 | rm -f core conftest.err conftest.$ac_objext \ | |
29052 | conftest$ac_exeext conftest.$ac_ext | |
29053 | fi | |
29054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf128" >&5 | |
29055 | $as_echo "$gcc_cv_math_func_tanf128" >&6; } | |
29056 | if test $gcc_cv_math_func_tanf128 = yes; then | |
29057 | ||
29058 | cat >>confdefs.h <<_ACEOF | |
29059 | #define HAVE_TANF128 1 | |
29060 | _ACEOF | |
29061 | ||
29062 | fi | |
29063 | ||
29064 | ||
29065 | ||
29066 | ||
29067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf128" >&5 | |
29068 | $as_echo_n "checking for ctanf128... " >&6; } | |
29069 | if ${gcc_cv_math_func_ctanf128+:} false; then : | |
29070 | $as_echo_n "(cached) " >&6 | |
29071 | else | |
29072 | if test x$gcc_no_link = xyes; then | |
29073 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29074 | fi | |
29075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29076 | /* end confdefs.h. */ | |
29077 | ||
29078 | #ifdef HAVE_COMPLEX_H | |
29079 | #include <complex.h> | |
29080 | #endif | |
29081 | #ifdef HAVE_MATH_H | |
29082 | #include <math.h> | |
29083 | #endif | |
29084 | ||
29085 | int (*ptr)() = (int (*)())ctanf128; | |
29086 | ||
29087 | int | |
29088 | main () | |
29089 | { | |
29090 | return 0; | |
29091 | } | |
29092 | ||
29093 | _ACEOF | |
29094 | if ac_fn_c_try_link "$LINENO"; then : | |
29095 | gcc_cv_math_func_ctanf128=yes | |
29096 | else | |
29097 | gcc_cv_math_func_ctanf128=no | |
29098 | fi | |
29099 | rm -f core conftest.err conftest.$ac_objext \ | |
29100 | conftest$ac_exeext conftest.$ac_ext | |
29101 | fi | |
29102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf128" >&5 | |
29103 | $as_echo "$gcc_cv_math_func_ctanf128" >&6; } | |
29104 | if test $gcc_cv_math_func_ctanf128 = yes; then | |
29105 | ||
29106 | cat >>confdefs.h <<_ACEOF | |
29107 | #define HAVE_CTANF128 1 | |
29108 | _ACEOF | |
29109 | ||
29110 | fi | |
29111 | ||
29112 | ||
29113 | ||
29114 | ||
29115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf128" >&5 | |
29116 | $as_echo_n "checking for tanhf128... " >&6; } | |
29117 | if ${gcc_cv_math_func_tanhf128+:} false; then : | |
29118 | $as_echo_n "(cached) " >&6 | |
29119 | else | |
29120 | if test x$gcc_no_link = xyes; then | |
29121 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29122 | fi | |
29123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29124 | /* end confdefs.h. */ | |
29125 | ||
29126 | #ifdef HAVE_COMPLEX_H | |
29127 | #include <complex.h> | |
29128 | #endif | |
29129 | #ifdef HAVE_MATH_H | |
29130 | #include <math.h> | |
29131 | #endif | |
29132 | ||
29133 | int (*ptr)() = (int (*)())tanhf128; | |
29134 | ||
29135 | int | |
29136 | main () | |
29137 | { | |
29138 | return 0; | |
29139 | } | |
29140 | ||
29141 | _ACEOF | |
29142 | if ac_fn_c_try_link "$LINENO"; then : | |
29143 | gcc_cv_math_func_tanhf128=yes | |
29144 | else | |
29145 | gcc_cv_math_func_tanhf128=no | |
29146 | fi | |
29147 | rm -f core conftest.err conftest.$ac_objext \ | |
29148 | conftest$ac_exeext conftest.$ac_ext | |
29149 | fi | |
29150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf128" >&5 | |
29151 | $as_echo "$gcc_cv_math_func_tanhf128" >&6; } | |
29152 | if test $gcc_cv_math_func_tanhf128 = yes; then | |
29153 | ||
29154 | cat >>confdefs.h <<_ACEOF | |
29155 | #define HAVE_TANHF128 1 | |
29156 | _ACEOF | |
29157 | ||
29158 | fi | |
29159 | ||
29160 | ||
29161 | ||
29162 | ||
29163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf128" >&5 | |
29164 | $as_echo_n "checking for ctanhf128... " >&6; } | |
29165 | if ${gcc_cv_math_func_ctanhf128+:} false; then : | |
29166 | $as_echo_n "(cached) " >&6 | |
29167 | else | |
29168 | if test x$gcc_no_link = xyes; then | |
29169 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29170 | fi | |
29171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29172 | /* end confdefs.h. */ | |
29173 | ||
29174 | #ifdef HAVE_COMPLEX_H | |
29175 | #include <complex.h> | |
29176 | #endif | |
29177 | #ifdef HAVE_MATH_H | |
29178 | #include <math.h> | |
29179 | #endif | |
29180 | ||
29181 | int (*ptr)() = (int (*)())ctanhf128; | |
29182 | ||
29183 | int | |
29184 | main () | |
29185 | { | |
29186 | return 0; | |
29187 | } | |
29188 | ||
29189 | _ACEOF | |
29190 | if ac_fn_c_try_link "$LINENO"; then : | |
29191 | gcc_cv_math_func_ctanhf128=yes | |
29192 | else | |
29193 | gcc_cv_math_func_ctanhf128=no | |
29194 | fi | |
29195 | rm -f core conftest.err conftest.$ac_objext \ | |
29196 | conftest$ac_exeext conftest.$ac_ext | |
29197 | fi | |
29198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf128" >&5 | |
29199 | $as_echo "$gcc_cv_math_func_ctanhf128" >&6; } | |
29200 | if test $gcc_cv_math_func_ctanhf128 = yes; then | |
29201 | ||
29202 | cat >>confdefs.h <<_ACEOF | |
29203 | #define HAVE_CTANHF128 1 | |
29204 | _ACEOF | |
29205 | ||
29206 | fi | |
29207 | ||
29208 | ||
29209 | ||
29210 | ||
29211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf128" >&5 | |
29212 | $as_echo_n "checking for truncf128... " >&6; } | |
29213 | if ${gcc_cv_math_func_truncf128+:} false; then : | |
29214 | $as_echo_n "(cached) " >&6 | |
29215 | else | |
29216 | if test x$gcc_no_link = xyes; then | |
29217 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29218 | fi | |
29219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29220 | /* end confdefs.h. */ | |
29221 | ||
29222 | #ifdef HAVE_COMPLEX_H | |
29223 | #include <complex.h> | |
29224 | #endif | |
29225 | #ifdef HAVE_MATH_H | |
29226 | #include <math.h> | |
29227 | #endif | |
29228 | ||
29229 | int (*ptr)() = (int (*)())truncf128; | |
29230 | ||
29231 | int | |
29232 | main () | |
29233 | { | |
29234 | return 0; | |
29235 | } | |
29236 | ||
29237 | _ACEOF | |
29238 | if ac_fn_c_try_link "$LINENO"; then : | |
29239 | gcc_cv_math_func_truncf128=yes | |
29240 | else | |
29241 | gcc_cv_math_func_truncf128=no | |
29242 | fi | |
29243 | rm -f core conftest.err conftest.$ac_objext \ | |
29244 | conftest$ac_exeext conftest.$ac_ext | |
29245 | fi | |
29246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf128" >&5 | |
29247 | $as_echo "$gcc_cv_math_func_truncf128" >&6; } | |
29248 | if test $gcc_cv_math_func_truncf128 = yes; then | |
29249 | ||
29250 | cat >>confdefs.h <<_ACEOF | |
29251 | #define HAVE_TRUNCF128 1 | |
29252 | _ACEOF | |
29253 | ||
29254 | fi | |
29255 | ||
29256 | ||
29257 | ||
29258 | ||
29259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff128" >&5 | |
29260 | $as_echo_n "checking for erff128... " >&6; } | |
29261 | if ${gcc_cv_math_func_erff128+:} false; then : | |
29262 | $as_echo_n "(cached) " >&6 | |
29263 | else | |
29264 | if test x$gcc_no_link = xyes; then | |
29265 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29266 | fi | |
29267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29268 | /* end confdefs.h. */ | |
29269 | ||
29270 | #ifdef HAVE_COMPLEX_H | |
29271 | #include <complex.h> | |
29272 | #endif | |
29273 | #ifdef HAVE_MATH_H | |
29274 | #include <math.h> | |
29275 | #endif | |
29276 | ||
29277 | int (*ptr)() = (int (*)())erff128; | |
29278 | ||
29279 | int | |
29280 | main () | |
29281 | { | |
29282 | return 0; | |
29283 | } | |
29284 | ||
29285 | _ACEOF | |
29286 | if ac_fn_c_try_link "$LINENO"; then : | |
29287 | gcc_cv_math_func_erff128=yes | |
29288 | else | |
29289 | gcc_cv_math_func_erff128=no | |
29290 | fi | |
29291 | rm -f core conftest.err conftest.$ac_objext \ | |
29292 | conftest$ac_exeext conftest.$ac_ext | |
29293 | fi | |
29294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff128" >&5 | |
29295 | $as_echo "$gcc_cv_math_func_erff128" >&6; } | |
29296 | if test $gcc_cv_math_func_erff128 = yes; then | |
29297 | ||
29298 | cat >>confdefs.h <<_ACEOF | |
29299 | #define HAVE_ERFF128 1 | |
29300 | _ACEOF | |
29301 | ||
29302 | fi | |
29303 | ||
29304 | ||
29305 | ||
29306 | ||
29307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf128" >&5 | |
29308 | $as_echo_n "checking for erfcf128... " >&6; } | |
29309 | if ${gcc_cv_math_func_erfcf128+:} false; then : | |
29310 | $as_echo_n "(cached) " >&6 | |
29311 | else | |
29312 | if test x$gcc_no_link = xyes; then | |
29313 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29314 | fi | |
29315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29316 | /* end confdefs.h. */ | |
29317 | ||
29318 | #ifdef HAVE_COMPLEX_H | |
29319 | #include <complex.h> | |
29320 | #endif | |
29321 | #ifdef HAVE_MATH_H | |
29322 | #include <math.h> | |
29323 | #endif | |
29324 | ||
29325 | int (*ptr)() = (int (*)())erfcf128; | |
29326 | ||
29327 | int | |
29328 | main () | |
29329 | { | |
29330 | return 0; | |
29331 | } | |
29332 | ||
29333 | _ACEOF | |
29334 | if ac_fn_c_try_link "$LINENO"; then : | |
29335 | gcc_cv_math_func_erfcf128=yes | |
29336 | else | |
29337 | gcc_cv_math_func_erfcf128=no | |
29338 | fi | |
29339 | rm -f core conftest.err conftest.$ac_objext \ | |
29340 | conftest$ac_exeext conftest.$ac_ext | |
29341 | fi | |
29342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf128" >&5 | |
29343 | $as_echo "$gcc_cv_math_func_erfcf128" >&6; } | |
29344 | if test $gcc_cv_math_func_erfcf128 = yes; then | |
29345 | ||
29346 | cat >>confdefs.h <<_ACEOF | |
29347 | #define HAVE_ERFCF128 1 | |
29348 | _ACEOF | |
29349 | ||
29350 | fi | |
29351 | ||
29352 | ||
29353 | ||
29354 | ||
29355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f128" >&5 | |
29356 | $as_echo_n "checking for j0f128... " >&6; } | |
29357 | if ${gcc_cv_math_func_j0f128+:} false; then : | |
29358 | $as_echo_n "(cached) " >&6 | |
29359 | else | |
29360 | if test x$gcc_no_link = xyes; then | |
29361 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29362 | fi | |
29363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29364 | /* end confdefs.h. */ | |
29365 | ||
29366 | #ifdef HAVE_COMPLEX_H | |
29367 | #include <complex.h> | |
29368 | #endif | |
29369 | #ifdef HAVE_MATH_H | |
29370 | #include <math.h> | |
29371 | #endif | |
29372 | ||
29373 | int (*ptr)() = (int (*)())j0f128; | |
29374 | ||
29375 | int | |
29376 | main () | |
29377 | { | |
29378 | return 0; | |
29379 | } | |
29380 | ||
29381 | _ACEOF | |
29382 | if ac_fn_c_try_link "$LINENO"; then : | |
29383 | gcc_cv_math_func_j0f128=yes | |
29384 | else | |
29385 | gcc_cv_math_func_j0f128=no | |
29386 | fi | |
29387 | rm -f core conftest.err conftest.$ac_objext \ | |
29388 | conftest$ac_exeext conftest.$ac_ext | |
29389 | fi | |
29390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f128" >&5 | |
29391 | $as_echo "$gcc_cv_math_func_j0f128" >&6; } | |
29392 | if test $gcc_cv_math_func_j0f128 = yes; then | |
29393 | ||
29394 | cat >>confdefs.h <<_ACEOF | |
29395 | #define HAVE_J0F128 1 | |
29396 | _ACEOF | |
29397 | ||
29398 | fi | |
29399 | ||
29400 | ||
29401 | ||
29402 | ||
29403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f128" >&5 | |
29404 | $as_echo_n "checking for j1f128... " >&6; } | |
29405 | if ${gcc_cv_math_func_j1f128+:} false; then : | |
29406 | $as_echo_n "(cached) " >&6 | |
29407 | else | |
29408 | if test x$gcc_no_link = xyes; then | |
29409 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29410 | fi | |
29411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29412 | /* end confdefs.h. */ | |
29413 | ||
29414 | #ifdef HAVE_COMPLEX_H | |
29415 | #include <complex.h> | |
29416 | #endif | |
29417 | #ifdef HAVE_MATH_H | |
29418 | #include <math.h> | |
29419 | #endif | |
29420 | ||
29421 | int (*ptr)() = (int (*)())j1f128; | |
29422 | ||
29423 | int | |
29424 | main () | |
29425 | { | |
29426 | return 0; | |
29427 | } | |
29428 | ||
29429 | _ACEOF | |
29430 | if ac_fn_c_try_link "$LINENO"; then : | |
29431 | gcc_cv_math_func_j1f128=yes | |
29432 | else | |
29433 | gcc_cv_math_func_j1f128=no | |
29434 | fi | |
29435 | rm -f core conftest.err conftest.$ac_objext \ | |
29436 | conftest$ac_exeext conftest.$ac_ext | |
29437 | fi | |
29438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f128" >&5 | |
29439 | $as_echo "$gcc_cv_math_func_j1f128" >&6; } | |
29440 | if test $gcc_cv_math_func_j1f128 = yes; then | |
29441 | ||
29442 | cat >>confdefs.h <<_ACEOF | |
29443 | #define HAVE_J1F128 1 | |
29444 | _ACEOF | |
29445 | ||
29446 | fi | |
29447 | ||
29448 | ||
29449 | ||
29450 | ||
29451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf128" >&5 | |
29452 | $as_echo_n "checking for jnf128... " >&6; } | |
29453 | if ${gcc_cv_math_func_jnf128+:} false; then : | |
29454 | $as_echo_n "(cached) " >&6 | |
29455 | else | |
29456 | if test x$gcc_no_link = xyes; then | |
29457 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29458 | fi | |
29459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29460 | /* end confdefs.h. */ | |
29461 | ||
29462 | #ifdef HAVE_COMPLEX_H | |
29463 | #include <complex.h> | |
29464 | #endif | |
29465 | #ifdef HAVE_MATH_H | |
29466 | #include <math.h> | |
29467 | #endif | |
29468 | ||
29469 | int (*ptr)() = (int (*)())jnf128; | |
29470 | ||
29471 | int | |
29472 | main () | |
29473 | { | |
29474 | return 0; | |
29475 | } | |
29476 | ||
29477 | _ACEOF | |
29478 | if ac_fn_c_try_link "$LINENO"; then : | |
29479 | gcc_cv_math_func_jnf128=yes | |
29480 | else | |
29481 | gcc_cv_math_func_jnf128=no | |
29482 | fi | |
29483 | rm -f core conftest.err conftest.$ac_objext \ | |
29484 | conftest$ac_exeext conftest.$ac_ext | |
29485 | fi | |
29486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf128" >&5 | |
29487 | $as_echo "$gcc_cv_math_func_jnf128" >&6; } | |
29488 | if test $gcc_cv_math_func_jnf128 = yes; then | |
29489 | ||
29490 | cat >>confdefs.h <<_ACEOF | |
29491 | #define HAVE_JNF128 1 | |
29492 | _ACEOF | |
29493 | ||
29494 | fi | |
29495 | ||
29496 | ||
29497 | ||
29498 | ||
29499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f128" >&5 | |
29500 | $as_echo_n "checking for y0f128... " >&6; } | |
29501 | if ${gcc_cv_math_func_y0f128+:} false; then : | |
29502 | $as_echo_n "(cached) " >&6 | |
29503 | else | |
29504 | if test x$gcc_no_link = xyes; then | |
29505 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29506 | fi | |
29507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29508 | /* end confdefs.h. */ | |
29509 | ||
29510 | #ifdef HAVE_COMPLEX_H | |
29511 | #include <complex.h> | |
29512 | #endif | |
29513 | #ifdef HAVE_MATH_H | |
29514 | #include <math.h> | |
29515 | #endif | |
29516 | ||
29517 | int (*ptr)() = (int (*)())y0f128; | |
29518 | ||
29519 | int | |
29520 | main () | |
29521 | { | |
29522 | return 0; | |
29523 | } | |
29524 | ||
29525 | _ACEOF | |
29526 | if ac_fn_c_try_link "$LINENO"; then : | |
29527 | gcc_cv_math_func_y0f128=yes | |
29528 | else | |
29529 | gcc_cv_math_func_y0f128=no | |
29530 | fi | |
29531 | rm -f core conftest.err conftest.$ac_objext \ | |
29532 | conftest$ac_exeext conftest.$ac_ext | |
29533 | fi | |
29534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f128" >&5 | |
29535 | $as_echo "$gcc_cv_math_func_y0f128" >&6; } | |
29536 | if test $gcc_cv_math_func_y0f128 = yes; then | |
29537 | ||
29538 | cat >>confdefs.h <<_ACEOF | |
29539 | #define HAVE_Y0F128 1 | |
29540 | _ACEOF | |
29541 | ||
29542 | fi | |
29543 | ||
29544 | ||
29545 | ||
29546 | ||
29547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f128" >&5 | |
29548 | $as_echo_n "checking for y1f128... " >&6; } | |
29549 | if ${gcc_cv_math_func_y1f128+:} false; then : | |
29550 | $as_echo_n "(cached) " >&6 | |
29551 | else | |
29552 | if test x$gcc_no_link = xyes; then | |
29553 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29554 | fi | |
29555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29556 | /* end confdefs.h. */ | |
29557 | ||
29558 | #ifdef HAVE_COMPLEX_H | |
29559 | #include <complex.h> | |
29560 | #endif | |
29561 | #ifdef HAVE_MATH_H | |
29562 | #include <math.h> | |
29563 | #endif | |
29564 | ||
29565 | int (*ptr)() = (int (*)())y1f128; | |
29566 | ||
29567 | int | |
29568 | main () | |
29569 | { | |
29570 | return 0; | |
29571 | } | |
29572 | ||
29573 | _ACEOF | |
29574 | if ac_fn_c_try_link "$LINENO"; then : | |
29575 | gcc_cv_math_func_y1f128=yes | |
29576 | else | |
29577 | gcc_cv_math_func_y1f128=no | |
29578 | fi | |
29579 | rm -f core conftest.err conftest.$ac_objext \ | |
29580 | conftest$ac_exeext conftest.$ac_ext | |
29581 | fi | |
29582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f128" >&5 | |
29583 | $as_echo "$gcc_cv_math_func_y1f128" >&6; } | |
29584 | if test $gcc_cv_math_func_y1f128 = yes; then | |
29585 | ||
29586 | cat >>confdefs.h <<_ACEOF | |
29587 | #define HAVE_Y1F128 1 | |
29588 | _ACEOF | |
29589 | ||
29590 | fi | |
29591 | ||
29592 | ||
29593 | ||
29594 | ||
29595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf128" >&5 | |
29596 | $as_echo_n "checking for ynf128... " >&6; } | |
29597 | if ${gcc_cv_math_func_ynf128+:} false; then : | |
29598 | $as_echo_n "(cached) " >&6 | |
29599 | else | |
29600 | if test x$gcc_no_link = xyes; then | |
29601 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29602 | fi | |
29603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29604 | /* end confdefs.h. */ | |
29605 | ||
29606 | #ifdef HAVE_COMPLEX_H | |
29607 | #include <complex.h> | |
29608 | #endif | |
29609 | #ifdef HAVE_MATH_H | |
29610 | #include <math.h> | |
29611 | #endif | |
29612 | ||
29613 | int (*ptr)() = (int (*)())ynf128; | |
29614 | ||
29615 | int | |
29616 | main () | |
29617 | { | |
29618 | return 0; | |
29619 | } | |
29620 | ||
29621 | _ACEOF | |
29622 | if ac_fn_c_try_link "$LINENO"; then : | |
29623 | gcc_cv_math_func_ynf128=yes | |
29624 | else | |
29625 | gcc_cv_math_func_ynf128=no | |
29626 | fi | |
29627 | rm -f core conftest.err conftest.$ac_objext \ | |
29628 | conftest$ac_exeext conftest.$ac_ext | |
29629 | fi | |
29630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf128" >&5 | |
29631 | $as_echo "$gcc_cv_math_func_ynf128" >&6; } | |
29632 | if test $gcc_cv_math_func_ynf128 = yes; then | |
29633 | ||
29634 | cat >>confdefs.h <<_ACEOF | |
29635 | #define HAVE_YNF128 1 | |
29636 | _ACEOF | |
29637 | ||
29638 | fi | |
29639 | ||
29640 | ||
29641 | ||
29642 | ||
29643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf128" >&5 | |
29644 | $as_echo_n "checking for tgammaf128... " >&6; } | |
29645 | if ${gcc_cv_math_func_tgammaf128+:} false; then : | |
29646 | $as_echo_n "(cached) " >&6 | |
29647 | else | |
29648 | if test x$gcc_no_link = xyes; then | |
29649 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29650 | fi | |
29651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29652 | /* end confdefs.h. */ | |
29653 | ||
29654 | #ifdef HAVE_COMPLEX_H | |
29655 | #include <complex.h> | |
29656 | #endif | |
29657 | #ifdef HAVE_MATH_H | |
29658 | #include <math.h> | |
29659 | #endif | |
29660 | ||
29661 | int (*ptr)() = (int (*)())tgammaf128; | |
29662 | ||
29663 | int | |
29664 | main () | |
29665 | { | |
29666 | return 0; | |
29667 | } | |
29668 | ||
29669 | _ACEOF | |
29670 | if ac_fn_c_try_link "$LINENO"; then : | |
29671 | gcc_cv_math_func_tgammaf128=yes | |
29672 | else | |
29673 | gcc_cv_math_func_tgammaf128=no | |
29674 | fi | |
29675 | rm -f core conftest.err conftest.$ac_objext \ | |
29676 | conftest$ac_exeext conftest.$ac_ext | |
29677 | fi | |
29678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf128" >&5 | |
29679 | $as_echo "$gcc_cv_math_func_tgammaf128" >&6; } | |
29680 | if test $gcc_cv_math_func_tgammaf128 = yes; then | |
29681 | ||
29682 | cat >>confdefs.h <<_ACEOF | |
29683 | #define HAVE_TGAMMAF128 1 | |
29684 | _ACEOF | |
29685 | ||
29686 | fi | |
29687 | ||
29688 | ||
29689 | ||
29690 | ||
29691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf128" >&5 | |
29692 | $as_echo_n "checking for lgammaf128... " >&6; } | |
29693 | if ${gcc_cv_math_func_lgammaf128+:} false; then : | |
29694 | $as_echo_n "(cached) " >&6 | |
29695 | else | |
29696 | if test x$gcc_no_link = xyes; then | |
29697 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29698 | fi | |
29699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29700 | /* end confdefs.h. */ | |
29701 | ||
29702 | #ifdef HAVE_COMPLEX_H | |
29703 | #include <complex.h> | |
29704 | #endif | |
29705 | #ifdef HAVE_MATH_H | |
29706 | #include <math.h> | |
29707 | #endif | |
29708 | ||
29709 | int (*ptr)() = (int (*)())lgammaf128; | |
29710 | ||
29711 | int | |
29712 | main () | |
29713 | { | |
29714 | return 0; | |
29715 | } | |
29716 | ||
29717 | _ACEOF | |
29718 | if ac_fn_c_try_link "$LINENO"; then : | |
29719 | gcc_cv_math_func_lgammaf128=yes | |
29720 | else | |
29721 | gcc_cv_math_func_lgammaf128=no | |
29722 | fi | |
29723 | rm -f core conftest.err conftest.$ac_objext \ | |
29724 | conftest$ac_exeext conftest.$ac_ext | |
29725 | fi | |
29726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf128" >&5 | |
29727 | $as_echo "$gcc_cv_math_func_lgammaf128" >&6; } | |
29728 | if test $gcc_cv_math_func_lgammaf128 = yes; then | |
29729 | ||
29730 | cat >>confdefs.h <<_ACEOF | |
29731 | #define HAVE_LGAMMAF128 1 | |
29732 | _ACEOF | |
29733 | ||
29734 | fi | |
29735 | ||
29736 | ||
29737 | ||
29738 | ||
29739 | ||
29740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf128" >&5 | |
29741 | $as_echo_n "checking for cacosf128... " >&6; } | |
29742 | if ${gcc_cv_math_func_cacosf128+:} false; then : | |
29743 | $as_echo_n "(cached) " >&6 | |
29744 | else | |
29745 | if test x$gcc_no_link = xyes; then | |
29746 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29747 | fi | |
29748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29749 | /* end confdefs.h. */ | |
29750 | ||
29751 | #ifdef HAVE_COMPLEX_H | |
29752 | #include <complex.h> | |
29753 | #endif | |
29754 | #ifdef HAVE_MATH_H | |
29755 | #include <math.h> | |
29756 | #endif | |
29757 | ||
29758 | int (*ptr)() = (int (*)())cacosf128; | |
29759 | ||
29760 | int | |
29761 | main () | |
29762 | { | |
29763 | return 0; | |
29764 | } | |
29765 | ||
29766 | _ACEOF | |
29767 | if ac_fn_c_try_link "$LINENO"; then : | |
29768 | gcc_cv_math_func_cacosf128=yes | |
29769 | else | |
29770 | gcc_cv_math_func_cacosf128=no | |
29771 | fi | |
29772 | rm -f core conftest.err conftest.$ac_objext \ | |
29773 | conftest$ac_exeext conftest.$ac_ext | |
29774 | fi | |
29775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf128" >&5 | |
29776 | $as_echo "$gcc_cv_math_func_cacosf128" >&6; } | |
29777 | if test $gcc_cv_math_func_cacosf128 = yes; then | |
29778 | ||
29779 | cat >>confdefs.h <<_ACEOF | |
29780 | #define HAVE_CACOSF128 1 | |
29781 | _ACEOF | |
29782 | ||
29783 | fi | |
29784 | ||
29785 | ||
29786 | ||
29787 | ||
29788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf128" >&5 | |
29789 | $as_echo_n "checking for cacoshf128... " >&6; } | |
29790 | if ${gcc_cv_math_func_cacoshf128+:} false; then : | |
29791 | $as_echo_n "(cached) " >&6 | |
29792 | else | |
29793 | if test x$gcc_no_link = xyes; then | |
29794 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29795 | fi | |
29796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29797 | /* end confdefs.h. */ | |
29798 | ||
29799 | #ifdef HAVE_COMPLEX_H | |
29800 | #include <complex.h> | |
29801 | #endif | |
29802 | #ifdef HAVE_MATH_H | |
29803 | #include <math.h> | |
29804 | #endif | |
29805 | ||
29806 | int (*ptr)() = (int (*)())cacoshf128; | |
29807 | ||
29808 | int | |
29809 | main () | |
29810 | { | |
29811 | return 0; | |
29812 | } | |
29813 | ||
29814 | _ACEOF | |
29815 | if ac_fn_c_try_link "$LINENO"; then : | |
29816 | gcc_cv_math_func_cacoshf128=yes | |
29817 | else | |
29818 | gcc_cv_math_func_cacoshf128=no | |
29819 | fi | |
29820 | rm -f core conftest.err conftest.$ac_objext \ | |
29821 | conftest$ac_exeext conftest.$ac_ext | |
29822 | fi | |
29823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf128" >&5 | |
29824 | $as_echo "$gcc_cv_math_func_cacoshf128" >&6; } | |
29825 | if test $gcc_cv_math_func_cacoshf128 = yes; then | |
29826 | ||
29827 | cat >>confdefs.h <<_ACEOF | |
29828 | #define HAVE_CACOSHF128 1 | |
29829 | _ACEOF | |
29830 | ||
29831 | fi | |
29832 | ||
29833 | ||
29834 | ||
29835 | ||
29836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf128" >&5 | |
29837 | $as_echo_n "checking for casinf128... " >&6; } | |
29838 | if ${gcc_cv_math_func_casinf128+:} false; then : | |
29839 | $as_echo_n "(cached) " >&6 | |
29840 | else | |
29841 | if test x$gcc_no_link = xyes; then | |
29842 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29843 | fi | |
29844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29845 | /* end confdefs.h. */ | |
29846 | ||
29847 | #ifdef HAVE_COMPLEX_H | |
29848 | #include <complex.h> | |
29849 | #endif | |
29850 | #ifdef HAVE_MATH_H | |
29851 | #include <math.h> | |
29852 | #endif | |
29853 | ||
29854 | int (*ptr)() = (int (*)())casinf128; | |
29855 | ||
29856 | int | |
29857 | main () | |
29858 | { | |
29859 | return 0; | |
29860 | } | |
29861 | ||
29862 | _ACEOF | |
29863 | if ac_fn_c_try_link "$LINENO"; then : | |
29864 | gcc_cv_math_func_casinf128=yes | |
29865 | else | |
29866 | gcc_cv_math_func_casinf128=no | |
29867 | fi | |
29868 | rm -f core conftest.err conftest.$ac_objext \ | |
29869 | conftest$ac_exeext conftest.$ac_ext | |
29870 | fi | |
29871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf128" >&5 | |
29872 | $as_echo "$gcc_cv_math_func_casinf128" >&6; } | |
29873 | if test $gcc_cv_math_func_casinf128 = yes; then | |
29874 | ||
29875 | cat >>confdefs.h <<_ACEOF | |
29876 | #define HAVE_CASINF128 1 | |
29877 | _ACEOF | |
29878 | ||
29879 | fi | |
29880 | ||
29881 | ||
29882 | ||
29883 | ||
29884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf128" >&5 | |
29885 | $as_echo_n "checking for casinhf128... " >&6; } | |
29886 | if ${gcc_cv_math_func_casinhf128+:} false; then : | |
29887 | $as_echo_n "(cached) " >&6 | |
29888 | else | |
29889 | if test x$gcc_no_link = xyes; then | |
29890 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29891 | fi | |
29892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29893 | /* end confdefs.h. */ | |
29894 | ||
29895 | #ifdef HAVE_COMPLEX_H | |
29896 | #include <complex.h> | |
29897 | #endif | |
29898 | #ifdef HAVE_MATH_H | |
29899 | #include <math.h> | |
29900 | #endif | |
29901 | ||
29902 | int (*ptr)() = (int (*)())casinhf128; | |
29903 | ||
29904 | int | |
29905 | main () | |
29906 | { | |
29907 | return 0; | |
29908 | } | |
29909 | ||
29910 | _ACEOF | |
29911 | if ac_fn_c_try_link "$LINENO"; then : | |
29912 | gcc_cv_math_func_casinhf128=yes | |
29913 | else | |
29914 | gcc_cv_math_func_casinhf128=no | |
29915 | fi | |
29916 | rm -f core conftest.err conftest.$ac_objext \ | |
29917 | conftest$ac_exeext conftest.$ac_ext | |
29918 | fi | |
29919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf128" >&5 | |
29920 | $as_echo "$gcc_cv_math_func_casinhf128" >&6; } | |
29921 | if test $gcc_cv_math_func_casinhf128 = yes; then | |
29922 | ||
29923 | cat >>confdefs.h <<_ACEOF | |
29924 | #define HAVE_CASINHF128 1 | |
29925 | _ACEOF | |
29926 | ||
29927 | fi | |
29928 | ||
29929 | ||
29930 | ||
29931 | ||
29932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf128" >&5 | |
29933 | $as_echo_n "checking for catanf128... " >&6; } | |
29934 | if ${gcc_cv_math_func_catanf128+:} false; then : | |
29935 | $as_echo_n "(cached) " >&6 | |
29936 | else | |
29937 | if test x$gcc_no_link = xyes; then | |
29938 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29939 | fi | |
29940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29941 | /* end confdefs.h. */ | |
29942 | ||
29943 | #ifdef HAVE_COMPLEX_H | |
29944 | #include <complex.h> | |
29945 | #endif | |
29946 | #ifdef HAVE_MATH_H | |
29947 | #include <math.h> | |
29948 | #endif | |
29949 | ||
29950 | int (*ptr)() = (int (*)())catanf128; | |
29951 | ||
29952 | int | |
29953 | main () | |
29954 | { | |
29955 | return 0; | |
29956 | } | |
29957 | ||
29958 | _ACEOF | |
29959 | if ac_fn_c_try_link "$LINENO"; then : | |
29960 | gcc_cv_math_func_catanf128=yes | |
29961 | else | |
29962 | gcc_cv_math_func_catanf128=no | |
29963 | fi | |
29964 | rm -f core conftest.err conftest.$ac_objext \ | |
29965 | conftest$ac_exeext conftest.$ac_ext | |
29966 | fi | |
29967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf128" >&5 | |
29968 | $as_echo "$gcc_cv_math_func_catanf128" >&6; } | |
29969 | if test $gcc_cv_math_func_catanf128 = yes; then | |
29970 | ||
29971 | cat >>confdefs.h <<_ACEOF | |
29972 | #define HAVE_CATANF128 1 | |
29973 | _ACEOF | |
29974 | ||
29975 | fi | |
29976 | ||
29977 | ||
29978 | ||
29979 | ||
29980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf128" >&5 | |
29981 | $as_echo_n "checking for catanhf128... " >&6; } | |
29982 | if ${gcc_cv_math_func_catanhf128+:} false; then : | |
29983 | $as_echo_n "(cached) " >&6 | |
29984 | else | |
29985 | if test x$gcc_no_link = xyes; then | |
29986 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29987 | fi | |
29988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29989 | /* end confdefs.h. */ | |
29990 | ||
29991 | #ifdef HAVE_COMPLEX_H | |
29992 | #include <complex.h> | |
29993 | #endif | |
29994 | #ifdef HAVE_MATH_H | |
29995 | #include <math.h> | |
29996 | #endif | |
29997 | ||
29998 | int (*ptr)() = (int (*)())catanhf128; | |
29999 | ||
30000 | int | |
30001 | main () | |
30002 | { | |
30003 | return 0; | |
30004 | } | |
30005 | ||
30006 | _ACEOF | |
30007 | if ac_fn_c_try_link "$LINENO"; then : | |
30008 | gcc_cv_math_func_catanhf128=yes | |
30009 | else | |
30010 | gcc_cv_math_func_catanhf128=no | |
30011 | fi | |
30012 | rm -f core conftest.err conftest.$ac_objext \ | |
30013 | conftest$ac_exeext conftest.$ac_ext | |
30014 | fi | |
30015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf128" >&5 | |
30016 | $as_echo "$gcc_cv_math_func_catanhf128" >&6; } | |
30017 | if test $gcc_cv_math_func_catanhf128 = yes; then | |
30018 | ||
30019 | cat >>confdefs.h <<_ACEOF | |
30020 | #define HAVE_CATANHF128 1 | |
30021 | _ACEOF | |
30022 | ||
30023 | fi | |
30024 | ||
30025 | ||
30026 | # Check whether the system has a working stat() | |
30027 | ||
30028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5 | |
30029 | $as_echo_n "checking whether the target stat is reliable... " >&6; } | |
30030 | if ${libgfor_cv_have_working_stat+:} false; then : | |
30031 | $as_echo_n "(cached) " >&6 | |
30032 | else | |
30033 | ||
30034 | if test "$cross_compiling" = yes; then : | |
30035 | ||
30036 | case "${target}" in | |
30037 | *mingw*) libgfor_cv_have_working_stat=no ;; | |
30038 | *) libgfor_cv_have_working_stat=yes;; | |
30039 | esac | |
30040 | else | |
30041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30042 | /* end confdefs.h. */ | |
30043 | ||
30044 | #include <stdio.h> | |
30045 | #include <sys/types.h> | |
30046 | #include <sys/stat.h> | |
30047 | #include <unistd.h> | |
30048 | ||
30049 | int main () | |
30050 | { | |
30051 | FILE *f, *g; | |
30052 | struct stat st1, st2; | |
30053 | ||
30054 | f = fopen ("foo", "w"); | |
30055 | g = fopen ("bar", "w"); | |
30056 | if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) | |
30057 | return 1; | |
30058 | if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) | |
30059 | return 1; | |
30060 | fclose(f); | |
30061 | fclose(g); | |
30062 | return 0; | |
30063 | } | |
30064 | _ACEOF | |
30065 | if ac_fn_c_try_run "$LINENO"; then : | |
30066 | libgfor_cv_have_working_stat=yes | |
30067 | else | |
30068 | libgfor_cv_have_working_stat=no | |
30069 | fi | |
30070 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
30071 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
30072 | fi | |
30073 | ||
30074 | fi | |
30075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5 | |
30076 | $as_echo "$libgfor_cv_have_working_stat" >&6; } | |
30077 | if test x"$libgfor_cv_have_working_stat" = xyes; then | |
30078 | ||
30079 | $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h | |
30080 | ||
30081 | fi | |
30082 | ||
30083 | # Check whether __mingw_snprintf() is present | |
30084 | ||
30085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5 | |
30086 | $as_echo_n "checking whether __mingw_snprintf is present... " >&6; } | |
30087 | if ${libgfor_cv_have_mingw_snprintf+:} false; then : | |
30088 | $as_echo_n "(cached) " >&6 | |
30089 | else | |
30090 | ||
30091 | if test x$gcc_no_link = xyes; then | |
30092 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
30093 | fi | |
30094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30095 | /* end confdefs.h. */ | |
30096 | ||
30097 | #include <stdio.h> | |
30098 | extern int __mingw_snprintf (char *, size_t, const char *, ...); | |
30099 | ||
30100 | int | |
30101 | main () | |
30102 | { | |
30103 | ||
30104 | __mingw_snprintf (NULL, 0, "%d\n", 1); | |
30105 | ||
30106 | ; | |
30107 | return 0; | |
30108 | } | |
30109 | _ACEOF | |
30110 | if ac_fn_c_try_link "$LINENO"; then : | |
30111 | eval "libgfor_cv_have_mingw_snprintf=yes" | |
30112 | else | |
30113 | eval "libgfor_cv_have_mingw_snprintf=no" | |
30114 | fi | |
30115 | rm -f core conftest.err conftest.$ac_objext \ | |
30116 | conftest$ac_exeext conftest.$ac_ext | |
30117 | ||
30118 | fi | |
30119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5 | |
30120 | $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; } | |
30121 | if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then | |
30122 | ||
30123 | $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h | |
30124 | ||
30125 | fi | |
30126 | ||
30127 | ||
30128 | have_iec_60559_libc_support=no | |
30129 | if test "x$ac_cv_func_strtof128$ac_cv_func_strfromf128" = xyesyes \ | |
30130 | && test "x$gcc_cv_math_func_sinf128$gcc_cv_math_func_cacosf128" = xyesyes; then | |
30131 | have_iec_60559_libc_support=yes | |
30132 | fi | |
30133 | ||
30134 | # Check whether libquadmath should be used | |
30135 | # Check whether --enable-libquadmath-support was given. | |
30136 | if test "${enable_libquadmath_support+set}" = set; then : | |
30137 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
30138 | else | |
30139 | if test "x$have_iec_60559_libc_support" = xyes; then | |
30140 | ENABLE_LIBQUADMATH_SUPPORT=default | |
30141 | else | |
30142 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
30143 | fi | |
30144 | fi | |
30145 | ||
30146 | enable_libquadmath_support= | |
30147 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
30148 | enable_libquadmath_support=no | |
30149 | elif test "${ENABLE_LIBQUADMATH_SUPPORT}" = "default" ; then | |
30150 | enable_libquadmath_support=default | |
30151 | fi | |
30152 | ||
30153 | # Check whether we have a _Float128 type, depends on enable_libquadmath_support | |
30154 | # and have_iec_60559_libc_support. | |
30155 | ||
30156 | LIBQUADSPEC= | |
30157 | LIBQUADLIB= | |
30158 | LIBQUADLIB_DEP= | |
30159 | LIBQUADINCLUDE= | |
30160 | USE_IEC_60559=no | |
30161 | ||
30162 | if test "x$enable_libquadmath_support" != xno; then | |
30163 | ||
30164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable _Float128 type" >&5 | |
30165 | $as_echo_n "checking whether we have a usable _Float128 type... " >&6; } | |
30166 | if ${libgfor_cv_have_float128+:} false; then : | |
30167 | $as_echo_n "(cached) " >&6 | |
30168 | else | |
30169 | ||
30170 | if test x$gcc_no_link = xyes; then | |
30171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30172 | /* end confdefs.h. */ | |
30173 | ||
30174 | _Float128 foo (_Float128 x) | |
30175 | { | |
133d0d42 JJ |
30176 | _Complex _Float128 z1, z2; |
30177 | ||
30178 | z1 = x; | |
30179 | z2 = x / 7.F128; | |
30180 | z2 /= z1; | |
30181 | ||
30182 | return (_Float128) z2; | |
30183 | } | |
30184 | ||
30185 | _Float128 bar (_Float128 x) | |
30186 | { | |
30187 | return x * __builtin_huge_valf128 (); | |
30188 | } | |
30189 | ||
c022c0de JJ |
30190 | __float128 baz (__float128 x) |
30191 | { | |
30192 | return x * __builtin_huge_valf128 (); | |
30193 | } | |
30194 | ||
133d0d42 JJ |
30195 | int |
30196 | main () | |
30197 | { | |
30198 | ||
30199 | foo (1.2F128); | |
30200 | bar (1.2F128); | |
c022c0de | 30201 | baz (1.2F128); |
133d0d42 JJ |
30202 | foo (1.2Q); |
30203 | bar (1.2Q); | |
c022c0de | 30204 | baz (1.2Q); |
133d0d42 JJ |
30205 | |
30206 | ; | |
30207 | return 0; | |
30208 | } | |
30209 | _ACEOF | |
30210 | if ac_fn_c_try_compile "$LINENO"; then : | |
30211 | ||
30212 | libgfor_cv_have_float128=yes | |
30213 | ||
30214 | else | |
30215 | ||
30216 | libgfor_cv_have_float128=no | |
30217 | ||
30218 | fi | |
30219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
30220 | else | |
30221 | if test x$gcc_no_link = xyes; then | |
30222 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
30223 | fi | |
30224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30225 | /* end confdefs.h. */ | |
30226 | ||
30227 | _Float128 foo (_Float128 x) | |
30228 | { | |
133d0d42 JJ |
30229 | _Complex _Float128 z1, z2; |
30230 | ||
30231 | z1 = x; | |
30232 | z2 = x / 7.F128; | |
30233 | z2 /= z1; | |
30234 | ||
30235 | return (_Float128) z2; | |
30236 | } | |
30237 | ||
30238 | _Float128 bar (_Float128 x) | |
30239 | { | |
30240 | return x * __builtin_huge_valf128 (); | |
30241 | } | |
30242 | ||
c022c0de JJ |
30243 | __float128 baz (__float128 x) |
30244 | { | |
30245 | return x * __builtin_huge_valf128 (); | |
30246 | } | |
30247 | ||
133d0d42 JJ |
30248 | int |
30249 | main () | |
30250 | { | |
30251 | ||
30252 | foo (1.2F128); | |
30253 | bar (1.2F128); | |
c022c0de | 30254 | baz (1.2F128); |
133d0d42 JJ |
30255 | foo (1.2Q); |
30256 | bar (1.2Q); | |
c022c0de | 30257 | baz (1.2Q); |
133d0d42 JJ |
30258 | |
30259 | ; | |
30260 | return 0; | |
30261 | } | |
30262 | _ACEOF | |
30263 | if ac_fn_c_try_link "$LINENO"; then : | |
30264 | ||
30265 | libgfor_cv_have_float128=yes | |
30266 | ||
30267 | else | |
30268 | ||
30269 | libgfor_cv_have_float128=no | |
30270 | ||
30271 | fi | |
30272 | rm -f core conftest.err conftest.$ac_objext \ | |
30273 | conftest$ac_exeext conftest.$ac_ext | |
30274 | fi | |
30275 | fi | |
30276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5 | |
30277 | $as_echo "$libgfor_cv_have_float128" >&6; } | |
30278 | ||
30279 | if test "x$have_iec_60559_libc_support$enable_libquadmath_support$libgfor_cv_have_float128" = xyesdefaultyes; then | |
30280 | USE_IEC_60559=yes | |
30281 | fi | |
30282 | ||
30283 | ||
30284 | if test "x$libgfor_cv_have_float128" = xyes; then | |
30285 | if test "x$USE_IEC_60559" = xyes; then | |
30286 | ||
30287 | $as_echo "#define USE_IEC_60559 1" >>confdefs.h | |
30288 | ||
30289 | fi | |
30290 | ||
30291 | $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h | |
30292 | ||
30293 | ||
30294 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
30295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5 | |
30296 | $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; } | |
30297 | if ${libgfor_cv_have_as_needed+:} false; then : | |
30298 | $as_echo_n "(cached) " >&6 | |
30299 | else | |
30300 | ||
30301 | # Test for native Solaris options first. | |
30302 | # No whitespace after -z to pass it through -Wl. | |
30303 | libgfor_cv_as_needed_option="-zignore" | |
30304 | libgfor_cv_no_as_needed_option="-zrecord" | |
30305 | save_LDFLAGS="$LDFLAGS" | |
30306 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" | |
30307 | libgfor_cv_have_as_needed=no | |
30308 | ||
30309 | ac_c_werror_flag=yes | |
30310 | if test x$gcc_no_link = xyes; then | |
30311 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
30312 | fi | |
30313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30314 | /* end confdefs.h. */ | |
30315 | ||
30316 | int | |
30317 | main () | |
30318 | { | |
30319 | ||
30320 | ; | |
30321 | return 0; | |
30322 | } | |
30323 | _ACEOF | |
30324 | if ac_fn_c_try_link "$LINENO"; then : | |
30325 | libgfor_cv_have_as_needed=yes | |
30326 | else | |
30327 | libgfor_cv_have_as_needed=no | |
30328 | fi | |
30329 | rm -f core conftest.err conftest.$ac_objext \ | |
30330 | conftest$ac_exeext conftest.$ac_ext | |
30331 | LDFLAGS="$save_LDFLAGS" | |
30332 | if test "x$libgfor_cv_have_as_needed" = xno; then | |
30333 | libgfor_cv_as_needed_option="--as-needed" | |
30334 | libgfor_cv_no_as_needed_option="--no-as-needed" | |
30335 | save_LDFLAGS="$LDFLAGS" | |
30336 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" | |
30337 | libgfor_cv_have_as_needed=no | |
30338 | ||
30339 | ac_c_werror_flag=yes | |
30340 | if test x$gcc_no_link = xyes; then | |
30341 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
30342 | fi | |
30343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30344 | /* end confdefs.h. */ | |
30345 | ||
30346 | int | |
30347 | main () | |
30348 | { | |
30349 | ||
828012a5 RO |
30350 | ; |
30351 | return 0; | |
30352 | } | |
30353 | _ACEOF | |
30354 | if ac_fn_c_try_link "$LINENO"; then : | |
30355 | libgfor_cv_have_as_needed=yes | |
30356 | else | |
30357 | libgfor_cv_have_as_needed=no | |
30358 | fi | |
30359 | rm -f core conftest.err conftest.$ac_objext \ | |
30360 | conftest$ac_exeext conftest.$ac_ext | |
30361 | LDFLAGS="$save_LDFLAGS" | |
30362 | fi | |
1ec601bf FXC |
30363 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
30364 | ||
30365 | fi | |
30366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5 | |
30367 | $as_echo "$libgfor_cv_have_as_needed" >&6; } | |
30368 | ||
745be54b JJ |
30369 | touch conftest1.$ac_objext conftest2.$ac_objext |
30370 | LQUADMATH=-lquadmath | |
30371 | $FC -static-libgfortran -### -o conftest \ | |
30372 | conftest1.$ac_objext -lgfortran conftest2.$ac_objext 2>&1 >/dev/null \ | |
30373 | | grep "conftest1.$ac_objext.*conftest2.$ac_objext" > conftest.cmd | |
30374 | if grep "conftest1.$ac_objext.* -Bstatic -lgfortran -Bdynamic .*conftest2.$ac_objext" \ | |
30375 | conftest.cmd >/dev/null 2>&1; then | |
30376 | LQUADMATH="%{static-libquadmath:-Bstatic} -lquadmath %{static-libquadmath:-Bdynamic}" | |
30377 | elif grep "conftest1.$ac_objext.* -bstatic -lgfortran -bdynamic .*conftest2.$ac_objext" \ | |
30378 | conftest.cmd >/dev/null 2>&1; then | |
30379 | LQUADMATH="%{static-libquadmath:-bstatic} -lquadmath %{static-libquadmath:-bdynamic}" | |
30380 | elif grep "conftest1.$ac_objext.* -aarchive_shared -lgfortran -adefault .*conftest2.$ac_objext" \ | |
30381 | conftest.cmd >/dev/null 2>&1; then | |
30382 | LQUADMATH="%{static-libquadmath:-aarchive_shared} -lquadmath %{static-libquadmath:-adefault}" | |
30383 | elif grep "conftest1.$ac_objext.*libgfortran.a .*conftest2.$ac_objext" \ | |
30384 | conftest.cmd >/dev/null 2>&1; then | |
30385 | LQUADMATH="%{static-libquadmath:libquadmath.a%s;:-lquadmath}" | |
30386 | fi | |
30387 | rm -f conftest1.$ac_objext conftest2.$ac_objext conftest conftest.cmd | |
30388 | ||
133d0d42 JJ |
30389 | if test "x$libgfor_cv_have_as_needed" = xyes; then |
30390 | if test "x$USE_IEC_60559" = xyes; then | |
745be54b | 30391 | LIBQUADSPEC="$libgfor_cv_as_needed_option $LQUADMATH $libgfor_cv_no_as_needed_option" |
133d0d42 | 30392 | else |
745be54b | 30393 | LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} $LQUADMATH %{static-libgfortran:$libgfor_cv_no_as_needed_option}" |
133d0d42 | 30394 | fi |
1ec601bf | 30395 | else |
745be54b | 30396 | LIBQUADSPEC="$LQUADMATH" |
1ec601bf | 30397 | fi |
133d0d42 JJ |
30398 | if test "x$USE_IEC_60559" != xyes; then |
30399 | if test -f ../libquadmath/libquadmath.la; then | |
30400 | LIBQUADLIB=../libquadmath/libquadmath.la | |
30401 | LIBQUADLIB_DEP=../libquadmath/libquadmath.la | |
30402 | LIBQUADINCLUDE='-I$(srcdir)/../libquadmath' | |
30403 | else | |
30404 | LIBQUADLIB="-lquadmath" | |
30405 | fi | |
1ec601bf | 30406 | fi |
87e6d9dc | 30407 | else |
133d0d42 JJ |
30408 | USE_IEC_60559=no |
30409 | fi | |
87e6d9dc | 30410 | fi |
1ec601bf FXC |
30411 | |
30412 | ||
30413 | ||
30414 | ||
30415 | ||
30416 | ||
1ec601bf FXC |
30417 | |
30418 | ||
944b8b35 | 30419 | # Check for GNU libc feenableexcept |
5213506e RW |
30420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 |
30421 | $as_echo_n "checking for feenableexcept in -lm... " >&6; } | |
22e05272 | 30422 | if ${ac_cv_lib_m_feenableexcept+:} false; then : |
5213506e | 30423 | $as_echo_n "(cached) " >&6 |
944b8b35 FXC |
30424 | else |
30425 | ac_check_lib_save_LIBS=$LIBS | |
30426 | LIBS="-lm $LIBS" | |
30427 | if test x$gcc_no_link = xyes; then | |
22e05272 | 30428 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
944b8b35 | 30429 | fi |
5213506e | 30430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
944b8b35 FXC |
30431 | /* end confdefs.h. */ |
30432 | ||
5213506e RW |
30433 | /* Override any GCC internal prototype to avoid an error. |
30434 | Use char because int might match the return type of a GCC | |
30435 | builtin and then its argument prototype would still apply. */ | |
944b8b35 FXC |
30436 | #ifdef __cplusplus |
30437 | extern "C" | |
30438 | #endif | |
944b8b35 FXC |
30439 | char feenableexcept (); |
30440 | int | |
30441 | main () | |
30442 | { | |
5213506e | 30443 | return feenableexcept (); |
944b8b35 FXC |
30444 | ; |
30445 | return 0; | |
30446 | } | |
30447 | _ACEOF | |
5213506e | 30448 | if ac_fn_c_try_link "$LINENO"; then : |
944b8b35 FXC |
30449 | ac_cv_lib_m_feenableexcept=yes |
30450 | else | |
5213506e | 30451 | ac_cv_lib_m_feenableexcept=no |
944b8b35 | 30452 | fi |
5213506e RW |
30453 | rm -f core conftest.err conftest.$ac_objext \ |
30454 | conftest$ac_exeext conftest.$ac_ext | |
944b8b35 FXC |
30455 | LIBS=$ac_check_lib_save_LIBS |
30456 | fi | |
5213506e RW |
30457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 |
30458 | $as_echo "$ac_cv_lib_m_feenableexcept" >&6; } | |
22e05272 | 30459 | if test "x$ac_cv_lib_m_feenableexcept" = xyes; then : |
944b8b35 | 30460 | have_feenableexcept=yes |
5213506e | 30461 | $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h |
3b14f664 FXC |
30462 | |
30463 | fi | |
30464 | ||
3b14f664 | 30465 | |
5c30094f | 30466 | # At least for glibc, clock_gettime is in librt. But don't |
2aadeae2 JB |
30467 | # pull that in if it still doesn't give us the function we want. This |
30468 | # test is copied from libgomp, and modified to not link in -lrt as | |
30469 | # libgfortran calls clock_gettime via a weak reference if it's found | |
30470 | # in librt. | |
deb9dd74 | 30471 | if test "$ac_cv_func_clock_gettime" = no; then |
b6e7a3d1 JB |
30472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
30473 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
22e05272 | 30474 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
b6e7a3d1 JB |
30475 | $as_echo_n "(cached) " >&6 |
30476 | else | |
30477 | ac_check_lib_save_LIBS=$LIBS | |
30478 | LIBS="-lrt $LIBS" | |
30479 | if test x$gcc_no_link = xyes; then | |
22e05272 | 30480 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b6e7a3d1 JB |
30481 | fi |
30482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30483 | /* end confdefs.h. */ | |
30484 | ||
30485 | /* Override any GCC internal prototype to avoid an error. | |
30486 | Use char because int might match the return type of a GCC | |
30487 | builtin and then its argument prototype would still apply. */ | |
30488 | #ifdef __cplusplus | |
30489 | extern "C" | |
30490 | #endif | |
30491 | char clock_gettime (); | |
30492 | int | |
30493 | main () | |
30494 | { | |
30495 | return clock_gettime (); | |
30496 | ; | |
30497 | return 0; | |
30498 | } | |
30499 | _ACEOF | |
30500 | if ac_fn_c_try_link "$LINENO"; then : | |
30501 | ac_cv_lib_rt_clock_gettime=yes | |
30502 | else | |
30503 | ac_cv_lib_rt_clock_gettime=no | |
30504 | fi | |
30505 | rm -f core conftest.err conftest.$ac_objext \ | |
30506 | conftest$ac_exeext conftest.$ac_ext | |
30507 | LIBS=$ac_check_lib_save_LIBS | |
30508 | fi | |
30509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
30510 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
22e05272 | 30511 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
b6e7a3d1 | 30512 | |
2aadeae2 | 30513 | $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h |
b6e7a3d1 JB |
30514 | |
30515 | fi | |
30516 | ||
30517 | fi | |
30518 | ||
5213506e | 30519 | # Check for SysV fpsetmask |
3b14f664 | 30520 | |
5213506e RW |
30521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5 |
30522 | $as_echo_n "checking whether fpsetmask is present... " >&6; } | |
22e05272 | 30523 | if ${libgfor_cv_have_fpsetmask+:} false; then : |
5213506e RW |
30524 | $as_echo_n "(cached) " >&6 |
30525 | else | |
3b14f664 | 30526 | |
5213506e | 30527 | if test x$gcc_no_link = xyes; then |
22e05272 | 30528 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5213506e RW |
30529 | fi |
30530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30531 | /* end confdefs.h. */ | |
3b14f664 | 30532 | |
5213506e RW |
30533 | #if HAVE_FLOATINGPOINT_H |
30534 | # include <floatingpoint.h> | |
30535 | #endif /* HAVE_FLOATINGPOINT_H */ | |
30536 | #if HAVE_IEEEFP_H | |
30537 | # include <ieeefp.h> | |
30538 | #endif /* HAVE_IEEEFP_H */ | |
3b14f664 FXC |
30539 | int |
30540 | main () | |
30541 | { | |
5213506e | 30542 | fpsetmask(0); |
3b14f664 FXC |
30543 | ; |
30544 | return 0; | |
30545 | } | |
30546 | _ACEOF | |
5213506e RW |
30547 | if ac_fn_c_try_link "$LINENO"; then : |
30548 | eval "libgfor_cv_have_fpsetmask=yes" | |
3b14f664 | 30549 | else |
5213506e RW |
30550 | eval "libgfor_cv_have_fpsetmask=no" |
30551 | fi | |
30552 | rm -f core conftest.err conftest.$ac_objext \ | |
30553 | conftest$ac_exeext conftest.$ac_ext | |
3b14f664 | 30554 | |
3b14f664 | 30555 | fi |
5213506e RW |
30556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5 |
30557 | $as_echo "$libgfor_cv_have_fpsetmask" >&6; } | |
30558 | if test x"$libgfor_cv_have_fpsetmask" = xyes; then | |
1b9fef3e | 30559 | have_fpsetmask=yes |
5213506e RW |
30560 | |
30561 | $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h | |
30562 | ||
30563 | fi | |
30564 | ||
6faf4751 | 30565 | ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" " |
67c4c164 | 30566 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 30567 | #include <ieeefp.h> |
67c4c164 | 30568 | #endif |
6faf4751 FXC |
30569 | #include <math.h> |
30570 | ||
7ae346c3 | 30571 | " |
22e05272 | 30572 | if test "x$ac_cv_type_fp_except" = xyes; then : |
7ae346c3 TB |
30573 | |
30574 | cat >>confdefs.h <<_ACEOF | |
30575 | #define HAVE_FP_EXCEPT 1 | |
30576 | _ACEOF | |
30577 | ||
30578 | ||
30579 | fi | |
6faf4751 | 30580 | ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" " |
67c4c164 | 30581 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 30582 | #include <ieeefp.h> |
67c4c164 | 30583 | #endif |
6faf4751 FXC |
30584 | #include <math.h> |
30585 | ||
7ae346c3 | 30586 | " |
22e05272 | 30587 | if test "x$ac_cv_type_fp_except_t" = xyes; then : |
7ae346c3 TB |
30588 | |
30589 | cat >>confdefs.h <<_ACEOF | |
30590 | #define HAVE_FP_EXCEPT_T 1 | |
30591 | _ACEOF | |
30592 | ||
30593 | ||
82a4f54c TB |
30594 | fi |
30595 | ||
6faf4751 | 30596 | ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" " |
67c4c164 | 30597 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 30598 | #include <ieeefp.h> |
67c4c164 | 30599 | #endif |
6faf4751 FXC |
30600 | #include <math.h> |
30601 | ||
82a4f54c | 30602 | " |
22e05272 | 30603 | if test "x$ac_cv_type_fp_rnd" = xyes; then : |
82a4f54c TB |
30604 | |
30605 | cat >>confdefs.h <<_ACEOF | |
30606 | #define HAVE_FP_RND 1 | |
30607 | _ACEOF | |
30608 | ||
30609 | ||
30610 | fi | |
6faf4751 | 30611 | ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" " |
67c4c164 | 30612 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 30613 | #include <ieeefp.h> |
67c4c164 | 30614 | #endif |
6faf4751 FXC |
30615 | #include <math.h> |
30616 | ||
82a4f54c | 30617 | " |
22e05272 | 30618 | if test "x$ac_cv_type_fp_rnd_t" = xyes; then : |
82a4f54c TB |
30619 | |
30620 | cat >>confdefs.h <<_ACEOF | |
30621 | #define HAVE_FP_RND_T 1 | |
30622 | _ACEOF | |
30623 | ||
30624 | ||
7ae346c3 TB |
30625 | fi |
30626 | ||
5213506e | 30627 | |
de51fc1b RO |
30628 | # Check whether we have fpsetsticky or fpresetsticky |
30629 | ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky" | |
22e05272 | 30630 | if test "x$ac_cv_func_fpsetsticky" = xyes; then : |
de51fc1b RO |
30631 | have_fpsetsticky=yes |
30632 | $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h | |
30633 | ||
30634 | fi | |
30635 | ||
30636 | ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky" | |
22e05272 | 30637 | if test "x$ac_cv_func_fpresetsticky" = xyes; then : |
de51fc1b RO |
30638 | have_fpresetsticky=yes |
30639 | $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h | |
30640 | ||
30641 | fi | |
30642 | ||
30643 | ||
5213506e RW |
30644 | # Check for AIX fp_trap and fp_enable |
30645 | ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap" | |
22e05272 | 30646 | if test "x$ac_cv_func_fp_trap" = xyes; then : |
5213506e RW |
30647 | have_fp_trap=yes |
30648 | $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h | |
30649 | ||
3b14f664 | 30650 | fi |
5213506e RW |
30651 | |
30652 | ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable" | |
22e05272 | 30653 | if test "x$ac_cv_func_fp_enable" = xyes; then : |
3b14f664 | 30654 | have_fp_enable=yes |
5213506e | 30655 | $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h |
3b14f664 FXC |
30656 | |
30657 | fi | |
30658 | ||
30659 | ||
7b32a8f6 UB |
30660 | # Check if _SOFT_FLOAT is defined |
30661 | ||
30662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5 | |
30663 | $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; } | |
22e05272 | 30664 | if ${ac_cv_defined__SOFT_FLOAT+:} false; then : |
7b32a8f6 UB |
30665 | $as_echo_n "(cached) " >&6 |
30666 | else | |
30667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30668 | /* end confdefs.h. */ | |
30669 | ||
30670 | int | |
30671 | main () | |
30672 | { | |
30673 | ||
30674 | #ifdef _SOFT_FLOAT | |
30675 | int ok; | |
30676 | #else | |
30677 | choke me | |
30678 | #endif | |
30679 | ||
30680 | ; | |
30681 | return 0; | |
30682 | } | |
30683 | _ACEOF | |
30684 | if ac_fn_c_try_compile "$LINENO"; then : | |
30685 | ac_cv_defined__SOFT_FLOAT=yes | |
30686 | else | |
30687 | ac_cv_defined__SOFT_FLOAT=no | |
30688 | fi | |
30689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
30690 | fi | |
30691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5 | |
30692 | $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; } | |
30693 | if test $ac_cv_defined__SOFT_FLOAT != "no"; then : | |
30694 | have_soft_float=yes | |
30695 | fi | |
30696 | ||
944b8b35 FXC |
30697 | # Runs configure.host to set up necessary host-dependent shell variables. |
30698 | # We then display a message about it, and propagate them through the | |
30699 | # build chain. | |
30700 | . ${srcdir}/configure.host | |
5213506e RW |
30701 | { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5 |
30702 | $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} | |
8b198102 FXC |
30703 | { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5 |
30704 | $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;} | |
944b8b35 FXC |
30705 | FPU_HOST_HEADER=config/${fpu_host}.h |
30706 | ||
30707 | ||
8b198102 FXC |
30708 | # Whether we will build the IEEE modules |
30709 | if test x${ieee_support} = xyes; then | |
30710 | IEEE_SUPPORT_TRUE= | |
30711 | IEEE_SUPPORT_FALSE='#' | |
30712 | else | |
30713 | IEEE_SUPPORT_TRUE='#' | |
30714 | IEEE_SUPPORT_FALSE= | |
30715 | fi | |
30716 | ||
30717 | ||
30718 | ||
9fc77574 KK |
30719 | # Some targets require additional compiler options for IEEE compatibility. |
30720 | IEEE_FLAGS="${ieee_flags}" | |
30721 | ||
30722 | ||
47ddb895 DE |
30723 | # Conditionalize the makefile for this target machine. |
30724 | tmake_file_= | |
30725 | for f in ${tmake_file} | |
30726 | do | |
30727 | if test -f ${srcdir}/config/$f | |
30728 | then | |
30729 | tmake_file_="${tmake_file_} \$(srcdir)/config/$f" | |
30730 | fi | |
30731 | done | |
30732 | tmake_file="${tmake_file_}" | |
30733 | ||
30734 | ||
23e6d4a5 JB |
30735 | |
30736 | # Check for POSIX getpwuid_r | |
30737 | # | |
30738 | # There are two versions of getpwuid_r, the POSIX one with 5 | |
30739 | # arguments, and another one with 4 arguments used by at least HP-UX | |
30740 | # 10.2. | |
30741 | if test "$ac_cv_func_getpwuid_r" = "yes"; then | |
30742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5 | |
30743 | $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; } | |
22e05272 | 30744 | if ${libgfor_cv_posix_getpwuid_r+:} false; then : |
23e6d4a5 JB |
30745 | $as_echo_n "(cached) " >&6 |
30746 | else | |
30747 | ||
30748 | if test x$gcc_no_link = xyes; then | |
22e05272 | 30749 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
23e6d4a5 JB |
30750 | fi |
30751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30752 | /* end confdefs.h. */ | |
30753 | ||
30754 | #include <stdio.h> | |
30755 | #include <sys/types.h> | |
30756 | #include <pwd.h> | |
30757 | int | |
30758 | main () | |
30759 | { | |
30760 | ||
30761 | getpwuid_r(0, NULL, NULL, 0, NULL); | |
30762 | ||
30763 | ; | |
30764 | return 0; | |
30765 | } | |
30766 | _ACEOF | |
30767 | if ac_fn_c_try_link "$LINENO"; then : | |
30768 | libgfor_cv_posix_getpwuid_r="yes" | |
30769 | else | |
30770 | libgfor_cv_posix_getpwuid_r="no" | |
30771 | fi | |
30772 | rm -f core conftest.err conftest.$ac_objext \ | |
30773 | conftest$ac_exeext conftest.$ac_ext | |
30774 | fi | |
30775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5 | |
30776 | $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; } | |
30777 | fi | |
30778 | if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then | |
30779 | ||
30780 | $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h | |
30781 | ||
30782 | fi | |
30783 | ||
30784 | ||
7d7b8bfe RH |
30785 | # Check out attribute support. |
30786 | ||
5213506e RW |
30787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 |
30788 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
22e05272 | 30789 | if ${libgfor_cv_have_attribute_visibility+:} false; then : |
5213506e | 30790 | $as_echo_n "(cached) " >&6 |
7d7b8bfe RH |
30791 | else |
30792 | ||
30793 | save_CFLAGS="$CFLAGS" | |
30794 | CFLAGS="$CFLAGS -Werror" | |
5213506e | 30795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7d7b8bfe RH |
30796 | /* end confdefs.h. */ |
30797 | void __attribute__((visibility("hidden"))) foo(void) { } | |
30798 | int | |
30799 | main () | |
30800 | { | |
30801 | ||
30802 | ; | |
30803 | return 0; | |
30804 | } | |
30805 | _ACEOF | |
5213506e | 30806 | if ac_fn_c_try_compile "$LINENO"; then : |
6d26724a | 30807 | libgfor_cv_have_attribute_visibility=yes |
7d7b8bfe | 30808 | else |
5213506e | 30809 | libgfor_cv_have_attribute_visibility=no |
7d7b8bfe | 30810 | fi |
5213506e | 30811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7d7b8bfe RH |
30812 | CFLAGS="$save_CFLAGS" |
30813 | fi | |
5213506e RW |
30814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5 |
30815 | $as_echo "$libgfor_cv_have_attribute_visibility" >&6; } | |
6d26724a | 30816 | if test $libgfor_cv_have_attribute_visibility = yes; then |
7d7b8bfe | 30817 | |
5213506e | 30818 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h |
7d7b8bfe RH |
30819 | |
30820 | fi | |
30821 | ||
5213506e RW |
30822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 |
30823 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
22e05272 | 30824 | if ${libgfor_cv_have_attribute_alias+:} false; then : |
5213506e | 30825 | $as_echo_n "(cached) " >&6 |
7d7b8bfe RH |
30826 | else |
30827 | ||
f02d008e | 30828 | if test x$gcc_no_link = xyes; then |
22e05272 | 30829 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 30830 | fi |
5213506e | 30831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7d7b8bfe RH |
30832 | /* end confdefs.h. */ |
30833 | ||
7d7b8bfe | 30834 | void foo(void) { } |
16a314a9 | 30835 | extern void bar(void) __attribute__((alias("foo"))); |
7d7b8bfe RH |
30836 | int |
30837 | main () | |
30838 | { | |
30839 | bar(); | |
30840 | ; | |
30841 | return 0; | |
30842 | } | |
30843 | _ACEOF | |
5213506e | 30844 | if ac_fn_c_try_link "$LINENO"; then : |
6d26724a | 30845 | libgfor_cv_have_attribute_alias=yes |
7d7b8bfe | 30846 | else |
5213506e | 30847 | libgfor_cv_have_attribute_alias=no |
7d7b8bfe | 30848 | fi |
5213506e RW |
30849 | rm -f core conftest.err conftest.$ac_objext \ |
30850 | conftest$ac_exeext conftest.$ac_ext | |
7d7b8bfe | 30851 | fi |
5213506e RW |
30852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5 |
30853 | $as_echo "$libgfor_cv_have_attribute_alias" >&6; } | |
6d26724a | 30854 | if test $libgfor_cv_have_attribute_alias = yes; then |
7d7b8bfe | 30855 | |
5213506e | 30856 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h |
7d7b8bfe RH |
30857 | |
30858 | fi | |
30859 | ||
0536d5b3 | 30860 | # Check out atomic builtins support. |
5e805e44 | 30861 | |
0536d5b3 JB |
30862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5 |
30863 | $as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; } | |
30864 | if ${libgfor_cv_have_atomic_fetch_add+:} false; then : | |
5213506e | 30865 | $as_echo_n "(cached) " >&6 |
5e805e44 JJ |
30866 | else |
30867 | ||
30868 | if test x$gcc_no_link = xyes; then | |
22e05272 | 30869 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5e805e44 | 30870 | fi |
5213506e | 30871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5e805e44 JJ |
30872 | /* end confdefs.h. */ |
30873 | int foovar = 0; | |
30874 | int | |
30875 | main () | |
30876 | { | |
30877 | ||
0536d5b3 JB |
30878 | if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL); |
30879 | if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL); | |
5e805e44 JJ |
30880 | ; |
30881 | return 0; | |
30882 | } | |
30883 | _ACEOF | |
5213506e | 30884 | if ac_fn_c_try_link "$LINENO"; then : |
0536d5b3 | 30885 | libgfor_cv_have_atomic_fetch_add=yes |
5e805e44 | 30886 | else |
0536d5b3 | 30887 | libgfor_cv_have_atomic_fetch_add=no |
5e805e44 | 30888 | fi |
5213506e RW |
30889 | rm -f core conftest.err conftest.$ac_objext \ |
30890 | conftest$ac_exeext conftest.$ac_ext | |
5e805e44 | 30891 | fi |
0536d5b3 JB |
30892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5 |
30893 | $as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; } | |
30894 | if test $libgfor_cv_have_atomic_fetch_add = yes; then | |
5e805e44 | 30895 | |
0536d5b3 | 30896 | $as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h |
5e805e44 JJ |
30897 | |
30898 | fi | |
30899 | ||
6a822a74 FXC |
30900 | # Check out #pragma weak. |
30901 | ||
30902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5 | |
30903 | $as_echo_n "checking whether pragma weak works... " >&6; } | |
22e05272 | 30904 | if ${libgfor_cv_have_pragma_weak+:} false; then : |
6a822a74 FXC |
30905 | $as_echo_n "(cached) " >&6 |
30906 | else | |
30907 | ||
30908 | gfor_save_CFLAGS="$CFLAGS" | |
30909 | CFLAGS="$CFLAGS -Wunknown-pragmas" | |
30910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30911 | /* end confdefs.h. */ | |
30912 | ||
30913 | void foo (void); | |
30914 | #pragma weak foo | |
30915 | ||
30916 | int | |
30917 | main () | |
30918 | { | |
30919 | if (foo) foo (); | |
30920 | ; | |
30921 | return 0; | |
30922 | } | |
30923 | _ACEOF | |
30924 | if ac_fn_c_try_compile "$LINENO"; then : | |
30925 | libgfor_cv_have_pragma_weak=yes | |
30926 | else | |
30927 | libgfor_cv_have_pragma_weak=no | |
30928 | fi | |
30929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
30930 | fi | |
30931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5 | |
30932 | $as_echo "$libgfor_cv_have_pragma_weak" >&6; } | |
30933 | if test $libgfor_cv_have_pragma_weak = yes; then | |
30934 | ||
30935 | $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h | |
30936 | ||
30937 | fi | |
30938 | case "$host" in | |
30939 | *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* ) | |
30940 | ||
30941 | $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h | |
30942 | ||
30943 | ;; | |
30944 | esac | |
30945 | ||
e7854993 | 30946 | # Check out weakref support. |
5e805e44 | 30947 | |
e7854993 FXC |
30948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5 |
30949 | $as_echo_n "checking whether the target supports weakref... " >&6; } | |
22e05272 | 30950 | if ${libgfor_cv_have_weakref+:} false; then : |
5213506e | 30951 | $as_echo_n "(cached) " >&6 |
5e805e44 JJ |
30952 | else |
30953 | ||
e7854993 FXC |
30954 | save_CFLAGS="$CFLAGS" |
30955 | CFLAGS="$CFLAGS -Wunknown-pragmas -Werror" | |
30956 | if test x$gcc_no_link = xyes; then | |
22e05272 | 30957 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
e7854993 FXC |
30958 | fi |
30959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5e805e44 | 30960 | /* end confdefs.h. */ |
de15ea94 | 30961 | |
e7854993 | 30962 | static int mytoto (int) __attribute__((__weakref__("toto"))); |
de15ea94 | 30963 | |
5e805e44 JJ |
30964 | int |
30965 | main () | |
30966 | { | |
e7854993 | 30967 | return (mytoto != 0); |
5e805e44 JJ |
30968 | ; |
30969 | return 0; | |
30970 | } | |
30971 | _ACEOF | |
e7854993 FXC |
30972 | if ac_fn_c_try_link "$LINENO"; then : |
30973 | libgfor_cv_have_weakref=yes | |
5e805e44 | 30974 | else |
e7854993 | 30975 | libgfor_cv_have_weakref=no |
5e805e44 | 30976 | fi |
e7854993 FXC |
30977 | rm -f core conftest.err conftest.$ac_objext \ |
30978 | conftest$ac_exeext conftest.$ac_ext | |
30979 | CFLAGS="$save_CFLAGS" | |
5e805e44 | 30980 | fi |
e7854993 FXC |
30981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5 |
30982 | $as_echo "$libgfor_cv_have_weakref" >&6; } | |
30983 | if test $libgfor_cv_have_weakref = yes; then | |
5e805e44 | 30984 | |
e7854993 | 30985 | $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h |
5e805e44 JJ |
30986 | |
30987 | fi | |
30988 | ||
10c682a0 FXC |
30989 | # Various other checks on target |
30990 | ||
5213506e RW |
30991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5 |
30992 | $as_echo_n "checking whether the target can unlink an open file... " >&6; } | |
22e05272 | 30993 | if ${libgfor_cv_have_unlink_open_file+:} false; then : |
5213506e | 30994 | $as_echo_n "(cached) " >&6 |
10c682a0 FXC |
30995 | else |
30996 | ||
5213506e | 30997 | if test "$cross_compiling" = yes; then : |
10c682a0 FXC |
30998 | |
30999 | case "${target}" in | |
6d26724a RW |
31000 | *mingw*) libgfor_cv_have_unlink_open_file=no ;; |
31001 | *) libgfor_cv_have_unlink_open_file=yes;; | |
10c682a0 FXC |
31002 | esac |
31003 | else | |
5213506e | 31004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10c682a0 FXC |
31005 | /* end confdefs.h. */ |
31006 | ||
31007 | #include <errno.h> | |
31008 | #include <fcntl.h> | |
31009 | #include <unistd.h> | |
31010 | #include <sys/stat.h> | |
31011 | ||
31012 | int main () | |
31013 | { | |
31014 | int fd; | |
31015 | ||
42dfafa9 | 31016 | fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR); |
10c682a0 FXC |
31017 | if (fd <= 0) |
31018 | return 0; | |
31019 | if (unlink ("testfile") == -1) | |
31020 | return 1; | |
31021 | write (fd, "This is a test\n", 15); | |
31022 | close (fd); | |
31023 | ||
42dfafa9 | 31024 | if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT) |
10c682a0 FXC |
31025 | return 0; |
31026 | else | |
31027 | return 1; | |
31028 | } | |
31029 | _ACEOF | |
5213506e | 31030 | if ac_fn_c_try_run "$LINENO"; then : |
6d26724a | 31031 | libgfor_cv_have_unlink_open_file=yes |
10c682a0 | 31032 | else |
5213506e | 31033 | libgfor_cv_have_unlink_open_file=no |
10c682a0 | 31034 | fi |
5213506e RW |
31035 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
31036 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
10c682a0 | 31037 | fi |
5213506e | 31038 | |
10c682a0 | 31039 | fi |
5213506e RW |
31040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5 |
31041 | $as_echo "$libgfor_cv_have_unlink_open_file" >&6; } | |
6d26724a | 31042 | if test x"$libgfor_cv_have_unlink_open_file" = xyes; then |
10c682a0 | 31043 | |
5213506e | 31044 | $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h |
10c682a0 FXC |
31045 | |
31046 | fi | |
31047 | ||
3c127520 FXC |
31048 | # Check whether line terminator is LF or CRLF |
31049 | ||
5213506e RW |
31050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5 |
31051 | $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; } | |
22e05272 | 31052 | if ${libgfor_cv_have_crlf+:} false; then : |
5213506e | 31053 | $as_echo_n "(cached) " >&6 |
3c127520 FXC |
31054 | else |
31055 | ||
5213506e | 31056 | if test "$cross_compiling" = yes; then : |
3c127520 FXC |
31057 | |
31058 | case "${target}" in | |
6d26724a RW |
31059 | *mingw*) libgfor_cv_have_crlf=yes ;; |
31060 | *) libgfor_cv_have_crlf=no;; | |
3c127520 FXC |
31061 | esac |
31062 | else | |
5213506e | 31063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3c127520 FXC |
31064 | /* end confdefs.h. */ |
31065 | ||
31066 | /* This test program should exit with status 0 if system uses a CRLF as | |
31067 | line terminator, and status 1 otherwise. | |
31068 | Since it is used to check for mingw systems, and should return 0 in any | |
31069 | other case, in case of a failure we will not use CRLF. */ | |
31070 | #include <sys/stat.h> | |
31071 | #include <stdlib.h> | |
31072 | #include <fcntl.h> | |
31073 | #include <stdio.h> | |
31074 | ||
31075 | int main () | |
31076 | { | |
31077 | #ifndef O_BINARY | |
31078 | exit(1); | |
31079 | #else | |
31080 | int fd, bytes; | |
31081 | char buff[5]; | |
31082 | ||
31083 | fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); | |
31084 | if (fd < 0) | |
31085 | exit(1); | |
31086 | if (write (fd, "\n", 1) < 0) | |
31087 | perror ("write"); | |
31088 | ||
31089 | close (fd); | |
31090 | ||
31091 | if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) | |
31092 | exit(1); | |
31093 | bytes = read (fd, buff, 5); | |
31094 | if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') | |
31095 | exit(0); | |
31096 | else | |
31097 | exit(1); | |
31098 | #endif | |
31099 | } | |
31100 | _ACEOF | |
5213506e | 31101 | if ac_fn_c_try_run "$LINENO"; then : |
6d26724a | 31102 | libgfor_cv_have_crlf=yes |
3c127520 | 31103 | else |
5213506e | 31104 | libgfor_cv_have_crlf=no |
3c127520 | 31105 | fi |
5213506e RW |
31106 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
31107 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3c127520 | 31108 | fi |
5213506e | 31109 | |
3c127520 | 31110 | fi |
5213506e RW |
31111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5 |
31112 | $as_echo "$libgfor_cv_have_crlf" >&6; } | |
6d26724a | 31113 | if test x"$libgfor_cv_have_crlf" = xyes; then |
3c127520 | 31114 | |
5213506e | 31115 | $as_echo "#define HAVE_CRLF 1" >>confdefs.h |
3c127520 FXC |
31116 | |
31117 | fi | |
31118 | ||
31cfd832 TK |
31119 | # Check whether we support AVX extensions |
31120 | ||
31121 | ac_save_CFLAGS="$CFLAGS" | |
31122 | CFLAGS="-O2 -mavx" | |
31123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31124 | /* end confdefs.h. */ | |
31125 | ||
31126 | void _mm256_zeroall (void) | |
31127 | { | |
31128 | __builtin_ia32_vzeroall (); | |
31129 | } | |
31130 | int | |
31131 | main () | |
31132 | { | |
31133 | ||
31134 | ; | |
31135 | return 0; | |
31136 | } | |
31137 | _ACEOF | |
31138 | if ac_fn_c_try_compile "$LINENO"; then : | |
31139 | ||
31140 | $as_echo "#define HAVE_AVX 1" >>confdefs.h | |
31141 | ||
31142 | fi | |
31143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31144 | CFLAGS="$ac_save_CFLAGS" | |
31145 | ||
31146 | ||
49ad4d2c | 31147 | # Check whether we support AVX2 extensions |
31cfd832 TK |
31148 | |
31149 | ac_save_CFLAGS="$CFLAGS" | |
31150 | CFLAGS="-O2 -mavx2" | |
31151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31152 | /* end confdefs.h. */ | |
31153 | ||
31154 | typedef long long __v4di __attribute__ ((__vector_size__ (32))); | |
31155 | __v4di | |
31156 | mm256_is32_andnotsi256 (__v4di __X, __v4di __Y) | |
31157 | { | |
31158 | return __builtin_ia32_andnotsi256 (__X, __Y); | |
31159 | } | |
31160 | int | |
31161 | main () | |
31162 | { | |
31163 | ||
31164 | ; | |
31165 | return 0; | |
31166 | } | |
31167 | _ACEOF | |
31168 | if ac_fn_c_try_compile "$LINENO"; then : | |
31169 | ||
31170 | $as_echo "#define HAVE_AVX2 1" >>confdefs.h | |
31171 | ||
31172 | fi | |
31173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31174 | CFLAGS="$ac_save_CFLAGS" | |
31175 | ||
31176 | ||
49ad4d2c | 31177 | # Check whether we support AVX512f extensions |
31cfd832 TK |
31178 | |
31179 | ac_save_CFLAGS="$CFLAGS" | |
31180 | CFLAGS="-O2 -mavx512f" | |
31181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31182 | /* end confdefs.h. */ | |
31183 | ||
31184 | typedef double __m512d __attribute__ ((__vector_size__ (64))); | |
31185 | __m512d _mm512_add (__m512d a) | |
31186 | { | |
9db0a8c2 JJ |
31187 | __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4); |
31188 | /* For -m64/-mx32 also verify that code will work even if | |
31189 | the target uses call saved zmm16+ and needs to emit | |
31190 | unwind info for them (e.g. on mingw). See PR79127. */ | |
31191 | #ifdef __x86_64__ | |
31192 | asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19"); | |
31193 | #endif | |
31194 | return b; | |
31cfd832 TK |
31195 | } |
31196 | int | |
31197 | main () | |
31198 | { | |
31199 | ||
31200 | ; | |
31201 | return 0; | |
31202 | } | |
31203 | _ACEOF | |
31204 | if ac_fn_c_try_compile "$LINENO"; then : | |
31205 | ||
31206 | $as_echo "#define HAVE_AVX512F 1" >>confdefs.h | |
31207 | ||
31208 | fi | |
31209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31210 | CFLAGS="$ac_save_CFLAGS" | |
31211 | ||
31212 | ||
1d5cf7fc TK |
31213 | # Check for FMA3 extensions |
31214 | ||
31215 | ac_save_CFLAGS="$CFLAGS" | |
31216 | CFLAGS="-O2 -mfma -mno-fma4" | |
31217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31218 | /* end confdefs.h. */ | |
31219 | ||
9698e1bb RO |
31220 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
31221 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
31222 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
1d5cf7fc | 31223 | { |
9698e1bb RO |
31224 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
31225 | (__v4sf)__B, | |
31226 | (__v4sf)__C); | |
1d5cf7fc TK |
31227 | } |
31228 | int | |
31229 | main () | |
31230 | { | |
31231 | ||
31232 | ; | |
31233 | return 0; | |
31234 | } | |
31235 | _ACEOF | |
31236 | if ac_fn_c_try_compile "$LINENO"; then : | |
31237 | ||
31238 | $as_echo "#define HAVE_FMA3 1" >>confdefs.h | |
31239 | ||
31240 | fi | |
31241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31242 | CFLAGS="$ac_save_CFLAGS" | |
31243 | ||
31244 | ||
31245 | # Check for FMA4 extensions | |
31246 | ||
31247 | ac_save_CFLAGS="$CFLAGS" | |
31248 | CFLAGS="-O2 -mfma4 -mno-fma" | |
31249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31250 | /* end confdefs.h. */ | |
31251 | ||
9698e1bb RO |
31252 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
31253 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
31254 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
1d5cf7fc | 31255 | { |
9698e1bb RO |
31256 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
31257 | (__v4sf)__B, | |
31258 | (__v4sf)__C); | |
1d5cf7fc TK |
31259 | } |
31260 | int | |
31261 | main () | |
31262 | { | |
31263 | ||
31264 | ; | |
31265 | return 0; | |
31266 | } | |
31267 | _ACEOF | |
31268 | if ac_fn_c_try_compile "$LINENO"; then : | |
31269 | ||
31270 | $as_echo "#define HAVE_FMA4 1" >>confdefs.h | |
31271 | ||
31272 | fi | |
31273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31274 | CFLAGS="$ac_save_CFLAGS" | |
31275 | ||
31276 | ||
31277 | # Check if AVX128 works | |
31278 | ||
31279 | ac_save_CFLAGS="$CFLAGS" | |
31280 | CFLAGS="-O2 -mavx -mprefer-avx128" | |
31281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31282 | /* end confdefs.h. */ | |
31283 | ||
31284 | void foo() | |
31285 | { | |
31286 | } | |
31287 | int | |
31288 | main () | |
31289 | { | |
31290 | ||
31291 | ; | |
31292 | return 0; | |
31293 | } | |
31294 | _ACEOF | |
31295 | if ac_fn_c_try_compile "$LINENO"; then : | |
31296 | ||
31297 | $as_echo "#define HAVE_AVX128 1" >>confdefs.h | |
31298 | ||
31299 | if true; then | |
31300 | HAVE_AVX128_TRUE= | |
31301 | HAVE_AVX128_FALSE='#' | |
31302 | else | |
31303 | HAVE_AVX128_TRUE='#' | |
31304 | HAVE_AVX128_FALSE= | |
31305 | fi | |
31306 | ||
5596d26a TK |
31307 | else |
31308 | if false; then | |
31309 | HAVE_AVX128_TRUE= | |
31310 | HAVE_AVX128_FALSE='#' | |
31311 | else | |
31312 | HAVE_AVX128_TRUE='#' | |
31313 | HAVE_AVX128_FALSE= | |
31314 | fi | |
31315 | ||
1d5cf7fc TK |
31316 | fi |
31317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31318 | CFLAGS="$ac_save_CFLAGS" | |
31319 | ||
31320 | ||
3c36aa6b JJ |
31321 | # Determine what GCC version number to use in filesystem paths. |
31322 | ||
31323 | get_gcc_base_ver="cat" | |
31324 | ||
31325 | # Check whether --with-gcc-major-version-only was given. | |
31326 | if test "${with_gcc_major_version_only+set}" = set; then : | |
31327 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
001ddaa8 | 31328 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
31329 | fi |
31330 | ||
31331 | fi | |
31332 | ||
31333 | ||
31334 | ||
31335 | ||
6de9cd9a DN |
31336 | cat >confcache <<\_ACEOF |
31337 | # This file is a shell script that caches the results of configure | |
31338 | # tests run on this system so they can be shared between configure | |
31339 | # scripts and configure runs, see configure's option --config-cache. | |
31340 | # It is not useful on other systems. If it contains results you don't | |
31341 | # want to keep, you may remove or edit it. | |
31342 | # | |
31343 | # config.status only pays attention to the cache file if you give it | |
31344 | # the --recheck option to rerun configure. | |
31345 | # | |
31346 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31347 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31348 | # following values. | |
31349 | ||
31350 | _ACEOF | |
31351 | ||
31352 | # The following way of writing the cache mishandles newlines in values, | |
31353 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 31354 | # So, we kill variables containing newlines. |
6de9cd9a DN |
31355 | # Ultrix sh set writes to stderr and can't be redirected directly, |
31356 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
31357 | ( |
31358 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
31359 | eval ac_val=\$$ac_var | |
31360 | case $ac_val in #( | |
31361 | *${as_nl}*) | |
31362 | case $ac_var in #( | |
31363 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
31364 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
31365 | esac | |
31366 | case $ac_var in #( | |
31367 | _ | IFS | as_nl) ;; #( | |
31368 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
31369 | *) { eval $ac_var=; unset $ac_var;} ;; | |
31370 | esac ;; | |
31371 | esac | |
31372 | done | |
31373 | ||
6de9cd9a | 31374 | (set) 2>&1 | |
5213506e RW |
31375 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
31376 | *${as_nl}ac_space=\ *) | |
31377 | # `set' does not quote correctly, so add quotes: double-quote | |
31378 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
6de9cd9a DN |
31379 | sed -n \ |
31380 | "s/'/'\\\\''/g; | |
31381 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 31382 | ;; #( |
6de9cd9a DN |
31383 | *) |
31384 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 31385 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
6de9cd9a | 31386 | ;; |
5213506e RW |
31387 | esac | |
31388 | sort | |
31389 | ) | | |
6de9cd9a | 31390 | sed ' |
5213506e | 31391 | /^ac_cv_env_/b end |
6de9cd9a | 31392 | t clear |
5213506e | 31393 | :clear |
6de9cd9a DN |
31394 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
31395 | t end | |
5213506e RW |
31396 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
31397 | :end' >>confcache | |
31398 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
31399 | if test -w "$cache_file"; then | |
22e05272 | 31400 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
31401 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
31402 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
31403 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
31404 | cat confcache >"$cache_file" | |
31405 | else | |
31406 | case $cache_file in #( | |
31407 | */* | ?:*) | |
31408 | mv -f confcache "$cache_file"$$ && | |
31409 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
31410 | *) | |
31411 | mv -f confcache "$cache_file" ;; | |
31412 | esac | |
31413 | fi | |
31414 | fi | |
6de9cd9a | 31415 | else |
5213506e RW |
31416 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
31417 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6de9cd9a DN |
31418 | fi |
31419 | fi | |
31420 | rm -f confcache | |
31421 | ||
96b8a615 AJ |
31422 | if test ${multilib} = yes; then |
31423 | multilib_arg="--enable-multilib" | |
6de9cd9a | 31424 | else |
96b8a615 | 31425 | multilib_arg= |
6de9cd9a | 31426 | fi |
6de9cd9a | 31427 | |
1ec601bf FXC |
31428 | # Write our Makefile and spec file. |
31429 | ac_config_files="$ac_config_files Makefile libgfortran.spec" | |
96b8a615 | 31430 | |
6de9cd9a DN |
31431 | cat >confcache <<\_ACEOF |
31432 | # This file is a shell script that caches the results of configure | |
31433 | # tests run on this system so they can be shared between configure | |
31434 | # scripts and configure runs, see configure's option --config-cache. | |
31435 | # It is not useful on other systems. If it contains results you don't | |
31436 | # want to keep, you may remove or edit it. | |
31437 | # | |
31438 | # config.status only pays attention to the cache file if you give it | |
31439 | # the --recheck option to rerun configure. | |
31440 | # | |
31441 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31442 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31443 | # following values. | |
31444 | ||
31445 | _ACEOF | |
31446 | ||
31447 | # The following way of writing the cache mishandles newlines in values, | |
31448 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 31449 | # So, we kill variables containing newlines. |
6de9cd9a DN |
31450 | # Ultrix sh set writes to stderr and can't be redirected directly, |
31451 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
31452 | ( |
31453 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
31454 | eval ac_val=\$$ac_var | |
31455 | case $ac_val in #( | |
31456 | *${as_nl}*) | |
31457 | case $ac_var in #( | |
31458 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
31459 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
31460 | esac | |
31461 | case $ac_var in #( | |
31462 | _ | IFS | as_nl) ;; #( | |
31463 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
31464 | *) { eval $ac_var=; unset $ac_var;} ;; | |
31465 | esac ;; | |
31466 | esac | |
31467 | done | |
31468 | ||
6de9cd9a | 31469 | (set) 2>&1 | |
5213506e RW |
31470 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
31471 | *${as_nl}ac_space=\ *) | |
31472 | # `set' does not quote correctly, so add quotes: double-quote | |
31473 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
6de9cd9a DN |
31474 | sed -n \ |
31475 | "s/'/'\\\\''/g; | |
31476 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 31477 | ;; #( |
6de9cd9a DN |
31478 | *) |
31479 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 31480 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
6de9cd9a | 31481 | ;; |
5213506e RW |
31482 | esac | |
31483 | sort | |
31484 | ) | | |
6de9cd9a | 31485 | sed ' |
5213506e | 31486 | /^ac_cv_env_/b end |
6de9cd9a | 31487 | t clear |
5213506e | 31488 | :clear |
6de9cd9a DN |
31489 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
31490 | t end | |
5213506e RW |
31491 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
31492 | :end' >>confcache | |
31493 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
31494 | if test -w "$cache_file"; then | |
22e05272 | 31495 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
31496 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
31497 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
31498 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
31499 | cat confcache >"$cache_file" | |
31500 | else | |
31501 | case $cache_file in #( | |
31502 | */* | ?:*) | |
31503 | mv -f confcache "$cache_file"$$ && | |
31504 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
31505 | *) | |
31506 | mv -f confcache "$cache_file" ;; | |
31507 | esac | |
31508 | fi | |
31509 | fi | |
6de9cd9a | 31510 | else |
5213506e RW |
31511 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
31512 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6de9cd9a DN |
31513 | fi |
31514 | fi | |
31515 | rm -f confcache | |
31516 | ||
31517 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
31518 | # Let make expand exec_prefix. | |
31519 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
31520 | ||
6de9cd9a DN |
31521 | DEFS=-DHAVE_CONFIG_H |
31522 | ||
31523 | ac_libobjs= | |
31524 | ac_ltlibobjs= | |
22e05272 | 31525 | U= |
6de9cd9a DN |
31526 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
31527 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
31528 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
31529 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
31530 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
31531 | # will be set to the directory where LIBOBJS objects are built. | |
31532 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
31533 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
6de9cd9a DN |
31534 | done |
31535 | LIBOBJS=$ac_libobjs | |
31536 | ||
31537 | LTLIBOBJS=$ac_ltlibobjs | |
31538 | ||
31539 | ||
b808ac33 | 31540 | if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then |
22e05272 | 31541 | as_fn_error $? "conditional \"onestep\" was never defined. |
5213506e RW |
31542 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31543 | fi | |
22e05272 JM |
31544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
31545 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
31546 | if test -n "$am_sleep_pid"; then | |
31547 | # Hide warnings about reused PIDs. | |
31548 | wait $am_sleep_pid 2>/dev/null | |
31549 | fi | |
31550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
31551 | $as_echo "done" >&6; } | |
5213506e RW |
31552 | if test -n "$EXEEXT"; then |
31553 | am__EXEEXT_TRUE= | |
31554 | am__EXEEXT_FALSE='#' | |
31555 | else | |
31556 | am__EXEEXT_TRUE='#' | |
31557 | am__EXEEXT_FALSE= | |
b808ac33 | 31558 | fi |
5213506e | 31559 | |
6de9cd9a | 31560 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22e05272 | 31561 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
5213506e | 31562 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
6de9cd9a | 31563 | fi |
679c0f9a | 31564 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
22e05272 | 31565 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
5213506e | 31566 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
679c0f9a TT |
31567 | fi |
31568 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
22e05272 | 31569 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
5213506e | 31570 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
679c0f9a | 31571 | fi |
21be0a5a | 31572 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
22e05272 | 31573 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
21be0a5a JB |
31574 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31575 | fi | |
49ad4d2c TK |
31576 | if test -z "${HAVE_REAL_17_TRUE}" && test -z "${HAVE_REAL_17_FALSE}"; then |
31577 | as_fn_error $? "conditional \"HAVE_REAL_17\" was never defined. | |
31578 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31579 | fi | |
c0e7e2bf | 31580 | if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then |
22e05272 | 31581 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined. |
5213506e | 31582 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
c0e7e2bf | 31583 | fi |
49ea7a0e | 31584 | if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then |
22e05272 | 31585 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined. |
49ea7a0e RO |
31586 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31587 | fi | |
31588 | if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then | |
22e05272 | 31589 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined. |
49ea7a0e RO |
31590 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31591 | fi | |
ee95f928 | 31592 | if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then |
22e05272 | 31593 | as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined. |
ee95f928 BS |
31594 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31595 | fi | |
66dbcf2d | 31596 | if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then |
22e05272 | 31597 | as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined. |
66dbcf2d RO |
31598 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31599 | fi | |
8b198102 | 31600 | if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then |
22e05272 | 31601 | as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined. |
8b198102 FXC |
31602 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31603 | fi | |
1d5cf7fc | 31604 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
22e05272 | 31605 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
1d5cf7fc TK |
31606 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31607 | fi | |
5596d26a | 31608 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
22e05272 | 31609 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
5596d26a TK |
31610 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31611 | fi | |
6de9cd9a | 31612 | |
22e05272 | 31613 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 31614 | ac_write_fail=0 |
6de9cd9a DN |
31615 | ac_clean_files_save=$ac_clean_files |
31616 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
31617 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
31618 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
31619 | as_write_fail=0 | |
31620 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
6de9cd9a DN |
31621 | #! $SHELL |
31622 | # Generated by $as_me. | |
31623 | # Run this file to recreate the current configuration. | |
31624 | # Compiler output produced by configure, useful for debugging | |
31625 | # configure, is in config.log if it exists. | |
31626 | ||
31627 | debug=false | |
31628 | ac_cs_recheck=false | |
31629 | ac_cs_silent=false | |
6de9cd9a | 31630 | |
5213506e RW |
31631 | SHELL=\${CONFIG_SHELL-$SHELL} |
31632 | export SHELL | |
31633 | _ASEOF | |
31634 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
31635 | ## -------------------- ## | |
31636 | ## M4sh Initialization. ## | |
31637 | ## -------------------- ## | |
31638 | ||
31639 | # Be more Bourne compatible | |
31640 | DUALCASE=1; export DUALCASE # for MKS sh | |
31641 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
6de9cd9a DN |
31642 | emulate sh |
31643 | NULLCMD=: | |
5213506e | 31644 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
6de9cd9a DN |
31645 | # is contrary to our usage. Disable this feature. |
31646 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
31647 | setopt NO_GLOB_SUBST |
31648 | else | |
31649 | case `(set -o) 2>/dev/null` in #( | |
31650 | *posix*) : | |
31651 | set -o posix ;; #( | |
31652 | *) : | |
31653 | ;; | |
31654 | esac | |
6de9cd9a | 31655 | fi |
6de9cd9a | 31656 | |
5213506e RW |
31657 | |
31658 | as_nl=' | |
31659 | ' | |
31660 | export as_nl | |
31661 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
31662 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
31663 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
31664 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
31665 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
31666 | # but without wasting forks for bash or zsh. | |
31667 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
31668 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
31669 | as_echo='print -r --' | |
31670 | as_echo_n='print -rn --' | |
31671 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
31672 | as_echo='printf %s\n' | |
31673 | as_echo_n='printf %s' | |
31674 | else | |
31675 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
31676 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
31677 | as_echo_n='/usr/ucb/echo -n' | |
31678 | else | |
31679 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
31680 | as_echo_n_body='eval | |
31681 | arg=$1; | |
31682 | case $arg in #( | |
31683 | *"$as_nl"*) | |
31684 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
31685 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
31686 | esac; | |
31687 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
31688 | ' | |
31689 | export as_echo_n_body | |
31690 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
31691 | fi | |
31692 | export as_echo_body | |
31693 | as_echo='sh -c $as_echo_body as_echo' | |
31694 | fi | |
31695 | ||
31696 | # The user is always right. | |
31697 | if test "${PATH_SEPARATOR+set}" != set; then | |
31698 | PATH_SEPARATOR=: | |
31699 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
31700 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
31701 | PATH_SEPARATOR=';' | |
31702 | } | |
6de9cd9a DN |
31703 | fi |
31704 | ||
31705 | ||
5213506e RW |
31706 | # IFS |
31707 | # We need space, tab and new line, in precisely that order. Quoting is | |
31708 | # there to prevent editors from complaining about space-tab. | |
31709 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
31710 | # splitting by setting IFS to empty value.) | |
31711 | IFS=" "" $as_nl" | |
31712 | ||
31713 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 31714 | as_myself= |
5213506e RW |
31715 | case $0 in #(( |
31716 | *[\\/]* ) as_myself=$0 ;; | |
31717 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31718 | for as_dir in $PATH | |
31719 | do | |
31720 | IFS=$as_save_IFS | |
31721 | test -z "$as_dir" && as_dir=. | |
31722 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
31723 | done | |
31724 | IFS=$as_save_IFS | |
31725 | ||
31726 | ;; | |
31727 | esac | |
31728 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
31729 | # in which case we are not to be found in the path. | |
31730 | if test "x$as_myself" = x; then | |
31731 | as_myself=$0 | |
31732 | fi | |
31733 | if test ! -f "$as_myself"; then | |
31734 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
31735 | exit 1 | |
31736 | fi | |
31737 | ||
31738 | # Unset variables that we do not need and which cause bugs (e.g. in | |
31739 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
31740 | # suppresses any "Segmentation fault" message there. '((' could | |
31741 | # trigger a bug in pdksh 5.2.14. | |
31742 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
31743 | do eval test x\${$as_var+set} = xset \ | |
31744 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
31745 | done | |
6de9cd9a DN |
31746 | PS1='$ ' |
31747 | PS2='> ' | |
31748 | PS4='+ ' | |
31749 | ||
31750 | # NLS nuisances. | |
5213506e RW |
31751 | LC_ALL=C |
31752 | export LC_ALL | |
31753 | LANGUAGE=C | |
31754 | export LANGUAGE | |
31755 | ||
31756 | # CDPATH. | |
31757 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
31758 | ||
31759 | ||
22e05272 JM |
31760 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
31761 | # ---------------------------------------- | |
5213506e RW |
31762 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
31763 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 31764 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
31765 | as_fn_error () |
31766 | { | |
22e05272 JM |
31767 | as_status=$1; test $as_status -eq 0 && as_status=1 |
31768 | if test "$4"; then | |
31769 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
31770 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
6de9cd9a | 31771 | fi |
22e05272 | 31772 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
31773 | as_fn_exit $as_status |
31774 | } # as_fn_error | |
31775 | ||
31776 | ||
31777 | # as_fn_set_status STATUS | |
31778 | # ----------------------- | |
31779 | # Set $? to STATUS, without forking. | |
31780 | as_fn_set_status () | |
31781 | { | |
31782 | return $1 | |
31783 | } # as_fn_set_status | |
31784 | ||
31785 | # as_fn_exit STATUS | |
31786 | # ----------------- | |
31787 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
31788 | as_fn_exit () | |
31789 | { | |
31790 | set +e | |
31791 | as_fn_set_status $1 | |
31792 | exit $1 | |
31793 | } # as_fn_exit | |
31794 | ||
31795 | # as_fn_unset VAR | |
31796 | # --------------- | |
31797 | # Portably unset VAR. | |
31798 | as_fn_unset () | |
31799 | { | |
31800 | { eval $1=; unset $1;} | |
31801 | } | |
31802 | as_unset=as_fn_unset | |
31803 | # as_fn_append VAR VALUE | |
31804 | # ---------------------- | |
31805 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
31806 | # advantage of any shell optimizations that allow amortized linear growth over | |
31807 | # repeated appends, instead of the typical quadratic growth present in naive | |
31808 | # implementations. | |
31809 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
31810 | eval 'as_fn_append () | |
31811 | { | |
31812 | eval $1+=\$2 | |
31813 | }' | |
31814 | else | |
31815 | as_fn_append () | |
31816 | { | |
31817 | eval $1=\$$1\$2 | |
31818 | } | |
31819 | fi # as_fn_append | |
31820 | ||
31821 | # as_fn_arith ARG... | |
31822 | # ------------------ | |
31823 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
31824 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
31825 | # must be portable across $(()) and expr. | |
31826 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
31827 | eval 'as_fn_arith () | |
31828 | { | |
31829 | as_val=$(( $* )) | |
31830 | }' | |
31831 | else | |
31832 | as_fn_arith () | |
31833 | { | |
31834 | as_val=`expr "$@" || test $? -eq 1` | |
31835 | } | |
31836 | fi # as_fn_arith | |
6de9cd9a | 31837 | |
5213506e RW |
31838 | |
31839 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
31840 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6de9cd9a DN |
31841 | as_expr=expr |
31842 | else | |
31843 | as_expr=false | |
31844 | fi | |
31845 | ||
5213506e | 31846 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6de9cd9a DN |
31847 | as_basename=basename |
31848 | else | |
31849 | as_basename=false | |
31850 | fi | |
31851 | ||
5213506e RW |
31852 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
31853 | as_dirname=dirname | |
31854 | else | |
31855 | as_dirname=false | |
31856 | fi | |
6de9cd9a | 31857 | |
5213506e | 31858 | as_me=`$as_basename -- "$0" || |
6de9cd9a DN |
31859 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
31860 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
31861 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
31862 | $as_echo X/"$0" | | |
31863 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
31864 | s//\1/ | |
31865 | q | |
31866 | } | |
31867 | /^X\/\(\/\/\)$/{ | |
31868 | s//\1/ | |
31869 | q | |
31870 | } | |
31871 | /^X\/\(\/\).*/{ | |
31872 | s//\1/ | |
31873 | q | |
31874 | } | |
31875 | s/.*/./; q'` | |
38d24731 | 31876 | |
38d24731 RW |
31877 | # Avoid depending upon Character Ranges. |
31878 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
31879 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
31880 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
31881 | as_cr_digits='0123456789' | |
31882 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
31883 | ||
5213506e RW |
31884 | ECHO_C= ECHO_N= ECHO_T= |
31885 | case `echo -n x` in #((((( | |
31886 | -n*) | |
31887 | case `echo 'xy\c'` in | |
31888 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
31889 | xy) ECHO_C='\c';; | |
31890 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
31891 | ECHO_T=' ';; | |
31892 | esac;; | |
31893 | *) | |
31894 | ECHO_N='-n';; | |
6de9cd9a DN |
31895 | esac |
31896 | ||
5213506e RW |
31897 | rm -f conf$$ conf$$.exe conf$$.file |
31898 | if test -d conf$$.dir; then | |
31899 | rm -f conf$$.dir/conf$$.file | |
6de9cd9a | 31900 | else |
5213506e RW |
31901 | rm -f conf$$.dir |
31902 | mkdir conf$$.dir 2>/dev/null | |
6de9cd9a | 31903 | fi |
5213506e RW |
31904 | if (echo >conf$$.file) 2>/dev/null; then |
31905 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
38d24731 | 31906 | as_ln_s='ln -s' |
5213506e RW |
31907 | # ... but there are two gotchas: |
31908 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
31909 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 31910 | # In both cases, we have to default to `cp -pR'. |
5213506e | 31911 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 31912 | as_ln_s='cp -pR' |
5213506e RW |
31913 | elif ln conf$$.file conf$$ 2>/dev/null; then |
31914 | as_ln_s=ln | |
31915 | else | |
22e05272 | 31916 | as_ln_s='cp -pR' |
38d24731 | 31917 | fi |
6de9cd9a | 31918 | else |
22e05272 | 31919 | as_ln_s='cp -pR' |
6de9cd9a | 31920 | fi |
5213506e RW |
31921 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
31922 | rmdir conf$$.dir 2>/dev/null | |
31923 | ||
31924 | ||
31925 | # as_fn_mkdir_p | |
31926 | # ------------- | |
31927 | # Create "$as_dir" as a directory, including parents if necessary. | |
31928 | as_fn_mkdir_p () | |
31929 | { | |
31930 | ||
31931 | case $as_dir in #( | |
31932 | -*) as_dir=./$as_dir;; | |
31933 | esac | |
31934 | test -d "$as_dir" || eval $as_mkdir_p || { | |
31935 | as_dirs= | |
31936 | while :; do | |
31937 | case $as_dir in #( | |
31938 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
31939 | *) as_qdir=$as_dir;; | |
31940 | esac | |
31941 | as_dirs="'$as_qdir' $as_dirs" | |
31942 | as_dir=`$as_dirname -- "$as_dir" || | |
31943 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
31944 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
31945 | X"$as_dir" : 'X\(//\)$' \| \ | |
31946 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
31947 | $as_echo X"$as_dir" | | |
31948 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
31949 | s//\1/ | |
31950 | q | |
31951 | } | |
31952 | /^X\(\/\/\)[^/].*/{ | |
31953 | s//\1/ | |
31954 | q | |
31955 | } | |
31956 | /^X\(\/\/\)$/{ | |
31957 | s//\1/ | |
31958 | q | |
31959 | } | |
31960 | /^X\(\/\).*/{ | |
31961 | s//\1/ | |
31962 | q | |
31963 | } | |
31964 | s/.*/./; q'` | |
31965 | test -d "$as_dir" && break | |
31966 | done | |
31967 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 31968 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 31969 | |
6de9cd9a | 31970 | |
5213506e | 31971 | } # as_fn_mkdir_p |
6de9cd9a | 31972 | if mkdir -p . 2>/dev/null; then |
5213506e | 31973 | as_mkdir_p='mkdir -p "$as_dir"' |
6de9cd9a DN |
31974 | else |
31975 | test -d ./-p && rmdir ./-p | |
31976 | as_mkdir_p=false | |
31977 | fi | |
31978 | ||
22e05272 JM |
31979 | |
31980 | # as_fn_executable_p FILE | |
31981 | # ----------------------- | |
31982 | # Test if FILE is an executable regular file. | |
31983 | as_fn_executable_p () | |
31984 | { | |
31985 | test -f "$1" && test -x "$1" | |
31986 | } # as_fn_executable_p | |
31987 | as_test_x='test -x' | |
31988 | as_executable_p=as_fn_executable_p | |
6de9cd9a DN |
31989 | |
31990 | # Sed expression to map a string onto a valid CPP name. | |
31991 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
31992 | ||
31993 | # Sed expression to map a string onto a valid variable name. | |
31994 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
31995 | ||
31996 | ||
6de9cd9a | 31997 | exec 6>&1 |
5213506e RW |
31998 | ## ----------------------------------- ## |
31999 | ## Main body of $CONFIG_STATUS script. ## | |
32000 | ## ----------------------------------- ## | |
32001 | _ASEOF | |
32002 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
32003 | ||
32004 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
32005 | # Save the log message, to keep $0 and so on meaningful, and to | |
6de9cd9a | 32006 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
32007 | # values after options handling. |
32008 | ac_log=" | |
0dce3ca1 | 32009 | This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was |
22e05272 | 32010 | generated by GNU Autoconf 2.69. Invocation command line was |
6de9cd9a DN |
32011 | |
32012 | CONFIG_FILES = $CONFIG_FILES | |
32013 | CONFIG_HEADERS = $CONFIG_HEADERS | |
32014 | CONFIG_LINKS = $CONFIG_LINKS | |
32015 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
32016 | $ $0 $@ | |
32017 | ||
5213506e RW |
32018 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
32019 | " | |
32020 | ||
6de9cd9a DN |
32021 | _ACEOF |
32022 | ||
5213506e RW |
32023 | case $ac_config_files in *" |
32024 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
32025 | esac | |
78511f8b | 32026 | |
5213506e RW |
32027 | case $ac_config_headers in *" |
32028 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
32029 | esac | |
38d24731 | 32030 | |
38d24731 | 32031 | |
5213506e RW |
32032 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
32033 | # Files that config.status was made for. | |
32034 | config_files="$ac_config_files" | |
32035 | config_headers="$ac_config_headers" | |
32036 | config_commands="$ac_config_commands" | |
6de9cd9a | 32037 | |
5213506e | 32038 | _ACEOF |
38d24731 | 32039 | |
5213506e | 32040 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6de9cd9a | 32041 | ac_cs_usage="\ |
5213506e RW |
32042 | \`$as_me' instantiates files and other configuration actions |
32043 | from templates according to the current configuration. Unless the files | |
32044 | and actions are specified as TAGs, all are instantiated by default. | |
6de9cd9a | 32045 | |
5213506e | 32046 | Usage: $0 [OPTION]... [TAG]... |
6de9cd9a DN |
32047 | |
32048 | -h, --help print this help, then exit | |
5213506e | 32049 | -V, --version print version number and configuration settings, then exit |
22e05272 | 32050 | --config print configuration, then exit |
5213506e RW |
32051 | -q, --quiet, --silent |
32052 | do not print progress messages | |
6de9cd9a DN |
32053 | -d, --debug don't remove temporary files |
32054 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
32055 | --file=FILE[:TEMPLATE] |
32056 | instantiate the configuration file FILE | |
32057 | --header=FILE[:TEMPLATE] | |
32058 | instantiate the configuration header FILE | |
6de9cd9a DN |
32059 | |
32060 | Configuration files: | |
32061 | $config_files | |
32062 | ||
32063 | Configuration headers: | |
32064 | $config_headers | |
32065 | ||
32066 | Configuration commands: | |
32067 | $config_commands | |
32068 | ||
5213506e RW |
32069 | Report bugs to the package provider. |
32070 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
32071 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
38d24731 | 32072 | |
5213506e RW |
32073 | _ACEOF |
32074 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 32075 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
6de9cd9a | 32076 | ac_cs_version="\\ |
0dce3ca1 | 32077 | GNU Fortran Runtime Library config.status 0.3 |
22e05272 JM |
32078 | configured by $0, generated by GNU Autoconf 2.69, |
32079 | with options \\"\$ac_cs_config\\" | |
6de9cd9a | 32080 | |
22e05272 | 32081 | Copyright (C) 2012 Free Software Foundation, Inc. |
6de9cd9a DN |
32082 | This config.status script is free software; the Free Software Foundation |
32083 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
32084 | |
32085 | ac_pwd='$ac_pwd' | |
32086 | srcdir='$srcdir' | |
32087 | INSTALL='$INSTALL' | |
32088 | MKDIR_P='$MKDIR_P' | |
32089 | AWK='$AWK' | |
32090 | test -n "\$AWK" || AWK=awk | |
6de9cd9a DN |
32091 | _ACEOF |
32092 | ||
5213506e RW |
32093 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
32094 | # The default lists apply if the user does not specify any file. | |
6de9cd9a DN |
32095 | ac_need_defaults=: |
32096 | while test $# != 0 | |
32097 | do | |
32098 | case $1 in | |
22e05272 | 32099 | --*=?*) |
5213506e RW |
32100 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
32101 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
6de9cd9a DN |
32102 | ac_shift=: |
32103 | ;; | |
22e05272 JM |
32104 | --*=) |
32105 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
32106 | ac_optarg= | |
32107 | ac_shift=: | |
32108 | ;; | |
5213506e | 32109 | *) |
6de9cd9a DN |
32110 | ac_option=$1 |
32111 | ac_optarg=$2 | |
32112 | ac_shift=shift | |
32113 | ;; | |
6de9cd9a DN |
32114 | esac |
32115 | ||
32116 | case $ac_option in | |
32117 | # Handling of the options. | |
6de9cd9a DN |
32118 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
32119 | ac_cs_recheck=: ;; | |
5213506e RW |
32120 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
32121 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
32122 | --config | --confi | --conf | --con | --co | --c ) |
32123 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 32124 | --debug | --debu | --deb | --de | --d | -d ) |
6de9cd9a DN |
32125 | debug=: ;; |
32126 | --file | --fil | --fi | --f ) | |
32127 | $ac_shift | |
5213506e RW |
32128 | case $ac_optarg in |
32129 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 32130 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
32131 | esac |
32132 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
6de9cd9a DN |
32133 | ac_need_defaults=false;; |
32134 | --header | --heade | --head | --hea ) | |
32135 | $ac_shift | |
5213506e RW |
32136 | case $ac_optarg in |
32137 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
32138 | esac | |
32139 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
6de9cd9a | 32140 | ac_need_defaults=false;; |
5213506e RW |
32141 | --he | --h) |
32142 | # Conflict between --help and --header | |
22e05272 | 32143 | as_fn_error $? "ambiguous option: \`$1' |
5213506e RW |
32144 | Try \`$0 --help' for more information.";; |
32145 | --help | --hel | -h ) | |
32146 | $as_echo "$ac_cs_usage"; exit ;; | |
6de9cd9a DN |
32147 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
32148 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
32149 | ac_cs_silent=: ;; | |
32150 | ||
32151 | # This is an error. | |
22e05272 | 32152 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 32153 | Try \`$0 --help' for more information." ;; |
6de9cd9a | 32154 | |
5213506e RW |
32155 | *) as_fn_append ac_config_targets " $1" |
32156 | ac_need_defaults=false ;; | |
6de9cd9a DN |
32157 | |
32158 | esac | |
32159 | shift | |
32160 | done | |
32161 | ||
32162 | ac_configure_extra_args= | |
32163 | ||
32164 | if $ac_cs_silent; then | |
32165 | exec 6>/dev/null | |
32166 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
32167 | fi | |
32168 | ||
32169 | _ACEOF | |
5213506e | 32170 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6de9cd9a | 32171 | if \$ac_cs_recheck; then |
22e05272 | 32172 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
32173 | shift |
32174 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
32175 | CONFIG_SHELL='$SHELL' | |
32176 | export CONFIG_SHELL | |
32177 | exec "\$@" | |
6de9cd9a DN |
32178 | fi |
32179 | ||
1cf3d07d | 32180 | _ACEOF |
5213506e RW |
32181 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
32182 | exec 5>>config.log | |
32183 | { | |
32184 | echo | |
32185 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
32186 | ## Running $as_me. ## | |
32187 | _ASBOX | |
32188 | $as_echo "$ac_log" | |
32189 | } >&5 | |
1cf3d07d | 32190 | |
5213506e RW |
32191 | _ACEOF |
32192 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1cf3d07d | 32193 | # |
5213506e | 32194 | # INIT-COMMANDS |
1cf3d07d SE |
32195 | # |
32196 | ||
1cf3d07d SE |
32197 | srcdir="$srcdir" |
32198 | host="$host" | |
32199 | target="$target" | |
32200 | with_multisubdir="$with_multisubdir" | |
32201 | with_multisrctop="$with_multisrctop" | |
32202 | with_target_subdir="$with_target_subdir" | |
32203 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
32204 | multi_basedir="$multi_basedir" | |
32205 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
32206 | CC="$CC" | |
2017c370 JB |
32207 | CXX="$CXX" |
32208 | GFORTRAN="$GFORTRAN" | |
22e05272 | 32209 | GDC="$GDC" |
1cf3d07d SE |
32210 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
32211 | ||
32212 | ||
32213 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
32214 | # if CDPATH is set. | |
32215 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
32216 | ||
32217 | sed_quote_subst='$sed_quote_subst' | |
32218 | double_quote_subst='$double_quote_subst' | |
32219 | delay_variable_subst='$delay_variable_subst' | |
66dbcf2d RO |
32220 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
32221 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
32222 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
32223 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
32224 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
32225 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
32226 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
32227 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
32228 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
32229 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
32230 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
32231 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
32232 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
32233 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
32234 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
32235 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
32236 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
32237 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
32238 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
32239 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
32240 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
32241 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
32242 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
32243 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
32244 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
32245 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
32246 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
32247 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
32248 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
32249 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
32250 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
32251 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
32252 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
32253 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
32254 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
32255 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
32256 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
32257 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32258 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32259 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
32260 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
32261 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
32262 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
32263 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
32264 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
32265 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
32266 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
32267 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
32268 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
32269 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
32270 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
32271 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
32272 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
32273 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
32274 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
32275 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
32276 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
32277 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
32278 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
32279 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
32280 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
32281 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
32282 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
32283 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
32284 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
32285 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
32286 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
32287 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
32288 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
32289 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
32290 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
32291 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
32292 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
32293 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
32294 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
32295 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
32296 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
32297 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
32298 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
32299 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
32300 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
32301 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
32302 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
32303 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
32304 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
32305 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
32306 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
32307 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
32308 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
32309 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
32310 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
32311 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
32312 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
32313 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
32314 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
32315 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
32316 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
32317 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
32318 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
32319 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
32320 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
32321 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
32322 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
32323 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
32324 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
32325 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
32326 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
32327 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32328 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32329 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
32330 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
32331 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
32332 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
32333 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
32334 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
32335 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
32336 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
32337 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
32338 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
32339 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
32340 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
32341 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
32342 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
32343 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
32344 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
32345 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
32346 | LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' | |
32347 | reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' | |
32348 | reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32349 | old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32350 | compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' | |
32351 | GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' | |
32352 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' | |
32353 | lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' | |
32354 | lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' | |
32355 | lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' | |
32356 | lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' | |
32357 | archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' | |
32358 | enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' | |
32359 | export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
32360 | whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
32361 | compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' | |
32362 | old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32363 | old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32364 | archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32365 | archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32366 | module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32367 | module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32368 | with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' | |
32369 | allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
32370 | no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
32371 | hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
32372 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' | |
32373 | hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' | |
32374 | hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' | |
32375 | hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' | |
32376 | hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' | |
32377 | hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' | |
32378 | hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' | |
32379 | inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' | |
32380 | link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' | |
32381 | fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' | |
32382 | always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' | |
32383 | export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32384 | exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
32385 | include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
32386 | prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32387 | file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' | |
32388 | hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' | |
32389 | compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' | |
32390 | predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
32391 | postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
32392 | predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' | |
32393 | postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' | |
32394 | compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' | |
1cf3d07d SE |
32395 | |
32396 | LTCC='$LTCC' | |
32397 | LTCFLAGS='$LTCFLAGS' | |
32398 | compiler='$compiler_DEFAULT' | |
32399 | ||
43e02a8a RW |
32400 | # A function that is used when there is no print builtin or printf. |
32401 | func_fallback_echo () | |
32402 | { | |
32403 | eval 'cat <<_LTECHO_EOF | |
32404 | \$1 | |
32405 | _LTECHO_EOF' | |
32406 | } | |
32407 | ||
1cf3d07d | 32408 | # Quote evaled strings. |
66dbcf2d | 32409 | for var in SED \ |
1cf3d07d SE |
32410 | GREP \ |
32411 | EGREP \ | |
32412 | FGREP \ | |
66dbcf2d RO |
32413 | SHELL \ |
32414 | ECHO \ | |
1cf3d07d SE |
32415 | LD \ |
32416 | NM \ | |
32417 | LN_S \ | |
32418 | lt_SP2NL \ | |
32419 | lt_NL2SP \ | |
32420 | reload_flag \ | |
d58dead8 | 32421 | OBJDUMP \ |
1cf3d07d SE |
32422 | deplibs_check_method \ |
32423 | file_magic_cmd \ | |
32424 | AR \ | |
32425 | AR_FLAGS \ | |
32426 | STRIP \ | |
32427 | RANLIB \ | |
32428 | CC \ | |
32429 | CFLAGS \ | |
32430 | compiler \ | |
32431 | lt_cv_sys_global_symbol_pipe \ | |
32432 | lt_cv_sys_global_symbol_to_cdecl \ | |
32433 | lt_cv_sys_global_symbol_to_c_name_address \ | |
d58dead8 | 32434 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
1cf3d07d SE |
32435 | lt_prog_compiler_no_builtin_flag \ |
32436 | lt_prog_compiler_wl \ | |
32437 | lt_prog_compiler_pic \ | |
32438 | lt_prog_compiler_static \ | |
32439 | lt_cv_prog_compiler_c_o \ | |
32440 | need_locks \ | |
d58dead8 PG |
32441 | DSYMUTIL \ |
32442 | NMEDIT \ | |
32443 | LIPO \ | |
32444 | OTOOL \ | |
32445 | OTOOL64 \ | |
1cf3d07d SE |
32446 | shrext_cmds \ |
32447 | export_dynamic_flag_spec \ | |
32448 | whole_archive_flag_spec \ | |
32449 | compiler_needs_object \ | |
32450 | with_gnu_ld \ | |
32451 | allow_undefined_flag \ | |
32452 | no_undefined_flag \ | |
32453 | hardcode_libdir_flag_spec \ | |
32454 | hardcode_libdir_flag_spec_ld \ | |
32455 | hardcode_libdir_separator \ | |
32456 | fix_srcfile_path \ | |
32457 | exclude_expsyms \ | |
32458 | include_expsyms \ | |
32459 | file_list_spec \ | |
32460 | variables_saved_for_relink \ | |
32461 | libname_spec \ | |
32462 | library_names_spec \ | |
32463 | soname_spec \ | |
43e02a8a | 32464 | install_override_mode \ |
1cf3d07d SE |
32465 | finish_eval \ |
32466 | old_striplib \ | |
32467 | striplib \ | |
d58dead8 | 32468 | compiler_lib_search_dirs \ |
1cf3d07d SE |
32469 | predep_objects \ |
32470 | postdep_objects \ | |
32471 | predeps \ | |
32472 | postdeps \ | |
32473 | compiler_lib_search_path \ | |
32474 | LD_FC \ | |
43e02a8a | 32475 | reload_flag_FC \ |
1cf3d07d SE |
32476 | compiler_FC \ |
32477 | lt_prog_compiler_no_builtin_flag_FC \ | |
32478 | lt_prog_compiler_wl_FC \ | |
32479 | lt_prog_compiler_pic_FC \ | |
32480 | lt_prog_compiler_static_FC \ | |
32481 | lt_cv_prog_compiler_c_o_FC \ | |
32482 | export_dynamic_flag_spec_FC \ | |
32483 | whole_archive_flag_spec_FC \ | |
32484 | compiler_needs_object_FC \ | |
32485 | with_gnu_ld_FC \ | |
32486 | allow_undefined_flag_FC \ | |
32487 | no_undefined_flag_FC \ | |
32488 | hardcode_libdir_flag_spec_FC \ | |
32489 | hardcode_libdir_flag_spec_ld_FC \ | |
32490 | hardcode_libdir_separator_FC \ | |
32491 | fix_srcfile_path_FC \ | |
32492 | exclude_expsyms_FC \ | |
32493 | include_expsyms_FC \ | |
32494 | file_list_spec_FC \ | |
d58dead8 | 32495 | compiler_lib_search_dirs_FC \ |
1cf3d07d SE |
32496 | predep_objects_FC \ |
32497 | postdep_objects_FC \ | |
32498 | predeps_FC \ | |
32499 | postdeps_FC \ | |
32500 | compiler_lib_search_path_FC; do | |
43e02a8a | 32501 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 32502 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 32503 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
32504 | ;; |
32505 | *) | |
32506 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
32507 | ;; | |
32508 | esac | |
32509 | done | |
32510 | ||
32511 | # Double-quote double-evaled strings. | |
32512 | for var in reload_cmds \ | |
32513 | old_postinstall_cmds \ | |
32514 | old_postuninstall_cmds \ | |
32515 | old_archive_cmds \ | |
32516 | extract_expsyms_cmds \ | |
32517 | old_archive_from_new_cmds \ | |
32518 | old_archive_from_expsyms_cmds \ | |
32519 | archive_cmds \ | |
32520 | archive_expsym_cmds \ | |
32521 | module_cmds \ | |
32522 | module_expsym_cmds \ | |
32523 | export_symbols_cmds \ | |
32524 | prelink_cmds \ | |
32525 | postinstall_cmds \ | |
32526 | postuninstall_cmds \ | |
32527 | finish_cmds \ | |
32528 | sys_lib_search_path_spec \ | |
32529 | sys_lib_dlsearch_path_spec \ | |
43e02a8a | 32530 | reload_cmds_FC \ |
1cf3d07d SE |
32531 | old_archive_cmds_FC \ |
32532 | old_archive_from_new_cmds_FC \ | |
32533 | old_archive_from_expsyms_cmds_FC \ | |
32534 | archive_cmds_FC \ | |
32535 | archive_expsym_cmds_FC \ | |
32536 | module_cmds_FC \ | |
32537 | module_expsym_cmds_FC \ | |
32538 | export_symbols_cmds_FC \ | |
32539 | prelink_cmds_FC; do | |
43e02a8a | 32540 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 32541 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 32542 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
32543 | ;; |
32544 | *) | |
32545 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
32546 | ;; | |
32547 | esac | |
32548 | done | |
32549 | ||
1cf3d07d SE |
32550 | ac_aux_dir='$ac_aux_dir' |
32551 | xsi_shell='$xsi_shell' | |
32552 | lt_shell_append='$lt_shell_append' | |
32553 | ||
32554 | # See if we are running on zsh, and set the options which allow our | |
32555 | # commands through without removal of \ escapes INIT. | |
32556 | if test -n "\${ZSH_VERSION+set}" ; then | |
32557 | setopt NO_GLOB_SUBST | |
32558 | fi | |
32559 | ||
32560 | ||
32561 | PACKAGE='$PACKAGE' | |
32562 | VERSION='$VERSION' | |
32563 | TIMESTAMP='$TIMESTAMP' | |
32564 | RM='$RM' | |
32565 | ofile='$ofile' | |
32566 | ||
32567 | ||
6de9cd9a | 32568 | |
6de9cd9a | 32569 | |
78511f8b | 32570 | |
6de9cd9a | 32571 | |
c13e029b PB |
32572 | GCC="$GCC" |
32573 | CC="$CC" | |
32574 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
32575 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
32576 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
32577 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
32578 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
32579 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
32580 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
32581 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
32582 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
32583 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
32584 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
4c4b3eb0 PB |
32585 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" |
32586 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
c13e029b | 32587 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" |
4c4b3eb0 PB |
32588 | |
32589 | ||
6de9cd9a DN |
32590 | _ACEOF |
32591 | ||
5213506e | 32592 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
f489fba1 | 32593 | |
5213506e | 32594 | # Handling of arguments. |
6de9cd9a DN |
32595 | for ac_config_target in $ac_config_targets |
32596 | do | |
5213506e RW |
32597 | case $ac_config_target in |
32598 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
32599 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
32600 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
32601 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
32602 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
32603 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
1ec601bf | 32604 | "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;; |
5213506e | 32605 | |
22e05272 | 32606 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
6de9cd9a DN |
32607 | esac |
32608 | done | |
32609 | ||
5213506e | 32610 | |
6de9cd9a DN |
32611 | # If the user did not use the arguments to specify the items to instantiate, |
32612 | # then the envvar interface is used. Set only those that are not. | |
32613 | # We use the long form for the default assignment because of an extremely | |
32614 | # bizarre bug on SunOS 4.1.3. | |
32615 | if $ac_need_defaults; then | |
32616 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
32617 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
32618 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
32619 | fi | |
32620 | ||
32621 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 32622 | # simply because there is no reason against having it here, and in addition, |
6de9cd9a | 32623 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
32624 | # Hook for its removal unless debugging. |
32625 | # Note that there is a small window in which the directory will not be cleaned: | |
32626 | # after its creation but before its name has been assigned to `$tmp'. | |
6de9cd9a DN |
32627 | $debug || |
32628 | { | |
22e05272 | 32629 | tmp= ac_tmp= |
5213506e | 32630 | trap 'exit_status=$? |
22e05272 JM |
32631 | : "${ac_tmp:=$tmp}" |
32632 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
32633 | ' 0 |
32634 | trap 'as_fn_exit 1' 1 2 13 15 | |
6de9cd9a | 32635 | } |
6de9cd9a DN |
32636 | # Create a (secure) tmp directory for tmp files. |
32637 | ||
32638 | { | |
5213506e | 32639 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 32640 | test -d "$tmp" |
6de9cd9a DN |
32641 | } || |
32642 | { | |
5213506e RW |
32643 | tmp=./conf$$-$RANDOM |
32644 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
32645 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
32646 | ac_tmp=$tmp | |
5213506e RW |
32647 | |
32648 | # Set up the scripts for CONFIG_FILES section. | |
32649 | # No need to generate them if there are no CONFIG_FILES. | |
32650 | # This happens for instance with `./config.status config.h'. | |
32651 | if test -n "$CONFIG_FILES"; then | |
32652 | ||
32653 | ||
32654 | ac_cr=`echo X | tr X '\015'` | |
32655 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
32656 | # But we know of no other shell where ac_cr would be empty at this | |
32657 | # point, so we can use a bashism as a fallback. | |
32658 | if test "x$ac_cr" = x; then | |
32659 | eval ac_cr=\$\'\\r\' | |
32660 | fi | |
32661 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
32662 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 32663 | ac_cs_awk_cr='\\r' |
5213506e RW |
32664 | else |
32665 | ac_cs_awk_cr=$ac_cr | |
32666 | fi | |
32667 | ||
22e05272 | 32668 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
32669 | _ACEOF |
32670 | ||
32671 | ||
6de9cd9a | 32672 | { |
5213506e RW |
32673 | echo "cat >conf$$subs.awk <<_ACEOF" && |
32674 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
32675 | echo "_ACEOF" | |
32676 | } >conf$$subs.sh || | |
22e05272 JM |
32677 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
32678 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
32679 | ac_delim='%!_!# ' |
32680 | for ac_last_try in false false false false false :; do | |
32681 | . ./conf$$subs.sh || | |
22e05272 | 32682 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
32683 | |
32684 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
32685 | if test $ac_delim_n = $ac_delim_num; then | |
32686 | break | |
32687 | elif $ac_last_try; then | |
22e05272 | 32688 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
32689 | else |
32690 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
32691 | fi | |
32692 | done | |
32693 | rm -f conf$$subs.sh | |
32694 | ||
32695 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 32696 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5213506e RW |
32697 | _ACEOF |
32698 | sed -n ' | |
32699 | h | |
32700 | s/^/S["/; s/!.*/"]=/ | |
32701 | p | |
32702 | g | |
32703 | s/^[^!]*!// | |
32704 | :repl | |
32705 | t repl | |
32706 | s/'"$ac_delim"'$// | |
32707 | t delim | |
32708 | :nl | |
32709 | h | |
22e05272 | 32710 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
32711 | t more1 |
32712 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
32713 | p | |
32714 | n | |
32715 | b repl | |
32716 | :more1 | |
32717 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
32718 | p | |
32719 | g | |
32720 | s/.\{148\}// | |
32721 | t nl | |
32722 | :delim | |
32723 | h | |
22e05272 | 32724 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
32725 | t more2 |
32726 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
32727 | p | |
32728 | b | |
32729 | :more2 | |
32730 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
32731 | p | |
32732 | g | |
32733 | s/.\{148\}// | |
32734 | t delim | |
32735 | ' <conf$$subs.awk | sed ' | |
32736 | /^[^""]/{ | |
32737 | N | |
32738 | s/\n// | |
32739 | } | |
32740 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
32741 | rm -f conf$$subs.awk | |
32742 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32743 | _ACAWK | |
22e05272 | 32744 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
32745 | for (key in S) S_is_set[key] = 1 |
32746 | FS = "\a" | |
32747 | ||
32748 | } | |
32749 | { | |
32750 | line = $ 0 | |
32751 | nfields = split(line, field, "@") | |
32752 | substed = 0 | |
32753 | len = length(field[1]) | |
32754 | for (i = 2; i < nfields; i++) { | |
32755 | key = field[i] | |
32756 | keylen = length(key) | |
32757 | if (S_is_set[key]) { | |
32758 | value = S[key] | |
32759 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
32760 | len += length(value) + length(field[++i]) | |
32761 | substed = 1 | |
32762 | } else | |
32763 | len += 1 + keylen | |
32764 | } | |
32765 | ||
32766 | print line | |
6de9cd9a DN |
32767 | } |
32768 | ||
5213506e RW |
32769 | _ACAWK |
32770 | _ACEOF | |
32771 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
32772 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
32773 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
32774 | else | |
32775 | cat | |
22e05272 JM |
32776 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
32777 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
38d24731 RW |
32778 | _ACEOF |
32779 | ||
22e05272 JM |
32780 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
32781 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
32782 | # trailing colons and then remove the whole line if VPATH becomes empty |
32783 | # (actually we leave an empty line to preserve line numbers). | |
32784 | if test "x$srcdir" = x.; then | |
22e05272 JM |
32785 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
32786 | h | |
32787 | s/// | |
32788 | s/^/:/ | |
32789 | s/[ ]*$/:/ | |
32790 | s/:\$(srcdir):/:/g | |
32791 | s/:\${srcdir}:/:/g | |
32792 | s/:@srcdir@:/:/g | |
32793 | s/^:*// | |
5213506e | 32794 | s/:*$// |
22e05272 JM |
32795 | x |
32796 | s/\(=[ ]*\).*/\1/ | |
32797 | G | |
32798 | s/\n// | |
5213506e RW |
32799 | s/^[^=]*=[ ]*$// |
32800 | }' | |
32801 | fi | |
38d24731 | 32802 | |
5213506e RW |
32803 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
32804 | fi # test -n "$CONFIG_FILES" | |
6de9cd9a | 32805 | |
5213506e RW |
32806 | # Set up the scripts for CONFIG_HEADERS section. |
32807 | # No need to generate them if there are no CONFIG_HEADERS. | |
32808 | # This happens for instance with `./config.status Makefile'. | |
32809 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 32810 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
5213506e RW |
32811 | BEGIN { |
32812 | _ACEOF | |
32813 | ||
32814 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
32815 | # here-document in config.status, that substitutes the proper values into | |
32816 | # config.h.in to produce config.h. | |
32817 | ||
32818 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
32819 | # handling of long lines. | |
32820 | ac_delim='%!_!# ' | |
32821 | for ac_last_try in false false :; do | |
22e05272 JM |
32822 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
32823 | if test -z "$ac_tt"; then | |
5213506e RW |
32824 | break |
32825 | elif $ac_last_try; then | |
22e05272 | 32826 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
5213506e RW |
32827 | else |
32828 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
f489fba1 | 32829 | fi |
5213506e | 32830 | done |
c0e7e2bf | 32831 | |
5213506e RW |
32832 | # For the awk script, D is an array of macro values keyed by name, |
32833 | # likewise P contains macro parameters if any. Preserve backslash | |
32834 | # newline sequences. | |
32835 | ||
32836 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
32837 | sed -n ' | |
32838 | s/.\{148\}/&'"$ac_delim"'/g | |
32839 | t rset | |
32840 | :rset | |
32841 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
32842 | t def | |
32843 | d | |
32844 | :def | |
32845 | s/\\$// | |
32846 | t bsnl | |
32847 | s/["\\]/\\&/g | |
32848 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
32849 | D["\1"]=" \3"/p | |
32850 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
32851 | d | |
32852 | :bsnl | |
32853 | s/["\\]/\\&/g | |
32854 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
32855 | D["\1"]=" \3\\\\\\n"\\/p | |
32856 | t cont | |
32857 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
32858 | t cont | |
32859 | d | |
32860 | :cont | |
32861 | n | |
32862 | s/.\{148\}/&'"$ac_delim"'/g | |
32863 | t clear | |
32864 | :clear | |
32865 | s/\\$// | |
32866 | t bsnlc | |
32867 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
32868 | d | |
32869 | :bsnlc | |
32870 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
32871 | b cont | |
32872 | ' <confdefs.h | sed ' | |
32873 | s/'"$ac_delim"'/"\\\ | |
32874 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
32875 | ||
32876 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32877 | for (key in D) D_is_set[key] = 1 | |
32878 | FS = "\a" | |
32879 | } | |
32880 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
32881 | line = \$ 0 | |
32882 | split(line, arg, " ") | |
32883 | if (arg[1] == "#") { | |
32884 | defundef = arg[2] | |
32885 | mac1 = arg[3] | |
32886 | } else { | |
32887 | defundef = substr(arg[1], 2) | |
32888 | mac1 = arg[2] | |
32889 | } | |
32890 | split(mac1, mac2, "(") #) | |
32891 | macro = mac2[1] | |
32892 | prefix = substr(line, 1, index(line, defundef) - 1) | |
32893 | if (D_is_set[macro]) { | |
32894 | # Preserve the white space surrounding the "#". | |
32895 | print prefix "define", macro P[macro] D[macro] | |
32896 | next | |
32897 | } else { | |
32898 | # Replace #undef with comments. This is necessary, for example, | |
32899 | # in the case of _POSIX_SOURCE, which is predefined and required | |
32900 | # on some systems where configure will not decide to define it. | |
32901 | if (defundef == "undef") { | |
32902 | print "/*", prefix defundef, macro, "*/" | |
32903 | next | |
32904 | } | |
32905 | } | |
32906 | } | |
32907 | { print } | |
32908 | _ACAWK | |
6de9cd9a | 32909 | _ACEOF |
5213506e | 32910 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22e05272 | 32911 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
5213506e RW |
32912 | fi # test -n "$CONFIG_HEADERS" |
32913 | ||
32914 | ||
32915 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
32916 | shift | |
32917 | for ac_tag | |
32918 | do | |
32919 | case $ac_tag in | |
32920 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
32921 | esac | |
32922 | case $ac_mode$ac_tag in | |
32923 | :[FHL]*:*);; | |
22e05272 | 32924 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
32925 | :[FH]-) ac_tag=-:-;; |
32926 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
32927 | esac | |
32928 | ac_save_IFS=$IFS | |
32929 | IFS=: | |
32930 | set x $ac_tag | |
32931 | IFS=$ac_save_IFS | |
32932 | shift | |
32933 | ac_file=$1 | |
32934 | shift | |
32935 | ||
32936 | case $ac_mode in | |
32937 | :L) ac_source=$1;; | |
32938 | :[FH]) | |
32939 | ac_file_inputs= | |
32940 | for ac_f | |
32941 | do | |
32942 | case $ac_f in | |
22e05272 | 32943 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
32944 | *) # Look for the file first in the build tree, then in the source tree |
32945 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
32946 | # because $ac_f cannot contain `:'. | |
32947 | test -f "$ac_f" || | |
32948 | case $ac_f in | |
32949 | [\\/$]*) false;; | |
32950 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
32951 | esac || | |
22e05272 | 32952 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
32953 | esac |
32954 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
32955 | as_fn_append ac_file_inputs " '$ac_f'" | |
32956 | done | |
32957 | ||
32958 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
32959 | # use $as_me), people would be surprised to read: | |
32960 | # /* config.h. Generated by config.status. */ | |
32961 | configure_input='Generated from '` | |
32962 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
32963 | `' by configure.' | |
32964 | if test x"$ac_file" != x-; then | |
32965 | configure_input="$ac_file. $configure_input" | |
32966 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
32967 | $as_echo "$as_me: creating $ac_file" >&6;} | |
32968 | fi | |
32969 | # Neutralize special characters interpreted by sed in replacement strings. | |
32970 | case $configure_input in #( | |
32971 | *\&* | *\|* | *\\* ) | |
32972 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
32973 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
32974 | *) ac_sed_conf_input=$configure_input;; | |
32975 | esac | |
32976 | ||
32977 | case $ac_tag in | |
22e05272 JM |
32978 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
32979 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
32980 | esac |
32981 | ;; | |
6de9cd9a DN |
32982 | esac |
32983 | ||
5213506e | 32984 | ac_dir=`$as_dirname -- "$ac_file" || |
6de9cd9a DN |
32985 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
32986 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
32987 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
32988 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
32989 | $as_echo X"$ac_file" | | |
32990 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
32991 | s//\1/ | |
32992 | q | |
32993 | } | |
32994 | /^X\(\/\/\)[^/].*/{ | |
32995 | s//\1/ | |
32996 | q | |
32997 | } | |
32998 | /^X\(\/\/\)$/{ | |
32999 | s//\1/ | |
33000 | q | |
33001 | } | |
33002 | /^X\(\/\).*/{ | |
33003 | s//\1/ | |
33004 | q | |
33005 | } | |
33006 | s/.*/./; q'` | |
33007 | as_dir="$ac_dir"; as_fn_mkdir_p | |
6de9cd9a DN |
33008 | ac_builddir=. |
33009 | ||
5213506e RW |
33010 | case "$ac_dir" in |
33011 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
33012 | *) | |
33013 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
33014 | # A ".." for each directory in $ac_dir_suffix. | |
33015 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
33016 | case $ac_top_builddir_sub in | |
33017 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
33018 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
33019 | esac ;; | |
33020 | esac | |
33021 | ac_abs_top_builddir=$ac_pwd | |
33022 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
33023 | # for backward compatibility: | |
33024 | ac_top_builddir=$ac_top_build_prefix | |
6de9cd9a DN |
33025 | |
33026 | case $srcdir in | |
5213506e | 33027 | .) # We are building in place. |
6de9cd9a | 33028 | ac_srcdir=. |
5213506e RW |
33029 | ac_top_srcdir=$ac_top_builddir_sub |
33030 | ac_abs_top_srcdir=$ac_pwd ;; | |
33031 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
6de9cd9a | 33032 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
33033 | ac_top_srcdir=$srcdir |
33034 | ac_abs_top_srcdir=$srcdir ;; | |
33035 | *) # Relative name. | |
33036 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
33037 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
33038 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
6de9cd9a | 33039 | esac |
5213506e | 33040 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
6de9cd9a | 33041 | |
6de9cd9a | 33042 | |
5213506e RW |
33043 | case $ac_mode in |
33044 | :F) | |
33045 | # | |
33046 | # CONFIG_FILE | |
33047 | # | |
6de9cd9a DN |
33048 | |
33049 | case $INSTALL in | |
33050 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e RW |
33051 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
33052 | esac | |
33053 | ac_MKDIR_P=$MKDIR_P | |
33054 | case $MKDIR_P in | |
33055 | [\\/$]* | ?:[\\/]* ) ;; | |
33056 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
6de9cd9a | 33057 | esac |
5213506e | 33058 | _ACEOF |
6de9cd9a | 33059 | |
5213506e RW |
33060 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
33061 | # If the template does not know about datarootdir, expand it. | |
33062 | # FIXME: This hack should be removed a few years after 2.60. | |
33063 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
33064 | ac_sed_dataroot=' | |
33065 | /datarootdir/ { | |
33066 | p | |
33067 | q | |
33068 | } | |
33069 | /@datadir@/p | |
33070 | /@docdir@/p | |
33071 | /@infodir@/p | |
33072 | /@localedir@/p | |
33073 | /@mandir@/p' | |
33074 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
33075 | *datarootdir*) ac_datarootdir_seen=yes;; | |
33076 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
33077 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
33078 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
33079 | _ACEOF | |
33080 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
33081 | ac_datarootdir_hack=' | |
33082 | s&@datadir@&$datadir&g | |
33083 | s&@docdir@&$docdir&g | |
33084 | s&@infodir@&$infodir&g | |
33085 | s&@localedir@&$localedir&g | |
33086 | s&@mandir@&$mandir&g | |
33087 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
33088 | esac | |
78511f8b | 33089 | _ACEOF |
5213506e RW |
33090 | |
33091 | # Neutralize VPATH when `$srcdir' = `.'. | |
33092 | # Shell code in configure.ac might set extrasub. | |
33093 | # FIXME: do we really want to maintain this feature? | |
33094 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
33095 | ac_sed_extra="$ac_vpsub | |
6de9cd9a DN |
33096 | $extrasub |
33097 | _ACEOF | |
5213506e | 33098 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6de9cd9a DN |
33099 | :t |
33100 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
33101 | s|@configure_input@|$ac_sed_conf_input|;t t |
33102 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
33103 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
33104 | s&@srcdir@&$ac_srcdir&;t t | |
33105 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
33106 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
33107 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
33108 | s&@builddir@&$ac_builddir&;t t | |
33109 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
33110 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
33111 | s&@INSTALL@&$ac_INSTALL&;t t | |
33112 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
33113 | $ac_datarootdir_hack | |
33114 | " | |
22e05272 JM |
33115 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
33116 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
33117 | |
33118 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
33119 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
33120 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
33121 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 33122 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 33123 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 33124 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 33125 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 33126 | |
22e05272 | 33127 | rm -f "$ac_tmp/stdin" |
6de9cd9a | 33128 | case $ac_file in |
22e05272 JM |
33129 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
33130 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 33131 | esac \ |
22e05272 | 33132 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e RW |
33133 | ;; |
33134 | :H) | |
33135 | # | |
33136 | # CONFIG_HEADER | |
33137 | # | |
6de9cd9a | 33138 | if test x"$ac_file" != x-; then |
5213506e RW |
33139 | { |
33140 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
33141 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
33142 | } >"$ac_tmp/config.h" \ | |
33143 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
33144 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
5213506e RW |
33145 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
33146 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
6de9cd9a | 33147 | else |
5213506e | 33148 | rm -f "$ac_file" |
22e05272 JM |
33149 | mv "$ac_tmp/config.h" "$ac_file" \ |
33150 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6de9cd9a DN |
33151 | fi |
33152 | else | |
5213506e | 33153 | $as_echo "/* $configure_input */" \ |
22e05272 JM |
33154 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
33155 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
6de9cd9a | 33156 | fi |
5213506e RW |
33157 | # Compute "$ac_file"'s index in $config_headers. |
33158 | _am_arg="$ac_file" | |
6de9cd9a DN |
33159 | _am_stamp_count=1 |
33160 | for _am_header in $config_headers :; do | |
33161 | case $_am_header in | |
5213506e | 33162 | $_am_arg | $_am_arg:* ) |
6de9cd9a DN |
33163 | break ;; |
33164 | * ) | |
33165 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
33166 | esac | |
33167 | done | |
5213506e RW |
33168 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
33169 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
33170 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
33171 | X"$_am_arg" : 'X\(//\)$' \| \ | |
33172 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
33173 | $as_echo X"$_am_arg" | | |
33174 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
33175 | s//\1/ | |
33176 | q | |
33177 | } | |
33178 | /^X\(\/\/\)[^/].*/{ | |
33179 | s//\1/ | |
33180 | q | |
33181 | } | |
33182 | /^X\(\/\/\)$/{ | |
33183 | s//\1/ | |
33184 | q | |
33185 | } | |
33186 | /^X\(\/\).*/{ | |
33187 | s//\1/ | |
33188 | q | |
33189 | } | |
33190 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
33191 | ;; | |
38d24731 | 33192 | |
5213506e RW |
33193 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
33194 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
33195 | ;; | |
33196 | esac | |
6de9cd9a DN |
33197 | |
33198 | ||
5213506e RW |
33199 | case $ac_file$ac_mode in |
33200 | "default-1":C) | |
96b8a615 AJ |
33201 | # Only add multilib support code if we just rebuilt the top-level |
33202 | # Makefile. | |
33203 | case " $CONFIG_FILES " in | |
33204 | *" Makefile "*) | |
33205 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
33206 | ;; | |
33207 | esac ;; | |
5213506e | 33208 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
22e05272 | 33209 | # Older Autoconf quotes --file arguments for eval, but not when files |
5213506e RW |
33210 | # are listed without --file. Let's play safe and only enable the eval |
33211 | # if we detect the quoting. | |
33212 | case $CONFIG_FILES in | |
33213 | *\'*) eval set x "$CONFIG_FILES" ;; | |
33214 | *) set x $CONFIG_FILES ;; | |
33215 | esac | |
33216 | shift | |
33217 | for mf | |
33218 | do | |
33219 | # Strip MF so we end up with the name of the file. | |
33220 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
33221 | # Check whether this is an Automake generated Makefile or not. | |
22e05272 | 33222 | # We used to match only the files named 'Makefile.in', but |
5213506e RW |
33223 | # some people rename them; so instead we look at the file content. |
33224 | # Grep'ing the first line is not enough: some people post-process | |
33225 | # each Makefile.in and add a new line on top of each file to say so. | |
33226 | # Grep'ing the whole file is not good either: AIX grep has a line | |
33227 | # limit of 2048, but all sed's we know have understand at least 4000. | |
33228 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
33229 | dirpart=`$as_dirname -- "$mf" || | |
679c0f9a TT |
33230 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
33231 | X"$mf" : 'X\(//\)[^/]' \| \ | |
33232 | X"$mf" : 'X\(//\)$' \| \ | |
5213506e RW |
33233 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
33234 | $as_echo X"$mf" | | |
33235 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
33236 | s//\1/ | |
33237 | q | |
33238 | } | |
33239 | /^X\(\/\/\)[^/].*/{ | |
33240 | s//\1/ | |
33241 | q | |
33242 | } | |
33243 | /^X\(\/\/\)$/{ | |
33244 | s//\1/ | |
33245 | q | |
33246 | } | |
33247 | /^X\(\/\).*/{ | |
33248 | s//\1/ | |
33249 | q | |
33250 | } | |
33251 | s/.*/./; q'` | |
33252 | else | |
33253 | continue | |
33254 | fi | |
33255 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22e05272 | 33256 | # from the Makefile without running 'make'. |
5213506e RW |
33257 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
33258 | test -z "$DEPDIR" && continue | |
33259 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22e05272 | 33260 | test -z "$am__include" && continue |
5213506e | 33261 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
5213506e RW |
33262 | # Find all dependency output files, they are included files with |
33263 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
33264 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
33265 | # expansion. | |
33266 | for file in `sed -n " | |
33267 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22e05272 | 33268 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
5213506e RW |
33269 | # Make sure the directory exists. |
33270 | test -f "$dirpart/$file" && continue | |
33271 | fdir=`$as_dirname -- "$file" || | |
679c0f9a TT |
33272 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
33273 | X"$file" : 'X\(//\)[^/]' \| \ | |
33274 | X"$file" : 'X\(//\)$' \| \ | |
5213506e RW |
33275 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
33276 | $as_echo X"$file" | | |
33277 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
33278 | s//\1/ | |
33279 | q | |
33280 | } | |
33281 | /^X\(\/\/\)[^/].*/{ | |
33282 | s//\1/ | |
33283 | q | |
33284 | } | |
33285 | /^X\(\/\/\)$/{ | |
33286 | s//\1/ | |
33287 | q | |
33288 | } | |
33289 | /^X\(\/\).*/{ | |
33290 | s//\1/ | |
33291 | q | |
33292 | } | |
33293 | s/.*/./; q'` | |
33294 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
33295 | # echo "creating $dirpart/$file" | |
33296 | echo '# dummy' > "$dirpart/$file" | |
679c0f9a | 33297 | done |
679c0f9a | 33298 | done |
5213506e | 33299 | } |
1cf3d07d | 33300 | ;; |
5213506e | 33301 | "libtool":C) |
1cf3d07d SE |
33302 | |
33303 | # See if we are running on zsh, and set the options which allow our | |
33304 | # commands through without removal of \ escapes. | |
33305 | if test -n "${ZSH_VERSION+set}" ; then | |
33306 | setopt NO_GLOB_SUBST | |
33307 | fi | |
33308 | ||
33309 | cfgfile="${ofile}T" | |
33310 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
33311 | $RM "$cfgfile" | |
33312 | ||
33313 | cat <<_LT_EOF >> "$cfgfile" | |
33314 | #! $SHELL | |
33315 | ||
33316 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
d58dead8 | 33317 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
1cf3d07d SE |
33318 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
33319 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
33320 | # | |
d58dead8 | 33321 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
43e02a8a | 33322 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
d58dead8 | 33323 | # Written by Gordon Matzigkeit, 1996 |
1cf3d07d | 33324 | # |
d58dead8 | 33325 | # This file is part of GNU Libtool. |
1cf3d07d | 33326 | # |
d58dead8 PG |
33327 | # GNU Libtool is free software; you can redistribute it and/or |
33328 | # modify it under the terms of the GNU General Public License as | |
33329 | # published by the Free Software Foundation; either version 2 of | |
33330 | # the License, or (at your option) any later version. | |
1cf3d07d | 33331 | # |
d58dead8 PG |
33332 | # As a special exception to the GNU General Public License, |
33333 | # if you distribute this file as part of a program or library that | |
33334 | # is built using GNU Libtool, you may include this file under the | |
33335 | # same distribution terms that you use for the rest of that program. | |
1cf3d07d | 33336 | # |
d58dead8 PG |
33337 | # GNU Libtool is distributed in the hope that it will be useful, |
33338 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
33339 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
33340 | # GNU General Public License for more details. | |
1cf3d07d | 33341 | # |
d58dead8 PG |
33342 | # You should have received a copy of the GNU General Public License |
33343 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
33344 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
33345 | # obtained by writing to the Free Software Foundation, Inc., | |
33346 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
1cf3d07d SE |
33347 | |
33348 | ||
33349 | # The names of the tagged configurations supported by this script. | |
33350 | available_tags="FC " | |
33351 | ||
33352 | # ### BEGIN LIBTOOL CONFIG | |
33353 | ||
66dbcf2d RO |
33354 | # A sed program that does not truncate output. |
33355 | SED=$lt_SED | |
33356 | ||
33357 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
33358 | Xsed="\$SED -e 1s/^X//" | |
33359 | ||
33360 | # A grep program that handles long lines. | |
33361 | GREP=$lt_GREP | |
33362 | ||
33363 | # An ERE matcher. | |
33364 | EGREP=$lt_EGREP | |
33365 | ||
33366 | # A literal string matcher. | |
33367 | FGREP=$lt_FGREP | |
33368 | ||
33369 | # Shell to use when invoking shell scripts. | |
33370 | SHELL=$lt_SHELL | |
33371 | ||
33372 | # An echo program that protects backslashes. | |
33373 | ECHO=$lt_ECHO | |
33374 | ||
1cf3d07d SE |
33375 | # Which release of libtool.m4 was used? |
33376 | macro_version=$macro_version | |
33377 | macro_revision=$macro_revision | |
33378 | ||
33379 | # Whether or not to build shared libraries. | |
33380 | build_libtool_libs=$enable_shared | |
33381 | ||
33382 | # Whether or not to build static libraries. | |
33383 | build_old_libs=$enable_static | |
33384 | ||
33385 | # What type of objects to build. | |
33386 | pic_mode=$pic_mode | |
33387 | ||
33388 | # Whether or not to optimize for fast installation. | |
33389 | fast_install=$enable_fast_install | |
33390 | ||
33391 | # The host system. | |
33392 | host_alias=$host_alias | |
33393 | host=$host | |
33394 | host_os=$host_os | |
33395 | ||
33396 | # The build system. | |
33397 | build_alias=$build_alias | |
33398 | build=$build | |
33399 | build_os=$build_os | |
33400 | ||
1cf3d07d SE |
33401 | # A BSD- or MS-compatible name lister. |
33402 | NM=$lt_NM | |
33403 | ||
33404 | # Whether we need soft or hard links. | |
33405 | LN_S=$lt_LN_S | |
33406 | ||
33407 | # What is the maximum length of a command? | |
33408 | max_cmd_len=$max_cmd_len | |
33409 | ||
33410 | # Object file suffix (normally "o"). | |
33411 | objext=$ac_objext | |
33412 | ||
33413 | # Executable file suffix (normally ""). | |
33414 | exeext=$exeext | |
33415 | ||
33416 | # whether the shell understands "unset". | |
33417 | lt_unset=$lt_unset | |
33418 | ||
33419 | # turn spaces into newlines. | |
33420 | SP2NL=$lt_lt_SP2NL | |
33421 | ||
33422 | # turn newlines into spaces. | |
33423 | NL2SP=$lt_lt_NL2SP | |
33424 | ||
d58dead8 PG |
33425 | # An object symbol dumper. |
33426 | OBJDUMP=$lt_OBJDUMP | |
33427 | ||
1cf3d07d SE |
33428 | # Method to check whether dependent libraries are shared objects. |
33429 | deplibs_check_method=$lt_deplibs_check_method | |
33430 | ||
33431 | # Command to use when deplibs_check_method == "file_magic". | |
33432 | file_magic_cmd=$lt_file_magic_cmd | |
33433 | ||
33434 | # The archiver. | |
33435 | AR=$lt_AR | |
33436 | AR_FLAGS=$lt_AR_FLAGS | |
33437 | ||
33438 | # A symbol stripping program. | |
33439 | STRIP=$lt_STRIP | |
33440 | ||
33441 | # Commands used to install an old-style archive. | |
33442 | RANLIB=$lt_RANLIB | |
33443 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
33444 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
33445 | ||
43e02a8a RW |
33446 | # Whether to use a lock for old archive extraction. |
33447 | lock_old_archive_extraction=$lock_old_archive_extraction | |
33448 | ||
1cf3d07d SE |
33449 | # A C compiler. |
33450 | LTCC=$lt_CC | |
33451 | ||
33452 | # LTCC compiler flags. | |
33453 | LTCFLAGS=$lt_CFLAGS | |
33454 | ||
33455 | # Take the output of nm and produce a listing of raw symbols and C names. | |
33456 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
33457 | ||
33458 | # Transform the output of nm in a proper C declaration. | |
33459 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
33460 | ||
33461 | # Transform the output of nm in a C name address pair. | |
33462 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
33463 | ||
d58dead8 PG |
33464 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
33465 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
33466 | ||
1cf3d07d SE |
33467 | # The name of the directory that contains temporary libtool files. |
33468 | objdir=$objdir | |
33469 | ||
1cf3d07d SE |
33470 | # Used to examine libraries when file_magic_cmd begins with "file". |
33471 | MAGIC_CMD=$MAGIC_CMD | |
33472 | ||
33473 | # Must we lock files when doing compilation? | |
33474 | need_locks=$lt_need_locks | |
33475 | ||
d58dead8 PG |
33476 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
33477 | DSYMUTIL=$lt_DSYMUTIL | |
33478 | ||
33479 | # Tool to change global to local symbols on Mac OS X. | |
33480 | NMEDIT=$lt_NMEDIT | |
33481 | ||
33482 | # Tool to manipulate fat objects and archives on Mac OS X. | |
33483 | LIPO=$lt_LIPO | |
33484 | ||
33485 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
33486 | OTOOL=$lt_OTOOL | |
33487 | ||
33488 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
33489 | OTOOL64=$lt_OTOOL64 | |
33490 | ||
1cf3d07d SE |
33491 | # Old archive suffix (normally "a"). |
33492 | libext=$libext | |
33493 | ||
33494 | # Shared library suffix (normally ".so"). | |
33495 | shrext_cmds=$lt_shrext_cmds | |
33496 | ||
33497 | # The commands to extract the exported symbol list from a shared archive. | |
33498 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
33499 | ||
33500 | # Variables whose values should be saved in libtool wrapper scripts and | |
33501 | # restored at link time. | |
33502 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
33503 | ||
33504 | # Do we need the "lib" prefix for modules? | |
33505 | need_lib_prefix=$need_lib_prefix | |
33506 | ||
33507 | # Do we need a version for libraries? | |
33508 | need_version=$need_version | |
33509 | ||
33510 | # Library versioning type. | |
33511 | version_type=$version_type | |
33512 | ||
33513 | # Shared library runtime path variable. | |
33514 | runpath_var=$runpath_var | |
33515 | ||
33516 | # Shared library path variable. | |
33517 | shlibpath_var=$shlibpath_var | |
33518 | ||
33519 | # Is shlibpath searched before the hard-coded library search path? | |
33520 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
33521 | ||
33522 | # Format of library name prefix. | |
33523 | libname_spec=$lt_libname_spec | |
33524 | ||
33525 | # List of archive names. First name is the real one, the rest are links. | |
33526 | # The last name is the one that the linker finds with -lNAME | |
33527 | library_names_spec=$lt_library_names_spec | |
33528 | ||
33529 | # The coded name of the library, if different from the real name. | |
33530 | soname_spec=$lt_soname_spec | |
33531 | ||
43e02a8a RW |
33532 | # Permission mode override for installation of shared libraries. |
33533 | install_override_mode=$lt_install_override_mode | |
33534 | ||
1cf3d07d SE |
33535 | # Command to use after installation of a shared archive. |
33536 | postinstall_cmds=$lt_postinstall_cmds | |
33537 | ||
33538 | # Command to use after uninstallation of a shared archive. | |
33539 | postuninstall_cmds=$lt_postuninstall_cmds | |
33540 | ||
33541 | # Commands used to finish a libtool library installation in a directory. | |
33542 | finish_cmds=$lt_finish_cmds | |
33543 | ||
33544 | # As "finish_cmds", except a single script fragment to be evaled but | |
33545 | # not shown. | |
33546 | finish_eval=$lt_finish_eval | |
33547 | ||
33548 | # Whether we should hardcode library paths into libraries. | |
33549 | hardcode_into_libs=$hardcode_into_libs | |
33550 | ||
33551 | # Compile-time system search path for libraries. | |
33552 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
33553 | ||
33554 | # Run-time system search path for libraries. | |
33555 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
33556 | ||
33557 | # Whether dlopen is supported. | |
33558 | dlopen_support=$enable_dlopen | |
33559 | ||
33560 | # Whether dlopen of programs is supported. | |
33561 | dlopen_self=$enable_dlopen_self | |
33562 | ||
33563 | # Whether dlopen of statically linked programs is supported. | |
33564 | dlopen_self_static=$enable_dlopen_self_static | |
33565 | ||
33566 | # Commands to strip libraries. | |
33567 | old_striplib=$lt_old_striplib | |
33568 | striplib=$lt_striplib | |
33569 | ||
33570 | ||
33571 | # The linker used to build libraries. | |
33572 | LD=$lt_LD | |
33573 | ||
43e02a8a RW |
33574 | # How to create reloadable object files. |
33575 | reload_flag=$lt_reload_flag | |
33576 | reload_cmds=$lt_reload_cmds | |
33577 | ||
1cf3d07d SE |
33578 | # Commands used to build an old-style archive. |
33579 | old_archive_cmds=$lt_old_archive_cmds | |
33580 | ||
33581 | # A language specific compiler. | |
33582 | CC=$lt_compiler | |
33583 | ||
33584 | # Is the compiler the GNU compiler? | |
33585 | with_gcc=$GCC | |
33586 | ||
33587 | # Compiler flag to turn off builtin functions. | |
33588 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
33589 | ||
33590 | # How to pass a linker flag through the compiler. | |
33591 | wl=$lt_lt_prog_compiler_wl | |
33592 | ||
33593 | # Additional compiler flags for building library objects. | |
33594 | pic_flag=$lt_lt_prog_compiler_pic | |
33595 | ||
33596 | # Compiler flag to prevent dynamic linking. | |
33597 | link_static_flag=$lt_lt_prog_compiler_static | |
33598 | ||
33599 | # Does compiler simultaneously support -c and -o options? | |
33600 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
33601 | ||
33602 | # Whether or not to add -lc for building shared libraries. | |
33603 | build_libtool_need_lc=$archive_cmds_need_lc | |
33604 | ||
33605 | # Whether or not to disallow shared libs when runtime libs are static. | |
33606 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
33607 | ||
33608 | # Compiler flag to allow reflexive dlopens. | |
33609 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
33610 | ||
33611 | # Compiler flag to generate shared objects directly from archives. | |
33612 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
33613 | ||
33614 | # Whether the compiler copes with passing no objects directly. | |
33615 | compiler_needs_object=$lt_compiler_needs_object | |
33616 | ||
33617 | # Create an old-style archive from a shared archive. | |
33618 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
33619 | ||
33620 | # Create a temporary old-style archive to link instead of a shared archive. | |
33621 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
33622 | ||
33623 | # Commands used to build a shared archive. | |
33624 | archive_cmds=$lt_archive_cmds | |
33625 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
33626 | ||
33627 | # Commands used to build a loadable module if different from building | |
33628 | # a shared archive. | |
33629 | module_cmds=$lt_module_cmds | |
33630 | module_expsym_cmds=$lt_module_expsym_cmds | |
33631 | ||
33632 | # Whether we are building with GNU ld or not. | |
33633 | with_gnu_ld=$lt_with_gnu_ld | |
33634 | ||
33635 | # Flag that allows shared libraries with undefined symbols to be built. | |
33636 | allow_undefined_flag=$lt_allow_undefined_flag | |
33637 | ||
33638 | # Flag that enforces no undefined symbols. | |
33639 | no_undefined_flag=$lt_no_undefined_flag | |
33640 | ||
33641 | # Flag to hardcode \$libdir into a binary during linking. | |
33642 | # This must work even if \$libdir does not exist | |
33643 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
33644 | ||
33645 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
33646 | # during linking. This must work even if \$libdir does not exist. | |
33647 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
33648 | ||
33649 | # Whether we need a single "-rpath" flag with a separated argument. | |
33650 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
33651 | ||
33652 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
33653 | # DIR into the resulting binary. | |
33654 | hardcode_direct=$hardcode_direct | |
33655 | ||
33656 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
33657 | # DIR into the resulting binary and the resulting library dependency is | |
33658 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
33659 | # library is relocated. | |
33660 | hardcode_direct_absolute=$hardcode_direct_absolute | |
33661 | ||
33662 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
33663 | # into the resulting binary. | |
33664 | hardcode_minus_L=$hardcode_minus_L | |
33665 | ||
33666 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
33667 | # into the resulting binary. | |
33668 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
33669 | ||
33670 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
33671 | # into the library and all subsequent libraries and executables linked | |
33672 | # against it. | |
33673 | hardcode_automatic=$hardcode_automatic | |
33674 | ||
33675 | # Set to yes if linker adds runtime paths of dependent libraries | |
33676 | # to runtime path list. | |
33677 | inherit_rpath=$inherit_rpath | |
33678 | ||
33679 | # Whether libtool must link a program against all its dependency libraries. | |
33680 | link_all_deplibs=$link_all_deplibs | |
33681 | ||
33682 | # Fix the shell variable \$srcfile for the compiler. | |
33683 | fix_srcfile_path=$lt_fix_srcfile_path | |
33684 | ||
33685 | # Set to "yes" if exported symbols are required. | |
33686 | always_export_symbols=$always_export_symbols | |
33687 | ||
33688 | # The commands to list exported symbols. | |
33689 | export_symbols_cmds=$lt_export_symbols_cmds | |
33690 | ||
33691 | # Symbols that should not be listed in the preloaded symbols. | |
33692 | exclude_expsyms=$lt_exclude_expsyms | |
33693 | ||
33694 | # Symbols that must always be exported. | |
33695 | include_expsyms=$lt_include_expsyms | |
33696 | ||
33697 | # Commands necessary for linking programs (against libraries) with templates. | |
33698 | prelink_cmds=$lt_prelink_cmds | |
33699 | ||
33700 | # Specify filename containing input files. | |
33701 | file_list_spec=$lt_file_list_spec | |
33702 | ||
33703 | # How to hardcode a shared library path into an executable. | |
33704 | hardcode_action=$hardcode_action | |
33705 | ||
d58dead8 PG |
33706 | # The directories searched by this compiler when creating a shared library. |
33707 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
33708 | ||
1cf3d07d SE |
33709 | # Dependencies to place before and after the objects being linked to |
33710 | # create a shared library. | |
33711 | predep_objects=$lt_predep_objects | |
33712 | postdep_objects=$lt_postdep_objects | |
33713 | predeps=$lt_predeps | |
33714 | postdeps=$lt_postdeps | |
33715 | ||
33716 | # The library search path used internally by the compiler when linking | |
33717 | # a shared library. | |
33718 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
33719 | ||
33720 | # ### END LIBTOOL CONFIG | |
33721 | ||
33722 | _LT_EOF | |
33723 | ||
33724 | case $host_os in | |
33725 | aix3*) | |
33726 | cat <<\_LT_EOF >> "$cfgfile" | |
33727 | # AIX sometimes has problems with the GCC collect2 program. For some | |
33728 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
33729 | # vanish in a puff of smoke. | |
33730 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
33731 | COLLECT_NAMES= | |
33732 | export COLLECT_NAMES | |
33733 | fi | |
33734 | _LT_EOF | |
33735 | ;; | |
33736 | esac | |
33737 | ||
33738 | ||
33739 | ltmain="$ac_aux_dir/ltmain.sh" | |
33740 | ||
33741 | ||
33742 | # We use sed instead of cat because bash on DJGPP gets confused if | |
33743 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
33744 | # text mode, it properly converts lines to CR/LF. This bash problem | |
33745 | # is reportedly fixed, but why not run on old versions too? | |
33746 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
33747 | || (rm -f "$cfgfile"; exit 1) | |
33748 | ||
33749 | case $xsi_shell in | |
33750 | yes) | |
33751 | cat << \_LT_EOF >> "$cfgfile" | |
d58dead8 | 33752 | |
1cf3d07d SE |
33753 | # func_dirname file append nondir_replacement |
33754 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
33755 | # otherwise set result to NONDIR_REPLACEMENT. | |
33756 | func_dirname () | |
33757 | { | |
33758 | case ${1} in | |
33759 | */*) func_dirname_result="${1%/*}${2}" ;; | |
33760 | * ) func_dirname_result="${3}" ;; | |
33761 | esac | |
33762 | } | |
33763 | ||
33764 | # func_basename file | |
33765 | func_basename () | |
33766 | { | |
33767 | func_basename_result="${1##*/}" | |
33768 | } | |
33769 | ||
d58dead8 PG |
33770 | # func_dirname_and_basename file append nondir_replacement |
33771 | # perform func_basename and func_dirname in a single function | |
33772 | # call: | |
33773 | # dirname: Compute the dirname of FILE. If nonempty, | |
33774 | # add APPEND to the result, otherwise set result | |
33775 | # to NONDIR_REPLACEMENT. | |
33776 | # value returned in "$func_dirname_result" | |
33777 | # basename: Compute filename of FILE. | |
33778 | # value retuned in "$func_basename_result" | |
33779 | # Implementation must be kept synchronized with func_dirname | |
33780 | # and func_basename. For efficiency, we do not delegate to | |
33781 | # those functions but instead duplicate the functionality here. | |
33782 | func_dirname_and_basename () | |
33783 | { | |
33784 | case ${1} in | |
33785 | */*) func_dirname_result="${1%/*}${2}" ;; | |
33786 | * ) func_dirname_result="${3}" ;; | |
33787 | esac | |
33788 | func_basename_result="${1##*/}" | |
33789 | } | |
33790 | ||
1cf3d07d SE |
33791 | # func_stripname prefix suffix name |
33792 | # strip PREFIX and SUFFIX off of NAME. | |
33793 | # PREFIX and SUFFIX must not contain globbing or regex special | |
33794 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
33795 | # dot (in which case that matches only a dot). | |
33796 | func_stripname () | |
33797 | { | |
33798 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
33799 | # positional parameters, so assign one to ordinary parameter first. | |
33800 | func_stripname_result=${3} | |
33801 | func_stripname_result=${func_stripname_result#"${1}"} | |
33802 | func_stripname_result=${func_stripname_result%"${2}"} | |
33803 | } | |
33804 | ||
33805 | # func_opt_split | |
33806 | func_opt_split () | |
33807 | { | |
33808 | func_opt_split_opt=${1%%=*} | |
33809 | func_opt_split_arg=${1#*=} | |
33810 | } | |
33811 | ||
33812 | # func_lo2o object | |
33813 | func_lo2o () | |
33814 | { | |
33815 | case ${1} in | |
33816 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
33817 | *) func_lo2o_result=${1} ;; | |
33818 | esac | |
33819 | } | |
d58dead8 PG |
33820 | |
33821 | # func_xform libobj-or-source | |
33822 | func_xform () | |
33823 | { | |
33824 | func_xform_result=${1%.*}.lo | |
33825 | } | |
33826 | ||
33827 | # func_arith arithmetic-term... | |
33828 | func_arith () | |
33829 | { | |
33830 | func_arith_result=$(( $* )) | |
33831 | } | |
33832 | ||
33833 | # func_len string | |
33834 | # STRING may not start with a hyphen. | |
33835 | func_len () | |
33836 | { | |
33837 | func_len_result=${#1} | |
33838 | } | |
33839 | ||
1cf3d07d SE |
33840 | _LT_EOF |
33841 | ;; | |
33842 | *) # Bourne compatible functions. | |
33843 | cat << \_LT_EOF >> "$cfgfile" | |
d58dead8 | 33844 | |
1cf3d07d SE |
33845 | # func_dirname file append nondir_replacement |
33846 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
33847 | # otherwise set result to NONDIR_REPLACEMENT. | |
33848 | func_dirname () | |
33849 | { | |
33850 | # Extract subdirectory from the argument. | |
43e02a8a | 33851 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
1cf3d07d SE |
33852 | if test "X$func_dirname_result" = "X${1}"; then |
33853 | func_dirname_result="${3}" | |
33854 | else | |
33855 | func_dirname_result="$func_dirname_result${2}" | |
33856 | fi | |
33857 | } | |
33858 | ||
33859 | # func_basename file | |
33860 | func_basename () | |
33861 | { | |
43e02a8a | 33862 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
1cf3d07d SE |
33863 | } |
33864 | ||
d58dead8 | 33865 | |
1cf3d07d SE |
33866 | # func_stripname prefix suffix name |
33867 | # strip PREFIX and SUFFIX off of NAME. | |
33868 | # PREFIX and SUFFIX must not contain globbing or regex special | |
33869 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
33870 | # dot (in which case that matches only a dot). | |
33871 | # func_strip_suffix prefix name | |
33872 | func_stripname () | |
33873 | { | |
33874 | case ${2} in | |
43e02a8a RW |
33875 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
33876 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
1cf3d07d SE |
33877 | esac |
33878 | } | |
33879 | ||
33880 | # sed scripts: | |
33881 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
33882 | my_sed_long_arg='1s/^-[^=]*=//' | |
33883 | ||
33884 | # func_opt_split | |
33885 | func_opt_split () | |
33886 | { | |
43e02a8a RW |
33887 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
33888 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
1cf3d07d SE |
33889 | } |
33890 | ||
33891 | # func_lo2o object | |
33892 | func_lo2o () | |
33893 | { | |
43e02a8a | 33894 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
1cf3d07d | 33895 | } |
d58dead8 PG |
33896 | |
33897 | # func_xform libobj-or-source | |
33898 | func_xform () | |
33899 | { | |
43e02a8a | 33900 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
d58dead8 PG |
33901 | } |
33902 | ||
33903 | # func_arith arithmetic-term... | |
33904 | func_arith () | |
33905 | { | |
33906 | func_arith_result=`expr "$@"` | |
33907 | } | |
33908 | ||
33909 | # func_len string | |
33910 | # STRING may not start with a hyphen. | |
33911 | func_len () | |
33912 | { | |
33913 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
33914 | } | |
33915 | ||
1cf3d07d SE |
33916 | _LT_EOF |
33917 | esac | |
33918 | ||
33919 | case $lt_shell_append in | |
33920 | yes) | |
33921 | cat << \_LT_EOF >> "$cfgfile" | |
33922 | ||
33923 | # func_append var value | |
33924 | # Append VALUE to the end of shell variable VAR. | |
33925 | func_append () | |
33926 | { | |
33927 | eval "$1+=\$2" | |
33928 | } | |
33929 | _LT_EOF | |
33930 | ;; | |
33931 | *) | |
33932 | cat << \_LT_EOF >> "$cfgfile" | |
33933 | ||
33934 | # func_append var value | |
33935 | # Append VALUE to the end of shell variable VAR. | |
33936 | func_append () | |
33937 | { | |
33938 | eval "$1=\$$1\$2" | |
33939 | } | |
d58dead8 | 33940 | |
1cf3d07d SE |
33941 | _LT_EOF |
33942 | ;; | |
33943 | esac | |
33944 | ||
33945 | ||
33946 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
33947 | || (rm -f "$cfgfile"; exit 1) | |
33948 | ||
33949 | mv -f "$cfgfile" "$ofile" || | |
33950 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
33951 | chmod +x "$ofile" | |
33952 | ||
33953 | ||
33954 | cat <<_LT_EOF >> "$ofile" | |
33955 | ||
33956 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
33957 | ||
33958 | # The linker used to build libraries. | |
33959 | LD=$lt_LD_FC | |
33960 | ||
43e02a8a RW |
33961 | # How to create reloadable object files. |
33962 | reload_flag=$lt_reload_flag_FC | |
33963 | reload_cmds=$lt_reload_cmds_FC | |
33964 | ||
1cf3d07d SE |
33965 | # Commands used to build an old-style archive. |
33966 | old_archive_cmds=$lt_old_archive_cmds_FC | |
33967 | ||
33968 | # A language specific compiler. | |
33969 | CC=$lt_compiler_FC | |
33970 | ||
33971 | # Is the compiler the GNU compiler? | |
33972 | with_gcc=$GCC_FC | |
33973 | ||
33974 | # Compiler flag to turn off builtin functions. | |
33975 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
33976 | ||
33977 | # How to pass a linker flag through the compiler. | |
33978 | wl=$lt_lt_prog_compiler_wl_FC | |
33979 | ||
33980 | # Additional compiler flags for building library objects. | |
33981 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
33982 | ||
33983 | # Compiler flag to prevent dynamic linking. | |
33984 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
33985 | ||
33986 | # Does compiler simultaneously support -c and -o options? | |
33987 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
33988 | ||
33989 | # Whether or not to add -lc for building shared libraries. | |
33990 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
33991 | ||
33992 | # Whether or not to disallow shared libs when runtime libs are static. | |
33993 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
33994 | ||
33995 | # Compiler flag to allow reflexive dlopens. | |
33996 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
33997 | ||
33998 | # Compiler flag to generate shared objects directly from archives. | |
33999 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
34000 | ||
34001 | # Whether the compiler copes with passing no objects directly. | |
34002 | compiler_needs_object=$lt_compiler_needs_object_FC | |
34003 | ||
34004 | # Create an old-style archive from a shared archive. | |
34005 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
34006 | ||
34007 | # Create a temporary old-style archive to link instead of a shared archive. | |
34008 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
34009 | ||
34010 | # Commands used to build a shared archive. | |
34011 | archive_cmds=$lt_archive_cmds_FC | |
34012 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
34013 | ||
34014 | # Commands used to build a loadable module if different from building | |
34015 | # a shared archive. | |
34016 | module_cmds=$lt_module_cmds_FC | |
34017 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
34018 | ||
34019 | # Whether we are building with GNU ld or not. | |
34020 | with_gnu_ld=$lt_with_gnu_ld_FC | |
34021 | ||
34022 | # Flag that allows shared libraries with undefined symbols to be built. | |
34023 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
34024 | ||
34025 | # Flag that enforces no undefined symbols. | |
34026 | no_undefined_flag=$lt_no_undefined_flag_FC | |
34027 | ||
34028 | # Flag to hardcode \$libdir into a binary during linking. | |
34029 | # This must work even if \$libdir does not exist | |
34030 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
34031 | ||
34032 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
34033 | # during linking. This must work even if \$libdir does not exist. | |
34034 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
34035 | ||
34036 | # Whether we need a single "-rpath" flag with a separated argument. | |
34037 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
34038 | ||
34039 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
34040 | # DIR into the resulting binary. | |
34041 | hardcode_direct=$hardcode_direct_FC | |
34042 | ||
34043 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
34044 | # DIR into the resulting binary and the resulting library dependency is | |
34045 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
34046 | # library is relocated. | |
34047 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
34048 | ||
34049 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
34050 | # into the resulting binary. | |
34051 | hardcode_minus_L=$hardcode_minus_L_FC | |
34052 | ||
34053 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
34054 | # into the resulting binary. | |
34055 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
34056 | ||
34057 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
34058 | # into the library and all subsequent libraries and executables linked | |
34059 | # against it. | |
34060 | hardcode_automatic=$hardcode_automatic_FC | |
34061 | ||
34062 | # Set to yes if linker adds runtime paths of dependent libraries | |
34063 | # to runtime path list. | |
34064 | inherit_rpath=$inherit_rpath_FC | |
34065 | ||
34066 | # Whether libtool must link a program against all its dependency libraries. | |
34067 | link_all_deplibs=$link_all_deplibs_FC | |
34068 | ||
34069 | # Fix the shell variable \$srcfile for the compiler. | |
34070 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
34071 | ||
34072 | # Set to "yes" if exported symbols are required. | |
34073 | always_export_symbols=$always_export_symbols_FC | |
34074 | ||
34075 | # The commands to list exported symbols. | |
34076 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
34077 | ||
34078 | # Symbols that should not be listed in the preloaded symbols. | |
34079 | exclude_expsyms=$lt_exclude_expsyms_FC | |
34080 | ||
34081 | # Symbols that must always be exported. | |
34082 | include_expsyms=$lt_include_expsyms_FC | |
34083 | ||
34084 | # Commands necessary for linking programs (against libraries) with templates. | |
34085 | prelink_cmds=$lt_prelink_cmds_FC | |
34086 | ||
34087 | # Specify filename containing input files. | |
34088 | file_list_spec=$lt_file_list_spec_FC | |
34089 | ||
34090 | # How to hardcode a shared library path into an executable. | |
34091 | hardcode_action=$hardcode_action_FC | |
34092 | ||
d58dead8 PG |
34093 | # The directories searched by this compiler when creating a shared library. |
34094 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC | |
34095 | ||
1cf3d07d SE |
34096 | # Dependencies to place before and after the objects being linked to |
34097 | # create a shared library. | |
34098 | predep_objects=$lt_predep_objects_FC | |
34099 | postdep_objects=$lt_postdep_objects_FC | |
34100 | predeps=$lt_predeps_FC | |
34101 | postdeps=$lt_postdeps_FC | |
34102 | ||
34103 | # The library search path used internally by the compiler when linking | |
34104 | # a shared library. | |
34105 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
34106 | ||
34107 | # ### END LIBTOOL TAG CONFIG: FC | |
34108 | _LT_EOF | |
34109 | ||
679c0f9a | 34110 | ;; |
5213506e | 34111 | "gstdint.h":C) |
c13e029b PB |
34112 | if test "$GCC" = yes; then |
34113 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
34114 | else | |
34115 | echo "/* generated for $CC */" > tmp-stdint.h | |
34116 | fi | |
4c4b3eb0 | 34117 | |
c13e029b PB |
34118 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
34119 | ||
34120 | #ifndef GCC_GENERATED_STDINT_H | |
34121 | #define GCC_GENERATED_STDINT_H 1 | |
34122 | ||
34123 | #include <sys/types.h> | |
4c4b3eb0 | 34124 | EOF |
4c4b3eb0 | 34125 | |
c13e029b PB |
34126 | if test "$acx_cv_header_stdint" != stdint.h; then |
34127 | echo "#include <stddef.h>" >> tmp-stdint.h | |
34128 | fi | |
34129 | if test "$acx_cv_header_stdint" != stddef.h; then | |
34130 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
34131 | fi | |
34132 | ||
34133 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34134 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
34135 | #ifdef __int8_t_defined | |
34136 | #define _INT8_T | |
34137 | #define _INT16_T | |
34138 | #define _INT32_T | |
34139 | #endif | |
34140 | #ifdef __uint32_t_defined | |
34141 | #define _UINT32_T | |
34142 | #endif | |
34143 | ||
34144 | EOF | |
34145 | ||
34146 | # ----------------- done header, emit basic int types ------------- | |
34147 | if test "$acx_cv_header_stdint" = stddef.h; then | |
34148 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34149 | ||
34150 | #ifndef _UINT8_T | |
34151 | #define _UINT8_T | |
34152 | #ifndef __uint8_t_defined | |
34153 | #define __uint8_t_defined | |
b9497ab5 | 34154 | #ifndef uint8_t |
c13e029b PB |
34155 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
34156 | #endif | |
34157 | #endif | |
b9497ab5 | 34158 | #endif |
c13e029b PB |
34159 | |
34160 | #ifndef _UINT16_T | |
34161 | #define _UINT16_T | |
34162 | #ifndef __uint16_t_defined | |
34163 | #define __uint16_t_defined | |
b9497ab5 | 34164 | #ifndef uint16_t |
c13e029b PB |
34165 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
34166 | #endif | |
34167 | #endif | |
b9497ab5 | 34168 | #endif |
c13e029b PB |
34169 | |
34170 | #ifndef _UINT32_T | |
34171 | #define _UINT32_T | |
34172 | #ifndef __uint32_t_defined | |
34173 | #define __uint32_t_defined | |
b9497ab5 | 34174 | #ifndef uint32_t |
c13e029b PB |
34175 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
34176 | #endif | |
34177 | #endif | |
b9497ab5 | 34178 | #endif |
c13e029b PB |
34179 | |
34180 | #ifndef _INT8_T | |
34181 | #define _INT8_T | |
34182 | #ifndef __int8_t_defined | |
34183 | #define __int8_t_defined | |
b9497ab5 | 34184 | #ifndef int8_t |
c13e029b PB |
34185 | typedef $acx_cv_type_int8_t int8_t; |
34186 | #endif | |
34187 | #endif | |
b9497ab5 | 34188 | #endif |
c13e029b PB |
34189 | |
34190 | #ifndef _INT16_T | |
34191 | #define _INT16_T | |
34192 | #ifndef __int16_t_defined | |
34193 | #define __int16_t_defined | |
b9497ab5 | 34194 | #ifndef int16_t |
c13e029b PB |
34195 | typedef $acx_cv_type_int16_t int16_t; |
34196 | #endif | |
34197 | #endif | |
b9497ab5 | 34198 | #endif |
c13e029b PB |
34199 | |
34200 | #ifndef _INT32_T | |
34201 | #define _INT32_T | |
34202 | #ifndef __int32_t_defined | |
34203 | #define __int32_t_defined | |
b9497ab5 | 34204 | #ifndef int32_t |
c13e029b PB |
34205 | typedef $acx_cv_type_int32_t int32_t; |
34206 | #endif | |
34207 | #endif | |
b9497ab5 | 34208 | #endif |
c13e029b PB |
34209 | EOF |
34210 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
34211 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34212 | ||
34213 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
34214 | #ifndef _INT8_T | |
34215 | #define _INT8_T | |
34216 | #endif | |
34217 | #ifndef _INT16_T | |
34218 | #define _INT16_T | |
34219 | #endif | |
34220 | #ifndef _INT32_T | |
34221 | #define _INT32_T | |
34222 | #endif | |
34223 | ||
34224 | #ifndef _UINT8_T | |
34225 | #define _UINT8_T | |
34226 | #ifndef __uint8_t_defined | |
34227 | #define __uint8_t_defined | |
b9497ab5 | 34228 | #ifndef uint8_t |
c13e029b PB |
34229 | typedef u_int8_t uint8_t; |
34230 | #endif | |
34231 | #endif | |
b9497ab5 | 34232 | #endif |
c13e029b PB |
34233 | |
34234 | #ifndef _UINT16_T | |
34235 | #define _UINT16_T | |
34236 | #ifndef __uint16_t_defined | |
34237 | #define __uint16_t_defined | |
b9497ab5 | 34238 | #ifndef uint16_t |
c13e029b PB |
34239 | typedef u_int16_t uint16_t; |
34240 | #endif | |
34241 | #endif | |
b9497ab5 | 34242 | #endif |
c13e029b PB |
34243 | |
34244 | #ifndef _UINT32_T | |
34245 | #define _UINT32_T | |
34246 | #ifndef __uint32_t_defined | |
34247 | #define __uint32_t_defined | |
b9497ab5 | 34248 | #ifndef uint32_t |
c13e029b PB |
34249 | typedef u_int32_t uint32_t; |
34250 | #endif | |
34251 | #endif | |
b9497ab5 | 34252 | #endif |
c13e029b PB |
34253 | EOF |
34254 | else | |
34255 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34256 | ||
34257 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
34258 | #ifndef _INT8_T | |
34259 | #define _INT8_T | |
34260 | #endif | |
34261 | #ifndef _INT16_T | |
34262 | #define _INT16_T | |
34263 | #endif | |
34264 | #ifndef _INT32_T | |
34265 | #define _INT32_T | |
34266 | #endif | |
34267 | #ifndef _UINT8_T | |
34268 | #define _UINT8_T | |
34269 | #endif | |
34270 | #ifndef _UINT16_T | |
34271 | #define _UINT16_T | |
34272 | #endif | |
34273 | #ifndef _UINT32_T | |
34274 | #define _UINT32_T | |
34275 | #endif | |
34276 | EOF | |
34277 | fi | |
34278 | ||
34279 | # ------------- done basic int types, emit int64_t types ------------ | |
34280 | if test "$ac_cv_type_uint64_t" = yes; then | |
34281 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34282 | ||
34283 | /* system headers have good uint64_t and int64_t */ | |
34284 | #ifndef _INT64_T | |
34285 | #define _INT64_T | |
34286 | #endif | |
34287 | #ifndef _UINT64_T | |
34288 | #define _UINT64_T | |
34289 | #endif | |
34290 | EOF | |
34291 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
34292 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34293 | ||
34294 | /* system headers have an u_int64_t (and int64_t) */ | |
34295 | #ifndef _INT64_T | |
34296 | #define _INT64_T | |
34297 | #endif | |
34298 | #ifndef _UINT64_T | |
34299 | #define _UINT64_T | |
34300 | #ifndef __uint64_t_defined | |
34301 | #define __uint64_t_defined | |
b9497ab5 | 34302 | #ifndef uint64_t |
c13e029b PB |
34303 | typedef u_int64_t uint64_t; |
34304 | #endif | |
34305 | #endif | |
b9497ab5 | 34306 | #endif |
c13e029b PB |
34307 | EOF |
34308 | elif test -n "$acx_cv_type_int64_t"; then | |
34309 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34310 | ||
34311 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
34312 | #ifndef _INT64_T | |
34313 | #define _INT64_T | |
b9497ab5 | 34314 | #ifndef int64_t |
c13e029b PB |
34315 | typedef $acx_cv_type_int64_t int64_t; |
34316 | #endif | |
b9497ab5 | 34317 | #endif |
c13e029b PB |
34318 | #ifndef _UINT64_T |
34319 | #define _UINT64_T | |
34320 | #ifndef __uint64_t_defined | |
34321 | #define __uint64_t_defined | |
b9497ab5 | 34322 | #ifndef uint64_t |
c13e029b PB |
34323 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
34324 | #endif | |
34325 | #endif | |
b9497ab5 | 34326 | #endif |
c13e029b PB |
34327 | EOF |
34328 | else | |
34329 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34330 | ||
34331 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
34332 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
34333 | #ifndef _INT64_T | |
34334 | #define _INT64_T | |
34335 | #ifndef __int64_t_defined | |
b9497ab5 | 34336 | #ifndef int64_t |
c13e029b PB |
34337 | typedef long long int64_t; |
34338 | #endif | |
34339 | #endif | |
b9497ab5 | 34340 | #endif |
c13e029b PB |
34341 | #ifndef _UINT64_T |
34342 | #define _UINT64_T | |
b9497ab5 | 34343 | #ifndef uint64_t |
c13e029b PB |
34344 | typedef unsigned long long uint64_t; |
34345 | #endif | |
b9497ab5 | 34346 | #endif |
c13e029b PB |
34347 | |
34348 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
34349 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
34350 | does not implement __extension__. But that compiler doesn't define | |
34351 | __GNUC_MINOR__. */ | |
34352 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
34353 | # define __extension__ | |
34354 | # endif | |
34355 | ||
34356 | # ifndef _INT64_T | |
34357 | # define _INT64_T | |
b9497ab5 | 34358 | # ifndef int64_t |
c13e029b PB |
34359 | __extension__ typedef long long int64_t; |
34360 | # endif | |
b9497ab5 | 34361 | # endif |
c13e029b PB |
34362 | # ifndef _UINT64_T |
34363 | # define _UINT64_T | |
b9497ab5 | 34364 | # ifndef uint64_t |
c13e029b PB |
34365 | __extension__ typedef unsigned long long uint64_t; |
34366 | # endif | |
b9497ab5 | 34367 | # endif |
c13e029b PB |
34368 | |
34369 | #elif !defined __STRICT_ANSI__ | |
34370 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
34371 | ||
34372 | # ifndef _INT64_T | |
34373 | # define _INT64_T | |
b9497ab5 | 34374 | # ifndef int64_t |
c13e029b PB |
34375 | typedef __int64 int64_t; |
34376 | # endif | |
b9497ab5 | 34377 | # endif |
c13e029b PB |
34378 | # ifndef _UINT64_T |
34379 | # define _UINT64_T | |
b9497ab5 | 34380 | # ifndef uint64_t |
c13e029b PB |
34381 | typedef unsigned __int64 uint64_t; |
34382 | # endif | |
b9497ab5 | 34383 | # endif |
c13e029b PB |
34384 | # endif /* compiler */ |
34385 | ||
34386 | #endif /* ANSI version */ | |
34387 | EOF | |
34388 | fi | |
34389 | ||
34390 | # ------------- done int64_t types, emit intptr types ------------ | |
34391 | if test "$ac_cv_type_uintptr_t" != yes; then | |
34392 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34393 | ||
34394 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
34395 | #ifndef __uintptr_t_defined | |
b9497ab5 | 34396 | #ifndef uintptr_t |
c13e029b PB |
34397 | typedef u$acx_cv_type_intptr_t uintptr_t; |
34398 | #endif | |
b9497ab5 | 34399 | #endif |
c13e029b | 34400 | #ifndef __intptr_t_defined |
b9497ab5 | 34401 | #ifndef intptr_t |
c13e029b PB |
34402 | typedef $acx_cv_type_intptr_t intptr_t; |
34403 | #endif | |
b9497ab5 | 34404 | #endif |
c13e029b PB |
34405 | EOF |
34406 | fi | |
34407 | ||
34408 | # ------------- done intptr types, emit int_least types ------------ | |
4c4b3eb0 | 34409 | if test "$ac_cv_type_int_least32_t" != yes; then |
c13e029b | 34410 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
4c4b3eb0 PB |
34411 | |
34412 | /* Define int_least types */ | |
34413 | typedef int8_t int_least8_t; | |
34414 | typedef int16_t int_least16_t; | |
34415 | typedef int32_t int_least32_t; | |
c13e029b | 34416 | #ifdef _INT64_T |
4c4b3eb0 | 34417 | typedef int64_t int_least64_t; |
c13e029b | 34418 | #endif |
4c4b3eb0 PB |
34419 | |
34420 | typedef uint8_t uint_least8_t; | |
34421 | typedef uint16_t uint_least16_t; | |
34422 | typedef uint32_t uint_least32_t; | |
c13e029b | 34423 | #ifdef _UINT64_T |
4c4b3eb0 | 34424 | typedef uint64_t uint_least64_t; |
c13e029b | 34425 | #endif |
4c4b3eb0 PB |
34426 | EOF |
34427 | fi | |
34428 | ||
c13e029b | 34429 | # ------------- done intptr types, emit int_fast types ------------ |
4c4b3eb0 | 34430 | if test "$ac_cv_type_int_fast32_t" != yes; then |
c13e029b | 34431 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
4c4b3eb0 PB |
34432 | |
34433 | /* Define int_fast types. short is often slow */ | |
34434 | typedef int8_t int_fast8_t; | |
34435 | typedef int int_fast16_t; | |
34436 | typedef int32_t int_fast32_t; | |
c13e029b | 34437 | #ifdef _INT64_T |
4c4b3eb0 | 34438 | typedef int64_t int_fast64_t; |
c13e029b | 34439 | #endif |
4c4b3eb0 PB |
34440 | |
34441 | typedef uint8_t uint_fast8_t; | |
34442 | typedef unsigned int uint_fast16_t; | |
34443 | typedef uint32_t uint_fast32_t; | |
c13e029b | 34444 | #ifdef _UINT64_T |
4c4b3eb0 | 34445 | typedef uint64_t uint_fast64_t; |
c13e029b PB |
34446 | #endif |
34447 | EOF | |
34448 | fi | |
34449 | ||
34450 | if test "$ac_cv_type_uintmax_t" != yes; then | |
34451 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34452 | ||
34453 | /* Define intmax based on what we found */ | |
b9497ab5 | 34454 | #ifndef intmax_t |
c13e029b PB |
34455 | #ifdef _INT64_T |
34456 | typedef int64_t intmax_t; | |
34457 | #else | |
34458 | typedef long intmax_t; | |
34459 | #endif | |
b9497ab5 RO |
34460 | #endif |
34461 | #ifndef uintmax_t | |
c13e029b PB |
34462 | #ifdef _UINT64_T |
34463 | typedef uint64_t uintmax_t; | |
34464 | #else | |
34465 | typedef unsigned long uintmax_t; | |
34466 | #endif | |
b9497ab5 | 34467 | #endif |
4c4b3eb0 PB |
34468 | EOF |
34469 | fi | |
34470 | ||
c13e029b PB |
34471 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
34472 | ||
34473 | #endif /* GCC_GENERATED_STDINT_H */ | |
34474 | EOF | |
4c4b3eb0 | 34475 | |
c13e029b PB |
34476 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then |
34477 | rm -f tmp-stdint.h | |
4c4b3eb0 | 34478 | else |
c13e029b | 34479 | mv -f tmp-stdint.h gstdint.h |
4c4b3eb0 PB |
34480 | fi |
34481 | ||
34482 | ;; | |
5213506e | 34483 | |
6de9cd9a | 34484 | esac |
5213506e | 34485 | done # for ac_tag |
6de9cd9a | 34486 | |
6de9cd9a | 34487 | |
5213506e | 34488 | as_fn_exit 0 |
6de9cd9a | 34489 | _ACEOF |
6de9cd9a DN |
34490 | ac_clean_files=$ac_clean_files_save |
34491 | ||
5213506e | 34492 | test $ac_write_fail = 0 || |
22e05272 | 34493 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 34494 | |
6de9cd9a DN |
34495 | |
34496 | # configure is writing to config.log, and then calls config.status. | |
34497 | # config.status does its own redirection, appending to config.log. | |
34498 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
34499 | # by configure, so config.status won't be able to write to it; its | |
34500 | # output is simply discarded. So we exec the FD to /dev/null, | |
34501 | # effectively closing config.log, so it can be properly (re)opened and | |
34502 | # appended to by config.status. When coming back to configure, we | |
34503 | # need to make the FD available again. | |
34504 | if test "$no_create" != yes; then | |
34505 | ac_cs_success=: | |
34506 | ac_config_status_args= | |
34507 | test "$silent" = yes && | |
34508 | ac_config_status_args="$ac_config_status_args --quiet" | |
34509 | exec 5>/dev/null | |
34510 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
34511 | exec 5>>config.log | |
34512 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
34513 | # would make configure fail if this is the last instruction. | |
22e05272 | 34514 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
34515 | fi |
34516 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
34517 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
34518 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
6de9cd9a DN |
34519 | fi |
34520 |