]>
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 | ;; | |
96b8a615 AJ |
7786 | esac |
7787 | ||
7788 | fi | |
5213506e RW |
7789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
7790 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
96b8a615 AJ |
7791 | file_magic_cmd=$lt_cv_file_magic_cmd |
7792 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1cf3d07d | 7793 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
96b8a615 AJ |
7794 | |
7795 | ||
7796 | ||
7797 | ||
96b8a615 | 7798 | |
96b8a615 | 7799 | |
96b8a615 | 7800 | |
96b8a615 | 7801 | |
6de9cd9a | 7802 | |
6de9cd9a | 7803 | |
6de9cd9a | 7804 | |
6de9cd9a | 7805 | |
96b8a615 | 7806 | if test -n "$ac_tool_prefix"; then |
1cf3d07d SE |
7807 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
7808 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
7809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7810 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7811 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 7812 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 7813 | else |
1cf3d07d SE |
7814 | if test -n "$AR"; then |
7815 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
96b8a615 AJ |
7816 | else |
7817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7818 | for as_dir in $PATH | |
7819 | do | |
7820 | IFS=$as_save_IFS | |
7821 | test -z "$as_dir" && as_dir=. | |
5213506e | 7822 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7823 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7824 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 7825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7826 | break 2 |
7827 | fi | |
7828 | done | |
5213506e RW |
7829 | done |
7830 | IFS=$as_save_IFS | |
6de9cd9a | 7831 | |
96b8a615 AJ |
7832 | fi |
7833 | fi | |
1cf3d07d SE |
7834 | AR=$ac_cv_prog_AR |
7835 | if test -n "$AR"; then | |
5213506e RW |
7836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7837 | $as_echo "$AR" >&6; } | |
96b8a615 | 7838 | else |
5213506e RW |
7839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7840 | $as_echo "no" >&6; } | |
6de9cd9a DN |
7841 | fi |
7842 | ||
5213506e | 7843 | |
96b8a615 | 7844 | fi |
1cf3d07d SE |
7845 | if test -z "$ac_cv_prog_AR"; then |
7846 | ac_ct_AR=$AR | |
7847 | # Extract the first word of "ar", so it can be a program name with args. | |
7848 | set dummy ar; ac_word=$2 | |
5213506e RW |
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7850 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7851 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5213506e | 7852 | $as_echo_n "(cached) " >&6 |
96b8a615 | 7853 | else |
1cf3d07d SE |
7854 | if test -n "$ac_ct_AR"; then |
7855 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
96b8a615 AJ |
7856 | else |
7857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7858 | for as_dir in $PATH | |
7859 | do | |
7860 | IFS=$as_save_IFS | |
7861 | test -z "$as_dir" && as_dir=. | |
5213506e | 7862 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7864 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 7865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7866 | break 2 |
7867 | fi | |
7868 | done | |
5213506e RW |
7869 | done |
7870 | IFS=$as_save_IFS | |
6de9cd9a | 7871 | |
96b8a615 AJ |
7872 | fi |
7873 | fi | |
1cf3d07d SE |
7874 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7875 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
7876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
7877 | $as_echo "$ac_ct_AR" >&6; } | |
6de9cd9a | 7878 | else |
5213506e RW |
7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7880 | $as_echo "no" >&6; } | |
6de9cd9a | 7881 | fi |
6de9cd9a | 7882 | |
5213506e RW |
7883 | if test "x$ac_ct_AR" = x; then |
7884 | AR="false" | |
7885 | else | |
7886 | case $cross_compiling:$ac_tool_warned in | |
7887 | yes:) | |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7889 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7890 | ac_tool_warned=yes ;; | |
7891 | esac | |
7892 | AR=$ac_ct_AR | |
7893 | fi | |
96b8a615 | 7894 | else |
1cf3d07d | 7895 | AR="$ac_cv_prog_AR" |
6de9cd9a DN |
7896 | fi |
7897 | ||
1cf3d07d SE |
7898 | test -z "$AR" && AR=ar |
7899 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
7900 | ||
7901 | ||
7902 | ||
7903 | ||
7904 | ||
7905 | ||
7906 | ||
7907 | ||
7908 | ||
7909 | ||
7910 | ||
96b8a615 AJ |
7911 | if test -n "$ac_tool_prefix"; then |
7912 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7913 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5213506e RW |
7914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7915 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7916 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 7917 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 7918 | else |
96b8a615 AJ |
7919 | if test -n "$STRIP"; then |
7920 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7921 | else | |
7922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7923 | for as_dir in $PATH | |
7924 | do | |
7925 | IFS=$as_save_IFS | |
7926 | test -z "$as_dir" && as_dir=. | |
5213506e | 7927 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7928 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
96b8a615 | 7929 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5213506e | 7930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7931 | break 2 |
7932 | fi | |
7933 | done | |
5213506e RW |
7934 | done |
7935 | IFS=$as_save_IFS | |
6de9cd9a | 7936 | |
96b8a615 AJ |
7937 | fi |
7938 | fi | |
7939 | STRIP=$ac_cv_prog_STRIP | |
7940 | if test -n "$STRIP"; then | |
5213506e RW |
7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
7942 | $as_echo "$STRIP" >&6; } | |
6de9cd9a | 7943 | else |
5213506e RW |
7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7945 | $as_echo "no" >&6; } | |
96b8a615 | 7946 | fi |
6de9cd9a | 7947 | |
5213506e | 7948 | |
6de9cd9a | 7949 | fi |
96b8a615 AJ |
7950 | if test -z "$ac_cv_prog_STRIP"; then |
7951 | ac_ct_STRIP=$STRIP | |
7952 | # Extract the first word of "strip", so it can be a program name with args. | |
7953 | set dummy strip; ac_word=$2 | |
5213506e RW |
7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7955 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7956 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e | 7957 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
7958 | else |
7959 | if test -n "$ac_ct_STRIP"; then | |
7960 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7961 | else | |
7962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7963 | for as_dir in $PATH | |
7964 | do | |
7965 | IFS=$as_save_IFS | |
7966 | test -z "$as_dir" && as_dir=. | |
5213506e | 7967 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7968 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
96b8a615 | 7969 | ac_cv_prog_ac_ct_STRIP="strip" |
5213506e | 7970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7971 | break 2 |
7972 | fi | |
7973 | done | |
5213506e RW |
7974 | done |
7975 | IFS=$as_save_IFS | |
96b8a615 | 7976 | |
6de9cd9a DN |
7977 | fi |
7978 | fi | |
96b8a615 AJ |
7979 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
7980 | if test -n "$ac_ct_STRIP"; then | |
5213506e RW |
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
7982 | $as_echo "$ac_ct_STRIP" >&6; } | |
96b8a615 | 7983 | else |
5213506e RW |
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7985 | $as_echo "no" >&6; } | |
6de9cd9a | 7986 | fi |
6de9cd9a | 7987 | |
5213506e RW |
7988 | if test "x$ac_ct_STRIP" = x; then |
7989 | STRIP=":" | |
7990 | else | |
7991 | case $cross_compiling:$ac_tool_warned in | |
7992 | yes:) | |
7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7994 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7995 | ac_tool_warned=yes ;; | |
7996 | esac | |
7997 | STRIP=$ac_ct_STRIP | |
7998 | fi | |
96b8a615 AJ |
7999 | else |
8000 | STRIP="$ac_cv_prog_STRIP" | |
6de9cd9a DN |
8001 | fi |
8002 | ||
1cf3d07d | 8003 | test -z "$STRIP" && STRIP=: |
6de9cd9a DN |
8004 | |
8005 | ||
8006 | ||
8007 | ||
8008 | ||
8009 | ||
1cf3d07d SE |
8010 | if test -n "$ac_tool_prefix"; then |
8011 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8012 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
8013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8014 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8015 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 8016 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 8017 | else |
1cf3d07d SE |
8018 | if test -n "$RANLIB"; then |
8019 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8020 | else | |
8021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8022 | for as_dir in $PATH | |
8023 | do | |
8024 | IFS=$as_save_IFS | |
8025 | test -z "$as_dir" && as_dir=. | |
5213506e | 8026 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8027 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 8028 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 8029 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
8030 | break 2 |
8031 | fi | |
8032 | done | |
5213506e RW |
8033 | done |
8034 | IFS=$as_save_IFS | |
1cf3d07d SE |
8035 | |
8036 | fi | |
8037 | fi | |
8038 | RANLIB=$ac_cv_prog_RANLIB | |
8039 | if test -n "$RANLIB"; then | |
5213506e RW |
8040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8041 | $as_echo "$RANLIB" >&6; } | |
1cf3d07d | 8042 | else |
5213506e RW |
8043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8044 | $as_echo "no" >&6; } | |
1cf3d07d SE |
8045 | fi |
8046 | ||
5213506e | 8047 | |
1cf3d07d SE |
8048 | fi |
8049 | if test -z "$ac_cv_prog_RANLIB"; then | |
8050 | ac_ct_RANLIB=$RANLIB | |
8051 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8052 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
8053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8054 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8055 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5213506e | 8056 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8057 | else |
8058 | if test -n "$ac_ct_RANLIB"; then | |
8059 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8060 | else | |
8061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8062 | for as_dir in $PATH | |
8063 | do | |
8064 | IFS=$as_save_IFS | |
8065 | test -z "$as_dir" && as_dir=. | |
5213506e | 8066 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8067 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 8068 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 8069 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
8070 | break 2 |
8071 | fi | |
8072 | done | |
5213506e RW |
8073 | done |
8074 | IFS=$as_save_IFS | |
1cf3d07d | 8075 | |
1cf3d07d SE |
8076 | fi |
8077 | fi | |
8078 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8079 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
8080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8081 | $as_echo "$ac_ct_RANLIB" >&6; } | |
1cf3d07d | 8082 | else |
5213506e RW |
8083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8084 | $as_echo "no" >&6; } | |
1cf3d07d SE |
8085 | fi |
8086 | ||
5213506e RW |
8087 | if test "x$ac_ct_RANLIB" = x; then |
8088 | RANLIB=":" | |
8089 | else | |
8090 | case $cross_compiling:$ac_tool_warned in | |
8091 | yes:) | |
8092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8093 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8094 | ac_tool_warned=yes ;; | |
8095 | esac | |
8096 | RANLIB=$ac_ct_RANLIB | |
8097 | fi | |
1cf3d07d SE |
8098 | else |
8099 | RANLIB="$ac_cv_prog_RANLIB" | |
8100 | fi | |
8101 | ||
8102 | test -z "$RANLIB" && RANLIB=: | |
8103 | ||
8104 | ||
8105 | ||
8106 | ||
8107 | ||
8108 | ||
8109 | # Determine commands to create old-style static archives. | |
d58dead8 | 8110 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1cf3d07d SE |
8111 | old_postinstall_cmds='chmod 644 $oldlib' |
8112 | old_postuninstall_cmds= | |
8113 | ||
8114 | if test -n "$RANLIB"; then | |
8115 | case $host_os in | |
8116 | openbsd*) | |
8117 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
8118 | ;; | |
8119 | *) | |
8120 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
8121 | ;; | |
8122 | esac | |
8123 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
8124 | fi | |
8125 | ||
43e02a8a RW |
8126 | case $host_os in |
8127 | darwin*) | |
8128 | lock_old_archive_extraction=yes ;; | |
8129 | *) | |
8130 | lock_old_archive_extraction=no ;; | |
8131 | esac | |
8132 | ||
8133 | ||
8134 | ||
8135 | ||
8136 | ||
8137 | ||
1cf3d07d SE |
8138 | |
8139 | ||
8140 | ||
8141 | ||
8142 | ||
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 | # If no C compiler was specified, use CC. | |
8172 | LTCC=${LTCC-"$CC"} | |
8173 | ||
8174 | # If no C compiler flags were specified, use CFLAGS. | |
8175 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8176 | ||
8177 | # Allow CC to be a program name with arguments. | |
8178 | compiler=$CC | |
8179 | ||
8180 | ||
8181 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5213506e RW |
8182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8183 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
22e05272 | 8184 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
5213506e | 8185 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8186 | else |
8187 | ||
8188 | # These are sane defaults that work on at least a few old systems. | |
8189 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
8190 | ||
8191 | # Character class describing NM global symbol codes. | |
8192 | symcode='[BCDEGRST]' | |
8193 | ||
8194 | # Regexp to match symbols that can be accessed directly from C. | |
8195 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
8196 | ||
8197 | # Define system-specific variables. | |
8198 | case $host_os in | |
8199 | aix*) | |
8200 | symcode='[BCDT]' | |
8201 | ;; | |
d58dead8 | 8202 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8203 | symcode='[ABCDGISTW]' |
8204 | ;; | |
8205 | hpux*) | |
8206 | if test "$host_cpu" = ia64; then | |
8207 | symcode='[ABCDEGRST]' | |
8208 | fi | |
8209 | ;; | |
8210 | irix* | nonstopux*) | |
8211 | symcode='[BCDEGRST]' | |
8212 | ;; | |
8213 | osf*) | |
8214 | symcode='[BCDEGQRST]' | |
8215 | ;; | |
8216 | solaris*) | |
8217 | symcode='[BDRT]' | |
8218 | ;; | |
8219 | sco3.2v5*) | |
8220 | symcode='[DT]' | |
8221 | ;; | |
8222 | sysv4.2uw2*) | |
8223 | symcode='[DT]' | |
8224 | ;; | |
8225 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
8226 | symcode='[ABDT]' | |
8227 | ;; | |
8228 | sysv4) | |
8229 | symcode='[DFNSTU]' | |
8230 | ;; | |
8231 | esac | |
8232 | ||
8233 | # If we're using GNU nm, then use its standard symbol codes. | |
8234 | case `$NM -V 2>&1` in | |
8235 | *GNU* | *'with BFD'*) | |
8236 | symcode='[ABCDGIRSTW]' ;; | |
8237 | esac | |
8238 | ||
8239 | # Transform an extracted symbol line into a proper C declaration. | |
8240 | # Some systems (esp. on ia64) link data and code symbols differently, | |
8241 | # so use this general approach. | |
8242 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
8243 | ||
8244 | # Transform an extracted symbol line into symbol name and symbol address | |
8245 | 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 | 8246 | 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 |
8247 | |
8248 | # Handle CRLF in mingw tool chain | |
8249 | opt_cr= | |
8250 | case $build_os in | |
8251 | mingw*) | |
8252 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
8253 | ;; | |
8254 | esac | |
8255 | ||
8256 | # Try without a prefix underscore, then with it. | |
8257 | for ac_symprfx in "" "_"; do | |
8258 | ||
8259 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
8260 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
8261 | ||
8262 | # Write the raw and C identifiers. | |
8263 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
8264 | # Fake it for dumpbin and say T for any non-static function | |
8265 | # and D for any global variable. | |
8266 | # Also find C++ and __fastcall symbols from MSVC++, | |
8267 | # which start with @ or ?. | |
8268 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
8269 | " {last_section=section; section=\$ 3};"\ | |
8270 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
8271 | " \$ 0!~/External *\|/{next};"\ | |
8272 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
8273 | " {if(hide[section]) next};"\ | |
8274 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
8275 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
8276 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
8277 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
8278 | " ' prfx=^$ac_symprfx" | |
8279 | else | |
8280 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
8281 | fi | |
8282 | ||
8283 | # Check to see that the pipe works correctly. | |
8284 | pipe_works=no | |
8285 | ||
8286 | rm -f conftest* | |
8287 | cat > conftest.$ac_ext <<_LT_EOF | |
8288 | #ifdef __cplusplus | |
8289 | extern "C" { | |
8290 | #endif | |
8291 | char nm_test_var; | |
8292 | void nm_test_func(void); | |
8293 | void nm_test_func(void){} | |
8294 | #ifdef __cplusplus | |
8295 | } | |
8296 | #endif | |
8297 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8298 | _LT_EOF | |
8299 | ||
5213506e | 8300 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8301 | (eval $ac_compile) 2>&5 |
8302 | ac_status=$? | |
5213506e RW |
8303 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8304 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8305 | # Now try to grab the symbols. |
8306 | nlist=conftest.nm | |
43e02a8a RW |
8307 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
8308 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
1cf3d07d | 8309 | ac_status=$? |
5213506e RW |
8310 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8311 | test $ac_status = 0; } && test -s "$nlist"; then | |
1cf3d07d SE |
8312 | # Try sorting and uniquifying the output. |
8313 | if sort "$nlist" | uniq > "$nlist"T; then | |
8314 | mv -f "$nlist"T "$nlist" | |
8315 | else | |
8316 | rm -f "$nlist"T | |
8317 | fi | |
8318 | ||
8319 | # Make sure that we snagged all the symbols we need. | |
8320 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
8321 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
8322 | cat <<_LT_EOF > conftest.$ac_ext | |
8323 | #ifdef __cplusplus | |
8324 | extern "C" { | |
8325 | #endif | |
8326 | ||
8327 | _LT_EOF | |
8328 | # Now generate the symbol file. | |
8329 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
8330 | ||
8331 | cat <<_LT_EOF >> conftest.$ac_ext | |
8332 | ||
8333 | /* The mapping between symbol names and symbols. */ | |
8334 | const struct { | |
8335 | const char *name; | |
8336 | void *address; | |
8337 | } | |
8338 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
8339 | { | |
8340 | { "@PROGRAM@", (void *) 0 }, | |
8341 | _LT_EOF | |
8342 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
8343 | cat <<\_LT_EOF >> conftest.$ac_ext | |
8344 | {0, (void *) 0} | |
8345 | }; | |
8346 | ||
8347 | /* This works around a problem in FreeBSD linker */ | |
8348 | #ifdef FREEBSD_WORKAROUND | |
8349 | static const void *lt_preloaded_setup() { | |
8350 | return lt__PROGRAM__LTX_preloaded_symbols; | |
8351 | } | |
8352 | #endif | |
8353 | ||
8354 | #ifdef __cplusplus | |
8355 | } | |
8356 | #endif | |
8357 | _LT_EOF | |
8358 | # Now try linking the two files. | |
8359 | mv conftest.$ac_objext conftstm.$ac_objext | |
8360 | lt_save_LIBS="$LIBS" | |
8361 | lt_save_CFLAGS="$CFLAGS" | |
8362 | LIBS="conftstm.$ac_objext" | |
8363 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5213506e | 8364 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
8365 | (eval $ac_link) 2>&5 |
8366 | ac_status=$? | |
5213506e RW |
8367 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8368 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
1cf3d07d SE |
8369 | pipe_works=yes |
8370 | fi | |
8371 | LIBS="$lt_save_LIBS" | |
8372 | CFLAGS="$lt_save_CFLAGS" | |
8373 | else | |
8374 | echo "cannot find nm_test_func in $nlist" >&5 | |
8375 | fi | |
8376 | else | |
8377 | echo "cannot find nm_test_var in $nlist" >&5 | |
8378 | fi | |
8379 | else | |
8380 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
8381 | fi | |
8382 | else | |
8383 | echo "$progname: failed program was:" >&5 | |
8384 | cat conftest.$ac_ext >&5 | |
8385 | fi | |
d58dead8 | 8386 | rm -rf conftest* conftst* |
1cf3d07d SE |
8387 | |
8388 | # Do not use the global_symbol_pipe unless it works. | |
8389 | if test "$pipe_works" = yes; then | |
8390 | break | |
8391 | else | |
8392 | lt_cv_sys_global_symbol_pipe= | |
8393 | fi | |
8394 | done | |
8395 | ||
8396 | fi | |
8397 | ||
8398 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
8399 | lt_cv_sys_global_symbol_to_cdecl= | |
8400 | fi | |
8401 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5213506e RW |
8402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8403 | $as_echo "failed" >&6; } | |
1cf3d07d | 8404 | else |
5213506e RW |
8405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8406 | $as_echo "ok" >&6; } | |
1cf3d07d SE |
8407 | fi |
8408 | ||
8409 | ||
8410 | ||
8411 | ||
8412 | ||
8413 | ||
8414 | ||
8415 | ||
8416 | ||
8417 | ||
8418 | ||
8419 | ||
8420 | ||
8421 | ||
8422 | ||
d58dead8 PG |
8423 | |
8424 | ||
8425 | ||
8426 | ||
8427 | ||
1cf3d07d SE |
8428 | |
8429 | ||
5213506e RW |
8430 | # Check whether --enable-libtool-lock was given. |
8431 | if test "${enable_libtool_lock+set}" = set; then : | |
8432 | enableval=$enable_libtool_lock; | |
8433 | fi | |
1cf3d07d | 8434 | |
1cf3d07d | 8435 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6de9cd9a | 8436 | |
96b8a615 AJ |
8437 | # Some flags need to be propagated to the compiler or linker for good |
8438 | # libtool support. | |
8439 | case $host in | |
1cf3d07d | 8440 | ia64-*-hpux*) |
96b8a615 | 8441 | # Find out which ABI we are using. |
1cf3d07d | 8442 | echo 'int i;' > conftest.$ac_ext |
5213506e | 8443 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8444 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8445 | ac_status=$? |
5213506e RW |
8446 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8447 | test $ac_status = 0; }; then | |
96b8a615 | 8448 | case `/usr/bin/file conftest.$ac_objext` in |
1cf3d07d SE |
8449 | *ELF-32*) |
8450 | HPUX_IA64_MODE="32" | |
8451 | ;; | |
8452 | *ELF-64*) | |
8453 | HPUX_IA64_MODE="64" | |
8454 | ;; | |
96b8a615 | 8455 | esac |
96b8a615 AJ |
8456 | fi |
8457 | rm -rf conftest* | |
8458 | ;; | |
1cf3d07d | 8459 | *-*-irix6*) |
96b8a615 | 8460 | # Find out which ABI we are using. |
43e02a8a | 8461 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
5213506e | 8462 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8463 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8464 | ac_status=$? |
5213506e RW |
8465 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8466 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8467 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8468 | case `/usr/bin/file conftest.$ac_objext` in | |
8469 | *32-bit*) | |
8470 | LD="${LD-ld} -melf32bsmip" | |
8471 | ;; | |
8472 | *N32*) | |
8473 | LD="${LD-ld} -melf32bmipn32" | |
8474 | ;; | |
8475 | *64-bit*) | |
8476 | LD="${LD-ld} -melf64bmip" | |
8477 | ;; | |
8478 | esac | |
8479 | else | |
8480 | case `/usr/bin/file conftest.$ac_objext` in | |
8481 | *32-bit*) | |
8482 | LD="${LD-ld} -32" | |
8483 | ;; | |
8484 | *N32*) | |
8485 | LD="${LD-ld} -n32" | |
8486 | ;; | |
8487 | *64-bit*) | |
8488 | LD="${LD-ld} -64" | |
8489 | ;; | |
8490 | esac | |
8491 | fi | |
96b8a615 AJ |
8492 | fi |
8493 | rm -rf conftest* | |
8494 | ;; | |
6de9cd9a | 8495 | |
3cbe17f7 | 8496 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
1cf3d07d | 8497 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
96b8a615 AJ |
8498 | # Find out which ABI we are using. |
8499 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 8500 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8501 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8502 | ac_status=$? |
5213506e RW |
8503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8504 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8505 | case `/usr/bin/file conftest.o` in |
8506 | *32-bit*) | |
8507 | case $host in | |
8508 | x86_64-*kfreebsd*-gnu) | |
8509 | LD="${LD-ld} -m elf_i386_fbsd" | |
8510 | ;; | |
8511 | x86_64-*linux*) | |
e6d5f8c9 L |
8512 | case `/usr/bin/file conftest.o` in |
8513 | *x86-64*) | |
8514 | LD="${LD-ld} -m elf32_x86_64" | |
8515 | ;; | |
8516 | *) | |
8517 | LD="${LD-ld} -m elf_i386" | |
8518 | ;; | |
8519 | esac | |
1cf3d07d | 8520 | ;; |
3cbe17f7 AM |
8521 | powerpc64le-*linux*) |
8522 | LD="${LD-ld} -m elf32lppclinux" | |
8523 | ;; | |
8524 | powerpc64-*linux*) | |
1cf3d07d SE |
8525 | LD="${LD-ld} -m elf32ppclinux" |
8526 | ;; | |
8527 | s390x-*linux*) | |
8528 | LD="${LD-ld} -m elf_s390" | |
8529 | ;; | |
8530 | sparc64-*linux*) | |
8531 | LD="${LD-ld} -m elf32_sparc" | |
8532 | ;; | |
8533 | esac | |
8534 | ;; | |
8535 | *64-bit*) | |
8536 | case $host in | |
8537 | x86_64-*kfreebsd*-gnu) | |
8538 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
8539 | ;; | |
8540 | x86_64-*linux*) | |
8541 | LD="${LD-ld} -m elf_x86_64" | |
8542 | ;; | |
3cbe17f7 AM |
8543 | powerpcle-*linux*) |
8544 | LD="${LD-ld} -m elf64lppc" | |
8545 | ;; | |
8546 | powerpc-*linux*) | |
1cf3d07d SE |
8547 | LD="${LD-ld} -m elf64ppc" |
8548 | ;; | |
8549 | s390*-*linux*|s390*-*tpf*) | |
8550 | LD="${LD-ld} -m elf64_s390" | |
8551 | ;; | |
8552 | sparc*-*linux*) | |
8553 | LD="${LD-ld} -m elf64_sparc" | |
8554 | ;; | |
8555 | esac | |
8556 | ;; | |
96b8a615 | 8557 | esac |
6de9cd9a | 8558 | fi |
96b8a615 AJ |
8559 | rm -rf conftest* |
8560 | ;; | |
6de9cd9a | 8561 | |
96b8a615 AJ |
8562 | *-*-sco3.2v5*) |
8563 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8564 | SAVE_CFLAGS="$CFLAGS" | |
8565 | CFLAGS="$CFLAGS -belf" | |
5213506e RW |
8566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8567 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
22e05272 | 8568 | if ${lt_cv_cc_needs_belf+:} false; then : |
5213506e | 8569 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 8570 | else |
1cf3d07d | 8571 | ac_ext=c |
96b8a615 AJ |
8572 | ac_cpp='$CPP $CPPFLAGS' |
8573 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8574 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8575 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a | 8576 | |
f02d008e | 8577 | if test x$gcc_no_link = xyes; then |
22e05272 | 8578 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 8579 | fi |
5213506e | 8580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a | 8581 | /* end confdefs.h. */ |
6de9cd9a DN |
8582 | |
8583 | int | |
8584 | main () | |
8585 | { | |
96b8a615 | 8586 | |
6de9cd9a DN |
8587 | ; |
8588 | return 0; | |
8589 | } | |
8590 | _ACEOF | |
5213506e | 8591 | if ac_fn_c_try_link "$LINENO"; then : |
96b8a615 | 8592 | lt_cv_cc_needs_belf=yes |
6de9cd9a | 8593 | else |
5213506e | 8594 | lt_cv_cc_needs_belf=no |
6de9cd9a | 8595 | fi |
5213506e RW |
8596 | rm -f core conftest.err conftest.$ac_objext \ |
8597 | conftest$ac_exeext conftest.$ac_ext | |
96b8a615 AJ |
8598 | ac_ext=c |
8599 | ac_cpp='$CPP $CPPFLAGS' | |
8600 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8601 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8602 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8603 | ||
6de9cd9a | 8604 | fi |
5213506e RW |
8605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8606 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
96b8a615 AJ |
8607 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
8608 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8609 | CFLAGS="$SAVE_CFLAGS" | |
8610 | fi | |
8611 | ;; | |
1cf3d07d SE |
8612 | sparc*-*solaris*) |
8613 | # Find out which ABI we are using. | |
8614 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 8615 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8616 | (eval $ac_compile) 2>&5 |
8617 | ac_status=$? | |
5213506e RW |
8618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8619 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8620 | case `/usr/bin/file conftest.o` in |
8621 | *64-bit*) | |
8622 | case $lt_cv_prog_gnu_ld in | |
8623 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
d58dead8 PG |
8624 | *) |
8625 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8626 | LD="${LD-ld} -64" | |
8627 | fi | |
8628 | ;; | |
1cf3d07d SE |
8629 | esac |
8630 | ;; | |
8631 | esac | |
8632 | fi | |
8633 | rm -rf conftest* | |
8634 | ;; | |
96b8a615 AJ |
8635 | esac |
8636 | ||
1cf3d07d | 8637 | need_locks="$enable_libtool_lock" |
96b8a615 | 8638 | |
d58dead8 PG |
8639 | |
8640 | case $host_os in | |
8641 | rhapsody* | darwin*) | |
8642 | if test -n "$ac_tool_prefix"; then | |
8643 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8644 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5213506e RW |
8645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8646 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8647 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
5213506e | 8648 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
8649 | else |
8650 | if test -n "$DSYMUTIL"; then | |
8651 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8652 | else | |
8653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8654 | for as_dir in $PATH | |
8655 | do | |
8656 | IFS=$as_save_IFS | |
8657 | test -z "$as_dir" && as_dir=. | |
5213506e | 8658 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8659 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 8660 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
5213506e | 8661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8662 | break 2 |
8663 | fi | |
8664 | done | |
5213506e RW |
8665 | done |
8666 | IFS=$as_save_IFS | |
d58dead8 PG |
8667 | |
8668 | fi | |
8669 | fi | |
8670 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8671 | if test -n "$DSYMUTIL"; then | |
5213506e RW |
8672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8673 | $as_echo "$DSYMUTIL" >&6; } | |
d58dead8 | 8674 | else |
5213506e RW |
8675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8676 | $as_echo "no" >&6; } | |
d58dead8 PG |
8677 | fi |
8678 | ||
5213506e | 8679 | |
d58dead8 PG |
8680 | fi |
8681 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8682 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8683 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8684 | set dummy dsymutil; ac_word=$2 | |
5213506e RW |
8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8686 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8687 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
5213506e | 8688 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8689 | else |
21be0a5a JB |
8690 | if test -n "$ac_ct_DSYMUTIL"; then |
8691 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
d58dead8 PG |
8692 | else |
8693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8694 | for as_dir in $PATH | |
8695 | do | |
8696 | IFS=$as_save_IFS | |
8697 | test -z "$as_dir" && as_dir=. | |
5213506e | 8698 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8699 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8700 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
5213506e | 8701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8702 | break 2 |
8703 | fi | |
8704 | done | |
5213506e RW |
8705 | done |
8706 | IFS=$as_save_IFS | |
d58dead8 | 8707 | |
d58dead8 PG |
8708 | fi |
8709 | fi | |
21be0a5a JB |
8710 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
8711 | if test -n "$ac_ct_DSYMUTIL"; then | |
8712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8713 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
d58dead8 | 8714 | else |
5213506e RW |
8715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8716 | $as_echo "no" >&6; } | |
d58dead8 PG |
8717 | fi |
8718 | ||
21be0a5a JB |
8719 | if test "x$ac_ct_DSYMUTIL" = x; then |
8720 | DSYMUTIL=":" | |
5213506e RW |
8721 | else |
8722 | case $cross_compiling:$ac_tool_warned in | |
8723 | yes:) | |
8724 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8725 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8726 | ac_tool_warned=yes ;; | |
8727 | esac | |
21be0a5a | 8728 | DSYMUTIL=$ac_ct_DSYMUTIL |
5213506e | 8729 | fi |
d58dead8 | 8730 | else |
21be0a5a | 8731 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d58dead8 PG |
8732 | fi |
8733 | ||
8734 | if test -n "$ac_tool_prefix"; then | |
21be0a5a JB |
8735 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
8736 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5213506e RW |
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8738 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8739 | if ${ac_cv_prog_NMEDIT+:} false; then : |
5213506e | 8740 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8741 | else |
21be0a5a JB |
8742 | if test -n "$NMEDIT"; then |
8743 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
d58dead8 PG |
8744 | else |
8745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8746 | for as_dir in $PATH | |
8747 | do | |
8748 | IFS=$as_save_IFS | |
8749 | test -z "$as_dir" && as_dir=. | |
5213506e | 8750 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8751 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8752 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
5213506e | 8753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8754 | break 2 |
8755 | fi | |
8756 | done | |
5213506e RW |
8757 | done |
8758 | IFS=$as_save_IFS | |
d58dead8 PG |
8759 | |
8760 | fi | |
8761 | fi | |
21be0a5a JB |
8762 | NMEDIT=$ac_cv_prog_NMEDIT |
8763 | if test -n "$NMEDIT"; then | |
8764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8765 | $as_echo "$NMEDIT" >&6; } | |
d58dead8 | 8766 | else |
5213506e RW |
8767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8768 | $as_echo "no" >&6; } | |
d58dead8 PG |
8769 | fi |
8770 | ||
5213506e | 8771 | |
d58dead8 | 8772 | fi |
21be0a5a JB |
8773 | if test -z "$ac_cv_prog_NMEDIT"; then |
8774 | ac_ct_NMEDIT=$NMEDIT | |
8775 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8776 | set dummy nmedit; ac_word=$2 | |
5213506e RW |
8777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8778 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8779 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
5213506e | 8780 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8781 | else |
21be0a5a JB |
8782 | if test -n "$ac_ct_NMEDIT"; then |
8783 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
d58dead8 PG |
8784 | else |
8785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8786 | for as_dir in $PATH | |
8787 | do | |
8788 | IFS=$as_save_IFS | |
8789 | test -z "$as_dir" && as_dir=. | |
5213506e | 8790 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8792 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
5213506e | 8793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8794 | break 2 |
8795 | fi | |
8796 | done | |
5213506e RW |
8797 | done |
8798 | IFS=$as_save_IFS | |
d58dead8 | 8799 | |
d58dead8 PG |
8800 | fi |
8801 | fi | |
21be0a5a JB |
8802 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
8803 | if test -n "$ac_ct_NMEDIT"; then | |
8804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8805 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
d58dead8 | 8806 | else |
5213506e RW |
8807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8808 | $as_echo "no" >&6; } | |
d58dead8 PG |
8809 | fi |
8810 | ||
21be0a5a JB |
8811 | if test "x$ac_ct_NMEDIT" = x; then |
8812 | NMEDIT=":" | |
5213506e RW |
8813 | else |
8814 | case $cross_compiling:$ac_tool_warned in | |
8815 | yes:) | |
8816 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8817 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8818 | ac_tool_warned=yes ;; | |
8819 | esac | |
21be0a5a | 8820 | NMEDIT=$ac_ct_NMEDIT |
5213506e | 8821 | fi |
d58dead8 | 8822 | else |
21be0a5a | 8823 | NMEDIT="$ac_cv_prog_NMEDIT" |
d58dead8 PG |
8824 | fi |
8825 | ||
8826 | if test -n "$ac_tool_prefix"; then | |
21be0a5a JB |
8827 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
8828 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5213506e RW |
8829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8830 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8831 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 8832 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8833 | else |
21be0a5a JB |
8834 | if test -n "$LIPO"; then |
8835 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
d58dead8 PG |
8836 | else |
8837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8838 | for as_dir in $PATH | |
8839 | do | |
8840 | IFS=$as_save_IFS | |
8841 | test -z "$as_dir" && as_dir=. | |
5213506e | 8842 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8843 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8844 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
5213506e | 8845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8846 | break 2 |
8847 | fi | |
8848 | done | |
5213506e RW |
8849 | done |
8850 | IFS=$as_save_IFS | |
d58dead8 PG |
8851 | |
8852 | fi | |
8853 | fi | |
21be0a5a JB |
8854 | LIPO=$ac_cv_prog_LIPO |
8855 | if test -n "$LIPO"; then | |
8856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8857 | $as_echo "$LIPO" >&6; } | |
d58dead8 | 8858 | else |
5213506e RW |
8859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8860 | $as_echo "no" >&6; } | |
d58dead8 PG |
8861 | fi |
8862 | ||
5213506e | 8863 | |
d58dead8 | 8864 | fi |
21be0a5a JB |
8865 | if test -z "$ac_cv_prog_LIPO"; then |
8866 | ac_ct_LIPO=$LIPO | |
8867 | # Extract the first word of "lipo", so it can be a program name with args. | |
8868 | set dummy lipo; ac_word=$2 | |
5213506e RW |
8869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8870 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8871 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
5213506e | 8872 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8873 | else |
21be0a5a JB |
8874 | if test -n "$ac_ct_LIPO"; then |
8875 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
d58dead8 PG |
8876 | else |
8877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8878 | for as_dir in $PATH | |
8879 | do | |
8880 | IFS=$as_save_IFS | |
8881 | test -z "$as_dir" && as_dir=. | |
5213506e | 8882 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8883 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8884 | ac_cv_prog_ac_ct_LIPO="lipo" |
5213506e | 8885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8886 | break 2 |
8887 | fi | |
8888 | done | |
5213506e RW |
8889 | done |
8890 | IFS=$as_save_IFS | |
d58dead8 | 8891 | |
d58dead8 PG |
8892 | fi |
8893 | fi | |
21be0a5a JB |
8894 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
8895 | if test -n "$ac_ct_LIPO"; then | |
8896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8897 | $as_echo "$ac_ct_LIPO" >&6; } | |
d58dead8 | 8898 | else |
5213506e RW |
8899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8900 | $as_echo "no" >&6; } | |
d58dead8 PG |
8901 | fi |
8902 | ||
21be0a5a JB |
8903 | if test "x$ac_ct_LIPO" = x; then |
8904 | LIPO=":" | |
5213506e RW |
8905 | else |
8906 | case $cross_compiling:$ac_tool_warned in | |
8907 | yes:) | |
8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8909 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8910 | ac_tool_warned=yes ;; | |
8911 | esac | |
21be0a5a | 8912 | LIPO=$ac_ct_LIPO |
5213506e | 8913 | fi |
d58dead8 | 8914 | else |
21be0a5a | 8915 | LIPO="$ac_cv_prog_LIPO" |
d58dead8 PG |
8916 | fi |
8917 | ||
21be0a5a JB |
8918 | if test -n "$ac_tool_prefix"; then |
8919 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8920 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8922 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8923 | if ${ac_cv_prog_OTOOL+:} false; then : |
5213506e | 8924 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8925 | else |
21be0a5a JB |
8926 | if test -n "$OTOOL"; then |
8927 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
43e02a8a | 8928 | else |
21be0a5a JB |
8929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8930 | for as_dir in $PATH | |
8931 | do | |
8932 | IFS=$as_save_IFS | |
8933 | test -z "$as_dir" && as_dir=. | |
8934 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8935 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8936 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
8937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8938 | break 2 | |
8939 | fi | |
8940 | done | |
8941 | done | |
8942 | IFS=$as_save_IFS | |
43e02a8a RW |
8943 | |
8944 | fi | |
21be0a5a JB |
8945 | fi |
8946 | OTOOL=$ac_cv_prog_OTOOL | |
8947 | if test -n "$OTOOL"; then | |
8948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8949 | $as_echo "$OTOOL" >&6; } | |
8950 | else | |
8951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8952 | $as_echo "no" >&6; } | |
8953 | fi | |
8954 | ||
d58dead8 | 8955 | |
1cf3d07d | 8956 | fi |
21be0a5a JB |
8957 | if test -z "$ac_cv_prog_OTOOL"; then |
8958 | ac_ct_OTOOL=$OTOOL | |
8959 | # Extract the first word of "otool", so it can be a program name with args. | |
8960 | set dummy otool; ac_word=$2 | |
8961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8962 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8963 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
5213506e | 8964 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 8965 | else |
21be0a5a JB |
8966 | if test -n "$ac_ct_OTOOL"; then |
8967 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8968 | else | |
8969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8970 | for as_dir in $PATH | |
1cf3d07d | 8971 | do |
21be0a5a JB |
8972 | IFS=$as_save_IFS |
8973 | test -z "$as_dir" && as_dir=. | |
8974 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8975 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8976 | ac_cv_prog_ac_ct_OTOOL="otool" |
8977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8978 | break 2 | |
8979 | fi | |
8980 | done | |
8981 | done | |
8982 | IFS=$as_save_IFS | |
6de9cd9a | 8983 | |
21be0a5a JB |
8984 | fi |
8985 | fi | |
8986 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8987 | if test -n "$ac_ct_OTOOL"; then | |
8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8989 | $as_echo "$ac_ct_OTOOL" >&6; } | |
5213506e | 8990 | else |
21be0a5a JB |
8991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8992 | $as_echo "no" >&6; } | |
1cf3d07d | 8993 | fi |
96b8a615 | 8994 | |
21be0a5a JB |
8995 | if test "x$ac_ct_OTOOL" = x; then |
8996 | OTOOL=":" | |
8997 | else | |
8998 | case $cross_compiling:$ac_tool_warned in | |
8999 | yes:) | |
9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9001 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9002 | ac_tool_warned=yes ;; | |
9003 | esac | |
9004 | OTOOL=$ac_ct_OTOOL | |
9005 | fi | |
1cf3d07d | 9006 | else |
21be0a5a | 9007 | OTOOL="$ac_cv_prog_OTOOL" |
1cf3d07d | 9008 | fi |
6de9cd9a | 9009 | |
21be0a5a JB |
9010 | if test -n "$ac_tool_prefix"; then |
9011 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
9012 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
9013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9014 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9015 | if ${ac_cv_prog_OTOOL64+:} false; then : |
21be0a5a JB |
9016 | $as_echo_n "(cached) " >&6 |
9017 | else | |
9018 | if test -n "$OTOOL64"; then | |
9019 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
9020 | else | |
9021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9022 | for as_dir in $PATH | |
9023 | do | |
9024 | IFS=$as_save_IFS | |
9025 | test -z "$as_dir" && as_dir=. | |
9026 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 9027 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
9028 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
9029 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9030 | break 2 | |
9031 | fi | |
1cf3d07d | 9032 | done |
21be0a5a JB |
9033 | done |
9034 | IFS=$as_save_IFS | |
9035 | ||
9036 | fi | |
9037 | fi | |
9038 | OTOOL64=$ac_cv_prog_OTOOL64 | |
9039 | if test -n "$OTOOL64"; then | |
9040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
9041 | $as_echo "$OTOOL64" >&6; } | |
9042 | else | |
9043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9044 | $as_echo "no" >&6; } | |
1cf3d07d | 9045 | fi |
6de9cd9a | 9046 | |
96b8a615 | 9047 | |
1cf3d07d | 9048 | fi |
21be0a5a JB |
9049 | if test -z "$ac_cv_prog_OTOOL64"; then |
9050 | ac_ct_OTOOL64=$OTOOL64 | |
9051 | # Extract the first word of "otool64", so it can be a program name with args. | |
9052 | set dummy otool64; ac_word=$2 | |
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9054 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9055 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
21be0a5a | 9056 | $as_echo_n "(cached) " >&6 |
96b8a615 | 9057 | else |
21be0a5a JB |
9058 | if test -n "$ac_ct_OTOOL64"; then |
9059 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
9060 | else | |
9061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9062 | for as_dir in $PATH | |
96b8a615 | 9063 | do |
21be0a5a JB |
9064 | IFS=$as_save_IFS |
9065 | test -z "$as_dir" && as_dir=. | |
9066 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 9067 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
9068 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
9069 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9070 | break 2 | |
9071 | fi | |
9072 | done | |
9073 | done | |
9074 | IFS=$as_save_IFS | |
96b8a615 | 9075 | |
21be0a5a JB |
9076 | fi |
9077 | fi | |
9078 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
9079 | if test -n "$ac_ct_OTOOL64"; then | |
9080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
9081 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
5213506e | 9082 | else |
21be0a5a JB |
9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9084 | $as_echo "no" >&6; } | |
96b8a615 AJ |
9085 | fi |
9086 | ||
21be0a5a JB |
9087 | if test "x$ac_ct_OTOOL64" = x; then |
9088 | OTOOL64=":" | |
9089 | else | |
9090 | case $cross_compiling:$ac_tool_warned in | |
9091 | yes:) | |
9092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9093 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9094 | ac_tool_warned=yes ;; | |
9095 | esac | |
9096 | OTOOL64=$ac_ct_OTOOL64 | |
9097 | fi | |
6de9cd9a | 9098 | else |
21be0a5a | 9099 | OTOOL64="$ac_cv_prog_OTOOL64" |
6de9cd9a | 9100 | fi |
6de9cd9a | 9101 | |
5213506e | 9102 | |
1cf3d07d | 9103 | |
1cf3d07d SE |
9104 | |
9105 | ||
6de9cd9a | 9106 | |
1cf3d07d | 9107 | |
6de9cd9a | 9108 | |
1cf3d07d | 9109 | |
5213506e | 9110 | |
6de9cd9a | 9111 | |
e87045f3 | 9112 | |
15e92535 | 9113 | |
5213506e | 9114 | |
15e92535 | 9115 | |
15e92535 | 9116 | |
21be0a5a JB |
9117 | |
9118 | ||
9119 | ||
9120 | ||
9121 | ||
9122 | ||
9123 | ||
9124 | ||
9125 | ||
9126 | ||
9127 | ||
9128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
9129 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
22e05272 | 9130 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
21be0a5a | 9131 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 9132 | else |
21be0a5a JB |
9133 | lt_cv_apple_cc_single_mod=no |
9134 | if test -z "${LT_MULTI_MODULE}"; then | |
9135 | # By default we will add the -single_module flag. You can override | |
9136 | # by either setting the environment variable LT_MULTI_MODULE | |
9137 | # non-empty at configure time, or by adding -multi_module to the | |
9138 | # link flags. | |
9139 | rm -rf libconftest.dylib* | |
9140 | echo "int foo(void){return 1;}" > conftest.c | |
9141 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9142 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
9143 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9144 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
9145 | _lt_result=$? | |
9146 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
9147 | lt_cv_apple_cc_single_mod=yes | |
9148 | else | |
9149 | cat conftest.err >&5 | |
9150 | fi | |
9151 | rm -rf libconftest.dylib* | |
9152 | rm -f conftest.* | |
9153 | fi | |
9154 | fi | |
9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
9156 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
9158 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
22e05272 | 9159 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
21be0a5a JB |
9160 | $as_echo_n "(cached) " >&6 |
9161 | else | |
9162 | lt_cv_ld_exported_symbols_list=no | |
9163 | save_LDFLAGS=$LDFLAGS | |
9164 | echo "_main" > conftest.sym | |
9165 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
9166 | if test x$gcc_no_link = xyes; then | |
22e05272 | 9167 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
9168 | fi |
9169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d | 9170 | /* end confdefs.h. */ |
15e92535 | 9171 | |
1cf3d07d SE |
9172 | int |
9173 | main () | |
9174 | { | |
21be0a5a JB |
9175 | |
9176 | ; | |
5213506e | 9177 | return 0; |
1cf3d07d | 9178 | } |
15e92535 | 9179 | _ACEOF |
21be0a5a JB |
9180 | if ac_fn_c_try_link "$LINENO"; then : |
9181 | lt_cv_ld_exported_symbols_list=yes | |
5213506e | 9182 | else |
21be0a5a | 9183 | lt_cv_ld_exported_symbols_list=no |
1cf3d07d | 9184 | fi |
21be0a5a JB |
9185 | rm -f core conftest.err conftest.$ac_objext \ |
9186 | conftest$ac_exeext conftest.$ac_ext | |
9187 | LDFLAGS="$save_LDFLAGS" | |
15e92535 FXC |
9188 | |
9189 | fi | |
21be0a5a JB |
9190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
9191 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
9193 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
22e05272 | 9194 | if ${lt_cv_ld_force_load+:} false; then : |
21be0a5a JB |
9195 | $as_echo_n "(cached) " >&6 |
9196 | else | |
9197 | lt_cv_ld_force_load=no | |
9198 | cat > conftest.c << _LT_EOF | |
9199 | int forced_loaded() { return 2;} | |
9200 | _LT_EOF | |
9201 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
9202 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
9203 | echo "$AR cru libconftest.a conftest.o" >&5 | |
9204 | $AR cru libconftest.a conftest.o 2>&5 | |
9205 | cat > conftest.c << _LT_EOF | |
9206 | int main() { return 0;} | |
9207 | _LT_EOF | |
9208 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
9209 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
9210 | _lt_result=$? | |
9211 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
9212 | lt_cv_ld_force_load=yes | |
9213 | else | |
9214 | cat conftest.err >&5 | |
9215 | fi | |
9216 | rm -f conftest.err libconftest.a conftest conftest.c | |
9217 | rm -rf conftest.dSYM | |
1cf3d07d SE |
9218 | |
9219 | fi | |
21be0a5a JB |
9220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
9221 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
1352bc88 IS |
9222 | # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to |
9223 | # build without first building modern cctools / linker. | |
9224 | case $host_cpu-$host_os in | |
9225 | *-rhapsody* | *-darwin1.[012]) | |
21be0a5a | 9226 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
1352bc88 | 9227 | *-darwin1.*) |
21be0a5a | 9228 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
1352bc88 IS |
9229 | *-darwin*) |
9230 | # darwin 5.x (macOS 10.1) onwards we only need to adjust when the | |
9231 | # deployment target is forced to an earlier version. | |
9232 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in | |
9233 | UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) | |
9234 | ;; | |
ebf6d33b | 9235 | 10.[012][,.]*) |
1352bc88 IS |
9236 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
9237 | ;; | |
9238 | *) | |
9239 | ;; | |
9240 | esac | |
21be0a5a JB |
9241 | ;; |
9242 | esac | |
9243 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
9244 | _lt_dar_single_mod='$single_module' | |
9245 | fi | |
9246 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
9247 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
9248 | else | |
9249 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9250 | fi | |
9251 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
9252 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
9253 | else | |
9254 | _lt_dsymutil= | |
9255 | fi | |
9256 | ;; | |
9257 | esac | |
1cf3d07d | 9258 | |
1cf3d07d | 9259 | for ac_header in dlfcn.h |
5213506e RW |
9260 | do : |
9261 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
9262 | " | |
22e05272 | 9263 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
1cf3d07d | 9264 | cat >>confdefs.h <<_ACEOF |
5213506e | 9265 | #define HAVE_DLFCN_H 1 |
9cdc381b | 9266 | _ACEOF |
9cdc381b | 9267 | |
1cf3d07d SE |
9268 | fi |
9269 | ||
9270 | done | |
9271 | ||
9272 | ||
9273 | ||
43e02a8a RW |
9274 | |
9275 | ||
d58dead8 PG |
9276 | # Set options |
9277 | ||
9278 | ||
9279 | ||
9280 | ||
9281 | enable_win32_dll=no | |
9282 | ||
9283 | ||
5213506e RW |
9284 | # Check whether --enable-shared was given. |
9285 | if test "${enable_shared+set}" = set; then : | |
9286 | enableval=$enable_shared; p=${PACKAGE-default} | |
d58dead8 PG |
9287 | case $enableval in |
9288 | yes) enable_shared=yes ;; | |
9289 | no) enable_shared=no ;; | |
9290 | *) | |
9291 | enable_shared=no | |
9292 | # Look at the argument we got. We use all the common list separators. | |
9293 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9294 | for pkg in $enableval; do | |
9295 | IFS="$lt_save_ifs" | |
9296 | if test "X$pkg" = "X$p"; then | |
9297 | enable_shared=yes | |
9298 | fi | |
9299 | done | |
9300 | IFS="$lt_save_ifs" | |
9301 | ;; | |
9302 | esac | |
9303 | else | |
9304 | enable_shared=yes | |
5213506e RW |
9305 | fi |
9306 | ||
d58dead8 PG |
9307 | |
9308 | ||
9309 | ||
9310 | ||
9311 | ||
9312 | ||
9313 | ||
9314 | ||
5213506e RW |
9315 | # Check whether --enable-static was given. |
9316 | if test "${enable_static+set}" = set; then : | |
9317 | enableval=$enable_static; p=${PACKAGE-default} | |
d58dead8 PG |
9318 | case $enableval in |
9319 | yes) enable_static=yes ;; | |
9320 | no) enable_static=no ;; | |
9321 | *) | |
9322 | enable_static=no | |
9323 | # Look at the argument we got. We use all the common list separators. | |
9324 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9325 | for pkg in $enableval; do | |
9326 | IFS="$lt_save_ifs" | |
9327 | if test "X$pkg" = "X$p"; then | |
9328 | enable_static=yes | |
9329 | fi | |
9330 | done | |
9331 | IFS="$lt_save_ifs" | |
9332 | ;; | |
9333 | esac | |
9334 | else | |
9335 | enable_static=yes | |
5213506e RW |
9336 | fi |
9337 | ||
d58dead8 PG |
9338 | |
9339 | ||
9340 | ||
9341 | ||
9342 | ||
9343 | ||
9344 | ||
9345 | ||
9346 | ||
5213506e RW |
9347 | # Check whether --with-pic was given. |
9348 | if test "${with_pic+set}" = set; then : | |
9349 | withval=$with_pic; pic_mode="$withval" | |
d58dead8 PG |
9350 | else |
9351 | pic_mode=default | |
5213506e RW |
9352 | fi |
9353 | ||
d58dead8 PG |
9354 | |
9355 | test -z "$pic_mode" && pic_mode=default | |
9356 | ||
9357 | ||
9358 | ||
9359 | ||
9360 | ||
9361 | ||
9362 | ||
5213506e RW |
9363 | # Check whether --enable-fast-install was given. |
9364 | if test "${enable_fast_install+set}" = set; then : | |
9365 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
d58dead8 PG |
9366 | case $enableval in |
9367 | yes) enable_fast_install=yes ;; | |
9368 | no) enable_fast_install=no ;; | |
9369 | *) | |
9370 | enable_fast_install=no | |
9371 | # Look at the argument we got. We use all the common list separators. | |
9372 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9373 | for pkg in $enableval; do | |
9374 | IFS="$lt_save_ifs" | |
9375 | if test "X$pkg" = "X$p"; then | |
9376 | enable_fast_install=yes | |
9377 | fi | |
9378 | done | |
9379 | IFS="$lt_save_ifs" | |
9380 | ;; | |
9381 | esac | |
9382 | else | |
9383 | enable_fast_install=yes | |
5213506e RW |
9384 | fi |
9385 | ||
d58dead8 PG |
9386 | |
9387 | ||
9388 | ||
9389 | ||
9390 | ||
9391 | ||
9392 | ||
9393 | ||
9394 | ||
9395 | ||
1cf3d07d SE |
9396 | # This can be used to rebuild libtool when needed |
9397 | LIBTOOL_DEPS="$ltmain" | |
9398 | ||
9399 | # Always use our own libtool. | |
9400 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9401 | ||
9402 | ||
9403 | ||
9404 | ||
9405 | ||
9406 | ||
9407 | ||
9408 | ||
9409 | ||
9410 | ||
9411 | ||
9412 | ||
9413 | ||
9414 | ||
9415 | ||
9416 | ||
9417 | ||
9418 | ||
9419 | ||
9420 | ||
9421 | ||
9422 | ||
9423 | ||
43e02a8a | 9424 | |
1cf3d07d SE |
9425 | |
9426 | ||
9427 | test -z "$LN_S" && LN_S="ln -s" | |
9428 | ||
9429 | ||
9430 | ||
9431 | ||
9432 | ||
9cdc381b | 9433 | |
1cf3d07d SE |
9434 | |
9435 | ||
9436 | ||
9437 | ||
9438 | ||
9439 | ||
9440 | ||
9441 | ||
9442 | if test -n "${ZSH_VERSION+set}" ; then | |
9443 | setopt NO_GLOB_SUBST | |
9cdc381b | 9444 | fi |
9cdc381b | 9445 | |
5213506e RW |
9446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
9447 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 9448 | if ${lt_cv_objdir+:} false; then : |
5213506e | 9449 | $as_echo_n "(cached) " >&6 |
9cdc381b | 9450 | else |
1cf3d07d SE |
9451 | rm -f .libs 2>/dev/null |
9452 | mkdir .libs 2>/dev/null | |
9453 | if test -d .libs; then | |
9454 | lt_cv_objdir=.libs | |
9455 | else | |
9456 | # MS-DOS does not allow filenames that begin with a dot. | |
9457 | lt_cv_objdir=_libs | |
9cdc381b | 9458 | fi |
1cf3d07d | 9459 | rmdir .libs 2>/dev/null |
9cdc381b | 9460 | fi |
5213506e RW |
9461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
9462 | $as_echo "$lt_cv_objdir" >&6; } | |
1cf3d07d SE |
9463 | objdir=$lt_cv_objdir |
9464 | ||
9465 | ||
9466 | ||
9467 | ||
9cdc381b BD |
9468 | |
9469 | cat >>confdefs.h <<_ACEOF | |
1cf3d07d | 9470 | #define LT_OBJDIR "$lt_cv_objdir/" |
9cdc381b BD |
9471 | _ACEOF |
9472 | ||
1cf3d07d SE |
9473 | |
9474 | ||
9475 | ||
1cf3d07d SE |
9476 | case $host_os in |
9477 | aix3*) | |
9478 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9479 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9480 | # vanish in a puff of smoke. | |
9481 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9482 | COLLECT_NAMES= | |
9483 | export COLLECT_NAMES | |
9484 | fi | |
9485 | ;; | |
9486 | esac | |
9487 | ||
1cf3d07d SE |
9488 | # Global variables: |
9489 | ofile=libtool | |
9490 | can_build_shared=yes | |
9491 | ||
9492 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
9493 | # which needs '.lib'). | |
9494 | libext=a | |
9495 | ||
9496 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9497 | ||
9498 | old_CC="$CC" | |
9499 | old_CFLAGS="$CFLAGS" | |
9500 | ||
9501 | # Set sane defaults for various variables | |
9502 | test -z "$CC" && CC=cc | |
9503 | test -z "$LTCC" && LTCC=$CC | |
9504 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9505 | test -z "$LD" && LD=ld | |
9506 | test -z "$ac_objext" && ac_objext=o | |
9507 | ||
9508 | for cc_temp in $compiler""; do | |
9509 | case $cc_temp in | |
9510 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9511 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9512 | \-*) ;; | |
9513 | *) break;; | |
9514 | esac | |
9515 | done | |
43e02a8a | 9516 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
9517 | |
9518 | ||
9519 | # Only perform the check for file, if the check method requires it | |
9520 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9521 | case $deplibs_check_method in | |
9522 | file_magic*) | |
9523 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5213506e RW |
9524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
9525 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
22e05272 | 9526 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 9527 | $as_echo_n "(cached) " >&6 |
9cdc381b | 9528 | else |
1cf3d07d SE |
9529 | case $MAGIC_CMD in |
9530 | [\\/*] | ?:[\\/]*) | |
9531 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9532 | ;; | |
9533 | *) | |
9534 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9535 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9536 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9537 | for ac_dir in $ac_dummy; do | |
9538 | IFS="$lt_save_ifs" | |
9539 | test -z "$ac_dir" && ac_dir=. | |
9540 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9541 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9542 | if test -n "$file_magic_test_file"; then | |
9543 | case $deplibs_check_method in | |
9544 | "file_magic "*) | |
9545 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9546 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9547 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9548 | $EGREP "$file_magic_regex" > /dev/null; then | |
9549 | : | |
9550 | else | |
9551 | cat <<_LT_EOF 1>&2 | |
9cdc381b | 9552 | |
1cf3d07d SE |
9553 | *** Warning: the command libtool uses to detect shared libraries, |
9554 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9555 | *** The result is that libtool may fail to recognize shared libraries | |
9556 | *** as such. This will affect the creation of libtool libraries that | |
9557 | *** depend on shared libraries, but programs linked with such libtool | |
9558 | *** libraries will work regardless of this problem. Nevertheless, you | |
9559 | *** may want to report the problem to your system manager and/or to | |
9560 | *** bug-libtool@gnu.org | |
9561 | ||
9562 | _LT_EOF | |
9563 | fi ;; | |
9564 | esac | |
9565 | fi | |
9566 | break | |
9567 | fi | |
9568 | done | |
9569 | IFS="$lt_save_ifs" | |
9570 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9571 | ;; | |
9572 | esac | |
9573 | fi | |
9574 | ||
9575 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9576 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
9577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9578 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 9579 | else |
5213506e RW |
9580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9581 | $as_echo "no" >&6; } | |
1cf3d07d SE |
9582 | fi |
9583 | ||
9584 | ||
9585 | ||
9586 | ||
9587 | ||
9588 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9589 | if test -n "$ac_tool_prefix"; then | |
5213506e RW |
9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
9591 | $as_echo_n "checking for file... " >&6; } | |
22e05272 | 9592 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 9593 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
9594 | else |
9595 | case $MAGIC_CMD in | |
9596 | [\\/*] | ?:[\\/]*) | |
9597 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9598 | ;; | |
9599 | *) | |
9600 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9601 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9602 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9603 | for ac_dir in $ac_dummy; do | |
9604 | IFS="$lt_save_ifs" | |
9605 | test -z "$ac_dir" && ac_dir=. | |
9606 | if test -f $ac_dir/file; then | |
9607 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9608 | if test -n "$file_magic_test_file"; then | |
9609 | case $deplibs_check_method in | |
9610 | "file_magic "*) | |
9611 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9612 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9613 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9614 | $EGREP "$file_magic_regex" > /dev/null; then | |
9615 | : | |
9616 | else | |
9617 | cat <<_LT_EOF 1>&2 | |
9618 | ||
9619 | *** Warning: the command libtool uses to detect shared libraries, | |
9620 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9621 | *** The result is that libtool may fail to recognize shared libraries | |
9622 | *** as such. This will affect the creation of libtool libraries that | |
9623 | *** depend on shared libraries, but programs linked with such libtool | |
9624 | *** libraries will work regardless of this problem. Nevertheless, you | |
9625 | *** may want to report the problem to your system manager and/or to | |
9626 | *** bug-libtool@gnu.org | |
9627 | ||
9628 | _LT_EOF | |
9629 | fi ;; | |
9630 | esac | |
9631 | fi | |
9632 | break | |
9633 | fi | |
9634 | done | |
9635 | IFS="$lt_save_ifs" | |
9636 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9637 | ;; | |
9638 | esac | |
9639 | fi | |
9640 | ||
9641 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9642 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
9643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9644 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 9645 | else |
5213506e RW |
9646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9647 | $as_echo "no" >&6; } | |
1cf3d07d SE |
9648 | fi |
9649 | ||
9650 | ||
9651 | else | |
9652 | MAGIC_CMD=: | |
9653 | fi | |
9654 | fi | |
9655 | ||
9656 | fi | |
9657 | ;; | |
9658 | esac | |
9659 | ||
9660 | # Use C for the default configuration in the libtool script | |
9661 | ||
9662 | lt_save_CC="$CC" | |
9663 | ac_ext=c | |
9664 | ac_cpp='$CPP $CPPFLAGS' | |
9665 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9666 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9667 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9668 | ||
9669 | ||
9670 | # Source file extension for C test sources. | |
9671 | ac_ext=c | |
9672 | ||
9673 | # Object file extension for compiled C test sources. | |
9674 | objext=o | |
9675 | objext=$objext | |
9676 | ||
9677 | # Code to be used in simple compile tests | |
9678 | lt_simple_compile_test_code="int some_variable = 0;" | |
9679 | ||
9680 | # Code to be used in simple link tests | |
9681 | lt_simple_link_test_code='int main(){return(0);}' | |
9682 | ||
9683 | ||
9684 | ||
9685 | ||
9686 | ||
9687 | ||
9688 | ||
9689 | # If no C compiler was specified, use CC. | |
9690 | LTCC=${LTCC-"$CC"} | |
9691 | ||
9692 | # If no C compiler flags were specified, use CFLAGS. | |
9693 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9694 | ||
9695 | # Allow CC to be a program name with arguments. | |
9696 | compiler=$CC | |
9697 | ||
9698 | # Save the default compiler, since it gets overwritten when the other | |
9699 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9700 | compiler_DEFAULT=$CC | |
9701 | ||
9702 | # save warnings/boilerplate of simple test code | |
9703 | ac_outfile=conftest.$ac_objext | |
9704 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9705 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9706 | _lt_compiler_boilerplate=`cat conftest.err` | |
9707 | $RM conftest* | |
9708 | ||
9709 | ac_outfile=conftest.$ac_objext | |
9710 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9711 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9712 | _lt_linker_boilerplate=`cat conftest.err` | |
d58dead8 | 9713 | $RM -r conftest* |
1cf3d07d SE |
9714 | |
9715 | ||
9716 | ## CAVEAT EMPTOR: | |
9717 | ## There is no encapsulation within the following macros, do not change | |
9718 | ## the running order or otherwise move them around unless you know exactly | |
9719 | ## what you are doing... | |
9720 | if test -n "$compiler"; then | |
9721 | ||
9722 | lt_prog_compiler_no_builtin_flag= | |
9723 | ||
9724 | if test "$GCC" = yes; then | |
43e02a8a RW |
9725 | case $cc_basename in |
9726 | nvcc*) | |
9727 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9728 | *) | |
9729 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9730 | esac | |
1cf3d07d | 9731 | |
5213506e RW |
9732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9733 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
22e05272 | 9734 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
5213506e | 9735 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
9736 | else |
9737 | lt_cv_prog_compiler_rtti_exceptions=no | |
9738 | ac_outfile=conftest.$ac_objext | |
9739 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9740 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9741 | # Insert the option either (1) after the last *FLAGS variable, or | |
9742 | # (2) before a word containing "conftest.", or (3) at the end. | |
9743 | # Note that $ac_compile itself does not contain backslashes and begins | |
9744 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9745 | # The option is referenced via a variable to avoid confusing sed. | |
9746 | lt_compile=`echo "$ac_compile" | $SED \ | |
9747 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9748 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9749 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 9750 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
9751 | (eval "$lt_compile" 2>conftest.err) |
9752 | ac_status=$? | |
9753 | cat conftest.err >&5 | |
43e02a8a | 9754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
9755 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9756 | # The compiler can only warn and ignore the option if not recognized | |
9757 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 9758 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
9759 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9760 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9761 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9762 | fi | |
9763 | fi | |
9764 | $RM conftest* | |
9765 | ||
9766 | fi | |
5213506e RW |
9767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
9768 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
1cf3d07d SE |
9769 | |
9770 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9771 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9772 | else | |
9773 | : | |
9774 | fi | |
9775 | ||
9776 | fi | |
9777 | ||
9778 | ||
9779 | ||
9780 | ||
9781 | ||
9782 | ||
9783 | lt_prog_compiler_wl= | |
9784 | lt_prog_compiler_pic= | |
9785 | lt_prog_compiler_static= | |
9786 | ||
5213506e RW |
9787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9788 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
9789 | |
9790 | if test "$GCC" = yes; then | |
9791 | lt_prog_compiler_wl='-Wl,' | |
9792 | lt_prog_compiler_static='-static' | |
9793 | ||
9794 | case $host_os in | |
9795 | aix*) | |
9796 | # All AIX code is PIC. | |
9797 | if test "$host_cpu" = ia64; then | |
9798 | # AIX 5 now supports IA64 processor | |
9799 | lt_prog_compiler_static='-Bstatic' | |
9800 | fi | |
bad8a4a7 | 9801 | lt_prog_compiler_pic='-fPIC' |
1cf3d07d SE |
9802 | ;; |
9803 | ||
9804 | amigaos*) | |
d58dead8 PG |
9805 | case $host_cpu in |
9806 | powerpc) | |
9807 | # see comment about AmigaOS4 .so support | |
9808 | lt_prog_compiler_pic='-fPIC' | |
9809 | ;; | |
9810 | m68k) | |
9811 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9812 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9813 | # like `-m68040'. | |
9814 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9815 | ;; | |
9816 | esac | |
1cf3d07d SE |
9817 | ;; |
9818 | ||
9819 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9820 | # PIC is the default for these OSes. | |
9821 | ;; | |
9822 | ||
d58dead8 | 9823 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
9824 | # This hack is so that the source file can tell whether it is being |
9825 | # built for inclusion in a dll (and should export symbols for example). | |
9826 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9827 | # (--disable-auto-import) libraries | |
9828 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9829 | ;; | |
9830 | ||
9831 | darwin* | rhapsody*) | |
9832 | # PIC is the default on this platform | |
9833 | # Common symbols not allowed in MH_DYLIB files | |
9834 | lt_prog_compiler_pic='-fno-common' | |
9835 | ;; | |
9836 | ||
43e02a8a RW |
9837 | haiku*) |
9838 | # PIC is the default for Haiku. | |
9839 | # The "-static" flag exists, but is broken. | |
9840 | lt_prog_compiler_static= | |
9841 | ;; | |
9842 | ||
1cf3d07d | 9843 | hpux*) |
d58dead8 PG |
9844 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
9845 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9846 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 9847 | case $host_cpu in |
d58dead8 | 9848 | hppa*64*) |
1cf3d07d SE |
9849 | # +Z the default |
9850 | ;; | |
9851 | *) | |
9852 | lt_prog_compiler_pic='-fPIC' | |
9853 | ;; | |
9854 | esac | |
9855 | ;; | |
9856 | ||
9857 | interix[3-9]*) | |
9858 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9859 | # Instead, we relocate shared libraries at runtime. | |
9860 | ;; | |
9861 | ||
9862 | msdosdjgpp*) | |
9863 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9864 | # on systems that don't support them. | |
9865 | lt_prog_compiler_can_build_shared=no | |
9866 | enable_shared=no | |
9867 | ;; | |
9868 | ||
9869 | *nto* | *qnx*) | |
9870 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9871 | # it will coredump. | |
9872 | lt_prog_compiler_pic='-fPIC -shared' | |
9873 | ;; | |
9874 | ||
9875 | sysv4*MP*) | |
9876 | if test -d /usr/nec; then | |
9877 | lt_prog_compiler_pic=-Kconform_pic | |
9878 | fi | |
9879 | ;; | |
9880 | ||
9881 | *) | |
9882 | lt_prog_compiler_pic='-fPIC' | |
9883 | ;; | |
9884 | esac | |
43e02a8a RW |
9885 | |
9886 | case $cc_basename in | |
9887 | nvcc*) # Cuda Compiler Driver 2.2 | |
9888 | lt_prog_compiler_wl='-Xlinker ' | |
9889 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9890 | ;; | |
9891 | esac | |
1cf3d07d SE |
9892 | else |
9893 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9894 | case $host_os in | |
9895 | aix*) | |
9896 | lt_prog_compiler_wl='-Wl,' | |
9897 | if test "$host_cpu" = ia64; then | |
9898 | # AIX 5 now supports IA64 processor | |
9899 | lt_prog_compiler_static='-Bstatic' | |
9900 | else | |
9901 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9902 | fi | |
9903 | ;; | |
1cf3d07d | 9904 | |
d58dead8 | 9905 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
9906 | # This hack is so that the source file can tell whether it is being |
9907 | # built for inclusion in a dll (and should export symbols for example). | |
9908 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9909 | ;; | |
9910 | ||
9911 | hpux9* | hpux10* | hpux11*) | |
9912 | lt_prog_compiler_wl='-Wl,' | |
9913 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9914 | # not for PA HP-UX. | |
9915 | case $host_cpu in | |
9916 | hppa*64*|ia64*) | |
9917 | # +Z the default | |
9918 | ;; | |
9919 | *) | |
9920 | lt_prog_compiler_pic='+Z' | |
9921 | ;; | |
9922 | esac | |
9923 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9924 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9925 | ;; | |
9926 | ||
9927 | irix5* | irix6* | nonstopux*) | |
9928 | lt_prog_compiler_wl='-Wl,' | |
9929 | # PIC (with -KPIC) is the default. | |
9930 | lt_prog_compiler_static='-non_shared' | |
9931 | ;; | |
9932 | ||
7a9d3fe8 | 9933 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 9934 | case $cc_basename in |
d58dead8 PG |
9935 | # old Intel for x86_64 which still supported -KPIC. |
9936 | ecc*) | |
1cf3d07d SE |
9937 | lt_prog_compiler_wl='-Wl,' |
9938 | lt_prog_compiler_pic='-KPIC' | |
9939 | lt_prog_compiler_static='-static' | |
9940 | ;; | |
d58dead8 PG |
9941 | # icc used to be incompatible with GCC. |
9942 | # ICC 10 doesn't accept -KPIC any more. | |
9943 | icc* | ifort*) | |
9944 | lt_prog_compiler_wl='-Wl,' | |
9945 | lt_prog_compiler_pic='-fPIC' | |
9946 | lt_prog_compiler_static='-static' | |
9947 | ;; | |
9948 | # Lahey Fortran 8.1. | |
9949 | lf95*) | |
9950 | lt_prog_compiler_wl='-Wl,' | |
9951 | lt_prog_compiler_pic='--shared' | |
9952 | lt_prog_compiler_static='--static' | |
9953 | ;; | |
43e02a8a | 9954 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
9955 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9956 | # which looks to be a dead project) | |
9957 | lt_prog_compiler_wl='-Wl,' | |
9958 | lt_prog_compiler_pic='-fpic' | |
9959 | lt_prog_compiler_static='-Bstatic' | |
9960 | ;; | |
9961 | ccc*) | |
9962 | lt_prog_compiler_wl='-Wl,' | |
9963 | # All Alpha code is PIC. | |
9964 | lt_prog_compiler_static='-non_shared' | |
9965 | ;; | |
43e02a8a RW |
9966 | xl* | bgxl* | bgf* | mpixl*) |
9967 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
d58dead8 PG |
9968 | lt_prog_compiler_wl='-Wl,' |
9969 | lt_prog_compiler_pic='-qpic' | |
9970 | lt_prog_compiler_static='-qstaticlink' | |
9971 | ;; | |
1cf3d07d SE |
9972 | *) |
9973 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
9974 | *Sun\ F* | *Sun*Fortran*) |
9975 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
9976 | lt_prog_compiler_pic='-KPIC' |
9977 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 9978 | lt_prog_compiler_wl='' |
1cf3d07d | 9979 | ;; |
43e02a8a RW |
9980 | *Sun\ C*) |
9981 | # Sun C 5.9 | |
1cf3d07d SE |
9982 | lt_prog_compiler_pic='-KPIC' |
9983 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 9984 | lt_prog_compiler_wl='-Wl,' |
1cf3d07d SE |
9985 | ;; |
9986 | esac | |
9987 | ;; | |
9988 | esac | |
9989 | ;; | |
9990 | ||
9991 | newsos6) | |
9992 | lt_prog_compiler_pic='-KPIC' | |
9993 | lt_prog_compiler_static='-Bstatic' | |
9994 | ;; | |
9995 | ||
9996 | *nto* | *qnx*) | |
9997 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9998 | # it will coredump. | |
9999 | lt_prog_compiler_pic='-fPIC -shared' | |
10000 | ;; | |
10001 | ||
10002 | osf3* | osf4* | osf5*) | |
10003 | lt_prog_compiler_wl='-Wl,' | |
10004 | # All OSF/1 code is PIC. | |
10005 | lt_prog_compiler_static='-non_shared' | |
10006 | ;; | |
10007 | ||
10008 | rdos*) | |
10009 | lt_prog_compiler_static='-non_shared' | |
10010 | ;; | |
10011 | ||
10012 | solaris*) | |
10013 | lt_prog_compiler_pic='-KPIC' | |
10014 | lt_prog_compiler_static='-Bstatic' | |
10015 | case $cc_basename in | |
10016 | f77* | f90* | f95*) | |
10017 | lt_prog_compiler_wl='-Qoption ld ';; | |
10018 | *) | |
10019 | lt_prog_compiler_wl='-Wl,';; | |
10020 | esac | |
10021 | ;; | |
10022 | ||
10023 | sunos4*) | |
10024 | lt_prog_compiler_wl='-Qoption ld ' | |
10025 | lt_prog_compiler_pic='-PIC' | |
10026 | lt_prog_compiler_static='-Bstatic' | |
10027 | ;; | |
10028 | ||
10029 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
10030 | lt_prog_compiler_wl='-Wl,' | |
10031 | lt_prog_compiler_pic='-KPIC' | |
10032 | lt_prog_compiler_static='-Bstatic' | |
10033 | ;; | |
10034 | ||
10035 | sysv4*MP*) | |
10036 | if test -d /usr/nec ;then | |
10037 | lt_prog_compiler_pic='-Kconform_pic' | |
10038 | lt_prog_compiler_static='-Bstatic' | |
10039 | fi | |
10040 | ;; | |
10041 | ||
10042 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
10043 | lt_prog_compiler_wl='-Wl,' | |
10044 | lt_prog_compiler_pic='-KPIC' | |
10045 | lt_prog_compiler_static='-Bstatic' | |
10046 | ;; | |
10047 | ||
10048 | unicos*) | |
10049 | lt_prog_compiler_wl='-Wl,' | |
10050 | lt_prog_compiler_can_build_shared=no | |
10051 | ;; | |
10052 | ||
10053 | uts4*) | |
10054 | lt_prog_compiler_pic='-pic' | |
10055 | lt_prog_compiler_static='-Bstatic' | |
10056 | ;; | |
10057 | ||
10058 | *) | |
10059 | lt_prog_compiler_can_build_shared=no | |
10060 | ;; | |
10061 | esac | |
10062 | fi | |
10063 | ||
10064 | case $host_os in | |
10065 | # For platforms which do not support PIC, -DPIC is meaningless: | |
10066 | *djgpp*) | |
10067 | lt_prog_compiler_pic= | |
10068 | ;; | |
10069 | *) | |
10070 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
10071 | ;; | |
10072 | esac | |
5213506e RW |
10073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
10074 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
1cf3d07d SE |
10075 | |
10076 | ||
10077 | ||
10078 | ||
10079 | ||
10080 | ||
10081 | # | |
10082 | # Check to make sure the PIC flag actually works. | |
10083 | # | |
10084 | if test -n "$lt_prog_compiler_pic"; then | |
5213506e RW |
10085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
10086 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
22e05272 | 10087 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
5213506e | 10088 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 10089 | else |
d58dead8 | 10090 | lt_cv_prog_compiler_pic_works=no |
1cf3d07d SE |
10091 | ac_outfile=conftest.$ac_objext |
10092 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10093 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
10094 | # Insert the option either (1) after the last *FLAGS variable, or | |
10095 | # (2) before a word containing "conftest.", or (3) at the end. | |
10096 | # Note that $ac_compile itself does not contain backslashes and begins | |
10097 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10098 | # The option is referenced via a variable to avoid confusing sed. | |
10099 | lt_compile=`echo "$ac_compile" | $SED \ | |
10100 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10101 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10102 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10103 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10104 | (eval "$lt_compile" 2>conftest.err) |
10105 | ac_status=$? | |
10106 | cat conftest.err >&5 | |
43e02a8a | 10107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10108 | if (exit $ac_status) && test -s "$ac_outfile"; then |
10109 | # The compiler can only warn and ignore the option if not recognized | |
10110 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 10111 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
10112 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10113 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 10114 | lt_cv_prog_compiler_pic_works=yes |
1cf3d07d SE |
10115 | fi |
10116 | fi | |
10117 | $RM conftest* | |
10118 | ||
10119 | fi | |
5213506e RW |
10120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
10121 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
1cf3d07d | 10122 | |
d58dead8 | 10123 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
1cf3d07d SE |
10124 | case $lt_prog_compiler_pic in |
10125 | "" | " "*) ;; | |
10126 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10127 | esac | |
10128 | else | |
10129 | lt_prog_compiler_pic= | |
10130 | lt_prog_compiler_can_build_shared=no | |
10131 | fi | |
10132 | ||
10133 | fi | |
10134 | ||
10135 | ||
10136 | ||
10137 | ||
10138 | ||
10139 | ||
10140 | # | |
10141 | # Check to make sure the static flag actually works. | |
10142 | # | |
10143 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
5213506e RW |
10144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
10145 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 10146 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
5213506e | 10147 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 10148 | else |
d58dead8 | 10149 | lt_cv_prog_compiler_static_works=no |
1cf3d07d SE |
10150 | save_LDFLAGS="$LDFLAGS" |
10151 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
10152 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10153 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10154 | # The linker can only warn and ignore the option if not recognized | |
10155 | # So say no if there are warnings | |
10156 | if test -s conftest.err; then | |
10157 | # Append any errors to the config.log. | |
10158 | cat conftest.err 1>&5 | |
43e02a8a | 10159 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
10160 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10161 | if diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 10162 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
10163 | fi |
10164 | else | |
d58dead8 | 10165 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
10166 | fi |
10167 | fi | |
d58dead8 | 10168 | $RM -r conftest* |
1cf3d07d SE |
10169 | LDFLAGS="$save_LDFLAGS" |
10170 | ||
10171 | fi | |
5213506e RW |
10172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
10173 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
1cf3d07d | 10174 | |
d58dead8 | 10175 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
1cf3d07d SE |
10176 | : |
10177 | else | |
10178 | lt_prog_compiler_static= | |
10179 | fi | |
10180 | ||
10181 | ||
10182 | ||
10183 | ||
10184 | ||
10185 | ||
10186 | ||
5213506e RW |
10187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10188 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 10189 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 10190 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10191 | else |
10192 | lt_cv_prog_compiler_c_o=no | |
10193 | $RM -r conftest 2>/dev/null | |
10194 | mkdir conftest | |
10195 | cd conftest | |
10196 | mkdir out | |
10197 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10198 | ||
10199 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10200 | # Insert the option either (1) after the last *FLAGS variable, or | |
10201 | # (2) before a word containing "conftest.", or (3) at the end. | |
10202 | # Note that $ac_compile itself does not contain backslashes and begins | |
10203 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10204 | lt_compile=`echo "$ac_compile" | $SED \ | |
10205 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10206 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10207 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10208 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10209 | (eval "$lt_compile" 2>out/conftest.err) |
10210 | ac_status=$? | |
10211 | cat out/conftest.err >&5 | |
43e02a8a | 10212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10213 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10214 | then | |
10215 | # The compiler can only warn and ignore the option if not recognized | |
10216 | # So say no if there are warnings | |
43e02a8a | 10217 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
10218 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10219 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10220 | lt_cv_prog_compiler_c_o=yes | |
10221 | fi | |
10222 | fi | |
10223 | chmod u+w . 2>&5 | |
10224 | $RM conftest* | |
10225 | # SGI C++ compiler will create directory out/ii_files/ for | |
10226 | # template instantiation | |
10227 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10228 | $RM out/* && rmdir out | |
10229 | cd .. | |
10230 | $RM -r conftest | |
10231 | $RM conftest* | |
10232 | ||
10233 | fi | |
5213506e RW |
10234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10235 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
10236 | |
10237 | ||
10238 | ||
10239 | ||
10240 | ||
10241 | ||
5213506e RW |
10242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10243 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 10244 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 10245 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10246 | else |
10247 | lt_cv_prog_compiler_c_o=no | |
10248 | $RM -r conftest 2>/dev/null | |
10249 | mkdir conftest | |
10250 | cd conftest | |
10251 | mkdir out | |
10252 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10253 | ||
10254 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10255 | # Insert the option either (1) after the last *FLAGS variable, or | |
10256 | # (2) before a word containing "conftest.", or (3) at the end. | |
10257 | # Note that $ac_compile itself does not contain backslashes and begins | |
10258 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10259 | lt_compile=`echo "$ac_compile" | $SED \ | |
10260 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10261 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10262 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10263 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10264 | (eval "$lt_compile" 2>out/conftest.err) |
10265 | ac_status=$? | |
10266 | cat out/conftest.err >&5 | |
43e02a8a | 10267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10268 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10269 | then | |
10270 | # The compiler can only warn and ignore the option if not recognized | |
10271 | # So say no if there are warnings | |
43e02a8a | 10272 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
10273 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10274 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10275 | lt_cv_prog_compiler_c_o=yes | |
10276 | fi | |
10277 | fi | |
10278 | chmod u+w . 2>&5 | |
10279 | $RM conftest* | |
10280 | # SGI C++ compiler will create directory out/ii_files/ for | |
10281 | # template instantiation | |
10282 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10283 | $RM out/* && rmdir out | |
10284 | cd .. | |
10285 | $RM -r conftest | |
10286 | $RM conftest* | |
10287 | ||
10288 | fi | |
5213506e RW |
10289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10290 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
10291 | |
10292 | ||
10293 | ||
10294 | ||
10295 | hard_links="nottested" | |
10296 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10297 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
10298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
10299 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
10300 | hard_links=yes |
10301 | $RM conftest* | |
10302 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10303 | touch conftest.a | |
10304 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10305 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
10306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
10307 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 10308 | if test "$hard_links" = no; then |
5213506e RW |
10309 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
10310 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
10311 | need_locks=warn |
10312 | fi | |
10313 | else | |
10314 | need_locks=no | |
10315 | fi | |
10316 | ||
10317 | ||
10318 | ||
10319 | ||
10320 | ||
10321 | ||
5213506e RW |
10322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10323 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
10324 | |
10325 | runpath_var= | |
10326 | allow_undefined_flag= | |
10327 | always_export_symbols=no | |
10328 | archive_cmds= | |
10329 | archive_expsym_cmds= | |
10330 | compiler_needs_object=no | |
10331 | enable_shared_with_static_runtimes=no | |
10332 | export_dynamic_flag_spec= | |
10333 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10334 | hardcode_automatic=no | |
10335 | hardcode_direct=no | |
10336 | hardcode_direct_absolute=no | |
10337 | hardcode_libdir_flag_spec= | |
10338 | hardcode_libdir_flag_spec_ld= | |
10339 | hardcode_libdir_separator= | |
10340 | hardcode_minus_L=no | |
10341 | hardcode_shlibpath_var=unsupported | |
10342 | inherit_rpath=no | |
10343 | link_all_deplibs=unknown | |
10344 | module_cmds= | |
10345 | module_expsym_cmds= | |
10346 | old_archive_from_new_cmds= | |
10347 | old_archive_from_expsyms_cmds= | |
10348 | thread_safe_flag_spec= | |
10349 | whole_archive_flag_spec= | |
10350 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10351 | # included in the symbol list | |
10352 | include_expsyms= | |
10353 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10354 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10355 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10356 | # as well as any symbol that contains `d'. | |
d58dead8 | 10357 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
10358 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
10359 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10360 | # the symbol is explicitly referenced. Since portable code cannot | |
10361 | # rely on this symbol name, it's probably fine to never include it in | |
10362 | # preloaded symbol tables. | |
d58dead8 | 10363 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
10364 | extract_expsyms_cmds= |
10365 | ||
10366 | case $host_os in | |
d58dead8 | 10367 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10368 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
10369 | # When not using gcc, we currently assume that we are using | |
10370 | # Microsoft Visual C++. | |
10371 | if test "$GCC" != yes; then | |
10372 | with_gnu_ld=no | |
10373 | fi | |
10374 | ;; | |
10375 | interix*) | |
10376 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10377 | with_gnu_ld=yes | |
10378 | ;; | |
10379 | openbsd*) | |
10380 | with_gnu_ld=no | |
10381 | ;; | |
10382 | esac | |
10383 | ||
10384 | ld_shlibs=yes | |
43e02a8a RW |
10385 | |
10386 | # On some targets, GNU ld is compatible enough with the native linker | |
10387 | # that we're better off using the native interface for both. | |
10388 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 10389 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
10390 | case $host_os in |
10391 | aix*) | |
10392 | # The AIX port of GNU ld has always aspired to compatibility | |
10393 | # with the native linker. However, as the warning in the GNU ld | |
10394 | # block says, versions before 2.19.5* couldn't really create working | |
10395 | # shared libraries, regardless of the interface used. | |
10396 | case `$LD -v 2>&1` in | |
10397 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10398 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10399 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10400 | *) | |
10401 | lt_use_gnu_ld_interface=yes | |
10402 | ;; | |
10403 | esac | |
10404 | ;; | |
10405 | *) | |
10406 | lt_use_gnu_ld_interface=yes | |
10407 | ;; | |
10408 | esac | |
10409 | fi | |
10410 | ||
10411 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
10412 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10413 | wlarc='${wl}' | |
10414 | ||
10415 | # Set some defaults for GNU ld with shared library support. These | |
10416 | # are reset later if shared libraries are not supported. Putting them | |
10417 | # here allows them to be overridden if necessary. | |
10418 | runpath_var=LD_RUN_PATH | |
10419 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10420 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10421 | # ancient GNU ld didn't support --whole-archive et. al. | |
10422 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10423 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10424 | else | |
10425 | whole_archive_flag_spec= | |
10426 | fi | |
10427 | supports_anon_versioning=no | |
10428 | case `$LD -v 2>&1` in | |
43e02a8a | 10429 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
10430 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
10431 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10432 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10433 | *\ 2.11.*) ;; # other 2.11 versions | |
10434 | *) supports_anon_versioning=yes ;; | |
10435 | esac | |
10436 | ||
10437 | # See if GNU ld supports shared libraries. | |
10438 | case $host_os in | |
4f6bebc3 | 10439 | aix[3-9]*) |
1cf3d07d SE |
10440 | # On AIX/PPC, the GNU linker is very broken |
10441 | if test "$host_cpu" != ia64; then | |
10442 | ld_shlibs=no | |
10443 | cat <<_LT_EOF 1>&2 | |
10444 | ||
43e02a8a | 10445 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
10446 | *** to be unable to reliably create shared libraries on AIX. |
10447 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
10448 | *** really care for shared libraries, you may want to install binutils |
10449 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10450 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
10451 | |
10452 | _LT_EOF | |
10453 | fi | |
10454 | ;; | |
10455 | ||
10456 | amigaos*) | |
d58dead8 PG |
10457 | case $host_cpu in |
10458 | powerpc) | |
10459 | # see comment about AmigaOS4 .so support | |
10460 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10461 | archive_expsym_cmds='' | |
10462 | ;; | |
10463 | m68k) | |
10464 | 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)' | |
10465 | hardcode_libdir_flag_spec='-L$libdir' | |
10466 | hardcode_minus_L=yes | |
10467 | ;; | |
10468 | esac | |
1cf3d07d SE |
10469 | ;; |
10470 | ||
10471 | beos*) | |
10472 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10473 | allow_undefined_flag=unsupported | |
10474 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10475 | # support --undefined. This deserves some investigation. FIXME | |
10476 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10477 | else | |
10478 | ld_shlibs=no | |
10479 | fi | |
10480 | ;; | |
10481 | ||
d58dead8 | 10482 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10483 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
10484 | # as there is no search path for DLLs. | |
10485 | hardcode_libdir_flag_spec='-L$libdir' | |
43e02a8a | 10486 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
1cf3d07d SE |
10487 | allow_undefined_flag=unsupported |
10488 | always_export_symbols=no | |
10489 | enable_shared_with_static_runtimes=yes | |
10490 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10491 | ||
10492 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10493 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10494 | # If the export-symbols file already is a .def file (1st line | |
10495 | # is EXPORTS), use it as is; otherwise, prepend... | |
10496 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10497 | cp $export_symbols $output_objdir/$soname.def; | |
10498 | else | |
10499 | echo EXPORTS > $output_objdir/$soname.def; | |
10500 | cat $export_symbols >> $output_objdir/$soname.def; | |
10501 | fi~ | |
10502 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10503 | else | |
10504 | ld_shlibs=no | |
10505 | fi | |
10506 | ;; | |
10507 | ||
43e02a8a RW |
10508 | haiku*) |
10509 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10510 | link_all_deplibs=yes | |
10511 | ;; | |
10512 | ||
1cf3d07d SE |
10513 | interix[3-9]*) |
10514 | hardcode_direct=no | |
10515 | hardcode_shlibpath_var=no | |
10516 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10517 | export_dynamic_flag_spec='${wl}-E' | |
10518 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10519 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10520 | # default) and relocated if they conflict, which is a slow very memory | |
10521 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10522 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10523 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10524 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10525 | 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' | |
10526 | ;; | |
10527 | ||
e9085da5 | 10528 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
10529 | tmp_diet=no |
10530 | if test "$host_os" = linux-dietlibc; then | |
10531 | case $cc_basename in | |
10532 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10533 | esac | |
10534 | fi | |
10535 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10536 | && test "$tmp_diet" = no | |
10537 | then | |
a699d672 | 10538 | tmp_addflag=' $pic_flag' |
d58dead8 | 10539 | tmp_sharedflag='-shared' |
1cf3d07d SE |
10540 | case $cc_basename,$host_cpu in |
10541 | pgcc*) # Portland Group C compiler | |
43e02a8a | 10542 | 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 |
10543 | tmp_addflag=' $pic_flag' |
10544 | ;; | |
43e02a8a RW |
10545 | pgf77* | pgf90* | pgf95* | pgfortran*) |
10546 | # Portland Group f77 and f90 compilers | |
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 -Mnomain' ;; |
10549 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10550 | tmp_addflag=' -i_dynamic' ;; | |
10551 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10552 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10553 | ifc* | ifort*) # Intel Fortran compiler | |
10554 | tmp_addflag=' -nofor_main' ;; | |
d58dead8 PG |
10555 | lf95*) # Lahey Fortran 8.1 |
10556 | whole_archive_flag_spec= | |
10557 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 10558 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
d58dead8 PG |
10559 | tmp_sharedflag='-qmkshrobj' |
10560 | tmp_addflag= ;; | |
43e02a8a RW |
10561 | nvcc*) # Cuda Compiler Driver 2.2 |
10562 | 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' | |
10563 | compiler_needs_object=yes | |
10564 | ;; | |
1cf3d07d SE |
10565 | esac |
10566 | case `$CC -V 2>&1 | sed 5q` in | |
10567 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 10568 | 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 |
10569 | compiler_needs_object=yes |
10570 | tmp_sharedflag='-G' ;; | |
10571 | *Sun\ F*) # Sun Fortran 8.3 | |
10572 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
10573 | esac |
10574 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10575 | ||
10576 | if test "x$supports_anon_versioning" = xyes; then | |
10577 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10578 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10579 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10580 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10581 | fi | |
d58dead8 PG |
10582 | |
10583 | case $cc_basename in | |
43e02a8a | 10584 | xlf* | bgf* | bgxlf* | mpixlf*) |
d58dead8 PG |
10585 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10586 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10587 | hardcode_libdir_flag_spec= | |
10588 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10589 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10590 | if test "x$supports_anon_versioning" = xyes; then | |
10591 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10592 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10593 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10594 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10595 | fi | |
10596 | ;; | |
10597 | esac | |
1cf3d07d SE |
10598 | else |
10599 | ld_shlibs=no | |
10600 | fi | |
10601 | ;; | |
10602 | ||
10603 | netbsd*) | |
10604 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10605 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10606 | wlarc= | |
10607 | else | |
10608 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10609 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10610 | fi | |
10611 | ;; | |
10612 | ||
10613 | solaris*) | |
10614 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10615 | ld_shlibs=no | |
10616 | cat <<_LT_EOF 1>&2 | |
10617 | ||
10618 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10619 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10620 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10621 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10622 | *** your PATH or compiler configuration so that the native linker is | |
10623 | *** used, and then restart. | |
10624 | ||
10625 | _LT_EOF | |
10626 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10627 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10628 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10629 | else | |
10630 | ld_shlibs=no | |
10631 | fi | |
10632 | ;; | |
10633 | ||
10634 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10635 | case `$LD -v 2>&1` in | |
10636 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10637 | ld_shlibs=no | |
10638 | cat <<_LT_EOF 1>&2 | |
10639 | ||
10640 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10641 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10642 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10643 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10644 | *** your PATH or compiler configuration so that the native linker is | |
10645 | *** used, and then restart. | |
10646 | ||
10647 | _LT_EOF | |
10648 | ;; | |
10649 | *) | |
10650 | # For security reasons, it is highly recommended that you always | |
10651 | # use absolute paths for naming shared libraries, and exclude the | |
10652 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10653 | # requires that you compile everything twice, which is a pain. | |
10654 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10655 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10656 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10657 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10658 | else | |
10659 | ld_shlibs=no | |
10660 | fi | |
10661 | ;; | |
10662 | esac | |
10663 | ;; | |
10664 | ||
10665 | sunos4*) | |
10666 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10667 | wlarc= | |
10668 | hardcode_direct=yes | |
10669 | hardcode_shlibpath_var=no | |
10670 | ;; | |
10671 | ||
10672 | *) | |
10673 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10674 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10675 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10676 | else | |
10677 | ld_shlibs=no | |
10678 | fi | |
10679 | ;; | |
10680 | esac | |
10681 | ||
10682 | if test "$ld_shlibs" = no; then | |
10683 | runpath_var= | |
10684 | hardcode_libdir_flag_spec= | |
10685 | export_dynamic_flag_spec= | |
10686 | whole_archive_flag_spec= | |
10687 | fi | |
10688 | else | |
10689 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10690 | case $host_os in | |
10691 | aix3*) | |
10692 | allow_undefined_flag=unsupported | |
10693 | always_export_symbols=yes | |
10694 | 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' | |
10695 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10696 | # are no directories specified by -L. | |
10697 | hardcode_minus_L=yes | |
10698 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10699 | # Neither direct hardcoding nor static linking is supported with a | |
10700 | # broken collect2. | |
10701 | hardcode_direct=unsupported | |
10702 | fi | |
10703 | ;; | |
10704 | ||
4f6bebc3 | 10705 | aix[4-9]*) |
1cf3d07d SE |
10706 | if test "$host_cpu" = ia64; then |
10707 | # On IA64, the linker does run time linking by default, so we don't | |
10708 | # have to do anything special. | |
10709 | aix_use_runtimelinking=no | |
10710 | exp_sym_flag='-Bexport' | |
10711 | no_entry_flag="" | |
10712 | else | |
10713 | # If we're using GNU nm, then we don't want the "-C" option. | |
10714 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
10715 | # Also, AIX nm treats weak defined symbols like other global |
10716 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 10717 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 10718 | 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 | 10719 | else |
d3ca2257 | 10720 | 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 |
10721 | fi |
10722 | aix_use_runtimelinking=no | |
10723 | ||
10724 | # Test if we are trying to use run time linking or normal | |
10725 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10726 | # need to do runtime linking. | |
4f6bebc3 | 10727 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
10728 | for ld_flag in $LDFLAGS; do |
10729 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10730 | aix_use_runtimelinking=yes | |
10731 | break | |
10732 | fi | |
10733 | done | |
10734 | ;; | |
10735 | esac | |
10736 | ||
10737 | exp_sym_flag='-bexport' | |
10738 | no_entry_flag='-bnoentry' | |
10739 | fi | |
10740 | ||
10741 | # When large executables or shared objects are built, AIX ld can | |
10742 | # have problems creating the table of contents. If linking a library | |
10743 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10744 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10745 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10746 | ||
10747 | archive_cmds='' | |
10748 | hardcode_direct=yes | |
10749 | hardcode_direct_absolute=yes | |
10750 | hardcode_libdir_separator=':' | |
10751 | link_all_deplibs=yes | |
10752 | file_list_spec='${wl}-f,' | |
10753 | ||
10754 | if test "$GCC" = yes; then | |
10755 | case $host_os in aix4.[012]|aix4.[012].*) | |
10756 | # We only want to do this on AIX 4.2 and lower, the check | |
10757 | # below for broken collect2 doesn't work under 4.3+ | |
10758 | collect2name=`${CC} -print-prog-name=collect2` | |
10759 | if test -f "$collect2name" && | |
10760 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10761 | then | |
10762 | # We have reworked collect2 | |
10763 | : | |
10764 | else | |
10765 | # We have old collect2 | |
10766 | hardcode_direct=unsupported | |
10767 | # It fails to find uninstalled libraries when the uninstalled | |
10768 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10769 | # to unsupported forces relinking | |
10770 | hardcode_minus_L=yes | |
10771 | hardcode_libdir_flag_spec='-L$libdir' | |
10772 | hardcode_libdir_separator= | |
10773 | fi | |
10774 | ;; | |
10775 | esac | |
10776 | shared_flag='-shared' | |
10777 | if test "$aix_use_runtimelinking" = yes; then | |
10778 | shared_flag="$shared_flag "'${wl}-G' | |
10779 | fi | |
10780 | else | |
10781 | # not using gcc | |
10782 | if test "$host_cpu" = ia64; then | |
10783 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10784 | # chokes on -Wl,-G. The following line is correct: | |
10785 | shared_flag='-G' | |
10786 | else | |
10787 | if test "$aix_use_runtimelinking" = yes; then | |
10788 | shared_flag='${wl}-G' | |
10789 | else | |
10790 | shared_flag='${wl}-bM:SRE' | |
10791 | fi | |
10792 | fi | |
10793 | fi | |
10794 | ||
d58dead8 | 10795 | export_dynamic_flag_spec='${wl}-bexpall' |
1cf3d07d SE |
10796 | # It seems that -bexpall does not export symbols beginning with |
10797 | # underscore (_), so it is better to generate a list of symbols to export. | |
10798 | always_export_symbols=yes | |
10799 | if test "$aix_use_runtimelinking" = yes; then | |
10800 | # Warning - without using the other runtime loading flags (-brtl), | |
10801 | # -berok will link without error, but may produce a broken library. | |
10802 | allow_undefined_flag='-berok' | |
10803 | # Determine the default libpath from the value encoded in an | |
10804 | # empty executable. | |
10805 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10806 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10807 | fi |
5213506e | 10808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10809 | /* end confdefs.h. */ |
10810 | ||
10811 | int | |
10812 | main () | |
10813 | { | |
10814 | ||
10815 | ; | |
10816 | return 0; | |
10817 | } | |
10818 | _ACEOF | |
5213506e | 10819 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10820 | |
10821 | lt_aix_libpath_sed=' | |
10822 | /Import File Strings/,/^$/ { | |
10823 | /^0/ { | |
10824 | s/^0 *\(.*\)$/\1/ | |
10825 | p | |
10826 | } | |
10827 | }' | |
10828 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10829 | # Check for a 64-bit object if we didn't find anything. | |
10830 | if test -z "$aix_libpath"; then | |
10831 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10832 | fi | |
1cf3d07d | 10833 | fi |
5213506e RW |
10834 | rm -f core conftest.err conftest.$ac_objext \ |
10835 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10836 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10837 | ||
10838 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 10839 | 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 |
10840 | else |
10841 | if test "$host_cpu" = ia64; then | |
10842 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10843 | allow_undefined_flag="-z nodefs" | |
10844 | 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" | |
10845 | else | |
10846 | # Determine the default libpath from the value encoded in an | |
10847 | # empty executable. | |
10848 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10849 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10850 | fi |
5213506e | 10851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10852 | /* end confdefs.h. */ |
10853 | ||
10854 | int | |
10855 | main () | |
10856 | { | |
10857 | ||
10858 | ; | |
10859 | return 0; | |
10860 | } | |
10861 | _ACEOF | |
5213506e | 10862 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10863 | |
10864 | lt_aix_libpath_sed=' | |
10865 | /Import File Strings/,/^$/ { | |
10866 | /^0/ { | |
10867 | s/^0 *\(.*\)$/\1/ | |
10868 | p | |
10869 | } | |
10870 | }' | |
10871 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10872 | # Check for a 64-bit object if we didn't find anything. | |
10873 | if test -z "$aix_libpath"; then | |
10874 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10875 | fi | |
1cf3d07d | 10876 | fi |
5213506e RW |
10877 | rm -f core conftest.err conftest.$ac_objext \ |
10878 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10879 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10880 | ||
10881 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10882 | # Warning - without using the other run time loading flags, | |
10883 | # -berok will link without error, but may produce a broken library. | |
10884 | no_undefined_flag=' ${wl}-bernotok' | |
10885 | allow_undefined_flag=' ${wl}-berok' | |
43e02a8a RW |
10886 | if test "$with_gnu_ld" = yes; then |
10887 | # We only use this code for GNU lds that support --whole-archive. | |
10888 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10889 | else | |
10890 | # Exported symbols can be pulled into shared objects from archives | |
10891 | whole_archive_flag_spec='$convenience' | |
10892 | fi | |
1cf3d07d SE |
10893 | archive_cmds_need_lc=yes |
10894 | # This is similar to how AIX traditionally builds its shared libraries. | |
10895 | 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' | |
10896 | fi | |
10897 | fi | |
10898 | ;; | |
10899 | ||
10900 | amigaos*) | |
d58dead8 PG |
10901 | case $host_cpu in |
10902 | powerpc) | |
10903 | # see comment about AmigaOS4 .so support | |
10904 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10905 | archive_expsym_cmds='' | |
10906 | ;; | |
10907 | m68k) | |
10908 | 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)' | |
10909 | hardcode_libdir_flag_spec='-L$libdir' | |
10910 | hardcode_minus_L=yes | |
10911 | ;; | |
10912 | esac | |
1cf3d07d SE |
10913 | ;; |
10914 | ||
10915 | bsdi[45]*) | |
10916 | export_dynamic_flag_spec=-rdynamic | |
10917 | ;; | |
10918 | ||
d58dead8 | 10919 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10920 | # When not using gcc, we currently assume that we are using |
10921 | # Microsoft Visual C++. | |
10922 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10923 | # no search path for DLLs. | |
10924 | hardcode_libdir_flag_spec=' ' | |
10925 | allow_undefined_flag=unsupported | |
10926 | # Tell ltmain to make .lib files, not .a files. | |
10927 | libext=lib | |
10928 | # Tell ltmain to make .dll files, not .so files. | |
10929 | shrext_cmds=".dll" | |
10930 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 10931 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
10932 | # The linker will automatically build a .lib file if we build a DLL. |
10933 | old_archive_from_new_cmds='true' | |
10934 | # FIXME: Should let the user specify the lib program. | |
10935 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10936 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10937 | enable_shared_with_static_runtimes=yes | |
10938 | ;; | |
10939 | ||
10940 | darwin* | rhapsody*) | |
1cf3d07d | 10941 | |
d58dead8 PG |
10942 | |
10943 | archive_cmds_need_lc=no | |
10944 | hardcode_direct=no | |
10945 | hardcode_automatic=yes | |
10946 | hardcode_shlibpath_var=unsupported | |
43e02a8a RW |
10947 | if test "$lt_cv_ld_force_load" = "yes"; then |
10948 | 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\"`' | |
10949 | else | |
10950 | whole_archive_flag_spec='' | |
10951 | fi | |
d58dead8 PG |
10952 | link_all_deplibs=yes |
10953 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10954 | case $cc_basename in | |
10955 | ifort*) _lt_dar_can_shared=yes ;; | |
10956 | *) _lt_dar_can_shared=$GCC ;; | |
10957 | esac | |
10958 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 10959 | output_verbose_link_cmd=func_echo_all |
d58dead8 PG |
10960 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10961 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10962 | 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}" | |
10963 | 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}" | |
10964 | ||
10965 | else | |
10966 | ld_shlibs=no | |
10967 | fi | |
10968 | ||
1cf3d07d SE |
10969 | ;; |
10970 | ||
10971 | dgux*) | |
10972 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10973 | hardcode_libdir_flag_spec='-L$libdir' | |
10974 | hardcode_shlibpath_var=no | |
10975 | ;; | |
10976 | ||
1cf3d07d SE |
10977 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10978 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10979 | # does not break anything, and helps significantly (at the cost of a little | |
10980 | # extra space). | |
10981 | freebsd2.2*) | |
10982 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10983 | hardcode_libdir_flag_spec='-R$libdir' | |
10984 | hardcode_direct=yes | |
10985 | hardcode_shlibpath_var=no | |
10986 | ;; | |
10987 | ||
10988 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 10989 | freebsd2.*) |
1cf3d07d SE |
10990 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10991 | hardcode_direct=yes | |
10992 | hardcode_minus_L=yes | |
10993 | hardcode_shlibpath_var=no | |
10994 | ;; | |
10995 | ||
10996 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10997 | freebsd* | dragonfly*) | |
10998 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10999 | hardcode_libdir_flag_spec='-R$libdir' | |
11000 | hardcode_direct=yes | |
11001 | hardcode_shlibpath_var=no | |
11002 | ;; | |
11003 | ||
11004 | hpux9*) | |
11005 | if test "$GCC" = yes; then | |
11006 | 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' | |
11007 | else | |
11008 | 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' | |
11009 | fi | |
11010 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11011 | hardcode_libdir_separator=: | |
11012 | hardcode_direct=yes | |
11013 | ||
11014 | # hardcode_minus_L: Not really in the search PATH, | |
11015 | # but as the default location of the library. | |
11016 | hardcode_minus_L=yes | |
11017 | export_dynamic_flag_spec='${wl}-E' | |
11018 | ;; | |
11019 | ||
11020 | hpux10*) | |
43e02a8a | 11021 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
11022 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
11023 | else | |
11024 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11025 | fi | |
11026 | if test "$with_gnu_ld" = no; then | |
11027 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11028 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
11029 | hardcode_libdir_separator=: | |
11030 | hardcode_direct=yes | |
11031 | hardcode_direct_absolute=yes | |
11032 | export_dynamic_flag_spec='${wl}-E' | |
11033 | # hardcode_minus_L: Not really in the search PATH, | |
11034 | # but as the default location of the library. | |
11035 | hardcode_minus_L=yes | |
11036 | fi | |
11037 | ;; | |
11038 | ||
11039 | hpux11*) | |
43e02a8a | 11040 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
11041 | case $host_cpu in |
11042 | hppa*64*) | |
4e4ba647 | 11043 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
11044 | ;; |
11045 | ia64*) | |
d58dead8 | 11046 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
11047 | ;; |
11048 | *) | |
11049 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11050 | ;; | |
11051 | esac | |
11052 | else | |
11053 | case $host_cpu in | |
11054 | hppa*64*) | |
4e4ba647 | 11055 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
11056 | ;; |
11057 | ia64*) | |
11058 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
11059 | ;; | |
11060 | *) | |
43e02a8a RW |
11061 | |
11062 | # Older versions of the 11.00 compiler do not understand -b yet | |
11063 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
11064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
11065 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
22e05272 | 11066 | if ${lt_cv_prog_compiler__b+:} false; then : |
43e02a8a RW |
11067 | $as_echo_n "(cached) " >&6 |
11068 | else | |
11069 | lt_cv_prog_compiler__b=no | |
11070 | save_LDFLAGS="$LDFLAGS" | |
11071 | LDFLAGS="$LDFLAGS -b" | |
11072 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11073 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11074 | # The linker can only warn and ignore the option if not recognized | |
11075 | # So say no if there are warnings | |
11076 | if test -s conftest.err; then | |
11077 | # Append any errors to the config.log. | |
11078 | cat conftest.err 1>&5 | |
11079 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11080 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11081 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11082 | lt_cv_prog_compiler__b=yes | |
11083 | fi | |
11084 | else | |
11085 | lt_cv_prog_compiler__b=yes | |
11086 | fi | |
11087 | fi | |
11088 | $RM -r conftest* | |
11089 | LDFLAGS="$save_LDFLAGS" | |
11090 | ||
11091 | fi | |
11092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11093 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11094 | ||
11095 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
11096 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11097 | else | |
11098 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11099 | fi | |
11100 | ||
1cf3d07d SE |
11101 | ;; |
11102 | esac | |
11103 | fi | |
11104 | if test "$with_gnu_ld" = no; then | |
11105 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11106 | hardcode_libdir_separator=: | |
11107 | ||
11108 | case $host_cpu in | |
11109 | hppa*64*|ia64*) | |
11110 | hardcode_direct=no | |
11111 | hardcode_shlibpath_var=no | |
11112 | ;; | |
11113 | *) | |
11114 | hardcode_direct=yes | |
11115 | hardcode_direct_absolute=yes | |
11116 | export_dynamic_flag_spec='${wl}-E' | |
11117 | ||
11118 | # hardcode_minus_L: Not really in the search PATH, | |
11119 | # but as the default location of the library. | |
11120 | hardcode_minus_L=yes | |
11121 | ;; | |
11122 | esac | |
11123 | fi | |
11124 | ;; | |
11125 | ||
11126 | irix5* | irix6* | nonstopux*) | |
11127 | if test "$GCC" = yes; then | |
43e02a8a | 11128 | 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 |
11129 | # Try to use the -exported_symbol ld option, if it does not |
11130 | # work, assume that -exports_file does not work either and | |
11131 | # implicitly export all symbols. | |
11132 | save_LDFLAGS="$LDFLAGS" | |
11133 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
11134 | if test x$gcc_no_link = xyes; then | |
22e05272 | 11135 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 11136 | fi |
5213506e RW |
11137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11138 | /* end confdefs.h. */ | |
1cf3d07d SE |
11139 | int foo(void) {} |
11140 | _ACEOF | |
5213506e | 11141 | if ac_fn_c_try_link "$LINENO"; then : |
43e02a8a | 11142 | 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 | 11143 | |
1cf3d07d | 11144 | fi |
5213506e RW |
11145 | rm -f core conftest.err conftest.$ac_objext \ |
11146 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11147 | LDFLAGS="$save_LDFLAGS" |
11148 | else | |
43e02a8a RW |
11149 | 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' |
11150 | 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 |
11151 | fi |
11152 | archive_cmds_need_lc='no' | |
11153 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11154 | hardcode_libdir_separator=: | |
11155 | inherit_rpath=yes | |
11156 | link_all_deplibs=yes | |
11157 | ;; | |
11158 | ||
11159 | netbsd*) | |
11160 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11161 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11162 | else | |
11163 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11164 | fi | |
11165 | hardcode_libdir_flag_spec='-R$libdir' | |
11166 | hardcode_direct=yes | |
11167 | hardcode_shlibpath_var=no | |
11168 | ;; | |
11169 | ||
11170 | newsos6) | |
11171 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11172 | hardcode_direct=yes | |
11173 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11174 | hardcode_libdir_separator=: | |
11175 | hardcode_shlibpath_var=no | |
11176 | ;; | |
11177 | ||
11178 | *nto* | *qnx*) | |
11179 | ;; | |
11180 | ||
11181 | openbsd*) | |
d58dead8 PG |
11182 | if test -f /usr/libexec/ld.so; then |
11183 | hardcode_direct=yes | |
11184 | hardcode_shlibpath_var=no | |
11185 | hardcode_direct_absolute=yes | |
11186 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 11187 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d58dead8 | 11188 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 11189 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
d58dead8 PG |
11190 | export_dynamic_flag_spec='${wl}-E' |
11191 | else | |
11192 | case $host_os in | |
11193 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
11194 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11195 | hardcode_libdir_flag_spec='-R$libdir' | |
11196 | ;; | |
11197 | *) | |
11198 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11199 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11200 | ;; | |
11201 | esac | |
11202 | fi | |
11203 | else | |
11204 | ld_shlibs=no | |
1cf3d07d SE |
11205 | fi |
11206 | ;; | |
11207 | ||
11208 | os2*) | |
11209 | hardcode_libdir_flag_spec='-L$libdir' | |
11210 | hardcode_minus_L=yes | |
11211 | allow_undefined_flag=unsupported | |
43e02a8a | 11212 | 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 |
11213 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
11214 | ;; | |
11215 | ||
11216 | osf3*) | |
11217 | if test "$GCC" = yes; then | |
11218 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 11219 | 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 |
11220 | else |
11221 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 11222 | 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 |
11223 | fi |
11224 | archive_cmds_need_lc='no' | |
11225 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11226 | hardcode_libdir_separator=: | |
11227 | ;; | |
11228 | ||
11229 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11230 | if test "$GCC" = yes; then | |
11231 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 11232 | 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 |
11233 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
11234 | else | |
11235 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 11236 | 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 | 11237 | 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 | 11238 | $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 |
11239 | |
11240 | # Both c and cxx compiler support -rpath directly | |
11241 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11242 | fi | |
11243 | archive_cmds_need_lc='no' | |
11244 | hardcode_libdir_separator=: | |
11245 | ;; | |
11246 | ||
11247 | solaris*) | |
11248 | no_undefined_flag=' -z defs' | |
11249 | if test "$GCC" = yes; then | |
11250 | wlarc='${wl}' | |
11251 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11252 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11253 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11254 | else | |
11255 | case `$CC -V 2>&1` in | |
11256 | *"Compilers 5.0"*) | |
11257 | wlarc='' | |
11258 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11259 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11260 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11261 | ;; | |
11262 | *) | |
11263 | wlarc='${wl}' | |
11264 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11265 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11266 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11267 | ;; | |
11268 | esac | |
11269 | fi | |
11270 | hardcode_libdir_flag_spec='-R$libdir' | |
11271 | hardcode_shlibpath_var=no | |
11272 | case $host_os in | |
11273 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11274 | *) | |
11275 | # The compiler driver will combine and reorder linker options, | |
11276 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11277 | # but is careful enough not to reorder. | |
11278 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11279 | if test "$GCC" = yes; then | |
11280 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11281 | else | |
11282 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11283 | fi | |
11284 | ;; | |
11285 | esac | |
11286 | link_all_deplibs=yes | |
11287 | ;; | |
11288 | ||
11289 | sunos4*) | |
11290 | if test "x$host_vendor" = xsequent; then | |
11291 | # Use $CC to link under sequent, because it throws in some extra .o | |
11292 | # files that make .init and .fini sections work. | |
11293 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11294 | else | |
11295 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11296 | fi | |
11297 | hardcode_libdir_flag_spec='-L$libdir' | |
11298 | hardcode_direct=yes | |
11299 | hardcode_minus_L=yes | |
11300 | hardcode_shlibpath_var=no | |
11301 | ;; | |
11302 | ||
11303 | sysv4) | |
11304 | case $host_vendor in | |
11305 | sni) | |
11306 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11307 | hardcode_direct=yes # is this really true??? | |
11308 | ;; | |
11309 | siemens) | |
11310 | ## LD is ld it makes a PLAMLIB | |
11311 | ## CC just makes a GrossModule. | |
11312 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11313 | reload_cmds='$CC -r -o $output$reload_objs' | |
11314 | hardcode_direct=no | |
11315 | ;; | |
11316 | motorola) | |
11317 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11318 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11319 | ;; | |
11320 | esac | |
11321 | runpath_var='LD_RUN_PATH' | |
11322 | hardcode_shlibpath_var=no | |
11323 | ;; | |
11324 | ||
11325 | sysv4.3*) | |
11326 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11327 | hardcode_shlibpath_var=no | |
11328 | export_dynamic_flag_spec='-Bexport' | |
11329 | ;; | |
11330 | ||
11331 | sysv4*MP*) | |
11332 | if test -d /usr/nec; then | |
11333 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11334 | hardcode_shlibpath_var=no | |
11335 | runpath_var=LD_RUN_PATH | |
11336 | hardcode_runpath_var=yes | |
11337 | ld_shlibs=yes | |
11338 | fi | |
11339 | ;; | |
11340 | ||
11341 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11342 | no_undefined_flag='${wl}-z,text' | |
11343 | archive_cmds_need_lc=no | |
11344 | hardcode_shlibpath_var=no | |
11345 | runpath_var='LD_RUN_PATH' | |
11346 | ||
11347 | if test "$GCC" = yes; then | |
11348 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11349 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11350 | else | |
11351 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11352 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11353 | fi | |
11354 | ;; | |
11355 | ||
11356 | sysv5* | sco3.2v5* | sco5v6*) | |
11357 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11358 | # link with -lc, and that would cause any symbols used from libc to | |
11359 | # always be unresolved, which means just about no library would | |
11360 | # ever link correctly. If we're not using GNU ld we use -z text | |
11361 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11362 | # as -z defs. | |
11363 | no_undefined_flag='${wl}-z,text' | |
11364 | allow_undefined_flag='${wl}-z,nodefs' | |
11365 | archive_cmds_need_lc=no | |
11366 | hardcode_shlibpath_var=no | |
11367 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11368 | hardcode_libdir_separator=':' | |
11369 | link_all_deplibs=yes | |
11370 | export_dynamic_flag_spec='${wl}-Bexport' | |
11371 | runpath_var='LD_RUN_PATH' | |
11372 | ||
11373 | if test "$GCC" = yes; then | |
11374 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11375 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11376 | else | |
11377 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11378 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11379 | fi | |
11380 | ;; | |
11381 | ||
11382 | uts4*) | |
11383 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11384 | hardcode_libdir_flag_spec='-L$libdir' | |
11385 | hardcode_shlibpath_var=no | |
11386 | ;; | |
11387 | ||
11388 | *) | |
11389 | ld_shlibs=no | |
11390 | ;; | |
11391 | esac | |
11392 | ||
11393 | if test x$host_vendor = xsni; then | |
11394 | case $host in | |
11395 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11396 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11397 | ;; | |
11398 | esac | |
11399 | fi | |
11400 | fi | |
11401 | ||
5213506e RW |
11402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
11403 | $as_echo "$ld_shlibs" >&6; } | |
1cf3d07d SE |
11404 | test "$ld_shlibs" = no && can_build_shared=no |
11405 | ||
11406 | with_gnu_ld=$with_gnu_ld | |
11407 | ||
11408 | ||
11409 | ||
11410 | ||
11411 | ||
11412 | ||
11413 | ||
11414 | ||
11415 | ||
11416 | ||
11417 | ||
11418 | ||
11419 | ||
11420 | ||
11421 | ||
11422 | # | |
11423 | # Do we need to explicitly link libc? | |
11424 | # | |
11425 | case "x$archive_cmds_need_lc" in | |
11426 | x|xyes) | |
11427 | # Assume -lc should be added | |
11428 | archive_cmds_need_lc=yes | |
11429 | ||
11430 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11431 | case $archive_cmds in | |
11432 | *'~'*) | |
11433 | # FIXME: we may have to deal with multi-command sequences. | |
11434 | ;; | |
11435 | '$CC '*) | |
11436 | # Test whether the compiler implicitly links with -lc since on some | |
11437 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11438 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
11439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
11440 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 11441 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
5213506e | 11442 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
11443 | else |
11444 | $RM conftest* | |
11445 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 11446 | |
5213506e | 11447 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
11448 | (eval $ac_compile) 2>&5 |
11449 | ac_status=$? | |
5213506e RW |
11450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11451 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
11452 | soname=conftest |
11453 | lib=conftest | |
11454 | libobjs=conftest.$ac_objext | |
11455 | deplibs= | |
11456 | wl=$lt_prog_compiler_wl | |
11457 | pic_flag=$lt_prog_compiler_pic | |
11458 | compiler_flags=-v | |
11459 | linker_flags=-v | |
11460 | verstring= | |
11461 | output_objdir=. | |
11462 | libname=conftest | |
11463 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11464 | allow_undefined_flag= | |
5213506e | 11465 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d SE |
11466 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11467 | ac_status=$? | |
5213506e RW |
11468 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11469 | test $ac_status = 0; } | |
baafc534 RW |
11470 | then |
11471 | lt_cv_archive_cmds_need_lc=no | |
11472 | else | |
11473 | lt_cv_archive_cmds_need_lc=yes | |
11474 | fi | |
11475 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11476 | else | |
11477 | cat conftest.err 1>&5 | |
11478 | fi | |
11479 | $RM conftest* | |
11480 | ||
11481 | fi | |
5213506e RW |
11482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
11483 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
baafc534 | 11484 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
1cf3d07d SE |
11485 | ;; |
11486 | esac | |
11487 | fi | |
11488 | ;; | |
11489 | esac | |
11490 | ||
11491 | ||
11492 | ||
11493 | ||
11494 | ||
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 | ||
5213506e RW |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
11648 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
d58dead8 PG |
11649 | |
11650 | if test "$GCC" = yes; then | |
1cf3d07d SE |
11651 | case $host_os in |
11652 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11653 | *) lt_awk_arg="/^libraries:/" ;; | |
11654 | esac | |
43e02a8a RW |
11655 | case $host_os in |
11656 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11657 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11658 | esac | |
11659 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11660 | case $lt_search_path_spec in | |
11661 | *\;*) | |
1cf3d07d SE |
11662 | # if the path contains ";" then we assume it to be the separator |
11663 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11664 | # assumed that no part of a normal pathname contains ";" but that should | |
11665 | # okay in the real world where ";" in dirpaths is itself problematic. | |
43e02a8a RW |
11666 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11667 | ;; | |
11668 | *) | |
11669 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11670 | ;; | |
11671 | esac | |
1cf3d07d SE |
11672 | # Ok, now we have the path, separated by spaces, we can step through it |
11673 | # and add multilib dir if necessary. | |
11674 | lt_tmp_lt_search_path_spec= | |
11675 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11676 | for lt_sys_path in $lt_search_path_spec; do | |
11677 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11678 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11679 | else | |
11680 | test -d "$lt_sys_path" && \ | |
11681 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11682 | fi | |
11683 | done | |
43e02a8a | 11684 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
1cf3d07d SE |
11685 | BEGIN {RS=" "; FS="/|\n";} { |
11686 | lt_foo=""; | |
11687 | lt_count=0; | |
11688 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11689 | if ($lt_i != "" && $lt_i != ".") { | |
11690 | if ($lt_i == "..") { | |
11691 | lt_count++; | |
11692 | } else { | |
11693 | if (lt_count == 0) { | |
11694 | lt_foo="/" $lt_i lt_foo; | |
11695 | } else { | |
11696 | lt_count--; | |
11697 | } | |
11698 | } | |
11699 | } | |
11700 | } | |
11701 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11702 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11703 | }'` | |
43e02a8a RW |
11704 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11705 | # for these hosts. | |
11706 | case $host_os in | |
11707 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11708 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11709 | esac | |
11710 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
1cf3d07d SE |
11711 | else |
11712 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11713 | fi | |
11714 | library_names_spec= | |
11715 | libname_spec='lib$name' | |
11716 | soname_spec= | |
11717 | shrext_cmds=".so" | |
11718 | postinstall_cmds= | |
11719 | postuninstall_cmds= | |
11720 | finish_cmds= | |
11721 | finish_eval= | |
11722 | shlibpath_var= | |
11723 | shlibpath_overrides_runpath=unknown | |
11724 | version_type=none | |
11725 | dynamic_linker="$host_os ld.so" | |
11726 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11727 | need_lib_prefix=unknown | |
11728 | hardcode_into_libs=no | |
11729 | ||
11730 | # when you set need_version to no, make sure it does not cause -set_version | |
11731 | # flags to be left without arguments | |
11732 | need_version=unknown | |
11733 | ||
11734 | case $host_os in | |
11735 | aix3*) | |
11736 | version_type=linux | |
11737 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11738 | shlibpath_var=LIBPATH | |
11739 | ||
11740 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11741 | soname_spec='${libname}${release}${shared_ext}$major' | |
11742 | ;; | |
11743 | ||
4f6bebc3 | 11744 | aix[4-9]*) |
1cf3d07d SE |
11745 | version_type=linux |
11746 | need_lib_prefix=no | |
11747 | need_version=no | |
11748 | hardcode_into_libs=yes | |
11749 | if test "$host_cpu" = ia64; then | |
11750 | # AIX 5 supports IA64 | |
11751 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11752 | shlibpath_var=LD_LIBRARY_PATH | |
11753 | else | |
11754 | # With GCC up to 2.95.x, collect2 would create an import file | |
11755 | # for dependence libraries. The import file would start with | |
11756 | # the line `#! .'. This would cause the generated library to | |
11757 | # depend on `.', always an invalid library. This was fixed in | |
11758 | # development snapshots of GCC prior to 3.0. | |
11759 | case $host_os in | |
11760 | aix4 | aix4.[01] | aix4.[01].*) | |
11761 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11762 | echo ' yes ' | |
11763 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11764 | : | |
11765 | else | |
11766 | can_build_shared=no | |
11767 | fi | |
11768 | ;; | |
11769 | esac | |
11770 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11771 | # soname into executable. Probably we can add versioning support to | |
11772 | # collect2, so additional links can be useful in future. | |
11773 | if test "$aix_use_runtimelinking" = yes; then | |
11774 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11775 | # instead of lib<name>.a to let people know that these are not | |
11776 | # typical AIX shared libraries. | |
11777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11778 | else | |
11779 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11780 | # and later when we are not doing run time linking. | |
11781 | library_names_spec='${libname}${release}.a $libname.a' | |
11782 | soname_spec='${libname}${release}${shared_ext}$major' | |
11783 | fi | |
11784 | shlibpath_var=LIBPATH | |
11785 | fi | |
11786 | ;; | |
11787 | ||
11788 | amigaos*) | |
d58dead8 PG |
11789 | case $host_cpu in |
11790 | powerpc) | |
11791 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11792 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11793 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11794 | ;; | |
11795 | m68k) | |
1cf3d07d SE |
11796 | library_names_spec='$libname.ixlibrary $libname.a' |
11797 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 11798 | 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 |
11799 | ;; |
11800 | esac | |
1cf3d07d SE |
11801 | ;; |
11802 | ||
11803 | beos*) | |
11804 | library_names_spec='${libname}${shared_ext}' | |
11805 | dynamic_linker="$host_os ld.so" | |
11806 | shlibpath_var=LIBRARY_PATH | |
11807 | ;; | |
11808 | ||
11809 | bsdi[45]*) | |
11810 | version_type=linux | |
11811 | need_version=no | |
11812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11813 | soname_spec='${libname}${release}${shared_ext}$major' | |
11814 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11815 | shlibpath_var=LD_LIBRARY_PATH | |
11816 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11817 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11818 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11819 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11820 | # libtool to hard-code these into programs | |
11821 | ;; | |
11822 | ||
d58dead8 | 11823 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
11824 | version_type=windows |
11825 | shrext_cmds=".dll" | |
11826 | need_version=no | |
11827 | need_lib_prefix=no | |
11828 | ||
d58dead8 PG |
11829 | case $GCC,$host_os in |
11830 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
11831 | library_names_spec='$libname.dll.a' |
11832 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11833 | postinstall_cmds='base_file=`basename \${file}`~ | |
11834 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11835 | dldir=$destdir/`dirname \$dlpath`~ | |
11836 | test -d \$dldir || mkdir -p \$dldir~ | |
11837 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11838 | chmod a+x \$dldir/$dlname~ | |
11839 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11840 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11841 | fi' | |
11842 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11843 | dlpath=$dir/\$dldll~ | |
11844 | $RM \$dlpath' | |
11845 | shlibpath_overrides_runpath=yes | |
11846 | ||
11847 | case $host_os in | |
11848 | cygwin*) | |
11849 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11850 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a RW |
11851 | |
11852 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
1cf3d07d | 11853 | ;; |
d58dead8 | 11854 | mingw* | cegcc*) |
1cf3d07d SE |
11855 | # MinGW DLLs use traditional 'lib' prefix |
11856 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
11857 | ;; |
11858 | pw32*) | |
11859 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11860 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11861 | ;; | |
11862 | esac | |
11863 | ;; | |
11864 | ||
11865 | *) | |
11866 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11867 | ;; | |
11868 | esac | |
11869 | dynamic_linker='Win32 ld.exe' | |
11870 | # FIXME: first we should search . and the directory the executable is in | |
11871 | shlibpath_var=PATH | |
11872 | ;; | |
11873 | ||
11874 | darwin* | rhapsody*) | |
11875 | dynamic_linker="$host_os dyld" | |
11876 | version_type=darwin | |
11877 | need_lib_prefix=no | |
11878 | need_version=no | |
11879 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11880 | soname_spec='${libname}${release}${major}$shared_ext' | |
11881 | shlibpath_overrides_runpath=yes | |
11882 | shlibpath_var=DYLD_LIBRARY_PATH | |
11883 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11884 | ||
11885 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11886 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11887 | ;; | |
11888 | ||
11889 | dgux*) | |
11890 | version_type=linux | |
11891 | need_lib_prefix=no | |
11892 | need_version=no | |
11893 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11894 | soname_spec='${libname}${release}${shared_ext}$major' | |
11895 | shlibpath_var=LD_LIBRARY_PATH | |
11896 | ;; | |
11897 | ||
1cf3d07d SE |
11898 | freebsd* | dragonfly*) |
11899 | # DragonFly does not have aout. When/if they implement a new | |
11900 | # versioning mechanism, adjust this. | |
11901 | if test -x /usr/bin/objformat; then | |
11902 | objformat=`/usr/bin/objformat` | |
11903 | else | |
11904 | case $host_os in | |
c6084f68 | 11905 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
11906 | *) objformat=elf ;; |
11907 | esac | |
11908 | fi | |
11909 | version_type=freebsd-$objformat | |
11910 | case $version_type in | |
11911 | freebsd-elf*) | |
11912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11913 | need_version=no | |
11914 | need_lib_prefix=no | |
11915 | ;; | |
11916 | freebsd-*) | |
11917 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11918 | need_version=yes | |
11919 | ;; | |
11920 | esac | |
11921 | shlibpath_var=LD_LIBRARY_PATH | |
11922 | case $host_os in | |
c6084f68 | 11923 | freebsd2.*) |
1cf3d07d SE |
11924 | shlibpath_overrides_runpath=yes |
11925 | ;; | |
11926 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11927 | shlibpath_overrides_runpath=yes | |
11928 | hardcode_into_libs=yes | |
11929 | ;; | |
11930 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11931 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11932 | shlibpath_overrides_runpath=no | |
11933 | hardcode_into_libs=yes | |
11934 | ;; | |
11935 | *) # from 4.6 on, and DragonFly | |
11936 | shlibpath_overrides_runpath=yes | |
11937 | hardcode_into_libs=yes | |
11938 | ;; | |
11939 | esac | |
11940 | ;; | |
11941 | ||
43e02a8a RW |
11942 | haiku*) |
11943 | version_type=linux | |
11944 | need_lib_prefix=no | |
11945 | need_version=no | |
11946 | dynamic_linker="$host_os runtime_loader" | |
11947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11948 | soname_spec='${libname}${release}${shared_ext}$major' | |
11949 | shlibpath_var=LIBRARY_PATH | |
11950 | shlibpath_overrides_runpath=yes | |
11951 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
11952 | hardcode_into_libs=yes | |
11953 | ;; | |
11954 | ||
1cf3d07d SE |
11955 | hpux9* | hpux10* | hpux11*) |
11956 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11957 | # link against other versions. | |
11958 | version_type=sunos | |
11959 | need_lib_prefix=no | |
11960 | need_version=no | |
11961 | case $host_cpu in | |
11962 | ia64*) | |
11963 | shrext_cmds='.so' | |
11964 | hardcode_into_libs=yes | |
11965 | dynamic_linker="$host_os dld.so" | |
11966 | shlibpath_var=LD_LIBRARY_PATH | |
11967 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11968 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11969 | soname_spec='${libname}${release}${shared_ext}$major' | |
11970 | if test "X$HPUX_IA64_MODE" = X32; then | |
11971 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11972 | else | |
11973 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11974 | fi | |
11975 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11976 | ;; | |
11977 | hppa*64*) | |
11978 | shrext_cmds='.sl' | |
11979 | hardcode_into_libs=yes | |
11980 | dynamic_linker="$host_os dld.sl" | |
11981 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11982 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11983 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11984 | soname_spec='${libname}${release}${shared_ext}$major' | |
11985 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11986 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11987 | ;; | |
11988 | *) | |
11989 | shrext_cmds='.sl' | |
11990 | dynamic_linker="$host_os dld.sl" | |
11991 | shlibpath_var=SHLIB_PATH | |
11992 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11993 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11994 | soname_spec='${libname}${release}${shared_ext}$major' | |
11995 | ;; | |
11996 | esac | |
43e02a8a | 11997 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 11998 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
11999 | # or fails outright, so override atomically: |
12000 | install_override_mode=555 | |
1cf3d07d SE |
12001 | ;; |
12002 | ||
12003 | interix[3-9]*) | |
12004 | version_type=linux | |
12005 | need_lib_prefix=no | |
12006 | need_version=no | |
12007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12008 | soname_spec='${libname}${release}${shared_ext}$major' | |
12009 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12010 | shlibpath_var=LD_LIBRARY_PATH | |
12011 | shlibpath_overrides_runpath=no | |
12012 | hardcode_into_libs=yes | |
12013 | ;; | |
12014 | ||
12015 | irix5* | irix6* | nonstopux*) | |
12016 | case $host_os in | |
12017 | nonstopux*) version_type=nonstopux ;; | |
12018 | *) | |
12019 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
12020 | version_type=linux | |
12021 | else | |
12022 | version_type=irix | |
12023 | fi ;; | |
12024 | esac | |
12025 | need_lib_prefix=no | |
12026 | need_version=no | |
12027 | soname_spec='${libname}${release}${shared_ext}$major' | |
12028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12029 | case $host_os in | |
12030 | irix5* | nonstopux*) | |
12031 | libsuff= shlibsuff= | |
12032 | ;; | |
12033 | *) | |
12034 | case $LD in # libtool.m4 will add one of these switches to LD | |
12035 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12036 | libsuff= shlibsuff= libmagic=32-bit;; | |
12037 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12038 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12039 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12040 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12041 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12042 | esac | |
12043 | ;; | |
12044 | esac | |
12045 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12046 | shlibpath_overrides_runpath=no | |
12047 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12048 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12049 | hardcode_into_libs=yes | |
12050 | ;; | |
12051 | ||
12052 | # No shared lib support for Linux oldld, aout, or coff. | |
12053 | linux*oldld* | linux*aout* | linux*coff*) | |
12054 | dynamic_linker=no | |
12055 | ;; | |
12056 | ||
12057 | # This must be Linux ELF. | |
e9085da5 MR |
12058 | |
12059 | # uclinux* changes (here and below) have been submitted to the libtool | |
12060 | # project, but have not yet been accepted: they are GCC-local changes | |
12061 | # for the time being. (See | |
12062 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
f56de355 | 12063 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
1cf3d07d SE |
12064 | version_type=linux |
12065 | need_lib_prefix=no | |
12066 | need_version=no | |
12067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12068 | soname_spec='${libname}${release}${shared_ext}$major' | |
12069 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12070 | shlibpath_var=LD_LIBRARY_PATH | |
12071 | shlibpath_overrides_runpath=no | |
baafc534 | 12072 | |
1cf3d07d | 12073 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 12074 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 12075 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
12076 | else |
12077 | lt_cv_shlibpath_overrides_runpath=no | |
12078 | save_LDFLAGS=$LDFLAGS | |
12079 | save_libdir=$libdir | |
12080 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12081 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12082 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12083 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12084 | fi |
5213506e | 12085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12086 | /* end confdefs.h. */ |
12087 | ||
12088 | int | |
12089 | main () | |
12090 | { | |
12091 | ||
12092 | ; | |
12093 | return 0; | |
12094 | } | |
12095 | _ACEOF | |
5213506e RW |
12096 | if ac_fn_c_try_link "$LINENO"; then : |
12097 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 12098 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 12099 | fi |
1cf3d07d | 12100 | fi |
5213506e RW |
12101 | rm -f core conftest.err conftest.$ac_objext \ |
12102 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
12103 | LDFLAGS=$save_LDFLAGS |
12104 | libdir=$save_libdir | |
12105 | ||
12106 | fi | |
12107 | ||
12108 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
12109 | |
12110 | # This implies no fast_install, which is unacceptable. | |
12111 | # Some rework will be needed to allow for fast_install | |
12112 | # before this can be enabled. | |
12113 | hardcode_into_libs=yes | |
12114 | ||
12115 | # Append ld.so.conf contents to the search path | |
12116 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 12117 | 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 |
12118 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
12119 | fi | |
12120 | ||
12121 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12122 | # powerpc, because MkLinux only supported shared libraries with the | |
12123 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12124 | # most powerpc-linux boxes support dynamic linking these days and | |
12125 | # people can always --disable-shared, the test was removed, and we | |
12126 | # assume the GNU/Linux dynamic linker is in use. | |
12127 | dynamic_linker='GNU/Linux ld.so' | |
12128 | ;; | |
12129 | ||
12130 | netbsd*) | |
12131 | version_type=sunos | |
12132 | need_lib_prefix=no | |
12133 | need_version=no | |
12134 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12135 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12136 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12137 | dynamic_linker='NetBSD (a.out) ld.so' | |
12138 | else | |
12139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12140 | soname_spec='${libname}${release}${shared_ext}$major' | |
12141 | dynamic_linker='NetBSD ld.elf_so' | |
12142 | fi | |
12143 | shlibpath_var=LD_LIBRARY_PATH | |
12144 | shlibpath_overrides_runpath=yes | |
12145 | hardcode_into_libs=yes | |
12146 | ;; | |
12147 | ||
12148 | newsos6) | |
12149 | version_type=linux | |
12150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12151 | shlibpath_var=LD_LIBRARY_PATH | |
12152 | shlibpath_overrides_runpath=yes | |
12153 | ;; | |
12154 | ||
12155 | *nto* | *qnx*) | |
12156 | version_type=qnx | |
12157 | need_lib_prefix=no | |
12158 | need_version=no | |
12159 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12160 | soname_spec='${libname}${release}${shared_ext}$major' | |
12161 | shlibpath_var=LD_LIBRARY_PATH | |
12162 | shlibpath_overrides_runpath=no | |
12163 | hardcode_into_libs=yes | |
12164 | dynamic_linker='ldqnx.so' | |
12165 | ;; | |
12166 | ||
12167 | openbsd*) | |
12168 | version_type=sunos | |
12169 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12170 | need_lib_prefix=no | |
12171 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12172 | case $host_os in | |
12173 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12174 | *) need_version=no ;; | |
12175 | esac | |
12176 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12177 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12178 | shlibpath_var=LD_LIBRARY_PATH | |
12179 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12180 | case $host_os in | |
12181 | openbsd2.[89] | openbsd2.[89].*) | |
12182 | shlibpath_overrides_runpath=no | |
12183 | ;; | |
12184 | *) | |
12185 | shlibpath_overrides_runpath=yes | |
12186 | ;; | |
12187 | esac | |
12188 | else | |
12189 | shlibpath_overrides_runpath=yes | |
12190 | fi | |
12191 | ;; | |
12192 | ||
12193 | os2*) | |
12194 | libname_spec='$name' | |
12195 | shrext_cmds=".dll" | |
12196 | need_lib_prefix=no | |
12197 | library_names_spec='$libname${shared_ext} $libname.a' | |
12198 | dynamic_linker='OS/2 ld.exe' | |
12199 | shlibpath_var=LIBPATH | |
12200 | ;; | |
12201 | ||
12202 | osf3* | osf4* | osf5*) | |
12203 | version_type=osf | |
12204 | need_lib_prefix=no | |
12205 | need_version=no | |
12206 | soname_spec='${libname}${release}${shared_ext}$major' | |
12207 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12208 | shlibpath_var=LD_LIBRARY_PATH | |
12209 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12210 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12211 | ;; | |
12212 | ||
12213 | rdos*) | |
12214 | dynamic_linker=no | |
12215 | ;; | |
12216 | ||
12217 | solaris*) | |
12218 | version_type=linux | |
12219 | need_lib_prefix=no | |
12220 | need_version=no | |
12221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12222 | soname_spec='${libname}${release}${shared_ext}$major' | |
12223 | shlibpath_var=LD_LIBRARY_PATH | |
12224 | shlibpath_overrides_runpath=yes | |
12225 | hardcode_into_libs=yes | |
12226 | # ldd complains unless libraries are executable | |
12227 | postinstall_cmds='chmod +x $lib' | |
12228 | ;; | |
12229 | ||
12230 | sunos4*) | |
12231 | version_type=sunos | |
12232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12233 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12234 | shlibpath_var=LD_LIBRARY_PATH | |
12235 | shlibpath_overrides_runpath=yes | |
12236 | if test "$with_gnu_ld" = yes; then | |
12237 | need_lib_prefix=no | |
12238 | fi | |
12239 | need_version=yes | |
12240 | ;; | |
12241 | ||
12242 | sysv4 | sysv4.3*) | |
12243 | version_type=linux | |
12244 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12245 | soname_spec='${libname}${release}${shared_ext}$major' | |
12246 | shlibpath_var=LD_LIBRARY_PATH | |
12247 | case $host_vendor in | |
12248 | sni) | |
12249 | shlibpath_overrides_runpath=no | |
12250 | need_lib_prefix=no | |
12251 | runpath_var=LD_RUN_PATH | |
12252 | ;; | |
12253 | siemens) | |
12254 | need_lib_prefix=no | |
12255 | ;; | |
12256 | motorola) | |
12257 | need_lib_prefix=no | |
12258 | need_version=no | |
12259 | shlibpath_overrides_runpath=no | |
12260 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12261 | ;; | |
12262 | esac | |
12263 | ;; | |
12264 | ||
12265 | sysv4*MP*) | |
12266 | if test -d /usr/nec ;then | |
12267 | version_type=linux | |
12268 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12269 | soname_spec='$libname${shared_ext}.$major' | |
12270 | shlibpath_var=LD_LIBRARY_PATH | |
12271 | fi | |
12272 | ;; | |
12273 | ||
12274 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12275 | version_type=freebsd-elf | |
12276 | need_lib_prefix=no | |
12277 | need_version=no | |
12278 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12279 | soname_spec='${libname}${release}${shared_ext}$major' | |
12280 | shlibpath_var=LD_LIBRARY_PATH | |
12281 | shlibpath_overrides_runpath=yes | |
12282 | hardcode_into_libs=yes | |
12283 | if test "$with_gnu_ld" = yes; then | |
12284 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12285 | else | |
12286 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12287 | case $host_os in | |
12288 | sco3.2v5*) | |
12289 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12290 | ;; | |
12291 | esac | |
12292 | fi | |
12293 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12294 | ;; | |
12295 | ||
12296 | tpf*) | |
12297 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12298 | version_type=linux | |
12299 | need_lib_prefix=no | |
12300 | need_version=no | |
d58dead8 | 12301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
12302 | shlibpath_var=LD_LIBRARY_PATH |
12303 | shlibpath_overrides_runpath=no | |
12304 | hardcode_into_libs=yes | |
12305 | ;; | |
12306 | ||
12307 | uts4*) | |
12308 | version_type=linux | |
12309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12310 | soname_spec='${libname}${release}${shared_ext}$major' | |
12311 | shlibpath_var=LD_LIBRARY_PATH | |
12312 | ;; | |
12313 | ||
12314 | *) | |
12315 | dynamic_linker=no | |
12316 | ;; | |
12317 | esac | |
5213506e RW |
12318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
12319 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
12320 | test "$dynamic_linker" = no && can_build_shared=no |
12321 | ||
12322 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12323 | if test "$GCC" = yes; then | |
12324 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12325 | fi | |
12326 | ||
d58dead8 PG |
12327 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
12328 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12329 | fi | |
12330 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12331 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12332 | fi | |
12333 | ||
1cf3d07d SE |
12334 | |
12335 | ||
12336 | ||
12337 | ||
12338 | ||
12339 | ||
12340 | ||
12341 | ||
12342 | ||
12343 | ||
12344 | ||
12345 | ||
12346 | ||
12347 | ||
12348 | ||
12349 | ||
12350 | ||
12351 | ||
12352 | ||
12353 | ||
12354 | ||
12355 | ||
12356 | ||
12357 | ||
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 | ||
43e02a8a RW |
12414 | |
12415 | ||
12416 | ||
12417 | ||
12418 | ||
1cf3d07d SE |
12419 | |
12420 | ||
12421 | ||
12422 | ||
12423 | ||
12424 | ||
5213506e RW |
12425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
12426 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
12427 | hardcode_action= |
12428 | if test -n "$hardcode_libdir_flag_spec" || | |
12429 | test -n "$runpath_var" || | |
12430 | test "X$hardcode_automatic" = "Xyes" ; then | |
12431 | ||
12432 | # We can hardcode non-existent directories. | |
12433 | if test "$hardcode_direct" != no && | |
12434 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12435 | # have to relink, otherwise we might link with an installed library | |
12436 | # when we should be linking with a yet-to-be-installed one | |
12437 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12438 | test "$hardcode_minus_L" != no; then | |
12439 | # Linking always hardcodes the temporary library directory. | |
12440 | hardcode_action=relink | |
12441 | else | |
12442 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12443 | hardcode_action=immediate | |
12444 | fi | |
12445 | else | |
12446 | # We cannot hardcode anything, or else we can only hardcode existing | |
12447 | # directories. | |
12448 | hardcode_action=unsupported | |
12449 | fi | |
5213506e RW |
12450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
12451 | $as_echo "$hardcode_action" >&6; } | |
1cf3d07d SE |
12452 | |
12453 | if test "$hardcode_action" = relink || | |
12454 | test "$inherit_rpath" = yes; then | |
12455 | # Fast installation is not supported | |
12456 | enable_fast_install=no | |
12457 | elif test "$shlibpath_overrides_runpath" = yes || | |
12458 | test "$enable_shared" = no; then | |
12459 | # Fast installation is not necessary | |
12460 | enable_fast_install=needless | |
12461 | fi | |
12462 | ||
12463 | ||
12464 | ||
12465 | ||
12466 | ||
12467 | ||
12468 | if test "x$enable_dlopen" != xyes; then | |
12469 | enable_dlopen=unknown | |
12470 | enable_dlopen_self=unknown | |
12471 | enable_dlopen_self_static=unknown | |
12472 | else | |
12473 | lt_cv_dlopen=no | |
12474 | lt_cv_dlopen_libs= | |
12475 | ||
12476 | case $host_os in | |
12477 | beos*) | |
12478 | lt_cv_dlopen="load_add_on" | |
12479 | lt_cv_dlopen_libs= | |
12480 | lt_cv_dlopen_self=yes | |
12481 | ;; | |
12482 | ||
d58dead8 | 12483 | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12484 | lt_cv_dlopen="LoadLibrary" |
12485 | lt_cv_dlopen_libs= | |
12486 | ;; | |
12487 | ||
12488 | cygwin*) | |
12489 | lt_cv_dlopen="dlopen" | |
12490 | lt_cv_dlopen_libs= | |
12491 | ;; | |
12492 | ||
12493 | darwin*) | |
12494 | # if libdl is installed we need to link against it | |
5213506e RW |
12495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12496 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 12497 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 12498 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12499 | else |
12500 | ac_check_lib_save_LIBS=$LIBS | |
12501 | LIBS="-ldl $LIBS" | |
12502 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12503 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12504 | fi |
5213506e | 12505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12506 | /* end confdefs.h. */ |
12507 | ||
5213506e RW |
12508 | /* Override any GCC internal prototype to avoid an error. |
12509 | Use char because int might match the return type of a GCC | |
12510 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12511 | #ifdef __cplusplus |
12512 | extern "C" | |
12513 | #endif | |
1cf3d07d SE |
12514 | char dlopen (); |
12515 | int | |
12516 | main () | |
12517 | { | |
5213506e | 12518 | return dlopen (); |
1cf3d07d SE |
12519 | ; |
12520 | return 0; | |
12521 | } | |
12522 | _ACEOF | |
5213506e | 12523 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12524 | ac_cv_lib_dl_dlopen=yes |
12525 | else | |
5213506e | 12526 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 12527 | fi |
5213506e RW |
12528 | rm -f core conftest.err conftest.$ac_objext \ |
12529 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12530 | LIBS=$ac_check_lib_save_LIBS |
12531 | fi | |
5213506e RW |
12532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12533 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 12534 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
12535 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12536 | else | |
12537 | ||
12538 | lt_cv_dlopen="dyld" | |
12539 | lt_cv_dlopen_libs= | |
12540 | lt_cv_dlopen_self=yes | |
12541 | ||
12542 | fi | |
12543 | ||
12544 | ;; | |
12545 | ||
12546 | *) | |
5213506e | 12547 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
22e05272 | 12548 | if test "x$ac_cv_func_shl_load" = xyes; then : |
1cf3d07d SE |
12549 | lt_cv_dlopen="shl_load" |
12550 | else | |
5213506e RW |
12551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12552 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
22e05272 | 12553 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
5213506e | 12554 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12555 | else |
12556 | ac_check_lib_save_LIBS=$LIBS | |
12557 | LIBS="-ldld $LIBS" | |
12558 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12559 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12560 | fi |
5213506e | 12561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12562 | /* end confdefs.h. */ |
12563 | ||
5213506e RW |
12564 | /* Override any GCC internal prototype to avoid an error. |
12565 | Use char because int might match the return type of a GCC | |
12566 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12567 | #ifdef __cplusplus |
12568 | extern "C" | |
12569 | #endif | |
1cf3d07d SE |
12570 | char shl_load (); |
12571 | int | |
12572 | main () | |
12573 | { | |
5213506e | 12574 | return shl_load (); |
1cf3d07d SE |
12575 | ; |
12576 | return 0; | |
12577 | } | |
12578 | _ACEOF | |
5213506e | 12579 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12580 | ac_cv_lib_dld_shl_load=yes |
12581 | else | |
5213506e | 12582 | ac_cv_lib_dld_shl_load=no |
1cf3d07d | 12583 | fi |
5213506e RW |
12584 | rm -f core conftest.err conftest.$ac_objext \ |
12585 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12586 | LIBS=$ac_check_lib_save_LIBS |
12587 | fi | |
5213506e RW |
12588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12589 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
22e05272 | 12590 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
d58dead8 | 12591 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
1cf3d07d | 12592 | else |
5213506e | 12593 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
22e05272 | 12594 | if test "x$ac_cv_func_dlopen" = xyes; then : |
1cf3d07d SE |
12595 | lt_cv_dlopen="dlopen" |
12596 | else | |
5213506e RW |
12597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12598 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 12599 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 12600 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12601 | else |
12602 | ac_check_lib_save_LIBS=$LIBS | |
12603 | LIBS="-ldl $LIBS" | |
12604 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12605 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12606 | fi |
5213506e | 12607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12608 | /* end confdefs.h. */ |
12609 | ||
5213506e RW |
12610 | /* Override any GCC internal prototype to avoid an error. |
12611 | Use char because int might match the return type of a GCC | |
12612 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12613 | #ifdef __cplusplus |
12614 | extern "C" | |
12615 | #endif | |
1cf3d07d SE |
12616 | char dlopen (); |
12617 | int | |
12618 | main () | |
12619 | { | |
5213506e | 12620 | return dlopen (); |
1cf3d07d SE |
12621 | ; |
12622 | return 0; | |
12623 | } | |
12624 | _ACEOF | |
5213506e | 12625 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12626 | ac_cv_lib_dl_dlopen=yes |
12627 | else | |
5213506e | 12628 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 12629 | fi |
5213506e RW |
12630 | rm -f core conftest.err conftest.$ac_objext \ |
12631 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12632 | LIBS=$ac_check_lib_save_LIBS |
12633 | fi | |
5213506e RW |
12634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12635 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 12636 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
12637 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12638 | else | |
5213506e RW |
12639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
12640 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
22e05272 | 12641 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
5213506e | 12642 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12643 | else |
12644 | ac_check_lib_save_LIBS=$LIBS | |
12645 | LIBS="-lsvld $LIBS" | |
12646 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12647 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12648 | fi |
5213506e | 12649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12650 | /* end confdefs.h. */ |
12651 | ||
5213506e RW |
12652 | /* Override any GCC internal prototype to avoid an error. |
12653 | Use char because int might match the return type of a GCC | |
12654 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12655 | #ifdef __cplusplus |
12656 | extern "C" | |
12657 | #endif | |
1cf3d07d SE |
12658 | char dlopen (); |
12659 | int | |
12660 | main () | |
12661 | { | |
5213506e | 12662 | return dlopen (); |
1cf3d07d SE |
12663 | ; |
12664 | return 0; | |
12665 | } | |
12666 | _ACEOF | |
5213506e | 12667 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12668 | ac_cv_lib_svld_dlopen=yes |
12669 | else | |
5213506e | 12670 | ac_cv_lib_svld_dlopen=no |
1cf3d07d | 12671 | fi |
5213506e RW |
12672 | rm -f core conftest.err conftest.$ac_objext \ |
12673 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12674 | LIBS=$ac_check_lib_save_LIBS |
12675 | fi | |
5213506e RW |
12676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12677 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
22e05272 | 12678 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
1cf3d07d SE |
12679 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12680 | else | |
5213506e RW |
12681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12682 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
22e05272 | 12683 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
5213506e | 12684 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12685 | else |
12686 | ac_check_lib_save_LIBS=$LIBS | |
12687 | LIBS="-ldld $LIBS" | |
12688 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12689 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12690 | fi |
5213506e | 12691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12692 | /* end confdefs.h. */ |
12693 | ||
5213506e RW |
12694 | /* Override any GCC internal prototype to avoid an error. |
12695 | Use char because int might match the return type of a GCC | |
12696 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12697 | #ifdef __cplusplus |
12698 | extern "C" | |
12699 | #endif | |
1cf3d07d SE |
12700 | char dld_link (); |
12701 | int | |
12702 | main () | |
12703 | { | |
5213506e | 12704 | return dld_link (); |
1cf3d07d SE |
12705 | ; |
12706 | return 0; | |
12707 | } | |
12708 | _ACEOF | |
5213506e | 12709 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12710 | ac_cv_lib_dld_dld_link=yes |
12711 | else | |
5213506e | 12712 | ac_cv_lib_dld_dld_link=no |
1cf3d07d | 12713 | fi |
5213506e RW |
12714 | rm -f core conftest.err conftest.$ac_objext \ |
12715 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12716 | LIBS=$ac_check_lib_save_LIBS |
12717 | fi | |
5213506e RW |
12718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12719 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
22e05272 | 12720 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
d58dead8 | 12721 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
1cf3d07d SE |
12722 | fi |
12723 | ||
12724 | ||
12725 | fi | |
12726 | ||
12727 | ||
12728 | fi | |
12729 | ||
12730 | ||
12731 | fi | |
12732 | ||
12733 | ||
12734 | fi | |
12735 | ||
12736 | ||
12737 | fi | |
12738 | ||
12739 | ;; | |
12740 | esac | |
12741 | ||
12742 | if test "x$lt_cv_dlopen" != xno; then | |
12743 | enable_dlopen=yes | |
12744 | else | |
12745 | enable_dlopen=no | |
12746 | fi | |
12747 | ||
12748 | case $lt_cv_dlopen in | |
12749 | dlopen) | |
12750 | save_CPPFLAGS="$CPPFLAGS" | |
12751 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12752 | ||
12753 | save_LDFLAGS="$LDFLAGS" | |
12754 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12755 | ||
12756 | save_LIBS="$LIBS" | |
12757 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12758 | ||
5213506e RW |
12759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12760 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
22e05272 | 12761 | if ${lt_cv_dlopen_self+:} false; then : |
5213506e | 12762 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12763 | else |
12764 | if test "$cross_compiling" = yes; then : | |
12765 | lt_cv_dlopen_self=cross | |
12766 | else | |
12767 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12768 | lt_status=$lt_dlunknown | |
12769 | cat > conftest.$ac_ext <<_LT_EOF | |
133d0d42 | 12770 | #line 12770 "configure" |
1cf3d07d SE |
12771 | #include "confdefs.h" |
12772 | ||
12773 | #if HAVE_DLFCN_H | |
12774 | #include <dlfcn.h> | |
12775 | #endif | |
12776 | ||
12777 | #include <stdio.h> | |
12778 | ||
12779 | #ifdef RTLD_GLOBAL | |
12780 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12781 | #else | |
12782 | # ifdef DL_GLOBAL | |
12783 | # define LT_DLGLOBAL DL_GLOBAL | |
12784 | # else | |
12785 | # define LT_DLGLOBAL 0 | |
12786 | # endif | |
12787 | #endif | |
12788 | ||
12789 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12790 | find out it does not work in some platform. */ | |
12791 | #ifndef LT_DLLAZY_OR_NOW | |
12792 | # ifdef RTLD_LAZY | |
12793 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12794 | # else | |
12795 | # ifdef DL_LAZY | |
12796 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12797 | # else | |
12798 | # ifdef RTLD_NOW | |
12799 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12800 | # else | |
12801 | # ifdef DL_NOW | |
12802 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12803 | # else | |
12804 | # define LT_DLLAZY_OR_NOW 0 | |
12805 | # endif | |
12806 | # endif | |
12807 | # endif | |
12808 | # endif | |
12809 | #endif | |
12810 | ||
43e02a8a RW |
12811 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12812 | correspondingly for the symbols needed. */ | |
12813 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12814 | void fnord () __attribute__((visibility("default"))); | |
12815 | #endif | |
12816 | ||
12817 | void fnord () { int i=42; } | |
1cf3d07d SE |
12818 | int main () |
12819 | { | |
12820 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12821 | int status = $lt_dlunknown; | |
12822 | ||
12823 | if (self) | |
12824 | { | |
12825 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
12826 | else |
12827 | { | |
12828 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12829 | else puts (dlerror ()); | |
12830 | } | |
1cf3d07d SE |
12831 | /* dlclose (self); */ |
12832 | } | |
12833 | else | |
12834 | puts (dlerror ()); | |
12835 | ||
d58dead8 | 12836 | return status; |
1cf3d07d SE |
12837 | } |
12838 | _LT_EOF | |
5213506e | 12839 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
12840 | (eval $ac_link) 2>&5 |
12841 | ac_status=$? | |
5213506e RW |
12842 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12843 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
12844 | (./conftest; exit; ) >&5 2>/dev/null |
12845 | lt_status=$? | |
12846 | case x$lt_status in | |
12847 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12848 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12849 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12850 | esac | |
12851 | else : | |
12852 | # compilation failed | |
12853 | lt_cv_dlopen_self=no | |
12854 | fi | |
12855 | fi | |
12856 | rm -fr conftest* | |
12857 | ||
12858 | ||
12859 | fi | |
5213506e RW |
12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12861 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
1cf3d07d SE |
12862 | |
12863 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12864 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
5213506e RW |
12865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
12866 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
22e05272 | 12867 | if ${lt_cv_dlopen_self_static+:} false; then : |
5213506e | 12868 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12869 | else |
12870 | if test "$cross_compiling" = yes; then : | |
12871 | lt_cv_dlopen_self_static=cross | |
12872 | else | |
12873 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12874 | lt_status=$lt_dlunknown | |
12875 | cat > conftest.$ac_ext <<_LT_EOF | |
133d0d42 | 12876 | #line 12876 "configure" |
1cf3d07d SE |
12877 | #include "confdefs.h" |
12878 | ||
12879 | #if HAVE_DLFCN_H | |
12880 | #include <dlfcn.h> | |
12881 | #endif | |
12882 | ||
12883 | #include <stdio.h> | |
12884 | ||
12885 | #ifdef RTLD_GLOBAL | |
12886 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12887 | #else | |
12888 | # ifdef DL_GLOBAL | |
12889 | # define LT_DLGLOBAL DL_GLOBAL | |
12890 | # else | |
12891 | # define LT_DLGLOBAL 0 | |
12892 | # endif | |
12893 | #endif | |
12894 | ||
12895 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12896 | find out it does not work in some platform. */ | |
12897 | #ifndef LT_DLLAZY_OR_NOW | |
12898 | # ifdef RTLD_LAZY | |
12899 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12900 | # else | |
12901 | # ifdef DL_LAZY | |
12902 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12903 | # else | |
12904 | # ifdef RTLD_NOW | |
12905 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12906 | # else | |
12907 | # ifdef DL_NOW | |
12908 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12909 | # else | |
12910 | # define LT_DLLAZY_OR_NOW 0 | |
12911 | # endif | |
12912 | # endif | |
12913 | # endif | |
12914 | # endif | |
12915 | #endif | |
12916 | ||
43e02a8a RW |
12917 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12918 | correspondingly for the symbols needed. */ | |
12919 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12920 | void fnord () __attribute__((visibility("default"))); | |
12921 | #endif | |
12922 | ||
12923 | void fnord () { int i=42; } | |
1cf3d07d SE |
12924 | int main () |
12925 | { | |
12926 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12927 | int status = $lt_dlunknown; | |
12928 | ||
12929 | if (self) | |
12930 | { | |
12931 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
12932 | else |
12933 | { | |
12934 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12935 | else puts (dlerror ()); | |
12936 | } | |
1cf3d07d SE |
12937 | /* dlclose (self); */ |
12938 | } | |
12939 | else | |
12940 | puts (dlerror ()); | |
12941 | ||
d58dead8 | 12942 | return status; |
1cf3d07d SE |
12943 | } |
12944 | _LT_EOF | |
5213506e | 12945 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
12946 | (eval $ac_link) 2>&5 |
12947 | ac_status=$? | |
5213506e RW |
12948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12949 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
12950 | (./conftest; exit; ) >&5 2>/dev/null |
12951 | lt_status=$? | |
12952 | case x$lt_status in | |
12953 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12954 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12955 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12956 | esac | |
12957 | else : | |
12958 | # compilation failed | |
12959 | lt_cv_dlopen_self_static=no | |
12960 | fi | |
12961 | fi | |
12962 | rm -fr conftest* | |
12963 | ||
12964 | ||
12965 | fi | |
5213506e RW |
12966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12967 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
1cf3d07d SE |
12968 | fi |
12969 | ||
12970 | CPPFLAGS="$save_CPPFLAGS" | |
12971 | LDFLAGS="$save_LDFLAGS" | |
12972 | LIBS="$save_LIBS" | |
12973 | ;; | |
12974 | esac | |
12975 | ||
12976 | case $lt_cv_dlopen_self in | |
12977 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12978 | *) enable_dlopen_self=unknown ;; | |
12979 | esac | |
12980 | ||
12981 | case $lt_cv_dlopen_self_static in | |
12982 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12983 | *) enable_dlopen_self_static=unknown ;; | |
12984 | esac | |
12985 | fi | |
12986 | ||
12987 | ||
12988 | ||
12989 | ||
12990 | ||
12991 | ||
12992 | ||
12993 | ||
12994 | ||
12995 | ||
12996 | ||
12997 | ||
12998 | ||
12999 | ||
13000 | ||
13001 | ||
13002 | ||
13003 | striplib= | |
13004 | old_striplib= | |
5213506e RW |
13005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
13006 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
1cf3d07d SE |
13007 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
13008 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
13009 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
5213506e RW |
13010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13011 | $as_echo "yes" >&6; } | |
1cf3d07d SE |
13012 | else |
13013 | # FIXME - insert some real tests, host_os isn't really good enough | |
13014 | case $host_os in | |
13015 | darwin*) | |
13016 | if test -n "$STRIP" ; then | |
13017 | striplib="$STRIP -x" | |
13018 | old_striplib="$STRIP -S" | |
5213506e RW |
13019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13020 | $as_echo "yes" >&6; } | |
1cf3d07d | 13021 | else |
5213506e RW |
13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13023 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13024 | fi |
13025 | ;; | |
13026 | *) | |
5213506e RW |
13027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13028 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13029 | ;; |
13030 | esac | |
13031 | fi | |
13032 | ||
13033 | ||
13034 | ||
13035 | ||
13036 | ||
13037 | ||
13038 | ||
13039 | ||
13040 | ||
13041 | ||
13042 | ||
13043 | ||
43e02a8a RW |
13044 | # Report which library types will actually be built |
13045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
13046 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13048 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 13049 | |
43e02a8a RW |
13050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13051 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
13052 | test "$can_build_shared" = "no" && enable_shared=no | |
1cf3d07d | 13053 | |
43e02a8a RW |
13054 | # On AIX, shared libraries and static libraries use the same namespace, and |
13055 | # are all built from PIC. | |
13056 | case $host_os in | |
13057 | aix3*) | |
13058 | test "$enable_shared" = yes && enable_static=no | |
13059 | if test -n "$RANLIB"; then | |
13060 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13061 | postinstall_cmds='$RANLIB $lib' | |
13062 | fi | |
13063 | ;; | |
1cf3d07d | 13064 | |
43e02a8a RW |
13065 | aix[4-9]*) |
13066 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
13067 | test "$enable_shared" = yes && enable_static=no | |
13068 | fi | |
13069 | ;; | |
13070 | esac | |
13071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
13072 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 13073 | |
43e02a8a RW |
13074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13075 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13076 | # Make sure either enable_shared or enable_static is yes. | |
13077 | test "$enable_shared" = yes || enable_static=yes | |
13078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
13079 | $as_echo "$enable_static" >&6; } | |
1cf3d07d | 13080 | |
1cf3d07d | 13081 | |
1cf3d07d | 13082 | |
1cf3d07d SE |
13083 | |
13084 | fi | |
1cf3d07d SE |
13085 | ac_ext=c |
13086 | ac_cpp='$CPP $CPPFLAGS' | |
13087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13090 | ||
43e02a8a RW |
13091 | CC="$lt_save_CC" |
13092 | ||
13093 | ||
13094 | ||
13095 | ||
13096 | ||
13097 | ||
13098 | ||
13099 | ||
13100 | ||
13101 | ||
13102 | ||
13103 | ||
13104 | ||
13105 | ac_config_commands="$ac_config_commands libtool" | |
13106 | ||
13107 | ||
13108 | ||
13109 | ||
13110 | # Only expand once: | |
13111 | ||
13112 | ||
9b025925 IS |
13113 | LIBM= |
13114 | case $host in | |
13115 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | |
13116 | # These system don't have libm, or don't need it | |
13117 | ;; | |
13118 | *-ncr-sysv4.3*) | |
13119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 | |
13120 | $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } | |
13121 | if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : | |
13122 | $as_echo_n "(cached) " >&6 | |
13123 | else | |
13124 | ac_check_lib_save_LIBS=$LIBS | |
13125 | LIBS="-lmw $LIBS" | |
13126 | if test x$gcc_no_link = xyes; then | |
13127 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
13128 | fi | |
13129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13130 | /* end confdefs.h. */ | |
13131 | ||
13132 | /* Override any GCC internal prototype to avoid an error. | |
13133 | Use char because int might match the return type of a GCC | |
13134 | builtin and then its argument prototype would still apply. */ | |
13135 | #ifdef __cplusplus | |
13136 | extern "C" | |
13137 | #endif | |
13138 | char _mwvalidcheckl (); | |
13139 | int | |
13140 | main () | |
13141 | { | |
13142 | return _mwvalidcheckl (); | |
13143 | ; | |
13144 | return 0; | |
13145 | } | |
13146 | _ACEOF | |
13147 | if ac_fn_c_try_link "$LINENO"; then : | |
13148 | ac_cv_lib_mw__mwvalidcheckl=yes | |
13149 | else | |
13150 | ac_cv_lib_mw__mwvalidcheckl=no | |
13151 | fi | |
13152 | rm -f core conftest.err conftest.$ac_objext \ | |
13153 | conftest$ac_exeext conftest.$ac_ext | |
13154 | LIBS=$ac_check_lib_save_LIBS | |
13155 | fi | |
13156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 | |
13157 | $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } | |
13158 | if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : | |
13159 | LIBM="-lmw" | |
13160 | fi | |
13161 | ||
13162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 | |
13163 | $as_echo_n "checking for cos in -lm... " >&6; } | |
13164 | if ${ac_cv_lib_m_cos+:} false; then : | |
13165 | $as_echo_n "(cached) " >&6 | |
13166 | else | |
13167 | ac_check_lib_save_LIBS=$LIBS | |
13168 | LIBS="-lm $LIBS" | |
13169 | if test x$gcc_no_link = xyes; then | |
13170 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
13171 | fi | |
13172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13173 | /* end confdefs.h. */ | |
13174 | ||
13175 | /* Override any GCC internal prototype to avoid an error. | |
13176 | Use char because int might match the return type of a GCC | |
13177 | builtin and then its argument prototype would still apply. */ | |
13178 | #ifdef __cplusplus | |
13179 | extern "C" | |
13180 | #endif | |
13181 | char cos (); | |
13182 | int | |
13183 | main () | |
13184 | { | |
13185 | return cos (); | |
13186 | ; | |
13187 | return 0; | |
13188 | } | |
13189 | _ACEOF | |
13190 | if ac_fn_c_try_link "$LINENO"; then : | |
13191 | ac_cv_lib_m_cos=yes | |
13192 | else | |
13193 | ac_cv_lib_m_cos=no | |
13194 | fi | |
13195 | rm -f core conftest.err conftest.$ac_objext \ | |
13196 | conftest$ac_exeext conftest.$ac_ext | |
13197 | LIBS=$ac_check_lib_save_LIBS | |
13198 | fi | |
13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 | |
13200 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
13201 | if test "x$ac_cv_lib_m_cos" = xyes; then : | |
13202 | LIBM="$LIBM -lm" | |
13203 | fi | |
13204 | ||
13205 | ;; | |
13206 | *) | |
13207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 | |
13208 | $as_echo_n "checking for cos in -lm... " >&6; } | |
13209 | if ${ac_cv_lib_m_cos+:} false; then : | |
13210 | $as_echo_n "(cached) " >&6 | |
13211 | else | |
13212 | ac_check_lib_save_LIBS=$LIBS | |
13213 | LIBS="-lm $LIBS" | |
13214 | if test x$gcc_no_link = xyes; then | |
13215 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
13216 | fi | |
13217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13218 | /* end confdefs.h. */ | |
13219 | ||
13220 | /* Override any GCC internal prototype to avoid an error. | |
13221 | Use char because int might match the return type of a GCC | |
13222 | builtin and then its argument prototype would still apply. */ | |
13223 | #ifdef __cplusplus | |
13224 | extern "C" | |
13225 | #endif | |
13226 | char cos (); | |
13227 | int | |
13228 | main () | |
13229 | { | |
13230 | return cos (); | |
13231 | ; | |
13232 | return 0; | |
13233 | } | |
13234 | _ACEOF | |
13235 | if ac_fn_c_try_link "$LINENO"; then : | |
13236 | ac_cv_lib_m_cos=yes | |
13237 | else | |
13238 | ac_cv_lib_m_cos=no | |
13239 | fi | |
13240 | rm -f core conftest.err conftest.$ac_objext \ | |
13241 | conftest$ac_exeext conftest.$ac_ext | |
13242 | LIBS=$ac_check_lib_save_LIBS | |
13243 | fi | |
13244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 | |
13245 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
13246 | if test "x$ac_cv_lib_m_cos" = xyes; then : | |
13247 | LIBM="-lm" | |
13248 | fi | |
13249 | ||
13250 | ;; | |
13251 | esac | |
13252 | ||
13253 | ||
43e02a8a RW |
13254 | |
13255 | ||
7de6ba7a DK |
13256 | |
13257 | case $host in | |
13258 | *-cygwin* | *-mingw*) | |
13259 | # 'host' will be top-level target in the case of a target lib, | |
13260 | # we must compare to with_cross_host to decide if this is a native | |
13261 | # or cross-compiler and select where to install dlls appropriately. | |
13262 | if test -n "$with_cross_host" && | |
13263 | test x"$with_cross_host" != x"no"; then | |
13264 | lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
13265 | else | |
13266 | lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
13267 | fi | |
13268 | ;; | |
13269 | *) | |
13270 | lt_host_flags= | |
13271 | ;; | |
13272 | esac | |
13273 | ||
13274 | ||
13275 | ||
13276 | ||
13277 | ||
43e02a8a | 13278 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 |
1cf3d07d | 13279 | |
43e02a8a RW |
13280 | # We need gfortran to compile parts of the library |
13281 | #AC_PROG_FC(gfortran) | |
13282 | FC="$GFORTRAN" | |
5213506e RW |
13283 | ac_ext=${ac_fc_srcext-f} |
13284 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13285 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
13286 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13287 | if test -n "$ac_tool_prefix"; then | |
43e02a8a | 13288 | for ac_prog in gfortran |
1cf3d07d SE |
13289 | do |
13290 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13291 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
13292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13293 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13294 | if ${ac_cv_prog_FC+:} false; then : |
5213506e | 13295 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13296 | else |
13297 | if test -n "$FC"; then | |
13298 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
13299 | else | |
13300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13301 | for as_dir in $PATH | |
13302 | do | |
13303 | IFS=$as_save_IFS | |
13304 | test -z "$as_dir" && as_dir=. | |
5213506e | 13305 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13306 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 13307 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
5213506e | 13308 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
13309 | break 2 |
13310 | fi | |
13311 | done | |
5213506e RW |
13312 | done |
13313 | IFS=$as_save_IFS | |
1cf3d07d SE |
13314 | |
13315 | fi | |
13316 | fi | |
13317 | FC=$ac_cv_prog_FC | |
13318 | if test -n "$FC"; then | |
5213506e RW |
13319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
13320 | $as_echo "$FC" >&6; } | |
1cf3d07d | 13321 | else |
5213506e RW |
13322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13323 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13324 | fi |
13325 | ||
5213506e | 13326 | |
1cf3d07d SE |
13327 | test -n "$FC" && break |
13328 | done | |
13329 | fi | |
13330 | if test -z "$FC"; then | |
13331 | ac_ct_FC=$FC | |
43e02a8a | 13332 | for ac_prog in gfortran |
1cf3d07d SE |
13333 | do |
13334 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13335 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
13336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13337 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13338 | if ${ac_cv_prog_ac_ct_FC+:} false; then : |
5213506e | 13339 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13340 | else |
13341 | if test -n "$ac_ct_FC"; then | |
13342 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
13343 | else | |
13344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13345 | for as_dir in $PATH | |
13346 | do | |
13347 | IFS=$as_save_IFS | |
13348 | test -z "$as_dir" && as_dir=. | |
5213506e | 13349 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13350 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 13351 | ac_cv_prog_ac_ct_FC="$ac_prog" |
5213506e | 13352 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
13353 | break 2 |
13354 | fi | |
13355 | done | |
5213506e RW |
13356 | done |
13357 | IFS=$as_save_IFS | |
1cf3d07d SE |
13358 | |
13359 | fi | |
13360 | fi | |
13361 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
13362 | if test -n "$ac_ct_FC"; then | |
5213506e RW |
13363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
13364 | $as_echo "$ac_ct_FC" >&6; } | |
1cf3d07d | 13365 | else |
5213506e RW |
13366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13367 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13368 | fi |
13369 | ||
5213506e | 13370 | |
1cf3d07d | 13371 | test -n "$ac_ct_FC" && break |
38d24731 RW |
13372 | done |
13373 | ||
5213506e RW |
13374 | if test "x$ac_ct_FC" = x; then |
13375 | FC="" | |
13376 | else | |
13377 | case $cross_compiling:$ac_tool_warned in | |
13378 | yes:) | |
13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13380 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13381 | ac_tool_warned=yes ;; | |
13382 | esac | |
13383 | FC=$ac_ct_FC | |
13384 | fi | |
1cf3d07d SE |
13385 | fi |
13386 | ||
13387 | ||
13388 | # Provide some information about the compiler. | |
5213506e RW |
13389 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
13390 | set X $ac_compile | |
13391 | ac_compiler=$2 | |
13392 | for ac_option in --version -v -V -qversion; do | |
13393 | { { ac_try="$ac_compiler $ac_option >&5" | |
13394 | case "(($ac_try" in | |
13395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13396 | *) ac_try_echo=$ac_try;; | |
13397 | esac | |
13398 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
13399 | $as_echo "$ac_try_echo"; } >&5 | |
13400 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1cf3d07d | 13401 | ac_status=$? |
5213506e RW |
13402 | if test -s conftest.err; then |
13403 | sed '10a\ | |
13404 | ... rest of stderr output deleted ... | |
13405 | 10q' conftest.err >conftest.er1 | |
13406 | cat conftest.er1 >&5 | |
5213506e | 13407 | fi |
22e05272 | 13408 | rm -f conftest.er1 conftest.err |
5213506e RW |
13409 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13410 | test $ac_status = 0; } | |
13411 | done | |
1cf3d07d SE |
13412 | rm -f a.out |
13413 | ||
13414 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
13415 | # input file. (Note that this only needs to work for GNU compilers.) | |
13416 | ac_save_ext=$ac_ext | |
13417 | ac_ext=F | |
5213506e RW |
13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
13419 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | |
22e05272 | 13420 | if ${ac_cv_fc_compiler_gnu+:} false; then : |
5213506e | 13421 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 13422 | else |
5213506e | 13423 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13424 | program main |
13425 | #ifndef __GNUC__ | |
13426 | choke me | |
13427 | #endif | |
13428 | ||
13429 | end | |
13430 | _ACEOF | |
5213506e | 13431 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
13432 | ac_compiler_gnu=yes |
13433 | else | |
5213506e | 13434 | ac_compiler_gnu=no |
1cf3d07d | 13435 | fi |
5213506e | 13436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
13437 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
13438 | ||
13439 | fi | |
5213506e RW |
13440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
13441 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
1cf3d07d | 13442 | ac_ext=$ac_save_ext |
5213506e RW |
13443 | ac_test_FCFLAGS=${FCFLAGS+set} |
13444 | ac_save_FCFLAGS=$FCFLAGS | |
1cf3d07d | 13445 | FCFLAGS= |
5213506e RW |
13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
13447 | $as_echo_n "checking whether $FC accepts -g... " >&6; } | |
22e05272 | 13448 | if ${ac_cv_prog_fc_g+:} false; then : |
5213506e | 13449 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13450 | else |
13451 | FCFLAGS=-g | |
5213506e | 13452 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13453 | program main |
13454 | ||
13455 | end | |
13456 | _ACEOF | |
5213506e | 13457 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
13458 | ac_cv_prog_fc_g=yes |
13459 | else | |
5213506e | 13460 | ac_cv_prog_fc_g=no |
1cf3d07d | 13461 | fi |
5213506e | 13462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
13463 | |
13464 | fi | |
5213506e RW |
13465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
13466 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
13467 | if test "$ac_test_FCFLAGS" = set; then | |
13468 | FCFLAGS=$ac_save_FCFLAGS | |
1cf3d07d SE |
13469 | elif test $ac_cv_prog_fc_g = yes; then |
13470 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13471 | FCFLAGS="-g -O2" | |
13472 | else | |
13473 | FCFLAGS="-g" | |
13474 | fi | |
13475 | else | |
13476 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13477 | FCFLAGS="-O2" | |
13478 | else | |
13479 | FCFLAGS= | |
13480 | fi | |
13481 | fi | |
13482 | ||
22e05272 JM |
13483 | if test $ac_compiler_gnu = yes; then |
13484 | GFC=yes | |
13485 | else | |
13486 | GFC= | |
13487 | fi | |
1cf3d07d SE |
13488 | ac_ext=c |
13489 | ac_cpp='$CPP $CPPFLAGS' | |
13490 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13491 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13492 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13493 | ||
5213506e RW |
13494 | ac_ext=${ac_fc_srcext-f} |
13495 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13496 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
13497 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13498 | ||
13499 | ||
43e02a8a RW |
13500 | if test -z "$FC" || test "X$FC" = "Xno"; then |
13501 | _lt_disable_FC=yes | |
13502 | fi | |
13503 | ||
1cf3d07d SE |
13504 | archive_cmds_need_lc_FC=no |
13505 | allow_undefined_flag_FC= | |
13506 | always_export_symbols_FC=no | |
13507 | archive_expsym_cmds_FC= | |
13508 | export_dynamic_flag_spec_FC= | |
13509 | hardcode_direct_FC=no | |
13510 | hardcode_direct_absolute_FC=no | |
13511 | hardcode_libdir_flag_spec_FC= | |
13512 | hardcode_libdir_flag_spec_ld_FC= | |
13513 | hardcode_libdir_separator_FC= | |
13514 | hardcode_minus_L_FC=no | |
13515 | hardcode_automatic_FC=no | |
13516 | inherit_rpath_FC=no | |
13517 | module_cmds_FC= | |
13518 | module_expsym_cmds_FC= | |
13519 | link_all_deplibs_FC=unknown | |
13520 | old_archive_cmds_FC=$old_archive_cmds | |
43e02a8a RW |
13521 | reload_flag_FC=$reload_flag |
13522 | reload_cmds_FC=$reload_cmds | |
1cf3d07d SE |
13523 | no_undefined_flag_FC= |
13524 | whole_archive_flag_spec_FC= | |
13525 | enable_shared_with_static_runtimes_FC=no | |
13526 | ||
13527 | # Source file extension for fc test sources. | |
13528 | ac_ext=${ac_fc_srcext-f} | |
13529 | ||
13530 | # Object file extension for compiled fc test sources. | |
13531 | objext=o | |
13532 | objext_FC=$objext | |
13533 | ||
13534 | # No sense in running all these tests if we already determined that | |
13535 | # the FC compiler isn't working. Some variables (like enable_shared) | |
13536 | # are currently assumed to apply to all compilers on this platform, | |
13537 | # and will be corrupted by setting them based on a non-working compiler. | |
13538 | if test "$_lt_disable_FC" != yes; then | |
13539 | # Code to be used in simple compile tests | |
13540 | lt_simple_compile_test_code="\ | |
13541 | subroutine t | |
13542 | return | |
13543 | end | |
13544 | " | |
13545 | ||
13546 | # Code to be used in simple link tests | |
13547 | lt_simple_link_test_code="\ | |
13548 | program t | |
13549 | end | |
13550 | " | |
13551 | ||
13552 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13553 | ||
13554 | ||
13555 | ||
13556 | ||
13557 | ||
13558 | ||
13559 | # If no C compiler was specified, use CC. | |
13560 | LTCC=${LTCC-"$CC"} | |
13561 | ||
13562 | # If no C compiler flags were specified, use CFLAGS. | |
13563 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13564 | ||
13565 | # Allow CC to be a program name with arguments. | |
13566 | compiler=$CC | |
13567 | ||
13568 | ||
13569 | # save warnings/boilerplate of simple test code | |
13570 | ac_outfile=conftest.$ac_objext | |
13571 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13572 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13573 | _lt_compiler_boilerplate=`cat conftest.err` | |
13574 | $RM conftest* | |
13575 | ||
13576 | ac_outfile=conftest.$ac_objext | |
13577 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13578 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13579 | _lt_linker_boilerplate=`cat conftest.err` | |
d58dead8 | 13580 | $RM -r conftest* |
1cf3d07d SE |
13581 | |
13582 | ||
13583 | # Allow CC to be a program name with arguments. | |
13584 | lt_save_CC="$CC" | |
d58dead8 | 13585 | lt_save_GCC=$GCC |
1cf3d07d SE |
13586 | CC=${FC-"f95"} |
13587 | compiler=$CC | |
d58dead8 PG |
13588 | GCC=$ac_cv_fc_compiler_gnu |
13589 | ||
1cf3d07d SE |
13590 | compiler_FC=$CC |
13591 | for cc_temp in $compiler""; do | |
13592 | case $cc_temp in | |
13593 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13594 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13595 | \-*) ;; | |
13596 | *) break;; | |
13597 | esac | |
13598 | done | |
43e02a8a | 13599 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
13600 | |
13601 | ||
13602 | if test -n "$compiler"; then | |
5213506e RW |
13603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
13604 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13606 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 13607 | |
5213506e RW |
13608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13609 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
1cf3d07d SE |
13610 | test "$can_build_shared" = "no" && enable_shared=no |
13611 | ||
13612 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13613 | # are all built from PIC. | |
13614 | case $host_os in | |
13615 | aix3*) | |
13616 | test "$enable_shared" = yes && enable_static=no | |
13617 | if test -n "$RANLIB"; then | |
13618 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13619 | postinstall_cmds='$RANLIB $lib' | |
13620 | fi | |
13621 | ;; | |
4f6bebc3 | 13622 | aix[4-9]*) |
1cf3d07d SE |
13623 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13624 | test "$enable_shared" = yes && enable_static=no | |
13625 | fi | |
13626 | ;; | |
13627 | esac | |
5213506e RW |
13628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
13629 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 13630 | |
5213506e RW |
13631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13632 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
1cf3d07d SE |
13633 | # Make sure either enable_shared or enable_static is yes. |
13634 | test "$enable_shared" = yes || enable_static=yes | |
5213506e RW |
13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
13636 | $as_echo "$enable_static" >&6; } | |
1cf3d07d SE |
13637 | |
13638 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
13639 | LD_FC="$LD" | |
13640 | ||
13641 | ## CAVEAT EMPTOR: | |
13642 | ## There is no encapsulation within the following macros, do not change | |
13643 | ## the running order or otherwise move them around unless you know exactly | |
13644 | ## what you are doing... | |
13645 | # Dependencies to place before and after the object being linked: | |
13646 | predep_objects_FC= | |
13647 | postdep_objects_FC= | |
13648 | predeps_FC= | |
13649 | postdeps_FC= | |
13650 | compiler_lib_search_path_FC= | |
13651 | ||
13652 | cat > conftest.$ac_ext <<_LT_EOF | |
13653 | subroutine foo | |
13654 | implicit none | |
13655 | integer a | |
13656 | a=0 | |
13657 | return | |
13658 | end | |
13659 | _LT_EOF | |
13660 | ||
5213506e | 13661 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
13662 | (eval $ac_compile) 2>&5 |
13663 | ac_status=$? | |
5213506e RW |
13664 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13665 | test $ac_status = 0; }; then | |
1cf3d07d SE |
13666 | # Parse the compiler output and extract the necessary |
13667 | # objects, libraries and library flags. | |
13668 | ||
13669 | # Sentinel used to keep track of whether or not we are before | |
13670 | # the conftest object file. | |
13671 | pre_test_object_deps_done=no | |
13672 | ||
d58dead8 | 13673 | for p in `eval "$output_verbose_link_cmd"`; do |
1cf3d07d SE |
13674 | case $p in |
13675 | ||
13676 | -L* | -R* | -l*) | |
13677 | # Some compilers place space between "-{L,R}" and the path. | |
13678 | # Remove the space. | |
13679 | if test $p = "-L" || | |
13680 | test $p = "-R"; then | |
13681 | prev=$p | |
13682 | continue | |
13683 | else | |
13684 | prev= | |
13685 | fi | |
13686 | ||
13687 | if test "$pre_test_object_deps_done" = no; then | |
13688 | case $p in | |
13689 | -L* | -R*) | |
13690 | # Internal compiler library paths should come after those | |
13691 | # provided the user. The postdeps already come after the | |
13692 | # user supplied libs so there is no need to process them. | |
13693 | if test -z "$compiler_lib_search_path_FC"; then | |
13694 | compiler_lib_search_path_FC="${prev}${p}" | |
13695 | else | |
13696 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
13697 | fi | |
13698 | ;; | |
13699 | # The "-l" case would never come before the object being | |
13700 | # linked, so don't bother handling this case. | |
13701 | esac | |
13702 | else | |
13703 | if test -z "$postdeps_FC"; then | |
13704 | postdeps_FC="${prev}${p}" | |
13705 | else | |
13706 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
13707 | fi | |
13708 | fi | |
13709 | ;; | |
13710 | ||
13711 | *.$objext) | |
13712 | # This assumes that the test object file only shows up | |
13713 | # once in the compiler output. | |
13714 | if test "$p" = "conftest.$objext"; then | |
13715 | pre_test_object_deps_done=yes | |
13716 | continue | |
13717 | fi | |
13718 | ||
13719 | if test "$pre_test_object_deps_done" = no; then | |
13720 | if test -z "$predep_objects_FC"; then | |
13721 | predep_objects_FC="$p" | |
13722 | else | |
13723 | predep_objects_FC="$predep_objects_FC $p" | |
13724 | fi | |
13725 | else | |
13726 | if test -z "$postdep_objects_FC"; then | |
13727 | postdep_objects_FC="$p" | |
13728 | else | |
13729 | postdep_objects_FC="$postdep_objects_FC $p" | |
13730 | fi | |
13731 | fi | |
13732 | ;; | |
13733 | ||
13734 | *) ;; # Ignore the rest. | |
13735 | ||
13736 | esac | |
13737 | done | |
13738 | ||
13739 | # Clean up. | |
13740 | rm -f a.out a.exe | |
13741 | else | |
13742 | echo "libtool.m4: error: problem compiling FC test program" | |
13743 | fi | |
13744 | ||
13745 | $RM -f confest.$objext | |
13746 | ||
13747 | # PORTME: override above test on systems where it is broken | |
13748 | ||
13749 | ||
13750 | case " $postdeps_FC " in | |
13751 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
13752 | esac | |
d58dead8 PG |
13753 | compiler_lib_search_dirs_FC= |
13754 | if test -n "${compiler_lib_search_path_FC}"; then | |
13755 | compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13756 | fi | |
13757 | ||
13758 | ||
13759 | ||
13760 | ||
13761 | ||
1cf3d07d SE |
13762 | |
13763 | ||
13764 | ||
13765 | ||
13766 | ||
13767 | ||
13768 | ||
13769 | ||
13770 | ||
13771 | ||
13772 | ||
13773 | ||
13774 | ||
13775 | ||
13776 | ||
13777 | ||
13778 | ||
13779 | ||
13780 | ||
13781 | ||
13782 | ||
13783 | ||
13784 | ||
13785 | ||
13786 | ||
13787 | ||
13788 | lt_prog_compiler_wl_FC= | |
13789 | lt_prog_compiler_pic_FC= | |
13790 | lt_prog_compiler_static_FC= | |
13791 | ||
5213506e RW |
13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
13793 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
13794 | |
13795 | if test "$GCC" = yes; then | |
13796 | lt_prog_compiler_wl_FC='-Wl,' | |
13797 | lt_prog_compiler_static_FC='-static' | |
13798 | ||
13799 | case $host_os in | |
13800 | aix*) | |
13801 | # All AIX code is PIC. | |
13802 | if test "$host_cpu" = ia64; then | |
13803 | # AIX 5 now supports IA64 processor | |
13804 | lt_prog_compiler_static_FC='-Bstatic' | |
13805 | fi | |
bad8a4a7 | 13806 | lt_prog_compiler_pic_FC='-fPIC' |
1cf3d07d SE |
13807 | ;; |
13808 | ||
13809 | amigaos*) | |
d58dead8 PG |
13810 | case $host_cpu in |
13811 | powerpc) | |
13812 | # see comment about AmigaOS4 .so support | |
13813 | lt_prog_compiler_pic_FC='-fPIC' | |
13814 | ;; | |
13815 | m68k) | |
13816 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13817 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13818 | # like `-m68040'. | |
13819 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
13820 | ;; | |
13821 | esac | |
1cf3d07d SE |
13822 | ;; |
13823 | ||
13824 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13825 | # PIC is the default for these OSes. | |
13826 | ;; | |
13827 | ||
d58dead8 | 13828 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
13829 | # This hack is so that the source file can tell whether it is being |
13830 | # built for inclusion in a dll (and should export symbols for example). | |
13831 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13832 | # (--disable-auto-import) libraries | |
13833 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13834 | ;; | |
13835 | ||
13836 | darwin* | rhapsody*) | |
13837 | # PIC is the default on this platform | |
13838 | # Common symbols not allowed in MH_DYLIB files | |
13839 | lt_prog_compiler_pic_FC='-fno-common' | |
13840 | ;; | |
13841 | ||
43e02a8a RW |
13842 | haiku*) |
13843 | # PIC is the default for Haiku. | |
13844 | # The "-static" flag exists, but is broken. | |
13845 | lt_prog_compiler_static_FC= | |
13846 | ;; | |
13847 | ||
1cf3d07d | 13848 | hpux*) |
d58dead8 PG |
13849 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
13850 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13851 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 13852 | case $host_cpu in |
d58dead8 | 13853 | hppa*64*) |
1cf3d07d SE |
13854 | # +Z the default |
13855 | ;; | |
13856 | *) | |
13857 | lt_prog_compiler_pic_FC='-fPIC' | |
13858 | ;; | |
13859 | esac | |
13860 | ;; | |
13861 | ||
13862 | interix[3-9]*) | |
13863 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13864 | # Instead, we relocate shared libraries at runtime. | |
13865 | ;; | |
13866 | ||
13867 | msdosdjgpp*) | |
13868 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13869 | # on systems that don't support them. | |
13870 | lt_prog_compiler_can_build_shared_FC=no | |
13871 | enable_shared=no | |
13872 | ;; | |
13873 | ||
13874 | *nto* | *qnx*) | |
13875 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13876 | # it will coredump. | |
13877 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13878 | ;; | |
13879 | ||
13880 | sysv4*MP*) | |
13881 | if test -d /usr/nec; then | |
13882 | lt_prog_compiler_pic_FC=-Kconform_pic | |
13883 | fi | |
13884 | ;; | |
13885 | ||
13886 | *) | |
13887 | lt_prog_compiler_pic_FC='-fPIC' | |
13888 | ;; | |
13889 | esac | |
43e02a8a RW |
13890 | |
13891 | case $cc_basename in | |
13892 | nvcc*) # Cuda Compiler Driver 2.2 | |
13893 | lt_prog_compiler_wl_FC='-Xlinker ' | |
13894 | lt_prog_compiler_pic_FC='-Xcompiler -fPIC' | |
13895 | ;; | |
13896 | esac | |
1cf3d07d SE |
13897 | else |
13898 | # PORTME Check for flag to pass linker flags through the system compiler. | |
13899 | case $host_os in | |
13900 | aix*) | |
13901 | lt_prog_compiler_wl_FC='-Wl,' | |
13902 | if test "$host_cpu" = ia64; then | |
13903 | # AIX 5 now supports IA64 processor | |
13904 | lt_prog_compiler_static_FC='-Bstatic' | |
13905 | else | |
13906 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
13907 | fi | |
13908 | ;; | |
1cf3d07d | 13909 | |
d58dead8 | 13910 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
13911 | # This hack is so that the source file can tell whether it is being |
13912 | # built for inclusion in a dll (and should export symbols for example). | |
13913 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13914 | ;; | |
13915 | ||
13916 | hpux9* | hpux10* | hpux11*) | |
13917 | lt_prog_compiler_wl_FC='-Wl,' | |
13918 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13919 | # not for PA HP-UX. | |
13920 | case $host_cpu in | |
13921 | hppa*64*|ia64*) | |
13922 | # +Z the default | |
13923 | ;; | |
13924 | *) | |
13925 | lt_prog_compiler_pic_FC='+Z' | |
13926 | ;; | |
13927 | esac | |
13928 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13929 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
13930 | ;; | |
13931 | ||
13932 | irix5* | irix6* | nonstopux*) | |
13933 | lt_prog_compiler_wl_FC='-Wl,' | |
13934 | # PIC (with -KPIC) is the default. | |
13935 | lt_prog_compiler_static_FC='-non_shared' | |
13936 | ;; | |
13937 | ||
7a9d3fe8 | 13938 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 13939 | case $cc_basename in |
d58dead8 PG |
13940 | # old Intel for x86_64 which still supported -KPIC. |
13941 | ecc*) | |
1cf3d07d SE |
13942 | lt_prog_compiler_wl_FC='-Wl,' |
13943 | lt_prog_compiler_pic_FC='-KPIC' | |
13944 | lt_prog_compiler_static_FC='-static' | |
13945 | ;; | |
d58dead8 PG |
13946 | # icc used to be incompatible with GCC. |
13947 | # ICC 10 doesn't accept -KPIC any more. | |
13948 | icc* | ifort*) | |
13949 | lt_prog_compiler_wl_FC='-Wl,' | |
13950 | lt_prog_compiler_pic_FC='-fPIC' | |
13951 | lt_prog_compiler_static_FC='-static' | |
13952 | ;; | |
13953 | # Lahey Fortran 8.1. | |
13954 | lf95*) | |
13955 | lt_prog_compiler_wl_FC='-Wl,' | |
13956 | lt_prog_compiler_pic_FC='--shared' | |
13957 | lt_prog_compiler_static_FC='--static' | |
13958 | ;; | |
43e02a8a | 13959 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
13960 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13961 | # which looks to be a dead project) | |
13962 | lt_prog_compiler_wl_FC='-Wl,' | |
13963 | lt_prog_compiler_pic_FC='-fpic' | |
13964 | lt_prog_compiler_static_FC='-Bstatic' | |
13965 | ;; | |
13966 | ccc*) | |
13967 | lt_prog_compiler_wl_FC='-Wl,' | |
13968 | # All Alpha code is PIC. | |
13969 | lt_prog_compiler_static_FC='-non_shared' | |
13970 | ;; | |
43e02a8a RW |
13971 | xl* | bgxl* | bgf* | mpixl*) |
13972 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
d58dead8 PG |
13973 | lt_prog_compiler_wl_FC='-Wl,' |
13974 | lt_prog_compiler_pic_FC='-qpic' | |
13975 | lt_prog_compiler_static_FC='-qstaticlink' | |
13976 | ;; | |
1cf3d07d SE |
13977 | *) |
13978 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
13979 | *Sun\ F* | *Sun*Fortran*) |
13980 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
13981 | lt_prog_compiler_pic_FC='-KPIC' |
13982 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 13983 | lt_prog_compiler_wl_FC='' |
1cf3d07d | 13984 | ;; |
43e02a8a RW |
13985 | *Sun\ C*) |
13986 | # Sun C 5.9 | |
1cf3d07d SE |
13987 | lt_prog_compiler_pic_FC='-KPIC' |
13988 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 13989 | lt_prog_compiler_wl_FC='-Wl,' |
1cf3d07d SE |
13990 | ;; |
13991 | esac | |
13992 | ;; | |
13993 | esac | |
13994 | ;; | |
13995 | ||
13996 | newsos6) | |
13997 | lt_prog_compiler_pic_FC='-KPIC' | |
13998 | lt_prog_compiler_static_FC='-Bstatic' | |
13999 | ;; | |
14000 | ||
14001 | *nto* | *qnx*) | |
14002 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14003 | # it will coredump. | |
14004 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
14005 | ;; | |
14006 | ||
14007 | osf3* | osf4* | osf5*) | |
14008 | lt_prog_compiler_wl_FC='-Wl,' | |
14009 | # All OSF/1 code is PIC. | |
14010 | lt_prog_compiler_static_FC='-non_shared' | |
14011 | ;; | |
14012 | ||
14013 | rdos*) | |
14014 | lt_prog_compiler_static_FC='-non_shared' | |
14015 | ;; | |
14016 | ||
14017 | solaris*) | |
14018 | lt_prog_compiler_pic_FC='-KPIC' | |
14019 | lt_prog_compiler_static_FC='-Bstatic' | |
14020 | case $cc_basename in | |
14021 | f77* | f90* | f95*) | |
14022 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
14023 | *) | |
14024 | lt_prog_compiler_wl_FC='-Wl,';; | |
14025 | esac | |
14026 | ;; | |
14027 | ||
14028 | sunos4*) | |
14029 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
14030 | lt_prog_compiler_pic_FC='-PIC' | |
14031 | lt_prog_compiler_static_FC='-Bstatic' | |
14032 | ;; | |
14033 | ||
14034 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
14035 | lt_prog_compiler_wl_FC='-Wl,' | |
14036 | lt_prog_compiler_pic_FC='-KPIC' | |
14037 | lt_prog_compiler_static_FC='-Bstatic' | |
14038 | ;; | |
14039 | ||
14040 | sysv4*MP*) | |
14041 | if test -d /usr/nec ;then | |
14042 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
14043 | lt_prog_compiler_static_FC='-Bstatic' | |
14044 | fi | |
14045 | ;; | |
14046 | ||
14047 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14048 | lt_prog_compiler_wl_FC='-Wl,' | |
14049 | lt_prog_compiler_pic_FC='-KPIC' | |
14050 | lt_prog_compiler_static_FC='-Bstatic' | |
14051 | ;; | |
14052 | ||
14053 | unicos*) | |
14054 | lt_prog_compiler_wl_FC='-Wl,' | |
14055 | lt_prog_compiler_can_build_shared_FC=no | |
14056 | ;; | |
14057 | ||
14058 | uts4*) | |
14059 | lt_prog_compiler_pic_FC='-pic' | |
14060 | lt_prog_compiler_static_FC='-Bstatic' | |
14061 | ;; | |
14062 | ||
14063 | *) | |
14064 | lt_prog_compiler_can_build_shared_FC=no | |
14065 | ;; | |
14066 | esac | |
14067 | fi | |
14068 | ||
14069 | case $host_os in | |
14070 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14071 | *djgpp*) | |
14072 | lt_prog_compiler_pic_FC= | |
14073 | ;; | |
14074 | *) | |
14075 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
14076 | ;; | |
14077 | esac | |
5213506e RW |
14078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 |
14079 | $as_echo "$lt_prog_compiler_pic_FC" >&6; } | |
1cf3d07d SE |
14080 | |
14081 | ||
14082 | ||
14083 | # | |
14084 | # Check to make sure the PIC flag actually works. | |
14085 | # | |
14086 | if test -n "$lt_prog_compiler_pic_FC"; then | |
5213506e RW |
14087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 |
14088 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } | |
22e05272 | 14089 | if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : |
5213506e | 14090 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 14091 | else |
d58dead8 | 14092 | lt_cv_prog_compiler_pic_works_FC=no |
1cf3d07d SE |
14093 | ac_outfile=conftest.$ac_objext |
14094 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14095 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
14096 | # Insert the option either (1) after the last *FLAGS variable, or | |
14097 | # (2) before a word containing "conftest.", or (3) at the end. | |
14098 | # Note that $ac_compile itself does not contain backslashes and begins | |
14099 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14100 | # The option is referenced via a variable to avoid confusing sed. | |
14101 | lt_compile=`echo "$ac_compile" | $SED \ | |
14102 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14103 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14104 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 14105 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
14106 | (eval "$lt_compile" 2>conftest.err) |
14107 | ac_status=$? | |
14108 | cat conftest.err >&5 | |
43e02a8a | 14109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
14110 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14111 | # The compiler can only warn and ignore the option if not recognized | |
14112 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 14113 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
14114 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14115 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 14116 | lt_cv_prog_compiler_pic_works_FC=yes |
1cf3d07d SE |
14117 | fi |
14118 | fi | |
14119 | $RM conftest* | |
14120 | ||
14121 | fi | |
5213506e RW |
14122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
14123 | $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } | |
1cf3d07d | 14124 | |
d58dead8 | 14125 | if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then |
1cf3d07d SE |
14126 | case $lt_prog_compiler_pic_FC in |
14127 | "" | " "*) ;; | |
14128 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
14129 | esac | |
14130 | else | |
14131 | lt_prog_compiler_pic_FC= | |
14132 | lt_prog_compiler_can_build_shared_FC=no | |
14133 | fi | |
14134 | ||
14135 | fi | |
14136 | ||
14137 | ||
14138 | ||
14139 | # | |
14140 | # Check to make sure the static flag actually works. | |
14141 | # | |
14142 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
5213506e RW |
14143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14144 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 14145 | if ${lt_cv_prog_compiler_static_works_FC+:} false; then : |
5213506e | 14146 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 14147 | else |
d58dead8 | 14148 | lt_cv_prog_compiler_static_works_FC=no |
1cf3d07d SE |
14149 | save_LDFLAGS="$LDFLAGS" |
14150 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14151 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14152 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14153 | # The linker can only warn and ignore the option if not recognized | |
14154 | # So say no if there are warnings | |
14155 | if test -s conftest.err; then | |
14156 | # Append any errors to the config.log. | |
14157 | cat conftest.err 1>&5 | |
43e02a8a | 14158 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
14159 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14160 | if diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 14161 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
14162 | fi |
14163 | else | |
d58dead8 | 14164 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
14165 | fi |
14166 | fi | |
d58dead8 | 14167 | $RM -r conftest* |
1cf3d07d SE |
14168 | LDFLAGS="$save_LDFLAGS" |
14169 | ||
14170 | fi | |
5213506e RW |
14171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
14172 | $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } | |
1cf3d07d | 14173 | |
d58dead8 | 14174 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
1cf3d07d SE |
14175 | : |
14176 | else | |
14177 | lt_prog_compiler_static_FC= | |
14178 | fi | |
14179 | ||
14180 | ||
14181 | ||
14182 | ||
5213506e RW |
14183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14184 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 14185 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 14186 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
14187 | else |
14188 | lt_cv_prog_compiler_c_o_FC=no | |
14189 | $RM -r conftest 2>/dev/null | |
14190 | mkdir conftest | |
14191 | cd conftest | |
14192 | mkdir out | |
14193 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14194 | ||
14195 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14196 | # Insert the option either (1) after the last *FLAGS variable, or | |
14197 | # (2) before a word containing "conftest.", or (3) at the end. | |
14198 | # Note that $ac_compile itself does not contain backslashes and begins | |
14199 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14200 | lt_compile=`echo "$ac_compile" | $SED \ | |
14201 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14202 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14203 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 14204 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
14205 | (eval "$lt_compile" 2>out/conftest.err) |
14206 | ac_status=$? | |
14207 | cat out/conftest.err >&5 | |
43e02a8a | 14208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
14209 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14210 | then | |
14211 | # The compiler can only warn and ignore the option if not recognized | |
14212 | # So say no if there are warnings | |
43e02a8a | 14213 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
14214 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14215 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14216 | lt_cv_prog_compiler_c_o_FC=yes | |
14217 | fi | |
14218 | fi | |
14219 | chmod u+w . 2>&5 | |
14220 | $RM conftest* | |
14221 | # SGI C++ compiler will create directory out/ii_files/ for | |
14222 | # template instantiation | |
14223 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14224 | $RM out/* && rmdir out | |
14225 | cd .. | |
14226 | $RM -r conftest | |
14227 | $RM conftest* | |
14228 | ||
14229 | fi | |
5213506e RW |
14230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14231 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
14232 | |
14233 | ||
14234 | ||
5213506e RW |
14235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14236 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 14237 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 14238 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
14239 | else |
14240 | lt_cv_prog_compiler_c_o_FC=no | |
14241 | $RM -r conftest 2>/dev/null | |
14242 | mkdir conftest | |
14243 | cd conftest | |
14244 | mkdir out | |
14245 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14246 | ||
14247 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14248 | # Insert the option either (1) after the last *FLAGS variable, or | |
14249 | # (2) before a word containing "conftest.", or (3) at the end. | |
14250 | # Note that $ac_compile itself does not contain backslashes and begins | |
14251 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14252 | lt_compile=`echo "$ac_compile" | $SED \ | |
14253 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14254 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14255 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 14256 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
14257 | (eval "$lt_compile" 2>out/conftest.err) |
14258 | ac_status=$? | |
14259 | cat out/conftest.err >&5 | |
43e02a8a | 14260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
14261 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14262 | then | |
14263 | # The compiler can only warn and ignore the option if not recognized | |
14264 | # So say no if there are warnings | |
43e02a8a | 14265 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
14266 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14267 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14268 | lt_cv_prog_compiler_c_o_FC=yes | |
14269 | fi | |
14270 | fi | |
14271 | chmod u+w . 2>&5 | |
14272 | $RM conftest* | |
14273 | # SGI C++ compiler will create directory out/ii_files/ for | |
14274 | # template instantiation | |
14275 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14276 | $RM out/* && rmdir out | |
14277 | cd .. | |
14278 | $RM -r conftest | |
14279 | $RM conftest* | |
14280 | ||
14281 | fi | |
5213506e RW |
14282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14283 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
14284 | |
14285 | ||
14286 | ||
14287 | ||
14288 | hard_links="nottested" | |
14289 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
14290 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
14291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
14292 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
14293 | hard_links=yes |
14294 | $RM conftest* | |
14295 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14296 | touch conftest.a | |
14297 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14298 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
14299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
14300 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 14301 | if test "$hard_links" = no; then |
5213506e RW |
14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14303 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
14304 | need_locks=warn |
14305 | fi | |
14306 | else | |
14307 | need_locks=no | |
14308 | fi | |
14309 | ||
14310 | ||
14311 | ||
5213506e RW |
14312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14313 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
14314 | |
14315 | runpath_var= | |
14316 | allow_undefined_flag_FC= | |
14317 | always_export_symbols_FC=no | |
14318 | archive_cmds_FC= | |
14319 | archive_expsym_cmds_FC= | |
14320 | compiler_needs_object_FC=no | |
14321 | enable_shared_with_static_runtimes_FC=no | |
14322 | export_dynamic_flag_spec_FC= | |
14323 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14324 | hardcode_automatic_FC=no | |
14325 | hardcode_direct_FC=no | |
14326 | hardcode_direct_absolute_FC=no | |
14327 | hardcode_libdir_flag_spec_FC= | |
14328 | hardcode_libdir_flag_spec_ld_FC= | |
14329 | hardcode_libdir_separator_FC= | |
14330 | hardcode_minus_L_FC=no | |
14331 | hardcode_shlibpath_var_FC=unsupported | |
14332 | inherit_rpath_FC=no | |
14333 | link_all_deplibs_FC=unknown | |
14334 | module_cmds_FC= | |
14335 | module_expsym_cmds_FC= | |
14336 | old_archive_from_new_cmds_FC= | |
14337 | old_archive_from_expsyms_cmds_FC= | |
14338 | thread_safe_flag_spec_FC= | |
14339 | whole_archive_flag_spec_FC= | |
14340 | # include_expsyms should be a list of space-separated symbols to be *always* | |
14341 | # included in the symbol list | |
14342 | include_expsyms_FC= | |
14343 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
14344 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
14345 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
14346 | # as well as any symbol that contains `d'. | |
d58dead8 | 14347 | exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
14348 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14349 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
14350 | # the symbol is explicitly referenced. Since portable code cannot | |
14351 | # rely on this symbol name, it's probably fine to never include it in | |
14352 | # preloaded symbol tables. | |
d58dead8 | 14353 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
14354 | extract_expsyms_cmds= |
14355 | ||
14356 | case $host_os in | |
d58dead8 | 14357 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14358 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14359 | # When not using gcc, we currently assume that we are using | |
14360 | # Microsoft Visual C++. | |
14361 | if test "$GCC" != yes; then | |
14362 | with_gnu_ld=no | |
14363 | fi | |
14364 | ;; | |
14365 | interix*) | |
14366 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
14367 | with_gnu_ld=yes | |
14368 | ;; | |
14369 | openbsd*) | |
14370 | with_gnu_ld=no | |
14371 | ;; | |
14372 | esac | |
14373 | ||
14374 | ld_shlibs_FC=yes | |
43e02a8a RW |
14375 | |
14376 | # On some targets, GNU ld is compatible enough with the native linker | |
14377 | # that we're better off using the native interface for both. | |
14378 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 14379 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
14380 | case $host_os in |
14381 | aix*) | |
14382 | # The AIX port of GNU ld has always aspired to compatibility | |
14383 | # with the native linker. However, as the warning in the GNU ld | |
14384 | # block says, versions before 2.19.5* couldn't really create working | |
14385 | # shared libraries, regardless of the interface used. | |
14386 | case `$LD -v 2>&1` in | |
14387 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
14388 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
14389 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
14390 | *) | |
14391 | lt_use_gnu_ld_interface=yes | |
14392 | ;; | |
14393 | esac | |
14394 | ;; | |
14395 | *) | |
14396 | lt_use_gnu_ld_interface=yes | |
14397 | ;; | |
14398 | esac | |
14399 | fi | |
14400 | ||
14401 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
14402 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14403 | wlarc='${wl}' | |
14404 | ||
14405 | # Set some defaults for GNU ld with shared library support. These | |
14406 | # are reset later if shared libraries are not supported. Putting them | |
14407 | # here allows them to be overridden if necessary. | |
14408 | runpath_var=LD_RUN_PATH | |
14409 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14410 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
14411 | # ancient GNU ld didn't support --whole-archive et. al. | |
14412 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
14413 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
14414 | else | |
14415 | whole_archive_flag_spec_FC= | |
14416 | fi | |
14417 | supports_anon_versioning=no | |
14418 | case `$LD -v 2>&1` in | |
43e02a8a | 14419 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
14420 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14421 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
14422 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
14423 | *\ 2.11.*) ;; # other 2.11 versions | |
14424 | *) supports_anon_versioning=yes ;; | |
14425 | esac | |
14426 | ||
14427 | # See if GNU ld supports shared libraries. | |
14428 | case $host_os in | |
4f6bebc3 | 14429 | aix[3-9]*) |
1cf3d07d SE |
14430 | # On AIX/PPC, the GNU linker is very broken |
14431 | if test "$host_cpu" != ia64; then | |
14432 | ld_shlibs_FC=no | |
14433 | cat <<_LT_EOF 1>&2 | |
14434 | ||
43e02a8a | 14435 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
14436 | *** to be unable to reliably create shared libraries on AIX. |
14437 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
14438 | *** really care for shared libraries, you may want to install binutils |
14439 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
14440 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
14441 | |
14442 | _LT_EOF | |
14443 | fi | |
14444 | ;; | |
14445 | ||
14446 | amigaos*) | |
d58dead8 PG |
14447 | case $host_cpu in |
14448 | powerpc) | |
14449 | # see comment about AmigaOS4 .so support | |
14450 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14451 | archive_expsym_cmds_FC='' | |
14452 | ;; | |
14453 | m68k) | |
14454 | 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)' | |
14455 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14456 | hardcode_minus_L_FC=yes | |
14457 | ;; | |
14458 | esac | |
1cf3d07d SE |
14459 | ;; |
14460 | ||
14461 | beos*) | |
14462 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14463 | allow_undefined_flag_FC=unsupported | |
14464 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
14465 | # support --undefined. This deserves some investigation. FIXME | |
14466 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14467 | else | |
14468 | ld_shlibs_FC=no | |
14469 | fi | |
14470 | ;; | |
14471 | ||
d58dead8 | 14472 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14473 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, |
14474 | # as there is no search path for DLLs. | |
14475 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
43e02a8a | 14476 | export_dynamic_flag_spec_FC='${wl}--export-all-symbols' |
1cf3d07d SE |
14477 | allow_undefined_flag_FC=unsupported |
14478 | always_export_symbols_FC=no | |
14479 | enable_shared_with_static_runtimes_FC=yes | |
14480 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
14481 | ||
14482 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
14483 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14484 | # If the export-symbols file already is a .def file (1st line | |
14485 | # is EXPORTS), use it as is; otherwise, prepend... | |
14486 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
14487 | cp $export_symbols $output_objdir/$soname.def; | |
14488 | else | |
14489 | echo EXPORTS > $output_objdir/$soname.def; | |
14490 | cat $export_symbols >> $output_objdir/$soname.def; | |
14491 | fi~ | |
14492 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14493 | else | |
14494 | ld_shlibs_FC=no | |
14495 | fi | |
14496 | ;; | |
14497 | ||
43e02a8a RW |
14498 | haiku*) |
14499 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14500 | link_all_deplibs_FC=yes | |
14501 | ;; | |
14502 | ||
1cf3d07d SE |
14503 | interix[3-9]*) |
14504 | hardcode_direct_FC=no | |
14505 | hardcode_shlibpath_var_FC=no | |
14506 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
14507 | export_dynamic_flag_spec_FC='${wl}-E' | |
14508 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
14509 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14510 | # default) and relocated if they conflict, which is a slow very memory | |
14511 | # consuming and fragmenting process. To avoid this, we pick a random, | |
14512 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14513 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
14514 | 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' | |
14515 | 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' | |
14516 | ;; | |
14517 | ||
e9085da5 | 14518 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
14519 | tmp_diet=no |
14520 | if test "$host_os" = linux-dietlibc; then | |
14521 | case $cc_basename in | |
14522 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
14523 | esac | |
14524 | fi | |
14525 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
14526 | && test "$tmp_diet" = no | |
14527 | then | |
a699d672 | 14528 | tmp_addflag=' $pic_flag' |
d58dead8 | 14529 | tmp_sharedflag='-shared' |
1cf3d07d SE |
14530 | case $cc_basename,$host_cpu in |
14531 | pgcc*) # Portland Group C compiler | |
43e02a8a | 14532 | 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 |
14533 | tmp_addflag=' $pic_flag' |
14534 | ;; | |
43e02a8a RW |
14535 | pgf77* | pgf90* | pgf95* | pgfortran*) |
14536 | # Portland Group f77 and f90 compilers | |
14537 | 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 |
14538 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14539 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
14540 | tmp_addflag=' -i_dynamic' ;; | |
14541 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
14542 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
14543 | ifc* | ifort*) # Intel Fortran compiler | |
14544 | tmp_addflag=' -nofor_main' ;; | |
d58dead8 PG |
14545 | lf95*) # Lahey Fortran 8.1 |
14546 | whole_archive_flag_spec_FC= | |
14547 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 14548 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
d58dead8 PG |
14549 | tmp_sharedflag='-qmkshrobj' |
14550 | tmp_addflag= ;; | |
43e02a8a RW |
14551 | nvcc*) # Cuda Compiler Driver 2.2 |
14552 | 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' | |
14553 | compiler_needs_object_FC=yes | |
14554 | ;; | |
1cf3d07d SE |
14555 | esac |
14556 | case `$CC -V 2>&1 | sed 5q` in | |
14557 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 14558 | 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 |
14559 | compiler_needs_object_FC=yes |
14560 | tmp_sharedflag='-G' ;; | |
14561 | *Sun\ F*) # Sun Fortran 8.3 | |
14562 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
14563 | esac |
14564 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14565 | ||
14566 | if test "x$supports_anon_versioning" = xyes; then | |
14567 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14568 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14569 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14570 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
14571 | fi | |
d58dead8 PG |
14572 | |
14573 | case $cc_basename in | |
43e02a8a | 14574 | xlf* | bgf* | bgxlf* | mpixlf*) |
d58dead8 PG |
14575 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
14576 | whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' | |
14577 | hardcode_libdir_flag_spec_FC= | |
14578 | hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' | |
14579 | archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
14580 | if test "x$supports_anon_versioning" = xyes; then | |
14581 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14582 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14583 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14584 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
14585 | fi | |
14586 | ;; | |
14587 | esac | |
1cf3d07d SE |
14588 | else |
14589 | ld_shlibs_FC=no | |
14590 | fi | |
14591 | ;; | |
14592 | ||
14593 | netbsd*) | |
14594 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14595 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
14596 | wlarc= | |
14597 | else | |
14598 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14599 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14600 | fi | |
14601 | ;; | |
14602 | ||
14603 | solaris*) | |
14604 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
14605 | ld_shlibs_FC=no | |
14606 | cat <<_LT_EOF 1>&2 | |
14607 | ||
14608 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
14609 | *** create shared libraries on Solaris systems. Therefore, libtool | |
14610 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14611 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
14612 | *** your PATH or compiler configuration so that the native linker is | |
14613 | *** used, and then restart. | |
14614 | ||
14615 | _LT_EOF | |
14616 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14617 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14618 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14619 | else | |
14620 | ld_shlibs_FC=no | |
14621 | fi | |
14622 | ;; | |
14623 | ||
14624 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
14625 | case `$LD -v 2>&1` in | |
14626 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
14627 | ld_shlibs_FC=no | |
14628 | cat <<_LT_EOF 1>&2 | |
14629 | ||
14630 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
14631 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
14632 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14633 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
14634 | *** your PATH or compiler configuration so that the native linker is | |
14635 | *** used, and then restart. | |
14636 | ||
14637 | _LT_EOF | |
14638 | ;; | |
14639 | *) | |
14640 | # For security reasons, it is highly recommended that you always | |
14641 | # use absolute paths for naming shared libraries, and exclude the | |
14642 | # DT_RUNPATH tag from executables and libraries. But doing so | |
14643 | # requires that you compile everything twice, which is a pain. | |
14644 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14645 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14646 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14647 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14648 | else | |
14649 | ld_shlibs_FC=no | |
14650 | fi | |
14651 | ;; | |
14652 | esac | |
14653 | ;; | |
14654 | ||
14655 | sunos4*) | |
14656 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14657 | wlarc= | |
14658 | hardcode_direct_FC=yes | |
14659 | hardcode_shlibpath_var_FC=no | |
14660 | ;; | |
14661 | ||
14662 | *) | |
14663 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14664 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14665 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14666 | else | |
14667 | ld_shlibs_FC=no | |
14668 | fi | |
14669 | ;; | |
14670 | esac | |
14671 | ||
14672 | if test "$ld_shlibs_FC" = no; then | |
14673 | runpath_var= | |
14674 | hardcode_libdir_flag_spec_FC= | |
14675 | export_dynamic_flag_spec_FC= | |
14676 | whole_archive_flag_spec_FC= | |
14677 | fi | |
14678 | else | |
14679 | # PORTME fill in a description of your system's linker (not GNU ld) | |
14680 | case $host_os in | |
14681 | aix3*) | |
14682 | allow_undefined_flag_FC=unsupported | |
14683 | always_export_symbols_FC=yes | |
14684 | 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' | |
14685 | # Note: this linker hardcodes the directories in LIBPATH if there | |
14686 | # are no directories specified by -L. | |
14687 | hardcode_minus_L_FC=yes | |
14688 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
14689 | # Neither direct hardcoding nor static linking is supported with a | |
14690 | # broken collect2. | |
14691 | hardcode_direct_FC=unsupported | |
14692 | fi | |
14693 | ;; | |
14694 | ||
4f6bebc3 | 14695 | aix[4-9]*) |
1cf3d07d SE |
14696 | if test "$host_cpu" = ia64; then |
14697 | # On IA64, the linker does run time linking by default, so we don't | |
14698 | # have to do anything special. | |
14699 | aix_use_runtimelinking=no | |
14700 | exp_sym_flag='-Bexport' | |
14701 | no_entry_flag="" | |
14702 | else | |
14703 | # If we're using GNU nm, then we don't want the "-C" option. | |
14704 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
14705 | # Also, AIX nm treats weak defined symbols like other global |
14706 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 14707 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 14708 | 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 | 14709 | else |
d3ca2257 | 14710 | 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 |
14711 | fi |
14712 | aix_use_runtimelinking=no | |
14713 | ||
14714 | # Test if we are trying to use run time linking or normal | |
14715 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14716 | # need to do runtime linking. | |
4f6bebc3 | 14717 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
14718 | for ld_flag in $LDFLAGS; do |
14719 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14720 | aix_use_runtimelinking=yes | |
14721 | break | |
14722 | fi | |
14723 | done | |
14724 | ;; | |
14725 | esac | |
14726 | ||
14727 | exp_sym_flag='-bexport' | |
14728 | no_entry_flag='-bnoentry' | |
14729 | fi | |
14730 | ||
14731 | # When large executables or shared objects are built, AIX ld can | |
14732 | # have problems creating the table of contents. If linking a library | |
14733 | # or program results in "error TOC overflow" add -mminimal-toc to | |
14734 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14735 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14736 | ||
14737 | archive_cmds_FC='' | |
14738 | hardcode_direct_FC=yes | |
14739 | hardcode_direct_absolute_FC=yes | |
14740 | hardcode_libdir_separator_FC=':' | |
14741 | link_all_deplibs_FC=yes | |
14742 | file_list_spec_FC='${wl}-f,' | |
14743 | ||
14744 | if test "$GCC" = yes; then | |
14745 | case $host_os in aix4.[012]|aix4.[012].*) | |
14746 | # We only want to do this on AIX 4.2 and lower, the check | |
14747 | # below for broken collect2 doesn't work under 4.3+ | |
14748 | collect2name=`${CC} -print-prog-name=collect2` | |
14749 | if test -f "$collect2name" && | |
14750 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
14751 | then | |
14752 | # We have reworked collect2 | |
14753 | : | |
14754 | else | |
14755 | # We have old collect2 | |
14756 | hardcode_direct_FC=unsupported | |
14757 | # It fails to find uninstalled libraries when the uninstalled | |
14758 | # path is not listed in the libpath. Setting hardcode_minus_L | |
14759 | # to unsupported forces relinking | |
14760 | hardcode_minus_L_FC=yes | |
14761 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14762 | hardcode_libdir_separator_FC= | |
14763 | fi | |
14764 | ;; | |
14765 | esac | |
14766 | shared_flag='-shared' | |
14767 | if test "$aix_use_runtimelinking" = yes; then | |
14768 | shared_flag="$shared_flag "'${wl}-G' | |
14769 | fi | |
14770 | else | |
14771 | # not using gcc | |
14772 | if test "$host_cpu" = ia64; then | |
14773 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14774 | # chokes on -Wl,-G. The following line is correct: | |
14775 | shared_flag='-G' | |
14776 | else | |
14777 | if test "$aix_use_runtimelinking" = yes; then | |
14778 | shared_flag='${wl}-G' | |
14779 | else | |
14780 | shared_flag='${wl}-bM:SRE' | |
14781 | fi | |
14782 | fi | |
14783 | fi | |
14784 | ||
d58dead8 | 14785 | export_dynamic_flag_spec_FC='${wl}-bexpall' |
1cf3d07d SE |
14786 | # It seems that -bexpall does not export symbols beginning with |
14787 | # underscore (_), so it is better to generate a list of symbols to export. | |
14788 | always_export_symbols_FC=yes | |
14789 | if test "$aix_use_runtimelinking" = yes; then | |
14790 | # Warning - without using the other runtime loading flags (-brtl), | |
14791 | # -berok will link without error, but may produce a broken library. | |
14792 | allow_undefined_flag_FC='-berok' | |
14793 | # Determine the default libpath from the value encoded in an | |
14794 | # empty executable. | |
14795 | if test x$gcc_no_link = xyes; then | |
22e05272 | 14796 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 14797 | fi |
5213506e | 14798 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14799 | program main |
14800 | ||
14801 | end | |
14802 | _ACEOF | |
5213506e | 14803 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
14804 | |
14805 | lt_aix_libpath_sed=' | |
14806 | /Import File Strings/,/^$/ { | |
14807 | /^0/ { | |
14808 | s/^0 *\(.*\)$/\1/ | |
14809 | p | |
14810 | } | |
14811 | }' | |
14812 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14813 | # Check for a 64-bit object if we didn't find anything. | |
14814 | if test -z "$aix_libpath"; then | |
14815 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14816 | fi | |
1cf3d07d | 14817 | fi |
5213506e RW |
14818 | rm -f core conftest.err conftest.$ac_objext \ |
14819 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
14820 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14821 | ||
14822 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 14823 | 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 |
14824 | else |
14825 | if test "$host_cpu" = ia64; then | |
14826 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
14827 | allow_undefined_flag_FC="-z nodefs" | |
14828 | 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" | |
14829 | else | |
14830 | # Determine the default libpath from the value encoded in an | |
14831 | # empty executable. | |
14832 | if test x$gcc_no_link = xyes; then | |
22e05272 | 14833 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 14834 | fi |
5213506e | 14835 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14836 | program main |
14837 | ||
14838 | end | |
14839 | _ACEOF | |
5213506e | 14840 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
14841 | |
14842 | lt_aix_libpath_sed=' | |
14843 | /Import File Strings/,/^$/ { | |
14844 | /^0/ { | |
14845 | s/^0 *\(.*\)$/\1/ | |
14846 | p | |
14847 | } | |
14848 | }' | |
14849 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14850 | # Check for a 64-bit object if we didn't find anything. | |
14851 | if test -z "$aix_libpath"; then | |
14852 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14853 | fi | |
1cf3d07d | 14854 | fi |
5213506e RW |
14855 | rm -f core conftest.err conftest.$ac_objext \ |
14856 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
14857 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14858 | ||
14859 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14860 | # Warning - without using the other run time loading flags, | |
14861 | # -berok will link without error, but may produce a broken library. | |
14862 | no_undefined_flag_FC=' ${wl}-bernotok' | |
14863 | allow_undefined_flag_FC=' ${wl}-berok' | |
43e02a8a RW |
14864 | if test "$with_gnu_ld" = yes; then |
14865 | # We only use this code for GNU lds that support --whole-archive. | |
14866 | whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
14867 | else | |
14868 | # Exported symbols can be pulled into shared objects from archives | |
14869 | whole_archive_flag_spec_FC='$convenience' | |
14870 | fi | |
1cf3d07d SE |
14871 | archive_cmds_need_lc_FC=yes |
14872 | # This is similar to how AIX traditionally builds its shared libraries. | |
14873 | 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' | |
14874 | fi | |
14875 | fi | |
14876 | ;; | |
14877 | ||
14878 | amigaos*) | |
d58dead8 PG |
14879 | case $host_cpu in |
14880 | powerpc) | |
14881 | # see comment about AmigaOS4 .so support | |
14882 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14883 | archive_expsym_cmds_FC='' | |
14884 | ;; | |
14885 | m68k) | |
14886 | 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)' | |
14887 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14888 | hardcode_minus_L_FC=yes | |
14889 | ;; | |
14890 | esac | |
1cf3d07d SE |
14891 | ;; |
14892 | ||
14893 | bsdi[45]*) | |
14894 | export_dynamic_flag_spec_FC=-rdynamic | |
14895 | ;; | |
14896 | ||
d58dead8 | 14897 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14898 | # When not using gcc, we currently assume that we are using |
14899 | # Microsoft Visual C++. | |
14900 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14901 | # no search path for DLLs. | |
14902 | hardcode_libdir_flag_spec_FC=' ' | |
14903 | allow_undefined_flag_FC=unsupported | |
14904 | # Tell ltmain to make .lib files, not .a files. | |
14905 | libext=lib | |
14906 | # Tell ltmain to make .dll files, not .so files. | |
14907 | shrext_cmds=".dll" | |
14908 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 14909 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
14910 | # The linker will automatically build a .lib file if we build a DLL. |
14911 | old_archive_from_new_cmds_FC='true' | |
14912 | # FIXME: Should let the user specify the lib program. | |
14913 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
14914 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
14915 | enable_shared_with_static_runtimes_FC=yes | |
14916 | ;; | |
14917 | ||
14918 | darwin* | rhapsody*) | |
1cf3d07d | 14919 | |
d58dead8 PG |
14920 | |
14921 | archive_cmds_need_lc_FC=no | |
14922 | hardcode_direct_FC=no | |
14923 | hardcode_automatic_FC=yes | |
14924 | hardcode_shlibpath_var_FC=unsupported | |
43e02a8a RW |
14925 | if test "$lt_cv_ld_force_load" = "yes"; then |
14926 | 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\"`' | |
14927 | else | |
14928 | whole_archive_flag_spec_FC='' | |
14929 | fi | |
d58dead8 PG |
14930 | link_all_deplibs_FC=yes |
14931 | allow_undefined_flag_FC="$_lt_dar_allow_undefined" | |
14932 | case $cc_basename in | |
14933 | ifort*) _lt_dar_can_shared=yes ;; | |
14934 | *) _lt_dar_can_shared=$GCC ;; | |
14935 | esac | |
14936 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 14937 | output_verbose_link_cmd=func_echo_all |
d58dead8 PG |
14938 | 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}" |
14939 | module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
14940 | 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}" | |
14941 | 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}" | |
14942 | ||
14943 | else | |
14944 | ld_shlibs_FC=no | |
14945 | fi | |
14946 | ||
1cf3d07d SE |
14947 | ;; |
14948 | ||
14949 | dgux*) | |
14950 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14951 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14952 | hardcode_shlibpath_var_FC=no | |
14953 | ;; | |
14954 | ||
1cf3d07d SE |
14955 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14956 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
14957 | # does not break anything, and helps significantly (at the cost of a little | |
14958 | # extra space). | |
14959 | freebsd2.2*) | |
14960 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14961 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14962 | hardcode_direct_FC=yes | |
14963 | hardcode_shlibpath_var_FC=no | |
14964 | ;; | |
14965 | ||
14966 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 14967 | freebsd2.*) |
1cf3d07d SE |
14968 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14969 | hardcode_direct_FC=yes | |
14970 | hardcode_minus_L_FC=yes | |
14971 | hardcode_shlibpath_var_FC=no | |
14972 | ;; | |
14973 | ||
14974 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
14975 | freebsd* | dragonfly*) | |
14976 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
14977 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14978 | hardcode_direct_FC=yes | |
14979 | hardcode_shlibpath_var_FC=no | |
14980 | ;; | |
14981 | ||
14982 | hpux9*) | |
14983 | if test "$GCC" = yes; then | |
14984 | 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' | |
14985 | else | |
14986 | 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' | |
14987 | fi | |
14988 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14989 | hardcode_libdir_separator_FC=: | |
14990 | hardcode_direct_FC=yes | |
14991 | ||
14992 | # hardcode_minus_L: Not really in the search PATH, | |
14993 | # but as the default location of the library. | |
14994 | hardcode_minus_L_FC=yes | |
14995 | export_dynamic_flag_spec_FC='${wl}-E' | |
14996 | ;; | |
14997 | ||
14998 | hpux10*) | |
43e02a8a | 14999 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
15000 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15001 | else | |
15002 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
15003 | fi | |
15004 | if test "$with_gnu_ld" = no; then | |
15005 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
15006 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
15007 | hardcode_libdir_separator_FC=: | |
15008 | hardcode_direct_FC=yes | |
15009 | hardcode_direct_absolute_FC=yes | |
15010 | export_dynamic_flag_spec_FC='${wl}-E' | |
15011 | # hardcode_minus_L: Not really in the search PATH, | |
15012 | # but as the default location of the library. | |
15013 | hardcode_minus_L_FC=yes | |
15014 | fi | |
15015 | ;; | |
15016 | ||
15017 | hpux11*) | |
43e02a8a | 15018 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
15019 | case $host_cpu in |
15020 | hppa*64*) | |
4e4ba647 | 15021 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
15022 | ;; |
15023 | ia64*) | |
d58dead8 | 15024 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
15025 | ;; |
15026 | *) | |
15027 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
15028 | ;; | |
15029 | esac | |
15030 | else | |
15031 | case $host_cpu in | |
15032 | hppa*64*) | |
4e4ba647 | 15033 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
15034 | ;; |
15035 | ia64*) | |
15036 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
15037 | ;; | |
15038 | *) | |
43e02a8a | 15039 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
15040 | ;; |
15041 | esac | |
15042 | fi | |
15043 | if test "$with_gnu_ld" = no; then | |
15044 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
15045 | hardcode_libdir_separator_FC=: | |
15046 | ||
15047 | case $host_cpu in | |
15048 | hppa*64*|ia64*) | |
15049 | hardcode_direct_FC=no | |
15050 | hardcode_shlibpath_var_FC=no | |
15051 | ;; | |
15052 | *) | |
15053 | hardcode_direct_FC=yes | |
15054 | hardcode_direct_absolute_FC=yes | |
15055 | export_dynamic_flag_spec_FC='${wl}-E' | |
15056 | ||
15057 | # hardcode_minus_L: Not really in the search PATH, | |
15058 | # but as the default location of the library. | |
15059 | hardcode_minus_L_FC=yes | |
15060 | ;; | |
15061 | esac | |
15062 | fi | |
15063 | ;; | |
15064 | ||
15065 | irix5* | irix6* | nonstopux*) | |
15066 | if test "$GCC" = yes; then | |
43e02a8a | 15067 | 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 |
15068 | # Try to use the -exported_symbol ld option, if it does not |
15069 | # work, assume that -exports_file does not work either and | |
15070 | # implicitly export all symbols. | |
15071 | save_LDFLAGS="$LDFLAGS" | |
15072 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
15073 | if test x$gcc_no_link = xyes; then | |
22e05272 | 15074 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 15075 | fi |
5213506e | 15076 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
15077 | int foo(void) {} |
15078 | _ACEOF | |
5213506e | 15079 | if ac_fn_fc_try_link "$LINENO"; then : |
43e02a8a | 15080 | 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 | 15081 | |
1cf3d07d | 15082 | fi |
5213506e RW |
15083 | rm -f core conftest.err conftest.$ac_objext \ |
15084 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
15085 | LDFLAGS="$save_LDFLAGS" |
15086 | else | |
43e02a8a RW |
15087 | 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' |
15088 | 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 |
15089 | fi |
15090 | archive_cmds_need_lc_FC='no' | |
15091 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
15092 | hardcode_libdir_separator_FC=: | |
15093 | inherit_rpath_FC=yes | |
15094 | link_all_deplibs_FC=yes | |
15095 | ;; | |
15096 | ||
15097 | netbsd*) | |
15098 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15099 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
15100 | else | |
15101 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
15102 | fi | |
15103 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15104 | hardcode_direct_FC=yes | |
15105 | hardcode_shlibpath_var_FC=no | |
15106 | ;; | |
15107 | ||
15108 | newsos6) | |
15109 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15110 | hardcode_direct_FC=yes | |
15111 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
15112 | hardcode_libdir_separator_FC=: | |
15113 | hardcode_shlibpath_var_FC=no | |
15114 | ;; | |
15115 | ||
15116 | *nto* | *qnx*) | |
15117 | ;; | |
15118 | ||
15119 | openbsd*) | |
d58dead8 PG |
15120 | if test -f /usr/libexec/ld.so; then |
15121 | hardcode_direct_FC=yes | |
15122 | hardcode_shlibpath_var_FC=no | |
15123 | hardcode_direct_absolute_FC=yes | |
15124 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 15125 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d58dead8 | 15126 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 15127 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' |
d58dead8 PG |
15128 | export_dynamic_flag_spec_FC='${wl}-E' |
15129 | else | |
15130 | case $host_os in | |
15131 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
15132 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
15133 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15134 | ;; | |
15135 | *) | |
15136 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
15137 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
15138 | ;; | |
15139 | esac | |
15140 | fi | |
15141 | else | |
15142 | ld_shlibs_FC=no | |
1cf3d07d SE |
15143 | fi |
15144 | ;; | |
15145 | ||
15146 | os2*) | |
15147 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15148 | hardcode_minus_L_FC=yes | |
15149 | allow_undefined_flag_FC=unsupported | |
43e02a8a | 15150 | 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 |
15151 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
15152 | ;; | |
15153 | ||
15154 | osf3*) | |
15155 | if test "$GCC" = yes; then | |
15156 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 15157 | 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 |
15158 | else |
15159 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 15160 | 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 |
15161 | fi |
15162 | archive_cmds_need_lc_FC='no' | |
15163 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
15164 | hardcode_libdir_separator_FC=: | |
15165 | ;; | |
15166 | ||
15167 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
15168 | if test "$GCC" = yes; then | |
15169 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 15170 | 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 |
15171 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' |
15172 | else | |
15173 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 15174 | 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 | 15175 | 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 | 15176 | $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 |
15177 | |
15178 | # Both c and cxx compiler support -rpath directly | |
15179 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
15180 | fi | |
15181 | archive_cmds_need_lc_FC='no' | |
15182 | hardcode_libdir_separator_FC=: | |
15183 | ;; | |
15184 | ||
15185 | solaris*) | |
15186 | no_undefined_flag_FC=' -z defs' | |
15187 | if test "$GCC" = yes; then | |
15188 | wlarc='${wl}' | |
15189 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15190 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
15191 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
15192 | else | |
15193 | case `$CC -V 2>&1` in | |
15194 | *"Compilers 5.0"*) | |
15195 | wlarc='' | |
15196 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15197 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
15198 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
15199 | ;; | |
15200 | *) | |
15201 | wlarc='${wl}' | |
15202 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15203 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
15204 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
15205 | ;; | |
15206 | esac | |
15207 | fi | |
15208 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15209 | hardcode_shlibpath_var_FC=no | |
15210 | case $host_os in | |
15211 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
15212 | *) | |
15213 | # The compiler driver will combine and reorder linker options, | |
15214 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
15215 | # but is careful enough not to reorder. | |
15216 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
15217 | if test "$GCC" = yes; then | |
15218 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
15219 | else | |
15220 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
15221 | fi | |
15222 | ;; | |
15223 | esac | |
15224 | link_all_deplibs_FC=yes | |
15225 | ;; | |
15226 | ||
15227 | sunos4*) | |
15228 | if test "x$host_vendor" = xsequent; then | |
15229 | # Use $CC to link under sequent, because it throws in some extra .o | |
15230 | # files that make .init and .fini sections work. | |
15231 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15232 | else | |
15233 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
15234 | fi | |
15235 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15236 | hardcode_direct_FC=yes | |
15237 | hardcode_minus_L_FC=yes | |
15238 | hardcode_shlibpath_var_FC=no | |
15239 | ;; | |
15240 | ||
15241 | sysv4) | |
15242 | case $host_vendor in | |
15243 | sni) | |
15244 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15245 | hardcode_direct_FC=yes # is this really true??? | |
15246 | ;; | |
15247 | siemens) | |
15248 | ## LD is ld it makes a PLAMLIB | |
15249 | ## CC just makes a GrossModule. | |
15250 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
15251 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
15252 | hardcode_direct_FC=no | |
15253 | ;; | |
15254 | motorola) | |
15255 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15256 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
15257 | ;; | |
15258 | esac | |
15259 | runpath_var='LD_RUN_PATH' | |
15260 | hardcode_shlibpath_var_FC=no | |
15261 | ;; | |
15262 | ||
15263 | sysv4.3*) | |
15264 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15265 | hardcode_shlibpath_var_FC=no | |
15266 | export_dynamic_flag_spec_FC='-Bexport' | |
15267 | ;; | |
15268 | ||
15269 | sysv4*MP*) | |
15270 | if test -d /usr/nec; then | |
15271 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15272 | hardcode_shlibpath_var_FC=no | |
15273 | runpath_var=LD_RUN_PATH | |
15274 | hardcode_runpath_var=yes | |
15275 | ld_shlibs_FC=yes | |
15276 | fi | |
15277 | ;; | |
15278 | ||
15279 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
15280 | no_undefined_flag_FC='${wl}-z,text' | |
15281 | archive_cmds_need_lc_FC=no | |
15282 | hardcode_shlibpath_var_FC=no | |
15283 | runpath_var='LD_RUN_PATH' | |
15284 | ||
15285 | if test "$GCC" = yes; then | |
15286 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15287 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15288 | else | |
15289 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15290 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15291 | fi | |
15292 | ;; | |
15293 | ||
15294 | sysv5* | sco3.2v5* | sco5v6*) | |
15295 | # Note: We can NOT use -z defs as we might desire, because we do not | |
15296 | # link with -lc, and that would cause any symbols used from libc to | |
15297 | # always be unresolved, which means just about no library would | |
15298 | # ever link correctly. If we're not using GNU ld we use -z text | |
15299 | # though, which does catch some bad symbols but isn't as heavy-handed | |
15300 | # as -z defs. | |
15301 | no_undefined_flag_FC='${wl}-z,text' | |
15302 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
15303 | archive_cmds_need_lc_FC=no | |
15304 | hardcode_shlibpath_var_FC=no | |
15305 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
15306 | hardcode_libdir_separator_FC=':' | |
15307 | link_all_deplibs_FC=yes | |
15308 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
15309 | runpath_var='LD_RUN_PATH' | |
15310 | ||
15311 | if test "$GCC" = yes; then | |
15312 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15313 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15314 | else | |
15315 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15316 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15317 | fi | |
15318 | ;; | |
15319 | ||
15320 | uts4*) | |
15321 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15322 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15323 | hardcode_shlibpath_var_FC=no | |
15324 | ;; | |
15325 | ||
15326 | *) | |
15327 | ld_shlibs_FC=no | |
15328 | ;; | |
15329 | esac | |
15330 | ||
15331 | if test x$host_vendor = xsni; then | |
15332 | case $host in | |
15333 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
15334 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
15335 | ;; | |
15336 | esac | |
15337 | fi | |
15338 | fi | |
15339 | ||
5213506e RW |
15340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 |
15341 | $as_echo "$ld_shlibs_FC" >&6; } | |
1cf3d07d SE |
15342 | test "$ld_shlibs_FC" = no && can_build_shared=no |
15343 | ||
15344 | with_gnu_ld_FC=$with_gnu_ld | |
15345 | ||
15346 | ||
15347 | ||
15348 | ||
15349 | ||
15350 | ||
15351 | # | |
15352 | # Do we need to explicitly link libc? | |
15353 | # | |
15354 | case "x$archive_cmds_need_lc_FC" in | |
15355 | x|xyes) | |
15356 | # Assume -lc should be added | |
15357 | archive_cmds_need_lc_FC=yes | |
15358 | ||
15359 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
15360 | case $archive_cmds_FC in | |
15361 | *'~'*) | |
15362 | # FIXME: we may have to deal with multi-command sequences. | |
15363 | ;; | |
15364 | '$CC '*) | |
15365 | # Test whether the compiler implicitly links with -lc since on some | |
15366 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15367 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
15368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
15369 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 15370 | if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : |
5213506e | 15371 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
15372 | else |
15373 | $RM conftest* | |
15374 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 15375 | |
5213506e | 15376 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
15377 | (eval $ac_compile) 2>&5 |
15378 | ac_status=$? | |
5213506e RW |
15379 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15380 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
15381 | soname=conftest |
15382 | lib=conftest | |
15383 | libobjs=conftest.$ac_objext | |
15384 | deplibs= | |
15385 | wl=$lt_prog_compiler_wl_FC | |
15386 | pic_flag=$lt_prog_compiler_pic_FC | |
15387 | compiler_flags=-v | |
15388 | linker_flags=-v | |
15389 | verstring= | |
15390 | output_objdir=. | |
15391 | libname=conftest | |
15392 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
15393 | allow_undefined_flag_FC= | |
5213506e | 15394 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d | 15395 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9cdc381b | 15396 | ac_status=$? |
5213506e RW |
15397 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15398 | test $ac_status = 0; } | |
baafc534 RW |
15399 | then |
15400 | lt_cv_archive_cmds_need_lc_FC=no | |
15401 | else | |
15402 | lt_cv_archive_cmds_need_lc_FC=yes | |
15403 | fi | |
15404 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
15405 | else | |
15406 | cat conftest.err 1>&5 | |
15407 | fi | |
15408 | $RM conftest* | |
15409 | ||
15410 | fi | |
5213506e RW |
15411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 |
15412 | $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } | |
baafc534 | 15413 | archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC |
1cf3d07d SE |
15414 | ;; |
15415 | esac | |
15416 | fi | |
15417 | ;; | |
15418 | esac | |
9cdc381b | 15419 | |
9cdc381b | 15420 | |
1cf3d07d SE |
15421 | |
15422 | ||
15423 | ||
15424 | ||
15425 | ||
15426 | ||
15427 | ||
15428 | ||
15429 | ||
15430 | ||
15431 | ||
15432 | ||
15433 | ||
15434 | ||
15435 | ||
15436 | ||
15437 | ||
15438 | ||
15439 | ||
15440 | ||
15441 | ||
15442 | ||
15443 | ||
15444 | ||
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 | ||
5213506e RW |
15483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
15484 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
d58dead8 | 15485 | |
1cf3d07d SE |
15486 | library_names_spec= |
15487 | libname_spec='lib$name' | |
15488 | soname_spec= | |
15489 | shrext_cmds=".so" | |
15490 | postinstall_cmds= | |
15491 | postuninstall_cmds= | |
15492 | finish_cmds= | |
15493 | finish_eval= | |
15494 | shlibpath_var= | |
15495 | shlibpath_overrides_runpath=unknown | |
15496 | version_type=none | |
15497 | dynamic_linker="$host_os ld.so" | |
15498 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15499 | need_lib_prefix=unknown | |
15500 | hardcode_into_libs=no | |
15501 | ||
15502 | # when you set need_version to no, make sure it does not cause -set_version | |
15503 | # flags to be left without arguments | |
15504 | need_version=unknown | |
15505 | ||
15506 | case $host_os in | |
15507 | aix3*) | |
15508 | version_type=linux | |
15509 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
15510 | shlibpath_var=LIBPATH | |
15511 | ||
15512 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15513 | soname_spec='${libname}${release}${shared_ext}$major' | |
15514 | ;; | |
15515 | ||
4f6bebc3 | 15516 | aix[4-9]*) |
1cf3d07d SE |
15517 | version_type=linux |
15518 | need_lib_prefix=no | |
15519 | need_version=no | |
15520 | hardcode_into_libs=yes | |
15521 | if test "$host_cpu" = ia64; then | |
15522 | # AIX 5 supports IA64 | |
15523 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15524 | shlibpath_var=LD_LIBRARY_PATH | |
15525 | else | |
15526 | # With GCC up to 2.95.x, collect2 would create an import file | |
15527 | # for dependence libraries. The import file would start with | |
15528 | # the line `#! .'. This would cause the generated library to | |
15529 | # depend on `.', always an invalid library. This was fixed in | |
15530 | # development snapshots of GCC prior to 3.0. | |
15531 | case $host_os in | |
15532 | aix4 | aix4.[01] | aix4.[01].*) | |
15533 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15534 | echo ' yes ' | |
15535 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
15536 | : | |
15537 | else | |
15538 | can_build_shared=no | |
15539 | fi | |
15540 | ;; | |
15541 | esac | |
15542 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15543 | # soname into executable. Probably we can add versioning support to | |
15544 | # collect2, so additional links can be useful in future. | |
15545 | if test "$aix_use_runtimelinking" = yes; then | |
15546 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15547 | # instead of lib<name>.a to let people know that these are not | |
15548 | # typical AIX shared libraries. | |
15549 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15550 | else | |
15551 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15552 | # and later when we are not doing run time linking. | |
15553 | library_names_spec='${libname}${release}.a $libname.a' | |
15554 | soname_spec='${libname}${release}${shared_ext}$major' | |
15555 | fi | |
15556 | shlibpath_var=LIBPATH | |
15557 | fi | |
15558 | ;; | |
15559 | ||
15560 | amigaos*) | |
d58dead8 PG |
15561 | case $host_cpu in |
15562 | powerpc) | |
15563 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15564 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15566 | ;; | |
15567 | m68k) | |
1cf3d07d SE |
15568 | library_names_spec='$libname.ixlibrary $libname.a' |
15569 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 15570 | 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 |
15571 | ;; |
15572 | esac | |
1cf3d07d SE |
15573 | ;; |
15574 | ||
15575 | beos*) | |
15576 | library_names_spec='${libname}${shared_ext}' | |
15577 | dynamic_linker="$host_os ld.so" | |
15578 | shlibpath_var=LIBRARY_PATH | |
15579 | ;; | |
15580 | ||
15581 | bsdi[45]*) | |
15582 | version_type=linux | |
15583 | need_version=no | |
15584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15585 | soname_spec='${libname}${release}${shared_ext}$major' | |
15586 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15587 | shlibpath_var=LD_LIBRARY_PATH | |
15588 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15589 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15590 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15591 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15592 | # libtool to hard-code these into programs | |
15593 | ;; | |
15594 | ||
d58dead8 | 15595 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
15596 | version_type=windows |
15597 | shrext_cmds=".dll" | |
15598 | need_version=no | |
15599 | need_lib_prefix=no | |
15600 | ||
d58dead8 PG |
15601 | case $GCC,$host_os in |
15602 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
15603 | library_names_spec='$libname.dll.a' |
15604 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15605 | postinstall_cmds='base_file=`basename \${file}`~ | |
15606 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15607 | dldir=$destdir/`dirname \$dlpath`~ | |
15608 | test -d \$dldir || mkdir -p \$dldir~ | |
15609 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15610 | chmod a+x \$dldir/$dlname~ | |
15611 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15612 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15613 | fi' | |
15614 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15615 | dlpath=$dir/\$dldll~ | |
15616 | $RM \$dlpath' | |
15617 | shlibpath_overrides_runpath=yes | |
15618 | ||
15619 | case $host_os in | |
15620 | cygwin*) | |
15621 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15622 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a | 15623 | |
1cf3d07d | 15624 | ;; |
d58dead8 | 15625 | mingw* | cegcc*) |
1cf3d07d SE |
15626 | # MinGW DLLs use traditional 'lib' prefix |
15627 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
15628 | ;; |
15629 | pw32*) | |
15630 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15631 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15632 | ;; | |
15633 | esac | |
15634 | ;; | |
15635 | ||
15636 | *) | |
15637 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
15638 | ;; | |
15639 | esac | |
15640 | dynamic_linker='Win32 ld.exe' | |
15641 | # FIXME: first we should search . and the directory the executable is in | |
15642 | shlibpath_var=PATH | |
15643 | ;; | |
15644 | ||
15645 | darwin* | rhapsody*) | |
15646 | dynamic_linker="$host_os dyld" | |
15647 | version_type=darwin | |
15648 | need_lib_prefix=no | |
15649 | need_version=no | |
15650 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15651 | soname_spec='${libname}${release}${major}$shared_ext' | |
15652 | shlibpath_overrides_runpath=yes | |
15653 | shlibpath_var=DYLD_LIBRARY_PATH | |
15654 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
15655 | ||
15656 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
15657 | ;; | |
15658 | ||
15659 | dgux*) | |
15660 | version_type=linux | |
15661 | need_lib_prefix=no | |
15662 | need_version=no | |
15663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15664 | soname_spec='${libname}${release}${shared_ext}$major' | |
15665 | shlibpath_var=LD_LIBRARY_PATH | |
15666 | ;; | |
15667 | ||
1cf3d07d SE |
15668 | freebsd* | dragonfly*) |
15669 | # DragonFly does not have aout. When/if they implement a new | |
15670 | # versioning mechanism, adjust this. | |
15671 | if test -x /usr/bin/objformat; then | |
15672 | objformat=`/usr/bin/objformat` | |
15673 | else | |
15674 | case $host_os in | |
c6084f68 | 15675 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
15676 | *) objformat=elf ;; |
15677 | esac | |
15678 | fi | |
15679 | version_type=freebsd-$objformat | |
15680 | case $version_type in | |
15681 | freebsd-elf*) | |
15682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15683 | need_version=no | |
15684 | need_lib_prefix=no | |
15685 | ;; | |
15686 | freebsd-*) | |
15687 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15688 | need_version=yes | |
15689 | ;; | |
15690 | esac | |
15691 | shlibpath_var=LD_LIBRARY_PATH | |
15692 | case $host_os in | |
c6084f68 | 15693 | freebsd2.*) |
1cf3d07d SE |
15694 | shlibpath_overrides_runpath=yes |
15695 | ;; | |
15696 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15697 | shlibpath_overrides_runpath=yes | |
15698 | hardcode_into_libs=yes | |
15699 | ;; | |
15700 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15701 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15702 | shlibpath_overrides_runpath=no | |
15703 | hardcode_into_libs=yes | |
15704 | ;; | |
15705 | *) # from 4.6 on, and DragonFly | |
15706 | shlibpath_overrides_runpath=yes | |
15707 | hardcode_into_libs=yes | |
15708 | ;; | |
15709 | esac | |
15710 | ;; | |
15711 | ||
43e02a8a RW |
15712 | haiku*) |
15713 | version_type=linux | |
15714 | need_lib_prefix=no | |
15715 | need_version=no | |
15716 | dynamic_linker="$host_os runtime_loader" | |
15717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15718 | soname_spec='${libname}${release}${shared_ext}$major' | |
15719 | shlibpath_var=LIBRARY_PATH | |
15720 | shlibpath_overrides_runpath=yes | |
15721 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
15722 | hardcode_into_libs=yes | |
15723 | ;; | |
15724 | ||
1cf3d07d SE |
15725 | hpux9* | hpux10* | hpux11*) |
15726 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15727 | # link against other versions. | |
15728 | version_type=sunos | |
15729 | need_lib_prefix=no | |
15730 | need_version=no | |
15731 | case $host_cpu in | |
15732 | ia64*) | |
15733 | shrext_cmds='.so' | |
15734 | hardcode_into_libs=yes | |
15735 | dynamic_linker="$host_os dld.so" | |
15736 | shlibpath_var=LD_LIBRARY_PATH | |
15737 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15739 | soname_spec='${libname}${release}${shared_ext}$major' | |
15740 | if test "X$HPUX_IA64_MODE" = X32; then | |
15741 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15742 | else | |
15743 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15744 | fi | |
15745 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15746 | ;; | |
15747 | hppa*64*) | |
15748 | shrext_cmds='.sl' | |
15749 | hardcode_into_libs=yes | |
15750 | dynamic_linker="$host_os dld.sl" | |
15751 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15752 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15754 | soname_spec='${libname}${release}${shared_ext}$major' | |
15755 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15756 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15757 | ;; | |
15758 | *) | |
15759 | shrext_cmds='.sl' | |
15760 | dynamic_linker="$host_os dld.sl" | |
15761 | shlibpath_var=SHLIB_PATH | |
15762 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15763 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15764 | soname_spec='${libname}${release}${shared_ext}$major' | |
15765 | ;; | |
15766 | esac | |
43e02a8a | 15767 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 15768 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
15769 | # or fails outright, so override atomically: |
15770 | install_override_mode=555 | |
1cf3d07d SE |
15771 | ;; |
15772 | ||
15773 | interix[3-9]*) | |
15774 | version_type=linux | |
15775 | need_lib_prefix=no | |
15776 | need_version=no | |
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 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15780 | shlibpath_var=LD_LIBRARY_PATH | |
15781 | shlibpath_overrides_runpath=no | |
15782 | hardcode_into_libs=yes | |
15783 | ;; | |
15784 | ||
15785 | irix5* | irix6* | nonstopux*) | |
15786 | case $host_os in | |
15787 | nonstopux*) version_type=nonstopux ;; | |
15788 | *) | |
15789 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15790 | version_type=linux | |
15791 | else | |
15792 | version_type=irix | |
15793 | fi ;; | |
15794 | esac | |
15795 | need_lib_prefix=no | |
15796 | need_version=no | |
15797 | soname_spec='${libname}${release}${shared_ext}$major' | |
15798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15799 | case $host_os in | |
15800 | irix5* | nonstopux*) | |
15801 | libsuff= shlibsuff= | |
15802 | ;; | |
15803 | *) | |
15804 | case $LD in # libtool.m4 will add one of these switches to LD | |
15805 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15806 | libsuff= shlibsuff= libmagic=32-bit;; | |
15807 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15808 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15809 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15810 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15811 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15812 | esac | |
15813 | ;; | |
15814 | esac | |
15815 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15816 | shlibpath_overrides_runpath=no | |
15817 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15818 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15819 | hardcode_into_libs=yes | |
15820 | ;; | |
15821 | ||
15822 | # No shared lib support for Linux oldld, aout, or coff. | |
15823 | linux*oldld* | linux*aout* | linux*coff*) | |
15824 | dynamic_linker=no | |
15825 | ;; | |
15826 | ||
15827 | # This must be Linux ELF. | |
e9085da5 MR |
15828 | |
15829 | # uclinux* changes (here and below) have been submitted to the libtool | |
15830 | # project, but have not yet been accepted: they are GCC-local changes | |
15831 | # for the time being. (See | |
15832 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
c0f8c22a | 15833 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
1cf3d07d SE |
15834 | version_type=linux |
15835 | need_lib_prefix=no | |
15836 | need_version=no | |
15837 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15838 | soname_spec='${libname}${release}${shared_ext}$major' | |
15839 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15840 | shlibpath_var=LD_LIBRARY_PATH | |
15841 | shlibpath_overrides_runpath=no | |
baafc534 | 15842 | |
1cf3d07d | 15843 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 15844 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 15845 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
15846 | else |
15847 | lt_cv_shlibpath_overrides_runpath=no | |
15848 | save_LDFLAGS=$LDFLAGS | |
15849 | save_libdir=$libdir | |
15850 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
15851 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
15852 | if test x$gcc_no_link = xyes; then | |
22e05272 | 15853 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 15854 | fi |
5213506e | 15855 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
15856 | program main |
15857 | ||
15858 | end | |
9cdc381b | 15859 | _ACEOF |
5213506e RW |
15860 | if ac_fn_fc_try_link "$LINENO"; then : |
15861 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 15862 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 15863 | fi |
9cdc381b | 15864 | fi |
5213506e RW |
15865 | rm -f core conftest.err conftest.$ac_objext \ |
15866 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
15867 | LDFLAGS=$save_LDFLAGS |
15868 | libdir=$save_libdir | |
15869 | ||
15870 | fi | |
15871 | ||
15872 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
15873 | |
15874 | # This implies no fast_install, which is unacceptable. | |
15875 | # Some rework will be needed to allow for fast_install | |
15876 | # before this can be enabled. | |
15877 | hardcode_into_libs=yes | |
15878 | ||
15879 | # Append ld.so.conf contents to the search path | |
15880 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 15881 | 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 |
15882 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15883 | fi | |
15884 | ||
15885 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15886 | # powerpc, because MkLinux only supported shared libraries with the | |
15887 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15888 | # most powerpc-linux boxes support dynamic linking these days and | |
15889 | # people can always --disable-shared, the test was removed, and we | |
15890 | # assume the GNU/Linux dynamic linker is in use. | |
15891 | dynamic_linker='GNU/Linux ld.so' | |
15892 | ;; | |
15893 | ||
15894 | netbsd*) | |
15895 | version_type=sunos | |
15896 | need_lib_prefix=no | |
15897 | need_version=no | |
15898 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15900 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15901 | dynamic_linker='NetBSD (a.out) ld.so' | |
15902 | else | |
15903 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15904 | soname_spec='${libname}${release}${shared_ext}$major' | |
15905 | dynamic_linker='NetBSD ld.elf_so' | |
15906 | fi | |
15907 | shlibpath_var=LD_LIBRARY_PATH | |
15908 | shlibpath_overrides_runpath=yes | |
15909 | hardcode_into_libs=yes | |
15910 | ;; | |
15911 | ||
15912 | newsos6) | |
15913 | version_type=linux | |
15914 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15915 | shlibpath_var=LD_LIBRARY_PATH | |
15916 | shlibpath_overrides_runpath=yes | |
15917 | ;; | |
15918 | ||
15919 | *nto* | *qnx*) | |
15920 | version_type=qnx | |
15921 | need_lib_prefix=no | |
15922 | need_version=no | |
15923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15924 | soname_spec='${libname}${release}${shared_ext}$major' | |
15925 | shlibpath_var=LD_LIBRARY_PATH | |
15926 | shlibpath_overrides_runpath=no | |
15927 | hardcode_into_libs=yes | |
15928 | dynamic_linker='ldqnx.so' | |
15929 | ;; | |
15930 | ||
15931 | openbsd*) | |
15932 | version_type=sunos | |
15933 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15934 | need_lib_prefix=no | |
15935 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15936 | case $host_os in | |
15937 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15938 | *) need_version=no ;; | |
15939 | esac | |
15940 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15941 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15942 | shlibpath_var=LD_LIBRARY_PATH | |
15943 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15944 | case $host_os in | |
15945 | openbsd2.[89] | openbsd2.[89].*) | |
15946 | shlibpath_overrides_runpath=no | |
15947 | ;; | |
15948 | *) | |
15949 | shlibpath_overrides_runpath=yes | |
15950 | ;; | |
15951 | esac | |
15952 | else | |
15953 | shlibpath_overrides_runpath=yes | |
15954 | fi | |
15955 | ;; | |
15956 | ||
15957 | os2*) | |
15958 | libname_spec='$name' | |
15959 | shrext_cmds=".dll" | |
15960 | need_lib_prefix=no | |
15961 | library_names_spec='$libname${shared_ext} $libname.a' | |
15962 | dynamic_linker='OS/2 ld.exe' | |
15963 | shlibpath_var=LIBPATH | |
15964 | ;; | |
15965 | ||
15966 | osf3* | osf4* | osf5*) | |
15967 | version_type=osf | |
15968 | need_lib_prefix=no | |
15969 | need_version=no | |
15970 | soname_spec='${libname}${release}${shared_ext}$major' | |
15971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15972 | shlibpath_var=LD_LIBRARY_PATH | |
15973 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15974 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15975 | ;; | |
15976 | ||
15977 | rdos*) | |
15978 | dynamic_linker=no | |
15979 | ;; | |
15980 | ||
15981 | solaris*) | |
15982 | version_type=linux | |
15983 | need_lib_prefix=no | |
15984 | need_version=no | |
15985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15986 | soname_spec='${libname}${release}${shared_ext}$major' | |
15987 | shlibpath_var=LD_LIBRARY_PATH | |
15988 | shlibpath_overrides_runpath=yes | |
15989 | hardcode_into_libs=yes | |
15990 | # ldd complains unless libraries are executable | |
15991 | postinstall_cmds='chmod +x $lib' | |
15992 | ;; | |
15993 | ||
15994 | sunos4*) | |
15995 | version_type=sunos | |
15996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15997 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15998 | shlibpath_var=LD_LIBRARY_PATH | |
15999 | shlibpath_overrides_runpath=yes | |
16000 | if test "$with_gnu_ld" = yes; then | |
16001 | need_lib_prefix=no | |
16002 | fi | |
16003 | need_version=yes | |
16004 | ;; | |
16005 | ||
16006 | sysv4 | sysv4.3*) | |
16007 | version_type=linux | |
16008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16009 | soname_spec='${libname}${release}${shared_ext}$major' | |
16010 | shlibpath_var=LD_LIBRARY_PATH | |
16011 | case $host_vendor in | |
16012 | sni) | |
16013 | shlibpath_overrides_runpath=no | |
16014 | need_lib_prefix=no | |
16015 | runpath_var=LD_RUN_PATH | |
16016 | ;; | |
16017 | siemens) | |
16018 | need_lib_prefix=no | |
16019 | ;; | |
16020 | motorola) | |
16021 | need_lib_prefix=no | |
16022 | need_version=no | |
16023 | shlibpath_overrides_runpath=no | |
16024 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
16025 | ;; | |
16026 | esac | |
16027 | ;; | |
16028 | ||
16029 | sysv4*MP*) | |
16030 | if test -d /usr/nec ;then | |
16031 | version_type=linux | |
16032 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
16033 | soname_spec='$libname${shared_ext}.$major' | |
16034 | shlibpath_var=LD_LIBRARY_PATH | |
16035 | fi | |
16036 | ;; | |
16037 | ||
16038 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
16039 | version_type=freebsd-elf | |
16040 | need_lib_prefix=no | |
16041 | need_version=no | |
16042 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
16043 | soname_spec='${libname}${release}${shared_ext}$major' | |
16044 | shlibpath_var=LD_LIBRARY_PATH | |
16045 | shlibpath_overrides_runpath=yes | |
16046 | hardcode_into_libs=yes | |
16047 | if test "$with_gnu_ld" = yes; then | |
16048 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
16049 | else | |
16050 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
16051 | case $host_os in | |
16052 | sco3.2v5*) | |
16053 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
16054 | ;; | |
16055 | esac | |
16056 | fi | |
16057 | sys_lib_dlsearch_path_spec='/usr/lib' | |
16058 | ;; | |
16059 | ||
16060 | tpf*) | |
16061 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
16062 | version_type=linux | |
16063 | need_lib_prefix=no | |
16064 | need_version=no | |
d58dead8 | 16065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
16066 | shlibpath_var=LD_LIBRARY_PATH |
16067 | shlibpath_overrides_runpath=no | |
16068 | hardcode_into_libs=yes | |
16069 | ;; | |
16070 | ||
16071 | uts4*) | |
16072 | version_type=linux | |
16073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16074 | soname_spec='${libname}${release}${shared_ext}$major' | |
16075 | shlibpath_var=LD_LIBRARY_PATH | |
16076 | ;; | |
16077 | ||
16078 | *) | |
16079 | dynamic_linker=no | |
16080 | ;; | |
16081 | esac | |
5213506e RW |
16082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
16083 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
16084 | test "$dynamic_linker" = no && can_build_shared=no |
16085 | ||
16086 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
16087 | if test "$GCC" = yes; then | |
16088 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9cdc381b | 16089 | fi |
9cdc381b | 16090 | |
d58dead8 PG |
16091 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
16092 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
16093 | fi | |
16094 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
16095 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
16096 | fi | |
16097 | ||
9cdc381b | 16098 | |
1cf3d07d SE |
16099 | |
16100 | ||
16101 | ||
16102 | ||
16103 | ||
16104 | ||
16105 | ||
16106 | ||
16107 | ||
16108 | ||
16109 | ||
16110 | ||
16111 | ||
16112 | ||
16113 | ||
16114 | ||
16115 | ||
16116 | ||
16117 | ||
16118 | ||
16119 | ||
16120 | ||
16121 | ||
16122 | ||
16123 | ||
16124 | ||
16125 | ||
16126 | ||
16127 | ||
16128 | ||
16129 | ||
43e02a8a RW |
16130 | |
16131 | ||
1cf3d07d SE |
16132 | |
16133 | ||
16134 | ||
5213506e RW |
16135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
16136 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
16137 | hardcode_action_FC= |
16138 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
16139 | test -n "$runpath_var_FC" || | |
16140 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
16141 | ||
16142 | # We can hardcode non-existent directories. | |
16143 | if test "$hardcode_direct_FC" != no && | |
16144 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
16145 | # have to relink, otherwise we might link with an installed library | |
16146 | # when we should be linking with a yet-to-be-installed one | |
16147 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
16148 | test "$hardcode_minus_L_FC" != no; then | |
16149 | # Linking always hardcodes the temporary library directory. | |
16150 | hardcode_action_FC=relink | |
16151 | else | |
16152 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
16153 | hardcode_action_FC=immediate | |
16154 | fi | |
16155 | else | |
16156 | # We cannot hardcode anything, or else we can only hardcode existing | |
16157 | # directories. | |
16158 | hardcode_action_FC=unsupported | |
9cdc381b | 16159 | fi |
5213506e RW |
16160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 |
16161 | $as_echo "$hardcode_action_FC" >&6; } | |
1cf3d07d SE |
16162 | |
16163 | if test "$hardcode_action_FC" = relink || | |
16164 | test "$inherit_rpath_FC" = yes; then | |
16165 | # Fast installation is not supported | |
16166 | enable_fast_install=no | |
16167 | elif test "$shlibpath_overrides_runpath" = yes || | |
16168 | test "$enable_shared" = no; then | |
16169 | # Fast installation is not necessary | |
16170 | enable_fast_install=needless | |
9cdc381b BD |
16171 | fi |
16172 | ||
1cf3d07d SE |
16173 | |
16174 | ||
16175 | ||
16176 | ||
16177 | ||
16178 | ||
16179 | fi # test -n "$compiler" | |
16180 | ||
d58dead8 | 16181 | GCC=$lt_save_GCC |
1cf3d07d SE |
16182 | CC="$lt_save_CC" |
16183 | fi # test "$_lt_disable_FC" != yes | |
16184 | ||
dd46a4de | 16185 | ac_ext=c |
96b8a615 AJ |
16186 | ac_cpp='$CPP $CPPFLAGS' |
16187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16188 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16189 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1cf3d07d SE |
16190 | |
16191 | ||
16192 | ||
16193 | # extra LD Flags which are required for targets | |
16194 | case "${host}" in | |
16195 | *-darwin*) | |
16196 | # Darwin needs -single_module when linking libgfortran | |
16197 | extra_ldflags_libgfortran=-Wl,-single_module | |
16198 | ;; | |
16199 | esac | |
16200 | ||
16201 | ||
16202 | # We need a working compiler at that point, otherwise give a clear | |
16203 | # error message and bail out. | |
16204 | ||
5213506e RW |
16205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5 |
16206 | $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; } | |
16207 | ac_ext=${ac_fc_srcext-f} | |
16208 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
16209 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
16210 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
16211 | ||
5213506e | 16212 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
16213 | |
16214 | program foo | |
16215 | real, parameter :: bar = sin (12.34 / 2.5) | |
16216 | end program foo | |
6de9cd9a | 16217 | _ACEOF |
5213506e RW |
16218 | if ac_fn_fc_try_compile "$LINENO"; then : |
16219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16220 | $as_echo "yes" >&6; } | |
6de9cd9a | 16221 | else |
5213506e RW |
16222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16223 | $as_echo "no" >&6; } | |
22e05272 | 16224 | 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 | 16225 | |
96b8a615 | 16226 | fi |
5213506e | 16227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
16228 | ac_ext=c |
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 | |
96b8a615 | 16233 | |
96b8a615 | 16234 | |
1cf3d07d | 16235 | |
5213506e RW |
16236 | # Check whether --enable-largefile was given. |
16237 | if test "${enable_largefile+set}" = set; then : | |
16238 | enableval=$enable_largefile; | |
16239 | fi | |
1cf3d07d | 16240 | |
1cf3d07d SE |
16241 | if test "$enable_largefile" != no; then |
16242 | ||
5213506e RW |
16243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
16244 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
22e05272 | 16245 | if ${ac_cv_sys_largefile_CC+:} false; then : |
5213506e | 16246 | $as_echo_n "(cached) " >&6 |
96b8a615 | 16247 | else |
1cf3d07d SE |
16248 | ac_cv_sys_largefile_CC=no |
16249 | if test "$GCC" != yes; then | |
16250 | ac_save_CC=$CC | |
16251 | while :; do | |
5213506e RW |
16252 | # IRIX 6.2 and later do not support large files by default, |
16253 | # so use the C compiler's -n32 option if that helps. | |
16254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
96b8a615 | 16255 | /* end confdefs.h. */ |
1cf3d07d SE |
16256 | #include <sys/types.h> |
16257 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16258 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16259 | since some C++ compilers masquerading as C compilers | |
16260 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16261 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16262 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16263 | && LARGE_OFF_T % 2147483647 == 1) | |
16264 | ? 1 : -1]; | |
4c4b3eb0 PB |
16265 | int |
16266 | main () | |
16267 | { | |
4c4b3eb0 PB |
16268 | |
16269 | ; | |
16270 | return 0; | |
16271 | } | |
16272 | _ACEOF | |
5213506e RW |
16273 | if ac_fn_c_try_compile "$LINENO"; then : |
16274 | break | |
4c4b3eb0 | 16275 | fi |
5213506e RW |
16276 | rm -f core conftest.err conftest.$ac_objext |
16277 | CC="$CC -n32" | |
16278 | if ac_fn_c_try_compile "$LINENO"; then : | |
16279 | ac_cv_sys_largefile_CC=' -n32'; break | |
16280 | fi | |
16281 | rm -f core conftest.err conftest.$ac_objext | |
16282 | break | |
16283 | done | |
16284 | CC=$ac_save_CC | |
16285 | rm -f conftest.$ac_ext | |
16286 | fi | |
16287 | fi | |
16288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
16289 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
16290 | if test "$ac_cv_sys_largefile_CC" != no; then | |
16291 | CC=$CC$ac_cv_sys_largefile_CC | |
16292 | fi | |
4c4b3eb0 | 16293 | |
5213506e RW |
16294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
16295 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
22e05272 | 16296 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
5213506e RW |
16297 | $as_echo_n "(cached) " >&6 |
16298 | else | |
16299 | while :; do | |
16300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16301 | /* end confdefs.h. */ |
5213506e RW |
16302 | #include <sys/types.h> |
16303 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16304 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16305 | since some C++ compilers masquerading as C compilers | |
16306 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16307 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16308 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16309 | && LARGE_OFF_T % 2147483647 == 1) | |
16310 | ? 1 : -1]; | |
4c4b3eb0 PB |
16311 | int |
16312 | main () | |
16313 | { | |
4c4b3eb0 PB |
16314 | |
16315 | ; | |
16316 | return 0; | |
16317 | } | |
16318 | _ACEOF | |
5213506e RW |
16319 | if ac_fn_c_try_compile "$LINENO"; then : |
16320 | ac_cv_sys_file_offset_bits=no; break | |
16321 | fi | |
16322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16324 | /* end confdefs.h. */ |
5213506e RW |
16325 | #define _FILE_OFFSET_BITS 64 |
16326 | #include <sys/types.h> | |
16327 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16328 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16329 | since some C++ compilers masquerading as C compilers | |
16330 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16331 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16332 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16333 | && LARGE_OFF_T % 2147483647 == 1) | |
16334 | ? 1 : -1]; | |
4c4b3eb0 PB |
16335 | int |
16336 | main () | |
16337 | { | |
4c4b3eb0 PB |
16338 | |
16339 | ; | |
16340 | return 0; | |
16341 | } | |
16342 | _ACEOF | |
5213506e RW |
16343 | if ac_fn_c_try_compile "$LINENO"; then : |
16344 | ac_cv_sys_file_offset_bits=64; break | |
4c4b3eb0 | 16345 | fi |
5213506e RW |
16346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16347 | ac_cv_sys_file_offset_bits=unknown | |
16348 | break | |
16349 | done | |
4c4b3eb0 | 16350 | fi |
5213506e RW |
16351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
16352 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
16353 | case $ac_cv_sys_file_offset_bits in #( | |
16354 | no | unknown) ;; | |
16355 | *) | |
16356 | cat >>confdefs.h <<_ACEOF | |
16357 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4c4b3eb0 | 16358 | _ACEOF |
5213506e RW |
16359 | ;; |
16360 | esac | |
16361 | rm -rf conftest* | |
16362 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
16363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
16364 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
22e05272 | 16365 | if ${ac_cv_sys_large_files+:} false; then : |
5213506e RW |
16366 | $as_echo_n "(cached) " >&6 |
16367 | else | |
16368 | while :; do | |
16369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16370 | /* end confdefs.h. */ |
5213506e RW |
16371 | #include <sys/types.h> |
16372 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16373 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16374 | since some C++ compilers masquerading as C compilers | |
16375 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16376 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16377 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16378 | && LARGE_OFF_T % 2147483647 == 1) | |
16379 | ? 1 : -1]; | |
4c4b3eb0 PB |
16380 | int |
16381 | main () | |
16382 | { | |
4c4b3eb0 PB |
16383 | |
16384 | ; | |
16385 | return 0; | |
16386 | } | |
16387 | _ACEOF | |
5213506e RW |
16388 | if ac_fn_c_try_compile "$LINENO"; then : |
16389 | ac_cv_sys_large_files=no; break | |
4c4b3eb0 | 16390 | fi |
5213506e RW |
16391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16393 | /* end confdefs.h. */ |
5213506e RW |
16394 | #define _LARGE_FILES 1 |
16395 | #include <sys/types.h> | |
16396 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16397 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16398 | since some C++ compilers masquerading as C compilers | |
16399 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16400 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16401 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16402 | && LARGE_OFF_T % 2147483647 == 1) | |
16403 | ? 1 : -1]; | |
4c4b3eb0 PB |
16404 | int |
16405 | main () | |
16406 | { | |
16407 | ||
4c4b3eb0 PB |
16408 | ; |
16409 | return 0; | |
16410 | } | |
16411 | _ACEOF | |
5213506e RW |
16412 | if ac_fn_c_try_compile "$LINENO"; then : |
16413 | ac_cv_sys_large_files=1; break | |
4c4b3eb0 | 16414 | fi |
5213506e RW |
16415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16416 | ac_cv_sys_large_files=unknown | |
16417 | break | |
16418 | done | |
38d24731 | 16419 | fi |
5213506e RW |
16420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
16421 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
16422 | case $ac_cv_sys_large_files in #( | |
16423 | no | unknown) ;; | |
16424 | *) | |
4c4b3eb0 | 16425 | cat >>confdefs.h <<_ACEOF |
5213506e | 16426 | #define _LARGE_FILES $ac_cv_sys_large_files |
4c4b3eb0 | 16427 | _ACEOF |
5213506e RW |
16428 | ;; |
16429 | esac | |
16430 | rm -rf conftest* | |
16431 | fi | |
22e05272 JM |
16432 | |
16433 | ||
4c4b3eb0 PB |
16434 | fi |
16435 | ||
44720bef JB |
16436 | |
16437 | # Types | |
5213506e | 16438 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
22e05272 | 16439 | if test "x$ac_cv_type_off_t" = xyes; then : |
4c4b3eb0 | 16440 | |
5213506e | 16441 | else |
4c4b3eb0 | 16442 | |
5213506e RW |
16443 | cat >>confdefs.h <<_ACEOF |
16444 | #define off_t long int | |
16445 | _ACEOF | |
4c4b3eb0 | 16446 | |
44720bef JB |
16447 | fi |
16448 | ||
16449 | ||
16450 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" | |
22e05272 | 16451 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
44720bef JB |
16452 | |
16453 | $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h | |
16454 | ||
16455 | else | |
16456 | for ac_type in 'int' 'long int' 'long long int'; do | |
16457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16458 | /* end confdefs.h. */ | |
16459 | $ac_includes_default | |
16460 | int | |
16461 | main () | |
16462 | { | |
16463 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
22e05272 JM |
16464 | test_array [0] = 0; |
16465 | return test_array [0]; | |
44720bef JB |
16466 | |
16467 | ; | |
16468 | return 0; | |
16469 | } | |
16470 | _ACEOF | |
16471 | if ac_fn_c_try_compile "$LINENO"; then : | |
16472 | ||
16473 | cat >>confdefs.h <<_ACEOF | |
16474 | #define intptr_t $ac_type | |
16475 | _ACEOF | |
16476 | ||
16477 | ac_type= | |
16478 | fi | |
16479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16480 | test -z "$ac_type" && break | |
16481 | done | |
16482 | fi | |
16483 | ||
16484 | ||
16485 | ||
16486 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | |
22e05272 | 16487 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
44720bef JB |
16488 | |
16489 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | |
16490 | ||
16491 | else | |
16492 | for ac_type in 'unsigned int' 'unsigned long int' \ | |
16493 | 'unsigned long long int'; do | |
16494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16495 | /* end confdefs.h. */ | |
16496 | $ac_includes_default | |
16497 | int | |
16498 | main () | |
16499 | { | |
16500 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
22e05272 JM |
16501 | test_array [0] = 0; |
16502 | return test_array [0]; | |
44720bef JB |
16503 | |
16504 | ; | |
16505 | return 0; | |
16506 | } | |
16507 | _ACEOF | |
16508 | if ac_fn_c_try_compile "$LINENO"; then : | |
16509 | ||
16510 | cat >>confdefs.h <<_ACEOF | |
16511 | #define uintptr_t $ac_type | |
16512 | _ACEOF | |
16513 | ||
16514 | ac_type= | |
16515 | fi | |
16516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16517 | test -z "$ac_type" && break | |
16518 | done | |
16519 | fi | |
16520 | ||
16521 | ||
16522 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
22e05272 | 16523 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
44720bef JB |
16524 | |
16525 | cat >>confdefs.h <<_ACEOF | |
16526 | #define HAVE_PTRDIFF_T 1 | |
16527 | _ACEOF | |
16528 | ||
16529 | ||
4c4b3eb0 PB |
16530 | fi |
16531 | ||
4c4b3eb0 | 16532 | |
74544378 | 16533 | # check header files (we assume C89 is available, so don't check for that) |
df65f093 | 16534 | |
5213506e | 16535 | |
df65f093 | 16536 | |
74544378 JB |
16537 | for ac_header in $ac_header_list |
16538 | do : | |
16539 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16540 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
16541 | " | |
22e05272 | 16542 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
74544378 JB |
16543 | cat >>confdefs.h <<_ACEOF |
16544 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
df65f093 SK |
16545 | _ACEOF |
16546 | ||
5213506e | 16547 | fi |
df65f093 | 16548 | |
74544378 | 16549 | done |
864c28e1 RO |
16550 | |
16551 | ||
df65f093 | 16552 | |
5213506e | 16553 | |
5213506e | 16554 | |
df65f093 | 16555 | |
5213506e | 16556 | |
5213506e | 16557 | |
df65f093 | 16558 | |
df65f093 | 16559 | |
df65f093 SK |
16560 | |
16561 | ||
df65f093 | 16562 | |
df65f093 | 16563 | |
df65f093 SK |
16564 | |
16565 | ||
df65f093 SK |
16566 | |
16567 | ||
41724e6a | 16568 | |
2cbcdeba | 16569 | |
3969c39f | 16570 | |
1fb2002d FXC |
16571 | |
16572 | ||
32aa3bff | 16573 | |
f77b6ca3 | 16574 | |
f77b6ca3 | 16575 | |
f77b6ca3 | 16576 | |
f77b6ca3 | 16577 | |
f77b6ca3 | 16578 | |
f77b6ca3 | 16579 | |
fa86f4f9 TB |
16580 | |
16581 | ||
9cbecd06 JB |
16582 | |
16583 | ||
edaaef60 JB |
16584 | |
16585 | ||
f77b6ca3 | 16586 | |
f77b6ca3 | 16587 | |
6de9cd9a | 16588 | |
c13e029b | 16589 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |
6de9cd9a | 16590 | |
c13e029b PB |
16591 | acx_cv_header_stdint=stddef.h |
16592 | acx_cv_header_stdint_kind="(already complete)" | |
16593 | for i in stdint.h $inttype_headers; do | |
16594 | unset ac_cv_type_uintptr_t | |
16595 | unset ac_cv_type_uintmax_t | |
16596 | unset ac_cv_type_int_least32_t | |
16597 | unset ac_cv_type_int_fast32_t | |
16598 | unset ac_cv_type_uint64_t | |
16599 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
16600 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
16601 | #include <$i> | |
16602 | " | |
22e05272 | 16603 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
c13e029b | 16604 | acx_cv_header_stdint=$i |
5213506e | 16605 | else |
c13e029b | 16606 | continue |
5213506e | 16607 | fi |
6de9cd9a | 16608 | |
c13e029b PB |
16609 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16610 | #include <$i> | |
16611 | " | |
22e05272 | 16612 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
96b8a615 | 16613 | |
5213506e | 16614 | else |
c13e029b | 16615 | acx_cv_header_stdint_kind="(mostly complete)" |
5213506e | 16616 | fi |
96b8a615 | 16617 | |
c13e029b PB |
16618 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> |
16619 | #include <$i> | |
16620 | " | |
22e05272 | 16621 | if test "x$ac_cv_type_int_least32_t" = xyes; then : |
c13e029b | 16622 | |
f77b6ca3 | 16623 | else |
c13e029b | 16624 | acx_cv_header_stdint_kind="(mostly complete)" |
5213506e | 16625 | fi |
5213506e | 16626 | |
c13e029b PB |
16627 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> |
16628 | #include <$i> | |
16629 | " | |
22e05272 | 16630 | if test "x$ac_cv_type_int_fast32_t" = xyes; then : |
f77b6ca3 | 16631 | |
c13e029b PB |
16632 | else |
16633 | acx_cv_header_stdint_kind="(mostly complete)" | |
16634 | fi | |
d72a3ac1 | 16635 | |
c13e029b PB |
16636 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16637 | #include <$i> | |
16638 | " | |
22e05272 | 16639 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
d72a3ac1 | 16640 | |
5213506e | 16641 | else |
c13e029b PB |
16642 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
16643 | fi | |
f77b6ca3 | 16644 | |
c13e029b PB |
16645 | break |
16646 | done | |
16647 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16648 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
16649 | for i in stdint.h $inttype_headers; do | |
16650 | unset ac_cv_type_uintptr_t | |
16651 | unset ac_cv_type_uint32_t | |
16652 | unset ac_cv_type_uint64_t | |
16653 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
16654 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
16655 | #include <$i> | |
16656 | " | |
22e05272 | 16657 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
c13e029b PB |
16658 | acx_cv_header_stdint=$i |
16659 | else | |
16660 | continue | |
5213506e | 16661 | fi |
f77b6ca3 | 16662 | |
c13e029b PB |
16663 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16664 | #include <$i> | |
16665 | " | |
22e05272 | 16666 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
8845001b | 16667 | |
c13e029b | 16668 | fi |
185d7d97 | 16669 | |
c13e029b PB |
16670 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16671 | #include <$i> | |
16672 | " | |
22e05272 | 16673 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
185d7d97 | 16674 | |
c13e029b | 16675 | fi |
35059811 | 16676 | |
c13e029b PB |
16677 | break |
16678 | done | |
16679 | fi | |
16680 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16681 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
16682 | for i in sys/types.h $inttype_headers; do | |
16683 | unset ac_cv_type_u_int32_t | |
16684 | unset ac_cv_type_u_int64_t | |
16685 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
16686 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
16687 | #include <$i> | |
16688 | " | |
22e05272 | 16689 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
c13e029b | 16690 | acx_cv_header_stdint=$i |
d72a3ac1 | 16691 | else |
c13e029b PB |
16692 | continue |
16693 | fi | |
a119fc1c | 16694 | |
c13e029b PB |
16695 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> |
16696 | #include <$i> | |
16697 | " | |
22e05272 | 16698 | if test "x$ac_cv_type_u_int64_t" = xyes; then : |
a119fc1c | 16699 | |
c13e029b | 16700 | fi |
a119fc1c | 16701 | |
c13e029b PB |
16702 | break |
16703 | done | |
a119fc1c | 16704 | fi |
c13e029b PB |
16705 | if test "$acx_cv_header_stdint" = stddef.h; then |
16706 | acx_cv_header_stdint_kind="(using manual detection)" | |
5213506e | 16707 | fi |
a119fc1c | 16708 | |
c13e029b PB |
16709 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
16710 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
16711 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
16712 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
16713 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
a119fc1c | 16714 | |
c13e029b | 16715 | # ----------------- Summarize what we found so far |
5213506e | 16716 | |
c13e029b PB |
16717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 |
16718 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
a119fc1c | 16719 | |
c13e029b PB |
16720 | case `$as_basename -- gstdint.h || |
16721 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
16722 | Xgstdint.h : 'X\(//\)$' \| \ | |
16723 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
16724 | $as_echo X/gstdint.h | | |
16725 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16726 | s//\1/ | |
16727 | q | |
16728 | } | |
16729 | /^X\/\(\/\/\)$/{ | |
16730 | s//\1/ | |
16731 | q | |
16732 | } | |
16733 | /^X\/\(\/\).*/{ | |
16734 | s//\1/ | |
16735 | q | |
16736 | } | |
16737 | s/.*/./; q'` in | |
16738 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16739 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16740 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16741 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16742 | *) ;; | |
16743 | esac | |
a119fc1c | 16744 | |
c13e029b PB |
16745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
16746 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
a63a0959 | 16747 | |
c13e029b | 16748 | # ----------------- done included file, check C basic types -------- |
868d75db | 16749 | |
c13e029b PB |
16750 | # Lacking an uintptr_t? Test size of void * |
16751 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
16752 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
16753 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16754 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16755 | # This bug is HP SR number 8606223364. | |
16756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
16757 | $as_echo_n "checking size of void *... " >&6; } | |
22e05272 | 16758 | if ${ac_cv_sizeof_void_p+:} false; then : |
c13e029b PB |
16759 | $as_echo_n "(cached) " >&6 |
16760 | else | |
16761 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
868d75db | 16762 | |
c13e029b PB |
16763 | else |
16764 | if test "$ac_cv_type_void_p" = yes; then | |
16765 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16766 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16767 | as_fn_error 77 "cannot compute sizeof (void *) |
16768 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16769 | else |
16770 | ac_cv_sizeof_void_p=0 | |
16771 | fi | |
16772 | fi | |
d72a3ac1 | 16773 | |
c13e029b PB |
16774 | fi |
16775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
16776 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
d72a3ac1 | 16777 | |
868d75db FXC |
16778 | |
16779 | ||
d72a3ac1 | 16780 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16781 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
d72a3ac1 | 16782 | _ACEOF |
d72a3ac1 | 16783 | |
c13e029b PB |
16784 | ;; |
16785 | esac | |
d72a3ac1 | 16786 | |
c13e029b PB |
16787 | # Lacking an uint64_t? Test size of long |
16788 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
16789 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
16790 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16791 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16792 | # This bug is HP SR number 8606223364. | |
16793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
16794 | $as_echo_n "checking size of long... " >&6; } | |
22e05272 | 16795 | if ${ac_cv_sizeof_long+:} false; then : |
5213506e RW |
16796 | $as_echo_n "(cached) " >&6 |
16797 | else | |
c13e029b | 16798 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
d72a3ac1 | 16799 | |
7f483eec | 16800 | else |
c13e029b PB |
16801 | if test "$ac_cv_type_long" = yes; then |
16802 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16803 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16804 | as_fn_error 77 "cannot compute sizeof (long) |
16805 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16806 | else |
16807 | ac_cv_sizeof_long=0 | |
16808 | fi | |
5213506e | 16809 | fi |
7f483eec | 16810 | |
c13e029b PB |
16811 | fi |
16812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
16813 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
d72a3ac1 | 16814 | |
7f483eec | 16815 | |
d72a3ac1 PB |
16816 | |
16817 | cat >>confdefs.h <<_ACEOF | |
c13e029b | 16818 | #define SIZEOF_LONG $ac_cv_sizeof_long |
d72a3ac1 | 16819 | _ACEOF |
7f483eec | 16820 | |
c13e029b PB |
16821 | ;; |
16822 | esac | |
29e86cb0 | 16823 | |
c13e029b PB |
16824 | if test $acx_cv_header_stdint = stddef.h; then |
16825 | # Lacking a good header? Test size of everything and deduce all types. | |
16826 | # The cast to long int works around a bug in the HP C Compiler | |
16827 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16828 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16829 | # This bug is HP SR number 8606223364. | |
16830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
16831 | $as_echo_n "checking size of int... " >&6; } | |
22e05272 | 16832 | if ${ac_cv_sizeof_int+:} false; then : |
c13e029b PB |
16833 | $as_echo_n "(cached) " >&6 |
16834 | else | |
16835 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
6422c112 | 16836 | |
c13e029b PB |
16837 | else |
16838 | if test "$ac_cv_type_int" = yes; then | |
16839 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16840 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16841 | as_fn_error 77 "cannot compute sizeof (int) |
16842 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16843 | else |
16844 | ac_cv_sizeof_int=0 | |
16845 | fi | |
16846 | fi | |
d8163f5c | 16847 | |
c13e029b PB |
16848 | fi |
16849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
16850 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
2515e5a7 FXC |
16851 | |
16852 | ||
868d75db | 16853 | |
d72a3ac1 | 16854 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16855 | #define SIZEOF_INT $ac_cv_sizeof_int |
d72a3ac1 PB |
16856 | _ACEOF |
16857 | ||
d72a3ac1 | 16858 | |
c13e029b PB |
16859 | # The cast to long int works around a bug in the HP C Compiler |
16860 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16861 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16862 | # This bug is HP SR number 8606223364. | |
16863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
16864 | $as_echo_n "checking size of short... " >&6; } | |
22e05272 | 16865 | if ${ac_cv_sizeof_short+:} false; then : |
c13e029b PB |
16866 | $as_echo_n "(cached) " >&6 |
16867 | else | |
16868 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
d72a3ac1 | 16869 | |
c13e029b PB |
16870 | else |
16871 | if test "$ac_cv_type_short" = yes; then | |
16872 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16873 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16874 | as_fn_error 77 "cannot compute sizeof (short) |
16875 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16876 | else |
16877 | ac_cv_sizeof_short=0 | |
16878 | fi | |
16879 | fi | |
d72a3ac1 | 16880 | |
c13e029b PB |
16881 | fi |
16882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
16883 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
d72a3ac1 PB |
16884 | |
16885 | ||
16886 | ||
c13e029b PB |
16887 | cat >>confdefs.h <<_ACEOF |
16888 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16889 | _ACEOF | |
d72a3ac1 PB |
16890 | |
16891 | ||
c13e029b PB |
16892 | # The cast to long int works around a bug in the HP C Compiler |
16893 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16894 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16895 | # This bug is HP SR number 8606223364. | |
16896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
16897 | $as_echo_n "checking size of char... " >&6; } | |
22e05272 | 16898 | if ${ac_cv_sizeof_char+:} false; then : |
c13e029b PB |
16899 | $as_echo_n "(cached) " >&6 |
16900 | else | |
16901 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
d72a3ac1 | 16902 | |
c13e029b PB |
16903 | else |
16904 | if test "$ac_cv_type_char" = yes; then | |
16905 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16906 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16907 | as_fn_error 77 "cannot compute sizeof (char) |
16908 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16909 | else |
16910 | ac_cv_sizeof_char=0 | |
16911 | fi | |
16912 | fi | |
d72a3ac1 | 16913 | |
c13e029b PB |
16914 | fi |
16915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
16916 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
d72a3ac1 PB |
16917 | |
16918 | ||
d72a3ac1 | 16919 | |
5213506e | 16920 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16921 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
868d75db | 16922 | _ACEOF |
868d75db | 16923 | |
868d75db | 16924 | |
2017c370 | 16925 | |
c13e029b PB |
16926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 |
16927 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
16928 | case "$ac_cv_sizeof_char" in | |
16929 | 1) acx_cv_type_int8_t=char ;; | |
22e05272 | 16930 | *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16931 | esac |
16932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
16933 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
16934 | ||
16935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
16936 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
16937 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
16938 | 2:*) acx_cv_type_int16_t=int ;; | |
16939 | *:2) acx_cv_type_int16_t=short ;; | |
22e05272 | 16940 | *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16941 | esac |
16942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
16943 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
16944 | ||
16945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
16946 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
16947 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
16948 | 4:*) acx_cv_type_int32_t=int ;; | |
16949 | *:4) acx_cv_type_int32_t=long ;; | |
22e05272 | 16950 | *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16951 | esac |
16952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
16953 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
5213506e RW |
16954 | fi |
16955 | ||
c13e029b | 16956 | # These tests are here to make the output prettier |
d72a3ac1 | 16957 | |
c13e029b PB |
16958 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then |
16959 | case "$ac_cv_sizeof_long" in | |
16960 | 8) acx_cv_type_int64_t=long ;; | |
16961 | esac | |
16962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
16963 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
16964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
16965 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
16966 | fi | |
16967 | ||
16968 | # Now we can use the above types | |
16969 | ||
16970 | if test "$ac_cv_type_uintptr_t" != yes; then | |
16971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
16972 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
16973 | case $ac_cv_sizeof_void_p in | |
16974 | 2) acx_cv_type_intptr_t=int16_t ;; | |
16975 | 4) acx_cv_type_intptr_t=int32_t ;; | |
16976 | 8) acx_cv_type_intptr_t=int64_t ;; | |
22e05272 | 16977 | *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
c13e029b PB |
16978 | esac |
16979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
16980 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
16981 | fi | |
d72a3ac1 | 16982 | |
c13e029b | 16983 | # ----------------- done all checks, emit header ------------- |
5213506e | 16984 | ac_config_commands="$ac_config_commands gstdint.h" |
2017c370 | 16985 | |
2017c370 | 16986 | |
5213506e RW |
16987 | |
16988 | ||
16989 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
22e05272 | 16990 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
5213506e RW |
16991 | |
16992 | cat >>confdefs.h <<_ACEOF | |
16993 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
2017c370 | 16994 | _ACEOF |
2017c370 | 16995 | |
5213506e | 16996 | |
2017c370 | 16997 | fi |
5213506e | 16998 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
22e05272 | 16999 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
5213506e RW |
17000 | |
17001 | cat >>confdefs.h <<_ACEOF | |
17002 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
2017c370 JB |
17003 | _ACEOF |
17004 | ||
5213506e | 17005 | |
2017c370 | 17006 | fi |
5213506e | 17007 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
22e05272 | 17008 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
2017c370 | 17009 | |
5213506e RW |
17010 | cat >>confdefs.h <<_ACEOF |
17011 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
17012 | _ACEOF | |
868d75db FXC |
17013 | |
17014 | ||
f02d008e | 17015 | fi |
5213506e RW |
17016 | |
17017 | ||
bd459d0b JG |
17018 | case "${host}--x${with_newlib}" in |
17019 | mips*--xyes) | |
17020 | hardwire_newlib=1;; | |
d3ca2257 NS |
17021 | nvptx*--xyes) |
17022 | hardwire_newlib=1;; | |
bd459d0b JG |
17023 | esac |
17024 | ||
5213506e | 17025 | # Check for library functions. |
bd459d0b | 17026 | if test "${hardwire_newlib:-0}" -eq 1; then |
b4005c71 SE |
17027 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS |
17028 | # may not work correctly, because the compiler may not be able to | |
17029 | # link executables. | |
17030 | ||
17031 | $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h | |
17032 | ||
17033 | ||
17034 | $as_echo "#define HAVE_STRTOF 1" >>confdefs.h | |
17035 | ||
17036 | ||
b4005c71 SE |
17037 | $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h |
17038 | ||
17039 | ||
b4005c71 SE |
17040 | $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h |
17041 | ||
17042 | ||
17043 | $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h | |
17044 | ||
17045 | ||
17046 | $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h | |
17047 | ||
cb83df66 | 17048 | |
ebfedee6 HPN |
17049 | $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h |
17050 | ||
17051 | ||
17052 | $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h | |
17053 | ||
17054 | ||
cb83df66 SE |
17055 | # At some point, we should differentiate between architectures |
17056 | # like x86, which have long double versions, and alpha/powerpc/etc., | |
17057 | # which don't. For the time being, punt. | |
17058 | if test x"long_double_math_on_this_cpu" = x"yes"; then | |
17059 | ||
17060 | $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h | |
17061 | ||
17062 | fi | |
b4005c71 | 17063 | else |
f77b6ca3 | 17064 | |
f77b6ca3 | 17065 | |
74544378 JB |
17066 | |
17067 | for ac_func in $ac_func_list | |
5213506e RW |
17068 | do : |
17069 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
17070 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 17071 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
5213506e RW |
17072 | cat >>confdefs.h <<_ACEOF |
17073 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17074 | _ACEOF | |
f77b6ca3 | 17075 | |
5213506e RW |
17076 | fi |
17077 | done | |
f77b6ca3 | 17078 | |
f77b6ca3 | 17079 | |
5213506e | 17080 | |
96b8a615 | 17081 | |
5213506e | 17082 | |
5213506e | 17083 | |
5213506e | 17084 | |
6de9cd9a | 17085 | |
6de9cd9a | 17086 | |
b6e7a3d1 | 17087 | |
b6e7a3d1 | 17088 | |
6de9cd9a | 17089 | |
4c0c6b9f | 17090 | |
4c0c6b9f | 17091 | |
4c0c6b9f | 17092 | |
4c0c6b9f | 17093 | |
4c0c6b9f | 17094 | |
4c0c6b9f | 17095 | |
4c0c6b9f | 17096 | |
4c0c6b9f | 17097 | |
868d75db | 17098 | |
868d75db | 17099 | |
868d75db | 17100 | |
868d75db | 17101 | |
4c0c6b9f | 17102 | |
4c0c6b9f | 17103 | |
4c0c6b9f | 17104 | |
4c0c6b9f | 17105 | |
6422c112 | 17106 | |
6422c112 | 17107 | |
6422c112 | 17108 | |
74544378 JB |
17109 | |
17110 | ||
17111 | ||
17112 | ||
17113 | ||
17114 | ||
17115 | ||
17116 | ||
17117 | ||
17118 | ||
17119 | ||
17120 | ||
17121 | ||
17122 | ||
17123 | ||
17124 | ||
17125 | ||
17126 | ||
17127 | ||
17128 | ||
17129 | ||
17130 | ||
17131 | ||
17132 | ||
17133 | ||
17134 | ||
17135 | ||
17136 | ||
17137 | ||
17138 | ||
17139 | ||
17140 | ||
17141 | ||
17142 | ||
17143 | ||
17144 | ||
17145 | ||
17146 | ||
17147 | ||
17148 | ||
17149 | ||
17150 | ||
17151 | ||
17152 | ||
17153 | ||
17154 | ||
17155 | ||
17156 | ||
17157 | ||
17158 | ||
17159 | ||
17160 | ||
17161 | ||
17162 | ||
17163 | ||
17164 | ||
68ee9c08 | 17165 | |
227e441f | 17166 | |
9cbecd06 JB |
17167 | |
17168 | ||
4269f19c JB |
17169 | |
17170 | ||
b5b58343 UW |
17171 | |
17172 | ||
70480968 JB |
17173 | |
17174 | ||
d66d6d15 JB |
17175 | |
17176 | ||
edaaef60 JB |
17177 | |
17178 | ||
ef536b41 JB |
17179 | |
17180 | ||
17181 | ||
17182 | ||
133d0d42 JJ |
17183 | |
17184 | ||
17185 | ||
17186 | ||
f8886038 JB |
17187 | |
17188 | ||
227e441f | 17189 | |
8ecd1c0d TB |
17190 | |
17191 | ||
b4005c71 | 17192 | fi |
74544378 | 17193 | |
4179e59a TB |
17194 | # Check strerror_r, cannot be above as versions with two and three arguments exist |
17195 | ||
17196 | ac_save_CFLAGS="$CFLAGS" | |
17197 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
17198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17199 | /* end confdefs.h. */ | |
17200 | #define _GNU_SOURCE 1 | |
17201 | #include <string.h> | |
17202 | #include <locale.h> | |
17203 | int | |
17204 | main () | |
17205 | { | |
17206 | char s[128]; strerror_r(5, s, 128); | |
17207 | ; | |
17208 | return 0; | |
17209 | } | |
17210 | _ACEOF | |
17211 | if ac_fn_c_try_compile "$LINENO"; then : | |
17212 | ||
17213 | $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h | |
17214 | ||
17215 | fi | |
17216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17217 | CFLAGS="$ac_save_CFLAGS" | |
17218 | ||
17219 | ac_save_CFLAGS="$CFLAGS" | |
17220 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
17221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17222 | /* end confdefs.h. */ | |
17223 | #define _GNU_SOURCE 1 | |
17224 | #include <string.h> | |
17225 | #include <locale.h> | |
17226 | int | |
17227 | main () | |
17228 | { | |
17229 | char s[128]; strerror_r(5, s); | |
17230 | ; | |
17231 | return 0; | |
17232 | } | |
17233 | _ACEOF | |
17234 | if ac_fn_c_try_compile "$LINENO"; then : | |
17235 | ||
17236 | $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h | |
17237 | ||
17238 | fi | |
17239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17240 | CFLAGS="$ac_save_CFLAGS" | |
6422c112 | 17241 | |
4c0c6b9f | 17242 | |
453310d8 | 17243 | # Check for C99 (and other IEEE) math functions |
db9f46a9 TG |
17244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 |
17245 | $as_echo_n "checking for sin in -lm... " >&6; } | |
22e05272 | 17246 | if ${ac_cv_lib_m_sin+:} false; then : |
5213506e | 17247 | $as_echo_n "(cached) " >&6 |
453310d8 RS |
17248 | else |
17249 | ac_check_lib_save_LIBS=$LIBS | |
17250 | LIBS="-lm $LIBS" | |
f02d008e | 17251 | if test x$gcc_no_link = xyes; then |
22e05272 | 17252 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17253 | fi |
5213506e | 17254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17255 | /* end confdefs.h. */ |
17256 | ||
5213506e RW |
17257 | /* Override any GCC internal prototype to avoid an error. |
17258 | Use char because int might match the return type of a GCC | |
17259 | builtin and then its argument prototype would still apply. */ | |
453310d8 RS |
17260 | #ifdef __cplusplus |
17261 | extern "C" | |
17262 | #endif | |
db9f46a9 | 17263 | char sin (); |
453310d8 RS |
17264 | int |
17265 | main () | |
17266 | { | |
db9f46a9 | 17267 | return sin (); |
453310d8 RS |
17268 | ; |
17269 | return 0; | |
17270 | } | |
17271 | _ACEOF | |
5213506e | 17272 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17273 | ac_cv_lib_m_sin=yes |
453310d8 | 17274 | else |
db9f46a9 | 17275 | ac_cv_lib_m_sin=no |
453310d8 | 17276 | fi |
5213506e RW |
17277 | rm -f core conftest.err conftest.$ac_objext \ |
17278 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 RS |
17279 | LIBS=$ac_check_lib_save_LIBS |
17280 | fi | |
db9f46a9 TG |
17281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 |
17282 | $as_echo "$ac_cv_lib_m_sin" >&6; } | |
22e05272 | 17283 | if test "x$ac_cv_lib_m_sin" = xyes; then : |
db9f46a9 TG |
17284 | cat >>confdefs.h <<_ACEOF |
17285 | #define HAVE_LIBM 1 | |
17286 | _ACEOF | |
453310d8 | 17287 | |
db9f46a9 | 17288 | LIBS="-lm $LIBS" |
453310d8 RS |
17289 | |
17290 | fi | |
17291 | ||
db9f46a9 TG |
17292 | |
17293 | ||
17294 | ||
17295 | ||
17296 | ||
17297 | ||
17298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5 | |
17299 | $as_echo_n "checking for acosf... " >&6; } | |
22e05272 | 17300 | if ${gcc_cv_math_func_acosf+:} false; then : |
5213506e | 17301 | $as_echo_n "(cached) " >&6 |
f02d008e | 17302 | else |
db9f46a9 | 17303 | if test x$gcc_no_link = xyes; then |
22e05272 | 17304 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17305 | fi |
5213506e | 17306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17307 | /* end confdefs.h. */ |
17308 | ||
db9f46a9 TG |
17309 | #ifdef HAVE_COMPLEX_H |
17310 | #include <complex.h> | |
17311 | #endif | |
17312 | #ifdef HAVE_MATH_H | |
17313 | #include <math.h> | |
f02d008e | 17314 | #endif |
db9f46a9 TG |
17315 | |
17316 | int (*ptr)() = (int (*)())acosf; | |
17317 | ||
f02d008e JD |
17318 | int |
17319 | main () | |
17320 | { | |
f02d008e JD |
17321 | return 0; |
17322 | } | |
db9f46a9 | 17323 | |
f02d008e | 17324 | _ACEOF |
5213506e | 17325 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17326 | gcc_cv_math_func_acosf=yes |
f02d008e | 17327 | else |
db9f46a9 | 17328 | gcc_cv_math_func_acosf=no |
f02d008e | 17329 | fi |
5213506e RW |
17330 | rm -f core conftest.err conftest.$ac_objext \ |
17331 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17332 | fi |
db9f46a9 TG |
17333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5 |
17334 | $as_echo "$gcc_cv_math_func_acosf" >&6; } | |
17335 | if test $gcc_cv_math_func_acosf = yes; then | |
f1cdfa01 | 17336 | |
f38a14ca TG |
17337 | cat >>confdefs.h <<_ACEOF |
17338 | #define HAVE_ACOSF 1 | |
17339 | _ACEOF | |
db9f46a9 TG |
17340 | |
17341 | fi | |
f02d008e | 17342 | |
f02d008e | 17343 | |
f02d008e | 17344 | |
db9f46a9 TG |
17345 | |
17346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5 | |
17347 | $as_echo_n "checking for acos... " >&6; } | |
22e05272 | 17348 | if ${gcc_cv_math_func_acos+:} false; then : |
5213506e | 17349 | $as_echo_n "(cached) " >&6 |
453310d8 | 17350 | else |
db9f46a9 | 17351 | if test x$gcc_no_link = xyes; then |
22e05272 | 17352 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17353 | fi |
5213506e | 17354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17355 | /* end confdefs.h. */ |
17356 | ||
db9f46a9 TG |
17357 | #ifdef HAVE_COMPLEX_H |
17358 | #include <complex.h> | |
453310d8 | 17359 | #endif |
db9f46a9 TG |
17360 | #ifdef HAVE_MATH_H |
17361 | #include <math.h> | |
17362 | #endif | |
17363 | ||
17364 | int (*ptr)() = (int (*)())acos; | |
17365 | ||
453310d8 RS |
17366 | int |
17367 | main () | |
17368 | { | |
453310d8 RS |
17369 | return 0; |
17370 | } | |
db9f46a9 | 17371 | |
453310d8 | 17372 | _ACEOF |
5213506e | 17373 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17374 | gcc_cv_math_func_acos=yes |
453310d8 | 17375 | else |
db9f46a9 | 17376 | gcc_cv_math_func_acos=no |
453310d8 | 17377 | fi |
5213506e RW |
17378 | rm -f core conftest.err conftest.$ac_objext \ |
17379 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17380 | fi |
db9f46a9 TG |
17381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5 |
17382 | $as_echo "$gcc_cv_math_func_acos" >&6; } | |
17383 | if test $gcc_cv_math_func_acos = yes; then | |
f1cdfa01 | 17384 | |
f38a14ca TG |
17385 | cat >>confdefs.h <<_ACEOF |
17386 | #define HAVE_ACOS 1 | |
17387 | _ACEOF | |
db9f46a9 TG |
17388 | |
17389 | fi | |
17390 | ||
453310d8 | 17391 | |
453310d8 | 17392 | |
453310d8 | 17393 | |
db9f46a9 TG |
17394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5 |
17395 | $as_echo_n "checking for acosl... " >&6; } | |
22e05272 | 17396 | if ${gcc_cv_math_func_acosl+:} false; then : |
5213506e | 17397 | $as_echo_n "(cached) " >&6 |
f02d008e | 17398 | else |
db9f46a9 | 17399 | if test x$gcc_no_link = xyes; then |
22e05272 | 17400 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17401 | fi |
5213506e | 17402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17403 | /* end confdefs.h. */ |
17404 | ||
db9f46a9 TG |
17405 | #ifdef HAVE_COMPLEX_H |
17406 | #include <complex.h> | |
17407 | #endif | |
17408 | #ifdef HAVE_MATH_H | |
17409 | #include <math.h> | |
f02d008e | 17410 | #endif |
db9f46a9 TG |
17411 | |
17412 | int (*ptr)() = (int (*)())acosl; | |
17413 | ||
f02d008e JD |
17414 | int |
17415 | main () | |
17416 | { | |
f02d008e JD |
17417 | return 0; |
17418 | } | |
db9f46a9 | 17419 | |
f02d008e | 17420 | _ACEOF |
5213506e | 17421 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17422 | gcc_cv_math_func_acosl=yes |
f02d008e | 17423 | else |
db9f46a9 | 17424 | gcc_cv_math_func_acosl=no |
f02d008e | 17425 | fi |
5213506e RW |
17426 | rm -f core conftest.err conftest.$ac_objext \ |
17427 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17428 | fi |
db9f46a9 TG |
17429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5 |
17430 | $as_echo "$gcc_cv_math_func_acosl" >&6; } | |
17431 | if test $gcc_cv_math_func_acosl = yes; then | |
f1cdfa01 | 17432 | |
f38a14ca TG |
17433 | cat >>confdefs.h <<_ACEOF |
17434 | #define HAVE_ACOSL 1 | |
17435 | _ACEOF | |
db9f46a9 TG |
17436 | |
17437 | fi | |
f02d008e | 17438 | |
f02d008e | 17439 | |
f02d008e | 17440 | |
db9f46a9 TG |
17441 | |
17442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5 | |
17443 | $as_echo_n "checking for acoshf... " >&6; } | |
22e05272 | 17444 | if ${gcc_cv_math_func_acoshf+:} false; then : |
5213506e | 17445 | $as_echo_n "(cached) " >&6 |
453310d8 | 17446 | else |
db9f46a9 | 17447 | if test x$gcc_no_link = xyes; then |
22e05272 | 17448 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17449 | fi |
5213506e | 17450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17451 | /* end confdefs.h. */ |
17452 | ||
db9f46a9 TG |
17453 | #ifdef HAVE_COMPLEX_H |
17454 | #include <complex.h> | |
453310d8 | 17455 | #endif |
db9f46a9 TG |
17456 | #ifdef HAVE_MATH_H |
17457 | #include <math.h> | |
17458 | #endif | |
17459 | ||
17460 | int (*ptr)() = (int (*)())acoshf; | |
17461 | ||
453310d8 RS |
17462 | int |
17463 | main () | |
17464 | { | |
453310d8 RS |
17465 | return 0; |
17466 | } | |
db9f46a9 | 17467 | |
453310d8 | 17468 | _ACEOF |
5213506e | 17469 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17470 | gcc_cv_math_func_acoshf=yes |
453310d8 | 17471 | else |
db9f46a9 | 17472 | gcc_cv_math_func_acoshf=no |
453310d8 | 17473 | fi |
5213506e RW |
17474 | rm -f core conftest.err conftest.$ac_objext \ |
17475 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17476 | fi |
db9f46a9 TG |
17477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5 |
17478 | $as_echo "$gcc_cv_math_func_acoshf" >&6; } | |
17479 | if test $gcc_cv_math_func_acoshf = yes; then | |
f1cdfa01 | 17480 | |
f38a14ca TG |
17481 | cat >>confdefs.h <<_ACEOF |
17482 | #define HAVE_ACOSHF 1 | |
17483 | _ACEOF | |
453310d8 | 17484 | |
db9f46a9 | 17485 | fi |
453310d8 | 17486 | |
453310d8 | 17487 | |
db9f46a9 TG |
17488 | |
17489 | ||
17490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5 | |
17491 | $as_echo_n "checking for acosh... " >&6; } | |
22e05272 | 17492 | if ${gcc_cv_math_func_acosh+:} false; then : |
5213506e | 17493 | $as_echo_n "(cached) " >&6 |
453310d8 | 17494 | else |
db9f46a9 | 17495 | if test x$gcc_no_link = xyes; then |
22e05272 | 17496 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17497 | fi |
5213506e | 17498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17499 | /* end confdefs.h. */ |
17500 | ||
db9f46a9 TG |
17501 | #ifdef HAVE_COMPLEX_H |
17502 | #include <complex.h> | |
17503 | #endif | |
17504 | #ifdef HAVE_MATH_H | |
17505 | #include <math.h> | |
453310d8 | 17506 | #endif |
db9f46a9 TG |
17507 | |
17508 | int (*ptr)() = (int (*)())acosh; | |
17509 | ||
453310d8 RS |
17510 | int |
17511 | main () | |
17512 | { | |
5213506e RW |
17513 | return 0; |
17514 | } | |
db9f46a9 | 17515 | |
5213506e RW |
17516 | _ACEOF |
17517 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 17518 | gcc_cv_math_func_acosh=yes |
453310d8 | 17519 | else |
db9f46a9 | 17520 | gcc_cv_math_func_acosh=no |
453310d8 | 17521 | fi |
5213506e RW |
17522 | rm -f core conftest.err conftest.$ac_objext \ |
17523 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17524 | fi |
db9f46a9 TG |
17525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5 |
17526 | $as_echo "$gcc_cv_math_func_acosh" >&6; } | |
17527 | if test $gcc_cv_math_func_acosh = yes; then | |
f1cdfa01 | 17528 | |
f38a14ca TG |
17529 | cat >>confdefs.h <<_ACEOF |
17530 | #define HAVE_ACOSH 1 | |
17531 | _ACEOF | |
db9f46a9 TG |
17532 | |
17533 | fi | |
453310d8 | 17534 | |
453310d8 | 17535 | |
453310d8 | 17536 | |
db9f46a9 TG |
17537 | |
17538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5 | |
17539 | $as_echo_n "checking for acoshl... " >&6; } | |
22e05272 | 17540 | if ${gcc_cv_math_func_acoshl+:} false; then : |
5213506e | 17541 | $as_echo_n "(cached) " >&6 |
f02d008e | 17542 | else |
db9f46a9 | 17543 | if test x$gcc_no_link = xyes; then |
22e05272 | 17544 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17545 | fi |
5213506e | 17546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17547 | /* end confdefs.h. */ |
17548 | ||
db9f46a9 TG |
17549 | #ifdef HAVE_COMPLEX_H |
17550 | #include <complex.h> | |
f02d008e | 17551 | #endif |
db9f46a9 TG |
17552 | #ifdef HAVE_MATH_H |
17553 | #include <math.h> | |
17554 | #endif | |
17555 | ||
17556 | int (*ptr)() = (int (*)())acoshl; | |
17557 | ||
f02d008e JD |
17558 | int |
17559 | main () | |
17560 | { | |
f02d008e JD |
17561 | return 0; |
17562 | } | |
db9f46a9 | 17563 | |
f02d008e | 17564 | _ACEOF |
5213506e | 17565 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17566 | gcc_cv_math_func_acoshl=yes |
f02d008e | 17567 | else |
db9f46a9 | 17568 | gcc_cv_math_func_acoshl=no |
f02d008e | 17569 | fi |
5213506e RW |
17570 | rm -f core conftest.err conftest.$ac_objext \ |
17571 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17572 | fi |
db9f46a9 TG |
17573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5 |
17574 | $as_echo "$gcc_cv_math_func_acoshl" >&6; } | |
17575 | if test $gcc_cv_math_func_acoshl = yes; then | |
f1cdfa01 | 17576 | |
f38a14ca TG |
17577 | cat >>confdefs.h <<_ACEOF |
17578 | #define HAVE_ACOSHL 1 | |
17579 | _ACEOF | |
db9f46a9 TG |
17580 | |
17581 | fi | |
17582 | ||
f02d008e | 17583 | |
f02d008e | 17584 | |
f02d008e | 17585 | |
db9f46a9 TG |
17586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5 |
17587 | $as_echo_n "checking for asinf... " >&6; } | |
22e05272 | 17588 | if ${gcc_cv_math_func_asinf+:} false; then : |
5213506e | 17589 | $as_echo_n "(cached) " >&6 |
453310d8 | 17590 | else |
db9f46a9 | 17591 | if test x$gcc_no_link = xyes; then |
22e05272 | 17592 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17593 | fi |
5213506e | 17594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17595 | /* end confdefs.h. */ |
17596 | ||
db9f46a9 TG |
17597 | #ifdef HAVE_COMPLEX_H |
17598 | #include <complex.h> | |
17599 | #endif | |
17600 | #ifdef HAVE_MATH_H | |
17601 | #include <math.h> | |
453310d8 | 17602 | #endif |
db9f46a9 TG |
17603 | |
17604 | int (*ptr)() = (int (*)())asinf; | |
17605 | ||
453310d8 RS |
17606 | int |
17607 | main () | |
17608 | { | |
453310d8 RS |
17609 | return 0; |
17610 | } | |
db9f46a9 | 17611 | |
453310d8 | 17612 | _ACEOF |
5213506e | 17613 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17614 | gcc_cv_math_func_asinf=yes |
453310d8 | 17615 | else |
db9f46a9 | 17616 | gcc_cv_math_func_asinf=no |
453310d8 | 17617 | fi |
5213506e RW |
17618 | rm -f core conftest.err conftest.$ac_objext \ |
17619 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17620 | fi |
db9f46a9 TG |
17621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5 |
17622 | $as_echo "$gcc_cv_math_func_asinf" >&6; } | |
17623 | if test $gcc_cv_math_func_asinf = yes; then | |
f1cdfa01 | 17624 | |
f38a14ca TG |
17625 | cat >>confdefs.h <<_ACEOF |
17626 | #define HAVE_ASINF 1 | |
17627 | _ACEOF | |
db9f46a9 TG |
17628 | |
17629 | fi | |
453310d8 | 17630 | |
453310d8 | 17631 | |
453310d8 | 17632 | |
db9f46a9 TG |
17633 | |
17634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5 | |
17635 | $as_echo_n "checking for asin... " >&6; } | |
22e05272 | 17636 | if ${gcc_cv_math_func_asin+:} false; then : |
5213506e | 17637 | $as_echo_n "(cached) " >&6 |
453310d8 | 17638 | else |
db9f46a9 | 17639 | if test x$gcc_no_link = xyes; then |
22e05272 | 17640 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17641 | fi |
5213506e | 17642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17643 | /* end confdefs.h. */ |
17644 | ||
db9f46a9 TG |
17645 | #ifdef HAVE_COMPLEX_H |
17646 | #include <complex.h> | |
453310d8 | 17647 | #endif |
db9f46a9 TG |
17648 | #ifdef HAVE_MATH_H |
17649 | #include <math.h> | |
17650 | #endif | |
17651 | ||
17652 | int (*ptr)() = (int (*)())asin; | |
17653 | ||
453310d8 RS |
17654 | int |
17655 | main () | |
17656 | { | |
453310d8 RS |
17657 | return 0; |
17658 | } | |
db9f46a9 | 17659 | |
453310d8 | 17660 | _ACEOF |
5213506e | 17661 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17662 | gcc_cv_math_func_asin=yes |
453310d8 | 17663 | else |
db9f46a9 | 17664 | gcc_cv_math_func_asin=no |
453310d8 | 17665 | fi |
5213506e RW |
17666 | rm -f core conftest.err conftest.$ac_objext \ |
17667 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17668 | fi |
db9f46a9 TG |
17669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5 |
17670 | $as_echo "$gcc_cv_math_func_asin" >&6; } | |
17671 | if test $gcc_cv_math_func_asin = yes; then | |
f1cdfa01 | 17672 | |
f38a14ca TG |
17673 | cat >>confdefs.h <<_ACEOF |
17674 | #define HAVE_ASIN 1 | |
17675 | _ACEOF | |
453310d8 | 17676 | |
db9f46a9 | 17677 | fi |
453310d8 | 17678 | |
453310d8 | 17679 | |
db9f46a9 TG |
17680 | |
17681 | ||
17682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5 | |
17683 | $as_echo_n "checking for asinl... " >&6; } | |
22e05272 | 17684 | if ${gcc_cv_math_func_asinl+:} false; then : |
5213506e | 17685 | $as_echo_n "(cached) " >&6 |
453310d8 | 17686 | else |
db9f46a9 | 17687 | if test x$gcc_no_link = xyes; then |
22e05272 | 17688 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17689 | fi |
5213506e | 17690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17691 | /* end confdefs.h. */ |
17692 | ||
db9f46a9 TG |
17693 | #ifdef HAVE_COMPLEX_H |
17694 | #include <complex.h> | |
17695 | #endif | |
17696 | #ifdef HAVE_MATH_H | |
17697 | #include <math.h> | |
453310d8 | 17698 | #endif |
db9f46a9 TG |
17699 | |
17700 | int (*ptr)() = (int (*)())asinl; | |
17701 | ||
453310d8 RS |
17702 | int |
17703 | main () | |
17704 | { | |
453310d8 RS |
17705 | return 0; |
17706 | } | |
db9f46a9 | 17707 | |
453310d8 | 17708 | _ACEOF |
5213506e | 17709 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17710 | gcc_cv_math_func_asinl=yes |
453310d8 | 17711 | else |
db9f46a9 | 17712 | gcc_cv_math_func_asinl=no |
453310d8 | 17713 | fi |
5213506e RW |
17714 | rm -f core conftest.err conftest.$ac_objext \ |
17715 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17716 | fi |
db9f46a9 TG |
17717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5 |
17718 | $as_echo "$gcc_cv_math_func_asinl" >&6; } | |
17719 | if test $gcc_cv_math_func_asinl = yes; then | |
f1cdfa01 | 17720 | |
f38a14ca TG |
17721 | cat >>confdefs.h <<_ACEOF |
17722 | #define HAVE_ASINL 1 | |
17723 | _ACEOF | |
db9f46a9 TG |
17724 | |
17725 | fi | |
453310d8 | 17726 | |
453310d8 | 17727 | |
453310d8 | 17728 | |
db9f46a9 TG |
17729 | |
17730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5 | |
17731 | $as_echo_n "checking for asinhf... " >&6; } | |
22e05272 | 17732 | if ${gcc_cv_math_func_asinhf+:} false; then : |
5213506e | 17733 | $as_echo_n "(cached) " >&6 |
453310d8 | 17734 | else |
db9f46a9 | 17735 | if test x$gcc_no_link = xyes; then |
22e05272 | 17736 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17737 | fi |
5213506e | 17738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17739 | /* end confdefs.h. */ |
17740 | ||
db9f46a9 TG |
17741 | #ifdef HAVE_COMPLEX_H |
17742 | #include <complex.h> | |
453310d8 | 17743 | #endif |
db9f46a9 TG |
17744 | #ifdef HAVE_MATH_H |
17745 | #include <math.h> | |
17746 | #endif | |
17747 | ||
17748 | int (*ptr)() = (int (*)())asinhf; | |
17749 | ||
453310d8 RS |
17750 | int |
17751 | main () | |
17752 | { | |
453310d8 RS |
17753 | return 0; |
17754 | } | |
db9f46a9 | 17755 | |
453310d8 | 17756 | _ACEOF |
5213506e | 17757 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17758 | gcc_cv_math_func_asinhf=yes |
453310d8 | 17759 | else |
db9f46a9 | 17760 | gcc_cv_math_func_asinhf=no |
453310d8 | 17761 | fi |
5213506e RW |
17762 | rm -f core conftest.err conftest.$ac_objext \ |
17763 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17764 | fi |
db9f46a9 TG |
17765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5 |
17766 | $as_echo "$gcc_cv_math_func_asinhf" >&6; } | |
17767 | if test $gcc_cv_math_func_asinhf = yes; then | |
f1cdfa01 | 17768 | |
f38a14ca TG |
17769 | cat >>confdefs.h <<_ACEOF |
17770 | #define HAVE_ASINHF 1 | |
17771 | _ACEOF | |
db9f46a9 TG |
17772 | |
17773 | fi | |
17774 | ||
453310d8 | 17775 | |
453310d8 | 17776 | |
453310d8 | 17777 | |
db9f46a9 TG |
17778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5 |
17779 | $as_echo_n "checking for asinh... " >&6; } | |
22e05272 | 17780 | if ${gcc_cv_math_func_asinh+:} false; then : |
5213506e | 17781 | $as_echo_n "(cached) " >&6 |
453310d8 | 17782 | else |
db9f46a9 | 17783 | if test x$gcc_no_link = xyes; then |
22e05272 | 17784 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17785 | fi |
5213506e | 17786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17787 | /* end confdefs.h. */ |
17788 | ||
db9f46a9 TG |
17789 | #ifdef HAVE_COMPLEX_H |
17790 | #include <complex.h> | |
17791 | #endif | |
17792 | #ifdef HAVE_MATH_H | |
17793 | #include <math.h> | |
453310d8 | 17794 | #endif |
db9f46a9 TG |
17795 | |
17796 | int (*ptr)() = (int (*)())asinh; | |
17797 | ||
453310d8 RS |
17798 | int |
17799 | main () | |
17800 | { | |
453310d8 RS |
17801 | return 0; |
17802 | } | |
db9f46a9 | 17803 | |
453310d8 | 17804 | _ACEOF |
5213506e | 17805 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17806 | gcc_cv_math_func_asinh=yes |
453310d8 | 17807 | else |
db9f46a9 | 17808 | gcc_cv_math_func_asinh=no |
453310d8 | 17809 | fi |
5213506e RW |
17810 | rm -f core conftest.err conftest.$ac_objext \ |
17811 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17812 | fi |
db9f46a9 TG |
17813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5 |
17814 | $as_echo "$gcc_cv_math_func_asinh" >&6; } | |
17815 | if test $gcc_cv_math_func_asinh = yes; then | |
f1cdfa01 | 17816 | |
f38a14ca TG |
17817 | cat >>confdefs.h <<_ACEOF |
17818 | #define HAVE_ASINH 1 | |
17819 | _ACEOF | |
db9f46a9 TG |
17820 | |
17821 | fi | |
453310d8 | 17822 | |
453310d8 | 17823 | |
453310d8 | 17824 | |
db9f46a9 TG |
17825 | |
17826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5 | |
17827 | $as_echo_n "checking for asinhl... " >&6; } | |
22e05272 | 17828 | if ${gcc_cv_math_func_asinhl+:} false; then : |
5213506e | 17829 | $as_echo_n "(cached) " >&6 |
6e4d9244 | 17830 | else |
db9f46a9 | 17831 | if test x$gcc_no_link = xyes; then |
22e05272 | 17832 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17833 | fi |
5213506e | 17834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6e4d9244 EB |
17835 | /* end confdefs.h. */ |
17836 | ||
db9f46a9 TG |
17837 | #ifdef HAVE_COMPLEX_H |
17838 | #include <complex.h> | |
6e4d9244 | 17839 | #endif |
db9f46a9 TG |
17840 | #ifdef HAVE_MATH_H |
17841 | #include <math.h> | |
17842 | #endif | |
17843 | ||
17844 | int (*ptr)() = (int (*)())asinhl; | |
17845 | ||
6e4d9244 EB |
17846 | int |
17847 | main () | |
17848 | { | |
6e4d9244 EB |
17849 | return 0; |
17850 | } | |
db9f46a9 | 17851 | |
6e4d9244 | 17852 | _ACEOF |
5213506e | 17853 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17854 | gcc_cv_math_func_asinhl=yes |
6e4d9244 | 17855 | else |
db9f46a9 | 17856 | gcc_cv_math_func_asinhl=no |
6e4d9244 | 17857 | fi |
5213506e RW |
17858 | rm -f core conftest.err conftest.$ac_objext \ |
17859 | conftest$ac_exeext conftest.$ac_ext | |
6e4d9244 | 17860 | fi |
db9f46a9 TG |
17861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5 |
17862 | $as_echo "$gcc_cv_math_func_asinhl" >&6; } | |
17863 | if test $gcc_cv_math_func_asinhl = yes; then | |
f1cdfa01 | 17864 | |
f38a14ca TG |
17865 | cat >>confdefs.h <<_ACEOF |
17866 | #define HAVE_ASINHL 1 | |
17867 | _ACEOF | |
6e4d9244 | 17868 | |
db9f46a9 | 17869 | fi |
6e4d9244 | 17870 | |
6e4d9244 | 17871 | |
db9f46a9 TG |
17872 | |
17873 | ||
17874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5 | |
17875 | $as_echo_n "checking for atan2f... " >&6; } | |
22e05272 | 17876 | if ${gcc_cv_math_func_atan2f+:} false; then : |
5213506e | 17877 | $as_echo_n "(cached) " >&6 |
453310d8 | 17878 | else |
db9f46a9 | 17879 | if test x$gcc_no_link = xyes; then |
22e05272 | 17880 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17881 | fi |
5213506e | 17882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17883 | /* end confdefs.h. */ |
17884 | ||
db9f46a9 TG |
17885 | #ifdef HAVE_COMPLEX_H |
17886 | #include <complex.h> | |
453310d8 | 17887 | #endif |
db9f46a9 TG |
17888 | #ifdef HAVE_MATH_H |
17889 | #include <math.h> | |
17890 | #endif | |
17891 | ||
17892 | int (*ptr)() = (int (*)())atan2f; | |
17893 | ||
17894 | int | |
453310d8 RS |
17895 | main () |
17896 | { | |
453310d8 RS |
17897 | return 0; |
17898 | } | |
db9f46a9 | 17899 | |
453310d8 | 17900 | _ACEOF |
5213506e | 17901 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17902 | gcc_cv_math_func_atan2f=yes |
453310d8 | 17903 | else |
db9f46a9 | 17904 | gcc_cv_math_func_atan2f=no |
453310d8 | 17905 | fi |
5213506e RW |
17906 | rm -f core conftest.err conftest.$ac_objext \ |
17907 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17908 | fi |
db9f46a9 TG |
17909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5 |
17910 | $as_echo "$gcc_cv_math_func_atan2f" >&6; } | |
17911 | if test $gcc_cv_math_func_atan2f = yes; then | |
f1cdfa01 | 17912 | |
f38a14ca TG |
17913 | cat >>confdefs.h <<_ACEOF |
17914 | #define HAVE_ATAN2F 1 | |
17915 | _ACEOF | |
db9f46a9 TG |
17916 | |
17917 | fi | |
453310d8 | 17918 | |
453310d8 | 17919 | |
453310d8 | 17920 | |
db9f46a9 TG |
17921 | |
17922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5 | |
17923 | $as_echo_n "checking for atan2... " >&6; } | |
22e05272 | 17924 | if ${gcc_cv_math_func_atan2+:} false; then : |
5213506e | 17925 | $as_echo_n "(cached) " >&6 |
453310d8 | 17926 | else |
db9f46a9 | 17927 | if test x$gcc_no_link = xyes; then |
22e05272 | 17928 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17929 | fi |
5213506e | 17930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17931 | /* end confdefs.h. */ |
17932 | ||
db9f46a9 TG |
17933 | #ifdef HAVE_COMPLEX_H |
17934 | #include <complex.h> | |
453310d8 | 17935 | #endif |
db9f46a9 TG |
17936 | #ifdef HAVE_MATH_H |
17937 | #include <math.h> | |
17938 | #endif | |
17939 | ||
17940 | int (*ptr)() = (int (*)())atan2; | |
17941 | ||
453310d8 RS |
17942 | int |
17943 | main () | |
17944 | { | |
453310d8 RS |
17945 | return 0; |
17946 | } | |
db9f46a9 | 17947 | |
453310d8 | 17948 | _ACEOF |
5213506e | 17949 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17950 | gcc_cv_math_func_atan2=yes |
453310d8 | 17951 | else |
db9f46a9 | 17952 | gcc_cv_math_func_atan2=no |
453310d8 | 17953 | fi |
5213506e RW |
17954 | rm -f core conftest.err conftest.$ac_objext \ |
17955 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17956 | fi |
db9f46a9 TG |
17957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5 |
17958 | $as_echo "$gcc_cv_math_func_atan2" >&6; } | |
17959 | if test $gcc_cv_math_func_atan2 = yes; then | |
f1cdfa01 | 17960 | |
f38a14ca TG |
17961 | cat >>confdefs.h <<_ACEOF |
17962 | #define HAVE_ATAN2 1 | |
17963 | _ACEOF | |
453310d8 | 17964 | |
db9f46a9 | 17965 | fi |
453310d8 | 17966 | |
453310d8 | 17967 | |
db9f46a9 TG |
17968 | |
17969 | ||
17970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5 | |
17971 | $as_echo_n "checking for atan2l... " >&6; } | |
22e05272 | 17972 | if ${gcc_cv_math_func_atan2l+:} false; then : |
5213506e | 17973 | $as_echo_n "(cached) " >&6 |
453310d8 | 17974 | else |
db9f46a9 | 17975 | if test x$gcc_no_link = xyes; then |
22e05272 | 17976 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17977 | fi |
5213506e | 17978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17979 | /* end confdefs.h. */ |
17980 | ||
db9f46a9 TG |
17981 | #ifdef HAVE_COMPLEX_H |
17982 | #include <complex.h> | |
17983 | #endif | |
17984 | #ifdef HAVE_MATH_H | |
17985 | #include <math.h> | |
453310d8 | 17986 | #endif |
db9f46a9 TG |
17987 | |
17988 | int (*ptr)() = (int (*)())atan2l; | |
17989 | ||
453310d8 RS |
17990 | int |
17991 | main () | |
17992 | { | |
453310d8 RS |
17993 | return 0; |
17994 | } | |
db9f46a9 | 17995 | |
453310d8 | 17996 | _ACEOF |
5213506e | 17997 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17998 | gcc_cv_math_func_atan2l=yes |
453310d8 | 17999 | else |
db9f46a9 | 18000 | gcc_cv_math_func_atan2l=no |
453310d8 | 18001 | fi |
5213506e RW |
18002 | rm -f core conftest.err conftest.$ac_objext \ |
18003 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18004 | fi |
db9f46a9 TG |
18005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5 |
18006 | $as_echo "$gcc_cv_math_func_atan2l" >&6; } | |
18007 | if test $gcc_cv_math_func_atan2l = yes; then | |
f1cdfa01 | 18008 | |
f38a14ca TG |
18009 | cat >>confdefs.h <<_ACEOF |
18010 | #define HAVE_ATAN2L 1 | |
18011 | _ACEOF | |
db9f46a9 TG |
18012 | |
18013 | fi | |
453310d8 | 18014 | |
453310d8 | 18015 | |
453310d8 | 18016 | |
db9f46a9 TG |
18017 | |
18018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5 | |
18019 | $as_echo_n "checking for atanf... " >&6; } | |
22e05272 | 18020 | if ${gcc_cv_math_func_atanf+:} false; then : |
5213506e | 18021 | $as_echo_n "(cached) " >&6 |
453310d8 | 18022 | else |
db9f46a9 | 18023 | if test x$gcc_no_link = xyes; then |
22e05272 | 18024 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18025 | fi |
5213506e | 18026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18027 | /* end confdefs.h. */ |
18028 | ||
db9f46a9 TG |
18029 | #ifdef HAVE_COMPLEX_H |
18030 | #include <complex.h> | |
453310d8 | 18031 | #endif |
db9f46a9 TG |
18032 | #ifdef HAVE_MATH_H |
18033 | #include <math.h> | |
18034 | #endif | |
18035 | ||
18036 | int (*ptr)() = (int (*)())atanf; | |
18037 | ||
453310d8 RS |
18038 | int |
18039 | main () | |
18040 | { | |
453310d8 RS |
18041 | return 0; |
18042 | } | |
db9f46a9 | 18043 | |
453310d8 | 18044 | _ACEOF |
5213506e | 18045 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18046 | gcc_cv_math_func_atanf=yes |
453310d8 | 18047 | else |
db9f46a9 | 18048 | gcc_cv_math_func_atanf=no |
453310d8 | 18049 | fi |
5213506e RW |
18050 | rm -f core conftest.err conftest.$ac_objext \ |
18051 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18052 | fi |
db9f46a9 TG |
18053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5 |
18054 | $as_echo "$gcc_cv_math_func_atanf" >&6; } | |
18055 | if test $gcc_cv_math_func_atanf = yes; then | |
f1cdfa01 | 18056 | |
f38a14ca TG |
18057 | cat >>confdefs.h <<_ACEOF |
18058 | #define HAVE_ATANF 1 | |
18059 | _ACEOF | |
db9f46a9 TG |
18060 | |
18061 | fi | |
18062 | ||
453310d8 | 18063 | |
453310d8 | 18064 | |
453310d8 | 18065 | |
db9f46a9 TG |
18066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5 |
18067 | $as_echo_n "checking for atan... " >&6; } | |
22e05272 | 18068 | if ${gcc_cv_math_func_atan+:} false; then : |
5213506e | 18069 | $as_echo_n "(cached) " >&6 |
453310d8 | 18070 | else |
db9f46a9 | 18071 | if test x$gcc_no_link = xyes; then |
22e05272 | 18072 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18073 | fi |
5213506e | 18074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18075 | /* end confdefs.h. */ |
18076 | ||
db9f46a9 TG |
18077 | #ifdef HAVE_COMPLEX_H |
18078 | #include <complex.h> | |
18079 | #endif | |
18080 | #ifdef HAVE_MATH_H | |
18081 | #include <math.h> | |
453310d8 | 18082 | #endif |
db9f46a9 TG |
18083 | |
18084 | int (*ptr)() = (int (*)())atan; | |
18085 | ||
453310d8 RS |
18086 | int |
18087 | main () | |
18088 | { | |
453310d8 RS |
18089 | return 0; |
18090 | } | |
db9f46a9 | 18091 | |
453310d8 | 18092 | _ACEOF |
5213506e | 18093 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18094 | gcc_cv_math_func_atan=yes |
453310d8 | 18095 | else |
db9f46a9 | 18096 | gcc_cv_math_func_atan=no |
453310d8 | 18097 | fi |
5213506e RW |
18098 | rm -f core conftest.err conftest.$ac_objext \ |
18099 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18100 | fi |
db9f46a9 TG |
18101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5 |
18102 | $as_echo "$gcc_cv_math_func_atan" >&6; } | |
18103 | if test $gcc_cv_math_func_atan = yes; then | |
f1cdfa01 | 18104 | |
f38a14ca TG |
18105 | cat >>confdefs.h <<_ACEOF |
18106 | #define HAVE_ATAN 1 | |
18107 | _ACEOF | |
db9f46a9 TG |
18108 | |
18109 | fi | |
453310d8 | 18110 | |
453310d8 | 18111 | |
453310d8 | 18112 | |
db9f46a9 TG |
18113 | |
18114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5 | |
18115 | $as_echo_n "checking for atanl... " >&6; } | |
22e05272 | 18116 | if ${gcc_cv_math_func_atanl+:} false; then : |
5213506e | 18117 | $as_echo_n "(cached) " >&6 |
32aa3bff | 18118 | else |
db9f46a9 | 18119 | if test x$gcc_no_link = xyes; then |
22e05272 | 18120 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18121 | fi |
5213506e | 18122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
32aa3bff FXC |
18123 | /* end confdefs.h. */ |
18124 | ||
db9f46a9 TG |
18125 | #ifdef HAVE_COMPLEX_H |
18126 | #include <complex.h> | |
32aa3bff | 18127 | #endif |
db9f46a9 TG |
18128 | #ifdef HAVE_MATH_H |
18129 | #include <math.h> | |
18130 | #endif | |
18131 | ||
18132 | int (*ptr)() = (int (*)())atanl; | |
18133 | ||
32aa3bff FXC |
18134 | int |
18135 | main () | |
18136 | { | |
32aa3bff FXC |
18137 | return 0; |
18138 | } | |
db9f46a9 | 18139 | |
32aa3bff | 18140 | _ACEOF |
5213506e | 18141 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18142 | gcc_cv_math_func_atanl=yes |
32aa3bff | 18143 | else |
db9f46a9 | 18144 | gcc_cv_math_func_atanl=no |
32aa3bff | 18145 | fi |
5213506e RW |
18146 | rm -f core conftest.err conftest.$ac_objext \ |
18147 | conftest$ac_exeext conftest.$ac_ext | |
32aa3bff | 18148 | fi |
db9f46a9 TG |
18149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5 |
18150 | $as_echo "$gcc_cv_math_func_atanl" >&6; } | |
18151 | if test $gcc_cv_math_func_atanl = yes; then | |
f1cdfa01 | 18152 | |
f38a14ca TG |
18153 | cat >>confdefs.h <<_ACEOF |
18154 | #define HAVE_ATANL 1 | |
18155 | _ACEOF | |
32aa3bff | 18156 | |
db9f46a9 | 18157 | fi |
32aa3bff | 18158 | |
32aa3bff | 18159 | |
db9f46a9 TG |
18160 | |
18161 | ||
18162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5 | |
18163 | $as_echo_n "checking for atanhf... " >&6; } | |
22e05272 | 18164 | if ${gcc_cv_math_func_atanhf+:} false; then : |
5213506e | 18165 | $as_echo_n "(cached) " >&6 |
453310d8 | 18166 | else |
db9f46a9 | 18167 | if test x$gcc_no_link = xyes; then |
22e05272 | 18168 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18169 | fi |
5213506e | 18170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18171 | /* end confdefs.h. */ |
18172 | ||
db9f46a9 TG |
18173 | #ifdef HAVE_COMPLEX_H |
18174 | #include <complex.h> | |
18175 | #endif | |
18176 | #ifdef HAVE_MATH_H | |
18177 | #include <math.h> | |
453310d8 | 18178 | #endif |
db9f46a9 TG |
18179 | |
18180 | int (*ptr)() = (int (*)())atanhf; | |
18181 | ||
453310d8 RS |
18182 | int |
18183 | main () | |
18184 | { | |
453310d8 RS |
18185 | return 0; |
18186 | } | |
db9f46a9 | 18187 | |
453310d8 | 18188 | _ACEOF |
5213506e | 18189 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18190 | gcc_cv_math_func_atanhf=yes |
453310d8 | 18191 | else |
db9f46a9 | 18192 | gcc_cv_math_func_atanhf=no |
453310d8 | 18193 | fi |
5213506e RW |
18194 | rm -f core conftest.err conftest.$ac_objext \ |
18195 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18196 | fi |
db9f46a9 TG |
18197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5 |
18198 | $as_echo "$gcc_cv_math_func_atanhf" >&6; } | |
18199 | if test $gcc_cv_math_func_atanhf = yes; then | |
f1cdfa01 | 18200 | |
f38a14ca TG |
18201 | cat >>confdefs.h <<_ACEOF |
18202 | #define HAVE_ATANHF 1 | |
18203 | _ACEOF | |
db9f46a9 TG |
18204 | |
18205 | fi | |
453310d8 | 18206 | |
453310d8 | 18207 | |
453310d8 | 18208 | |
db9f46a9 TG |
18209 | |
18210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5 | |
18211 | $as_echo_n "checking for atanh... " >&6; } | |
22e05272 | 18212 | if ${gcc_cv_math_func_atanh+:} false; then : |
5213506e | 18213 | $as_echo_n "(cached) " >&6 |
453310d8 | 18214 | else |
db9f46a9 | 18215 | if test x$gcc_no_link = xyes; then |
22e05272 | 18216 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18217 | fi |
5213506e | 18218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18219 | /* end confdefs.h. */ |
18220 | ||
db9f46a9 TG |
18221 | #ifdef HAVE_COMPLEX_H |
18222 | #include <complex.h> | |
453310d8 | 18223 | #endif |
db9f46a9 TG |
18224 | #ifdef HAVE_MATH_H |
18225 | #include <math.h> | |
18226 | #endif | |
18227 | ||
18228 | int (*ptr)() = (int (*)())atanh; | |
18229 | ||
453310d8 RS |
18230 | int |
18231 | main () | |
18232 | { | |
453310d8 RS |
18233 | return 0; |
18234 | } | |
db9f46a9 | 18235 | |
453310d8 | 18236 | _ACEOF |
5213506e | 18237 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18238 | gcc_cv_math_func_atanh=yes |
453310d8 | 18239 | else |
db9f46a9 | 18240 | gcc_cv_math_func_atanh=no |
453310d8 | 18241 | fi |
5213506e RW |
18242 | rm -f core conftest.err conftest.$ac_objext \ |
18243 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18244 | fi |
db9f46a9 TG |
18245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5 |
18246 | $as_echo "$gcc_cv_math_func_atanh" >&6; } | |
18247 | if test $gcc_cv_math_func_atanh = yes; then | |
f1cdfa01 | 18248 | |
f38a14ca TG |
18249 | cat >>confdefs.h <<_ACEOF |
18250 | #define HAVE_ATANH 1 | |
18251 | _ACEOF | |
db9f46a9 TG |
18252 | |
18253 | fi | |
18254 | ||
453310d8 | 18255 | |
453310d8 | 18256 | |
453310d8 | 18257 | |
db9f46a9 TG |
18258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5 |
18259 | $as_echo_n "checking for atanhl... " >&6; } | |
22e05272 | 18260 | if ${gcc_cv_math_func_atanhl+:} false; then : |
5213506e | 18261 | $as_echo_n "(cached) " >&6 |
bf4d99cf | 18262 | else |
db9f46a9 | 18263 | if test x$gcc_no_link = xyes; then |
22e05272 | 18264 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18265 | fi |
5213506e | 18266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bf4d99cf TS |
18267 | /* end confdefs.h. */ |
18268 | ||
db9f46a9 TG |
18269 | #ifdef HAVE_COMPLEX_H |
18270 | #include <complex.h> | |
18271 | #endif | |
18272 | #ifdef HAVE_MATH_H | |
18273 | #include <math.h> | |
bf4d99cf | 18274 | #endif |
db9f46a9 TG |
18275 | |
18276 | int (*ptr)() = (int (*)())atanhl; | |
18277 | ||
bf4d99cf TS |
18278 | int |
18279 | main () | |
18280 | { | |
bf4d99cf TS |
18281 | return 0; |
18282 | } | |
db9f46a9 | 18283 | |
bf4d99cf | 18284 | _ACEOF |
5213506e | 18285 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18286 | gcc_cv_math_func_atanhl=yes |
bf4d99cf | 18287 | else |
db9f46a9 | 18288 | gcc_cv_math_func_atanhl=no |
bf4d99cf | 18289 | fi |
5213506e RW |
18290 | rm -f core conftest.err conftest.$ac_objext \ |
18291 | conftest$ac_exeext conftest.$ac_ext | |
bf4d99cf | 18292 | fi |
db9f46a9 TG |
18293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5 |
18294 | $as_echo "$gcc_cv_math_func_atanhl" >&6; } | |
18295 | if test $gcc_cv_math_func_atanhl = yes; then | |
f1cdfa01 | 18296 | |
f38a14ca TG |
18297 | cat >>confdefs.h <<_ACEOF |
18298 | #define HAVE_ATANHL 1 | |
18299 | _ACEOF | |
db9f46a9 TG |
18300 | |
18301 | fi | |
bf4d99cf | 18302 | |
bf4d99cf | 18303 | |
bf4d99cf | 18304 | |
db9f46a9 TG |
18305 | |
18306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5 | |
18307 | $as_echo_n "checking for cargf... " >&6; } | |
22e05272 | 18308 | if ${gcc_cv_math_func_cargf+:} false; then : |
5213506e | 18309 | $as_echo_n "(cached) " >&6 |
a2a2059f | 18310 | else |
db9f46a9 | 18311 | if test x$gcc_no_link = xyes; then |
22e05272 | 18312 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18313 | fi |
5213506e | 18314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2a2059f BD |
18315 | /* end confdefs.h. */ |
18316 | ||
db9f46a9 TG |
18317 | #ifdef HAVE_COMPLEX_H |
18318 | #include <complex.h> | |
a2a2059f | 18319 | #endif |
db9f46a9 TG |
18320 | #ifdef HAVE_MATH_H |
18321 | #include <math.h> | |
18322 | #endif | |
18323 | ||
18324 | int (*ptr)() = (int (*)())cargf; | |
18325 | ||
453310d8 RS |
18326 | int |
18327 | main () | |
18328 | { | |
453310d8 RS |
18329 | return 0; |
18330 | } | |
db9f46a9 | 18331 | |
453310d8 | 18332 | _ACEOF |
5213506e | 18333 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18334 | gcc_cv_math_func_cargf=yes |
453310d8 | 18335 | else |
db9f46a9 | 18336 | gcc_cv_math_func_cargf=no |
453310d8 | 18337 | fi |
5213506e RW |
18338 | rm -f core conftest.err conftest.$ac_objext \ |
18339 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18340 | fi |
db9f46a9 TG |
18341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5 |
18342 | $as_echo "$gcc_cv_math_func_cargf" >&6; } | |
18343 | if test $gcc_cv_math_func_cargf = yes; then | |
f1cdfa01 | 18344 | |
f38a14ca TG |
18345 | cat >>confdefs.h <<_ACEOF |
18346 | #define HAVE_CARGF 1 | |
18347 | _ACEOF | |
453310d8 | 18348 | |
db9f46a9 | 18349 | fi |
453310d8 | 18350 | |
453310d8 | 18351 | |
db9f46a9 TG |
18352 | |
18353 | ||
18354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5 | |
18355 | $as_echo_n "checking for carg... " >&6; } | |
22e05272 | 18356 | if ${gcc_cv_math_func_carg+:} false; then : |
5213506e | 18357 | $as_echo_n "(cached) " >&6 |
453310d8 | 18358 | else |
db9f46a9 | 18359 | if test x$gcc_no_link = xyes; then |
22e05272 | 18360 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18361 | fi |
5213506e | 18362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18363 | /* end confdefs.h. */ |
18364 | ||
db9f46a9 TG |
18365 | #ifdef HAVE_COMPLEX_H |
18366 | #include <complex.h> | |
18367 | #endif | |
18368 | #ifdef HAVE_MATH_H | |
18369 | #include <math.h> | |
453310d8 | 18370 | #endif |
db9f46a9 TG |
18371 | |
18372 | int (*ptr)() = (int (*)())carg; | |
18373 | ||
a2a2059f BD |
18374 | int |
18375 | main () | |
18376 | { | |
a2a2059f BD |
18377 | return 0; |
18378 | } | |
db9f46a9 | 18379 | |
a2a2059f | 18380 | _ACEOF |
5213506e | 18381 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18382 | gcc_cv_math_func_carg=yes |
a2a2059f | 18383 | else |
db9f46a9 | 18384 | gcc_cv_math_func_carg=no |
a2a2059f | 18385 | fi |
5213506e RW |
18386 | rm -f core conftest.err conftest.$ac_objext \ |
18387 | conftest$ac_exeext conftest.$ac_ext | |
a2a2059f | 18388 | fi |
db9f46a9 TG |
18389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5 |
18390 | $as_echo "$gcc_cv_math_func_carg" >&6; } | |
18391 | if test $gcc_cv_math_func_carg = yes; then | |
f1cdfa01 | 18392 | |
f38a14ca TG |
18393 | cat >>confdefs.h <<_ACEOF |
18394 | #define HAVE_CARG 1 | |
18395 | _ACEOF | |
db9f46a9 TG |
18396 | |
18397 | fi | |
a2a2059f | 18398 | |
a2a2059f | 18399 | |
a2a2059f | 18400 | |
db9f46a9 TG |
18401 | |
18402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5 | |
18403 | $as_echo_n "checking for cargl... " >&6; } | |
22e05272 | 18404 | if ${gcc_cv_math_func_cargl+:} false; then : |
5213506e | 18405 | $as_echo_n "(cached) " >&6 |
a2a2059f | 18406 | else |
db9f46a9 | 18407 | if test x$gcc_no_link = xyes; then |
22e05272 | 18408 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18409 | fi |
5213506e | 18410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2a2059f BD |
18411 | /* end confdefs.h. */ |
18412 | ||
db9f46a9 TG |
18413 | #ifdef HAVE_COMPLEX_H |
18414 | #include <complex.h> | |
a2a2059f | 18415 | #endif |
db9f46a9 TG |
18416 | #ifdef HAVE_MATH_H |
18417 | #include <math.h> | |
18418 | #endif | |
18419 | ||
18420 | int (*ptr)() = (int (*)())cargl; | |
18421 | ||
a2a2059f BD |
18422 | int |
18423 | main () | |
18424 | { | |
a2a2059f BD |
18425 | return 0; |
18426 | } | |
db9f46a9 | 18427 | |
a2a2059f | 18428 | _ACEOF |
5213506e | 18429 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18430 | gcc_cv_math_func_cargl=yes |
a2a2059f | 18431 | else |
db9f46a9 | 18432 | gcc_cv_math_func_cargl=no |
a2a2059f | 18433 | fi |
5213506e RW |
18434 | rm -f core conftest.err conftest.$ac_objext \ |
18435 | conftest$ac_exeext conftest.$ac_ext | |
a2a2059f | 18436 | fi |
db9f46a9 TG |
18437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5 |
18438 | $as_echo "$gcc_cv_math_func_cargl" >&6; } | |
18439 | if test $gcc_cv_math_func_cargl = yes; then | |
f1cdfa01 | 18440 | |
f38a14ca TG |
18441 | cat >>confdefs.h <<_ACEOF |
18442 | #define HAVE_CARGL 1 | |
18443 | _ACEOF | |
db9f46a9 TG |
18444 | |
18445 | fi | |
18446 | ||
a2a2059f | 18447 | |
a2a2059f | 18448 | |
a2a2059f | 18449 | |
db9f46a9 TG |
18450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5 |
18451 | $as_echo_n "checking for ceilf... " >&6; } | |
22e05272 | 18452 | if ${gcc_cv_math_func_ceilf+:} false; then : |
5213506e | 18453 | $as_echo_n "(cached) " >&6 |
ae973d6a | 18454 | else |
db9f46a9 | 18455 | if test x$gcc_no_link = xyes; then |
22e05272 | 18456 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18457 | fi |
5213506e | 18458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ae973d6a FXC |
18459 | /* end confdefs.h. */ |
18460 | ||
db9f46a9 TG |
18461 | #ifdef HAVE_COMPLEX_H |
18462 | #include <complex.h> | |
18463 | #endif | |
18464 | #ifdef HAVE_MATH_H | |
18465 | #include <math.h> | |
ae973d6a | 18466 | #endif |
db9f46a9 TG |
18467 | |
18468 | int (*ptr)() = (int (*)())ceilf; | |
18469 | ||
ae973d6a FXC |
18470 | int |
18471 | main () | |
18472 | { | |
ae973d6a FXC |
18473 | return 0; |
18474 | } | |
db9f46a9 | 18475 | |
ae973d6a | 18476 | _ACEOF |
5213506e | 18477 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18478 | gcc_cv_math_func_ceilf=yes |
ae973d6a | 18479 | else |
db9f46a9 | 18480 | gcc_cv_math_func_ceilf=no |
ae973d6a | 18481 | fi |
5213506e RW |
18482 | rm -f core conftest.err conftest.$ac_objext \ |
18483 | conftest$ac_exeext conftest.$ac_ext | |
ae973d6a | 18484 | fi |
db9f46a9 TG |
18485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5 |
18486 | $as_echo "$gcc_cv_math_func_ceilf" >&6; } | |
18487 | if test $gcc_cv_math_func_ceilf = yes; then | |
f1cdfa01 | 18488 | |
f38a14ca TG |
18489 | cat >>confdefs.h <<_ACEOF |
18490 | #define HAVE_CEILF 1 | |
18491 | _ACEOF | |
db9f46a9 TG |
18492 | |
18493 | fi | |
ae973d6a | 18494 | |
ae973d6a | 18495 | |
ae973d6a | 18496 | |
db9f46a9 TG |
18497 | |
18498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5 | |
18499 | $as_echo_n "checking for ceil... " >&6; } | |
22e05272 | 18500 | if ${gcc_cv_math_func_ceil+:} false; then : |
5213506e | 18501 | $as_echo_n "(cached) " >&6 |
a9e7b9d3 | 18502 | else |
db9f46a9 | 18503 | if test x$gcc_no_link = xyes; then |
22e05272 | 18504 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18505 | fi |
5213506e | 18506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a9e7b9d3 PB |
18507 | /* end confdefs.h. */ |
18508 | ||
db9f46a9 TG |
18509 | #ifdef HAVE_COMPLEX_H |
18510 | #include <complex.h> | |
a9e7b9d3 | 18511 | #endif |
db9f46a9 TG |
18512 | #ifdef HAVE_MATH_H |
18513 | #include <math.h> | |
18514 | #endif | |
18515 | ||
18516 | int (*ptr)() = (int (*)())ceil; | |
18517 | ||
a9e7b9d3 PB |
18518 | int |
18519 | main () | |
18520 | { | |
a9e7b9d3 PB |
18521 | return 0; |
18522 | } | |
db9f46a9 | 18523 | |
a9e7b9d3 | 18524 | _ACEOF |
5213506e | 18525 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18526 | gcc_cv_math_func_ceil=yes |
a9e7b9d3 | 18527 | else |
db9f46a9 | 18528 | gcc_cv_math_func_ceil=no |
a9e7b9d3 | 18529 | fi |
5213506e RW |
18530 | rm -f core conftest.err conftest.$ac_objext \ |
18531 | conftest$ac_exeext conftest.$ac_ext | |
a9e7b9d3 | 18532 | fi |
db9f46a9 TG |
18533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5 |
18534 | $as_echo "$gcc_cv_math_func_ceil" >&6; } | |
18535 | if test $gcc_cv_math_func_ceil = yes; then | |
f1cdfa01 | 18536 | |
f38a14ca TG |
18537 | cat >>confdefs.h <<_ACEOF |
18538 | #define HAVE_CEIL 1 | |
18539 | _ACEOF | |
a9e7b9d3 | 18540 | |
db9f46a9 | 18541 | fi |
a9e7b9d3 | 18542 | |
a9e7b9d3 | 18543 | |
db9f46a9 TG |
18544 | |
18545 | ||
18546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5 | |
18547 | $as_echo_n "checking for ceill... " >&6; } | |
22e05272 | 18548 | if ${gcc_cv_math_func_ceill+:} false; then : |
5213506e | 18549 | $as_echo_n "(cached) " >&6 |
a9e7b9d3 | 18550 | else |
db9f46a9 | 18551 | if test x$gcc_no_link = xyes; then |
22e05272 | 18552 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18553 | fi |
5213506e | 18554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a9e7b9d3 PB |
18555 | /* end confdefs.h. */ |
18556 | ||
db9f46a9 TG |
18557 | #ifdef HAVE_COMPLEX_H |
18558 | #include <complex.h> | |
18559 | #endif | |
18560 | #ifdef HAVE_MATH_H | |
18561 | #include <math.h> | |
a9e7b9d3 | 18562 | #endif |
db9f46a9 TG |
18563 | |
18564 | int (*ptr)() = (int (*)())ceill; | |
18565 | ||
a9e7b9d3 PB |
18566 | int |
18567 | main () | |
18568 | { | |
a9e7b9d3 PB |
18569 | return 0; |
18570 | } | |
db9f46a9 | 18571 | |
a9e7b9d3 | 18572 | _ACEOF |
5213506e | 18573 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18574 | gcc_cv_math_func_ceill=yes |
a9e7b9d3 | 18575 | else |
db9f46a9 | 18576 | gcc_cv_math_func_ceill=no |
a9e7b9d3 | 18577 | fi |
5213506e RW |
18578 | rm -f core conftest.err conftest.$ac_objext \ |
18579 | conftest$ac_exeext conftest.$ac_ext | |
a9e7b9d3 | 18580 | fi |
db9f46a9 TG |
18581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5 |
18582 | $as_echo "$gcc_cv_math_func_ceill" >&6; } | |
18583 | if test $gcc_cv_math_func_ceill = yes; then | |
f1cdfa01 | 18584 | |
f38a14ca TG |
18585 | cat >>confdefs.h <<_ACEOF |
18586 | #define HAVE_CEILL 1 | |
18587 | _ACEOF | |
db9f46a9 TG |
18588 | |
18589 | fi | |
a9e7b9d3 | 18590 | |
453310d8 | 18591 | |
453310d8 | 18592 | |
db9f46a9 TG |
18593 | |
18594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5 | |
18595 | $as_echo_n "checking for copysignf... " >&6; } | |
22e05272 | 18596 | if ${gcc_cv_math_func_copysignf+:} false; then : |
5213506e | 18597 | $as_echo_n "(cached) " >&6 |
453310d8 | 18598 | else |
db9f46a9 | 18599 | if test x$gcc_no_link = xyes; then |
22e05272 | 18600 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18601 | fi |
5213506e | 18602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18603 | /* end confdefs.h. */ |
18604 | ||
db9f46a9 TG |
18605 | #ifdef HAVE_COMPLEX_H |
18606 | #include <complex.h> | |
453310d8 | 18607 | #endif |
db9f46a9 TG |
18608 | #ifdef HAVE_MATH_H |
18609 | #include <math.h> | |
18610 | #endif | |
18611 | ||
18612 | int (*ptr)() = (int (*)())copysignf; | |
18613 | ||
453310d8 RS |
18614 | int |
18615 | main () | |
18616 | { | |
453310d8 RS |
18617 | return 0; |
18618 | } | |
db9f46a9 | 18619 | |
453310d8 | 18620 | _ACEOF |
5213506e | 18621 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18622 | gcc_cv_math_func_copysignf=yes |
453310d8 | 18623 | else |
db9f46a9 | 18624 | gcc_cv_math_func_copysignf=no |
453310d8 | 18625 | fi |
5213506e RW |
18626 | rm -f core conftest.err conftest.$ac_objext \ |
18627 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18628 | fi |
db9f46a9 TG |
18629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5 |
18630 | $as_echo "$gcc_cv_math_func_copysignf" >&6; } | |
18631 | if test $gcc_cv_math_func_copysignf = yes; then | |
f1cdfa01 | 18632 | |
f38a14ca TG |
18633 | cat >>confdefs.h <<_ACEOF |
18634 | #define HAVE_COPYSIGNF 1 | |
18635 | _ACEOF | |
db9f46a9 TG |
18636 | |
18637 | fi | |
18638 | ||
453310d8 | 18639 | |
453310d8 | 18640 | |
453310d8 | 18641 | |
db9f46a9 TG |
18642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5 |
18643 | $as_echo_n "checking for copysign... " >&6; } | |
22e05272 | 18644 | if ${gcc_cv_math_func_copysign+:} false; then : |
5213506e | 18645 | $as_echo_n "(cached) " >&6 |
453310d8 | 18646 | else |
db9f46a9 | 18647 | if test x$gcc_no_link = xyes; then |
22e05272 | 18648 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18649 | fi |
5213506e | 18650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18651 | /* end confdefs.h. */ |
18652 | ||
db9f46a9 TG |
18653 | #ifdef HAVE_COMPLEX_H |
18654 | #include <complex.h> | |
18655 | #endif | |
18656 | #ifdef HAVE_MATH_H | |
18657 | #include <math.h> | |
453310d8 | 18658 | #endif |
db9f46a9 TG |
18659 | |
18660 | int (*ptr)() = (int (*)())copysign; | |
18661 | ||
453310d8 RS |
18662 | int |
18663 | main () | |
18664 | { | |
453310d8 RS |
18665 | return 0; |
18666 | } | |
db9f46a9 | 18667 | |
453310d8 | 18668 | _ACEOF |
5213506e | 18669 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18670 | gcc_cv_math_func_copysign=yes |
453310d8 | 18671 | else |
db9f46a9 | 18672 | gcc_cv_math_func_copysign=no |
453310d8 | 18673 | fi |
5213506e RW |
18674 | rm -f core conftest.err conftest.$ac_objext \ |
18675 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18676 | fi |
db9f46a9 TG |
18677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5 |
18678 | $as_echo "$gcc_cv_math_func_copysign" >&6; } | |
18679 | if test $gcc_cv_math_func_copysign = yes; then | |
f1cdfa01 | 18680 | |
f38a14ca TG |
18681 | cat >>confdefs.h <<_ACEOF |
18682 | #define HAVE_COPYSIGN 1 | |
18683 | _ACEOF | |
db9f46a9 TG |
18684 | |
18685 | fi | |
453310d8 | 18686 | |
453310d8 | 18687 | |
453310d8 | 18688 | |
db9f46a9 TG |
18689 | |
18690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5 | |
18691 | $as_echo_n "checking for copysignl... " >&6; } | |
22e05272 | 18692 | if ${gcc_cv_math_func_copysignl+:} false; then : |
5213506e | 18693 | $as_echo_n "(cached) " >&6 |
453310d8 | 18694 | else |
db9f46a9 | 18695 | if test x$gcc_no_link = xyes; then |
22e05272 | 18696 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18697 | fi |
5213506e | 18698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18699 | /* end confdefs.h. */ |
18700 | ||
db9f46a9 TG |
18701 | #ifdef HAVE_COMPLEX_H |
18702 | #include <complex.h> | |
453310d8 | 18703 | #endif |
db9f46a9 TG |
18704 | #ifdef HAVE_MATH_H |
18705 | #include <math.h> | |
18706 | #endif | |
18707 | ||
18708 | int (*ptr)() = (int (*)())copysignl; | |
18709 | ||
453310d8 RS |
18710 | int |
18711 | main () | |
18712 | { | |
5213506e RW |
18713 | return 0; |
18714 | } | |
db9f46a9 | 18715 | |
5213506e RW |
18716 | _ACEOF |
18717 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 18718 | gcc_cv_math_func_copysignl=yes |
453310d8 | 18719 | else |
db9f46a9 | 18720 | gcc_cv_math_func_copysignl=no |
453310d8 | 18721 | fi |
5213506e RW |
18722 | rm -f core conftest.err conftest.$ac_objext \ |
18723 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18724 | fi |
db9f46a9 TG |
18725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5 |
18726 | $as_echo "$gcc_cv_math_func_copysignl" >&6; } | |
18727 | if test $gcc_cv_math_func_copysignl = yes; then | |
f1cdfa01 | 18728 | |
f38a14ca TG |
18729 | cat >>confdefs.h <<_ACEOF |
18730 | #define HAVE_COPYSIGNL 1 | |
18731 | _ACEOF | |
453310d8 | 18732 | |
db9f46a9 | 18733 | fi |
a9e7b9d3 | 18734 | |
a9e7b9d3 | 18735 | |
db9f46a9 TG |
18736 | |
18737 | ||
18738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5 | |
18739 | $as_echo_n "checking for cosf... " >&6; } | |
22e05272 | 18740 | if ${gcc_cv_math_func_cosf+:} false; then : |
5213506e | 18741 | $as_echo_n "(cached) " >&6 |
69a2d125 | 18742 | else |
db9f46a9 | 18743 | if test x$gcc_no_link = xyes; then |
22e05272 | 18744 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18745 | fi |
5213506e | 18746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
69a2d125 EB |
18747 | /* end confdefs.h. */ |
18748 | ||
db9f46a9 TG |
18749 | #ifdef HAVE_COMPLEX_H |
18750 | #include <complex.h> | |
18751 | #endif | |
18752 | #ifdef HAVE_MATH_H | |
18753 | #include <math.h> | |
69a2d125 | 18754 | #endif |
db9f46a9 TG |
18755 | |
18756 | int (*ptr)() = (int (*)())cosf; | |
18757 | ||
69a2d125 EB |
18758 | int |
18759 | main () | |
18760 | { | |
69a2d125 EB |
18761 | return 0; |
18762 | } | |
db9f46a9 | 18763 | |
69a2d125 | 18764 | _ACEOF |
5213506e | 18765 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18766 | gcc_cv_math_func_cosf=yes |
69a2d125 | 18767 | else |
db9f46a9 | 18768 | gcc_cv_math_func_cosf=no |
69a2d125 | 18769 | fi |
5213506e RW |
18770 | rm -f core conftest.err conftest.$ac_objext \ |
18771 | conftest$ac_exeext conftest.$ac_ext | |
69a2d125 | 18772 | fi |
db9f46a9 TG |
18773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5 |
18774 | $as_echo "$gcc_cv_math_func_cosf" >&6; } | |
18775 | if test $gcc_cv_math_func_cosf = yes; then | |
f1cdfa01 | 18776 | |
f38a14ca TG |
18777 | cat >>confdefs.h <<_ACEOF |
18778 | #define HAVE_COSF 1 | |
18779 | _ACEOF | |
db9f46a9 TG |
18780 | |
18781 | fi | |
69a2d125 | 18782 | |
1409cd0b | 18783 | |
1409cd0b | 18784 | |
db9f46a9 TG |
18785 | |
18786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5 | |
18787 | $as_echo_n "checking for cos... " >&6; } | |
22e05272 | 18788 | if ${gcc_cv_math_func_cos+:} false; then : |
5213506e | 18789 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18790 | else |
db9f46a9 | 18791 | if test x$gcc_no_link = xyes; then |
22e05272 | 18792 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18793 | fi |
5213506e | 18794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18795 | /* end confdefs.h. */ |
18796 | ||
db9f46a9 TG |
18797 | #ifdef HAVE_COMPLEX_H |
18798 | #include <complex.h> | |
1409cd0b | 18799 | #endif |
db9f46a9 TG |
18800 | #ifdef HAVE_MATH_H |
18801 | #include <math.h> | |
18802 | #endif | |
18803 | ||
18804 | int (*ptr)() = (int (*)())cos; | |
18805 | ||
1409cd0b FXC |
18806 | int |
18807 | main () | |
18808 | { | |
1409cd0b FXC |
18809 | return 0; |
18810 | } | |
db9f46a9 | 18811 | |
1409cd0b | 18812 | _ACEOF |
5213506e | 18813 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18814 | gcc_cv_math_func_cos=yes |
1409cd0b | 18815 | else |
db9f46a9 | 18816 | gcc_cv_math_func_cos=no |
1409cd0b | 18817 | fi |
5213506e RW |
18818 | rm -f core conftest.err conftest.$ac_objext \ |
18819 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18820 | fi |
db9f46a9 TG |
18821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5 |
18822 | $as_echo "$gcc_cv_math_func_cos" >&6; } | |
18823 | if test $gcc_cv_math_func_cos = yes; then | |
f1cdfa01 | 18824 | |
f38a14ca TG |
18825 | cat >>confdefs.h <<_ACEOF |
18826 | #define HAVE_COS 1 | |
18827 | _ACEOF | |
db9f46a9 TG |
18828 | |
18829 | fi | |
18830 | ||
1409cd0b | 18831 | |
1409cd0b | 18832 | |
1409cd0b | 18833 | |
db9f46a9 TG |
18834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5 |
18835 | $as_echo_n "checking for cosl... " >&6; } | |
22e05272 | 18836 | if ${gcc_cv_math_func_cosl+:} false; then : |
5213506e | 18837 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18838 | else |
db9f46a9 | 18839 | if test x$gcc_no_link = xyes; then |
22e05272 | 18840 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18841 | fi |
5213506e | 18842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18843 | /* end confdefs.h. */ |
18844 | ||
db9f46a9 TG |
18845 | #ifdef HAVE_COMPLEX_H |
18846 | #include <complex.h> | |
18847 | #endif | |
18848 | #ifdef HAVE_MATH_H | |
18849 | #include <math.h> | |
1409cd0b | 18850 | #endif |
db9f46a9 TG |
18851 | |
18852 | int (*ptr)() = (int (*)())cosl; | |
18853 | ||
1409cd0b FXC |
18854 | int |
18855 | main () | |
18856 | { | |
1409cd0b FXC |
18857 | return 0; |
18858 | } | |
db9f46a9 | 18859 | |
1409cd0b | 18860 | _ACEOF |
5213506e | 18861 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18862 | gcc_cv_math_func_cosl=yes |
1409cd0b | 18863 | else |
db9f46a9 | 18864 | gcc_cv_math_func_cosl=no |
1409cd0b | 18865 | fi |
5213506e RW |
18866 | rm -f core conftest.err conftest.$ac_objext \ |
18867 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18868 | fi |
db9f46a9 TG |
18869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5 |
18870 | $as_echo "$gcc_cv_math_func_cosl" >&6; } | |
18871 | if test $gcc_cv_math_func_cosl = yes; then | |
f1cdfa01 | 18872 | |
f38a14ca TG |
18873 | cat >>confdefs.h <<_ACEOF |
18874 | #define HAVE_COSL 1 | |
18875 | _ACEOF | |
db9f46a9 TG |
18876 | |
18877 | fi | |
1409cd0b | 18878 | |
1409cd0b | 18879 | |
1409cd0b | 18880 | |
db9f46a9 TG |
18881 | |
18882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5 | |
18883 | $as_echo_n "checking for ccosf... " >&6; } | |
22e05272 | 18884 | if ${gcc_cv_math_func_ccosf+:} false; then : |
5213506e | 18885 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18886 | else |
db9f46a9 | 18887 | if test x$gcc_no_link = xyes; then |
22e05272 | 18888 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18889 | fi |
5213506e | 18890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18891 | /* end confdefs.h. */ |
18892 | ||
db9f46a9 TG |
18893 | #ifdef HAVE_COMPLEX_H |
18894 | #include <complex.h> | |
1409cd0b | 18895 | #endif |
db9f46a9 TG |
18896 | #ifdef HAVE_MATH_H |
18897 | #include <math.h> | |
18898 | #endif | |
18899 | ||
18900 | int (*ptr)() = (int (*)())ccosf; | |
18901 | ||
1409cd0b FXC |
18902 | int |
18903 | main () | |
18904 | { | |
1409cd0b FXC |
18905 | return 0; |
18906 | } | |
db9f46a9 | 18907 | |
1409cd0b | 18908 | _ACEOF |
5213506e | 18909 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18910 | gcc_cv_math_func_ccosf=yes |
1409cd0b | 18911 | else |
db9f46a9 | 18912 | gcc_cv_math_func_ccosf=no |
1409cd0b | 18913 | fi |
5213506e RW |
18914 | rm -f core conftest.err conftest.$ac_objext \ |
18915 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18916 | fi |
db9f46a9 TG |
18917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5 |
18918 | $as_echo "$gcc_cv_math_func_ccosf" >&6; } | |
18919 | if test $gcc_cv_math_func_ccosf = yes; then | |
f1cdfa01 | 18920 | |
f38a14ca TG |
18921 | cat >>confdefs.h <<_ACEOF |
18922 | #define HAVE_CCOSF 1 | |
18923 | _ACEOF | |
1409cd0b | 18924 | |
db9f46a9 | 18925 | fi |
1409cd0b | 18926 | |
1409cd0b | 18927 | |
db9f46a9 TG |
18928 | |
18929 | ||
18930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5 | |
18931 | $as_echo_n "checking for ccos... " >&6; } | |
22e05272 | 18932 | if ${gcc_cv_math_func_ccos+:} false; then : |
5213506e | 18933 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18934 | else |
db9f46a9 | 18935 | if test x$gcc_no_link = xyes; then |
22e05272 | 18936 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18937 | fi |
5213506e | 18938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18939 | /* end confdefs.h. */ |
18940 | ||
db9f46a9 TG |
18941 | #ifdef HAVE_COMPLEX_H |
18942 | #include <complex.h> | |
18943 | #endif | |
18944 | #ifdef HAVE_MATH_H | |
18945 | #include <math.h> | |
1409cd0b | 18946 | #endif |
db9f46a9 TG |
18947 | |
18948 | int (*ptr)() = (int (*)())ccos; | |
18949 | ||
1409cd0b FXC |
18950 | int |
18951 | main () | |
18952 | { | |
1409cd0b FXC |
18953 | return 0; |
18954 | } | |
db9f46a9 | 18955 | |
1409cd0b | 18956 | _ACEOF |
5213506e | 18957 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18958 | gcc_cv_math_func_ccos=yes |
1409cd0b | 18959 | else |
db9f46a9 | 18960 | gcc_cv_math_func_ccos=no |
1409cd0b | 18961 | fi |
5213506e RW |
18962 | rm -f core conftest.err conftest.$ac_objext \ |
18963 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18964 | fi |
db9f46a9 TG |
18965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5 |
18966 | $as_echo "$gcc_cv_math_func_ccos" >&6; } | |
18967 | if test $gcc_cv_math_func_ccos = yes; then | |
f1cdfa01 | 18968 | |
f38a14ca TG |
18969 | cat >>confdefs.h <<_ACEOF |
18970 | #define HAVE_CCOS 1 | |
18971 | _ACEOF | |
db9f46a9 TG |
18972 | |
18973 | fi | |
1409cd0b | 18974 | |
1409cd0b | 18975 | |
1409cd0b | 18976 | |
db9f46a9 TG |
18977 | |
18978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5 | |
18979 | $as_echo_n "checking for ccosl... " >&6; } | |
22e05272 | 18980 | if ${gcc_cv_math_func_ccosl+:} false; then : |
5213506e | 18981 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18982 | else |
db9f46a9 | 18983 | if test x$gcc_no_link = xyes; then |
22e05272 | 18984 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18985 | fi |
5213506e | 18986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18987 | /* end confdefs.h. */ |
18988 | ||
db9f46a9 TG |
18989 | #ifdef HAVE_COMPLEX_H |
18990 | #include <complex.h> | |
1409cd0b | 18991 | #endif |
db9f46a9 TG |
18992 | #ifdef HAVE_MATH_H |
18993 | #include <math.h> | |
18994 | #endif | |
18995 | ||
18996 | int (*ptr)() = (int (*)())ccosl; | |
18997 | ||
1409cd0b FXC |
18998 | int |
18999 | main () | |
19000 | { | |
1409cd0b FXC |
19001 | return 0; |
19002 | } | |
db9f46a9 | 19003 | |
1409cd0b | 19004 | _ACEOF |
5213506e | 19005 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19006 | gcc_cv_math_func_ccosl=yes |
1409cd0b | 19007 | else |
db9f46a9 | 19008 | gcc_cv_math_func_ccosl=no |
1409cd0b | 19009 | fi |
5213506e RW |
19010 | rm -f core conftest.err conftest.$ac_objext \ |
19011 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19012 | fi |
db9f46a9 TG |
19013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5 |
19014 | $as_echo "$gcc_cv_math_func_ccosl" >&6; } | |
19015 | if test $gcc_cv_math_func_ccosl = yes; then | |
f1cdfa01 | 19016 | |
f38a14ca TG |
19017 | cat >>confdefs.h <<_ACEOF |
19018 | #define HAVE_CCOSL 1 | |
19019 | _ACEOF | |
db9f46a9 TG |
19020 | |
19021 | fi | |
19022 | ||
1409cd0b | 19023 | |
1409cd0b | 19024 | |
1409cd0b | 19025 | |
db9f46a9 TG |
19026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5 |
19027 | $as_echo_n "checking for coshf... " >&6; } | |
22e05272 | 19028 | if ${gcc_cv_math_func_coshf+:} false; then : |
5213506e | 19029 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19030 | else |
db9f46a9 | 19031 | if test x$gcc_no_link = xyes; then |
22e05272 | 19032 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19033 | fi |
5213506e | 19034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19035 | /* end confdefs.h. */ |
19036 | ||
db9f46a9 TG |
19037 | #ifdef HAVE_COMPLEX_H |
19038 | #include <complex.h> | |
19039 | #endif | |
19040 | #ifdef HAVE_MATH_H | |
19041 | #include <math.h> | |
1409cd0b | 19042 | #endif |
db9f46a9 TG |
19043 | |
19044 | int (*ptr)() = (int (*)())coshf; | |
19045 | ||
1409cd0b FXC |
19046 | int |
19047 | main () | |
19048 | { | |
1409cd0b FXC |
19049 | return 0; |
19050 | } | |
db9f46a9 | 19051 | |
1409cd0b | 19052 | _ACEOF |
5213506e | 19053 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19054 | gcc_cv_math_func_coshf=yes |
1409cd0b | 19055 | else |
db9f46a9 | 19056 | gcc_cv_math_func_coshf=no |
1409cd0b | 19057 | fi |
5213506e RW |
19058 | rm -f core conftest.err conftest.$ac_objext \ |
19059 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19060 | fi |
db9f46a9 TG |
19061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5 |
19062 | $as_echo "$gcc_cv_math_func_coshf" >&6; } | |
19063 | if test $gcc_cv_math_func_coshf = yes; then | |
f1cdfa01 | 19064 | |
f38a14ca TG |
19065 | cat >>confdefs.h <<_ACEOF |
19066 | #define HAVE_COSHF 1 | |
19067 | _ACEOF | |
db9f46a9 TG |
19068 | |
19069 | fi | |
1409cd0b | 19070 | |
1409cd0b | 19071 | |
1409cd0b | 19072 | |
db9f46a9 TG |
19073 | |
19074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5 | |
19075 | $as_echo_n "checking for cosh... " >&6; } | |
22e05272 | 19076 | if ${gcc_cv_math_func_cosh+:} false; then : |
5213506e | 19077 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19078 | else |
db9f46a9 | 19079 | if test x$gcc_no_link = xyes; then |
22e05272 | 19080 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19081 | fi |
5213506e | 19082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19083 | /* end confdefs.h. */ |
19084 | ||
db9f46a9 TG |
19085 | #ifdef HAVE_COMPLEX_H |
19086 | #include <complex.h> | |
1409cd0b | 19087 | #endif |
db9f46a9 TG |
19088 | #ifdef HAVE_MATH_H |
19089 | #include <math.h> | |
19090 | #endif | |
19091 | ||
19092 | int (*ptr)() = (int (*)())cosh; | |
19093 | ||
1409cd0b FXC |
19094 | int |
19095 | main () | |
19096 | { | |
1409cd0b FXC |
19097 | return 0; |
19098 | } | |
db9f46a9 | 19099 | |
1409cd0b | 19100 | _ACEOF |
5213506e | 19101 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19102 | gcc_cv_math_func_cosh=yes |
1409cd0b | 19103 | else |
db9f46a9 | 19104 | gcc_cv_math_func_cosh=no |
1409cd0b | 19105 | fi |
5213506e RW |
19106 | rm -f core conftest.err conftest.$ac_objext \ |
19107 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19108 | fi |
db9f46a9 TG |
19109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5 |
19110 | $as_echo "$gcc_cv_math_func_cosh" >&6; } | |
19111 | if test $gcc_cv_math_func_cosh = yes; then | |
f1cdfa01 | 19112 | |
f38a14ca TG |
19113 | cat >>confdefs.h <<_ACEOF |
19114 | #define HAVE_COSH 1 | |
19115 | _ACEOF | |
1409cd0b | 19116 | |
db9f46a9 | 19117 | fi |
1409cd0b | 19118 | |
1409cd0b | 19119 | |
db9f46a9 TG |
19120 | |
19121 | ||
19122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5 | |
19123 | $as_echo_n "checking for coshl... " >&6; } | |
22e05272 | 19124 | if ${gcc_cv_math_func_coshl+:} false; then : |
5213506e | 19125 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19126 | else |
db9f46a9 | 19127 | if test x$gcc_no_link = xyes; then |
22e05272 | 19128 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19129 | fi |
5213506e | 19130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19131 | /* end confdefs.h. */ |
19132 | ||
db9f46a9 TG |
19133 | #ifdef HAVE_COMPLEX_H |
19134 | #include <complex.h> | |
19135 | #endif | |
19136 | #ifdef HAVE_MATH_H | |
19137 | #include <math.h> | |
1409cd0b | 19138 | #endif |
db9f46a9 TG |
19139 | |
19140 | int (*ptr)() = (int (*)())coshl; | |
19141 | ||
1409cd0b FXC |
19142 | int |
19143 | main () | |
19144 | { | |
1409cd0b FXC |
19145 | return 0; |
19146 | } | |
db9f46a9 | 19147 | |
1409cd0b | 19148 | _ACEOF |
5213506e | 19149 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19150 | gcc_cv_math_func_coshl=yes |
1409cd0b | 19151 | else |
db9f46a9 | 19152 | gcc_cv_math_func_coshl=no |
1409cd0b | 19153 | fi |
5213506e RW |
19154 | rm -f core conftest.err conftest.$ac_objext \ |
19155 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19156 | fi |
db9f46a9 TG |
19157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5 |
19158 | $as_echo "$gcc_cv_math_func_coshl" >&6; } | |
19159 | if test $gcc_cv_math_func_coshl = yes; then | |
f1cdfa01 | 19160 | |
f38a14ca TG |
19161 | cat >>confdefs.h <<_ACEOF |
19162 | #define HAVE_COSHL 1 | |
19163 | _ACEOF | |
db9f46a9 TG |
19164 | |
19165 | fi | |
1409cd0b | 19166 | |
1409cd0b | 19167 | |
1409cd0b | 19168 | |
db9f46a9 TG |
19169 | |
19170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5 | |
19171 | $as_echo_n "checking for ccoshf... " >&6; } | |
22e05272 | 19172 | if ${gcc_cv_math_func_ccoshf+:} false; then : |
5213506e | 19173 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19174 | else |
db9f46a9 | 19175 | if test x$gcc_no_link = xyes; then |
22e05272 | 19176 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19177 | fi |
5213506e | 19178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19179 | /* end confdefs.h. */ |
19180 | ||
db9f46a9 TG |
19181 | #ifdef HAVE_COMPLEX_H |
19182 | #include <complex.h> | |
1409cd0b | 19183 | #endif |
db9f46a9 TG |
19184 | #ifdef HAVE_MATH_H |
19185 | #include <math.h> | |
19186 | #endif | |
19187 | ||
19188 | int (*ptr)() = (int (*)())ccoshf; | |
19189 | ||
1409cd0b FXC |
19190 | int |
19191 | main () | |
19192 | { | |
1409cd0b FXC |
19193 | return 0; |
19194 | } | |
db9f46a9 | 19195 | |
1409cd0b | 19196 | _ACEOF |
5213506e | 19197 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19198 | gcc_cv_math_func_ccoshf=yes |
1409cd0b | 19199 | else |
db9f46a9 | 19200 | gcc_cv_math_func_ccoshf=no |
1409cd0b | 19201 | fi |
5213506e RW |
19202 | rm -f core conftest.err conftest.$ac_objext \ |
19203 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19204 | fi |
db9f46a9 TG |
19205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5 |
19206 | $as_echo "$gcc_cv_math_func_ccoshf" >&6; } | |
19207 | if test $gcc_cv_math_func_ccoshf = yes; then | |
f1cdfa01 | 19208 | |
f38a14ca TG |
19209 | cat >>confdefs.h <<_ACEOF |
19210 | #define HAVE_CCOSHF 1 | |
19211 | _ACEOF | |
db9f46a9 TG |
19212 | |
19213 | fi | |
19214 | ||
1409cd0b | 19215 | |
1409cd0b | 19216 | |
1409cd0b | 19217 | |
db9f46a9 TG |
19218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5 |
19219 | $as_echo_n "checking for ccosh... " >&6; } | |
22e05272 | 19220 | if ${gcc_cv_math_func_ccosh+:} false; then : |
5213506e | 19221 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19222 | else |
db9f46a9 | 19223 | if test x$gcc_no_link = xyes; then |
22e05272 | 19224 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19225 | fi |
5213506e | 19226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19227 | /* end confdefs.h. */ |
19228 | ||
db9f46a9 TG |
19229 | #ifdef HAVE_COMPLEX_H |
19230 | #include <complex.h> | |
19231 | #endif | |
19232 | #ifdef HAVE_MATH_H | |
19233 | #include <math.h> | |
1409cd0b | 19234 | #endif |
db9f46a9 TG |
19235 | |
19236 | int (*ptr)() = (int (*)())ccosh; | |
19237 | ||
1409cd0b FXC |
19238 | int |
19239 | main () | |
19240 | { | |
1409cd0b FXC |
19241 | return 0; |
19242 | } | |
db9f46a9 | 19243 | |
1409cd0b | 19244 | _ACEOF |
5213506e | 19245 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19246 | gcc_cv_math_func_ccosh=yes |
1409cd0b | 19247 | else |
db9f46a9 | 19248 | gcc_cv_math_func_ccosh=no |
1409cd0b | 19249 | fi |
5213506e RW |
19250 | rm -f core conftest.err conftest.$ac_objext \ |
19251 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19252 | fi |
db9f46a9 TG |
19253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5 |
19254 | $as_echo "$gcc_cv_math_func_ccosh" >&6; } | |
19255 | if test $gcc_cv_math_func_ccosh = yes; then | |
f1cdfa01 | 19256 | |
f38a14ca TG |
19257 | cat >>confdefs.h <<_ACEOF |
19258 | #define HAVE_CCOSH 1 | |
19259 | _ACEOF | |
db9f46a9 TG |
19260 | |
19261 | fi | |
1409cd0b | 19262 | |
1409cd0b | 19263 | |
1409cd0b | 19264 | |
db9f46a9 TG |
19265 | |
19266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5 | |
19267 | $as_echo_n "checking for ccoshl... " >&6; } | |
22e05272 | 19268 | if ${gcc_cv_math_func_ccoshl+:} false; then : |
5213506e | 19269 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19270 | else |
db9f46a9 | 19271 | if test x$gcc_no_link = xyes; then |
22e05272 | 19272 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19273 | fi |
5213506e | 19274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19275 | /* end confdefs.h. */ |
19276 | ||
db9f46a9 TG |
19277 | #ifdef HAVE_COMPLEX_H |
19278 | #include <complex.h> | |
1409cd0b | 19279 | #endif |
db9f46a9 TG |
19280 | #ifdef HAVE_MATH_H |
19281 | #include <math.h> | |
19282 | #endif | |
19283 | ||
19284 | int (*ptr)() = (int (*)())ccoshl; | |
19285 | ||
1409cd0b FXC |
19286 | int |
19287 | main () | |
19288 | { | |
1409cd0b FXC |
19289 | return 0; |
19290 | } | |
db9f46a9 | 19291 | |
1409cd0b | 19292 | _ACEOF |
5213506e | 19293 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19294 | gcc_cv_math_func_ccoshl=yes |
1409cd0b | 19295 | else |
db9f46a9 | 19296 | gcc_cv_math_func_ccoshl=no |
1409cd0b | 19297 | fi |
5213506e RW |
19298 | rm -f core conftest.err conftest.$ac_objext \ |
19299 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19300 | fi |
db9f46a9 TG |
19301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5 |
19302 | $as_echo "$gcc_cv_math_func_ccoshl" >&6; } | |
19303 | if test $gcc_cv_math_func_ccoshl = yes; then | |
f1cdfa01 | 19304 | |
f38a14ca TG |
19305 | cat >>confdefs.h <<_ACEOF |
19306 | #define HAVE_CCOSHL 1 | |
19307 | _ACEOF | |
1409cd0b | 19308 | |
db9f46a9 | 19309 | fi |
1409cd0b | 19310 | |
1409cd0b | 19311 | |
db9f46a9 TG |
19312 | |
19313 | ||
19314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5 | |
19315 | $as_echo_n "checking for expf... " >&6; } | |
22e05272 | 19316 | if ${gcc_cv_math_func_expf+:} false; then : |
5213506e | 19317 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19318 | else |
db9f46a9 | 19319 | if test x$gcc_no_link = xyes; then |
22e05272 | 19320 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19321 | fi |
5213506e | 19322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19323 | /* end confdefs.h. */ |
19324 | ||
db9f46a9 TG |
19325 | #ifdef HAVE_COMPLEX_H |
19326 | #include <complex.h> | |
19327 | #endif | |
19328 | #ifdef HAVE_MATH_H | |
19329 | #include <math.h> | |
1409cd0b | 19330 | #endif |
db9f46a9 TG |
19331 | |
19332 | int (*ptr)() = (int (*)())expf; | |
19333 | ||
1409cd0b FXC |
19334 | int |
19335 | main () | |
19336 | { | |
1409cd0b FXC |
19337 | return 0; |
19338 | } | |
db9f46a9 | 19339 | |
1409cd0b | 19340 | _ACEOF |
5213506e | 19341 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19342 | gcc_cv_math_func_expf=yes |
1409cd0b | 19343 | else |
db9f46a9 | 19344 | gcc_cv_math_func_expf=no |
1409cd0b | 19345 | fi |
5213506e RW |
19346 | rm -f core conftest.err conftest.$ac_objext \ |
19347 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19348 | fi |
db9f46a9 TG |
19349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5 |
19350 | $as_echo "$gcc_cv_math_func_expf" >&6; } | |
19351 | if test $gcc_cv_math_func_expf = yes; then | |
f1cdfa01 | 19352 | |
f38a14ca TG |
19353 | cat >>confdefs.h <<_ACEOF |
19354 | #define HAVE_EXPF 1 | |
19355 | _ACEOF | |
db9f46a9 TG |
19356 | |
19357 | fi | |
1409cd0b | 19358 | |
1409cd0b | 19359 | |
1409cd0b | 19360 | |
db9f46a9 TG |
19361 | |
19362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5 | |
19363 | $as_echo_n "checking for exp... " >&6; } | |
22e05272 | 19364 | if ${gcc_cv_math_func_exp+:} false; then : |
5213506e | 19365 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19366 | else |
db9f46a9 | 19367 | if test x$gcc_no_link = xyes; then |
22e05272 | 19368 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19369 | fi |
5213506e | 19370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19371 | /* end confdefs.h. */ |
19372 | ||
db9f46a9 TG |
19373 | #ifdef HAVE_COMPLEX_H |
19374 | #include <complex.h> | |
1409cd0b | 19375 | #endif |
db9f46a9 TG |
19376 | #ifdef HAVE_MATH_H |
19377 | #include <math.h> | |
19378 | #endif | |
19379 | ||
19380 | int (*ptr)() = (int (*)())exp; | |
19381 | ||
1409cd0b FXC |
19382 | int |
19383 | main () | |
19384 | { | |
1409cd0b FXC |
19385 | return 0; |
19386 | } | |
db9f46a9 | 19387 | |
1409cd0b | 19388 | _ACEOF |
5213506e | 19389 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19390 | gcc_cv_math_func_exp=yes |
1409cd0b | 19391 | else |
db9f46a9 | 19392 | gcc_cv_math_func_exp=no |
1409cd0b | 19393 | fi |
5213506e RW |
19394 | rm -f core conftest.err conftest.$ac_objext \ |
19395 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19396 | fi |
db9f46a9 TG |
19397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5 |
19398 | $as_echo "$gcc_cv_math_func_exp" >&6; } | |
19399 | if test $gcc_cv_math_func_exp = yes; then | |
f1cdfa01 | 19400 | |
f38a14ca TG |
19401 | cat >>confdefs.h <<_ACEOF |
19402 | #define HAVE_EXP 1 | |
19403 | _ACEOF | |
db9f46a9 TG |
19404 | |
19405 | fi | |
19406 | ||
1409cd0b | 19407 | |
1409cd0b | 19408 | |
1409cd0b | 19409 | |
db9f46a9 TG |
19410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5 |
19411 | $as_echo_n "checking for expl... " >&6; } | |
22e05272 | 19412 | if ${gcc_cv_math_func_expl+:} false; then : |
5213506e | 19413 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19414 | else |
db9f46a9 | 19415 | if test x$gcc_no_link = xyes; then |
22e05272 | 19416 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19417 | fi |
5213506e | 19418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19419 | /* end confdefs.h. */ |
19420 | ||
db9f46a9 TG |
19421 | #ifdef HAVE_COMPLEX_H |
19422 | #include <complex.h> | |
19423 | #endif | |
19424 | #ifdef HAVE_MATH_H | |
19425 | #include <math.h> | |
1409cd0b | 19426 | #endif |
db9f46a9 TG |
19427 | |
19428 | int (*ptr)() = (int (*)())expl; | |
19429 | ||
1409cd0b FXC |
19430 | int |
19431 | main () | |
19432 | { | |
1409cd0b FXC |
19433 | return 0; |
19434 | } | |
db9f46a9 | 19435 | |
1409cd0b | 19436 | _ACEOF |
5213506e | 19437 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19438 | gcc_cv_math_func_expl=yes |
1409cd0b | 19439 | else |
db9f46a9 | 19440 | gcc_cv_math_func_expl=no |
1409cd0b | 19441 | fi |
5213506e RW |
19442 | rm -f core conftest.err conftest.$ac_objext \ |
19443 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19444 | fi |
db9f46a9 TG |
19445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5 |
19446 | $as_echo "$gcc_cv_math_func_expl" >&6; } | |
19447 | if test $gcc_cv_math_func_expl = yes; then | |
f1cdfa01 | 19448 | |
f38a14ca TG |
19449 | cat >>confdefs.h <<_ACEOF |
19450 | #define HAVE_EXPL 1 | |
19451 | _ACEOF | |
db9f46a9 TG |
19452 | |
19453 | fi | |
1409cd0b | 19454 | |
1409cd0b | 19455 | |
1409cd0b | 19456 | |
db9f46a9 TG |
19457 | |
19458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5 | |
19459 | $as_echo_n "checking for cexpf... " >&6; } | |
22e05272 | 19460 | if ${gcc_cv_math_func_cexpf+:} false; then : |
5213506e | 19461 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19462 | else |
db9f46a9 | 19463 | if test x$gcc_no_link = xyes; then |
22e05272 | 19464 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19465 | fi |
5213506e | 19466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19467 | /* end confdefs.h. */ |
19468 | ||
db9f46a9 TG |
19469 | #ifdef HAVE_COMPLEX_H |
19470 | #include <complex.h> | |
1409cd0b | 19471 | #endif |
db9f46a9 TG |
19472 | #ifdef HAVE_MATH_H |
19473 | #include <math.h> | |
19474 | #endif | |
19475 | ||
19476 | int (*ptr)() = (int (*)())cexpf; | |
19477 | ||
1409cd0b FXC |
19478 | int |
19479 | main () | |
19480 | { | |
1409cd0b FXC |
19481 | return 0; |
19482 | } | |
db9f46a9 | 19483 | |
1409cd0b | 19484 | _ACEOF |
5213506e | 19485 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19486 | gcc_cv_math_func_cexpf=yes |
1409cd0b | 19487 | else |
db9f46a9 | 19488 | gcc_cv_math_func_cexpf=no |
1409cd0b | 19489 | fi |
5213506e RW |
19490 | rm -f core conftest.err conftest.$ac_objext \ |
19491 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19492 | fi |
db9f46a9 TG |
19493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5 |
19494 | $as_echo "$gcc_cv_math_func_cexpf" >&6; } | |
19495 | if test $gcc_cv_math_func_cexpf = yes; then | |
f1cdfa01 | 19496 | |
f38a14ca TG |
19497 | cat >>confdefs.h <<_ACEOF |
19498 | #define HAVE_CEXPF 1 | |
19499 | _ACEOF | |
1409cd0b | 19500 | |
db9f46a9 | 19501 | fi |
1409cd0b | 19502 | |
1409cd0b | 19503 | |
db9f46a9 TG |
19504 | |
19505 | ||
19506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5 | |
19507 | $as_echo_n "checking for cexp... " >&6; } | |
22e05272 | 19508 | if ${gcc_cv_math_func_cexp+:} false; then : |
5213506e | 19509 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19510 | else |
db9f46a9 | 19511 | if test x$gcc_no_link = xyes; then |
22e05272 | 19512 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19513 | fi |
5213506e | 19514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19515 | /* end confdefs.h. */ |
19516 | ||
db9f46a9 TG |
19517 | #ifdef HAVE_COMPLEX_H |
19518 | #include <complex.h> | |
19519 | #endif | |
19520 | #ifdef HAVE_MATH_H | |
19521 | #include <math.h> | |
1409cd0b | 19522 | #endif |
db9f46a9 TG |
19523 | |
19524 | int (*ptr)() = (int (*)())cexp; | |
19525 | ||
1409cd0b FXC |
19526 | int |
19527 | main () | |
19528 | { | |
1409cd0b FXC |
19529 | return 0; |
19530 | } | |
db9f46a9 | 19531 | |
1409cd0b | 19532 | _ACEOF |
5213506e | 19533 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19534 | gcc_cv_math_func_cexp=yes |
1409cd0b | 19535 | else |
db9f46a9 | 19536 | gcc_cv_math_func_cexp=no |
1409cd0b | 19537 | fi |
5213506e RW |
19538 | rm -f core conftest.err conftest.$ac_objext \ |
19539 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19540 | fi |
db9f46a9 TG |
19541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5 |
19542 | $as_echo "$gcc_cv_math_func_cexp" >&6; } | |
19543 | if test $gcc_cv_math_func_cexp = yes; then | |
f1cdfa01 | 19544 | |
f38a14ca TG |
19545 | cat >>confdefs.h <<_ACEOF |
19546 | #define HAVE_CEXP 1 | |
19547 | _ACEOF | |
db9f46a9 TG |
19548 | |
19549 | fi | |
1409cd0b | 19550 | |
1409cd0b | 19551 | |
1409cd0b | 19552 | |
db9f46a9 TG |
19553 | |
19554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5 | |
19555 | $as_echo_n "checking for cexpl... " >&6; } | |
22e05272 | 19556 | if ${gcc_cv_math_func_cexpl+:} false; then : |
5213506e | 19557 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19558 | else |
db9f46a9 | 19559 | if test x$gcc_no_link = xyes; then |
22e05272 | 19560 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19561 | fi |
5213506e | 19562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19563 | /* end confdefs.h. */ |
19564 | ||
db9f46a9 TG |
19565 | #ifdef HAVE_COMPLEX_H |
19566 | #include <complex.h> | |
1409cd0b | 19567 | #endif |
db9f46a9 TG |
19568 | #ifdef HAVE_MATH_H |
19569 | #include <math.h> | |
19570 | #endif | |
19571 | ||
19572 | int (*ptr)() = (int (*)())cexpl; | |
19573 | ||
1409cd0b FXC |
19574 | int |
19575 | main () | |
19576 | { | |
1409cd0b FXC |
19577 | return 0; |
19578 | } | |
db9f46a9 | 19579 | |
1409cd0b | 19580 | _ACEOF |
5213506e | 19581 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19582 | gcc_cv_math_func_cexpl=yes |
1409cd0b | 19583 | else |
db9f46a9 | 19584 | gcc_cv_math_func_cexpl=no |
1409cd0b | 19585 | fi |
5213506e RW |
19586 | rm -f core conftest.err conftest.$ac_objext \ |
19587 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19588 | fi |
db9f46a9 TG |
19589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5 |
19590 | $as_echo "$gcc_cv_math_func_cexpl" >&6; } | |
19591 | if test $gcc_cv_math_func_cexpl = yes; then | |
f1cdfa01 | 19592 | |
f38a14ca TG |
19593 | cat >>confdefs.h <<_ACEOF |
19594 | #define HAVE_CEXPL 1 | |
19595 | _ACEOF | |
db9f46a9 TG |
19596 | |
19597 | fi | |
19598 | ||
1409cd0b | 19599 | |
1409cd0b | 19600 | |
1409cd0b | 19601 | |
db9f46a9 TG |
19602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5 |
19603 | $as_echo_n "checking for fabsf... " >&6; } | |
22e05272 | 19604 | if ${gcc_cv_math_func_fabsf+:} false; then : |
5213506e | 19605 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19606 | else |
db9f46a9 | 19607 | if test x$gcc_no_link = xyes; then |
22e05272 | 19608 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19609 | fi |
5213506e | 19610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19611 | /* end confdefs.h. */ |
19612 | ||
db9f46a9 TG |
19613 | #ifdef HAVE_COMPLEX_H |
19614 | #include <complex.h> | |
19615 | #endif | |
19616 | #ifdef HAVE_MATH_H | |
19617 | #include <math.h> | |
1409cd0b | 19618 | #endif |
db9f46a9 TG |
19619 | |
19620 | int (*ptr)() = (int (*)())fabsf; | |
19621 | ||
1409cd0b FXC |
19622 | int |
19623 | main () | |
19624 | { | |
1409cd0b FXC |
19625 | return 0; |
19626 | } | |
db9f46a9 | 19627 | |
1409cd0b | 19628 | _ACEOF |
5213506e | 19629 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19630 | gcc_cv_math_func_fabsf=yes |
1409cd0b | 19631 | else |
db9f46a9 | 19632 | gcc_cv_math_func_fabsf=no |
1409cd0b | 19633 | fi |
5213506e RW |
19634 | rm -f core conftest.err conftest.$ac_objext \ |
19635 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19636 | fi |
db9f46a9 TG |
19637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5 |
19638 | $as_echo "$gcc_cv_math_func_fabsf" >&6; } | |
19639 | if test $gcc_cv_math_func_fabsf = yes; then | |
f1cdfa01 | 19640 | |
f38a14ca TG |
19641 | cat >>confdefs.h <<_ACEOF |
19642 | #define HAVE_FABSF 1 | |
19643 | _ACEOF | |
db9f46a9 TG |
19644 | |
19645 | fi | |
1409cd0b | 19646 | |
1409cd0b | 19647 | |
1409cd0b | 19648 | |
db9f46a9 TG |
19649 | |
19650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5 | |
19651 | $as_echo_n "checking for fabs... " >&6; } | |
22e05272 | 19652 | if ${gcc_cv_math_func_fabs+:} false; then : |
5213506e | 19653 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19654 | else |
db9f46a9 | 19655 | if test x$gcc_no_link = xyes; then |
22e05272 | 19656 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19657 | fi |
5213506e | 19658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19659 | /* end confdefs.h. */ |
19660 | ||
db9f46a9 TG |
19661 | #ifdef HAVE_COMPLEX_H |
19662 | #include <complex.h> | |
1409cd0b | 19663 | #endif |
db9f46a9 TG |
19664 | #ifdef HAVE_MATH_H |
19665 | #include <math.h> | |
19666 | #endif | |
19667 | ||
19668 | int (*ptr)() = (int (*)())fabs; | |
19669 | ||
1409cd0b FXC |
19670 | int |
19671 | main () | |
19672 | { | |
1409cd0b FXC |
19673 | return 0; |
19674 | } | |
db9f46a9 | 19675 | |
1409cd0b | 19676 | _ACEOF |
5213506e | 19677 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19678 | gcc_cv_math_func_fabs=yes |
1409cd0b | 19679 | else |
db9f46a9 | 19680 | gcc_cv_math_func_fabs=no |
1409cd0b | 19681 | fi |
5213506e RW |
19682 | rm -f core conftest.err conftest.$ac_objext \ |
19683 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19684 | fi |
db9f46a9 TG |
19685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5 |
19686 | $as_echo "$gcc_cv_math_func_fabs" >&6; } | |
19687 | if test $gcc_cv_math_func_fabs = yes; then | |
f1cdfa01 | 19688 | |
f38a14ca TG |
19689 | cat >>confdefs.h <<_ACEOF |
19690 | #define HAVE_FABS 1 | |
19691 | _ACEOF | |
1409cd0b | 19692 | |
db9f46a9 | 19693 | fi |
1409cd0b | 19694 | |
1409cd0b | 19695 | |
db9f46a9 TG |
19696 | |
19697 | ||
19698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5 | |
19699 | $as_echo_n "checking for fabsl... " >&6; } | |
22e05272 | 19700 | if ${gcc_cv_math_func_fabsl+:} false; then : |
5213506e | 19701 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19702 | else |
db9f46a9 | 19703 | if test x$gcc_no_link = xyes; then |
22e05272 | 19704 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19705 | fi |
5213506e | 19706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19707 | /* end confdefs.h. */ |
19708 | ||
db9f46a9 TG |
19709 | #ifdef HAVE_COMPLEX_H |
19710 | #include <complex.h> | |
19711 | #endif | |
19712 | #ifdef HAVE_MATH_H | |
19713 | #include <math.h> | |
1409cd0b | 19714 | #endif |
db9f46a9 TG |
19715 | |
19716 | int (*ptr)() = (int (*)())fabsl; | |
19717 | ||
1409cd0b FXC |
19718 | int |
19719 | main () | |
19720 | { | |
1409cd0b FXC |
19721 | return 0; |
19722 | } | |
db9f46a9 | 19723 | |
1409cd0b | 19724 | _ACEOF |
5213506e | 19725 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19726 | gcc_cv_math_func_fabsl=yes |
1409cd0b | 19727 | else |
db9f46a9 | 19728 | gcc_cv_math_func_fabsl=no |
1409cd0b | 19729 | fi |
5213506e RW |
19730 | rm -f core conftest.err conftest.$ac_objext \ |
19731 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19732 | fi |
db9f46a9 TG |
19733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5 |
19734 | $as_echo "$gcc_cv_math_func_fabsl" >&6; } | |
19735 | if test $gcc_cv_math_func_fabsl = yes; then | |
f1cdfa01 | 19736 | |
f38a14ca TG |
19737 | cat >>confdefs.h <<_ACEOF |
19738 | #define HAVE_FABSL 1 | |
19739 | _ACEOF | |
db9f46a9 TG |
19740 | |
19741 | fi | |
1409cd0b | 19742 | |
1409cd0b | 19743 | |
1409cd0b | 19744 | |
db9f46a9 TG |
19745 | |
19746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5 | |
19747 | $as_echo_n "checking for cabsf... " >&6; } | |
22e05272 | 19748 | if ${gcc_cv_math_func_cabsf+:} false; then : |
5213506e | 19749 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19750 | else |
db9f46a9 | 19751 | if test x$gcc_no_link = xyes; then |
22e05272 | 19752 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19753 | fi |
5213506e | 19754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19755 | /* end confdefs.h. */ |
19756 | ||
db9f46a9 TG |
19757 | #ifdef HAVE_COMPLEX_H |
19758 | #include <complex.h> | |
1409cd0b | 19759 | #endif |
db9f46a9 TG |
19760 | #ifdef HAVE_MATH_H |
19761 | #include <math.h> | |
19762 | #endif | |
19763 | ||
19764 | int (*ptr)() = (int (*)())cabsf; | |
19765 | ||
1409cd0b FXC |
19766 | int |
19767 | main () | |
19768 | { | |
1409cd0b FXC |
19769 | return 0; |
19770 | } | |
db9f46a9 | 19771 | |
1409cd0b | 19772 | _ACEOF |
5213506e | 19773 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19774 | gcc_cv_math_func_cabsf=yes |
1409cd0b | 19775 | else |
db9f46a9 | 19776 | gcc_cv_math_func_cabsf=no |
1409cd0b | 19777 | fi |
5213506e RW |
19778 | rm -f core conftest.err conftest.$ac_objext \ |
19779 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19780 | fi |
db9f46a9 TG |
19781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5 |
19782 | $as_echo "$gcc_cv_math_func_cabsf" >&6; } | |
19783 | if test $gcc_cv_math_func_cabsf = yes; then | |
f1cdfa01 | 19784 | |
f38a14ca TG |
19785 | cat >>confdefs.h <<_ACEOF |
19786 | #define HAVE_CABSF 1 | |
19787 | _ACEOF | |
db9f46a9 TG |
19788 | |
19789 | fi | |
19790 | ||
1409cd0b | 19791 | |
1409cd0b | 19792 | |
1409cd0b | 19793 | |
db9f46a9 TG |
19794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5 |
19795 | $as_echo_n "checking for cabs... " >&6; } | |
22e05272 | 19796 | if ${gcc_cv_math_func_cabs+:} false; then : |
5213506e | 19797 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19798 | else |
db9f46a9 | 19799 | if test x$gcc_no_link = xyes; then |
22e05272 | 19800 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19801 | fi |
5213506e | 19802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19803 | /* end confdefs.h. */ |
19804 | ||
db9f46a9 TG |
19805 | #ifdef HAVE_COMPLEX_H |
19806 | #include <complex.h> | |
19807 | #endif | |
19808 | #ifdef HAVE_MATH_H | |
19809 | #include <math.h> | |
1409cd0b | 19810 | #endif |
db9f46a9 TG |
19811 | |
19812 | int (*ptr)() = (int (*)())cabs; | |
19813 | ||
1409cd0b FXC |
19814 | int |
19815 | main () | |
19816 | { | |
1409cd0b FXC |
19817 | return 0; |
19818 | } | |
db9f46a9 | 19819 | |
1409cd0b | 19820 | _ACEOF |
5213506e | 19821 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19822 | gcc_cv_math_func_cabs=yes |
1409cd0b | 19823 | else |
db9f46a9 | 19824 | gcc_cv_math_func_cabs=no |
1409cd0b | 19825 | fi |
5213506e RW |
19826 | rm -f core conftest.err conftest.$ac_objext \ |
19827 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19828 | fi |
db9f46a9 TG |
19829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5 |
19830 | $as_echo "$gcc_cv_math_func_cabs" >&6; } | |
19831 | if test $gcc_cv_math_func_cabs = yes; then | |
f1cdfa01 | 19832 | |
f38a14ca TG |
19833 | cat >>confdefs.h <<_ACEOF |
19834 | #define HAVE_CABS 1 | |
19835 | _ACEOF | |
db9f46a9 TG |
19836 | |
19837 | fi | |
1409cd0b | 19838 | |
1409cd0b | 19839 | |
1409cd0b | 19840 | |
db9f46a9 TG |
19841 | |
19842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5 | |
19843 | $as_echo_n "checking for cabsl... " >&6; } | |
22e05272 | 19844 | if ${gcc_cv_math_func_cabsl+:} false; then : |
5213506e | 19845 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19846 | else |
db9f46a9 | 19847 | if test x$gcc_no_link = xyes; then |
22e05272 | 19848 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19849 | fi |
5213506e | 19850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19851 | /* end confdefs.h. */ |
19852 | ||
db9f46a9 TG |
19853 | #ifdef HAVE_COMPLEX_H |
19854 | #include <complex.h> | |
1409cd0b | 19855 | #endif |
db9f46a9 TG |
19856 | #ifdef HAVE_MATH_H |
19857 | #include <math.h> | |
19858 | #endif | |
19859 | ||
19860 | int (*ptr)() = (int (*)())cabsl; | |
19861 | ||
1409cd0b FXC |
19862 | int |
19863 | main () | |
19864 | { | |
1409cd0b FXC |
19865 | return 0; |
19866 | } | |
db9f46a9 | 19867 | |
1409cd0b | 19868 | _ACEOF |
5213506e | 19869 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19870 | gcc_cv_math_func_cabsl=yes |
1409cd0b | 19871 | else |
db9f46a9 | 19872 | gcc_cv_math_func_cabsl=no |
1409cd0b | 19873 | fi |
5213506e RW |
19874 | rm -f core conftest.err conftest.$ac_objext \ |
19875 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19876 | fi |
db9f46a9 TG |
19877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5 |
19878 | $as_echo "$gcc_cv_math_func_cabsl" >&6; } | |
19879 | if test $gcc_cv_math_func_cabsl = yes; then | |
f1cdfa01 | 19880 | |
f38a14ca TG |
19881 | cat >>confdefs.h <<_ACEOF |
19882 | #define HAVE_CABSL 1 | |
19883 | _ACEOF | |
1409cd0b | 19884 | |
db9f46a9 | 19885 | fi |
1409cd0b | 19886 | |
1409cd0b | 19887 | |
db9f46a9 TG |
19888 | |
19889 | ||
19890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5 | |
19891 | $as_echo_n "checking for floorf... " >&6; } | |
22e05272 | 19892 | if ${gcc_cv_math_func_floorf+:} false; then : |
5213506e | 19893 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19894 | else |
db9f46a9 | 19895 | if test x$gcc_no_link = xyes; then |
22e05272 | 19896 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19897 | fi |
5213506e | 19898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19899 | /* end confdefs.h. */ |
19900 | ||
db9f46a9 TG |
19901 | #ifdef HAVE_COMPLEX_H |
19902 | #include <complex.h> | |
19903 | #endif | |
19904 | #ifdef HAVE_MATH_H | |
19905 | #include <math.h> | |
1409cd0b | 19906 | #endif |
db9f46a9 TG |
19907 | |
19908 | int (*ptr)() = (int (*)())floorf; | |
19909 | ||
1409cd0b FXC |
19910 | int |
19911 | main () | |
19912 | { | |
5213506e RW |
19913 | return 0; |
19914 | } | |
db9f46a9 | 19915 | |
5213506e RW |
19916 | _ACEOF |
19917 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 19918 | gcc_cv_math_func_floorf=yes |
1409cd0b | 19919 | else |
db9f46a9 | 19920 | gcc_cv_math_func_floorf=no |
1409cd0b | 19921 | fi |
5213506e RW |
19922 | rm -f core conftest.err conftest.$ac_objext \ |
19923 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19924 | fi |
db9f46a9 TG |
19925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5 |
19926 | $as_echo "$gcc_cv_math_func_floorf" >&6; } | |
19927 | if test $gcc_cv_math_func_floorf = yes; then | |
f1cdfa01 | 19928 | |
f38a14ca TG |
19929 | cat >>confdefs.h <<_ACEOF |
19930 | #define HAVE_FLOORF 1 | |
19931 | _ACEOF | |
db9f46a9 TG |
19932 | |
19933 | fi | |
1409cd0b | 19934 | |
1409cd0b | 19935 | |
1409cd0b | 19936 | |
db9f46a9 TG |
19937 | |
19938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5 | |
19939 | $as_echo_n "checking for floor... " >&6; } | |
22e05272 | 19940 | if ${gcc_cv_math_func_floor+:} false; then : |
5213506e | 19941 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19942 | else |
db9f46a9 | 19943 | if test x$gcc_no_link = xyes; then |
22e05272 | 19944 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19945 | fi |
5213506e | 19946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19947 | /* end confdefs.h. */ |
19948 | ||
db9f46a9 TG |
19949 | #ifdef HAVE_COMPLEX_H |
19950 | #include <complex.h> | |
1409cd0b | 19951 | #endif |
db9f46a9 TG |
19952 | #ifdef HAVE_MATH_H |
19953 | #include <math.h> | |
19954 | #endif | |
19955 | ||
19956 | int (*ptr)() = (int (*)())floor; | |
19957 | ||
1409cd0b FXC |
19958 | int |
19959 | main () | |
19960 | { | |
1409cd0b FXC |
19961 | return 0; |
19962 | } | |
db9f46a9 | 19963 | |
1409cd0b | 19964 | _ACEOF |
5213506e | 19965 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19966 | gcc_cv_math_func_floor=yes |
1409cd0b | 19967 | else |
db9f46a9 | 19968 | gcc_cv_math_func_floor=no |
1409cd0b | 19969 | fi |
5213506e RW |
19970 | rm -f core conftest.err conftest.$ac_objext \ |
19971 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19972 | fi |
db9f46a9 TG |
19973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5 |
19974 | $as_echo "$gcc_cv_math_func_floor" >&6; } | |
19975 | if test $gcc_cv_math_func_floor = yes; then | |
f1cdfa01 | 19976 | |
f38a14ca TG |
19977 | cat >>confdefs.h <<_ACEOF |
19978 | #define HAVE_FLOOR 1 | |
19979 | _ACEOF | |
db9f46a9 TG |
19980 | |
19981 | fi | |
19982 | ||
1409cd0b | 19983 | |
1409cd0b | 19984 | |
1409cd0b | 19985 | |
db9f46a9 TG |
19986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5 |
19987 | $as_echo_n "checking for floorl... " >&6; } | |
22e05272 | 19988 | if ${gcc_cv_math_func_floorl+:} false; then : |
5213506e | 19989 | $as_echo_n "(cached) " >&6 |
eb647f7d | 19990 | else |
db9f46a9 | 19991 | if test x$gcc_no_link = xyes; then |
22e05272 | 19992 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 19993 | fi |
5213506e | 19994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
19995 | /* end confdefs.h. */ |
19996 | ||
db9f46a9 TG |
19997 | #ifdef HAVE_COMPLEX_H |
19998 | #include <complex.h> | |
19999 | #endif | |
20000 | #ifdef HAVE_MATH_H | |
20001 | #include <math.h> | |
eb647f7d | 20002 | #endif |
db9f46a9 TG |
20003 | |
20004 | int (*ptr)() = (int (*)())floorl; | |
20005 | ||
eb647f7d FXC |
20006 | int |
20007 | main () | |
20008 | { | |
eb647f7d FXC |
20009 | return 0; |
20010 | } | |
db9f46a9 | 20011 | |
eb647f7d | 20012 | _ACEOF |
5213506e | 20013 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20014 | gcc_cv_math_func_floorl=yes |
eb647f7d | 20015 | else |
db9f46a9 | 20016 | gcc_cv_math_func_floorl=no |
eb647f7d | 20017 | fi |
5213506e RW |
20018 | rm -f core conftest.err conftest.$ac_objext \ |
20019 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 20020 | fi |
db9f46a9 TG |
20021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5 |
20022 | $as_echo "$gcc_cv_math_func_floorl" >&6; } | |
20023 | if test $gcc_cv_math_func_floorl = yes; then | |
f1cdfa01 | 20024 | |
f38a14ca TG |
20025 | cat >>confdefs.h <<_ACEOF |
20026 | #define HAVE_FLOORL 1 | |
20027 | _ACEOF | |
db9f46a9 TG |
20028 | |
20029 | fi | |
eb647f7d | 20030 | |
eb647f7d | 20031 | |
eb647f7d | 20032 | |
db9f46a9 | 20033 | |
1868599f JJ |
20034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5 |
20035 | $as_echo_n "checking for fmaf... " >&6; } | |
20036 | if ${gcc_cv_math_func_fmaf+:} false; then : | |
20037 | $as_echo_n "(cached) " >&6 | |
20038 | else | |
20039 | if test x$gcc_no_link = xyes; then | |
20040 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
20041 | fi | |
20042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20043 | /* end confdefs.h. */ | |
20044 | ||
20045 | #ifdef HAVE_COMPLEX_H | |
20046 | #include <complex.h> | |
20047 | #endif | |
20048 | #ifdef HAVE_MATH_H | |
20049 | #include <math.h> | |
20050 | #endif | |
20051 | ||
20052 | int (*ptr)() = (int (*)())fmaf; | |
20053 | ||
20054 | int | |
20055 | main () | |
20056 | { | |
20057 | return 0; | |
20058 | } | |
20059 | ||
20060 | _ACEOF | |
20061 | if ac_fn_c_try_link "$LINENO"; then : | |
20062 | gcc_cv_math_func_fmaf=yes | |
20063 | else | |
20064 | gcc_cv_math_func_fmaf=no | |
20065 | fi | |
20066 | rm -f core conftest.err conftest.$ac_objext \ | |
20067 | conftest$ac_exeext conftest.$ac_ext | |
20068 | fi | |
20069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5 | |
20070 | $as_echo "$gcc_cv_math_func_fmaf" >&6; } | |
20071 | if test $gcc_cv_math_func_fmaf = yes; then | |
20072 | ||
20073 | cat >>confdefs.h <<_ACEOF | |
20074 | #define HAVE_FMAF 1 | |
20075 | _ACEOF | |
20076 | ||
20077 | fi | |
20078 | ||
20079 | ||
20080 | ||
20081 | ||
20082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5 | |
20083 | $as_echo_n "checking for fma... " >&6; } | |
20084 | if ${gcc_cv_math_func_fma+:} false; then : | |
20085 | $as_echo_n "(cached) " >&6 | |
20086 | else | |
20087 | if test x$gcc_no_link = xyes; then | |
20088 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
20089 | fi | |
20090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20091 | /* end confdefs.h. */ | |
20092 | ||
20093 | #ifdef HAVE_COMPLEX_H | |
20094 | #include <complex.h> | |
20095 | #endif | |
20096 | #ifdef HAVE_MATH_H | |
20097 | #include <math.h> | |
20098 | #endif | |
20099 | ||
20100 | int (*ptr)() = (int (*)())fma; | |
20101 | ||
20102 | int | |
20103 | main () | |
20104 | { | |
20105 | return 0; | |
20106 | } | |
20107 | ||
20108 | _ACEOF | |
20109 | if ac_fn_c_try_link "$LINENO"; then : | |
20110 | gcc_cv_math_func_fma=yes | |
20111 | else | |
20112 | gcc_cv_math_func_fma=no | |
20113 | fi | |
20114 | rm -f core conftest.err conftest.$ac_objext \ | |
20115 | conftest$ac_exeext conftest.$ac_ext | |
20116 | fi | |
20117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5 | |
20118 | $as_echo "$gcc_cv_math_func_fma" >&6; } | |
20119 | if test $gcc_cv_math_func_fma = yes; then | |
20120 | ||
20121 | cat >>confdefs.h <<_ACEOF | |
20122 | #define HAVE_FMA 1 | |
20123 | _ACEOF | |
20124 | ||
20125 | fi | |
20126 | ||
20127 | ||
20128 | ||
20129 | ||
20130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5 | |
20131 | $as_echo_n "checking for fmal... " >&6; } | |
20132 | if ${gcc_cv_math_func_fmal+:} false; then : | |
20133 | $as_echo_n "(cached) " >&6 | |
20134 | else | |
20135 | if test x$gcc_no_link = xyes; then | |
20136 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
20137 | fi | |
20138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20139 | /* end confdefs.h. */ | |
20140 | ||
20141 | #ifdef HAVE_COMPLEX_H | |
20142 | #include <complex.h> | |
20143 | #endif | |
20144 | #ifdef HAVE_MATH_H | |
20145 | #include <math.h> | |
20146 | #endif | |
20147 | ||
20148 | int (*ptr)() = (int (*)())fmal; | |
20149 | ||
20150 | int | |
20151 | main () | |
20152 | { | |
20153 | return 0; | |
20154 | } | |
20155 | ||
20156 | _ACEOF | |
20157 | if ac_fn_c_try_link "$LINENO"; then : | |
20158 | gcc_cv_math_func_fmal=yes | |
20159 | else | |
20160 | gcc_cv_math_func_fmal=no | |
20161 | fi | |
20162 | rm -f core conftest.err conftest.$ac_objext \ | |
20163 | conftest$ac_exeext conftest.$ac_ext | |
20164 | fi | |
20165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5 | |
20166 | $as_echo "$gcc_cv_math_func_fmal" >&6; } | |
20167 | if test $gcc_cv_math_func_fmal = yes; then | |
20168 | ||
20169 | cat >>confdefs.h <<_ACEOF | |
20170 | #define HAVE_FMAL 1 | |
20171 | _ACEOF | |
20172 | ||
20173 | fi | |
20174 | ||
20175 | ||
20176 | ||
20177 | ||
db9f46a9 TG |
20178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5 |
20179 | $as_echo_n "checking for fmodf... " >&6; } | |
22e05272 | 20180 | if ${gcc_cv_math_func_fmodf+:} false; then : |
5213506e | 20181 | $as_echo_n "(cached) " >&6 |
eb647f7d | 20182 | else |
db9f46a9 | 20183 | if test x$gcc_no_link = xyes; then |
22e05272 | 20184 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 20185 | fi |
5213506e | 20186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
20187 | /* end confdefs.h. */ |
20188 | ||
db9f46a9 TG |
20189 | #ifdef HAVE_COMPLEX_H |
20190 | #include <complex.h> | |
eb647f7d | 20191 | #endif |
db9f46a9 TG |
20192 | #ifdef HAVE_MATH_H |
20193 | #include <math.h> | |
20194 | #endif | |
20195 | ||
20196 | int (*ptr)() = (int (*)())fmodf; | |
20197 | ||
eb647f7d FXC |
20198 | int |
20199 | main () | |
20200 | { | |
eb647f7d FXC |
20201 | return 0; |
20202 | } | |
db9f46a9 | 20203 | |
eb647f7d | 20204 | _ACEOF |
5213506e | 20205 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20206 | gcc_cv_math_func_fmodf=yes |
eb647f7d | 20207 | else |
db9f46a9 | 20208 | gcc_cv_math_func_fmodf=no |
eb647f7d | 20209 | fi |
5213506e RW |
20210 | rm -f core conftest.err conftest.$ac_objext \ |
20211 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 20212 | fi |
db9f46a9 TG |
20213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5 |
20214 | $as_echo "$gcc_cv_math_func_fmodf" >&6; } | |
20215 | if test $gcc_cv_math_func_fmodf = yes; then | |
f1cdfa01 | 20216 | |
f38a14ca TG |
20217 | cat >>confdefs.h <<_ACEOF |
20218 | #define HAVE_FMODF 1 | |
20219 | _ACEOF | |
eb647f7d | 20220 | |
db9f46a9 | 20221 | fi |
eb647f7d | 20222 | |
eb647f7d | 20223 | |
db9f46a9 TG |
20224 | |
20225 | ||
20226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5 | |
20227 | $as_echo_n "checking for fmod... " >&6; } | |
22e05272 | 20228 | if ${gcc_cv_math_func_fmod+:} false; then : |
5213506e | 20229 | $as_echo_n "(cached) " >&6 |
eb647f7d | 20230 | else |
db9f46a9 | 20231 | if test x$gcc_no_link = xyes; then |
22e05272 | 20232 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 20233 | fi |
5213506e | 20234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
20235 | /* end confdefs.h. */ |
20236 | ||
db9f46a9 TG |
20237 | #ifdef HAVE_COMPLEX_H |
20238 | #include <complex.h> | |
20239 | #endif | |
20240 | #ifdef HAVE_MATH_H | |
20241 | #include <math.h> | |
eb647f7d | 20242 | #endif |
db9f46a9 TG |
20243 | |
20244 | int (*ptr)() = (int (*)())fmod; | |
20245 | ||
eb647f7d FXC |
20246 | int |
20247 | main () | |
20248 | { | |
eb647f7d FXC |
20249 | return 0; |
20250 | } | |
db9f46a9 | 20251 | |
eb647f7d | 20252 | _ACEOF |
5213506e | 20253 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20254 | gcc_cv_math_func_fmod=yes |
eb647f7d | 20255 | else |
db9f46a9 | 20256 | gcc_cv_math_func_fmod=no |
eb647f7d | 20257 | fi |
5213506e RW |
20258 | rm -f core conftest.err conftest.$ac_objext \ |
20259 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 20260 | fi |
db9f46a9 TG |
20261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5 |
20262 | $as_echo "$gcc_cv_math_func_fmod" >&6; } | |
20263 | if test $gcc_cv_math_func_fmod = yes; then | |
f1cdfa01 | 20264 | |
f38a14ca TG |
20265 | cat >>confdefs.h <<_ACEOF |
20266 | #define HAVE_FMOD 1 | |
20267 | _ACEOF | |
db9f46a9 TG |
20268 | |
20269 | fi | |
eb647f7d | 20270 | |
eb647f7d | 20271 | |
eb647f7d | 20272 | |
db9f46a9 TG |
20273 | |
20274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5 | |
20275 | $as_echo_n "checking for fmodl... " >&6; } | |
22e05272 | 20276 | if ${gcc_cv_math_func_fmodl+:} false; then : |
5213506e | 20277 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20278 | else |
db9f46a9 | 20279 | if test x$gcc_no_link = xyes; then |
22e05272 | 20280 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20281 | fi |
5213506e | 20282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20283 | /* end confdefs.h. */ |
20284 | ||
db9f46a9 TG |
20285 | #ifdef HAVE_COMPLEX_H |
20286 | #include <complex.h> | |
1409cd0b | 20287 | #endif |
db9f46a9 TG |
20288 | #ifdef HAVE_MATH_H |
20289 | #include <math.h> | |
20290 | #endif | |
20291 | ||
20292 | int (*ptr)() = (int (*)())fmodl; | |
20293 | ||
1409cd0b FXC |
20294 | int |
20295 | main () | |
20296 | { | |
1409cd0b FXC |
20297 | return 0; |
20298 | } | |
db9f46a9 | 20299 | |
1409cd0b | 20300 | _ACEOF |
5213506e | 20301 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20302 | gcc_cv_math_func_fmodl=yes |
1409cd0b | 20303 | else |
db9f46a9 | 20304 | gcc_cv_math_func_fmodl=no |
1409cd0b | 20305 | fi |
5213506e RW |
20306 | rm -f core conftest.err conftest.$ac_objext \ |
20307 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20308 | fi |
db9f46a9 TG |
20309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5 |
20310 | $as_echo "$gcc_cv_math_func_fmodl" >&6; } | |
20311 | if test $gcc_cv_math_func_fmodl = yes; then | |
f1cdfa01 | 20312 | |
f38a14ca TG |
20313 | cat >>confdefs.h <<_ACEOF |
20314 | #define HAVE_FMODL 1 | |
20315 | _ACEOF | |
db9f46a9 TG |
20316 | |
20317 | fi | |
20318 | ||
1409cd0b | 20319 | |
1409cd0b | 20320 | |
1409cd0b | 20321 | |
db9f46a9 TG |
20322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5 |
20323 | $as_echo_n "checking for frexpf... " >&6; } | |
22e05272 | 20324 | if ${gcc_cv_math_func_frexpf+:} false; then : |
5213506e | 20325 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20326 | else |
db9f46a9 | 20327 | if test x$gcc_no_link = xyes; then |
22e05272 | 20328 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20329 | fi |
5213506e | 20330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20331 | /* end confdefs.h. */ |
20332 | ||
db9f46a9 TG |
20333 | #ifdef HAVE_COMPLEX_H |
20334 | #include <complex.h> | |
20335 | #endif | |
20336 | #ifdef HAVE_MATH_H | |
20337 | #include <math.h> | |
1409cd0b | 20338 | #endif |
db9f46a9 TG |
20339 | |
20340 | int (*ptr)() = (int (*)())frexpf; | |
20341 | ||
1409cd0b FXC |
20342 | int |
20343 | main () | |
20344 | { | |
1409cd0b FXC |
20345 | return 0; |
20346 | } | |
db9f46a9 | 20347 | |
1409cd0b | 20348 | _ACEOF |
5213506e | 20349 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20350 | gcc_cv_math_func_frexpf=yes |
1409cd0b | 20351 | else |
db9f46a9 | 20352 | gcc_cv_math_func_frexpf=no |
1409cd0b | 20353 | fi |
5213506e RW |
20354 | rm -f core conftest.err conftest.$ac_objext \ |
20355 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20356 | fi |
db9f46a9 TG |
20357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5 |
20358 | $as_echo "$gcc_cv_math_func_frexpf" >&6; } | |
20359 | if test $gcc_cv_math_func_frexpf = yes; then | |
f1cdfa01 | 20360 | |
f38a14ca TG |
20361 | cat >>confdefs.h <<_ACEOF |
20362 | #define HAVE_FREXPF 1 | |
20363 | _ACEOF | |
db9f46a9 TG |
20364 | |
20365 | fi | |
1409cd0b | 20366 | |
1409cd0b | 20367 | |
1409cd0b | 20368 | |
db9f46a9 TG |
20369 | |
20370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5 | |
20371 | $as_echo_n "checking for frexp... " >&6; } | |
22e05272 | 20372 | if ${gcc_cv_math_func_frexp+:} false; then : |
5213506e | 20373 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20374 | else |
db9f46a9 | 20375 | if test x$gcc_no_link = xyes; then |
22e05272 | 20376 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20377 | fi |
5213506e | 20378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20379 | /* end confdefs.h. */ |
20380 | ||
db9f46a9 TG |
20381 | #ifdef HAVE_COMPLEX_H |
20382 | #include <complex.h> | |
1409cd0b | 20383 | #endif |
db9f46a9 TG |
20384 | #ifdef HAVE_MATH_H |
20385 | #include <math.h> | |
20386 | #endif | |
20387 | ||
20388 | int (*ptr)() = (int (*)())frexp; | |
20389 | ||
1409cd0b FXC |
20390 | int |
20391 | main () | |
20392 | { | |
1409cd0b FXC |
20393 | return 0; |
20394 | } | |
db9f46a9 | 20395 | |
1409cd0b | 20396 | _ACEOF |
5213506e | 20397 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20398 | gcc_cv_math_func_frexp=yes |
1409cd0b | 20399 | else |
db9f46a9 | 20400 | gcc_cv_math_func_frexp=no |
1409cd0b | 20401 | fi |
5213506e RW |
20402 | rm -f core conftest.err conftest.$ac_objext \ |
20403 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20404 | fi |
db9f46a9 TG |
20405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5 |
20406 | $as_echo "$gcc_cv_math_func_frexp" >&6; } | |
20407 | if test $gcc_cv_math_func_frexp = yes; then | |
f1cdfa01 | 20408 | |
f38a14ca TG |
20409 | cat >>confdefs.h <<_ACEOF |
20410 | #define HAVE_FREXP 1 | |
20411 | _ACEOF | |
1409cd0b | 20412 | |
db9f46a9 | 20413 | fi |
1409cd0b | 20414 | |
1409cd0b | 20415 | |
db9f46a9 TG |
20416 | |
20417 | ||
20418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5 | |
20419 | $as_echo_n "checking for frexpl... " >&6; } | |
22e05272 | 20420 | if ${gcc_cv_math_func_frexpl+:} false; then : |
5213506e | 20421 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20422 | else |
db9f46a9 | 20423 | if test x$gcc_no_link = xyes; then |
22e05272 | 20424 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20425 | fi |
5213506e | 20426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20427 | /* end confdefs.h. */ |
20428 | ||
db9f46a9 TG |
20429 | #ifdef HAVE_COMPLEX_H |
20430 | #include <complex.h> | |
20431 | #endif | |
20432 | #ifdef HAVE_MATH_H | |
20433 | #include <math.h> | |
1409cd0b | 20434 | #endif |
db9f46a9 TG |
20435 | |
20436 | int (*ptr)() = (int (*)())frexpl; | |
20437 | ||
1409cd0b FXC |
20438 | int |
20439 | main () | |
20440 | { | |
1409cd0b FXC |
20441 | return 0; |
20442 | } | |
db9f46a9 | 20443 | |
1409cd0b | 20444 | _ACEOF |
5213506e | 20445 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20446 | gcc_cv_math_func_frexpl=yes |
1409cd0b | 20447 | else |
db9f46a9 | 20448 | gcc_cv_math_func_frexpl=no |
1409cd0b | 20449 | fi |
5213506e RW |
20450 | rm -f core conftest.err conftest.$ac_objext \ |
20451 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20452 | fi |
db9f46a9 TG |
20453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5 |
20454 | $as_echo "$gcc_cv_math_func_frexpl" >&6; } | |
20455 | if test $gcc_cv_math_func_frexpl = yes; then | |
f1cdfa01 | 20456 | |
f38a14ca TG |
20457 | cat >>confdefs.h <<_ACEOF |
20458 | #define HAVE_FREXPL 1 | |
20459 | _ACEOF | |
db9f46a9 TG |
20460 | |
20461 | fi | |
1409cd0b | 20462 | |
1409cd0b | 20463 | |
1409cd0b | 20464 | |
db9f46a9 TG |
20465 | |
20466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5 | |
20467 | $as_echo_n "checking for hypotf... " >&6; } | |
22e05272 | 20468 | if ${gcc_cv_math_func_hypotf+:} false; then : |
5213506e | 20469 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20470 | else |
db9f46a9 | 20471 | if test x$gcc_no_link = xyes; then |
22e05272 | 20472 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20473 | fi |
5213506e | 20474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20475 | /* end confdefs.h. */ |
20476 | ||
db9f46a9 TG |
20477 | #ifdef HAVE_COMPLEX_H |
20478 | #include <complex.h> | |
1409cd0b | 20479 | #endif |
db9f46a9 TG |
20480 | #ifdef HAVE_MATH_H |
20481 | #include <math.h> | |
20482 | #endif | |
20483 | ||
20484 | int (*ptr)() = (int (*)())hypotf; | |
20485 | ||
1409cd0b FXC |
20486 | int |
20487 | main () | |
20488 | { | |
1409cd0b FXC |
20489 | return 0; |
20490 | } | |
db9f46a9 | 20491 | |
1409cd0b | 20492 | _ACEOF |
5213506e | 20493 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20494 | gcc_cv_math_func_hypotf=yes |
1409cd0b | 20495 | else |
db9f46a9 | 20496 | gcc_cv_math_func_hypotf=no |
1409cd0b | 20497 | fi |
5213506e RW |
20498 | rm -f core conftest.err conftest.$ac_objext \ |
20499 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20500 | fi |
db9f46a9 TG |
20501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5 |
20502 | $as_echo "$gcc_cv_math_func_hypotf" >&6; } | |
20503 | if test $gcc_cv_math_func_hypotf = yes; then | |
f1cdfa01 | 20504 | |
f38a14ca TG |
20505 | cat >>confdefs.h <<_ACEOF |
20506 | #define HAVE_HYPOTF 1 | |
20507 | _ACEOF | |
db9f46a9 TG |
20508 | |
20509 | fi | |
20510 | ||
1409cd0b | 20511 | |
1409cd0b | 20512 | |
1409cd0b | 20513 | |
db9f46a9 TG |
20514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5 |
20515 | $as_echo_n "checking for hypot... " >&6; } | |
22e05272 | 20516 | if ${gcc_cv_math_func_hypot+:} false; then : |
5213506e | 20517 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20518 | else |
db9f46a9 | 20519 | if test x$gcc_no_link = xyes; then |
22e05272 | 20520 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20521 | fi |
5213506e | 20522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20523 | /* end confdefs.h. */ |
20524 | ||
db9f46a9 TG |
20525 | #ifdef HAVE_COMPLEX_H |
20526 | #include <complex.h> | |
20527 | #endif | |
20528 | #ifdef HAVE_MATH_H | |
20529 | #include <math.h> | |
1409cd0b | 20530 | #endif |
db9f46a9 TG |
20531 | |
20532 | int (*ptr)() = (int (*)())hypot; | |
20533 | ||
1409cd0b FXC |
20534 | int |
20535 | main () | |
20536 | { | |
1409cd0b FXC |
20537 | return 0; |
20538 | } | |
db9f46a9 | 20539 | |
1409cd0b | 20540 | _ACEOF |
5213506e | 20541 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20542 | gcc_cv_math_func_hypot=yes |
1409cd0b | 20543 | else |
db9f46a9 | 20544 | gcc_cv_math_func_hypot=no |
1409cd0b | 20545 | fi |
5213506e RW |
20546 | rm -f core conftest.err conftest.$ac_objext \ |
20547 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20548 | fi |
db9f46a9 TG |
20549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5 |
20550 | $as_echo "$gcc_cv_math_func_hypot" >&6; } | |
20551 | if test $gcc_cv_math_func_hypot = yes; then | |
f1cdfa01 | 20552 | |
f38a14ca TG |
20553 | cat >>confdefs.h <<_ACEOF |
20554 | #define HAVE_HYPOT 1 | |
20555 | _ACEOF | |
db9f46a9 TG |
20556 | |
20557 | fi | |
1409cd0b | 20558 | |
1409cd0b | 20559 | |
1409cd0b | 20560 | |
db9f46a9 TG |
20561 | |
20562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5 | |
20563 | $as_echo_n "checking for hypotl... " >&6; } | |
22e05272 | 20564 | if ${gcc_cv_math_func_hypotl+:} false; then : |
5213506e | 20565 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20566 | else |
db9f46a9 | 20567 | if test x$gcc_no_link = xyes; then |
22e05272 | 20568 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20569 | fi |
5213506e | 20570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20571 | /* end confdefs.h. */ |
20572 | ||
db9f46a9 TG |
20573 | #ifdef HAVE_COMPLEX_H |
20574 | #include <complex.h> | |
cc6d3bde | 20575 | #endif |
db9f46a9 TG |
20576 | #ifdef HAVE_MATH_H |
20577 | #include <math.h> | |
20578 | #endif | |
20579 | ||
20580 | int (*ptr)() = (int (*)())hypotl; | |
20581 | ||
cc6d3bde SK |
20582 | int |
20583 | main () | |
20584 | { | |
cc6d3bde SK |
20585 | return 0; |
20586 | } | |
db9f46a9 | 20587 | |
cc6d3bde | 20588 | _ACEOF |
5213506e | 20589 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20590 | gcc_cv_math_func_hypotl=yes |
cc6d3bde | 20591 | else |
db9f46a9 | 20592 | gcc_cv_math_func_hypotl=no |
cc6d3bde | 20593 | fi |
5213506e RW |
20594 | rm -f core conftest.err conftest.$ac_objext \ |
20595 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20596 | fi |
db9f46a9 TG |
20597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5 |
20598 | $as_echo "$gcc_cv_math_func_hypotl" >&6; } | |
20599 | if test $gcc_cv_math_func_hypotl = yes; then | |
f1cdfa01 | 20600 | |
f38a14ca TG |
20601 | cat >>confdefs.h <<_ACEOF |
20602 | #define HAVE_HYPOTL 1 | |
20603 | _ACEOF | |
cc6d3bde | 20604 | |
db9f46a9 | 20605 | fi |
cc6d3bde | 20606 | |
cc6d3bde | 20607 | |
db9f46a9 TG |
20608 | |
20609 | ||
20610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5 | |
20611 | $as_echo_n "checking for ldexpf... " >&6; } | |
22e05272 | 20612 | if ${gcc_cv_math_func_ldexpf+:} false; then : |
5213506e | 20613 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20614 | else |
db9f46a9 | 20615 | if test x$gcc_no_link = xyes; then |
22e05272 | 20616 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20617 | fi |
5213506e | 20618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20619 | /* end confdefs.h. */ |
20620 | ||
db9f46a9 TG |
20621 | #ifdef HAVE_COMPLEX_H |
20622 | #include <complex.h> | |
20623 | #endif | |
20624 | #ifdef HAVE_MATH_H | |
20625 | #include <math.h> | |
cc6d3bde | 20626 | #endif |
db9f46a9 TG |
20627 | |
20628 | int (*ptr)() = (int (*)())ldexpf; | |
20629 | ||
cc6d3bde SK |
20630 | int |
20631 | main () | |
20632 | { | |
cc6d3bde SK |
20633 | return 0; |
20634 | } | |
db9f46a9 | 20635 | |
cc6d3bde | 20636 | _ACEOF |
5213506e | 20637 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20638 | gcc_cv_math_func_ldexpf=yes |
cc6d3bde | 20639 | else |
db9f46a9 | 20640 | gcc_cv_math_func_ldexpf=no |
cc6d3bde | 20641 | fi |
5213506e RW |
20642 | rm -f core conftest.err conftest.$ac_objext \ |
20643 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20644 | fi |
db9f46a9 TG |
20645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5 |
20646 | $as_echo "$gcc_cv_math_func_ldexpf" >&6; } | |
20647 | if test $gcc_cv_math_func_ldexpf = yes; then | |
f1cdfa01 | 20648 | |
f38a14ca TG |
20649 | cat >>confdefs.h <<_ACEOF |
20650 | #define HAVE_LDEXPF 1 | |
20651 | _ACEOF | |
db9f46a9 TG |
20652 | |
20653 | fi | |
cc6d3bde | 20654 | |
cc6d3bde | 20655 | |
cc6d3bde | 20656 | |
db9f46a9 TG |
20657 | |
20658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5 | |
20659 | $as_echo_n "checking for ldexp... " >&6; } | |
22e05272 | 20660 | if ${gcc_cv_math_func_ldexp+:} false; then : |
5213506e | 20661 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20662 | else |
db9f46a9 | 20663 | if test x$gcc_no_link = xyes; then |
22e05272 | 20664 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20665 | fi |
5213506e | 20666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20667 | /* end confdefs.h. */ |
20668 | ||
db9f46a9 TG |
20669 | #ifdef HAVE_COMPLEX_H |
20670 | #include <complex.h> | |
cc6d3bde | 20671 | #endif |
db9f46a9 TG |
20672 | #ifdef HAVE_MATH_H |
20673 | #include <math.h> | |
20674 | #endif | |
20675 | ||
20676 | int (*ptr)() = (int (*)())ldexp; | |
20677 | ||
cc6d3bde SK |
20678 | int |
20679 | main () | |
20680 | { | |
cc6d3bde SK |
20681 | return 0; |
20682 | } | |
db9f46a9 | 20683 | |
cc6d3bde | 20684 | _ACEOF |
5213506e | 20685 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20686 | gcc_cv_math_func_ldexp=yes |
cc6d3bde | 20687 | else |
db9f46a9 | 20688 | gcc_cv_math_func_ldexp=no |
cc6d3bde | 20689 | fi |
5213506e RW |
20690 | rm -f core conftest.err conftest.$ac_objext \ |
20691 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20692 | fi |
db9f46a9 TG |
20693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5 |
20694 | $as_echo "$gcc_cv_math_func_ldexp" >&6; } | |
20695 | if test $gcc_cv_math_func_ldexp = yes; then | |
f1cdfa01 | 20696 | |
f38a14ca TG |
20697 | cat >>confdefs.h <<_ACEOF |
20698 | #define HAVE_LDEXP 1 | |
20699 | _ACEOF | |
db9f46a9 TG |
20700 | |
20701 | fi | |
20702 | ||
cc6d3bde | 20703 | |
cc6d3bde | 20704 | |
cc6d3bde | 20705 | |
db9f46a9 TG |
20706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5 |
20707 | $as_echo_n "checking for ldexpl... " >&6; } | |
22e05272 | 20708 | if ${gcc_cv_math_func_ldexpl+:} false; then : |
5213506e | 20709 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20710 | else |
db9f46a9 | 20711 | if test x$gcc_no_link = xyes; then |
22e05272 | 20712 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20713 | fi |
5213506e | 20714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20715 | /* end confdefs.h. */ |
20716 | ||
db9f46a9 TG |
20717 | #ifdef HAVE_COMPLEX_H |
20718 | #include <complex.h> | |
20719 | #endif | |
20720 | #ifdef HAVE_MATH_H | |
20721 | #include <math.h> | |
1409cd0b | 20722 | #endif |
db9f46a9 TG |
20723 | |
20724 | int (*ptr)() = (int (*)())ldexpl; | |
20725 | ||
1409cd0b FXC |
20726 | int |
20727 | main () | |
20728 | { | |
1409cd0b FXC |
20729 | return 0; |
20730 | } | |
db9f46a9 | 20731 | |
1409cd0b | 20732 | _ACEOF |
5213506e | 20733 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20734 | gcc_cv_math_func_ldexpl=yes |
1409cd0b | 20735 | else |
db9f46a9 | 20736 | gcc_cv_math_func_ldexpl=no |
1409cd0b | 20737 | fi |
5213506e RW |
20738 | rm -f core conftest.err conftest.$ac_objext \ |
20739 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20740 | fi |
db9f46a9 TG |
20741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5 |
20742 | $as_echo "$gcc_cv_math_func_ldexpl" >&6; } | |
20743 | if test $gcc_cv_math_func_ldexpl = yes; then | |
f1cdfa01 | 20744 | |
f38a14ca TG |
20745 | cat >>confdefs.h <<_ACEOF |
20746 | #define HAVE_LDEXPL 1 | |
20747 | _ACEOF | |
db9f46a9 TG |
20748 | |
20749 | fi | |
1409cd0b | 20750 | |
1409cd0b | 20751 | |
1409cd0b | 20752 | |
db9f46a9 TG |
20753 | |
20754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5 | |
20755 | $as_echo_n "checking for logf... " >&6; } | |
22e05272 | 20756 | if ${gcc_cv_math_func_logf+:} false; then : |
5213506e | 20757 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20758 | else |
db9f46a9 | 20759 | if test x$gcc_no_link = xyes; then |
22e05272 | 20760 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20761 | fi |
5213506e | 20762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20763 | /* end confdefs.h. */ |
20764 | ||
db9f46a9 TG |
20765 | #ifdef HAVE_COMPLEX_H |
20766 | #include <complex.h> | |
1409cd0b | 20767 | #endif |
db9f46a9 TG |
20768 | #ifdef HAVE_MATH_H |
20769 | #include <math.h> | |
20770 | #endif | |
20771 | ||
20772 | int (*ptr)() = (int (*)())logf; | |
20773 | ||
1409cd0b FXC |
20774 | int |
20775 | main () | |
20776 | { | |
1409cd0b FXC |
20777 | return 0; |
20778 | } | |
db9f46a9 | 20779 | |
1409cd0b | 20780 | _ACEOF |
5213506e | 20781 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20782 | gcc_cv_math_func_logf=yes |
1409cd0b | 20783 | else |
db9f46a9 | 20784 | gcc_cv_math_func_logf=no |
1409cd0b | 20785 | fi |
5213506e RW |
20786 | rm -f core conftest.err conftest.$ac_objext \ |
20787 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20788 | fi |
db9f46a9 TG |
20789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5 |
20790 | $as_echo "$gcc_cv_math_func_logf" >&6; } | |
20791 | if test $gcc_cv_math_func_logf = yes; then | |
f1cdfa01 | 20792 | |
f38a14ca TG |
20793 | cat >>confdefs.h <<_ACEOF |
20794 | #define HAVE_LOGF 1 | |
20795 | _ACEOF | |
1409cd0b | 20796 | |
db9f46a9 | 20797 | fi |
1409cd0b | 20798 | |
1409cd0b | 20799 | |
db9f46a9 TG |
20800 | |
20801 | ||
20802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5 | |
20803 | $as_echo_n "checking for log... " >&6; } | |
22e05272 | 20804 | if ${gcc_cv_math_func_log+:} false; then : |
5213506e | 20805 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20806 | else |
db9f46a9 | 20807 | if test x$gcc_no_link = xyes; then |
22e05272 | 20808 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20809 | fi |
5213506e | 20810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20811 | /* end confdefs.h. */ |
20812 | ||
db9f46a9 TG |
20813 | #ifdef HAVE_COMPLEX_H |
20814 | #include <complex.h> | |
20815 | #endif | |
20816 | #ifdef HAVE_MATH_H | |
20817 | #include <math.h> | |
1409cd0b | 20818 | #endif |
db9f46a9 TG |
20819 | |
20820 | int (*ptr)() = (int (*)())log; | |
20821 | ||
1409cd0b FXC |
20822 | int |
20823 | main () | |
20824 | { | |
1409cd0b FXC |
20825 | return 0; |
20826 | } | |
db9f46a9 | 20827 | |
1409cd0b | 20828 | _ACEOF |
5213506e | 20829 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20830 | gcc_cv_math_func_log=yes |
1409cd0b | 20831 | else |
db9f46a9 | 20832 | gcc_cv_math_func_log=no |
1409cd0b | 20833 | fi |
5213506e RW |
20834 | rm -f core conftest.err conftest.$ac_objext \ |
20835 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20836 | fi |
db9f46a9 TG |
20837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5 |
20838 | $as_echo "$gcc_cv_math_func_log" >&6; } | |
20839 | if test $gcc_cv_math_func_log = yes; then | |
f1cdfa01 | 20840 | |
f38a14ca TG |
20841 | cat >>confdefs.h <<_ACEOF |
20842 | #define HAVE_LOG 1 | |
20843 | _ACEOF | |
db9f46a9 TG |
20844 | |
20845 | fi | |
1409cd0b | 20846 | |
1409cd0b | 20847 | |
1409cd0b | 20848 | |
db9f46a9 TG |
20849 | |
20850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5 | |
20851 | $as_echo_n "checking for logl... " >&6; } | |
22e05272 | 20852 | if ${gcc_cv_math_func_logl+:} false; then : |
5213506e | 20853 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20854 | else |
db9f46a9 | 20855 | if test x$gcc_no_link = xyes; then |
22e05272 | 20856 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20857 | fi |
5213506e | 20858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20859 | /* end confdefs.h. */ |
20860 | ||
db9f46a9 TG |
20861 | #ifdef HAVE_COMPLEX_H |
20862 | #include <complex.h> | |
1409cd0b | 20863 | #endif |
db9f46a9 TG |
20864 | #ifdef HAVE_MATH_H |
20865 | #include <math.h> | |
20866 | #endif | |
20867 | ||
20868 | int (*ptr)() = (int (*)())logl; | |
20869 | ||
1409cd0b FXC |
20870 | int |
20871 | main () | |
20872 | { | |
1409cd0b FXC |
20873 | return 0; |
20874 | } | |
db9f46a9 | 20875 | |
1409cd0b | 20876 | _ACEOF |
5213506e | 20877 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20878 | gcc_cv_math_func_logl=yes |
1409cd0b | 20879 | else |
db9f46a9 | 20880 | gcc_cv_math_func_logl=no |
1409cd0b | 20881 | fi |
5213506e RW |
20882 | rm -f core conftest.err conftest.$ac_objext \ |
20883 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20884 | fi |
db9f46a9 TG |
20885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5 |
20886 | $as_echo "$gcc_cv_math_func_logl" >&6; } | |
20887 | if test $gcc_cv_math_func_logl = yes; then | |
f1cdfa01 | 20888 | |
f38a14ca TG |
20889 | cat >>confdefs.h <<_ACEOF |
20890 | #define HAVE_LOGL 1 | |
20891 | _ACEOF | |
db9f46a9 TG |
20892 | |
20893 | fi | |
20894 | ||
1409cd0b | 20895 | |
1409cd0b | 20896 | |
1409cd0b | 20897 | |
db9f46a9 TG |
20898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5 |
20899 | $as_echo_n "checking for clogf... " >&6; } | |
22e05272 | 20900 | if ${gcc_cv_math_func_clogf+:} false; then : |
5213506e | 20901 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20902 | else |
db9f46a9 | 20903 | if test x$gcc_no_link = xyes; then |
22e05272 | 20904 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20905 | fi |
5213506e | 20906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20907 | /* end confdefs.h. */ |
20908 | ||
db9f46a9 TG |
20909 | #ifdef HAVE_COMPLEX_H |
20910 | #include <complex.h> | |
20911 | #endif | |
20912 | #ifdef HAVE_MATH_H | |
20913 | #include <math.h> | |
1409cd0b | 20914 | #endif |
db9f46a9 TG |
20915 | |
20916 | int (*ptr)() = (int (*)())clogf; | |
20917 | ||
1409cd0b FXC |
20918 | int |
20919 | main () | |
20920 | { | |
1409cd0b FXC |
20921 | return 0; |
20922 | } | |
db9f46a9 | 20923 | |
1409cd0b | 20924 | _ACEOF |
5213506e | 20925 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20926 | gcc_cv_math_func_clogf=yes |
1409cd0b | 20927 | else |
db9f46a9 | 20928 | gcc_cv_math_func_clogf=no |
1409cd0b | 20929 | fi |
5213506e RW |
20930 | rm -f core conftest.err conftest.$ac_objext \ |
20931 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20932 | fi |
db9f46a9 TG |
20933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5 |
20934 | $as_echo "$gcc_cv_math_func_clogf" >&6; } | |
20935 | if test $gcc_cv_math_func_clogf = yes; then | |
f1cdfa01 | 20936 | |
f38a14ca TG |
20937 | cat >>confdefs.h <<_ACEOF |
20938 | #define HAVE_CLOGF 1 | |
20939 | _ACEOF | |
db9f46a9 TG |
20940 | |
20941 | fi | |
1409cd0b | 20942 | |
1409cd0b | 20943 | |
1409cd0b | 20944 | |
db9f46a9 TG |
20945 | |
20946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5 | |
20947 | $as_echo_n "checking for clog... " >&6; } | |
22e05272 | 20948 | if ${gcc_cv_math_func_clog+:} false; then : |
5213506e | 20949 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20950 | else |
db9f46a9 | 20951 | if test x$gcc_no_link = xyes; then |
22e05272 | 20952 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20953 | fi |
5213506e | 20954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20955 | /* end confdefs.h. */ |
20956 | ||
db9f46a9 TG |
20957 | #ifdef HAVE_COMPLEX_H |
20958 | #include <complex.h> | |
1409cd0b | 20959 | #endif |
db9f46a9 TG |
20960 | #ifdef HAVE_MATH_H |
20961 | #include <math.h> | |
20962 | #endif | |
20963 | ||
20964 | int (*ptr)() = (int (*)())clog; | |
20965 | ||
1409cd0b FXC |
20966 | int |
20967 | main () | |
20968 | { | |
1409cd0b FXC |
20969 | return 0; |
20970 | } | |
db9f46a9 | 20971 | |
1409cd0b | 20972 | _ACEOF |
5213506e | 20973 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20974 | gcc_cv_math_func_clog=yes |
1409cd0b | 20975 | else |
db9f46a9 | 20976 | gcc_cv_math_func_clog=no |
1409cd0b | 20977 | fi |
5213506e RW |
20978 | rm -f core conftest.err conftest.$ac_objext \ |
20979 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20980 | fi |
db9f46a9 TG |
20981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5 |
20982 | $as_echo "$gcc_cv_math_func_clog" >&6; } | |
20983 | if test $gcc_cv_math_func_clog = yes; then | |
f1cdfa01 | 20984 | |
f38a14ca TG |
20985 | cat >>confdefs.h <<_ACEOF |
20986 | #define HAVE_CLOG 1 | |
20987 | _ACEOF | |
1409cd0b | 20988 | |
db9f46a9 | 20989 | fi |
1409cd0b | 20990 | |
1409cd0b | 20991 | |
db9f46a9 TG |
20992 | |
20993 | ||
20994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5 | |
20995 | $as_echo_n "checking for clogl... " >&6; } | |
22e05272 | 20996 | if ${gcc_cv_math_func_clogl+:} false; then : |
5213506e | 20997 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20998 | else |
db9f46a9 | 20999 | if test x$gcc_no_link = xyes; then |
22e05272 | 21000 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21001 | fi |
5213506e | 21002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21003 | /* end confdefs.h. */ |
21004 | ||
db9f46a9 TG |
21005 | #ifdef HAVE_COMPLEX_H |
21006 | #include <complex.h> | |
21007 | #endif | |
21008 | #ifdef HAVE_MATH_H | |
21009 | #include <math.h> | |
1409cd0b | 21010 | #endif |
db9f46a9 TG |
21011 | |
21012 | int (*ptr)() = (int (*)())clogl; | |
21013 | ||
1409cd0b FXC |
21014 | int |
21015 | main () | |
21016 | { | |
1409cd0b FXC |
21017 | return 0; |
21018 | } | |
db9f46a9 | 21019 | |
1409cd0b | 21020 | _ACEOF |
5213506e | 21021 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21022 | gcc_cv_math_func_clogl=yes |
1409cd0b | 21023 | else |
db9f46a9 | 21024 | gcc_cv_math_func_clogl=no |
1409cd0b | 21025 | fi |
5213506e RW |
21026 | rm -f core conftest.err conftest.$ac_objext \ |
21027 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21028 | fi |
db9f46a9 TG |
21029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5 |
21030 | $as_echo "$gcc_cv_math_func_clogl" >&6; } | |
21031 | if test $gcc_cv_math_func_clogl = yes; then | |
f1cdfa01 | 21032 | |
f38a14ca TG |
21033 | cat >>confdefs.h <<_ACEOF |
21034 | #define HAVE_CLOGL 1 | |
21035 | _ACEOF | |
db9f46a9 TG |
21036 | |
21037 | fi | |
1409cd0b | 21038 | |
1409cd0b | 21039 | |
1409cd0b | 21040 | |
db9f46a9 TG |
21041 | |
21042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5 | |
21043 | $as_echo_n "checking for log10f... " >&6; } | |
22e05272 | 21044 | if ${gcc_cv_math_func_log10f+:} false; then : |
5213506e | 21045 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21046 | else |
db9f46a9 | 21047 | if test x$gcc_no_link = xyes; then |
22e05272 | 21048 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21049 | fi |
5213506e | 21050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21051 | /* end confdefs.h. */ |
21052 | ||
db9f46a9 TG |
21053 | #ifdef HAVE_COMPLEX_H |
21054 | #include <complex.h> | |
1409cd0b | 21055 | #endif |
db9f46a9 TG |
21056 | #ifdef HAVE_MATH_H |
21057 | #include <math.h> | |
21058 | #endif | |
21059 | ||
21060 | int (*ptr)() = (int (*)())log10f; | |
21061 | ||
1409cd0b FXC |
21062 | int |
21063 | main () | |
21064 | { | |
1409cd0b FXC |
21065 | return 0; |
21066 | } | |
db9f46a9 | 21067 | |
1409cd0b | 21068 | _ACEOF |
5213506e | 21069 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21070 | gcc_cv_math_func_log10f=yes |
1409cd0b | 21071 | else |
db9f46a9 | 21072 | gcc_cv_math_func_log10f=no |
1409cd0b | 21073 | fi |
5213506e RW |
21074 | rm -f core conftest.err conftest.$ac_objext \ |
21075 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21076 | fi |
db9f46a9 TG |
21077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5 |
21078 | $as_echo "$gcc_cv_math_func_log10f" >&6; } | |
21079 | if test $gcc_cv_math_func_log10f = yes; then | |
f1cdfa01 | 21080 | |
f38a14ca TG |
21081 | cat >>confdefs.h <<_ACEOF |
21082 | #define HAVE_LOG10F 1 | |
21083 | _ACEOF | |
db9f46a9 TG |
21084 | |
21085 | fi | |
21086 | ||
1409cd0b | 21087 | |
1409cd0b | 21088 | |
1409cd0b | 21089 | |
db9f46a9 TG |
21090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5 |
21091 | $as_echo_n "checking for log10... " >&6; } | |
22e05272 | 21092 | if ${gcc_cv_math_func_log10+:} false; then : |
5213506e | 21093 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21094 | else |
db9f46a9 | 21095 | if test x$gcc_no_link = xyes; then |
22e05272 | 21096 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21097 | fi |
5213506e | 21098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21099 | /* end confdefs.h. */ |
21100 | ||
db9f46a9 TG |
21101 | #ifdef HAVE_COMPLEX_H |
21102 | #include <complex.h> | |
21103 | #endif | |
21104 | #ifdef HAVE_MATH_H | |
21105 | #include <math.h> | |
1409cd0b | 21106 | #endif |
db9f46a9 TG |
21107 | |
21108 | int (*ptr)() = (int (*)())log10; | |
21109 | ||
1409cd0b FXC |
21110 | int |
21111 | main () | |
21112 | { | |
1409cd0b FXC |
21113 | return 0; |
21114 | } | |
db9f46a9 | 21115 | |
1409cd0b | 21116 | _ACEOF |
5213506e | 21117 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21118 | gcc_cv_math_func_log10=yes |
1409cd0b | 21119 | else |
db9f46a9 | 21120 | gcc_cv_math_func_log10=no |
1409cd0b | 21121 | fi |
5213506e RW |
21122 | rm -f core conftest.err conftest.$ac_objext \ |
21123 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21124 | fi |
db9f46a9 TG |
21125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5 |
21126 | $as_echo "$gcc_cv_math_func_log10" >&6; } | |
21127 | if test $gcc_cv_math_func_log10 = yes; then | |
f1cdfa01 | 21128 | |
f38a14ca TG |
21129 | cat >>confdefs.h <<_ACEOF |
21130 | #define HAVE_LOG10 1 | |
21131 | _ACEOF | |
db9f46a9 TG |
21132 | |
21133 | fi | |
1409cd0b | 21134 | |
1409cd0b | 21135 | |
1409cd0b | 21136 | |
db9f46a9 TG |
21137 | |
21138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5 | |
21139 | $as_echo_n "checking for log10l... " >&6; } | |
22e05272 | 21140 | if ${gcc_cv_math_func_log10l+:} false; then : |
5213506e | 21141 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21142 | else |
db9f46a9 | 21143 | if test x$gcc_no_link = xyes; then |
22e05272 | 21144 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21145 | fi |
5213506e | 21146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21147 | /* end confdefs.h. */ |
21148 | ||
db9f46a9 TG |
21149 | #ifdef HAVE_COMPLEX_H |
21150 | #include <complex.h> | |
1409cd0b | 21151 | #endif |
db9f46a9 TG |
21152 | #ifdef HAVE_MATH_H |
21153 | #include <math.h> | |
21154 | #endif | |
21155 | ||
21156 | int (*ptr)() = (int (*)())log10l; | |
21157 | ||
1409cd0b FXC |
21158 | int |
21159 | main () | |
21160 | { | |
1409cd0b FXC |
21161 | return 0; |
21162 | } | |
db9f46a9 | 21163 | |
1409cd0b | 21164 | _ACEOF |
5213506e | 21165 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21166 | gcc_cv_math_func_log10l=yes |
1409cd0b | 21167 | else |
db9f46a9 | 21168 | gcc_cv_math_func_log10l=no |
1409cd0b | 21169 | fi |
5213506e RW |
21170 | rm -f core conftest.err conftest.$ac_objext \ |
21171 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21172 | fi |
db9f46a9 TG |
21173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5 |
21174 | $as_echo "$gcc_cv_math_func_log10l" >&6; } | |
21175 | if test $gcc_cv_math_func_log10l = yes; then | |
f1cdfa01 | 21176 | |
f38a14ca TG |
21177 | cat >>confdefs.h <<_ACEOF |
21178 | #define HAVE_LOG10L 1 | |
21179 | _ACEOF | |
1409cd0b | 21180 | |
db9f46a9 | 21181 | fi |
1409cd0b | 21182 | |
1409cd0b | 21183 | |
db9f46a9 TG |
21184 | |
21185 | ||
21186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5 | |
21187 | $as_echo_n "checking for clog10f... " >&6; } | |
22e05272 | 21188 | if ${gcc_cv_math_func_clog10f+:} false; then : |
5213506e | 21189 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21190 | else |
db9f46a9 | 21191 | if test x$gcc_no_link = xyes; then |
22e05272 | 21192 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21193 | fi |
5213506e | 21194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21195 | /* end confdefs.h. */ |
21196 | ||
db9f46a9 TG |
21197 | #ifdef HAVE_COMPLEX_H |
21198 | #include <complex.h> | |
21199 | #endif | |
21200 | #ifdef HAVE_MATH_H | |
21201 | #include <math.h> | |
1409cd0b | 21202 | #endif |
db9f46a9 TG |
21203 | |
21204 | int (*ptr)() = (int (*)())clog10f; | |
21205 | ||
1409cd0b FXC |
21206 | int |
21207 | main () | |
21208 | { | |
1409cd0b FXC |
21209 | return 0; |
21210 | } | |
db9f46a9 | 21211 | |
1409cd0b | 21212 | _ACEOF |
5213506e | 21213 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21214 | gcc_cv_math_func_clog10f=yes |
1409cd0b | 21215 | else |
db9f46a9 | 21216 | gcc_cv_math_func_clog10f=no |
1409cd0b | 21217 | fi |
5213506e RW |
21218 | rm -f core conftest.err conftest.$ac_objext \ |
21219 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21220 | fi |
db9f46a9 TG |
21221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5 |
21222 | $as_echo "$gcc_cv_math_func_clog10f" >&6; } | |
21223 | if test $gcc_cv_math_func_clog10f = yes; then | |
f1cdfa01 | 21224 | |
f38a14ca TG |
21225 | cat >>confdefs.h <<_ACEOF |
21226 | #define HAVE_CLOG10F 1 | |
21227 | _ACEOF | |
db9f46a9 TG |
21228 | |
21229 | fi | |
1409cd0b | 21230 | |
1409cd0b | 21231 | |
1409cd0b | 21232 | |
db9f46a9 TG |
21233 | |
21234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5 | |
21235 | $as_echo_n "checking for clog10... " >&6; } | |
22e05272 | 21236 | if ${gcc_cv_math_func_clog10+:} false; then : |
5213506e | 21237 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21238 | else |
db9f46a9 | 21239 | if test x$gcc_no_link = xyes; then |
22e05272 | 21240 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21241 | fi |
5213506e | 21242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21243 | /* end confdefs.h. */ |
21244 | ||
db9f46a9 TG |
21245 | #ifdef HAVE_COMPLEX_H |
21246 | #include <complex.h> | |
1409cd0b | 21247 | #endif |
db9f46a9 TG |
21248 | #ifdef HAVE_MATH_H |
21249 | #include <math.h> | |
21250 | #endif | |
21251 | ||
21252 | int (*ptr)() = (int (*)())clog10; | |
21253 | ||
1409cd0b FXC |
21254 | int |
21255 | main () | |
21256 | { | |
5213506e RW |
21257 | return 0; |
21258 | } | |
db9f46a9 | 21259 | |
5213506e RW |
21260 | _ACEOF |
21261 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 21262 | gcc_cv_math_func_clog10=yes |
1409cd0b | 21263 | else |
db9f46a9 | 21264 | gcc_cv_math_func_clog10=no |
1409cd0b | 21265 | fi |
5213506e RW |
21266 | rm -f core conftest.err conftest.$ac_objext \ |
21267 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21268 | fi |
db9f46a9 TG |
21269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5 |
21270 | $as_echo "$gcc_cv_math_func_clog10" >&6; } | |
21271 | if test $gcc_cv_math_func_clog10 = yes; then | |
f1cdfa01 | 21272 | |
f38a14ca TG |
21273 | cat >>confdefs.h <<_ACEOF |
21274 | #define HAVE_CLOG10 1 | |
21275 | _ACEOF | |
db9f46a9 TG |
21276 | |
21277 | fi | |
21278 | ||
1409cd0b | 21279 | |
1409cd0b | 21280 | |
1409cd0b | 21281 | |
db9f46a9 TG |
21282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5 |
21283 | $as_echo_n "checking for clog10l... " >&6; } | |
22e05272 | 21284 | if ${gcc_cv_math_func_clog10l+:} false; then : |
5213506e | 21285 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21286 | else |
db9f46a9 | 21287 | if test x$gcc_no_link = xyes; then |
22e05272 | 21288 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21289 | fi |
5213506e | 21290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21291 | /* end confdefs.h. */ |
21292 | ||
db9f46a9 TG |
21293 | #ifdef HAVE_COMPLEX_H |
21294 | #include <complex.h> | |
21295 | #endif | |
21296 | #ifdef HAVE_MATH_H | |
21297 | #include <math.h> | |
1409cd0b | 21298 | #endif |
db9f46a9 TG |
21299 | |
21300 | int (*ptr)() = (int (*)())clog10l; | |
21301 | ||
1409cd0b FXC |
21302 | int |
21303 | main () | |
21304 | { | |
1409cd0b FXC |
21305 | return 0; |
21306 | } | |
db9f46a9 | 21307 | |
1409cd0b | 21308 | _ACEOF |
5213506e | 21309 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21310 | gcc_cv_math_func_clog10l=yes |
1409cd0b | 21311 | else |
db9f46a9 | 21312 | gcc_cv_math_func_clog10l=no |
1409cd0b | 21313 | fi |
5213506e RW |
21314 | rm -f core conftest.err conftest.$ac_objext \ |
21315 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21316 | fi |
db9f46a9 TG |
21317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5 |
21318 | $as_echo "$gcc_cv_math_func_clog10l" >&6; } | |
21319 | if test $gcc_cv_math_func_clog10l = yes; then | |
f1cdfa01 | 21320 | |
f38a14ca TG |
21321 | cat >>confdefs.h <<_ACEOF |
21322 | #define HAVE_CLOG10L 1 | |
21323 | _ACEOF | |
db9f46a9 TG |
21324 | |
21325 | fi | |
1409cd0b | 21326 | |
1409cd0b | 21327 | |
1409cd0b | 21328 | |
db9f46a9 TG |
21329 | |
21330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5 | |
21331 | $as_echo_n "checking for nextafterf... " >&6; } | |
22e05272 | 21332 | if ${gcc_cv_math_func_nextafterf+:} false; then : |
5213506e | 21333 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21334 | else |
db9f46a9 | 21335 | if test x$gcc_no_link = xyes; then |
22e05272 | 21336 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21337 | fi |
5213506e | 21338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21339 | /* end confdefs.h. */ |
21340 | ||
db9f46a9 TG |
21341 | #ifdef HAVE_COMPLEX_H |
21342 | #include <complex.h> | |
1409cd0b | 21343 | #endif |
db9f46a9 TG |
21344 | #ifdef HAVE_MATH_H |
21345 | #include <math.h> | |
21346 | #endif | |
21347 | ||
21348 | int (*ptr)() = (int (*)())nextafterf; | |
21349 | ||
1409cd0b FXC |
21350 | int |
21351 | main () | |
21352 | { | |
1409cd0b FXC |
21353 | return 0; |
21354 | } | |
db9f46a9 | 21355 | |
1409cd0b | 21356 | _ACEOF |
5213506e | 21357 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21358 | gcc_cv_math_func_nextafterf=yes |
1409cd0b | 21359 | else |
db9f46a9 | 21360 | gcc_cv_math_func_nextafterf=no |
1409cd0b | 21361 | fi |
5213506e RW |
21362 | rm -f core conftest.err conftest.$ac_objext \ |
21363 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21364 | fi |
db9f46a9 TG |
21365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5 |
21366 | $as_echo "$gcc_cv_math_func_nextafterf" >&6; } | |
21367 | if test $gcc_cv_math_func_nextafterf = yes; then | |
f1cdfa01 | 21368 | |
f38a14ca TG |
21369 | cat >>confdefs.h <<_ACEOF |
21370 | #define HAVE_NEXTAFTERF 1 | |
21371 | _ACEOF | |
1409cd0b | 21372 | |
db9f46a9 | 21373 | fi |
1409cd0b | 21374 | |
1409cd0b | 21375 | |
db9f46a9 TG |
21376 | |
21377 | ||
21378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5 | |
21379 | $as_echo_n "checking for nextafter... " >&6; } | |
22e05272 | 21380 | if ${gcc_cv_math_func_nextafter+:} false; then : |
5213506e | 21381 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21382 | else |
db9f46a9 | 21383 | if test x$gcc_no_link = xyes; then |
22e05272 | 21384 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21385 | fi |
5213506e | 21386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21387 | /* end confdefs.h. */ |
21388 | ||
db9f46a9 TG |
21389 | #ifdef HAVE_COMPLEX_H |
21390 | #include <complex.h> | |
21391 | #endif | |
21392 | #ifdef HAVE_MATH_H | |
21393 | #include <math.h> | |
1409cd0b | 21394 | #endif |
db9f46a9 TG |
21395 | |
21396 | int (*ptr)() = (int (*)())nextafter; | |
21397 | ||
1409cd0b FXC |
21398 | int |
21399 | main () | |
21400 | { | |
1409cd0b FXC |
21401 | return 0; |
21402 | } | |
db9f46a9 | 21403 | |
1409cd0b | 21404 | _ACEOF |
5213506e | 21405 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21406 | gcc_cv_math_func_nextafter=yes |
1409cd0b | 21407 | else |
db9f46a9 | 21408 | gcc_cv_math_func_nextafter=no |
1409cd0b | 21409 | fi |
5213506e RW |
21410 | rm -f core conftest.err conftest.$ac_objext \ |
21411 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21412 | fi |
db9f46a9 TG |
21413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5 |
21414 | $as_echo "$gcc_cv_math_func_nextafter" >&6; } | |
21415 | if test $gcc_cv_math_func_nextafter = yes; then | |
f1cdfa01 | 21416 | |
f38a14ca TG |
21417 | cat >>confdefs.h <<_ACEOF |
21418 | #define HAVE_NEXTAFTER 1 | |
21419 | _ACEOF | |
db9f46a9 TG |
21420 | |
21421 | fi | |
1409cd0b | 21422 | |
1409cd0b | 21423 | |
1409cd0b | 21424 | |
db9f46a9 TG |
21425 | |
21426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5 | |
21427 | $as_echo_n "checking for nextafterl... " >&6; } | |
22e05272 | 21428 | if ${gcc_cv_math_func_nextafterl+:} false; then : |
5213506e | 21429 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21430 | else |
db9f46a9 | 21431 | if test x$gcc_no_link = xyes; then |
22e05272 | 21432 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21433 | fi |
5213506e | 21434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21435 | /* end confdefs.h. */ |
21436 | ||
db9f46a9 TG |
21437 | #ifdef HAVE_COMPLEX_H |
21438 | #include <complex.h> | |
1409cd0b | 21439 | #endif |
db9f46a9 TG |
21440 | #ifdef HAVE_MATH_H |
21441 | #include <math.h> | |
21442 | #endif | |
21443 | ||
21444 | int (*ptr)() = (int (*)())nextafterl; | |
21445 | ||
1409cd0b FXC |
21446 | int |
21447 | main () | |
21448 | { | |
1409cd0b FXC |
21449 | return 0; |
21450 | } | |
db9f46a9 | 21451 | |
1409cd0b | 21452 | _ACEOF |
5213506e | 21453 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21454 | gcc_cv_math_func_nextafterl=yes |
1409cd0b | 21455 | else |
db9f46a9 | 21456 | gcc_cv_math_func_nextafterl=no |
1409cd0b | 21457 | fi |
5213506e RW |
21458 | rm -f core conftest.err conftest.$ac_objext \ |
21459 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21460 | fi |
db9f46a9 TG |
21461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5 |
21462 | $as_echo "$gcc_cv_math_func_nextafterl" >&6; } | |
21463 | if test $gcc_cv_math_func_nextafterl = yes; then | |
f1cdfa01 | 21464 | |
f38a14ca TG |
21465 | cat >>confdefs.h <<_ACEOF |
21466 | #define HAVE_NEXTAFTERL 1 | |
21467 | _ACEOF | |
db9f46a9 TG |
21468 | |
21469 | fi | |
21470 | ||
1409cd0b | 21471 | |
1409cd0b | 21472 | |
1409cd0b | 21473 | |
db9f46a9 TG |
21474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5 |
21475 | $as_echo_n "checking for powf... " >&6; } | |
22e05272 | 21476 | if ${gcc_cv_math_func_powf+:} false; then : |
5213506e | 21477 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21478 | else |
db9f46a9 | 21479 | if test x$gcc_no_link = xyes; then |
22e05272 | 21480 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21481 | fi |
5213506e | 21482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21483 | /* end confdefs.h. */ |
21484 | ||
db9f46a9 TG |
21485 | #ifdef HAVE_COMPLEX_H |
21486 | #include <complex.h> | |
21487 | #endif | |
21488 | #ifdef HAVE_MATH_H | |
21489 | #include <math.h> | |
1409cd0b | 21490 | #endif |
db9f46a9 TG |
21491 | |
21492 | int (*ptr)() = (int (*)())powf; | |
21493 | ||
1409cd0b FXC |
21494 | int |
21495 | main () | |
21496 | { | |
1409cd0b FXC |
21497 | return 0; |
21498 | } | |
db9f46a9 | 21499 | |
1409cd0b | 21500 | _ACEOF |
5213506e | 21501 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21502 | gcc_cv_math_func_powf=yes |
1409cd0b | 21503 | else |
db9f46a9 | 21504 | gcc_cv_math_func_powf=no |
1409cd0b | 21505 | fi |
5213506e RW |
21506 | rm -f core conftest.err conftest.$ac_objext \ |
21507 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21508 | fi |
db9f46a9 TG |
21509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5 |
21510 | $as_echo "$gcc_cv_math_func_powf" >&6; } | |
21511 | if test $gcc_cv_math_func_powf = yes; then | |
f1cdfa01 | 21512 | |
f38a14ca TG |
21513 | cat >>confdefs.h <<_ACEOF |
21514 | #define HAVE_POWF 1 | |
21515 | _ACEOF | |
db9f46a9 TG |
21516 | |
21517 | fi | |
1409cd0b | 21518 | |
1409cd0b | 21519 | |
1409cd0b | 21520 | |
db9f46a9 TG |
21521 | |
21522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5 | |
21523 | $as_echo_n "checking for pow... " >&6; } | |
22e05272 | 21524 | if ${gcc_cv_math_func_pow+:} false; then : |
5213506e | 21525 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21526 | else |
db9f46a9 | 21527 | if test x$gcc_no_link = xyes; then |
22e05272 | 21528 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21529 | fi |
5213506e | 21530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21531 | /* end confdefs.h. */ |
21532 | ||
db9f46a9 TG |
21533 | #ifdef HAVE_COMPLEX_H |
21534 | #include <complex.h> | |
1409cd0b | 21535 | #endif |
db9f46a9 TG |
21536 | #ifdef HAVE_MATH_H |
21537 | #include <math.h> | |
21538 | #endif | |
21539 | ||
21540 | int (*ptr)() = (int (*)())pow; | |
21541 | ||
1409cd0b FXC |
21542 | int |
21543 | main () | |
21544 | { | |
1409cd0b FXC |
21545 | return 0; |
21546 | } | |
db9f46a9 | 21547 | |
1409cd0b | 21548 | _ACEOF |
5213506e | 21549 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21550 | gcc_cv_math_func_pow=yes |
1409cd0b | 21551 | else |
db9f46a9 | 21552 | gcc_cv_math_func_pow=no |
1409cd0b | 21553 | fi |
5213506e RW |
21554 | rm -f core conftest.err conftest.$ac_objext \ |
21555 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21556 | fi |
db9f46a9 TG |
21557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5 |
21558 | $as_echo "$gcc_cv_math_func_pow" >&6; } | |
21559 | if test $gcc_cv_math_func_pow = yes; then | |
f1cdfa01 | 21560 | |
f38a14ca TG |
21561 | cat >>confdefs.h <<_ACEOF |
21562 | #define HAVE_POW 1 | |
21563 | _ACEOF | |
1409cd0b | 21564 | |
db9f46a9 | 21565 | fi |
1409cd0b | 21566 | |
1409cd0b | 21567 | |
db9f46a9 TG |
21568 | |
21569 | ||
db9f46a9 TG |
21570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5 |
21571 | $as_echo_n "checking for cpowf... " >&6; } | |
22e05272 | 21572 | if ${gcc_cv_math_func_cpowf+:} false; then : |
5213506e | 21573 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21574 | else |
db9f46a9 | 21575 | if test x$gcc_no_link = xyes; then |
22e05272 | 21576 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21577 | fi |
5213506e | 21578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21579 | /* end confdefs.h. */ |
21580 | ||
db9f46a9 TG |
21581 | #ifdef HAVE_COMPLEX_H |
21582 | #include <complex.h> | |
1409cd0b | 21583 | #endif |
db9f46a9 TG |
21584 | #ifdef HAVE_MATH_H |
21585 | #include <math.h> | |
21586 | #endif | |
21587 | ||
21588 | int (*ptr)() = (int (*)())cpowf; | |
21589 | ||
1409cd0b FXC |
21590 | int |
21591 | main () | |
21592 | { | |
1409cd0b FXC |
21593 | return 0; |
21594 | } | |
db9f46a9 | 21595 | |
1409cd0b | 21596 | _ACEOF |
5213506e | 21597 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21598 | gcc_cv_math_func_cpowf=yes |
1409cd0b | 21599 | else |
db9f46a9 | 21600 | gcc_cv_math_func_cpowf=no |
1409cd0b | 21601 | fi |
5213506e RW |
21602 | rm -f core conftest.err conftest.$ac_objext \ |
21603 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21604 | fi |
db9f46a9 TG |
21605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5 |
21606 | $as_echo "$gcc_cv_math_func_cpowf" >&6; } | |
21607 | if test $gcc_cv_math_func_cpowf = yes; then | |
f1cdfa01 | 21608 | |
f38a14ca TG |
21609 | cat >>confdefs.h <<_ACEOF |
21610 | #define HAVE_CPOWF 1 | |
21611 | _ACEOF | |
db9f46a9 TG |
21612 | |
21613 | fi | |
21614 | ||
1409cd0b | 21615 | |
1409cd0b | 21616 | |
1409cd0b | 21617 | |
db9f46a9 TG |
21618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5 |
21619 | $as_echo_n "checking for cpow... " >&6; } | |
22e05272 | 21620 | if ${gcc_cv_math_func_cpow+:} false; then : |
5213506e | 21621 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21622 | else |
db9f46a9 | 21623 | if test x$gcc_no_link = xyes; then |
22e05272 | 21624 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21625 | fi |
5213506e | 21626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21627 | /* end confdefs.h. */ |
21628 | ||
db9f46a9 TG |
21629 | #ifdef HAVE_COMPLEX_H |
21630 | #include <complex.h> | |
21631 | #endif | |
21632 | #ifdef HAVE_MATH_H | |
21633 | #include <math.h> | |
1409cd0b | 21634 | #endif |
db9f46a9 TG |
21635 | |
21636 | int (*ptr)() = (int (*)())cpow; | |
21637 | ||
1409cd0b FXC |
21638 | int |
21639 | main () | |
21640 | { | |
1409cd0b FXC |
21641 | return 0; |
21642 | } | |
db9f46a9 | 21643 | |
1409cd0b | 21644 | _ACEOF |
5213506e | 21645 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21646 | gcc_cv_math_func_cpow=yes |
1409cd0b | 21647 | else |
db9f46a9 | 21648 | gcc_cv_math_func_cpow=no |
1409cd0b | 21649 | fi |
5213506e RW |
21650 | rm -f core conftest.err conftest.$ac_objext \ |
21651 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21652 | fi |
db9f46a9 TG |
21653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5 |
21654 | $as_echo "$gcc_cv_math_func_cpow" >&6; } | |
21655 | if test $gcc_cv_math_func_cpow = yes; then | |
f1cdfa01 | 21656 | |
f38a14ca TG |
21657 | cat >>confdefs.h <<_ACEOF |
21658 | #define HAVE_CPOW 1 | |
21659 | _ACEOF | |
db9f46a9 TG |
21660 | |
21661 | fi | |
1409cd0b | 21662 | |
1409cd0b | 21663 | |
1409cd0b | 21664 | |
db9f46a9 TG |
21665 | |
21666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5 | |
21667 | $as_echo_n "checking for cpowl... " >&6; } | |
22e05272 | 21668 | if ${gcc_cv_math_func_cpowl+:} false; then : |
5213506e | 21669 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21670 | else |
db9f46a9 | 21671 | if test x$gcc_no_link = xyes; then |
22e05272 | 21672 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21673 | fi |
5213506e | 21674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21675 | /* end confdefs.h. */ |
21676 | ||
db9f46a9 TG |
21677 | #ifdef HAVE_COMPLEX_H |
21678 | #include <complex.h> | |
1409cd0b | 21679 | #endif |
db9f46a9 TG |
21680 | #ifdef HAVE_MATH_H |
21681 | #include <math.h> | |
21682 | #endif | |
21683 | ||
21684 | int (*ptr)() = (int (*)())cpowl; | |
21685 | ||
1409cd0b FXC |
21686 | int |
21687 | main () | |
21688 | { | |
1409cd0b FXC |
21689 | return 0; |
21690 | } | |
db9f46a9 | 21691 | |
1409cd0b | 21692 | _ACEOF |
5213506e | 21693 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21694 | gcc_cv_math_func_cpowl=yes |
1409cd0b | 21695 | else |
db9f46a9 | 21696 | gcc_cv_math_func_cpowl=no |
1409cd0b | 21697 | fi |
5213506e RW |
21698 | rm -f core conftest.err conftest.$ac_objext \ |
21699 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21700 | fi |
db9f46a9 TG |
21701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5 |
21702 | $as_echo "$gcc_cv_math_func_cpowl" >&6; } | |
21703 | if test $gcc_cv_math_func_cpowl = yes; then | |
f1cdfa01 | 21704 | |
f38a14ca TG |
21705 | cat >>confdefs.h <<_ACEOF |
21706 | #define HAVE_CPOWL 1 | |
21707 | _ACEOF | |
1409cd0b | 21708 | |
db9f46a9 | 21709 | fi |
1409cd0b | 21710 | |
1409cd0b | 21711 | |
db9f46a9 TG |
21712 | |
21713 | ||
21714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5 | |
21715 | $as_echo_n "checking for roundf... " >&6; } | |
22e05272 | 21716 | if ${gcc_cv_math_func_roundf+:} false; then : |
5213506e | 21717 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21718 | else |
db9f46a9 | 21719 | if test x$gcc_no_link = xyes; then |
22e05272 | 21720 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21721 | fi |
5213506e | 21722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21723 | /* end confdefs.h. */ |
21724 | ||
db9f46a9 TG |
21725 | #ifdef HAVE_COMPLEX_H |
21726 | #include <complex.h> | |
21727 | #endif | |
21728 | #ifdef HAVE_MATH_H | |
21729 | #include <math.h> | |
1409cd0b | 21730 | #endif |
db9f46a9 TG |
21731 | |
21732 | int (*ptr)() = (int (*)())roundf; | |
21733 | ||
1409cd0b FXC |
21734 | int |
21735 | main () | |
21736 | { | |
1409cd0b FXC |
21737 | return 0; |
21738 | } | |
db9f46a9 | 21739 | |
1409cd0b | 21740 | _ACEOF |
5213506e | 21741 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21742 | gcc_cv_math_func_roundf=yes |
1409cd0b | 21743 | else |
db9f46a9 | 21744 | gcc_cv_math_func_roundf=no |
1409cd0b | 21745 | fi |
5213506e RW |
21746 | rm -f core conftest.err conftest.$ac_objext \ |
21747 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21748 | fi |
db9f46a9 TG |
21749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5 |
21750 | $as_echo "$gcc_cv_math_func_roundf" >&6; } | |
21751 | if test $gcc_cv_math_func_roundf = yes; then | |
f1cdfa01 | 21752 | |
f38a14ca TG |
21753 | cat >>confdefs.h <<_ACEOF |
21754 | #define HAVE_ROUNDF 1 | |
21755 | _ACEOF | |
db9f46a9 TG |
21756 | |
21757 | fi | |
1409cd0b | 21758 | |
1409cd0b | 21759 | |
1409cd0b | 21760 | |
db9f46a9 TG |
21761 | |
21762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5 | |
21763 | $as_echo_n "checking for round... " >&6; } | |
22e05272 | 21764 | if ${gcc_cv_math_func_round+:} false; then : |
5213506e | 21765 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21766 | else |
db9f46a9 | 21767 | if test x$gcc_no_link = xyes; then |
22e05272 | 21768 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21769 | fi |
5213506e | 21770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21771 | /* end confdefs.h. */ |
21772 | ||
db9f46a9 TG |
21773 | #ifdef HAVE_COMPLEX_H |
21774 | #include <complex.h> | |
1409cd0b | 21775 | #endif |
db9f46a9 TG |
21776 | #ifdef HAVE_MATH_H |
21777 | #include <math.h> | |
21778 | #endif | |
21779 | ||
21780 | int (*ptr)() = (int (*)())round; | |
21781 | ||
1409cd0b FXC |
21782 | int |
21783 | main () | |
21784 | { | |
1409cd0b FXC |
21785 | return 0; |
21786 | } | |
db9f46a9 | 21787 | |
1409cd0b | 21788 | _ACEOF |
5213506e | 21789 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21790 | gcc_cv_math_func_round=yes |
1409cd0b | 21791 | else |
db9f46a9 | 21792 | gcc_cv_math_func_round=no |
1409cd0b | 21793 | fi |
5213506e RW |
21794 | rm -f core conftest.err conftest.$ac_objext \ |
21795 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21796 | fi |
db9f46a9 TG |
21797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5 |
21798 | $as_echo "$gcc_cv_math_func_round" >&6; } | |
21799 | if test $gcc_cv_math_func_round = yes; then | |
f1cdfa01 | 21800 | |
f38a14ca TG |
21801 | cat >>confdefs.h <<_ACEOF |
21802 | #define HAVE_ROUND 1 | |
21803 | _ACEOF | |
db9f46a9 TG |
21804 | |
21805 | fi | |
21806 | ||
1409cd0b | 21807 | |
1409cd0b | 21808 | |
1409cd0b | 21809 | |
db9f46a9 TG |
21810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5 |
21811 | $as_echo_n "checking for roundl... " >&6; } | |
22e05272 | 21812 | if ${gcc_cv_math_func_roundl+:} false; then : |
5213506e | 21813 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21814 | else |
db9f46a9 | 21815 | if test x$gcc_no_link = xyes; then |
22e05272 | 21816 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21817 | fi |
5213506e | 21818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21819 | /* end confdefs.h. */ |
21820 | ||
db9f46a9 TG |
21821 | #ifdef HAVE_COMPLEX_H |
21822 | #include <complex.h> | |
21823 | #endif | |
21824 | #ifdef HAVE_MATH_H | |
21825 | #include <math.h> | |
94f548c2 | 21826 | #endif |
db9f46a9 TG |
21827 | |
21828 | int (*ptr)() = (int (*)())roundl; | |
21829 | ||
94f548c2 FXC |
21830 | int |
21831 | main () | |
21832 | { | |
94f548c2 FXC |
21833 | return 0; |
21834 | } | |
db9f46a9 | 21835 | |
94f548c2 | 21836 | _ACEOF |
5213506e | 21837 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21838 | gcc_cv_math_func_roundl=yes |
94f548c2 | 21839 | else |
db9f46a9 | 21840 | gcc_cv_math_func_roundl=no |
94f548c2 | 21841 | fi |
5213506e RW |
21842 | rm -f core conftest.err conftest.$ac_objext \ |
21843 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21844 | fi |
db9f46a9 TG |
21845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5 |
21846 | $as_echo "$gcc_cv_math_func_roundl" >&6; } | |
21847 | if test $gcc_cv_math_func_roundl = yes; then | |
f1cdfa01 | 21848 | |
f38a14ca TG |
21849 | cat >>confdefs.h <<_ACEOF |
21850 | #define HAVE_ROUNDL 1 | |
21851 | _ACEOF | |
db9f46a9 TG |
21852 | |
21853 | fi | |
94f548c2 | 21854 | |
94f548c2 | 21855 | |
94f548c2 | 21856 | |
db9f46a9 TG |
21857 | |
21858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5 | |
21859 | $as_echo_n "checking for lroundf... " >&6; } | |
22e05272 | 21860 | if ${gcc_cv_math_func_lroundf+:} false; then : |
5213506e | 21861 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21862 | else |
db9f46a9 | 21863 | if test x$gcc_no_link = xyes; then |
22e05272 | 21864 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21865 | fi |
5213506e | 21866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21867 | /* end confdefs.h. */ |
21868 | ||
db9f46a9 TG |
21869 | #ifdef HAVE_COMPLEX_H |
21870 | #include <complex.h> | |
94f548c2 | 21871 | #endif |
db9f46a9 TG |
21872 | #ifdef HAVE_MATH_H |
21873 | #include <math.h> | |
21874 | #endif | |
21875 | ||
21876 | int (*ptr)() = (int (*)())lroundf; | |
21877 | ||
94f548c2 FXC |
21878 | int |
21879 | main () | |
21880 | { | |
94f548c2 FXC |
21881 | return 0; |
21882 | } | |
db9f46a9 | 21883 | |
94f548c2 | 21884 | _ACEOF |
5213506e | 21885 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21886 | gcc_cv_math_func_lroundf=yes |
94f548c2 | 21887 | else |
db9f46a9 | 21888 | gcc_cv_math_func_lroundf=no |
94f548c2 | 21889 | fi |
5213506e RW |
21890 | rm -f core conftest.err conftest.$ac_objext \ |
21891 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21892 | fi |
db9f46a9 TG |
21893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5 |
21894 | $as_echo "$gcc_cv_math_func_lroundf" >&6; } | |
21895 | if test $gcc_cv_math_func_lroundf = yes; then | |
f1cdfa01 | 21896 | |
f38a14ca TG |
21897 | cat >>confdefs.h <<_ACEOF |
21898 | #define HAVE_LROUNDF 1 | |
21899 | _ACEOF | |
94f548c2 | 21900 | |
db9f46a9 | 21901 | fi |
94f548c2 | 21902 | |
94f548c2 | 21903 | |
db9f46a9 TG |
21904 | |
21905 | ||
21906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5 | |
21907 | $as_echo_n "checking for lround... " >&6; } | |
22e05272 | 21908 | if ${gcc_cv_math_func_lround+:} false; then : |
5213506e | 21909 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21910 | else |
db9f46a9 | 21911 | if test x$gcc_no_link = xyes; then |
22e05272 | 21912 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21913 | fi |
5213506e | 21914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21915 | /* end confdefs.h. */ |
21916 | ||
db9f46a9 TG |
21917 | #ifdef HAVE_COMPLEX_H |
21918 | #include <complex.h> | |
21919 | #endif | |
21920 | #ifdef HAVE_MATH_H | |
21921 | #include <math.h> | |
94f548c2 | 21922 | #endif |
db9f46a9 TG |
21923 | |
21924 | int (*ptr)() = (int (*)())lround; | |
21925 | ||
94f548c2 FXC |
21926 | int |
21927 | main () | |
21928 | { | |
94f548c2 FXC |
21929 | return 0; |
21930 | } | |
db9f46a9 | 21931 | |
94f548c2 | 21932 | _ACEOF |
5213506e | 21933 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21934 | gcc_cv_math_func_lround=yes |
94f548c2 | 21935 | else |
db9f46a9 | 21936 | gcc_cv_math_func_lround=no |
94f548c2 | 21937 | fi |
5213506e RW |
21938 | rm -f core conftest.err conftest.$ac_objext \ |
21939 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21940 | fi |
db9f46a9 TG |
21941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5 |
21942 | $as_echo "$gcc_cv_math_func_lround" >&6; } | |
21943 | if test $gcc_cv_math_func_lround = yes; then | |
f1cdfa01 | 21944 | |
f38a14ca TG |
21945 | cat >>confdefs.h <<_ACEOF |
21946 | #define HAVE_LROUND 1 | |
21947 | _ACEOF | |
db9f46a9 TG |
21948 | |
21949 | fi | |
21950 | ||
94f548c2 | 21951 | |
94f548c2 | 21952 | |
94f548c2 | 21953 | |
db9f46a9 TG |
21954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5 |
21955 | $as_echo_n "checking for lroundl... " >&6; } | |
22e05272 | 21956 | if ${gcc_cv_math_func_lroundl+:} false; then : |
5213506e | 21957 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21958 | else |
db9f46a9 | 21959 | if test x$gcc_no_link = xyes; then |
22e05272 | 21960 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21961 | fi |
5213506e | 21962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21963 | /* end confdefs.h. */ |
21964 | ||
db9f46a9 TG |
21965 | #ifdef HAVE_COMPLEX_H |
21966 | #include <complex.h> | |
21967 | #endif | |
21968 | #ifdef HAVE_MATH_H | |
21969 | #include <math.h> | |
94f548c2 | 21970 | #endif |
db9f46a9 TG |
21971 | |
21972 | int (*ptr)() = (int (*)())lroundl; | |
21973 | ||
94f548c2 FXC |
21974 | int |
21975 | main () | |
21976 | { | |
94f548c2 FXC |
21977 | return 0; |
21978 | } | |
db9f46a9 | 21979 | |
94f548c2 | 21980 | _ACEOF |
5213506e | 21981 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21982 | gcc_cv_math_func_lroundl=yes |
94f548c2 | 21983 | else |
db9f46a9 | 21984 | gcc_cv_math_func_lroundl=no |
94f548c2 | 21985 | fi |
5213506e RW |
21986 | rm -f core conftest.err conftest.$ac_objext \ |
21987 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21988 | fi |
db9f46a9 TG |
21989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5 |
21990 | $as_echo "$gcc_cv_math_func_lroundl" >&6; } | |
21991 | if test $gcc_cv_math_func_lroundl = yes; then | |
f1cdfa01 | 21992 | |
f38a14ca TG |
21993 | cat >>confdefs.h <<_ACEOF |
21994 | #define HAVE_LROUNDL 1 | |
21995 | _ACEOF | |
94f548c2 | 21996 | |
db9f46a9 | 21997 | fi |
94f548c2 | 21998 | |
94f548c2 | 21999 | |
db9f46a9 TG |
22000 | |
22001 | ||
22002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5 | |
22003 | $as_echo_n "checking for llroundf... " >&6; } | |
22e05272 | 22004 | if ${gcc_cv_math_func_llroundf+:} false; then : |
5213506e | 22005 | $as_echo_n "(cached) " >&6 |
94f548c2 | 22006 | else |
db9f46a9 | 22007 | if test x$gcc_no_link = xyes; then |
22e05272 | 22008 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 22009 | fi |
5213506e | 22010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
22011 | /* end confdefs.h. */ |
22012 | ||
db9f46a9 TG |
22013 | #ifdef HAVE_COMPLEX_H |
22014 | #include <complex.h> | |
94f548c2 | 22015 | #endif |
db9f46a9 TG |
22016 | #ifdef HAVE_MATH_H |
22017 | #include <math.h> | |
22018 | #endif | |
22019 | ||
22020 | int (*ptr)() = (int (*)())llroundf; | |
22021 | ||
94f548c2 FXC |
22022 | int |
22023 | main () | |
22024 | { | |
94f548c2 FXC |
22025 | return 0; |
22026 | } | |
db9f46a9 | 22027 | |
94f548c2 | 22028 | _ACEOF |
5213506e | 22029 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22030 | gcc_cv_math_func_llroundf=yes |
94f548c2 | 22031 | else |
db9f46a9 | 22032 | gcc_cv_math_func_llroundf=no |
94f548c2 | 22033 | fi |
5213506e RW |
22034 | rm -f core conftest.err conftest.$ac_objext \ |
22035 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 22036 | fi |
db9f46a9 TG |
22037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5 |
22038 | $as_echo "$gcc_cv_math_func_llroundf" >&6; } | |
22039 | if test $gcc_cv_math_func_llroundf = yes; then | |
f1cdfa01 | 22040 | |
f38a14ca TG |
22041 | cat >>confdefs.h <<_ACEOF |
22042 | #define HAVE_LLROUNDF 1 | |
22043 | _ACEOF | |
94f548c2 | 22044 | |
db9f46a9 | 22045 | fi |
94f548c2 | 22046 | |
94f548c2 | 22047 | |
db9f46a9 TG |
22048 | |
22049 | ||
22050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5 | |
22051 | $as_echo_n "checking for llround... " >&6; } | |
22e05272 | 22052 | if ${gcc_cv_math_func_llround+:} false; then : |
5213506e | 22053 | $as_echo_n "(cached) " >&6 |
94f548c2 | 22054 | else |
db9f46a9 | 22055 | if test x$gcc_no_link = xyes; then |
22e05272 | 22056 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 22057 | fi |
5213506e | 22058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
22059 | /* end confdefs.h. */ |
22060 | ||
db9f46a9 TG |
22061 | #ifdef HAVE_COMPLEX_H |
22062 | #include <complex.h> | |
22063 | #endif | |
22064 | #ifdef HAVE_MATH_H | |
22065 | #include <math.h> | |
94f548c2 | 22066 | #endif |
db9f46a9 TG |
22067 | |
22068 | int (*ptr)() = (int (*)())llround; | |
22069 | ||
94f548c2 FXC |
22070 | int |
22071 | main () | |
22072 | { | |
94f548c2 FXC |
22073 | return 0; |
22074 | } | |
db9f46a9 | 22075 | |
94f548c2 | 22076 | _ACEOF |
5213506e | 22077 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22078 | gcc_cv_math_func_llround=yes |
94f548c2 | 22079 | else |
db9f46a9 | 22080 | gcc_cv_math_func_llround=no |
94f548c2 | 22081 | fi |
5213506e RW |
22082 | rm -f core conftest.err conftest.$ac_objext \ |
22083 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 22084 | fi |
db9f46a9 TG |
22085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5 |
22086 | $as_echo "$gcc_cv_math_func_llround" >&6; } | |
22087 | if test $gcc_cv_math_func_llround = yes; then | |
f1cdfa01 | 22088 | |
f38a14ca TG |
22089 | cat >>confdefs.h <<_ACEOF |
22090 | #define HAVE_LLROUND 1 | |
22091 | _ACEOF | |
db9f46a9 TG |
22092 | |
22093 | fi | |
22094 | ||
94f548c2 | 22095 | |
94f548c2 | 22096 | |
94f548c2 | 22097 | |
db9f46a9 TG |
22098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5 |
22099 | $as_echo_n "checking for llroundl... " >&6; } | |
22e05272 | 22100 | if ${gcc_cv_math_func_llroundl+:} false; then : |
5213506e | 22101 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22102 | else |
db9f46a9 | 22103 | if test x$gcc_no_link = xyes; then |
22e05272 | 22104 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22105 | fi |
5213506e | 22106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22107 | /* end confdefs.h. */ |
22108 | ||
db9f46a9 TG |
22109 | #ifdef HAVE_COMPLEX_H |
22110 | #include <complex.h> | |
22111 | #endif | |
22112 | #ifdef HAVE_MATH_H | |
22113 | #include <math.h> | |
1409cd0b | 22114 | #endif |
db9f46a9 TG |
22115 | |
22116 | int (*ptr)() = (int (*)())llroundl; | |
22117 | ||
1409cd0b FXC |
22118 | int |
22119 | main () | |
22120 | { | |
1409cd0b FXC |
22121 | return 0; |
22122 | } | |
db9f46a9 | 22123 | |
1409cd0b | 22124 | _ACEOF |
5213506e | 22125 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22126 | gcc_cv_math_func_llroundl=yes |
1409cd0b | 22127 | else |
db9f46a9 | 22128 | gcc_cv_math_func_llroundl=no |
1409cd0b | 22129 | fi |
5213506e RW |
22130 | rm -f core conftest.err conftest.$ac_objext \ |
22131 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22132 | fi |
db9f46a9 TG |
22133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5 |
22134 | $as_echo "$gcc_cv_math_func_llroundl" >&6; } | |
22135 | if test $gcc_cv_math_func_llroundl = yes; then | |
f1cdfa01 | 22136 | |
f38a14ca TG |
22137 | cat >>confdefs.h <<_ACEOF |
22138 | #define HAVE_LLROUNDL 1 | |
22139 | _ACEOF | |
1409cd0b | 22140 | |
db9f46a9 | 22141 | fi |
1409cd0b | 22142 | |
1409cd0b | 22143 | |
db9f46a9 TG |
22144 | |
22145 | ||
22146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5 | |
22147 | $as_echo_n "checking for scalbnf... " >&6; } | |
22e05272 | 22148 | if ${gcc_cv_math_func_scalbnf+:} false; then : |
5213506e | 22149 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22150 | else |
db9f46a9 | 22151 | if test x$gcc_no_link = xyes; then |
22e05272 | 22152 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22153 | fi |
5213506e | 22154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22155 | /* end confdefs.h. */ |
22156 | ||
db9f46a9 TG |
22157 | #ifdef HAVE_COMPLEX_H |
22158 | #include <complex.h> | |
1409cd0b | 22159 | #endif |
db9f46a9 TG |
22160 | #ifdef HAVE_MATH_H |
22161 | #include <math.h> | |
22162 | #endif | |
22163 | ||
22164 | int (*ptr)() = (int (*)())scalbnf; | |
22165 | ||
1409cd0b FXC |
22166 | int |
22167 | main () | |
22168 | { | |
1409cd0b FXC |
22169 | return 0; |
22170 | } | |
db9f46a9 | 22171 | |
1409cd0b | 22172 | _ACEOF |
5213506e | 22173 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22174 | gcc_cv_math_func_scalbnf=yes |
1409cd0b | 22175 | else |
db9f46a9 | 22176 | gcc_cv_math_func_scalbnf=no |
1409cd0b | 22177 | fi |
5213506e RW |
22178 | rm -f core conftest.err conftest.$ac_objext \ |
22179 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22180 | fi |
db9f46a9 TG |
22181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5 |
22182 | $as_echo "$gcc_cv_math_func_scalbnf" >&6; } | |
22183 | if test $gcc_cv_math_func_scalbnf = yes; then | |
f1cdfa01 | 22184 | |
f38a14ca TG |
22185 | cat >>confdefs.h <<_ACEOF |
22186 | #define HAVE_SCALBNF 1 | |
22187 | _ACEOF | |
1409cd0b | 22188 | |
db9f46a9 | 22189 | fi |
1409cd0b | 22190 | |
1409cd0b | 22191 | |
db9f46a9 TG |
22192 | |
22193 | ||
22194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5 | |
22195 | $as_echo_n "checking for scalbn... " >&6; } | |
22e05272 | 22196 | if ${gcc_cv_math_func_scalbn+:} false; then : |
5213506e | 22197 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22198 | else |
db9f46a9 | 22199 | if test x$gcc_no_link = xyes; then |
22e05272 | 22200 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22201 | fi |
5213506e | 22202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22203 | /* end confdefs.h. */ |
22204 | ||
db9f46a9 TG |
22205 | #ifdef HAVE_COMPLEX_H |
22206 | #include <complex.h> | |
22207 | #endif | |
22208 | #ifdef HAVE_MATH_H | |
22209 | #include <math.h> | |
1409cd0b | 22210 | #endif |
db9f46a9 TG |
22211 | |
22212 | int (*ptr)() = (int (*)())scalbn; | |
22213 | ||
1409cd0b FXC |
22214 | int |
22215 | main () | |
22216 | { | |
1409cd0b FXC |
22217 | return 0; |
22218 | } | |
db9f46a9 | 22219 | |
1409cd0b | 22220 | _ACEOF |
5213506e | 22221 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22222 | gcc_cv_math_func_scalbn=yes |
1409cd0b | 22223 | else |
db9f46a9 | 22224 | gcc_cv_math_func_scalbn=no |
1409cd0b | 22225 | fi |
5213506e RW |
22226 | rm -f core conftest.err conftest.$ac_objext \ |
22227 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22228 | fi |
db9f46a9 TG |
22229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5 |
22230 | $as_echo "$gcc_cv_math_func_scalbn" >&6; } | |
22231 | if test $gcc_cv_math_func_scalbn = yes; then | |
f1cdfa01 | 22232 | |
f38a14ca TG |
22233 | cat >>confdefs.h <<_ACEOF |
22234 | #define HAVE_SCALBN 1 | |
22235 | _ACEOF | |
db9f46a9 TG |
22236 | |
22237 | fi | |
22238 | ||
1409cd0b | 22239 | |
1409cd0b | 22240 | |
1409cd0b | 22241 | |
db9f46a9 TG |
22242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5 |
22243 | $as_echo_n "checking for scalbnl... " >&6; } | |
22e05272 | 22244 | if ${gcc_cv_math_func_scalbnl+:} false; then : |
5213506e | 22245 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22246 | else |
db9f46a9 | 22247 | if test x$gcc_no_link = xyes; then |
22e05272 | 22248 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22249 | fi |
5213506e | 22250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22251 | /* end confdefs.h. */ |
22252 | ||
db9f46a9 TG |
22253 | #ifdef HAVE_COMPLEX_H |
22254 | #include <complex.h> | |
22255 | #endif | |
22256 | #ifdef HAVE_MATH_H | |
22257 | #include <math.h> | |
1409cd0b | 22258 | #endif |
db9f46a9 TG |
22259 | |
22260 | int (*ptr)() = (int (*)())scalbnl; | |
22261 | ||
1409cd0b FXC |
22262 | int |
22263 | main () | |
22264 | { | |
1409cd0b FXC |
22265 | return 0; |
22266 | } | |
db9f46a9 | 22267 | |
1409cd0b | 22268 | _ACEOF |
5213506e | 22269 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22270 | gcc_cv_math_func_scalbnl=yes |
1409cd0b | 22271 | else |
db9f46a9 | 22272 | gcc_cv_math_func_scalbnl=no |
1409cd0b | 22273 | fi |
5213506e RW |
22274 | rm -f core conftest.err conftest.$ac_objext \ |
22275 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22276 | fi |
db9f46a9 TG |
22277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5 |
22278 | $as_echo "$gcc_cv_math_func_scalbnl" >&6; } | |
22279 | if test $gcc_cv_math_func_scalbnl = yes; then | |
f1cdfa01 | 22280 | |
f38a14ca TG |
22281 | cat >>confdefs.h <<_ACEOF |
22282 | #define HAVE_SCALBNL 1 | |
22283 | _ACEOF | |
1409cd0b | 22284 | |
db9f46a9 | 22285 | fi |
1409cd0b | 22286 | |
1409cd0b | 22287 | |
db9f46a9 TG |
22288 | |
22289 | ||
22290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5 | |
22291 | $as_echo_n "checking for sinf... " >&6; } | |
22e05272 | 22292 | if ${gcc_cv_math_func_sinf+:} false; then : |
5213506e | 22293 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22294 | else |
db9f46a9 | 22295 | if test x$gcc_no_link = xyes; then |
22e05272 | 22296 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22297 | fi |
5213506e | 22298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22299 | /* end confdefs.h. */ |
22300 | ||
db9f46a9 TG |
22301 | #ifdef HAVE_COMPLEX_H |
22302 | #include <complex.h> | |
1409cd0b | 22303 | #endif |
db9f46a9 TG |
22304 | #ifdef HAVE_MATH_H |
22305 | #include <math.h> | |
22306 | #endif | |
22307 | ||
22308 | int (*ptr)() = (int (*)())sinf; | |
22309 | ||
1409cd0b FXC |
22310 | int |
22311 | main () | |
22312 | { | |
1409cd0b FXC |
22313 | return 0; |
22314 | } | |
db9f46a9 | 22315 | |
1409cd0b | 22316 | _ACEOF |
5213506e | 22317 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22318 | gcc_cv_math_func_sinf=yes |
1409cd0b | 22319 | else |
db9f46a9 | 22320 | gcc_cv_math_func_sinf=no |
1409cd0b | 22321 | fi |
5213506e RW |
22322 | rm -f core conftest.err conftest.$ac_objext \ |
22323 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22324 | fi |
db9f46a9 TG |
22325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5 |
22326 | $as_echo "$gcc_cv_math_func_sinf" >&6; } | |
22327 | if test $gcc_cv_math_func_sinf = yes; then | |
f1cdfa01 | 22328 | |
f38a14ca TG |
22329 | cat >>confdefs.h <<_ACEOF |
22330 | #define HAVE_SINF 1 | |
22331 | _ACEOF | |
1409cd0b | 22332 | |
db9f46a9 | 22333 | fi |
1409cd0b | 22334 | |
1409cd0b | 22335 | |
db9f46a9 TG |
22336 | |
22337 | ||
22338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5 | |
22339 | $as_echo_n "checking for sin... " >&6; } | |
22e05272 | 22340 | if ${gcc_cv_math_func_sin+:} false; then : |
5213506e | 22341 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22342 | else |
db9f46a9 | 22343 | if test x$gcc_no_link = xyes; then |
22e05272 | 22344 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22345 | fi |
5213506e | 22346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22347 | /* end confdefs.h. */ |
22348 | ||
db9f46a9 TG |
22349 | #ifdef HAVE_COMPLEX_H |
22350 | #include <complex.h> | |
1409cd0b | 22351 | #endif |
db9f46a9 TG |
22352 | #ifdef HAVE_MATH_H |
22353 | #include <math.h> | |
22354 | #endif | |
22355 | ||
22356 | int (*ptr)() = (int (*)())sin; | |
22357 | ||
1409cd0b FXC |
22358 | int |
22359 | main () | |
22360 | { | |
1409cd0b FXC |
22361 | return 0; |
22362 | } | |
db9f46a9 | 22363 | |
1409cd0b | 22364 | _ACEOF |
5213506e | 22365 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22366 | gcc_cv_math_func_sin=yes |
1409cd0b | 22367 | else |
db9f46a9 | 22368 | gcc_cv_math_func_sin=no |
1409cd0b | 22369 | fi |
5213506e RW |
22370 | rm -f core conftest.err conftest.$ac_objext \ |
22371 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22372 | fi |
db9f46a9 TG |
22373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5 |
22374 | $as_echo "$gcc_cv_math_func_sin" >&6; } | |
22375 | if test $gcc_cv_math_func_sin = yes; then | |
f1cdfa01 | 22376 | |
f38a14ca TG |
22377 | cat >>confdefs.h <<_ACEOF |
22378 | #define HAVE_SIN 1 | |
22379 | _ACEOF | |
db9f46a9 TG |
22380 | |
22381 | fi | |
22382 | ||
1409cd0b | 22383 | |
1409cd0b | 22384 | |
1409cd0b | 22385 | |
db9f46a9 TG |
22386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5 |
22387 | $as_echo_n "checking for sinl... " >&6; } | |
22e05272 | 22388 | if ${gcc_cv_math_func_sinl+:} false; then : |
5213506e | 22389 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22390 | else |
db9f46a9 | 22391 | if test x$gcc_no_link = xyes; then |
22e05272 | 22392 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22393 | fi |
5213506e | 22394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22395 | /* end confdefs.h. */ |
22396 | ||
db9f46a9 TG |
22397 | #ifdef HAVE_COMPLEX_H |
22398 | #include <complex.h> | |
1409cd0b | 22399 | #endif |
db9f46a9 TG |
22400 | #ifdef HAVE_MATH_H |
22401 | #include <math.h> | |
22402 | #endif | |
22403 | ||
22404 | int (*ptr)() = (int (*)())sinl; | |
22405 | ||
1409cd0b FXC |
22406 | int |
22407 | main () | |
22408 | { | |
5213506e RW |
22409 | return 0; |
22410 | } | |
db9f46a9 | 22411 | |
5213506e RW |
22412 | _ACEOF |
22413 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 22414 | gcc_cv_math_func_sinl=yes |
1409cd0b | 22415 | else |
db9f46a9 | 22416 | gcc_cv_math_func_sinl=no |
1409cd0b | 22417 | fi |
5213506e RW |
22418 | rm -f core conftest.err conftest.$ac_objext \ |
22419 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22420 | fi |
db9f46a9 TG |
22421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5 |
22422 | $as_echo "$gcc_cv_math_func_sinl" >&6; } | |
22423 | if test $gcc_cv_math_func_sinl = yes; then | |
f1cdfa01 | 22424 | |
f38a14ca TG |
22425 | cat >>confdefs.h <<_ACEOF |
22426 | #define HAVE_SINL 1 | |
22427 | _ACEOF | |
db9f46a9 TG |
22428 | |
22429 | fi | |
1409cd0b | 22430 | |
1409cd0b | 22431 | |
1409cd0b | 22432 | |
db9f46a9 TG |
22433 | |
22434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5 | |
22435 | $as_echo_n "checking for csinf... " >&6; } | |
22e05272 | 22436 | if ${gcc_cv_math_func_csinf+:} false; then : |
5213506e | 22437 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22438 | else |
db9f46a9 | 22439 | if test x$gcc_no_link = xyes; then |
22e05272 | 22440 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22441 | fi |
5213506e | 22442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22443 | /* end confdefs.h. */ |
22444 | ||
db9f46a9 TG |
22445 | #ifdef HAVE_COMPLEX_H |
22446 | #include <complex.h> | |
22447 | #endif | |
22448 | #ifdef HAVE_MATH_H | |
22449 | #include <math.h> | |
1409cd0b | 22450 | #endif |
db9f46a9 TG |
22451 | |
22452 | int (*ptr)() = (int (*)())csinf; | |
22453 | ||
1409cd0b FXC |
22454 | int |
22455 | main () | |
22456 | { | |
1409cd0b FXC |
22457 | return 0; |
22458 | } | |
db9f46a9 | 22459 | |
1409cd0b | 22460 | _ACEOF |
5213506e | 22461 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22462 | gcc_cv_math_func_csinf=yes |
1409cd0b | 22463 | else |
db9f46a9 | 22464 | gcc_cv_math_func_csinf=no |
1409cd0b | 22465 | fi |
5213506e RW |
22466 | rm -f core conftest.err conftest.$ac_objext \ |
22467 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22468 | fi |
db9f46a9 TG |
22469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5 |
22470 | $as_echo "$gcc_cv_math_func_csinf" >&6; } | |
22471 | if test $gcc_cv_math_func_csinf = yes; then | |
f1cdfa01 | 22472 | |
f38a14ca TG |
22473 | cat >>confdefs.h <<_ACEOF |
22474 | #define HAVE_CSINF 1 | |
22475 | _ACEOF | |
1409cd0b | 22476 | |
db9f46a9 | 22477 | fi |
1409cd0b | 22478 | |
1409cd0b | 22479 | |
db9f46a9 TG |
22480 | |
22481 | ||
22482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5 | |
22483 | $as_echo_n "checking for csin... " >&6; } | |
22e05272 | 22484 | if ${gcc_cv_math_func_csin+:} false; then : |
5213506e | 22485 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22486 | else |
db9f46a9 | 22487 | if test x$gcc_no_link = xyes; then |
22e05272 | 22488 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22489 | fi |
5213506e | 22490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22491 | /* end confdefs.h. */ |
22492 | ||
db9f46a9 TG |
22493 | #ifdef HAVE_COMPLEX_H |
22494 | #include <complex.h> | |
1409cd0b | 22495 | #endif |
db9f46a9 TG |
22496 | #ifdef HAVE_MATH_H |
22497 | #include <math.h> | |
22498 | #endif | |
22499 | ||
22500 | int (*ptr)() = (int (*)())csin; | |
22501 | ||
1409cd0b FXC |
22502 | int |
22503 | main () | |
22504 | { | |
1409cd0b FXC |
22505 | return 0; |
22506 | } | |
db9f46a9 | 22507 | |
1409cd0b | 22508 | _ACEOF |
5213506e | 22509 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22510 | gcc_cv_math_func_csin=yes |
1409cd0b | 22511 | else |
db9f46a9 | 22512 | gcc_cv_math_func_csin=no |
1409cd0b | 22513 | fi |
5213506e RW |
22514 | rm -f core conftest.err conftest.$ac_objext \ |
22515 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22516 | fi |
db9f46a9 TG |
22517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5 |
22518 | $as_echo "$gcc_cv_math_func_csin" >&6; } | |
22519 | if test $gcc_cv_math_func_csin = yes; then | |
f1cdfa01 | 22520 | |
f38a14ca TG |
22521 | cat >>confdefs.h <<_ACEOF |
22522 | #define HAVE_CSIN 1 | |
22523 | _ACEOF | |
db9f46a9 TG |
22524 | |
22525 | fi | |
22526 | ||
1409cd0b | 22527 | |
1409cd0b | 22528 | |
1409cd0b | 22529 | |
db9f46a9 TG |
22530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5 |
22531 | $as_echo_n "checking for csinl... " >&6; } | |
22e05272 | 22532 | if ${gcc_cv_math_func_csinl+:} false; then : |
5213506e | 22533 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22534 | else |
db9f46a9 | 22535 | if test x$gcc_no_link = xyes; then |
22e05272 | 22536 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22537 | fi |
5213506e | 22538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22539 | /* end confdefs.h. */ |
22540 | ||
db9f46a9 TG |
22541 | #ifdef HAVE_COMPLEX_H |
22542 | #include <complex.h> | |
1409cd0b | 22543 | #endif |
db9f46a9 TG |
22544 | #ifdef HAVE_MATH_H |
22545 | #include <math.h> | |
22546 | #endif | |
22547 | ||
22548 | int (*ptr)() = (int (*)())csinl; | |
22549 | ||
1409cd0b FXC |
22550 | int |
22551 | main () | |
22552 | { | |
1409cd0b FXC |
22553 | return 0; |
22554 | } | |
db9f46a9 | 22555 | |
1409cd0b | 22556 | _ACEOF |
5213506e | 22557 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22558 | gcc_cv_math_func_csinl=yes |
1409cd0b | 22559 | else |
db9f46a9 | 22560 | gcc_cv_math_func_csinl=no |
1409cd0b | 22561 | fi |
5213506e RW |
22562 | rm -f core conftest.err conftest.$ac_objext \ |
22563 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22564 | fi |
db9f46a9 TG |
22565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5 |
22566 | $as_echo "$gcc_cv_math_func_csinl" >&6; } | |
22567 | if test $gcc_cv_math_func_csinl = yes; then | |
f1cdfa01 | 22568 | |
f38a14ca TG |
22569 | cat >>confdefs.h <<_ACEOF |
22570 | #define HAVE_CSINL 1 | |
22571 | _ACEOF | |
db9f46a9 TG |
22572 | |
22573 | fi | |
1409cd0b | 22574 | |
1409cd0b | 22575 | |
1409cd0b | 22576 | |
db9f46a9 TG |
22577 | |
22578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5 | |
22579 | $as_echo_n "checking for sinhf... " >&6; } | |
22e05272 | 22580 | if ${gcc_cv_math_func_sinhf+:} false; then : |
5213506e | 22581 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22582 | else |
db9f46a9 | 22583 | if test x$gcc_no_link = xyes; then |
22e05272 | 22584 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22585 | fi |
5213506e | 22586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22587 | /* end confdefs.h. */ |
22588 | ||
db9f46a9 TG |
22589 | #ifdef HAVE_COMPLEX_H |
22590 | #include <complex.h> | |
22591 | #endif | |
22592 | #ifdef HAVE_MATH_H | |
22593 | #include <math.h> | |
1409cd0b | 22594 | #endif |
db9f46a9 TG |
22595 | |
22596 | int (*ptr)() = (int (*)())sinhf; | |
22597 | ||
1409cd0b FXC |
22598 | int |
22599 | main () | |
22600 | { | |
1409cd0b FXC |
22601 | return 0; |
22602 | } | |
db9f46a9 | 22603 | |
1409cd0b | 22604 | _ACEOF |
5213506e | 22605 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22606 | gcc_cv_math_func_sinhf=yes |
1409cd0b | 22607 | else |
db9f46a9 | 22608 | gcc_cv_math_func_sinhf=no |
1409cd0b | 22609 | fi |
5213506e RW |
22610 | rm -f core conftest.err conftest.$ac_objext \ |
22611 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22612 | fi |
db9f46a9 TG |
22613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5 |
22614 | $as_echo "$gcc_cv_math_func_sinhf" >&6; } | |
22615 | if test $gcc_cv_math_func_sinhf = yes; then | |
f1cdfa01 | 22616 | |
f38a14ca TG |
22617 | cat >>confdefs.h <<_ACEOF |
22618 | #define HAVE_SINHF 1 | |
22619 | _ACEOF | |
1409cd0b | 22620 | |
db9f46a9 | 22621 | fi |
1409cd0b | 22622 | |
1409cd0b | 22623 | |
db9f46a9 TG |
22624 | |
22625 | ||
22626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5 | |
22627 | $as_echo_n "checking for sinh... " >&6; } | |
22e05272 | 22628 | if ${gcc_cv_math_func_sinh+:} false; then : |
5213506e | 22629 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22630 | else |
db9f46a9 | 22631 | if test x$gcc_no_link = xyes; then |
22e05272 | 22632 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22633 | fi |
5213506e | 22634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22635 | /* end confdefs.h. */ |
22636 | ||
db9f46a9 TG |
22637 | #ifdef HAVE_COMPLEX_H |
22638 | #include <complex.h> | |
1409cd0b | 22639 | #endif |
db9f46a9 TG |
22640 | #ifdef HAVE_MATH_H |
22641 | #include <math.h> | |
22642 | #endif | |
22643 | ||
22644 | int (*ptr)() = (int (*)())sinh; | |
22645 | ||
1409cd0b FXC |
22646 | int |
22647 | main () | |
22648 | { | |
1409cd0b FXC |
22649 | return 0; |
22650 | } | |
db9f46a9 | 22651 | |
1409cd0b | 22652 | _ACEOF |
5213506e | 22653 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22654 | gcc_cv_math_func_sinh=yes |
1409cd0b | 22655 | else |
db9f46a9 | 22656 | gcc_cv_math_func_sinh=no |
1409cd0b | 22657 | fi |
5213506e RW |
22658 | rm -f core conftest.err conftest.$ac_objext \ |
22659 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22660 | fi |
db9f46a9 TG |
22661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5 |
22662 | $as_echo "$gcc_cv_math_func_sinh" >&6; } | |
22663 | if test $gcc_cv_math_func_sinh = yes; then | |
f1cdfa01 | 22664 | |
f38a14ca TG |
22665 | cat >>confdefs.h <<_ACEOF |
22666 | #define HAVE_SINH 1 | |
22667 | _ACEOF | |
db9f46a9 TG |
22668 | |
22669 | fi | |
22670 | ||
1409cd0b | 22671 | |
1409cd0b | 22672 | |
1409cd0b | 22673 | |
db9f46a9 TG |
22674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5 |
22675 | $as_echo_n "checking for sinhl... " >&6; } | |
22e05272 | 22676 | if ${gcc_cv_math_func_sinhl+:} false; then : |
5213506e | 22677 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22678 | else |
db9f46a9 | 22679 | if test x$gcc_no_link = xyes; then |
22e05272 | 22680 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22681 | fi |
5213506e | 22682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22683 | /* end confdefs.h. */ |
22684 | ||
db9f46a9 TG |
22685 | #ifdef HAVE_COMPLEX_H |
22686 | #include <complex.h> | |
1409cd0b | 22687 | #endif |
db9f46a9 TG |
22688 | #ifdef HAVE_MATH_H |
22689 | #include <math.h> | |
22690 | #endif | |
22691 | ||
22692 | int (*ptr)() = (int (*)())sinhl; | |
22693 | ||
1409cd0b FXC |
22694 | int |
22695 | main () | |
22696 | { | |
1409cd0b FXC |
22697 | return 0; |
22698 | } | |
db9f46a9 | 22699 | |
1409cd0b | 22700 | _ACEOF |
5213506e | 22701 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22702 | gcc_cv_math_func_sinhl=yes |
1409cd0b | 22703 | else |
db9f46a9 | 22704 | gcc_cv_math_func_sinhl=no |
1409cd0b | 22705 | fi |
5213506e RW |
22706 | rm -f core conftest.err conftest.$ac_objext \ |
22707 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22708 | fi |
db9f46a9 TG |
22709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5 |
22710 | $as_echo "$gcc_cv_math_func_sinhl" >&6; } | |
22711 | if test $gcc_cv_math_func_sinhl = yes; then | |
f1cdfa01 | 22712 | |
f38a14ca TG |
22713 | cat >>confdefs.h <<_ACEOF |
22714 | #define HAVE_SINHL 1 | |
22715 | _ACEOF | |
db9f46a9 TG |
22716 | |
22717 | fi | |
1409cd0b | 22718 | |
1409cd0b | 22719 | |
1409cd0b | 22720 | |
db9f46a9 TG |
22721 | |
22722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5 | |
22723 | $as_echo_n "checking for csinhf... " >&6; } | |
22e05272 | 22724 | if ${gcc_cv_math_func_csinhf+:} false; then : |
5213506e | 22725 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22726 | else |
db9f46a9 | 22727 | if test x$gcc_no_link = xyes; then |
22e05272 | 22728 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22729 | fi |
5213506e | 22730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22731 | /* end confdefs.h. */ |
22732 | ||
db9f46a9 TG |
22733 | #ifdef HAVE_COMPLEX_H |
22734 | #include <complex.h> | |
22735 | #endif | |
22736 | #ifdef HAVE_MATH_H | |
22737 | #include <math.h> | |
1409cd0b | 22738 | #endif |
db9f46a9 TG |
22739 | |
22740 | int (*ptr)() = (int (*)())csinhf; | |
22741 | ||
1409cd0b FXC |
22742 | int |
22743 | main () | |
22744 | { | |
1409cd0b FXC |
22745 | return 0; |
22746 | } | |
db9f46a9 | 22747 | |
1409cd0b | 22748 | _ACEOF |
5213506e | 22749 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22750 | gcc_cv_math_func_csinhf=yes |
1409cd0b | 22751 | else |
db9f46a9 | 22752 | gcc_cv_math_func_csinhf=no |
1409cd0b | 22753 | fi |
5213506e RW |
22754 | rm -f core conftest.err conftest.$ac_objext \ |
22755 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22756 | fi |
db9f46a9 TG |
22757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5 |
22758 | $as_echo "$gcc_cv_math_func_csinhf" >&6; } | |
22759 | if test $gcc_cv_math_func_csinhf = yes; then | |
f1cdfa01 | 22760 | |
f38a14ca TG |
22761 | cat >>confdefs.h <<_ACEOF |
22762 | #define HAVE_CSINHF 1 | |
22763 | _ACEOF | |
1409cd0b | 22764 | |
db9f46a9 | 22765 | fi |
1409cd0b | 22766 | |
1409cd0b | 22767 | |
db9f46a9 TG |
22768 | |
22769 | ||
22770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5 | |
22771 | $as_echo_n "checking for csinh... " >&6; } | |
22e05272 | 22772 | if ${gcc_cv_math_func_csinh+:} false; then : |
5213506e | 22773 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22774 | else |
db9f46a9 | 22775 | if test x$gcc_no_link = xyes; then |
22e05272 | 22776 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22777 | fi |
5213506e | 22778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22779 | /* end confdefs.h. */ |
22780 | ||
db9f46a9 TG |
22781 | #ifdef HAVE_COMPLEX_H |
22782 | #include <complex.h> | |
1409cd0b | 22783 | #endif |
db9f46a9 TG |
22784 | #ifdef HAVE_MATH_H |
22785 | #include <math.h> | |
22786 | #endif | |
22787 | ||
22788 | int (*ptr)() = (int (*)())csinh; | |
22789 | ||
1409cd0b FXC |
22790 | int |
22791 | main () | |
22792 | { | |
1409cd0b FXC |
22793 | return 0; |
22794 | } | |
db9f46a9 | 22795 | |
1409cd0b | 22796 | _ACEOF |
5213506e | 22797 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22798 | gcc_cv_math_func_csinh=yes |
1409cd0b | 22799 | else |
db9f46a9 | 22800 | gcc_cv_math_func_csinh=no |
1409cd0b | 22801 | fi |
5213506e RW |
22802 | rm -f core conftest.err conftest.$ac_objext \ |
22803 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22804 | fi |
db9f46a9 TG |
22805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5 |
22806 | $as_echo "$gcc_cv_math_func_csinh" >&6; } | |
22807 | if test $gcc_cv_math_func_csinh = yes; then | |
f1cdfa01 | 22808 | |
f38a14ca TG |
22809 | cat >>confdefs.h <<_ACEOF |
22810 | #define HAVE_CSINH 1 | |
22811 | _ACEOF | |
db9f46a9 TG |
22812 | |
22813 | fi | |
22814 | ||
1409cd0b | 22815 | |
1409cd0b | 22816 | |
1409cd0b | 22817 | |
db9f46a9 TG |
22818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5 |
22819 | $as_echo_n "checking for csinhl... " >&6; } | |
22e05272 | 22820 | if ${gcc_cv_math_func_csinhl+:} false; then : |
5213506e | 22821 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22822 | else |
db9f46a9 | 22823 | if test x$gcc_no_link = xyes; then |
22e05272 | 22824 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22825 | fi |
5213506e | 22826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22827 | /* end confdefs.h. */ |
22828 | ||
db9f46a9 TG |
22829 | #ifdef HAVE_COMPLEX_H |
22830 | #include <complex.h> | |
1409cd0b | 22831 | #endif |
db9f46a9 TG |
22832 | #ifdef HAVE_MATH_H |
22833 | #include <math.h> | |
22834 | #endif | |
22835 | ||
22836 | int (*ptr)() = (int (*)())csinhl; | |
22837 | ||
1409cd0b FXC |
22838 | int |
22839 | main () | |
22840 | { | |
1409cd0b FXC |
22841 | return 0; |
22842 | } | |
db9f46a9 | 22843 | |
1409cd0b | 22844 | _ACEOF |
5213506e | 22845 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22846 | gcc_cv_math_func_csinhl=yes |
1409cd0b | 22847 | else |
db9f46a9 | 22848 | gcc_cv_math_func_csinhl=no |
1409cd0b | 22849 | fi |
5213506e RW |
22850 | rm -f core conftest.err conftest.$ac_objext \ |
22851 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22852 | fi |
db9f46a9 TG |
22853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5 |
22854 | $as_echo "$gcc_cv_math_func_csinhl" >&6; } | |
22855 | if test $gcc_cv_math_func_csinhl = yes; then | |
f1cdfa01 | 22856 | |
f38a14ca TG |
22857 | cat >>confdefs.h <<_ACEOF |
22858 | #define HAVE_CSINHL 1 | |
22859 | _ACEOF | |
db9f46a9 TG |
22860 | |
22861 | fi | |
1409cd0b | 22862 | |
1409cd0b | 22863 | |
1409cd0b | 22864 | |
db9f46a9 TG |
22865 | |
22866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5 | |
22867 | $as_echo_n "checking for sqrtf... " >&6; } | |
22e05272 | 22868 | if ${gcc_cv_math_func_sqrtf+:} false; then : |
5213506e | 22869 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22870 | else |
db9f46a9 | 22871 | if test x$gcc_no_link = xyes; then |
22e05272 | 22872 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22873 | fi |
5213506e | 22874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22875 | /* end confdefs.h. */ |
22876 | ||
db9f46a9 TG |
22877 | #ifdef HAVE_COMPLEX_H |
22878 | #include <complex.h> | |
22879 | #endif | |
22880 | #ifdef HAVE_MATH_H | |
22881 | #include <math.h> | |
1409cd0b | 22882 | #endif |
db9f46a9 TG |
22883 | |
22884 | int (*ptr)() = (int (*)())sqrtf; | |
22885 | ||
1409cd0b FXC |
22886 | int |
22887 | main () | |
22888 | { | |
1409cd0b FXC |
22889 | return 0; |
22890 | } | |
db9f46a9 | 22891 | |
1409cd0b | 22892 | _ACEOF |
5213506e | 22893 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22894 | gcc_cv_math_func_sqrtf=yes |
1409cd0b | 22895 | else |
db9f46a9 | 22896 | gcc_cv_math_func_sqrtf=no |
1409cd0b | 22897 | fi |
5213506e RW |
22898 | rm -f core conftest.err conftest.$ac_objext \ |
22899 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22900 | fi |
db9f46a9 TG |
22901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5 |
22902 | $as_echo "$gcc_cv_math_func_sqrtf" >&6; } | |
22903 | if test $gcc_cv_math_func_sqrtf = yes; then | |
f1cdfa01 | 22904 | |
f38a14ca TG |
22905 | cat >>confdefs.h <<_ACEOF |
22906 | #define HAVE_SQRTF 1 | |
22907 | _ACEOF | |
db9f46a9 TG |
22908 | |
22909 | fi | |
1409cd0b | 22910 | |
1409cd0b | 22911 | |
db9f46a9 TG |
22912 | |
22913 | ||
22914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5 | |
22915 | $as_echo_n "checking for sqrt... " >&6; } | |
22e05272 | 22916 | if ${gcc_cv_math_func_sqrt+:} false; then : |
db9f46a9 TG |
22917 | $as_echo_n "(cached) " >&6 |
22918 | else | |
22919 | if test x$gcc_no_link = xyes; then | |
22e05272 | 22920 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22921 | fi |
db9f46a9 TG |
22922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22923 | /* end confdefs.h. */ | |
22924 | ||
22925 | #ifdef HAVE_COMPLEX_H | |
22926 | #include <complex.h> | |
22927 | #endif | |
22928 | #ifdef HAVE_MATH_H | |
22929 | #include <math.h> | |
22930 | #endif | |
22931 | ||
22932 | int (*ptr)() = (int (*)())sqrt; | |
22933 | ||
22934 | int | |
22935 | main () | |
22936 | { | |
22937 | return 0; | |
22938 | } | |
22939 | ||
22940 | _ACEOF | |
22941 | if ac_fn_c_try_link "$LINENO"; then : | |
22942 | gcc_cv_math_func_sqrt=yes | |
22943 | else | |
22944 | gcc_cv_math_func_sqrt=no | |
22945 | fi | |
22946 | rm -f core conftest.err conftest.$ac_objext \ | |
22947 | conftest$ac_exeext conftest.$ac_ext | |
22948 | fi | |
22949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5 | |
22950 | $as_echo "$gcc_cv_math_func_sqrt" >&6; } | |
22951 | if test $gcc_cv_math_func_sqrt = yes; then | |
f1cdfa01 | 22952 | |
f38a14ca TG |
22953 | cat >>confdefs.h <<_ACEOF |
22954 | #define HAVE_SQRT 1 | |
22955 | _ACEOF | |
db9f46a9 TG |
22956 | |
22957 | fi | |
1409cd0b | 22958 | |
db9f46a9 TG |
22959 | |
22960 | ||
22961 | ||
22962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5 | |
22963 | $as_echo_n "checking for sqrtl... " >&6; } | |
22e05272 | 22964 | if ${gcc_cv_math_func_sqrtl+:} false; then : |
5213506e | 22965 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22966 | else |
db9f46a9 | 22967 | if test x$gcc_no_link = xyes; then |
22e05272 | 22968 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22969 | fi |
5213506e | 22970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22971 | /* end confdefs.h. */ |
22972 | ||
db9f46a9 TG |
22973 | #ifdef HAVE_COMPLEX_H |
22974 | #include <complex.h> | |
22975 | #endif | |
22976 | #ifdef HAVE_MATH_H | |
22977 | #include <math.h> | |
1409cd0b | 22978 | #endif |
db9f46a9 TG |
22979 | |
22980 | int (*ptr)() = (int (*)())sqrtl; | |
22981 | ||
1409cd0b FXC |
22982 | int |
22983 | main () | |
22984 | { | |
1409cd0b FXC |
22985 | return 0; |
22986 | } | |
db9f46a9 | 22987 | |
1409cd0b | 22988 | _ACEOF |
5213506e | 22989 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22990 | gcc_cv_math_func_sqrtl=yes |
1409cd0b | 22991 | else |
db9f46a9 | 22992 | gcc_cv_math_func_sqrtl=no |
1409cd0b | 22993 | fi |
5213506e RW |
22994 | rm -f core conftest.err conftest.$ac_objext \ |
22995 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22996 | fi |
db9f46a9 TG |
22997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5 |
22998 | $as_echo "$gcc_cv_math_func_sqrtl" >&6; } | |
22999 | if test $gcc_cv_math_func_sqrtl = yes; then | |
f1cdfa01 | 23000 | |
f38a14ca TG |
23001 | cat >>confdefs.h <<_ACEOF |
23002 | #define HAVE_SQRTL 1 | |
23003 | _ACEOF | |
db9f46a9 TG |
23004 | |
23005 | fi | |
1409cd0b | 23006 | |
1409cd0b | 23007 | |
1409cd0b | 23008 | |
db9f46a9 TG |
23009 | |
23010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5 | |
23011 | $as_echo_n "checking for csqrtf... " >&6; } | |
22e05272 | 23012 | if ${gcc_cv_math_func_csqrtf+:} false; then : |
5213506e | 23013 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23014 | else |
db9f46a9 | 23015 | if test x$gcc_no_link = xyes; then |
22e05272 | 23016 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23017 | fi |
5213506e | 23018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23019 | /* end confdefs.h. */ |
23020 | ||
db9f46a9 TG |
23021 | #ifdef HAVE_COMPLEX_H |
23022 | #include <complex.h> | |
1409cd0b | 23023 | #endif |
db9f46a9 TG |
23024 | #ifdef HAVE_MATH_H |
23025 | #include <math.h> | |
23026 | #endif | |
23027 | ||
23028 | int (*ptr)() = (int (*)())csqrtf; | |
23029 | ||
1409cd0b FXC |
23030 | int |
23031 | main () | |
23032 | { | |
1409cd0b FXC |
23033 | return 0; |
23034 | } | |
db9f46a9 | 23035 | |
1409cd0b | 23036 | _ACEOF |
5213506e | 23037 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23038 | gcc_cv_math_func_csqrtf=yes |
1409cd0b | 23039 | else |
db9f46a9 | 23040 | gcc_cv_math_func_csqrtf=no |
1409cd0b | 23041 | fi |
5213506e RW |
23042 | rm -f core conftest.err conftest.$ac_objext \ |
23043 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23044 | fi |
db9f46a9 TG |
23045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5 |
23046 | $as_echo "$gcc_cv_math_func_csqrtf" >&6; } | |
23047 | if test $gcc_cv_math_func_csqrtf = yes; then | |
f1cdfa01 | 23048 | |
f38a14ca TG |
23049 | cat >>confdefs.h <<_ACEOF |
23050 | #define HAVE_CSQRTF 1 | |
23051 | _ACEOF | |
1409cd0b | 23052 | |
db9f46a9 | 23053 | fi |
1409cd0b | 23054 | |
1409cd0b | 23055 | |
db9f46a9 TG |
23056 | |
23057 | ||
23058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5 | |
23059 | $as_echo_n "checking for csqrt... " >&6; } | |
22e05272 | 23060 | if ${gcc_cv_math_func_csqrt+:} false; then : |
5213506e | 23061 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23062 | else |
db9f46a9 | 23063 | if test x$gcc_no_link = xyes; then |
22e05272 | 23064 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23065 | fi |
5213506e | 23066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23067 | /* end confdefs.h. */ |
23068 | ||
db9f46a9 TG |
23069 | #ifdef HAVE_COMPLEX_H |
23070 | #include <complex.h> | |
23071 | #endif | |
23072 | #ifdef HAVE_MATH_H | |
23073 | #include <math.h> | |
1409cd0b | 23074 | #endif |
db9f46a9 TG |
23075 | |
23076 | int (*ptr)() = (int (*)())csqrt; | |
23077 | ||
1409cd0b FXC |
23078 | int |
23079 | main () | |
23080 | { | |
1409cd0b FXC |
23081 | return 0; |
23082 | } | |
db9f46a9 | 23083 | |
1409cd0b | 23084 | _ACEOF |
5213506e | 23085 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23086 | gcc_cv_math_func_csqrt=yes |
1409cd0b | 23087 | else |
db9f46a9 | 23088 | gcc_cv_math_func_csqrt=no |
1409cd0b | 23089 | fi |
5213506e RW |
23090 | rm -f core conftest.err conftest.$ac_objext \ |
23091 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23092 | fi |
db9f46a9 TG |
23093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5 |
23094 | $as_echo "$gcc_cv_math_func_csqrt" >&6; } | |
23095 | if test $gcc_cv_math_func_csqrt = yes; then | |
f1cdfa01 | 23096 | |
f38a14ca TG |
23097 | cat >>confdefs.h <<_ACEOF |
23098 | #define HAVE_CSQRT 1 | |
23099 | _ACEOF | |
db9f46a9 TG |
23100 | |
23101 | fi | |
1409cd0b | 23102 | |
1409cd0b | 23103 | |
1409cd0b | 23104 | |
db9f46a9 TG |
23105 | |
23106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5 | |
23107 | $as_echo_n "checking for csqrtl... " >&6; } | |
22e05272 | 23108 | if ${gcc_cv_math_func_csqrtl+:} false; then : |
5213506e | 23109 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23110 | else |
db9f46a9 | 23111 | if test x$gcc_no_link = xyes; then |
22e05272 | 23112 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23113 | fi |
5213506e | 23114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23115 | /* end confdefs.h. */ |
23116 | ||
db9f46a9 TG |
23117 | #ifdef HAVE_COMPLEX_H |
23118 | #include <complex.h> | |
1409cd0b | 23119 | #endif |
db9f46a9 TG |
23120 | #ifdef HAVE_MATH_H |
23121 | #include <math.h> | |
23122 | #endif | |
23123 | ||
23124 | int (*ptr)() = (int (*)())csqrtl; | |
23125 | ||
1409cd0b FXC |
23126 | int |
23127 | main () | |
23128 | { | |
1409cd0b FXC |
23129 | return 0; |
23130 | } | |
db9f46a9 | 23131 | |
1409cd0b | 23132 | _ACEOF |
5213506e | 23133 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23134 | gcc_cv_math_func_csqrtl=yes |
1409cd0b | 23135 | else |
db9f46a9 | 23136 | gcc_cv_math_func_csqrtl=no |
1409cd0b | 23137 | fi |
5213506e RW |
23138 | rm -f core conftest.err conftest.$ac_objext \ |
23139 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23140 | fi |
db9f46a9 TG |
23141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5 |
23142 | $as_echo "$gcc_cv_math_func_csqrtl" >&6; } | |
23143 | if test $gcc_cv_math_func_csqrtl = yes; then | |
f1cdfa01 | 23144 | |
f38a14ca TG |
23145 | cat >>confdefs.h <<_ACEOF |
23146 | #define HAVE_CSQRTL 1 | |
23147 | _ACEOF | |
db9f46a9 TG |
23148 | |
23149 | fi | |
23150 | ||
1409cd0b | 23151 | |
1409cd0b | 23152 | |
1409cd0b | 23153 | |
db9f46a9 TG |
23154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5 |
23155 | $as_echo_n "checking for tanf... " >&6; } | |
22e05272 | 23156 | if ${gcc_cv_math_func_tanf+:} false; then : |
5213506e | 23157 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23158 | else |
db9f46a9 | 23159 | if test x$gcc_no_link = xyes; then |
22e05272 | 23160 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23161 | fi |
5213506e | 23162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23163 | /* end confdefs.h. */ |
23164 | ||
db9f46a9 TG |
23165 | #ifdef HAVE_COMPLEX_H |
23166 | #include <complex.h> | |
23167 | #endif | |
23168 | #ifdef HAVE_MATH_H | |
23169 | #include <math.h> | |
1409cd0b | 23170 | #endif |
db9f46a9 TG |
23171 | |
23172 | int (*ptr)() = (int (*)())tanf; | |
23173 | ||
1409cd0b FXC |
23174 | int |
23175 | main () | |
23176 | { | |
1409cd0b FXC |
23177 | return 0; |
23178 | } | |
db9f46a9 | 23179 | |
1409cd0b | 23180 | _ACEOF |
5213506e | 23181 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23182 | gcc_cv_math_func_tanf=yes |
1409cd0b | 23183 | else |
db9f46a9 | 23184 | gcc_cv_math_func_tanf=no |
1409cd0b | 23185 | fi |
5213506e RW |
23186 | rm -f core conftest.err conftest.$ac_objext \ |
23187 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23188 | fi |
db9f46a9 TG |
23189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5 |
23190 | $as_echo "$gcc_cv_math_func_tanf" >&6; } | |
23191 | if test $gcc_cv_math_func_tanf = yes; then | |
f1cdfa01 | 23192 | |
f38a14ca TG |
23193 | cat >>confdefs.h <<_ACEOF |
23194 | #define HAVE_TANF 1 | |
23195 | _ACEOF | |
db9f46a9 TG |
23196 | |
23197 | fi | |
1409cd0b | 23198 | |
1409cd0b | 23199 | |
1409cd0b | 23200 | |
db9f46a9 TG |
23201 | |
23202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5 | |
23203 | $as_echo_n "checking for tan... " >&6; } | |
22e05272 | 23204 | if ${gcc_cv_math_func_tan+:} false; then : |
5213506e | 23205 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23206 | else |
db9f46a9 | 23207 | if test x$gcc_no_link = xyes; then |
22e05272 | 23208 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23209 | fi |
5213506e | 23210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23211 | /* end confdefs.h. */ |
23212 | ||
db9f46a9 TG |
23213 | #ifdef HAVE_COMPLEX_H |
23214 | #include <complex.h> | |
1409cd0b | 23215 | #endif |
db9f46a9 TG |
23216 | #ifdef HAVE_MATH_H |
23217 | #include <math.h> | |
23218 | #endif | |
23219 | ||
23220 | int (*ptr)() = (int (*)())tan; | |
23221 | ||
1409cd0b FXC |
23222 | int |
23223 | main () | |
23224 | { | |
1409cd0b FXC |
23225 | return 0; |
23226 | } | |
db9f46a9 | 23227 | |
1409cd0b | 23228 | _ACEOF |
5213506e | 23229 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23230 | gcc_cv_math_func_tan=yes |
1409cd0b | 23231 | else |
db9f46a9 | 23232 | gcc_cv_math_func_tan=no |
1409cd0b | 23233 | fi |
5213506e RW |
23234 | rm -f core conftest.err conftest.$ac_objext \ |
23235 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23236 | fi |
db9f46a9 TG |
23237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5 |
23238 | $as_echo "$gcc_cv_math_func_tan" >&6; } | |
23239 | if test $gcc_cv_math_func_tan = yes; then | |
f1cdfa01 | 23240 | |
f38a14ca TG |
23241 | cat >>confdefs.h <<_ACEOF |
23242 | #define HAVE_TAN 1 | |
23243 | _ACEOF | |
1409cd0b | 23244 | |
db9f46a9 | 23245 | fi |
1409cd0b | 23246 | |
1409cd0b | 23247 | |
db9f46a9 TG |
23248 | |
23249 | ||
23250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5 | |
23251 | $as_echo_n "checking for tanl... " >&6; } | |
22e05272 | 23252 | if ${gcc_cv_math_func_tanl+:} false; then : |
5213506e | 23253 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23254 | else |
db9f46a9 | 23255 | if test x$gcc_no_link = xyes; then |
22e05272 | 23256 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23257 | fi |
5213506e | 23258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23259 | /* end confdefs.h. */ |
23260 | ||
db9f46a9 TG |
23261 | #ifdef HAVE_COMPLEX_H |
23262 | #include <complex.h> | |
23263 | #endif | |
23264 | #ifdef HAVE_MATH_H | |
23265 | #include <math.h> | |
1409cd0b | 23266 | #endif |
db9f46a9 TG |
23267 | |
23268 | int (*ptr)() = (int (*)())tanl; | |
23269 | ||
1409cd0b FXC |
23270 | int |
23271 | main () | |
23272 | { | |
1409cd0b FXC |
23273 | return 0; |
23274 | } | |
db9f46a9 | 23275 | |
1409cd0b | 23276 | _ACEOF |
5213506e | 23277 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23278 | gcc_cv_math_func_tanl=yes |
1409cd0b | 23279 | else |
db9f46a9 | 23280 | gcc_cv_math_func_tanl=no |
1409cd0b | 23281 | fi |
5213506e RW |
23282 | rm -f core conftest.err conftest.$ac_objext \ |
23283 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23284 | fi |
db9f46a9 TG |
23285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5 |
23286 | $as_echo "$gcc_cv_math_func_tanl" >&6; } | |
23287 | if test $gcc_cv_math_func_tanl = yes; then | |
f1cdfa01 | 23288 | |
f38a14ca TG |
23289 | cat >>confdefs.h <<_ACEOF |
23290 | #define HAVE_TANL 1 | |
23291 | _ACEOF | |
db9f46a9 TG |
23292 | |
23293 | fi | |
1409cd0b | 23294 | |
1409cd0b | 23295 | |
1409cd0b | 23296 | |
db9f46a9 TG |
23297 | |
23298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5 | |
23299 | $as_echo_n "checking for ctanf... " >&6; } | |
22e05272 | 23300 | if ${gcc_cv_math_func_ctanf+:} false; then : |
5213506e | 23301 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23302 | else |
db9f46a9 | 23303 | if test x$gcc_no_link = xyes; then |
22e05272 | 23304 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23305 | fi |
5213506e | 23306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23307 | /* end confdefs.h. */ |
23308 | ||
db9f46a9 TG |
23309 | #ifdef HAVE_COMPLEX_H |
23310 | #include <complex.h> | |
1409cd0b | 23311 | #endif |
db9f46a9 TG |
23312 | #ifdef HAVE_MATH_H |
23313 | #include <math.h> | |
23314 | #endif | |
23315 | ||
23316 | int (*ptr)() = (int (*)())ctanf; | |
23317 | ||
1409cd0b FXC |
23318 | int |
23319 | main () | |
23320 | { | |
1409cd0b FXC |
23321 | return 0; |
23322 | } | |
db9f46a9 | 23323 | |
1409cd0b | 23324 | _ACEOF |
5213506e | 23325 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23326 | gcc_cv_math_func_ctanf=yes |
1409cd0b | 23327 | else |
db9f46a9 | 23328 | gcc_cv_math_func_ctanf=no |
1409cd0b | 23329 | fi |
5213506e RW |
23330 | rm -f core conftest.err conftest.$ac_objext \ |
23331 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23332 | fi |
db9f46a9 TG |
23333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5 |
23334 | $as_echo "$gcc_cv_math_func_ctanf" >&6; } | |
23335 | if test $gcc_cv_math_func_ctanf = yes; then | |
f1cdfa01 | 23336 | |
f38a14ca TG |
23337 | cat >>confdefs.h <<_ACEOF |
23338 | #define HAVE_CTANF 1 | |
23339 | _ACEOF | |
db9f46a9 TG |
23340 | |
23341 | fi | |
23342 | ||
1409cd0b | 23343 | |
1409cd0b | 23344 | |
1409cd0b | 23345 | |
db9f46a9 TG |
23346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5 |
23347 | $as_echo_n "checking for ctan... " >&6; } | |
22e05272 | 23348 | if ${gcc_cv_math_func_ctan+:} false; then : |
5213506e | 23349 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23350 | else |
db9f46a9 | 23351 | if test x$gcc_no_link = xyes; then |
22e05272 | 23352 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23353 | fi |
5213506e | 23354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23355 | /* end confdefs.h. */ |
23356 | ||
db9f46a9 TG |
23357 | #ifdef HAVE_COMPLEX_H |
23358 | #include <complex.h> | |
23359 | #endif | |
23360 | #ifdef HAVE_MATH_H | |
23361 | #include <math.h> | |
1409cd0b | 23362 | #endif |
db9f46a9 TG |
23363 | |
23364 | int (*ptr)() = (int (*)())ctan; | |
23365 | ||
1409cd0b FXC |
23366 | int |
23367 | main () | |
23368 | { | |
1409cd0b FXC |
23369 | return 0; |
23370 | } | |
db9f46a9 | 23371 | |
1409cd0b | 23372 | _ACEOF |
5213506e | 23373 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23374 | gcc_cv_math_func_ctan=yes |
1409cd0b | 23375 | else |
db9f46a9 | 23376 | gcc_cv_math_func_ctan=no |
1409cd0b | 23377 | fi |
5213506e RW |
23378 | rm -f core conftest.err conftest.$ac_objext \ |
23379 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23380 | fi |
db9f46a9 TG |
23381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5 |
23382 | $as_echo "$gcc_cv_math_func_ctan" >&6; } | |
23383 | if test $gcc_cv_math_func_ctan = yes; then | |
f1cdfa01 | 23384 | |
f38a14ca TG |
23385 | cat >>confdefs.h <<_ACEOF |
23386 | #define HAVE_CTAN 1 | |
23387 | _ACEOF | |
db9f46a9 TG |
23388 | |
23389 | fi | |
1409cd0b | 23390 | |
1409cd0b | 23391 | |
1409cd0b | 23392 | |
db9f46a9 TG |
23393 | |
23394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5 | |
23395 | $as_echo_n "checking for ctanl... " >&6; } | |
22e05272 | 23396 | if ${gcc_cv_math_func_ctanl+:} false; then : |
5213506e | 23397 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23398 | else |
db9f46a9 | 23399 | if test x$gcc_no_link = xyes; then |
22e05272 | 23400 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23401 | fi |
5213506e | 23402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23403 | /* end confdefs.h. */ |
23404 | ||
db9f46a9 TG |
23405 | #ifdef HAVE_COMPLEX_H |
23406 | #include <complex.h> | |
1409cd0b | 23407 | #endif |
db9f46a9 TG |
23408 | #ifdef HAVE_MATH_H |
23409 | #include <math.h> | |
23410 | #endif | |
23411 | ||
23412 | int (*ptr)() = (int (*)())ctanl; | |
23413 | ||
1409cd0b FXC |
23414 | int |
23415 | main () | |
23416 | { | |
1409cd0b FXC |
23417 | return 0; |
23418 | } | |
db9f46a9 | 23419 | |
1409cd0b | 23420 | _ACEOF |
5213506e | 23421 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23422 | gcc_cv_math_func_ctanl=yes |
1409cd0b | 23423 | else |
db9f46a9 | 23424 | gcc_cv_math_func_ctanl=no |
1409cd0b | 23425 | fi |
5213506e RW |
23426 | rm -f core conftest.err conftest.$ac_objext \ |
23427 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23428 | fi |
db9f46a9 TG |
23429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5 |
23430 | $as_echo "$gcc_cv_math_func_ctanl" >&6; } | |
23431 | if test $gcc_cv_math_func_ctanl = yes; then | |
f1cdfa01 | 23432 | |
f38a14ca TG |
23433 | cat >>confdefs.h <<_ACEOF |
23434 | #define HAVE_CTANL 1 | |
23435 | _ACEOF | |
1409cd0b | 23436 | |
db9f46a9 | 23437 | fi |
1409cd0b | 23438 | |
1409cd0b | 23439 | |
db9f46a9 TG |
23440 | |
23441 | ||
23442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5 | |
23443 | $as_echo_n "checking for tanhf... " >&6; } | |
22e05272 | 23444 | if ${gcc_cv_math_func_tanhf+:} false; then : |
5213506e | 23445 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23446 | else |
db9f46a9 | 23447 | if test x$gcc_no_link = xyes; then |
22e05272 | 23448 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23449 | fi |
5213506e | 23450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23451 | /* end confdefs.h. */ |
23452 | ||
db9f46a9 TG |
23453 | #ifdef HAVE_COMPLEX_H |
23454 | #include <complex.h> | |
23455 | #endif | |
23456 | #ifdef HAVE_MATH_H | |
23457 | #include <math.h> | |
1409cd0b | 23458 | #endif |
db9f46a9 TG |
23459 | |
23460 | int (*ptr)() = (int (*)())tanhf; | |
23461 | ||
1409cd0b FXC |
23462 | int |
23463 | main () | |
23464 | { | |
1409cd0b FXC |
23465 | return 0; |
23466 | } | |
db9f46a9 | 23467 | |
1409cd0b | 23468 | _ACEOF |
5213506e | 23469 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23470 | gcc_cv_math_func_tanhf=yes |
1409cd0b | 23471 | else |
db9f46a9 | 23472 | gcc_cv_math_func_tanhf=no |
1409cd0b | 23473 | fi |
5213506e RW |
23474 | rm -f core conftest.err conftest.$ac_objext \ |
23475 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23476 | fi |
db9f46a9 TG |
23477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5 |
23478 | $as_echo "$gcc_cv_math_func_tanhf" >&6; } | |
23479 | if test $gcc_cv_math_func_tanhf = yes; then | |
f1cdfa01 | 23480 | |
f38a14ca TG |
23481 | cat >>confdefs.h <<_ACEOF |
23482 | #define HAVE_TANHF 1 | |
23483 | _ACEOF | |
db9f46a9 TG |
23484 | |
23485 | fi | |
1409cd0b | 23486 | |
1409cd0b | 23487 | |
1409cd0b | 23488 | |
db9f46a9 TG |
23489 | |
23490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5 | |
23491 | $as_echo_n "checking for tanh... " >&6; } | |
22e05272 | 23492 | if ${gcc_cv_math_func_tanh+:} false; then : |
5213506e | 23493 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23494 | else |
db9f46a9 | 23495 | if test x$gcc_no_link = xyes; then |
22e05272 | 23496 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23497 | fi |
5213506e | 23498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23499 | /* end confdefs.h. */ |
23500 | ||
db9f46a9 TG |
23501 | #ifdef HAVE_COMPLEX_H |
23502 | #include <complex.h> | |
1409cd0b | 23503 | #endif |
db9f46a9 TG |
23504 | #ifdef HAVE_MATH_H |
23505 | #include <math.h> | |
23506 | #endif | |
23507 | ||
23508 | int (*ptr)() = (int (*)())tanh; | |
23509 | ||
1409cd0b FXC |
23510 | int |
23511 | main () | |
23512 | { | |
1409cd0b FXC |
23513 | return 0; |
23514 | } | |
db9f46a9 | 23515 | |
1409cd0b | 23516 | _ACEOF |
5213506e | 23517 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23518 | gcc_cv_math_func_tanh=yes |
1409cd0b | 23519 | else |
db9f46a9 | 23520 | gcc_cv_math_func_tanh=no |
1409cd0b | 23521 | fi |
5213506e RW |
23522 | rm -f core conftest.err conftest.$ac_objext \ |
23523 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23524 | fi |
db9f46a9 TG |
23525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5 |
23526 | $as_echo "$gcc_cv_math_func_tanh" >&6; } | |
23527 | if test $gcc_cv_math_func_tanh = yes; then | |
f1cdfa01 | 23528 | |
f38a14ca TG |
23529 | cat >>confdefs.h <<_ACEOF |
23530 | #define HAVE_TANH 1 | |
23531 | _ACEOF | |
db9f46a9 TG |
23532 | |
23533 | fi | |
23534 | ||
1409cd0b | 23535 | |
1409cd0b | 23536 | |
1409cd0b | 23537 | |
db9f46a9 TG |
23538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5 |
23539 | $as_echo_n "checking for tanhl... " >&6; } | |
22e05272 | 23540 | if ${gcc_cv_math_func_tanhl+:} false; then : |
5213506e | 23541 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23542 | else |
db9f46a9 | 23543 | if test x$gcc_no_link = xyes; then |
22e05272 | 23544 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23545 | fi |
5213506e | 23546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23547 | /* end confdefs.h. */ |
23548 | ||
db9f46a9 TG |
23549 | #ifdef HAVE_COMPLEX_H |
23550 | #include <complex.h> | |
23551 | #endif | |
23552 | #ifdef HAVE_MATH_H | |
23553 | #include <math.h> | |
1409cd0b | 23554 | #endif |
db9f46a9 TG |
23555 | |
23556 | int (*ptr)() = (int (*)())tanhl; | |
23557 | ||
1409cd0b FXC |
23558 | int |
23559 | main () | |
23560 | { | |
1409cd0b FXC |
23561 | return 0; |
23562 | } | |
db9f46a9 | 23563 | |
1409cd0b | 23564 | _ACEOF |
5213506e | 23565 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23566 | gcc_cv_math_func_tanhl=yes |
1409cd0b | 23567 | else |
db9f46a9 | 23568 | gcc_cv_math_func_tanhl=no |
1409cd0b | 23569 | fi |
5213506e RW |
23570 | rm -f core conftest.err conftest.$ac_objext \ |
23571 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23572 | fi |
db9f46a9 TG |
23573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5 |
23574 | $as_echo "$gcc_cv_math_func_tanhl" >&6; } | |
23575 | if test $gcc_cv_math_func_tanhl = yes; then | |
f1cdfa01 | 23576 | |
f38a14ca TG |
23577 | cat >>confdefs.h <<_ACEOF |
23578 | #define HAVE_TANHL 1 | |
23579 | _ACEOF | |
db9f46a9 TG |
23580 | |
23581 | fi | |
1409cd0b | 23582 | |
1409cd0b | 23583 | |
1409cd0b | 23584 | |
db9f46a9 TG |
23585 | |
23586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5 | |
23587 | $as_echo_n "checking for ctanhf... " >&6; } | |
22e05272 | 23588 | if ${gcc_cv_math_func_ctanhf+:} false; then : |
5213506e | 23589 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23590 | else |
db9f46a9 | 23591 | if test x$gcc_no_link = xyes; then |
22e05272 | 23592 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db9f46a9 TG |
23593 | fi |
23594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23595 | /* end confdefs.h. */ | |
23596 | ||
23597 | #ifdef HAVE_COMPLEX_H | |
23598 | #include <complex.h> | |
1409cd0b | 23599 | #endif |
db9f46a9 TG |
23600 | #ifdef HAVE_MATH_H |
23601 | #include <math.h> | |
23602 | #endif | |
23603 | ||
23604 | int (*ptr)() = (int (*)())ctanhf; | |
23605 | ||
1409cd0b FXC |
23606 | int |
23607 | main () | |
23608 | { | |
1409cd0b FXC |
23609 | return 0; |
23610 | } | |
db9f46a9 | 23611 | |
1409cd0b | 23612 | _ACEOF |
5213506e | 23613 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23614 | gcc_cv_math_func_ctanhf=yes |
1409cd0b | 23615 | else |
db9f46a9 | 23616 | gcc_cv_math_func_ctanhf=no |
1409cd0b | 23617 | fi |
5213506e RW |
23618 | rm -f core conftest.err conftest.$ac_objext \ |
23619 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23620 | fi |
db9f46a9 TG |
23621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5 |
23622 | $as_echo "$gcc_cv_math_func_ctanhf" >&6; } | |
23623 | if test $gcc_cv_math_func_ctanhf = yes; then | |
f1cdfa01 | 23624 | |
f38a14ca TG |
23625 | cat >>confdefs.h <<_ACEOF |
23626 | #define HAVE_CTANHF 1 | |
23627 | _ACEOF | |
1409cd0b | 23628 | |
db9f46a9 | 23629 | fi |
1409cd0b | 23630 | |
1409cd0b | 23631 | |
db9f46a9 TG |
23632 | |
23633 | ||
23634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5 | |
23635 | $as_echo_n "checking for ctanh... " >&6; } | |
22e05272 | 23636 | if ${gcc_cv_math_func_ctanh+:} false; then : |
5213506e | 23637 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23638 | else |
db9f46a9 | 23639 | if test x$gcc_no_link = xyes; then |
22e05272 | 23640 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23641 | fi |
5213506e | 23642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23643 | /* end confdefs.h. */ |
23644 | ||
db9f46a9 TG |
23645 | #ifdef HAVE_COMPLEX_H |
23646 | #include <complex.h> | |
23647 | #endif | |
23648 | #ifdef HAVE_MATH_H | |
23649 | #include <math.h> | |
1409cd0b | 23650 | #endif |
db9f46a9 TG |
23651 | |
23652 | int (*ptr)() = (int (*)())ctanh; | |
23653 | ||
1409cd0b FXC |
23654 | int |
23655 | main () | |
23656 | { | |
5213506e RW |
23657 | return 0; |
23658 | } | |
db9f46a9 | 23659 | |
5213506e RW |
23660 | _ACEOF |
23661 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 23662 | gcc_cv_math_func_ctanh=yes |
1409cd0b | 23663 | else |
db9f46a9 | 23664 | gcc_cv_math_func_ctanh=no |
1409cd0b | 23665 | fi |
5213506e RW |
23666 | rm -f core conftest.err conftest.$ac_objext \ |
23667 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23668 | fi |
db9f46a9 TG |
23669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5 |
23670 | $as_echo "$gcc_cv_math_func_ctanh" >&6; } | |
23671 | if test $gcc_cv_math_func_ctanh = yes; then | |
f1cdfa01 | 23672 | |
f38a14ca TG |
23673 | cat >>confdefs.h <<_ACEOF |
23674 | #define HAVE_CTANH 1 | |
23675 | _ACEOF | |
db9f46a9 TG |
23676 | |
23677 | fi | |
1409cd0b | 23678 | |
1409cd0b | 23679 | |
1409cd0b | 23680 | |
db9f46a9 TG |
23681 | |
23682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5 | |
23683 | $as_echo_n "checking for ctanhl... " >&6; } | |
22e05272 | 23684 | if ${gcc_cv_math_func_ctanhl+:} false; then : |
5213506e | 23685 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23686 | else |
db9f46a9 | 23687 | if test x$gcc_no_link = xyes; then |
22e05272 | 23688 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23689 | fi |
5213506e | 23690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23691 | /* end confdefs.h. */ |
23692 | ||
db9f46a9 TG |
23693 | #ifdef HAVE_COMPLEX_H |
23694 | #include <complex.h> | |
1409cd0b | 23695 | #endif |
db9f46a9 TG |
23696 | #ifdef HAVE_MATH_H |
23697 | #include <math.h> | |
23698 | #endif | |
23699 | ||
23700 | int (*ptr)() = (int (*)())ctanhl; | |
23701 | ||
1409cd0b FXC |
23702 | int |
23703 | main () | |
23704 | { | |
1409cd0b FXC |
23705 | return 0; |
23706 | } | |
db9f46a9 | 23707 | |
1409cd0b | 23708 | _ACEOF |
5213506e | 23709 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23710 | gcc_cv_math_func_ctanhl=yes |
1409cd0b | 23711 | else |
db9f46a9 | 23712 | gcc_cv_math_func_ctanhl=no |
1409cd0b | 23713 | fi |
5213506e RW |
23714 | rm -f core conftest.err conftest.$ac_objext \ |
23715 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23716 | fi |
db9f46a9 TG |
23717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5 |
23718 | $as_echo "$gcc_cv_math_func_ctanhl" >&6; } | |
23719 | if test $gcc_cv_math_func_ctanhl = yes; then | |
f1cdfa01 | 23720 | |
f38a14ca TG |
23721 | cat >>confdefs.h <<_ACEOF |
23722 | #define HAVE_CTANHL 1 | |
23723 | _ACEOF | |
db9f46a9 TG |
23724 | |
23725 | fi | |
23726 | ||
1409cd0b | 23727 | |
69a2d125 | 23728 | |
69a2d125 | 23729 | |
db9f46a9 TG |
23730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5 |
23731 | $as_echo_n "checking for truncf... " >&6; } | |
22e05272 | 23732 | if ${gcc_cv_math_func_truncf+:} false; then : |
5213506e | 23733 | $as_echo_n "(cached) " >&6 |
69a2d125 | 23734 | else |
db9f46a9 | 23735 | if test x$gcc_no_link = xyes; then |
22e05272 | 23736 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 23737 | fi |
5213506e | 23738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
69a2d125 EB |
23739 | /* end confdefs.h. */ |
23740 | ||
db9f46a9 TG |
23741 | #ifdef HAVE_COMPLEX_H |
23742 | #include <complex.h> | |
23743 | #endif | |
23744 | #ifdef HAVE_MATH_H | |
23745 | #include <math.h> | |
69a2d125 | 23746 | #endif |
db9f46a9 TG |
23747 | |
23748 | int (*ptr)() = (int (*)())truncf; | |
23749 | ||
1409cd0b FXC |
23750 | int |
23751 | main () | |
23752 | { | |
1409cd0b FXC |
23753 | return 0; |
23754 | } | |
db9f46a9 | 23755 | |
1409cd0b | 23756 | _ACEOF |
5213506e | 23757 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23758 | gcc_cv_math_func_truncf=yes |
1409cd0b | 23759 | else |
db9f46a9 | 23760 | gcc_cv_math_func_truncf=no |
1409cd0b | 23761 | fi |
5213506e RW |
23762 | rm -f core conftest.err conftest.$ac_objext \ |
23763 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23764 | fi |
db9f46a9 TG |
23765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5 |
23766 | $as_echo "$gcc_cv_math_func_truncf" >&6; } | |
23767 | if test $gcc_cv_math_func_truncf = yes; then | |
f1cdfa01 | 23768 | |
f38a14ca TG |
23769 | cat >>confdefs.h <<_ACEOF |
23770 | #define HAVE_TRUNCF 1 | |
23771 | _ACEOF | |
db9f46a9 TG |
23772 | |
23773 | fi | |
1409cd0b | 23774 | |
1409cd0b | 23775 | |
1409cd0b | 23776 | |
db9f46a9 TG |
23777 | |
23778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5 | |
23779 | $as_echo_n "checking for trunc... " >&6; } | |
22e05272 | 23780 | if ${gcc_cv_math_func_trunc+:} false; then : |
5213506e | 23781 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23782 | else |
db9f46a9 | 23783 | if test x$gcc_no_link = xyes; then |
22e05272 | 23784 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23785 | fi |
5213506e | 23786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23787 | /* end confdefs.h. */ |
23788 | ||
db9f46a9 TG |
23789 | #ifdef HAVE_COMPLEX_H |
23790 | #include <complex.h> | |
1409cd0b | 23791 | #endif |
db9f46a9 TG |
23792 | #ifdef HAVE_MATH_H |
23793 | #include <math.h> | |
23794 | #endif | |
23795 | ||
23796 | int (*ptr)() = (int (*)())trunc; | |
23797 | ||
1409cd0b FXC |
23798 | int |
23799 | main () | |
23800 | { | |
1409cd0b FXC |
23801 | return 0; |
23802 | } | |
db9f46a9 | 23803 | |
1409cd0b | 23804 | _ACEOF |
5213506e | 23805 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23806 | gcc_cv_math_func_trunc=yes |
1409cd0b | 23807 | else |
db9f46a9 | 23808 | gcc_cv_math_func_trunc=no |
1409cd0b | 23809 | fi |
5213506e RW |
23810 | rm -f core conftest.err conftest.$ac_objext \ |
23811 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23812 | fi |
db9f46a9 TG |
23813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5 |
23814 | $as_echo "$gcc_cv_math_func_trunc" >&6; } | |
23815 | if test $gcc_cv_math_func_trunc = yes; then | |
f1cdfa01 | 23816 | |
f38a14ca TG |
23817 | cat >>confdefs.h <<_ACEOF |
23818 | #define HAVE_TRUNC 1 | |
23819 | _ACEOF | |
1409cd0b | 23820 | |
db9f46a9 | 23821 | fi |
1409cd0b | 23822 | |
1409cd0b | 23823 | |
db9f46a9 TG |
23824 | |
23825 | ||
23826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5 | |
23827 | $as_echo_n "checking for truncl... " >&6; } | |
22e05272 | 23828 | if ${gcc_cv_math_func_truncl+:} false; then : |
5213506e | 23829 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23830 | else |
db9f46a9 | 23831 | if test x$gcc_no_link = xyes; then |
22e05272 | 23832 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23833 | fi |
5213506e | 23834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23835 | /* end confdefs.h. */ |
23836 | ||
db9f46a9 TG |
23837 | #ifdef HAVE_COMPLEX_H |
23838 | #include <complex.h> | |
23839 | #endif | |
23840 | #ifdef HAVE_MATH_H | |
23841 | #include <math.h> | |
1409cd0b | 23842 | #endif |
db9f46a9 TG |
23843 | |
23844 | int (*ptr)() = (int (*)())truncl; | |
23845 | ||
1409cd0b FXC |
23846 | int |
23847 | main () | |
23848 | { | |
1409cd0b FXC |
23849 | return 0; |
23850 | } | |
db9f46a9 | 23851 | |
1409cd0b | 23852 | _ACEOF |
5213506e | 23853 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23854 | gcc_cv_math_func_truncl=yes |
1409cd0b | 23855 | else |
db9f46a9 | 23856 | gcc_cv_math_func_truncl=no |
1409cd0b | 23857 | fi |
5213506e RW |
23858 | rm -f core conftest.err conftest.$ac_objext \ |
23859 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23860 | fi |
db9f46a9 TG |
23861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5 |
23862 | $as_echo "$gcc_cv_math_func_truncl" >&6; } | |
23863 | if test $gcc_cv_math_func_truncl = yes; then | |
f1cdfa01 | 23864 | |
f38a14ca TG |
23865 | cat >>confdefs.h <<_ACEOF |
23866 | #define HAVE_TRUNCL 1 | |
23867 | _ACEOF | |
db9f46a9 TG |
23868 | |
23869 | fi | |
1409cd0b | 23870 | |
1409cd0b | 23871 | |
1409cd0b | 23872 | |
db9f46a9 TG |
23873 | |
23874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5 | |
23875 | $as_echo_n "checking for erff... " >&6; } | |
22e05272 | 23876 | if ${gcc_cv_math_func_erff+:} false; then : |
5213506e | 23877 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23878 | else |
db9f46a9 | 23879 | if test x$gcc_no_link = xyes; then |
22e05272 | 23880 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23881 | fi |
5213506e | 23882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23883 | /* end confdefs.h. */ |
23884 | ||
db9f46a9 TG |
23885 | #ifdef HAVE_COMPLEX_H |
23886 | #include <complex.h> | |
1409cd0b | 23887 | #endif |
db9f46a9 TG |
23888 | #ifdef HAVE_MATH_H |
23889 | #include <math.h> | |
23890 | #endif | |
23891 | ||
23892 | int (*ptr)() = (int (*)())erff; | |
23893 | ||
1409cd0b FXC |
23894 | int |
23895 | main () | |
23896 | { | |
1409cd0b FXC |
23897 | return 0; |
23898 | } | |
db9f46a9 | 23899 | |
1409cd0b | 23900 | _ACEOF |
5213506e | 23901 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23902 | gcc_cv_math_func_erff=yes |
1409cd0b | 23903 | else |
db9f46a9 | 23904 | gcc_cv_math_func_erff=no |
1409cd0b | 23905 | fi |
5213506e RW |
23906 | rm -f core conftest.err conftest.$ac_objext \ |
23907 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23908 | fi |
db9f46a9 TG |
23909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5 |
23910 | $as_echo "$gcc_cv_math_func_erff" >&6; } | |
23911 | if test $gcc_cv_math_func_erff = yes; then | |
f1cdfa01 | 23912 | |
f38a14ca TG |
23913 | cat >>confdefs.h <<_ACEOF |
23914 | #define HAVE_ERFF 1 | |
23915 | _ACEOF | |
db9f46a9 TG |
23916 | |
23917 | fi | |
23918 | ||
1409cd0b | 23919 | |
1409cd0b | 23920 | |
1409cd0b | 23921 | |
db9f46a9 TG |
23922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5 |
23923 | $as_echo_n "checking for erf... " >&6; } | |
22e05272 | 23924 | if ${gcc_cv_math_func_erf+:} false; then : |
5213506e | 23925 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23926 | else |
db9f46a9 | 23927 | if test x$gcc_no_link = xyes; then |
22e05272 | 23928 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23929 | fi |
5213506e | 23930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23931 | /* end confdefs.h. */ |
23932 | ||
db9f46a9 TG |
23933 | #ifdef HAVE_COMPLEX_H |
23934 | #include <complex.h> | |
23935 | #endif | |
23936 | #ifdef HAVE_MATH_H | |
23937 | #include <math.h> | |
1409cd0b | 23938 | #endif |
db9f46a9 TG |
23939 | |
23940 | int (*ptr)() = (int (*)())erf; | |
23941 | ||
1409cd0b FXC |
23942 | int |
23943 | main () | |
23944 | { | |
1409cd0b FXC |
23945 | return 0; |
23946 | } | |
db9f46a9 | 23947 | |
1409cd0b | 23948 | _ACEOF |
5213506e | 23949 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23950 | gcc_cv_math_func_erf=yes |
1409cd0b | 23951 | else |
db9f46a9 | 23952 | gcc_cv_math_func_erf=no |
1409cd0b | 23953 | fi |
5213506e RW |
23954 | rm -f core conftest.err conftest.$ac_objext \ |
23955 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23956 | fi |
db9f46a9 TG |
23957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5 |
23958 | $as_echo "$gcc_cv_math_func_erf" >&6; } | |
23959 | if test $gcc_cv_math_func_erf = yes; then | |
f1cdfa01 | 23960 | |
f38a14ca TG |
23961 | cat >>confdefs.h <<_ACEOF |
23962 | #define HAVE_ERF 1 | |
23963 | _ACEOF | |
db9f46a9 TG |
23964 | |
23965 | fi | |
1409cd0b | 23966 | |
1409cd0b | 23967 | |
1409cd0b | 23968 | |
db9f46a9 | 23969 | |
db9f46a9 TG |
23970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5 |
23971 | $as_echo_n "checking for erfcf... " >&6; } | |
22e05272 | 23972 | if ${gcc_cv_math_func_erfcf+:} false; then : |
5213506e | 23973 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23974 | else |
db9f46a9 | 23975 | if test x$gcc_no_link = xyes; then |
22e05272 | 23976 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23977 | fi |
5213506e | 23978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23979 | /* end confdefs.h. */ |
23980 | ||
db9f46a9 TG |
23981 | #ifdef HAVE_COMPLEX_H |
23982 | #include <complex.h> | |
23983 | #endif | |
23984 | #ifdef HAVE_MATH_H | |
23985 | #include <math.h> | |
1409cd0b | 23986 | #endif |
db9f46a9 TG |
23987 | |
23988 | int (*ptr)() = (int (*)())erfcf; | |
23989 | ||
1409cd0b FXC |
23990 | int |
23991 | main () | |
23992 | { | |
1409cd0b FXC |
23993 | return 0; |
23994 | } | |
db9f46a9 | 23995 | |
1409cd0b | 23996 | _ACEOF |
5213506e | 23997 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23998 | gcc_cv_math_func_erfcf=yes |
1409cd0b | 23999 | else |
db9f46a9 | 24000 | gcc_cv_math_func_erfcf=no |
1409cd0b | 24001 | fi |
5213506e RW |
24002 | rm -f core conftest.err conftest.$ac_objext \ |
24003 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 24004 | fi |
db9f46a9 TG |
24005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5 |
24006 | $as_echo "$gcc_cv_math_func_erfcf" >&6; } | |
24007 | if test $gcc_cv_math_func_erfcf = yes; then | |
f1cdfa01 | 24008 | |
f38a14ca TG |
24009 | cat >>confdefs.h <<_ACEOF |
24010 | #define HAVE_ERFCF 1 | |
24011 | _ACEOF | |
db9f46a9 TG |
24012 | |
24013 | fi | |
1409cd0b | 24014 | |
1409cd0b | 24015 | |
1409cd0b | 24016 | |
db9f46a9 TG |
24017 | |
24018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5 | |
24019 | $as_echo_n "checking for erfc... " >&6; } | |
22e05272 | 24020 | if ${gcc_cv_math_func_erfc+:} false; then : |
5213506e | 24021 | $as_echo_n "(cached) " >&6 |
1409cd0b | 24022 | else |
db9f46a9 | 24023 | if test x$gcc_no_link = xyes; then |
22e05272 | 24024 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 24025 | fi |
5213506e | 24026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
24027 | /* end confdefs.h. */ |
24028 | ||
db9f46a9 TG |
24029 | #ifdef HAVE_COMPLEX_H |
24030 | #include <complex.h> | |
1409cd0b | 24031 | #endif |
db9f46a9 TG |
24032 | #ifdef HAVE_MATH_H |
24033 | #include <math.h> | |
24034 | #endif | |
24035 | ||
24036 | int (*ptr)() = (int (*)())erfc; | |
24037 | ||
69a2d125 EB |
24038 | int |
24039 | main () | |
24040 | { | |
69a2d125 EB |
24041 | return 0; |
24042 | } | |
db9f46a9 | 24043 | |
69a2d125 | 24044 | _ACEOF |
5213506e | 24045 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24046 | gcc_cv_math_func_erfc=yes |
69a2d125 | 24047 | else |
db9f46a9 | 24048 | gcc_cv_math_func_erfc=no |
69a2d125 | 24049 | fi |
5213506e RW |
24050 | rm -f core conftest.err conftest.$ac_objext \ |
24051 | conftest$ac_exeext conftest.$ac_ext | |
69a2d125 | 24052 | fi |
db9f46a9 TG |
24053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5 |
24054 | $as_echo "$gcc_cv_math_func_erfc" >&6; } | |
24055 | if test $gcc_cv_math_func_erfc = yes; then | |
f1cdfa01 | 24056 | |
f38a14ca TG |
24057 | cat >>confdefs.h <<_ACEOF |
24058 | #define HAVE_ERFC 1 | |
24059 | _ACEOF | |
db9f46a9 TG |
24060 | |
24061 | fi | |
24062 | ||
69a2d125 | 24063 | |
69a2d125 | 24064 | |
69a2d125 | 24065 | |
db9f46a9 TG |
24066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5 |
24067 | $as_echo_n "checking for erfcl... " >&6; } | |
22e05272 | 24068 | if ${gcc_cv_math_func_erfcl+:} false; then : |
5213506e | 24069 | $as_echo_n "(cached) " >&6 |
e8525382 | 24070 | else |
db9f46a9 | 24071 | if test x$gcc_no_link = xyes; then |
22e05272 | 24072 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24073 | fi |
5213506e | 24074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24075 | /* end confdefs.h. */ |
24076 | ||
db9f46a9 TG |
24077 | #ifdef HAVE_COMPLEX_H |
24078 | #include <complex.h> | |
24079 | #endif | |
24080 | #ifdef HAVE_MATH_H | |
24081 | #include <math.h> | |
e8525382 | 24082 | #endif |
db9f46a9 TG |
24083 | |
24084 | int (*ptr)() = (int (*)())erfcl; | |
24085 | ||
e8525382 SK |
24086 | int |
24087 | main () | |
24088 | { | |
e8525382 SK |
24089 | return 0; |
24090 | } | |
db9f46a9 | 24091 | |
e8525382 | 24092 | _ACEOF |
5213506e | 24093 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24094 | gcc_cv_math_func_erfcl=yes |
e8525382 | 24095 | else |
db9f46a9 | 24096 | gcc_cv_math_func_erfcl=no |
e8525382 | 24097 | fi |
5213506e RW |
24098 | rm -f core conftest.err conftest.$ac_objext \ |
24099 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24100 | fi |
db9f46a9 TG |
24101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5 |
24102 | $as_echo "$gcc_cv_math_func_erfcl" >&6; } | |
24103 | if test $gcc_cv_math_func_erfcl = yes; then | |
f1cdfa01 | 24104 | |
f38a14ca TG |
24105 | cat >>confdefs.h <<_ACEOF |
24106 | #define HAVE_ERFCL 1 | |
24107 | _ACEOF | |
db9f46a9 TG |
24108 | |
24109 | fi | |
e8525382 | 24110 | |
e8525382 | 24111 | |
e8525382 | 24112 | |
db9f46a9 TG |
24113 | |
24114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5 | |
24115 | $as_echo_n "checking for j0f... " >&6; } | |
22e05272 | 24116 | if ${gcc_cv_math_func_j0f+:} false; then : |
5213506e | 24117 | $as_echo_n "(cached) " >&6 |
e8525382 | 24118 | else |
db9f46a9 | 24119 | if test x$gcc_no_link = xyes; then |
22e05272 | 24120 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24121 | fi |
5213506e | 24122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24123 | /* end confdefs.h. */ |
24124 | ||
db9f46a9 TG |
24125 | #ifdef HAVE_COMPLEX_H |
24126 | #include <complex.h> | |
e8525382 | 24127 | #endif |
db9f46a9 TG |
24128 | #ifdef HAVE_MATH_H |
24129 | #include <math.h> | |
24130 | #endif | |
24131 | ||
24132 | int (*ptr)() = (int (*)())j0f; | |
24133 | ||
e8525382 SK |
24134 | int |
24135 | main () | |
24136 | { | |
e8525382 SK |
24137 | return 0; |
24138 | } | |
db9f46a9 | 24139 | |
e8525382 | 24140 | _ACEOF |
5213506e | 24141 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24142 | gcc_cv_math_func_j0f=yes |
e8525382 | 24143 | else |
db9f46a9 | 24144 | gcc_cv_math_func_j0f=no |
1409cd0b | 24145 | fi |
5213506e RW |
24146 | rm -f core conftest.err conftest.$ac_objext \ |
24147 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 24148 | fi |
db9f46a9 TG |
24149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5 |
24150 | $as_echo "$gcc_cv_math_func_j0f" >&6; } | |
24151 | if test $gcc_cv_math_func_j0f = yes; then | |
f1cdfa01 | 24152 | |
f38a14ca TG |
24153 | cat >>confdefs.h <<_ACEOF |
24154 | #define HAVE_J0F 1 | |
24155 | _ACEOF | |
1409cd0b | 24156 | |
db9f46a9 | 24157 | fi |
1409cd0b | 24158 | |
1409cd0b | 24159 | |
db9f46a9 TG |
24160 | |
24161 | ||
24162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5 | |
24163 | $as_echo_n "checking for j0... " >&6; } | |
22e05272 | 24164 | if ${gcc_cv_math_func_j0+:} false; then : |
5213506e | 24165 | $as_echo_n "(cached) " >&6 |
1409cd0b | 24166 | else |
db9f46a9 | 24167 | if test x$gcc_no_link = xyes; then |
22e05272 | 24168 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 24169 | fi |
5213506e | 24170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
24171 | /* end confdefs.h. */ |
24172 | ||
db9f46a9 TG |
24173 | #ifdef HAVE_COMPLEX_H |
24174 | #include <complex.h> | |
24175 | #endif | |
24176 | #ifdef HAVE_MATH_H | |
24177 | #include <math.h> | |
1409cd0b | 24178 | #endif |
db9f46a9 TG |
24179 | |
24180 | int (*ptr)() = (int (*)())j0; | |
24181 | ||
1409cd0b FXC |
24182 | int |
24183 | main () | |
24184 | { | |
1409cd0b FXC |
24185 | return 0; |
24186 | } | |
db9f46a9 | 24187 | |
1409cd0b | 24188 | _ACEOF |
5213506e | 24189 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24190 | gcc_cv_math_func_j0=yes |
1409cd0b | 24191 | else |
db9f46a9 | 24192 | gcc_cv_math_func_j0=no |
1409cd0b | 24193 | fi |
5213506e RW |
24194 | rm -f core conftest.err conftest.$ac_objext \ |
24195 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 24196 | fi |
db9f46a9 TG |
24197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5 |
24198 | $as_echo "$gcc_cv_math_func_j0" >&6; } | |
24199 | if test $gcc_cv_math_func_j0 = yes; then | |
f1cdfa01 | 24200 | |
f38a14ca TG |
24201 | cat >>confdefs.h <<_ACEOF |
24202 | #define HAVE_J0 1 | |
24203 | _ACEOF | |
db9f46a9 TG |
24204 | |
24205 | fi | |
1409cd0b | 24206 | |
1409cd0b | 24207 | |
1409cd0b | 24208 | |
db9f46a9 | 24209 | |
db9f46a9 TG |
24210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5 |
24211 | $as_echo_n "checking for j1f... " >&6; } | |
22e05272 | 24212 | if ${gcc_cv_math_func_j1f+:} false; then : |
5213506e | 24213 | $as_echo_n "(cached) " >&6 |
1409cd0b | 24214 | else |
db9f46a9 | 24215 | if test x$gcc_no_link = xyes; then |
22e05272 | 24216 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 24217 | fi |
5213506e | 24218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
24219 | /* end confdefs.h. */ |
24220 | ||
db9f46a9 TG |
24221 | #ifdef HAVE_COMPLEX_H |
24222 | #include <complex.h> | |
24223 | #endif | |
24224 | #ifdef HAVE_MATH_H | |
24225 | #include <math.h> | |
1409cd0b | 24226 | #endif |
db9f46a9 TG |
24227 | |
24228 | int (*ptr)() = (int (*)())j1f; | |
24229 | ||
1409cd0b FXC |
24230 | int |
24231 | main () | |
24232 | { | |
1409cd0b FXC |
24233 | return 0; |
24234 | } | |
db9f46a9 | 24235 | |
1409cd0b | 24236 | _ACEOF |
5213506e | 24237 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24238 | gcc_cv_math_func_j1f=yes |
1409cd0b | 24239 | else |
db9f46a9 | 24240 | gcc_cv_math_func_j1f=no |
e8525382 | 24241 | fi |
5213506e RW |
24242 | rm -f core conftest.err conftest.$ac_objext \ |
24243 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24244 | fi |
db9f46a9 TG |
24245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5 |
24246 | $as_echo "$gcc_cv_math_func_j1f" >&6; } | |
24247 | if test $gcc_cv_math_func_j1f = yes; then | |
f1cdfa01 | 24248 | |
f38a14ca TG |
24249 | cat >>confdefs.h <<_ACEOF |
24250 | #define HAVE_J1F 1 | |
24251 | _ACEOF | |
db9f46a9 TG |
24252 | |
24253 | fi | |
e8525382 | 24254 | |
e8525382 | 24255 | |
e8525382 | 24256 | |
db9f46a9 TG |
24257 | |
24258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5 | |
24259 | $as_echo_n "checking for j1... " >&6; } | |
22e05272 | 24260 | if ${gcc_cv_math_func_j1+:} false; then : |
5213506e | 24261 | $as_echo_n "(cached) " >&6 |
e8525382 | 24262 | else |
db9f46a9 | 24263 | if test x$gcc_no_link = xyes; then |
22e05272 | 24264 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24265 | fi |
5213506e | 24266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24267 | /* end confdefs.h. */ |
24268 | ||
db9f46a9 TG |
24269 | #ifdef HAVE_COMPLEX_H |
24270 | #include <complex.h> | |
e8525382 | 24271 | #endif |
db9f46a9 TG |
24272 | #ifdef HAVE_MATH_H |
24273 | #include <math.h> | |
24274 | #endif | |
24275 | ||
24276 | int (*ptr)() = (int (*)())j1; | |
24277 | ||
e8525382 SK |
24278 | int |
24279 | main () | |
24280 | { | |
e8525382 SK |
24281 | return 0; |
24282 | } | |
db9f46a9 | 24283 | |
e8525382 | 24284 | _ACEOF |
5213506e | 24285 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24286 | gcc_cv_math_func_j1=yes |
e8525382 | 24287 | else |
db9f46a9 | 24288 | gcc_cv_math_func_j1=no |
e8525382 | 24289 | fi |
5213506e RW |
24290 | rm -f core conftest.err conftest.$ac_objext \ |
24291 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24292 | fi |
db9f46a9 TG |
24293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5 |
24294 | $as_echo "$gcc_cv_math_func_j1" >&6; } | |
24295 | if test $gcc_cv_math_func_j1 = yes; then | |
f1cdfa01 | 24296 | |
f38a14ca TG |
24297 | cat >>confdefs.h <<_ACEOF |
24298 | #define HAVE_J1 1 | |
24299 | _ACEOF | |
e8525382 | 24300 | |
db9f46a9 | 24301 | fi |
e8525382 | 24302 | |
e8525382 | 24303 | |
db9f46a9 TG |
24304 | |
24305 | ||
db9f46a9 TG |
24306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5 |
24307 | $as_echo_n "checking for jnf... " >&6; } | |
22e05272 | 24308 | if ${gcc_cv_math_func_jnf+:} false; then : |
5213506e | 24309 | $as_echo_n "(cached) " >&6 |
e8525382 | 24310 | else |
db9f46a9 | 24311 | if test x$gcc_no_link = xyes; then |
22e05272 | 24312 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24313 | fi |
5213506e | 24314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24315 | /* end confdefs.h. */ |
24316 | ||
db9f46a9 TG |
24317 | #ifdef HAVE_COMPLEX_H |
24318 | #include <complex.h> | |
e8525382 | 24319 | #endif |
db9f46a9 TG |
24320 | #ifdef HAVE_MATH_H |
24321 | #include <math.h> | |
24322 | #endif | |
24323 | ||
24324 | int (*ptr)() = (int (*)())jnf; | |
24325 | ||
e8525382 SK |
24326 | int |
24327 | main () | |
24328 | { | |
e8525382 SK |
24329 | return 0; |
24330 | } | |
db9f46a9 | 24331 | |
e8525382 | 24332 | _ACEOF |
5213506e | 24333 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24334 | gcc_cv_math_func_jnf=yes |
e8525382 | 24335 | else |
db9f46a9 | 24336 | gcc_cv_math_func_jnf=no |
e8525382 | 24337 | fi |
5213506e RW |
24338 | rm -f core conftest.err conftest.$ac_objext \ |
24339 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24340 | fi |
db9f46a9 TG |
24341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5 |
24342 | $as_echo "$gcc_cv_math_func_jnf" >&6; } | |
24343 | if test $gcc_cv_math_func_jnf = yes; then | |
f1cdfa01 | 24344 | |
f38a14ca TG |
24345 | cat >>confdefs.h <<_ACEOF |
24346 | #define HAVE_JNF 1 | |
24347 | _ACEOF | |
db9f46a9 TG |
24348 | |
24349 | fi | |
24350 | ||
e8525382 | 24351 | |
e8525382 | 24352 | |
e8525382 | 24353 | |
db9f46a9 TG |
24354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5 |
24355 | $as_echo_n "checking for jn... " >&6; } | |
22e05272 | 24356 | if ${gcc_cv_math_func_jn+:} false; then : |
5213506e | 24357 | $as_echo_n "(cached) " >&6 |
e8525382 | 24358 | else |
db9f46a9 | 24359 | if test x$gcc_no_link = xyes; then |
22e05272 | 24360 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24361 | fi |
5213506e | 24362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24363 | /* end confdefs.h. */ |
24364 | ||
db9f46a9 TG |
24365 | #ifdef HAVE_COMPLEX_H |
24366 | #include <complex.h> | |
24367 | #endif | |
24368 | #ifdef HAVE_MATH_H | |
24369 | #include <math.h> | |
e8525382 | 24370 | #endif |
db9f46a9 TG |
24371 | |
24372 | int (*ptr)() = (int (*)())jn; | |
24373 | ||
e8525382 SK |
24374 | int |
24375 | main () | |
24376 | { | |
e8525382 SK |
24377 | return 0; |
24378 | } | |
db9f46a9 | 24379 | |
e8525382 | 24380 | _ACEOF |
5213506e | 24381 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24382 | gcc_cv_math_func_jn=yes |
e8525382 | 24383 | else |
db9f46a9 | 24384 | gcc_cv_math_func_jn=no |
e8525382 | 24385 | fi |
5213506e RW |
24386 | rm -f core conftest.err conftest.$ac_objext \ |
24387 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24388 | fi |
db9f46a9 TG |
24389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5 |
24390 | $as_echo "$gcc_cv_math_func_jn" >&6; } | |
24391 | if test $gcc_cv_math_func_jn = yes; then | |
f1cdfa01 | 24392 | |
f38a14ca TG |
24393 | cat >>confdefs.h <<_ACEOF |
24394 | #define HAVE_JN 1 | |
24395 | _ACEOF | |
db9f46a9 TG |
24396 | |
24397 | fi | |
e8525382 | 24398 | |
e8525382 | 24399 | |
e8525382 | 24400 | |
db9f46a9 TG |
24401 | |
24402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5 | |
24403 | $as_echo_n "checking for jnl... " >&6; } | |
22e05272 | 24404 | if ${gcc_cv_math_func_jnl+:} false; then : |
5213506e | 24405 | $as_echo_n "(cached) " >&6 |
e8525382 | 24406 | else |
db9f46a9 | 24407 | if test x$gcc_no_link = xyes; then |
22e05272 | 24408 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24409 | fi |
5213506e | 24410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24411 | /* end confdefs.h. */ |
24412 | ||
db9f46a9 TG |
24413 | #ifdef HAVE_COMPLEX_H |
24414 | #include <complex.h> | |
e8525382 | 24415 | #endif |
db9f46a9 TG |
24416 | #ifdef HAVE_MATH_H |
24417 | #include <math.h> | |
24418 | #endif | |
24419 | ||
24420 | int (*ptr)() = (int (*)())jnl; | |
24421 | ||
e8525382 SK |
24422 | int |
24423 | main () | |
24424 | { | |
e8525382 SK |
24425 | return 0; |
24426 | } | |
db9f46a9 | 24427 | |
e8525382 | 24428 | _ACEOF |
5213506e | 24429 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24430 | gcc_cv_math_func_jnl=yes |
e8525382 | 24431 | else |
db9f46a9 | 24432 | gcc_cv_math_func_jnl=no |
e8525382 | 24433 | fi |
5213506e RW |
24434 | rm -f core conftest.err conftest.$ac_objext \ |
24435 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24436 | fi |
db9f46a9 TG |
24437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5 |
24438 | $as_echo "$gcc_cv_math_func_jnl" >&6; } | |
24439 | if test $gcc_cv_math_func_jnl = yes; then | |
f1cdfa01 | 24440 | |
f38a14ca TG |
24441 | cat >>confdefs.h <<_ACEOF |
24442 | #define HAVE_JNL 1 | |
24443 | _ACEOF | |
e8525382 | 24444 | |
db9f46a9 | 24445 | fi |
e8525382 | 24446 | |
e8525382 | 24447 | |
db9f46a9 TG |
24448 | |
24449 | ||
24450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5 | |
24451 | $as_echo_n "checking for y0f... " >&6; } | |
22e05272 | 24452 | if ${gcc_cv_math_func_y0f+:} false; then : |
5213506e | 24453 | $as_echo_n "(cached) " >&6 |
e8525382 | 24454 | else |
db9f46a9 | 24455 | if test x$gcc_no_link = xyes; then |
22e05272 | 24456 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24457 | fi |
5213506e | 24458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24459 | /* end confdefs.h. */ |
24460 | ||
db9f46a9 TG |
24461 | #ifdef HAVE_COMPLEX_H |
24462 | #include <complex.h> | |
24463 | #endif | |
24464 | #ifdef HAVE_MATH_H | |
24465 | #include <math.h> | |
e8525382 | 24466 | #endif |
db9f46a9 TG |
24467 | |
24468 | int (*ptr)() = (int (*)())y0f; | |
24469 | ||
e8525382 SK |
24470 | int |
24471 | main () | |
24472 | { | |
e8525382 SK |
24473 | return 0; |
24474 | } | |
db9f46a9 | 24475 | |
e8525382 | 24476 | _ACEOF |
5213506e | 24477 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24478 | gcc_cv_math_func_y0f=yes |
e8525382 | 24479 | else |
db9f46a9 | 24480 | gcc_cv_math_func_y0f=no |
e8525382 | 24481 | fi |
5213506e RW |
24482 | rm -f core conftest.err conftest.$ac_objext \ |
24483 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24484 | fi |
db9f46a9 TG |
24485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5 |
24486 | $as_echo "$gcc_cv_math_func_y0f" >&6; } | |
24487 | if test $gcc_cv_math_func_y0f = yes; then | |
f1cdfa01 | 24488 | |
f38a14ca TG |
24489 | cat >>confdefs.h <<_ACEOF |
24490 | #define HAVE_Y0F 1 | |
24491 | _ACEOF | |
db9f46a9 TG |
24492 | |
24493 | fi | |
e8525382 | 24494 | |
e8525382 | 24495 | |
e8525382 | 24496 | |
db9f46a9 TG |
24497 | |
24498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5 | |
24499 | $as_echo_n "checking for y0... " >&6; } | |
22e05272 | 24500 | if ${gcc_cv_math_func_y0+:} false; then : |
5213506e | 24501 | $as_echo_n "(cached) " >&6 |
e8525382 | 24502 | else |
db9f46a9 | 24503 | if test x$gcc_no_link = xyes; then |
22e05272 | 24504 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24505 | fi |
5213506e | 24506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24507 | /* end confdefs.h. */ |
24508 | ||
db9f46a9 TG |
24509 | #ifdef HAVE_COMPLEX_H |
24510 | #include <complex.h> | |
e8525382 | 24511 | #endif |
db9f46a9 TG |
24512 | #ifdef HAVE_MATH_H |
24513 | #include <math.h> | |
24514 | #endif | |
24515 | ||
24516 | int (*ptr)() = (int (*)())y0; | |
24517 | ||
e8525382 SK |
24518 | int |
24519 | main () | |
24520 | { | |
e8525382 SK |
24521 | return 0; |
24522 | } | |
db9f46a9 | 24523 | |
e8525382 | 24524 | _ACEOF |
5213506e | 24525 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24526 | gcc_cv_math_func_y0=yes |
e8525382 | 24527 | else |
db9f46a9 | 24528 | gcc_cv_math_func_y0=no |
e8525382 | 24529 | fi |
5213506e RW |
24530 | rm -f core conftest.err conftest.$ac_objext \ |
24531 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24532 | fi |
db9f46a9 TG |
24533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5 |
24534 | $as_echo "$gcc_cv_math_func_y0" >&6; } | |
24535 | if test $gcc_cv_math_func_y0 = yes; then | |
f1cdfa01 | 24536 | |
f38a14ca TG |
24537 | cat >>confdefs.h <<_ACEOF |
24538 | #define HAVE_Y0 1 | |
24539 | _ACEOF | |
db9f46a9 TG |
24540 | |
24541 | fi | |
24542 | ||
e8525382 | 24543 | |
e8525382 | 24544 | |
e8525382 | 24545 | |
db9f46a9 TG |
24546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5 |
24547 | $as_echo_n "checking for y1f... " >&6; } | |
22e05272 | 24548 | if ${gcc_cv_math_func_y1f+:} false; then : |
5213506e | 24549 | $as_echo_n "(cached) " >&6 |
e8525382 | 24550 | else |
db9f46a9 | 24551 | if test x$gcc_no_link = xyes; then |
22e05272 | 24552 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24553 | fi |
5213506e | 24554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24555 | /* end confdefs.h. */ |
24556 | ||
db9f46a9 TG |
24557 | #ifdef HAVE_COMPLEX_H |
24558 | #include <complex.h> | |
e8525382 | 24559 | #endif |
db9f46a9 TG |
24560 | #ifdef HAVE_MATH_H |
24561 | #include <math.h> | |
24562 | #endif | |
24563 | ||
24564 | int (*ptr)() = (int (*)())y1f; | |
24565 | ||
e8525382 SK |
24566 | int |
24567 | main () | |
24568 | { | |
e8525382 SK |
24569 | return 0; |
24570 | } | |
db9f46a9 | 24571 | |
e8525382 | 24572 | _ACEOF |
5213506e | 24573 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24574 | gcc_cv_math_func_y1f=yes |
e8525382 | 24575 | else |
db9f46a9 | 24576 | gcc_cv_math_func_y1f=no |
e8525382 | 24577 | fi |
5213506e RW |
24578 | rm -f core conftest.err conftest.$ac_objext \ |
24579 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24580 | fi |
db9f46a9 TG |
24581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5 |
24582 | $as_echo "$gcc_cv_math_func_y1f" >&6; } | |
24583 | if test $gcc_cv_math_func_y1f = yes; then | |
f1cdfa01 | 24584 | |
f38a14ca TG |
24585 | cat >>confdefs.h <<_ACEOF |
24586 | #define HAVE_Y1F 1 | |
24587 | _ACEOF | |
e8525382 | 24588 | |
db9f46a9 | 24589 | fi |
e8525382 | 24590 | |
e8525382 | 24591 | |
db9f46a9 TG |
24592 | |
24593 | ||
24594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5 | |
24595 | $as_echo_n "checking for y1... " >&6; } | |
22e05272 | 24596 | if ${gcc_cv_math_func_y1+:} false; then : |
5213506e | 24597 | $as_echo_n "(cached) " >&6 |
e8525382 | 24598 | else |
db9f46a9 | 24599 | if test x$gcc_no_link = xyes; then |
22e05272 | 24600 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24601 | fi |
5213506e | 24602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24603 | /* end confdefs.h. */ |
24604 | ||
db9f46a9 TG |
24605 | #ifdef HAVE_COMPLEX_H |
24606 | #include <complex.h> | |
24607 | #endif | |
24608 | #ifdef HAVE_MATH_H | |
24609 | #include <math.h> | |
e8525382 | 24610 | #endif |
db9f46a9 TG |
24611 | |
24612 | int (*ptr)() = (int (*)())y1; | |
24613 | ||
e8525382 SK |
24614 | int |
24615 | main () | |
24616 | { | |
e8525382 SK |
24617 | return 0; |
24618 | } | |
db9f46a9 | 24619 | |
e8525382 | 24620 | _ACEOF |
5213506e | 24621 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24622 | gcc_cv_math_func_y1=yes |
e8525382 | 24623 | else |
db9f46a9 | 24624 | gcc_cv_math_func_y1=no |
e8525382 | 24625 | fi |
5213506e RW |
24626 | rm -f core conftest.err conftest.$ac_objext \ |
24627 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24628 | fi |
db9f46a9 TG |
24629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5 |
24630 | $as_echo "$gcc_cv_math_func_y1" >&6; } | |
24631 | if test $gcc_cv_math_func_y1 = yes; then | |
f1cdfa01 | 24632 | |
f38a14ca TG |
24633 | cat >>confdefs.h <<_ACEOF |
24634 | #define HAVE_Y1 1 | |
24635 | _ACEOF | |
db9f46a9 TG |
24636 | |
24637 | fi | |
e8525382 | 24638 | |
e8525382 | 24639 | |
e8525382 | 24640 | |
db9f46a9 | 24641 | |
db9f46a9 TG |
24642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5 |
24643 | $as_echo_n "checking for ynf... " >&6; } | |
22e05272 | 24644 | if ${gcc_cv_math_func_ynf+:} false; then : |
5213506e | 24645 | $as_echo_n "(cached) " >&6 |
db9f46a9 TG |
24646 | else |
24647 | if test x$gcc_no_link = xyes; then | |
22e05272 | 24648 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24649 | fi |
5213506e | 24650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24651 | /* end confdefs.h. */ |
24652 | ||
db9f46a9 TG |
24653 | #ifdef HAVE_COMPLEX_H |
24654 | #include <complex.h> | |
24655 | #endif | |
24656 | #ifdef HAVE_MATH_H | |
24657 | #include <math.h> | |
e8525382 | 24658 | #endif |
db9f46a9 TG |
24659 | |
24660 | int (*ptr)() = (int (*)())ynf; | |
24661 | ||
e8525382 SK |
24662 | int |
24663 | main () | |
24664 | { | |
e8525382 SK |
24665 | return 0; |
24666 | } | |
db9f46a9 | 24667 | |
e8525382 | 24668 | _ACEOF |
5213506e | 24669 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24670 | gcc_cv_math_func_ynf=yes |
e8525382 | 24671 | else |
db9f46a9 | 24672 | gcc_cv_math_func_ynf=no |
e8525382 | 24673 | fi |
5213506e RW |
24674 | rm -f core conftest.err conftest.$ac_objext \ |
24675 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24676 | fi |
db9f46a9 TG |
24677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5 |
24678 | $as_echo "$gcc_cv_math_func_ynf" >&6; } | |
24679 | if test $gcc_cv_math_func_ynf = yes; then | |
f1cdfa01 | 24680 | |
f38a14ca TG |
24681 | cat >>confdefs.h <<_ACEOF |
24682 | #define HAVE_YNF 1 | |
24683 | _ACEOF | |
db9f46a9 TG |
24684 | |
24685 | fi | |
e8525382 | 24686 | |
e8525382 | 24687 | |
e8525382 | 24688 | |
db9f46a9 TG |
24689 | |
24690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5 | |
24691 | $as_echo_n "checking for yn... " >&6; } | |
22e05272 | 24692 | if ${gcc_cv_math_func_yn+:} false; then : |
5213506e | 24693 | $as_echo_n "(cached) " >&6 |
e8525382 | 24694 | else |
db9f46a9 | 24695 | if test x$gcc_no_link = xyes; then |
22e05272 | 24696 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24697 | fi |
5213506e | 24698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24699 | /* end confdefs.h. */ |
24700 | ||
db9f46a9 TG |
24701 | #ifdef HAVE_COMPLEX_H |
24702 | #include <complex.h> | |
e8525382 | 24703 | #endif |
db9f46a9 TG |
24704 | #ifdef HAVE_MATH_H |
24705 | #include <math.h> | |
24706 | #endif | |
24707 | ||
24708 | int (*ptr)() = (int (*)())yn; | |
24709 | ||
e8525382 SK |
24710 | int |
24711 | main () | |
24712 | { | |
e8525382 SK |
24713 | return 0; |
24714 | } | |
db9f46a9 | 24715 | |
e8525382 | 24716 | _ACEOF |
5213506e | 24717 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24718 | gcc_cv_math_func_yn=yes |
e8525382 | 24719 | else |
db9f46a9 | 24720 | gcc_cv_math_func_yn=no |
e8525382 | 24721 | fi |
5213506e RW |
24722 | rm -f core conftest.err conftest.$ac_objext \ |
24723 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24724 | fi |
db9f46a9 TG |
24725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5 |
24726 | $as_echo "$gcc_cv_math_func_yn" >&6; } | |
24727 | if test $gcc_cv_math_func_yn = yes; then | |
f1cdfa01 | 24728 | |
f38a14ca TG |
24729 | cat >>confdefs.h <<_ACEOF |
24730 | #define HAVE_YN 1 | |
24731 | _ACEOF | |
db9f46a9 TG |
24732 | |
24733 | fi | |
24734 | ||
e8525382 | 24735 | |
e8525382 | 24736 | |
e8525382 | 24737 | |
db9f46a9 TG |
24738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5 |
24739 | $as_echo_n "checking for ynl... " >&6; } | |
22e05272 | 24740 | if ${gcc_cv_math_func_ynl+:} false; then : |
5213506e | 24741 | $as_echo_n "(cached) " >&6 |
e8525382 | 24742 | else |
db9f46a9 | 24743 | if test x$gcc_no_link = xyes; then |
22e05272 | 24744 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24745 | fi |
5213506e | 24746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24747 | /* end confdefs.h. */ |
24748 | ||
db9f46a9 TG |
24749 | #ifdef HAVE_COMPLEX_H |
24750 | #include <complex.h> | |
24751 | #endif | |
24752 | #ifdef HAVE_MATH_H | |
24753 | #include <math.h> | |
e8525382 | 24754 | #endif |
db9f46a9 TG |
24755 | |
24756 | int (*ptr)() = (int (*)())ynl; | |
24757 | ||
e8525382 SK |
24758 | int |
24759 | main () | |
24760 | { | |
e8525382 SK |
24761 | return 0; |
24762 | } | |
db9f46a9 | 24763 | |
e8525382 | 24764 | _ACEOF |
5213506e | 24765 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24766 | gcc_cv_math_func_ynl=yes |
e8525382 | 24767 | else |
db9f46a9 | 24768 | gcc_cv_math_func_ynl=no |
e8525382 | 24769 | fi |
5213506e RW |
24770 | rm -f core conftest.err conftest.$ac_objext \ |
24771 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24772 | fi |
db9f46a9 TG |
24773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5 |
24774 | $as_echo "$gcc_cv_math_func_ynl" >&6; } | |
24775 | if test $gcc_cv_math_func_ynl = yes; then | |
f1cdfa01 | 24776 | |
f38a14ca TG |
24777 | cat >>confdefs.h <<_ACEOF |
24778 | #define HAVE_YNL 1 | |
24779 | _ACEOF | |
db9f46a9 TG |
24780 | |
24781 | fi | |
e8525382 | 24782 | |
e8525382 | 24783 | |
e8525382 | 24784 | |
db9f46a9 TG |
24785 | |
24786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5 | |
24787 | $as_echo_n "checking for tgamma... " >&6; } | |
22e05272 | 24788 | if ${gcc_cv_math_func_tgamma+:} false; then : |
5213506e | 24789 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24790 | else |
db9f46a9 | 24791 | if test x$gcc_no_link = xyes; then |
22e05272 | 24792 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24793 | fi |
5213506e | 24794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24795 | /* end confdefs.h. */ |
24796 | ||
db9f46a9 TG |
24797 | #ifdef HAVE_COMPLEX_H |
24798 | #include <complex.h> | |
fb0a0e15 | 24799 | #endif |
db9f46a9 TG |
24800 | #ifdef HAVE_MATH_H |
24801 | #include <math.h> | |
24802 | #endif | |
24803 | ||
24804 | int (*ptr)() = (int (*)())tgamma; | |
24805 | ||
fb0a0e15 FXC |
24806 | int |
24807 | main () | |
24808 | { | |
fb0a0e15 FXC |
24809 | return 0; |
24810 | } | |
db9f46a9 | 24811 | |
fb0a0e15 | 24812 | _ACEOF |
5213506e | 24813 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24814 | gcc_cv_math_func_tgamma=yes |
fb0a0e15 | 24815 | else |
db9f46a9 | 24816 | gcc_cv_math_func_tgamma=no |
fb0a0e15 | 24817 | fi |
5213506e RW |
24818 | rm -f core conftest.err conftest.$ac_objext \ |
24819 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24820 | fi |
db9f46a9 TG |
24821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5 |
24822 | $as_echo "$gcc_cv_math_func_tgamma" >&6; } | |
24823 | if test $gcc_cv_math_func_tgamma = yes; then | |
f1cdfa01 | 24824 | |
f38a14ca TG |
24825 | cat >>confdefs.h <<_ACEOF |
24826 | #define HAVE_TGAMMA 1 | |
24827 | _ACEOF | |
fb0a0e15 | 24828 | |
db9f46a9 | 24829 | fi |
fb0a0e15 | 24830 | |
fb0a0e15 | 24831 | |
db9f46a9 TG |
24832 | |
24833 | ||
24834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5 | |
24835 | $as_echo_n "checking for tgammaf... " >&6; } | |
22e05272 | 24836 | if ${gcc_cv_math_func_tgammaf+:} false; then : |
5213506e | 24837 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24838 | else |
db9f46a9 | 24839 | if test x$gcc_no_link = xyes; then |
22e05272 | 24840 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24841 | fi |
5213506e | 24842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24843 | /* end confdefs.h. */ |
24844 | ||
db9f46a9 TG |
24845 | #ifdef HAVE_COMPLEX_H |
24846 | #include <complex.h> | |
24847 | #endif | |
24848 | #ifdef HAVE_MATH_H | |
24849 | #include <math.h> | |
fb0a0e15 | 24850 | #endif |
db9f46a9 TG |
24851 | |
24852 | int (*ptr)() = (int (*)())tgammaf; | |
24853 | ||
fb0a0e15 FXC |
24854 | int |
24855 | main () | |
24856 | { | |
fb0a0e15 FXC |
24857 | return 0; |
24858 | } | |
db9f46a9 | 24859 | |
fb0a0e15 | 24860 | _ACEOF |
5213506e | 24861 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24862 | gcc_cv_math_func_tgammaf=yes |
fb0a0e15 | 24863 | else |
db9f46a9 | 24864 | gcc_cv_math_func_tgammaf=no |
fb0a0e15 | 24865 | fi |
5213506e RW |
24866 | rm -f core conftest.err conftest.$ac_objext \ |
24867 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24868 | fi |
db9f46a9 TG |
24869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5 |
24870 | $as_echo "$gcc_cv_math_func_tgammaf" >&6; } | |
24871 | if test $gcc_cv_math_func_tgammaf = yes; then | |
f1cdfa01 | 24872 | |
f38a14ca TG |
24873 | cat >>confdefs.h <<_ACEOF |
24874 | #define HAVE_TGAMMAF 1 | |
24875 | _ACEOF | |
db9f46a9 TG |
24876 | |
24877 | fi | |
fb0a0e15 | 24878 | |
fb0a0e15 | 24879 | |
fb0a0e15 | 24880 | |
db9f46a9 | 24881 | |
db9f46a9 TG |
24882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5 |
24883 | $as_echo_n "checking for lgamma... " >&6; } | |
22e05272 | 24884 | if ${gcc_cv_math_func_lgamma+:} false; then : |
5213506e | 24885 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24886 | else |
db9f46a9 | 24887 | if test x$gcc_no_link = xyes; then |
22e05272 | 24888 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24889 | fi |
5213506e | 24890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24891 | /* end confdefs.h. */ |
24892 | ||
db9f46a9 TG |
24893 | #ifdef HAVE_COMPLEX_H |
24894 | #include <complex.h> | |
24895 | #endif | |
24896 | #ifdef HAVE_MATH_H | |
24897 | #include <math.h> | |
fb0a0e15 | 24898 | #endif |
db9f46a9 TG |
24899 | |
24900 | int (*ptr)() = (int (*)())lgamma; | |
24901 | ||
fb0a0e15 FXC |
24902 | int |
24903 | main () | |
24904 | { | |
fb0a0e15 FXC |
24905 | return 0; |
24906 | } | |
db9f46a9 | 24907 | |
fb0a0e15 | 24908 | _ACEOF |
5213506e | 24909 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24910 | gcc_cv_math_func_lgamma=yes |
fb0a0e15 | 24911 | else |
db9f46a9 | 24912 | gcc_cv_math_func_lgamma=no |
fb0a0e15 | 24913 | fi |
5213506e RW |
24914 | rm -f core conftest.err conftest.$ac_objext \ |
24915 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24916 | fi |
db9f46a9 TG |
24917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5 |
24918 | $as_echo "$gcc_cv_math_func_lgamma" >&6; } | |
24919 | if test $gcc_cv_math_func_lgamma = yes; then | |
f1cdfa01 | 24920 | |
f38a14ca TG |
24921 | cat >>confdefs.h <<_ACEOF |
24922 | #define HAVE_LGAMMA 1 | |
24923 | _ACEOF | |
db9f46a9 TG |
24924 | |
24925 | fi | |
fb0a0e15 | 24926 | |
fb0a0e15 | 24927 | |
fb0a0e15 | 24928 | |
db9f46a9 TG |
24929 | |
24930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5 | |
24931 | $as_echo_n "checking for lgammaf... " >&6; } | |
22e05272 | 24932 | if ${gcc_cv_math_func_lgammaf+:} false; then : |
5213506e | 24933 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24934 | else |
db9f46a9 | 24935 | if test x$gcc_no_link = xyes; then |
22e05272 | 24936 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24937 | fi |
5213506e | 24938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24939 | /* end confdefs.h. */ |
24940 | ||
db9f46a9 TG |
24941 | #ifdef HAVE_COMPLEX_H |
24942 | #include <complex.h> | |
fb0a0e15 | 24943 | #endif |
db9f46a9 TG |
24944 | #ifdef HAVE_MATH_H |
24945 | #include <math.h> | |
24946 | #endif | |
24947 | ||
24948 | int (*ptr)() = (int (*)())lgammaf; | |
24949 | ||
fb0a0e15 FXC |
24950 | int |
24951 | main () | |
24952 | { | |
fb0a0e15 FXC |
24953 | return 0; |
24954 | } | |
db9f46a9 | 24955 | |
fb0a0e15 | 24956 | _ACEOF |
5213506e | 24957 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24958 | gcc_cv_math_func_lgammaf=yes |
fb0a0e15 | 24959 | else |
db9f46a9 | 24960 | gcc_cv_math_func_lgammaf=no |
fb0a0e15 | 24961 | fi |
5213506e RW |
24962 | rm -f core conftest.err conftest.$ac_objext \ |
24963 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24964 | fi |
db9f46a9 TG |
24965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5 |
24966 | $as_echo "$gcc_cv_math_func_lgammaf" >&6; } | |
24967 | if test $gcc_cv_math_func_lgammaf = yes; then | |
f1cdfa01 | 24968 | |
f38a14ca TG |
24969 | cat >>confdefs.h <<_ACEOF |
24970 | #define HAVE_LGAMMAF 1 | |
24971 | _ACEOF | |
fb0a0e15 | 24972 | |
db9f46a9 | 24973 | fi |
fb0a0e15 | 24974 | |
fb0a0e15 | 24975 | |
db1cf15c | 24976 | # Check for GFORTRAN_C99_1.1 funcs |
db9f46a9 TG |
24977 | |
24978 | ||
24979 | ||
24980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5 | |
24981 | $as_echo_n "checking for cacos... " >&6; } | |
22e05272 | 24982 | if ${gcc_cv_math_func_cacos+:} false; then : |
db1cf15c IS |
24983 | $as_echo_n "(cached) " >&6 |
24984 | else | |
db9f46a9 | 24985 | if test x$gcc_no_link = xyes; then |
22e05272 | 24986 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24987 | fi |
24988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24989 | /* end confdefs.h. */ | |
24990 | ||
db9f46a9 TG |
24991 | #ifdef HAVE_COMPLEX_H |
24992 | #include <complex.h> | |
db1cf15c | 24993 | #endif |
db9f46a9 TG |
24994 | #ifdef HAVE_MATH_H |
24995 | #include <math.h> | |
24996 | #endif | |
24997 | ||
24998 | int (*ptr)() = (int (*)())cacos; | |
24999 | ||
db1cf15c IS |
25000 | int |
25001 | main () | |
25002 | { | |
db1cf15c IS |
25003 | return 0; |
25004 | } | |
db9f46a9 | 25005 | |
db1cf15c IS |
25006 | _ACEOF |
25007 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25008 | gcc_cv_math_func_cacos=yes |
db1cf15c | 25009 | else |
db9f46a9 | 25010 | gcc_cv_math_func_cacos=no |
db1cf15c IS |
25011 | fi |
25012 | rm -f core conftest.err conftest.$ac_objext \ | |
25013 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25014 | fi |
db9f46a9 TG |
25015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5 |
25016 | $as_echo "$gcc_cv_math_func_cacos" >&6; } | |
25017 | if test $gcc_cv_math_func_cacos = yes; then | |
f1cdfa01 | 25018 | |
f38a14ca TG |
25019 | cat >>confdefs.h <<_ACEOF |
25020 | #define HAVE_CACOS 1 | |
25021 | _ACEOF | |
db1cf15c | 25022 | |
db9f46a9 | 25023 | fi |
db1cf15c | 25024 | |
db1cf15c | 25025 | |
db9f46a9 TG |
25026 | |
25027 | ||
25028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5 | |
25029 | $as_echo_n "checking for cacosf... " >&6; } | |
22e05272 | 25030 | if ${gcc_cv_math_func_cacosf+:} false; then : |
db1cf15c IS |
25031 | $as_echo_n "(cached) " >&6 |
25032 | else | |
db9f46a9 | 25033 | if test x$gcc_no_link = xyes; then |
22e05272 | 25034 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25035 | fi |
25036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25037 | /* end confdefs.h. */ | |
25038 | ||
db9f46a9 TG |
25039 | #ifdef HAVE_COMPLEX_H |
25040 | #include <complex.h> | |
25041 | #endif | |
25042 | #ifdef HAVE_MATH_H | |
25043 | #include <math.h> | |
db1cf15c | 25044 | #endif |
db9f46a9 TG |
25045 | |
25046 | int (*ptr)() = (int (*)())cacosf; | |
25047 | ||
db1cf15c IS |
25048 | int |
25049 | main () | |
25050 | { | |
db1cf15c IS |
25051 | return 0; |
25052 | } | |
db9f46a9 | 25053 | |
db1cf15c IS |
25054 | _ACEOF |
25055 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25056 | gcc_cv_math_func_cacosf=yes |
db1cf15c | 25057 | else |
db9f46a9 | 25058 | gcc_cv_math_func_cacosf=no |
db1cf15c IS |
25059 | fi |
25060 | rm -f core conftest.err conftest.$ac_objext \ | |
25061 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25062 | fi |
db9f46a9 TG |
25063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5 |
25064 | $as_echo "$gcc_cv_math_func_cacosf" >&6; } | |
25065 | if test $gcc_cv_math_func_cacosf = yes; then | |
f1cdfa01 | 25066 | |
f38a14ca TG |
25067 | cat >>confdefs.h <<_ACEOF |
25068 | #define HAVE_CACOSF 1 | |
25069 | _ACEOF | |
db9f46a9 TG |
25070 | |
25071 | fi | |
db1cf15c | 25072 | |
db1cf15c | 25073 | |
db1cf15c | 25074 | |
db9f46a9 TG |
25075 | |
25076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5 | |
25077 | $as_echo_n "checking for cacosh... " >&6; } | |
22e05272 | 25078 | if ${gcc_cv_math_func_cacosh+:} false; then : |
db1cf15c IS |
25079 | $as_echo_n "(cached) " >&6 |
25080 | else | |
db9f46a9 | 25081 | if test x$gcc_no_link = xyes; then |
22e05272 | 25082 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25083 | fi |
25084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25085 | /* end confdefs.h. */ | |
25086 | ||
db9f46a9 TG |
25087 | #ifdef HAVE_COMPLEX_H |
25088 | #include <complex.h> | |
db1cf15c | 25089 | #endif |
db9f46a9 TG |
25090 | #ifdef HAVE_MATH_H |
25091 | #include <math.h> | |
25092 | #endif | |
25093 | ||
25094 | int (*ptr)() = (int (*)())cacosh; | |
25095 | ||
db1cf15c IS |
25096 | int |
25097 | main () | |
25098 | { | |
db1cf15c IS |
25099 | return 0; |
25100 | } | |
db9f46a9 | 25101 | |
db1cf15c IS |
25102 | _ACEOF |
25103 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25104 | gcc_cv_math_func_cacosh=yes |
db1cf15c | 25105 | else |
db9f46a9 | 25106 | gcc_cv_math_func_cacosh=no |
db1cf15c IS |
25107 | fi |
25108 | rm -f core conftest.err conftest.$ac_objext \ | |
25109 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25110 | fi |
db9f46a9 TG |
25111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5 |
25112 | $as_echo "$gcc_cv_math_func_cacosh" >&6; } | |
25113 | if test $gcc_cv_math_func_cacosh = yes; then | |
f1cdfa01 | 25114 | |
f38a14ca TG |
25115 | cat >>confdefs.h <<_ACEOF |
25116 | #define HAVE_CACOSH 1 | |
25117 | _ACEOF | |
db9f46a9 TG |
25118 | |
25119 | fi | |
25120 | ||
db1cf15c | 25121 | |
db1cf15c | 25122 | |
db1cf15c | 25123 | |
db9f46a9 TG |
25124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5 |
25125 | $as_echo_n "checking for cacoshf... " >&6; } | |
22e05272 | 25126 | if ${gcc_cv_math_func_cacoshf+:} false; then : |
db1cf15c IS |
25127 | $as_echo_n "(cached) " >&6 |
25128 | else | |
db9f46a9 | 25129 | if test x$gcc_no_link = xyes; then |
22e05272 | 25130 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25131 | fi |
25132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25133 | /* end confdefs.h. */ | |
25134 | ||
db9f46a9 TG |
25135 | #ifdef HAVE_COMPLEX_H |
25136 | #include <complex.h> | |
25137 | #endif | |
25138 | #ifdef HAVE_MATH_H | |
25139 | #include <math.h> | |
db1cf15c | 25140 | #endif |
db9f46a9 TG |
25141 | |
25142 | int (*ptr)() = (int (*)())cacoshf; | |
25143 | ||
db1cf15c IS |
25144 | int |
25145 | main () | |
25146 | { | |
db1cf15c IS |
25147 | return 0; |
25148 | } | |
db9f46a9 | 25149 | |
db1cf15c IS |
25150 | _ACEOF |
25151 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25152 | gcc_cv_math_func_cacoshf=yes |
db1cf15c | 25153 | else |
db9f46a9 | 25154 | gcc_cv_math_func_cacoshf=no |
db1cf15c IS |
25155 | fi |
25156 | rm -f core conftest.err conftest.$ac_objext \ | |
25157 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25158 | fi |
db9f46a9 TG |
25159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5 |
25160 | $as_echo "$gcc_cv_math_func_cacoshf" >&6; } | |
25161 | if test $gcc_cv_math_func_cacoshf = yes; then | |
f1cdfa01 | 25162 | |
f38a14ca TG |
25163 | cat >>confdefs.h <<_ACEOF |
25164 | #define HAVE_CACOSHF 1 | |
25165 | _ACEOF | |
db9f46a9 TG |
25166 | |
25167 | fi | |
db1cf15c | 25168 | |
db1cf15c | 25169 | |
db1cf15c | 25170 | |
db9f46a9 TG |
25171 | |
25172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5 | |
25173 | $as_echo_n "checking for cacoshl... " >&6; } | |
22e05272 | 25174 | if ${gcc_cv_math_func_cacoshl+:} false; then : |
db1cf15c IS |
25175 | $as_echo_n "(cached) " >&6 |
25176 | else | |
db9f46a9 | 25177 | if test x$gcc_no_link = xyes; then |
22e05272 | 25178 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25179 | fi |
25180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25181 | /* end confdefs.h. */ | |
25182 | ||
db9f46a9 TG |
25183 | #ifdef HAVE_COMPLEX_H |
25184 | #include <complex.h> | |
db1cf15c | 25185 | #endif |
db9f46a9 TG |
25186 | #ifdef HAVE_MATH_H |
25187 | #include <math.h> | |
25188 | #endif | |
25189 | ||
25190 | int (*ptr)() = (int (*)())cacoshl; | |
25191 | ||
db1cf15c IS |
25192 | int |
25193 | main () | |
25194 | { | |
db1cf15c IS |
25195 | return 0; |
25196 | } | |
db9f46a9 | 25197 | |
db1cf15c IS |
25198 | _ACEOF |
25199 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25200 | gcc_cv_math_func_cacoshl=yes |
db1cf15c | 25201 | else |
db9f46a9 | 25202 | gcc_cv_math_func_cacoshl=no |
db1cf15c IS |
25203 | fi |
25204 | rm -f core conftest.err conftest.$ac_objext \ | |
25205 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25206 | fi |
db9f46a9 TG |
25207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5 |
25208 | $as_echo "$gcc_cv_math_func_cacoshl" >&6; } | |
25209 | if test $gcc_cv_math_func_cacoshl = yes; then | |
f1cdfa01 | 25210 | |
f38a14ca TG |
25211 | cat >>confdefs.h <<_ACEOF |
25212 | #define HAVE_CACOSHL 1 | |
25213 | _ACEOF | |
db1cf15c | 25214 | |
db9f46a9 | 25215 | fi |
db1cf15c | 25216 | |
db1cf15c | 25217 | |
db9f46a9 TG |
25218 | |
25219 | ||
25220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5 | |
25221 | $as_echo_n "checking for cacosl... " >&6; } | |
22e05272 | 25222 | if ${gcc_cv_math_func_cacosl+:} false; then : |
db1cf15c IS |
25223 | $as_echo_n "(cached) " >&6 |
25224 | else | |
db9f46a9 | 25225 | if test x$gcc_no_link = xyes; then |
22e05272 | 25226 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25227 | fi |
25228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25229 | /* end confdefs.h. */ | |
25230 | ||
db9f46a9 TG |
25231 | #ifdef HAVE_COMPLEX_H |
25232 | #include <complex.h> | |
25233 | #endif | |
25234 | #ifdef HAVE_MATH_H | |
25235 | #include <math.h> | |
db1cf15c | 25236 | #endif |
db9f46a9 TG |
25237 | |
25238 | int (*ptr)() = (int (*)())cacosl; | |
25239 | ||
db1cf15c IS |
25240 | int |
25241 | main () | |
25242 | { | |
db1cf15c IS |
25243 | return 0; |
25244 | } | |
db9f46a9 | 25245 | |
db1cf15c IS |
25246 | _ACEOF |
25247 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25248 | gcc_cv_math_func_cacosl=yes |
db1cf15c | 25249 | else |
db9f46a9 | 25250 | gcc_cv_math_func_cacosl=no |
db1cf15c IS |
25251 | fi |
25252 | rm -f core conftest.err conftest.$ac_objext \ | |
25253 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25254 | fi |
db9f46a9 TG |
25255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5 |
25256 | $as_echo "$gcc_cv_math_func_cacosl" >&6; } | |
25257 | if test $gcc_cv_math_func_cacosl = yes; then | |
f1cdfa01 | 25258 | |
f38a14ca TG |
25259 | cat >>confdefs.h <<_ACEOF |
25260 | #define HAVE_CACOSL 1 | |
25261 | _ACEOF | |
db9f46a9 TG |
25262 | |
25263 | fi | |
db1cf15c | 25264 | |
db1cf15c | 25265 | |
db1cf15c | 25266 | |
db9f46a9 TG |
25267 | |
25268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5 | |
25269 | $as_echo_n "checking for casin... " >&6; } | |
22e05272 | 25270 | if ${gcc_cv_math_func_casin+:} false; then : |
db1cf15c IS |
25271 | $as_echo_n "(cached) " >&6 |
25272 | else | |
db9f46a9 | 25273 | if test x$gcc_no_link = xyes; then |
22e05272 | 25274 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25275 | fi |
25276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25277 | /* end confdefs.h. */ | |
25278 | ||
db9f46a9 TG |
25279 | #ifdef HAVE_COMPLEX_H |
25280 | #include <complex.h> | |
db1cf15c | 25281 | #endif |
db9f46a9 TG |
25282 | #ifdef HAVE_MATH_H |
25283 | #include <math.h> | |
25284 | #endif | |
25285 | ||
25286 | int (*ptr)() = (int (*)())casin; | |
25287 | ||
db1cf15c IS |
25288 | int |
25289 | main () | |
25290 | { | |
db1cf15c IS |
25291 | return 0; |
25292 | } | |
db9f46a9 | 25293 | |
db1cf15c IS |
25294 | _ACEOF |
25295 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25296 | gcc_cv_math_func_casin=yes |
db1cf15c | 25297 | else |
db9f46a9 | 25298 | gcc_cv_math_func_casin=no |
db1cf15c IS |
25299 | fi |
25300 | rm -f core conftest.err conftest.$ac_objext \ | |
25301 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25302 | fi |
db9f46a9 TG |
25303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5 |
25304 | $as_echo "$gcc_cv_math_func_casin" >&6; } | |
25305 | if test $gcc_cv_math_func_casin = yes; then | |
f1cdfa01 | 25306 | |
f38a14ca TG |
25307 | cat >>confdefs.h <<_ACEOF |
25308 | #define HAVE_CASIN 1 | |
25309 | _ACEOF | |
db9f46a9 TG |
25310 | |
25311 | fi | |
25312 | ||
db1cf15c | 25313 | |
db1cf15c | 25314 | |
db1cf15c | 25315 | |
db9f46a9 TG |
25316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5 |
25317 | $as_echo_n "checking for casinf... " >&6; } | |
22e05272 | 25318 | if ${gcc_cv_math_func_casinf+:} false; then : |
db1cf15c IS |
25319 | $as_echo_n "(cached) " >&6 |
25320 | else | |
db9f46a9 | 25321 | if test x$gcc_no_link = xyes; then |
22e05272 | 25322 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25323 | fi |
25324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25325 | /* end confdefs.h. */ | |
25326 | ||
db9f46a9 TG |
25327 | #ifdef HAVE_COMPLEX_H |
25328 | #include <complex.h> | |
25329 | #endif | |
25330 | #ifdef HAVE_MATH_H | |
25331 | #include <math.h> | |
db1cf15c | 25332 | #endif |
db9f46a9 TG |
25333 | |
25334 | int (*ptr)() = (int (*)())casinf; | |
25335 | ||
db1cf15c IS |
25336 | int |
25337 | main () | |
25338 | { | |
db1cf15c IS |
25339 | return 0; |
25340 | } | |
db9f46a9 | 25341 | |
db1cf15c IS |
25342 | _ACEOF |
25343 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25344 | gcc_cv_math_func_casinf=yes |
db1cf15c | 25345 | else |
db9f46a9 | 25346 | gcc_cv_math_func_casinf=no |
db1cf15c IS |
25347 | fi |
25348 | rm -f core conftest.err conftest.$ac_objext \ | |
25349 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25350 | fi |
db9f46a9 TG |
25351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5 |
25352 | $as_echo "$gcc_cv_math_func_casinf" >&6; } | |
25353 | if test $gcc_cv_math_func_casinf = yes; then | |
f1cdfa01 | 25354 | |
f38a14ca TG |
25355 | cat >>confdefs.h <<_ACEOF |
25356 | #define HAVE_CASINF 1 | |
25357 | _ACEOF | |
db9f46a9 TG |
25358 | |
25359 | fi | |
db1cf15c | 25360 | |
db1cf15c | 25361 | |
db1cf15c | 25362 | |
db9f46a9 TG |
25363 | |
25364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5 | |
25365 | $as_echo_n "checking for casinh... " >&6; } | |
22e05272 | 25366 | if ${gcc_cv_math_func_casinh+:} false; then : |
db1cf15c IS |
25367 | $as_echo_n "(cached) " >&6 |
25368 | else | |
db9f46a9 | 25369 | if test x$gcc_no_link = xyes; then |
22e05272 | 25370 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25371 | fi |
25372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25373 | /* end confdefs.h. */ | |
25374 | ||
db9f46a9 TG |
25375 | #ifdef HAVE_COMPLEX_H |
25376 | #include <complex.h> | |
db1cf15c | 25377 | #endif |
db9f46a9 TG |
25378 | #ifdef HAVE_MATH_H |
25379 | #include <math.h> | |
25380 | #endif | |
25381 | ||
25382 | int (*ptr)() = (int (*)())casinh; | |
25383 | ||
db1cf15c IS |
25384 | int |
25385 | main () | |
25386 | { | |
db1cf15c IS |
25387 | return 0; |
25388 | } | |
db9f46a9 | 25389 | |
db1cf15c IS |
25390 | _ACEOF |
25391 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25392 | gcc_cv_math_func_casinh=yes |
db1cf15c | 25393 | else |
db9f46a9 | 25394 | gcc_cv_math_func_casinh=no |
db1cf15c IS |
25395 | fi |
25396 | rm -f core conftest.err conftest.$ac_objext \ | |
25397 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25398 | fi |
db9f46a9 TG |
25399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5 |
25400 | $as_echo "$gcc_cv_math_func_casinh" >&6; } | |
25401 | if test $gcc_cv_math_func_casinh = yes; then | |
f1cdfa01 | 25402 | |
f38a14ca TG |
25403 | cat >>confdefs.h <<_ACEOF |
25404 | #define HAVE_CASINH 1 | |
25405 | _ACEOF | |
db1cf15c | 25406 | |
db9f46a9 | 25407 | fi |
db1cf15c | 25408 | |
db1cf15c | 25409 | |
db9f46a9 TG |
25410 | |
25411 | ||
25412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5 | |
25413 | $as_echo_n "checking for casinhf... " >&6; } | |
22e05272 | 25414 | if ${gcc_cv_math_func_casinhf+:} false; then : |
db1cf15c IS |
25415 | $as_echo_n "(cached) " >&6 |
25416 | else | |
db9f46a9 | 25417 | if test x$gcc_no_link = xyes; then |
22e05272 | 25418 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25419 | fi |
25420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25421 | /* end confdefs.h. */ | |
25422 | ||
db9f46a9 TG |
25423 | #ifdef HAVE_COMPLEX_H |
25424 | #include <complex.h> | |
25425 | #endif | |
25426 | #ifdef HAVE_MATH_H | |
25427 | #include <math.h> | |
db1cf15c | 25428 | #endif |
db9f46a9 TG |
25429 | |
25430 | int (*ptr)() = (int (*)())casinhf; | |
25431 | ||
db1cf15c IS |
25432 | int |
25433 | main () | |
25434 | { | |
db1cf15c IS |
25435 | return 0; |
25436 | } | |
db9f46a9 | 25437 | |
db1cf15c IS |
25438 | _ACEOF |
25439 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25440 | gcc_cv_math_func_casinhf=yes |
db1cf15c | 25441 | else |
db9f46a9 | 25442 | gcc_cv_math_func_casinhf=no |
db1cf15c IS |
25443 | fi |
25444 | rm -f core conftest.err conftest.$ac_objext \ | |
25445 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25446 | fi |
db9f46a9 TG |
25447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5 |
25448 | $as_echo "$gcc_cv_math_func_casinhf" >&6; } | |
25449 | if test $gcc_cv_math_func_casinhf = yes; then | |
f1cdfa01 | 25450 | |
f38a14ca TG |
25451 | cat >>confdefs.h <<_ACEOF |
25452 | #define HAVE_CASINHF 1 | |
25453 | _ACEOF | |
db9f46a9 TG |
25454 | |
25455 | fi | |
db1cf15c | 25456 | |
db1cf15c | 25457 | |
db1cf15c | 25458 | |
db9f46a9 TG |
25459 | |
25460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5 | |
25461 | $as_echo_n "checking for casinhl... " >&6; } | |
22e05272 | 25462 | if ${gcc_cv_math_func_casinhl+:} false; then : |
db1cf15c IS |
25463 | $as_echo_n "(cached) " >&6 |
25464 | else | |
db9f46a9 | 25465 | if test x$gcc_no_link = xyes; then |
22e05272 | 25466 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25467 | fi |
25468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25469 | /* end confdefs.h. */ | |
25470 | ||
db9f46a9 TG |
25471 | #ifdef HAVE_COMPLEX_H |
25472 | #include <complex.h> | |
db1cf15c | 25473 | #endif |
db9f46a9 TG |
25474 | #ifdef HAVE_MATH_H |
25475 | #include <math.h> | |
25476 | #endif | |
25477 | ||
25478 | int (*ptr)() = (int (*)())casinhl; | |
25479 | ||
db1cf15c IS |
25480 | int |
25481 | main () | |
25482 | { | |
db1cf15c IS |
25483 | return 0; |
25484 | } | |
db9f46a9 | 25485 | |
db1cf15c IS |
25486 | _ACEOF |
25487 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25488 | gcc_cv_math_func_casinhl=yes |
db1cf15c | 25489 | else |
db9f46a9 | 25490 | gcc_cv_math_func_casinhl=no |
db1cf15c IS |
25491 | fi |
25492 | rm -f core conftest.err conftest.$ac_objext \ | |
25493 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25494 | fi |
db9f46a9 TG |
25495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5 |
25496 | $as_echo "$gcc_cv_math_func_casinhl" >&6; } | |
25497 | if test $gcc_cv_math_func_casinhl = yes; then | |
f1cdfa01 | 25498 | |
f38a14ca TG |
25499 | cat >>confdefs.h <<_ACEOF |
25500 | #define HAVE_CASINHL 1 | |
25501 | _ACEOF | |
db9f46a9 TG |
25502 | |
25503 | fi | |
25504 | ||
db1cf15c | 25505 | |
db1cf15c | 25506 | |
db1cf15c | 25507 | |
db9f46a9 TG |
25508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5 |
25509 | $as_echo_n "checking for casinl... " >&6; } | |
22e05272 | 25510 | if ${gcc_cv_math_func_casinl+:} false; then : |
db1cf15c IS |
25511 | $as_echo_n "(cached) " >&6 |
25512 | else | |
db9f46a9 | 25513 | if test x$gcc_no_link = xyes; then |
22e05272 | 25514 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25515 | fi |
25516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25517 | /* end confdefs.h. */ | |
25518 | ||
db9f46a9 TG |
25519 | #ifdef HAVE_COMPLEX_H |
25520 | #include <complex.h> | |
25521 | #endif | |
25522 | #ifdef HAVE_MATH_H | |
25523 | #include <math.h> | |
db1cf15c | 25524 | #endif |
db9f46a9 TG |
25525 | |
25526 | int (*ptr)() = (int (*)())casinl; | |
25527 | ||
db1cf15c IS |
25528 | int |
25529 | main () | |
25530 | { | |
db1cf15c IS |
25531 | return 0; |
25532 | } | |
db9f46a9 | 25533 | |
db1cf15c IS |
25534 | _ACEOF |
25535 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25536 | gcc_cv_math_func_casinl=yes |
db1cf15c | 25537 | else |
db9f46a9 | 25538 | gcc_cv_math_func_casinl=no |
db1cf15c IS |
25539 | fi |
25540 | rm -f core conftest.err conftest.$ac_objext \ | |
25541 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25542 | fi |
db9f46a9 TG |
25543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5 |
25544 | $as_echo "$gcc_cv_math_func_casinl" >&6; } | |
25545 | if test $gcc_cv_math_func_casinl = yes; then | |
f1cdfa01 | 25546 | |
f38a14ca TG |
25547 | cat >>confdefs.h <<_ACEOF |
25548 | #define HAVE_CASINL 1 | |
25549 | _ACEOF | |
db9f46a9 TG |
25550 | |
25551 | fi | |
db1cf15c | 25552 | |
db1cf15c | 25553 | |
db1cf15c | 25554 | |
db9f46a9 TG |
25555 | |
25556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5 | |
25557 | $as_echo_n "checking for catan... " >&6; } | |
22e05272 | 25558 | if ${gcc_cv_math_func_catan+:} false; then : |
db1cf15c IS |
25559 | $as_echo_n "(cached) " >&6 |
25560 | else | |
db9f46a9 | 25561 | if test x$gcc_no_link = xyes; then |
22e05272 | 25562 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25563 | fi |
25564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25565 | /* end confdefs.h. */ | |
25566 | ||
db9f46a9 TG |
25567 | #ifdef HAVE_COMPLEX_H |
25568 | #include <complex.h> | |
db1cf15c | 25569 | #endif |
db9f46a9 TG |
25570 | #ifdef HAVE_MATH_H |
25571 | #include <math.h> | |
25572 | #endif | |
25573 | ||
25574 | int (*ptr)() = (int (*)())catan; | |
25575 | ||
db1cf15c IS |
25576 | int |
25577 | main () | |
25578 | { | |
db1cf15c IS |
25579 | return 0; |
25580 | } | |
db9f46a9 | 25581 | |
db1cf15c IS |
25582 | _ACEOF |
25583 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25584 | gcc_cv_math_func_catan=yes |
db1cf15c | 25585 | else |
db9f46a9 | 25586 | gcc_cv_math_func_catan=no |
db1cf15c IS |
25587 | fi |
25588 | rm -f core conftest.err conftest.$ac_objext \ | |
25589 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25590 | fi |
db9f46a9 TG |
25591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5 |
25592 | $as_echo "$gcc_cv_math_func_catan" >&6; } | |
25593 | if test $gcc_cv_math_func_catan = yes; then | |
f1cdfa01 | 25594 | |
f38a14ca TG |
25595 | cat >>confdefs.h <<_ACEOF |
25596 | #define HAVE_CATAN 1 | |
25597 | _ACEOF | |
db1cf15c | 25598 | |
db9f46a9 | 25599 | fi |
db1cf15c | 25600 | |
db1cf15c | 25601 | |
db9f46a9 TG |
25602 | |
25603 | ||
25604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5 | |
25605 | $as_echo_n "checking for catanf... " >&6; } | |
22e05272 | 25606 | if ${gcc_cv_math_func_catanf+:} false; then : |
db1cf15c IS |
25607 | $as_echo_n "(cached) " >&6 |
25608 | else | |
db9f46a9 | 25609 | if test x$gcc_no_link = xyes; then |
22e05272 | 25610 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25611 | fi |
25612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25613 | /* end confdefs.h. */ | |
25614 | ||
db9f46a9 TG |
25615 | #ifdef HAVE_COMPLEX_H |
25616 | #include <complex.h> | |
25617 | #endif | |
25618 | #ifdef HAVE_MATH_H | |
25619 | #include <math.h> | |
db1cf15c | 25620 | #endif |
db9f46a9 TG |
25621 | |
25622 | int (*ptr)() = (int (*)())catanf; | |
25623 | ||
db1cf15c IS |
25624 | int |
25625 | main () | |
25626 | { | |
db1cf15c IS |
25627 | return 0; |
25628 | } | |
db9f46a9 | 25629 | |
db1cf15c IS |
25630 | _ACEOF |
25631 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25632 | gcc_cv_math_func_catanf=yes |
db1cf15c | 25633 | else |
db9f46a9 | 25634 | gcc_cv_math_func_catanf=no |
db1cf15c IS |
25635 | fi |
25636 | rm -f core conftest.err conftest.$ac_objext \ | |
25637 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25638 | fi |
db9f46a9 TG |
25639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5 |
25640 | $as_echo "$gcc_cv_math_func_catanf" >&6; } | |
25641 | if test $gcc_cv_math_func_catanf = yes; then | |
f1cdfa01 | 25642 | |
f38a14ca TG |
25643 | cat >>confdefs.h <<_ACEOF |
25644 | #define HAVE_CATANF 1 | |
25645 | _ACEOF | |
db9f46a9 TG |
25646 | |
25647 | fi | |
db1cf15c | 25648 | |
db1cf15c | 25649 | |
db1cf15c | 25650 | |
db9f46a9 TG |
25651 | |
25652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5 | |
25653 | $as_echo_n "checking for catanh... " >&6; } | |
22e05272 | 25654 | if ${gcc_cv_math_func_catanh+:} false; then : |
db1cf15c IS |
25655 | $as_echo_n "(cached) " >&6 |
25656 | else | |
db9f46a9 | 25657 | if test x$gcc_no_link = xyes; then |
22e05272 | 25658 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25659 | fi |
25660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25661 | /* end confdefs.h. */ | |
25662 | ||
db9f46a9 TG |
25663 | #ifdef HAVE_COMPLEX_H |
25664 | #include <complex.h> | |
db1cf15c | 25665 | #endif |
db9f46a9 TG |
25666 | #ifdef HAVE_MATH_H |
25667 | #include <math.h> | |
25668 | #endif | |
25669 | ||
25670 | int (*ptr)() = (int (*)())catanh; | |
25671 | ||
db1cf15c IS |
25672 | int |
25673 | main () | |
25674 | { | |
db1cf15c IS |
25675 | return 0; |
25676 | } | |
db9f46a9 | 25677 | |
db1cf15c IS |
25678 | _ACEOF |
25679 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25680 | gcc_cv_math_func_catanh=yes |
db1cf15c | 25681 | else |
db9f46a9 | 25682 | gcc_cv_math_func_catanh=no |
db1cf15c IS |
25683 | fi |
25684 | rm -f core conftest.err conftest.$ac_objext \ | |
25685 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25686 | fi |
db9f46a9 TG |
25687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5 |
25688 | $as_echo "$gcc_cv_math_func_catanh" >&6; } | |
25689 | if test $gcc_cv_math_func_catanh = yes; then | |
f1cdfa01 | 25690 | |
f38a14ca TG |
25691 | cat >>confdefs.h <<_ACEOF |
25692 | #define HAVE_CATANH 1 | |
25693 | _ACEOF | |
db9f46a9 TG |
25694 | |
25695 | fi | |
25696 | ||
db1cf15c | 25697 | |
db1cf15c | 25698 | |
db1cf15c | 25699 | |
db9f46a9 TG |
25700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5 |
25701 | $as_echo_n "checking for catanhf... " >&6; } | |
22e05272 | 25702 | if ${gcc_cv_math_func_catanhf+:} false; then : |
db1cf15c IS |
25703 | $as_echo_n "(cached) " >&6 |
25704 | else | |
db9f46a9 | 25705 | if test x$gcc_no_link = xyes; then |
22e05272 | 25706 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25707 | fi |
25708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25709 | /* end confdefs.h. */ | |
25710 | ||
db9f46a9 TG |
25711 | #ifdef HAVE_COMPLEX_H |
25712 | #include <complex.h> | |
25713 | #endif | |
25714 | #ifdef HAVE_MATH_H | |
25715 | #include <math.h> | |
db1cf15c | 25716 | #endif |
db9f46a9 TG |
25717 | |
25718 | int (*ptr)() = (int (*)())catanhf; | |
25719 | ||
db1cf15c IS |
25720 | int |
25721 | main () | |
25722 | { | |
db1cf15c IS |
25723 | return 0; |
25724 | } | |
db9f46a9 | 25725 | |
db1cf15c IS |
25726 | _ACEOF |
25727 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25728 | gcc_cv_math_func_catanhf=yes |
db1cf15c | 25729 | else |
db9f46a9 | 25730 | gcc_cv_math_func_catanhf=no |
db1cf15c IS |
25731 | fi |
25732 | rm -f core conftest.err conftest.$ac_objext \ | |
25733 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25734 | fi |
db9f46a9 TG |
25735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5 |
25736 | $as_echo "$gcc_cv_math_func_catanhf" >&6; } | |
25737 | if test $gcc_cv_math_func_catanhf = yes; then | |
f1cdfa01 | 25738 | |
f38a14ca TG |
25739 | cat >>confdefs.h <<_ACEOF |
25740 | #define HAVE_CATANHF 1 | |
25741 | _ACEOF | |
db9f46a9 TG |
25742 | |
25743 | fi | |
db1cf15c | 25744 | |
db1cf15c | 25745 | |
db1cf15c | 25746 | |
db9f46a9 TG |
25747 | |
25748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5 | |
25749 | $as_echo_n "checking for catanhl... " >&6; } | |
22e05272 | 25750 | if ${gcc_cv_math_func_catanhl+:} false; then : |
db1cf15c IS |
25751 | $as_echo_n "(cached) " >&6 |
25752 | else | |
db9f46a9 | 25753 | if test x$gcc_no_link = xyes; then |
22e05272 | 25754 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25755 | fi |
25756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25757 | /* end confdefs.h. */ | |
25758 | ||
db9f46a9 TG |
25759 | #ifdef HAVE_COMPLEX_H |
25760 | #include <complex.h> | |
db1cf15c | 25761 | #endif |
db9f46a9 TG |
25762 | #ifdef HAVE_MATH_H |
25763 | #include <math.h> | |
25764 | #endif | |
25765 | ||
25766 | int (*ptr)() = (int (*)())catanhl; | |
25767 | ||
db1cf15c IS |
25768 | int |
25769 | main () | |
25770 | { | |
db1cf15c IS |
25771 | return 0; |
25772 | } | |
db9f46a9 | 25773 | |
db1cf15c IS |
25774 | _ACEOF |
25775 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25776 | gcc_cv_math_func_catanhl=yes |
db1cf15c | 25777 | else |
db9f46a9 | 25778 | gcc_cv_math_func_catanhl=no |
db1cf15c IS |
25779 | fi |
25780 | rm -f core conftest.err conftest.$ac_objext \ | |
25781 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25782 | fi |
db9f46a9 TG |
25783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5 |
25784 | $as_echo "$gcc_cv_math_func_catanhl" >&6; } | |
25785 | if test $gcc_cv_math_func_catanhl = yes; then | |
f1cdfa01 | 25786 | |
f38a14ca TG |
25787 | cat >>confdefs.h <<_ACEOF |
25788 | #define HAVE_CATANHL 1 | |
25789 | _ACEOF | |
db1cf15c | 25790 | |
db9f46a9 | 25791 | fi |
db1cf15c | 25792 | |
db1cf15c | 25793 | |
db9f46a9 TG |
25794 | |
25795 | ||
25796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5 | |
25797 | $as_echo_n "checking for catanl... " >&6; } | |
22e05272 | 25798 | if ${gcc_cv_math_func_catanl+:} false; then : |
db1cf15c IS |
25799 | $as_echo_n "(cached) " >&6 |
25800 | else | |
db9f46a9 | 25801 | if test x$gcc_no_link = xyes; then |
22e05272 | 25802 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25803 | fi |
25804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25805 | /* end confdefs.h. */ | |
25806 | ||
db9f46a9 TG |
25807 | #ifdef HAVE_COMPLEX_H |
25808 | #include <complex.h> | |
25809 | #endif | |
25810 | #ifdef HAVE_MATH_H | |
25811 | #include <math.h> | |
db1cf15c | 25812 | #endif |
db9f46a9 TG |
25813 | |
25814 | int (*ptr)() = (int (*)())catanl; | |
25815 | ||
db1cf15c IS |
25816 | int |
25817 | main () | |
25818 | { | |
db1cf15c IS |
25819 | return 0; |
25820 | } | |
db9f46a9 | 25821 | |
db1cf15c IS |
25822 | _ACEOF |
25823 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25824 | gcc_cv_math_func_catanl=yes |
db1cf15c | 25825 | else |
db9f46a9 | 25826 | gcc_cv_math_func_catanl=no |
db1cf15c IS |
25827 | fi |
25828 | rm -f core conftest.err conftest.$ac_objext \ | |
25829 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25830 | fi |
db9f46a9 TG |
25831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5 |
25832 | $as_echo "$gcc_cv_math_func_catanl" >&6; } | |
25833 | if test $gcc_cv_math_func_catanl = yes; then | |
f1cdfa01 | 25834 | |
f38a14ca TG |
25835 | cat >>confdefs.h <<_ACEOF |
25836 | #define HAVE_CATANL 1 | |
25837 | _ACEOF | |
db1cf15c | 25838 | |
db9f46a9 | 25839 | fi |
db1cf15c IS |
25840 | |
25841 | ||
6f4977fc TK |
25842 | # For POWER, check the ieee128 math functions |
25843 | ||
25844 | if test "x$have_real_17" = "xyes"; then | |
25845 | ||
a8fea8cd TK |
25846 | cat >>confdefs.h <<_ACEOF |
25847 | #define HAVE_REAL_17 1 | |
25848 | _ACEOF | |
25849 | ||
25850 | ||
25851 | ||
6f4977fc TK |
25852 | |
25853 | ||
25854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __acoshieee128" >&5 | |
25855 | $as_echo_n "checking for __acoshieee128... " >&6; } | |
25856 | if ${gcc_cv_math_func___acoshieee128+:} false; then : | |
25857 | $as_echo_n "(cached) " >&6 | |
25858 | else | |
25859 | if test x$gcc_no_link = xyes; then | |
25860 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25861 | fi | |
25862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25863 | /* end confdefs.h. */ | |
25864 | ||
25865 | __float128 __acoshieee128 (__float128); | |
25866 | __float128 (*ptr)(__float128) = __acoshieee128; | |
25867 | ||
25868 | int | |
25869 | main () | |
25870 | { | |
25871 | return 0; | |
25872 | } | |
25873 | ||
25874 | _ACEOF | |
25875 | if ac_fn_c_try_link "$LINENO"; then : | |
25876 | gcc_cv_math_func___acoshieee128=yes | |
25877 | else | |
25878 | gcc_cv_math_func___acoshieee128=no | |
25879 | fi | |
25880 | rm -f core conftest.err conftest.$ac_objext \ | |
25881 | conftest$ac_exeext conftest.$ac_ext | |
25882 | fi | |
25883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___acoshieee128" >&5 | |
25884 | $as_echo "$gcc_cv_math_func___acoshieee128" >&6; } | |
25885 | if test $gcc_cv_math_func___acoshieee128 = yes; then | |
25886 | ||
25887 | cat >>confdefs.h <<_ACEOF | |
25888 | #define HAVE___ACOSHIEEE128 1 | |
25889 | _ACEOF | |
25890 | ||
25891 | fi | |
25892 | ||
25893 | ||
25894 | ||
25895 | ||
25896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __acosieee128" >&5 | |
25897 | $as_echo_n "checking for __acosieee128... " >&6; } | |
25898 | if ${gcc_cv_math_func___acosieee128+:} false; then : | |
25899 | $as_echo_n "(cached) " >&6 | |
25900 | else | |
25901 | if test x$gcc_no_link = xyes; then | |
25902 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25903 | fi | |
25904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25905 | /* end confdefs.h. */ | |
25906 | ||
25907 | __float128 __acosieee128 (__float128); | |
25908 | __float128 (*ptr)(__float128) = __acosieee128; | |
25909 | ||
25910 | int | |
25911 | main () | |
25912 | { | |
25913 | return 0; | |
25914 | } | |
25915 | ||
25916 | _ACEOF | |
25917 | if ac_fn_c_try_link "$LINENO"; then : | |
25918 | gcc_cv_math_func___acosieee128=yes | |
25919 | else | |
25920 | gcc_cv_math_func___acosieee128=no | |
25921 | fi | |
25922 | rm -f core conftest.err conftest.$ac_objext \ | |
25923 | conftest$ac_exeext conftest.$ac_ext | |
25924 | fi | |
25925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___acosieee128" >&5 | |
25926 | $as_echo "$gcc_cv_math_func___acosieee128" >&6; } | |
25927 | if test $gcc_cv_math_func___acosieee128 = yes; then | |
25928 | ||
25929 | cat >>confdefs.h <<_ACEOF | |
25930 | #define HAVE___ACOSIEEE128 1 | |
25931 | _ACEOF | |
25932 | ||
25933 | fi | |
25934 | ||
25935 | ||
25936 | ||
25937 | ||
25938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asinhieee128" >&5 | |
25939 | $as_echo_n "checking for __asinhieee128... " >&6; } | |
25940 | if ${gcc_cv_math_func___asinhieee128+:} false; then : | |
25941 | $as_echo_n "(cached) " >&6 | |
25942 | else | |
25943 | if test x$gcc_no_link = xyes; then | |
25944 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25945 | fi | |
25946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25947 | /* end confdefs.h. */ | |
25948 | ||
25949 | __float128 __asinhieee128 (__float128); | |
25950 | __float128 (*ptr)(__float128) = __asinhieee128; | |
25951 | ||
25952 | int | |
25953 | main () | |
25954 | { | |
25955 | return 0; | |
25956 | } | |
25957 | ||
25958 | _ACEOF | |
25959 | if ac_fn_c_try_link "$LINENO"; then : | |
25960 | gcc_cv_math_func___asinhieee128=yes | |
25961 | else | |
25962 | gcc_cv_math_func___asinhieee128=no | |
25963 | fi | |
25964 | rm -f core conftest.err conftest.$ac_objext \ | |
25965 | conftest$ac_exeext conftest.$ac_ext | |
25966 | fi | |
25967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___asinhieee128" >&5 | |
25968 | $as_echo "$gcc_cv_math_func___asinhieee128" >&6; } | |
25969 | if test $gcc_cv_math_func___asinhieee128 = yes; then | |
25970 | ||
25971 | cat >>confdefs.h <<_ACEOF | |
25972 | #define HAVE___ASINHIEEE128 1 | |
25973 | _ACEOF | |
25974 | ||
25975 | fi | |
25976 | ||
25977 | ||
25978 | ||
25979 | ||
25980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asinieee128" >&5 | |
25981 | $as_echo_n "checking for __asinieee128... " >&6; } | |
25982 | if ${gcc_cv_math_func___asinieee128+:} false; then : | |
25983 | $as_echo_n "(cached) " >&6 | |
25984 | else | |
25985 | if test x$gcc_no_link = xyes; then | |
25986 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25987 | fi | |
25988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25989 | /* end confdefs.h. */ | |
25990 | ||
25991 | __float128 __asinieee128 (__float128); | |
25992 | __float128 (*ptr)(__float128) = __asinieee128; | |
25993 | ||
25994 | int | |
25995 | main () | |
25996 | { | |
25997 | return 0; | |
25998 | } | |
25999 | ||
26000 | _ACEOF | |
26001 | if ac_fn_c_try_link "$LINENO"; then : | |
26002 | gcc_cv_math_func___asinieee128=yes | |
26003 | else | |
26004 | gcc_cv_math_func___asinieee128=no | |
26005 | fi | |
26006 | rm -f core conftest.err conftest.$ac_objext \ | |
26007 | conftest$ac_exeext conftest.$ac_ext | |
26008 | fi | |
26009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___asinieee128" >&5 | |
26010 | $as_echo "$gcc_cv_math_func___asinieee128" >&6; } | |
26011 | if test $gcc_cv_math_func___asinieee128 = yes; then | |
26012 | ||
26013 | cat >>confdefs.h <<_ACEOF | |
26014 | #define HAVE___ASINIEEE128 1 | |
26015 | _ACEOF | |
26016 | ||
26017 | fi | |
26018 | ||
26019 | ||
26020 | ||
26021 | ||
26022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atan2ieee128" >&5 | |
26023 | $as_echo_n "checking for __atan2ieee128... " >&6; } | |
26024 | if ${gcc_cv_math_func___atan2ieee128+:} false; then : | |
26025 | $as_echo_n "(cached) " >&6 | |
26026 | else | |
26027 | if test x$gcc_no_link = xyes; then | |
26028 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26029 | fi | |
26030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26031 | /* end confdefs.h. */ | |
26032 | ||
26033 | __float128 __atan2ieee128 (__float128); | |
26034 | __float128 (*ptr)(__float128) = __atan2ieee128; | |
26035 | ||
26036 | int | |
26037 | main () | |
26038 | { | |
26039 | return 0; | |
26040 | } | |
26041 | ||
26042 | _ACEOF | |
26043 | if ac_fn_c_try_link "$LINENO"; then : | |
26044 | gcc_cv_math_func___atan2ieee128=yes | |
26045 | else | |
26046 | gcc_cv_math_func___atan2ieee128=no | |
26047 | fi | |
26048 | rm -f core conftest.err conftest.$ac_objext \ | |
26049 | conftest$ac_exeext conftest.$ac_ext | |
26050 | fi | |
26051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atan2ieee128" >&5 | |
26052 | $as_echo "$gcc_cv_math_func___atan2ieee128" >&6; } | |
26053 | if test $gcc_cv_math_func___atan2ieee128 = yes; then | |
26054 | ||
26055 | cat >>confdefs.h <<_ACEOF | |
26056 | #define HAVE___ATAN2IEEE128 1 | |
26057 | _ACEOF | |
26058 | ||
26059 | fi | |
26060 | ||
26061 | ||
26062 | ||
26063 | ||
26064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atanhieee128" >&5 | |
26065 | $as_echo_n "checking for __atanhieee128... " >&6; } | |
26066 | if ${gcc_cv_math_func___atanhieee128+:} false; then : | |
26067 | $as_echo_n "(cached) " >&6 | |
26068 | else | |
26069 | if test x$gcc_no_link = xyes; then | |
26070 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26071 | fi | |
26072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26073 | /* end confdefs.h. */ | |
26074 | ||
26075 | __float128 __atanhieee128 (__float128); | |
26076 | __float128 (*ptr)(__float128) = __atanhieee128; | |
26077 | ||
26078 | int | |
26079 | main () | |
26080 | { | |
26081 | return 0; | |
26082 | } | |
26083 | ||
26084 | _ACEOF | |
26085 | if ac_fn_c_try_link "$LINENO"; then : | |
26086 | gcc_cv_math_func___atanhieee128=yes | |
26087 | else | |
26088 | gcc_cv_math_func___atanhieee128=no | |
26089 | fi | |
26090 | rm -f core conftest.err conftest.$ac_objext \ | |
26091 | conftest$ac_exeext conftest.$ac_ext | |
26092 | fi | |
26093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atanhieee128" >&5 | |
26094 | $as_echo "$gcc_cv_math_func___atanhieee128" >&6; } | |
26095 | if test $gcc_cv_math_func___atanhieee128 = yes; then | |
26096 | ||
26097 | cat >>confdefs.h <<_ACEOF | |
26098 | #define HAVE___ATANHIEEE128 1 | |
26099 | _ACEOF | |
26100 | ||
26101 | fi | |
26102 | ||
26103 | ||
26104 | ||
26105 | ||
26106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atanieee128" >&5 | |
26107 | $as_echo_n "checking for __atanieee128... " >&6; } | |
26108 | if ${gcc_cv_math_func___atanieee128+:} false; then : | |
26109 | $as_echo_n "(cached) " >&6 | |
26110 | else | |
26111 | if test x$gcc_no_link = xyes; then | |
26112 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26113 | fi | |
26114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26115 | /* end confdefs.h. */ | |
26116 | ||
26117 | __float128 __atanieee128 (__float128); | |
26118 | __float128 (*ptr)(__float128) = __atanieee128; | |
26119 | ||
26120 | int | |
26121 | main () | |
26122 | { | |
26123 | return 0; | |
26124 | } | |
26125 | ||
26126 | _ACEOF | |
26127 | if ac_fn_c_try_link "$LINENO"; then : | |
26128 | gcc_cv_math_func___atanieee128=yes | |
26129 | else | |
26130 | gcc_cv_math_func___atanieee128=no | |
26131 | fi | |
26132 | rm -f core conftest.err conftest.$ac_objext \ | |
26133 | conftest$ac_exeext conftest.$ac_ext | |
26134 | fi | |
26135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atanieee128" >&5 | |
26136 | $as_echo "$gcc_cv_math_func___atanieee128" >&6; } | |
26137 | if test $gcc_cv_math_func___atanieee128 = yes; then | |
26138 | ||
26139 | cat >>confdefs.h <<_ACEOF | |
26140 | #define HAVE___ATANIEEE128 1 | |
26141 | _ACEOF | |
26142 | ||
26143 | fi | |
26144 | ||
26145 | ||
26146 | ||
26147 | ||
26148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __coshieee128" >&5 | |
26149 | $as_echo_n "checking for __coshieee128... " >&6; } | |
26150 | if ${gcc_cv_math_func___coshieee128+:} false; then : | |
26151 | $as_echo_n "(cached) " >&6 | |
26152 | else | |
26153 | if test x$gcc_no_link = xyes; then | |
26154 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26155 | fi | |
26156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26157 | /* end confdefs.h. */ | |
26158 | ||
26159 | __float128 __coshieee128 (__float128); | |
26160 | __float128 (*ptr)(__float128) = __coshieee128; | |
26161 | ||
26162 | int | |
26163 | main () | |
26164 | { | |
26165 | return 0; | |
26166 | } | |
26167 | ||
26168 | _ACEOF | |
26169 | if ac_fn_c_try_link "$LINENO"; then : | |
26170 | gcc_cv_math_func___coshieee128=yes | |
26171 | else | |
26172 | gcc_cv_math_func___coshieee128=no | |
26173 | fi | |
26174 | rm -f core conftest.err conftest.$ac_objext \ | |
26175 | conftest$ac_exeext conftest.$ac_ext | |
26176 | fi | |
26177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___coshieee128" >&5 | |
26178 | $as_echo "$gcc_cv_math_func___coshieee128" >&6; } | |
26179 | if test $gcc_cv_math_func___coshieee128 = yes; then | |
26180 | ||
26181 | cat >>confdefs.h <<_ACEOF | |
26182 | #define HAVE___COSHIEEE128 1 | |
26183 | _ACEOF | |
26184 | ||
26185 | fi | |
26186 | ||
26187 | ||
26188 | ||
26189 | ||
26190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cosieee128" >&5 | |
26191 | $as_echo_n "checking for __cosieee128... " >&6; } | |
26192 | if ${gcc_cv_math_func___cosieee128+:} false; then : | |
26193 | $as_echo_n "(cached) " >&6 | |
26194 | else | |
26195 | if test x$gcc_no_link = xyes; then | |
26196 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26197 | fi | |
26198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26199 | /* end confdefs.h. */ | |
26200 | ||
26201 | __float128 __cosieee128 (__float128); | |
26202 | __float128 (*ptr)(__float128) = __cosieee128; | |
26203 | ||
26204 | int | |
26205 | main () | |
26206 | { | |
26207 | return 0; | |
26208 | } | |
26209 | ||
26210 | _ACEOF | |
26211 | if ac_fn_c_try_link "$LINENO"; then : | |
26212 | gcc_cv_math_func___cosieee128=yes | |
26213 | else | |
26214 | gcc_cv_math_func___cosieee128=no | |
26215 | fi | |
26216 | rm -f core conftest.err conftest.$ac_objext \ | |
26217 | conftest$ac_exeext conftest.$ac_ext | |
26218 | fi | |
26219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___cosieee128" >&5 | |
26220 | $as_echo "$gcc_cv_math_func___cosieee128" >&6; } | |
26221 | if test $gcc_cv_math_func___cosieee128 = yes; then | |
26222 | ||
26223 | cat >>confdefs.h <<_ACEOF | |
26224 | #define HAVE___COSIEEE128 1 | |
26225 | _ACEOF | |
26226 | ||
26227 | fi | |
26228 | ||
26229 | ||
26230 | ||
26231 | ||
26232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __erfieee128" >&5 | |
26233 | $as_echo_n "checking for __erfieee128... " >&6; } | |
26234 | if ${gcc_cv_math_func___erfieee128+:} false; then : | |
26235 | $as_echo_n "(cached) " >&6 | |
26236 | else | |
26237 | if test x$gcc_no_link = xyes; then | |
26238 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26239 | fi | |
26240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26241 | /* end confdefs.h. */ | |
26242 | ||
26243 | __float128 __erfieee128 (__float128); | |
26244 | __float128 (*ptr)(__float128) = __erfieee128; | |
26245 | ||
26246 | int | |
26247 | main () | |
26248 | { | |
26249 | return 0; | |
26250 | } | |
26251 | ||
26252 | _ACEOF | |
26253 | if ac_fn_c_try_link "$LINENO"; then : | |
26254 | gcc_cv_math_func___erfieee128=yes | |
26255 | else | |
26256 | gcc_cv_math_func___erfieee128=no | |
26257 | fi | |
26258 | rm -f core conftest.err conftest.$ac_objext \ | |
26259 | conftest$ac_exeext conftest.$ac_ext | |
26260 | fi | |
26261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___erfieee128" >&5 | |
26262 | $as_echo "$gcc_cv_math_func___erfieee128" >&6; } | |
26263 | if test $gcc_cv_math_func___erfieee128 = yes; then | |
26264 | ||
26265 | cat >>confdefs.h <<_ACEOF | |
26266 | #define HAVE___ERFIEEE128 1 | |
26267 | _ACEOF | |
26268 | ||
26269 | fi | |
26270 | ||
26271 | ||
26272 | ||
26273 | ||
26274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __expieee128" >&5 | |
26275 | $as_echo_n "checking for __expieee128... " >&6; } | |
26276 | if ${gcc_cv_math_func___expieee128+:} false; then : | |
26277 | $as_echo_n "(cached) " >&6 | |
26278 | else | |
26279 | if test x$gcc_no_link = xyes; then | |
26280 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26281 | fi | |
26282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26283 | /* end confdefs.h. */ | |
26284 | ||
26285 | __float128 __expieee128 (__float128); | |
26286 | __float128 (*ptr)(__float128) = __expieee128; | |
26287 | ||
26288 | int | |
26289 | main () | |
26290 | { | |
26291 | return 0; | |
26292 | } | |
26293 | ||
26294 | _ACEOF | |
26295 | if ac_fn_c_try_link "$LINENO"; then : | |
26296 | gcc_cv_math_func___expieee128=yes | |
26297 | else | |
26298 | gcc_cv_math_func___expieee128=no | |
26299 | fi | |
26300 | rm -f core conftest.err conftest.$ac_objext \ | |
26301 | conftest$ac_exeext conftest.$ac_ext | |
26302 | fi | |
26303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___expieee128" >&5 | |
26304 | $as_echo "$gcc_cv_math_func___expieee128" >&6; } | |
26305 | if test $gcc_cv_math_func___expieee128 = yes; then | |
26306 | ||
26307 | cat >>confdefs.h <<_ACEOF | |
26308 | #define HAVE___EXPIEEE128 1 | |
26309 | _ACEOF | |
26310 | ||
26311 | fi | |
26312 | ||
26313 | ||
26314 | ||
26315 | ||
26316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fabsieee128" >&5 | |
26317 | $as_echo_n "checking for __fabsieee128... " >&6; } | |
26318 | if ${gcc_cv_math_func___fabsieee128+:} false; then : | |
26319 | $as_echo_n "(cached) " >&6 | |
26320 | else | |
26321 | if test x$gcc_no_link = xyes; then | |
26322 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26323 | fi | |
26324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26325 | /* end confdefs.h. */ | |
26326 | ||
26327 | __float128 __fabsieee128 (__float128); | |
26328 | __float128 (*ptr)(__float128) = __fabsieee128; | |
26329 | ||
26330 | int | |
26331 | main () | |
26332 | { | |
26333 | return 0; | |
26334 | } | |
26335 | ||
26336 | _ACEOF | |
26337 | if ac_fn_c_try_link "$LINENO"; then : | |
26338 | gcc_cv_math_func___fabsieee128=yes | |
26339 | else | |
26340 | gcc_cv_math_func___fabsieee128=no | |
26341 | fi | |
26342 | rm -f core conftest.err conftest.$ac_objext \ | |
26343 | conftest$ac_exeext conftest.$ac_ext | |
26344 | fi | |
26345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___fabsieee128" >&5 | |
26346 | $as_echo "$gcc_cv_math_func___fabsieee128" >&6; } | |
26347 | if test $gcc_cv_math_func___fabsieee128 = yes; then | |
26348 | ||
26349 | cat >>confdefs.h <<_ACEOF | |
26350 | #define HAVE___FABSIEEE128 1 | |
26351 | _ACEOF | |
26352 | ||
26353 | fi | |
26354 | ||
26355 | ||
26356 | ||
26357 | ||
26358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __jnieee128" >&5 | |
26359 | $as_echo_n "checking for __jnieee128... " >&6; } | |
26360 | if ${gcc_cv_math_func___jnieee128+:} false; then : | |
26361 | $as_echo_n "(cached) " >&6 | |
26362 | else | |
26363 | if test x$gcc_no_link = xyes; then | |
26364 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26365 | fi | |
26366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26367 | /* end confdefs.h. */ | |
26368 | ||
26369 | __float128 __jnieee128 (__float128); | |
26370 | __float128 (*ptr)(__float128) = __jnieee128; | |
26371 | ||
26372 | int | |
26373 | main () | |
26374 | { | |
26375 | return 0; | |
26376 | } | |
26377 | ||
26378 | _ACEOF | |
26379 | if ac_fn_c_try_link "$LINENO"; then : | |
26380 | gcc_cv_math_func___jnieee128=yes | |
26381 | else | |
26382 | gcc_cv_math_func___jnieee128=no | |
26383 | fi | |
26384 | rm -f core conftest.err conftest.$ac_objext \ | |
26385 | conftest$ac_exeext conftest.$ac_ext | |
26386 | fi | |
26387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___jnieee128" >&5 | |
26388 | $as_echo "$gcc_cv_math_func___jnieee128" >&6; } | |
26389 | if test $gcc_cv_math_func___jnieee128 = yes; then | |
26390 | ||
26391 | cat >>confdefs.h <<_ACEOF | |
26392 | #define HAVE___JNIEEE128 1 | |
26393 | _ACEOF | |
26394 | ||
26395 | fi | |
26396 | ||
26397 | ||
26398 | ||
26399 | ||
26400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __log10ieee128" >&5 | |
26401 | $as_echo_n "checking for __log10ieee128... " >&6; } | |
26402 | if ${gcc_cv_math_func___log10ieee128+:} false; then : | |
26403 | $as_echo_n "(cached) " >&6 | |
26404 | else | |
26405 | if test x$gcc_no_link = xyes; then | |
26406 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26407 | fi | |
26408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26409 | /* end confdefs.h. */ | |
26410 | ||
26411 | __float128 __log10ieee128 (__float128); | |
26412 | __float128 (*ptr)(__float128) = __log10ieee128; | |
26413 | ||
26414 | int | |
26415 | main () | |
26416 | { | |
26417 | return 0; | |
26418 | } | |
26419 | ||
26420 | _ACEOF | |
26421 | if ac_fn_c_try_link "$LINENO"; then : | |
26422 | gcc_cv_math_func___log10ieee128=yes | |
26423 | else | |
26424 | gcc_cv_math_func___log10ieee128=no | |
26425 | fi | |
26426 | rm -f core conftest.err conftest.$ac_objext \ | |
26427 | conftest$ac_exeext conftest.$ac_ext | |
26428 | fi | |
26429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___log10ieee128" >&5 | |
26430 | $as_echo "$gcc_cv_math_func___log10ieee128" >&6; } | |
26431 | if test $gcc_cv_math_func___log10ieee128 = yes; then | |
26432 | ||
26433 | cat >>confdefs.h <<_ACEOF | |
26434 | #define HAVE___LOG10IEEE128 1 | |
26435 | _ACEOF | |
26436 | ||
26437 | fi | |
26438 | ||
26439 | ||
26440 | ||
26441 | ||
26442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __logieee128" >&5 | |
26443 | $as_echo_n "checking for __logieee128... " >&6; } | |
26444 | if ${gcc_cv_math_func___logieee128+:} false; then : | |
26445 | $as_echo_n "(cached) " >&6 | |
26446 | else | |
26447 | if test x$gcc_no_link = xyes; then | |
26448 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26449 | fi | |
26450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26451 | /* end confdefs.h. */ | |
26452 | ||
26453 | __float128 __logieee128 (__float128); | |
26454 | __float128 (*ptr)(__float128) = __logieee128; | |
26455 | ||
26456 | int | |
26457 | main () | |
26458 | { | |
26459 | return 0; | |
26460 | } | |
26461 | ||
26462 | _ACEOF | |
26463 | if ac_fn_c_try_link "$LINENO"; then : | |
26464 | gcc_cv_math_func___logieee128=yes | |
26465 | else | |
26466 | gcc_cv_math_func___logieee128=no | |
26467 | fi | |
26468 | rm -f core conftest.err conftest.$ac_objext \ | |
26469 | conftest$ac_exeext conftest.$ac_ext | |
26470 | fi | |
26471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___logieee128" >&5 | |
26472 | $as_echo "$gcc_cv_math_func___logieee128" >&6; } | |
26473 | if test $gcc_cv_math_func___logieee128 = yes; then | |
26474 | ||
26475 | cat >>confdefs.h <<_ACEOF | |
26476 | #define HAVE___LOGIEEE128 1 | |
26477 | _ACEOF | |
26478 | ||
26479 | fi | |
26480 | ||
26481 | ||
26482 | ||
26483 | ||
26484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __powieee128" >&5 | |
26485 | $as_echo_n "checking for __powieee128... " >&6; } | |
26486 | if ${gcc_cv_math_func___powieee128+:} false; then : | |
26487 | $as_echo_n "(cached) " >&6 | |
26488 | else | |
26489 | if test x$gcc_no_link = xyes; then | |
26490 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26491 | fi | |
26492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26493 | /* end confdefs.h. */ | |
26494 | ||
26495 | __float128 __powieee128 (__float128); | |
26496 | __float128 (*ptr)(__float128) = __powieee128; | |
26497 | ||
26498 | int | |
26499 | main () | |
26500 | { | |
26501 | return 0; | |
26502 | } | |
26503 | ||
26504 | _ACEOF | |
26505 | if ac_fn_c_try_link "$LINENO"; then : | |
26506 | gcc_cv_math_func___powieee128=yes | |
26507 | else | |
26508 | gcc_cv_math_func___powieee128=no | |
26509 | fi | |
26510 | rm -f core conftest.err conftest.$ac_objext \ | |
26511 | conftest$ac_exeext conftest.$ac_ext | |
26512 | fi | |
26513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___powieee128" >&5 | |
26514 | $as_echo "$gcc_cv_math_func___powieee128" >&6; } | |
26515 | if test $gcc_cv_math_func___powieee128 = yes; then | |
26516 | ||
26517 | cat >>confdefs.h <<_ACEOF | |
26518 | #define HAVE___POWIEEE128 1 | |
26519 | _ACEOF | |
26520 | ||
26521 | fi | |
26522 | ||
26523 | ||
26524 | ||
26525 | ||
26526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sinhieee128" >&5 | |
26527 | $as_echo_n "checking for __sinhieee128... " >&6; } | |
26528 | if ${gcc_cv_math_func___sinhieee128+:} false; then : | |
26529 | $as_echo_n "(cached) " >&6 | |
26530 | else | |
26531 | if test x$gcc_no_link = xyes; then | |
26532 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26533 | fi | |
26534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26535 | /* end confdefs.h. */ | |
26536 | ||
26537 | __float128 __sinhieee128 (__float128); | |
26538 | __float128 (*ptr)(__float128) = __sinhieee128; | |
26539 | ||
26540 | int | |
26541 | main () | |
26542 | { | |
26543 | return 0; | |
26544 | } | |
26545 | ||
26546 | _ACEOF | |
26547 | if ac_fn_c_try_link "$LINENO"; then : | |
26548 | gcc_cv_math_func___sinhieee128=yes | |
26549 | else | |
26550 | gcc_cv_math_func___sinhieee128=no | |
26551 | fi | |
26552 | rm -f core conftest.err conftest.$ac_objext \ | |
26553 | conftest$ac_exeext conftest.$ac_ext | |
26554 | fi | |
26555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sinhieee128" >&5 | |
26556 | $as_echo "$gcc_cv_math_func___sinhieee128" >&6; } | |
26557 | if test $gcc_cv_math_func___sinhieee128 = yes; then | |
26558 | ||
26559 | cat >>confdefs.h <<_ACEOF | |
26560 | #define HAVE___SINHIEEE128 1 | |
26561 | _ACEOF | |
26562 | ||
26563 | fi | |
26564 | ||
26565 | ||
26566 | ||
26567 | ||
26568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sinieee128" >&5 | |
26569 | $as_echo_n "checking for __sinieee128... " >&6; } | |
26570 | if ${gcc_cv_math_func___sinieee128+:} false; then : | |
26571 | $as_echo_n "(cached) " >&6 | |
26572 | else | |
26573 | if test x$gcc_no_link = xyes; then | |
26574 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26575 | fi | |
26576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26577 | /* end confdefs.h. */ | |
26578 | ||
26579 | __float128 __sinieee128 (__float128); | |
26580 | __float128 (*ptr)(__float128) = __sinieee128; | |
26581 | ||
26582 | int | |
26583 | main () | |
26584 | { | |
26585 | return 0; | |
26586 | } | |
26587 | ||
26588 | _ACEOF | |
26589 | if ac_fn_c_try_link "$LINENO"; then : | |
26590 | gcc_cv_math_func___sinieee128=yes | |
26591 | else | |
26592 | gcc_cv_math_func___sinieee128=no | |
26593 | fi | |
26594 | rm -f core conftest.err conftest.$ac_objext \ | |
26595 | conftest$ac_exeext conftest.$ac_ext | |
26596 | fi | |
26597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sinieee128" >&5 | |
26598 | $as_echo "$gcc_cv_math_func___sinieee128" >&6; } | |
26599 | if test $gcc_cv_math_func___sinieee128 = yes; then | |
26600 | ||
26601 | cat >>confdefs.h <<_ACEOF | |
26602 | #define HAVE___SINIEEE128 1 | |
26603 | _ACEOF | |
26604 | ||
26605 | fi | |
26606 | ||
26607 | ||
26608 | ||
26609 | ||
26610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sqrtieee128" >&5 | |
26611 | $as_echo_n "checking for __sqrtieee128... " >&6; } | |
26612 | if ${gcc_cv_math_func___sqrtieee128+:} false; then : | |
26613 | $as_echo_n "(cached) " >&6 | |
26614 | else | |
26615 | if test x$gcc_no_link = xyes; then | |
26616 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26617 | fi | |
26618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26619 | /* end confdefs.h. */ | |
26620 | ||
26621 | __float128 __sqrtieee128 (__float128); | |
26622 | __float128 (*ptr)(__float128) = __sqrtieee128; | |
26623 | ||
26624 | int | |
26625 | main () | |
26626 | { | |
26627 | return 0; | |
26628 | } | |
26629 | ||
26630 | _ACEOF | |
26631 | if ac_fn_c_try_link "$LINENO"; then : | |
26632 | gcc_cv_math_func___sqrtieee128=yes | |
26633 | else | |
26634 | gcc_cv_math_func___sqrtieee128=no | |
26635 | fi | |
26636 | rm -f core conftest.err conftest.$ac_objext \ | |
26637 | conftest$ac_exeext conftest.$ac_ext | |
26638 | fi | |
26639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sqrtieee128" >&5 | |
26640 | $as_echo "$gcc_cv_math_func___sqrtieee128" >&6; } | |
26641 | if test $gcc_cv_math_func___sqrtieee128 = yes; then | |
26642 | ||
26643 | cat >>confdefs.h <<_ACEOF | |
26644 | #define HAVE___SQRTIEEE128 1 | |
26645 | _ACEOF | |
26646 | ||
26647 | fi | |
26648 | ||
26649 | ||
26650 | ||
26651 | ||
26652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __tanhieee128" >&5 | |
26653 | $as_echo_n "checking for __tanhieee128... " >&6; } | |
26654 | if ${gcc_cv_math_func___tanhieee128+:} false; then : | |
26655 | $as_echo_n "(cached) " >&6 | |
26656 | else | |
26657 | if test x$gcc_no_link = xyes; then | |
26658 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26659 | fi | |
26660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26661 | /* end confdefs.h. */ | |
26662 | ||
26663 | __float128 __tanhieee128 (__float128); | |
26664 | __float128 (*ptr)(__float128) = __tanhieee128; | |
26665 | ||
26666 | int | |
26667 | main () | |
26668 | { | |
26669 | return 0; | |
26670 | } | |
26671 | ||
26672 | _ACEOF | |
26673 | if ac_fn_c_try_link "$LINENO"; then : | |
26674 | gcc_cv_math_func___tanhieee128=yes | |
26675 | else | |
26676 | gcc_cv_math_func___tanhieee128=no | |
26677 | fi | |
26678 | rm -f core conftest.err conftest.$ac_objext \ | |
26679 | conftest$ac_exeext conftest.$ac_ext | |
26680 | fi | |
26681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___tanhieee128" >&5 | |
26682 | $as_echo "$gcc_cv_math_func___tanhieee128" >&6; } | |
26683 | if test $gcc_cv_math_func___tanhieee128 = yes; then | |
26684 | ||
26685 | cat >>confdefs.h <<_ACEOF | |
26686 | #define HAVE___TANHIEEE128 1 | |
26687 | _ACEOF | |
26688 | ||
26689 | fi | |
26690 | ||
26691 | ||
26692 | ||
26693 | ||
26694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __tanieee128" >&5 | |
26695 | $as_echo_n "checking for __tanieee128... " >&6; } | |
26696 | if ${gcc_cv_math_func___tanieee128+:} false; then : | |
26697 | $as_echo_n "(cached) " >&6 | |
26698 | else | |
26699 | if test x$gcc_no_link = xyes; then | |
26700 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26701 | fi | |
26702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26703 | /* end confdefs.h. */ | |
26704 | ||
26705 | __float128 __tanieee128 (__float128); | |
26706 | __float128 (*ptr)(__float128) = __tanieee128; | |
26707 | ||
26708 | int | |
26709 | main () | |
26710 | { | |
26711 | return 0; | |
26712 | } | |
26713 | ||
26714 | _ACEOF | |
26715 | if ac_fn_c_try_link "$LINENO"; then : | |
26716 | gcc_cv_math_func___tanieee128=yes | |
26717 | else | |
26718 | gcc_cv_math_func___tanieee128=no | |
26719 | fi | |
26720 | rm -f core conftest.err conftest.$ac_objext \ | |
26721 | conftest$ac_exeext conftest.$ac_ext | |
26722 | fi | |
26723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___tanieee128" >&5 | |
26724 | $as_echo "$gcc_cv_math_func___tanieee128" >&6; } | |
26725 | if test $gcc_cv_math_func___tanieee128 = yes; then | |
26726 | ||
26727 | cat >>confdefs.h <<_ACEOF | |
26728 | #define HAVE___TANIEEE128 1 | |
26729 | _ACEOF | |
26730 | ||
26731 | fi | |
26732 | ||
26733 | ||
26734 | ||
26735 | ||
26736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ynieee128" >&5 | |
26737 | $as_echo_n "checking for __ynieee128... " >&6; } | |
26738 | if ${gcc_cv_math_func___ynieee128+:} false; then : | |
26739 | $as_echo_n "(cached) " >&6 | |
26740 | else | |
26741 | if test x$gcc_no_link = xyes; then | |
26742 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26743 | fi | |
26744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26745 | /* end confdefs.h. */ | |
26746 | ||
26747 | __float128 __ynieee128 (__float128); | |
26748 | __float128 (*ptr)(__float128) = __ynieee128; | |
26749 | ||
26750 | int | |
26751 | main () | |
26752 | { | |
26753 | return 0; | |
26754 | } | |
26755 | ||
26756 | _ACEOF | |
26757 | if ac_fn_c_try_link "$LINENO"; then : | |
26758 | gcc_cv_math_func___ynieee128=yes | |
26759 | else | |
26760 | gcc_cv_math_func___ynieee128=no | |
26761 | fi | |
26762 | rm -f core conftest.err conftest.$ac_objext \ | |
26763 | conftest$ac_exeext conftest.$ac_ext | |
26764 | fi | |
26765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___ynieee128" >&5 | |
26766 | $as_echo "$gcc_cv_math_func___ynieee128" >&6; } | |
26767 | if test $gcc_cv_math_func___ynieee128 = yes; then | |
26768 | ||
26769 | cat >>confdefs.h <<_ACEOF | |
26770 | #define HAVE___YNIEEE128 1 | |
26771 | _ACEOF | |
26772 | ||
26773 | fi | |
26774 | ||
26775 | fi | |
26776 | ||
118ea208 | 26777 | # On AIX, clog is present in libm as __clog |
5213506e RW |
26778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5 |
26779 | $as_echo_n "checking for __clog in -lm... " >&6; } | |
22e05272 | 26780 | if ${ac_cv_lib_m___clog+:} false; then : |
5213506e | 26781 | $as_echo_n "(cached) " >&6 |
e097b4f1 DE |
26782 | else |
26783 | ac_check_lib_save_LIBS=$LIBS | |
26784 | LIBS="-lm $LIBS" | |
26785 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26786 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
e097b4f1 | 26787 | fi |
5213506e | 26788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e097b4f1 DE |
26789 | /* end confdefs.h. */ |
26790 | ||
5213506e RW |
26791 | /* Override any GCC internal prototype to avoid an error. |
26792 | Use char because int might match the return type of a GCC | |
26793 | builtin and then its argument prototype would still apply. */ | |
e097b4f1 DE |
26794 | #ifdef __cplusplus |
26795 | extern "C" | |
26796 | #endif | |
e097b4f1 DE |
26797 | char __clog (); |
26798 | int | |
26799 | main () | |
26800 | { | |
5213506e | 26801 | return __clog (); |
e097b4f1 DE |
26802 | ; |
26803 | return 0; | |
26804 | } | |
26805 | _ACEOF | |
5213506e | 26806 | if ac_fn_c_try_link "$LINENO"; then : |
e097b4f1 DE |
26807 | ac_cv_lib_m___clog=yes |
26808 | else | |
5213506e | 26809 | ac_cv_lib_m___clog=no |
e097b4f1 | 26810 | fi |
5213506e RW |
26811 | rm -f core conftest.err conftest.$ac_objext \ |
26812 | conftest$ac_exeext conftest.$ac_ext | |
e097b4f1 DE |
26813 | LIBS=$ac_check_lib_save_LIBS |
26814 | fi | |
5213506e RW |
26815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5 |
26816 | $as_echo "$ac_cv_lib_m___clog" >&6; } | |
22e05272 | 26817 | if test "x$ac_cv_lib_m___clog" = xyes; then : |
e097b4f1 | 26818 | |
5213506e | 26819 | $as_echo "#define HAVE_CLOG 1" >>confdefs.h |
e097b4f1 DE |
26820 | |
26821 | fi | |
26822 | ||
26823 | ||
1868599f JJ |
26824 | |
26825 | ||
26826 | if test $gcc_cv_math_func_copysign = no; then | |
26827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5 | |
26828 | $as_echo_n "checking for inline __builtin_copysign... " >&6; } | |
26829 | if ${gcc_cv_math_inline_builtin_copysign+:} false; then : | |
26830 | $as_echo_n "(cached) " >&6 | |
26831 | else | |
26832 | if test x$gcc_no_link = xyes; then | |
26833 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26834 | fi | |
26835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26836 | /* end confdefs.h. */ | |
26837 | ||
26838 | double | |
26839 | copysign_fallback (double x, double y) | |
26840 | { | |
26841 | return __builtin_copysign (x, y); | |
26842 | } | |
26843 | ||
26844 | int | |
26845 | main () | |
26846 | { | |
26847 | return 0; | |
26848 | } | |
26849 | ||
26850 | _ACEOF | |
26851 | if ac_fn_c_try_link "$LINENO"; then : | |
26852 | gcc_cv_math_inline_builtin_copysign=yes | |
26853 | else | |
26854 | gcc_cv_math_inline_builtin_copysign=no | |
26855 | fi | |
26856 | rm -f core conftest.err conftest.$ac_objext \ | |
26857 | conftest$ac_exeext conftest.$ac_ext | |
26858 | fi | |
26859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5 | |
26860 | $as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; } | |
26861 | if test $gcc_cv_math_inline_builtin_copysign = yes; then | |
26862 | ||
26863 | cat >>confdefs.h <<_ACEOF | |
26864 | #define HAVE_INLINE_BUILTIN_COPYSIGN 1 | |
26865 | _ACEOF | |
26866 | ||
26867 | fi | |
26868 | fi | |
26869 | ||
26870 | ||
26871 | if test $gcc_cv_math_func_copysignl = no; then | |
26872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5 | |
26873 | $as_echo_n "checking for inline __builtin_copysignl... " >&6; } | |
26874 | if ${gcc_cv_math_inline_builtin_copysignl+:} false; then : | |
26875 | $as_echo_n "(cached) " >&6 | |
26876 | else | |
26877 | if test x$gcc_no_link = xyes; then | |
26878 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26879 | fi | |
26880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26881 | /* end confdefs.h. */ | |
26882 | ||
26883 | long double | |
26884 | copysignl_fallback (long double x, long double y) | |
26885 | { | |
26886 | return __builtin_copysignl (x, y); | |
26887 | } | |
26888 | ||
26889 | int | |
26890 | main () | |
26891 | { | |
26892 | return 0; | |
26893 | } | |
26894 | ||
26895 | _ACEOF | |
26896 | if ac_fn_c_try_link "$LINENO"; then : | |
26897 | gcc_cv_math_inline_builtin_copysignl=yes | |
26898 | else | |
26899 | gcc_cv_math_inline_builtin_copysignl=no | |
26900 | fi | |
26901 | rm -f core conftest.err conftest.$ac_objext \ | |
26902 | conftest$ac_exeext conftest.$ac_ext | |
26903 | fi | |
26904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5 | |
26905 | $as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; } | |
26906 | if test $gcc_cv_math_inline_builtin_copysignl = yes; then | |
26907 | ||
26908 | cat >>confdefs.h <<_ACEOF | |
26909 | #define HAVE_INLINE_BUILTIN_COPYSIGNL 1 | |
26910 | _ACEOF | |
26911 | ||
26912 | fi | |
26913 | fi | |
26914 | ||
26915 | ||
26916 | if test $gcc_cv_math_func_fabs = no; then | |
26917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5 | |
26918 | $as_echo_n "checking for inline __builtin_fabs... " >&6; } | |
26919 | if ${gcc_cv_math_inline_builtin_fabs+:} false; then : | |
26920 | $as_echo_n "(cached) " >&6 | |
26921 | else | |
26922 | if test x$gcc_no_link = xyes; then | |
26923 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26924 | fi | |
26925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26926 | /* end confdefs.h. */ | |
26927 | ||
26928 | double | |
26929 | fabs_fallback (double x) | |
26930 | { | |
26931 | return __builtin_fabs (x); | |
26932 | } | |
26933 | ||
26934 | int | |
26935 | main () | |
26936 | { | |
26937 | return 0; | |
26938 | } | |
26939 | ||
26940 | _ACEOF | |
26941 | if ac_fn_c_try_link "$LINENO"; then : | |
26942 | gcc_cv_math_inline_builtin_fabs=yes | |
26943 | else | |
26944 | gcc_cv_math_inline_builtin_fabs=no | |
26945 | fi | |
26946 | rm -f core conftest.err conftest.$ac_objext \ | |
26947 | conftest$ac_exeext conftest.$ac_ext | |
26948 | fi | |
26949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5 | |
26950 | $as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; } | |
26951 | if test $gcc_cv_math_inline_builtin_fabs = yes; then | |
26952 | ||
26953 | cat >>confdefs.h <<_ACEOF | |
26954 | #define HAVE_INLINE_BUILTIN_FABS 1 | |
26955 | _ACEOF | |
26956 | ||
26957 | fi | |
26958 | fi | |
26959 | ||
26960 | ||
26961 | if test $gcc_cv_math_func_fabsl = no; then | |
26962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5 | |
26963 | $as_echo_n "checking for inline __builtin_fabsl... " >&6; } | |
26964 | if ${gcc_cv_math_inline_builtin_fabsl+:} false; then : | |
26965 | $as_echo_n "(cached) " >&6 | |
26966 | else | |
26967 | if test x$gcc_no_link = xyes; then | |
26968 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26969 | fi | |
26970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26971 | /* end confdefs.h. */ | |
26972 | ||
26973 | long double | |
26974 | fabsl_fallback (long double x) | |
26975 | { | |
26976 | return __builtin_fabsl (x); | |
26977 | } | |
26978 | ||
26979 | int | |
26980 | main () | |
26981 | { | |
26982 | return 0; | |
26983 | } | |
26984 | ||
26985 | _ACEOF | |
26986 | if ac_fn_c_try_link "$LINENO"; then : | |
26987 | gcc_cv_math_inline_builtin_fabsl=yes | |
26988 | else | |
26989 | gcc_cv_math_inline_builtin_fabsl=no | |
26990 | fi | |
26991 | rm -f core conftest.err conftest.$ac_objext \ | |
26992 | conftest$ac_exeext conftest.$ac_ext | |
26993 | fi | |
26994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5 | |
26995 | $as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; } | |
26996 | if test $gcc_cv_math_inline_builtin_fabsl = yes; then | |
26997 | ||
26998 | cat >>confdefs.h <<_ACEOF | |
26999 | #define HAVE_INLINE_BUILTIN_FABSL 1 | |
27000 | _ACEOF | |
27001 | ||
27002 | fi | |
27003 | fi | |
27004 | ||
ad238e4f | 27005 | |
ad238e4f | 27006 | |
ad238e4f | 27007 | |
133d0d42 JJ |
27008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf128" >&5 |
27009 | $as_echo_n "checking for acosf128... " >&6; } | |
27010 | if ${gcc_cv_math_func_acosf128+:} false; then : | |
27011 | $as_echo_n "(cached) " >&6 | |
ad238e4f | 27012 | else |
133d0d42 JJ |
27013 | if test x$gcc_no_link = xyes; then |
27014 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27015 | fi | |
27016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad238e4f FXC |
27017 | /* end confdefs.h. */ |
27018 | ||
133d0d42 JJ |
27019 | #ifdef HAVE_COMPLEX_H |
27020 | #include <complex.h> | |
27021 | #endif | |
27022 | #ifdef HAVE_MATH_H | |
27023 | #include <math.h> | |
27024 | #endif | |
ad238e4f | 27025 | |
133d0d42 | 27026 | int (*ptr)() = (int (*)())acosf128; |
ad238e4f | 27027 | |
133d0d42 JJ |
27028 | int |
27029 | main () | |
27030 | { | |
ad238e4f FXC |
27031 | return 0; |
27032 | } | |
133d0d42 | 27033 | |
ad238e4f | 27034 | _ACEOF |
133d0d42 JJ |
27035 | if ac_fn_c_try_link "$LINENO"; then : |
27036 | gcc_cv_math_func_acosf128=yes | |
ad238e4f | 27037 | else |
133d0d42 | 27038 | gcc_cv_math_func_acosf128=no |
ad238e4f | 27039 | fi |
133d0d42 JJ |
27040 | rm -f core conftest.err conftest.$ac_objext \ |
27041 | conftest$ac_exeext conftest.$ac_ext | |
ad238e4f | 27042 | fi |
133d0d42 JJ |
27043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf128" >&5 |
27044 | $as_echo "$gcc_cv_math_func_acosf128" >&6; } | |
27045 | if test $gcc_cv_math_func_acosf128 = yes; then | |
5213506e | 27046 | |
133d0d42 JJ |
27047 | cat >>confdefs.h <<_ACEOF |
27048 | #define HAVE_ACOSF128 1 | |
27049 | _ACEOF | |
ad238e4f | 27050 | |
133d0d42 | 27051 | fi |
ad238e4f | 27052 | |
ad238e4f | 27053 | |
db8092dc | 27054 | |
133d0d42 JJ |
27055 | |
27056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf128" >&5 | |
27057 | $as_echo_n "checking for acoshf128... " >&6; } | |
27058 | if ${gcc_cv_math_func_acoshf128+:} false; then : | |
5213506e | 27059 | $as_echo_n "(cached) " >&6 |
db8092dc | 27060 | else |
133d0d42 | 27061 | if test x$gcc_no_link = xyes; then |
22e05272 | 27062 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db8092dc | 27063 | fi |
5213506e | 27064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db8092dc FXC |
27065 | /* end confdefs.h. */ |
27066 | ||
133d0d42 JJ |
27067 | #ifdef HAVE_COMPLEX_H |
27068 | #include <complex.h> | |
27069 | #endif | |
27070 | #ifdef HAVE_MATH_H | |
27071 | #include <math.h> | |
27072 | #endif | |
27073 | ||
27074 | int (*ptr)() = (int (*)())acoshf128; | |
db8092dc FXC |
27075 | |
27076 | int | |
27077 | main () | |
27078 | { | |
db8092dc FXC |
27079 | return 0; |
27080 | } | |
133d0d42 | 27081 | |
db8092dc | 27082 | _ACEOF |
5213506e | 27083 | if ac_fn_c_try_link "$LINENO"; then : |
133d0d42 | 27084 | gcc_cv_math_func_acoshf128=yes |
db8092dc | 27085 | else |
133d0d42 | 27086 | gcc_cv_math_func_acoshf128=no |
db8092dc | 27087 | fi |
5213506e RW |
27088 | rm -f core conftest.err conftest.$ac_objext \ |
27089 | conftest$ac_exeext conftest.$ac_ext | |
db8092dc | 27090 | fi |
133d0d42 JJ |
27091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf128" >&5 |
27092 | $as_echo "$gcc_cv_math_func_acoshf128" >&6; } | |
27093 | if test $gcc_cv_math_func_acoshf128 = yes; then | |
db8092dc | 27094 | |
133d0d42 JJ |
27095 | cat >>confdefs.h <<_ACEOF |
27096 | #define HAVE_ACOSHF128 1 | |
27097 | _ACEOF | |
db8092dc FXC |
27098 | |
27099 | fi | |
27100 | ||
27101 | ||
1ec601bf | 27102 | |
87e6d9dc | 27103 | |
133d0d42 JJ |
27104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf128" >&5 |
27105 | $as_echo_n "checking for asinf128... " >&6; } | |
27106 | if ${gcc_cv_math_func_asinf128+:} false; then : | |
1ec601bf FXC |
27107 | $as_echo_n "(cached) " >&6 |
27108 | else | |
133d0d42 JJ |
27109 | if test x$gcc_no_link = xyes; then |
27110 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27111 | fi | |
27112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1ec601bf FXC |
27113 | /* end confdefs.h. */ |
27114 | ||
133d0d42 JJ |
27115 | #ifdef HAVE_COMPLEX_H |
27116 | #include <complex.h> | |
27117 | #endif | |
27118 | #ifdef HAVE_MATH_H | |
27119 | #include <math.h> | |
27120 | #endif | |
69eb61d4 | 27121 | |
133d0d42 | 27122 | int (*ptr)() = (int (*)())asinf128; |
1ec601bf FXC |
27123 | |
27124 | int | |
27125 | main () | |
27126 | { | |
69eb61d4 TB |
27127 | return 0; |
27128 | } | |
133d0d42 | 27129 | |
69eb61d4 | 27130 | _ACEOF |
133d0d42 JJ |
27131 | if ac_fn_c_try_link "$LINENO"; then : |
27132 | gcc_cv_math_func_asinf128=yes | |
27133 | else | |
27134 | gcc_cv_math_func_asinf128=no | |
27135 | fi | |
27136 | rm -f core conftest.err conftest.$ac_objext \ | |
27137 | conftest$ac_exeext conftest.$ac_ext | |
27138 | fi | |
27139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf128" >&5 | |
27140 | $as_echo "$gcc_cv_math_func_asinf128" >&6; } | |
27141 | if test $gcc_cv_math_func_asinf128 = yes; then | |
1ec601bf | 27142 | |
133d0d42 JJ |
27143 | cat >>confdefs.h <<_ACEOF |
27144 | #define HAVE_ASINF128 1 | |
27145 | _ACEOF | |
1ec601bf | 27146 | |
133d0d42 | 27147 | fi |
69eb61d4 | 27148 | |
69eb61d4 | 27149 | |
133d0d42 JJ |
27150 | |
27151 | ||
27152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf128" >&5 | |
27153 | $as_echo_n "checking for asinhf128... " >&6; } | |
27154 | if ${gcc_cv_math_func_asinhf128+:} false; then : | |
27155 | $as_echo_n "(cached) " >&6 | |
69eb61d4 TB |
27156 | else |
27157 | if test x$gcc_no_link = xyes; then | |
22e05272 | 27158 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
69eb61d4 TB |
27159 | fi |
27160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27161 | /* end confdefs.h. */ | |
27162 | ||
133d0d42 JJ |
27163 | #ifdef HAVE_COMPLEX_H |
27164 | #include <complex.h> | |
27165 | #endif | |
27166 | #ifdef HAVE_MATH_H | |
27167 | #include <math.h> | |
27168 | #endif | |
69eb61d4 | 27169 | |
133d0d42 | 27170 | int (*ptr)() = (int (*)())asinhf128; |
69eb61d4 TB |
27171 | |
27172 | int | |
27173 | main () | |
27174 | { | |
1ec601bf FXC |
27175 | return 0; |
27176 | } | |
133d0d42 | 27177 | |
1ec601bf FXC |
27178 | _ACEOF |
27179 | if ac_fn_c_try_link "$LINENO"; then : | |
133d0d42 | 27180 | gcc_cv_math_func_asinhf128=yes |
1ec601bf | 27181 | else |
133d0d42 | 27182 | gcc_cv_math_func_asinhf128=no |
1ec601bf FXC |
27183 | fi |
27184 | rm -f core conftest.err conftest.$ac_objext \ | |
27185 | conftest$ac_exeext conftest.$ac_ext | |
69eb61d4 | 27186 | fi |
133d0d42 JJ |
27187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf128" >&5 |
27188 | $as_echo "$gcc_cv_math_func_asinhf128" >&6; } | |
27189 | if test $gcc_cv_math_func_asinhf128 = yes; then | |
1ec601bf | 27190 | |
133d0d42 JJ |
27191 | cat >>confdefs.h <<_ACEOF |
27192 | #define HAVE_ASINHF128 1 | |
27193 | _ACEOF | |
1ec601bf | 27194 | |
133d0d42 | 27195 | fi |
1ec601bf FXC |
27196 | |
27197 | ||
1ec601bf | 27198 | |
1ec601bf | 27199 | |
133d0d42 JJ |
27200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f128" >&5 |
27201 | $as_echo_n "checking for atan2f128... " >&6; } | |
27202 | if ${gcc_cv_math_func_atan2f128+:} false; then : | |
27203 | $as_echo_n "(cached) " >&6 | |
27204 | else | |
27205 | if test x$gcc_no_link = xyes; then | |
22e05272 | 27206 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1ec601bf FXC |
27207 | fi |
27208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27209 | /* end confdefs.h. */ | |
27210 | ||
133d0d42 JJ |
27211 | #ifdef HAVE_COMPLEX_H |
27212 | #include <complex.h> | |
27213 | #endif | |
27214 | #ifdef HAVE_MATH_H | |
27215 | #include <math.h> | |
27216 | #endif | |
27217 | ||
27218 | int (*ptr)() = (int (*)())atan2f128; | |
27219 | ||
1ec601bf FXC |
27220 | int |
27221 | main () | |
27222 | { | |
1ec601bf FXC |
27223 | return 0; |
27224 | } | |
133d0d42 | 27225 | |
1ec601bf FXC |
27226 | _ACEOF |
27227 | if ac_fn_c_try_link "$LINENO"; then : | |
133d0d42 | 27228 | gcc_cv_math_func_atan2f128=yes |
1ec601bf | 27229 | else |
133d0d42 | 27230 | gcc_cv_math_func_atan2f128=no |
1ec601bf FXC |
27231 | fi |
27232 | rm -f core conftest.err conftest.$ac_objext \ | |
27233 | conftest$ac_exeext conftest.$ac_ext | |
133d0d42 JJ |
27234 | fi |
27235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f128" >&5 | |
27236 | $as_echo "$gcc_cv_math_func_atan2f128" >&6; } | |
27237 | if test $gcc_cv_math_func_atan2f128 = yes; then | |
828012a5 | 27238 | |
133d0d42 JJ |
27239 | cat >>confdefs.h <<_ACEOF |
27240 | #define HAVE_ATAN2F128 1 | |
27241 | _ACEOF | |
27242 | ||
27243 | fi | |
27244 | ||
27245 | ||
27246 | ||
27247 | ||
27248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf128" >&5 | |
27249 | $as_echo_n "checking for atanf128... " >&6; } | |
27250 | if ${gcc_cv_math_func_atanf128+:} false; then : | |
27251 | $as_echo_n "(cached) " >&6 | |
27252 | else | |
27253 | if test x$gcc_no_link = xyes; then | |
22e05272 | 27254 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
828012a5 RO |
27255 | fi |
27256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27257 | /* end confdefs.h. */ | |
27258 | ||
133d0d42 JJ |
27259 | #ifdef HAVE_COMPLEX_H |
27260 | #include <complex.h> | |
27261 | #endif | |
27262 | #ifdef HAVE_MATH_H | |
27263 | #include <math.h> | |
27264 | #endif | |
27265 | ||
27266 | int (*ptr)() = (int (*)())atanf128; | |
27267 | ||
828012a5 RO |
27268 | int |
27269 | main () | |
27270 | { | |
133d0d42 JJ |
27271 | return 0; |
27272 | } | |
27273 | ||
27274 | _ACEOF | |
27275 | if ac_fn_c_try_link "$LINENO"; then : | |
27276 | gcc_cv_math_func_atanf128=yes | |
27277 | else | |
27278 | gcc_cv_math_func_atanf128=no | |
27279 | fi | |
27280 | rm -f core conftest.err conftest.$ac_objext \ | |
27281 | conftest$ac_exeext conftest.$ac_ext | |
27282 | fi | |
27283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf128" >&5 | |
27284 | $as_echo "$gcc_cv_math_func_atanf128" >&6; } | |
27285 | if test $gcc_cv_math_func_atanf128 = yes; then | |
27286 | ||
27287 | cat >>confdefs.h <<_ACEOF | |
27288 | #define HAVE_ATANF128 1 | |
27289 | _ACEOF | |
27290 | ||
27291 | fi | |
27292 | ||
27293 | ||
27294 | ||
27295 | ||
27296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf128" >&5 | |
27297 | $as_echo_n "checking for atanhf128... " >&6; } | |
27298 | if ${gcc_cv_math_func_atanhf128+:} false; then : | |
27299 | $as_echo_n "(cached) " >&6 | |
27300 | else | |
27301 | if test x$gcc_no_link = xyes; then | |
27302 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27303 | fi | |
27304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27305 | /* end confdefs.h. */ | |
27306 | ||
27307 | #ifdef HAVE_COMPLEX_H | |
27308 | #include <complex.h> | |
27309 | #endif | |
27310 | #ifdef HAVE_MATH_H | |
27311 | #include <math.h> | |
27312 | #endif | |
27313 | ||
27314 | int (*ptr)() = (int (*)())atanhf128; | |
27315 | ||
27316 | int | |
27317 | main () | |
27318 | { | |
27319 | return 0; | |
27320 | } | |
27321 | ||
27322 | _ACEOF | |
27323 | if ac_fn_c_try_link "$LINENO"; then : | |
27324 | gcc_cv_math_func_atanhf128=yes | |
27325 | else | |
27326 | gcc_cv_math_func_atanhf128=no | |
27327 | fi | |
27328 | rm -f core conftest.err conftest.$ac_objext \ | |
27329 | conftest$ac_exeext conftest.$ac_ext | |
27330 | fi | |
27331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf128" >&5 | |
27332 | $as_echo "$gcc_cv_math_func_atanhf128" >&6; } | |
27333 | if test $gcc_cv_math_func_atanhf128 = yes; then | |
27334 | ||
27335 | cat >>confdefs.h <<_ACEOF | |
27336 | #define HAVE_ATANHF128 1 | |
27337 | _ACEOF | |
27338 | ||
27339 | fi | |
27340 | ||
27341 | ||
27342 | ||
27343 | ||
27344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf128" >&5 | |
27345 | $as_echo_n "checking for cargf128... " >&6; } | |
27346 | if ${gcc_cv_math_func_cargf128+:} false; then : | |
27347 | $as_echo_n "(cached) " >&6 | |
27348 | else | |
27349 | if test x$gcc_no_link = xyes; then | |
27350 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27351 | fi | |
27352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27353 | /* end confdefs.h. */ | |
27354 | ||
27355 | #ifdef HAVE_COMPLEX_H | |
27356 | #include <complex.h> | |
27357 | #endif | |
27358 | #ifdef HAVE_MATH_H | |
27359 | #include <math.h> | |
27360 | #endif | |
27361 | ||
27362 | int (*ptr)() = (int (*)())cargf128; | |
27363 | ||
27364 | int | |
27365 | main () | |
27366 | { | |
27367 | return 0; | |
27368 | } | |
27369 | ||
27370 | _ACEOF | |
27371 | if ac_fn_c_try_link "$LINENO"; then : | |
27372 | gcc_cv_math_func_cargf128=yes | |
27373 | else | |
27374 | gcc_cv_math_func_cargf128=no | |
27375 | fi | |
27376 | rm -f core conftest.err conftest.$ac_objext \ | |
27377 | conftest$ac_exeext conftest.$ac_ext | |
27378 | fi | |
27379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf128" >&5 | |
27380 | $as_echo "$gcc_cv_math_func_cargf128" >&6; } | |
27381 | if test $gcc_cv_math_func_cargf128 = yes; then | |
27382 | ||
27383 | cat >>confdefs.h <<_ACEOF | |
27384 | #define HAVE_CARGF128 1 | |
27385 | _ACEOF | |
27386 | ||
27387 | fi | |
27388 | ||
27389 | ||
27390 | ||
27391 | ||
27392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf128" >&5 | |
27393 | $as_echo_n "checking for ceilf128... " >&6; } | |
27394 | if ${gcc_cv_math_func_ceilf128+:} false; then : | |
27395 | $as_echo_n "(cached) " >&6 | |
27396 | else | |
27397 | if test x$gcc_no_link = xyes; then | |
27398 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27399 | fi | |
27400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27401 | /* end confdefs.h. */ | |
27402 | ||
27403 | #ifdef HAVE_COMPLEX_H | |
27404 | #include <complex.h> | |
27405 | #endif | |
27406 | #ifdef HAVE_MATH_H | |
27407 | #include <math.h> | |
27408 | #endif | |
27409 | ||
27410 | int (*ptr)() = (int (*)())ceilf128; | |
27411 | ||
27412 | int | |
27413 | main () | |
27414 | { | |
27415 | return 0; | |
27416 | } | |
27417 | ||
27418 | _ACEOF | |
27419 | if ac_fn_c_try_link "$LINENO"; then : | |
27420 | gcc_cv_math_func_ceilf128=yes | |
27421 | else | |
27422 | gcc_cv_math_func_ceilf128=no | |
27423 | fi | |
27424 | rm -f core conftest.err conftest.$ac_objext \ | |
27425 | conftest$ac_exeext conftest.$ac_ext | |
27426 | fi | |
27427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf128" >&5 | |
27428 | $as_echo "$gcc_cv_math_func_ceilf128" >&6; } | |
27429 | if test $gcc_cv_math_func_ceilf128 = yes; then | |
27430 | ||
27431 | cat >>confdefs.h <<_ACEOF | |
27432 | #define HAVE_CEILF128 1 | |
27433 | _ACEOF | |
27434 | ||
27435 | fi | |
27436 | ||
27437 | ||
27438 | ||
27439 | ||
27440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf128" >&5 | |
27441 | $as_echo_n "checking for copysignf128... " >&6; } | |
27442 | if ${gcc_cv_math_func_copysignf128+:} false; then : | |
27443 | $as_echo_n "(cached) " >&6 | |
27444 | else | |
27445 | if test x$gcc_no_link = xyes; then | |
27446 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27447 | fi | |
27448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27449 | /* end confdefs.h. */ | |
27450 | ||
27451 | #ifdef HAVE_COMPLEX_H | |
27452 | #include <complex.h> | |
27453 | #endif | |
27454 | #ifdef HAVE_MATH_H | |
27455 | #include <math.h> | |
27456 | #endif | |
27457 | ||
27458 | int (*ptr)() = (int (*)())copysignf128; | |
27459 | ||
27460 | int | |
27461 | main () | |
27462 | { | |
27463 | return 0; | |
27464 | } | |
27465 | ||
27466 | _ACEOF | |
27467 | if ac_fn_c_try_link "$LINENO"; then : | |
27468 | gcc_cv_math_func_copysignf128=yes | |
27469 | else | |
27470 | gcc_cv_math_func_copysignf128=no | |
27471 | fi | |
27472 | rm -f core conftest.err conftest.$ac_objext \ | |
27473 | conftest$ac_exeext conftest.$ac_ext | |
27474 | fi | |
27475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf128" >&5 | |
27476 | $as_echo "$gcc_cv_math_func_copysignf128" >&6; } | |
27477 | if test $gcc_cv_math_func_copysignf128 = yes; then | |
27478 | ||
27479 | cat >>confdefs.h <<_ACEOF | |
27480 | #define HAVE_COPYSIGNF128 1 | |
27481 | _ACEOF | |
27482 | ||
27483 | fi | |
27484 | ||
27485 | ||
27486 | ||
27487 | ||
27488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf128" >&5 | |
27489 | $as_echo_n "checking for cosf128... " >&6; } | |
27490 | if ${gcc_cv_math_func_cosf128+:} false; then : | |
27491 | $as_echo_n "(cached) " >&6 | |
27492 | else | |
27493 | if test x$gcc_no_link = xyes; then | |
27494 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27495 | fi | |
27496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27497 | /* end confdefs.h. */ | |
27498 | ||
27499 | #ifdef HAVE_COMPLEX_H | |
27500 | #include <complex.h> | |
27501 | #endif | |
27502 | #ifdef HAVE_MATH_H | |
27503 | #include <math.h> | |
27504 | #endif | |
27505 | ||
27506 | int (*ptr)() = (int (*)())cosf128; | |
27507 | ||
27508 | int | |
27509 | main () | |
27510 | { | |
27511 | return 0; | |
27512 | } | |
27513 | ||
27514 | _ACEOF | |
27515 | if ac_fn_c_try_link "$LINENO"; then : | |
27516 | gcc_cv_math_func_cosf128=yes | |
27517 | else | |
27518 | gcc_cv_math_func_cosf128=no | |
27519 | fi | |
27520 | rm -f core conftest.err conftest.$ac_objext \ | |
27521 | conftest$ac_exeext conftest.$ac_ext | |
27522 | fi | |
27523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf128" >&5 | |
27524 | $as_echo "$gcc_cv_math_func_cosf128" >&6; } | |
27525 | if test $gcc_cv_math_func_cosf128 = yes; then | |
27526 | ||
27527 | cat >>confdefs.h <<_ACEOF | |
27528 | #define HAVE_COSF128 1 | |
27529 | _ACEOF | |
27530 | ||
27531 | fi | |
27532 | ||
27533 | ||
27534 | ||
27535 | ||
27536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf128" >&5 | |
27537 | $as_echo_n "checking for ccosf128... " >&6; } | |
27538 | if ${gcc_cv_math_func_ccosf128+:} false; then : | |
27539 | $as_echo_n "(cached) " >&6 | |
27540 | else | |
27541 | if test x$gcc_no_link = xyes; then | |
27542 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27543 | fi | |
27544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27545 | /* end confdefs.h. */ | |
27546 | ||
27547 | #ifdef HAVE_COMPLEX_H | |
27548 | #include <complex.h> | |
27549 | #endif | |
27550 | #ifdef HAVE_MATH_H | |
27551 | #include <math.h> | |
27552 | #endif | |
27553 | ||
27554 | int (*ptr)() = (int (*)())ccosf128; | |
27555 | ||
27556 | int | |
27557 | main () | |
27558 | { | |
27559 | return 0; | |
27560 | } | |
27561 | ||
27562 | _ACEOF | |
27563 | if ac_fn_c_try_link "$LINENO"; then : | |
27564 | gcc_cv_math_func_ccosf128=yes | |
27565 | else | |
27566 | gcc_cv_math_func_ccosf128=no | |
27567 | fi | |
27568 | rm -f core conftest.err conftest.$ac_objext \ | |
27569 | conftest$ac_exeext conftest.$ac_ext | |
27570 | fi | |
27571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf128" >&5 | |
27572 | $as_echo "$gcc_cv_math_func_ccosf128" >&6; } | |
27573 | if test $gcc_cv_math_func_ccosf128 = yes; then | |
27574 | ||
27575 | cat >>confdefs.h <<_ACEOF | |
27576 | #define HAVE_CCOSF128 1 | |
27577 | _ACEOF | |
27578 | ||
27579 | fi | |
27580 | ||
27581 | ||
27582 | ||
27583 | ||
27584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf128" >&5 | |
27585 | $as_echo_n "checking for coshf128... " >&6; } | |
27586 | if ${gcc_cv_math_func_coshf128+:} false; then : | |
27587 | $as_echo_n "(cached) " >&6 | |
27588 | else | |
27589 | if test x$gcc_no_link = xyes; then | |
27590 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27591 | fi | |
27592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27593 | /* end confdefs.h. */ | |
27594 | ||
27595 | #ifdef HAVE_COMPLEX_H | |
27596 | #include <complex.h> | |
27597 | #endif | |
27598 | #ifdef HAVE_MATH_H | |
27599 | #include <math.h> | |
27600 | #endif | |
27601 | ||
27602 | int (*ptr)() = (int (*)())coshf128; | |
27603 | ||
27604 | int | |
27605 | main () | |
27606 | { | |
27607 | return 0; | |
27608 | } | |
27609 | ||
27610 | _ACEOF | |
27611 | if ac_fn_c_try_link "$LINENO"; then : | |
27612 | gcc_cv_math_func_coshf128=yes | |
27613 | else | |
27614 | gcc_cv_math_func_coshf128=no | |
27615 | fi | |
27616 | rm -f core conftest.err conftest.$ac_objext \ | |
27617 | conftest$ac_exeext conftest.$ac_ext | |
27618 | fi | |
27619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf128" >&5 | |
27620 | $as_echo "$gcc_cv_math_func_coshf128" >&6; } | |
27621 | if test $gcc_cv_math_func_coshf128 = yes; then | |
27622 | ||
27623 | cat >>confdefs.h <<_ACEOF | |
27624 | #define HAVE_COSHF128 1 | |
27625 | _ACEOF | |
27626 | ||
27627 | fi | |
27628 | ||
27629 | ||
27630 | ||
27631 | ||
27632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf128" >&5 | |
27633 | $as_echo_n "checking for ccoshf128... " >&6; } | |
27634 | if ${gcc_cv_math_func_ccoshf128+:} false; then : | |
27635 | $as_echo_n "(cached) " >&6 | |
27636 | else | |
27637 | if test x$gcc_no_link = xyes; then | |
27638 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27639 | fi | |
27640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27641 | /* end confdefs.h. */ | |
27642 | ||
27643 | #ifdef HAVE_COMPLEX_H | |
27644 | #include <complex.h> | |
27645 | #endif | |
27646 | #ifdef HAVE_MATH_H | |
27647 | #include <math.h> | |
27648 | #endif | |
27649 | ||
27650 | int (*ptr)() = (int (*)())ccoshf128; | |
27651 | ||
27652 | int | |
27653 | main () | |
27654 | { | |
27655 | return 0; | |
27656 | } | |
27657 | ||
27658 | _ACEOF | |
27659 | if ac_fn_c_try_link "$LINENO"; then : | |
27660 | gcc_cv_math_func_ccoshf128=yes | |
27661 | else | |
27662 | gcc_cv_math_func_ccoshf128=no | |
27663 | fi | |
27664 | rm -f core conftest.err conftest.$ac_objext \ | |
27665 | conftest$ac_exeext conftest.$ac_ext | |
27666 | fi | |
27667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf128" >&5 | |
27668 | $as_echo "$gcc_cv_math_func_ccoshf128" >&6; } | |
27669 | if test $gcc_cv_math_func_ccoshf128 = yes; then | |
27670 | ||
27671 | cat >>confdefs.h <<_ACEOF | |
27672 | #define HAVE_CCOSHF128 1 | |
27673 | _ACEOF | |
27674 | ||
27675 | fi | |
27676 | ||
27677 | ||
27678 | ||
27679 | ||
27680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf128" >&5 | |
27681 | $as_echo_n "checking for expf128... " >&6; } | |
27682 | if ${gcc_cv_math_func_expf128+:} false; then : | |
27683 | $as_echo_n "(cached) " >&6 | |
27684 | else | |
27685 | if test x$gcc_no_link = xyes; then | |
27686 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27687 | fi | |
27688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27689 | /* end confdefs.h. */ | |
27690 | ||
27691 | #ifdef HAVE_COMPLEX_H | |
27692 | #include <complex.h> | |
27693 | #endif | |
27694 | #ifdef HAVE_MATH_H | |
27695 | #include <math.h> | |
27696 | #endif | |
27697 | ||
27698 | int (*ptr)() = (int (*)())expf128; | |
27699 | ||
27700 | int | |
27701 | main () | |
27702 | { | |
27703 | return 0; | |
27704 | } | |
27705 | ||
27706 | _ACEOF | |
27707 | if ac_fn_c_try_link "$LINENO"; then : | |
27708 | gcc_cv_math_func_expf128=yes | |
27709 | else | |
27710 | gcc_cv_math_func_expf128=no | |
27711 | fi | |
27712 | rm -f core conftest.err conftest.$ac_objext \ | |
27713 | conftest$ac_exeext conftest.$ac_ext | |
27714 | fi | |
27715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf128" >&5 | |
27716 | $as_echo "$gcc_cv_math_func_expf128" >&6; } | |
27717 | if test $gcc_cv_math_func_expf128 = yes; then | |
27718 | ||
27719 | cat >>confdefs.h <<_ACEOF | |
27720 | #define HAVE_EXPF128 1 | |
27721 | _ACEOF | |
27722 | ||
27723 | fi | |
27724 | ||
27725 | ||
27726 | ||
27727 | ||
27728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf128" >&5 | |
27729 | $as_echo_n "checking for cexpf128... " >&6; } | |
27730 | if ${gcc_cv_math_func_cexpf128+:} false; then : | |
27731 | $as_echo_n "(cached) " >&6 | |
27732 | else | |
27733 | if test x$gcc_no_link = xyes; then | |
27734 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27735 | fi | |
27736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27737 | /* end confdefs.h. */ | |
27738 | ||
27739 | #ifdef HAVE_COMPLEX_H | |
27740 | #include <complex.h> | |
27741 | #endif | |
27742 | #ifdef HAVE_MATH_H | |
27743 | #include <math.h> | |
27744 | #endif | |
27745 | ||
27746 | int (*ptr)() = (int (*)())cexpf128; | |
27747 | ||
27748 | int | |
27749 | main () | |
27750 | { | |
27751 | return 0; | |
27752 | } | |
27753 | ||
27754 | _ACEOF | |
27755 | if ac_fn_c_try_link "$LINENO"; then : | |
27756 | gcc_cv_math_func_cexpf128=yes | |
27757 | else | |
27758 | gcc_cv_math_func_cexpf128=no | |
27759 | fi | |
27760 | rm -f core conftest.err conftest.$ac_objext \ | |
27761 | conftest$ac_exeext conftest.$ac_ext | |
27762 | fi | |
27763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf128" >&5 | |
27764 | $as_echo "$gcc_cv_math_func_cexpf128" >&6; } | |
27765 | if test $gcc_cv_math_func_cexpf128 = yes; then | |
27766 | ||
27767 | cat >>confdefs.h <<_ACEOF | |
27768 | #define HAVE_CEXPF128 1 | |
27769 | _ACEOF | |
27770 | ||
27771 | fi | |
27772 | ||
27773 | ||
27774 | ||
27775 | ||
27776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf128" >&5 | |
27777 | $as_echo_n "checking for fabsf128... " >&6; } | |
27778 | if ${gcc_cv_math_func_fabsf128+:} false; then : | |
27779 | $as_echo_n "(cached) " >&6 | |
27780 | else | |
27781 | if test x$gcc_no_link = xyes; then | |
27782 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27783 | fi | |
27784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27785 | /* end confdefs.h. */ | |
27786 | ||
27787 | #ifdef HAVE_COMPLEX_H | |
27788 | #include <complex.h> | |
27789 | #endif | |
27790 | #ifdef HAVE_MATH_H | |
27791 | #include <math.h> | |
27792 | #endif | |
27793 | ||
27794 | int (*ptr)() = (int (*)())fabsf128; | |
27795 | ||
27796 | int | |
27797 | main () | |
27798 | { | |
27799 | return 0; | |
27800 | } | |
27801 | ||
27802 | _ACEOF | |
27803 | if ac_fn_c_try_link "$LINENO"; then : | |
27804 | gcc_cv_math_func_fabsf128=yes | |
27805 | else | |
27806 | gcc_cv_math_func_fabsf128=no | |
27807 | fi | |
27808 | rm -f core conftest.err conftest.$ac_objext \ | |
27809 | conftest$ac_exeext conftest.$ac_ext | |
27810 | fi | |
27811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf128" >&5 | |
27812 | $as_echo "$gcc_cv_math_func_fabsf128" >&6; } | |
27813 | if test $gcc_cv_math_func_fabsf128 = yes; then | |
27814 | ||
27815 | cat >>confdefs.h <<_ACEOF | |
27816 | #define HAVE_FABSF128 1 | |
27817 | _ACEOF | |
27818 | ||
27819 | fi | |
27820 | ||
27821 | ||
27822 | ||
27823 | ||
27824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf128" >&5 | |
27825 | $as_echo_n "checking for cabsf128... " >&6; } | |
27826 | if ${gcc_cv_math_func_cabsf128+:} false; then : | |
27827 | $as_echo_n "(cached) " >&6 | |
27828 | else | |
27829 | if test x$gcc_no_link = xyes; then | |
27830 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27831 | fi | |
27832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27833 | /* end confdefs.h. */ | |
27834 | ||
27835 | #ifdef HAVE_COMPLEX_H | |
27836 | #include <complex.h> | |
27837 | #endif | |
27838 | #ifdef HAVE_MATH_H | |
27839 | #include <math.h> | |
27840 | #endif | |
27841 | ||
27842 | int (*ptr)() = (int (*)())cabsf128; | |
27843 | ||
27844 | int | |
27845 | main () | |
27846 | { | |
27847 | return 0; | |
27848 | } | |
27849 | ||
27850 | _ACEOF | |
27851 | if ac_fn_c_try_link "$LINENO"; then : | |
27852 | gcc_cv_math_func_cabsf128=yes | |
27853 | else | |
27854 | gcc_cv_math_func_cabsf128=no | |
27855 | fi | |
27856 | rm -f core conftest.err conftest.$ac_objext \ | |
27857 | conftest$ac_exeext conftest.$ac_ext | |
27858 | fi | |
27859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf128" >&5 | |
27860 | $as_echo "$gcc_cv_math_func_cabsf128" >&6; } | |
27861 | if test $gcc_cv_math_func_cabsf128 = yes; then | |
27862 | ||
27863 | cat >>confdefs.h <<_ACEOF | |
27864 | #define HAVE_CABSF128 1 | |
27865 | _ACEOF | |
27866 | ||
27867 | fi | |
27868 | ||
27869 | ||
27870 | ||
27871 | ||
27872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf128" >&5 | |
27873 | $as_echo_n "checking for floorf128... " >&6; } | |
27874 | if ${gcc_cv_math_func_floorf128+:} false; then : | |
27875 | $as_echo_n "(cached) " >&6 | |
27876 | else | |
27877 | if test x$gcc_no_link = xyes; then | |
27878 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27879 | fi | |
27880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27881 | /* end confdefs.h. */ | |
27882 | ||
27883 | #ifdef HAVE_COMPLEX_H | |
27884 | #include <complex.h> | |
27885 | #endif | |
27886 | #ifdef HAVE_MATH_H | |
27887 | #include <math.h> | |
27888 | #endif | |
27889 | ||
27890 | int (*ptr)() = (int (*)())floorf128; | |
27891 | ||
27892 | int | |
27893 | main () | |
27894 | { | |
27895 | return 0; | |
27896 | } | |
27897 | ||
27898 | _ACEOF | |
27899 | if ac_fn_c_try_link "$LINENO"; then : | |
27900 | gcc_cv_math_func_floorf128=yes | |
27901 | else | |
27902 | gcc_cv_math_func_floorf128=no | |
27903 | fi | |
27904 | rm -f core conftest.err conftest.$ac_objext \ | |
27905 | conftest$ac_exeext conftest.$ac_ext | |
27906 | fi | |
27907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf128" >&5 | |
27908 | $as_echo "$gcc_cv_math_func_floorf128" >&6; } | |
27909 | if test $gcc_cv_math_func_floorf128 = yes; then | |
27910 | ||
27911 | cat >>confdefs.h <<_ACEOF | |
27912 | #define HAVE_FLOORF128 1 | |
27913 | _ACEOF | |
27914 | ||
27915 | fi | |
27916 | ||
27917 | ||
27918 | ||
27919 | ||
27920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf128" >&5 | |
27921 | $as_echo_n "checking for fmaf128... " >&6; } | |
27922 | if ${gcc_cv_math_func_fmaf128+:} false; then : | |
27923 | $as_echo_n "(cached) " >&6 | |
27924 | else | |
27925 | if test x$gcc_no_link = xyes; then | |
27926 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27927 | fi | |
27928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27929 | /* end confdefs.h. */ | |
27930 | ||
27931 | #ifdef HAVE_COMPLEX_H | |
27932 | #include <complex.h> | |
27933 | #endif | |
27934 | #ifdef HAVE_MATH_H | |
27935 | #include <math.h> | |
27936 | #endif | |
27937 | ||
27938 | int (*ptr)() = (int (*)())fmaf128; | |
27939 | ||
27940 | int | |
27941 | main () | |
27942 | { | |
27943 | return 0; | |
27944 | } | |
27945 | ||
27946 | _ACEOF | |
27947 | if ac_fn_c_try_link "$LINENO"; then : | |
27948 | gcc_cv_math_func_fmaf128=yes | |
27949 | else | |
27950 | gcc_cv_math_func_fmaf128=no | |
27951 | fi | |
27952 | rm -f core conftest.err conftest.$ac_objext \ | |
27953 | conftest$ac_exeext conftest.$ac_ext | |
27954 | fi | |
27955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf128" >&5 | |
27956 | $as_echo "$gcc_cv_math_func_fmaf128" >&6; } | |
27957 | if test $gcc_cv_math_func_fmaf128 = yes; then | |
27958 | ||
27959 | cat >>confdefs.h <<_ACEOF | |
27960 | #define HAVE_FMAF128 1 | |
27961 | _ACEOF | |
27962 | ||
27963 | fi | |
27964 | ||
27965 | ||
27966 | ||
27967 | ||
27968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf128" >&5 | |
27969 | $as_echo_n "checking for fmodf128... " >&6; } | |
27970 | if ${gcc_cv_math_func_fmodf128+:} false; then : | |
27971 | $as_echo_n "(cached) " >&6 | |
27972 | else | |
27973 | if test x$gcc_no_link = xyes; then | |
27974 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27975 | fi | |
27976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27977 | /* end confdefs.h. */ | |
27978 | ||
27979 | #ifdef HAVE_COMPLEX_H | |
27980 | #include <complex.h> | |
27981 | #endif | |
27982 | #ifdef HAVE_MATH_H | |
27983 | #include <math.h> | |
27984 | #endif | |
27985 | ||
27986 | int (*ptr)() = (int (*)())fmodf128; | |
27987 | ||
27988 | int | |
27989 | main () | |
27990 | { | |
27991 | return 0; | |
27992 | } | |
27993 | ||
27994 | _ACEOF | |
27995 | if ac_fn_c_try_link "$LINENO"; then : | |
27996 | gcc_cv_math_func_fmodf128=yes | |
27997 | else | |
27998 | gcc_cv_math_func_fmodf128=no | |
27999 | fi | |
28000 | rm -f core conftest.err conftest.$ac_objext \ | |
28001 | conftest$ac_exeext conftest.$ac_ext | |
28002 | fi | |
28003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf128" >&5 | |
28004 | $as_echo "$gcc_cv_math_func_fmodf128" >&6; } | |
28005 | if test $gcc_cv_math_func_fmodf128 = yes; then | |
28006 | ||
28007 | cat >>confdefs.h <<_ACEOF | |
28008 | #define HAVE_FMODF128 1 | |
28009 | _ACEOF | |
28010 | ||
28011 | fi | |
28012 | ||
28013 | ||
28014 | ||
28015 | ||
28016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf128" >&5 | |
28017 | $as_echo_n "checking for frexpf128... " >&6; } | |
28018 | if ${gcc_cv_math_func_frexpf128+:} false; then : | |
28019 | $as_echo_n "(cached) " >&6 | |
28020 | else | |
28021 | if test x$gcc_no_link = xyes; then | |
28022 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28023 | fi | |
28024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28025 | /* end confdefs.h. */ | |
28026 | ||
28027 | #ifdef HAVE_COMPLEX_H | |
28028 | #include <complex.h> | |
28029 | #endif | |
28030 | #ifdef HAVE_MATH_H | |
28031 | #include <math.h> | |
28032 | #endif | |
28033 | ||
28034 | int (*ptr)() = (int (*)())frexpf128; | |
28035 | ||
28036 | int | |
28037 | main () | |
28038 | { | |
28039 | return 0; | |
28040 | } | |
28041 | ||
28042 | _ACEOF | |
28043 | if ac_fn_c_try_link "$LINENO"; then : | |
28044 | gcc_cv_math_func_frexpf128=yes | |
28045 | else | |
28046 | gcc_cv_math_func_frexpf128=no | |
28047 | fi | |
28048 | rm -f core conftest.err conftest.$ac_objext \ | |
28049 | conftest$ac_exeext conftest.$ac_ext | |
28050 | fi | |
28051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf128" >&5 | |
28052 | $as_echo "$gcc_cv_math_func_frexpf128" >&6; } | |
28053 | if test $gcc_cv_math_func_frexpf128 = yes; then | |
28054 | ||
28055 | cat >>confdefs.h <<_ACEOF | |
28056 | #define HAVE_FREXPF128 1 | |
28057 | _ACEOF | |
28058 | ||
28059 | fi | |
28060 | ||
28061 | ||
28062 | ||
28063 | ||
28064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf128" >&5 | |
28065 | $as_echo_n "checking for hypotf128... " >&6; } | |
28066 | if ${gcc_cv_math_func_hypotf128+:} false; then : | |
28067 | $as_echo_n "(cached) " >&6 | |
28068 | else | |
28069 | if test x$gcc_no_link = xyes; then | |
28070 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28071 | fi | |
28072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28073 | /* end confdefs.h. */ | |
28074 | ||
28075 | #ifdef HAVE_COMPLEX_H | |
28076 | #include <complex.h> | |
28077 | #endif | |
28078 | #ifdef HAVE_MATH_H | |
28079 | #include <math.h> | |
28080 | #endif | |
28081 | ||
28082 | int (*ptr)() = (int (*)())hypotf128; | |
28083 | ||
28084 | int | |
28085 | main () | |
28086 | { | |
28087 | return 0; | |
28088 | } | |
28089 | ||
28090 | _ACEOF | |
28091 | if ac_fn_c_try_link "$LINENO"; then : | |
28092 | gcc_cv_math_func_hypotf128=yes | |
28093 | else | |
28094 | gcc_cv_math_func_hypotf128=no | |
28095 | fi | |
28096 | rm -f core conftest.err conftest.$ac_objext \ | |
28097 | conftest$ac_exeext conftest.$ac_ext | |
28098 | fi | |
28099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf128" >&5 | |
28100 | $as_echo "$gcc_cv_math_func_hypotf128" >&6; } | |
28101 | if test $gcc_cv_math_func_hypotf128 = yes; then | |
28102 | ||
28103 | cat >>confdefs.h <<_ACEOF | |
28104 | #define HAVE_HYPOTF128 1 | |
28105 | _ACEOF | |
28106 | ||
28107 | fi | |
28108 | ||
28109 | ||
28110 | ||
28111 | ||
28112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf128" >&5 | |
28113 | $as_echo_n "checking for ldexpf128... " >&6; } | |
28114 | if ${gcc_cv_math_func_ldexpf128+:} false; then : | |
28115 | $as_echo_n "(cached) " >&6 | |
28116 | else | |
28117 | if test x$gcc_no_link = xyes; then | |
28118 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28119 | fi | |
28120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28121 | /* end confdefs.h. */ | |
28122 | ||
28123 | #ifdef HAVE_COMPLEX_H | |
28124 | #include <complex.h> | |
28125 | #endif | |
28126 | #ifdef HAVE_MATH_H | |
28127 | #include <math.h> | |
28128 | #endif | |
28129 | ||
28130 | int (*ptr)() = (int (*)())ldexpf128; | |
28131 | ||
28132 | int | |
28133 | main () | |
28134 | { | |
28135 | return 0; | |
28136 | } | |
28137 | ||
28138 | _ACEOF | |
28139 | if ac_fn_c_try_link "$LINENO"; then : | |
28140 | gcc_cv_math_func_ldexpf128=yes | |
28141 | else | |
28142 | gcc_cv_math_func_ldexpf128=no | |
28143 | fi | |
28144 | rm -f core conftest.err conftest.$ac_objext \ | |
28145 | conftest$ac_exeext conftest.$ac_ext | |
28146 | fi | |
28147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf128" >&5 | |
28148 | $as_echo "$gcc_cv_math_func_ldexpf128" >&6; } | |
28149 | if test $gcc_cv_math_func_ldexpf128 = yes; then | |
28150 | ||
28151 | cat >>confdefs.h <<_ACEOF | |
28152 | #define HAVE_LDEXPF128 1 | |
28153 | _ACEOF | |
28154 | ||
28155 | fi | |
28156 | ||
28157 | ||
28158 | ||
28159 | ||
28160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf128" >&5 | |
28161 | $as_echo_n "checking for logf128... " >&6; } | |
28162 | if ${gcc_cv_math_func_logf128+:} false; then : | |
28163 | $as_echo_n "(cached) " >&6 | |
28164 | else | |
28165 | if test x$gcc_no_link = xyes; then | |
28166 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28167 | fi | |
28168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28169 | /* end confdefs.h. */ | |
28170 | ||
28171 | #ifdef HAVE_COMPLEX_H | |
28172 | #include <complex.h> | |
28173 | #endif | |
28174 | #ifdef HAVE_MATH_H | |
28175 | #include <math.h> | |
28176 | #endif | |
28177 | ||
28178 | int (*ptr)() = (int (*)())logf128; | |
28179 | ||
28180 | int | |
28181 | main () | |
28182 | { | |
28183 | return 0; | |
28184 | } | |
28185 | ||
28186 | _ACEOF | |
28187 | if ac_fn_c_try_link "$LINENO"; then : | |
28188 | gcc_cv_math_func_logf128=yes | |
28189 | else | |
28190 | gcc_cv_math_func_logf128=no | |
28191 | fi | |
28192 | rm -f core conftest.err conftest.$ac_objext \ | |
28193 | conftest$ac_exeext conftest.$ac_ext | |
28194 | fi | |
28195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf128" >&5 | |
28196 | $as_echo "$gcc_cv_math_func_logf128" >&6; } | |
28197 | if test $gcc_cv_math_func_logf128 = yes; then | |
28198 | ||
28199 | cat >>confdefs.h <<_ACEOF | |
28200 | #define HAVE_LOGF128 1 | |
28201 | _ACEOF | |
28202 | ||
28203 | fi | |
28204 | ||
28205 | ||
28206 | ||
28207 | ||
28208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf128" >&5 | |
28209 | $as_echo_n "checking for clogf128... " >&6; } | |
28210 | if ${gcc_cv_math_func_clogf128+:} false; then : | |
28211 | $as_echo_n "(cached) " >&6 | |
28212 | else | |
28213 | if test x$gcc_no_link = xyes; then | |
28214 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28215 | fi | |
28216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28217 | /* end confdefs.h. */ | |
28218 | ||
28219 | #ifdef HAVE_COMPLEX_H | |
28220 | #include <complex.h> | |
28221 | #endif | |
28222 | #ifdef HAVE_MATH_H | |
28223 | #include <math.h> | |
28224 | #endif | |
28225 | ||
28226 | int (*ptr)() = (int (*)())clogf128; | |
28227 | ||
28228 | int | |
28229 | main () | |
28230 | { | |
28231 | return 0; | |
28232 | } | |
28233 | ||
28234 | _ACEOF | |
28235 | if ac_fn_c_try_link "$LINENO"; then : | |
28236 | gcc_cv_math_func_clogf128=yes | |
28237 | else | |
28238 | gcc_cv_math_func_clogf128=no | |
28239 | fi | |
28240 | rm -f core conftest.err conftest.$ac_objext \ | |
28241 | conftest$ac_exeext conftest.$ac_ext | |
28242 | fi | |
28243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf128" >&5 | |
28244 | $as_echo "$gcc_cv_math_func_clogf128" >&6; } | |
28245 | if test $gcc_cv_math_func_clogf128 = yes; then | |
28246 | ||
28247 | cat >>confdefs.h <<_ACEOF | |
28248 | #define HAVE_CLOGF128 1 | |
28249 | _ACEOF | |
28250 | ||
28251 | fi | |
28252 | ||
28253 | ||
28254 | ||
28255 | ||
28256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f128" >&5 | |
28257 | $as_echo_n "checking for log10f128... " >&6; } | |
28258 | if ${gcc_cv_math_func_log10f128+:} false; then : | |
28259 | $as_echo_n "(cached) " >&6 | |
28260 | else | |
28261 | if test x$gcc_no_link = xyes; then | |
28262 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28263 | fi | |
28264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28265 | /* end confdefs.h. */ | |
28266 | ||
28267 | #ifdef HAVE_COMPLEX_H | |
28268 | #include <complex.h> | |
28269 | #endif | |
28270 | #ifdef HAVE_MATH_H | |
28271 | #include <math.h> | |
28272 | #endif | |
28273 | ||
28274 | int (*ptr)() = (int (*)())log10f128; | |
28275 | ||
28276 | int | |
28277 | main () | |
28278 | { | |
28279 | return 0; | |
28280 | } | |
28281 | ||
28282 | _ACEOF | |
28283 | if ac_fn_c_try_link "$LINENO"; then : | |
28284 | gcc_cv_math_func_log10f128=yes | |
28285 | else | |
28286 | gcc_cv_math_func_log10f128=no | |
28287 | fi | |
28288 | rm -f core conftest.err conftest.$ac_objext \ | |
28289 | conftest$ac_exeext conftest.$ac_ext | |
28290 | fi | |
28291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f128" >&5 | |
28292 | $as_echo "$gcc_cv_math_func_log10f128" >&6; } | |
28293 | if test $gcc_cv_math_func_log10f128 = yes; then | |
28294 | ||
28295 | cat >>confdefs.h <<_ACEOF | |
28296 | #define HAVE_LOG10F128 1 | |
28297 | _ACEOF | |
28298 | ||
28299 | fi | |
28300 | ||
28301 | ||
28302 | ||
28303 | ||
28304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f128" >&5 | |
28305 | $as_echo_n "checking for clog10f128... " >&6; } | |
28306 | if ${gcc_cv_math_func_clog10f128+:} false; then : | |
28307 | $as_echo_n "(cached) " >&6 | |
28308 | else | |
28309 | if test x$gcc_no_link = xyes; then | |
28310 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28311 | fi | |
28312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28313 | /* end confdefs.h. */ | |
28314 | ||
28315 | #ifdef HAVE_COMPLEX_H | |
28316 | #include <complex.h> | |
28317 | #endif | |
28318 | #ifdef HAVE_MATH_H | |
28319 | #include <math.h> | |
28320 | #endif | |
28321 | ||
28322 | int (*ptr)() = (int (*)())clog10f128; | |
28323 | ||
28324 | int | |
28325 | main () | |
28326 | { | |
28327 | return 0; | |
28328 | } | |
28329 | ||
28330 | _ACEOF | |
28331 | if ac_fn_c_try_link "$LINENO"; then : | |
28332 | gcc_cv_math_func_clog10f128=yes | |
28333 | else | |
28334 | gcc_cv_math_func_clog10f128=no | |
28335 | fi | |
28336 | rm -f core conftest.err conftest.$ac_objext \ | |
28337 | conftest$ac_exeext conftest.$ac_ext | |
28338 | fi | |
28339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f128" >&5 | |
28340 | $as_echo "$gcc_cv_math_func_clog10f128" >&6; } | |
28341 | if test $gcc_cv_math_func_clog10f128 = yes; then | |
28342 | ||
28343 | cat >>confdefs.h <<_ACEOF | |
28344 | #define HAVE_CLOG10F128 1 | |
28345 | _ACEOF | |
28346 | ||
28347 | fi | |
28348 | ||
28349 | ||
28350 | ||
28351 | ||
28352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf128" >&5 | |
28353 | $as_echo_n "checking for nextafterf128... " >&6; } | |
28354 | if ${gcc_cv_math_func_nextafterf128+:} false; then : | |
28355 | $as_echo_n "(cached) " >&6 | |
28356 | else | |
28357 | if test x$gcc_no_link = xyes; then | |
28358 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28359 | fi | |
28360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28361 | /* end confdefs.h. */ | |
28362 | ||
28363 | #ifdef HAVE_COMPLEX_H | |
28364 | #include <complex.h> | |
28365 | #endif | |
28366 | #ifdef HAVE_MATH_H | |
28367 | #include <math.h> | |
28368 | #endif | |
28369 | ||
28370 | int (*ptr)() = (int (*)())nextafterf128; | |
28371 | ||
28372 | int | |
28373 | main () | |
28374 | { | |
28375 | return 0; | |
28376 | } | |
28377 | ||
28378 | _ACEOF | |
28379 | if ac_fn_c_try_link "$LINENO"; then : | |
28380 | gcc_cv_math_func_nextafterf128=yes | |
28381 | else | |
28382 | gcc_cv_math_func_nextafterf128=no | |
28383 | fi | |
28384 | rm -f core conftest.err conftest.$ac_objext \ | |
28385 | conftest$ac_exeext conftest.$ac_ext | |
28386 | fi | |
28387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf128" >&5 | |
28388 | $as_echo "$gcc_cv_math_func_nextafterf128" >&6; } | |
28389 | if test $gcc_cv_math_func_nextafterf128 = yes; then | |
28390 | ||
28391 | cat >>confdefs.h <<_ACEOF | |
28392 | #define HAVE_NEXTAFTERF128 1 | |
28393 | _ACEOF | |
28394 | ||
28395 | fi | |
28396 | ||
28397 | ||
28398 | ||
28399 | ||
28400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf128" >&5 | |
28401 | $as_echo_n "checking for powf128... " >&6; } | |
28402 | if ${gcc_cv_math_func_powf128+:} false; then : | |
28403 | $as_echo_n "(cached) " >&6 | |
28404 | else | |
28405 | if test x$gcc_no_link = xyes; then | |
28406 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28407 | fi | |
28408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28409 | /* end confdefs.h. */ | |
28410 | ||
28411 | #ifdef HAVE_COMPLEX_H | |
28412 | #include <complex.h> | |
28413 | #endif | |
28414 | #ifdef HAVE_MATH_H | |
28415 | #include <math.h> | |
28416 | #endif | |
28417 | ||
28418 | int (*ptr)() = (int (*)())powf128; | |
28419 | ||
28420 | int | |
28421 | main () | |
28422 | { | |
28423 | return 0; | |
28424 | } | |
28425 | ||
28426 | _ACEOF | |
28427 | if ac_fn_c_try_link "$LINENO"; then : | |
28428 | gcc_cv_math_func_powf128=yes | |
28429 | else | |
28430 | gcc_cv_math_func_powf128=no | |
28431 | fi | |
28432 | rm -f core conftest.err conftest.$ac_objext \ | |
28433 | conftest$ac_exeext conftest.$ac_ext | |
28434 | fi | |
28435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf128" >&5 | |
28436 | $as_echo "$gcc_cv_math_func_powf128" >&6; } | |
28437 | if test $gcc_cv_math_func_powf128 = yes; then | |
28438 | ||
28439 | cat >>confdefs.h <<_ACEOF | |
28440 | #define HAVE_POWF128 1 | |
28441 | _ACEOF | |
28442 | ||
28443 | fi | |
28444 | ||
28445 | ||
28446 | ||
28447 | ||
28448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf128" >&5 | |
28449 | $as_echo_n "checking for cpowf128... " >&6; } | |
28450 | if ${gcc_cv_math_func_cpowf128+:} false; then : | |
28451 | $as_echo_n "(cached) " >&6 | |
28452 | else | |
28453 | if test x$gcc_no_link = xyes; then | |
28454 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28455 | fi | |
28456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28457 | /* end confdefs.h. */ | |
28458 | ||
28459 | #ifdef HAVE_COMPLEX_H | |
28460 | #include <complex.h> | |
28461 | #endif | |
28462 | #ifdef HAVE_MATH_H | |
28463 | #include <math.h> | |
28464 | #endif | |
28465 | ||
28466 | int (*ptr)() = (int (*)())cpowf128; | |
28467 | ||
28468 | int | |
28469 | main () | |
28470 | { | |
28471 | return 0; | |
28472 | } | |
28473 | ||
28474 | _ACEOF | |
28475 | if ac_fn_c_try_link "$LINENO"; then : | |
28476 | gcc_cv_math_func_cpowf128=yes | |
28477 | else | |
28478 | gcc_cv_math_func_cpowf128=no | |
28479 | fi | |
28480 | rm -f core conftest.err conftest.$ac_objext \ | |
28481 | conftest$ac_exeext conftest.$ac_ext | |
28482 | fi | |
28483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf128" >&5 | |
28484 | $as_echo "$gcc_cv_math_func_cpowf128" >&6; } | |
28485 | if test $gcc_cv_math_func_cpowf128 = yes; then | |
28486 | ||
28487 | cat >>confdefs.h <<_ACEOF | |
28488 | #define HAVE_CPOWF128 1 | |
28489 | _ACEOF | |
28490 | ||
28491 | fi | |
28492 | ||
28493 | ||
28494 | ||
28495 | ||
28496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf128" >&5 | |
28497 | $as_echo_n "checking for roundf128... " >&6; } | |
28498 | if ${gcc_cv_math_func_roundf128+:} false; then : | |
28499 | $as_echo_n "(cached) " >&6 | |
28500 | else | |
28501 | if test x$gcc_no_link = xyes; then | |
28502 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28503 | fi | |
28504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28505 | /* end confdefs.h. */ | |
28506 | ||
28507 | #ifdef HAVE_COMPLEX_H | |
28508 | #include <complex.h> | |
28509 | #endif | |
28510 | #ifdef HAVE_MATH_H | |
28511 | #include <math.h> | |
28512 | #endif | |
28513 | ||
28514 | int (*ptr)() = (int (*)())roundf128; | |
28515 | ||
28516 | int | |
28517 | main () | |
28518 | { | |
28519 | return 0; | |
28520 | } | |
28521 | ||
28522 | _ACEOF | |
28523 | if ac_fn_c_try_link "$LINENO"; then : | |
28524 | gcc_cv_math_func_roundf128=yes | |
28525 | else | |
28526 | gcc_cv_math_func_roundf128=no | |
28527 | fi | |
28528 | rm -f core conftest.err conftest.$ac_objext \ | |
28529 | conftest$ac_exeext conftest.$ac_ext | |
28530 | fi | |
28531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf128" >&5 | |
28532 | $as_echo "$gcc_cv_math_func_roundf128" >&6; } | |
28533 | if test $gcc_cv_math_func_roundf128 = yes; then | |
28534 | ||
28535 | cat >>confdefs.h <<_ACEOF | |
28536 | #define HAVE_ROUNDF128 1 | |
28537 | _ACEOF | |
28538 | ||
28539 | fi | |
28540 | ||
28541 | ||
28542 | ||
28543 | ||
28544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf128" >&5 | |
28545 | $as_echo_n "checking for lroundf128... " >&6; } | |
28546 | if ${gcc_cv_math_func_lroundf128+:} false; then : | |
28547 | $as_echo_n "(cached) " >&6 | |
28548 | else | |
28549 | if test x$gcc_no_link = xyes; then | |
28550 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28551 | fi | |
28552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28553 | /* end confdefs.h. */ | |
28554 | ||
28555 | #ifdef HAVE_COMPLEX_H | |
28556 | #include <complex.h> | |
28557 | #endif | |
28558 | #ifdef HAVE_MATH_H | |
28559 | #include <math.h> | |
28560 | #endif | |
28561 | ||
28562 | int (*ptr)() = (int (*)())lroundf128; | |
28563 | ||
28564 | int | |
28565 | main () | |
28566 | { | |
28567 | return 0; | |
28568 | } | |
28569 | ||
28570 | _ACEOF | |
28571 | if ac_fn_c_try_link "$LINENO"; then : | |
28572 | gcc_cv_math_func_lroundf128=yes | |
28573 | else | |
28574 | gcc_cv_math_func_lroundf128=no | |
28575 | fi | |
28576 | rm -f core conftest.err conftest.$ac_objext \ | |
28577 | conftest$ac_exeext conftest.$ac_ext | |
28578 | fi | |
28579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf128" >&5 | |
28580 | $as_echo "$gcc_cv_math_func_lroundf128" >&6; } | |
28581 | if test $gcc_cv_math_func_lroundf128 = yes; then | |
28582 | ||
28583 | cat >>confdefs.h <<_ACEOF | |
28584 | #define HAVE_LROUNDF128 1 | |
28585 | _ACEOF | |
28586 | ||
28587 | fi | |
28588 | ||
28589 | ||
28590 | ||
28591 | ||
28592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf128" >&5 | |
28593 | $as_echo_n "checking for llroundf128... " >&6; } | |
28594 | if ${gcc_cv_math_func_llroundf128+:} false; then : | |
28595 | $as_echo_n "(cached) " >&6 | |
28596 | else | |
28597 | if test x$gcc_no_link = xyes; then | |
28598 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28599 | fi | |
28600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28601 | /* end confdefs.h. */ | |
28602 | ||
28603 | #ifdef HAVE_COMPLEX_H | |
28604 | #include <complex.h> | |
28605 | #endif | |
28606 | #ifdef HAVE_MATH_H | |
28607 | #include <math.h> | |
28608 | #endif | |
28609 | ||
28610 | int (*ptr)() = (int (*)())llroundf128; | |
28611 | ||
28612 | int | |
28613 | main () | |
28614 | { | |
28615 | return 0; | |
28616 | } | |
28617 | ||
28618 | _ACEOF | |
28619 | if ac_fn_c_try_link "$LINENO"; then : | |
28620 | gcc_cv_math_func_llroundf128=yes | |
28621 | else | |
28622 | gcc_cv_math_func_llroundf128=no | |
28623 | fi | |
28624 | rm -f core conftest.err conftest.$ac_objext \ | |
28625 | conftest$ac_exeext conftest.$ac_ext | |
28626 | fi | |
28627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf128" >&5 | |
28628 | $as_echo "$gcc_cv_math_func_llroundf128" >&6; } | |
28629 | if test $gcc_cv_math_func_llroundf128 = yes; then | |
28630 | ||
28631 | cat >>confdefs.h <<_ACEOF | |
28632 | #define HAVE_LLROUNDF128 1 | |
28633 | _ACEOF | |
28634 | ||
28635 | fi | |
28636 | ||
28637 | ||
28638 | ||
28639 | ||
28640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf128" >&5 | |
28641 | $as_echo_n "checking for scalbnf128... " >&6; } | |
28642 | if ${gcc_cv_math_func_scalbnf128+:} false; then : | |
28643 | $as_echo_n "(cached) " >&6 | |
28644 | else | |
28645 | if test x$gcc_no_link = xyes; then | |
28646 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28647 | fi | |
28648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28649 | /* end confdefs.h. */ | |
28650 | ||
28651 | #ifdef HAVE_COMPLEX_H | |
28652 | #include <complex.h> | |
28653 | #endif | |
28654 | #ifdef HAVE_MATH_H | |
28655 | #include <math.h> | |
28656 | #endif | |
28657 | ||
28658 | int (*ptr)() = (int (*)())scalbnf128; | |
28659 | ||
28660 | int | |
28661 | main () | |
28662 | { | |
28663 | return 0; | |
28664 | } | |
28665 | ||
28666 | _ACEOF | |
28667 | if ac_fn_c_try_link "$LINENO"; then : | |
28668 | gcc_cv_math_func_scalbnf128=yes | |
28669 | else | |
28670 | gcc_cv_math_func_scalbnf128=no | |
28671 | fi | |
28672 | rm -f core conftest.err conftest.$ac_objext \ | |
28673 | conftest$ac_exeext conftest.$ac_ext | |
28674 | fi | |
28675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf128" >&5 | |
28676 | $as_echo "$gcc_cv_math_func_scalbnf128" >&6; } | |
28677 | if test $gcc_cv_math_func_scalbnf128 = yes; then | |
28678 | ||
28679 | cat >>confdefs.h <<_ACEOF | |
28680 | #define HAVE_SCALBNF128 1 | |
28681 | _ACEOF | |
28682 | ||
28683 | fi | |
28684 | ||
28685 | ||
28686 | ||
28687 | ||
28688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf128" >&5 | |
28689 | $as_echo_n "checking for sinf128... " >&6; } | |
28690 | if ${gcc_cv_math_func_sinf128+:} false; then : | |
28691 | $as_echo_n "(cached) " >&6 | |
28692 | else | |
28693 | if test x$gcc_no_link = xyes; then | |
28694 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28695 | fi | |
28696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28697 | /* end confdefs.h. */ | |
28698 | ||
28699 | #ifdef HAVE_COMPLEX_H | |
28700 | #include <complex.h> | |
28701 | #endif | |
28702 | #ifdef HAVE_MATH_H | |
28703 | #include <math.h> | |
28704 | #endif | |
28705 | ||
28706 | int (*ptr)() = (int (*)())sinf128; | |
28707 | ||
28708 | int | |
28709 | main () | |
28710 | { | |
28711 | return 0; | |
28712 | } | |
28713 | ||
28714 | _ACEOF | |
28715 | if ac_fn_c_try_link "$LINENO"; then : | |
28716 | gcc_cv_math_func_sinf128=yes | |
28717 | else | |
28718 | gcc_cv_math_func_sinf128=no | |
28719 | fi | |
28720 | rm -f core conftest.err conftest.$ac_objext \ | |
28721 | conftest$ac_exeext conftest.$ac_ext | |
28722 | fi | |
28723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf128" >&5 | |
28724 | $as_echo "$gcc_cv_math_func_sinf128" >&6; } | |
28725 | if test $gcc_cv_math_func_sinf128 = yes; then | |
28726 | ||
28727 | cat >>confdefs.h <<_ACEOF | |
28728 | #define HAVE_SINF128 1 | |
28729 | _ACEOF | |
28730 | ||
28731 | fi | |
28732 | ||
28733 | ||
28734 | ||
28735 | ||
28736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf128" >&5 | |
28737 | $as_echo_n "checking for csinf128... " >&6; } | |
28738 | if ${gcc_cv_math_func_csinf128+:} false; then : | |
28739 | $as_echo_n "(cached) " >&6 | |
28740 | else | |
28741 | if test x$gcc_no_link = xyes; then | |
28742 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28743 | fi | |
28744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28745 | /* end confdefs.h. */ | |
28746 | ||
28747 | #ifdef HAVE_COMPLEX_H | |
28748 | #include <complex.h> | |
28749 | #endif | |
28750 | #ifdef HAVE_MATH_H | |
28751 | #include <math.h> | |
28752 | #endif | |
28753 | ||
28754 | int (*ptr)() = (int (*)())csinf128; | |
28755 | ||
28756 | int | |
28757 | main () | |
28758 | { | |
28759 | return 0; | |
28760 | } | |
28761 | ||
28762 | _ACEOF | |
28763 | if ac_fn_c_try_link "$LINENO"; then : | |
28764 | gcc_cv_math_func_csinf128=yes | |
28765 | else | |
28766 | gcc_cv_math_func_csinf128=no | |
28767 | fi | |
28768 | rm -f core conftest.err conftest.$ac_objext \ | |
28769 | conftest$ac_exeext conftest.$ac_ext | |
28770 | fi | |
28771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf128" >&5 | |
28772 | $as_echo "$gcc_cv_math_func_csinf128" >&6; } | |
28773 | if test $gcc_cv_math_func_csinf128 = yes; then | |
28774 | ||
28775 | cat >>confdefs.h <<_ACEOF | |
28776 | #define HAVE_CSINF128 1 | |
28777 | _ACEOF | |
28778 | ||
28779 | fi | |
28780 | ||
28781 | ||
28782 | ||
28783 | ||
28784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf128" >&5 | |
28785 | $as_echo_n "checking for sinhf128... " >&6; } | |
28786 | if ${gcc_cv_math_func_sinhf128+:} false; then : | |
28787 | $as_echo_n "(cached) " >&6 | |
28788 | else | |
28789 | if test x$gcc_no_link = xyes; then | |
28790 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28791 | fi | |
28792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28793 | /* end confdefs.h. */ | |
28794 | ||
28795 | #ifdef HAVE_COMPLEX_H | |
28796 | #include <complex.h> | |
28797 | #endif | |
28798 | #ifdef HAVE_MATH_H | |
28799 | #include <math.h> | |
28800 | #endif | |
28801 | ||
28802 | int (*ptr)() = (int (*)())sinhf128; | |
28803 | ||
28804 | int | |
28805 | main () | |
28806 | { | |
28807 | return 0; | |
28808 | } | |
28809 | ||
28810 | _ACEOF | |
28811 | if ac_fn_c_try_link "$LINENO"; then : | |
28812 | gcc_cv_math_func_sinhf128=yes | |
28813 | else | |
28814 | gcc_cv_math_func_sinhf128=no | |
28815 | fi | |
28816 | rm -f core conftest.err conftest.$ac_objext \ | |
28817 | conftest$ac_exeext conftest.$ac_ext | |
28818 | fi | |
28819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf128" >&5 | |
28820 | $as_echo "$gcc_cv_math_func_sinhf128" >&6; } | |
28821 | if test $gcc_cv_math_func_sinhf128 = yes; then | |
28822 | ||
28823 | cat >>confdefs.h <<_ACEOF | |
28824 | #define HAVE_SINHF128 1 | |
28825 | _ACEOF | |
28826 | ||
28827 | fi | |
28828 | ||
28829 | ||
28830 | ||
28831 | ||
28832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf128" >&5 | |
28833 | $as_echo_n "checking for csinhf128... " >&6; } | |
28834 | if ${gcc_cv_math_func_csinhf128+:} false; then : | |
28835 | $as_echo_n "(cached) " >&6 | |
28836 | else | |
28837 | if test x$gcc_no_link = xyes; then | |
28838 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28839 | fi | |
28840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28841 | /* end confdefs.h. */ | |
28842 | ||
28843 | #ifdef HAVE_COMPLEX_H | |
28844 | #include <complex.h> | |
28845 | #endif | |
28846 | #ifdef HAVE_MATH_H | |
28847 | #include <math.h> | |
28848 | #endif | |
28849 | ||
28850 | int (*ptr)() = (int (*)())csinhf128; | |
28851 | ||
28852 | int | |
28853 | main () | |
28854 | { | |
28855 | return 0; | |
28856 | } | |
28857 | ||
28858 | _ACEOF | |
28859 | if ac_fn_c_try_link "$LINENO"; then : | |
28860 | gcc_cv_math_func_csinhf128=yes | |
28861 | else | |
28862 | gcc_cv_math_func_csinhf128=no | |
28863 | fi | |
28864 | rm -f core conftest.err conftest.$ac_objext \ | |
28865 | conftest$ac_exeext conftest.$ac_ext | |
28866 | fi | |
28867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf128" >&5 | |
28868 | $as_echo "$gcc_cv_math_func_csinhf128" >&6; } | |
28869 | if test $gcc_cv_math_func_csinhf128 = yes; then | |
28870 | ||
28871 | cat >>confdefs.h <<_ACEOF | |
28872 | #define HAVE_CSINHF128 1 | |
28873 | _ACEOF | |
28874 | ||
28875 | fi | |
28876 | ||
28877 | ||
28878 | ||
28879 | ||
28880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf128" >&5 | |
28881 | $as_echo_n "checking for sqrtf128... " >&6; } | |
28882 | if ${gcc_cv_math_func_sqrtf128+:} false; then : | |
28883 | $as_echo_n "(cached) " >&6 | |
28884 | else | |
28885 | if test x$gcc_no_link = xyes; then | |
28886 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28887 | fi | |
28888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28889 | /* end confdefs.h. */ | |
28890 | ||
28891 | #ifdef HAVE_COMPLEX_H | |
28892 | #include <complex.h> | |
28893 | #endif | |
28894 | #ifdef HAVE_MATH_H | |
28895 | #include <math.h> | |
28896 | #endif | |
28897 | ||
28898 | int (*ptr)() = (int (*)())sqrtf128; | |
28899 | ||
28900 | int | |
28901 | main () | |
28902 | { | |
28903 | return 0; | |
28904 | } | |
28905 | ||
28906 | _ACEOF | |
28907 | if ac_fn_c_try_link "$LINENO"; then : | |
28908 | gcc_cv_math_func_sqrtf128=yes | |
28909 | else | |
28910 | gcc_cv_math_func_sqrtf128=no | |
28911 | fi | |
28912 | rm -f core conftest.err conftest.$ac_objext \ | |
28913 | conftest$ac_exeext conftest.$ac_ext | |
28914 | fi | |
28915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf128" >&5 | |
28916 | $as_echo "$gcc_cv_math_func_sqrtf128" >&6; } | |
28917 | if test $gcc_cv_math_func_sqrtf128 = yes; then | |
28918 | ||
28919 | cat >>confdefs.h <<_ACEOF | |
28920 | #define HAVE_SQRTF128 1 | |
28921 | _ACEOF | |
28922 | ||
28923 | fi | |
28924 | ||
28925 | ||
28926 | ||
28927 | ||
28928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf128" >&5 | |
28929 | $as_echo_n "checking for csqrtf128... " >&6; } | |
28930 | if ${gcc_cv_math_func_csqrtf128+:} false; then : | |
28931 | $as_echo_n "(cached) " >&6 | |
28932 | else | |
28933 | if test x$gcc_no_link = xyes; then | |
28934 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28935 | fi | |
28936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28937 | /* end confdefs.h. */ | |
28938 | ||
28939 | #ifdef HAVE_COMPLEX_H | |
28940 | #include <complex.h> | |
28941 | #endif | |
28942 | #ifdef HAVE_MATH_H | |
28943 | #include <math.h> | |
28944 | #endif | |
28945 | ||
28946 | int (*ptr)() = (int (*)())csqrtf128; | |
28947 | ||
28948 | int | |
28949 | main () | |
28950 | { | |
28951 | return 0; | |
28952 | } | |
28953 | ||
28954 | _ACEOF | |
28955 | if ac_fn_c_try_link "$LINENO"; then : | |
28956 | gcc_cv_math_func_csqrtf128=yes | |
28957 | else | |
28958 | gcc_cv_math_func_csqrtf128=no | |
28959 | fi | |
28960 | rm -f core conftest.err conftest.$ac_objext \ | |
28961 | conftest$ac_exeext conftest.$ac_ext | |
28962 | fi | |
28963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf128" >&5 | |
28964 | $as_echo "$gcc_cv_math_func_csqrtf128" >&6; } | |
28965 | if test $gcc_cv_math_func_csqrtf128 = yes; then | |
28966 | ||
28967 | cat >>confdefs.h <<_ACEOF | |
28968 | #define HAVE_CSQRTF128 1 | |
28969 | _ACEOF | |
28970 | ||
28971 | fi | |
28972 | ||
28973 | ||
28974 | ||
28975 | ||
28976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf128" >&5 | |
28977 | $as_echo_n "checking for tanf128... " >&6; } | |
28978 | if ${gcc_cv_math_func_tanf128+:} false; then : | |
28979 | $as_echo_n "(cached) " >&6 | |
28980 | else | |
28981 | if test x$gcc_no_link = xyes; then | |
28982 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28983 | fi | |
28984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28985 | /* end confdefs.h. */ | |
28986 | ||
28987 | #ifdef HAVE_COMPLEX_H | |
28988 | #include <complex.h> | |
28989 | #endif | |
28990 | #ifdef HAVE_MATH_H | |
28991 | #include <math.h> | |
28992 | #endif | |
28993 | ||
28994 | int (*ptr)() = (int (*)())tanf128; | |
28995 | ||
28996 | int | |
28997 | main () | |
28998 | { | |
28999 | return 0; | |
29000 | } | |
29001 | ||
29002 | _ACEOF | |
29003 | if ac_fn_c_try_link "$LINENO"; then : | |
29004 | gcc_cv_math_func_tanf128=yes | |
29005 | else | |
29006 | gcc_cv_math_func_tanf128=no | |
29007 | fi | |
29008 | rm -f core conftest.err conftest.$ac_objext \ | |
29009 | conftest$ac_exeext conftest.$ac_ext | |
29010 | fi | |
29011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf128" >&5 | |
29012 | $as_echo "$gcc_cv_math_func_tanf128" >&6; } | |
29013 | if test $gcc_cv_math_func_tanf128 = yes; then | |
29014 | ||
29015 | cat >>confdefs.h <<_ACEOF | |
29016 | #define HAVE_TANF128 1 | |
29017 | _ACEOF | |
29018 | ||
29019 | fi | |
29020 | ||
29021 | ||
29022 | ||
29023 | ||
29024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf128" >&5 | |
29025 | $as_echo_n "checking for ctanf128... " >&6; } | |
29026 | if ${gcc_cv_math_func_ctanf128+:} false; then : | |
29027 | $as_echo_n "(cached) " >&6 | |
29028 | else | |
29029 | if test x$gcc_no_link = xyes; then | |
29030 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29031 | fi | |
29032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29033 | /* end confdefs.h. */ | |
29034 | ||
29035 | #ifdef HAVE_COMPLEX_H | |
29036 | #include <complex.h> | |
29037 | #endif | |
29038 | #ifdef HAVE_MATH_H | |
29039 | #include <math.h> | |
29040 | #endif | |
29041 | ||
29042 | int (*ptr)() = (int (*)())ctanf128; | |
29043 | ||
29044 | int | |
29045 | main () | |
29046 | { | |
29047 | return 0; | |
29048 | } | |
29049 | ||
29050 | _ACEOF | |
29051 | if ac_fn_c_try_link "$LINENO"; then : | |
29052 | gcc_cv_math_func_ctanf128=yes | |
29053 | else | |
29054 | gcc_cv_math_func_ctanf128=no | |
29055 | fi | |
29056 | rm -f core conftest.err conftest.$ac_objext \ | |
29057 | conftest$ac_exeext conftest.$ac_ext | |
29058 | fi | |
29059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf128" >&5 | |
29060 | $as_echo "$gcc_cv_math_func_ctanf128" >&6; } | |
29061 | if test $gcc_cv_math_func_ctanf128 = yes; then | |
29062 | ||
29063 | cat >>confdefs.h <<_ACEOF | |
29064 | #define HAVE_CTANF128 1 | |
29065 | _ACEOF | |
29066 | ||
29067 | fi | |
29068 | ||
29069 | ||
29070 | ||
29071 | ||
29072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf128" >&5 | |
29073 | $as_echo_n "checking for tanhf128... " >&6; } | |
29074 | if ${gcc_cv_math_func_tanhf128+:} false; then : | |
29075 | $as_echo_n "(cached) " >&6 | |
29076 | else | |
29077 | if test x$gcc_no_link = xyes; then | |
29078 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29079 | fi | |
29080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29081 | /* end confdefs.h. */ | |
29082 | ||
29083 | #ifdef HAVE_COMPLEX_H | |
29084 | #include <complex.h> | |
29085 | #endif | |
29086 | #ifdef HAVE_MATH_H | |
29087 | #include <math.h> | |
29088 | #endif | |
29089 | ||
29090 | int (*ptr)() = (int (*)())tanhf128; | |
29091 | ||
29092 | int | |
29093 | main () | |
29094 | { | |
29095 | return 0; | |
29096 | } | |
29097 | ||
29098 | _ACEOF | |
29099 | if ac_fn_c_try_link "$LINENO"; then : | |
29100 | gcc_cv_math_func_tanhf128=yes | |
29101 | else | |
29102 | gcc_cv_math_func_tanhf128=no | |
29103 | fi | |
29104 | rm -f core conftest.err conftest.$ac_objext \ | |
29105 | conftest$ac_exeext conftest.$ac_ext | |
29106 | fi | |
29107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf128" >&5 | |
29108 | $as_echo "$gcc_cv_math_func_tanhf128" >&6; } | |
29109 | if test $gcc_cv_math_func_tanhf128 = yes; then | |
29110 | ||
29111 | cat >>confdefs.h <<_ACEOF | |
29112 | #define HAVE_TANHF128 1 | |
29113 | _ACEOF | |
29114 | ||
29115 | fi | |
29116 | ||
29117 | ||
29118 | ||
29119 | ||
29120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf128" >&5 | |
29121 | $as_echo_n "checking for ctanhf128... " >&6; } | |
29122 | if ${gcc_cv_math_func_ctanhf128+:} false; then : | |
29123 | $as_echo_n "(cached) " >&6 | |
29124 | else | |
29125 | if test x$gcc_no_link = xyes; then | |
29126 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29127 | fi | |
29128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29129 | /* end confdefs.h. */ | |
29130 | ||
29131 | #ifdef HAVE_COMPLEX_H | |
29132 | #include <complex.h> | |
29133 | #endif | |
29134 | #ifdef HAVE_MATH_H | |
29135 | #include <math.h> | |
29136 | #endif | |
29137 | ||
29138 | int (*ptr)() = (int (*)())ctanhf128; | |
29139 | ||
29140 | int | |
29141 | main () | |
29142 | { | |
29143 | return 0; | |
29144 | } | |
29145 | ||
29146 | _ACEOF | |
29147 | if ac_fn_c_try_link "$LINENO"; then : | |
29148 | gcc_cv_math_func_ctanhf128=yes | |
29149 | else | |
29150 | gcc_cv_math_func_ctanhf128=no | |
29151 | fi | |
29152 | rm -f core conftest.err conftest.$ac_objext \ | |
29153 | conftest$ac_exeext conftest.$ac_ext | |
29154 | fi | |
29155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf128" >&5 | |
29156 | $as_echo "$gcc_cv_math_func_ctanhf128" >&6; } | |
29157 | if test $gcc_cv_math_func_ctanhf128 = yes; then | |
29158 | ||
29159 | cat >>confdefs.h <<_ACEOF | |
29160 | #define HAVE_CTANHF128 1 | |
29161 | _ACEOF | |
29162 | ||
29163 | fi | |
29164 | ||
29165 | ||
29166 | ||
29167 | ||
29168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf128" >&5 | |
29169 | $as_echo_n "checking for truncf128... " >&6; } | |
29170 | if ${gcc_cv_math_func_truncf128+:} false; then : | |
29171 | $as_echo_n "(cached) " >&6 | |
29172 | else | |
29173 | if test x$gcc_no_link = xyes; then | |
29174 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29175 | fi | |
29176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29177 | /* end confdefs.h. */ | |
29178 | ||
29179 | #ifdef HAVE_COMPLEX_H | |
29180 | #include <complex.h> | |
29181 | #endif | |
29182 | #ifdef HAVE_MATH_H | |
29183 | #include <math.h> | |
29184 | #endif | |
29185 | ||
29186 | int (*ptr)() = (int (*)())truncf128; | |
29187 | ||
29188 | int | |
29189 | main () | |
29190 | { | |
29191 | return 0; | |
29192 | } | |
29193 | ||
29194 | _ACEOF | |
29195 | if ac_fn_c_try_link "$LINENO"; then : | |
29196 | gcc_cv_math_func_truncf128=yes | |
29197 | else | |
29198 | gcc_cv_math_func_truncf128=no | |
29199 | fi | |
29200 | rm -f core conftest.err conftest.$ac_objext \ | |
29201 | conftest$ac_exeext conftest.$ac_ext | |
29202 | fi | |
29203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf128" >&5 | |
29204 | $as_echo "$gcc_cv_math_func_truncf128" >&6; } | |
29205 | if test $gcc_cv_math_func_truncf128 = yes; then | |
29206 | ||
29207 | cat >>confdefs.h <<_ACEOF | |
29208 | #define HAVE_TRUNCF128 1 | |
29209 | _ACEOF | |
29210 | ||
29211 | fi | |
29212 | ||
29213 | ||
29214 | ||
29215 | ||
29216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff128" >&5 | |
29217 | $as_echo_n "checking for erff128... " >&6; } | |
29218 | if ${gcc_cv_math_func_erff128+:} false; then : | |
29219 | $as_echo_n "(cached) " >&6 | |
29220 | else | |
29221 | if test x$gcc_no_link = xyes; then | |
29222 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29223 | fi | |
29224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29225 | /* end confdefs.h. */ | |
29226 | ||
29227 | #ifdef HAVE_COMPLEX_H | |
29228 | #include <complex.h> | |
29229 | #endif | |
29230 | #ifdef HAVE_MATH_H | |
29231 | #include <math.h> | |
29232 | #endif | |
29233 | ||
29234 | int (*ptr)() = (int (*)())erff128; | |
29235 | ||
29236 | int | |
29237 | main () | |
29238 | { | |
29239 | return 0; | |
29240 | } | |
29241 | ||
29242 | _ACEOF | |
29243 | if ac_fn_c_try_link "$LINENO"; then : | |
29244 | gcc_cv_math_func_erff128=yes | |
29245 | else | |
29246 | gcc_cv_math_func_erff128=no | |
29247 | fi | |
29248 | rm -f core conftest.err conftest.$ac_objext \ | |
29249 | conftest$ac_exeext conftest.$ac_ext | |
29250 | fi | |
29251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff128" >&5 | |
29252 | $as_echo "$gcc_cv_math_func_erff128" >&6; } | |
29253 | if test $gcc_cv_math_func_erff128 = yes; then | |
29254 | ||
29255 | cat >>confdefs.h <<_ACEOF | |
29256 | #define HAVE_ERFF128 1 | |
29257 | _ACEOF | |
29258 | ||
29259 | fi | |
29260 | ||
29261 | ||
29262 | ||
29263 | ||
29264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf128" >&5 | |
29265 | $as_echo_n "checking for erfcf128... " >&6; } | |
29266 | if ${gcc_cv_math_func_erfcf128+:} false; then : | |
29267 | $as_echo_n "(cached) " >&6 | |
29268 | else | |
29269 | if test x$gcc_no_link = xyes; then | |
29270 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29271 | fi | |
29272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29273 | /* end confdefs.h. */ | |
29274 | ||
29275 | #ifdef HAVE_COMPLEX_H | |
29276 | #include <complex.h> | |
29277 | #endif | |
29278 | #ifdef HAVE_MATH_H | |
29279 | #include <math.h> | |
29280 | #endif | |
29281 | ||
29282 | int (*ptr)() = (int (*)())erfcf128; | |
29283 | ||
29284 | int | |
29285 | main () | |
29286 | { | |
29287 | return 0; | |
29288 | } | |
29289 | ||
29290 | _ACEOF | |
29291 | if ac_fn_c_try_link "$LINENO"; then : | |
29292 | gcc_cv_math_func_erfcf128=yes | |
29293 | else | |
29294 | gcc_cv_math_func_erfcf128=no | |
29295 | fi | |
29296 | rm -f core conftest.err conftest.$ac_objext \ | |
29297 | conftest$ac_exeext conftest.$ac_ext | |
29298 | fi | |
29299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf128" >&5 | |
29300 | $as_echo "$gcc_cv_math_func_erfcf128" >&6; } | |
29301 | if test $gcc_cv_math_func_erfcf128 = yes; then | |
29302 | ||
29303 | cat >>confdefs.h <<_ACEOF | |
29304 | #define HAVE_ERFCF128 1 | |
29305 | _ACEOF | |
29306 | ||
29307 | fi | |
29308 | ||
29309 | ||
29310 | ||
29311 | ||
29312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f128" >&5 | |
29313 | $as_echo_n "checking for j0f128... " >&6; } | |
29314 | if ${gcc_cv_math_func_j0f128+:} false; then : | |
29315 | $as_echo_n "(cached) " >&6 | |
29316 | else | |
29317 | if test x$gcc_no_link = xyes; then | |
29318 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29319 | fi | |
29320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29321 | /* end confdefs.h. */ | |
29322 | ||
29323 | #ifdef HAVE_COMPLEX_H | |
29324 | #include <complex.h> | |
29325 | #endif | |
29326 | #ifdef HAVE_MATH_H | |
29327 | #include <math.h> | |
29328 | #endif | |
29329 | ||
29330 | int (*ptr)() = (int (*)())j0f128; | |
29331 | ||
29332 | int | |
29333 | main () | |
29334 | { | |
29335 | return 0; | |
29336 | } | |
29337 | ||
29338 | _ACEOF | |
29339 | if ac_fn_c_try_link "$LINENO"; then : | |
29340 | gcc_cv_math_func_j0f128=yes | |
29341 | else | |
29342 | gcc_cv_math_func_j0f128=no | |
29343 | fi | |
29344 | rm -f core conftest.err conftest.$ac_objext \ | |
29345 | conftest$ac_exeext conftest.$ac_ext | |
29346 | fi | |
29347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f128" >&5 | |
29348 | $as_echo "$gcc_cv_math_func_j0f128" >&6; } | |
29349 | if test $gcc_cv_math_func_j0f128 = yes; then | |
29350 | ||
29351 | cat >>confdefs.h <<_ACEOF | |
29352 | #define HAVE_J0F128 1 | |
29353 | _ACEOF | |
29354 | ||
29355 | fi | |
29356 | ||
29357 | ||
29358 | ||
29359 | ||
29360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f128" >&5 | |
29361 | $as_echo_n "checking for j1f128... " >&6; } | |
29362 | if ${gcc_cv_math_func_j1f128+:} false; then : | |
29363 | $as_echo_n "(cached) " >&6 | |
29364 | else | |
29365 | if test x$gcc_no_link = xyes; then | |
29366 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29367 | fi | |
29368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29369 | /* end confdefs.h. */ | |
29370 | ||
29371 | #ifdef HAVE_COMPLEX_H | |
29372 | #include <complex.h> | |
29373 | #endif | |
29374 | #ifdef HAVE_MATH_H | |
29375 | #include <math.h> | |
29376 | #endif | |
29377 | ||
29378 | int (*ptr)() = (int (*)())j1f128; | |
29379 | ||
29380 | int | |
29381 | main () | |
29382 | { | |
29383 | return 0; | |
29384 | } | |
29385 | ||
29386 | _ACEOF | |
29387 | if ac_fn_c_try_link "$LINENO"; then : | |
29388 | gcc_cv_math_func_j1f128=yes | |
29389 | else | |
29390 | gcc_cv_math_func_j1f128=no | |
29391 | fi | |
29392 | rm -f core conftest.err conftest.$ac_objext \ | |
29393 | conftest$ac_exeext conftest.$ac_ext | |
29394 | fi | |
29395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f128" >&5 | |
29396 | $as_echo "$gcc_cv_math_func_j1f128" >&6; } | |
29397 | if test $gcc_cv_math_func_j1f128 = yes; then | |
29398 | ||
29399 | cat >>confdefs.h <<_ACEOF | |
29400 | #define HAVE_J1F128 1 | |
29401 | _ACEOF | |
29402 | ||
29403 | fi | |
29404 | ||
29405 | ||
29406 | ||
29407 | ||
29408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf128" >&5 | |
29409 | $as_echo_n "checking for jnf128... " >&6; } | |
29410 | if ${gcc_cv_math_func_jnf128+:} false; then : | |
29411 | $as_echo_n "(cached) " >&6 | |
29412 | else | |
29413 | if test x$gcc_no_link = xyes; then | |
29414 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29415 | fi | |
29416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29417 | /* end confdefs.h. */ | |
29418 | ||
29419 | #ifdef HAVE_COMPLEX_H | |
29420 | #include <complex.h> | |
29421 | #endif | |
29422 | #ifdef HAVE_MATH_H | |
29423 | #include <math.h> | |
29424 | #endif | |
29425 | ||
29426 | int (*ptr)() = (int (*)())jnf128; | |
29427 | ||
29428 | int | |
29429 | main () | |
29430 | { | |
29431 | return 0; | |
29432 | } | |
29433 | ||
29434 | _ACEOF | |
29435 | if ac_fn_c_try_link "$LINENO"; then : | |
29436 | gcc_cv_math_func_jnf128=yes | |
29437 | else | |
29438 | gcc_cv_math_func_jnf128=no | |
29439 | fi | |
29440 | rm -f core conftest.err conftest.$ac_objext \ | |
29441 | conftest$ac_exeext conftest.$ac_ext | |
29442 | fi | |
29443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf128" >&5 | |
29444 | $as_echo "$gcc_cv_math_func_jnf128" >&6; } | |
29445 | if test $gcc_cv_math_func_jnf128 = yes; then | |
29446 | ||
29447 | cat >>confdefs.h <<_ACEOF | |
29448 | #define HAVE_JNF128 1 | |
29449 | _ACEOF | |
29450 | ||
29451 | fi | |
29452 | ||
29453 | ||
29454 | ||
29455 | ||
29456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f128" >&5 | |
29457 | $as_echo_n "checking for y0f128... " >&6; } | |
29458 | if ${gcc_cv_math_func_y0f128+:} false; then : | |
29459 | $as_echo_n "(cached) " >&6 | |
29460 | else | |
29461 | if test x$gcc_no_link = xyes; then | |
29462 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29463 | fi | |
29464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29465 | /* end confdefs.h. */ | |
29466 | ||
29467 | #ifdef HAVE_COMPLEX_H | |
29468 | #include <complex.h> | |
29469 | #endif | |
29470 | #ifdef HAVE_MATH_H | |
29471 | #include <math.h> | |
29472 | #endif | |
29473 | ||
29474 | int (*ptr)() = (int (*)())y0f128; | |
29475 | ||
29476 | int | |
29477 | main () | |
29478 | { | |
29479 | return 0; | |
29480 | } | |
29481 | ||
29482 | _ACEOF | |
29483 | if ac_fn_c_try_link "$LINENO"; then : | |
29484 | gcc_cv_math_func_y0f128=yes | |
29485 | else | |
29486 | gcc_cv_math_func_y0f128=no | |
29487 | fi | |
29488 | rm -f core conftest.err conftest.$ac_objext \ | |
29489 | conftest$ac_exeext conftest.$ac_ext | |
29490 | fi | |
29491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f128" >&5 | |
29492 | $as_echo "$gcc_cv_math_func_y0f128" >&6; } | |
29493 | if test $gcc_cv_math_func_y0f128 = yes; then | |
29494 | ||
29495 | cat >>confdefs.h <<_ACEOF | |
29496 | #define HAVE_Y0F128 1 | |
29497 | _ACEOF | |
29498 | ||
29499 | fi | |
29500 | ||
29501 | ||
29502 | ||
29503 | ||
29504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f128" >&5 | |
29505 | $as_echo_n "checking for y1f128... " >&6; } | |
29506 | if ${gcc_cv_math_func_y1f128+:} false; then : | |
29507 | $as_echo_n "(cached) " >&6 | |
29508 | else | |
29509 | if test x$gcc_no_link = xyes; then | |
29510 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29511 | fi | |
29512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29513 | /* end confdefs.h. */ | |
29514 | ||
29515 | #ifdef HAVE_COMPLEX_H | |
29516 | #include <complex.h> | |
29517 | #endif | |
29518 | #ifdef HAVE_MATH_H | |
29519 | #include <math.h> | |
29520 | #endif | |
29521 | ||
29522 | int (*ptr)() = (int (*)())y1f128; | |
29523 | ||
29524 | int | |
29525 | main () | |
29526 | { | |
29527 | return 0; | |
29528 | } | |
29529 | ||
29530 | _ACEOF | |
29531 | if ac_fn_c_try_link "$LINENO"; then : | |
29532 | gcc_cv_math_func_y1f128=yes | |
29533 | else | |
29534 | gcc_cv_math_func_y1f128=no | |
29535 | fi | |
29536 | rm -f core conftest.err conftest.$ac_objext \ | |
29537 | conftest$ac_exeext conftest.$ac_ext | |
29538 | fi | |
29539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f128" >&5 | |
29540 | $as_echo "$gcc_cv_math_func_y1f128" >&6; } | |
29541 | if test $gcc_cv_math_func_y1f128 = yes; then | |
29542 | ||
29543 | cat >>confdefs.h <<_ACEOF | |
29544 | #define HAVE_Y1F128 1 | |
29545 | _ACEOF | |
29546 | ||
29547 | fi | |
29548 | ||
29549 | ||
29550 | ||
29551 | ||
29552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf128" >&5 | |
29553 | $as_echo_n "checking for ynf128... " >&6; } | |
29554 | if ${gcc_cv_math_func_ynf128+:} false; then : | |
29555 | $as_echo_n "(cached) " >&6 | |
29556 | else | |
29557 | if test x$gcc_no_link = xyes; then | |
29558 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29559 | fi | |
29560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29561 | /* end confdefs.h. */ | |
29562 | ||
29563 | #ifdef HAVE_COMPLEX_H | |
29564 | #include <complex.h> | |
29565 | #endif | |
29566 | #ifdef HAVE_MATH_H | |
29567 | #include <math.h> | |
29568 | #endif | |
29569 | ||
29570 | int (*ptr)() = (int (*)())ynf128; | |
29571 | ||
29572 | int | |
29573 | main () | |
29574 | { | |
29575 | return 0; | |
29576 | } | |
29577 | ||
29578 | _ACEOF | |
29579 | if ac_fn_c_try_link "$LINENO"; then : | |
29580 | gcc_cv_math_func_ynf128=yes | |
29581 | else | |
29582 | gcc_cv_math_func_ynf128=no | |
29583 | fi | |
29584 | rm -f core conftest.err conftest.$ac_objext \ | |
29585 | conftest$ac_exeext conftest.$ac_ext | |
29586 | fi | |
29587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf128" >&5 | |
29588 | $as_echo "$gcc_cv_math_func_ynf128" >&6; } | |
29589 | if test $gcc_cv_math_func_ynf128 = yes; then | |
29590 | ||
29591 | cat >>confdefs.h <<_ACEOF | |
29592 | #define HAVE_YNF128 1 | |
29593 | _ACEOF | |
29594 | ||
29595 | fi | |
29596 | ||
29597 | ||
29598 | ||
29599 | ||
29600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf128" >&5 | |
29601 | $as_echo_n "checking for tgammaf128... " >&6; } | |
29602 | if ${gcc_cv_math_func_tgammaf128+:} false; then : | |
29603 | $as_echo_n "(cached) " >&6 | |
29604 | else | |
29605 | if test x$gcc_no_link = xyes; then | |
29606 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29607 | fi | |
29608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29609 | /* end confdefs.h. */ | |
29610 | ||
29611 | #ifdef HAVE_COMPLEX_H | |
29612 | #include <complex.h> | |
29613 | #endif | |
29614 | #ifdef HAVE_MATH_H | |
29615 | #include <math.h> | |
29616 | #endif | |
29617 | ||
29618 | int (*ptr)() = (int (*)())tgammaf128; | |
29619 | ||
29620 | int | |
29621 | main () | |
29622 | { | |
29623 | return 0; | |
29624 | } | |
29625 | ||
29626 | _ACEOF | |
29627 | if ac_fn_c_try_link "$LINENO"; then : | |
29628 | gcc_cv_math_func_tgammaf128=yes | |
29629 | else | |
29630 | gcc_cv_math_func_tgammaf128=no | |
29631 | fi | |
29632 | rm -f core conftest.err conftest.$ac_objext \ | |
29633 | conftest$ac_exeext conftest.$ac_ext | |
29634 | fi | |
29635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf128" >&5 | |
29636 | $as_echo "$gcc_cv_math_func_tgammaf128" >&6; } | |
29637 | if test $gcc_cv_math_func_tgammaf128 = yes; then | |
29638 | ||
29639 | cat >>confdefs.h <<_ACEOF | |
29640 | #define HAVE_TGAMMAF128 1 | |
29641 | _ACEOF | |
29642 | ||
29643 | fi | |
29644 | ||
29645 | ||
29646 | ||
29647 | ||
29648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf128" >&5 | |
29649 | $as_echo_n "checking for lgammaf128... " >&6; } | |
29650 | if ${gcc_cv_math_func_lgammaf128+:} false; then : | |
29651 | $as_echo_n "(cached) " >&6 | |
29652 | else | |
29653 | if test x$gcc_no_link = xyes; then | |
29654 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29655 | fi | |
29656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29657 | /* end confdefs.h. */ | |
29658 | ||
29659 | #ifdef HAVE_COMPLEX_H | |
29660 | #include <complex.h> | |
29661 | #endif | |
29662 | #ifdef HAVE_MATH_H | |
29663 | #include <math.h> | |
29664 | #endif | |
29665 | ||
29666 | int (*ptr)() = (int (*)())lgammaf128; | |
29667 | ||
29668 | int | |
29669 | main () | |
29670 | { | |
29671 | return 0; | |
29672 | } | |
29673 | ||
29674 | _ACEOF | |
29675 | if ac_fn_c_try_link "$LINENO"; then : | |
29676 | gcc_cv_math_func_lgammaf128=yes | |
29677 | else | |
29678 | gcc_cv_math_func_lgammaf128=no | |
29679 | fi | |
29680 | rm -f core conftest.err conftest.$ac_objext \ | |
29681 | conftest$ac_exeext conftest.$ac_ext | |
29682 | fi | |
29683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf128" >&5 | |
29684 | $as_echo "$gcc_cv_math_func_lgammaf128" >&6; } | |
29685 | if test $gcc_cv_math_func_lgammaf128 = yes; then | |
29686 | ||
29687 | cat >>confdefs.h <<_ACEOF | |
29688 | #define HAVE_LGAMMAF128 1 | |
29689 | _ACEOF | |
29690 | ||
29691 | fi | |
29692 | ||
29693 | ||
29694 | ||
29695 | ||
29696 | ||
29697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf128" >&5 | |
29698 | $as_echo_n "checking for cacosf128... " >&6; } | |
29699 | if ${gcc_cv_math_func_cacosf128+:} false; then : | |
29700 | $as_echo_n "(cached) " >&6 | |
29701 | else | |
29702 | if test x$gcc_no_link = xyes; then | |
29703 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29704 | fi | |
29705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29706 | /* end confdefs.h. */ | |
29707 | ||
29708 | #ifdef HAVE_COMPLEX_H | |
29709 | #include <complex.h> | |
29710 | #endif | |
29711 | #ifdef HAVE_MATH_H | |
29712 | #include <math.h> | |
29713 | #endif | |
29714 | ||
29715 | int (*ptr)() = (int (*)())cacosf128; | |
29716 | ||
29717 | int | |
29718 | main () | |
29719 | { | |
29720 | return 0; | |
29721 | } | |
29722 | ||
29723 | _ACEOF | |
29724 | if ac_fn_c_try_link "$LINENO"; then : | |
29725 | gcc_cv_math_func_cacosf128=yes | |
29726 | else | |
29727 | gcc_cv_math_func_cacosf128=no | |
29728 | fi | |
29729 | rm -f core conftest.err conftest.$ac_objext \ | |
29730 | conftest$ac_exeext conftest.$ac_ext | |
29731 | fi | |
29732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf128" >&5 | |
29733 | $as_echo "$gcc_cv_math_func_cacosf128" >&6; } | |
29734 | if test $gcc_cv_math_func_cacosf128 = yes; then | |
29735 | ||
29736 | cat >>confdefs.h <<_ACEOF | |
29737 | #define HAVE_CACOSF128 1 | |
29738 | _ACEOF | |
29739 | ||
29740 | fi | |
29741 | ||
29742 | ||
29743 | ||
29744 | ||
29745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf128" >&5 | |
29746 | $as_echo_n "checking for cacoshf128... " >&6; } | |
29747 | if ${gcc_cv_math_func_cacoshf128+:} false; then : | |
29748 | $as_echo_n "(cached) " >&6 | |
29749 | else | |
29750 | if test x$gcc_no_link = xyes; then | |
29751 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29752 | fi | |
29753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29754 | /* end confdefs.h. */ | |
29755 | ||
29756 | #ifdef HAVE_COMPLEX_H | |
29757 | #include <complex.h> | |
29758 | #endif | |
29759 | #ifdef HAVE_MATH_H | |
29760 | #include <math.h> | |
29761 | #endif | |
29762 | ||
29763 | int (*ptr)() = (int (*)())cacoshf128; | |
29764 | ||
29765 | int | |
29766 | main () | |
29767 | { | |
29768 | return 0; | |
29769 | } | |
29770 | ||
29771 | _ACEOF | |
29772 | if ac_fn_c_try_link "$LINENO"; then : | |
29773 | gcc_cv_math_func_cacoshf128=yes | |
29774 | else | |
29775 | gcc_cv_math_func_cacoshf128=no | |
29776 | fi | |
29777 | rm -f core conftest.err conftest.$ac_objext \ | |
29778 | conftest$ac_exeext conftest.$ac_ext | |
29779 | fi | |
29780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf128" >&5 | |
29781 | $as_echo "$gcc_cv_math_func_cacoshf128" >&6; } | |
29782 | if test $gcc_cv_math_func_cacoshf128 = yes; then | |
29783 | ||
29784 | cat >>confdefs.h <<_ACEOF | |
29785 | #define HAVE_CACOSHF128 1 | |
29786 | _ACEOF | |
29787 | ||
29788 | fi | |
29789 | ||
29790 | ||
29791 | ||
29792 | ||
29793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf128" >&5 | |
29794 | $as_echo_n "checking for casinf128... " >&6; } | |
29795 | if ${gcc_cv_math_func_casinf128+:} false; then : | |
29796 | $as_echo_n "(cached) " >&6 | |
29797 | else | |
29798 | if test x$gcc_no_link = xyes; then | |
29799 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29800 | fi | |
29801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29802 | /* end confdefs.h. */ | |
29803 | ||
29804 | #ifdef HAVE_COMPLEX_H | |
29805 | #include <complex.h> | |
29806 | #endif | |
29807 | #ifdef HAVE_MATH_H | |
29808 | #include <math.h> | |
29809 | #endif | |
29810 | ||
29811 | int (*ptr)() = (int (*)())casinf128; | |
29812 | ||
29813 | int | |
29814 | main () | |
29815 | { | |
29816 | return 0; | |
29817 | } | |
29818 | ||
29819 | _ACEOF | |
29820 | if ac_fn_c_try_link "$LINENO"; then : | |
29821 | gcc_cv_math_func_casinf128=yes | |
29822 | else | |
29823 | gcc_cv_math_func_casinf128=no | |
29824 | fi | |
29825 | rm -f core conftest.err conftest.$ac_objext \ | |
29826 | conftest$ac_exeext conftest.$ac_ext | |
29827 | fi | |
29828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf128" >&5 | |
29829 | $as_echo "$gcc_cv_math_func_casinf128" >&6; } | |
29830 | if test $gcc_cv_math_func_casinf128 = yes; then | |
29831 | ||
29832 | cat >>confdefs.h <<_ACEOF | |
29833 | #define HAVE_CASINF128 1 | |
29834 | _ACEOF | |
29835 | ||
29836 | fi | |
29837 | ||
29838 | ||
29839 | ||
29840 | ||
29841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf128" >&5 | |
29842 | $as_echo_n "checking for casinhf128... " >&6; } | |
29843 | if ${gcc_cv_math_func_casinhf128+:} false; then : | |
29844 | $as_echo_n "(cached) " >&6 | |
29845 | else | |
29846 | if test x$gcc_no_link = xyes; then | |
29847 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29848 | fi | |
29849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29850 | /* end confdefs.h. */ | |
29851 | ||
29852 | #ifdef HAVE_COMPLEX_H | |
29853 | #include <complex.h> | |
29854 | #endif | |
29855 | #ifdef HAVE_MATH_H | |
29856 | #include <math.h> | |
29857 | #endif | |
29858 | ||
29859 | int (*ptr)() = (int (*)())casinhf128; | |
29860 | ||
29861 | int | |
29862 | main () | |
29863 | { | |
29864 | return 0; | |
29865 | } | |
29866 | ||
29867 | _ACEOF | |
29868 | if ac_fn_c_try_link "$LINENO"; then : | |
29869 | gcc_cv_math_func_casinhf128=yes | |
29870 | else | |
29871 | gcc_cv_math_func_casinhf128=no | |
29872 | fi | |
29873 | rm -f core conftest.err conftest.$ac_objext \ | |
29874 | conftest$ac_exeext conftest.$ac_ext | |
29875 | fi | |
29876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf128" >&5 | |
29877 | $as_echo "$gcc_cv_math_func_casinhf128" >&6; } | |
29878 | if test $gcc_cv_math_func_casinhf128 = yes; then | |
29879 | ||
29880 | cat >>confdefs.h <<_ACEOF | |
29881 | #define HAVE_CASINHF128 1 | |
29882 | _ACEOF | |
29883 | ||
29884 | fi | |
29885 | ||
29886 | ||
29887 | ||
29888 | ||
29889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf128" >&5 | |
29890 | $as_echo_n "checking for catanf128... " >&6; } | |
29891 | if ${gcc_cv_math_func_catanf128+:} false; then : | |
29892 | $as_echo_n "(cached) " >&6 | |
29893 | else | |
29894 | if test x$gcc_no_link = xyes; then | |
29895 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29896 | fi | |
29897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29898 | /* end confdefs.h. */ | |
29899 | ||
29900 | #ifdef HAVE_COMPLEX_H | |
29901 | #include <complex.h> | |
29902 | #endif | |
29903 | #ifdef HAVE_MATH_H | |
29904 | #include <math.h> | |
29905 | #endif | |
29906 | ||
29907 | int (*ptr)() = (int (*)())catanf128; | |
29908 | ||
29909 | int | |
29910 | main () | |
29911 | { | |
29912 | return 0; | |
29913 | } | |
29914 | ||
29915 | _ACEOF | |
29916 | if ac_fn_c_try_link "$LINENO"; then : | |
29917 | gcc_cv_math_func_catanf128=yes | |
29918 | else | |
29919 | gcc_cv_math_func_catanf128=no | |
29920 | fi | |
29921 | rm -f core conftest.err conftest.$ac_objext \ | |
29922 | conftest$ac_exeext conftest.$ac_ext | |
29923 | fi | |
29924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf128" >&5 | |
29925 | $as_echo "$gcc_cv_math_func_catanf128" >&6; } | |
29926 | if test $gcc_cv_math_func_catanf128 = yes; then | |
29927 | ||
29928 | cat >>confdefs.h <<_ACEOF | |
29929 | #define HAVE_CATANF128 1 | |
29930 | _ACEOF | |
29931 | ||
29932 | fi | |
29933 | ||
29934 | ||
29935 | ||
29936 | ||
29937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf128" >&5 | |
29938 | $as_echo_n "checking for catanhf128... " >&6; } | |
29939 | if ${gcc_cv_math_func_catanhf128+:} false; then : | |
29940 | $as_echo_n "(cached) " >&6 | |
29941 | else | |
29942 | if test x$gcc_no_link = xyes; then | |
29943 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29944 | fi | |
29945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29946 | /* end confdefs.h. */ | |
29947 | ||
29948 | #ifdef HAVE_COMPLEX_H | |
29949 | #include <complex.h> | |
29950 | #endif | |
29951 | #ifdef HAVE_MATH_H | |
29952 | #include <math.h> | |
29953 | #endif | |
29954 | ||
29955 | int (*ptr)() = (int (*)())catanhf128; | |
29956 | ||
29957 | int | |
29958 | main () | |
29959 | { | |
29960 | return 0; | |
29961 | } | |
29962 | ||
29963 | _ACEOF | |
29964 | if ac_fn_c_try_link "$LINENO"; then : | |
29965 | gcc_cv_math_func_catanhf128=yes | |
29966 | else | |
29967 | gcc_cv_math_func_catanhf128=no | |
29968 | fi | |
29969 | rm -f core conftest.err conftest.$ac_objext \ | |
29970 | conftest$ac_exeext conftest.$ac_ext | |
29971 | fi | |
29972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf128" >&5 | |
29973 | $as_echo "$gcc_cv_math_func_catanhf128" >&6; } | |
29974 | if test $gcc_cv_math_func_catanhf128 = yes; then | |
29975 | ||
29976 | cat >>confdefs.h <<_ACEOF | |
29977 | #define HAVE_CATANHF128 1 | |
29978 | _ACEOF | |
29979 | ||
29980 | fi | |
29981 | ||
29982 | ||
29983 | # Check whether the system has a working stat() | |
29984 | ||
29985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5 | |
29986 | $as_echo_n "checking whether the target stat is reliable... " >&6; } | |
29987 | if ${libgfor_cv_have_working_stat+:} false; then : | |
29988 | $as_echo_n "(cached) " >&6 | |
29989 | else | |
29990 | ||
29991 | if test "$cross_compiling" = yes; then : | |
29992 | ||
29993 | case "${target}" in | |
29994 | *mingw*) libgfor_cv_have_working_stat=no ;; | |
29995 | *) libgfor_cv_have_working_stat=yes;; | |
29996 | esac | |
29997 | else | |
29998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29999 | /* end confdefs.h. */ | |
30000 | ||
30001 | #include <stdio.h> | |
30002 | #include <sys/types.h> | |
30003 | #include <sys/stat.h> | |
30004 | #include <unistd.h> | |
30005 | ||
30006 | int main () | |
30007 | { | |
30008 | FILE *f, *g; | |
30009 | struct stat st1, st2; | |
30010 | ||
30011 | f = fopen ("foo", "w"); | |
30012 | g = fopen ("bar", "w"); | |
30013 | if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) | |
30014 | return 1; | |
30015 | if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) | |
30016 | return 1; | |
30017 | fclose(f); | |
30018 | fclose(g); | |
30019 | return 0; | |
30020 | } | |
30021 | _ACEOF | |
30022 | if ac_fn_c_try_run "$LINENO"; then : | |
30023 | libgfor_cv_have_working_stat=yes | |
30024 | else | |
30025 | libgfor_cv_have_working_stat=no | |
30026 | fi | |
30027 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
30028 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
30029 | fi | |
30030 | ||
30031 | fi | |
30032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5 | |
30033 | $as_echo "$libgfor_cv_have_working_stat" >&6; } | |
30034 | if test x"$libgfor_cv_have_working_stat" = xyes; then | |
30035 | ||
30036 | $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h | |
30037 | ||
30038 | fi | |
30039 | ||
30040 | # Check whether __mingw_snprintf() is present | |
30041 | ||
30042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5 | |
30043 | $as_echo_n "checking whether __mingw_snprintf is present... " >&6; } | |
30044 | if ${libgfor_cv_have_mingw_snprintf+:} false; then : | |
30045 | $as_echo_n "(cached) " >&6 | |
30046 | else | |
30047 | ||
30048 | if test x$gcc_no_link = xyes; then | |
30049 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
30050 | fi | |
30051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30052 | /* end confdefs.h. */ | |
30053 | ||
30054 | #include <stdio.h> | |
30055 | extern int __mingw_snprintf (char *, size_t, const char *, ...); | |
30056 | ||
30057 | int | |
30058 | main () | |
30059 | { | |
30060 | ||
30061 | __mingw_snprintf (NULL, 0, "%d\n", 1); | |
30062 | ||
30063 | ; | |
30064 | return 0; | |
30065 | } | |
30066 | _ACEOF | |
30067 | if ac_fn_c_try_link "$LINENO"; then : | |
30068 | eval "libgfor_cv_have_mingw_snprintf=yes" | |
30069 | else | |
30070 | eval "libgfor_cv_have_mingw_snprintf=no" | |
30071 | fi | |
30072 | rm -f core conftest.err conftest.$ac_objext \ | |
30073 | conftest$ac_exeext conftest.$ac_ext | |
30074 | ||
30075 | fi | |
30076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5 | |
30077 | $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; } | |
30078 | if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then | |
30079 | ||
30080 | $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h | |
30081 | ||
30082 | fi | |
30083 | ||
30084 | ||
30085 | have_iec_60559_libc_support=no | |
30086 | if test "x$ac_cv_func_strtof128$ac_cv_func_strfromf128" = xyesyes \ | |
30087 | && test "x$gcc_cv_math_func_sinf128$gcc_cv_math_func_cacosf128" = xyesyes; then | |
30088 | have_iec_60559_libc_support=yes | |
30089 | fi | |
30090 | ||
30091 | # Check whether libquadmath should be used | |
30092 | # Check whether --enable-libquadmath-support was given. | |
30093 | if test "${enable_libquadmath_support+set}" = set; then : | |
30094 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
30095 | else | |
30096 | if test "x$have_iec_60559_libc_support" = xyes; then | |
30097 | ENABLE_LIBQUADMATH_SUPPORT=default | |
30098 | else | |
30099 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
30100 | fi | |
30101 | fi | |
30102 | ||
30103 | enable_libquadmath_support= | |
30104 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
30105 | enable_libquadmath_support=no | |
30106 | elif test "${ENABLE_LIBQUADMATH_SUPPORT}" = "default" ; then | |
30107 | enable_libquadmath_support=default | |
30108 | fi | |
30109 | ||
30110 | # Check whether we have a _Float128 type, depends on enable_libquadmath_support | |
30111 | # and have_iec_60559_libc_support. | |
30112 | ||
30113 | LIBQUADSPEC= | |
30114 | LIBQUADLIB= | |
30115 | LIBQUADLIB_DEP= | |
30116 | LIBQUADINCLUDE= | |
30117 | USE_IEC_60559=no | |
30118 | ||
30119 | if test "x$enable_libquadmath_support" != xno; then | |
30120 | ||
30121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable _Float128 type" >&5 | |
30122 | $as_echo_n "checking whether we have a usable _Float128 type... " >&6; } | |
30123 | if ${libgfor_cv_have_float128+:} false; then : | |
30124 | $as_echo_n "(cached) " >&6 | |
30125 | else | |
30126 | ||
30127 | if test x$gcc_no_link = xyes; then | |
30128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30129 | /* end confdefs.h. */ | |
30130 | ||
30131 | _Float128 foo (_Float128 x) | |
30132 | { | |
30133 | ||
30134 | _Complex _Float128 z1, z2; | |
30135 | ||
30136 | z1 = x; | |
30137 | z2 = x / 7.F128; | |
30138 | z2 /= z1; | |
30139 | ||
30140 | return (_Float128) z2; | |
30141 | } | |
30142 | ||
30143 | _Float128 bar (_Float128 x) | |
30144 | { | |
30145 | return x * __builtin_huge_valf128 (); | |
30146 | } | |
30147 | ||
30148 | int | |
30149 | main () | |
30150 | { | |
30151 | ||
30152 | foo (1.2F128); | |
30153 | bar (1.2F128); | |
30154 | foo (1.2Q); | |
30155 | bar (1.2Q); | |
30156 | ||
30157 | ; | |
30158 | return 0; | |
30159 | } | |
30160 | _ACEOF | |
30161 | if ac_fn_c_try_compile "$LINENO"; then : | |
30162 | ||
30163 | libgfor_cv_have_float128=yes | |
30164 | ||
30165 | else | |
30166 | ||
30167 | libgfor_cv_have_float128=no | |
30168 | ||
30169 | fi | |
30170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
30171 | else | |
30172 | if test x$gcc_no_link = xyes; then | |
30173 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
30174 | fi | |
30175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30176 | /* end confdefs.h. */ | |
30177 | ||
30178 | _Float128 foo (_Float128 x) | |
30179 | { | |
30180 | ||
30181 | _Complex _Float128 z1, z2; | |
30182 | ||
30183 | z1 = x; | |
30184 | z2 = x / 7.F128; | |
30185 | z2 /= z1; | |
30186 | ||
30187 | return (_Float128) z2; | |
30188 | } | |
30189 | ||
30190 | _Float128 bar (_Float128 x) | |
30191 | { | |
30192 | return x * __builtin_huge_valf128 (); | |
30193 | } | |
30194 | ||
30195 | int | |
30196 | main () | |
30197 | { | |
30198 | ||
30199 | foo (1.2F128); | |
30200 | bar (1.2F128); | |
30201 | foo (1.2Q); | |
30202 | bar (1.2Q); | |
30203 | ||
30204 | ; | |
30205 | return 0; | |
30206 | } | |
30207 | _ACEOF | |
30208 | if ac_fn_c_try_link "$LINENO"; then : | |
30209 | ||
30210 | libgfor_cv_have_float128=yes | |
30211 | ||
30212 | else | |
30213 | ||
30214 | libgfor_cv_have_float128=no | |
30215 | ||
30216 | fi | |
30217 | rm -f core conftest.err conftest.$ac_objext \ | |
30218 | conftest$ac_exeext conftest.$ac_ext | |
30219 | fi | |
30220 | fi | |
30221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5 | |
30222 | $as_echo "$libgfor_cv_have_float128" >&6; } | |
30223 | ||
30224 | if test "x$have_iec_60559_libc_support$enable_libquadmath_support$libgfor_cv_have_float128" = xyesdefaultyes; then | |
30225 | USE_IEC_60559=yes | |
30226 | fi | |
30227 | ||
30228 | ||
30229 | if test "x$libgfor_cv_have_float128" = xyes; then | |
30230 | if test "x$USE_IEC_60559" = xyes; then | |
30231 | ||
30232 | $as_echo "#define USE_IEC_60559 1" >>confdefs.h | |
30233 | ||
30234 | fi | |
30235 | ||
30236 | $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h | |
30237 | ||
30238 | ||
30239 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
30240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5 | |
30241 | $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; } | |
30242 | if ${libgfor_cv_have_as_needed+:} false; then : | |
30243 | $as_echo_n "(cached) " >&6 | |
30244 | else | |
30245 | ||
30246 | # Test for native Solaris options first. | |
30247 | # No whitespace after -z to pass it through -Wl. | |
30248 | libgfor_cv_as_needed_option="-zignore" | |
30249 | libgfor_cv_no_as_needed_option="-zrecord" | |
30250 | save_LDFLAGS="$LDFLAGS" | |
30251 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" | |
30252 | libgfor_cv_have_as_needed=no | |
30253 | ||
30254 | ac_c_werror_flag=yes | |
30255 | if test x$gcc_no_link = xyes; then | |
30256 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
30257 | fi | |
30258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30259 | /* end confdefs.h. */ | |
30260 | ||
30261 | int | |
30262 | main () | |
30263 | { | |
30264 | ||
30265 | ; | |
30266 | return 0; | |
30267 | } | |
30268 | _ACEOF | |
30269 | if ac_fn_c_try_link "$LINENO"; then : | |
30270 | libgfor_cv_have_as_needed=yes | |
30271 | else | |
30272 | libgfor_cv_have_as_needed=no | |
30273 | fi | |
30274 | rm -f core conftest.err conftest.$ac_objext \ | |
30275 | conftest$ac_exeext conftest.$ac_ext | |
30276 | LDFLAGS="$save_LDFLAGS" | |
30277 | if test "x$libgfor_cv_have_as_needed" = xno; then | |
30278 | libgfor_cv_as_needed_option="--as-needed" | |
30279 | libgfor_cv_no_as_needed_option="--no-as-needed" | |
30280 | save_LDFLAGS="$LDFLAGS" | |
30281 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" | |
30282 | libgfor_cv_have_as_needed=no | |
30283 | ||
30284 | ac_c_werror_flag=yes | |
30285 | if test x$gcc_no_link = xyes; then | |
30286 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
30287 | fi | |
30288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30289 | /* end confdefs.h. */ | |
30290 | ||
30291 | int | |
30292 | main () | |
30293 | { | |
30294 | ||
828012a5 RO |
30295 | ; |
30296 | return 0; | |
30297 | } | |
30298 | _ACEOF | |
30299 | if ac_fn_c_try_link "$LINENO"; then : | |
30300 | libgfor_cv_have_as_needed=yes | |
30301 | else | |
30302 | libgfor_cv_have_as_needed=no | |
30303 | fi | |
30304 | rm -f core conftest.err conftest.$ac_objext \ | |
30305 | conftest$ac_exeext conftest.$ac_ext | |
30306 | LDFLAGS="$save_LDFLAGS" | |
30307 | fi | |
1ec601bf FXC |
30308 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
30309 | ||
30310 | fi | |
30311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5 | |
30312 | $as_echo "$libgfor_cv_have_as_needed" >&6; } | |
30313 | ||
133d0d42 JJ |
30314 | if test "x$libgfor_cv_have_as_needed" = xyes; then |
30315 | if test "x$USE_IEC_60559" = xyes; then | |
30316 | LIBQUADSPEC="$libgfor_cv_as_needed_option -lquadmath $libgfor_cv_no_as_needed_option" | |
30317 | else | |
30318 | LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}" | |
30319 | fi | |
1ec601bf FXC |
30320 | else |
30321 | LIBQUADSPEC="-lquadmath" | |
30322 | fi | |
133d0d42 JJ |
30323 | if test "x$USE_IEC_60559" != xyes; then |
30324 | if test -f ../libquadmath/libquadmath.la; then | |
30325 | LIBQUADLIB=../libquadmath/libquadmath.la | |
30326 | LIBQUADLIB_DEP=../libquadmath/libquadmath.la | |
30327 | LIBQUADINCLUDE='-I$(srcdir)/../libquadmath' | |
30328 | else | |
30329 | LIBQUADLIB="-lquadmath" | |
30330 | fi | |
1ec601bf | 30331 | fi |
87e6d9dc | 30332 | else |
133d0d42 JJ |
30333 | USE_IEC_60559=no |
30334 | fi | |
87e6d9dc | 30335 | fi |
1ec601bf FXC |
30336 | |
30337 | ||
30338 | ||
30339 | ||
30340 | ||
30341 | ||
1ec601bf FXC |
30342 | |
30343 | ||
944b8b35 | 30344 | # Check for GNU libc feenableexcept |
5213506e RW |
30345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 |
30346 | $as_echo_n "checking for feenableexcept in -lm... " >&6; } | |
22e05272 | 30347 | if ${ac_cv_lib_m_feenableexcept+:} false; then : |
5213506e | 30348 | $as_echo_n "(cached) " >&6 |
944b8b35 FXC |
30349 | else |
30350 | ac_check_lib_save_LIBS=$LIBS | |
30351 | LIBS="-lm $LIBS" | |
30352 | if test x$gcc_no_link = xyes; then | |
22e05272 | 30353 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
944b8b35 | 30354 | fi |
5213506e | 30355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
944b8b35 FXC |
30356 | /* end confdefs.h. */ |
30357 | ||
5213506e RW |
30358 | /* Override any GCC internal prototype to avoid an error. |
30359 | Use char because int might match the return type of a GCC | |
30360 | builtin and then its argument prototype would still apply. */ | |
944b8b35 FXC |
30361 | #ifdef __cplusplus |
30362 | extern "C" | |
30363 | #endif | |
944b8b35 FXC |
30364 | char feenableexcept (); |
30365 | int | |
30366 | main () | |
30367 | { | |
5213506e | 30368 | return feenableexcept (); |
944b8b35 FXC |
30369 | ; |
30370 | return 0; | |
30371 | } | |
30372 | _ACEOF | |
5213506e | 30373 | if ac_fn_c_try_link "$LINENO"; then : |
944b8b35 FXC |
30374 | ac_cv_lib_m_feenableexcept=yes |
30375 | else | |
5213506e | 30376 | ac_cv_lib_m_feenableexcept=no |
944b8b35 | 30377 | fi |
5213506e RW |
30378 | rm -f core conftest.err conftest.$ac_objext \ |
30379 | conftest$ac_exeext conftest.$ac_ext | |
944b8b35 FXC |
30380 | LIBS=$ac_check_lib_save_LIBS |
30381 | fi | |
5213506e RW |
30382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 |
30383 | $as_echo "$ac_cv_lib_m_feenableexcept" >&6; } | |
22e05272 | 30384 | if test "x$ac_cv_lib_m_feenableexcept" = xyes; then : |
944b8b35 | 30385 | have_feenableexcept=yes |
5213506e | 30386 | $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h |
3b14f664 FXC |
30387 | |
30388 | fi | |
30389 | ||
3b14f664 | 30390 | |
5c30094f | 30391 | # At least for glibc, clock_gettime is in librt. But don't |
2aadeae2 JB |
30392 | # pull that in if it still doesn't give us the function we want. This |
30393 | # test is copied from libgomp, and modified to not link in -lrt as | |
30394 | # libgfortran calls clock_gettime via a weak reference if it's found | |
30395 | # in librt. | |
deb9dd74 | 30396 | if test "$ac_cv_func_clock_gettime" = no; then |
b6e7a3d1 JB |
30397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
30398 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
22e05272 | 30399 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
b6e7a3d1 JB |
30400 | $as_echo_n "(cached) " >&6 |
30401 | else | |
30402 | ac_check_lib_save_LIBS=$LIBS | |
30403 | LIBS="-lrt $LIBS" | |
30404 | if test x$gcc_no_link = xyes; then | |
22e05272 | 30405 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b6e7a3d1 JB |
30406 | fi |
30407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30408 | /* end confdefs.h. */ | |
30409 | ||
30410 | /* Override any GCC internal prototype to avoid an error. | |
30411 | Use char because int might match the return type of a GCC | |
30412 | builtin and then its argument prototype would still apply. */ | |
30413 | #ifdef __cplusplus | |
30414 | extern "C" | |
30415 | #endif | |
30416 | char clock_gettime (); | |
30417 | int | |
30418 | main () | |
30419 | { | |
30420 | return clock_gettime (); | |
30421 | ; | |
30422 | return 0; | |
30423 | } | |
30424 | _ACEOF | |
30425 | if ac_fn_c_try_link "$LINENO"; then : | |
30426 | ac_cv_lib_rt_clock_gettime=yes | |
30427 | else | |
30428 | ac_cv_lib_rt_clock_gettime=no | |
30429 | fi | |
30430 | rm -f core conftest.err conftest.$ac_objext \ | |
30431 | conftest$ac_exeext conftest.$ac_ext | |
30432 | LIBS=$ac_check_lib_save_LIBS | |
30433 | fi | |
30434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
30435 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
22e05272 | 30436 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
b6e7a3d1 | 30437 | |
2aadeae2 | 30438 | $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h |
b6e7a3d1 JB |
30439 | |
30440 | fi | |
30441 | ||
30442 | fi | |
30443 | ||
5213506e | 30444 | # Check for SysV fpsetmask |
3b14f664 | 30445 | |
5213506e RW |
30446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5 |
30447 | $as_echo_n "checking whether fpsetmask is present... " >&6; } | |
22e05272 | 30448 | if ${libgfor_cv_have_fpsetmask+:} false; then : |
5213506e RW |
30449 | $as_echo_n "(cached) " >&6 |
30450 | else | |
3b14f664 | 30451 | |
5213506e | 30452 | if test x$gcc_no_link = xyes; then |
22e05272 | 30453 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5213506e RW |
30454 | fi |
30455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30456 | /* end confdefs.h. */ | |
3b14f664 | 30457 | |
5213506e RW |
30458 | #if HAVE_FLOATINGPOINT_H |
30459 | # include <floatingpoint.h> | |
30460 | #endif /* HAVE_FLOATINGPOINT_H */ | |
30461 | #if HAVE_IEEEFP_H | |
30462 | # include <ieeefp.h> | |
30463 | #endif /* HAVE_IEEEFP_H */ | |
3b14f664 FXC |
30464 | int |
30465 | main () | |
30466 | { | |
5213506e | 30467 | fpsetmask(0); |
3b14f664 FXC |
30468 | ; |
30469 | return 0; | |
30470 | } | |
30471 | _ACEOF | |
5213506e RW |
30472 | if ac_fn_c_try_link "$LINENO"; then : |
30473 | eval "libgfor_cv_have_fpsetmask=yes" | |
3b14f664 | 30474 | else |
5213506e RW |
30475 | eval "libgfor_cv_have_fpsetmask=no" |
30476 | fi | |
30477 | rm -f core conftest.err conftest.$ac_objext \ | |
30478 | conftest$ac_exeext conftest.$ac_ext | |
3b14f664 | 30479 | |
3b14f664 | 30480 | fi |
5213506e RW |
30481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5 |
30482 | $as_echo "$libgfor_cv_have_fpsetmask" >&6; } | |
30483 | if test x"$libgfor_cv_have_fpsetmask" = xyes; then | |
1b9fef3e | 30484 | have_fpsetmask=yes |
5213506e RW |
30485 | |
30486 | $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h | |
30487 | ||
30488 | fi | |
30489 | ||
6faf4751 | 30490 | ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" " |
67c4c164 | 30491 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 30492 | #include <ieeefp.h> |
67c4c164 | 30493 | #endif |
6faf4751 FXC |
30494 | #include <math.h> |
30495 | ||
7ae346c3 | 30496 | " |
22e05272 | 30497 | if test "x$ac_cv_type_fp_except" = xyes; then : |
7ae346c3 TB |
30498 | |
30499 | cat >>confdefs.h <<_ACEOF | |
30500 | #define HAVE_FP_EXCEPT 1 | |
30501 | _ACEOF | |
30502 | ||
30503 | ||
30504 | fi | |
6faf4751 | 30505 | ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" " |
67c4c164 | 30506 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 30507 | #include <ieeefp.h> |
67c4c164 | 30508 | #endif |
6faf4751 FXC |
30509 | #include <math.h> |
30510 | ||
7ae346c3 | 30511 | " |
22e05272 | 30512 | if test "x$ac_cv_type_fp_except_t" = xyes; then : |
7ae346c3 TB |
30513 | |
30514 | cat >>confdefs.h <<_ACEOF | |
30515 | #define HAVE_FP_EXCEPT_T 1 | |
30516 | _ACEOF | |
30517 | ||
30518 | ||
82a4f54c TB |
30519 | fi |
30520 | ||
6faf4751 | 30521 | ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" " |
67c4c164 | 30522 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 30523 | #include <ieeefp.h> |
67c4c164 | 30524 | #endif |
6faf4751 FXC |
30525 | #include <math.h> |
30526 | ||
82a4f54c | 30527 | " |
22e05272 | 30528 | if test "x$ac_cv_type_fp_rnd" = xyes; then : |
82a4f54c TB |
30529 | |
30530 | cat >>confdefs.h <<_ACEOF | |
30531 | #define HAVE_FP_RND 1 | |
30532 | _ACEOF | |
30533 | ||
30534 | ||
30535 | fi | |
6faf4751 | 30536 | ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" " |
67c4c164 | 30537 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 30538 | #include <ieeefp.h> |
67c4c164 | 30539 | #endif |
6faf4751 FXC |
30540 | #include <math.h> |
30541 | ||
82a4f54c | 30542 | " |
22e05272 | 30543 | if test "x$ac_cv_type_fp_rnd_t" = xyes; then : |
82a4f54c TB |
30544 | |
30545 | cat >>confdefs.h <<_ACEOF | |
30546 | #define HAVE_FP_RND_T 1 | |
30547 | _ACEOF | |
30548 | ||
30549 | ||
7ae346c3 TB |
30550 | fi |
30551 | ||
5213506e | 30552 | |
de51fc1b RO |
30553 | # Check whether we have fpsetsticky or fpresetsticky |
30554 | ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky" | |
22e05272 | 30555 | if test "x$ac_cv_func_fpsetsticky" = xyes; then : |
de51fc1b RO |
30556 | have_fpsetsticky=yes |
30557 | $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h | |
30558 | ||
30559 | fi | |
30560 | ||
30561 | ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky" | |
22e05272 | 30562 | if test "x$ac_cv_func_fpresetsticky" = xyes; then : |
de51fc1b RO |
30563 | have_fpresetsticky=yes |
30564 | $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h | |
30565 | ||
30566 | fi | |
30567 | ||
30568 | ||
5213506e RW |
30569 | # Check for AIX fp_trap and fp_enable |
30570 | ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap" | |
22e05272 | 30571 | if test "x$ac_cv_func_fp_trap" = xyes; then : |
5213506e RW |
30572 | have_fp_trap=yes |
30573 | $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h | |
30574 | ||
3b14f664 | 30575 | fi |
5213506e RW |
30576 | |
30577 | ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable" | |
22e05272 | 30578 | if test "x$ac_cv_func_fp_enable" = xyes; then : |
3b14f664 | 30579 | have_fp_enable=yes |
5213506e | 30580 | $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h |
3b14f664 FXC |
30581 | |
30582 | fi | |
30583 | ||
30584 | ||
7b32a8f6 UB |
30585 | # Check if _SOFT_FLOAT is defined |
30586 | ||
30587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5 | |
30588 | $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; } | |
22e05272 | 30589 | if ${ac_cv_defined__SOFT_FLOAT+:} false; then : |
7b32a8f6 UB |
30590 | $as_echo_n "(cached) " >&6 |
30591 | else | |
30592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30593 | /* end confdefs.h. */ | |
30594 | ||
30595 | int | |
30596 | main () | |
30597 | { | |
30598 | ||
30599 | #ifdef _SOFT_FLOAT | |
30600 | int ok; | |
30601 | #else | |
30602 | choke me | |
30603 | #endif | |
30604 | ||
30605 | ; | |
30606 | return 0; | |
30607 | } | |
30608 | _ACEOF | |
30609 | if ac_fn_c_try_compile "$LINENO"; then : | |
30610 | ac_cv_defined__SOFT_FLOAT=yes | |
30611 | else | |
30612 | ac_cv_defined__SOFT_FLOAT=no | |
30613 | fi | |
30614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
30615 | fi | |
30616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5 | |
30617 | $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; } | |
30618 | if test $ac_cv_defined__SOFT_FLOAT != "no"; then : | |
30619 | have_soft_float=yes | |
30620 | fi | |
30621 | ||
944b8b35 FXC |
30622 | # Runs configure.host to set up necessary host-dependent shell variables. |
30623 | # We then display a message about it, and propagate them through the | |
30624 | # build chain. | |
30625 | . ${srcdir}/configure.host | |
5213506e RW |
30626 | { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5 |
30627 | $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} | |
8b198102 FXC |
30628 | { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5 |
30629 | $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;} | |
944b8b35 FXC |
30630 | FPU_HOST_HEADER=config/${fpu_host}.h |
30631 | ||
30632 | ||
8b198102 FXC |
30633 | # Whether we will build the IEEE modules |
30634 | if test x${ieee_support} = xyes; then | |
30635 | IEEE_SUPPORT_TRUE= | |
30636 | IEEE_SUPPORT_FALSE='#' | |
30637 | else | |
30638 | IEEE_SUPPORT_TRUE='#' | |
30639 | IEEE_SUPPORT_FALSE= | |
30640 | fi | |
30641 | ||
30642 | ||
30643 | ||
9fc77574 KK |
30644 | # Some targets require additional compiler options for IEEE compatibility. |
30645 | IEEE_FLAGS="${ieee_flags}" | |
30646 | ||
30647 | ||
47ddb895 DE |
30648 | # Conditionalize the makefile for this target machine. |
30649 | tmake_file_= | |
30650 | for f in ${tmake_file} | |
30651 | do | |
30652 | if test -f ${srcdir}/config/$f | |
30653 | then | |
30654 | tmake_file_="${tmake_file_} \$(srcdir)/config/$f" | |
30655 | fi | |
30656 | done | |
30657 | tmake_file="${tmake_file_}" | |
30658 | ||
30659 | ||
23e6d4a5 JB |
30660 | |
30661 | # Check for POSIX getpwuid_r | |
30662 | # | |
30663 | # There are two versions of getpwuid_r, the POSIX one with 5 | |
30664 | # arguments, and another one with 4 arguments used by at least HP-UX | |
30665 | # 10.2. | |
30666 | if test "$ac_cv_func_getpwuid_r" = "yes"; then | |
30667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5 | |
30668 | $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; } | |
22e05272 | 30669 | if ${libgfor_cv_posix_getpwuid_r+:} false; then : |
23e6d4a5 JB |
30670 | $as_echo_n "(cached) " >&6 |
30671 | else | |
30672 | ||
30673 | if test x$gcc_no_link = xyes; then | |
22e05272 | 30674 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
23e6d4a5 JB |
30675 | fi |
30676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30677 | /* end confdefs.h. */ | |
30678 | ||
30679 | #include <stdio.h> | |
30680 | #include <sys/types.h> | |
30681 | #include <pwd.h> | |
30682 | int | |
30683 | main () | |
30684 | { | |
30685 | ||
30686 | getpwuid_r(0, NULL, NULL, 0, NULL); | |
30687 | ||
30688 | ; | |
30689 | return 0; | |
30690 | } | |
30691 | _ACEOF | |
30692 | if ac_fn_c_try_link "$LINENO"; then : | |
30693 | libgfor_cv_posix_getpwuid_r="yes" | |
30694 | else | |
30695 | libgfor_cv_posix_getpwuid_r="no" | |
30696 | fi | |
30697 | rm -f core conftest.err conftest.$ac_objext \ | |
30698 | conftest$ac_exeext conftest.$ac_ext | |
30699 | fi | |
30700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5 | |
30701 | $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; } | |
30702 | fi | |
30703 | if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then | |
30704 | ||
30705 | $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h | |
30706 | ||
30707 | fi | |
30708 | ||
30709 | ||
7d7b8bfe RH |
30710 | # Check out attribute support. |
30711 | ||
5213506e RW |
30712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 |
30713 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
22e05272 | 30714 | if ${libgfor_cv_have_attribute_visibility+:} false; then : |
5213506e | 30715 | $as_echo_n "(cached) " >&6 |
7d7b8bfe RH |
30716 | else |
30717 | ||
30718 | save_CFLAGS="$CFLAGS" | |
30719 | CFLAGS="$CFLAGS -Werror" | |
5213506e | 30720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7d7b8bfe RH |
30721 | /* end confdefs.h. */ |
30722 | void __attribute__((visibility("hidden"))) foo(void) { } | |
30723 | int | |
30724 | main () | |
30725 | { | |
30726 | ||
30727 | ; | |
30728 | return 0; | |
30729 | } | |
30730 | _ACEOF | |
5213506e | 30731 | if ac_fn_c_try_compile "$LINENO"; then : |
6d26724a | 30732 | libgfor_cv_have_attribute_visibility=yes |
7d7b8bfe | 30733 | else |
5213506e | 30734 | libgfor_cv_have_attribute_visibility=no |
7d7b8bfe | 30735 | fi |
5213506e | 30736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7d7b8bfe RH |
30737 | CFLAGS="$save_CFLAGS" |
30738 | fi | |
5213506e RW |
30739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5 |
30740 | $as_echo "$libgfor_cv_have_attribute_visibility" >&6; } | |
6d26724a | 30741 | if test $libgfor_cv_have_attribute_visibility = yes; then |
7d7b8bfe | 30742 | |
5213506e | 30743 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h |
7d7b8bfe RH |
30744 | |
30745 | fi | |
30746 | ||
5213506e RW |
30747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 |
30748 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
22e05272 | 30749 | if ${libgfor_cv_have_attribute_alias+:} false; then : |
5213506e | 30750 | $as_echo_n "(cached) " >&6 |
7d7b8bfe RH |
30751 | else |
30752 | ||
f02d008e | 30753 | if test x$gcc_no_link = xyes; then |
22e05272 | 30754 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 30755 | fi |
5213506e | 30756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7d7b8bfe RH |
30757 | /* end confdefs.h. */ |
30758 | ||
7d7b8bfe | 30759 | void foo(void) { } |
16a314a9 | 30760 | extern void bar(void) __attribute__((alias("foo"))); |
7d7b8bfe RH |
30761 | int |
30762 | main () | |
30763 | { | |
30764 | bar(); | |
30765 | ; | |
30766 | return 0; | |
30767 | } | |
30768 | _ACEOF | |
5213506e | 30769 | if ac_fn_c_try_link "$LINENO"; then : |
6d26724a | 30770 | libgfor_cv_have_attribute_alias=yes |
7d7b8bfe | 30771 | else |
5213506e | 30772 | libgfor_cv_have_attribute_alias=no |
7d7b8bfe | 30773 | fi |
5213506e RW |
30774 | rm -f core conftest.err conftest.$ac_objext \ |
30775 | conftest$ac_exeext conftest.$ac_ext | |
7d7b8bfe | 30776 | fi |
5213506e RW |
30777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5 |
30778 | $as_echo "$libgfor_cv_have_attribute_alias" >&6; } | |
6d26724a | 30779 | if test $libgfor_cv_have_attribute_alias = yes; then |
7d7b8bfe | 30780 | |
5213506e | 30781 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h |
7d7b8bfe RH |
30782 | |
30783 | fi | |
30784 | ||
0536d5b3 | 30785 | # Check out atomic builtins support. |
5e805e44 | 30786 | |
0536d5b3 JB |
30787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5 |
30788 | $as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; } | |
30789 | if ${libgfor_cv_have_atomic_fetch_add+:} false; then : | |
5213506e | 30790 | $as_echo_n "(cached) " >&6 |
5e805e44 JJ |
30791 | else |
30792 | ||
30793 | if test x$gcc_no_link = xyes; then | |
22e05272 | 30794 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5e805e44 | 30795 | fi |
5213506e | 30796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5e805e44 JJ |
30797 | /* end confdefs.h. */ |
30798 | int foovar = 0; | |
30799 | int | |
30800 | main () | |
30801 | { | |
30802 | ||
0536d5b3 JB |
30803 | if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL); |
30804 | if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL); | |
5e805e44 JJ |
30805 | ; |
30806 | return 0; | |
30807 | } | |
30808 | _ACEOF | |
5213506e | 30809 | if ac_fn_c_try_link "$LINENO"; then : |
0536d5b3 | 30810 | libgfor_cv_have_atomic_fetch_add=yes |
5e805e44 | 30811 | else |
0536d5b3 | 30812 | libgfor_cv_have_atomic_fetch_add=no |
5e805e44 | 30813 | fi |
5213506e RW |
30814 | rm -f core conftest.err conftest.$ac_objext \ |
30815 | conftest$ac_exeext conftest.$ac_ext | |
5e805e44 | 30816 | fi |
0536d5b3 JB |
30817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5 |
30818 | $as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; } | |
30819 | if test $libgfor_cv_have_atomic_fetch_add = yes; then | |
5e805e44 | 30820 | |
0536d5b3 | 30821 | $as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h |
5e805e44 JJ |
30822 | |
30823 | fi | |
30824 | ||
6a822a74 FXC |
30825 | # Check out #pragma weak. |
30826 | ||
30827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5 | |
30828 | $as_echo_n "checking whether pragma weak works... " >&6; } | |
22e05272 | 30829 | if ${libgfor_cv_have_pragma_weak+:} false; then : |
6a822a74 FXC |
30830 | $as_echo_n "(cached) " >&6 |
30831 | else | |
30832 | ||
30833 | gfor_save_CFLAGS="$CFLAGS" | |
30834 | CFLAGS="$CFLAGS -Wunknown-pragmas" | |
30835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30836 | /* end confdefs.h. */ | |
30837 | ||
30838 | void foo (void); | |
30839 | #pragma weak foo | |
30840 | ||
30841 | int | |
30842 | main () | |
30843 | { | |
30844 | if (foo) foo (); | |
30845 | ; | |
30846 | return 0; | |
30847 | } | |
30848 | _ACEOF | |
30849 | if ac_fn_c_try_compile "$LINENO"; then : | |
30850 | libgfor_cv_have_pragma_weak=yes | |
30851 | else | |
30852 | libgfor_cv_have_pragma_weak=no | |
30853 | fi | |
30854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
30855 | fi | |
30856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5 | |
30857 | $as_echo "$libgfor_cv_have_pragma_weak" >&6; } | |
30858 | if test $libgfor_cv_have_pragma_weak = yes; then | |
30859 | ||
30860 | $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h | |
30861 | ||
30862 | fi | |
30863 | case "$host" in | |
30864 | *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* ) | |
30865 | ||
30866 | $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h | |
30867 | ||
30868 | ;; | |
30869 | esac | |
30870 | ||
e7854993 | 30871 | # Check out weakref support. |
5e805e44 | 30872 | |
e7854993 FXC |
30873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5 |
30874 | $as_echo_n "checking whether the target supports weakref... " >&6; } | |
22e05272 | 30875 | if ${libgfor_cv_have_weakref+:} false; then : |
5213506e | 30876 | $as_echo_n "(cached) " >&6 |
5e805e44 JJ |
30877 | else |
30878 | ||
e7854993 FXC |
30879 | save_CFLAGS="$CFLAGS" |
30880 | CFLAGS="$CFLAGS -Wunknown-pragmas -Werror" | |
30881 | if test x$gcc_no_link = xyes; then | |
22e05272 | 30882 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
e7854993 FXC |
30883 | fi |
30884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5e805e44 | 30885 | /* end confdefs.h. */ |
de15ea94 | 30886 | |
e7854993 | 30887 | static int mytoto (int) __attribute__((__weakref__("toto"))); |
de15ea94 | 30888 | |
5e805e44 JJ |
30889 | int |
30890 | main () | |
30891 | { | |
e7854993 | 30892 | return (mytoto != 0); |
5e805e44 JJ |
30893 | ; |
30894 | return 0; | |
30895 | } | |
30896 | _ACEOF | |
e7854993 FXC |
30897 | if ac_fn_c_try_link "$LINENO"; then : |
30898 | libgfor_cv_have_weakref=yes | |
5e805e44 | 30899 | else |
e7854993 | 30900 | libgfor_cv_have_weakref=no |
5e805e44 | 30901 | fi |
e7854993 FXC |
30902 | rm -f core conftest.err conftest.$ac_objext \ |
30903 | conftest$ac_exeext conftest.$ac_ext | |
30904 | CFLAGS="$save_CFLAGS" | |
5e805e44 | 30905 | fi |
e7854993 FXC |
30906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5 |
30907 | $as_echo "$libgfor_cv_have_weakref" >&6; } | |
30908 | if test $libgfor_cv_have_weakref = yes; then | |
5e805e44 | 30909 | |
e7854993 | 30910 | $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h |
5e805e44 JJ |
30911 | |
30912 | fi | |
30913 | ||
10c682a0 FXC |
30914 | # Various other checks on target |
30915 | ||
5213506e RW |
30916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5 |
30917 | $as_echo_n "checking whether the target can unlink an open file... " >&6; } | |
22e05272 | 30918 | if ${libgfor_cv_have_unlink_open_file+:} false; then : |
5213506e | 30919 | $as_echo_n "(cached) " >&6 |
10c682a0 FXC |
30920 | else |
30921 | ||
5213506e | 30922 | if test "$cross_compiling" = yes; then : |
10c682a0 FXC |
30923 | |
30924 | case "${target}" in | |
6d26724a RW |
30925 | *mingw*) libgfor_cv_have_unlink_open_file=no ;; |
30926 | *) libgfor_cv_have_unlink_open_file=yes;; | |
10c682a0 FXC |
30927 | esac |
30928 | else | |
5213506e | 30929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10c682a0 FXC |
30930 | /* end confdefs.h. */ |
30931 | ||
30932 | #include <errno.h> | |
30933 | #include <fcntl.h> | |
30934 | #include <unistd.h> | |
30935 | #include <sys/stat.h> | |
30936 | ||
30937 | int main () | |
30938 | { | |
30939 | int fd; | |
30940 | ||
42dfafa9 | 30941 | fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR); |
10c682a0 FXC |
30942 | if (fd <= 0) |
30943 | return 0; | |
30944 | if (unlink ("testfile") == -1) | |
30945 | return 1; | |
30946 | write (fd, "This is a test\n", 15); | |
30947 | close (fd); | |
30948 | ||
42dfafa9 | 30949 | if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT) |
10c682a0 FXC |
30950 | return 0; |
30951 | else | |
30952 | return 1; | |
30953 | } | |
30954 | _ACEOF | |
5213506e | 30955 | if ac_fn_c_try_run "$LINENO"; then : |
6d26724a | 30956 | libgfor_cv_have_unlink_open_file=yes |
10c682a0 | 30957 | else |
5213506e | 30958 | libgfor_cv_have_unlink_open_file=no |
10c682a0 | 30959 | fi |
5213506e RW |
30960 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
30961 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
10c682a0 | 30962 | fi |
5213506e | 30963 | |
10c682a0 | 30964 | fi |
5213506e RW |
30965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5 |
30966 | $as_echo "$libgfor_cv_have_unlink_open_file" >&6; } | |
6d26724a | 30967 | if test x"$libgfor_cv_have_unlink_open_file" = xyes; then |
10c682a0 | 30968 | |
5213506e | 30969 | $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h |
10c682a0 FXC |
30970 | |
30971 | fi | |
30972 | ||
3c127520 FXC |
30973 | # Check whether line terminator is LF or CRLF |
30974 | ||
5213506e RW |
30975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5 |
30976 | $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; } | |
22e05272 | 30977 | if ${libgfor_cv_have_crlf+:} false; then : |
5213506e | 30978 | $as_echo_n "(cached) " >&6 |
3c127520 FXC |
30979 | else |
30980 | ||
5213506e | 30981 | if test "$cross_compiling" = yes; then : |
3c127520 FXC |
30982 | |
30983 | case "${target}" in | |
6d26724a RW |
30984 | *mingw*) libgfor_cv_have_crlf=yes ;; |
30985 | *) libgfor_cv_have_crlf=no;; | |
3c127520 FXC |
30986 | esac |
30987 | else | |
5213506e | 30988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3c127520 FXC |
30989 | /* end confdefs.h. */ |
30990 | ||
30991 | /* This test program should exit with status 0 if system uses a CRLF as | |
30992 | line terminator, and status 1 otherwise. | |
30993 | Since it is used to check for mingw systems, and should return 0 in any | |
30994 | other case, in case of a failure we will not use CRLF. */ | |
30995 | #include <sys/stat.h> | |
30996 | #include <stdlib.h> | |
30997 | #include <fcntl.h> | |
30998 | #include <stdio.h> | |
30999 | ||
31000 | int main () | |
31001 | { | |
31002 | #ifndef O_BINARY | |
31003 | exit(1); | |
31004 | #else | |
31005 | int fd, bytes; | |
31006 | char buff[5]; | |
31007 | ||
31008 | fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); | |
31009 | if (fd < 0) | |
31010 | exit(1); | |
31011 | if (write (fd, "\n", 1) < 0) | |
31012 | perror ("write"); | |
31013 | ||
31014 | close (fd); | |
31015 | ||
31016 | if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) | |
31017 | exit(1); | |
31018 | bytes = read (fd, buff, 5); | |
31019 | if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') | |
31020 | exit(0); | |
31021 | else | |
31022 | exit(1); | |
31023 | #endif | |
31024 | } | |
31025 | _ACEOF | |
5213506e | 31026 | if ac_fn_c_try_run "$LINENO"; then : |
6d26724a | 31027 | libgfor_cv_have_crlf=yes |
3c127520 | 31028 | else |
5213506e | 31029 | libgfor_cv_have_crlf=no |
3c127520 | 31030 | fi |
5213506e RW |
31031 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
31032 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3c127520 | 31033 | fi |
5213506e | 31034 | |
3c127520 | 31035 | fi |
5213506e RW |
31036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5 |
31037 | $as_echo "$libgfor_cv_have_crlf" >&6; } | |
6d26724a | 31038 | if test x"$libgfor_cv_have_crlf" = xyes; then |
3c127520 | 31039 | |
5213506e | 31040 | $as_echo "#define HAVE_CRLF 1" >>confdefs.h |
3c127520 FXC |
31041 | |
31042 | fi | |
31043 | ||
31cfd832 TK |
31044 | # Check whether we support AVX extensions |
31045 | ||
31046 | ac_save_CFLAGS="$CFLAGS" | |
31047 | CFLAGS="-O2 -mavx" | |
31048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31049 | /* end confdefs.h. */ | |
31050 | ||
31051 | void _mm256_zeroall (void) | |
31052 | { | |
31053 | __builtin_ia32_vzeroall (); | |
31054 | } | |
31055 | int | |
31056 | main () | |
31057 | { | |
31058 | ||
31059 | ; | |
31060 | return 0; | |
31061 | } | |
31062 | _ACEOF | |
31063 | if ac_fn_c_try_compile "$LINENO"; then : | |
31064 | ||
31065 | $as_echo "#define HAVE_AVX 1" >>confdefs.h | |
31066 | ||
31067 | fi | |
31068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31069 | CFLAGS="$ac_save_CFLAGS" | |
31070 | ||
31071 | ||
49ad4d2c | 31072 | # Check whether we support AVX2 extensions |
31cfd832 TK |
31073 | |
31074 | ac_save_CFLAGS="$CFLAGS" | |
31075 | CFLAGS="-O2 -mavx2" | |
31076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31077 | /* end confdefs.h. */ | |
31078 | ||
31079 | typedef long long __v4di __attribute__ ((__vector_size__ (32))); | |
31080 | __v4di | |
31081 | mm256_is32_andnotsi256 (__v4di __X, __v4di __Y) | |
31082 | { | |
31083 | return __builtin_ia32_andnotsi256 (__X, __Y); | |
31084 | } | |
31085 | int | |
31086 | main () | |
31087 | { | |
31088 | ||
31089 | ; | |
31090 | return 0; | |
31091 | } | |
31092 | _ACEOF | |
31093 | if ac_fn_c_try_compile "$LINENO"; then : | |
31094 | ||
31095 | $as_echo "#define HAVE_AVX2 1" >>confdefs.h | |
31096 | ||
31097 | fi | |
31098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31099 | CFLAGS="$ac_save_CFLAGS" | |
31100 | ||
31101 | ||
49ad4d2c | 31102 | # Check whether we support AVX512f extensions |
31cfd832 TK |
31103 | |
31104 | ac_save_CFLAGS="$CFLAGS" | |
31105 | CFLAGS="-O2 -mavx512f" | |
31106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31107 | /* end confdefs.h. */ | |
31108 | ||
31109 | typedef double __m512d __attribute__ ((__vector_size__ (64))); | |
31110 | __m512d _mm512_add (__m512d a) | |
31111 | { | |
9db0a8c2 JJ |
31112 | __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4); |
31113 | /* For -m64/-mx32 also verify that code will work even if | |
31114 | the target uses call saved zmm16+ and needs to emit | |
31115 | unwind info for them (e.g. on mingw). See PR79127. */ | |
31116 | #ifdef __x86_64__ | |
31117 | asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19"); | |
31118 | #endif | |
31119 | return b; | |
31cfd832 TK |
31120 | } |
31121 | int | |
31122 | main () | |
31123 | { | |
31124 | ||
31125 | ; | |
31126 | return 0; | |
31127 | } | |
31128 | _ACEOF | |
31129 | if ac_fn_c_try_compile "$LINENO"; then : | |
31130 | ||
31131 | $as_echo "#define HAVE_AVX512F 1" >>confdefs.h | |
31132 | ||
31133 | fi | |
31134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31135 | CFLAGS="$ac_save_CFLAGS" | |
31136 | ||
31137 | ||
1d5cf7fc TK |
31138 | # Check for FMA3 extensions |
31139 | ||
31140 | ac_save_CFLAGS="$CFLAGS" | |
31141 | CFLAGS="-O2 -mfma -mno-fma4" | |
31142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31143 | /* end confdefs.h. */ | |
31144 | ||
9698e1bb RO |
31145 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
31146 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
31147 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
1d5cf7fc | 31148 | { |
9698e1bb RO |
31149 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
31150 | (__v4sf)__B, | |
31151 | (__v4sf)__C); | |
1d5cf7fc TK |
31152 | } |
31153 | int | |
31154 | main () | |
31155 | { | |
31156 | ||
31157 | ; | |
31158 | return 0; | |
31159 | } | |
31160 | _ACEOF | |
31161 | if ac_fn_c_try_compile "$LINENO"; then : | |
31162 | ||
31163 | $as_echo "#define HAVE_FMA3 1" >>confdefs.h | |
31164 | ||
31165 | fi | |
31166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31167 | CFLAGS="$ac_save_CFLAGS" | |
31168 | ||
31169 | ||
31170 | # Check for FMA4 extensions | |
31171 | ||
31172 | ac_save_CFLAGS="$CFLAGS" | |
31173 | CFLAGS="-O2 -mfma4 -mno-fma" | |
31174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31175 | /* end confdefs.h. */ | |
31176 | ||
9698e1bb RO |
31177 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
31178 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
31179 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
1d5cf7fc | 31180 | { |
9698e1bb RO |
31181 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
31182 | (__v4sf)__B, | |
31183 | (__v4sf)__C); | |
1d5cf7fc TK |
31184 | } |
31185 | int | |
31186 | main () | |
31187 | { | |
31188 | ||
31189 | ; | |
31190 | return 0; | |
31191 | } | |
31192 | _ACEOF | |
31193 | if ac_fn_c_try_compile "$LINENO"; then : | |
31194 | ||
31195 | $as_echo "#define HAVE_FMA4 1" >>confdefs.h | |
31196 | ||
31197 | fi | |
31198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31199 | CFLAGS="$ac_save_CFLAGS" | |
31200 | ||
31201 | ||
31202 | # Check if AVX128 works | |
31203 | ||
31204 | ac_save_CFLAGS="$CFLAGS" | |
31205 | CFLAGS="-O2 -mavx -mprefer-avx128" | |
31206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31207 | /* end confdefs.h. */ | |
31208 | ||
31209 | void foo() | |
31210 | { | |
31211 | } | |
31212 | int | |
31213 | main () | |
31214 | { | |
31215 | ||
31216 | ; | |
31217 | return 0; | |
31218 | } | |
31219 | _ACEOF | |
31220 | if ac_fn_c_try_compile "$LINENO"; then : | |
31221 | ||
31222 | $as_echo "#define HAVE_AVX128 1" >>confdefs.h | |
31223 | ||
31224 | if true; then | |
31225 | HAVE_AVX128_TRUE= | |
31226 | HAVE_AVX128_FALSE='#' | |
31227 | else | |
31228 | HAVE_AVX128_TRUE='#' | |
31229 | HAVE_AVX128_FALSE= | |
31230 | fi | |
31231 | ||
5596d26a TK |
31232 | else |
31233 | if false; then | |
31234 | HAVE_AVX128_TRUE= | |
31235 | HAVE_AVX128_FALSE='#' | |
31236 | else | |
31237 | HAVE_AVX128_TRUE='#' | |
31238 | HAVE_AVX128_FALSE= | |
31239 | fi | |
31240 | ||
1d5cf7fc TK |
31241 | fi |
31242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31243 | CFLAGS="$ac_save_CFLAGS" | |
31244 | ||
31245 | ||
3c36aa6b JJ |
31246 | # Determine what GCC version number to use in filesystem paths. |
31247 | ||
31248 | get_gcc_base_ver="cat" | |
31249 | ||
31250 | # Check whether --with-gcc-major-version-only was given. | |
31251 | if test "${with_gcc_major_version_only+set}" = set; then : | |
31252 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
001ddaa8 | 31253 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
31254 | fi |
31255 | ||
31256 | fi | |
31257 | ||
31258 | ||
31259 | ||
31260 | ||
6de9cd9a DN |
31261 | cat >confcache <<\_ACEOF |
31262 | # This file is a shell script that caches the results of configure | |
31263 | # tests run on this system so they can be shared between configure | |
31264 | # scripts and configure runs, see configure's option --config-cache. | |
31265 | # It is not useful on other systems. If it contains results you don't | |
31266 | # want to keep, you may remove or edit it. | |
31267 | # | |
31268 | # config.status only pays attention to the cache file if you give it | |
31269 | # the --recheck option to rerun configure. | |
31270 | # | |
31271 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31272 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31273 | # following values. | |
31274 | ||
31275 | _ACEOF | |
31276 | ||
31277 | # The following way of writing the cache mishandles newlines in values, | |
31278 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 31279 | # So, we kill variables containing newlines. |
6de9cd9a DN |
31280 | # Ultrix sh set writes to stderr and can't be redirected directly, |
31281 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
31282 | ( |
31283 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
31284 | eval ac_val=\$$ac_var | |
31285 | case $ac_val in #( | |
31286 | *${as_nl}*) | |
31287 | case $ac_var in #( | |
31288 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
31289 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
31290 | esac | |
31291 | case $ac_var in #( | |
31292 | _ | IFS | as_nl) ;; #( | |
31293 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
31294 | *) { eval $ac_var=; unset $ac_var;} ;; | |
31295 | esac ;; | |
31296 | esac | |
31297 | done | |
31298 | ||
6de9cd9a | 31299 | (set) 2>&1 | |
5213506e RW |
31300 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
31301 | *${as_nl}ac_space=\ *) | |
31302 | # `set' does not quote correctly, so add quotes: double-quote | |
31303 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
6de9cd9a DN |
31304 | sed -n \ |
31305 | "s/'/'\\\\''/g; | |
31306 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 31307 | ;; #( |
6de9cd9a DN |
31308 | *) |
31309 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 31310 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
6de9cd9a | 31311 | ;; |
5213506e RW |
31312 | esac | |
31313 | sort | |
31314 | ) | | |
6de9cd9a | 31315 | sed ' |
5213506e | 31316 | /^ac_cv_env_/b end |
6de9cd9a | 31317 | t clear |
5213506e | 31318 | :clear |
6de9cd9a DN |
31319 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
31320 | t end | |
5213506e RW |
31321 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
31322 | :end' >>confcache | |
31323 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
31324 | if test -w "$cache_file"; then | |
22e05272 | 31325 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
31326 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
31327 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
31328 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
31329 | cat confcache >"$cache_file" | |
31330 | else | |
31331 | case $cache_file in #( | |
31332 | */* | ?:*) | |
31333 | mv -f confcache "$cache_file"$$ && | |
31334 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
31335 | *) | |
31336 | mv -f confcache "$cache_file" ;; | |
31337 | esac | |
31338 | fi | |
31339 | fi | |
6de9cd9a | 31340 | else |
5213506e RW |
31341 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
31342 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6de9cd9a DN |
31343 | fi |
31344 | fi | |
31345 | rm -f confcache | |
31346 | ||
96b8a615 AJ |
31347 | if test ${multilib} = yes; then |
31348 | multilib_arg="--enable-multilib" | |
6de9cd9a | 31349 | else |
96b8a615 | 31350 | multilib_arg= |
6de9cd9a | 31351 | fi |
6de9cd9a | 31352 | |
1ec601bf FXC |
31353 | # Write our Makefile and spec file. |
31354 | ac_config_files="$ac_config_files Makefile libgfortran.spec" | |
96b8a615 | 31355 | |
6de9cd9a DN |
31356 | cat >confcache <<\_ACEOF |
31357 | # This file is a shell script that caches the results of configure | |
31358 | # tests run on this system so they can be shared between configure | |
31359 | # scripts and configure runs, see configure's option --config-cache. | |
31360 | # It is not useful on other systems. If it contains results you don't | |
31361 | # want to keep, you may remove or edit it. | |
31362 | # | |
31363 | # config.status only pays attention to the cache file if you give it | |
31364 | # the --recheck option to rerun configure. | |
31365 | # | |
31366 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31367 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31368 | # following values. | |
31369 | ||
31370 | _ACEOF | |
31371 | ||
31372 | # The following way of writing the cache mishandles newlines in values, | |
31373 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 31374 | # So, we kill variables containing newlines. |
6de9cd9a DN |
31375 | # Ultrix sh set writes to stderr and can't be redirected directly, |
31376 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
31377 | ( |
31378 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
31379 | eval ac_val=\$$ac_var | |
31380 | case $ac_val in #( | |
31381 | *${as_nl}*) | |
31382 | case $ac_var in #( | |
31383 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
31384 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
31385 | esac | |
31386 | case $ac_var in #( | |
31387 | _ | IFS | as_nl) ;; #( | |
31388 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
31389 | *) { eval $ac_var=; unset $ac_var;} ;; | |
31390 | esac ;; | |
31391 | esac | |
31392 | done | |
31393 | ||
6de9cd9a | 31394 | (set) 2>&1 | |
5213506e RW |
31395 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
31396 | *${as_nl}ac_space=\ *) | |
31397 | # `set' does not quote correctly, so add quotes: double-quote | |
31398 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
6de9cd9a DN |
31399 | sed -n \ |
31400 | "s/'/'\\\\''/g; | |
31401 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 31402 | ;; #( |
6de9cd9a DN |
31403 | *) |
31404 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 31405 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
6de9cd9a | 31406 | ;; |
5213506e RW |
31407 | esac | |
31408 | sort | |
31409 | ) | | |
6de9cd9a | 31410 | sed ' |
5213506e | 31411 | /^ac_cv_env_/b end |
6de9cd9a | 31412 | t clear |
5213506e | 31413 | :clear |
6de9cd9a DN |
31414 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
31415 | t end | |
5213506e RW |
31416 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
31417 | :end' >>confcache | |
31418 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
31419 | if test -w "$cache_file"; then | |
22e05272 | 31420 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
31421 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
31422 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
31423 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
31424 | cat confcache >"$cache_file" | |
31425 | else | |
31426 | case $cache_file in #( | |
31427 | */* | ?:*) | |
31428 | mv -f confcache "$cache_file"$$ && | |
31429 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
31430 | *) | |
31431 | mv -f confcache "$cache_file" ;; | |
31432 | esac | |
31433 | fi | |
31434 | fi | |
6de9cd9a | 31435 | else |
5213506e RW |
31436 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
31437 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6de9cd9a DN |
31438 | fi |
31439 | fi | |
31440 | rm -f confcache | |
31441 | ||
31442 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
31443 | # Let make expand exec_prefix. | |
31444 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
31445 | ||
6de9cd9a DN |
31446 | DEFS=-DHAVE_CONFIG_H |
31447 | ||
31448 | ac_libobjs= | |
31449 | ac_ltlibobjs= | |
22e05272 | 31450 | U= |
6de9cd9a DN |
31451 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
31452 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
31453 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
31454 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
31455 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
31456 | # will be set to the directory where LIBOBJS objects are built. | |
31457 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
31458 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
6de9cd9a DN |
31459 | done |
31460 | LIBOBJS=$ac_libobjs | |
31461 | ||
31462 | LTLIBOBJS=$ac_ltlibobjs | |
31463 | ||
31464 | ||
b808ac33 | 31465 | if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then |
22e05272 | 31466 | as_fn_error $? "conditional \"onestep\" was never defined. |
5213506e RW |
31467 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31468 | fi | |
22e05272 JM |
31469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
31470 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
31471 | if test -n "$am_sleep_pid"; then | |
31472 | # Hide warnings about reused PIDs. | |
31473 | wait $am_sleep_pid 2>/dev/null | |
31474 | fi | |
31475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
31476 | $as_echo "done" >&6; } | |
5213506e RW |
31477 | if test -n "$EXEEXT"; then |
31478 | am__EXEEXT_TRUE= | |
31479 | am__EXEEXT_FALSE='#' | |
31480 | else | |
31481 | am__EXEEXT_TRUE='#' | |
31482 | am__EXEEXT_FALSE= | |
b808ac33 | 31483 | fi |
5213506e | 31484 | |
6de9cd9a | 31485 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22e05272 | 31486 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
5213506e | 31487 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
6de9cd9a | 31488 | fi |
679c0f9a | 31489 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
22e05272 | 31490 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
5213506e | 31491 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
679c0f9a TT |
31492 | fi |
31493 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
22e05272 | 31494 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
5213506e | 31495 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
679c0f9a | 31496 | fi |
21be0a5a | 31497 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
22e05272 | 31498 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
21be0a5a JB |
31499 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31500 | fi | |
49ad4d2c TK |
31501 | if test -z "${HAVE_REAL_17_TRUE}" && test -z "${HAVE_REAL_17_FALSE}"; then |
31502 | as_fn_error $? "conditional \"HAVE_REAL_17\" was never defined. | |
31503 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31504 | fi | |
c0e7e2bf | 31505 | if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then |
22e05272 | 31506 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined. |
5213506e | 31507 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
c0e7e2bf | 31508 | fi |
49ea7a0e | 31509 | if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then |
22e05272 | 31510 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined. |
49ea7a0e RO |
31511 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31512 | fi | |
31513 | if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then | |
22e05272 | 31514 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined. |
49ea7a0e RO |
31515 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31516 | fi | |
ee95f928 | 31517 | if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then |
22e05272 | 31518 | as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined. |
ee95f928 BS |
31519 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31520 | fi | |
66dbcf2d | 31521 | if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then |
22e05272 | 31522 | as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined. |
66dbcf2d RO |
31523 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31524 | fi | |
8b198102 | 31525 | if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then |
22e05272 | 31526 | as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined. |
8b198102 FXC |
31527 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31528 | fi | |
1d5cf7fc | 31529 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
22e05272 | 31530 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
1d5cf7fc TK |
31531 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31532 | fi | |
5596d26a | 31533 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
22e05272 | 31534 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
5596d26a TK |
31535 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31536 | fi | |
6de9cd9a | 31537 | |
22e05272 | 31538 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 31539 | ac_write_fail=0 |
6de9cd9a DN |
31540 | ac_clean_files_save=$ac_clean_files |
31541 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
31542 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
31543 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
31544 | as_write_fail=0 | |
31545 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
6de9cd9a DN |
31546 | #! $SHELL |
31547 | # Generated by $as_me. | |
31548 | # Run this file to recreate the current configuration. | |
31549 | # Compiler output produced by configure, useful for debugging | |
31550 | # configure, is in config.log if it exists. | |
31551 | ||
31552 | debug=false | |
31553 | ac_cs_recheck=false | |
31554 | ac_cs_silent=false | |
6de9cd9a | 31555 | |
5213506e RW |
31556 | SHELL=\${CONFIG_SHELL-$SHELL} |
31557 | export SHELL | |
31558 | _ASEOF | |
31559 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
31560 | ## -------------------- ## | |
31561 | ## M4sh Initialization. ## | |
31562 | ## -------------------- ## | |
31563 | ||
31564 | # Be more Bourne compatible | |
31565 | DUALCASE=1; export DUALCASE # for MKS sh | |
31566 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
6de9cd9a DN |
31567 | emulate sh |
31568 | NULLCMD=: | |
5213506e | 31569 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
6de9cd9a DN |
31570 | # is contrary to our usage. Disable this feature. |
31571 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
31572 | setopt NO_GLOB_SUBST |
31573 | else | |
31574 | case `(set -o) 2>/dev/null` in #( | |
31575 | *posix*) : | |
31576 | set -o posix ;; #( | |
31577 | *) : | |
31578 | ;; | |
31579 | esac | |
6de9cd9a | 31580 | fi |
6de9cd9a | 31581 | |
5213506e RW |
31582 | |
31583 | as_nl=' | |
31584 | ' | |
31585 | export as_nl | |
31586 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
31587 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
31588 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
31589 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
31590 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
31591 | # but without wasting forks for bash or zsh. | |
31592 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
31593 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
31594 | as_echo='print -r --' | |
31595 | as_echo_n='print -rn --' | |
31596 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
31597 | as_echo='printf %s\n' | |
31598 | as_echo_n='printf %s' | |
31599 | else | |
31600 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
31601 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
31602 | as_echo_n='/usr/ucb/echo -n' | |
31603 | else | |
31604 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
31605 | as_echo_n_body='eval | |
31606 | arg=$1; | |
31607 | case $arg in #( | |
31608 | *"$as_nl"*) | |
31609 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
31610 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
31611 | esac; | |
31612 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
31613 | ' | |
31614 | export as_echo_n_body | |
31615 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
31616 | fi | |
31617 | export as_echo_body | |
31618 | as_echo='sh -c $as_echo_body as_echo' | |
31619 | fi | |
31620 | ||
31621 | # The user is always right. | |
31622 | if test "${PATH_SEPARATOR+set}" != set; then | |
31623 | PATH_SEPARATOR=: | |
31624 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
31625 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
31626 | PATH_SEPARATOR=';' | |
31627 | } | |
6de9cd9a DN |
31628 | fi |
31629 | ||
31630 | ||
5213506e RW |
31631 | # IFS |
31632 | # We need space, tab and new line, in precisely that order. Quoting is | |
31633 | # there to prevent editors from complaining about space-tab. | |
31634 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
31635 | # splitting by setting IFS to empty value.) | |
31636 | IFS=" "" $as_nl" | |
31637 | ||
31638 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 31639 | as_myself= |
5213506e RW |
31640 | case $0 in #(( |
31641 | *[\\/]* ) as_myself=$0 ;; | |
31642 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31643 | for as_dir in $PATH | |
31644 | do | |
31645 | IFS=$as_save_IFS | |
31646 | test -z "$as_dir" && as_dir=. | |
31647 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
31648 | done | |
31649 | IFS=$as_save_IFS | |
31650 | ||
31651 | ;; | |
31652 | esac | |
31653 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
31654 | # in which case we are not to be found in the path. | |
31655 | if test "x$as_myself" = x; then | |
31656 | as_myself=$0 | |
31657 | fi | |
31658 | if test ! -f "$as_myself"; then | |
31659 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
31660 | exit 1 | |
31661 | fi | |
31662 | ||
31663 | # Unset variables that we do not need and which cause bugs (e.g. in | |
31664 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
31665 | # suppresses any "Segmentation fault" message there. '((' could | |
31666 | # trigger a bug in pdksh 5.2.14. | |
31667 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
31668 | do eval test x\${$as_var+set} = xset \ | |
31669 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
31670 | done | |
6de9cd9a DN |
31671 | PS1='$ ' |
31672 | PS2='> ' | |
31673 | PS4='+ ' | |
31674 | ||
31675 | # NLS nuisances. | |
5213506e RW |
31676 | LC_ALL=C |
31677 | export LC_ALL | |
31678 | LANGUAGE=C | |
31679 | export LANGUAGE | |
31680 | ||
31681 | # CDPATH. | |
31682 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
31683 | ||
31684 | ||
22e05272 JM |
31685 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
31686 | # ---------------------------------------- | |
5213506e RW |
31687 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
31688 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 31689 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
31690 | as_fn_error () |
31691 | { | |
22e05272 JM |
31692 | as_status=$1; test $as_status -eq 0 && as_status=1 |
31693 | if test "$4"; then | |
31694 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
31695 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
6de9cd9a | 31696 | fi |
22e05272 | 31697 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
31698 | as_fn_exit $as_status |
31699 | } # as_fn_error | |
31700 | ||
31701 | ||
31702 | # as_fn_set_status STATUS | |
31703 | # ----------------------- | |
31704 | # Set $? to STATUS, without forking. | |
31705 | as_fn_set_status () | |
31706 | { | |
31707 | return $1 | |
31708 | } # as_fn_set_status | |
31709 | ||
31710 | # as_fn_exit STATUS | |
31711 | # ----------------- | |
31712 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
31713 | as_fn_exit () | |
31714 | { | |
31715 | set +e | |
31716 | as_fn_set_status $1 | |
31717 | exit $1 | |
31718 | } # as_fn_exit | |
31719 | ||
31720 | # as_fn_unset VAR | |
31721 | # --------------- | |
31722 | # Portably unset VAR. | |
31723 | as_fn_unset () | |
31724 | { | |
31725 | { eval $1=; unset $1;} | |
31726 | } | |
31727 | as_unset=as_fn_unset | |
31728 | # as_fn_append VAR VALUE | |
31729 | # ---------------------- | |
31730 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
31731 | # advantage of any shell optimizations that allow amortized linear growth over | |
31732 | # repeated appends, instead of the typical quadratic growth present in naive | |
31733 | # implementations. | |
31734 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
31735 | eval 'as_fn_append () | |
31736 | { | |
31737 | eval $1+=\$2 | |
31738 | }' | |
31739 | else | |
31740 | as_fn_append () | |
31741 | { | |
31742 | eval $1=\$$1\$2 | |
31743 | } | |
31744 | fi # as_fn_append | |
31745 | ||
31746 | # as_fn_arith ARG... | |
31747 | # ------------------ | |
31748 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
31749 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
31750 | # must be portable across $(()) and expr. | |
31751 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
31752 | eval 'as_fn_arith () | |
31753 | { | |
31754 | as_val=$(( $* )) | |
31755 | }' | |
31756 | else | |
31757 | as_fn_arith () | |
31758 | { | |
31759 | as_val=`expr "$@" || test $? -eq 1` | |
31760 | } | |
31761 | fi # as_fn_arith | |
6de9cd9a | 31762 | |
5213506e RW |
31763 | |
31764 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
31765 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6de9cd9a DN |
31766 | as_expr=expr |
31767 | else | |
31768 | as_expr=false | |
31769 | fi | |
31770 | ||
5213506e | 31771 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6de9cd9a DN |
31772 | as_basename=basename |
31773 | else | |
31774 | as_basename=false | |
31775 | fi | |
31776 | ||
5213506e RW |
31777 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
31778 | as_dirname=dirname | |
31779 | else | |
31780 | as_dirname=false | |
31781 | fi | |
6de9cd9a | 31782 | |
5213506e | 31783 | as_me=`$as_basename -- "$0" || |
6de9cd9a DN |
31784 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
31785 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
31786 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
31787 | $as_echo X/"$0" | | |
31788 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
31789 | s//\1/ | |
31790 | q | |
31791 | } | |
31792 | /^X\/\(\/\/\)$/{ | |
31793 | s//\1/ | |
31794 | q | |
31795 | } | |
31796 | /^X\/\(\/\).*/{ | |
31797 | s//\1/ | |
31798 | q | |
31799 | } | |
31800 | s/.*/./; q'` | |
38d24731 | 31801 | |
38d24731 RW |
31802 | # Avoid depending upon Character Ranges. |
31803 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
31804 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
31805 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
31806 | as_cr_digits='0123456789' | |
31807 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
31808 | ||
5213506e RW |
31809 | ECHO_C= ECHO_N= ECHO_T= |
31810 | case `echo -n x` in #((((( | |
31811 | -n*) | |
31812 | case `echo 'xy\c'` in | |
31813 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
31814 | xy) ECHO_C='\c';; | |
31815 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
31816 | ECHO_T=' ';; | |
31817 | esac;; | |
31818 | *) | |
31819 | ECHO_N='-n';; | |
6de9cd9a DN |
31820 | esac |
31821 | ||
5213506e RW |
31822 | rm -f conf$$ conf$$.exe conf$$.file |
31823 | if test -d conf$$.dir; then | |
31824 | rm -f conf$$.dir/conf$$.file | |
6de9cd9a | 31825 | else |
5213506e RW |
31826 | rm -f conf$$.dir |
31827 | mkdir conf$$.dir 2>/dev/null | |
6de9cd9a | 31828 | fi |
5213506e RW |
31829 | if (echo >conf$$.file) 2>/dev/null; then |
31830 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
38d24731 | 31831 | as_ln_s='ln -s' |
5213506e RW |
31832 | # ... but there are two gotchas: |
31833 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
31834 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 31835 | # In both cases, we have to default to `cp -pR'. |
5213506e | 31836 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 31837 | as_ln_s='cp -pR' |
5213506e RW |
31838 | elif ln conf$$.file conf$$ 2>/dev/null; then |
31839 | as_ln_s=ln | |
31840 | else | |
22e05272 | 31841 | as_ln_s='cp -pR' |
38d24731 | 31842 | fi |
6de9cd9a | 31843 | else |
22e05272 | 31844 | as_ln_s='cp -pR' |
6de9cd9a | 31845 | fi |
5213506e RW |
31846 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
31847 | rmdir conf$$.dir 2>/dev/null | |
31848 | ||
31849 | ||
31850 | # as_fn_mkdir_p | |
31851 | # ------------- | |
31852 | # Create "$as_dir" as a directory, including parents if necessary. | |
31853 | as_fn_mkdir_p () | |
31854 | { | |
31855 | ||
31856 | case $as_dir in #( | |
31857 | -*) as_dir=./$as_dir;; | |
31858 | esac | |
31859 | test -d "$as_dir" || eval $as_mkdir_p || { | |
31860 | as_dirs= | |
31861 | while :; do | |
31862 | case $as_dir in #( | |
31863 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
31864 | *) as_qdir=$as_dir;; | |
31865 | esac | |
31866 | as_dirs="'$as_qdir' $as_dirs" | |
31867 | as_dir=`$as_dirname -- "$as_dir" || | |
31868 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
31869 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
31870 | X"$as_dir" : 'X\(//\)$' \| \ | |
31871 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
31872 | $as_echo X"$as_dir" | | |
31873 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
31874 | s//\1/ | |
31875 | q | |
31876 | } | |
31877 | /^X\(\/\/\)[^/].*/{ | |
31878 | s//\1/ | |
31879 | q | |
31880 | } | |
31881 | /^X\(\/\/\)$/{ | |
31882 | s//\1/ | |
31883 | q | |
31884 | } | |
31885 | /^X\(\/\).*/{ | |
31886 | s//\1/ | |
31887 | q | |
31888 | } | |
31889 | s/.*/./; q'` | |
31890 | test -d "$as_dir" && break | |
31891 | done | |
31892 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 31893 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 31894 | |
6de9cd9a | 31895 | |
5213506e | 31896 | } # as_fn_mkdir_p |
6de9cd9a | 31897 | if mkdir -p . 2>/dev/null; then |
5213506e | 31898 | as_mkdir_p='mkdir -p "$as_dir"' |
6de9cd9a DN |
31899 | else |
31900 | test -d ./-p && rmdir ./-p | |
31901 | as_mkdir_p=false | |
31902 | fi | |
31903 | ||
22e05272 JM |
31904 | |
31905 | # as_fn_executable_p FILE | |
31906 | # ----------------------- | |
31907 | # Test if FILE is an executable regular file. | |
31908 | as_fn_executable_p () | |
31909 | { | |
31910 | test -f "$1" && test -x "$1" | |
31911 | } # as_fn_executable_p | |
31912 | as_test_x='test -x' | |
31913 | as_executable_p=as_fn_executable_p | |
6de9cd9a DN |
31914 | |
31915 | # Sed expression to map a string onto a valid CPP name. | |
31916 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
31917 | ||
31918 | # Sed expression to map a string onto a valid variable name. | |
31919 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
31920 | ||
31921 | ||
6de9cd9a | 31922 | exec 6>&1 |
5213506e RW |
31923 | ## ----------------------------------- ## |
31924 | ## Main body of $CONFIG_STATUS script. ## | |
31925 | ## ----------------------------------- ## | |
31926 | _ASEOF | |
31927 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
31928 | ||
31929 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
31930 | # Save the log message, to keep $0 and so on meaningful, and to | |
6de9cd9a | 31931 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
31932 | # values after options handling. |
31933 | ac_log=" | |
0dce3ca1 | 31934 | This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was |
22e05272 | 31935 | generated by GNU Autoconf 2.69. Invocation command line was |
6de9cd9a DN |
31936 | |
31937 | CONFIG_FILES = $CONFIG_FILES | |
31938 | CONFIG_HEADERS = $CONFIG_HEADERS | |
31939 | CONFIG_LINKS = $CONFIG_LINKS | |
31940 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
31941 | $ $0 $@ | |
31942 | ||
5213506e RW |
31943 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
31944 | " | |
31945 | ||
6de9cd9a DN |
31946 | _ACEOF |
31947 | ||
5213506e RW |
31948 | case $ac_config_files in *" |
31949 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
31950 | esac | |
78511f8b | 31951 | |
5213506e RW |
31952 | case $ac_config_headers in *" |
31953 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
31954 | esac | |
38d24731 | 31955 | |
38d24731 | 31956 | |
5213506e RW |
31957 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
31958 | # Files that config.status was made for. | |
31959 | config_files="$ac_config_files" | |
31960 | config_headers="$ac_config_headers" | |
31961 | config_commands="$ac_config_commands" | |
6de9cd9a | 31962 | |
5213506e | 31963 | _ACEOF |
38d24731 | 31964 | |
5213506e | 31965 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6de9cd9a | 31966 | ac_cs_usage="\ |
5213506e RW |
31967 | \`$as_me' instantiates files and other configuration actions |
31968 | from templates according to the current configuration. Unless the files | |
31969 | and actions are specified as TAGs, all are instantiated by default. | |
6de9cd9a | 31970 | |
5213506e | 31971 | Usage: $0 [OPTION]... [TAG]... |
6de9cd9a DN |
31972 | |
31973 | -h, --help print this help, then exit | |
5213506e | 31974 | -V, --version print version number and configuration settings, then exit |
22e05272 | 31975 | --config print configuration, then exit |
5213506e RW |
31976 | -q, --quiet, --silent |
31977 | do not print progress messages | |
6de9cd9a DN |
31978 | -d, --debug don't remove temporary files |
31979 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
31980 | --file=FILE[:TEMPLATE] |
31981 | instantiate the configuration file FILE | |
31982 | --header=FILE[:TEMPLATE] | |
31983 | instantiate the configuration header FILE | |
6de9cd9a DN |
31984 | |
31985 | Configuration files: | |
31986 | $config_files | |
31987 | ||
31988 | Configuration headers: | |
31989 | $config_headers | |
31990 | ||
31991 | Configuration commands: | |
31992 | $config_commands | |
31993 | ||
5213506e RW |
31994 | Report bugs to the package provider. |
31995 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
31996 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
38d24731 | 31997 | |
5213506e RW |
31998 | _ACEOF |
31999 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 32000 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
6de9cd9a | 32001 | ac_cs_version="\\ |
0dce3ca1 | 32002 | GNU Fortran Runtime Library config.status 0.3 |
22e05272 JM |
32003 | configured by $0, generated by GNU Autoconf 2.69, |
32004 | with options \\"\$ac_cs_config\\" | |
6de9cd9a | 32005 | |
22e05272 | 32006 | Copyright (C) 2012 Free Software Foundation, Inc. |
6de9cd9a DN |
32007 | This config.status script is free software; the Free Software Foundation |
32008 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
32009 | |
32010 | ac_pwd='$ac_pwd' | |
32011 | srcdir='$srcdir' | |
32012 | INSTALL='$INSTALL' | |
32013 | MKDIR_P='$MKDIR_P' | |
32014 | AWK='$AWK' | |
32015 | test -n "\$AWK" || AWK=awk | |
6de9cd9a DN |
32016 | _ACEOF |
32017 | ||
5213506e RW |
32018 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
32019 | # The default lists apply if the user does not specify any file. | |
6de9cd9a DN |
32020 | ac_need_defaults=: |
32021 | while test $# != 0 | |
32022 | do | |
32023 | case $1 in | |
22e05272 | 32024 | --*=?*) |
5213506e RW |
32025 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
32026 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
6de9cd9a DN |
32027 | ac_shift=: |
32028 | ;; | |
22e05272 JM |
32029 | --*=) |
32030 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
32031 | ac_optarg= | |
32032 | ac_shift=: | |
32033 | ;; | |
5213506e | 32034 | *) |
6de9cd9a DN |
32035 | ac_option=$1 |
32036 | ac_optarg=$2 | |
32037 | ac_shift=shift | |
32038 | ;; | |
6de9cd9a DN |
32039 | esac |
32040 | ||
32041 | case $ac_option in | |
32042 | # Handling of the options. | |
6de9cd9a DN |
32043 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
32044 | ac_cs_recheck=: ;; | |
5213506e RW |
32045 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
32046 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
32047 | --config | --confi | --conf | --con | --co | --c ) |
32048 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 32049 | --debug | --debu | --deb | --de | --d | -d ) |
6de9cd9a DN |
32050 | debug=: ;; |
32051 | --file | --fil | --fi | --f ) | |
32052 | $ac_shift | |
5213506e RW |
32053 | case $ac_optarg in |
32054 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 32055 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
32056 | esac |
32057 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
6de9cd9a DN |
32058 | ac_need_defaults=false;; |
32059 | --header | --heade | --head | --hea ) | |
32060 | $ac_shift | |
5213506e RW |
32061 | case $ac_optarg in |
32062 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
32063 | esac | |
32064 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
6de9cd9a | 32065 | ac_need_defaults=false;; |
5213506e RW |
32066 | --he | --h) |
32067 | # Conflict between --help and --header | |
22e05272 | 32068 | as_fn_error $? "ambiguous option: \`$1' |
5213506e RW |
32069 | Try \`$0 --help' for more information.";; |
32070 | --help | --hel | -h ) | |
32071 | $as_echo "$ac_cs_usage"; exit ;; | |
6de9cd9a DN |
32072 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
32073 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
32074 | ac_cs_silent=: ;; | |
32075 | ||
32076 | # This is an error. | |
22e05272 | 32077 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 32078 | Try \`$0 --help' for more information." ;; |
6de9cd9a | 32079 | |
5213506e RW |
32080 | *) as_fn_append ac_config_targets " $1" |
32081 | ac_need_defaults=false ;; | |
6de9cd9a DN |
32082 | |
32083 | esac | |
32084 | shift | |
32085 | done | |
32086 | ||
32087 | ac_configure_extra_args= | |
32088 | ||
32089 | if $ac_cs_silent; then | |
32090 | exec 6>/dev/null | |
32091 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
32092 | fi | |
32093 | ||
32094 | _ACEOF | |
5213506e | 32095 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6de9cd9a | 32096 | if \$ac_cs_recheck; then |
22e05272 | 32097 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
32098 | shift |
32099 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
32100 | CONFIG_SHELL='$SHELL' | |
32101 | export CONFIG_SHELL | |
32102 | exec "\$@" | |
6de9cd9a DN |
32103 | fi |
32104 | ||
1cf3d07d | 32105 | _ACEOF |
5213506e RW |
32106 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
32107 | exec 5>>config.log | |
32108 | { | |
32109 | echo | |
32110 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
32111 | ## Running $as_me. ## | |
32112 | _ASBOX | |
32113 | $as_echo "$ac_log" | |
32114 | } >&5 | |
1cf3d07d | 32115 | |
5213506e RW |
32116 | _ACEOF |
32117 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1cf3d07d | 32118 | # |
5213506e | 32119 | # INIT-COMMANDS |
1cf3d07d SE |
32120 | # |
32121 | ||
1cf3d07d SE |
32122 | srcdir="$srcdir" |
32123 | host="$host" | |
32124 | target="$target" | |
32125 | with_multisubdir="$with_multisubdir" | |
32126 | with_multisrctop="$with_multisrctop" | |
32127 | with_target_subdir="$with_target_subdir" | |
32128 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
32129 | multi_basedir="$multi_basedir" | |
32130 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
32131 | CC="$CC" | |
2017c370 JB |
32132 | CXX="$CXX" |
32133 | GFORTRAN="$GFORTRAN" | |
22e05272 | 32134 | GDC="$GDC" |
1cf3d07d SE |
32135 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
32136 | ||
32137 | ||
32138 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
32139 | # if CDPATH is set. | |
32140 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
32141 | ||
32142 | sed_quote_subst='$sed_quote_subst' | |
32143 | double_quote_subst='$double_quote_subst' | |
32144 | delay_variable_subst='$delay_variable_subst' | |
66dbcf2d RO |
32145 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
32146 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
32147 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
32148 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
32149 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
32150 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
32151 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
32152 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
32153 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
32154 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
32155 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
32156 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
32157 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
32158 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
32159 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
32160 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
32161 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
32162 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
32163 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
32164 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
32165 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
32166 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
32167 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
32168 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
32169 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
32170 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
32171 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
32172 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
32173 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
32174 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
32175 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
32176 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
32177 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
32178 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
32179 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
32180 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
32181 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
32182 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32183 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32184 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
32185 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
32186 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
32187 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
32188 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
32189 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
32190 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
32191 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
32192 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
32193 | 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"`' | |
32194 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
32195 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
32196 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
32197 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
32198 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
32199 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
32200 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
32201 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
32202 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
32203 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
32204 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
32205 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
32206 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
32207 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
32208 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
32209 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
32210 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
32211 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
32212 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
32213 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
32214 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
32215 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
32216 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
32217 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
32218 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
32219 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
32220 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
32221 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
32222 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
32223 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
32224 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
32225 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
32226 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
32227 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
32228 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
32229 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
32230 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
32231 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
32232 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
32233 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
32234 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
32235 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
32236 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
32237 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
32238 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
32239 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
32240 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
32241 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
32242 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
32243 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
32244 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
32245 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
32246 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
32247 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
32248 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
32249 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
32250 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
32251 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
32252 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32253 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32254 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
32255 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
32256 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
32257 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
32258 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
32259 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
32260 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
32261 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
32262 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
32263 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
32264 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
32265 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
32266 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
32267 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
32268 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
32269 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
32270 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
32271 | LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' | |
32272 | reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' | |
32273 | reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32274 | old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32275 | compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' | |
32276 | GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' | |
32277 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' | |
32278 | lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' | |
32279 | lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' | |
32280 | lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' | |
32281 | lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' | |
32282 | archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' | |
32283 | enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' | |
32284 | export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
32285 | whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
32286 | compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' | |
32287 | old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32288 | old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32289 | archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32290 | archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32291 | module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32292 | module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32293 | with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' | |
32294 | allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
32295 | no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
32296 | hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
32297 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' | |
32298 | hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' | |
32299 | hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' | |
32300 | hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' | |
32301 | hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' | |
32302 | hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' | |
32303 | hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' | |
32304 | inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' | |
32305 | link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' | |
32306 | fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' | |
32307 | always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' | |
32308 | export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32309 | exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
32310 | include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
32311 | prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32312 | file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' | |
32313 | hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' | |
32314 | compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' | |
32315 | predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
32316 | postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
32317 | predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' | |
32318 | postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' | |
32319 | compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' | |
1cf3d07d SE |
32320 | |
32321 | LTCC='$LTCC' | |
32322 | LTCFLAGS='$LTCFLAGS' | |
32323 | compiler='$compiler_DEFAULT' | |
32324 | ||
43e02a8a RW |
32325 | # A function that is used when there is no print builtin or printf. |
32326 | func_fallback_echo () | |
32327 | { | |
32328 | eval 'cat <<_LTECHO_EOF | |
32329 | \$1 | |
32330 | _LTECHO_EOF' | |
32331 | } | |
32332 | ||
1cf3d07d | 32333 | # Quote evaled strings. |
66dbcf2d | 32334 | for var in SED \ |
1cf3d07d SE |
32335 | GREP \ |
32336 | EGREP \ | |
32337 | FGREP \ | |
66dbcf2d RO |
32338 | SHELL \ |
32339 | ECHO \ | |
1cf3d07d SE |
32340 | LD \ |
32341 | NM \ | |
32342 | LN_S \ | |
32343 | lt_SP2NL \ | |
32344 | lt_NL2SP \ | |
32345 | reload_flag \ | |
d58dead8 | 32346 | OBJDUMP \ |
1cf3d07d SE |
32347 | deplibs_check_method \ |
32348 | file_magic_cmd \ | |
32349 | AR \ | |
32350 | AR_FLAGS \ | |
32351 | STRIP \ | |
32352 | RANLIB \ | |
32353 | CC \ | |
32354 | CFLAGS \ | |
32355 | compiler \ | |
32356 | lt_cv_sys_global_symbol_pipe \ | |
32357 | lt_cv_sys_global_symbol_to_cdecl \ | |
32358 | lt_cv_sys_global_symbol_to_c_name_address \ | |
d58dead8 | 32359 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
1cf3d07d SE |
32360 | lt_prog_compiler_no_builtin_flag \ |
32361 | lt_prog_compiler_wl \ | |
32362 | lt_prog_compiler_pic \ | |
32363 | lt_prog_compiler_static \ | |
32364 | lt_cv_prog_compiler_c_o \ | |
32365 | need_locks \ | |
d58dead8 PG |
32366 | DSYMUTIL \ |
32367 | NMEDIT \ | |
32368 | LIPO \ | |
32369 | OTOOL \ | |
32370 | OTOOL64 \ | |
1cf3d07d SE |
32371 | shrext_cmds \ |
32372 | export_dynamic_flag_spec \ | |
32373 | whole_archive_flag_spec \ | |
32374 | compiler_needs_object \ | |
32375 | with_gnu_ld \ | |
32376 | allow_undefined_flag \ | |
32377 | no_undefined_flag \ | |
32378 | hardcode_libdir_flag_spec \ | |
32379 | hardcode_libdir_flag_spec_ld \ | |
32380 | hardcode_libdir_separator \ | |
32381 | fix_srcfile_path \ | |
32382 | exclude_expsyms \ | |
32383 | include_expsyms \ | |
32384 | file_list_spec \ | |
32385 | variables_saved_for_relink \ | |
32386 | libname_spec \ | |
32387 | library_names_spec \ | |
32388 | soname_spec \ | |
43e02a8a | 32389 | install_override_mode \ |
1cf3d07d SE |
32390 | finish_eval \ |
32391 | old_striplib \ | |
32392 | striplib \ | |
d58dead8 | 32393 | compiler_lib_search_dirs \ |
1cf3d07d SE |
32394 | predep_objects \ |
32395 | postdep_objects \ | |
32396 | predeps \ | |
32397 | postdeps \ | |
32398 | compiler_lib_search_path \ | |
32399 | LD_FC \ | |
43e02a8a | 32400 | reload_flag_FC \ |
1cf3d07d SE |
32401 | compiler_FC \ |
32402 | lt_prog_compiler_no_builtin_flag_FC \ | |
32403 | lt_prog_compiler_wl_FC \ | |
32404 | lt_prog_compiler_pic_FC \ | |
32405 | lt_prog_compiler_static_FC \ | |
32406 | lt_cv_prog_compiler_c_o_FC \ | |
32407 | export_dynamic_flag_spec_FC \ | |
32408 | whole_archive_flag_spec_FC \ | |
32409 | compiler_needs_object_FC \ | |
32410 | with_gnu_ld_FC \ | |
32411 | allow_undefined_flag_FC \ | |
32412 | no_undefined_flag_FC \ | |
32413 | hardcode_libdir_flag_spec_FC \ | |
32414 | hardcode_libdir_flag_spec_ld_FC \ | |
32415 | hardcode_libdir_separator_FC \ | |
32416 | fix_srcfile_path_FC \ | |
32417 | exclude_expsyms_FC \ | |
32418 | include_expsyms_FC \ | |
32419 | file_list_spec_FC \ | |
d58dead8 | 32420 | compiler_lib_search_dirs_FC \ |
1cf3d07d SE |
32421 | predep_objects_FC \ |
32422 | postdep_objects_FC \ | |
32423 | predeps_FC \ | |
32424 | postdeps_FC \ | |
32425 | compiler_lib_search_path_FC; do | |
43e02a8a | 32426 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 32427 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 32428 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
32429 | ;; |
32430 | *) | |
32431 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
32432 | ;; | |
32433 | esac | |
32434 | done | |
32435 | ||
32436 | # Double-quote double-evaled strings. | |
32437 | for var in reload_cmds \ | |
32438 | old_postinstall_cmds \ | |
32439 | old_postuninstall_cmds \ | |
32440 | old_archive_cmds \ | |
32441 | extract_expsyms_cmds \ | |
32442 | old_archive_from_new_cmds \ | |
32443 | old_archive_from_expsyms_cmds \ | |
32444 | archive_cmds \ | |
32445 | archive_expsym_cmds \ | |
32446 | module_cmds \ | |
32447 | module_expsym_cmds \ | |
32448 | export_symbols_cmds \ | |
32449 | prelink_cmds \ | |
32450 | postinstall_cmds \ | |
32451 | postuninstall_cmds \ | |
32452 | finish_cmds \ | |
32453 | sys_lib_search_path_spec \ | |
32454 | sys_lib_dlsearch_path_spec \ | |
43e02a8a | 32455 | reload_cmds_FC \ |
1cf3d07d SE |
32456 | old_archive_cmds_FC \ |
32457 | old_archive_from_new_cmds_FC \ | |
32458 | old_archive_from_expsyms_cmds_FC \ | |
32459 | archive_cmds_FC \ | |
32460 | archive_expsym_cmds_FC \ | |
32461 | module_cmds_FC \ | |
32462 | module_expsym_cmds_FC \ | |
32463 | export_symbols_cmds_FC \ | |
32464 | prelink_cmds_FC; do | |
43e02a8a | 32465 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 32466 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 32467 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
32468 | ;; |
32469 | *) | |
32470 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
32471 | ;; | |
32472 | esac | |
32473 | done | |
32474 | ||
1cf3d07d SE |
32475 | ac_aux_dir='$ac_aux_dir' |
32476 | xsi_shell='$xsi_shell' | |
32477 | lt_shell_append='$lt_shell_append' | |
32478 | ||
32479 | # See if we are running on zsh, and set the options which allow our | |
32480 | # commands through without removal of \ escapes INIT. | |
32481 | if test -n "\${ZSH_VERSION+set}" ; then | |
32482 | setopt NO_GLOB_SUBST | |
32483 | fi | |
32484 | ||
32485 | ||
32486 | PACKAGE='$PACKAGE' | |
32487 | VERSION='$VERSION' | |
32488 | TIMESTAMP='$TIMESTAMP' | |
32489 | RM='$RM' | |
32490 | ofile='$ofile' | |
32491 | ||
32492 | ||
6de9cd9a | 32493 | |
6de9cd9a | 32494 | |
78511f8b | 32495 | |
6de9cd9a | 32496 | |
c13e029b PB |
32497 | GCC="$GCC" |
32498 | CC="$CC" | |
32499 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
32500 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
32501 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
32502 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
32503 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
32504 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
32505 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
32506 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
32507 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
32508 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
32509 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
4c4b3eb0 PB |
32510 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" |
32511 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
c13e029b | 32512 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" |
4c4b3eb0 PB |
32513 | |
32514 | ||
6de9cd9a DN |
32515 | _ACEOF |
32516 | ||
5213506e | 32517 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
f489fba1 | 32518 | |
5213506e | 32519 | # Handling of arguments. |
6de9cd9a DN |
32520 | for ac_config_target in $ac_config_targets |
32521 | do | |
5213506e RW |
32522 | case $ac_config_target in |
32523 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
32524 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
32525 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
32526 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
32527 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
32528 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
1ec601bf | 32529 | "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;; |
5213506e | 32530 | |
22e05272 | 32531 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
6de9cd9a DN |
32532 | esac |
32533 | done | |
32534 | ||
5213506e | 32535 | |
6de9cd9a DN |
32536 | # If the user did not use the arguments to specify the items to instantiate, |
32537 | # then the envvar interface is used. Set only those that are not. | |
32538 | # We use the long form for the default assignment because of an extremely | |
32539 | # bizarre bug on SunOS 4.1.3. | |
32540 | if $ac_need_defaults; then | |
32541 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
32542 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
32543 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
32544 | fi | |
32545 | ||
32546 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 32547 | # simply because there is no reason against having it here, and in addition, |
6de9cd9a | 32548 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
32549 | # Hook for its removal unless debugging. |
32550 | # Note that there is a small window in which the directory will not be cleaned: | |
32551 | # after its creation but before its name has been assigned to `$tmp'. | |
6de9cd9a DN |
32552 | $debug || |
32553 | { | |
22e05272 | 32554 | tmp= ac_tmp= |
5213506e | 32555 | trap 'exit_status=$? |
22e05272 JM |
32556 | : "${ac_tmp:=$tmp}" |
32557 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
32558 | ' 0 |
32559 | trap 'as_fn_exit 1' 1 2 13 15 | |
6de9cd9a | 32560 | } |
6de9cd9a DN |
32561 | # Create a (secure) tmp directory for tmp files. |
32562 | ||
32563 | { | |
5213506e | 32564 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 32565 | test -d "$tmp" |
6de9cd9a DN |
32566 | } || |
32567 | { | |
5213506e RW |
32568 | tmp=./conf$$-$RANDOM |
32569 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
32570 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
32571 | ac_tmp=$tmp | |
5213506e RW |
32572 | |
32573 | # Set up the scripts for CONFIG_FILES section. | |
32574 | # No need to generate them if there are no CONFIG_FILES. | |
32575 | # This happens for instance with `./config.status config.h'. | |
32576 | if test -n "$CONFIG_FILES"; then | |
32577 | ||
32578 | ||
32579 | ac_cr=`echo X | tr X '\015'` | |
32580 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
32581 | # But we know of no other shell where ac_cr would be empty at this | |
32582 | # point, so we can use a bashism as a fallback. | |
32583 | if test "x$ac_cr" = x; then | |
32584 | eval ac_cr=\$\'\\r\' | |
32585 | fi | |
32586 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
32587 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 32588 | ac_cs_awk_cr='\\r' |
5213506e RW |
32589 | else |
32590 | ac_cs_awk_cr=$ac_cr | |
32591 | fi | |
32592 | ||
22e05272 | 32593 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
32594 | _ACEOF |
32595 | ||
32596 | ||
6de9cd9a | 32597 | { |
5213506e RW |
32598 | echo "cat >conf$$subs.awk <<_ACEOF" && |
32599 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
32600 | echo "_ACEOF" | |
32601 | } >conf$$subs.sh || | |
22e05272 JM |
32602 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
32603 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
32604 | ac_delim='%!_!# ' |
32605 | for ac_last_try in false false false false false :; do | |
32606 | . ./conf$$subs.sh || | |
22e05272 | 32607 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
32608 | |
32609 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
32610 | if test $ac_delim_n = $ac_delim_num; then | |
32611 | break | |
32612 | elif $ac_last_try; then | |
22e05272 | 32613 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
32614 | else |
32615 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
32616 | fi | |
32617 | done | |
32618 | rm -f conf$$subs.sh | |
32619 | ||
32620 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 32621 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5213506e RW |
32622 | _ACEOF |
32623 | sed -n ' | |
32624 | h | |
32625 | s/^/S["/; s/!.*/"]=/ | |
32626 | p | |
32627 | g | |
32628 | s/^[^!]*!// | |
32629 | :repl | |
32630 | t repl | |
32631 | s/'"$ac_delim"'$// | |
32632 | t delim | |
32633 | :nl | |
32634 | h | |
22e05272 | 32635 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
32636 | t more1 |
32637 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
32638 | p | |
32639 | n | |
32640 | b repl | |
32641 | :more1 | |
32642 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
32643 | p | |
32644 | g | |
32645 | s/.\{148\}// | |
32646 | t nl | |
32647 | :delim | |
32648 | h | |
22e05272 | 32649 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
32650 | t more2 |
32651 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
32652 | p | |
32653 | b | |
32654 | :more2 | |
32655 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
32656 | p | |
32657 | g | |
32658 | s/.\{148\}// | |
32659 | t delim | |
32660 | ' <conf$$subs.awk | sed ' | |
32661 | /^[^""]/{ | |
32662 | N | |
32663 | s/\n// | |
32664 | } | |
32665 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
32666 | rm -f conf$$subs.awk | |
32667 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32668 | _ACAWK | |
22e05272 | 32669 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
32670 | for (key in S) S_is_set[key] = 1 |
32671 | FS = "\a" | |
32672 | ||
32673 | } | |
32674 | { | |
32675 | line = $ 0 | |
32676 | nfields = split(line, field, "@") | |
32677 | substed = 0 | |
32678 | len = length(field[1]) | |
32679 | for (i = 2; i < nfields; i++) { | |
32680 | key = field[i] | |
32681 | keylen = length(key) | |
32682 | if (S_is_set[key]) { | |
32683 | value = S[key] | |
32684 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
32685 | len += length(value) + length(field[++i]) | |
32686 | substed = 1 | |
32687 | } else | |
32688 | len += 1 + keylen | |
32689 | } | |
32690 | ||
32691 | print line | |
6de9cd9a DN |
32692 | } |
32693 | ||
5213506e RW |
32694 | _ACAWK |
32695 | _ACEOF | |
32696 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
32697 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
32698 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
32699 | else | |
32700 | cat | |
22e05272 JM |
32701 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
32702 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
38d24731 RW |
32703 | _ACEOF |
32704 | ||
22e05272 JM |
32705 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
32706 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
32707 | # trailing colons and then remove the whole line if VPATH becomes empty |
32708 | # (actually we leave an empty line to preserve line numbers). | |
32709 | if test "x$srcdir" = x.; then | |
22e05272 JM |
32710 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
32711 | h | |
32712 | s/// | |
32713 | s/^/:/ | |
32714 | s/[ ]*$/:/ | |
32715 | s/:\$(srcdir):/:/g | |
32716 | s/:\${srcdir}:/:/g | |
32717 | s/:@srcdir@:/:/g | |
32718 | s/^:*// | |
5213506e | 32719 | s/:*$// |
22e05272 JM |
32720 | x |
32721 | s/\(=[ ]*\).*/\1/ | |
32722 | G | |
32723 | s/\n// | |
5213506e RW |
32724 | s/^[^=]*=[ ]*$// |
32725 | }' | |
32726 | fi | |
38d24731 | 32727 | |
5213506e RW |
32728 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
32729 | fi # test -n "$CONFIG_FILES" | |
6de9cd9a | 32730 | |
5213506e RW |
32731 | # Set up the scripts for CONFIG_HEADERS section. |
32732 | # No need to generate them if there are no CONFIG_HEADERS. | |
32733 | # This happens for instance with `./config.status Makefile'. | |
32734 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 32735 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
5213506e RW |
32736 | BEGIN { |
32737 | _ACEOF | |
32738 | ||
32739 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
32740 | # here-document in config.status, that substitutes the proper values into | |
32741 | # config.h.in to produce config.h. | |
32742 | ||
32743 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
32744 | # handling of long lines. | |
32745 | ac_delim='%!_!# ' | |
32746 | for ac_last_try in false false :; do | |
22e05272 JM |
32747 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
32748 | if test -z "$ac_tt"; then | |
5213506e RW |
32749 | break |
32750 | elif $ac_last_try; then | |
22e05272 | 32751 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
5213506e RW |
32752 | else |
32753 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
f489fba1 | 32754 | fi |
5213506e | 32755 | done |
c0e7e2bf | 32756 | |
5213506e RW |
32757 | # For the awk script, D is an array of macro values keyed by name, |
32758 | # likewise P contains macro parameters if any. Preserve backslash | |
32759 | # newline sequences. | |
32760 | ||
32761 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
32762 | sed -n ' | |
32763 | s/.\{148\}/&'"$ac_delim"'/g | |
32764 | t rset | |
32765 | :rset | |
32766 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
32767 | t def | |
32768 | d | |
32769 | :def | |
32770 | s/\\$// | |
32771 | t bsnl | |
32772 | s/["\\]/\\&/g | |
32773 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
32774 | D["\1"]=" \3"/p | |
32775 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
32776 | d | |
32777 | :bsnl | |
32778 | s/["\\]/\\&/g | |
32779 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
32780 | D["\1"]=" \3\\\\\\n"\\/p | |
32781 | t cont | |
32782 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
32783 | t cont | |
32784 | d | |
32785 | :cont | |
32786 | n | |
32787 | s/.\{148\}/&'"$ac_delim"'/g | |
32788 | t clear | |
32789 | :clear | |
32790 | s/\\$// | |
32791 | t bsnlc | |
32792 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
32793 | d | |
32794 | :bsnlc | |
32795 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
32796 | b cont | |
32797 | ' <confdefs.h | sed ' | |
32798 | s/'"$ac_delim"'/"\\\ | |
32799 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
32800 | ||
32801 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32802 | for (key in D) D_is_set[key] = 1 | |
32803 | FS = "\a" | |
32804 | } | |
32805 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
32806 | line = \$ 0 | |
32807 | split(line, arg, " ") | |
32808 | if (arg[1] == "#") { | |
32809 | defundef = arg[2] | |
32810 | mac1 = arg[3] | |
32811 | } else { | |
32812 | defundef = substr(arg[1], 2) | |
32813 | mac1 = arg[2] | |
32814 | } | |
32815 | split(mac1, mac2, "(") #) | |
32816 | macro = mac2[1] | |
32817 | prefix = substr(line, 1, index(line, defundef) - 1) | |
32818 | if (D_is_set[macro]) { | |
32819 | # Preserve the white space surrounding the "#". | |
32820 | print prefix "define", macro P[macro] D[macro] | |
32821 | next | |
32822 | } else { | |
32823 | # Replace #undef with comments. This is necessary, for example, | |
32824 | # in the case of _POSIX_SOURCE, which is predefined and required | |
32825 | # on some systems where configure will not decide to define it. | |
32826 | if (defundef == "undef") { | |
32827 | print "/*", prefix defundef, macro, "*/" | |
32828 | next | |
32829 | } | |
32830 | } | |
32831 | } | |
32832 | { print } | |
32833 | _ACAWK | |
6de9cd9a | 32834 | _ACEOF |
5213506e | 32835 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22e05272 | 32836 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
5213506e RW |
32837 | fi # test -n "$CONFIG_HEADERS" |
32838 | ||
32839 | ||
32840 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
32841 | shift | |
32842 | for ac_tag | |
32843 | do | |
32844 | case $ac_tag in | |
32845 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
32846 | esac | |
32847 | case $ac_mode$ac_tag in | |
32848 | :[FHL]*:*);; | |
22e05272 | 32849 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
32850 | :[FH]-) ac_tag=-:-;; |
32851 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
32852 | esac | |
32853 | ac_save_IFS=$IFS | |
32854 | IFS=: | |
32855 | set x $ac_tag | |
32856 | IFS=$ac_save_IFS | |
32857 | shift | |
32858 | ac_file=$1 | |
32859 | shift | |
32860 | ||
32861 | case $ac_mode in | |
32862 | :L) ac_source=$1;; | |
32863 | :[FH]) | |
32864 | ac_file_inputs= | |
32865 | for ac_f | |
32866 | do | |
32867 | case $ac_f in | |
22e05272 | 32868 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
32869 | *) # Look for the file first in the build tree, then in the source tree |
32870 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
32871 | # because $ac_f cannot contain `:'. | |
32872 | test -f "$ac_f" || | |
32873 | case $ac_f in | |
32874 | [\\/$]*) false;; | |
32875 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
32876 | esac || | |
22e05272 | 32877 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
32878 | esac |
32879 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
32880 | as_fn_append ac_file_inputs " '$ac_f'" | |
32881 | done | |
32882 | ||
32883 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
32884 | # use $as_me), people would be surprised to read: | |
32885 | # /* config.h. Generated by config.status. */ | |
32886 | configure_input='Generated from '` | |
32887 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
32888 | `' by configure.' | |
32889 | if test x"$ac_file" != x-; then | |
32890 | configure_input="$ac_file. $configure_input" | |
32891 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
32892 | $as_echo "$as_me: creating $ac_file" >&6;} | |
32893 | fi | |
32894 | # Neutralize special characters interpreted by sed in replacement strings. | |
32895 | case $configure_input in #( | |
32896 | *\&* | *\|* | *\\* ) | |
32897 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
32898 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
32899 | *) ac_sed_conf_input=$configure_input;; | |
32900 | esac | |
32901 | ||
32902 | case $ac_tag in | |
22e05272 JM |
32903 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
32904 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
32905 | esac |
32906 | ;; | |
6de9cd9a DN |
32907 | esac |
32908 | ||
5213506e | 32909 | ac_dir=`$as_dirname -- "$ac_file" || |
6de9cd9a DN |
32910 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
32911 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
32912 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
32913 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
32914 | $as_echo X"$ac_file" | | |
32915 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
32916 | s//\1/ | |
32917 | q | |
32918 | } | |
32919 | /^X\(\/\/\)[^/].*/{ | |
32920 | s//\1/ | |
32921 | q | |
32922 | } | |
32923 | /^X\(\/\/\)$/{ | |
32924 | s//\1/ | |
32925 | q | |
32926 | } | |
32927 | /^X\(\/\).*/{ | |
32928 | s//\1/ | |
32929 | q | |
32930 | } | |
32931 | s/.*/./; q'` | |
32932 | as_dir="$ac_dir"; as_fn_mkdir_p | |
6de9cd9a DN |
32933 | ac_builddir=. |
32934 | ||
5213506e RW |
32935 | case "$ac_dir" in |
32936 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
32937 | *) | |
32938 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
32939 | # A ".." for each directory in $ac_dir_suffix. | |
32940 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
32941 | case $ac_top_builddir_sub in | |
32942 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
32943 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
32944 | esac ;; | |
32945 | esac | |
32946 | ac_abs_top_builddir=$ac_pwd | |
32947 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
32948 | # for backward compatibility: | |
32949 | ac_top_builddir=$ac_top_build_prefix | |
6de9cd9a DN |
32950 | |
32951 | case $srcdir in | |
5213506e | 32952 | .) # We are building in place. |
6de9cd9a | 32953 | ac_srcdir=. |
5213506e RW |
32954 | ac_top_srcdir=$ac_top_builddir_sub |
32955 | ac_abs_top_srcdir=$ac_pwd ;; | |
32956 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
6de9cd9a | 32957 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
32958 | ac_top_srcdir=$srcdir |
32959 | ac_abs_top_srcdir=$srcdir ;; | |
32960 | *) # Relative name. | |
32961 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
32962 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
32963 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
6de9cd9a | 32964 | esac |
5213506e | 32965 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
6de9cd9a | 32966 | |
6de9cd9a | 32967 | |
5213506e RW |
32968 | case $ac_mode in |
32969 | :F) | |
32970 | # | |
32971 | # CONFIG_FILE | |
32972 | # | |
6de9cd9a DN |
32973 | |
32974 | case $INSTALL in | |
32975 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e RW |
32976 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
32977 | esac | |
32978 | ac_MKDIR_P=$MKDIR_P | |
32979 | case $MKDIR_P in | |
32980 | [\\/$]* | ?:[\\/]* ) ;; | |
32981 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
6de9cd9a | 32982 | esac |
5213506e | 32983 | _ACEOF |
6de9cd9a | 32984 | |
5213506e RW |
32985 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
32986 | # If the template does not know about datarootdir, expand it. | |
32987 | # FIXME: This hack should be removed a few years after 2.60. | |
32988 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
32989 | ac_sed_dataroot=' | |
32990 | /datarootdir/ { | |
32991 | p | |
32992 | q | |
32993 | } | |
32994 | /@datadir@/p | |
32995 | /@docdir@/p | |
32996 | /@infodir@/p | |
32997 | /@localedir@/p | |
32998 | /@mandir@/p' | |
32999 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
33000 | *datarootdir*) ac_datarootdir_seen=yes;; | |
33001 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
33002 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
33003 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
33004 | _ACEOF | |
33005 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
33006 | ac_datarootdir_hack=' | |
33007 | s&@datadir@&$datadir&g | |
33008 | s&@docdir@&$docdir&g | |
33009 | s&@infodir@&$infodir&g | |
33010 | s&@localedir@&$localedir&g | |
33011 | s&@mandir@&$mandir&g | |
33012 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
33013 | esac | |
78511f8b | 33014 | _ACEOF |
5213506e RW |
33015 | |
33016 | # Neutralize VPATH when `$srcdir' = `.'. | |
33017 | # Shell code in configure.ac might set extrasub. | |
33018 | # FIXME: do we really want to maintain this feature? | |
33019 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
33020 | ac_sed_extra="$ac_vpsub | |
6de9cd9a DN |
33021 | $extrasub |
33022 | _ACEOF | |
5213506e | 33023 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6de9cd9a DN |
33024 | :t |
33025 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
33026 | s|@configure_input@|$ac_sed_conf_input|;t t |
33027 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
33028 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
33029 | s&@srcdir@&$ac_srcdir&;t t | |
33030 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
33031 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
33032 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
33033 | s&@builddir@&$ac_builddir&;t t | |
33034 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
33035 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
33036 | s&@INSTALL@&$ac_INSTALL&;t t | |
33037 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
33038 | $ac_datarootdir_hack | |
33039 | " | |
22e05272 JM |
33040 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
33041 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
33042 | |
33043 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
33044 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
33045 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
33046 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 33047 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 33048 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 33049 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 33050 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 33051 | |
22e05272 | 33052 | rm -f "$ac_tmp/stdin" |
6de9cd9a | 33053 | case $ac_file in |
22e05272 JM |
33054 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
33055 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 33056 | esac \ |
22e05272 | 33057 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e RW |
33058 | ;; |
33059 | :H) | |
33060 | # | |
33061 | # CONFIG_HEADER | |
33062 | # | |
6de9cd9a | 33063 | if test x"$ac_file" != x-; then |
5213506e RW |
33064 | { |
33065 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
33066 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
33067 | } >"$ac_tmp/config.h" \ | |
33068 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
33069 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
5213506e RW |
33070 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
33071 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
6de9cd9a | 33072 | else |
5213506e | 33073 | rm -f "$ac_file" |
22e05272 JM |
33074 | mv "$ac_tmp/config.h" "$ac_file" \ |
33075 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6de9cd9a DN |
33076 | fi |
33077 | else | |
5213506e | 33078 | $as_echo "/* $configure_input */" \ |
22e05272 JM |
33079 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
33080 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
6de9cd9a | 33081 | fi |
5213506e RW |
33082 | # Compute "$ac_file"'s index in $config_headers. |
33083 | _am_arg="$ac_file" | |
6de9cd9a DN |
33084 | _am_stamp_count=1 |
33085 | for _am_header in $config_headers :; do | |
33086 | case $_am_header in | |
5213506e | 33087 | $_am_arg | $_am_arg:* ) |
6de9cd9a DN |
33088 | break ;; |
33089 | * ) | |
33090 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
33091 | esac | |
33092 | done | |
5213506e RW |
33093 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
33094 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
33095 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
33096 | X"$_am_arg" : 'X\(//\)$' \| \ | |
33097 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
33098 | $as_echo X"$_am_arg" | | |
33099 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
33100 | s//\1/ | |
33101 | q | |
33102 | } | |
33103 | /^X\(\/\/\)[^/].*/{ | |
33104 | s//\1/ | |
33105 | q | |
33106 | } | |
33107 | /^X\(\/\/\)$/{ | |
33108 | s//\1/ | |
33109 | q | |
33110 | } | |
33111 | /^X\(\/\).*/{ | |
33112 | s//\1/ | |
33113 | q | |
33114 | } | |
33115 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
33116 | ;; | |
38d24731 | 33117 | |
5213506e RW |
33118 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
33119 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
33120 | ;; | |
33121 | esac | |
6de9cd9a DN |
33122 | |
33123 | ||
5213506e RW |
33124 | case $ac_file$ac_mode in |
33125 | "default-1":C) | |
96b8a615 AJ |
33126 | # Only add multilib support code if we just rebuilt the top-level |
33127 | # Makefile. | |
33128 | case " $CONFIG_FILES " in | |
33129 | *" Makefile "*) | |
33130 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
33131 | ;; | |
33132 | esac ;; | |
5213506e | 33133 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
22e05272 | 33134 | # Older Autoconf quotes --file arguments for eval, but not when files |
5213506e RW |
33135 | # are listed without --file. Let's play safe and only enable the eval |
33136 | # if we detect the quoting. | |
33137 | case $CONFIG_FILES in | |
33138 | *\'*) eval set x "$CONFIG_FILES" ;; | |
33139 | *) set x $CONFIG_FILES ;; | |
33140 | esac | |
33141 | shift | |
33142 | for mf | |
33143 | do | |
33144 | # Strip MF so we end up with the name of the file. | |
33145 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
33146 | # Check whether this is an Automake generated Makefile or not. | |
22e05272 | 33147 | # We used to match only the files named 'Makefile.in', but |
5213506e RW |
33148 | # some people rename them; so instead we look at the file content. |
33149 | # Grep'ing the first line is not enough: some people post-process | |
33150 | # each Makefile.in and add a new line on top of each file to say so. | |
33151 | # Grep'ing the whole file is not good either: AIX grep has a line | |
33152 | # limit of 2048, but all sed's we know have understand at least 4000. | |
33153 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
33154 | dirpart=`$as_dirname -- "$mf" || | |
679c0f9a TT |
33155 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
33156 | X"$mf" : 'X\(//\)[^/]' \| \ | |
33157 | X"$mf" : 'X\(//\)$' \| \ | |
5213506e RW |
33158 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
33159 | $as_echo X"$mf" | | |
33160 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
33161 | s//\1/ | |
33162 | q | |
33163 | } | |
33164 | /^X\(\/\/\)[^/].*/{ | |
33165 | s//\1/ | |
33166 | q | |
33167 | } | |
33168 | /^X\(\/\/\)$/{ | |
33169 | s//\1/ | |
33170 | q | |
33171 | } | |
33172 | /^X\(\/\).*/{ | |
33173 | s//\1/ | |
33174 | q | |
33175 | } | |
33176 | s/.*/./; q'` | |
33177 | else | |
33178 | continue | |
33179 | fi | |
33180 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22e05272 | 33181 | # from the Makefile without running 'make'. |
5213506e RW |
33182 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
33183 | test -z "$DEPDIR" && continue | |
33184 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22e05272 | 33185 | test -z "$am__include" && continue |
5213506e | 33186 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
5213506e RW |
33187 | # Find all dependency output files, they are included files with |
33188 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
33189 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
33190 | # expansion. | |
33191 | for file in `sed -n " | |
33192 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22e05272 | 33193 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
5213506e RW |
33194 | # Make sure the directory exists. |
33195 | test -f "$dirpart/$file" && continue | |
33196 | fdir=`$as_dirname -- "$file" || | |
679c0f9a TT |
33197 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
33198 | X"$file" : 'X\(//\)[^/]' \| \ | |
33199 | X"$file" : 'X\(//\)$' \| \ | |
5213506e RW |
33200 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
33201 | $as_echo X"$file" | | |
33202 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
33203 | s//\1/ | |
33204 | q | |
33205 | } | |
33206 | /^X\(\/\/\)[^/].*/{ | |
33207 | s//\1/ | |
33208 | q | |
33209 | } | |
33210 | /^X\(\/\/\)$/{ | |
33211 | s//\1/ | |
33212 | q | |
33213 | } | |
33214 | /^X\(\/\).*/{ | |
33215 | s//\1/ | |
33216 | q | |
33217 | } | |
33218 | s/.*/./; q'` | |
33219 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
33220 | # echo "creating $dirpart/$file" | |
33221 | echo '# dummy' > "$dirpart/$file" | |
679c0f9a | 33222 | done |
679c0f9a | 33223 | done |
5213506e | 33224 | } |
1cf3d07d | 33225 | ;; |
5213506e | 33226 | "libtool":C) |
1cf3d07d SE |
33227 | |
33228 | # See if we are running on zsh, and set the options which allow our | |
33229 | # commands through without removal of \ escapes. | |
33230 | if test -n "${ZSH_VERSION+set}" ; then | |
33231 | setopt NO_GLOB_SUBST | |
33232 | fi | |
33233 | ||
33234 | cfgfile="${ofile}T" | |
33235 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
33236 | $RM "$cfgfile" | |
33237 | ||
33238 | cat <<_LT_EOF >> "$cfgfile" | |
33239 | #! $SHELL | |
33240 | ||
33241 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
d58dead8 | 33242 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
1cf3d07d SE |
33243 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
33244 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
33245 | # | |
d58dead8 | 33246 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
43e02a8a | 33247 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
d58dead8 | 33248 | # Written by Gordon Matzigkeit, 1996 |
1cf3d07d | 33249 | # |
d58dead8 | 33250 | # This file is part of GNU Libtool. |
1cf3d07d | 33251 | # |
d58dead8 PG |
33252 | # GNU Libtool is free software; you can redistribute it and/or |
33253 | # modify it under the terms of the GNU General Public License as | |
33254 | # published by the Free Software Foundation; either version 2 of | |
33255 | # the License, or (at your option) any later version. | |
1cf3d07d | 33256 | # |
d58dead8 PG |
33257 | # As a special exception to the GNU General Public License, |
33258 | # if you distribute this file as part of a program or library that | |
33259 | # is built using GNU Libtool, you may include this file under the | |
33260 | # same distribution terms that you use for the rest of that program. | |
1cf3d07d | 33261 | # |
d58dead8 PG |
33262 | # GNU Libtool is distributed in the hope that it will be useful, |
33263 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
33264 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
33265 | # GNU General Public License for more details. | |
1cf3d07d | 33266 | # |
d58dead8 PG |
33267 | # You should have received a copy of the GNU General Public License |
33268 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
33269 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
33270 | # obtained by writing to the Free Software Foundation, Inc., | |
33271 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
1cf3d07d SE |
33272 | |
33273 | ||
33274 | # The names of the tagged configurations supported by this script. | |
33275 | available_tags="FC " | |
33276 | ||
33277 | # ### BEGIN LIBTOOL CONFIG | |
33278 | ||
66dbcf2d RO |
33279 | # A sed program that does not truncate output. |
33280 | SED=$lt_SED | |
33281 | ||
33282 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
33283 | Xsed="\$SED -e 1s/^X//" | |
33284 | ||
33285 | # A grep program that handles long lines. | |
33286 | GREP=$lt_GREP | |
33287 | ||
33288 | # An ERE matcher. | |
33289 | EGREP=$lt_EGREP | |
33290 | ||
33291 | # A literal string matcher. | |
33292 | FGREP=$lt_FGREP | |
33293 | ||
33294 | # Shell to use when invoking shell scripts. | |
33295 | SHELL=$lt_SHELL | |
33296 | ||
33297 | # An echo program that protects backslashes. | |
33298 | ECHO=$lt_ECHO | |
33299 | ||
1cf3d07d SE |
33300 | # Which release of libtool.m4 was used? |
33301 | macro_version=$macro_version | |
33302 | macro_revision=$macro_revision | |
33303 | ||
33304 | # Whether or not to build shared libraries. | |
33305 | build_libtool_libs=$enable_shared | |
33306 | ||
33307 | # Whether or not to build static libraries. | |
33308 | build_old_libs=$enable_static | |
33309 | ||
33310 | # What type of objects to build. | |
33311 | pic_mode=$pic_mode | |
33312 | ||
33313 | # Whether or not to optimize for fast installation. | |
33314 | fast_install=$enable_fast_install | |
33315 | ||
33316 | # The host system. | |
33317 | host_alias=$host_alias | |
33318 | host=$host | |
33319 | host_os=$host_os | |
33320 | ||
33321 | # The build system. | |
33322 | build_alias=$build_alias | |
33323 | build=$build | |
33324 | build_os=$build_os | |
33325 | ||
1cf3d07d SE |
33326 | # A BSD- or MS-compatible name lister. |
33327 | NM=$lt_NM | |
33328 | ||
33329 | # Whether we need soft or hard links. | |
33330 | LN_S=$lt_LN_S | |
33331 | ||
33332 | # What is the maximum length of a command? | |
33333 | max_cmd_len=$max_cmd_len | |
33334 | ||
33335 | # Object file suffix (normally "o"). | |
33336 | objext=$ac_objext | |
33337 | ||
33338 | # Executable file suffix (normally ""). | |
33339 | exeext=$exeext | |
33340 | ||
33341 | # whether the shell understands "unset". | |
33342 | lt_unset=$lt_unset | |
33343 | ||
33344 | # turn spaces into newlines. | |
33345 | SP2NL=$lt_lt_SP2NL | |
33346 | ||
33347 | # turn newlines into spaces. | |
33348 | NL2SP=$lt_lt_NL2SP | |
33349 | ||
d58dead8 PG |
33350 | # An object symbol dumper. |
33351 | OBJDUMP=$lt_OBJDUMP | |
33352 | ||
1cf3d07d SE |
33353 | # Method to check whether dependent libraries are shared objects. |
33354 | deplibs_check_method=$lt_deplibs_check_method | |
33355 | ||
33356 | # Command to use when deplibs_check_method == "file_magic". | |
33357 | file_magic_cmd=$lt_file_magic_cmd | |
33358 | ||
33359 | # The archiver. | |
33360 | AR=$lt_AR | |
33361 | AR_FLAGS=$lt_AR_FLAGS | |
33362 | ||
33363 | # A symbol stripping program. | |
33364 | STRIP=$lt_STRIP | |
33365 | ||
33366 | # Commands used to install an old-style archive. | |
33367 | RANLIB=$lt_RANLIB | |
33368 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
33369 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
33370 | ||
43e02a8a RW |
33371 | # Whether to use a lock for old archive extraction. |
33372 | lock_old_archive_extraction=$lock_old_archive_extraction | |
33373 | ||
1cf3d07d SE |
33374 | # A C compiler. |
33375 | LTCC=$lt_CC | |
33376 | ||
33377 | # LTCC compiler flags. | |
33378 | LTCFLAGS=$lt_CFLAGS | |
33379 | ||
33380 | # Take the output of nm and produce a listing of raw symbols and C names. | |
33381 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
33382 | ||
33383 | # Transform the output of nm in a proper C declaration. | |
33384 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
33385 | ||
33386 | # Transform the output of nm in a C name address pair. | |
33387 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
33388 | ||
d58dead8 PG |
33389 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
33390 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
33391 | ||
1cf3d07d SE |
33392 | # The name of the directory that contains temporary libtool files. |
33393 | objdir=$objdir | |
33394 | ||
1cf3d07d SE |
33395 | # Used to examine libraries when file_magic_cmd begins with "file". |
33396 | MAGIC_CMD=$MAGIC_CMD | |
33397 | ||
33398 | # Must we lock files when doing compilation? | |
33399 | need_locks=$lt_need_locks | |
33400 | ||
d58dead8 PG |
33401 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
33402 | DSYMUTIL=$lt_DSYMUTIL | |
33403 | ||
33404 | # Tool to change global to local symbols on Mac OS X. | |
33405 | NMEDIT=$lt_NMEDIT | |
33406 | ||
33407 | # Tool to manipulate fat objects and archives on Mac OS X. | |
33408 | LIPO=$lt_LIPO | |
33409 | ||
33410 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
33411 | OTOOL=$lt_OTOOL | |
33412 | ||
33413 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
33414 | OTOOL64=$lt_OTOOL64 | |
33415 | ||
1cf3d07d SE |
33416 | # Old archive suffix (normally "a"). |
33417 | libext=$libext | |
33418 | ||
33419 | # Shared library suffix (normally ".so"). | |
33420 | shrext_cmds=$lt_shrext_cmds | |
33421 | ||
33422 | # The commands to extract the exported symbol list from a shared archive. | |
33423 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
33424 | ||
33425 | # Variables whose values should be saved in libtool wrapper scripts and | |
33426 | # restored at link time. | |
33427 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
33428 | ||
33429 | # Do we need the "lib" prefix for modules? | |
33430 | need_lib_prefix=$need_lib_prefix | |
33431 | ||
33432 | # Do we need a version for libraries? | |
33433 | need_version=$need_version | |
33434 | ||
33435 | # Library versioning type. | |
33436 | version_type=$version_type | |
33437 | ||
33438 | # Shared library runtime path variable. | |
33439 | runpath_var=$runpath_var | |
33440 | ||
33441 | # Shared library path variable. | |
33442 | shlibpath_var=$shlibpath_var | |
33443 | ||
33444 | # Is shlibpath searched before the hard-coded library search path? | |
33445 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
33446 | ||
33447 | # Format of library name prefix. | |
33448 | libname_spec=$lt_libname_spec | |
33449 | ||
33450 | # List of archive names. First name is the real one, the rest are links. | |
33451 | # The last name is the one that the linker finds with -lNAME | |
33452 | library_names_spec=$lt_library_names_spec | |
33453 | ||
33454 | # The coded name of the library, if different from the real name. | |
33455 | soname_spec=$lt_soname_spec | |
33456 | ||
43e02a8a RW |
33457 | # Permission mode override for installation of shared libraries. |
33458 | install_override_mode=$lt_install_override_mode | |
33459 | ||
1cf3d07d SE |
33460 | # Command to use after installation of a shared archive. |
33461 | postinstall_cmds=$lt_postinstall_cmds | |
33462 | ||
33463 | # Command to use after uninstallation of a shared archive. | |
33464 | postuninstall_cmds=$lt_postuninstall_cmds | |
33465 | ||
33466 | # Commands used to finish a libtool library installation in a directory. | |
33467 | finish_cmds=$lt_finish_cmds | |
33468 | ||
33469 | # As "finish_cmds", except a single script fragment to be evaled but | |
33470 | # not shown. | |
33471 | finish_eval=$lt_finish_eval | |
33472 | ||
33473 | # Whether we should hardcode library paths into libraries. | |
33474 | hardcode_into_libs=$hardcode_into_libs | |
33475 | ||
33476 | # Compile-time system search path for libraries. | |
33477 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
33478 | ||
33479 | # Run-time system search path for libraries. | |
33480 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
33481 | ||
33482 | # Whether dlopen is supported. | |
33483 | dlopen_support=$enable_dlopen | |
33484 | ||
33485 | # Whether dlopen of programs is supported. | |
33486 | dlopen_self=$enable_dlopen_self | |
33487 | ||
33488 | # Whether dlopen of statically linked programs is supported. | |
33489 | dlopen_self_static=$enable_dlopen_self_static | |
33490 | ||
33491 | # Commands to strip libraries. | |
33492 | old_striplib=$lt_old_striplib | |
33493 | striplib=$lt_striplib | |
33494 | ||
33495 | ||
33496 | # The linker used to build libraries. | |
33497 | LD=$lt_LD | |
33498 | ||
43e02a8a RW |
33499 | # How to create reloadable object files. |
33500 | reload_flag=$lt_reload_flag | |
33501 | reload_cmds=$lt_reload_cmds | |
33502 | ||
1cf3d07d SE |
33503 | # Commands used to build an old-style archive. |
33504 | old_archive_cmds=$lt_old_archive_cmds | |
33505 | ||
33506 | # A language specific compiler. | |
33507 | CC=$lt_compiler | |
33508 | ||
33509 | # Is the compiler the GNU compiler? | |
33510 | with_gcc=$GCC | |
33511 | ||
33512 | # Compiler flag to turn off builtin functions. | |
33513 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
33514 | ||
33515 | # How to pass a linker flag through the compiler. | |
33516 | wl=$lt_lt_prog_compiler_wl | |
33517 | ||
33518 | # Additional compiler flags for building library objects. | |
33519 | pic_flag=$lt_lt_prog_compiler_pic | |
33520 | ||
33521 | # Compiler flag to prevent dynamic linking. | |
33522 | link_static_flag=$lt_lt_prog_compiler_static | |
33523 | ||
33524 | # Does compiler simultaneously support -c and -o options? | |
33525 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
33526 | ||
33527 | # Whether or not to add -lc for building shared libraries. | |
33528 | build_libtool_need_lc=$archive_cmds_need_lc | |
33529 | ||
33530 | # Whether or not to disallow shared libs when runtime libs are static. | |
33531 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
33532 | ||
33533 | # Compiler flag to allow reflexive dlopens. | |
33534 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
33535 | ||
33536 | # Compiler flag to generate shared objects directly from archives. | |
33537 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
33538 | ||
33539 | # Whether the compiler copes with passing no objects directly. | |
33540 | compiler_needs_object=$lt_compiler_needs_object | |
33541 | ||
33542 | # Create an old-style archive from a shared archive. | |
33543 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
33544 | ||
33545 | # Create a temporary old-style archive to link instead of a shared archive. | |
33546 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
33547 | ||
33548 | # Commands used to build a shared archive. | |
33549 | archive_cmds=$lt_archive_cmds | |
33550 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
33551 | ||
33552 | # Commands used to build a loadable module if different from building | |
33553 | # a shared archive. | |
33554 | module_cmds=$lt_module_cmds | |
33555 | module_expsym_cmds=$lt_module_expsym_cmds | |
33556 | ||
33557 | # Whether we are building with GNU ld or not. | |
33558 | with_gnu_ld=$lt_with_gnu_ld | |
33559 | ||
33560 | # Flag that allows shared libraries with undefined symbols to be built. | |
33561 | allow_undefined_flag=$lt_allow_undefined_flag | |
33562 | ||
33563 | # Flag that enforces no undefined symbols. | |
33564 | no_undefined_flag=$lt_no_undefined_flag | |
33565 | ||
33566 | # Flag to hardcode \$libdir into a binary during linking. | |
33567 | # This must work even if \$libdir does not exist | |
33568 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
33569 | ||
33570 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
33571 | # during linking. This must work even if \$libdir does not exist. | |
33572 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
33573 | ||
33574 | # Whether we need a single "-rpath" flag with a separated argument. | |
33575 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
33576 | ||
33577 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
33578 | # DIR into the resulting binary. | |
33579 | hardcode_direct=$hardcode_direct | |
33580 | ||
33581 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
33582 | # DIR into the resulting binary and the resulting library dependency is | |
33583 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
33584 | # library is relocated. | |
33585 | hardcode_direct_absolute=$hardcode_direct_absolute | |
33586 | ||
33587 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
33588 | # into the resulting binary. | |
33589 | hardcode_minus_L=$hardcode_minus_L | |
33590 | ||
33591 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
33592 | # into the resulting binary. | |
33593 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
33594 | ||
33595 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
33596 | # into the library and all subsequent libraries and executables linked | |
33597 | # against it. | |
33598 | hardcode_automatic=$hardcode_automatic | |
33599 | ||
33600 | # Set to yes if linker adds runtime paths of dependent libraries | |
33601 | # to runtime path list. | |
33602 | inherit_rpath=$inherit_rpath | |
33603 | ||
33604 | # Whether libtool must link a program against all its dependency libraries. | |
33605 | link_all_deplibs=$link_all_deplibs | |
33606 | ||
33607 | # Fix the shell variable \$srcfile for the compiler. | |
33608 | fix_srcfile_path=$lt_fix_srcfile_path | |
33609 | ||
33610 | # Set to "yes" if exported symbols are required. | |
33611 | always_export_symbols=$always_export_symbols | |
33612 | ||
33613 | # The commands to list exported symbols. | |
33614 | export_symbols_cmds=$lt_export_symbols_cmds | |
33615 | ||
33616 | # Symbols that should not be listed in the preloaded symbols. | |
33617 | exclude_expsyms=$lt_exclude_expsyms | |
33618 | ||
33619 | # Symbols that must always be exported. | |
33620 | include_expsyms=$lt_include_expsyms | |
33621 | ||
33622 | # Commands necessary for linking programs (against libraries) with templates. | |
33623 | prelink_cmds=$lt_prelink_cmds | |
33624 | ||
33625 | # Specify filename containing input files. | |
33626 | file_list_spec=$lt_file_list_spec | |
33627 | ||
33628 | # How to hardcode a shared library path into an executable. | |
33629 | hardcode_action=$hardcode_action | |
33630 | ||
d58dead8 PG |
33631 | # The directories searched by this compiler when creating a shared library. |
33632 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
33633 | ||
1cf3d07d SE |
33634 | # Dependencies to place before and after the objects being linked to |
33635 | # create a shared library. | |
33636 | predep_objects=$lt_predep_objects | |
33637 | postdep_objects=$lt_postdep_objects | |
33638 | predeps=$lt_predeps | |
33639 | postdeps=$lt_postdeps | |
33640 | ||
33641 | # The library search path used internally by the compiler when linking | |
33642 | # a shared library. | |
33643 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
33644 | ||
33645 | # ### END LIBTOOL CONFIG | |
33646 | ||
33647 | _LT_EOF | |
33648 | ||
33649 | case $host_os in | |
33650 | aix3*) | |
33651 | cat <<\_LT_EOF >> "$cfgfile" | |
33652 | # AIX sometimes has problems with the GCC collect2 program. For some | |
33653 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
33654 | # vanish in a puff of smoke. | |
33655 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
33656 | COLLECT_NAMES= | |
33657 | export COLLECT_NAMES | |
33658 | fi | |
33659 | _LT_EOF | |
33660 | ;; | |
33661 | esac | |
33662 | ||
33663 | ||
33664 | ltmain="$ac_aux_dir/ltmain.sh" | |
33665 | ||
33666 | ||
33667 | # We use sed instead of cat because bash on DJGPP gets confused if | |
33668 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
33669 | # text mode, it properly converts lines to CR/LF. This bash problem | |
33670 | # is reportedly fixed, but why not run on old versions too? | |
33671 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
33672 | || (rm -f "$cfgfile"; exit 1) | |
33673 | ||
33674 | case $xsi_shell in | |
33675 | yes) | |
33676 | cat << \_LT_EOF >> "$cfgfile" | |
d58dead8 | 33677 | |
1cf3d07d SE |
33678 | # func_dirname file append nondir_replacement |
33679 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
33680 | # otherwise set result to NONDIR_REPLACEMENT. | |
33681 | func_dirname () | |
33682 | { | |
33683 | case ${1} in | |
33684 | */*) func_dirname_result="${1%/*}${2}" ;; | |
33685 | * ) func_dirname_result="${3}" ;; | |
33686 | esac | |
33687 | } | |
33688 | ||
33689 | # func_basename file | |
33690 | func_basename () | |
33691 | { | |
33692 | func_basename_result="${1##*/}" | |
33693 | } | |
33694 | ||
d58dead8 PG |
33695 | # func_dirname_and_basename file append nondir_replacement |
33696 | # perform func_basename and func_dirname in a single function | |
33697 | # call: | |
33698 | # dirname: Compute the dirname of FILE. If nonempty, | |
33699 | # add APPEND to the result, otherwise set result | |
33700 | # to NONDIR_REPLACEMENT. | |
33701 | # value returned in "$func_dirname_result" | |
33702 | # basename: Compute filename of FILE. | |
33703 | # value retuned in "$func_basename_result" | |
33704 | # Implementation must be kept synchronized with func_dirname | |
33705 | # and func_basename. For efficiency, we do not delegate to | |
33706 | # those functions but instead duplicate the functionality here. | |
33707 | func_dirname_and_basename () | |
33708 | { | |
33709 | case ${1} in | |
33710 | */*) func_dirname_result="${1%/*}${2}" ;; | |
33711 | * ) func_dirname_result="${3}" ;; | |
33712 | esac | |
33713 | func_basename_result="${1##*/}" | |
33714 | } | |
33715 | ||
1cf3d07d SE |
33716 | # func_stripname prefix suffix name |
33717 | # strip PREFIX and SUFFIX off of NAME. | |
33718 | # PREFIX and SUFFIX must not contain globbing or regex special | |
33719 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
33720 | # dot (in which case that matches only a dot). | |
33721 | func_stripname () | |
33722 | { | |
33723 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
33724 | # positional parameters, so assign one to ordinary parameter first. | |
33725 | func_stripname_result=${3} | |
33726 | func_stripname_result=${func_stripname_result#"${1}"} | |
33727 | func_stripname_result=${func_stripname_result%"${2}"} | |
33728 | } | |
33729 | ||
33730 | # func_opt_split | |
33731 | func_opt_split () | |
33732 | { | |
33733 | func_opt_split_opt=${1%%=*} | |
33734 | func_opt_split_arg=${1#*=} | |
33735 | } | |
33736 | ||
33737 | # func_lo2o object | |
33738 | func_lo2o () | |
33739 | { | |
33740 | case ${1} in | |
33741 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
33742 | *) func_lo2o_result=${1} ;; | |
33743 | esac | |
33744 | } | |
d58dead8 PG |
33745 | |
33746 | # func_xform libobj-or-source | |
33747 | func_xform () | |
33748 | { | |
33749 | func_xform_result=${1%.*}.lo | |
33750 | } | |
33751 | ||
33752 | # func_arith arithmetic-term... | |
33753 | func_arith () | |
33754 | { | |
33755 | func_arith_result=$(( $* )) | |
33756 | } | |
33757 | ||
33758 | # func_len string | |
33759 | # STRING may not start with a hyphen. | |
33760 | func_len () | |
33761 | { | |
33762 | func_len_result=${#1} | |
33763 | } | |
33764 | ||
1cf3d07d SE |
33765 | _LT_EOF |
33766 | ;; | |
33767 | *) # Bourne compatible functions. | |
33768 | cat << \_LT_EOF >> "$cfgfile" | |
d58dead8 | 33769 | |
1cf3d07d SE |
33770 | # func_dirname file append nondir_replacement |
33771 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
33772 | # otherwise set result to NONDIR_REPLACEMENT. | |
33773 | func_dirname () | |
33774 | { | |
33775 | # Extract subdirectory from the argument. | |
43e02a8a | 33776 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
1cf3d07d SE |
33777 | if test "X$func_dirname_result" = "X${1}"; then |
33778 | func_dirname_result="${3}" | |
33779 | else | |
33780 | func_dirname_result="$func_dirname_result${2}" | |
33781 | fi | |
33782 | } | |
33783 | ||
33784 | # func_basename file | |
33785 | func_basename () | |
33786 | { | |
43e02a8a | 33787 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
1cf3d07d SE |
33788 | } |
33789 | ||
d58dead8 | 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_strip_suffix prefix name | |
33797 | func_stripname () | |
33798 | { | |
33799 | case ${2} in | |
43e02a8a RW |
33800 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
33801 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
1cf3d07d SE |
33802 | esac |
33803 | } | |
33804 | ||
33805 | # sed scripts: | |
33806 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
33807 | my_sed_long_arg='1s/^-[^=]*=//' | |
33808 | ||
33809 | # func_opt_split | |
33810 | func_opt_split () | |
33811 | { | |
43e02a8a RW |
33812 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
33813 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
1cf3d07d SE |
33814 | } |
33815 | ||
33816 | # func_lo2o object | |
33817 | func_lo2o () | |
33818 | { | |
43e02a8a | 33819 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
1cf3d07d | 33820 | } |
d58dead8 PG |
33821 | |
33822 | # func_xform libobj-or-source | |
33823 | func_xform () | |
33824 | { | |
43e02a8a | 33825 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
d58dead8 PG |
33826 | } |
33827 | ||
33828 | # func_arith arithmetic-term... | |
33829 | func_arith () | |
33830 | { | |
33831 | func_arith_result=`expr "$@"` | |
33832 | } | |
33833 | ||
33834 | # func_len string | |
33835 | # STRING may not start with a hyphen. | |
33836 | func_len () | |
33837 | { | |
33838 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
33839 | } | |
33840 | ||
1cf3d07d SE |
33841 | _LT_EOF |
33842 | esac | |
33843 | ||
33844 | case $lt_shell_append in | |
33845 | yes) | |
33846 | cat << \_LT_EOF >> "$cfgfile" | |
33847 | ||
33848 | # func_append var value | |
33849 | # Append VALUE to the end of shell variable VAR. | |
33850 | func_append () | |
33851 | { | |
33852 | eval "$1+=\$2" | |
33853 | } | |
33854 | _LT_EOF | |
33855 | ;; | |
33856 | *) | |
33857 | cat << \_LT_EOF >> "$cfgfile" | |
33858 | ||
33859 | # func_append var value | |
33860 | # Append VALUE to the end of shell variable VAR. | |
33861 | func_append () | |
33862 | { | |
33863 | eval "$1=\$$1\$2" | |
33864 | } | |
d58dead8 | 33865 | |
1cf3d07d SE |
33866 | _LT_EOF |
33867 | ;; | |
33868 | esac | |
33869 | ||
33870 | ||
33871 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
33872 | || (rm -f "$cfgfile"; exit 1) | |
33873 | ||
33874 | mv -f "$cfgfile" "$ofile" || | |
33875 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
33876 | chmod +x "$ofile" | |
33877 | ||
33878 | ||
33879 | cat <<_LT_EOF >> "$ofile" | |
33880 | ||
33881 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
33882 | ||
33883 | # The linker used to build libraries. | |
33884 | LD=$lt_LD_FC | |
33885 | ||
43e02a8a RW |
33886 | # How to create reloadable object files. |
33887 | reload_flag=$lt_reload_flag_FC | |
33888 | reload_cmds=$lt_reload_cmds_FC | |
33889 | ||
1cf3d07d SE |
33890 | # Commands used to build an old-style archive. |
33891 | old_archive_cmds=$lt_old_archive_cmds_FC | |
33892 | ||
33893 | # A language specific compiler. | |
33894 | CC=$lt_compiler_FC | |
33895 | ||
33896 | # Is the compiler the GNU compiler? | |
33897 | with_gcc=$GCC_FC | |
33898 | ||
33899 | # Compiler flag to turn off builtin functions. | |
33900 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
33901 | ||
33902 | # How to pass a linker flag through the compiler. | |
33903 | wl=$lt_lt_prog_compiler_wl_FC | |
33904 | ||
33905 | # Additional compiler flags for building library objects. | |
33906 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
33907 | ||
33908 | # Compiler flag to prevent dynamic linking. | |
33909 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
33910 | ||
33911 | # Does compiler simultaneously support -c and -o options? | |
33912 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
33913 | ||
33914 | # Whether or not to add -lc for building shared libraries. | |
33915 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
33916 | ||
33917 | # Whether or not to disallow shared libs when runtime libs are static. | |
33918 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
33919 | ||
33920 | # Compiler flag to allow reflexive dlopens. | |
33921 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
33922 | ||
33923 | # Compiler flag to generate shared objects directly from archives. | |
33924 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
33925 | ||
33926 | # Whether the compiler copes with passing no objects directly. | |
33927 | compiler_needs_object=$lt_compiler_needs_object_FC | |
33928 | ||
33929 | # Create an old-style archive from a shared archive. | |
33930 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
33931 | ||
33932 | # Create a temporary old-style archive to link instead of a shared archive. | |
33933 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
33934 | ||
33935 | # Commands used to build a shared archive. | |
33936 | archive_cmds=$lt_archive_cmds_FC | |
33937 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
33938 | ||
33939 | # Commands used to build a loadable module if different from building | |
33940 | # a shared archive. | |
33941 | module_cmds=$lt_module_cmds_FC | |
33942 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
33943 | ||
33944 | # Whether we are building with GNU ld or not. | |
33945 | with_gnu_ld=$lt_with_gnu_ld_FC | |
33946 | ||
33947 | # Flag that allows shared libraries with undefined symbols to be built. | |
33948 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
33949 | ||
33950 | # Flag that enforces no undefined symbols. | |
33951 | no_undefined_flag=$lt_no_undefined_flag_FC | |
33952 | ||
33953 | # Flag to hardcode \$libdir into a binary during linking. | |
33954 | # This must work even if \$libdir does not exist | |
33955 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
33956 | ||
33957 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
33958 | # during linking. This must work even if \$libdir does not exist. | |
33959 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
33960 | ||
33961 | # Whether we need a single "-rpath" flag with a separated argument. | |
33962 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
33963 | ||
33964 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
33965 | # DIR into the resulting binary. | |
33966 | hardcode_direct=$hardcode_direct_FC | |
33967 | ||
33968 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
33969 | # DIR into the resulting binary and the resulting library dependency is | |
33970 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
33971 | # library is relocated. | |
33972 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
33973 | ||
33974 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
33975 | # into the resulting binary. | |
33976 | hardcode_minus_L=$hardcode_minus_L_FC | |
33977 | ||
33978 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
33979 | # into the resulting binary. | |
33980 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
33981 | ||
33982 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
33983 | # into the library and all subsequent libraries and executables linked | |
33984 | # against it. | |
33985 | hardcode_automatic=$hardcode_automatic_FC | |
33986 | ||
33987 | # Set to yes if linker adds runtime paths of dependent libraries | |
33988 | # to runtime path list. | |
33989 | inherit_rpath=$inherit_rpath_FC | |
33990 | ||
33991 | # Whether libtool must link a program against all its dependency libraries. | |
33992 | link_all_deplibs=$link_all_deplibs_FC | |
33993 | ||
33994 | # Fix the shell variable \$srcfile for the compiler. | |
33995 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
33996 | ||
33997 | # Set to "yes" if exported symbols are required. | |
33998 | always_export_symbols=$always_export_symbols_FC | |
33999 | ||
34000 | # The commands to list exported symbols. | |
34001 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
34002 | ||
34003 | # Symbols that should not be listed in the preloaded symbols. | |
34004 | exclude_expsyms=$lt_exclude_expsyms_FC | |
34005 | ||
34006 | # Symbols that must always be exported. | |
34007 | include_expsyms=$lt_include_expsyms_FC | |
34008 | ||
34009 | # Commands necessary for linking programs (against libraries) with templates. | |
34010 | prelink_cmds=$lt_prelink_cmds_FC | |
34011 | ||
34012 | # Specify filename containing input files. | |
34013 | file_list_spec=$lt_file_list_spec_FC | |
34014 | ||
34015 | # How to hardcode a shared library path into an executable. | |
34016 | hardcode_action=$hardcode_action_FC | |
34017 | ||
d58dead8 PG |
34018 | # The directories searched by this compiler when creating a shared library. |
34019 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC | |
34020 | ||
1cf3d07d SE |
34021 | # Dependencies to place before and after the objects being linked to |
34022 | # create a shared library. | |
34023 | predep_objects=$lt_predep_objects_FC | |
34024 | postdep_objects=$lt_postdep_objects_FC | |
34025 | predeps=$lt_predeps_FC | |
34026 | postdeps=$lt_postdeps_FC | |
34027 | ||
34028 | # The library search path used internally by the compiler when linking | |
34029 | # a shared library. | |
34030 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
34031 | ||
34032 | # ### END LIBTOOL TAG CONFIG: FC | |
34033 | _LT_EOF | |
34034 | ||
679c0f9a | 34035 | ;; |
5213506e | 34036 | "gstdint.h":C) |
c13e029b PB |
34037 | if test "$GCC" = yes; then |
34038 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
34039 | else | |
34040 | echo "/* generated for $CC */" > tmp-stdint.h | |
34041 | fi | |
4c4b3eb0 | 34042 | |
c13e029b PB |
34043 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
34044 | ||
34045 | #ifndef GCC_GENERATED_STDINT_H | |
34046 | #define GCC_GENERATED_STDINT_H 1 | |
34047 | ||
34048 | #include <sys/types.h> | |
4c4b3eb0 | 34049 | EOF |
4c4b3eb0 | 34050 | |
c13e029b PB |
34051 | if test "$acx_cv_header_stdint" != stdint.h; then |
34052 | echo "#include <stddef.h>" >> tmp-stdint.h | |
34053 | fi | |
34054 | if test "$acx_cv_header_stdint" != stddef.h; then | |
34055 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
34056 | fi | |
34057 | ||
34058 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34059 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
34060 | #ifdef __int8_t_defined | |
34061 | #define _INT8_T | |
34062 | #define _INT16_T | |
34063 | #define _INT32_T | |
34064 | #endif | |
34065 | #ifdef __uint32_t_defined | |
34066 | #define _UINT32_T | |
34067 | #endif | |
34068 | ||
34069 | EOF | |
34070 | ||
34071 | # ----------------- done header, emit basic int types ------------- | |
34072 | if test "$acx_cv_header_stdint" = stddef.h; then | |
34073 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34074 | ||
34075 | #ifndef _UINT8_T | |
34076 | #define _UINT8_T | |
34077 | #ifndef __uint8_t_defined | |
34078 | #define __uint8_t_defined | |
b9497ab5 | 34079 | #ifndef uint8_t |
c13e029b PB |
34080 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
34081 | #endif | |
34082 | #endif | |
b9497ab5 | 34083 | #endif |
c13e029b PB |
34084 | |
34085 | #ifndef _UINT16_T | |
34086 | #define _UINT16_T | |
34087 | #ifndef __uint16_t_defined | |
34088 | #define __uint16_t_defined | |
b9497ab5 | 34089 | #ifndef uint16_t |
c13e029b PB |
34090 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
34091 | #endif | |
34092 | #endif | |
b9497ab5 | 34093 | #endif |
c13e029b PB |
34094 | |
34095 | #ifndef _UINT32_T | |
34096 | #define _UINT32_T | |
34097 | #ifndef __uint32_t_defined | |
34098 | #define __uint32_t_defined | |
b9497ab5 | 34099 | #ifndef uint32_t |
c13e029b PB |
34100 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
34101 | #endif | |
34102 | #endif | |
b9497ab5 | 34103 | #endif |
c13e029b PB |
34104 | |
34105 | #ifndef _INT8_T | |
34106 | #define _INT8_T | |
34107 | #ifndef __int8_t_defined | |
34108 | #define __int8_t_defined | |
b9497ab5 | 34109 | #ifndef int8_t |
c13e029b PB |
34110 | typedef $acx_cv_type_int8_t int8_t; |
34111 | #endif | |
34112 | #endif | |
b9497ab5 | 34113 | #endif |
c13e029b PB |
34114 | |
34115 | #ifndef _INT16_T | |
34116 | #define _INT16_T | |
34117 | #ifndef __int16_t_defined | |
34118 | #define __int16_t_defined | |
b9497ab5 | 34119 | #ifndef int16_t |
c13e029b PB |
34120 | typedef $acx_cv_type_int16_t int16_t; |
34121 | #endif | |
34122 | #endif | |
b9497ab5 | 34123 | #endif |
c13e029b PB |
34124 | |
34125 | #ifndef _INT32_T | |
34126 | #define _INT32_T | |
34127 | #ifndef __int32_t_defined | |
34128 | #define __int32_t_defined | |
b9497ab5 | 34129 | #ifndef int32_t |
c13e029b PB |
34130 | typedef $acx_cv_type_int32_t int32_t; |
34131 | #endif | |
34132 | #endif | |
b9497ab5 | 34133 | #endif |
c13e029b PB |
34134 | EOF |
34135 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
34136 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34137 | ||
34138 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
34139 | #ifndef _INT8_T | |
34140 | #define _INT8_T | |
34141 | #endif | |
34142 | #ifndef _INT16_T | |
34143 | #define _INT16_T | |
34144 | #endif | |
34145 | #ifndef _INT32_T | |
34146 | #define _INT32_T | |
34147 | #endif | |
34148 | ||
34149 | #ifndef _UINT8_T | |
34150 | #define _UINT8_T | |
34151 | #ifndef __uint8_t_defined | |
34152 | #define __uint8_t_defined | |
b9497ab5 | 34153 | #ifndef uint8_t |
c13e029b PB |
34154 | typedef u_int8_t uint8_t; |
34155 | #endif | |
34156 | #endif | |
b9497ab5 | 34157 | #endif |
c13e029b PB |
34158 | |
34159 | #ifndef _UINT16_T | |
34160 | #define _UINT16_T | |
34161 | #ifndef __uint16_t_defined | |
34162 | #define __uint16_t_defined | |
b9497ab5 | 34163 | #ifndef uint16_t |
c13e029b PB |
34164 | typedef u_int16_t uint16_t; |
34165 | #endif | |
34166 | #endif | |
b9497ab5 | 34167 | #endif |
c13e029b PB |
34168 | |
34169 | #ifndef _UINT32_T | |
34170 | #define _UINT32_T | |
34171 | #ifndef __uint32_t_defined | |
34172 | #define __uint32_t_defined | |
b9497ab5 | 34173 | #ifndef uint32_t |
c13e029b PB |
34174 | typedef u_int32_t uint32_t; |
34175 | #endif | |
34176 | #endif | |
b9497ab5 | 34177 | #endif |
c13e029b PB |
34178 | EOF |
34179 | else | |
34180 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34181 | ||
34182 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
34183 | #ifndef _INT8_T | |
34184 | #define _INT8_T | |
34185 | #endif | |
34186 | #ifndef _INT16_T | |
34187 | #define _INT16_T | |
34188 | #endif | |
34189 | #ifndef _INT32_T | |
34190 | #define _INT32_T | |
34191 | #endif | |
34192 | #ifndef _UINT8_T | |
34193 | #define _UINT8_T | |
34194 | #endif | |
34195 | #ifndef _UINT16_T | |
34196 | #define _UINT16_T | |
34197 | #endif | |
34198 | #ifndef _UINT32_T | |
34199 | #define _UINT32_T | |
34200 | #endif | |
34201 | EOF | |
34202 | fi | |
34203 | ||
34204 | # ------------- done basic int types, emit int64_t types ------------ | |
34205 | if test "$ac_cv_type_uint64_t" = yes; then | |
34206 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34207 | ||
34208 | /* system headers have good uint64_t and int64_t */ | |
34209 | #ifndef _INT64_T | |
34210 | #define _INT64_T | |
34211 | #endif | |
34212 | #ifndef _UINT64_T | |
34213 | #define _UINT64_T | |
34214 | #endif | |
34215 | EOF | |
34216 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
34217 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34218 | ||
34219 | /* system headers have an u_int64_t (and int64_t) */ | |
34220 | #ifndef _INT64_T | |
34221 | #define _INT64_T | |
34222 | #endif | |
34223 | #ifndef _UINT64_T | |
34224 | #define _UINT64_T | |
34225 | #ifndef __uint64_t_defined | |
34226 | #define __uint64_t_defined | |
b9497ab5 | 34227 | #ifndef uint64_t |
c13e029b PB |
34228 | typedef u_int64_t uint64_t; |
34229 | #endif | |
34230 | #endif | |
b9497ab5 | 34231 | #endif |
c13e029b PB |
34232 | EOF |
34233 | elif test -n "$acx_cv_type_int64_t"; then | |
34234 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34235 | ||
34236 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
34237 | #ifndef _INT64_T | |
34238 | #define _INT64_T | |
b9497ab5 | 34239 | #ifndef int64_t |
c13e029b PB |
34240 | typedef $acx_cv_type_int64_t int64_t; |
34241 | #endif | |
b9497ab5 | 34242 | #endif |
c13e029b PB |
34243 | #ifndef _UINT64_T |
34244 | #define _UINT64_T | |
34245 | #ifndef __uint64_t_defined | |
34246 | #define __uint64_t_defined | |
b9497ab5 | 34247 | #ifndef uint64_t |
c13e029b PB |
34248 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
34249 | #endif | |
34250 | #endif | |
b9497ab5 | 34251 | #endif |
c13e029b PB |
34252 | EOF |
34253 | else | |
34254 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34255 | ||
34256 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
34257 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
34258 | #ifndef _INT64_T | |
34259 | #define _INT64_T | |
34260 | #ifndef __int64_t_defined | |
b9497ab5 | 34261 | #ifndef int64_t |
c13e029b PB |
34262 | typedef long long int64_t; |
34263 | #endif | |
34264 | #endif | |
b9497ab5 | 34265 | #endif |
c13e029b PB |
34266 | #ifndef _UINT64_T |
34267 | #define _UINT64_T | |
b9497ab5 | 34268 | #ifndef uint64_t |
c13e029b PB |
34269 | typedef unsigned long long uint64_t; |
34270 | #endif | |
b9497ab5 | 34271 | #endif |
c13e029b PB |
34272 | |
34273 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
34274 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
34275 | does not implement __extension__. But that compiler doesn't define | |
34276 | __GNUC_MINOR__. */ | |
34277 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
34278 | # define __extension__ | |
34279 | # endif | |
34280 | ||
34281 | # ifndef _INT64_T | |
34282 | # define _INT64_T | |
b9497ab5 | 34283 | # ifndef int64_t |
c13e029b PB |
34284 | __extension__ typedef long long int64_t; |
34285 | # endif | |
b9497ab5 | 34286 | # endif |
c13e029b PB |
34287 | # ifndef _UINT64_T |
34288 | # define _UINT64_T | |
b9497ab5 | 34289 | # ifndef uint64_t |
c13e029b PB |
34290 | __extension__ typedef unsigned long long uint64_t; |
34291 | # endif | |
b9497ab5 | 34292 | # endif |
c13e029b PB |
34293 | |
34294 | #elif !defined __STRICT_ANSI__ | |
34295 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
34296 | ||
34297 | # ifndef _INT64_T | |
34298 | # define _INT64_T | |
b9497ab5 | 34299 | # ifndef int64_t |
c13e029b PB |
34300 | typedef __int64 int64_t; |
34301 | # endif | |
b9497ab5 | 34302 | # endif |
c13e029b PB |
34303 | # ifndef _UINT64_T |
34304 | # define _UINT64_T | |
b9497ab5 | 34305 | # ifndef uint64_t |
c13e029b PB |
34306 | typedef unsigned __int64 uint64_t; |
34307 | # endif | |
b9497ab5 | 34308 | # endif |
c13e029b PB |
34309 | # endif /* compiler */ |
34310 | ||
34311 | #endif /* ANSI version */ | |
34312 | EOF | |
34313 | fi | |
34314 | ||
34315 | # ------------- done int64_t types, emit intptr types ------------ | |
34316 | if test "$ac_cv_type_uintptr_t" != yes; then | |
34317 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34318 | ||
34319 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
34320 | #ifndef __uintptr_t_defined | |
b9497ab5 | 34321 | #ifndef uintptr_t |
c13e029b PB |
34322 | typedef u$acx_cv_type_intptr_t uintptr_t; |
34323 | #endif | |
b9497ab5 | 34324 | #endif |
c13e029b | 34325 | #ifndef __intptr_t_defined |
b9497ab5 | 34326 | #ifndef intptr_t |
c13e029b PB |
34327 | typedef $acx_cv_type_intptr_t intptr_t; |
34328 | #endif | |
b9497ab5 | 34329 | #endif |
c13e029b PB |
34330 | EOF |
34331 | fi | |
34332 | ||
34333 | # ------------- done intptr types, emit int_least types ------------ | |
4c4b3eb0 | 34334 | if test "$ac_cv_type_int_least32_t" != yes; then |
c13e029b | 34335 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
4c4b3eb0 PB |
34336 | |
34337 | /* Define int_least types */ | |
34338 | typedef int8_t int_least8_t; | |
34339 | typedef int16_t int_least16_t; | |
34340 | typedef int32_t int_least32_t; | |
c13e029b | 34341 | #ifdef _INT64_T |
4c4b3eb0 | 34342 | typedef int64_t int_least64_t; |
c13e029b | 34343 | #endif |
4c4b3eb0 PB |
34344 | |
34345 | typedef uint8_t uint_least8_t; | |
34346 | typedef uint16_t uint_least16_t; | |
34347 | typedef uint32_t uint_least32_t; | |
c13e029b | 34348 | #ifdef _UINT64_T |
4c4b3eb0 | 34349 | typedef uint64_t uint_least64_t; |
c13e029b | 34350 | #endif |
4c4b3eb0 PB |
34351 | EOF |
34352 | fi | |
34353 | ||
c13e029b | 34354 | # ------------- done intptr types, emit int_fast types ------------ |
4c4b3eb0 | 34355 | if test "$ac_cv_type_int_fast32_t" != yes; then |
c13e029b | 34356 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
4c4b3eb0 PB |
34357 | |
34358 | /* Define int_fast types. short is often slow */ | |
34359 | typedef int8_t int_fast8_t; | |
34360 | typedef int int_fast16_t; | |
34361 | typedef int32_t int_fast32_t; | |
c13e029b | 34362 | #ifdef _INT64_T |
4c4b3eb0 | 34363 | typedef int64_t int_fast64_t; |
c13e029b | 34364 | #endif |
4c4b3eb0 PB |
34365 | |
34366 | typedef uint8_t uint_fast8_t; | |
34367 | typedef unsigned int uint_fast16_t; | |
34368 | typedef uint32_t uint_fast32_t; | |
c13e029b | 34369 | #ifdef _UINT64_T |
4c4b3eb0 | 34370 | typedef uint64_t uint_fast64_t; |
c13e029b PB |
34371 | #endif |
34372 | EOF | |
34373 | fi | |
34374 | ||
34375 | if test "$ac_cv_type_uintmax_t" != yes; then | |
34376 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34377 | ||
34378 | /* Define intmax based on what we found */ | |
b9497ab5 | 34379 | #ifndef intmax_t |
c13e029b PB |
34380 | #ifdef _INT64_T |
34381 | typedef int64_t intmax_t; | |
34382 | #else | |
34383 | typedef long intmax_t; | |
34384 | #endif | |
b9497ab5 RO |
34385 | #endif |
34386 | #ifndef uintmax_t | |
c13e029b PB |
34387 | #ifdef _UINT64_T |
34388 | typedef uint64_t uintmax_t; | |
34389 | #else | |
34390 | typedef unsigned long uintmax_t; | |
34391 | #endif | |
b9497ab5 | 34392 | #endif |
4c4b3eb0 PB |
34393 | EOF |
34394 | fi | |
34395 | ||
c13e029b PB |
34396 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
34397 | ||
34398 | #endif /* GCC_GENERATED_STDINT_H */ | |
34399 | EOF | |
4c4b3eb0 | 34400 | |
c13e029b PB |
34401 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then |
34402 | rm -f tmp-stdint.h | |
4c4b3eb0 | 34403 | else |
c13e029b | 34404 | mv -f tmp-stdint.h gstdint.h |
4c4b3eb0 PB |
34405 | fi |
34406 | ||
34407 | ;; | |
5213506e | 34408 | |
6de9cd9a | 34409 | esac |
5213506e | 34410 | done # for ac_tag |
6de9cd9a | 34411 | |
6de9cd9a | 34412 | |
5213506e | 34413 | as_fn_exit 0 |
6de9cd9a | 34414 | _ACEOF |
6de9cd9a DN |
34415 | ac_clean_files=$ac_clean_files_save |
34416 | ||
5213506e | 34417 | test $ac_write_fail = 0 || |
22e05272 | 34418 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 34419 | |
6de9cd9a DN |
34420 | |
34421 | # configure is writing to config.log, and then calls config.status. | |
34422 | # config.status does its own redirection, appending to config.log. | |
34423 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
34424 | # by configure, so config.status won't be able to write to it; its | |
34425 | # output is simply discarded. So we exec the FD to /dev/null, | |
34426 | # effectively closing config.log, so it can be properly (re)opened and | |
34427 | # appended to by config.status. When coming back to configure, we | |
34428 | # need to make the FD available again. | |
34429 | if test "$no_create" != yes; then | |
34430 | ac_cs_success=: | |
34431 | ac_config_status_args= | |
34432 | test "$silent" = yes && | |
34433 | ac_config_status_args="$ac_config_status_args --quiet" | |
34434 | exec 5>/dev/null | |
34435 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
34436 | exec 5>>config.log | |
34437 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
34438 | # would make configure fail if this is the last instruction. | |
22e05272 | 34439 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
34440 | fi |
34441 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
34442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
34443 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
6de9cd9a DN |
34444 | fi |
34445 |