]>
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 | |
5213506e RW |
758 | target_subdir |
759 | host_subdir | |
760 | build_subdir | |
761 | build_libsubdir | |
762 | build_os | |
763 | build_vendor | |
764 | build_cpu | |
765 | build | |
766 | target_alias | |
767 | host_alias | |
768 | build_alias | |
769 | LIBS | |
770 | ECHO_T | |
771 | ECHO_N | |
772 | ECHO_C | |
773 | DEFS | |
774 | mandir | |
775 | localedir | |
776 | libdir | |
777 | psdir | |
778 | pdfdir | |
779 | dvidir | |
780 | htmldir | |
781 | infodir | |
782 | docdir | |
783 | oldincludedir | |
784 | includedir | |
785 | localstatedir | |
786 | sharedstatedir | |
787 | sysconfdir | |
788 | datadir | |
789 | datarootdir | |
790 | libexecdir | |
791 | sbindir | |
792 | bindir | |
793 | program_transform_name | |
794 | prefix | |
795 | exec_prefix | |
796 | PACKAGE_URL | |
797 | PACKAGE_BUGREPORT | |
798 | PACKAGE_STRING | |
799 | PACKAGE_VERSION | |
800 | PACKAGE_TARNAME | |
801 | PACKAGE_NAME | |
802 | PATH_SEPARATOR | |
803 | SHELL' | |
6de9cd9a | 804 | ac_subst_files='' |
5213506e RW |
805 | ac_user_opts=' |
806 | enable_option_checking | |
807 | with_build_libsubdir | |
808 | enable_version_specific_runtime_libs | |
22e05272 | 809 | enable_silent_rules |
5213506e RW |
810 | enable_maintainer_mode |
811 | enable_multilib | |
812 | enable_dependency_tracking | |
e8e66971 | 813 | with_toolexeclibdir |
26724ef9 | 814 | enable_cet |
bf382f5f | 815 | enable_symvers |
66dbcf2d | 816 | with_gnu_ld |
5213506e RW |
817 | enable_shared |
818 | enable_static | |
819 | with_pic | |
820 | enable_fast_install | |
5213506e RW |
821 | enable_libtool_lock |
822 | enable_largefile | |
87e6d9dc | 823 | enable_libquadmath_support |
3c36aa6b | 824 | with_gcc_major_version_only |
5213506e RW |
825 | ' |
826 | ac_precious_vars='build_alias | |
827 | host_alias | |
828 | target_alias | |
21be0a5a JB |
829 | CC |
830 | CFLAGS | |
831 | LDFLAGS | |
832 | LIBS | |
5213506e | 833 | CPPFLAGS |
21be0a5a | 834 | CPP |
5213506e | 835 | FC |
21be0a5a | 836 | FCFLAGS' |
5213506e | 837 | |
6de9cd9a DN |
838 | |
839 | # Initialize some variables set by options. | |
840 | ac_init_help= | |
841 | ac_init_version=false | |
5213506e RW |
842 | ac_unrecognized_opts= |
843 | ac_unrecognized_sep= | |
6de9cd9a DN |
844 | # The variables have the same names as the options, with |
845 | # dashes changed to underlines. | |
846 | cache_file=/dev/null | |
847 | exec_prefix=NONE | |
848 | no_create= | |
849 | no_recursion= | |
850 | prefix=NONE | |
851 | program_prefix=NONE | |
852 | program_suffix=NONE | |
853 | program_transform_name=s,x,x, | |
854 | silent= | |
855 | site= | |
856 | srcdir= | |
857 | verbose= | |
858 | x_includes=NONE | |
859 | x_libraries=NONE | |
860 | ||
861 | # Installation directory options. | |
862 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
863 | # and all the variables that are supposed to be based on exec_prefix | |
864 | # by default will actually change. | |
865 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 866 | # (The list follows the same order as the GNU Coding Standards.) |
6de9cd9a DN |
867 | bindir='${exec_prefix}/bin' |
868 | sbindir='${exec_prefix}/sbin' | |
869 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
870 | datarootdir='${prefix}/share' |
871 | datadir='${datarootdir}' | |
6de9cd9a DN |
872 | sysconfdir='${prefix}/etc' |
873 | sharedstatedir='${prefix}/com' | |
874 | localstatedir='${prefix}/var' | |
6de9cd9a DN |
875 | includedir='${prefix}/include' |
876 | oldincludedir='/usr/include' | |
5213506e RW |
877 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
878 | infodir='${datarootdir}/info' | |
879 | htmldir='${docdir}' | |
880 | dvidir='${docdir}' | |
881 | pdfdir='${docdir}' | |
882 | psdir='${docdir}' | |
883 | libdir='${exec_prefix}/lib' | |
884 | localedir='${datarootdir}/locale' | |
885 | mandir='${datarootdir}/man' | |
6de9cd9a DN |
886 | |
887 | ac_prev= | |
5213506e | 888 | ac_dashdash= |
6de9cd9a DN |
889 | for ac_option |
890 | do | |
891 | # If the previous option needs an argument, assign it. | |
892 | if test -n "$ac_prev"; then | |
5213506e | 893 | eval $ac_prev=\$ac_option |
6de9cd9a DN |
894 | ac_prev= |
895 | continue | |
896 | fi | |
897 | ||
5213506e | 898 | case $ac_option in |
22e05272 JM |
899 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
900 | *=) ac_optarg= ;; | |
901 | *) ac_optarg=yes ;; | |
5213506e | 902 | esac |
6de9cd9a DN |
903 | |
904 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
905 | ||
5213506e RW |
906 | case $ac_dashdash$ac_option in |
907 | --) | |
908 | ac_dashdash=yes ;; | |
6de9cd9a DN |
909 | |
910 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
911 | ac_prev=bindir ;; | |
912 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
913 | bindir=$ac_optarg ;; | |
914 | ||
915 | -build | --build | --buil | --bui | --bu) | |
916 | ac_prev=build_alias ;; | |
917 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
918 | build_alias=$ac_optarg ;; | |
919 | ||
920 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
921 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
922 | ac_prev=cache_file ;; | |
923 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
924 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
925 | cache_file=$ac_optarg ;; | |
926 | ||
927 | --config-cache | -C) | |
928 | cache_file=config.cache ;; | |
929 | ||
5213506e | 930 | -datadir | --datadir | --datadi | --datad) |
6de9cd9a | 931 | ac_prev=datadir ;; |
5213506e | 932 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
6de9cd9a DN |
933 | datadir=$ac_optarg ;; |
934 | ||
5213506e RW |
935 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
936 | | --dataroo | --dataro | --datar) | |
937 | ac_prev=datarootdir ;; | |
938 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
939 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
940 | datarootdir=$ac_optarg ;; | |
941 | ||
6de9cd9a | 942 | -disable-* | --disable-*) |
5213506e | 943 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
6de9cd9a | 944 | # Reject names that are not valid shell variable names. |
5213506e | 945 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 946 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
947 | ac_useropt_orig=$ac_useropt |
948 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
949 | case $ac_user_opts in | |
950 | *" | |
951 | "enable_$ac_useropt" | |
952 | "*) ;; | |
953 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
954 | ac_unrecognized_sep=', ';; | |
955 | esac | |
956 | eval enable_$ac_useropt=no ;; | |
957 | ||
958 | -docdir | --docdir | --docdi | --doc | --do) | |
959 | ac_prev=docdir ;; | |
960 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
961 | docdir=$ac_optarg ;; | |
962 | ||
963 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
964 | ac_prev=dvidir ;; | |
965 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
966 | dvidir=$ac_optarg ;; | |
6de9cd9a DN |
967 | |
968 | -enable-* | --enable-*) | |
5213506e | 969 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
6de9cd9a | 970 | # Reject names that are not valid shell variable names. |
5213506e | 971 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 972 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
973 | ac_useropt_orig=$ac_useropt |
974 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
975 | case $ac_user_opts in | |
976 | *" | |
977 | "enable_$ac_useropt" | |
978 | "*) ;; | |
979 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
980 | ac_unrecognized_sep=', ';; | |
38d24731 | 981 | esac |
5213506e | 982 | eval enable_$ac_useropt=\$ac_optarg ;; |
6de9cd9a DN |
983 | |
984 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
985 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
986 | | --exec | --exe | --ex) | |
987 | ac_prev=exec_prefix ;; | |
988 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
989 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
990 | | --exec=* | --exe=* | --ex=*) | |
991 | exec_prefix=$ac_optarg ;; | |
992 | ||
993 | -gas | --gas | --ga | --g) | |
994 | # Obsolete; use --with-gas. | |
995 | with_gas=yes ;; | |
996 | ||
997 | -help | --help | --hel | --he | -h) | |
998 | ac_init_help=long ;; | |
999 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1000 | ac_init_help=recursive ;; | |
1001 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1002 | ac_init_help=short ;; | |
1003 | ||
1004 | -host | --host | --hos | --ho) | |
1005 | ac_prev=host_alias ;; | |
1006 | -host=* | --host=* | --hos=* | --ho=*) | |
1007 | host_alias=$ac_optarg ;; | |
1008 | ||
5213506e RW |
1009 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1010 | ac_prev=htmldir ;; | |
1011 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1012 | | --ht=*) | |
1013 | htmldir=$ac_optarg ;; | |
1014 | ||
6de9cd9a DN |
1015 | -includedir | --includedir | --includedi | --included | --include \ |
1016 | | --includ | --inclu | --incl | --inc) | |
1017 | ac_prev=includedir ;; | |
1018 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1019 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1020 | includedir=$ac_optarg ;; | |
1021 | ||
1022 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1023 | ac_prev=infodir ;; | |
1024 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1025 | infodir=$ac_optarg ;; | |
1026 | ||
1027 | -libdir | --libdir | --libdi | --libd) | |
1028 | ac_prev=libdir ;; | |
1029 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1030 | libdir=$ac_optarg ;; | |
1031 | ||
1032 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1033 | | --libexe | --libex | --libe) | |
1034 | ac_prev=libexecdir ;; | |
1035 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1036 | | --libexe=* | --libex=* | --libe=*) | |
1037 | libexecdir=$ac_optarg ;; | |
1038 | ||
5213506e RW |
1039 | -localedir | --localedir | --localedi | --localed | --locale) |
1040 | ac_prev=localedir ;; | |
1041 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1042 | localedir=$ac_optarg ;; | |
1043 | ||
6de9cd9a | 1044 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1045 | | --localstate | --localstat | --localsta | --localst | --locals) |
6de9cd9a DN |
1046 | ac_prev=localstatedir ;; |
1047 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1048 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
6de9cd9a DN |
1049 | localstatedir=$ac_optarg ;; |
1050 | ||
1051 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1052 | ac_prev=mandir ;; | |
1053 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1054 | mandir=$ac_optarg ;; | |
1055 | ||
1056 | -nfp | --nfp | --nf) | |
1057 | # Obsolete; use --without-fp. | |
1058 | with_fp=no ;; | |
1059 | ||
1060 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1061 | | --no-cr | --no-c | -n) | |
1062 | no_create=yes ;; | |
1063 | ||
1064 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1065 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1066 | no_recursion=yes ;; | |
1067 | ||
1068 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1069 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1070 | | --oldin | --oldi | --old | --ol | --o) | |
1071 | ac_prev=oldincludedir ;; | |
1072 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1073 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1074 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1075 | oldincludedir=$ac_optarg ;; | |
1076 | ||
1077 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1078 | ac_prev=prefix ;; | |
1079 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1080 | prefix=$ac_optarg ;; | |
1081 | ||
1082 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1083 | | --program-pre | --program-pr | --program-p) | |
1084 | ac_prev=program_prefix ;; | |
1085 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1086 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1087 | program_prefix=$ac_optarg ;; | |
1088 | ||
1089 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1090 | | --program-suf | --program-su | --program-s) | |
1091 | ac_prev=program_suffix ;; | |
1092 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1093 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1094 | program_suffix=$ac_optarg ;; | |
1095 | ||
1096 | -program-transform-name | --program-transform-name \ | |
1097 | | --program-transform-nam | --program-transform-na \ | |
1098 | | --program-transform-n | --program-transform- \ | |
1099 | | --program-transform | --program-transfor \ | |
1100 | | --program-transfo | --program-transf \ | |
1101 | | --program-trans | --program-tran \ | |
1102 | | --progr-tra | --program-tr | --program-t) | |
1103 | ac_prev=program_transform_name ;; | |
1104 | -program-transform-name=* | --program-transform-name=* \ | |
1105 | | --program-transform-nam=* | --program-transform-na=* \ | |
1106 | | --program-transform-n=* | --program-transform-=* \ | |
1107 | | --program-transform=* | --program-transfor=* \ | |
1108 | | --program-transfo=* | --program-transf=* \ | |
1109 | | --program-trans=* | --program-tran=* \ | |
1110 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1111 | program_transform_name=$ac_optarg ;; | |
1112 | ||
5213506e RW |
1113 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1114 | ac_prev=pdfdir ;; | |
1115 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1116 | pdfdir=$ac_optarg ;; | |
1117 | ||
1118 | -psdir | --psdir | --psdi | --psd | --ps) | |
1119 | ac_prev=psdir ;; | |
1120 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1121 | psdir=$ac_optarg ;; | |
1122 | ||
6de9cd9a DN |
1123 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1124 | | -silent | --silent | --silen | --sile | --sil) | |
1125 | silent=yes ;; | |
1126 | ||
1127 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1128 | ac_prev=sbindir ;; | |
1129 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1130 | | --sbi=* | --sb=*) | |
1131 | sbindir=$ac_optarg ;; | |
1132 | ||
1133 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1134 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1135 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1136 | | --sha | --sh) | |
1137 | ac_prev=sharedstatedir ;; | |
1138 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1139 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1140 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1141 | | --sha=* | --sh=*) | |
1142 | sharedstatedir=$ac_optarg ;; | |
1143 | ||
1144 | -site | --site | --sit) | |
1145 | ac_prev=site ;; | |
1146 | -site=* | --site=* | --sit=*) | |
1147 | site=$ac_optarg ;; | |
1148 | ||
1149 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1150 | ac_prev=srcdir ;; | |
1151 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1152 | srcdir=$ac_optarg ;; | |
1153 | ||
1154 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1155 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1156 | ac_prev=sysconfdir ;; | |
1157 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1158 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1159 | sysconfdir=$ac_optarg ;; | |
1160 | ||
1161 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1162 | ac_prev=target_alias ;; | |
1163 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1164 | target_alias=$ac_optarg ;; | |
1165 | ||
1166 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1167 | verbose=yes ;; | |
1168 | ||
1169 | -version | --version | --versio | --versi | --vers | -V) | |
1170 | ac_init_version=: ;; | |
1171 | ||
1172 | -with-* | --with-*) | |
5213506e | 1173 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
6de9cd9a | 1174 | # Reject names that are not valid shell variable names. |
5213506e | 1175 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1176 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1177 | ac_useropt_orig=$ac_useropt |
1178 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1179 | case $ac_user_opts in | |
1180 | *" | |
1181 | "with_$ac_useropt" | |
1182 | "*) ;; | |
1183 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1184 | ac_unrecognized_sep=', ';; | |
38d24731 | 1185 | esac |
5213506e | 1186 | eval with_$ac_useropt=\$ac_optarg ;; |
6de9cd9a DN |
1187 | |
1188 | -without-* | --without-*) | |
5213506e | 1189 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
6de9cd9a | 1190 | # Reject names that are not valid shell variable names. |
5213506e | 1191 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1192 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1193 | ac_useropt_orig=$ac_useropt |
1194 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1195 | case $ac_user_opts in | |
1196 | *" | |
1197 | "with_$ac_useropt" | |
1198 | "*) ;; | |
1199 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1200 | ac_unrecognized_sep=', ';; | |
1201 | esac | |
1202 | eval with_$ac_useropt=no ;; | |
6de9cd9a DN |
1203 | |
1204 | --x) | |
1205 | # Obsolete; use --with-x. | |
1206 | with_x=yes ;; | |
1207 | ||
1208 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1209 | | --x-incl | --x-inc | --x-in | --x-i) | |
1210 | ac_prev=x_includes ;; | |
1211 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1212 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1213 | x_includes=$ac_optarg ;; | |
1214 | ||
1215 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1216 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1217 | ac_prev=x_libraries ;; | |
1218 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1219 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1220 | x_libraries=$ac_optarg ;; | |
1221 | ||
22e05272 JM |
1222 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1223 | Try \`$0 --help' for more information" | |
6de9cd9a DN |
1224 | ;; |
1225 | ||
1226 | *=*) | |
1227 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1228 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1229 | case $ac_envvar in #( |
1230 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1231 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1232 | esac |
1233 | eval $ac_envvar=\$ac_optarg | |
6de9cd9a DN |
1234 | export $ac_envvar ;; |
1235 | ||
1236 | *) | |
1237 | # FIXME: should be removed in autoconf 3.0. | |
5213506e | 1238 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
6de9cd9a | 1239 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1240 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1241 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
6de9cd9a DN |
1242 | ;; |
1243 | ||
1244 | esac | |
1245 | done | |
1246 | ||
1247 | if test -n "$ac_prev"; then | |
1248 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
22e05272 | 1249 | as_fn_error $? "missing argument to $ac_option" |
6de9cd9a DN |
1250 | fi |
1251 | ||
5213506e RW |
1252 | if test -n "$ac_unrecognized_opts"; then |
1253 | case $enable_option_checking in | |
1254 | no) ;; | |
22e05272 | 1255 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1256 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
38d24731 | 1257 | esac |
5213506e | 1258 | fi |
38d24731 | 1259 | |
5213506e RW |
1260 | # Check all directory arguments for consistency. |
1261 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1262 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1263 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
e9085da5 | 1264 | libdir localedir mandir |
38d24731 | 1265 | do |
5213506e RW |
1266 | eval ac_val=\$$ac_var |
1267 | # Remove trailing slashes. | |
1268 | case $ac_val in | |
1269 | */ ) | |
1270 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1271 | eval $ac_var=\$ac_val;; | |
1272 | esac | |
1273 | # Be sure to have absolute directory names. | |
38d24731 | 1274 | case $ac_val in |
5213506e RW |
1275 | [\\/$]* | ?:[\\/]* ) continue;; |
1276 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
6de9cd9a | 1277 | esac |
22e05272 | 1278 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
6de9cd9a DN |
1279 | done |
1280 | ||
1281 | # There might be people who depend on the old broken behavior: `$host' | |
1282 | # used to hold the argument of --host etc. | |
1283 | # FIXME: To remove some day. | |
1284 | build=$build_alias | |
1285 | host=$host_alias | |
1286 | target=$target_alias | |
1287 | ||
1288 | # FIXME: To remove some day. | |
1289 | if test "x$host_alias" != x; then | |
1290 | if test "x$build_alias" = x; then | |
1291 | cross_compiling=maybe | |
6de9cd9a DN |
1292 | elif test "x$build_alias" != "x$host_alias"; then |
1293 | cross_compiling=yes | |
1294 | fi | |
1295 | fi | |
1296 | ||
1297 | ac_tool_prefix= | |
1298 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1299 | ||
1300 | test "$silent" = yes && exec 6>/dev/null | |
1301 | ||
1302 | ||
5213506e RW |
1303 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1304 | ac_ls_di=`ls -di .` && | |
1305 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1306 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1307 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1308 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1309 | |
1310 | ||
6de9cd9a DN |
1311 | # Find the source files, if location was not specified. |
1312 | if test -z "$srcdir"; then | |
1313 | ac_srcdir_defaulted=yes | |
5213506e RW |
1314 | # Try the directory containing this script, then the parent directory. |
1315 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1316 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1317 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1318 | X"$as_myself" : 'X\(//\)$' \| \ | |
1319 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1320 | $as_echo X"$as_myself" | | |
1321 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1322 | s//\1/ | |
1323 | q | |
1324 | } | |
1325 | /^X\(\/\/\)[^/].*/{ | |
1326 | s//\1/ | |
1327 | q | |
1328 | } | |
1329 | /^X\(\/\/\)$/{ | |
1330 | s//\1/ | |
1331 | q | |
1332 | } | |
1333 | /^X\(\/\).*/{ | |
1334 | s//\1/ | |
1335 | q | |
1336 | } | |
1337 | s/.*/./; q'` | |
6de9cd9a | 1338 | srcdir=$ac_confdir |
5213506e | 1339 | if test ! -r "$srcdir/$ac_unique_file"; then |
6de9cd9a DN |
1340 | srcdir=.. |
1341 | fi | |
1342 | else | |
1343 | ac_srcdir_defaulted=no | |
1344 | fi | |
5213506e RW |
1345 | if test ! -r "$srcdir/$ac_unique_file"; then |
1346 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1347 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1348 | fi |
1349 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1350 | ac_abs_confdir=`( | |
22e05272 | 1351 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1352 | pwd)` |
1353 | # When building in place, set srcdir=. | |
1354 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1355 | srcdir=. | |
1356 | fi | |
1357 | # Remove unnecessary trailing slashes from srcdir. | |
1358 | # Double slashes in file names in object file debugging info | |
1359 | # mess up M-x gdb in Emacs. | |
1360 | case $srcdir in | |
1361 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1362 | esac | |
1363 | for ac_var in $ac_precious_vars; do | |
1364 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1365 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1366 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1367 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1368 | done | |
6de9cd9a DN |
1369 | |
1370 | # | |
1371 | # Report the --help message. | |
1372 | # | |
1373 | if test "$ac_init_help" = "long"; then | |
1374 | # Omit some internal or obsolete options to make the list less imposing. | |
1375 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1376 | cat <<_ACEOF | |
0dce3ca1 | 1377 | \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems. |
6de9cd9a DN |
1378 | |
1379 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1380 | ||
1381 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1382 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1383 | ||
1384 | Defaults for the options are specified in brackets. | |
1385 | ||
1386 | Configuration: | |
1387 | -h, --help display this help and exit | |
1388 | --help=short display options specific to this package | |
1389 | --help=recursive display the short help of all the included packages | |
1390 | -V, --version display version information and exit | |
22e05272 | 1391 | -q, --quiet, --silent do not print \`checking ...' messages |
6de9cd9a DN |
1392 | --cache-file=FILE cache test results in FILE [disabled] |
1393 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1394 | -n, --no-create do not create output files | |
1395 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1396 | ||
6de9cd9a DN |
1397 | Installation directories: |
1398 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1399 | [$ac_default_prefix] |
6de9cd9a | 1400 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1401 | [PREFIX] |
6de9cd9a DN |
1402 | |
1403 | By default, \`make install' will install all the files in | |
1404 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1405 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1406 | for instance \`--prefix=\$HOME'. | |
1407 | ||
1408 | For better control, use the options below. | |
1409 | ||
1410 | Fine tuning of the installation directories: | |
5213506e RW |
1411 | --bindir=DIR user executables [EPREFIX/bin] |
1412 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1413 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1414 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1415 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1416 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1417 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1418 | --includedir=DIR C header files [PREFIX/include] | |
1419 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1420 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1421 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1422 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1423 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1424 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1425 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran] | |
1426 | --htmldir=DIR html documentation [DOCDIR] | |
1427 | --dvidir=DIR dvi documentation [DOCDIR] | |
1428 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1429 | --psdir=DIR ps documentation [DOCDIR] | |
6de9cd9a DN |
1430 | _ACEOF |
1431 | ||
1432 | cat <<\_ACEOF | |
1433 | ||
1434 | Program names: | |
1435 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1436 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1437 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1438 | ||
1439 | System types: | |
1440 | --build=BUILD configure for building on BUILD [guessed] | |
1441 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
96b8a615 | 1442 | --target=TARGET configure for building compilers for TARGET [HOST] |
6de9cd9a DN |
1443 | _ACEOF |
1444 | fi | |
1445 | ||
1446 | if test -n "$ac_init_help"; then | |
1447 | case $ac_init_help in | |
0dce3ca1 | 1448 | short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";; |
6de9cd9a DN |
1449 | esac |
1450 | cat <<\_ACEOF | |
1451 | ||
1452 | Optional Features: | |
5213506e | 1453 | --disable-option-checking ignore unrecognized --enable/--with options |
6de9cd9a DN |
1454 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1455 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
87e6d9dc TB |
1456 | --enable-version-specific-runtime-libs |
1457 | specify that runtime libraries should be installed | |
1458 | in a compiler-specific directory | |
22e05272 JM |
1459 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1460 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1461 | --enable-maintainer-mode | |
1462 | enable make rules and dependencies not useful (and | |
1463 | sometimes confusing) to the casual installer | |
96b8a615 | 1464 | --enable-multilib build many library versions (default) |
22e05272 JM |
1465 | --enable-dependency-tracking |
1466 | do not reject slow dependency extractors | |
1467 | --disable-dependency-tracking | |
1468 | speeds up one-time build | |
8d286dd1 | 1469 | --enable-cet enable Intel CET in target libraries [default=auto] |
bf382f5f | 1470 | --disable-symvers disable symbol versioning for libgfortran |
5213506e RW |
1471 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1472 | --enable-static[=PKGS] build static libraries [default=yes] | |
1cf3d07d SE |
1473 | --enable-fast-install[=PKGS] |
1474 | optimize for fast installation [default=yes] | |
6de9cd9a | 1475 | --disable-libtool-lock avoid locking (might break parallel builds) |
9cdc381b | 1476 | --disable-largefile omit support for large files |
87e6d9dc TB |
1477 | --disable-libquadmath-support |
1478 | disable libquadmath support for Fortran | |
6de9cd9a DN |
1479 | |
1480 | Optional Packages: | |
1481 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1482 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
57255173 | 1483 | --with-build-libsubdir=DIR Directory where to find libraries for build system |
e8e66971 MR |
1484 | --with-toolexeclibdir=DIR |
1485 | install libraries built with a cross compiler within | |
1486 | DIR | |
66dbcf2d | 1487 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1cf3d07d SE |
1488 | --with-pic try to use only PIC/non-PIC objects [default=use |
1489 | both] | |
3c36aa6b JJ |
1490 | --with-gcc-major-version-only |
1491 | use only GCC major number in filesystem paths | |
6de9cd9a DN |
1492 | |
1493 | Some influential environment variables: | |
1494 | CC C compiler command | |
1495 | CFLAGS C compiler flags | |
1496 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1497 | nonstandard directory <lib dir> | |
5213506e | 1498 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1499 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1500 | you have headers in a nonstandard directory <include dir> |
1cf3d07d | 1501 | CPP C preprocessor |
c7a35fe9 AS |
1502 | FC Fortran compiler command |
1503 | FCFLAGS Fortran compiler flags | |
6de9cd9a DN |
1504 | |
1505 | Use these variables to override the choices made by `configure' or to help | |
1506 | it to find libraries and programs with nonstandard names/locations. | |
1507 | ||
5213506e RW |
1508 | Report bugs to the package provider. |
1509 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
1510 | General help using GNU software: <http://www.gnu.org/gethelp/>. | |
6de9cd9a | 1511 | _ACEOF |
5213506e | 1512 | ac_status=$? |
6de9cd9a DN |
1513 | fi |
1514 | ||
1515 | if test "$ac_init_help" = "recursive"; then | |
1516 | # If there are subdirs, report their specific --help. | |
6de9cd9a | 1517 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1518 | test -d "$ac_dir" || |
1519 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1520 | continue | |
6de9cd9a DN |
1521 | ac_builddir=. |
1522 | ||
5213506e RW |
1523 | case "$ac_dir" in |
1524 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1525 | *) | |
1526 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1527 | # A ".." for each directory in $ac_dir_suffix. | |
1528 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1529 | case $ac_top_builddir_sub in | |
1530 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1531 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1532 | esac ;; | |
1533 | esac | |
1534 | ac_abs_top_builddir=$ac_pwd | |
1535 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1536 | # for backward compatibility: | |
1537 | ac_top_builddir=$ac_top_build_prefix | |
6de9cd9a DN |
1538 | |
1539 | case $srcdir in | |
5213506e | 1540 | .) # We are building in place. |
6de9cd9a | 1541 | ac_srcdir=. |
5213506e RW |
1542 | ac_top_srcdir=$ac_top_builddir_sub |
1543 | ac_abs_top_srcdir=$ac_pwd ;; | |
1544 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
6de9cd9a | 1545 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1546 | ac_top_srcdir=$srcdir |
1547 | ac_abs_top_srcdir=$srcdir ;; | |
1548 | *) # Relative name. | |
1549 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1550 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1551 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
78511f8b | 1552 | esac |
5213506e RW |
1553 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1554 | ||
1555 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1556 | # Check for guested configure. | |
1557 | if test -f "$ac_srcdir/configure.gnu"; then | |
1558 | echo && | |
1559 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1560 | elif test -f "$ac_srcdir/configure"; then | |
1561 | echo && | |
1562 | $SHELL "$ac_srcdir/configure" --help=recursive | |
6de9cd9a | 1563 | else |
5213506e RW |
1564 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1565 | fi || ac_status=$? | |
1566 | cd "$ac_pwd" || { ac_status=$?; break; } | |
6de9cd9a DN |
1567 | done |
1568 | fi | |
1569 | ||
5213506e | 1570 | test -n "$ac_init_help" && exit $ac_status |
6de9cd9a DN |
1571 | if $ac_init_version; then |
1572 | cat <<\_ACEOF | |
0dce3ca1 | 1573 | GNU Fortran Runtime Library configure 0.3 |
22e05272 | 1574 | generated by GNU Autoconf 2.69 |
6de9cd9a | 1575 | |
22e05272 | 1576 | Copyright (C) 2012 Free Software Foundation, Inc. |
6de9cd9a DN |
1577 | This configure script is free software; the Free Software Foundation |
1578 | gives unlimited permission to copy, distribute and modify it. | |
1579 | _ACEOF | |
5213506e | 1580 | exit |
6de9cd9a | 1581 | fi |
6de9cd9a | 1582 | |
5213506e RW |
1583 | ## ------------------------ ## |
1584 | ## Autoconf initialization. ## | |
1585 | ## ------------------------ ## | |
6de9cd9a | 1586 | |
5213506e RW |
1587 | # ac_fn_c_try_compile LINENO |
1588 | # -------------------------- | |
1589 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1590 | ac_fn_c_try_compile () | |
1591 | { | |
1592 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1593 | rm -f conftest.$ac_objext | |
1594 | if { { ac_try="$ac_compile" | |
1595 | case "(($ac_try" in | |
1596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1597 | *) ac_try_echo=$ac_try;; | |
1598 | esac | |
1599 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1600 | $as_echo "$ac_try_echo"; } >&5 | |
1601 | (eval "$ac_compile") 2>conftest.err | |
1602 | ac_status=$? | |
1603 | if test -s conftest.err; then | |
1604 | grep -v '^ *+' conftest.err >conftest.er1 | |
1605 | cat conftest.er1 >&5 | |
1606 | mv -f conftest.er1 conftest.err | |
1607 | fi | |
1608 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1609 | test $ac_status = 0; } && { | |
1610 | test -z "$ac_c_werror_flag" || | |
1611 | test ! -s conftest.err | |
1612 | } && test -s conftest.$ac_objext; then : | |
1613 | ac_retval=0 | |
1614 | else | |
1615 | $as_echo "$as_me: failed program was:" >&5 | |
1616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1617 | |
5213506e RW |
1618 | ac_retval=1 |
1619 | fi | |
22e05272 JM |
1620 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1621 | as_fn_set_status $ac_retval | |
5213506e RW |
1622 | |
1623 | } # ac_fn_c_try_compile | |
1624 | ||
21be0a5a JB |
1625 | # ac_fn_c_try_cpp LINENO |
1626 | # ---------------------- | |
1627 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1628 | ac_fn_c_try_cpp () | |
6de9cd9a | 1629 | { |
5213506e | 1630 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
21be0a5a | 1631 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
5213506e RW |
1632 | case "(($ac_try" in |
1633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1634 | *) ac_try_echo=$ac_try;; | |
1635 | esac | |
1636 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1637 | $as_echo "$ac_try_echo"; } >&5 | |
21be0a5a | 1638 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
5213506e RW |
1639 | ac_status=$? |
1640 | if test -s conftest.err; then | |
1641 | grep -v '^ *+' conftest.err >conftest.er1 | |
1642 | cat conftest.er1 >&5 | |
1643 | mv -f conftest.er1 conftest.err | |
1644 | fi | |
1645 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 1646 | test $ac_status = 0; } > conftest.i && { |
21be0a5a | 1647 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5213506e | 1648 | test ! -s conftest.err |
5213506e RW |
1649 | }; then : |
1650 | ac_retval=0 | |
1651 | else | |
1652 | $as_echo "$as_me: failed program was:" >&5 | |
1653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1654 | |
21be0a5a | 1655 | ac_retval=1 |
5213506e | 1656 | fi |
22e05272 JM |
1657 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1658 | as_fn_set_status $ac_retval | |
6de9cd9a | 1659 | |
21be0a5a | 1660 | } # ac_fn_c_try_cpp |
6de9cd9a | 1661 | |
21be0a5a | 1662 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
5213506e | 1663 | # ------------------------------------------------------- |
21be0a5a JB |
1664 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1665 | # the include files in INCLUDES and setting the cache variable VAR | |
1666 | # accordingly. | |
1667 | ac_fn_c_check_header_mongrel () | |
5213506e RW |
1668 | { |
1669 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
22e05272 | 1670 | if eval \${$3+:} false; then : |
5213506e RW |
1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1672 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1673 | if eval \${$3+:} false; then : |
5213506e | 1674 | $as_echo_n "(cached) " >&6 |
21be0a5a JB |
1675 | fi |
1676 | eval ac_res=\$$3 | |
1677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1678 | $as_echo "$ac_res" >&6; } | |
5213506e | 1679 | else |
21be0a5a JB |
1680 | # Is the header compilable? |
1681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1682 | $as_echo_n "checking $2 usability... " >&6; } | |
1683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e RW |
1684 | /* end confdefs.h. */ |
1685 | $4 | |
1686 | #include <$2> | |
1687 | _ACEOF | |
1688 | if ac_fn_c_try_compile "$LINENO"; then : | |
21be0a5a | 1689 | ac_header_compiler=yes |
5213506e | 1690 | else |
21be0a5a | 1691 | ac_header_compiler=no |
5213506e RW |
1692 | fi |
1693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21be0a5a JB |
1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1695 | $as_echo "$ac_header_compiler" >&6; } | |
6de9cd9a | 1696 | |
21be0a5a JB |
1697 | # Is the header present? |
1698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1699 | $as_echo_n "checking $2 presence... " >&6; } | |
1700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1701 | /* end confdefs.h. */ | |
1702 | #include <$2> | |
1703 | _ACEOF | |
1704 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1705 | ac_header_preproc=yes | |
1706 | else | |
1707 | ac_header_preproc=no | |
1708 | fi | |
22e05272 | 1709 | rm -f conftest.err conftest.i conftest.$ac_ext |
21be0a5a JB |
1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1711 | $as_echo "$ac_header_preproc" >&6; } | |
6de9cd9a | 1712 | |
21be0a5a JB |
1713 | # So? What about this header? |
1714 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1715 | yes:no: ) | |
1716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1717 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1719 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1720 | ;; | |
1721 | no:yes:* ) | |
1722 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1723 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1725 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1727 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1729 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1731 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1732 | ;; | |
5213506e | 1733 | esac |
21be0a5a JB |
1734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1735 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1736 | if eval \${$3+:} false; then : |
21be0a5a | 1737 | $as_echo_n "(cached) " >&6 |
5213506e | 1738 | else |
21be0a5a JB |
1739 | eval "$3=\$ac_header_compiler" |
1740 | fi | |
1741 | eval ac_res=\$$3 | |
1742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1743 | $as_echo "$ac_res" >&6; } | |
5213506e | 1744 | fi |
22e05272 | 1745 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 1746 | |
21be0a5a | 1747 | } # ac_fn_c_check_header_mongrel |
6de9cd9a | 1748 | |
5213506e RW |
1749 | # ac_fn_c_try_run LINENO |
1750 | # ---------------------- | |
1751 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1752 | # that executables *can* be run. | |
1753 | ac_fn_c_try_run () | |
1754 | { | |
1755 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1756 | if { { ac_try="$ac_link" | |
1757 | case "(($ac_try" in | |
1758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1759 | *) ac_try_echo=$ac_try;; | |
1760 | esac | |
1761 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1762 | $as_echo "$ac_try_echo"; } >&5 | |
1763 | (eval "$ac_link") 2>&5 | |
1764 | ac_status=$? | |
1765 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1766 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1767 | { { case "(($ac_try" in | |
1768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1769 | *) ac_try_echo=$ac_try;; | |
1770 | esac | |
1771 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1772 | $as_echo "$ac_try_echo"; } >&5 | |
1773 | (eval "$ac_try") 2>&5 | |
1774 | ac_status=$? | |
1775 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1776 | test $ac_status = 0; }; }; then : | |
1777 | ac_retval=0 | |
1778 | else | |
1779 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1780 | $as_echo "$as_me: failed program was:" >&5 | |
1781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1782 | |
5213506e RW |
1783 | ac_retval=$ac_status |
1784 | fi | |
1785 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1786 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1787 | as_fn_set_status $ac_retval | |
6de9cd9a | 1788 | |
5213506e | 1789 | } # ac_fn_c_try_run |
6de9cd9a | 1790 | |
21be0a5a JB |
1791 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1792 | # ------------------------------------------------------- | |
1793 | # Tests whether HEADER exists and can be compiled using the include files in | |
1794 | # INCLUDES, setting the cache variable VAR accordingly. | |
1795 | ac_fn_c_check_header_compile () | |
1796 | { | |
1797 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1799 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1800 | if eval \${$3+:} false; then : |
21be0a5a JB |
1801 | $as_echo_n "(cached) " >&6 |
1802 | else | |
1803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1804 | /* end confdefs.h. */ | |
1805 | $4 | |
1806 | #include <$2> | |
1807 | _ACEOF | |
1808 | if ac_fn_c_try_compile "$LINENO"; then : | |
1809 | eval "$3=yes" | |
1810 | else | |
1811 | eval "$3=no" | |
1812 | fi | |
1813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1814 | fi | |
1815 | eval ac_res=\$$3 | |
1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1817 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1818 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
21be0a5a JB |
1819 | |
1820 | } # ac_fn_c_check_header_compile | |
1821 | ||
1822 | # ac_fn_c_try_link LINENO | |
1823 | # ----------------------- | |
1824 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1825 | ac_fn_c_try_link () | |
1826 | { | |
1827 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1828 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1829 | if { { ac_try="$ac_link" | |
1830 | case "(($ac_try" in | |
1831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1832 | *) ac_try_echo=$ac_try;; | |
1833 | esac | |
1834 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1835 | $as_echo "$ac_try_echo"; } >&5 | |
1836 | (eval "$ac_link") 2>conftest.err | |
1837 | ac_status=$? | |
1838 | if test -s conftest.err; then | |
1839 | grep -v '^ *+' conftest.err >conftest.er1 | |
1840 | cat conftest.er1 >&5 | |
1841 | mv -f conftest.er1 conftest.err | |
1842 | fi | |
1843 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1844 | test $ac_status = 0; } && { | |
1845 | test -z "$ac_c_werror_flag" || | |
1846 | test ! -s conftest.err | |
1847 | } && test -s conftest$ac_exeext && { | |
1848 | test "$cross_compiling" = yes || | |
22e05272 | 1849 | test -x conftest$ac_exeext |
21be0a5a JB |
1850 | }; then : |
1851 | ac_retval=0 | |
1852 | else | |
1853 | $as_echo "$as_me: failed program was:" >&5 | |
1854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1855 | ||
1856 | ac_retval=1 | |
1857 | fi | |
1858 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1859 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1860 | # interfere with the next link command; also delete a directory that is | |
1861 | # left behind by Apple's compiler. We do this before executing the actions. | |
1862 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1863 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1864 | as_fn_set_status $ac_retval | |
21be0a5a JB |
1865 | |
1866 | } # ac_fn_c_try_link | |
1867 | ||
5213506e RW |
1868 | # ac_fn_c_check_func LINENO FUNC VAR |
1869 | # ---------------------------------- | |
1870 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1871 | ac_fn_c_check_func () | |
1872 | { | |
1873 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1875 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1876 | if eval \${$3+:} false; then : |
5213506e RW |
1877 | $as_echo_n "(cached) " >&6 |
1878 | else | |
1879 | if test x$gcc_no_link = xyes; then | |
22e05272 | 1880 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5213506e RW |
1881 | fi |
1882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1883 | /* end confdefs.h. */ | |
1884 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1885 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1886 | #define $2 innocuous_$2 | |
6de9cd9a | 1887 | |
5213506e RW |
1888 | /* System header to define __stub macros and hopefully few prototypes, |
1889 | which can conflict with char $2 (); below. | |
1890 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1891 | <limits.h> exists even on freestanding compilers. */ | |
6de9cd9a | 1892 | |
5213506e RW |
1893 | #ifdef __STDC__ |
1894 | # include <limits.h> | |
1895 | #else | |
1896 | # include <assert.h> | |
1897 | #endif | |
6de9cd9a | 1898 | |
5213506e RW |
1899 | #undef $2 |
1900 | ||
1901 | /* Override any GCC internal prototype to avoid an error. | |
1902 | Use char because int might match the return type of a GCC | |
1903 | builtin and then its argument prototype would still apply. */ | |
1904 | #ifdef __cplusplus | |
1905 | extern "C" | |
1906 | #endif | |
1907 | char $2 (); | |
1908 | /* The GNU C library defines this for functions which it implements | |
1909 | to always fail with ENOSYS. Some functions are actually named | |
1910 | something starting with __ and the normal name is an alias. */ | |
1911 | #if defined __stub_$2 || defined __stub___$2 | |
1912 | choke me | |
1913 | #endif | |
1914 | ||
1915 | int | |
1916 | main () | |
38d24731 | 1917 | { |
5213506e RW |
1918 | return $2 (); |
1919 | ; | |
1920 | return 0; | |
38d24731 | 1921 | } |
5213506e RW |
1922 | _ACEOF |
1923 | if ac_fn_c_try_link "$LINENO"; then : | |
1924 | eval "$3=yes" | |
1925 | else | |
1926 | eval "$3=no" | |
1927 | fi | |
1928 | rm -f core conftest.err conftest.$ac_objext \ | |
1929 | conftest$ac_exeext conftest.$ac_ext | |
1930 | fi | |
1931 | eval ac_res=\$$3 | |
1932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1933 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1934 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 1935 | |
5213506e | 1936 | } # ac_fn_c_check_func |
6de9cd9a | 1937 | |
5213506e RW |
1938 | # ac_fn_fc_try_compile LINENO |
1939 | # --------------------------- | |
1940 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1941 | ac_fn_fc_try_compile () | |
1942 | { | |
1943 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1944 | rm -f conftest.$ac_objext | |
1945 | if { { ac_try="$ac_compile" | |
1946 | case "(($ac_try" in | |
1947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1948 | *) ac_try_echo=$ac_try;; | |
1949 | esac | |
1950 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1951 | $as_echo "$ac_try_echo"; } >&5 | |
1952 | (eval "$ac_compile") 2>conftest.err | |
1953 | ac_status=$? | |
1954 | if test -s conftest.err; then | |
1955 | grep -v '^ *+' conftest.err >conftest.er1 | |
1956 | cat conftest.er1 >&5 | |
1957 | mv -f conftest.er1 conftest.err | |
1958 | fi | |
1959 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1960 | test $ac_status = 0; } && { | |
1961 | test -z "$ac_fc_werror_flag" || | |
1962 | test ! -s conftest.err | |
1963 | } && test -s conftest.$ac_objext; then : | |
1964 | ac_retval=0 | |
1965 | else | |
1966 | $as_echo "$as_me: failed program was:" >&5 | |
1967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1968 | |
5213506e RW |
1969 | ac_retval=1 |
1970 | fi | |
22e05272 JM |
1971 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1972 | as_fn_set_status $ac_retval | |
6de9cd9a | 1973 | |
5213506e | 1974 | } # ac_fn_fc_try_compile |
6de9cd9a | 1975 | |
5213506e RW |
1976 | # ac_fn_fc_try_link LINENO |
1977 | # ------------------------ | |
1978 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1979 | ac_fn_fc_try_link () | |
1980 | { | |
1981 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1983 | if { { ac_try="$ac_link" | |
1984 | case "(($ac_try" in | |
1985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1986 | *) ac_try_echo=$ac_try;; | |
1987 | esac | |
1988 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1989 | $as_echo "$ac_try_echo"; } >&5 | |
1990 | (eval "$ac_link") 2>conftest.err | |
1991 | ac_status=$? | |
1992 | if test -s conftest.err; then | |
1993 | grep -v '^ *+' conftest.err >conftest.er1 | |
1994 | cat conftest.er1 >&5 | |
1995 | mv -f conftest.er1 conftest.err | |
1996 | fi | |
1997 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1998 | test $ac_status = 0; } && { | |
1999 | test -z "$ac_fc_werror_flag" || | |
2000 | test ! -s conftest.err | |
2001 | } && test -s conftest$ac_exeext && { | |
2002 | test "$cross_compiling" = yes || | |
22e05272 | 2003 | test -x conftest$ac_exeext |
5213506e RW |
2004 | }; then : |
2005 | ac_retval=0 | |
2006 | else | |
2007 | $as_echo "$as_me: failed program was:" >&5 | |
2008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 2009 | |
5213506e RW |
2010 | ac_retval=1 |
2011 | fi | |
2012 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2013 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2014 | # interfere with the next link command; also delete a directory that is | |
2015 | # left behind by Apple's compiler. We do this before executing the actions. | |
2016 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
2017 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2018 | as_fn_set_status $ac_retval | |
6de9cd9a | 2019 | |
5213506e | 2020 | } # ac_fn_fc_try_link |
6de9cd9a | 2021 | |
5213506e RW |
2022 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2023 | # ------------------------------------------- | |
2024 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2025 | # variable VAR accordingly. | |
2026 | ac_fn_c_check_type () | |
2027 | { | |
2028 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2030 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 2031 | if eval \${$3+:} false; then : |
5213506e RW |
2032 | $as_echo_n "(cached) " >&6 |
2033 | else | |
2034 | eval "$3=no" | |
2035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2036 | /* end confdefs.h. */ | |
2037 | $4 | |
2038 | int | |
2039 | main () | |
2040 | { | |
2041 | if (sizeof ($2)) | |
2042 | return 0; | |
2043 | ; | |
2044 | return 0; | |
2045 | } | |
6de9cd9a | 2046 | _ACEOF |
5213506e RW |
2047 | if ac_fn_c_try_compile "$LINENO"; then : |
2048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2049 | /* end confdefs.h. */ | |
2050 | $4 | |
2051 | int | |
2052 | main () | |
2053 | { | |
2054 | if (sizeof (($2))) | |
2055 | return 0; | |
2056 | ; | |
2057 | return 0; | |
2058 | } | |
6de9cd9a | 2059 | _ACEOF |
5213506e | 2060 | if ac_fn_c_try_compile "$LINENO"; then : |
6de9cd9a | 2061 | |
5213506e RW |
2062 | else |
2063 | eval "$3=yes" | |
2064 | fi | |
2065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2066 | fi | |
2067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2068 | fi | |
2069 | eval ac_res=\$$3 | |
2070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2071 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2072 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 2073 | |
5213506e | 2074 | } # ac_fn_c_check_type |
6de9cd9a | 2075 | |
21be0a5a JB |
2076 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2077 | # -------------------------------------------- | |
2078 | # Tries to find the compile-time value of EXPR in a program that includes | |
2079 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2080 | # computed | |
2081 | ac_fn_c_compute_int () | |
5213506e RW |
2082 | { |
2083 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c13e029b PB |
2084 | if test "$cross_compiling" = yes; then |
2085 | # Depending upon the size, compute the lo and hi bounds. | |
2086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e | 2087 | /* end confdefs.h. */ |
c13e029b | 2088 | $4 |
5213506e RW |
2089 | int |
2090 | main () | |
2091 | { | |
c13e029b | 2092 | static int test_array [1 - 2 * !(($2) >= 0)]; |
22e05272 JM |
2093 | test_array [0] = 0; |
2094 | return test_array [0]; | |
6de9cd9a | 2095 | |
5213506e RW |
2096 | ; |
2097 | return 0; | |
2098 | } | |
2099 | _ACEOF | |
2100 | if ac_fn_c_try_compile "$LINENO"; then : | |
c13e029b PB |
2101 | ac_lo=0 ac_mid=0 |
2102 | while :; do | |
2103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e | 2104 | /* end confdefs.h. */ |
c13e029b | 2105 | $4 |
5213506e RW |
2106 | int |
2107 | main () | |
2108 | { | |
c13e029b | 2109 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
22e05272 JM |
2110 | test_array [0] = 0; |
2111 | return test_array [0]; | |
6de9cd9a | 2112 | |
5213506e RW |
2113 | ; |
2114 | return 0; | |
2115 | } | |
2116 | _ACEOF | |
2117 | if ac_fn_c_try_compile "$LINENO"; then : | |
c13e029b | 2118 | ac_hi=$ac_mid; break |
5213506e | 2119 | else |
c13e029b PB |
2120 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2121 | if test $ac_lo -le $ac_mid; then | |
2122 | ac_lo= ac_hi= | |
2123 | break | |
2124 | fi | |
2125 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
5213506e RW |
2126 | fi |
2127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c13e029b PB |
2128 | done |
2129 | else | |
2130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2131 | /* end confdefs.h. */ | |
2132 | $4 | |
2133 | int | |
2134 | main () | |
2135 | { | |
2136 | static int test_array [1 - 2 * !(($2) < 0)]; | |
22e05272 JM |
2137 | test_array [0] = 0; |
2138 | return test_array [0]; | |
c13e029b PB |
2139 | |
2140 | ; | |
2141 | return 0; | |
2142 | } | |
2143 | _ACEOF | |
2144 | if ac_fn_c_try_compile "$LINENO"; then : | |
2145 | ac_hi=-1 ac_mid=-1 | |
2146 | while :; do | |
2147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2148 | /* end confdefs.h. */ | |
2149 | $4 | |
2150 | int | |
2151 | main () | |
2152 | { | |
2153 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
22e05272 JM |
2154 | test_array [0] = 0; |
2155 | return test_array [0]; | |
c13e029b PB |
2156 | |
2157 | ; | |
2158 | return 0; | |
2159 | } | |
2160 | _ACEOF | |
2161 | if ac_fn_c_try_compile "$LINENO"; then : | |
2162 | ac_lo=$ac_mid; break | |
2163 | else | |
2164 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2165 | if test $ac_mid -le $ac_hi; then | |
2166 | ac_lo= ac_hi= | |
2167 | break | |
2168 | fi | |
2169 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
5213506e RW |
2170 | fi |
2171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c13e029b | 2172 | done |
d72a3ac1 | 2173 | else |
c13e029b | 2174 | ac_lo= ac_hi= |
5213506e | 2175 | fi |
c13e029b | 2176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d72a3ac1 | 2177 | fi |
c13e029b PB |
2178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2179 | # Binary search between lo and hi bounds. | |
2180 | while test "x$ac_lo" != "x$ac_hi"; do | |
2181 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e | 2183 | /* end confdefs.h. */ |
c13e029b | 2184 | $4 |
5213506e RW |
2185 | int |
2186 | main () | |
2187 | { | |
c13e029b | 2188 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
22e05272 JM |
2189 | test_array [0] = 0; |
2190 | return test_array [0]; | |
6de9cd9a | 2191 | |
5213506e RW |
2192 | ; |
2193 | return 0; | |
2194 | } | |
2195 | _ACEOF | |
2196 | if ac_fn_c_try_compile "$LINENO"; then : | |
c13e029b PB |
2197 | ac_hi=$ac_mid |
2198 | else | |
2199 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
5213506e RW |
2200 | fi |
2201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c13e029b PB |
2202 | done |
2203 | case $ac_lo in #(( | |
2204 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2205 | '') ac_retval=1 ;; | |
2206 | esac | |
2207 | else | |
2208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2209 | /* end confdefs.h. */ | |
2210 | $4 | |
2211 | static long int longval () { return $2; } | |
2212 | static unsigned long int ulongval () { return $2; } | |
2213 | #include <stdio.h> | |
2214 | #include <stdlib.h> | |
2215 | int | |
2216 | main () | |
2217 | { | |
6de9cd9a | 2218 | |
c13e029b PB |
2219 | FILE *f = fopen ("conftest.val", "w"); |
2220 | if (! f) | |
2221 | return 1; | |
2222 | if (($2) < 0) | |
2223 | { | |
2224 | long int i = longval (); | |
2225 | if (i != ($2)) | |
2226 | return 1; | |
2227 | fprintf (f, "%ld", i); | |
2228 | } | |
2229 | else | |
2230 | { | |
2231 | unsigned long int i = ulongval (); | |
2232 | if (i != ($2)) | |
2233 | return 1; | |
2234 | fprintf (f, "%lu", i); | |
2235 | } | |
2236 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2237 | on some platforms. */ | |
2238 | return ferror (f) || fclose (f) != 0; | |
2239 | ||
2240 | ; | |
2241 | return 0; | |
2242 | } | |
2243 | _ACEOF | |
2244 | if ac_fn_c_try_run "$LINENO"; then : | |
2245 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
5213506e | 2246 | else |
c13e029b | 2247 | ac_retval=1 |
d72a3ac1 | 2248 | fi |
c13e029b PB |
2249 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2250 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2251 | rm -f conftest.val | |
2252 | ||
2253 | fi | |
22e05272 JM |
2254 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2255 | as_fn_set_status $ac_retval | |
6de9cd9a | 2256 | |
c13e029b | 2257 | } # ac_fn_c_compute_int |
6de9cd9a | 2258 | |
5213506e RW |
2259 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2260 | # ---------------------------------------------------- | |
2261 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2262 | # INCLUDES, setting cache variable VAR accordingly. | |
2263 | ac_fn_c_check_member () | |
2264 | { | |
2265 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2267 | $as_echo_n "checking for $2.$3... " >&6; } | |
22e05272 | 2268 | if eval \${$4+:} false; then : |
5213506e RW |
2269 | $as_echo_n "(cached) " >&6 |
2270 | else | |
2271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2272 | /* end confdefs.h. */ | |
2273 | $5 | |
2274 | int | |
2275 | main () | |
2276 | { | |
2277 | static $2 ac_aggr; | |
2278 | if (ac_aggr.$3) | |
2279 | return 0; | |
2280 | ; | |
2281 | return 0; | |
2282 | } | |
2283 | _ACEOF | |
2284 | if ac_fn_c_try_compile "$LINENO"; then : | |
2285 | eval "$4=yes" | |
2286 | else | |
2287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2288 | /* end confdefs.h. */ | |
2289 | $5 | |
2290 | int | |
2291 | main () | |
2292 | { | |
2293 | static $2 ac_aggr; | |
2294 | if (sizeof ac_aggr.$3) | |
2295 | return 0; | |
2296 | ; | |
2297 | return 0; | |
2298 | } | |
2299 | _ACEOF | |
2300 | if ac_fn_c_try_compile "$LINENO"; then : | |
2301 | eval "$4=yes" | |
2302 | else | |
2303 | eval "$4=no" | |
2304 | fi | |
2305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2306 | fi | |
2307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2308 | fi | |
2309 | eval ac_res=\$$4 | |
2310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2311 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2312 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 2313 | |
5213506e RW |
2314 | } # ac_fn_c_check_member |
2315 | cat >config.log <<_ACEOF | |
2316 | This file contains any messages produced by compilers while | |
2317 | running configure, to aid debugging if configure makes a mistake. | |
6de9cd9a | 2318 | |
5213506e | 2319 | It was created by GNU Fortran Runtime Library $as_me 0.3, which was |
22e05272 | 2320 | generated by GNU Autoconf 2.69. Invocation command line was |
6de9cd9a | 2321 | |
5213506e | 2322 | $ $0 $@ |
6de9cd9a | 2323 | |
5213506e RW |
2324 | _ACEOF |
2325 | exec 5>>config.log | |
2326 | { | |
2327 | cat <<_ASUNAME | |
2328 | ## --------- ## | |
2329 | ## Platform. ## | |
2330 | ## --------- ## | |
6de9cd9a | 2331 | |
5213506e RW |
2332 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2333 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2334 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2335 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2336 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
6de9cd9a | 2337 | |
5213506e RW |
2338 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2339 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
6de9cd9a | 2340 | |
5213506e RW |
2341 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2342 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2343 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2344 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2345 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2346 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2347 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
6de9cd9a | 2348 | |
5213506e | 2349 | _ASUNAME |
18c04407 | 2350 | |
5213506e RW |
2351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2352 | for as_dir in $PATH | |
2353 | do | |
2354 | IFS=$as_save_IFS | |
2355 | test -z "$as_dir" && as_dir=. | |
2356 | $as_echo "PATH: $as_dir" | |
2357 | done | |
2358 | IFS=$as_save_IFS | |
18c04407 | 2359 | |
5213506e | 2360 | } >&5 |
18c04407 | 2361 | |
5213506e | 2362 | cat >&5 <<_ACEOF |
6de9cd9a DN |
2363 | |
2364 | ||
5213506e RW |
2365 | ## ----------- ## |
2366 | ## Core tests. ## | |
2367 | ## ----------- ## | |
78511f8b | 2368 | |
5213506e | 2369 | _ACEOF |
38d24731 | 2370 | |
96b8a615 | 2371 | |
5213506e RW |
2372 | # Keep a trace of the command line. |
2373 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2374 | # Strip out --silent because we don't want to record it for future runs. | |
2375 | # Also quote any args containing shell meta-characters. | |
2376 | # Make two passes to allow for proper duplicate-argument suppression. | |
2377 | ac_configure_args= | |
2378 | ac_configure_args0= | |
2379 | ac_configure_args1= | |
2380 | ac_must_keep_next=false | |
2381 | for ac_pass in 1 2 | |
2382 | do | |
2383 | for ac_arg | |
2384 | do | |
2385 | case $ac_arg in | |
2386 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2387 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2388 | | -silent | --silent | --silen | --sile | --sil) | |
2389 | continue ;; | |
2390 | *\'*) | |
2391 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2392 | esac | |
2393 | case $ac_pass in | |
2394 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2395 | 2) | |
2396 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2397 | if test $ac_must_keep_next = true; then | |
2398 | ac_must_keep_next=false # Got value, back to normal. | |
2399 | else | |
2400 | case $ac_arg in | |
2401 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2402 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2403 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2404 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2405 | case "$ac_configure_args0 " in | |
2406 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2407 | esac | |
2408 | ;; | |
2409 | -* ) ac_must_keep_next=true ;; | |
2410 | esac | |
2411 | fi | |
2412 | as_fn_append ac_configure_args " '$ac_arg'" | |
2413 | ;; | |
2414 | esac | |
2415 | done | |
6de9cd9a | 2416 | done |
5213506e RW |
2417 | { ac_configure_args0=; unset ac_configure_args0;} |
2418 | { ac_configure_args1=; unset ac_configure_args1;} | |
96b8a615 | 2419 | |
5213506e RW |
2420 | # When interrupted or exit'd, cleanup temporary files, and complete |
2421 | # config.log. We remove comments because anyway the quotes in there | |
2422 | # would cause problems or look ugly. | |
2423 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2424 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2425 | trap 'exit_status=$? | |
2426 | # Save into config.log some information that might help in debugging. | |
2427 | { | |
2428 | echo | |
96b8a615 | 2429 | |
22e05272 | 2430 | $as_echo "## ---------------- ## |
5213506e | 2431 | ## Cache variables. ## |
22e05272 | 2432 | ## ---------------- ##" |
5213506e RW |
2433 | echo |
2434 | # The following way of writing the cache mishandles newlines in values, | |
2435 | ( | |
2436 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2437 | eval ac_val=\$$ac_var | |
2438 | case $ac_val in #( | |
2439 | *${as_nl}*) | |
2440 | case $ac_var in #( | |
2441 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2442 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2443 | esac | |
2444 | case $ac_var in #( | |
2445 | _ | IFS | as_nl) ;; #( | |
2446 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2447 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2448 | esac ;; | |
2449 | esac | |
2450 | done | |
2451 | (set) 2>&1 | | |
2452 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2453 | *${as_nl}ac_space=\ *) | |
2454 | sed -n \ | |
2455 | "s/'\''/'\''\\\\'\'''\''/g; | |
2456 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2457 | ;; #( | |
2458 | *) | |
2459 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2460 | ;; | |
2461 | esac | | |
2462 | sort | |
2463 | ) | |
2464 | echo | |
2465 | ||
22e05272 | 2466 | $as_echo "## ----------------- ## |
5213506e | 2467 | ## Output variables. ## |
22e05272 | 2468 | ## ----------------- ##" |
5213506e RW |
2469 | echo |
2470 | for ac_var in $ac_subst_vars | |
2471 | do | |
2472 | eval ac_val=\$$ac_var | |
2473 | case $ac_val in | |
2474 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2475 | esac | |
2476 | $as_echo "$ac_var='\''$ac_val'\''" | |
2477 | done | sort | |
2478 | echo | |
2479 | ||
2480 | if test -n "$ac_subst_files"; then | |
22e05272 | 2481 | $as_echo "## ------------------- ## |
5213506e | 2482 | ## File substitutions. ## |
22e05272 | 2483 | ## ------------------- ##" |
5213506e RW |
2484 | echo |
2485 | for ac_var in $ac_subst_files | |
2486 | do | |
2487 | eval ac_val=\$$ac_var | |
2488 | case $ac_val in | |
2489 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2490 | esac | |
2491 | $as_echo "$ac_var='\''$ac_val'\''" | |
2492 | done | sort | |
2493 | echo | |
2494 | fi | |
2495 | ||
2496 | if test -s confdefs.h; then | |
22e05272 | 2497 | $as_echo "## ----------- ## |
5213506e | 2498 | ## confdefs.h. ## |
22e05272 | 2499 | ## ----------- ##" |
5213506e RW |
2500 | echo |
2501 | cat confdefs.h | |
2502 | echo | |
2503 | fi | |
2504 | test "$ac_signal" != 0 && | |
2505 | $as_echo "$as_me: caught signal $ac_signal" | |
2506 | $as_echo "$as_me: exit $exit_status" | |
2507 | } >&5 | |
2508 | rm -f core *.core core.conftest.* && | |
2509 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2510 | exit $exit_status | |
2511 | ' 0 | |
2512 | for ac_signal in 1 2 13 15; do | |
2513 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2514 | done | |
2515 | ac_signal=0 | |
2516 | ||
2517 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2518 | rm -f -r conftest* confdefs.h | |
2519 | ||
2520 | $as_echo "/* confdefs.h */" > confdefs.h | |
2521 | ||
2522 | # Predefined preprocessor variables. | |
2523 | ||
2524 | cat >>confdefs.h <<_ACEOF | |
2525 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2526 | _ACEOF | |
2527 | ||
2528 | cat >>confdefs.h <<_ACEOF | |
2529 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2530 | _ACEOF | |
2531 | ||
2532 | cat >>confdefs.h <<_ACEOF | |
2533 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2534 | _ACEOF | |
2535 | ||
2536 | cat >>confdefs.h <<_ACEOF | |
2537 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2538 | _ACEOF | |
2539 | ||
2540 | cat >>confdefs.h <<_ACEOF | |
2541 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2542 | _ACEOF | |
2543 | ||
2544 | cat >>confdefs.h <<_ACEOF | |
2545 | #define PACKAGE_URL "$PACKAGE_URL" | |
2546 | _ACEOF | |
2547 | ||
2548 | ||
2549 | # Let the site file select an alternate cache file if it wants to. | |
2550 | # Prefer an explicitly selected file to automatically selected ones. | |
2551 | ac_site_file1=NONE | |
2552 | ac_site_file2=NONE | |
2553 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2554 | # We do not want a PATH search for config.site. |
2555 | case $CONFIG_SITE in #(( | |
2556 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2557 | */*) ac_site_file1=$CONFIG_SITE;; | |
2558 | *) ac_site_file1=./$CONFIG_SITE;; | |
2559 | esac | |
5213506e RW |
2560 | elif test "x$prefix" != xNONE; then |
2561 | ac_site_file1=$prefix/share/config.site | |
2562 | ac_site_file2=$prefix/etc/config.site | |
2563 | else | |
2564 | ac_site_file1=$ac_default_prefix/share/config.site | |
2565 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2566 | fi | |
2567 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2568 | do | |
2569 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2570 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2572 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2573 | sed 's/^/| /' "$ac_site_file" >&5 | |
22e05272 JM |
2574 | . "$ac_site_file" \ |
2575 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2576 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2577 | as_fn_error $? "failed to load site script $ac_site_file | |
2578 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
2579 | fi |
2580 | done | |
2581 | ||
2582 | if test -r "$cache_file"; then | |
22e05272 JM |
2583 | # Some versions of bash will fail to source /dev/null (special files |
2584 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2585 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2587 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2588 | case $cache_file in | |
2589 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2590 | *) . "./$cache_file";; | |
2591 | esac | |
2592 | fi | |
2593 | else | |
2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2595 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2596 | >$cache_file | |
2597 | fi | |
2598 | ||
74544378 | 2599 | as_fn_append ac_header_list " unistd.h" |
864c28e1 | 2600 | as_fn_append ac_header_list " sys/random.h" |
74544378 JB |
2601 | as_fn_append ac_header_list " sys/time.h" |
2602 | as_fn_append ac_header_list " sys/times.h" | |
2603 | as_fn_append ac_header_list " sys/resource.h" | |
2604 | as_fn_append ac_header_list " sys/types.h" | |
2605 | as_fn_append ac_header_list " sys/stat.h" | |
edaaef60 | 2606 | as_fn_append ac_header_list " sys/uio.h" |
74544378 JB |
2607 | as_fn_append ac_header_list " sys/wait.h" |
2608 | as_fn_append ac_header_list " floatingpoint.h" | |
2609 | as_fn_append ac_header_list " ieeefp.h" | |
2610 | as_fn_append ac_header_list " fenv.h" | |
2611 | as_fn_append ac_header_list " fptrap.h" | |
fa86f4f9 | 2612 | as_fn_append ac_header_list " fpxcp.h" |
74544378 JB |
2613 | as_fn_append ac_header_list " pwd.h" |
2614 | as_fn_append ac_header_list " complex.h" | |
9cbecd06 | 2615 | as_fn_append ac_header_list " xlocale.h" |
74544378 JB |
2616 | as_fn_append ac_func_list " getrusage" |
2617 | as_fn_append ac_func_list " times" | |
2618 | as_fn_append ac_func_list " mkstemp" | |
2619 | as_fn_append ac_func_list " strtof" | |
2620 | as_fn_append ac_func_list " strtold" | |
2621 | as_fn_append ac_func_list " snprintf" | |
2622 | as_fn_append ac_func_list " ftruncate" | |
2623 | as_fn_append ac_func_list " chsize" | |
2624 | as_fn_append ac_func_list " chdir" | |
d66d6d15 | 2625 | as_fn_append ac_func_list " getentropy" |
74544378 JB |
2626 | as_fn_append ac_func_list " getlogin" |
2627 | as_fn_append ac_func_list " gethostname" | |
2628 | as_fn_append ac_func_list " kill" | |
2629 | as_fn_append ac_func_list " link" | |
2630 | as_fn_append ac_func_list " symlink" | |
2631 | as_fn_append ac_func_list " sleep" | |
2632 | as_fn_append ac_func_list " ttyname" | |
ef536b41 JB |
2633 | as_fn_append ac_func_list " sigaction" |
2634 | as_fn_append ac_func_list " waitpid" | |
74544378 JB |
2635 | as_fn_append ac_func_list " alarm" |
2636 | as_fn_append ac_func_list " access" | |
2637 | as_fn_append ac_func_list " fork" | |
f8886038 | 2638 | as_fn_append ac_func_list " posix_spawn" |
74544378 | 2639 | as_fn_append ac_func_list " setmode" |
b5b58343 | 2640 | as_fn_append ac_func_list " fcntl" |
edaaef60 | 2641 | as_fn_append ac_func_list " writev" |
74544378 JB |
2642 | as_fn_append ac_func_list " gettimeofday" |
2643 | as_fn_append ac_func_list " stat" | |
2644 | as_fn_append ac_func_list " fstat" | |
2645 | as_fn_append ac_func_list " lstat" | |
2646 | as_fn_append ac_func_list " getpwuid" | |
2647 | as_fn_append ac_func_list " vsnprintf" | |
2648 | as_fn_append ac_func_list " dup" | |
2649 | as_fn_append ac_func_list " getcwd" | |
2650 | as_fn_append ac_func_list " localtime_r" | |
2651 | as_fn_append ac_func_list " gmtime_r" | |
74544378 JB |
2652 | as_fn_append ac_func_list " getpwuid_r" |
2653 | as_fn_append ac_func_list " ttyname_r" | |
2654 | as_fn_append ac_func_list " clock_gettime" | |
74544378 JB |
2655 | as_fn_append ac_func_list " getgid" |
2656 | as_fn_append ac_func_list " getpid" | |
74544378 JB |
2657 | as_fn_append ac_func_list " getuid" |
2658 | as_fn_append ac_func_list " geteuid" | |
8ecd1c0d | 2659 | as_fn_append ac_func_list " umask" |
68ee9c08 | 2660 | as_fn_append ac_func_list " getegid" |
227e441f | 2661 | as_fn_append ac_func_list " secure_getenv" |
68ee9c08 | 2662 | as_fn_append ac_func_list " __secure_getenv" |
c20fdb91 | 2663 | as_fn_append ac_func_list " mkostemp" |
4269f19c JB |
2664 | as_fn_append ac_func_list " strnlen" |
2665 | as_fn_append ac_func_list " strndup" | |
9cbecd06 JB |
2666 | as_fn_append ac_func_list " newlocale" |
2667 | as_fn_append ac_func_list " freelocale" | |
2668 | as_fn_append ac_func_list " uselocale" | |
2669 | as_fn_append ac_func_list " strerror_l" | |
133d0d42 JJ |
2670 | as_fn_append ac_func_list " strtof128" |
2671 | as_fn_append ac_func_list " strfromf128" | |
db9f46a9 | 2672 | as_fn_append ac_header_list " math.h" |
5213506e RW |
2673 | # Check that the precious variables saved in the cache have kept the same |
2674 | # value. | |
2675 | ac_cache_corrupted=false | |
2676 | for ac_var in $ac_precious_vars; do | |
2677 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2678 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2679 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2680 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2681 | case $ac_old_set,$ac_new_set in | |
2682 | set,) | |
2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2684 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2685 | ac_cache_corrupted=: ;; | |
2686 | ,set) | |
2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2688 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2689 | ac_cache_corrupted=: ;; | |
2690 | ,);; | |
2691 | *) | |
2692 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2693 | # differences in whitespace do not lead to failure. | |
2694 | ac_old_val_w=`echo x $ac_old_val` | |
2695 | ac_new_val_w=`echo x $ac_new_val` | |
2696 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2698 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2699 | ac_cache_corrupted=: | |
2700 | else | |
2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2702 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2703 | eval $ac_var=\$ac_old_val | |
2704 | fi | |
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2706 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2708 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2709 | fi;; | |
2710 | esac | |
2711 | # Pass precious variables to config.status. | |
2712 | if test "$ac_new_set" = set; then | |
2713 | case $ac_new_val in | |
2714 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2715 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2716 | esac | |
2717 | case " $ac_configure_args " in | |
2718 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2719 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2720 | esac | |
2721 | fi | |
2722 | done | |
2723 | if $ac_cache_corrupted; then | |
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2725 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2726 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2727 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2728 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
5213506e RW |
2729 | fi |
2730 | ## -------------------- ## | |
2731 | ## Main body of script. ## | |
2732 | ## -------------------- ## | |
2733 | ||
2734 | ac_ext=c | |
2735 | ac_cpp='$CPP $CPPFLAGS' | |
2736 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2737 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2738 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2739 | ||
2740 | ||
2741 | ||
2742 | ||
2743 | ||
2744 | ac_config_headers="$ac_config_headers config.h" | |
2745 | ||
2746 | ac_aux_dir= | |
2747 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
22e05272 JM |
2748 | if test -f "$ac_dir/install-sh"; then |
2749 | ac_aux_dir=$ac_dir | |
2750 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2751 | break | |
2752 | elif test -f "$ac_dir/install.sh"; then | |
2753 | ac_aux_dir=$ac_dir | |
2754 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2755 | break | |
2756 | elif test -f "$ac_dir/shtool"; then | |
2757 | ac_aux_dir=$ac_dir | |
2758 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2759 | break | |
2760 | fi | |
5213506e RW |
2761 | done |
2762 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2763 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
5213506e RW |
2764 | fi |
2765 | ||
2766 | # These three variables are undocumented and unsupported, | |
2767 | # and are intended to be withdrawn in a future Autoconf release. | |
2768 | # They can cause serious problems if a builder's source tree is in a directory | |
2769 | # whose full name contains unusual characters. | |
2770 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2771 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2772 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2773 | ||
2774 | ||
2775 | # Make sure we can run config.sub. | |
2776 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
22e05272 | 2777 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2778 | |
2779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2780 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2781 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2782 | $as_echo_n "(cached) " >&6 |
2783 | else | |
2784 | ac_build_alias=$build_alias | |
2785 | test "x$ac_build_alias" = x && | |
2786 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2787 | test "x$ac_build_alias" = x && | |
22e05272 | 2788 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2789 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2790 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2791 | |
2792 | fi | |
2793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2794 | $as_echo "$ac_cv_build" >&6; } | |
2795 | case $ac_cv_build in | |
2796 | *-*-*) ;; | |
22e05272 | 2797 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e RW |
2798 | esac |
2799 | build=$ac_cv_build | |
2800 | ac_save_IFS=$IFS; IFS='-' | |
2801 | set x $ac_cv_build | |
2802 | shift | |
2803 | build_cpu=$1 | |
2804 | build_vendor=$2 | |
2805 | shift; shift | |
2806 | # Remember, the first character of IFS is used to create $*, | |
2807 | # except with old shells: | |
2808 | build_os=$* | |
2809 | IFS=$ac_save_IFS | |
2810 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2811 | ||
2812 | ||
2813 | case ${build_alias} in | |
2814 | "") build_noncanonical=${build} ;; | |
2815 | *) build_noncanonical=${build_alias} ;; | |
2816 | esac | |
891c05b1 JJ |
2817 | |
2818 | case ${host_alias} in | |
2819 | "") host_noncanonical=${build_noncanonical} ;; | |
2820 | *) host_noncanonical=${host_alias} ;; | |
2821 | esac | |
2822 | ||
2823 | case ${target_alias} in | |
2824 | "") target_noncanonical=${host_noncanonical} ;; | |
2825 | *) target_noncanonical=${target_alias} ;; | |
2826 | esac | |
2827 | ||
57255173 PB |
2828 | |
2829 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
2830 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2831 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2832 | # However, they still use the build modules, because the corresponding | |
2833 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2834 | # finishes. So: | |
2835 | # - build_subdir is where we find build modules, and never changes. | |
2836 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2837 | ||
2838 | # Prefix 'build-' so this never conflicts with target_subdir. | |
891c05b1 | 2839 | build_subdir="build-${build_noncanonical}" |
57255173 | 2840 | |
5213506e RW |
2841 | # Check whether --with-build-libsubdir was given. |
2842 | if test "${with_build_libsubdir+set}" = set; then : | |
2843 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
57255173 PB |
2844 | else |
2845 | build_libsubdir="$build_subdir" | |
5213506e RW |
2846 | fi |
2847 | ||
891c05b1 JJ |
2848 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2849 | if ( test $srcdir = . && test -d gcc ) \ | |
2850 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2851 | host_subdir="host-${host_noncanonical}" | |
2852 | else | |
2853 | host_subdir=. | |
2854 | fi | |
2855 | # No prefix. | |
2856 | target_subdir=${target_noncanonical} | |
2857 | ||
2858 | ||
2859 | # ------- | |
2860 | # Options | |
2861 | # ------- | |
2862 | ||
5213506e RW |
2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
2864 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2865 | # Check whether --enable-version-specific-runtime-libs was given. | |
2866 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2867 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
891c05b1 JJ |
2868 | yes) version_specific_libs=yes ;; |
2869 | no) version_specific_libs=no ;; | |
22e05272 | 2870 | *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
891c05b1 JJ |
2871 | esac |
2872 | else | |
2873 | version_specific_libs=no | |
5213506e RW |
2874 | fi |
2875 | ||
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
2877 | $as_echo "$version_specific_libs" >&6; } | |
891c05b1 | 2878 | |
891c05b1 JJ |
2879 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. |
2880 | # | |
2881 | # You will slowly go insane if you do not grok the following fact: when | |
2882 | # building this library, the top-level /target/ becomes the library's /host/. | |
2883 | # | |
2884 | # configure then causes --target to default to --host, exactly like any | |
2885 | # other package using autoconf. Therefore, 'target' and 'host' will | |
2886 | # always be the same. This makes sense both for native and cross compilers | |
2887 | # just think about it for a little while. :-) | |
2888 | # | |
2889 | # Also, if this library is being configured as part of a cross compiler, the | |
2890 | # top-level configure script will pass the "real" host as $with_cross_host. | |
2891 | # | |
2892 | # Do not delete or change the following two lines. For why, see | |
2893 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
5213506e RW |
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2895 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2896 | if ${ac_cv_host+:} false; then : |
5213506e RW |
2897 | $as_echo_n "(cached) " >&6 |
2898 | else | |
2899 | if test "x$host_alias" = x; then | |
2900 | ac_cv_host=$ac_cv_build | |
2901 | else | |
2902 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2903 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e RW |
2904 | fi |
2905 | ||
2906 | fi | |
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2908 | $as_echo "$ac_cv_host" >&6; } | |
2909 | case $ac_cv_host in | |
2910 | *-*-*) ;; | |
22e05272 | 2911 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2912 | esac |
96b8a615 | 2913 | host=$ac_cv_host |
5213506e RW |
2914 | ac_save_IFS=$IFS; IFS='-' |
2915 | set x $ac_cv_host | |
2916 | shift | |
2917 | host_cpu=$1 | |
2918 | host_vendor=$2 | |
2919 | shift; shift | |
2920 | # Remember, the first character of IFS is used to create $*, | |
2921 | # except with old shells: | |
2922 | host_os=$* | |
2923 | IFS=$ac_save_IFS | |
2924 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
38d24731 RW |
2925 | |
2926 | ||
5213506e RW |
2927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2928 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2929 | if ${ac_cv_target+:} false; then : |
5213506e | 2930 | $as_echo_n "(cached) " >&6 |
96b8a615 | 2931 | else |
5213506e RW |
2932 | if test "x$target_alias" = x; then |
2933 | ac_cv_target=$ac_cv_host | |
2934 | else | |
2935 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2936 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2937 | fi |
96b8a615 AJ |
2938 | |
2939 | fi | |
5213506e RW |
2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2941 | $as_echo "$ac_cv_target" >&6; } | |
2942 | case $ac_cv_target in | |
2943 | *-*-*) ;; | |
22e05272 | 2944 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2945 | esac |
96b8a615 | 2946 | target=$ac_cv_target |
5213506e RW |
2947 | ac_save_IFS=$IFS; IFS='-' |
2948 | set x $ac_cv_target | |
2949 | shift | |
2950 | target_cpu=$1 | |
2951 | target_vendor=$2 | |
2952 | shift; shift | |
2953 | # Remember, the first character of IFS is used to create $*, | |
2954 | # except with old shells: | |
2955 | target_os=$* | |
2956 | IFS=$ac_save_IFS | |
2957 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
96b8a615 AJ |
2958 | |
2959 | ||
2960 | # The aliases save the names the user supplied, while $host etc. | |
2961 | # will get canonicalized. | |
2962 | test -n "$target_alias" && | |
2963 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2964 | NONENONEs,x,x, && | |
2965 | program_prefix=${target_alias}- | |
5213506e | 2966 | |
60858d8a TB |
2967 | |
2968 | ||
2969 | ||
96b8a615 AJ |
2970 | target_alias=${target_alias-$host_alias} |
2971 | ||
60858d8a | 2972 | |
96b8a615 AJ |
2973 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the |
2974 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
679c0f9a | 2975 | # 1.9.6: minimum required version |
96b8a615 AJ |
2976 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch |
2977 | # of other PACKAGE_* variables will, however, and there's nothing | |
2978 | # we can do about that; they come from AC_INIT). | |
2979 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
2980 | # file in the top srcdir, etc, etc), so stop complaining. | |
13917ae3 | 2981 | # no-dist: we don't want 'dist' and related rules. |
96b8a615 AJ |
2982 | # -Wall: turns on all automake warnings... |
2983 | # -Wno-portability: ...except this one, since GNU make is required. | |
22e05272 | 2984 | am__api_version='1.15' |
5213506e | 2985 | |
6de9cd9a DN |
2986 | # Find a good install program. We prefer a C program (faster), |
2987 | # so one script is as good as another. But avoid the broken or | |
2988 | # incompatible versions: | |
2989 | # SysV /etc/install, /usr/sbin/install | |
2990 | # SunOS /usr/etc/install | |
2991 | # IRIX /sbin/install | |
2992 | # AIX /bin/install | |
2993 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2994 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2995 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2996 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2997 | # OS/2's system install, which has a completely different semantic | |
2998 | # ./install, which can be erroneously created by make from ./install.sh. | |
38d24731 | 2999 | # Reject install programs that cannot install multiple files. |
5213506e RW |
3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3001 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
6de9cd9a | 3002 | if test -z "$INSTALL"; then |
22e05272 | 3003 | if ${ac_cv_path_install+:} false; then : |
5213506e | 3004 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3005 | else |
3006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3007 | for as_dir in $PATH | |
3008 | do | |
3009 | IFS=$as_save_IFS | |
3010 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3011 | # Account for people who put trailing slashes in PATH elements. |
3012 | case $as_dir/ in #(( | |
3013 | ./ | .// | /[cC]/* | \ | |
6de9cd9a | 3014 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 3015 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
6de9cd9a DN |
3016 | /usr/ucb/* ) ;; |
3017 | *) | |
3018 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3019 | # Don't use installbsd from OSF since it installs stuff as root | |
3020 | # by default. | |
3021 | for ac_prog in ginstall scoinst install; do | |
3022 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3023 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
6de9cd9a DN |
3024 | if test $ac_prog = install && |
3025 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3026 | # AIX install. It has an incompatible calling convention. | |
3027 | : | |
3028 | elif test $ac_prog = install && | |
3029 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3030 | # program-specific install script used by HP pwplus--don't use. | |
3031 | : | |
3032 | else | |
38d24731 RW |
3033 | rm -rf conftest.one conftest.two conftest.dir |
3034 | echo one > conftest.one | |
3035 | echo two > conftest.two | |
3036 | mkdir conftest.dir | |
3037 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3038 | test -s conftest.one && test -s conftest.two && | |
3039 | test -s conftest.dir/conftest.one && | |
3040 | test -s conftest.dir/conftest.two | |
3041 | then | |
3042 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3043 | break 3 | |
3044 | fi | |
6de9cd9a DN |
3045 | fi |
3046 | fi | |
3047 | done | |
3048 | done | |
3049 | ;; | |
3050 | esac | |
5213506e RW |
3051 | |
3052 | done | |
3053 | IFS=$as_save_IFS | |
6de9cd9a | 3054 | |
38d24731 | 3055 | rm -rf conftest.one conftest.two conftest.dir |
6de9cd9a DN |
3056 | |
3057 | fi | |
3058 | if test "${ac_cv_path_install+set}" = set; then | |
3059 | INSTALL=$ac_cv_path_install | |
3060 | else | |
f489fba1 FXC |
3061 | # As a last resort, use the slow shell script. Don't cache a |
3062 | # value for INSTALL within a source directory, because that will | |
6de9cd9a | 3063 | # break other packages using the cache if that directory is |
f489fba1 | 3064 | # removed, or if the value is a relative name. |
6de9cd9a DN |
3065 | INSTALL=$ac_install_sh |
3066 | fi | |
3067 | fi | |
5213506e RW |
3068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3069 | $as_echo "$INSTALL" >&6; } | |
6de9cd9a DN |
3070 | |
3071 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3072 | # It thinks the first close brace ends the variable substitution. | |
3073 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3074 | ||
3075 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3076 | ||
3077 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3078 | ||
5213506e RW |
3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3080 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
5213506e RW |
3081 | # Reject unsafe characters in $srcdir or the absolute working directory |
3082 | # name. Accept space and tab only in the latter. | |
3083 | am_lf=' | |
3084 | ' | |
3085 | case `pwd` in | |
3086 | *[\\\"\#\$\&\'\`$am_lf]*) | |
22e05272 | 3087 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
5213506e RW |
3088 | esac |
3089 | case $srcdir in | |
3090 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
22e05272 | 3091 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
5213506e RW |
3092 | esac |
3093 | ||
22e05272 | 3094 | # Do 'set' in a subshell so we don't clobber the current shell's |
6de9cd9a DN |
3095 | # arguments. Must try -L first in case configure is actually a |
3096 | # symlink; some systems play weird games with the mod time of symlinks | |
3097 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3098 | # directory). | |
3099 | if ( | |
22e05272 JM |
3100 | am_has_slept=no |
3101 | for am_try in 1 2; do | |
3102 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
3103 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3104 | if test "$*" = "X"; then | |
3105 | # -L didn't work. | |
3106 | set X `ls -t "$srcdir/configure" conftest.file` | |
3107 | fi | |
3108 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3109 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3110 | ||
3111 | # If neither matched, then we have a broken ls. This can happen | |
3112 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3113 | # broken ls alias from the environment. This has actually | |
3114 | # happened. Such a system could not be considered "sane". | |
3115 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3116 | alias in your environment" "$LINENO" 5 | |
3117 | fi | |
3118 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
3119 | break | |
3120 | fi | |
3121 | # Just in case. | |
3122 | sleep 1 | |
3123 | am_has_slept=yes | |
3124 | done | |
6de9cd9a DN |
3125 | test "$2" = conftest.file |
3126 | ) | |
3127 | then | |
3128 | # Ok. | |
3129 | : | |
3130 | else | |
22e05272 | 3131 | as_fn_error $? "newly created file is older than distributed files! |
5213506e | 3132 | Check your system clock" "$LINENO" 5 |
6de9cd9a | 3133 | fi |
5213506e RW |
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3135 | $as_echo "yes" >&6; } | |
22e05272 JM |
3136 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
3137 | # generated files are strictly newer. | |
3138 | am_sleep_pid= | |
3139 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3140 | ( sleep 1 ) & | |
3141 | am_sleep_pid=$! | |
3142 | fi | |
3143 | ||
3144 | rm -f conftest.file | |
3145 | ||
6de9cd9a | 3146 | test "$program_prefix" != NONE && |
5213506e | 3147 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
6de9cd9a DN |
3148 | # Use a double $ so make ignores it. |
3149 | test "$program_suffix" != NONE && | |
5213506e RW |
3150 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3151 | # Double any \ or $. | |
6de9cd9a | 3152 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
3153 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3154 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
6de9cd9a | 3155 | |
22e05272 JM |
3156 | # Expand $ac_aux_dir to an absolute path. |
3157 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
6de9cd9a | 3158 | |
5213506e RW |
3159 | if test x"${MISSING+set}" != xset; then |
3160 | case $am_aux_dir in | |
3161 | *\ * | *\ *) | |
3162 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3163 | *) | |
3164 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3165 | esac | |
3166 | fi | |
6de9cd9a | 3167 | # Use eval to expand $SHELL |
22e05272 JM |
3168 | if eval "$MISSING --is-lightweight"; then |
3169 | am_missing_run="$MISSING " | |
6de9cd9a DN |
3170 | else |
3171 | am_missing_run= | |
22e05272 JM |
3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3173 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
6de9cd9a DN |
3174 | fi |
3175 | ||
22e05272 | 3176 | if test x"${install_sh+set}" != xset; then |
5213506e RW |
3177 | case $am_aux_dir in |
3178 | *\ * | *\ *) | |
3179 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3180 | *) | |
3181 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3182 | esac | |
3183 | fi | |
3184 | ||
22e05272 JM |
3185 | # Installed binaries are usually stripped using 'strip' when the user |
3186 | # run "make install-strip". However 'strip' might not be the right | |
5213506e | 3187 | # tool to use in cross-compilation environments, therefore Automake |
22e05272 | 3188 | # will honor the 'STRIP' environment variable to overrule this program. |
5213506e RW |
3189 | if test "$cross_compiling" != no; then |
3190 | if test -n "$ac_tool_prefix"; then | |
3191 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3192 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3194 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3195 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 3196 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 3197 | else |
5213506e RW |
3198 | if test -n "$STRIP"; then |
3199 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6de9cd9a DN |
3200 | else |
3201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3202 | for as_dir in $PATH | |
3203 | do | |
3204 | IFS=$as_save_IFS | |
3205 | test -z "$as_dir" && as_dir=. | |
5213506e | 3206 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3207 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3208 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6de9cd9a DN |
3210 | break 2 |
3211 | fi | |
3212 | done | |
5213506e RW |
3213 | done |
3214 | IFS=$as_save_IFS | |
6de9cd9a DN |
3215 | |
3216 | fi | |
3217 | fi | |
5213506e RW |
3218 | STRIP=$ac_cv_prog_STRIP |
3219 | if test -n "$STRIP"; then | |
3220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3221 | $as_echo "$STRIP" >&6; } | |
6de9cd9a | 3222 | else |
5213506e RW |
3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3224 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3225 | fi |
3226 | ||
6de9cd9a | 3227 | |
5213506e RW |
3228 | fi |
3229 | if test -z "$ac_cv_prog_STRIP"; then | |
3230 | ac_ct_STRIP=$STRIP | |
3231 | # Extract the first word of "strip", so it can be a program name with args. | |
3232 | set dummy strip; ac_word=$2 | |
3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3234 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3235 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e | 3236 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 3237 | else |
5213506e RW |
3238 | if test -n "$ac_ct_STRIP"; then |
3239 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38d24731 | 3240 | else |
5213506e RW |
3241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3242 | for as_dir in $PATH | |
3243 | do | |
3244 | IFS=$as_save_IFS | |
3245 | test -z "$as_dir" && as_dir=. | |
3246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3247 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3248 | ac_cv_prog_ac_ct_STRIP="strip" |
3249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3250 | break 2 | |
3251 | fi | |
3252 | done | |
3253 | done | |
3254 | IFS=$as_save_IFS | |
3255 | ||
38d24731 | 3256 | fi |
6de9cd9a | 3257 | fi |
5213506e RW |
3258 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3259 | if test -n "$ac_ct_STRIP"; then | |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3261 | $as_echo "$ac_ct_STRIP" >&6; } | |
3262 | else | |
3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3264 | $as_echo "no" >&6; } | |
3265 | fi | |
3266 | ||
3267 | if test "x$ac_ct_STRIP" = x; then | |
3268 | STRIP=":" | |
3269 | else | |
3270 | case $cross_compiling:$ac_tool_warned in | |
3271 | yes:) | |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3273 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3274 | ac_tool_warned=yes ;; | |
3275 | esac | |
3276 | STRIP=$ac_ct_STRIP | |
3277 | fi | |
3278 | else | |
3279 | STRIP="$ac_cv_prog_STRIP" | |
3280 | fi | |
3281 | ||
3282 | fi | |
3283 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3284 | ||
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3286 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3287 | if test -z "$MKDIR_P"; then | |
22e05272 | 3288 | if ${ac_cv_path_mkdir+:} false; then : |
5213506e RW |
3289 | $as_echo_n "(cached) " >&6 |
3290 | else | |
3291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3292 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3293 | do | |
3294 | IFS=$as_save_IFS | |
3295 | test -z "$as_dir" && as_dir=. | |
3296 | for ac_prog in mkdir gmkdir; do | |
3297 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3298 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
5213506e RW |
3299 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3300 | 'mkdir (GNU coreutils) '* | \ | |
3301 | 'mkdir (coreutils) '* | \ | |
3302 | 'mkdir (fileutils) '4.1*) | |
3303 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3304 | break 3;; | |
3305 | esac | |
3306 | done | |
3307 | done | |
3308 | done | |
3309 | IFS=$as_save_IFS | |
3310 | ||
3311 | fi | |
3312 | ||
22e05272 | 3313 | test -d ./--version && rmdir ./--version |
5213506e RW |
3314 | if test "${ac_cv_path_mkdir+set}" = set; then |
3315 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3316 | else | |
3317 | # As a last resort, use the slow shell script. Don't cache a | |
3318 | # value for MKDIR_P within a source directory, because that will | |
3319 | # break other packages using the cache if that directory is | |
3320 | # removed, or if the value is a relative name. | |
5213506e RW |
3321 | MKDIR_P="$ac_install_sh -d" |
3322 | fi | |
3323 | fi | |
3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3325 | $as_echo "$MKDIR_P" >&6; } | |
3326 | ||
5213506e RW |
3327 | for ac_prog in gawk mawk nawk awk |
3328 | do | |
3329 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3330 | set dummy $ac_prog; ac_word=$2 | |
3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3332 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3333 | if ${ac_cv_prog_AWK+:} false; then : |
5213506e RW |
3334 | $as_echo_n "(cached) " >&6 |
3335 | else | |
3336 | if test -n "$AWK"; then | |
3337 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3338 | else | |
3339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3340 | for as_dir in $PATH | |
3341 | do | |
3342 | IFS=$as_save_IFS | |
3343 | test -z "$as_dir" && as_dir=. | |
3344 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3346 | ac_cv_prog_AWK="$ac_prog" |
3347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3348 | break 2 | |
3349 | fi | |
3350 | done | |
3351 | done | |
3352 | IFS=$as_save_IFS | |
3353 | ||
3354 | fi | |
3355 | fi | |
3356 | AWK=$ac_cv_prog_AWK | |
3357 | if test -n "$AWK"; then | |
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3359 | $as_echo "$AWK" >&6; } | |
3360 | else | |
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3362 | $as_echo "no" >&6; } | |
3363 | fi | |
3364 | ||
3365 | ||
3366 | test -n "$AWK" && break | |
3367 | done | |
3368 | ||
3369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3370 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3371 | set x ${MAKE-make} | |
3372 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 3373 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
5213506e RW |
3374 | $as_echo_n "(cached) " >&6 |
3375 | else | |
3376 | cat >conftest.make <<\_ACEOF | |
3377 | SHELL = /bin/sh | |
3378 | all: | |
3379 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3380 | _ACEOF | |
22e05272 | 3381 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
5213506e RW |
3382 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3383 | *@@@%%%=?*=@@@%%%*) | |
3384 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3385 | *) | |
3386 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3387 | esac | |
3388 | rm -f conftest.make | |
3389 | fi | |
3390 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3392 | $as_echo "yes" >&6; } | |
6de9cd9a DN |
3393 | SET_MAKE= |
3394 | else | |
5213506e RW |
3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3396 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3397 | SET_MAKE="MAKE=${MAKE-make}" |
3398 | fi | |
3399 | ||
3400 | rm -rf .tst 2>/dev/null | |
3401 | mkdir .tst 2>/dev/null | |
3402 | if test -d .tst; then | |
3403 | am__leading_dot=. | |
3404 | else | |
3405 | am__leading_dot=_ | |
3406 | fi | |
3407 | rmdir .tst 2>/dev/null | |
3408 | ||
22e05272 JM |
3409 | # Check whether --enable-silent-rules was given. |
3410 | if test "${enable_silent_rules+set}" = set; then : | |
3411 | enableval=$enable_silent_rules; | |
3412 | fi | |
3413 | ||
3414 | case $enable_silent_rules in # ((( | |
3415 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3416 | no) AM_DEFAULT_VERBOSITY=1;; | |
3417 | *) AM_DEFAULT_VERBOSITY=1;; | |
3418 | esac | |
3419 | am_make=${MAKE-make} | |
3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3421 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3422 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3423 | $as_echo_n "(cached) " >&6 | |
3424 | else | |
3425 | if $as_echo 'TRUE=$(BAR$(V)) | |
3426 | BAR0=false | |
3427 | BAR1=true | |
3428 | V=1 | |
3429 | am__doit: | |
3430 | @$(TRUE) | |
3431 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3432 | am_cv_make_support_nested_variables=yes | |
3433 | else | |
3434 | am_cv_make_support_nested_variables=no | |
3435 | fi | |
3436 | fi | |
3437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3438 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3439 | if test $am_cv_make_support_nested_variables = yes; then | |
3440 | AM_V='$(V)' | |
3441 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3442 | else | |
3443 | AM_V=$AM_DEFAULT_VERBOSITY | |
3444 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3445 | fi | |
3446 | AM_BACKSLASH='\' | |
3447 | ||
5213506e RW |
3448 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3449 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3450 | # is not polluted with repeated "-I." | |
3451 | am__isrc=' -I$(srcdir)' | |
3452 | # test to see if srcdir already configured | |
3453 | if test -f $srcdir/config.status; then | |
22e05272 | 3454 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
5213506e | 3455 | fi |
6de9cd9a DN |
3456 | fi |
3457 | ||
3458 | # test whether we have cygpath | |
3459 | if test -z "$CYGPATH_W"; then | |
3460 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3461 | CYGPATH_W='cygpath -w' | |
3462 | else | |
3463 | CYGPATH_W=echo | |
3464 | fi | |
3465 | fi | |
3466 | ||
3467 | ||
3468 | # Define the identity of the package. | |
3469 | PACKAGE='libgfortran' | |
0dce3ca1 | 3470 | VERSION='0.3' |
6de9cd9a DN |
3471 | |
3472 | ||
6de9cd9a DN |
3473 | # Some tools Automake needs. |
3474 | ||
3475 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3476 | ||
3477 | ||
3478 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3479 | ||
3480 | ||
3481 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3482 | ||
3483 | ||
3484 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3485 | ||
3486 | ||
3487 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3488 | ||
22e05272 JM |
3489 | # For better backward compatibility. To be removed once Automake 1.9.x |
3490 | # dies out for good. For more background, see: | |
3491 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3492 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3493 | mkdir_p='$(MKDIR_P)' | |
3494 | ||
3495 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3496 | # system "awk" is bad on some platforms. | |
c20fdb91 JB |
3497 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3498 | # in the wild :-( We should find a proper way to deprecate it ... | |
3499 | AMTAR='$${TAR-tar}' | |
d49ec2d1 | 3500 | |
22e05272 JM |
3501 | |
3502 | # We'll loop over all known methods to create a tar archive until one works. | |
3503 | _am_tools='gnutar pax cpio none' | |
3504 | ||
c20fdb91 | 3505 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
d49ec2d1 KC |
3506 | |
3507 | ||
6de9cd9a DN |
3508 | |
3509 | ||
3510 | ||
6de9cd9a | 3511 | |
22e05272 JM |
3512 | # POSIX will say in a future version that running "rm -f" with no argument |
3513 | # is OK; and we want to be able to make that assumption in our Makefile | |
3514 | # recipes. So use an aggressive probe to check that the usage we want is | |
3515 | # actually supported "in the wild" to an acceptable degree. | |
3516 | # See automake bug#10828. | |
3517 | # To make any issue more visible, cause the running configure to be aborted | |
3518 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3519 | # user can still override this though. | |
3520 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3521 | cat >&2 <<'END' | |
3522 | Oops! | |
3523 | ||
3524 | Your 'rm' program seems unable to run without file operands specified | |
3525 | on the command line, even when the '-f' option is present. This is contrary | |
3526 | to the behaviour of most rm programs out there, and not conforming with | |
3527 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3528 | ||
3529 | Please tell bug-automake@gnu.org about your system, including the value | |
3530 | of your $PATH and any error possibly output before this message. This | |
3531 | can help us improve future automake versions. | |
3532 | ||
3533 | END | |
3534 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3535 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3536 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3537 | echo >&2 | |
3538 | else | |
3539 | cat >&2 <<'END' | |
3540 | Aborting the configuration process, to ensure you take notice of the issue. | |
3541 | ||
3542 | You can download and install GNU coreutils to get an 'rm' implementation | |
3543 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3544 | ||
3545 | If you want to complete the configuration process using your problematic | |
3546 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3547 | to "yes", and re-run configure. | |
3548 | ||
3549 | END | |
3550 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3551 | fi | |
3552 | fi | |
3553 | ||
3554 | ||
5213506e RW |
3555 | |
3556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3557 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3558 | # Check whether --enable-maintainer-mode was given. | |
3559 | if test "${enable_maintainer_mode+set}" = set; then : | |
3560 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
6de9cd9a DN |
3561 | else |
3562 | USE_MAINTAINER_MODE=no | |
5213506e | 3563 | fi |
6de9cd9a | 3564 | |
5213506e RW |
3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3566 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3567 | if test $USE_MAINTAINER_MODE = yes; then | |
6de9cd9a DN |
3568 | MAINTAINER_MODE_TRUE= |
3569 | MAINTAINER_MODE_FALSE='#' | |
3570 | else | |
3571 | MAINTAINER_MODE_TRUE='#' | |
3572 | MAINTAINER_MODE_FALSE= | |
3573 | fi | |
3574 | ||
3575 | MAINT=$MAINTAINER_MODE_TRUE | |
3576 | ||
3577 | ||
96b8a615 | 3578 | # Default to --enable-multilib |
5213506e RW |
3579 | # Check whether --enable-multilib was given. |
3580 | if test "${enable_multilib+set}" = set; then : | |
3581 | enableval=$enable_multilib; case "$enableval" in | |
96b8a615 AJ |
3582 | yes) multilib=yes ;; |
3583 | no) multilib=no ;; | |
22e05272 | 3584 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
96b8a615 AJ |
3585 | esac |
3586 | else | |
3587 | multilib=yes | |
5213506e RW |
3588 | fi |
3589 | ||
96b8a615 AJ |
3590 | |
3591 | # We may get other options which we leave undocumented: | |
3592 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3593 | # See config-ml.in if you want the gory details. | |
3594 | ||
3595 | if test "$srcdir" = "."; then | |
3596 | if test "$with_target_subdir" != "."; then | |
3597 | multi_basedir="$srcdir/$with_multisrctop../.." | |
3598 | else | |
3599 | multi_basedir="$srcdir/$with_multisrctop.." | |
3600 | fi | |
3601 | else | |
3602 | multi_basedir="$srcdir/.." | |
3603 | fi | |
3604 | ||
3605 | ||
9f9ef303 FXC |
3606 | # Even if the default multilib is not a cross compilation, |
3607 | # it may be that some of the other multilibs are. | |
3608 | if test $cross_compiling = no && test $multilib = yes \ | |
3609 | && test "x${with_multisubdir}" != x ; then | |
3610 | cross_compiling=maybe | |
3611 | fi | |
3612 | ||
5213506e | 3613 | ac_config_commands="$ac_config_commands default-1" |
96b8a615 AJ |
3614 | |
3615 | ||
3616 | # Handy for debugging: | |
3617 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
3618 | ||
3619 | # Are we being configured with some form of cross compiler? | |
3620 | # NB: We don't actually need to know this just now, but when, say, a test | |
3621 | # suite is included, we'll have to know. | |
3622 | if test "$build" != "$host"; then | |
3623 | LIBGFOR_IS_NATIVE=false | |
f02d008e | 3624 | |
96b8a615 AJ |
3625 | else |
3626 | LIBGFOR_IS_NATIVE=true | |
3627 | fi | |
3628 | ||
21be0a5a | 3629 | DEPDIR="${am__leading_dot}deps" |
96b8a615 | 3630 | |
21be0a5a | 3631 | ac_config_commands="$ac_config_commands depfiles" |
96b8a615 | 3632 | |
6de9cd9a | 3633 | |
21be0a5a JB |
3634 | am_make=${MAKE-make} |
3635 | cat > confinc << 'END' | |
3636 | am__doit: | |
3637 | @echo this is the am__doit target | |
3638 | .PHONY: am__doit | |
3639 | END | |
3640 | # If we don't find an include directive, just comment out the code. | |
3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3642 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3643 | am__include="#" | |
3644 | am__quote= | |
3645 | _am_result=none | |
3646 | # First try GNU make style include. | |
3647 | echo "include confinc" > confmf | |
22e05272 | 3648 | # Ignore all kinds of additional output from 'make'. |
21be0a5a JB |
3649 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3650 | *the\ am__doit\ target*) | |
3651 | am__include=include | |
3652 | am__quote= | |
3653 | _am_result=GNU | |
3654 | ;; | |
3655 | esac | |
3656 | # Now try BSD make style include. | |
3657 | if test "$am__include" = "#"; then | |
3658 | echo '.include "confinc"' > confmf | |
3659 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3660 | *the\ am__doit\ target*) | |
3661 | am__include=.include | |
3662 | am__quote="\"" | |
3663 | _am_result=BSD | |
3664 | ;; | |
3665 | esac | |
3666 | fi | |
1ec601bf | 3667 | |
6de9cd9a | 3668 | |
21be0a5a JB |
3669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3670 | $as_echo "$_am_result" >&6; } | |
3671 | rm -f confinc confmf | |
3672 | ||
3673 | # Check whether --enable-dependency-tracking was given. | |
3674 | if test "${enable_dependency_tracking+set}" = set; then : | |
3675 | enableval=$enable_dependency_tracking; | |
3676 | fi | |
3677 | ||
3678 | if test "x$enable_dependency_tracking" != xno; then | |
3679 | am_depcomp="$ac_aux_dir/depcomp" | |
3680 | AMDEPBACKSLASH='\' | |
c20fdb91 | 3681 | am__nodep='_no' |
21be0a5a JB |
3682 | fi |
3683 | if test "x$enable_dependency_tracking" != xno; then | |
3684 | AMDEP_TRUE= | |
3685 | AMDEP_FALSE='#' | |
3686 | else | |
3687 | AMDEP_TRUE='#' | |
3688 | AMDEP_FALSE= | |
3689 | fi | |
6de9cd9a DN |
3690 | |
3691 | ||
6de9cd9a DN |
3692 | ac_ext=c |
3693 | ac_cpp='$CPP $CPPFLAGS' | |
3694 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3695 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3696 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3697 | if test -n "$ac_tool_prefix"; then | |
3698 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3699 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3701 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3702 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3703 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3704 | else |
3705 | if test -n "$CC"; then | |
3706 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3707 | else | |
3708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3709 | for as_dir in $PATH | |
3710 | do | |
3711 | IFS=$as_save_IFS | |
3712 | test -z "$as_dir" && as_dir=. | |
5213506e | 3713 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3714 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3715 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3716 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3717 | break 2 |
3718 | fi | |
3719 | done | |
5213506e RW |
3720 | done |
3721 | IFS=$as_save_IFS | |
6de9cd9a DN |
3722 | |
3723 | fi | |
3724 | fi | |
3725 | CC=$ac_cv_prog_CC | |
3726 | if test -n "$CC"; then | |
5213506e RW |
3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3728 | $as_echo "$CC" >&6; } | |
6de9cd9a | 3729 | else |
5213506e RW |
3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3731 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3732 | fi |
3733 | ||
5213506e | 3734 | |
6de9cd9a DN |
3735 | fi |
3736 | if test -z "$ac_cv_prog_CC"; then | |
3737 | ac_ct_CC=$CC | |
3738 | # Extract the first word of "gcc", so it can be a program name with args. | |
3739 | set dummy gcc; ac_word=$2 | |
5213506e RW |
3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3741 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3742 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3743 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3744 | else |
3745 | if test -n "$ac_ct_CC"; then | |
3746 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3747 | else | |
3748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3749 | for as_dir in $PATH | |
3750 | do | |
3751 | IFS=$as_save_IFS | |
3752 | test -z "$as_dir" && as_dir=. | |
5213506e | 3753 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3754 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3755 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 3756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3757 | break 2 |
3758 | fi | |
3759 | done | |
5213506e RW |
3760 | done |
3761 | IFS=$as_save_IFS | |
6de9cd9a DN |
3762 | |
3763 | fi | |
3764 | fi | |
3765 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3766 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3768 | $as_echo "$ac_ct_CC" >&6; } | |
6de9cd9a | 3769 | else |
5213506e RW |
3770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3771 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3772 | fi |
3773 | ||
5213506e RW |
3774 | if test "x$ac_ct_CC" = x; then |
3775 | CC="" | |
3776 | else | |
3777 | case $cross_compiling:$ac_tool_warned in | |
3778 | yes:) | |
3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3780 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3781 | ac_tool_warned=yes ;; | |
3782 | esac | |
3783 | CC=$ac_ct_CC | |
3784 | fi | |
6de9cd9a DN |
3785 | else |
3786 | CC="$ac_cv_prog_CC" | |
3787 | fi | |
3788 | ||
3789 | if test -z "$CC"; then | |
5213506e RW |
3790 | if test -n "$ac_tool_prefix"; then |
3791 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
6de9cd9a | 3792 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3794 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3795 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3796 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3797 | else |
3798 | if test -n "$CC"; then | |
3799 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3800 | else | |
3801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3802 | for as_dir in $PATH | |
3803 | do | |
3804 | IFS=$as_save_IFS | |
3805 | test -z "$as_dir" && as_dir=. | |
5213506e | 3806 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3807 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3808 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 3809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3810 | break 2 |
3811 | fi | |
3812 | done | |
5213506e RW |
3813 | done |
3814 | IFS=$as_save_IFS | |
6de9cd9a DN |
3815 | |
3816 | fi | |
3817 | fi | |
3818 | CC=$ac_cv_prog_CC | |
3819 | if test -n "$CC"; then | |
5213506e RW |
3820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3821 | $as_echo "$CC" >&6; } | |
38d24731 | 3822 | else |
5213506e RW |
3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3824 | $as_echo "no" >&6; } | |
38d24731 RW |
3825 | fi |
3826 | ||
38d24731 | 3827 | |
5213506e | 3828 | fi |
6de9cd9a DN |
3829 | fi |
3830 | if test -z "$CC"; then | |
3831 | # Extract the first word of "cc", so it can be a program name with args. | |
3832 | set dummy cc; ac_word=$2 | |
5213506e RW |
3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3834 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3835 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3836 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3837 | else |
3838 | if test -n "$CC"; then | |
3839 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3840 | else | |
3841 | ac_prog_rejected=no | |
3842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3843 | for as_dir in $PATH | |
3844 | do | |
3845 | IFS=$as_save_IFS | |
3846 | test -z "$as_dir" && as_dir=. | |
5213506e | 3847 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3848 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a DN |
3849 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3850 | ac_prog_rejected=yes | |
3851 | continue | |
3852 | fi | |
3853 | ac_cv_prog_CC="cc" | |
5213506e | 3854 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3855 | break 2 |
3856 | fi | |
3857 | done | |
5213506e RW |
3858 | done |
3859 | IFS=$as_save_IFS | |
6de9cd9a DN |
3860 | |
3861 | if test $ac_prog_rejected = yes; then | |
3862 | # We found a bogon in the path, so make sure we never use it. | |
3863 | set dummy $ac_cv_prog_CC | |
3864 | shift | |
3865 | if test $# != 0; then | |
3866 | # We chose a different compiler from the bogus one. | |
3867 | # However, it has the same basename, so the bogon will be chosen | |
3868 | # first if we set CC to just the basename; use the full file name. | |
3869 | shift | |
3870 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3871 | fi | |
3872 | fi | |
3873 | fi | |
3874 | fi | |
3875 | CC=$ac_cv_prog_CC | |
3876 | if test -n "$CC"; then | |
5213506e RW |
3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3878 | $as_echo "$CC" >&6; } | |
6de9cd9a | 3879 | else |
5213506e RW |
3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3881 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3882 | fi |
3883 | ||
5213506e | 3884 | |
6de9cd9a DN |
3885 | fi |
3886 | if test -z "$CC"; then | |
3887 | if test -n "$ac_tool_prefix"; then | |
5213506e | 3888 | for ac_prog in cl.exe |
6de9cd9a DN |
3889 | do |
3890 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3891 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3893 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3894 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3895 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3896 | else |
3897 | if test -n "$CC"; then | |
3898 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3899 | else | |
3900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3901 | for as_dir in $PATH | |
3902 | do | |
3903 | IFS=$as_save_IFS | |
3904 | test -z "$as_dir" && as_dir=. | |
5213506e | 3905 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3906 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3907 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 3908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3909 | break 2 |
3910 | fi | |
3911 | done | |
5213506e RW |
3912 | done |
3913 | IFS=$as_save_IFS | |
6de9cd9a DN |
3914 | |
3915 | fi | |
3916 | fi | |
3917 | CC=$ac_cv_prog_CC | |
3918 | if test -n "$CC"; then | |
5213506e RW |
3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3920 | $as_echo "$CC" >&6; } | |
6de9cd9a | 3921 | else |
5213506e RW |
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3923 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3924 | fi |
3925 | ||
5213506e | 3926 | |
6de9cd9a DN |
3927 | test -n "$CC" && break |
3928 | done | |
3929 | fi | |
3930 | if test -z "$CC"; then | |
3931 | ac_ct_CC=$CC | |
5213506e | 3932 | for ac_prog in cl.exe |
6de9cd9a DN |
3933 | do |
3934 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3935 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3937 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3938 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3939 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3940 | else |
3941 | if test -n "$ac_ct_CC"; then | |
3942 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3943 | else | |
3944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3945 | for as_dir in $PATH | |
3946 | do | |
3947 | IFS=$as_save_IFS | |
3948 | test -z "$as_dir" && as_dir=. | |
5213506e | 3949 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3950 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3951 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 3952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3953 | break 2 |
3954 | fi | |
3955 | done | |
5213506e RW |
3956 | done |
3957 | IFS=$as_save_IFS | |
6de9cd9a DN |
3958 | |
3959 | fi | |
3960 | fi | |
3961 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3962 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3964 | $as_echo "$ac_ct_CC" >&6; } | |
6de9cd9a | 3965 | else |
5213506e RW |
3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3967 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3968 | fi |
3969 | ||
5213506e | 3970 | |
6de9cd9a DN |
3971 | test -n "$ac_ct_CC" && break |
3972 | done | |
3973 | ||
5213506e RW |
3974 | if test "x$ac_ct_CC" = x; then |
3975 | CC="" | |
3976 | else | |
3977 | case $cross_compiling:$ac_tool_warned in | |
3978 | yes:) | |
3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3980 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3981 | ac_tool_warned=yes ;; | |
3982 | esac | |
3983 | CC=$ac_ct_CC | |
3984 | fi | |
6de9cd9a DN |
3985 | fi |
3986 | ||
3987 | fi | |
3988 | ||
3989 | ||
5213506e RW |
3990 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3991 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3992 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3993 | See \`config.log' for more details" "$LINENO" 5; } | |
6de9cd9a DN |
3994 | |
3995 | # Provide some information about the compiler. | |
5213506e RW |
3996 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3997 | set X $ac_compile | |
3998 | ac_compiler=$2 | |
3999 | for ac_option in --version -v -V -qversion; do | |
4000 | { { ac_try="$ac_compiler $ac_option >&5" | |
4001 | case "(($ac_try" in | |
4002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4003 | *) ac_try_echo=$ac_try;; | |
4004 | esac | |
4005 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4006 | $as_echo "$ac_try_echo"; } >&5 | |
4007 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
6de9cd9a | 4008 | ac_status=$? |
5213506e RW |
4009 | if test -s conftest.err; then |
4010 | sed '10a\ | |
4011 | ... rest of stderr output deleted ... | |
4012 | 10q' conftest.err >conftest.er1 | |
4013 | cat conftest.er1 >&5 | |
5213506e | 4014 | fi |
22e05272 | 4015 | rm -f conftest.er1 conftest.err |
5213506e RW |
4016 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4017 | test $ac_status = 0; } | |
4018 | done | |
6de9cd9a | 4019 | |
5213506e | 4020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a | 4021 | /* end confdefs.h. */ |
02ce382c | 4022 | #include <stdio.h> |
f02d008e JD |
4023 | int |
4024 | main () | |
4025 | { | |
02ce382c | 4026 | printf ("hello world\n"); |
f02d008e JD |
4027 | ; |
4028 | return 0; | |
4029 | } | |
4030 | _ACEOF | |
4031 | # FIXME: Cleanup? | |
5213506e | 4032 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
f02d008e JD |
4033 | (eval $ac_link) 2>&5 |
4034 | ac_status=$? | |
5213506e RW |
4035 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4036 | test $ac_status = 0; }; then : | |
f02d008e JD |
4037 | gcc_no_link=no |
4038 | else | |
4039 | gcc_no_link=yes | |
4040 | fi | |
f02d008e JD |
4041 | if test x$gcc_no_link = xyes; then |
4042 | # Setting cross_compile will disable run tests; it will | |
4043 | # also disable AC_CHECK_FILE but that's generally | |
4044 | # correct if we can't link. | |
4045 | cross_compiling=yes | |
4046 | EXEEXT= | |
4047 | else | |
5213506e | 4048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
4049 | /* end confdefs.h. */ |
4050 | ||
6de9cd9a DN |
4051 | int |
4052 | main () | |
4053 | { | |
4054 | ||
4055 | ; | |
4056 | return 0; | |
4057 | } | |
4058 | _ACEOF | |
4059 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4060 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
6de9cd9a DN |
4061 | # Try to create an executable without -o first, disregard a.out. |
4062 | # It will help us diagnose broken compilers, and finding out an intuition | |
4063 | # of exeext. | |
22e05272 JM |
4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4065 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4066 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4067 | ||
4068 | # The possible output files: | |
4069 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4070 | ||
4071 | ac_rmfiles= | |
4072 | for ac_file in $ac_files | |
4073 | do | |
4074 | case $ac_file in | |
4075 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4076 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4077 | esac | |
4078 | done | |
4079 | rm -f $ac_rmfiles | |
4080 | ||
4081 | if { { ac_try="$ac_link_default" | |
4082 | case "(($ac_try" in | |
4083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4084 | *) ac_try_echo=$ac_try;; | |
4085 | esac | |
4086 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4087 | $as_echo "$ac_try_echo"; } >&5 | |
4088 | (eval "$ac_link_default") 2>&5 | |
4089 | ac_status=$? | |
4090 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4091 | test $ac_status = 0; }; then : | |
4092 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4093 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4094 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4095 | # so that the user can short-circuit this test for compilers unknown to | |
4096 | # Autoconf. | |
4097 | for ac_file in $ac_files '' | |
6de9cd9a DN |
4098 | do |
4099 | test -f "$ac_file" || continue | |
4100 | case $ac_file in | |
5213506e | 4101 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
6de9cd9a DN |
4102 | ;; |
4103 | [ab].out ) | |
4104 | # We found the default executable, but exeext='' is most | |
4105 | # certainly right. | |
4106 | break;; | |
4107 | *.* ) | |
5213506e RW |
4108 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4109 | then :; else | |
4110 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4111 | fi | |
4112 | # We set ac_cv_exeext here because the later test for it is not | |
4113 | # safe: cross compilers may not add the suffix if given an `-o' | |
4114 | # argument, so we may need to know it at that point already. | |
4115 | # Even if this section looks crufty: it has the advantage of | |
4116 | # actually working. | |
6de9cd9a DN |
4117 | break;; |
4118 | * ) | |
4119 | break;; | |
4120 | esac | |
4121 | done | |
5213506e RW |
4122 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4123 | ||
6de9cd9a | 4124 | else |
5213506e RW |
4125 | ac_file='' |
4126 | fi | |
5213506e | 4127 | if test -z "$ac_file"; then : |
22e05272 JM |
4128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4129 | $as_echo "no" >&6; } | |
4130 | $as_echo "$as_me: failed program was:" >&5 | |
6de9cd9a DN |
4131 | sed 's/^/| /' conftest.$ac_ext >&5 |
4132 | ||
5213506e RW |
4133 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4134 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4135 | as_fn_error 77 "C compiler cannot create executables |
4136 | See \`config.log' for more details" "$LINENO" 5; } | |
4137 | else | |
4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4139 | $as_echo "yes" >&6; } | |
6de9cd9a | 4140 | fi |
22e05272 JM |
4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4142 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4144 | $as_echo "$ac_file" >&6; } | |
6de9cd9a | 4145 | ac_exeext=$ac_cv_exeext |
6de9cd9a | 4146 | |
22e05272 | 4147 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
6de9cd9a | 4148 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4150 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4151 | if { { ac_try="$ac_link" | |
4152 | case "(($ac_try" in | |
4153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4154 | *) ac_try_echo=$ac_try;; | |
4155 | esac | |
4156 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4157 | $as_echo "$ac_try_echo"; } >&5 | |
4158 | (eval "$ac_link") 2>&5 | |
6de9cd9a | 4159 | ac_status=$? |
5213506e RW |
4160 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4161 | test $ac_status = 0; }; then : | |
6de9cd9a DN |
4162 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4163 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4164 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4165 | # `rm'. | |
4166 | for ac_file in conftest.exe conftest conftest.*; do | |
4167 | test -f "$ac_file" || continue | |
4168 | case $ac_file in | |
5213506e | 4169 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
6de9cd9a | 4170 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
6de9cd9a DN |
4171 | break;; |
4172 | * ) break;; | |
4173 | esac | |
4174 | done | |
4175 | else | |
5213506e RW |
4176 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4177 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4178 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4179 | See \`config.log' for more details" "$LINENO" 5; } | |
6de9cd9a | 4180 | fi |
22e05272 | 4181 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4183 | $as_echo "$ac_cv_exeext" >&6; } | |
6de9cd9a DN |
4184 | |
4185 | rm -f conftest.$ac_ext | |
4186 | EXEEXT=$ac_cv_exeext | |
4187 | ac_exeext=$EXEEXT | |
22e05272 JM |
4188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4189 | /* end confdefs.h. */ | |
4190 | #include <stdio.h> | |
4191 | int | |
4192 | main () | |
4193 | { | |
4194 | FILE *f = fopen ("conftest.out", "w"); | |
4195 | return ferror (f) || fclose (f) != 0; | |
4196 | ||
4197 | ; | |
4198 | return 0; | |
4199 | } | |
4200 | _ACEOF | |
4201 | ac_clean_files="$ac_clean_files conftest.out" | |
4202 | # Check that the compiler produces executables we can run. If not, either | |
4203 | # the compiler is broken, or we cross compile. | |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4205 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4206 | if test "$cross_compiling" != yes; then | |
4207 | { { ac_try="$ac_link" | |
4208 | case "(($ac_try" in | |
4209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4210 | *) ac_try_echo=$ac_try;; | |
4211 | esac | |
4212 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4213 | $as_echo "$ac_try_echo"; } >&5 | |
4214 | (eval "$ac_link") 2>&5 | |
4215 | ac_status=$? | |
4216 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4217 | test $ac_status = 0; } | |
4218 | if { ac_try='./conftest$ac_cv_exeext' | |
4219 | { { case "(($ac_try" in | |
4220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4221 | *) ac_try_echo=$ac_try;; | |
4222 | esac | |
4223 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4224 | $as_echo "$ac_try_echo"; } >&5 | |
4225 | (eval "$ac_try") 2>&5 | |
4226 | ac_status=$? | |
4227 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4228 | test $ac_status = 0; }; }; then | |
4229 | cross_compiling=no | |
4230 | else | |
4231 | if test "$cross_compiling" = maybe; then | |
4232 | cross_compiling=yes | |
4233 | else | |
4234 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4235 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4236 | as_fn_error $? "cannot run C compiled programs. | |
4237 | If you meant to cross compile, use \`--host'. | |
4238 | See \`config.log' for more details" "$LINENO" 5; } | |
4239 | fi | |
4240 | fi | |
4241 | fi | |
4242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4243 | $as_echo "$cross_compiling" >&6; } | |
4244 | ||
4245 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4246 | ac_clean_files=$ac_clean_files_save | |
f02d008e | 4247 | fi |
5213506e RW |
4248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4249 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4250 | if ${ac_cv_objext+:} false; then : |
5213506e | 4251 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4252 | else |
5213506e | 4253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a DN |
4254 | /* end confdefs.h. */ |
4255 | ||
4256 | int | |
4257 | main () | |
4258 | { | |
4259 | ||
4260 | ; | |
4261 | return 0; | |
4262 | } | |
4263 | _ACEOF | |
4264 | rm -f conftest.o conftest.obj | |
5213506e RW |
4265 | if { { ac_try="$ac_compile" |
4266 | case "(($ac_try" in | |
4267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4268 | *) ac_try_echo=$ac_try;; | |
4269 | esac | |
4270 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4271 | $as_echo "$ac_try_echo"; } >&5 | |
4272 | (eval "$ac_compile") 2>&5 | |
4273 | ac_status=$? | |
4274 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4275 | test $ac_status = 0; }; then : | |
4276 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4277 | test -f "$ac_file" || continue; | |
6de9cd9a | 4278 | case $ac_file in |
5213506e | 4279 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
6de9cd9a DN |
4280 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4281 | break;; | |
4282 | esac | |
4283 | done | |
4284 | else | |
5213506e | 4285 | $as_echo "$as_me: failed program was:" >&5 |
6de9cd9a DN |
4286 | sed 's/^/| /' conftest.$ac_ext >&5 |
4287 | ||
5213506e RW |
4288 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4289 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4290 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4291 | See \`config.log' for more details" "$LINENO" 5; } | |
78511f8b | 4292 | fi |
78511f8b JB |
4293 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4294 | fi | |
5213506e RW |
4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4296 | $as_echo "$ac_cv_objext" >&6; } | |
78511f8b JB |
4297 | OBJEXT=$ac_cv_objext |
4298 | ac_objext=$OBJEXT | |
5213506e RW |
4299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4300 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4301 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4302 | $as_echo_n "(cached) " >&6 |
78511f8b | 4303 | else |
5213506e | 4304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a | 4305 | /* end confdefs.h. */ |
6de9cd9a | 4306 | |
6de9cd9a DN |
4307 | int |
4308 | main () | |
4309 | { | |
78511f8b JB |
4310 | #ifndef __GNUC__ |
4311 | choke me | |
4312 | #endif | |
c0e7e2bf | 4313 | |
6de9cd9a DN |
4314 | ; |
4315 | return 0; | |
4316 | } | |
4317 | _ACEOF | |
5213506e | 4318 | if ac_fn_c_try_compile "$LINENO"; then : |
78511f8b | 4319 | ac_compiler_gnu=yes |
6de9cd9a | 4320 | else |
5213506e | 4321 | ac_compiler_gnu=no |
78511f8b | 4322 | fi |
5213506e | 4323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
78511f8b JB |
4324 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4325 | ||
4326 | fi | |
5213506e RW |
4327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4328 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4329 | if test $ac_compiler_gnu = yes; then | |
4330 | GCC=yes | |
4331 | else | |
4332 | GCC= | |
4333 | fi | |
78511f8b JB |
4334 | ac_test_CFLAGS=${CFLAGS+set} |
4335 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4337 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4338 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e | 4339 | $as_echo_n "(cached) " >&6 |
78511f8b | 4340 | else |
5213506e RW |
4341 | ac_save_c_werror_flag=$ac_c_werror_flag |
4342 | ac_c_werror_flag=yes | |
4343 | ac_cv_prog_cc_g=no | |
4344 | CFLAGS="-g" | |
4345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6de9cd9a | 4346 | /* end confdefs.h. */ |
c0e7e2bf | 4347 | |
6de9cd9a DN |
4348 | int |
4349 | main () | |
4350 | { | |
c0e7e2bf | 4351 | |
6de9cd9a DN |
4352 | ; |
4353 | return 0; | |
4354 | } | |
4355 | _ACEOF | |
5213506e | 4356 | if ac_fn_c_try_compile "$LINENO"; then : |
f489fba1 FXC |
4357 | ac_cv_prog_cc_g=yes |
4358 | else | |
5213506e RW |
4359 | CFLAGS="" |
4360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4361 | /* end confdefs.h. */ | |
4362 | ||
4363 | int | |
4364 | main () | |
4365 | { | |
4366 | ||
4367 | ; | |
4368 | return 0; | |
4369 | } | |
4370 | _ACEOF | |
4371 | if ac_fn_c_try_compile "$LINENO"; then : | |
4372 | ||
4373 | else | |
4374 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4375 | CFLAGS="-g" | |
4376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4377 | /* end confdefs.h. */ | |
f489fba1 | 4378 | |
5213506e RW |
4379 | int |
4380 | main () | |
4381 | { | |
4382 | ||
4383 | ; | |
4384 | return 0; | |
4385 | } | |
4386 | _ACEOF | |
4387 | if ac_fn_c_try_compile "$LINENO"; then : | |
4388 | ac_cv_prog_cc_g=yes | |
4389 | fi | |
4390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
38d24731 | 4391 | fi |
5213506e | 4392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
38d24731 | 4393 | fi |
5213506e RW |
4394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4395 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4396 | fi | |
4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4398 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
38d24731 RW |
4399 | if test "$ac_test_CFLAGS" = set; then |
4400 | CFLAGS=$ac_save_CFLAGS | |
4401 | elif test $ac_cv_prog_cc_g = yes; then | |
4402 | if test "$GCC" = yes; then | |
4403 | CFLAGS="-g -O2" | |
4404 | else | |
4405 | CFLAGS="-g" | |
4406 | fi | |
4407 | else | |
4408 | if test "$GCC" = yes; then | |
4409 | CFLAGS="-O2" | |
4410 | else | |
4411 | CFLAGS= | |
4412 | fi | |
4413 | fi | |
5213506e RW |
4414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4415 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4416 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4417 | $as_echo_n "(cached) " >&6 |
38d24731 | 4418 | else |
5213506e | 4419 | ac_cv_prog_cc_c89=no |
38d24731 | 4420 | ac_save_CC=$CC |
5213506e | 4421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f489fba1 | 4422 | /* end confdefs.h. */ |
38d24731 RW |
4423 | #include <stdarg.h> |
4424 | #include <stdio.h> | |
22e05272 | 4425 | struct stat; |
38d24731 RW |
4426 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4427 | struct buf { int x; }; | |
4428 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4429 | static char *e (p, i) | |
4430 | char **p; | |
4431 | int i; | |
4432 | { | |
4433 | return p[i]; | |
4434 | } | |
4435 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4436 | { | |
4437 | char *s; | |
4438 | va_list v; | |
4439 | va_start (v,p); | |
4440 | s = g (p, va_arg (v,int)); | |
4441 | va_end (v); | |
4442 | return s; | |
4443 | } | |
f489fba1 | 4444 | |
38d24731 RW |
4445 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4446 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4447 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4448 | as 'x'. The following induces an error, until -std is added to get |
38d24731 RW |
4449 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4450 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4451 | that's true only with -std. */ |
38d24731 RW |
4452 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4453 | ||
5213506e RW |
4454 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4455 | inside strings and character constants. */ | |
4456 | #define FOO(x) 'x' | |
4457 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4458 | ||
38d24731 RW |
4459 | int test (int i, double x); |
4460 | struct s1 {int (*f) (int a);}; | |
4461 | struct s2 {int (*f) (double a);}; | |
4462 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4463 | int argc; | |
4464 | char **argv; | |
f489fba1 FXC |
4465 | int |
4466 | main () | |
4467 | { | |
38d24731 | 4468 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
f489fba1 FXC |
4469 | ; |
4470 | return 0; | |
4471 | } | |
4472 | _ACEOF | |
5213506e RW |
4473 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4474 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
38d24731 RW |
4475 | do |
4476 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4477 | if ac_fn_c_try_compile "$LINENO"; then : |
4478 | ac_cv_prog_cc_c89=$ac_arg | |
38d24731 | 4479 | fi |
5213506e RW |
4480 | rm -f core conftest.err conftest.$ac_objext |
4481 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
38d24731 | 4482 | done |
5213506e | 4483 | rm -f conftest.$ac_ext |
38d24731 RW |
4484 | CC=$ac_save_CC |
4485 | ||
4486 | fi | |
5213506e RW |
4487 | # AC_CACHE_VAL |
4488 | case "x$ac_cv_prog_cc_c89" in | |
4489 | x) | |
4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4491 | $as_echo "none needed" >&6; } ;; | |
4492 | xno) | |
4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4494 | $as_echo "unsupported" >&6; } ;; | |
38d24731 | 4495 | *) |
5213506e RW |
4496 | CC="$CC $ac_cv_prog_cc_c89" |
4497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4498 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
38d24731 | 4499 | esac |
5213506e | 4500 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
6de9cd9a DN |
4501 | |
4502 | fi | |
6de9cd9a | 4503 | |
6de9cd9a DN |
4504 | ac_ext=c |
4505 | ac_cpp='$CPP $CPPFLAGS' | |
4506 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4507 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4508 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
679c0f9a | 4509 | |
22e05272 JM |
4510 | ac_ext=c |
4511 | ac_cpp='$CPP $CPPFLAGS' | |
4512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4513 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4514 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4516 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4517 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4518 | $as_echo_n "(cached) " >&6 | |
4519 | else | |
4520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4521 | /* end confdefs.h. */ | |
4522 | ||
4523 | int | |
4524 | main () | |
4525 | { | |
4526 | ||
4527 | ; | |
4528 | return 0; | |
4529 | } | |
4530 | _ACEOF | |
4531 | # Make sure it works both with $CC and with simple cc. | |
4532 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4533 | # compilers refuse to overwrite an existing .o file with -o, | |
4534 | # though they will create one. | |
4535 | am_cv_prog_cc_c_o=yes | |
4536 | for am_i in 1 2; do | |
4537 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4538 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4539 | ac_status=$? | |
4540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4541 | (exit $ac_status); } \ | |
4542 | && test -f conftest2.$ac_objext; then | |
4543 | : OK | |
4544 | else | |
4545 | am_cv_prog_cc_c_o=no | |
4546 | break | |
4547 | fi | |
4548 | done | |
4549 | rm -f core conftest* | |
4550 | unset am_i | |
4551 | fi | |
4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4553 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4554 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4555 | # Losing compiler, so override with the script. | |
4556 | # FIXME: It is wrong to rewrite CC. | |
4557 | # But if we don't then we get into trouble of one sort or another. | |
4558 | # A longer-term fix would be to have automake use am__CC in this case, | |
4559 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4560 | CC="$am_aux_dir/compile $CC" | |
4561 | fi | |
4562 | ac_ext=c | |
4563 | ac_cpp='$CPP $CPPFLAGS' | |
4564 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4565 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4567 | ||
4568 | ||
679c0f9a TT |
4569 | depcc="$CC" am_compiler_list= |
4570 | ||
5213506e RW |
4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4572 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 4573 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
5213506e | 4574 | $as_echo_n "(cached) " >&6 |
679c0f9a TT |
4575 | else |
4576 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4577 | # We make a subdir and do the tests there. Otherwise we can end up | |
4578 | # making bogus files that we don't know about and never remove. For | |
4579 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
4580 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4581 | # in D". | |
c20fdb91 | 4582 | rm -rf conftest.dir |
679c0f9a TT |
4583 | mkdir conftest.dir |
4584 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4585 | # using a relative directory. | |
4586 | cp "$am_depcomp" conftest.dir | |
4587 | cd conftest.dir | |
4588 | # We will build objects and dependencies in a subdirectory because | |
4589 | # it helps to detect inapplicable dependency modes. For instance | |
4590 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4591 | # side effect of compilation, but ICC will put the dependencies in | |
4592 | # the current directory while Tru64 will put them in the object | |
4593 | # directory. | |
4594 | mkdir sub | |
4595 | ||
4596 | am_cv_CC_dependencies_compiler_type=none | |
4597 | if test "$am_compiler_list" = ""; then | |
4598 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4599 | fi | |
5213506e RW |
4600 | am__universal=false |
4601 | case " $depcc " in #( | |
4602 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4603 | esac | |
4604 | ||
679c0f9a TT |
4605 | for depmode in $am_compiler_list; do |
4606 | # Setup a source with many dependencies, because some compilers | |
4607 | # like to wrap large dependency lists on column 80 (with \), and | |
4608 | # we should not choose a depcomp mode which is confused by this. | |
4609 | # | |
4610 | # We need to recreate these files for each test, as the compiler may | |
4611 | # overwrite some of them when testing with obscure command lines. | |
4612 | # This happens at least with the AIX C compiler. | |
4613 | : > sub/conftest.c | |
4614 | for i in 1 2 3 4 5 6; do | |
4615 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
4616 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4617 | # Solaris 10 /bin/sh. | |
4618 | echo '/* dummy */' > sub/conftst$i.h | |
679c0f9a TT |
4619 | done |
4620 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4621 | ||
22e05272 | 4622 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
5213506e | 4623 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
4624 | # handle '-M -o', and we need to detect this. Also, some Intel |
4625 | # versions had trouble with output in subdirs. | |
5213506e RW |
4626 | am__obj=sub/conftest.${OBJEXT-o} |
4627 | am__minus_obj="-o $am__obj" | |
679c0f9a | 4628 | case $depmode in |
5213506e RW |
4629 | gcc) |
4630 | # This depmode causes a compiler race in universal mode. | |
4631 | test "$am__universal" = false || continue | |
4632 | ;; | |
679c0f9a | 4633 | nosideeffect) |
22e05272 JM |
4634 | # After this tag, mechanisms are not by side-effect, so they'll |
4635 | # only be used when explicitly requested. | |
679c0f9a TT |
4636 | if test "x$enable_dependency_tracking" = xyes; then |
4637 | continue | |
4638 | else | |
4639 | break | |
4640 | fi | |
4641 | ;; | |
c20fdb91 | 4642 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 4643 | # This compiler won't grok '-c -o', but also, the minuso test has |
5213506e RW |
4644 | # not run yet. These depmodes are late enough in the game, and |
4645 | # so weak that their functioning should not be impacted. | |
4646 | am__obj=conftest.${OBJEXT-o} | |
4647 | am__minus_obj= | |
4648 | ;; | |
679c0f9a TT |
4649 | none) break ;; |
4650 | esac | |
679c0f9a | 4651 | if depmode=$depmode \ |
5213506e | 4652 | source=sub/conftest.c object=$am__obj \ |
679c0f9a | 4653 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5213506e | 4654 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
679c0f9a | 4655 | >/dev/null 2>conftest.err && |
5213506e | 4656 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
679c0f9a | 4657 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5213506e | 4658 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
679c0f9a TT |
4659 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4660 | # icc doesn't choke on unknown options, it will just issue warnings | |
4661 | # or remarks (even with -Werror). So we grep stderr for any message | |
4662 | # that says an option was ignored or not supported. | |
4663 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4664 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4665 | # The diagnosis changed in icc 8.0: | |
4666 | # icc: Command line remark: option '-MP' not supported | |
4667 | if (grep 'ignoring option' conftest.err || | |
4668 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4669 | am_cv_CC_dependencies_compiler_type=$depmode | |
4670 | break | |
4671 | fi | |
4672 | fi | |
4673 | done | |
4674 | ||
4675 | cd .. | |
4676 | rm -rf conftest.dir | |
4677 | else | |
4678 | am_cv_CC_dependencies_compiler_type=none | |
4679 | fi | |
4680 | ||
4681 | fi | |
5213506e RW |
4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4683 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
679c0f9a TT |
4684 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4685 | ||
5213506e | 4686 | if |
679c0f9a TT |
4687 | test "x$enable_dependency_tracking" != xno \ |
4688 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4689 | am__fastdepCC_TRUE= | |
4690 | am__fastdepCC_FALSE='#' | |
4691 | else | |
4692 | am__fastdepCC_TRUE='#' | |
4693 | am__fastdepCC_FALSE= | |
4694 | fi | |
4695 | ||
6de9cd9a | 4696 | |
6de9cd9a | 4697 | |
21be0a5a JB |
4698 | ac_ext=c |
4699 | ac_cpp='$CPP $CPPFLAGS' | |
4700 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4701 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4702 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4704 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4705 | # On Suns, sometimes $CPP names a directory. | |
4706 | if test -n "$CPP" && test -d "$CPP"; then | |
4707 | CPP= | |
6de9cd9a | 4708 | fi |
21be0a5a | 4709 | if test -z "$CPP"; then |
22e05272 | 4710 | if ${ac_cv_prog_CPP+:} false; then : |
21be0a5a JB |
4711 | $as_echo_n "(cached) " >&6 |
4712 | else | |
4713 | # Double quotes because CPP needs to be expanded | |
4714 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4715 | do | |
4716 | ac_preproc_ok=false | |
4717 | for ac_c_preproc_warn_flag in '' yes | |
4718 | do | |
4719 | # Use a header file that comes with gcc, so configuring glibc | |
4720 | # with a fresh cross-compiler works. | |
4721 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4722 | # <limits.h> exists even on freestanding compilers. | |
4723 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4724 | # not just through cpp. "Syntax error" is here to catch this case. | |
4725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c0e7e2bf | 4726 | /* end confdefs.h. */ |
21be0a5a JB |
4727 | #ifdef __STDC__ |
4728 | # include <limits.h> | |
4729 | #else | |
4730 | # include <assert.h> | |
4731 | #endif | |
4732 | Syntax error | |
c0e7e2bf | 4733 | _ACEOF |
21be0a5a JB |
4734 | if ac_fn_c_try_cpp "$LINENO"; then : |
4735 | ||
49ea7a0e | 4736 | else |
21be0a5a JB |
4737 | # Broken: fails on valid input. |
4738 | continue | |
49ea7a0e | 4739 | fi |
22e05272 | 4740 | rm -f conftest.err conftest.i conftest.$ac_ext |
49ea7a0e | 4741 | |
21be0a5a JB |
4742 | # OK, works on sane cases. Now check whether nonexistent headers |
4743 | # can be detected and how. | |
4744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4745 | /* end confdefs.h. */ | |
4746 | #include <ac_nonexistent.h> | |
49ea7a0e | 4747 | _ACEOF |
21be0a5a JB |
4748 | if ac_fn_c_try_cpp "$LINENO"; then : |
4749 | # Broken: success on invalid input. | |
4750 | continue | |
c0e7e2bf | 4751 | else |
21be0a5a JB |
4752 | # Passes both tests. |
4753 | ac_preproc_ok=: | |
4754 | break | |
49ea7a0e | 4755 | fi |
22e05272 | 4756 | rm -f conftest.err conftest.i conftest.$ac_ext |
21be0a5a JB |
4757 | |
4758 | done | |
4759 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 4760 | rm -f conftest.i conftest.err conftest.$ac_ext |
21be0a5a JB |
4761 | if $ac_preproc_ok; then : |
4762 | break | |
c0e7e2bf JB |
4763 | fi |
4764 | ||
21be0a5a JB |
4765 | done |
4766 | ac_cv_prog_CPP=$CPP | |
4767 | ||
4768 | fi | |
4769 | CPP=$ac_cv_prog_CPP | |
49ea7a0e | 4770 | else |
21be0a5a | 4771 | ac_cv_prog_CPP=$CPP |
49ea7a0e | 4772 | fi |
21be0a5a JB |
4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4774 | $as_echo "$CPP" >&6; } | |
4775 | ac_preproc_ok=false | |
4776 | for ac_c_preproc_warn_flag in '' yes | |
4777 | do | |
4778 | # Use a header file that comes with gcc, so configuring glibc | |
4779 | # with a fresh cross-compiler works. | |
4780 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4781 | # <limits.h> exists even on freestanding compilers. | |
4782 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4783 | # not just through cpp. "Syntax error" is here to catch this case. | |
4784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4785 | /* end confdefs.h. */ | |
4786 | #ifdef __STDC__ | |
4787 | # include <limits.h> | |
4788 | #else | |
4789 | # include <assert.h> | |
4790 | #endif | |
4791 | Syntax error | |
4792 | _ACEOF | |
4793 | if ac_fn_c_try_cpp "$LINENO"; then : | |
49ea7a0e | 4794 | |
49ea7a0e | 4795 | else |
21be0a5a JB |
4796 | # Broken: fails on valid input. |
4797 | continue | |
49ea7a0e | 4798 | fi |
22e05272 | 4799 | rm -f conftest.err conftest.i conftest.$ac_ext |
49ea7a0e | 4800 | |
21be0a5a JB |
4801 | # OK, works on sane cases. Now check whether nonexistent headers |
4802 | # can be detected and how. | |
4803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c049309d | 4804 | /* end confdefs.h. */ |
21be0a5a | 4805 | #include <ac_nonexistent.h> |
c049309d | 4806 | _ACEOF |
21be0a5a JB |
4807 | if ac_fn_c_try_cpp "$LINENO"; then : |
4808 | # Broken: success on invalid input. | |
4809 | continue | |
c049309d | 4810 | else |
21be0a5a JB |
4811 | # Passes both tests. |
4812 | ac_preproc_ok=: | |
4813 | break | |
c049309d | 4814 | fi |
22e05272 | 4815 | rm -f conftest.err conftest.i conftest.$ac_ext |
21be0a5a JB |
4816 | |
4817 | done | |
4818 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 4819 | rm -f conftest.i conftest.err conftest.$ac_ext |
21be0a5a JB |
4820 | if $ac_preproc_ok; then : |
4821 | ||
c049309d | 4822 | else |
21be0a5a JB |
4823 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4824 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4825 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4826 | See \`config.log' for more details" "$LINENO" 5; } | |
c049309d | 4827 | fi |
c049309d | 4828 | |
21be0a5a JB |
4829 | ac_ext=c |
4830 | ac_cpp='$CPP $CPPFLAGS' | |
4831 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4832 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4833 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c049309d | 4834 | |
21be0a5a JB |
4835 | |
4836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4837 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 4838 | if ${ac_cv_path_GREP+:} false; then : |
5213506e | 4839 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4840 | else |
21be0a5a JB |
4841 | if test -z "$GREP"; then |
4842 | ac_path_GREP_found=false | |
4843 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4845 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
96b8a615 AJ |
4846 | do |
4847 | IFS=$as_save_IFS | |
4848 | test -z "$as_dir" && as_dir=. | |
21be0a5a | 4849 | for ac_prog in grep ggrep; do |
5213506e | 4850 | for ac_exec_ext in '' $ac_executable_extensions; do |
21be0a5a | 4851 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 4852 | as_fn_executable_p "$ac_path_GREP" || continue |
21be0a5a JB |
4853 | # Check for GNU ac_path_GREP and select it if it is found. |
4854 | # Check for GNU $ac_path_GREP | |
4855 | case `"$ac_path_GREP" --version 2>&1` in | |
4856 | *GNU*) | |
4857 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4858 | *) | |
4859 | ac_count=0 | |
4860 | $as_echo_n 0123456789 >"conftest.in" | |
4861 | while : | |
4862 | do | |
4863 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4864 | mv "conftest.tmp" "conftest.in" | |
4865 | cp "conftest.in" "conftest.nl" | |
4866 | $as_echo 'GREP' >> "conftest.nl" | |
4867 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4868 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4869 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4870 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4871 | # Best one so far, save it but keep looking for a better one | |
4872 | ac_cv_path_GREP="$ac_path_GREP" | |
4873 | ac_path_GREP_max=$ac_count | |
4874 | fi | |
4875 | # 10*(2^10) chars as input seems more than enough | |
4876 | test $ac_count -gt 10 && break | |
5213506e | 4877 | done |
21be0a5a JB |
4878 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4879 | esac | |
6de9cd9a | 4880 | |
21be0a5a JB |
4881 | $ac_path_GREP_found && break 3 |
4882 | done | |
4883 | done | |
4884 | done | |
4885 | IFS=$as_save_IFS | |
4886 | if test -z "$ac_cv_path_GREP"; then | |
22e05272 | 4887 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
21be0a5a | 4888 | fi |
6de9cd9a | 4889 | else |
21be0a5a | 4890 | ac_cv_path_GREP=$GREP |
6de9cd9a DN |
4891 | fi |
4892 | ||
6de9cd9a | 4893 | fi |
21be0a5a JB |
4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4895 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4896 | GREP="$ac_cv_path_GREP" | |
6de9cd9a | 4897 | |
21be0a5a JB |
4898 | |
4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4900 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 4901 | if ${ac_cv_path_EGREP+:} false; then : |
5213506e | 4902 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4903 | else |
21be0a5a JB |
4904 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4905 | then ac_cv_path_EGREP="$GREP -E" | |
4906 | else | |
4907 | if test -z "$EGREP"; then | |
4908 | ac_path_EGREP_found=false | |
4909 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4911 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6de9cd9a DN |
4912 | do |
4913 | IFS=$as_save_IFS | |
4914 | test -z "$as_dir" && as_dir=. | |
21be0a5a | 4915 | for ac_prog in egrep; do |
5213506e | 4916 | for ac_exec_ext in '' $ac_executable_extensions; do |
21be0a5a | 4917 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 4918 | as_fn_executable_p "$ac_path_EGREP" || continue |
21be0a5a JB |
4919 | # Check for GNU ac_path_EGREP and select it if it is found. |
4920 | # Check for GNU $ac_path_EGREP | |
4921 | case `"$ac_path_EGREP" --version 2>&1` in | |
4922 | *GNU*) | |
4923 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4924 | *) | |
4925 | ac_count=0 | |
4926 | $as_echo_n 0123456789 >"conftest.in" | |
4927 | while : | |
4928 | do | |
4929 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4930 | mv "conftest.tmp" "conftest.in" | |
4931 | cp "conftest.in" "conftest.nl" | |
4932 | $as_echo 'EGREP' >> "conftest.nl" | |
4933 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4934 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4935 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4936 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4937 | # Best one so far, save it but keep looking for a better one | |
4938 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4939 | ac_path_EGREP_max=$ac_count | |
4940 | fi | |
4941 | # 10*(2^10) chars as input seems more than enough | |
4942 | test $ac_count -gt 10 && break | |
5213506e | 4943 | done |
21be0a5a JB |
4944 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4945 | esac | |
6de9cd9a | 4946 | |
21be0a5a JB |
4947 | $ac_path_EGREP_found && break 3 |
4948 | done | |
4949 | done | |
4950 | done | |
4951 | IFS=$as_save_IFS | |
4952 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 4953 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
21be0a5a | 4954 | fi |
6de9cd9a | 4955 | else |
21be0a5a | 4956 | ac_cv_path_EGREP=$EGREP |
6de9cd9a DN |
4957 | fi |
4958 | ||
21be0a5a | 4959 | fi |
6de9cd9a | 4960 | fi |
21be0a5a JB |
4961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4962 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4963 | EGREP="$ac_cv_path_EGREP" | |
4964 | ||
4965 | ||
4966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4967 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 4968 | if ${ac_cv_header_stdc+:} false; then : |
5213506e | 4969 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4970 | else |
21be0a5a JB |
4971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4972 | /* end confdefs.h. */ | |
4973 | #include <stdlib.h> | |
4974 | #include <stdarg.h> | |
4975 | #include <string.h> | |
4976 | #include <float.h> | |
4977 | ||
4978 | int | |
4979 | main () | |
4980 | { | |
4981 | ||
4982 | ; | |
4983 | return 0; | |
4984 | } | |
4985 | _ACEOF | |
4986 | if ac_fn_c_try_compile "$LINENO"; then : | |
4987 | ac_cv_header_stdc=yes | |
6de9cd9a | 4988 | else |
21be0a5a JB |
4989 | ac_cv_header_stdc=no |
4990 | fi | |
4991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6de9cd9a | 4992 | |
21be0a5a JB |
4993 | if test $ac_cv_header_stdc = yes; then |
4994 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4996 | /* end confdefs.h. */ | |
4997 | #include <string.h> | |
4998 | ||
4999 | _ACEOF | |
5000 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5001 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5002 | ||
5003 | else | |
5004 | ac_cv_header_stdc=no | |
6de9cd9a | 5005 | fi |
21be0a5a JB |
5006 | rm -f conftest* |
5007 | ||
6de9cd9a | 5008 | fi |
21be0a5a JB |
5009 | |
5010 | if test $ac_cv_header_stdc = yes; then | |
5011 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5013 | /* end confdefs.h. */ | |
5014 | #include <stdlib.h> | |
5015 | ||
5016 | _ACEOF | |
5017 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5018 | $EGREP "free" >/dev/null 2>&1; then : | |
5019 | ||
6de9cd9a | 5020 | else |
21be0a5a | 5021 | ac_cv_header_stdc=no |
6de9cd9a | 5022 | fi |
21be0a5a | 5023 | rm -f conftest* |
6de9cd9a | 5024 | |
6de9cd9a DN |
5025 | fi |
5026 | ||
21be0a5a JB |
5027 | if test $ac_cv_header_stdc = yes; then |
5028 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5029 | if test "$cross_compiling" = yes; then : | |
5030 | : | |
5031 | else | |
5032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5033 | /* end confdefs.h. */ | |
5034 | #include <ctype.h> | |
5035 | #include <stdlib.h> | |
5036 | #if ((' ' & 0x0FF) == 0x020) | |
5037 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5038 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5039 | #else | |
5040 | # define ISLOWER(c) \ | |
5041 | (('a' <= (c) && (c) <= 'i') \ | |
5042 | || ('j' <= (c) && (c) <= 'r') \ | |
5043 | || ('s' <= (c) && (c) <= 'z')) | |
5044 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5045 | #endif | |
5046 | ||
5047 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5048 | int | |
5049 | main () | |
5050 | { | |
5051 | int i; | |
5052 | for (i = 0; i < 256; i++) | |
5053 | if (XOR (islower (i), ISLOWER (i)) | |
5054 | || toupper (i) != TOUPPER (i)) | |
5055 | return 2; | |
5056 | return 0; | |
5057 | } | |
5058 | _ACEOF | |
5059 | if ac_fn_c_try_run "$LINENO"; then : | |
5060 | ||
5061 | else | |
5062 | ac_cv_header_stdc=no | |
5063 | fi | |
5064 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5065 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5066 | fi | |
5067 | ||
5068 | fi | |
5069 | fi | |
5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5071 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5072 | if test $ac_cv_header_stdc = yes; then | |
5073 | ||
5074 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5075 | ||
5076 | fi | |
5077 | ||
5078 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5079 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5080 | inttypes.h stdint.h unistd.h | |
5081 | do : | |
5082 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5083 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5084 | " | |
22e05272 | 5085 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
21be0a5a JB |
5086 | cat >>confdefs.h <<_ACEOF |
5087 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5088 | _ACEOF | |
5089 | ||
5090 | fi | |
5091 | ||
5092 | done | |
5093 | ||
5094 | ||
5095 | ||
5096 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
22e05272 | 5097 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
21be0a5a JB |
5098 | MINIX=yes |
5099 | else | |
5100 | MINIX= | |
5101 | fi | |
5102 | ||
5103 | ||
5104 | if test "$MINIX" = yes; then | |
5105 | ||
5106 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5107 | ||
5108 | ||
5109 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5110 | ||
5111 | ||
5112 | $as_echo "#define _MINIX 1" >>confdefs.h | |
5113 | ||
5114 | fi | |
5115 | ||
5116 | ||
5117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5118 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
22e05272 | 5119 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
21be0a5a JB |
5120 | $as_echo_n "(cached) " >&6 |
5121 | else | |
5122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5123 | /* end confdefs.h. */ | |
5124 | ||
22e05272 JM |
5125 | # define __EXTENSIONS__ 1 |
5126 | $ac_includes_default | |
21be0a5a JB |
5127 | int |
5128 | main () | |
5129 | { | |
5130 | ||
5131 | ; | |
5132 | return 0; | |
5133 | } | |
5134 | _ACEOF | |
5135 | if ac_fn_c_try_compile "$LINENO"; then : | |
5136 | ac_cv_safe_to_define___extensions__=yes | |
5137 | else | |
5138 | ac_cv_safe_to_define___extensions__=no | |
5139 | fi | |
5140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5141 | fi | |
5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5143 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5144 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5145 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5146 | ||
5147 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5148 | ||
5149 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5150 | ||
5151 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5152 | ||
5153 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5154 | ||
5155 | ||
5156 | ||
e8e66971 MR |
5157 | |
5158 | # Check whether --with-toolexeclibdir was given. | |
5159 | if test "${with_toolexeclibdir+set}" = set; then : | |
5160 | withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in | |
5161 | /) | |
5162 | ;; | |
5163 | */) | |
5164 | with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` | |
5165 | ;; | |
5166 | esac | |
5167 | else | |
5168 | with_toolexeclibdir=no | |
5169 | fi | |
5170 | ||
5171 | ||
5172 | ||
21be0a5a JB |
5173 | # Calculate toolexeclibdir |
5174 | # Also toolexecdir, though it's only used in toolexeclibdir | |
5175 | case ${version_specific_libs} in | |
5176 | yes) | |
5177 | # Need the gcc compiler version to know where to install libraries | |
5178 | # and header files if --enable-version-specific-runtime-libs option | |
5179 | # is selected. | |
5180 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
5181 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
5182 | ;; | |
5183 | no) | |
5184 | if test -n "$with_cross_host" && | |
5185 | test x"$with_cross_host" != x"no"; then | |
5186 | # Install a library built with a cross compiler in tooldir, not libdir. | |
5187 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
e8e66971 MR |
5188 | case ${with_toolexeclibdir} in |
5189 | no) | |
5190 | toolexeclibdir='$(toolexecdir)/lib' | |
5191 | ;; | |
5192 | *) | |
5193 | toolexeclibdir=${with_toolexeclibdir} | |
5194 | ;; | |
5195 | esac | |
21be0a5a JB |
5196 | else |
5197 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
5198 | toolexeclibdir='$(libdir)' | |
5199 | fi | |
5200 | multi_os_directory=`$CC -print-multi-os-directory` | |
5201 | case $multi_os_directory in | |
5202 | .) ;; # Avoid trailing /. | |
5203 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
5204 | esac | |
5205 | ;; | |
5206 | esac | |
5207 | ||
5208 | ||
5209 | ||
5210 | # Create a spec file, so that compile/link tests don't fail | |
5211 | test -f libgfortran.spec || touch libgfortran.spec | |
5212 | ||
60858d8a TB |
5213 | ac_ext=c |
5214 | ac_cpp='$CPP $CPPFLAGS' | |
5215 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5216 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5217 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5218 | ||
21be0a5a JB |
5219 | # Check the compiler. |
5220 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
5221 | # We must force CC to /not/ be precious variables; otherwise | |
5222 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
5223 | # As a side effect, we have to subst CFLAGS ourselves. | |
5224 | ||
5225 | ||
5226 | ||
5227 | ac_ext=c | |
5228 | ac_cpp='$CPP $CPPFLAGS' | |
5229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5232 | if test -n "$ac_tool_prefix"; then | |
5233 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
5234 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5236 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5237 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 5238 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5239 | else |
21be0a5a JB |
5240 | if test -n "$CC"; then |
5241 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6de9cd9a | 5242 | else |
96b8a615 AJ |
5243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5244 | for as_dir in $PATH | |
5245 | do | |
5246 | IFS=$as_save_IFS | |
5247 | test -z "$as_dir" && as_dir=. | |
5213506e | 5248 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5249 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 5250 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 5251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
5252 | break 2 |
5253 | fi | |
5254 | done | |
5213506e RW |
5255 | done |
5256 | IFS=$as_save_IFS | |
6de9cd9a | 5257 | |
6de9cd9a | 5258 | fi |
96b8a615 | 5259 | fi |
21be0a5a JB |
5260 | CC=$ac_cv_prog_CC |
5261 | if test -n "$CC"; then | |
5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5263 | $as_echo "$CC" >&6; } | |
96b8a615 | 5264 | else |
5213506e RW |
5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5266 | $as_echo "no" >&6; } | |
96b8a615 | 5267 | fi |
6de9cd9a | 5268 | |
5213506e | 5269 | |
6de9cd9a | 5270 | fi |
21be0a5a JB |
5271 | if test -z "$ac_cv_prog_CC"; then |
5272 | ac_ct_CC=$CC | |
5273 | # Extract the first word of "gcc", so it can be a program name with args. | |
5274 | set dummy gcc; ac_word=$2 | |
5213506e RW |
5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5276 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5277 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 5278 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5279 | else |
21be0a5a JB |
5280 | if test -n "$ac_ct_CC"; then |
5281 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6de9cd9a | 5282 | else |
96b8a615 AJ |
5283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5284 | for as_dir in $PATH | |
5285 | do | |
5286 | IFS=$as_save_IFS | |
5287 | test -z "$as_dir" && as_dir=. | |
5213506e | 5288 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5289 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 5290 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 5291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
5292 | break 2 |
5293 | fi | |
5294 | done | |
5213506e RW |
5295 | done |
5296 | IFS=$as_save_IFS | |
6de9cd9a | 5297 | |
6de9cd9a | 5298 | fi |
6de9cd9a | 5299 | fi |
21be0a5a JB |
5300 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
5301 | if test -n "$ac_ct_CC"; then | |
5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5303 | $as_echo "$ac_ct_CC" >&6; } | |
6de9cd9a | 5304 | else |
5213506e RW |
5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5306 | $as_echo "no" >&6; } | |
6de9cd9a DN |
5307 | fi |
5308 | ||
21be0a5a JB |
5309 | if test "x$ac_ct_CC" = x; then |
5310 | CC="" | |
5213506e RW |
5311 | else |
5312 | case $cross_compiling:$ac_tool_warned in | |
5313 | yes:) | |
5314 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5315 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5316 | ac_tool_warned=yes ;; | |
5317 | esac | |
21be0a5a | 5318 | CC=$ac_ct_CC |
5213506e | 5319 | fi |
96b8a615 | 5320 | else |
21be0a5a | 5321 | CC="$ac_cv_prog_CC" |
6de9cd9a | 5322 | fi |
96b8a615 | 5323 | |
21be0a5a JB |
5324 | if test -z "$CC"; then |
5325 | if test -n "$ac_tool_prefix"; then | |
5326 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
5327 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5329 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5330 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 5331 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5332 | else |
21be0a5a JB |
5333 | if test -n "$CC"; then |
5334 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6de9cd9a | 5335 | else |
21be0a5a JB |
5336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5337 | for as_dir in $PATH | |
5338 | do | |
5339 | IFS=$as_save_IFS | |
5340 | test -z "$as_dir" && as_dir=. | |
5341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5342 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5343 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5345 | break 2 | |
5346 | fi | |
5347 | done | |
5348 | done | |
5349 | IFS=$as_save_IFS | |
5350 | ||
5351 | fi | |
5352 | fi | |
5353 | CC=$ac_cv_prog_CC | |
5354 | if test -n "$CC"; then | |
5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5356 | $as_echo "$CC" >&6; } | |
5357 | else | |
5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5359 | $as_echo "no" >&6; } | |
5360 | fi | |
5361 | ||
5362 | ||
5363 | fi | |
5364 | fi | |
5365 | if test -z "$CC"; then | |
5366 | # Extract the first word of "cc", so it can be a program name with args. | |
5367 | set dummy cc; ac_word=$2 | |
5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5369 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5370 | if ${ac_cv_prog_CC+:} false; then : |
21be0a5a JB |
5371 | $as_echo_n "(cached) " >&6 |
5372 | else | |
5373 | if test -n "$CC"; then | |
5374 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5375 | else | |
5376 | ac_prog_rejected=no | |
5377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5378 | for as_dir in $PATH | |
5379 | do | |
5380 | IFS=$as_save_IFS | |
5381 | test -z "$as_dir" && as_dir=. | |
5382 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5383 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5384 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
5385 | ac_prog_rejected=yes | |
5386 | continue | |
5387 | fi | |
5388 | ac_cv_prog_CC="cc" | |
5389 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5390 | break 2 | |
5391 | fi | |
5392 | done | |
5393 | done | |
5394 | IFS=$as_save_IFS | |
5395 | ||
5396 | if test $ac_prog_rejected = yes; then | |
5397 | # We found a bogon in the path, so make sure we never use it. | |
5398 | set dummy $ac_cv_prog_CC | |
5399 | shift | |
5400 | if test $# != 0; then | |
5401 | # We chose a different compiler from the bogus one. | |
5402 | # However, it has the same basename, so the bogon will be chosen | |
5403 | # first if we set CC to just the basename; use the full file name. | |
5404 | shift | |
5405 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
5406 | fi | |
5407 | fi | |
5408 | fi | |
5409 | fi | |
5410 | CC=$ac_cv_prog_CC | |
5411 | if test -n "$CC"; then | |
5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5413 | $as_echo "$CC" >&6; } | |
5414 | else | |
5415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5416 | $as_echo "no" >&6; } | |
5417 | fi | |
5418 | ||
5419 | ||
5420 | fi | |
5421 | if test -z "$CC"; then | |
5422 | if test -n "$ac_tool_prefix"; then | |
5423 | for ac_prog in cl.exe | |
5424 | do | |
5425 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5426 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5428 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5429 | if ${ac_cv_prog_CC+:} false; then : |
21be0a5a JB |
5430 | $as_echo_n "(cached) " >&6 |
5431 | else | |
5432 | if test -n "$CC"; then | |
5433 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5434 | else | |
5435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5436 | for as_dir in $PATH | |
5437 | do | |
5438 | IFS=$as_save_IFS | |
5439 | test -z "$as_dir" && as_dir=. | |
5440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5441 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5442 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5444 | break 2 | |
5445 | fi | |
5446 | done | |
5447 | done | |
5448 | IFS=$as_save_IFS | |
5449 | ||
5450 | fi | |
5451 | fi | |
5452 | CC=$ac_cv_prog_CC | |
5453 | if test -n "$CC"; then | |
5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5455 | $as_echo "$CC" >&6; } | |
5456 | else | |
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5458 | $as_echo "no" >&6; } | |
5459 | fi | |
5460 | ||
5461 | ||
5462 | test -n "$CC" && break | |
5463 | done | |
5464 | fi | |
5465 | if test -z "$CC"; then | |
5466 | ac_ct_CC=$CC | |
5467 | for ac_prog in cl.exe | |
5468 | do | |
5469 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5470 | set dummy $ac_prog; ac_word=$2 | |
5471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5472 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5473 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
21be0a5a JB |
5474 | $as_echo_n "(cached) " >&6 |
5475 | else | |
5476 | if test -n "$ac_ct_CC"; then | |
5477 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5478 | else | |
5479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5480 | for as_dir in $PATH | |
5481 | do | |
5482 | IFS=$as_save_IFS | |
5483 | test -z "$as_dir" && as_dir=. | |
5484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5485 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5486 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5488 | break 2 | |
5489 | fi | |
5490 | done | |
5491 | done | |
5492 | IFS=$as_save_IFS | |
5493 | ||
5494 | fi | |
5495 | fi | |
5496 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5497 | if test -n "$ac_ct_CC"; then | |
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5499 | $as_echo "$ac_ct_CC" >&6; } | |
5500 | else | |
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5502 | $as_echo "no" >&6; } | |
5503 | fi | |
5504 | ||
5505 | ||
5506 | test -n "$ac_ct_CC" && break | |
5507 | done | |
5508 | ||
5509 | if test "x$ac_ct_CC" = x; then | |
5510 | CC="" | |
5511 | else | |
5512 | case $cross_compiling:$ac_tool_warned in | |
5513 | yes:) | |
5514 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5515 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5516 | ac_tool_warned=yes ;; | |
5517 | esac | |
5518 | CC=$ac_ct_CC | |
5519 | fi | |
5520 | fi | |
5521 | ||
5522 | fi | |
5523 | ||
5524 | ||
5525 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5526 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
5527 | as_fn_error $? "no acceptable C compiler found in \$PATH |
5528 | See \`config.log' for more details" "$LINENO" 5; } | |
21be0a5a JB |
5529 | |
5530 | # Provide some information about the compiler. | |
5531 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5532 | set X $ac_compile | |
5533 | ac_compiler=$2 | |
5534 | for ac_option in --version -v -V -qversion; do | |
5535 | { { ac_try="$ac_compiler $ac_option >&5" | |
5536 | case "(($ac_try" in | |
5537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5538 | *) ac_try_echo=$ac_try;; | |
5539 | esac | |
5540 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5541 | $as_echo "$ac_try_echo"; } >&5 | |
5542 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5543 | ac_status=$? | |
5544 | if test -s conftest.err; then | |
5545 | sed '10a\ | |
5546 | ... rest of stderr output deleted ... | |
5547 | 10q' conftest.err >conftest.er1 | |
5548 | cat conftest.er1 >&5 | |
21be0a5a | 5549 | fi |
22e05272 | 5550 | rm -f conftest.er1 conftest.err |
21be0a5a JB |
5551 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5552 | test $ac_status = 0; } | |
5553 | done | |
5554 | ||
5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
5556 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 5557 | if ${ac_cv_c_compiler_gnu+:} false; then : |
21be0a5a JB |
5558 | $as_echo_n "(cached) " >&6 |
5559 | else | |
5560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5561 | /* end confdefs.h. */ | |
5562 | ||
5563 | int | |
5564 | main () | |
5565 | { | |
5566 | #ifndef __GNUC__ | |
5567 | choke me | |
5568 | #endif | |
5569 | ||
5570 | ; | |
5571 | return 0; | |
5572 | } | |
5573 | _ACEOF | |
5574 | if ac_fn_c_try_compile "$LINENO"; then : | |
5575 | ac_compiler_gnu=yes | |
5576 | else | |
5577 | ac_compiler_gnu=no | |
5578 | fi | |
5579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5580 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
5581 | ||
5582 | fi | |
5583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5584 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5585 | if test $ac_compiler_gnu = yes; then | |
5586 | GCC=yes | |
5587 | else | |
5588 | GCC= | |
5589 | fi | |
5590 | ac_test_CFLAGS=${CFLAGS+set} | |
5591 | ac_save_CFLAGS=$CFLAGS | |
5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5593 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 5594 | if ${ac_cv_prog_cc_g+:} false; then : |
21be0a5a JB |
5595 | $as_echo_n "(cached) " >&6 |
5596 | else | |
5597 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5598 | ac_c_werror_flag=yes | |
5599 | ac_cv_prog_cc_g=no | |
5600 | CFLAGS="-g" | |
5601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5602 | /* end confdefs.h. */ | |
5603 | ||
5604 | int | |
5605 | main () | |
5606 | { | |
5607 | ||
5608 | ; | |
5609 | return 0; | |
5610 | } | |
5611 | _ACEOF | |
5612 | if ac_fn_c_try_compile "$LINENO"; then : | |
5613 | ac_cv_prog_cc_g=yes | |
5614 | else | |
5615 | CFLAGS="" | |
5616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5617 | /* end confdefs.h. */ | |
5618 | ||
5619 | int | |
5620 | main () | |
5621 | { | |
5622 | ||
5623 | ; | |
5624 | return 0; | |
5625 | } | |
5626 | _ACEOF | |
5627 | if ac_fn_c_try_compile "$LINENO"; then : | |
5628 | ||
5629 | else | |
5630 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5631 | CFLAGS="-g" | |
5632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5633 | /* end confdefs.h. */ | |
5634 | ||
5635 | int | |
5636 | main () | |
5637 | { | |
5638 | ||
5639 | ; | |
5640 | return 0; | |
5641 | } | |
5642 | _ACEOF | |
5643 | if ac_fn_c_try_compile "$LINENO"; then : | |
5644 | ac_cv_prog_cc_g=yes | |
5645 | fi | |
5646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5647 | fi | |
5648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5649 | fi | |
5650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5651 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5652 | fi | |
5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5654 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5655 | if test "$ac_test_CFLAGS" = set; then | |
5656 | CFLAGS=$ac_save_CFLAGS | |
5657 | elif test $ac_cv_prog_cc_g = yes; then | |
5658 | if test "$GCC" = yes; then | |
5659 | CFLAGS="-g -O2" | |
5660 | else | |
5661 | CFLAGS="-g" | |
5662 | fi | |
5663 | else | |
5664 | if test "$GCC" = yes; then | |
5665 | CFLAGS="-O2" | |
5666 | else | |
5667 | CFLAGS= | |
5668 | fi | |
5669 | fi | |
5670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5671 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 5672 | if ${ac_cv_prog_cc_c89+:} false; then : |
21be0a5a JB |
5673 | $as_echo_n "(cached) " >&6 |
5674 | else | |
5675 | ac_cv_prog_cc_c89=no | |
5676 | ac_save_CC=$CC | |
5677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5678 | /* end confdefs.h. */ | |
5679 | #include <stdarg.h> | |
5680 | #include <stdio.h> | |
22e05272 | 5681 | struct stat; |
21be0a5a JB |
5682 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
5683 | struct buf { int x; }; | |
5684 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5685 | static char *e (p, i) | |
5686 | char **p; | |
5687 | int i; | |
5688 | { | |
5689 | return p[i]; | |
5690 | } | |
5691 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5692 | { | |
5693 | char *s; | |
5694 | va_list v; | |
5695 | va_start (v,p); | |
5696 | s = g (p, va_arg (v,int)); | |
5697 | va_end (v); | |
5698 | return s; | |
5699 | } | |
5700 | ||
5701 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5702 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5703 | These don't provoke an error unfortunately, instead are silently treated | |
5704 | as 'x'. The following induces an error, until -std is added to get | |
5705 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5706 | array size at least. It's necessary to write '\x00'==0 to get something | |
5707 | that's true only with -std. */ | |
5708 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5709 | ||
5710 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5711 | inside strings and character constants. */ | |
5712 | #define FOO(x) 'x' | |
5713 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5714 | ||
5715 | int test (int i, double x); | |
5716 | struct s1 {int (*f) (int a);}; | |
5717 | struct s2 {int (*f) (double a);}; | |
5718 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5719 | int argc; | |
5720 | char **argv; | |
5721 | int | |
5722 | main () | |
5723 | { | |
5724 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5725 | ; | |
5726 | return 0; | |
5727 | } | |
5728 | _ACEOF | |
5729 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5730 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5731 | do | |
5732 | CC="$ac_save_CC $ac_arg" | |
5733 | if ac_fn_c_try_compile "$LINENO"; then : | |
5734 | ac_cv_prog_cc_c89=$ac_arg | |
5735 | fi | |
5736 | rm -f core conftest.err conftest.$ac_objext | |
5737 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5738 | done | |
5739 | rm -f conftest.$ac_ext | |
5740 | CC=$ac_save_CC | |
5741 | ||
5742 | fi | |
5743 | # AC_CACHE_VAL | |
5744 | case "x$ac_cv_prog_cc_c89" in | |
5745 | x) | |
5746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5747 | $as_echo "none needed" >&6; } ;; | |
5748 | xno) | |
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5750 | $as_echo "unsupported" >&6; } ;; | |
5751 | *) | |
5752 | CC="$CC $ac_cv_prog_cc_c89" | |
5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5754 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5755 | esac | |
5756 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5757 | ||
5758 | fi | |
5759 | ||
5760 | ac_ext=c | |
5761 | ac_cpp='$CPP $CPPFLAGS' | |
5762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5765 | ||
22e05272 JM |
5766 | ac_ext=c |
5767 | ac_cpp='$CPP $CPPFLAGS' | |
5768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5772 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
5773 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5774 | $as_echo_n "(cached) " >&6 | |
5775 | else | |
5776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5777 | /* end confdefs.h. */ | |
5778 | ||
5779 | int | |
5780 | main () | |
5781 | { | |
5782 | ||
5783 | ; | |
5784 | return 0; | |
5785 | } | |
5786 | _ACEOF | |
5787 | # Make sure it works both with $CC and with simple cc. | |
5788 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5789 | # compilers refuse to overwrite an existing .o file with -o, | |
5790 | # though they will create one. | |
5791 | am_cv_prog_cc_c_o=yes | |
5792 | for am_i in 1 2; do | |
5793 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5794 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5795 | ac_status=$? | |
5796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5797 | (exit $ac_status); } \ | |
5798 | && test -f conftest2.$ac_objext; then | |
5799 | : OK | |
5800 | else | |
5801 | am_cv_prog_cc_c_o=no | |
5802 | break | |
5803 | fi | |
5804 | done | |
5805 | rm -f core conftest* | |
5806 | unset am_i | |
5807 | fi | |
5808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5809 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5810 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5811 | # Losing compiler, so override with the script. | |
5812 | # FIXME: It is wrong to rewrite CC. | |
5813 | # But if we don't then we get into trouble of one sort or another. | |
5814 | # A longer-term fix would be to have automake use am__CC in this case, | |
5815 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5816 | CC="$am_aux_dir/compile $CC" | |
5817 | fi | |
5818 | ac_ext=c | |
5819 | ac_cpp='$CPP $CPPFLAGS' | |
5820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5823 | ||
5824 | ||
21be0a5a JB |
5825 | depcc="$CC" am_compiler_list= |
5826 | ||
5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5828 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 5829 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
21be0a5a JB |
5830 | $as_echo_n "(cached) " >&6 |
5831 | else | |
5832 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5833 | # We make a subdir and do the tests there. Otherwise we can end up | |
5834 | # making bogus files that we don't know about and never remove. For | |
5835 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
5836 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5837 | # in D". | |
c20fdb91 | 5838 | rm -rf conftest.dir |
21be0a5a JB |
5839 | mkdir conftest.dir |
5840 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5841 | # using a relative directory. | |
5842 | cp "$am_depcomp" conftest.dir | |
5843 | cd conftest.dir | |
5844 | # We will build objects and dependencies in a subdirectory because | |
5845 | # it helps to detect inapplicable dependency modes. For instance | |
5846 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5847 | # side effect of compilation, but ICC will put the dependencies in | |
5848 | # the current directory while Tru64 will put them in the object | |
5849 | # directory. | |
5850 | mkdir sub | |
5851 | ||
5852 | am_cv_CC_dependencies_compiler_type=none | |
5853 | if test "$am_compiler_list" = ""; then | |
5854 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5855 | fi | |
5856 | am__universal=false | |
5857 | case " $depcc " in #( | |
5858 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5859 | esac | |
5860 | ||
5861 | for depmode in $am_compiler_list; do | |
5862 | # Setup a source with many dependencies, because some compilers | |
5863 | # like to wrap large dependency lists on column 80 (with \), and | |
5864 | # we should not choose a depcomp mode which is confused by this. | |
5865 | # | |
5866 | # We need to recreate these files for each test, as the compiler may | |
5867 | # overwrite some of them when testing with obscure command lines. | |
5868 | # This happens at least with the AIX C compiler. | |
5869 | : > sub/conftest.c | |
5870 | for i in 1 2 3 4 5 6; do | |
5871 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
5872 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5873 | # Solaris 10 /bin/sh. | |
5874 | echo '/* dummy */' > sub/conftst$i.h | |
21be0a5a JB |
5875 | done |
5876 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5877 | ||
22e05272 | 5878 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
21be0a5a | 5879 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
5880 | # handle '-M -o', and we need to detect this. Also, some Intel |
5881 | # versions had trouble with output in subdirs. | |
21be0a5a JB |
5882 | am__obj=sub/conftest.${OBJEXT-o} |
5883 | am__minus_obj="-o $am__obj" | |
5884 | case $depmode in | |
5885 | gcc) | |
5886 | # This depmode causes a compiler race in universal mode. | |
5887 | test "$am__universal" = false || continue | |
5888 | ;; | |
5889 | nosideeffect) | |
22e05272 JM |
5890 | # After this tag, mechanisms are not by side-effect, so they'll |
5891 | # only be used when explicitly requested. | |
21be0a5a JB |
5892 | if test "x$enable_dependency_tracking" = xyes; then |
5893 | continue | |
5894 | else | |
5895 | break | |
5896 | fi | |
5897 | ;; | |
c20fdb91 | 5898 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 5899 | # This compiler won't grok '-c -o', but also, the minuso test has |
21be0a5a JB |
5900 | # not run yet. These depmodes are late enough in the game, and |
5901 | # so weak that their functioning should not be impacted. | |
5902 | am__obj=conftest.${OBJEXT-o} | |
5903 | am__minus_obj= | |
5904 | ;; | |
5905 | none) break ;; | |
5906 | esac | |
5907 | if depmode=$depmode \ | |
5908 | source=sub/conftest.c object=$am__obj \ | |
5909 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5910 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5911 | >/dev/null 2>conftest.err && | |
5912 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5913 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5914 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5915 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5916 | # icc doesn't choke on unknown options, it will just issue warnings | |
5917 | # or remarks (even with -Werror). So we grep stderr for any message | |
5918 | # that says an option was ignored or not supported. | |
5919 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5920 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5921 | # The diagnosis changed in icc 8.0: | |
5922 | # icc: Command line remark: option '-MP' not supported | |
5923 | if (grep 'ignoring option' conftest.err || | |
5924 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5925 | am_cv_CC_dependencies_compiler_type=$depmode | |
5926 | break | |
5927 | fi | |
5928 | fi | |
5929 | done | |
5930 | ||
5931 | cd .. | |
5932 | rm -rf conftest.dir | |
5933 | else | |
5934 | am_cv_CC_dependencies_compiler_type=none | |
5935 | fi | |
5936 | ||
5937 | fi | |
5938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5939 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5940 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5941 | ||
5942 | if | |
5943 | test "x$enable_dependency_tracking" != xno \ | |
5944 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5945 | am__fastdepCC_TRUE= | |
5946 | am__fastdepCC_FALSE='#' | |
5947 | else | |
5948 | am__fastdepCC_TRUE='#' | |
5949 | am__fastdepCC_FALSE= | |
5950 | fi | |
5951 | ||
5952 | ||
5953 | ||
5954 | ||
60858d8a TB |
5955 | |
5956 | ||
60858d8a TB |
5957 | |
5958 | ||
21be0a5a | 5959 | # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
49ad4d2c | 5960 | have_real_17=no |
21be0a5a | 5961 | if test "x$GCC" = "xyes"; then |
83aac698 | 5962 | AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" |
f7b6856f JB |
5963 | ## We like to use C11 and C99 routines when available. This makes |
5964 | ## sure that | |
21be0a5a | 5965 | ## __STDC_VERSION__ is set such that libc includes make them available. |
581d2326 | 5966 | AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla" |
21be0a5a JB |
5967 | ## Compile the following tests with the same system header contents |
5968 | ## that we'll encounter when compiling our own source files. | |
f7b6856f | 5969 | CFLAGS="-std=gnu11 $CFLAGS" |
49ad4d2c TK |
5970 | |
5971 | case x$target in | |
5972 | xpowerpc64le*-linux*) | |
5973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5974 | /* end confdefs.h. */ | |
5975 | #if __SIZEOF_LONG_DOUBLE__ != 16 | |
5976 | #error long double is double | |
5977 | #endif | |
5978 | int | |
5979 | main () | |
5980 | { | |
5981 | (void) 0; | |
5982 | ; | |
5983 | return 0; | |
5984 | } | |
5985 | _ACEOF | |
5986 | if ac_fn_c_try_cpp "$LINENO"; then : | |
a8fea8cd TK |
5987 | AM_FCFLAGS="$AM_FCFLAGS -mabi=ibmlongdouble -mno-gnu-attribute"; |
5988 | AM_CFLAGS="$AM_CFLAGS -mabi=ibmlongdouble -mno-gnu-attribute"; | |
5989 | CFLAGS="$CFLAGS -mabi=ibmlongdouble -mno-gnu-attribute"; | |
49ad4d2c TK |
5990 | have_real_17=yes |
5991 | fi | |
5992 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5993 | ;; | |
5994 | *) | |
5995 | ;; | |
5996 | esac | |
5997 | fi | |
5998 | if test "x$have_real_17" != xno; then | |
5999 | HAVE_REAL_17_TRUE= | |
6000 | HAVE_REAL_17_FALSE='#' | |
6001 | else | |
6002 | HAVE_REAL_17_TRUE='#' | |
6003 | HAVE_REAL_17_FALSE= | |
21be0a5a JB |
6004 | fi |
6005 | ||
6f4977fc | 6006 | |
26724ef9 IT |
6007 | # Add CET specific flags if CET is enabled |
6008 | # Check whether --enable-cet was given. | |
6009 | if test "${enable_cet+set}" = set; then : | |
6010 | enableval=$enable_cet; | |
6011 | case "$enableval" in | |
a0e1df88 | 6012 | yes|no|auto) ;; |
22e05272 | 6013 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; |
26724ef9 IT |
6014 | esac |
6015 | ||
6016 | else | |
8d286dd1 | 6017 | enable_cet=auto |
26724ef9 IT |
6018 | fi |
6019 | ||
6020 | ||
14e335ed IT |
6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 |
6022 | $as_echo_n "checking for CET support... " >&6; } | |
6023 | ||
9051b548 | 6024 | # NB: Avoid nested save_CFLAGS and save_LDFLAGS. |
26724ef9 IT |
6025 | case "$host" in |
6026 | i[34567]86-*-linux* | x86_64-*-linux*) | |
6027 | case "$enable_cet" in | |
a0e1df88 | 6028 | auto) |
14e335ed | 6029 | # Check if target supports multi-byte NOPs |
c0f8c22a | 6030 | # and if compiler and assembler support CET insn. |
9051b548 | 6031 | cet_save_CFLAGS="$CFLAGS" |
4c1a5d8b | 6032 | CFLAGS="$CFLAGS -fcf-protection" |
26724ef9 IT |
6033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6034 | /* end confdefs.h. */ | |
6035 | ||
6036 | int | |
6037 | main () | |
6038 | { | |
14e335ed IT |
6039 | |
6040 | #if !defined(__SSE2__) | |
6041 | #error target does not support multi-byte NOPs | |
6042 | #else | |
26724ef9 | 6043 | asm ("setssbsy"); |
14e335ed IT |
6044 | #endif |
6045 | ||
26724ef9 IT |
6046 | ; |
6047 | return 0; | |
6048 | } | |
6049 | _ACEOF | |
6050 | if ac_fn_c_try_compile "$LINENO"; then : | |
6051 | enable_cet=yes | |
6052 | else | |
6053 | enable_cet=no | |
6054 | fi | |
6055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9051b548 | 6056 | CFLAGS="$cet_save_CFLAGS" |
26724ef9 IT |
6057 | ;; |
6058 | yes) | |
6059 | # Check if assembler supports CET. | |
6060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6061 | /* end confdefs.h. */ | |
6062 | ||
6063 | int | |
6064 | main () | |
6065 | { | |
6066 | asm ("setssbsy"); | |
6067 | ; | |
6068 | return 0; | |
6069 | } | |
6070 | _ACEOF | |
6071 | if ac_fn_c_try_compile "$LINENO"; then : | |
6072 | ||
6073 | else | |
22e05272 | 6074 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 |
26724ef9 IT |
6075 | fi |
6076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6077 | ;; | |
6078 | esac | |
6079 | ;; | |
6080 | *) | |
6081 | enable_cet=no | |
6082 | ;; | |
6083 | esac | |
6084 | if test x$enable_cet = xyes; then | |
7b47ecf2 | 6085 | CET_FLAGS="-fcf-protection -mshstk" |
14e335ed IT |
6086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6087 | $as_echo "yes" >&6; } | |
6088 | else | |
6089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6090 | $as_echo "no" >&6; } | |
26724ef9 IT |
6091 | fi |
6092 | ||
6093 | AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS" | |
6094 | AM_CFLAGS="$AM_CFLAGS $CET_FLAGS" | |
6095 | CFLAGS="$CFLAGS $CET_FLAGS" | |
6096 | ||
6097 | ||
21be0a5a JB |
6098 | |
6099 | ||
6100 | ||
6101 | # Check for symbol versioning (copied from libssp). | |
6102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 | |
6103 | $as_echo_n "checking whether symbol versioning is supported... " >&6; } | |
bf382f5f RO |
6104 | # Check whether --enable-symvers was given. |
6105 | if test "${enable_symvers+set}" = set; then : | |
6106 | enableval=$enable_symvers; gfortran_use_symver=$enableval | |
6107 | else | |
6108 | gfortran_use_symver=yes | |
6109 | fi | |
6110 | ||
19af62db | 6111 | if test "x$gfortran_use_symver" != xno; then |
bf382f5f RO |
6112 | save_LDFLAGS="$LDFLAGS" |
6113 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" | |
6114 | cat > conftest.map <<EOF | |
21be0a5a JB |
6115 | FOO_1.0 { |
6116 | global: *foo*; bar; local: *; | |
6117 | }; | |
6118 | EOF | |
bf382f5f | 6119 | if test x$gcc_no_link = xyes; then |
22e05272 | 6120 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
6121 | fi |
6122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6123 | /* end confdefs.h. */ | |
6124 | int foo; | |
6125 | int | |
6126 | main () | |
6127 | { | |
6128 | ||
6129 | ; | |
6130 | return 0; | |
6131 | } | |
6132 | _ACEOF | |
6133 | if ac_fn_c_try_link "$LINENO"; then : | |
6134 | gfortran_use_symver=gnu | |
6135 | else | |
6136 | gfortran_use_symver=no | |
6137 | fi | |
6138 | rm -f core conftest.err conftest.$ac_objext \ | |
6139 | conftest$ac_exeext conftest.$ac_ext | |
bf382f5f RO |
6140 | if test x$gfortran_use_symver = xno; then |
6141 | case "$target_os" in | |
6142 | solaris2*) | |
6143 | LDFLAGS="$save_LDFLAGS" | |
6144 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map" | |
6145 | # Sun ld cannot handle wildcards and treats all entries as undefined. | |
6146 | cat > conftest.map <<EOF | |
21be0a5a JB |
6147 | FOO_1.0 { |
6148 | global: foo; local: *; | |
6149 | }; | |
6150 | EOF | |
bf382f5f | 6151 | if test x$gcc_no_link = xyes; then |
22e05272 | 6152 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
6153 | fi |
6154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6155 | /* end confdefs.h. */ | |
6156 | int foo; | |
6157 | int | |
6158 | main () | |
6159 | { | |
6160 | ||
6161 | ; | |
6162 | return 0; | |
6163 | } | |
6164 | _ACEOF | |
6165 | if ac_fn_c_try_link "$LINENO"; then : | |
6166 | gfortran_use_symver=sun | |
6167 | else | |
6168 | gfortran_use_symver=no | |
6169 | fi | |
6170 | rm -f core conftest.err conftest.$ac_objext \ | |
6171 | conftest$ac_exeext conftest.$ac_ext | |
bf382f5f RO |
6172 | ;; |
6173 | esac | |
6174 | fi | |
6175 | LDFLAGS="$save_LDFLAGS" | |
21be0a5a | 6176 | fi |
21be0a5a JB |
6177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5 |
6178 | $as_echo "$gfortran_use_symver" >&6; } | |
6179 | if test "x$gfortran_use_symver" != xno; then | |
6180 | LIBGFOR_USE_SYMVER_TRUE= | |
6181 | LIBGFOR_USE_SYMVER_FALSE='#' | |
6182 | else | |
6183 | LIBGFOR_USE_SYMVER_TRUE='#' | |
6184 | LIBGFOR_USE_SYMVER_FALSE= | |
6185 | fi | |
6186 | ||
6187 | if test "x$gfortran_use_symver" = xgnu; then | |
6188 | LIBGFOR_USE_SYMVER_GNU_TRUE= | |
6189 | LIBGFOR_USE_SYMVER_GNU_FALSE='#' | |
6190 | else | |
6191 | LIBGFOR_USE_SYMVER_GNU_TRUE='#' | |
6192 | LIBGFOR_USE_SYMVER_GNU_FALSE= | |
6193 | fi | |
6194 | ||
6195 | if test "x$gfortran_use_symver" = xsun; then | |
6196 | LIBGFOR_USE_SYMVER_SUN_TRUE= | |
6197 | LIBGFOR_USE_SYMVER_SUN_FALSE='#' | |
6198 | else | |
6199 | LIBGFOR_USE_SYMVER_SUN_TRUE='#' | |
6200 | LIBGFOR_USE_SYMVER_SUN_FALSE= | |
6201 | fi | |
6202 | ||
6203 | ||
ee95f928 BS |
6204 | # For GPU offloading, not everything in libfortran can be supported. |
6205 | # Currently, the only target that has this problem is nvptx. The | |
6206 | # following is a (partial) list of features that are unsupportable on | |
6207 | # this particular target: | |
6208 | # * Constructors | |
6209 | # * alloca | |
6210 | # * C library support for I/O, with printf as the one notable exception | |
6211 | # * C library support for other features such as signal, environment | |
6212 | # variables, time functions | |
6213 | ||
b1e86e33 | 6214 | if test "x${target_cpu}" = xnvptx; then |
ee95f928 BS |
6215 | LIBGFOR_MINIMAL_TRUE= |
6216 | LIBGFOR_MINIMAL_FALSE='#' | |
6217 | else | |
6218 | LIBGFOR_MINIMAL_TRUE='#' | |
6219 | LIBGFOR_MINIMAL_FALSE= | |
6220 | fi | |
6221 | ||
6222 | ||
2e764ae1 TB |
6223 | # Some compiler target support may have limited support for integer |
6224 | # or floating point numbers – or may want to reduce the libgfortran size | |
6225 | # although they do have the support. | |
6226 | LIBGOMP_CHECKED_INT_KINDS="1 2 4 8 16" | |
6227 | LIBGOMP_CHECKED_REAL_KINDS="4 8 10 16" | |
6228 | ||
2e764ae1 TB |
6229 | |
6230 | ||
6231 | ||
21be0a5a JB |
6232 | # Figure out whether the compiler supports "-ffunction-sections -fdata-sections", |
6233 | # similarly to how libstdc++ does it | |
6234 | ac_test_CFLAGS="${CFLAGS+set}" | |
6235 | ac_save_CFLAGS="$CFLAGS" | |
6236 | ||
6237 | # Check for -ffunction-sections -fdata-sections | |
6238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5 | |
6239 | $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; } | |
6240 | CFLAGS='-Werror -ffunction-sections -fdata-sections' | |
6241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6242 | /* end confdefs.h. */ | |
6243 | ||
6244 | int | |
6245 | main () | |
6246 | { | |
6247 | int foo; | |
6248 | ; | |
6249 | return 0; | |
6250 | } | |
6251 | _ACEOF | |
6252 | if ac_fn_c_try_compile "$LINENO"; then : | |
6253 | ac_fdsections=yes | |
6254 | else | |
6255 | ac_fdsections=no | |
6256 | fi | |
6257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6258 | if test "$ac_test_CFLAGS" = set; then | |
6259 | CFLAGS="$ac_save_CFLAGS" | |
6260 | else | |
6261 | # this is the suspicious part | |
6262 | CFLAGS="" | |
6263 | fi | |
6264 | if test x"$ac_fdsections" = x"yes"; then | |
6265 | SECTION_FLAGS='-ffunction-sections -fdata-sections' | |
6266 | fi | |
6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5 | |
6268 | $as_echo "$ac_fdsections" >&6; } | |
6269 | ||
6270 | ||
66dbcf2d RO |
6271 | # Check linker hardware capability support. |
6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
6273 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 6274 | if ${ac_cv_path_SED+:} false; then : |
21be0a5a JB |
6275 | $as_echo_n "(cached) " >&6 |
6276 | else | |
66dbcf2d RO |
6277 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
6278 | for ac_i in 1 2 3 4 5 6 7; do | |
6279 | ac_script="$ac_script$as_nl$ac_script" | |
6280 | done | |
6281 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6282 | { ac_script=; unset ac_script;} | |
6283 | if test -z "$SED"; then | |
6284 | ac_path_SED_found=false | |
6285 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21be0a5a JB |
6287 | for as_dir in $PATH |
6288 | do | |
6289 | IFS=$as_save_IFS | |
6290 | test -z "$as_dir" && as_dir=. | |
66dbcf2d | 6291 | for ac_prog in sed gsed; do |
21be0a5a | 6292 | for ac_exec_ext in '' $ac_executable_extensions; do |
66dbcf2d | 6293 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 6294 | as_fn_executable_p "$ac_path_SED" || continue |
66dbcf2d RO |
6295 | # Check for GNU ac_path_SED and select it if it is found. |
6296 | # Check for GNU $ac_path_SED | |
6297 | case `"$ac_path_SED" --version 2>&1` in | |
6298 | *GNU*) | |
6299 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6300 | *) | |
6301 | ac_count=0 | |
6302 | $as_echo_n 0123456789 >"conftest.in" | |
6303 | while : | |
6304 | do | |
6305 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6306 | mv "conftest.tmp" "conftest.in" | |
6307 | cp "conftest.in" "conftest.nl" | |
6308 | $as_echo '' >> "conftest.nl" | |
6309 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6310 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6311 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6312 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6313 | # Best one so far, save it but keep looking for a better one | |
6314 | ac_cv_path_SED="$ac_path_SED" | |
6315 | ac_path_SED_max=$ac_count | |
6316 | fi | |
6317 | # 10*(2^10) chars as input seems more than enough | |
6318 | test $ac_count -gt 10 && break | |
21be0a5a | 6319 | done |
66dbcf2d RO |
6320 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
6321 | esac | |
21be0a5a | 6322 | |
66dbcf2d RO |
6323 | $ac_path_SED_found && break 3 |
6324 | done | |
6325 | done | |
21be0a5a JB |
6326 | done |
6327 | IFS=$as_save_IFS | |
66dbcf2d | 6328 | if test -z "$ac_cv_path_SED"; then |
22e05272 | 6329 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
66dbcf2d | 6330 | fi |
21be0a5a | 6331 | else |
66dbcf2d | 6332 | ac_cv_path_SED=$SED |
21be0a5a JB |
6333 | fi |
6334 | ||
21be0a5a | 6335 | fi |
66dbcf2d RO |
6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
6337 | $as_echo "$ac_cv_path_SED" >&6; } | |
6338 | SED="$ac_cv_path_SED" | |
6339 | rm -f conftest.sed | |
21be0a5a | 6340 | |
66dbcf2d RO |
6341 | test -z "$SED" && SED=sed |
6342 | Xsed="$SED -e 1s/^X//" | |
21be0a5a | 6343 | |
21be0a5a JB |
6344 | |
6345 | ||
66dbcf2d RO |
6346 | |
6347 | ||
6348 | ||
6349 | ||
6350 | ||
6351 | ||
6352 | ||
6353 | ||
6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
6355 | $as_echo_n "checking for fgrep... " >&6; } | |
22e05272 | 6356 | if ${ac_cv_path_FGREP+:} false; then : |
21be0a5a JB |
6357 | $as_echo_n "(cached) " >&6 |
6358 | else | |
66dbcf2d RO |
6359 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
6360 | then ac_cv_path_FGREP="$GREP -F" | |
6361 | else | |
6362 | if test -z "$FGREP"; then | |
6363 | ac_path_FGREP_found=false | |
6364 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6366 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
21be0a5a JB |
6367 | do |
6368 | IFS=$as_save_IFS | |
6369 | test -z "$as_dir" && as_dir=. | |
66dbcf2d | 6370 | for ac_prog in fgrep; do |
21be0a5a | 6371 | for ac_exec_ext in '' $ac_executable_extensions; do |
66dbcf2d | 6372 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 6373 | as_fn_executable_p "$ac_path_FGREP" || continue |
66dbcf2d RO |
6374 | # Check for GNU ac_path_FGREP and select it if it is found. |
6375 | # Check for GNU $ac_path_FGREP | |
6376 | case `"$ac_path_FGREP" --version 2>&1` in | |
6377 | *GNU*) | |
6378 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6379 | *) | |
6380 | ac_count=0 | |
6381 | $as_echo_n 0123456789 >"conftest.in" | |
6382 | while : | |
6383 | do | |
6384 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6385 | mv "conftest.tmp" "conftest.in" | |
6386 | cp "conftest.in" "conftest.nl" | |
6387 | $as_echo 'FGREP' >> "conftest.nl" | |
6388 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6389 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6390 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6391 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6392 | # Best one so far, save it but keep looking for a better one | |
6393 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6394 | ac_path_FGREP_max=$ac_count | |
6395 | fi | |
6396 | # 10*(2^10) chars as input seems more than enough | |
6397 | test $ac_count -gt 10 && break | |
6398 | done | |
6399 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6400 | esac | |
6401 | ||
6402 | $ac_path_FGREP_found && break 3 | |
6403 | done | |
6404 | done | |
21be0a5a JB |
6405 | done |
6406 | IFS=$as_save_IFS | |
66dbcf2d | 6407 | if test -z "$ac_cv_path_FGREP"; then |
22e05272 | 6408 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
66dbcf2d RO |
6409 | fi |
6410 | else | |
6411 | ac_cv_path_FGREP=$FGREP | |
6412 | fi | |
21be0a5a | 6413 | |
66dbcf2d | 6414 | fi |
21be0a5a | 6415 | fi |
66dbcf2d RO |
6416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
6417 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6418 | FGREP="$ac_cv_path_FGREP" | |
1cf3d07d SE |
6419 | |
6420 | ||
66dbcf2d | 6421 | test -z "$GREP" && GREP=grep |
1cf3d07d SE |
6422 | |
6423 | ||
6424 | ||
6425 | ||
6de9cd9a | 6426 | |
1cf3d07d SE |
6427 | |
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
43e02a8a | 6434 | |
43e02a8a | 6435 | |
43e02a8a | 6436 | |
43e02a8a | 6437 | |
43e02a8a RW |
6438 | |
6439 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6440 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6441 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
6442 | ||
6443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
6444 | $as_echo_n "checking how to print strings... " >&6; } | |
6445 | # Test print first, because it will be a builtin if present. | |
6446 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
6447 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6448 | ECHO='print -r --' | |
6449 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6450 | ECHO='printf %s\n' | |
6451 | else | |
6452 | # Use this function as a fallback that always works. | |
6453 | func_fallback_echo () | |
6454 | { | |
6455 | eval 'cat <<_LTECHO_EOF | |
6456 | $1 | |
6457 | _LTECHO_EOF' | |
6458 | } | |
6459 | ECHO='func_fallback_echo' | |
6460 | fi | |
6461 | ||
6462 | # func_echo_all arg... | |
6463 | # Invoke $ECHO with all args, space-separated. | |
6464 | func_echo_all () | |
6465 | { | |
6466 | $ECHO "" | |
6467 | } | |
6468 | ||
6469 | case "$ECHO" in | |
6470 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
6471 | $as_echo "printf" >&6; } ;; | |
6472 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6473 | $as_echo "print -r" >&6; } ;; | |
6474 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
6475 | $as_echo "cat" >&6; } ;; | |
6476 | esac | |
6477 | ||
6478 | ||
6479 | ||
6480 | ||
6481 | ||
6482 | ||
6483 | ||
6484 | ||
6485 | ||
6486 | ||
6487 | ||
6488 | ||
21be0a5a JB |
6489 | |
6490 | ||
5213506e | 6491 | |
5213506e | 6492 | |
66dbcf2d RO |
6493 | # Check whether --with-gnu-ld was given. |
6494 | if test "${with_gnu_ld+set}" = set; then : | |
6495 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
6496 | else | |
6497 | with_gnu_ld=no | |
1cf3d07d | 6498 | fi |
21be0a5a | 6499 | |
66dbcf2d RO |
6500 | ac_prog=ld |
6501 | if test "$GCC" = yes; then | |
6502 | # Check if gcc -print-prog-name=ld gives a path. | |
6503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
6504 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
6505 | case $host in | |
6506 | *-*-mingw*) | |
6507 | # gcc leaves a trailing carriage return which upsets mingw | |
6508 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6509 | *) | |
6510 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6511 | esac | |
6512 | case $ac_prog in | |
6513 | # Accept absolute paths. | |
6514 | [\\/]* | ?:[\\/]*) | |
6515 | re_direlt='/[^/][^/]*/\.\./' | |
6516 | # Canonicalize the pathname of ld | |
6517 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6518 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6519 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6520 | done | |
6521 | test -z "$LD" && LD="$ac_prog" | |
6522 | ;; | |
6523 | "") | |
6524 | # If it fails, then pretend we aren't using GCC. | |
6525 | ac_prog=ld | |
6526 | ;; | |
6527 | *) | |
6528 | # If it is relative, then search for the first ld in PATH. | |
6529 | with_gnu_ld=unknown | |
6530 | ;; | |
6531 | esac | |
6532 | elif test "$with_gnu_ld" = yes; then | |
6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
6534 | $as_echo_n "checking for GNU ld... " >&6; } | |
6535 | else | |
6536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
6537 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
6538 | fi | |
22e05272 | 6539 | if ${lt_cv_path_LD+:} false; then : |
66dbcf2d RO |
6540 | $as_echo_n "(cached) " >&6 |
6541 | else | |
6542 | if test -z "$LD"; then | |
6543 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6544 | for ac_dir in $PATH; do | |
6545 | IFS="$lt_save_ifs" | |
6546 | test -z "$ac_dir" && ac_dir=. | |
6547 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6548 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6549 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6550 | # but apparently some variants of GNU ld only accept -v. | |
6551 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6552 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6553 | *GNU* | *'with BFD'*) | |
6554 | test "$with_gnu_ld" != no && break | |
6555 | ;; | |
6556 | *) | |
6557 | test "$with_gnu_ld" != yes && break | |
6558 | ;; | |
6559 | esac | |
6560 | fi | |
6561 | done | |
6562 | IFS="$lt_save_ifs" | |
6563 | else | |
6564 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6565 | fi | |
6566 | fi | |
6567 | ||
6568 | LD="$lt_cv_path_LD" | |
6569 | if test -n "$LD"; then | |
6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6571 | $as_echo "$LD" >&6; } | |
6572 | else | |
6573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6574 | $as_echo "no" >&6; } | |
6575 | fi | |
22e05272 | 6576 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
66dbcf2d RO |
6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
6578 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 6579 | if ${lt_cv_prog_gnu_ld+:} false; then : |
66dbcf2d RO |
6580 | $as_echo_n "(cached) " >&6 |
6581 | else | |
6582 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6583 | case `$LD -v 2>&1 </dev/null` in | |
6584 | *GNU* | *'with BFD'*) | |
6585 | lt_cv_prog_gnu_ld=yes | |
6586 | ;; | |
6587 | *) | |
6588 | lt_cv_prog_gnu_ld=no | |
6589 | ;; | |
6590 | esac | |
6591 | fi | |
6592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6593 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6594 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
21be0a5a JB |
6595 | |
6596 | ||
6597 | ||
6598 | ||
6599 | ||
6600 | ||
6601 | ||
6602 | ||
1cf3d07d SE |
6603 | |
6604 | ||
66dbcf2d RO |
6605 | test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS='' |
6606 | ||
6607 | ||
6608 | ac_save_LDFLAGS="$LDFLAGS" | |
6609 | LDFLAGS="$LFLAGS -mclear-hwcap" | |
6610 | ||
6611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5 | |
6612 | $as_echo_n "checking for -mclear-hwcap... " >&6; } | |
6613 | if test x$gcc_no_link = xyes; then | |
22e05272 | 6614 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
66dbcf2d RO |
6615 | fi |
6616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6617 | /* end confdefs.h. */ | |
6618 | ||
6619 | int | |
6620 | main () | |
6621 | { | |
6622 | return 0; | |
6623 | ; | |
6624 | return 0; | |
6625 | } | |
6626 | _ACEOF | |
6627 | if ac_fn_c_try_link "$LINENO"; then : | |
6628 | ac_hwcap_ldflags=yes | |
6629 | else | |
6630 | ac_hwcap_ldflags=no | |
6631 | fi | |
6632 | rm -f core conftest.err conftest.$ac_objext \ | |
6633 | conftest$ac_exeext conftest.$ac_ext | |
6634 | if test "$ac_hwcap_ldflags" = "yes"; then | |
6635 | HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS" | |
6636 | fi | |
6637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5 | |
6638 | $as_echo "$ac_hwcap_ldflags" >&6; } | |
6639 | ||
6640 | LDFLAGS="$ac_save_LDFLAGS" | |
6641 | ||
6642 | ||
6643 | ||
6644 | if test $ac_hwcap_ldflags != no; then | |
6645 | HAVE_HWCAP_TRUE= | |
6646 | HAVE_HWCAP_FALSE='#' | |
6647 | else | |
6648 | HAVE_HWCAP_TRUE='#' | |
6649 | HAVE_HWCAP_FALSE= | |
6650 | fi | |
6651 | ||
6652 | ||
6653 | ||
6654 | # Find other programs we need. | |
6655 | if test -n "$ac_tool_prefix"; then | |
6656 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
6657 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
6658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6659 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6660 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 6661 | $as_echo_n "(cached) " >&6 |
38d24731 | 6662 | else |
66dbcf2d RO |
6663 | if test -n "$AS"; then |
6664 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
6665 | else | |
6666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6667 | for as_dir in $PATH | |
5213506e RW |
6668 | do |
6669 | IFS=$as_save_IFS | |
6670 | test -z "$as_dir" && as_dir=. | |
5213506e | 6671 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6672 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6673 | ac_cv_prog_AS="${ac_tool_prefix}as" |
6674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6675 | break 2 | |
6676 | fi | |
6677 | done | |
5213506e | 6678 | done |
66dbcf2d RO |
6679 | IFS=$as_save_IFS |
6680 | ||
6681 | fi | |
6682 | fi | |
6683 | AS=$ac_cv_prog_AS | |
6684 | if test -n "$AS"; then | |
6685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
6686 | $as_echo "$AS" >&6; } | |
6687 | else | |
6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6689 | $as_echo "no" >&6; } | |
6690 | fi | |
6691 | ||
6692 | ||
6693 | fi | |
6694 | if test -z "$ac_cv_prog_AS"; then | |
6695 | ac_ct_AS=$AS | |
6696 | # Extract the first word of "as", so it can be a program name with args. | |
6697 | set dummy as; ac_word=$2 | |
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6699 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6700 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
66dbcf2d RO |
6701 | $as_echo_n "(cached) " >&6 |
6702 | else | |
6703 | if test -n "$ac_ct_AS"; then | |
6704 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
6705 | else | |
6706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6707 | for as_dir in $PATH | |
6708 | do | |
6709 | IFS=$as_save_IFS | |
6710 | test -z "$as_dir" && as_dir=. | |
6711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6712 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6713 | ac_cv_prog_ac_ct_AS="as" |
6714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6715 | break 2 | |
6716 | fi | |
6717 | done | |
6718 | done | |
6719 | IFS=$as_save_IFS | |
6720 | ||
6721 | fi | |
6722 | fi | |
6723 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
6724 | if test -n "$ac_ct_AS"; then | |
6725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | |
6726 | $as_echo "$ac_ct_AS" >&6; } | |
6727 | else | |
6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6729 | $as_echo "no" >&6; } | |
6730 | fi | |
6731 | ||
6732 | if test "x$ac_ct_AS" = x; then | |
6733 | AS="" | |
6734 | else | |
6735 | case $cross_compiling:$ac_tool_warned in | |
6736 | yes:) | |
6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6738 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6739 | ac_tool_warned=yes ;; | |
5213506e | 6740 | esac |
66dbcf2d RO |
6741 | AS=$ac_ct_AS |
6742 | fi | |
6743 | else | |
6744 | AS="$ac_cv_prog_AS" | |
6745 | fi | |
5213506e | 6746 | |
66dbcf2d RO |
6747 | if test -n "$ac_tool_prefix"; then |
6748 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6749 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6751 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6752 | if ${ac_cv_prog_AR+:} false; then : |
66dbcf2d RO |
6753 | $as_echo_n "(cached) " >&6 |
6754 | else | |
6755 | if test -n "$AR"; then | |
6756 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6757 | else | |
6758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6759 | for as_dir in $PATH | |
6760 | do | |
6761 | IFS=$as_save_IFS | |
6762 | test -z "$as_dir" && as_dir=. | |
6763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6764 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6765 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6766 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6767 | break 2 | |
6768 | fi | |
6769 | done | |
5213506e | 6770 | done |
66dbcf2d RO |
6771 | IFS=$as_save_IFS |
6772 | ||
6773 | fi | |
6774 | fi | |
6775 | AR=$ac_cv_prog_AR | |
6776 | if test -n "$AR"; then | |
6777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6778 | $as_echo "$AR" >&6; } | |
6779 | else | |
6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6781 | $as_echo "no" >&6; } | |
6782 | fi | |
6783 | ||
6784 | ||
6785 | fi | |
6786 | if test -z "$ac_cv_prog_AR"; then | |
6787 | ac_ct_AR=$AR | |
6788 | # Extract the first word of "ar", so it can be a program name with args. | |
6789 | set dummy ar; ac_word=$2 | |
6790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6791 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6792 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
66dbcf2d RO |
6793 | $as_echo_n "(cached) " >&6 |
6794 | else | |
6795 | if test -n "$ac_ct_AR"; then | |
6796 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6797 | else | |
6798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6799 | for as_dir in $PATH | |
6800 | do | |
6801 | IFS=$as_save_IFS | |
6802 | test -z "$as_dir" && as_dir=. | |
6803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6805 | ac_cv_prog_ac_ct_AR="ar" |
6806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6807 | break 2 | |
6808 | fi | |
6809 | done | |
6810 | done | |
6811 | IFS=$as_save_IFS | |
6812 | ||
6813 | fi | |
6814 | fi | |
6815 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6816 | if test -n "$ac_ct_AR"; then | |
6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6818 | $as_echo "$ac_ct_AR" >&6; } | |
6819 | else | |
6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6821 | $as_echo "no" >&6; } | |
6822 | fi | |
6823 | ||
6824 | if test "x$ac_ct_AR" = x; then | |
6825 | AR="" | |
6826 | else | |
6827 | case $cross_compiling:$ac_tool_warned in | |
6828 | yes:) | |
6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6830 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6831 | ac_tool_warned=yes ;; | |
6832 | esac | |
6833 | AR=$ac_ct_AR | |
6834 | fi | |
6835 | else | |
6836 | AR="$ac_cv_prog_AR" | |
6837 | fi | |
6838 | ||
6839 | if test -n "$ac_tool_prefix"; then | |
6840 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6841 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6843 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6844 | if ${ac_cv_prog_RANLIB+:} false; then : |
66dbcf2d RO |
6845 | $as_echo_n "(cached) " >&6 |
6846 | else | |
6847 | if test -n "$RANLIB"; then | |
6848 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6849 | else | |
6850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6851 | for as_dir in $PATH | |
6852 | do | |
6853 | IFS=$as_save_IFS | |
6854 | test -z "$as_dir" && as_dir=. | |
6855 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6856 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6857 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6859 | break 2 | |
6860 | fi | |
6861 | done | |
6862 | done | |
6863 | IFS=$as_save_IFS | |
6864 | ||
6865 | fi | |
6866 | fi | |
6867 | RANLIB=$ac_cv_prog_RANLIB | |
6868 | if test -n "$RANLIB"; then | |
6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6870 | $as_echo "$RANLIB" >&6; } | |
6871 | else | |
6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6873 | $as_echo "no" >&6; } | |
6874 | fi | |
6875 | ||
6876 | ||
6877 | fi | |
6878 | if test -z "$ac_cv_prog_RANLIB"; then | |
6879 | ac_ct_RANLIB=$RANLIB | |
6880 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6881 | set dummy ranlib; ac_word=$2 | |
6882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6883 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6884 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
66dbcf2d RO |
6885 | $as_echo_n "(cached) " >&6 |
6886 | else | |
6887 | if test -n "$ac_ct_RANLIB"; then | |
6888 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6889 | else | |
6890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6891 | for as_dir in $PATH | |
6892 | do | |
6893 | IFS=$as_save_IFS | |
6894 | test -z "$as_dir" && as_dir=. | |
6895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6896 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6897 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6899 | break 2 | |
6900 | fi | |
6901 | done | |
5213506e RW |
6902 | done |
6903 | IFS=$as_save_IFS | |
66dbcf2d RO |
6904 | |
6905 | fi | |
6906 | fi | |
6907 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6908 | if test -n "$ac_ct_RANLIB"; then | |
6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6910 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5213506e | 6911 | else |
66dbcf2d RO |
6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6913 | $as_echo "no" >&6; } | |
1cf3d07d | 6914 | fi |
5213506e | 6915 | |
66dbcf2d RO |
6916 | if test "x$ac_ct_RANLIB" = x; then |
6917 | RANLIB="ranlib-not-found-in-path-error" | |
6918 | else | |
6919 | case $cross_compiling:$ac_tool_warned in | |
6920 | yes:) | |
6921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6922 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6923 | ac_tool_warned=yes ;; | |
6924 | esac | |
6925 | RANLIB=$ac_ct_RANLIB | |
6926 | fi | |
6927 | else | |
6928 | RANLIB="$ac_cv_prog_RANLIB" | |
5213506e | 6929 | fi |
1cf3d07d | 6930 | |
66dbcf2d RO |
6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
6932 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6933 | set x ${MAKE-make} | |
6934 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 6935 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
66dbcf2d RO |
6936 | $as_echo_n "(cached) " >&6 |
6937 | else | |
6938 | cat >conftest.make <<\_ACEOF | |
6939 | SHELL = /bin/sh | |
6940 | all: | |
6941 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
6942 | _ACEOF | |
22e05272 | 6943 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
66dbcf2d RO |
6944 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6945 | *@@@%%%=?*=@@@%%%*) | |
6946 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6947 | *) | |
6948 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
6949 | esac | |
6950 | rm -f conftest.make | |
6951 | fi | |
6952 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6954 | $as_echo "yes" >&6; } | |
6955 | SET_MAKE= | |
6956 | else | |
6957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6958 | $as_echo "no" >&6; } | |
6959 | SET_MAKE="MAKE=${MAKE-make}" | |
6960 | fi | |
1cf3d07d SE |
6961 | |
6962 | ||
6963 | ||
66dbcf2d RO |
6964 | # Configure libtool |
6965 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
6966 | enable_dlopen=yes | |
1cf3d07d SE |
6967 | |
6968 | ||
6969 | ||
66dbcf2d RO |
6970 | case `pwd` in |
6971 | *\ * | *\ *) | |
6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
6973 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
6974 | esac | |
1cf3d07d SE |
6975 | |
6976 | ||
6977 | ||
66dbcf2d RO |
6978 | macro_version='2.2.7a' |
6979 | macro_revision='1.3134' | |
1cf3d07d SE |
6980 | |
6981 | ||
6982 | ||
6983 | ||
6984 | ||
6985 | ||
6986 | ||
6987 | ||
5213506e | 6988 | |
96b8a615 | 6989 | |
96b8a615 AJ |
6990 | |
6991 | ||
96b8a615 | 6992 | |
66dbcf2d | 6993 | ltmain="$ac_aux_dir/ltmain.sh" |
1cf3d07d | 6994 | |
66dbcf2d RO |
6995 | # Backslashify metacharacters that are still active within |
6996 | # double-quoted strings. | |
6997 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
1cf3d07d | 6998 | |
66dbcf2d RO |
6999 | # Same as above, but do not quote variable references. |
7000 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
1cf3d07d | 7001 | |
66dbcf2d RO |
7002 | # Sed substitution to delay expansion of an escaped shell variable in a |
7003 | # double_quote_subst'ed string. | |
7004 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
1cf3d07d | 7005 | |
66dbcf2d RO |
7006 | # Sed substitution to delay expansion of an escaped single quote. |
7007 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
1cf3d07d | 7008 | |
66dbcf2d RO |
7009 | # Sed substitution to avoid accidental globbing in evaled expressions |
7010 | no_glob_subst='s/\*/\\\*/g' | |
1cf3d07d | 7011 | |
5213506e RW |
7012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
7013 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
22e05272 | 7014 | if ${lt_cv_path_NM+:} false; then : |
5213506e | 7015 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
7016 | else |
7017 | if test -n "$NM"; then | |
ab422974 NA |
7018 | # Let the user override the nm to test. |
7019 | lt_nm_to_check="$NM" | |
7020 | else | |
7021 | lt_nm_to_check="${ac_tool_prefix}nm" | |
7022 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
7023 | lt_nm_to_check="$lt_nm_to_check nm" | |
7024 | fi | |
7025 | fi | |
f3307109 | 7026 | for lt_tmp_nm in "$lt_nm_to_check"; do |
ab422974 NA |
7027 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7028 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
7029 | IFS="$lt_save_ifs" | |
7030 | test -z "$ac_dir" && ac_dir=. | |
f3307109 NA |
7031 | # Strip out any user-provided options from the nm to test twice, |
7032 | # the first time to test to see if nm (rather than its options) has | |
7033 | # an explicit path, the second time to yield a file which can be | |
7034 | # nm'ed itself. | |
7035 | tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" | |
7036 | case "$tmp_nm_path" in | |
ab422974 NA |
7037 | */*|*\\*) tmp_nm="$lt_tmp_nm";; |
7038 | *) tmp_nm="$ac_dir/$lt_tmp_nm";; | |
7039 | esac | |
f3307109 NA |
7040 | tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" |
7041 | if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then | |
ab422974 NA |
7042 | # Check to see if the nm accepts a BSD-compat flag. |
7043 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
7044 | # nm: unknown option "B" ignored | |
f3307109 | 7045 | case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
ab422974 NA |
7046 | *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" |
7047 | break | |
7048 | ;; | |
7049 | *) | |
f3307109 | 7050 | case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
ab422974 NA |
7051 | *$tmp_nm*) |
7052 | lt_cv_path_NM="$tmp_nm -p" | |
7053 | break | |
7054 | ;; | |
7055 | *) | |
7056 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
7057 | continue # so that we can try to find one that supports BSD flags | |
7058 | ;; | |
7059 | esac | |
7060 | ;; | |
7061 | esac | |
7062 | fi | |
7063 | done | |
7064 | IFS="$lt_save_ifs" | |
7065 | done | |
7066 | : ${lt_cv_path_NM=no} | |
1cf3d07d | 7067 | fi |
5213506e RW |
7068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
7069 | $as_echo "$lt_cv_path_NM" >&6; } | |
1cf3d07d SE |
7070 | if test "$lt_cv_path_NM" != "no"; then |
7071 | NM="$lt_cv_path_NM" | |
7072 | else | |
7073 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
43e02a8a RW |
7074 | if test -n "$DUMPBIN"; then : |
7075 | # Let the user override the test. | |
7076 | else | |
7077 | if test -n "$ac_tool_prefix"; then | |
7078 | for ac_prog in dumpbin "link -dump" | |
1cf3d07d SE |
7079 | do |
7080 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7081 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
7082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7083 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7084 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
5213506e | 7085 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7086 | else |
7087 | if test -n "$DUMPBIN"; then | |
7088 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
7089 | else | |
7090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7091 | for as_dir in $PATH | |
7092 | do | |
7093 | IFS=$as_save_IFS | |
7094 | test -z "$as_dir" && as_dir=. | |
5213506e | 7095 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7096 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7097 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5213506e | 7098 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
7099 | break 2 |
7100 | fi | |
7101 | done | |
5213506e RW |
7102 | done |
7103 | IFS=$as_save_IFS | |
1cf3d07d SE |
7104 | |
7105 | fi | |
7106 | fi | |
7107 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
7108 | if test -n "$DUMPBIN"; then | |
5213506e RW |
7109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
7110 | $as_echo "$DUMPBIN" >&6; } | |
1cf3d07d | 7111 | else |
5213506e RW |
7112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7113 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7114 | fi |
7115 | ||
5213506e | 7116 | |
1cf3d07d SE |
7117 | test -n "$DUMPBIN" && break |
7118 | done | |
7119 | fi | |
7120 | if test -z "$DUMPBIN"; then | |
7121 | ac_ct_DUMPBIN=$DUMPBIN | |
43e02a8a | 7122 | for ac_prog in dumpbin "link -dump" |
1cf3d07d SE |
7123 | do |
7124 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7125 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
7126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7127 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7128 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
5213506e | 7129 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7130 | else |
7131 | if test -n "$ac_ct_DUMPBIN"; then | |
7132 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
7133 | else | |
7134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7135 | for as_dir in $PATH | |
7136 | do | |
7137 | IFS=$as_save_IFS | |
7138 | test -z "$as_dir" && as_dir=. | |
5213506e | 7139 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7140 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7141 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5213506e | 7142 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
7143 | break 2 |
7144 | fi | |
7145 | done | |
5213506e RW |
7146 | done |
7147 | IFS=$as_save_IFS | |
1cf3d07d SE |
7148 | |
7149 | fi | |
7150 | fi | |
7151 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
7152 | if test -n "$ac_ct_DUMPBIN"; then | |
5213506e RW |
7153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
7154 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
1cf3d07d | 7155 | else |
5213506e RW |
7156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7157 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7158 | fi |
7159 | ||
5213506e | 7160 | |
1cf3d07d SE |
7161 | test -n "$ac_ct_DUMPBIN" && break |
7162 | done | |
1cf3d07d | 7163 | |
5213506e RW |
7164 | if test "x$ac_ct_DUMPBIN" = x; then |
7165 | DUMPBIN=":" | |
7166 | else | |
7167 | case $cross_compiling:$ac_tool_warned in | |
7168 | yes:) | |
7169 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7170 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7171 | ac_tool_warned=yes ;; | |
7172 | esac | |
7173 | DUMPBIN=$ac_ct_DUMPBIN | |
7174 | fi | |
96b8a615 | 7175 | fi |
1cf3d07d | 7176 | |
43e02a8a RW |
7177 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
7178 | *COFF*) | |
7179 | DUMPBIN="$DUMPBIN -symbols" | |
7180 | ;; | |
7181 | *) | |
7182 | DUMPBIN=: | |
7183 | ;; | |
7184 | esac | |
7185 | fi | |
1cf3d07d SE |
7186 | |
7187 | if test "$DUMPBIN" != ":"; then | |
7188 | NM="$DUMPBIN" | |
7189 | fi | |
96b8a615 | 7190 | fi |
1cf3d07d SE |
7191 | test -z "$NM" && NM=nm |
7192 | ||
7193 | ||
96b8a615 | 7194 | |
1cf3d07d SE |
7195 | |
7196 | ||
7197 | ||
5213506e RW |
7198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
7199 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
22e05272 | 7200 | if ${lt_cv_nm_interface+:} false; then : |
5213506e | 7201 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7202 | else |
7203 | lt_cv_nm_interface="BSD nm" | |
7204 | echo "int some_variable = 0;" > conftest.$ac_ext | |
43e02a8a | 7205 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
1cf3d07d SE |
7206 | (eval "$ac_compile" 2>conftest.err) |
7207 | cat conftest.err >&5 | |
43e02a8a | 7208 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
1cf3d07d SE |
7209 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
7210 | cat conftest.err >&5 | |
43e02a8a | 7211 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
1cf3d07d SE |
7212 | cat conftest.out >&5 |
7213 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
7214 | lt_cv_nm_interface="MS dumpbin" | |
7215 | fi | |
7216 | rm -f conftest* | |
7217 | fi | |
5213506e RW |
7218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
7219 | $as_echo "$lt_cv_nm_interface" >&6; } | |
96b8a615 | 7220 | |
5213506e RW |
7221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
7222 | $as_echo_n "checking whether ln -s works... " >&6; } | |
96b8a615 AJ |
7223 | LN_S=$as_ln_s |
7224 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
7225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7226 | $as_echo "yes" >&6; } | |
96b8a615 | 7227 | else |
5213506e RW |
7228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
7229 | $as_echo "no, using $LN_S" >&6; } | |
96b8a615 AJ |
7230 | fi |
7231 | ||
1cf3d07d | 7232 | # find the maximum length of command line arguments |
5213506e RW |
7233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
7234 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
22e05272 | 7235 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
5213506e | 7236 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7237 | else |
7238 | i=0 | |
7239 | teststring="ABCD" | |
7240 | ||
7241 | case $build_os in | |
7242 | msdosdjgpp*) | |
7243 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
7244 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
7245 | # during glob expansion). Even if it were fixed, the result of this | |
7246 | # check would be larger than it should be. | |
7247 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
7248 | ;; | |
7249 | ||
7250 | gnu*) | |
7251 | # Under GNU Hurd, this test is not required because there is | |
7252 | # no limit to the length of command line arguments. | |
7253 | # Libtool will interpret -1 as no limit whatsoever | |
7254 | lt_cv_sys_max_cmd_len=-1; | |
7255 | ;; | |
7256 | ||
d58dead8 | 7257 | cygwin* | mingw* | cegcc*) |
1cf3d07d SE |
7258 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
7259 | # about 5 minutes as the teststring grows exponentially. | |
7260 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
7261 | # you end up with a "frozen" computer, even though with patience | |
7262 | # the test eventually succeeds (with a max line length of 256k). | |
7263 | # Instead, let's just punt: use the minimum linelength reported by | |
7264 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
7265 | lt_cv_sys_max_cmd_len=8192; | |
7266 | ;; | |
7267 | ||
43e02a8a RW |
7268 | mint*) |
7269 | # On MiNT this can take a long time and run out of memory. | |
7270 | lt_cv_sys_max_cmd_len=8192; | |
7271 | ;; | |
7272 | ||
1cf3d07d SE |
7273 | amigaos*) |
7274 | # On AmigaOS with pdksh, this test takes hours, literally. | |
7275 | # So we just punt and use a minimum line length of 8192. | |
7276 | lt_cv_sys_max_cmd_len=8192; | |
7277 | ;; | |
7278 | ||
7279 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
7280 | # This has been around since 386BSD, at least. Likely further. | |
7281 | if test -x /sbin/sysctl; then | |
7282 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
7283 | elif test -x /usr/sbin/sysctl; then | |
7284 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
7285 | else | |
7286 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
7287 | fi | |
7288 | # And add a safety zone | |
7289 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
7290 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7291 | ;; | |
7292 | ||
7293 | interix*) | |
7294 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
7295 | lt_cv_sys_max_cmd_len=196608 | |
7296 | ;; | |
7297 | ||
7298 | osf*) | |
7299 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
7300 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
7301 | # nice to cause kernel panics so lets avoid the loop below. | |
7302 | # First set a reasonable default. | |
7303 | lt_cv_sys_max_cmd_len=16384 | |
7304 | # | |
7305 | if test -x /sbin/sysconfig; then | |
7306 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
7307 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
7308 | esac | |
7309 | fi | |
7310 | ;; | |
7311 | sco3.2v5*) | |
7312 | lt_cv_sys_max_cmd_len=102400 | |
7313 | ;; | |
7314 | sysv5* | sco5v6* | sysv4.2uw2*) | |
7315 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
7316 | if test -n "$kargmax"; then | |
7317 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
7318 | else | |
7319 | lt_cv_sys_max_cmd_len=32768 | |
7320 | fi | |
7321 | ;; | |
7322 | *) | |
d58dead8 PG |
7323 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
7324 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
82a6cadf PB |
7325 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
7326 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7327 | else | |
7328 | # Make teststring a little bigger before we do anything with it. | |
7329 | # a 1K string should be a reasonable start. | |
7330 | for i in 1 2 3 4 5 6 7 8 ; do | |
7331 | teststring=$teststring$teststring | |
7332 | done | |
7333 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
7334 | # If test is not a shell built-in, we'll probably end up computing a | |
7335 | # maximum length that is only half of the actual maximum length, but | |
7336 | # we can't tell. | |
43e02a8a RW |
7337 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
7338 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
82a6cadf PB |
7339 | test $i != 17 # 1/2 MB should be enough |
7340 | do | |
7341 | i=`expr $i + 1` | |
7342 | teststring=$teststring$teststring | |
7343 | done | |
7344 | # Only check the string length outside the loop. | |
7345 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
7346 | teststring= | |
7347 | # Add a significant safety factor because C++ compilers can tack on | |
7348 | # massive amounts of additional arguments before passing them to the | |
7349 | # linker. It appears as though 1/2 is a usable value. | |
7350 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
7351 | fi | |
1cf3d07d SE |
7352 | ;; |
7353 | esac | |
7354 | ||
7355 | fi | |
7356 | ||
7357 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5213506e RW |
7358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
7359 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
1cf3d07d | 7360 | else |
5213506e RW |
7361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
7362 | $as_echo "none" >&6; } | |
1cf3d07d SE |
7363 | fi |
7364 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
7365 | ||
7366 | ||
7367 | ||
7368 | ||
7369 | ||
7370 | ||
1cf3d07d SE |
7371 | : ${CP="cp -f"} |
7372 | : ${MV="mv -f"} | |
7373 | : ${RM="rm -f"} | |
7374 | ||
5213506e RW |
7375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
7376 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
1cf3d07d SE |
7377 | # Try some XSI features |
7378 | xsi_shell=no | |
7379 | ( _lt_dummy="a/b/c" | |
7380 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
d58dead8 PG |
7381 | = c,a/b,, \ |
7382 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
7383 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
1cf3d07d | 7384 | && xsi_shell=yes |
5213506e RW |
7385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
7386 | $as_echo "$xsi_shell" >&6; } | |
1cf3d07d SE |
7387 | |
7388 | ||
5213506e RW |
7389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
7390 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
1cf3d07d SE |
7391 | lt_shell_append=no |
7392 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
7393 | >/dev/null 2>&1 \ | |
7394 | && lt_shell_append=yes | |
5213506e RW |
7395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
7396 | $as_echo "$lt_shell_append" >&6; } | |
1cf3d07d SE |
7397 | |
7398 | ||
7399 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7400 | lt_unset=unset | |
7401 | else | |
7402 | lt_unset=false | |
7403 | fi | |
7404 | ||
7405 | ||
7406 | ||
7407 | ||
7408 | ||
7409 | # test EBCDIC or ASCII | |
7410 | case `echo X|tr X '\101'` in | |
7411 | A) # ASCII based system | |
7412 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
7413 | lt_SP2NL='tr \040 \012' | |
7414 | lt_NL2SP='tr \015\012 \040\040' | |
7415 | ;; | |
7416 | *) # EBCDIC based system | |
7417 | lt_SP2NL='tr \100 \n' | |
7418 | lt_NL2SP='tr \r\n \100\100' | |
7419 | ;; | |
7420 | esac | |
7421 | ||
7422 | ||
7423 | ||
7424 | ||
7425 | ||
7426 | ||
7427 | ||
7428 | ||
7429 | ||
5213506e RW |
7430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
7431 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
22e05272 | 7432 | if ${lt_cv_ld_reload_flag+:} false; then : |
5213506e | 7433 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7434 | else |
7435 | lt_cv_ld_reload_flag='-r' | |
7436 | fi | |
5213506e RW |
7437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
7438 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
1cf3d07d SE |
7439 | reload_flag=$lt_cv_ld_reload_flag |
7440 | case $reload_flag in | |
7441 | "" | " "*) ;; | |
7442 | *) reload_flag=" $reload_flag" ;; | |
7443 | esac | |
7444 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7445 | case $host_os in | |
7446 | darwin*) | |
7447 | if test "$GCC" = yes; then | |
7448 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
7449 | else | |
7450 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7451 | fi | |
7452 | ;; | |
7453 | esac | |
7454 | ||
7455 | ||
7456 | ||
7457 | ||
7458 | ||
7459 | ||
7460 | ||
7461 | ||
7462 | ||
d58dead8 PG |
7463 | if test -n "$ac_tool_prefix"; then |
7464 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
7465 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5213506e RW |
7466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7467 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7468 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 7469 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
7470 | else |
7471 | if test -n "$OBJDUMP"; then | |
7472 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
7473 | else | |
7474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7475 | for as_dir in $PATH | |
7476 | do | |
7477 | IFS=$as_save_IFS | |
7478 | test -z "$as_dir" && as_dir=. | |
5213506e | 7479 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7480 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 7481 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5213506e | 7482 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
7483 | break 2 |
7484 | fi | |
7485 | done | |
5213506e RW |
7486 | done |
7487 | IFS=$as_save_IFS | |
d58dead8 PG |
7488 | |
7489 | fi | |
7490 | fi | |
7491 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
7492 | if test -n "$OBJDUMP"; then | |
5213506e RW |
7493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
7494 | $as_echo "$OBJDUMP" >&6; } | |
d58dead8 | 7495 | else |
5213506e RW |
7496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7497 | $as_echo "no" >&6; } | |
d58dead8 PG |
7498 | fi |
7499 | ||
5213506e | 7500 | |
d58dead8 PG |
7501 | fi |
7502 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
7503 | ac_ct_OBJDUMP=$OBJDUMP | |
7504 | # Extract the first word of "objdump", so it can be a program name with args. | |
7505 | set dummy objdump; ac_word=$2 | |
5213506e RW |
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7507 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7508 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
5213506e | 7509 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
7510 | else |
7511 | if test -n "$ac_ct_OBJDUMP"; then | |
7512 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
7513 | else | |
7514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7515 | for as_dir in $PATH | |
7516 | do | |
7517 | IFS=$as_save_IFS | |
7518 | test -z "$as_dir" && as_dir=. | |
5213506e | 7519 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7520 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 7521 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5213506e | 7522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
7523 | break 2 |
7524 | fi | |
7525 | done | |
5213506e RW |
7526 | done |
7527 | IFS=$as_save_IFS | |
d58dead8 | 7528 | |
d58dead8 PG |
7529 | fi |
7530 | fi | |
7531 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
7532 | if test -n "$ac_ct_OBJDUMP"; then | |
5213506e RW |
7533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
7534 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
d58dead8 | 7535 | else |
5213506e RW |
7536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7537 | $as_echo "no" >&6; } | |
d58dead8 PG |
7538 | fi |
7539 | ||
5213506e RW |
7540 | if test "x$ac_ct_OBJDUMP" = x; then |
7541 | OBJDUMP="false" | |
7542 | else | |
7543 | case $cross_compiling:$ac_tool_warned in | |
7544 | yes:) | |
7545 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7546 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7547 | ac_tool_warned=yes ;; | |
7548 | esac | |
7549 | OBJDUMP=$ac_ct_OBJDUMP | |
7550 | fi | |
d58dead8 PG |
7551 | else |
7552 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
7553 | fi | |
7554 | ||
7555 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
7556 | ||
7557 | ||
7558 | ||
7559 | ||
7560 | ||
7561 | ||
7562 | ||
7563 | ||
1cf3d07d | 7564 | |
5213506e RW |
7565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
7566 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
22e05272 | 7567 | if ${lt_cv_deplibs_check_method+:} false; then : |
5213506e | 7568 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
7569 | else |
7570 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
7571 | lt_cv_file_magic_test_file= | |
7572 | lt_cv_deplibs_check_method='unknown' | |
7573 | # Need to set the preceding variable on all platforms that support | |
7574 | # interlibrary dependencies. | |
7575 | # 'none' -- dependencies not supported. | |
7576 | # `unknown' -- same as none, but documents that we really don't know. | |
7577 | # 'pass_all' -- all dependencies passed with no checks. | |
7578 | # 'test_compile' -- check by making test program. | |
1cf3d07d SE |
7579 | # 'file_magic [[regex]]' -- check by looking for files in library path |
7580 | # which responds to the $file_magic_cmd with a given extended regex. | |
96b8a615 AJ |
7581 | # If you have `file' or equivalent on your system and you're not sure |
7582 | # whether `pass_all' will *always* work, you probably want this one. | |
7583 | ||
7584 | case $host_os in | |
4f6bebc3 | 7585 | aix[4-9]*) |
96b8a615 AJ |
7586 | lt_cv_deplibs_check_method=pass_all |
7587 | ;; | |
7588 | ||
7589 | beos*) | |
7590 | lt_cv_deplibs_check_method=pass_all | |
7591 | ;; | |
7592 | ||
1cf3d07d | 7593 | bsdi[45]*) |
96b8a615 AJ |
7594 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
7595 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
7596 | lt_cv_file_magic_test_file=/shlib/libc.so | |
7597 | ;; | |
7598 | ||
1cf3d07d SE |
7599 | cygwin*) |
7600 | # func_win32_libid is a shell function defined in ltmain.sh | |
7601 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
7602 | lt_cv_file_magic_cmd='func_win32_libid' | |
7603 | ;; | |
7604 | ||
7605 | mingw* | pw32*) | |
7606 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
7607 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
7608 | # unless we find 'file', for example because we are cross-compiling. | |
43e02a8a RW |
7609 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
7610 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
1cf3d07d SE |
7611 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
7612 | lt_cv_file_magic_cmd='func_win32_libid' | |
7613 | else | |
7614 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
7615 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7616 | fi | |
96b8a615 AJ |
7617 | ;; |
7618 | ||
43e02a8a | 7619 | cegcc*) |
d58dead8 PG |
7620 | # use the weaker test based on 'objdump'. See mingw*. |
7621 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
7622 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7623 | ;; | |
7624 | ||
96b8a615 | 7625 | darwin* | rhapsody*) |
96b8a615 AJ |
7626 | lt_cv_deplibs_check_method=pass_all |
7627 | ;; | |
7628 | ||
1cf3d07d SE |
7629 | freebsd* | dragonfly*) |
7630 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
96b8a615 AJ |
7631 | case $host_cpu in |
7632 | i*86 ) | |
7633 | # Not sure whether the presence of OpenBSD here was a mistake. | |
7634 | # Let's accept both of them until this is cleared up. | |
1cf3d07d | 7635 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
96b8a615 AJ |
7636 | lt_cv_file_magic_cmd=/usr/bin/file |
7637 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
7638 | ;; | |
7639 | esac | |
7640 | else | |
7641 | lt_cv_deplibs_check_method=pass_all | |
7642 | fi | |
7643 | ;; | |
7644 | ||
7645 | gnu*) | |
7646 | lt_cv_deplibs_check_method=pass_all | |
7647 | ;; | |
7648 | ||
43e02a8a RW |
7649 | haiku*) |
7650 | lt_cv_deplibs_check_method=pass_all | |
7651 | ;; | |
7652 | ||
1cf3d07d SE |
7653 | hpux10.20* | hpux11*) |
7654 | lt_cv_file_magic_cmd=/usr/bin/file | |
96b8a615 | 7655 | case $host_cpu in |
96b8a615 AJ |
7656 | ia64*) |
7657 | 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 |
7658 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
7659 | ;; | |
1cf3d07d | 7660 | hppa*64*) |
43e02a8a | 7661 | 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 | 7662 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
96b8a615 AJ |
7663 | ;; |
7664 | *) | |
43e02a8a | 7665 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
1cf3d07d | 7666 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
96b8a615 AJ |
7667 | ;; |
7668 | esac | |
1cf3d07d SE |
7669 | ;; |
7670 | ||
7671 | interix[3-9]*) | |
7672 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
7673 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
7674 | ;; | |
7675 | ||
7676 | irix5* | irix6* | nonstopux*) | |
7677 | case $LD in | |
7678 | *-32|*"-32 ") libmagic=32-bit;; | |
7679 | *-n32|*"-n32 ") libmagic=N32;; | |
7680 | *-64|*"-64 ") libmagic=64-bit;; | |
7681 | *) libmagic=never-match;; | |
7682 | esac | |
96b8a615 AJ |
7683 | lt_cv_deplibs_check_method=pass_all |
7684 | ;; | |
7685 | ||
7686 | # This must be Linux ELF. | |
e9085da5 | 7687 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
2c92e90f | 7688 | lt_cv_deplibs_check_method=pass_all |
96b8a615 AJ |
7689 | ;; |
7690 | ||
1cf3d07d SE |
7691 | netbsd*) |
7692 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7693 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
96b8a615 | 7694 | else |
1cf3d07d | 7695 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
96b8a615 AJ |
7696 | fi |
7697 | ;; | |
7698 | ||
1cf3d07d | 7699 | newos6*) |
96b8a615 AJ |
7700 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
7701 | lt_cv_file_magic_cmd=/usr/bin/file | |
7702 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7703 | ;; | |
7704 | ||
1cf3d07d SE |
7705 | *nto* | *qnx*) |
7706 | lt_cv_deplibs_check_method=pass_all | |
7707 | ;; | |
7708 | ||
7709 | openbsd*) | |
7710 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7711 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
7712 | else | |
7713 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7714 | fi | |
7715 | ;; | |
7716 | ||
96b8a615 | 7717 | osf3* | osf4* | osf5*) |
96b8a615 AJ |
7718 | lt_cv_deplibs_check_method=pass_all |
7719 | ;; | |
7720 | ||
1cf3d07d | 7721 | rdos*) |
96b8a615 AJ |
7722 | lt_cv_deplibs_check_method=pass_all |
7723 | ;; | |
7724 | ||
7725 | solaris*) | |
7726 | lt_cv_deplibs_check_method=pass_all | |
96b8a615 AJ |
7727 | ;; |
7728 | ||
1cf3d07d | 7729 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
96b8a615 AJ |
7730 | lt_cv_deplibs_check_method=pass_all |
7731 | ;; | |
7732 | ||
1cf3d07d | 7733 | sysv4 | sysv4.3*) |
96b8a615 | 7734 | case $host_vendor in |
96b8a615 AJ |
7735 | motorola) |
7736 | 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]' | |
7737 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7738 | ;; | |
1cf3d07d SE |
7739 | ncr) |
7740 | lt_cv_deplibs_check_method=pass_all | |
7741 | ;; | |
7742 | sequent) | |
7743 | lt_cv_file_magic_cmd='/bin/file' | |
7744 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7745 | ;; | |
7746 | sni) | |
7747 | lt_cv_file_magic_cmd='/bin/file' | |
7748 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7749 | lt_cv_file_magic_test_file=/lib/libc.so | |
7750 | ;; | |
7751 | siemens) | |
7752 | lt_cv_deplibs_check_method=pass_all | |
7753 | ;; | |
7754 | pc) | |
7755 | lt_cv_deplibs_check_method=pass_all | |
7756 | ;; | |
96b8a615 AJ |
7757 | esac |
7758 | ;; | |
1cf3d07d SE |
7759 | |
7760 | tpf*) | |
7761 | lt_cv_deplibs_check_method=pass_all | |
7762 | ;; | |
0ecd0f1c OH |
7763 | vxworks*) |
7764 | # Assume VxWorks cross toolchains are built on Linux, possibly | |
7765 | # as canadian for Windows hosts. | |
7766 | lt_cv_deplibs_check_method=pass_all | |
7767 | ;; | |
96b8a615 AJ |
7768 | esac |
7769 | ||
7770 | fi | |
5213506e RW |
7771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
7772 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
96b8a615 AJ |
7773 | file_magic_cmd=$lt_cv_file_magic_cmd |
7774 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1cf3d07d | 7775 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
96b8a615 AJ |
7776 | |
7777 | ||
7778 | ||
7779 | ||
96b8a615 | 7780 | |
96b8a615 | 7781 | |
96b8a615 | 7782 | |
96b8a615 | 7783 | |
6de9cd9a | 7784 | |
6de9cd9a | 7785 | |
6de9cd9a | 7786 | |
6de9cd9a | 7787 | |
126f707e L |
7788 | plugin_option= |
7789 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
7790 | for plugin in $plugin_names; do | |
7791 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
7792 | if test x$plugin_so = x$plugin; then | |
7793 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
7794 | fi | |
7795 | if test x$plugin_so != x$plugin; then | |
7796 | plugin_option="--plugin $plugin_so" | |
7797 | break | |
7798 | fi | |
7799 | done | |
7800 | ||
96b8a615 | 7801 | if test -n "$ac_tool_prefix"; then |
1cf3d07d SE |
7802 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
7803 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7805 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7806 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 7807 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 7808 | else |
1cf3d07d SE |
7809 | if test -n "$AR"; then |
7810 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
96b8a615 AJ |
7811 | else |
7812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7813 | for as_dir in $PATH | |
7814 | do | |
7815 | IFS=$as_save_IFS | |
7816 | test -z "$as_dir" && as_dir=. | |
5213506e | 7817 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7818 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7819 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 7820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7821 | break 2 |
7822 | fi | |
7823 | done | |
5213506e RW |
7824 | done |
7825 | IFS=$as_save_IFS | |
6de9cd9a | 7826 | |
96b8a615 AJ |
7827 | fi |
7828 | fi | |
1cf3d07d SE |
7829 | AR=$ac_cv_prog_AR |
7830 | if test -n "$AR"; then | |
5213506e RW |
7831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7832 | $as_echo "$AR" >&6; } | |
96b8a615 | 7833 | else |
5213506e RW |
7834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7835 | $as_echo "no" >&6; } | |
6de9cd9a DN |
7836 | fi |
7837 | ||
5213506e | 7838 | |
96b8a615 | 7839 | fi |
1cf3d07d SE |
7840 | if test -z "$ac_cv_prog_AR"; then |
7841 | ac_ct_AR=$AR | |
7842 | # Extract the first word of "ar", so it can be a program name with args. | |
7843 | set dummy ar; ac_word=$2 | |
5213506e RW |
7844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7845 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7846 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5213506e | 7847 | $as_echo_n "(cached) " >&6 |
96b8a615 | 7848 | else |
1cf3d07d SE |
7849 | if test -n "$ac_ct_AR"; then |
7850 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
96b8a615 AJ |
7851 | else |
7852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7853 | for as_dir in $PATH | |
7854 | do | |
7855 | IFS=$as_save_IFS | |
7856 | test -z "$as_dir" && as_dir=. | |
5213506e | 7857 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7858 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7859 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 7860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7861 | break 2 |
7862 | fi | |
7863 | done | |
5213506e RW |
7864 | done |
7865 | IFS=$as_save_IFS | |
6de9cd9a | 7866 | |
96b8a615 AJ |
7867 | fi |
7868 | fi | |
1cf3d07d SE |
7869 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7870 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
7872 | $as_echo "$ac_ct_AR" >&6; } | |
6de9cd9a | 7873 | else |
5213506e RW |
7874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7875 | $as_echo "no" >&6; } | |
6de9cd9a | 7876 | fi |
6de9cd9a | 7877 | |
5213506e RW |
7878 | if test "x$ac_ct_AR" = x; then |
7879 | AR="false" | |
7880 | else | |
7881 | case $cross_compiling:$ac_tool_warned in | |
7882 | yes:) | |
7883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7884 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7885 | ac_tool_warned=yes ;; | |
7886 | esac | |
7887 | AR=$ac_ct_AR | |
7888 | fi | |
96b8a615 | 7889 | else |
1cf3d07d | 7890 | AR="$ac_cv_prog_AR" |
6de9cd9a DN |
7891 | fi |
7892 | ||
1cf3d07d | 7893 | test -z "$AR" && AR=ar |
126f707e L |
7894 | if test -n "$plugin_option"; then |
7895 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
9c7797a8 L |
7896 | touch conftest.c |
7897 | $AR $plugin_option rc conftest.a conftest.c | |
7898 | if test "$?" != 0; then | |
7899 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
7900 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
7901 | else | |
7902 | AR="$AR $plugin_option" | |
7903 | fi | |
7904 | rm -f conftest.* | |
126f707e L |
7905 | fi |
7906 | fi | |
1cf3d07d SE |
7907 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
7908 | ||
7909 | ||
7910 | ||
7911 | ||
7912 | ||
7913 | ||
7914 | ||
7915 | ||
7916 | ||
7917 | ||
7918 | ||
96b8a615 AJ |
7919 | if test -n "$ac_tool_prefix"; then |
7920 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7921 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5213506e RW |
7922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7923 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7924 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 7925 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 7926 | else |
96b8a615 AJ |
7927 | if test -n "$STRIP"; then |
7928 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7929 | else | |
7930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7931 | for as_dir in $PATH | |
7932 | do | |
7933 | IFS=$as_save_IFS | |
7934 | test -z "$as_dir" && as_dir=. | |
5213506e | 7935 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
96b8a615 | 7937 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5213506e | 7938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7939 | break 2 |
7940 | fi | |
7941 | done | |
5213506e RW |
7942 | done |
7943 | IFS=$as_save_IFS | |
6de9cd9a | 7944 | |
96b8a615 AJ |
7945 | fi |
7946 | fi | |
7947 | STRIP=$ac_cv_prog_STRIP | |
7948 | if test -n "$STRIP"; then | |
5213506e RW |
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
7950 | $as_echo "$STRIP" >&6; } | |
6de9cd9a | 7951 | else |
5213506e RW |
7952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7953 | $as_echo "no" >&6; } | |
96b8a615 | 7954 | fi |
6de9cd9a | 7955 | |
5213506e | 7956 | |
6de9cd9a | 7957 | fi |
96b8a615 AJ |
7958 | if test -z "$ac_cv_prog_STRIP"; then |
7959 | ac_ct_STRIP=$STRIP | |
7960 | # Extract the first word of "strip", so it can be a program name with args. | |
7961 | set dummy strip; ac_word=$2 | |
5213506e RW |
7962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7963 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7964 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e | 7965 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
7966 | else |
7967 | if test -n "$ac_ct_STRIP"; then | |
7968 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7969 | else | |
7970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7971 | for as_dir in $PATH | |
7972 | do | |
7973 | IFS=$as_save_IFS | |
7974 | test -z "$as_dir" && as_dir=. | |
5213506e | 7975 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7976 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
96b8a615 | 7977 | ac_cv_prog_ac_ct_STRIP="strip" |
5213506e | 7978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7979 | break 2 |
7980 | fi | |
7981 | done | |
5213506e RW |
7982 | done |
7983 | IFS=$as_save_IFS | |
96b8a615 | 7984 | |
6de9cd9a DN |
7985 | fi |
7986 | fi | |
96b8a615 AJ |
7987 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
7988 | if test -n "$ac_ct_STRIP"; then | |
5213506e RW |
7989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
7990 | $as_echo "$ac_ct_STRIP" >&6; } | |
96b8a615 | 7991 | else |
5213506e RW |
7992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7993 | $as_echo "no" >&6; } | |
6de9cd9a | 7994 | fi |
6de9cd9a | 7995 | |
5213506e RW |
7996 | if test "x$ac_ct_STRIP" = x; then |
7997 | STRIP=":" | |
7998 | else | |
7999 | case $cross_compiling:$ac_tool_warned in | |
8000 | yes:) | |
8001 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8002 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8003 | ac_tool_warned=yes ;; | |
8004 | esac | |
8005 | STRIP=$ac_ct_STRIP | |
8006 | fi | |
96b8a615 AJ |
8007 | else |
8008 | STRIP="$ac_cv_prog_STRIP" | |
6de9cd9a DN |
8009 | fi |
8010 | ||
1cf3d07d | 8011 | test -z "$STRIP" && STRIP=: |
6de9cd9a DN |
8012 | |
8013 | ||
8014 | ||
8015 | ||
8016 | ||
8017 | ||
1cf3d07d SE |
8018 | if test -n "$ac_tool_prefix"; then |
8019 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8020 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8022 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8023 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 8024 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 8025 | else |
1cf3d07d SE |
8026 | if test -n "$RANLIB"; then |
8027 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8028 | else | |
8029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8030 | for as_dir in $PATH | |
8031 | do | |
8032 | IFS=$as_save_IFS | |
8033 | test -z "$as_dir" && as_dir=. | |
5213506e | 8034 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8035 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 8036 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 8037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
8038 | break 2 |
8039 | fi | |
8040 | done | |
5213506e RW |
8041 | done |
8042 | IFS=$as_save_IFS | |
1cf3d07d SE |
8043 | |
8044 | fi | |
8045 | fi | |
8046 | RANLIB=$ac_cv_prog_RANLIB | |
8047 | if test -n "$RANLIB"; then | |
5213506e RW |
8048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8049 | $as_echo "$RANLIB" >&6; } | |
1cf3d07d | 8050 | else |
5213506e RW |
8051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8052 | $as_echo "no" >&6; } | |
1cf3d07d SE |
8053 | fi |
8054 | ||
5213506e | 8055 | |
1cf3d07d SE |
8056 | fi |
8057 | if test -z "$ac_cv_prog_RANLIB"; then | |
8058 | ac_ct_RANLIB=$RANLIB | |
8059 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8060 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8062 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8063 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5213506e | 8064 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8065 | else |
8066 | if test -n "$ac_ct_RANLIB"; then | |
8067 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8068 | else | |
8069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8070 | for as_dir in $PATH | |
8071 | do | |
8072 | IFS=$as_save_IFS | |
8073 | test -z "$as_dir" && as_dir=. | |
5213506e | 8074 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8075 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 8076 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 8077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
8078 | break 2 |
8079 | fi | |
8080 | done | |
5213506e RW |
8081 | done |
8082 | IFS=$as_save_IFS | |
1cf3d07d | 8083 | |
1cf3d07d SE |
8084 | fi |
8085 | fi | |
8086 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8087 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
8088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8089 | $as_echo "$ac_ct_RANLIB" >&6; } | |
1cf3d07d | 8090 | else |
5213506e RW |
8091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8092 | $as_echo "no" >&6; } | |
1cf3d07d SE |
8093 | fi |
8094 | ||
5213506e RW |
8095 | if test "x$ac_ct_RANLIB" = x; then |
8096 | RANLIB=":" | |
8097 | else | |
8098 | case $cross_compiling:$ac_tool_warned in | |
8099 | yes:) | |
8100 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8101 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8102 | ac_tool_warned=yes ;; | |
8103 | esac | |
8104 | RANLIB=$ac_ct_RANLIB | |
8105 | fi | |
1cf3d07d SE |
8106 | else |
8107 | RANLIB="$ac_cv_prog_RANLIB" | |
8108 | fi | |
8109 | ||
8110 | test -z "$RANLIB" && RANLIB=: | |
126f707e L |
8111 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then |
8112 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
8113 | RANLIB="$RANLIB $plugin_option" | |
8114 | fi | |
8115 | fi | |
1cf3d07d SE |
8116 | |
8117 | ||
8118 | ||
8119 | ||
8120 | ||
8121 | ||
8122 | # Determine commands to create old-style static archives. | |
d58dead8 | 8123 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1cf3d07d SE |
8124 | old_postinstall_cmds='chmod 644 $oldlib' |
8125 | old_postuninstall_cmds= | |
8126 | ||
8127 | if test -n "$RANLIB"; then | |
8128 | case $host_os in | |
8129 | openbsd*) | |
8130 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
8131 | ;; | |
8132 | *) | |
8133 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
8134 | ;; | |
8135 | esac | |
8136 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
8137 | fi | |
8138 | ||
43e02a8a RW |
8139 | case $host_os in |
8140 | darwin*) | |
8141 | lock_old_archive_extraction=yes ;; | |
8142 | *) | |
8143 | lock_old_archive_extraction=no ;; | |
8144 | esac | |
8145 | ||
8146 | ||
8147 | ||
8148 | ||
8149 | ||
8150 | ||
1cf3d07d SE |
8151 | |
8152 | ||
8153 | ||
8154 | ||
8155 | ||
8156 | ||
8157 | ||
8158 | ||
8159 | ||
8160 | ||
8161 | ||
8162 | ||
8163 | ||
8164 | ||
8165 | ||
8166 | ||
8167 | ||
8168 | ||
8169 | ||
8170 | ||
8171 | ||
8172 | ||
8173 | ||
8174 | ||
8175 | ||
8176 | ||
8177 | ||
8178 | ||
8179 | ||
8180 | ||
8181 | ||
8182 | ||
8183 | ||
8184 | # If no C compiler was specified, use CC. | |
8185 | LTCC=${LTCC-"$CC"} | |
8186 | ||
8187 | # If no C compiler flags were specified, use CFLAGS. | |
8188 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8189 | ||
8190 | # Allow CC to be a program name with arguments. | |
8191 | compiler=$CC | |
8192 | ||
8193 | ||
8194 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5213506e RW |
8195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8196 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
22e05272 | 8197 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
5213506e | 8198 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8199 | else |
8200 | ||
8201 | # These are sane defaults that work on at least a few old systems. | |
8202 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
8203 | ||
8204 | # Character class describing NM global symbol codes. | |
8205 | symcode='[BCDEGRST]' | |
8206 | ||
8207 | # Regexp to match symbols that can be accessed directly from C. | |
8208 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
8209 | ||
8210 | # Define system-specific variables. | |
8211 | case $host_os in | |
8212 | aix*) | |
8213 | symcode='[BCDT]' | |
8214 | ;; | |
d58dead8 | 8215 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8216 | symcode='[ABCDGISTW]' |
8217 | ;; | |
8218 | hpux*) | |
8219 | if test "$host_cpu" = ia64; then | |
8220 | symcode='[ABCDEGRST]' | |
8221 | fi | |
8222 | ;; | |
8223 | irix* | nonstopux*) | |
8224 | symcode='[BCDEGRST]' | |
8225 | ;; | |
8226 | osf*) | |
8227 | symcode='[BCDEGQRST]' | |
8228 | ;; | |
8229 | solaris*) | |
dc17ceb3 | 8230 | symcode='[BCDRT]' |
1cf3d07d SE |
8231 | ;; |
8232 | sco3.2v5*) | |
8233 | symcode='[DT]' | |
8234 | ;; | |
8235 | sysv4.2uw2*) | |
8236 | symcode='[DT]' | |
8237 | ;; | |
8238 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
8239 | symcode='[ABDT]' | |
8240 | ;; | |
8241 | sysv4) | |
8242 | symcode='[DFNSTU]' | |
8243 | ;; | |
8244 | esac | |
8245 | ||
8246 | # If we're using GNU nm, then use its standard symbol codes. | |
8247 | case `$NM -V 2>&1` in | |
8248 | *GNU* | *'with BFD'*) | |
8249 | symcode='[ABCDGIRSTW]' ;; | |
8250 | esac | |
8251 | ||
8252 | # Transform an extracted symbol line into a proper C declaration. | |
8253 | # Some systems (esp. on ia64) link data and code symbols differently, | |
8254 | # so use this general approach. | |
8255 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
8256 | ||
8257 | # Transform an extracted symbol line into symbol name and symbol address | |
8258 | 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 | 8259 | 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 |
8260 | |
8261 | # Handle CRLF in mingw tool chain | |
8262 | opt_cr= | |
8263 | case $build_os in | |
8264 | mingw*) | |
8265 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
8266 | ;; | |
8267 | esac | |
8268 | ||
8269 | # Try without a prefix underscore, then with it. | |
8270 | for ac_symprfx in "" "_"; do | |
8271 | ||
8272 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
8273 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
8274 | ||
8275 | # Write the raw and C identifiers. | |
8276 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
8277 | # Fake it for dumpbin and say T for any non-static function | |
8278 | # and D for any global variable. | |
8279 | # Also find C++ and __fastcall symbols from MSVC++, | |
8280 | # which start with @ or ?. | |
8281 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
8282 | " {last_section=section; section=\$ 3};"\ | |
8283 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
8284 | " \$ 0!~/External *\|/{next};"\ | |
8285 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
8286 | " {if(hide[section]) next};"\ | |
8287 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
8288 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
8289 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
8290 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
8291 | " ' prfx=^$ac_symprfx" | |
8292 | else | |
8293 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
8294 | fi | |
8295 | ||
8296 | # Check to see that the pipe works correctly. | |
8297 | pipe_works=no | |
8298 | ||
8299 | rm -f conftest* | |
8300 | cat > conftest.$ac_ext <<_LT_EOF | |
8301 | #ifdef __cplusplus | |
8302 | extern "C" { | |
8303 | #endif | |
8304 | char nm_test_var; | |
8305 | void nm_test_func(void); | |
8306 | void nm_test_func(void){} | |
8307 | #ifdef __cplusplus | |
8308 | } | |
8309 | #endif | |
8310 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8311 | _LT_EOF | |
8312 | ||
5213506e | 8313 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8314 | (eval $ac_compile) 2>&5 |
8315 | ac_status=$? | |
5213506e RW |
8316 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8317 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8318 | # Now try to grab the symbols. |
8319 | nlist=conftest.nm | |
43e02a8a RW |
8320 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
8321 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
1cf3d07d | 8322 | ac_status=$? |
5213506e RW |
8323 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8324 | test $ac_status = 0; } && test -s "$nlist"; then | |
1cf3d07d SE |
8325 | # Try sorting and uniquifying the output. |
8326 | if sort "$nlist" | uniq > "$nlist"T; then | |
8327 | mv -f "$nlist"T "$nlist" | |
8328 | else | |
8329 | rm -f "$nlist"T | |
8330 | fi | |
8331 | ||
8332 | # Make sure that we snagged all the symbols we need. | |
8333 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
8334 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
8335 | cat <<_LT_EOF > conftest.$ac_ext | |
8336 | #ifdef __cplusplus | |
8337 | extern "C" { | |
8338 | #endif | |
8339 | ||
8340 | _LT_EOF | |
8341 | # Now generate the symbol file. | |
8342 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
8343 | ||
8344 | cat <<_LT_EOF >> conftest.$ac_ext | |
8345 | ||
8346 | /* The mapping between symbol names and symbols. */ | |
8347 | const struct { | |
8348 | const char *name; | |
8349 | void *address; | |
8350 | } | |
8351 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
8352 | { | |
8353 | { "@PROGRAM@", (void *) 0 }, | |
8354 | _LT_EOF | |
8355 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
8356 | cat <<\_LT_EOF >> conftest.$ac_ext | |
8357 | {0, (void *) 0} | |
8358 | }; | |
8359 | ||
8360 | /* This works around a problem in FreeBSD linker */ | |
8361 | #ifdef FREEBSD_WORKAROUND | |
8362 | static const void *lt_preloaded_setup() { | |
8363 | return lt__PROGRAM__LTX_preloaded_symbols; | |
8364 | } | |
8365 | #endif | |
8366 | ||
8367 | #ifdef __cplusplus | |
8368 | } | |
8369 | #endif | |
8370 | _LT_EOF | |
8371 | # Now try linking the two files. | |
8372 | mv conftest.$ac_objext conftstm.$ac_objext | |
8373 | lt_save_LIBS="$LIBS" | |
8374 | lt_save_CFLAGS="$CFLAGS" | |
8375 | LIBS="conftstm.$ac_objext" | |
8376 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5213506e | 8377 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
8378 | (eval $ac_link) 2>&5 |
8379 | ac_status=$? | |
5213506e RW |
8380 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8381 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
1cf3d07d SE |
8382 | pipe_works=yes |
8383 | fi | |
8384 | LIBS="$lt_save_LIBS" | |
8385 | CFLAGS="$lt_save_CFLAGS" | |
8386 | else | |
8387 | echo "cannot find nm_test_func in $nlist" >&5 | |
8388 | fi | |
8389 | else | |
8390 | echo "cannot find nm_test_var in $nlist" >&5 | |
8391 | fi | |
8392 | else | |
8393 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
8394 | fi | |
8395 | else | |
8396 | echo "$progname: failed program was:" >&5 | |
8397 | cat conftest.$ac_ext >&5 | |
8398 | fi | |
d58dead8 | 8399 | rm -rf conftest* conftst* |
1cf3d07d SE |
8400 | |
8401 | # Do not use the global_symbol_pipe unless it works. | |
8402 | if test "$pipe_works" = yes; then | |
8403 | break | |
8404 | else | |
8405 | lt_cv_sys_global_symbol_pipe= | |
8406 | fi | |
8407 | done | |
8408 | ||
8409 | fi | |
8410 | ||
8411 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
8412 | lt_cv_sys_global_symbol_to_cdecl= | |
8413 | fi | |
8414 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5213506e RW |
8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8416 | $as_echo "failed" >&6; } | |
1cf3d07d | 8417 | else |
5213506e RW |
8418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8419 | $as_echo "ok" >&6; } | |
1cf3d07d SE |
8420 | fi |
8421 | ||
8422 | ||
8423 | ||
8424 | ||
8425 | ||
8426 | ||
8427 | ||
8428 | ||
8429 | ||
8430 | ||
8431 | ||
8432 | ||
8433 | ||
8434 | ||
8435 | ||
d58dead8 PG |
8436 | |
8437 | ||
8438 | ||
8439 | ||
8440 | ||
1cf3d07d SE |
8441 | |
8442 | ||
5213506e RW |
8443 | # Check whether --enable-libtool-lock was given. |
8444 | if test "${enable_libtool_lock+set}" = set; then : | |
8445 | enableval=$enable_libtool_lock; | |
8446 | fi | |
1cf3d07d | 8447 | |
1cf3d07d | 8448 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6de9cd9a | 8449 | |
96b8a615 AJ |
8450 | # Some flags need to be propagated to the compiler or linker for good |
8451 | # libtool support. | |
8452 | case $host in | |
1cf3d07d | 8453 | ia64-*-hpux*) |
96b8a615 | 8454 | # Find out which ABI we are using. |
1cf3d07d | 8455 | echo 'int i;' > conftest.$ac_ext |
5213506e | 8456 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8457 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8458 | ac_status=$? |
5213506e RW |
8459 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8460 | test $ac_status = 0; }; then | |
96b8a615 | 8461 | case `/usr/bin/file conftest.$ac_objext` in |
1cf3d07d SE |
8462 | *ELF-32*) |
8463 | HPUX_IA64_MODE="32" | |
8464 | ;; | |
8465 | *ELF-64*) | |
8466 | HPUX_IA64_MODE="64" | |
8467 | ;; | |
96b8a615 | 8468 | esac |
96b8a615 AJ |
8469 | fi |
8470 | rm -rf conftest* | |
8471 | ;; | |
1cf3d07d | 8472 | *-*-irix6*) |
96b8a615 | 8473 | # Find out which ABI we are using. |
43e02a8a | 8474 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
5213506e | 8475 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8476 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8477 | ac_status=$? |
5213506e RW |
8478 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8479 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8480 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8481 | case `/usr/bin/file conftest.$ac_objext` in | |
8482 | *32-bit*) | |
8483 | LD="${LD-ld} -melf32bsmip" | |
8484 | ;; | |
8485 | *N32*) | |
8486 | LD="${LD-ld} -melf32bmipn32" | |
8487 | ;; | |
8488 | *64-bit*) | |
8489 | LD="${LD-ld} -melf64bmip" | |
8490 | ;; | |
8491 | esac | |
8492 | else | |
8493 | case `/usr/bin/file conftest.$ac_objext` in | |
8494 | *32-bit*) | |
8495 | LD="${LD-ld} -32" | |
8496 | ;; | |
8497 | *N32*) | |
8498 | LD="${LD-ld} -n32" | |
8499 | ;; | |
8500 | *64-bit*) | |
8501 | LD="${LD-ld} -64" | |
8502 | ;; | |
8503 | esac | |
8504 | fi | |
96b8a615 AJ |
8505 | fi |
8506 | rm -rf conftest* | |
8507 | ;; | |
6de9cd9a | 8508 | |
3cbe17f7 | 8509 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
1cf3d07d | 8510 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
96b8a615 AJ |
8511 | # Find out which ABI we are using. |
8512 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 8513 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8514 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8515 | ac_status=$? |
5213506e RW |
8516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8517 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8518 | case `/usr/bin/file conftest.o` in |
8519 | *32-bit*) | |
8520 | case $host in | |
8521 | x86_64-*kfreebsd*-gnu) | |
8522 | LD="${LD-ld} -m elf_i386_fbsd" | |
8523 | ;; | |
8524 | x86_64-*linux*) | |
e6d5f8c9 L |
8525 | case `/usr/bin/file conftest.o` in |
8526 | *x86-64*) | |
8527 | LD="${LD-ld} -m elf32_x86_64" | |
8528 | ;; | |
8529 | *) | |
8530 | LD="${LD-ld} -m elf_i386" | |
8531 | ;; | |
8532 | esac | |
1cf3d07d | 8533 | ;; |
3cbe17f7 AM |
8534 | powerpc64le-*linux*) |
8535 | LD="${LD-ld} -m elf32lppclinux" | |
8536 | ;; | |
8537 | powerpc64-*linux*) | |
1cf3d07d SE |
8538 | LD="${LD-ld} -m elf32ppclinux" |
8539 | ;; | |
8540 | s390x-*linux*) | |
8541 | LD="${LD-ld} -m elf_s390" | |
8542 | ;; | |
8543 | sparc64-*linux*) | |
8544 | LD="${LD-ld} -m elf32_sparc" | |
8545 | ;; | |
8546 | esac | |
8547 | ;; | |
8548 | *64-bit*) | |
8549 | case $host in | |
8550 | x86_64-*kfreebsd*-gnu) | |
8551 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
8552 | ;; | |
8553 | x86_64-*linux*) | |
8554 | LD="${LD-ld} -m elf_x86_64" | |
8555 | ;; | |
3cbe17f7 AM |
8556 | powerpcle-*linux*) |
8557 | LD="${LD-ld} -m elf64lppc" | |
8558 | ;; | |
8559 | powerpc-*linux*) | |
1cf3d07d SE |
8560 | LD="${LD-ld} -m elf64ppc" |
8561 | ;; | |
8562 | s390*-*linux*|s390*-*tpf*) | |
8563 | LD="${LD-ld} -m elf64_s390" | |
8564 | ;; | |
8565 | sparc*-*linux*) | |
8566 | LD="${LD-ld} -m elf64_sparc" | |
8567 | ;; | |
8568 | esac | |
8569 | ;; | |
96b8a615 | 8570 | esac |
6de9cd9a | 8571 | fi |
96b8a615 AJ |
8572 | rm -rf conftest* |
8573 | ;; | |
6de9cd9a | 8574 | |
96b8a615 AJ |
8575 | *-*-sco3.2v5*) |
8576 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8577 | SAVE_CFLAGS="$CFLAGS" | |
8578 | CFLAGS="$CFLAGS -belf" | |
5213506e RW |
8579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8580 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
22e05272 | 8581 | if ${lt_cv_cc_needs_belf+:} false; then : |
5213506e | 8582 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 8583 | else |
1cf3d07d | 8584 | ac_ext=c |
96b8a615 AJ |
8585 | ac_cpp='$CPP $CPPFLAGS' |
8586 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8587 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8588 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a | 8589 | |
f02d008e | 8590 | if test x$gcc_no_link = xyes; then |
22e05272 | 8591 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 8592 | fi |
5213506e | 8593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a | 8594 | /* end confdefs.h. */ |
6de9cd9a DN |
8595 | |
8596 | int | |
8597 | main () | |
8598 | { | |
96b8a615 | 8599 | |
6de9cd9a DN |
8600 | ; |
8601 | return 0; | |
8602 | } | |
8603 | _ACEOF | |
5213506e | 8604 | if ac_fn_c_try_link "$LINENO"; then : |
96b8a615 | 8605 | lt_cv_cc_needs_belf=yes |
6de9cd9a | 8606 | else |
5213506e | 8607 | lt_cv_cc_needs_belf=no |
6de9cd9a | 8608 | fi |
5213506e RW |
8609 | rm -f core conftest.err conftest.$ac_objext \ |
8610 | conftest$ac_exeext conftest.$ac_ext | |
96b8a615 AJ |
8611 | ac_ext=c |
8612 | ac_cpp='$CPP $CPPFLAGS' | |
8613 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8614 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8615 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8616 | ||
6de9cd9a | 8617 | fi |
5213506e RW |
8618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8619 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
96b8a615 AJ |
8620 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
8621 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8622 | CFLAGS="$SAVE_CFLAGS" | |
8623 | fi | |
8624 | ;; | |
1cf3d07d SE |
8625 | sparc*-*solaris*) |
8626 | # Find out which ABI we are using. | |
8627 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 8628 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8629 | (eval $ac_compile) 2>&5 |
8630 | ac_status=$? | |
5213506e RW |
8631 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8632 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8633 | case `/usr/bin/file conftest.o` in |
8634 | *64-bit*) | |
8635 | case $lt_cv_prog_gnu_ld in | |
8636 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
d58dead8 PG |
8637 | *) |
8638 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8639 | LD="${LD-ld} -64" | |
8640 | fi | |
8641 | ;; | |
1cf3d07d SE |
8642 | esac |
8643 | ;; | |
8644 | esac | |
8645 | fi | |
8646 | rm -rf conftest* | |
8647 | ;; | |
96b8a615 AJ |
8648 | esac |
8649 | ||
1cf3d07d | 8650 | need_locks="$enable_libtool_lock" |
96b8a615 | 8651 | |
d58dead8 PG |
8652 | |
8653 | case $host_os in | |
8654 | rhapsody* | darwin*) | |
8655 | if test -n "$ac_tool_prefix"; then | |
8656 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8657 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5213506e RW |
8658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8659 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8660 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
5213506e | 8661 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
8662 | else |
8663 | if test -n "$DSYMUTIL"; then | |
8664 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8665 | else | |
8666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8667 | for as_dir in $PATH | |
8668 | do | |
8669 | IFS=$as_save_IFS | |
8670 | test -z "$as_dir" && as_dir=. | |
5213506e | 8671 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8672 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 8673 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
5213506e | 8674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8675 | break 2 |
8676 | fi | |
8677 | done | |
5213506e RW |
8678 | done |
8679 | IFS=$as_save_IFS | |
d58dead8 PG |
8680 | |
8681 | fi | |
8682 | fi | |
8683 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8684 | if test -n "$DSYMUTIL"; then | |
5213506e RW |
8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8686 | $as_echo "$DSYMUTIL" >&6; } | |
d58dead8 | 8687 | else |
5213506e RW |
8688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8689 | $as_echo "no" >&6; } | |
d58dead8 PG |
8690 | fi |
8691 | ||
5213506e | 8692 | |
d58dead8 PG |
8693 | fi |
8694 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8695 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8696 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8697 | set dummy dsymutil; ac_word=$2 | |
5213506e RW |
8698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8699 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8700 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
5213506e | 8701 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8702 | else |
21be0a5a JB |
8703 | if test -n "$ac_ct_DSYMUTIL"; then |
8704 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
d58dead8 PG |
8705 | else |
8706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8707 | for as_dir in $PATH | |
8708 | do | |
8709 | IFS=$as_save_IFS | |
8710 | test -z "$as_dir" && as_dir=. | |
5213506e | 8711 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8712 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8713 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
5213506e | 8714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8715 | break 2 |
8716 | fi | |
8717 | done | |
5213506e RW |
8718 | done |
8719 | IFS=$as_save_IFS | |
d58dead8 | 8720 | |
d58dead8 PG |
8721 | fi |
8722 | fi | |
21be0a5a JB |
8723 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
8724 | if test -n "$ac_ct_DSYMUTIL"; then | |
8725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8726 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
d58dead8 | 8727 | else |
5213506e RW |
8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8729 | $as_echo "no" >&6; } | |
d58dead8 PG |
8730 | fi |
8731 | ||
21be0a5a JB |
8732 | if test "x$ac_ct_DSYMUTIL" = x; then |
8733 | DSYMUTIL=":" | |
5213506e RW |
8734 | else |
8735 | case $cross_compiling:$ac_tool_warned in | |
8736 | yes:) | |
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8738 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8739 | ac_tool_warned=yes ;; | |
8740 | esac | |
21be0a5a | 8741 | DSYMUTIL=$ac_ct_DSYMUTIL |
5213506e | 8742 | fi |
d58dead8 | 8743 | else |
21be0a5a | 8744 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d58dead8 PG |
8745 | fi |
8746 | ||
8747 | if test -n "$ac_tool_prefix"; then | |
21be0a5a JB |
8748 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
8749 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5213506e RW |
8750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8751 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8752 | if ${ac_cv_prog_NMEDIT+:} false; then : |
5213506e | 8753 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8754 | else |
21be0a5a JB |
8755 | if test -n "$NMEDIT"; then |
8756 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
d58dead8 PG |
8757 | else |
8758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8759 | for as_dir in $PATH | |
8760 | do | |
8761 | IFS=$as_save_IFS | |
8762 | test -z "$as_dir" && as_dir=. | |
5213506e | 8763 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8764 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8765 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
5213506e | 8766 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8767 | break 2 |
8768 | fi | |
8769 | done | |
5213506e RW |
8770 | done |
8771 | IFS=$as_save_IFS | |
d58dead8 PG |
8772 | |
8773 | fi | |
8774 | fi | |
21be0a5a JB |
8775 | NMEDIT=$ac_cv_prog_NMEDIT |
8776 | if test -n "$NMEDIT"; then | |
8777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8778 | $as_echo "$NMEDIT" >&6; } | |
d58dead8 | 8779 | else |
5213506e RW |
8780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8781 | $as_echo "no" >&6; } | |
d58dead8 PG |
8782 | fi |
8783 | ||
5213506e | 8784 | |
d58dead8 | 8785 | fi |
21be0a5a JB |
8786 | if test -z "$ac_cv_prog_NMEDIT"; then |
8787 | ac_ct_NMEDIT=$NMEDIT | |
8788 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8789 | set dummy nmedit; ac_word=$2 | |
5213506e RW |
8790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8791 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8792 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
5213506e | 8793 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8794 | else |
21be0a5a JB |
8795 | if test -n "$ac_ct_NMEDIT"; then |
8796 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
d58dead8 PG |
8797 | else |
8798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8799 | for as_dir in $PATH | |
8800 | do | |
8801 | IFS=$as_save_IFS | |
8802 | test -z "$as_dir" && as_dir=. | |
5213506e | 8803 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8805 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
5213506e | 8806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8807 | break 2 |
8808 | fi | |
8809 | done | |
5213506e RW |
8810 | done |
8811 | IFS=$as_save_IFS | |
d58dead8 | 8812 | |
d58dead8 PG |
8813 | fi |
8814 | fi | |
21be0a5a JB |
8815 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
8816 | if test -n "$ac_ct_NMEDIT"; then | |
8817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8818 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
d58dead8 | 8819 | else |
5213506e RW |
8820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8821 | $as_echo "no" >&6; } | |
d58dead8 PG |
8822 | fi |
8823 | ||
21be0a5a JB |
8824 | if test "x$ac_ct_NMEDIT" = x; then |
8825 | NMEDIT=":" | |
5213506e RW |
8826 | else |
8827 | case $cross_compiling:$ac_tool_warned in | |
8828 | yes:) | |
8829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8830 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8831 | ac_tool_warned=yes ;; | |
8832 | esac | |
21be0a5a | 8833 | NMEDIT=$ac_ct_NMEDIT |
5213506e | 8834 | fi |
d58dead8 | 8835 | else |
21be0a5a | 8836 | NMEDIT="$ac_cv_prog_NMEDIT" |
d58dead8 PG |
8837 | fi |
8838 | ||
8839 | if test -n "$ac_tool_prefix"; then | |
21be0a5a JB |
8840 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
8841 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5213506e RW |
8842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8843 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8844 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 8845 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8846 | else |
21be0a5a JB |
8847 | if test -n "$LIPO"; then |
8848 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
d58dead8 PG |
8849 | else |
8850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8851 | for as_dir in $PATH | |
8852 | do | |
8853 | IFS=$as_save_IFS | |
8854 | test -z "$as_dir" && as_dir=. | |
5213506e | 8855 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8856 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8857 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
5213506e | 8858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8859 | break 2 |
8860 | fi | |
8861 | done | |
5213506e RW |
8862 | done |
8863 | IFS=$as_save_IFS | |
d58dead8 PG |
8864 | |
8865 | fi | |
8866 | fi | |
21be0a5a JB |
8867 | LIPO=$ac_cv_prog_LIPO |
8868 | if test -n "$LIPO"; then | |
8869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8870 | $as_echo "$LIPO" >&6; } | |
d58dead8 | 8871 | else |
5213506e RW |
8872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8873 | $as_echo "no" >&6; } | |
d58dead8 PG |
8874 | fi |
8875 | ||
5213506e | 8876 | |
d58dead8 | 8877 | fi |
21be0a5a JB |
8878 | if test -z "$ac_cv_prog_LIPO"; then |
8879 | ac_ct_LIPO=$LIPO | |
8880 | # Extract the first word of "lipo", so it can be a program name with args. | |
8881 | set dummy lipo; ac_word=$2 | |
5213506e RW |
8882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8883 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8884 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
5213506e | 8885 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8886 | else |
21be0a5a JB |
8887 | if test -n "$ac_ct_LIPO"; then |
8888 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
d58dead8 PG |
8889 | else |
8890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8891 | for as_dir in $PATH | |
8892 | do | |
8893 | IFS=$as_save_IFS | |
8894 | test -z "$as_dir" && as_dir=. | |
5213506e | 8895 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8896 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8897 | ac_cv_prog_ac_ct_LIPO="lipo" |
5213506e | 8898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8899 | break 2 |
8900 | fi | |
8901 | done | |
5213506e RW |
8902 | done |
8903 | IFS=$as_save_IFS | |
d58dead8 | 8904 | |
d58dead8 PG |
8905 | fi |
8906 | fi | |
21be0a5a JB |
8907 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
8908 | if test -n "$ac_ct_LIPO"; then | |
8909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8910 | $as_echo "$ac_ct_LIPO" >&6; } | |
d58dead8 | 8911 | else |
5213506e RW |
8912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8913 | $as_echo "no" >&6; } | |
d58dead8 PG |
8914 | fi |
8915 | ||
21be0a5a JB |
8916 | if test "x$ac_ct_LIPO" = x; then |
8917 | LIPO=":" | |
5213506e RW |
8918 | else |
8919 | case $cross_compiling:$ac_tool_warned in | |
8920 | yes:) | |
8921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8922 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8923 | ac_tool_warned=yes ;; | |
8924 | esac | |
21be0a5a | 8925 | LIPO=$ac_ct_LIPO |
5213506e | 8926 | fi |
d58dead8 | 8927 | else |
21be0a5a | 8928 | LIPO="$ac_cv_prog_LIPO" |
d58dead8 PG |
8929 | fi |
8930 | ||
21be0a5a JB |
8931 | if test -n "$ac_tool_prefix"; then |
8932 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8933 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8935 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8936 | if ${ac_cv_prog_OTOOL+:} false; then : |
5213506e | 8937 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8938 | else |
21be0a5a JB |
8939 | if test -n "$OTOOL"; then |
8940 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
43e02a8a | 8941 | else |
21be0a5a JB |
8942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8943 | for as_dir in $PATH | |
8944 | do | |
8945 | IFS=$as_save_IFS | |
8946 | test -z "$as_dir" && as_dir=. | |
8947 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8948 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8949 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
8950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8951 | break 2 | |
8952 | fi | |
8953 | done | |
8954 | done | |
8955 | IFS=$as_save_IFS | |
43e02a8a RW |
8956 | |
8957 | fi | |
21be0a5a JB |
8958 | fi |
8959 | OTOOL=$ac_cv_prog_OTOOL | |
8960 | if test -n "$OTOOL"; then | |
8961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8962 | $as_echo "$OTOOL" >&6; } | |
8963 | else | |
8964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8965 | $as_echo "no" >&6; } | |
8966 | fi | |
8967 | ||
d58dead8 | 8968 | |
1cf3d07d | 8969 | fi |
21be0a5a JB |
8970 | if test -z "$ac_cv_prog_OTOOL"; then |
8971 | ac_ct_OTOOL=$OTOOL | |
8972 | # Extract the first word of "otool", so it can be a program name with args. | |
8973 | set dummy otool; ac_word=$2 | |
8974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8975 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8976 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
5213506e | 8977 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 8978 | else |
21be0a5a JB |
8979 | if test -n "$ac_ct_OTOOL"; then |
8980 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8981 | else | |
8982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8983 | for as_dir in $PATH | |
1cf3d07d | 8984 | do |
21be0a5a JB |
8985 | IFS=$as_save_IFS |
8986 | test -z "$as_dir" && as_dir=. | |
8987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8989 | ac_cv_prog_ac_ct_OTOOL="otool" |
8990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8991 | break 2 | |
8992 | fi | |
8993 | done | |
8994 | done | |
8995 | IFS=$as_save_IFS | |
6de9cd9a | 8996 | |
21be0a5a JB |
8997 | fi |
8998 | fi | |
8999 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
9000 | if test -n "$ac_ct_OTOOL"; then | |
9001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
9002 | $as_echo "$ac_ct_OTOOL" >&6; } | |
5213506e | 9003 | else |
21be0a5a JB |
9004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9005 | $as_echo "no" >&6; } | |
1cf3d07d | 9006 | fi |
96b8a615 | 9007 | |
21be0a5a JB |
9008 | if test "x$ac_ct_OTOOL" = x; then |
9009 | OTOOL=":" | |
9010 | else | |
9011 | case $cross_compiling:$ac_tool_warned in | |
9012 | yes:) | |
9013 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9014 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9015 | ac_tool_warned=yes ;; | |
9016 | esac | |
9017 | OTOOL=$ac_ct_OTOOL | |
9018 | fi | |
1cf3d07d | 9019 | else |
21be0a5a | 9020 | OTOOL="$ac_cv_prog_OTOOL" |
1cf3d07d | 9021 | fi |
6de9cd9a | 9022 | |
21be0a5a JB |
9023 | if test -n "$ac_tool_prefix"; then |
9024 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
9025 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
9026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9027 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9028 | if ${ac_cv_prog_OTOOL64+:} false; then : |
21be0a5a JB |
9029 | $as_echo_n "(cached) " >&6 |
9030 | else | |
9031 | if test -n "$OTOOL64"; then | |
9032 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
9033 | else | |
9034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9035 | for as_dir in $PATH | |
9036 | do | |
9037 | IFS=$as_save_IFS | |
9038 | test -z "$as_dir" && as_dir=. | |
9039 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 9040 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
9041 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
9042 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9043 | break 2 | |
9044 | fi | |
1cf3d07d | 9045 | done |
21be0a5a JB |
9046 | done |
9047 | IFS=$as_save_IFS | |
9048 | ||
9049 | fi | |
9050 | fi | |
9051 | OTOOL64=$ac_cv_prog_OTOOL64 | |
9052 | if test -n "$OTOOL64"; then | |
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
9054 | $as_echo "$OTOOL64" >&6; } | |
9055 | else | |
9056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9057 | $as_echo "no" >&6; } | |
1cf3d07d | 9058 | fi |
6de9cd9a | 9059 | |
96b8a615 | 9060 | |
1cf3d07d | 9061 | fi |
21be0a5a JB |
9062 | if test -z "$ac_cv_prog_OTOOL64"; then |
9063 | ac_ct_OTOOL64=$OTOOL64 | |
9064 | # Extract the first word of "otool64", so it can be a program name with args. | |
9065 | set dummy otool64; ac_word=$2 | |
9066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9067 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9068 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
21be0a5a | 9069 | $as_echo_n "(cached) " >&6 |
96b8a615 | 9070 | else |
21be0a5a JB |
9071 | if test -n "$ac_ct_OTOOL64"; then |
9072 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
9073 | else | |
9074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9075 | for as_dir in $PATH | |
96b8a615 | 9076 | do |
21be0a5a JB |
9077 | IFS=$as_save_IFS |
9078 | test -z "$as_dir" && as_dir=. | |
9079 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 9080 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
9081 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
9082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9083 | break 2 | |
9084 | fi | |
9085 | done | |
9086 | done | |
9087 | IFS=$as_save_IFS | |
96b8a615 | 9088 | |
21be0a5a JB |
9089 | fi |
9090 | fi | |
9091 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
9092 | if test -n "$ac_ct_OTOOL64"; then | |
9093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
9094 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
5213506e | 9095 | else |
21be0a5a JB |
9096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9097 | $as_echo "no" >&6; } | |
96b8a615 AJ |
9098 | fi |
9099 | ||
21be0a5a JB |
9100 | if test "x$ac_ct_OTOOL64" = x; then |
9101 | OTOOL64=":" | |
9102 | else | |
9103 | case $cross_compiling:$ac_tool_warned in | |
9104 | yes:) | |
9105 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9106 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9107 | ac_tool_warned=yes ;; | |
9108 | esac | |
9109 | OTOOL64=$ac_ct_OTOOL64 | |
9110 | fi | |
6de9cd9a | 9111 | else |
21be0a5a | 9112 | OTOOL64="$ac_cv_prog_OTOOL64" |
6de9cd9a | 9113 | fi |
6de9cd9a | 9114 | |
5213506e | 9115 | |
1cf3d07d | 9116 | |
1cf3d07d SE |
9117 | |
9118 | ||
6de9cd9a | 9119 | |
1cf3d07d | 9120 | |
6de9cd9a | 9121 | |
1cf3d07d | 9122 | |
5213506e | 9123 | |
6de9cd9a | 9124 | |
e87045f3 | 9125 | |
15e92535 | 9126 | |
5213506e | 9127 | |
15e92535 | 9128 | |
15e92535 | 9129 | |
21be0a5a JB |
9130 | |
9131 | ||
9132 | ||
9133 | ||
9134 | ||
9135 | ||
9136 | ||
9137 | ||
9138 | ||
9139 | ||
9140 | ||
9141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
9142 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
22e05272 | 9143 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
21be0a5a | 9144 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 9145 | else |
21be0a5a JB |
9146 | lt_cv_apple_cc_single_mod=no |
9147 | if test -z "${LT_MULTI_MODULE}"; then | |
9148 | # By default we will add the -single_module flag. You can override | |
9149 | # by either setting the environment variable LT_MULTI_MODULE | |
9150 | # non-empty at configure time, or by adding -multi_module to the | |
9151 | # link flags. | |
9152 | rm -rf libconftest.dylib* | |
9153 | echo "int foo(void){return 1;}" > conftest.c | |
9154 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9155 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
9156 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9157 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
9158 | _lt_result=$? | |
9159 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
9160 | lt_cv_apple_cc_single_mod=yes | |
9161 | else | |
9162 | cat conftest.err >&5 | |
9163 | fi | |
9164 | rm -rf libconftest.dylib* | |
9165 | rm -f conftest.* | |
9166 | fi | |
9167 | fi | |
9168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
9169 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
9171 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
22e05272 | 9172 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
21be0a5a JB |
9173 | $as_echo_n "(cached) " >&6 |
9174 | else | |
9175 | lt_cv_ld_exported_symbols_list=no | |
9176 | save_LDFLAGS=$LDFLAGS | |
9177 | echo "_main" > conftest.sym | |
9178 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
9179 | if test x$gcc_no_link = xyes; then | |
22e05272 | 9180 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
9181 | fi |
9182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d | 9183 | /* end confdefs.h. */ |
15e92535 | 9184 | |
1cf3d07d SE |
9185 | int |
9186 | main () | |
9187 | { | |
21be0a5a JB |
9188 | |
9189 | ; | |
5213506e | 9190 | return 0; |
1cf3d07d | 9191 | } |
15e92535 | 9192 | _ACEOF |
21be0a5a JB |
9193 | if ac_fn_c_try_link "$LINENO"; then : |
9194 | lt_cv_ld_exported_symbols_list=yes | |
5213506e | 9195 | else |
21be0a5a | 9196 | lt_cv_ld_exported_symbols_list=no |
1cf3d07d | 9197 | fi |
21be0a5a JB |
9198 | rm -f core conftest.err conftest.$ac_objext \ |
9199 | conftest$ac_exeext conftest.$ac_ext | |
9200 | LDFLAGS="$save_LDFLAGS" | |
15e92535 FXC |
9201 | |
9202 | fi | |
21be0a5a JB |
9203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
9204 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
9206 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
22e05272 | 9207 | if ${lt_cv_ld_force_load+:} false; then : |
21be0a5a JB |
9208 | $as_echo_n "(cached) " >&6 |
9209 | else | |
9210 | lt_cv_ld_force_load=no | |
9211 | cat > conftest.c << _LT_EOF | |
9212 | int forced_loaded() { return 2;} | |
9213 | _LT_EOF | |
9214 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
9215 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
9216 | echo "$AR cru libconftest.a conftest.o" >&5 | |
9217 | $AR cru libconftest.a conftest.o 2>&5 | |
9218 | cat > conftest.c << _LT_EOF | |
9219 | int main() { return 0;} | |
9220 | _LT_EOF | |
9221 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
9222 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
9223 | _lt_result=$? | |
9224 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
9225 | lt_cv_ld_force_load=yes | |
9226 | else | |
9227 | cat conftest.err >&5 | |
9228 | fi | |
9229 | rm -f conftest.err libconftest.a conftest conftest.c | |
9230 | rm -rf conftest.dSYM | |
1cf3d07d SE |
9231 | |
9232 | fi | |
21be0a5a JB |
9233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
9234 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
1352bc88 IS |
9235 | # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to |
9236 | # build without first building modern cctools / linker. | |
9237 | case $host_cpu-$host_os in | |
9238 | *-rhapsody* | *-darwin1.[012]) | |
21be0a5a | 9239 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
1352bc88 | 9240 | *-darwin1.*) |
21be0a5a | 9241 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
1352bc88 IS |
9242 | *-darwin*) |
9243 | # darwin 5.x (macOS 10.1) onwards we only need to adjust when the | |
9244 | # deployment target is forced to an earlier version. | |
9245 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in | |
9246 | UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) | |
9247 | ;; | |
ebf6d33b | 9248 | 10.[012][,.]*) |
1352bc88 IS |
9249 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
9250 | ;; | |
9251 | *) | |
9252 | ;; | |
9253 | esac | |
21be0a5a JB |
9254 | ;; |
9255 | esac | |
9256 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
9257 | _lt_dar_single_mod='$single_module' | |
9258 | fi | |
9259 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
9260 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
9261 | else | |
9262 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9263 | fi | |
9264 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
9265 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
9266 | else | |
9267 | _lt_dsymutil= | |
9268 | fi | |
9269 | ;; | |
9270 | esac | |
1cf3d07d | 9271 | |
1cf3d07d | 9272 | for ac_header in dlfcn.h |
5213506e RW |
9273 | do : |
9274 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
9275 | " | |
22e05272 | 9276 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
1cf3d07d | 9277 | cat >>confdefs.h <<_ACEOF |
5213506e | 9278 | #define HAVE_DLFCN_H 1 |
9cdc381b | 9279 | _ACEOF |
9cdc381b | 9280 | |
1cf3d07d SE |
9281 | fi |
9282 | ||
9283 | done | |
9284 | ||
9285 | ||
9286 | ||
43e02a8a RW |
9287 | |
9288 | ||
d58dead8 PG |
9289 | # Set options |
9290 | ||
9291 | ||
9292 | ||
9293 | ||
9294 | enable_win32_dll=no | |
9295 | ||
9296 | ||
5213506e RW |
9297 | # Check whether --enable-shared was given. |
9298 | if test "${enable_shared+set}" = set; then : | |
9299 | enableval=$enable_shared; p=${PACKAGE-default} | |
d58dead8 PG |
9300 | case $enableval in |
9301 | yes) enable_shared=yes ;; | |
9302 | no) enable_shared=no ;; | |
9303 | *) | |
9304 | enable_shared=no | |
9305 | # Look at the argument we got. We use all the common list separators. | |
9306 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9307 | for pkg in $enableval; do | |
9308 | IFS="$lt_save_ifs" | |
9309 | if test "X$pkg" = "X$p"; then | |
9310 | enable_shared=yes | |
9311 | fi | |
9312 | done | |
9313 | IFS="$lt_save_ifs" | |
9314 | ;; | |
9315 | esac | |
9316 | else | |
9317 | enable_shared=yes | |
5213506e RW |
9318 | fi |
9319 | ||
d58dead8 PG |
9320 | |
9321 | ||
9322 | ||
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | ||
5213506e RW |
9328 | # Check whether --enable-static was given. |
9329 | if test "${enable_static+set}" = set; then : | |
9330 | enableval=$enable_static; p=${PACKAGE-default} | |
d58dead8 PG |
9331 | case $enableval in |
9332 | yes) enable_static=yes ;; | |
9333 | no) enable_static=no ;; | |
9334 | *) | |
9335 | enable_static=no | |
9336 | # Look at the argument we got. We use all the common list separators. | |
9337 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9338 | for pkg in $enableval; do | |
9339 | IFS="$lt_save_ifs" | |
9340 | if test "X$pkg" = "X$p"; then | |
9341 | enable_static=yes | |
9342 | fi | |
9343 | done | |
9344 | IFS="$lt_save_ifs" | |
9345 | ;; | |
9346 | esac | |
9347 | else | |
9348 | enable_static=yes | |
5213506e RW |
9349 | fi |
9350 | ||
d58dead8 PG |
9351 | |
9352 | ||
9353 | ||
9354 | ||
9355 | ||
9356 | ||
9357 | ||
9358 | ||
9359 | ||
5213506e RW |
9360 | # Check whether --with-pic was given. |
9361 | if test "${with_pic+set}" = set; then : | |
9362 | withval=$with_pic; pic_mode="$withval" | |
d58dead8 PG |
9363 | else |
9364 | pic_mode=default | |
5213506e RW |
9365 | fi |
9366 | ||
d58dead8 PG |
9367 | |
9368 | test -z "$pic_mode" && pic_mode=default | |
9369 | ||
9370 | ||
9371 | ||
9372 | ||
9373 | ||
9374 | ||
9375 | ||
5213506e RW |
9376 | # Check whether --enable-fast-install was given. |
9377 | if test "${enable_fast_install+set}" = set; then : | |
9378 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
d58dead8 PG |
9379 | case $enableval in |
9380 | yes) enable_fast_install=yes ;; | |
9381 | no) enable_fast_install=no ;; | |
9382 | *) | |
9383 | enable_fast_install=no | |
9384 | # Look at the argument we got. We use all the common list separators. | |
9385 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9386 | for pkg in $enableval; do | |
9387 | IFS="$lt_save_ifs" | |
9388 | if test "X$pkg" = "X$p"; then | |
9389 | enable_fast_install=yes | |
9390 | fi | |
9391 | done | |
9392 | IFS="$lt_save_ifs" | |
9393 | ;; | |
9394 | esac | |
9395 | else | |
9396 | enable_fast_install=yes | |
5213506e RW |
9397 | fi |
9398 | ||
d58dead8 PG |
9399 | |
9400 | ||
9401 | ||
9402 | ||
9403 | ||
9404 | ||
9405 | ||
9406 | ||
9407 | ||
9408 | ||
1cf3d07d SE |
9409 | # This can be used to rebuild libtool when needed |
9410 | LIBTOOL_DEPS="$ltmain" | |
9411 | ||
9412 | # Always use our own libtool. | |
9413 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9414 | ||
9415 | ||
9416 | ||
9417 | ||
9418 | ||
9419 | ||
9420 | ||
9421 | ||
9422 | ||
9423 | ||
9424 | ||
9425 | ||
9426 | ||
9427 | ||
9428 | ||
9429 | ||
9430 | ||
9431 | ||
9432 | ||
9433 | ||
9434 | ||
9435 | ||
9436 | ||
43e02a8a | 9437 | |
1cf3d07d SE |
9438 | |
9439 | ||
9440 | test -z "$LN_S" && LN_S="ln -s" | |
9441 | ||
9442 | ||
9443 | ||
9444 | ||
9445 | ||
9cdc381b | 9446 | |
1cf3d07d SE |
9447 | |
9448 | ||
9449 | ||
9450 | ||
9451 | ||
9452 | ||
9453 | ||
9454 | ||
9455 | if test -n "${ZSH_VERSION+set}" ; then | |
9456 | setopt NO_GLOB_SUBST | |
9cdc381b | 9457 | fi |
9cdc381b | 9458 | |
5213506e RW |
9459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
9460 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 9461 | if ${lt_cv_objdir+:} false; then : |
5213506e | 9462 | $as_echo_n "(cached) " >&6 |
9cdc381b | 9463 | else |
1cf3d07d SE |
9464 | rm -f .libs 2>/dev/null |
9465 | mkdir .libs 2>/dev/null | |
9466 | if test -d .libs; then | |
9467 | lt_cv_objdir=.libs | |
9468 | else | |
9469 | # MS-DOS does not allow filenames that begin with a dot. | |
9470 | lt_cv_objdir=_libs | |
9cdc381b | 9471 | fi |
1cf3d07d | 9472 | rmdir .libs 2>/dev/null |
9cdc381b | 9473 | fi |
5213506e RW |
9474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
9475 | $as_echo "$lt_cv_objdir" >&6; } | |
1cf3d07d SE |
9476 | objdir=$lt_cv_objdir |
9477 | ||
9478 | ||
9479 | ||
9480 | ||
9cdc381b BD |
9481 | |
9482 | cat >>confdefs.h <<_ACEOF | |
1cf3d07d | 9483 | #define LT_OBJDIR "$lt_cv_objdir/" |
9cdc381b BD |
9484 | _ACEOF |
9485 | ||
1cf3d07d SE |
9486 | |
9487 | ||
9488 | ||
1cf3d07d SE |
9489 | case $host_os in |
9490 | aix3*) | |
9491 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9492 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9493 | # vanish in a puff of smoke. | |
9494 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9495 | COLLECT_NAMES= | |
9496 | export COLLECT_NAMES | |
9497 | fi | |
9498 | ;; | |
9499 | esac | |
9500 | ||
1cf3d07d SE |
9501 | # Global variables: |
9502 | ofile=libtool | |
9503 | can_build_shared=yes | |
9504 | ||
9505 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
9506 | # which needs '.lib'). | |
9507 | libext=a | |
9508 | ||
9509 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9510 | ||
9511 | old_CC="$CC" | |
9512 | old_CFLAGS="$CFLAGS" | |
9513 | ||
9514 | # Set sane defaults for various variables | |
9515 | test -z "$CC" && CC=cc | |
9516 | test -z "$LTCC" && LTCC=$CC | |
9517 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9518 | test -z "$LD" && LD=ld | |
9519 | test -z "$ac_objext" && ac_objext=o | |
9520 | ||
9521 | for cc_temp in $compiler""; do | |
9522 | case $cc_temp in | |
9523 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9524 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9525 | \-*) ;; | |
9526 | *) break;; | |
9527 | esac | |
9528 | done | |
43e02a8a | 9529 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
9530 | |
9531 | ||
9532 | # Only perform the check for file, if the check method requires it | |
9533 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9534 | case $deplibs_check_method in | |
9535 | file_magic*) | |
9536 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5213506e RW |
9537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
9538 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
22e05272 | 9539 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 9540 | $as_echo_n "(cached) " >&6 |
9cdc381b | 9541 | else |
1cf3d07d SE |
9542 | case $MAGIC_CMD in |
9543 | [\\/*] | ?:[\\/]*) | |
9544 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9545 | ;; | |
9546 | *) | |
9547 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9548 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9549 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9550 | for ac_dir in $ac_dummy; do | |
9551 | IFS="$lt_save_ifs" | |
9552 | test -z "$ac_dir" && ac_dir=. | |
9553 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9554 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9555 | if test -n "$file_magic_test_file"; then | |
9556 | case $deplibs_check_method in | |
9557 | "file_magic "*) | |
9558 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9559 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9560 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9561 | $EGREP "$file_magic_regex" > /dev/null; then | |
9562 | : | |
9563 | else | |
9564 | cat <<_LT_EOF 1>&2 | |
9cdc381b | 9565 | |
1cf3d07d SE |
9566 | *** Warning: the command libtool uses to detect shared libraries, |
9567 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9568 | *** The result is that libtool may fail to recognize shared libraries | |
9569 | *** as such. This will affect the creation of libtool libraries that | |
9570 | *** depend on shared libraries, but programs linked with such libtool | |
9571 | *** libraries will work regardless of this problem. Nevertheless, you | |
9572 | *** may want to report the problem to your system manager and/or to | |
9573 | *** bug-libtool@gnu.org | |
9574 | ||
9575 | _LT_EOF | |
9576 | fi ;; | |
9577 | esac | |
9578 | fi | |
9579 | break | |
9580 | fi | |
9581 | done | |
9582 | IFS="$lt_save_ifs" | |
9583 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9584 | ;; | |
9585 | esac | |
9586 | fi | |
9587 | ||
9588 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9589 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9591 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 9592 | else |
5213506e RW |
9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9594 | $as_echo "no" >&6; } | |
1cf3d07d SE |
9595 | fi |
9596 | ||
9597 | ||
9598 | ||
9599 | ||
9600 | ||
9601 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9602 | if test -n "$ac_tool_prefix"; then | |
5213506e RW |
9603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
9604 | $as_echo_n "checking for file... " >&6; } | |
22e05272 | 9605 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 9606 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
9607 | else |
9608 | case $MAGIC_CMD in | |
9609 | [\\/*] | ?:[\\/]*) | |
9610 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9611 | ;; | |
9612 | *) | |
9613 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9614 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9615 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9616 | for ac_dir in $ac_dummy; do | |
9617 | IFS="$lt_save_ifs" | |
9618 | test -z "$ac_dir" && ac_dir=. | |
9619 | if test -f $ac_dir/file; then | |
9620 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9621 | if test -n "$file_magic_test_file"; then | |
9622 | case $deplibs_check_method in | |
9623 | "file_magic "*) | |
9624 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9625 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9626 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9627 | $EGREP "$file_magic_regex" > /dev/null; then | |
9628 | : | |
9629 | else | |
9630 | cat <<_LT_EOF 1>&2 | |
9631 | ||
9632 | *** Warning: the command libtool uses to detect shared libraries, | |
9633 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9634 | *** The result is that libtool may fail to recognize shared libraries | |
9635 | *** as such. This will affect the creation of libtool libraries that | |
9636 | *** depend on shared libraries, but programs linked with such libtool | |
9637 | *** libraries will work regardless of this problem. Nevertheless, you | |
9638 | *** may want to report the problem to your system manager and/or to | |
9639 | *** bug-libtool@gnu.org | |
9640 | ||
9641 | _LT_EOF | |
9642 | fi ;; | |
9643 | esac | |
9644 | fi | |
9645 | break | |
9646 | fi | |
9647 | done | |
9648 | IFS="$lt_save_ifs" | |
9649 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9650 | ;; | |
9651 | esac | |
9652 | fi | |
9653 | ||
9654 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9655 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
9656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9657 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 9658 | else |
5213506e RW |
9659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9660 | $as_echo "no" >&6; } | |
1cf3d07d SE |
9661 | fi |
9662 | ||
9663 | ||
9664 | else | |
9665 | MAGIC_CMD=: | |
9666 | fi | |
9667 | fi | |
9668 | ||
9669 | fi | |
9670 | ;; | |
9671 | esac | |
9672 | ||
9673 | # Use C for the default configuration in the libtool script | |
9674 | ||
9675 | lt_save_CC="$CC" | |
9676 | ac_ext=c | |
9677 | ac_cpp='$CPP $CPPFLAGS' | |
9678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9681 | ||
9682 | ||
9683 | # Source file extension for C test sources. | |
9684 | ac_ext=c | |
9685 | ||
9686 | # Object file extension for compiled C test sources. | |
9687 | objext=o | |
9688 | objext=$objext | |
9689 | ||
9690 | # Code to be used in simple compile tests | |
9691 | lt_simple_compile_test_code="int some_variable = 0;" | |
9692 | ||
9693 | # Code to be used in simple link tests | |
9694 | lt_simple_link_test_code='int main(){return(0);}' | |
9695 | ||
9696 | ||
9697 | ||
9698 | ||
9699 | ||
9700 | ||
9701 | ||
9702 | # If no C compiler was specified, use CC. | |
9703 | LTCC=${LTCC-"$CC"} | |
9704 | ||
9705 | # If no C compiler flags were specified, use CFLAGS. | |
9706 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9707 | ||
9708 | # Allow CC to be a program name with arguments. | |
9709 | compiler=$CC | |
9710 | ||
9711 | # Save the default compiler, since it gets overwritten when the other | |
9712 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9713 | compiler_DEFAULT=$CC | |
9714 | ||
9715 | # save warnings/boilerplate of simple test code | |
9716 | ac_outfile=conftest.$ac_objext | |
9717 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9718 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9719 | _lt_compiler_boilerplate=`cat conftest.err` | |
9720 | $RM conftest* | |
9721 | ||
9722 | ac_outfile=conftest.$ac_objext | |
9723 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9724 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9725 | _lt_linker_boilerplate=`cat conftest.err` | |
d58dead8 | 9726 | $RM -r conftest* |
1cf3d07d SE |
9727 | |
9728 | ||
9729 | ## CAVEAT EMPTOR: | |
9730 | ## There is no encapsulation within the following macros, do not change | |
9731 | ## the running order or otherwise move them around unless you know exactly | |
9732 | ## what you are doing... | |
9733 | if test -n "$compiler"; then | |
9734 | ||
9735 | lt_prog_compiler_no_builtin_flag= | |
9736 | ||
9737 | if test "$GCC" = yes; then | |
43e02a8a RW |
9738 | case $cc_basename in |
9739 | nvcc*) | |
9740 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9741 | *) | |
9742 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9743 | esac | |
1cf3d07d | 9744 | |
5213506e RW |
9745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9746 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
22e05272 | 9747 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
5213506e | 9748 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
9749 | else |
9750 | lt_cv_prog_compiler_rtti_exceptions=no | |
9751 | ac_outfile=conftest.$ac_objext | |
9752 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9753 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9754 | # Insert the option either (1) after the last *FLAGS variable, or | |
9755 | # (2) before a word containing "conftest.", or (3) at the end. | |
9756 | # Note that $ac_compile itself does not contain backslashes and begins | |
9757 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9758 | # The option is referenced via a variable to avoid confusing sed. | |
9759 | lt_compile=`echo "$ac_compile" | $SED \ | |
9760 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9761 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9762 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 9763 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
9764 | (eval "$lt_compile" 2>conftest.err) |
9765 | ac_status=$? | |
9766 | cat conftest.err >&5 | |
43e02a8a | 9767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
9768 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9769 | # The compiler can only warn and ignore the option if not recognized | |
9770 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 9771 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
9772 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9773 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9774 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9775 | fi | |
9776 | fi | |
9777 | $RM conftest* | |
9778 | ||
9779 | fi | |
5213506e RW |
9780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
9781 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
1cf3d07d SE |
9782 | |
9783 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9784 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9785 | else | |
9786 | : | |
9787 | fi | |
9788 | ||
9789 | fi | |
9790 | ||
9791 | ||
9792 | ||
9793 | ||
9794 | ||
9795 | ||
9796 | lt_prog_compiler_wl= | |
9797 | lt_prog_compiler_pic= | |
9798 | lt_prog_compiler_static= | |
9799 | ||
5213506e RW |
9800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9801 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
9802 | |
9803 | if test "$GCC" = yes; then | |
9804 | lt_prog_compiler_wl='-Wl,' | |
9805 | lt_prog_compiler_static='-static' | |
9806 | ||
9807 | case $host_os in | |
9808 | aix*) | |
9809 | # All AIX code is PIC. | |
9810 | if test "$host_cpu" = ia64; then | |
9811 | # AIX 5 now supports IA64 processor | |
9812 | lt_prog_compiler_static='-Bstatic' | |
9813 | fi | |
bad8a4a7 | 9814 | lt_prog_compiler_pic='-fPIC' |
1cf3d07d SE |
9815 | ;; |
9816 | ||
9817 | amigaos*) | |
d58dead8 PG |
9818 | case $host_cpu in |
9819 | powerpc) | |
9820 | # see comment about AmigaOS4 .so support | |
9821 | lt_prog_compiler_pic='-fPIC' | |
9822 | ;; | |
9823 | m68k) | |
9824 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9825 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9826 | # like `-m68040'. | |
9827 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9828 | ;; | |
9829 | esac | |
1cf3d07d SE |
9830 | ;; |
9831 | ||
9832 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9833 | # PIC is the default for these OSes. | |
9834 | ;; | |
9835 | ||
d58dead8 | 9836 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
9837 | # This hack is so that the source file can tell whether it is being |
9838 | # built for inclusion in a dll (and should export symbols for example). | |
9839 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9840 | # (--disable-auto-import) libraries | |
9841 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9842 | ;; | |
9843 | ||
9844 | darwin* | rhapsody*) | |
9845 | # PIC is the default on this platform | |
9846 | # Common symbols not allowed in MH_DYLIB files | |
9847 | lt_prog_compiler_pic='-fno-common' | |
9848 | ;; | |
9849 | ||
43e02a8a RW |
9850 | haiku*) |
9851 | # PIC is the default for Haiku. | |
9852 | # The "-static" flag exists, but is broken. | |
9853 | lt_prog_compiler_static= | |
9854 | ;; | |
9855 | ||
1cf3d07d | 9856 | hpux*) |
d58dead8 PG |
9857 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
9858 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9859 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 9860 | case $host_cpu in |
d58dead8 | 9861 | hppa*64*) |
1cf3d07d SE |
9862 | # +Z the default |
9863 | ;; | |
9864 | *) | |
9865 | lt_prog_compiler_pic='-fPIC' | |
9866 | ;; | |
9867 | esac | |
9868 | ;; | |
9869 | ||
9870 | interix[3-9]*) | |
9871 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9872 | # Instead, we relocate shared libraries at runtime. | |
9873 | ;; | |
9874 | ||
9875 | msdosdjgpp*) | |
9876 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9877 | # on systems that don't support them. | |
9878 | lt_prog_compiler_can_build_shared=no | |
9879 | enable_shared=no | |
9880 | ;; | |
9881 | ||
9882 | *nto* | *qnx*) | |
9883 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9884 | # it will coredump. | |
9885 | lt_prog_compiler_pic='-fPIC -shared' | |
9886 | ;; | |
9887 | ||
9888 | sysv4*MP*) | |
9889 | if test -d /usr/nec; then | |
9890 | lt_prog_compiler_pic=-Kconform_pic | |
9891 | fi | |
9892 | ;; | |
9893 | ||
9894 | *) | |
9895 | lt_prog_compiler_pic='-fPIC' | |
9896 | ;; | |
9897 | esac | |
43e02a8a RW |
9898 | |
9899 | case $cc_basename in | |
9900 | nvcc*) # Cuda Compiler Driver 2.2 | |
9901 | lt_prog_compiler_wl='-Xlinker ' | |
9902 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9903 | ;; | |
9904 | esac | |
1cf3d07d SE |
9905 | else |
9906 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9907 | case $host_os in | |
9908 | aix*) | |
9909 | lt_prog_compiler_wl='-Wl,' | |
9910 | if test "$host_cpu" = ia64; then | |
9911 | # AIX 5 now supports IA64 processor | |
9912 | lt_prog_compiler_static='-Bstatic' | |
9913 | else | |
9914 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9915 | fi | |
9916 | ;; | |
1cf3d07d | 9917 | |
d58dead8 | 9918 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
9919 | # This hack is so that the source file can tell whether it is being |
9920 | # built for inclusion in a dll (and should export symbols for example). | |
9921 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9922 | ;; | |
9923 | ||
9924 | hpux9* | hpux10* | hpux11*) | |
9925 | lt_prog_compiler_wl='-Wl,' | |
9926 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9927 | # not for PA HP-UX. | |
9928 | case $host_cpu in | |
9929 | hppa*64*|ia64*) | |
9930 | # +Z the default | |
9931 | ;; | |
9932 | *) | |
9933 | lt_prog_compiler_pic='+Z' | |
9934 | ;; | |
9935 | esac | |
9936 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9937 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9938 | ;; | |
9939 | ||
9940 | irix5* | irix6* | nonstopux*) | |
9941 | lt_prog_compiler_wl='-Wl,' | |
9942 | # PIC (with -KPIC) is the default. | |
9943 | lt_prog_compiler_static='-non_shared' | |
9944 | ;; | |
9945 | ||
7a9d3fe8 | 9946 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 9947 | case $cc_basename in |
d58dead8 PG |
9948 | # old Intel for x86_64 which still supported -KPIC. |
9949 | ecc*) | |
1cf3d07d SE |
9950 | lt_prog_compiler_wl='-Wl,' |
9951 | lt_prog_compiler_pic='-KPIC' | |
9952 | lt_prog_compiler_static='-static' | |
9953 | ;; | |
d58dead8 PG |
9954 | # icc used to be incompatible with GCC. |
9955 | # ICC 10 doesn't accept -KPIC any more. | |
9956 | icc* | ifort*) | |
9957 | lt_prog_compiler_wl='-Wl,' | |
9958 | lt_prog_compiler_pic='-fPIC' | |
9959 | lt_prog_compiler_static='-static' | |
9960 | ;; | |
9961 | # Lahey Fortran 8.1. | |
9962 | lf95*) | |
9963 | lt_prog_compiler_wl='-Wl,' | |
9964 | lt_prog_compiler_pic='--shared' | |
9965 | lt_prog_compiler_static='--static' | |
9966 | ;; | |
43e02a8a | 9967 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
9968 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9969 | # which looks to be a dead project) | |
9970 | lt_prog_compiler_wl='-Wl,' | |
9971 | lt_prog_compiler_pic='-fpic' | |
9972 | lt_prog_compiler_static='-Bstatic' | |
9973 | ;; | |
9974 | ccc*) | |
9975 | lt_prog_compiler_wl='-Wl,' | |
9976 | # All Alpha code is PIC. | |
9977 | lt_prog_compiler_static='-non_shared' | |
9978 | ;; | |
43e02a8a RW |
9979 | xl* | bgxl* | bgf* | mpixl*) |
9980 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
d58dead8 PG |
9981 | lt_prog_compiler_wl='-Wl,' |
9982 | lt_prog_compiler_pic='-qpic' | |
9983 | lt_prog_compiler_static='-qstaticlink' | |
9984 | ;; | |
1cf3d07d SE |
9985 | *) |
9986 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
9987 | *Sun\ F* | *Sun*Fortran*) |
9988 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
9989 | lt_prog_compiler_pic='-KPIC' |
9990 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 9991 | lt_prog_compiler_wl='' |
1cf3d07d | 9992 | ;; |
43e02a8a RW |
9993 | *Sun\ C*) |
9994 | # Sun C 5.9 | |
1cf3d07d SE |
9995 | lt_prog_compiler_pic='-KPIC' |
9996 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 9997 | lt_prog_compiler_wl='-Wl,' |
1cf3d07d SE |
9998 | ;; |
9999 | esac | |
10000 | ;; | |
10001 | esac | |
10002 | ;; | |
10003 | ||
10004 | newsos6) | |
10005 | lt_prog_compiler_pic='-KPIC' | |
10006 | lt_prog_compiler_static='-Bstatic' | |
10007 | ;; | |
10008 | ||
10009 | *nto* | *qnx*) | |
10010 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
10011 | # it will coredump. | |
10012 | lt_prog_compiler_pic='-fPIC -shared' | |
10013 | ;; | |
10014 | ||
10015 | osf3* | osf4* | osf5*) | |
10016 | lt_prog_compiler_wl='-Wl,' | |
10017 | # All OSF/1 code is PIC. | |
10018 | lt_prog_compiler_static='-non_shared' | |
10019 | ;; | |
10020 | ||
10021 | rdos*) | |
10022 | lt_prog_compiler_static='-non_shared' | |
10023 | ;; | |
10024 | ||
10025 | solaris*) | |
10026 | lt_prog_compiler_pic='-KPIC' | |
10027 | lt_prog_compiler_static='-Bstatic' | |
10028 | case $cc_basename in | |
10029 | f77* | f90* | f95*) | |
10030 | lt_prog_compiler_wl='-Qoption ld ';; | |
10031 | *) | |
10032 | lt_prog_compiler_wl='-Wl,';; | |
10033 | esac | |
10034 | ;; | |
10035 | ||
10036 | sunos4*) | |
10037 | lt_prog_compiler_wl='-Qoption ld ' | |
10038 | lt_prog_compiler_pic='-PIC' | |
10039 | lt_prog_compiler_static='-Bstatic' | |
10040 | ;; | |
10041 | ||
10042 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
10043 | lt_prog_compiler_wl='-Wl,' | |
10044 | lt_prog_compiler_pic='-KPIC' | |
10045 | lt_prog_compiler_static='-Bstatic' | |
10046 | ;; | |
10047 | ||
10048 | sysv4*MP*) | |
10049 | if test -d /usr/nec ;then | |
10050 | lt_prog_compiler_pic='-Kconform_pic' | |
10051 | lt_prog_compiler_static='-Bstatic' | |
10052 | fi | |
10053 | ;; | |
10054 | ||
10055 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
10056 | lt_prog_compiler_wl='-Wl,' | |
10057 | lt_prog_compiler_pic='-KPIC' | |
10058 | lt_prog_compiler_static='-Bstatic' | |
10059 | ;; | |
10060 | ||
10061 | unicos*) | |
10062 | lt_prog_compiler_wl='-Wl,' | |
10063 | lt_prog_compiler_can_build_shared=no | |
10064 | ;; | |
10065 | ||
10066 | uts4*) | |
10067 | lt_prog_compiler_pic='-pic' | |
10068 | lt_prog_compiler_static='-Bstatic' | |
10069 | ;; | |
10070 | ||
10071 | *) | |
10072 | lt_prog_compiler_can_build_shared=no | |
10073 | ;; | |
10074 | esac | |
10075 | fi | |
10076 | ||
10077 | case $host_os in | |
10078 | # For platforms which do not support PIC, -DPIC is meaningless: | |
10079 | *djgpp*) | |
10080 | lt_prog_compiler_pic= | |
10081 | ;; | |
10082 | *) | |
10083 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
10084 | ;; | |
10085 | esac | |
5213506e RW |
10086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
10087 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
1cf3d07d SE |
10088 | |
10089 | ||
10090 | ||
10091 | ||
10092 | ||
10093 | ||
10094 | # | |
10095 | # Check to make sure the PIC flag actually works. | |
10096 | # | |
10097 | if test -n "$lt_prog_compiler_pic"; then | |
5213506e RW |
10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
10099 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
22e05272 | 10100 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
5213506e | 10101 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 10102 | else |
d58dead8 | 10103 | lt_cv_prog_compiler_pic_works=no |
1cf3d07d SE |
10104 | ac_outfile=conftest.$ac_objext |
10105 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10106 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
10107 | # Insert the option either (1) after the last *FLAGS variable, or | |
10108 | # (2) before a word containing "conftest.", or (3) at the end. | |
10109 | # Note that $ac_compile itself does not contain backslashes and begins | |
10110 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10111 | # The option is referenced via a variable to avoid confusing sed. | |
10112 | lt_compile=`echo "$ac_compile" | $SED \ | |
10113 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10114 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10115 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10116 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10117 | (eval "$lt_compile" 2>conftest.err) |
10118 | ac_status=$? | |
10119 | cat conftest.err >&5 | |
43e02a8a | 10120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10121 | if (exit $ac_status) && test -s "$ac_outfile"; then |
10122 | # The compiler can only warn and ignore the option if not recognized | |
10123 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 10124 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
10125 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10126 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 10127 | lt_cv_prog_compiler_pic_works=yes |
1cf3d07d SE |
10128 | fi |
10129 | fi | |
10130 | $RM conftest* | |
10131 | ||
10132 | fi | |
5213506e RW |
10133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
10134 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
1cf3d07d | 10135 | |
d58dead8 | 10136 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
1cf3d07d SE |
10137 | case $lt_prog_compiler_pic in |
10138 | "" | " "*) ;; | |
10139 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10140 | esac | |
10141 | else | |
10142 | lt_prog_compiler_pic= | |
10143 | lt_prog_compiler_can_build_shared=no | |
10144 | fi | |
10145 | ||
10146 | fi | |
10147 | ||
10148 | ||
10149 | ||
10150 | ||
10151 | ||
10152 | ||
10153 | # | |
10154 | # Check to make sure the static flag actually works. | |
10155 | # | |
10156 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
5213506e RW |
10157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
10158 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 10159 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
5213506e | 10160 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 10161 | else |
d58dead8 | 10162 | lt_cv_prog_compiler_static_works=no |
1cf3d07d SE |
10163 | save_LDFLAGS="$LDFLAGS" |
10164 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
10165 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10166 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10167 | # The linker can only warn and ignore the option if not recognized | |
10168 | # So say no if there are warnings | |
10169 | if test -s conftest.err; then | |
10170 | # Append any errors to the config.log. | |
10171 | cat conftest.err 1>&5 | |
43e02a8a | 10172 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
10173 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10174 | if diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 10175 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
10176 | fi |
10177 | else | |
d58dead8 | 10178 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
10179 | fi |
10180 | fi | |
d58dead8 | 10181 | $RM -r conftest* |
1cf3d07d SE |
10182 | LDFLAGS="$save_LDFLAGS" |
10183 | ||
10184 | fi | |
5213506e RW |
10185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
10186 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
1cf3d07d | 10187 | |
d58dead8 | 10188 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
1cf3d07d SE |
10189 | : |
10190 | else | |
10191 | lt_prog_compiler_static= | |
10192 | fi | |
10193 | ||
10194 | ||
10195 | ||
10196 | ||
10197 | ||
10198 | ||
10199 | ||
5213506e RW |
10200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10201 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 10202 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 10203 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10204 | else |
10205 | lt_cv_prog_compiler_c_o=no | |
10206 | $RM -r conftest 2>/dev/null | |
10207 | mkdir conftest | |
10208 | cd conftest | |
10209 | mkdir out | |
10210 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10211 | ||
10212 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10213 | # Insert the option either (1) after the last *FLAGS variable, or | |
10214 | # (2) before a word containing "conftest.", or (3) at the end. | |
10215 | # Note that $ac_compile itself does not contain backslashes and begins | |
10216 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10217 | lt_compile=`echo "$ac_compile" | $SED \ | |
10218 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10219 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10220 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10221 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10222 | (eval "$lt_compile" 2>out/conftest.err) |
10223 | ac_status=$? | |
10224 | cat out/conftest.err >&5 | |
43e02a8a | 10225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10226 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10227 | then | |
10228 | # The compiler can only warn and ignore the option if not recognized | |
10229 | # So say no if there are warnings | |
43e02a8a | 10230 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
10231 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10232 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10233 | lt_cv_prog_compiler_c_o=yes | |
10234 | fi | |
10235 | fi | |
10236 | chmod u+w . 2>&5 | |
10237 | $RM conftest* | |
10238 | # SGI C++ compiler will create directory out/ii_files/ for | |
10239 | # template instantiation | |
10240 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10241 | $RM out/* && rmdir out | |
10242 | cd .. | |
10243 | $RM -r conftest | |
10244 | $RM conftest* | |
10245 | ||
10246 | fi | |
5213506e RW |
10247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10248 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
10249 | |
10250 | ||
10251 | ||
10252 | ||
10253 | ||
10254 | ||
5213506e RW |
10255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10256 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 10257 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 10258 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10259 | else |
10260 | lt_cv_prog_compiler_c_o=no | |
10261 | $RM -r conftest 2>/dev/null | |
10262 | mkdir conftest | |
10263 | cd conftest | |
10264 | mkdir out | |
10265 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10266 | ||
10267 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10268 | # Insert the option either (1) after the last *FLAGS variable, or | |
10269 | # (2) before a word containing "conftest.", or (3) at the end. | |
10270 | # Note that $ac_compile itself does not contain backslashes and begins | |
10271 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10272 | lt_compile=`echo "$ac_compile" | $SED \ | |
10273 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10274 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10275 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10276 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10277 | (eval "$lt_compile" 2>out/conftest.err) |
10278 | ac_status=$? | |
10279 | cat out/conftest.err >&5 | |
43e02a8a | 10280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10281 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10282 | then | |
10283 | # The compiler can only warn and ignore the option if not recognized | |
10284 | # So say no if there are warnings | |
43e02a8a | 10285 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
10286 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10287 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10288 | lt_cv_prog_compiler_c_o=yes | |
10289 | fi | |
10290 | fi | |
10291 | chmod u+w . 2>&5 | |
10292 | $RM conftest* | |
10293 | # SGI C++ compiler will create directory out/ii_files/ for | |
10294 | # template instantiation | |
10295 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10296 | $RM out/* && rmdir out | |
10297 | cd .. | |
10298 | $RM -r conftest | |
10299 | $RM conftest* | |
10300 | ||
10301 | fi | |
5213506e RW |
10302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10303 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
10304 | |
10305 | ||
10306 | ||
10307 | ||
10308 | hard_links="nottested" | |
10309 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10310 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
10311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
10312 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
10313 | hard_links=yes |
10314 | $RM conftest* | |
10315 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10316 | touch conftest.a | |
10317 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10318 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
10319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
10320 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 10321 | if test "$hard_links" = no; then |
5213506e RW |
10322 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
10323 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
10324 | need_locks=warn |
10325 | fi | |
10326 | else | |
10327 | need_locks=no | |
10328 | fi | |
10329 | ||
10330 | ||
10331 | ||
10332 | ||
10333 | ||
10334 | ||
5213506e RW |
10335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10336 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
10337 | |
10338 | runpath_var= | |
10339 | allow_undefined_flag= | |
10340 | always_export_symbols=no | |
10341 | archive_cmds= | |
10342 | archive_expsym_cmds= | |
10343 | compiler_needs_object=no | |
10344 | enable_shared_with_static_runtimes=no | |
10345 | export_dynamic_flag_spec= | |
10346 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10347 | hardcode_automatic=no | |
10348 | hardcode_direct=no | |
10349 | hardcode_direct_absolute=no | |
10350 | hardcode_libdir_flag_spec= | |
10351 | hardcode_libdir_flag_spec_ld= | |
10352 | hardcode_libdir_separator= | |
10353 | hardcode_minus_L=no | |
10354 | hardcode_shlibpath_var=unsupported | |
10355 | inherit_rpath=no | |
10356 | link_all_deplibs=unknown | |
10357 | module_cmds= | |
10358 | module_expsym_cmds= | |
10359 | old_archive_from_new_cmds= | |
10360 | old_archive_from_expsyms_cmds= | |
10361 | thread_safe_flag_spec= | |
10362 | whole_archive_flag_spec= | |
10363 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10364 | # included in the symbol list | |
10365 | include_expsyms= | |
10366 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10367 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10368 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10369 | # as well as any symbol that contains `d'. | |
d58dead8 | 10370 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
10371 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
10372 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10373 | # the symbol is explicitly referenced. Since portable code cannot | |
10374 | # rely on this symbol name, it's probably fine to never include it in | |
10375 | # preloaded symbol tables. | |
d58dead8 | 10376 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
10377 | extract_expsyms_cmds= |
10378 | ||
10379 | case $host_os in | |
d58dead8 | 10380 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10381 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
10382 | # When not using gcc, we currently assume that we are using | |
10383 | # Microsoft Visual C++. | |
10384 | if test "$GCC" != yes; then | |
10385 | with_gnu_ld=no | |
10386 | fi | |
10387 | ;; | |
10388 | interix*) | |
10389 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10390 | with_gnu_ld=yes | |
10391 | ;; | |
10392 | openbsd*) | |
10393 | with_gnu_ld=no | |
10394 | ;; | |
10395 | esac | |
10396 | ||
10397 | ld_shlibs=yes | |
43e02a8a RW |
10398 | |
10399 | # On some targets, GNU ld is compatible enough with the native linker | |
10400 | # that we're better off using the native interface for both. | |
10401 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 10402 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
10403 | case $host_os in |
10404 | aix*) | |
10405 | # The AIX port of GNU ld has always aspired to compatibility | |
10406 | # with the native linker. However, as the warning in the GNU ld | |
10407 | # block says, versions before 2.19.5* couldn't really create working | |
10408 | # shared libraries, regardless of the interface used. | |
10409 | case `$LD -v 2>&1` in | |
10410 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10411 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10412 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10413 | *) | |
10414 | lt_use_gnu_ld_interface=yes | |
10415 | ;; | |
10416 | esac | |
10417 | ;; | |
10418 | *) | |
10419 | lt_use_gnu_ld_interface=yes | |
10420 | ;; | |
10421 | esac | |
10422 | fi | |
10423 | ||
10424 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
10425 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10426 | wlarc='${wl}' | |
10427 | ||
10428 | # Set some defaults for GNU ld with shared library support. These | |
10429 | # are reset later if shared libraries are not supported. Putting them | |
10430 | # here allows them to be overridden if necessary. | |
10431 | runpath_var=LD_RUN_PATH | |
10432 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10433 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10434 | # ancient GNU ld didn't support --whole-archive et. al. | |
10435 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10436 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10437 | else | |
10438 | whole_archive_flag_spec= | |
10439 | fi | |
10440 | supports_anon_versioning=no | |
10441 | case `$LD -v 2>&1` in | |
43e02a8a | 10442 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
10443 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
10444 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10445 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10446 | *\ 2.11.*) ;; # other 2.11 versions | |
10447 | *) supports_anon_versioning=yes ;; | |
10448 | esac | |
10449 | ||
10450 | # See if GNU ld supports shared libraries. | |
10451 | case $host_os in | |
4f6bebc3 | 10452 | aix[3-9]*) |
1cf3d07d SE |
10453 | # On AIX/PPC, the GNU linker is very broken |
10454 | if test "$host_cpu" != ia64; then | |
10455 | ld_shlibs=no | |
10456 | cat <<_LT_EOF 1>&2 | |
10457 | ||
43e02a8a | 10458 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
10459 | *** to be unable to reliably create shared libraries on AIX. |
10460 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
10461 | *** really care for shared libraries, you may want to install binutils |
10462 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10463 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
10464 | |
10465 | _LT_EOF | |
10466 | fi | |
10467 | ;; | |
10468 | ||
10469 | amigaos*) | |
d58dead8 PG |
10470 | case $host_cpu in |
10471 | powerpc) | |
10472 | # see comment about AmigaOS4 .so support | |
10473 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10474 | archive_expsym_cmds='' | |
10475 | ;; | |
10476 | m68k) | |
10477 | 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)' | |
10478 | hardcode_libdir_flag_spec='-L$libdir' | |
10479 | hardcode_minus_L=yes | |
10480 | ;; | |
10481 | esac | |
1cf3d07d SE |
10482 | ;; |
10483 | ||
10484 | beos*) | |
10485 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10486 | allow_undefined_flag=unsupported | |
10487 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10488 | # support --undefined. This deserves some investigation. FIXME | |
10489 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10490 | else | |
10491 | ld_shlibs=no | |
10492 | fi | |
10493 | ;; | |
10494 | ||
d58dead8 | 10495 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10496 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
10497 | # as there is no search path for DLLs. | |
10498 | hardcode_libdir_flag_spec='-L$libdir' | |
43e02a8a | 10499 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
1cf3d07d SE |
10500 | allow_undefined_flag=unsupported |
10501 | always_export_symbols=no | |
10502 | enable_shared_with_static_runtimes=yes | |
10503 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10504 | ||
10505 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10506 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10507 | # If the export-symbols file already is a .def file (1st line | |
10508 | # is EXPORTS), use it as is; otherwise, prepend... | |
10509 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10510 | cp $export_symbols $output_objdir/$soname.def; | |
10511 | else | |
10512 | echo EXPORTS > $output_objdir/$soname.def; | |
10513 | cat $export_symbols >> $output_objdir/$soname.def; | |
10514 | fi~ | |
10515 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10516 | else | |
10517 | ld_shlibs=no | |
10518 | fi | |
10519 | ;; | |
10520 | ||
43e02a8a RW |
10521 | haiku*) |
10522 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10523 | link_all_deplibs=yes | |
10524 | ;; | |
10525 | ||
1cf3d07d SE |
10526 | interix[3-9]*) |
10527 | hardcode_direct=no | |
10528 | hardcode_shlibpath_var=no | |
10529 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10530 | export_dynamic_flag_spec='${wl}-E' | |
10531 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10532 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10533 | # default) and relocated if they conflict, which is a slow very memory | |
10534 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10535 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10536 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10537 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10538 | 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' | |
10539 | ;; | |
10540 | ||
e9085da5 | 10541 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
10542 | tmp_diet=no |
10543 | if test "$host_os" = linux-dietlibc; then | |
10544 | case $cc_basename in | |
10545 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10546 | esac | |
10547 | fi | |
10548 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10549 | && test "$tmp_diet" = no | |
10550 | then | |
a699d672 | 10551 | tmp_addflag=' $pic_flag' |
d58dead8 | 10552 | tmp_sharedflag='-shared' |
1cf3d07d SE |
10553 | case $cc_basename,$host_cpu in |
10554 | pgcc*) # Portland Group C compiler | |
43e02a8a | 10555 | 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 |
10556 | tmp_addflag=' $pic_flag' |
10557 | ;; | |
43e02a8a RW |
10558 | pgf77* | pgf90* | pgf95* | pgfortran*) |
10559 | # Portland Group f77 and f90 compilers | |
10560 | 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 |
10561 | tmp_addflag=' $pic_flag -Mnomain' ;; |
10562 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10563 | tmp_addflag=' -i_dynamic' ;; | |
10564 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10565 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10566 | ifc* | ifort*) # Intel Fortran compiler | |
10567 | tmp_addflag=' -nofor_main' ;; | |
d58dead8 PG |
10568 | lf95*) # Lahey Fortran 8.1 |
10569 | whole_archive_flag_spec= | |
10570 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 10571 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
d58dead8 PG |
10572 | tmp_sharedflag='-qmkshrobj' |
10573 | tmp_addflag= ;; | |
43e02a8a RW |
10574 | nvcc*) # Cuda Compiler Driver 2.2 |
10575 | 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' | |
10576 | compiler_needs_object=yes | |
10577 | ;; | |
1cf3d07d SE |
10578 | esac |
10579 | case `$CC -V 2>&1 | sed 5q` in | |
10580 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 10581 | 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 |
10582 | compiler_needs_object=yes |
10583 | tmp_sharedflag='-G' ;; | |
10584 | *Sun\ F*) # Sun Fortran 8.3 | |
10585 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
10586 | esac |
10587 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10588 | ||
10589 | if test "x$supports_anon_versioning" = xyes; then | |
10590 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10591 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10592 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10593 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10594 | fi | |
d58dead8 PG |
10595 | |
10596 | case $cc_basename in | |
43e02a8a | 10597 | xlf* | bgf* | bgxlf* | mpixlf*) |
d58dead8 PG |
10598 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10599 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10600 | hardcode_libdir_flag_spec= | |
10601 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10602 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10603 | if test "x$supports_anon_versioning" = xyes; then | |
10604 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10605 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10606 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10607 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10608 | fi | |
10609 | ;; | |
10610 | esac | |
1cf3d07d SE |
10611 | else |
10612 | ld_shlibs=no | |
10613 | fi | |
10614 | ;; | |
10615 | ||
10616 | netbsd*) | |
10617 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10618 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10619 | wlarc= | |
10620 | else | |
10621 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10622 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10623 | fi | |
10624 | ;; | |
10625 | ||
10626 | solaris*) | |
10627 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10628 | ld_shlibs=no | |
10629 | cat <<_LT_EOF 1>&2 | |
10630 | ||
10631 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10632 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10633 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10634 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10635 | *** your PATH or compiler configuration so that the native linker is | |
10636 | *** used, and then restart. | |
10637 | ||
10638 | _LT_EOF | |
10639 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10640 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10641 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10642 | else | |
10643 | ld_shlibs=no | |
10644 | fi | |
10645 | ;; | |
10646 | ||
10647 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10648 | case `$LD -v 2>&1` in | |
10649 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10650 | ld_shlibs=no | |
10651 | cat <<_LT_EOF 1>&2 | |
10652 | ||
10653 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10654 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10655 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10656 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10657 | *** your PATH or compiler configuration so that the native linker is | |
10658 | *** used, and then restart. | |
10659 | ||
10660 | _LT_EOF | |
10661 | ;; | |
10662 | *) | |
10663 | # For security reasons, it is highly recommended that you always | |
10664 | # use absolute paths for naming shared libraries, and exclude the | |
10665 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10666 | # requires that you compile everything twice, which is a pain. | |
10667 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10668 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10669 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10670 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10671 | else | |
10672 | ld_shlibs=no | |
10673 | fi | |
10674 | ;; | |
10675 | esac | |
10676 | ;; | |
10677 | ||
10678 | sunos4*) | |
10679 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10680 | wlarc= | |
10681 | hardcode_direct=yes | |
10682 | hardcode_shlibpath_var=no | |
10683 | ;; | |
10684 | ||
10685 | *) | |
10686 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10687 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10688 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10689 | else | |
10690 | ld_shlibs=no | |
10691 | fi | |
10692 | ;; | |
10693 | esac | |
10694 | ||
10695 | if test "$ld_shlibs" = no; then | |
10696 | runpath_var= | |
10697 | hardcode_libdir_flag_spec= | |
10698 | export_dynamic_flag_spec= | |
10699 | whole_archive_flag_spec= | |
10700 | fi | |
10701 | else | |
10702 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10703 | case $host_os in | |
10704 | aix3*) | |
10705 | allow_undefined_flag=unsupported | |
10706 | always_export_symbols=yes | |
10707 | 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' | |
10708 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10709 | # are no directories specified by -L. | |
10710 | hardcode_minus_L=yes | |
10711 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10712 | # Neither direct hardcoding nor static linking is supported with a | |
10713 | # broken collect2. | |
10714 | hardcode_direct=unsupported | |
10715 | fi | |
10716 | ;; | |
10717 | ||
4f6bebc3 | 10718 | aix[4-9]*) |
1cf3d07d SE |
10719 | if test "$host_cpu" = ia64; then |
10720 | # On IA64, the linker does run time linking by default, so we don't | |
10721 | # have to do anything special. | |
10722 | aix_use_runtimelinking=no | |
10723 | exp_sym_flag='-Bexport' | |
10724 | no_entry_flag="" | |
10725 | else | |
10726 | # If we're using GNU nm, then we don't want the "-C" option. | |
10727 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
10728 | # Also, AIX nm treats weak defined symbols like other global |
10729 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 10730 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 10731 | 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 | 10732 | else |
d3ca2257 | 10733 | 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 |
10734 | fi |
10735 | aix_use_runtimelinking=no | |
10736 | ||
10737 | # Test if we are trying to use run time linking or normal | |
10738 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10739 | # need to do runtime linking. | |
4f6bebc3 | 10740 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
10741 | for ld_flag in $LDFLAGS; do |
10742 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10743 | aix_use_runtimelinking=yes | |
10744 | break | |
10745 | fi | |
10746 | done | |
10747 | ;; | |
10748 | esac | |
10749 | ||
10750 | exp_sym_flag='-bexport' | |
10751 | no_entry_flag='-bnoentry' | |
10752 | fi | |
10753 | ||
10754 | # When large executables or shared objects are built, AIX ld can | |
10755 | # have problems creating the table of contents. If linking a library | |
10756 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10757 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10758 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10759 | ||
10760 | archive_cmds='' | |
10761 | hardcode_direct=yes | |
10762 | hardcode_direct_absolute=yes | |
10763 | hardcode_libdir_separator=':' | |
10764 | link_all_deplibs=yes | |
10765 | file_list_spec='${wl}-f,' | |
10766 | ||
10767 | if test "$GCC" = yes; then | |
10768 | case $host_os in aix4.[012]|aix4.[012].*) | |
10769 | # We only want to do this on AIX 4.2 and lower, the check | |
10770 | # below for broken collect2 doesn't work under 4.3+ | |
10771 | collect2name=`${CC} -print-prog-name=collect2` | |
10772 | if test -f "$collect2name" && | |
10773 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10774 | then | |
10775 | # We have reworked collect2 | |
10776 | : | |
10777 | else | |
10778 | # We have old collect2 | |
10779 | hardcode_direct=unsupported | |
10780 | # It fails to find uninstalled libraries when the uninstalled | |
10781 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10782 | # to unsupported forces relinking | |
10783 | hardcode_minus_L=yes | |
10784 | hardcode_libdir_flag_spec='-L$libdir' | |
10785 | hardcode_libdir_separator= | |
10786 | fi | |
10787 | ;; | |
10788 | esac | |
10789 | shared_flag='-shared' | |
10790 | if test "$aix_use_runtimelinking" = yes; then | |
10791 | shared_flag="$shared_flag "'${wl}-G' | |
10792 | fi | |
10793 | else | |
10794 | # not using gcc | |
10795 | if test "$host_cpu" = ia64; then | |
10796 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10797 | # chokes on -Wl,-G. The following line is correct: | |
10798 | shared_flag='-G' | |
10799 | else | |
10800 | if test "$aix_use_runtimelinking" = yes; then | |
10801 | shared_flag='${wl}-G' | |
10802 | else | |
10803 | shared_flag='${wl}-bM:SRE' | |
10804 | fi | |
10805 | fi | |
10806 | fi | |
10807 | ||
d58dead8 | 10808 | export_dynamic_flag_spec='${wl}-bexpall' |
1cf3d07d SE |
10809 | # It seems that -bexpall does not export symbols beginning with |
10810 | # underscore (_), so it is better to generate a list of symbols to export. | |
10811 | always_export_symbols=yes | |
10812 | if test "$aix_use_runtimelinking" = yes; then | |
10813 | # Warning - without using the other runtime loading flags (-brtl), | |
10814 | # -berok will link without error, but may produce a broken library. | |
10815 | allow_undefined_flag='-berok' | |
10816 | # Determine the default libpath from the value encoded in an | |
10817 | # empty executable. | |
10818 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10819 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10820 | fi |
5213506e | 10821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10822 | /* end confdefs.h. */ |
10823 | ||
10824 | int | |
10825 | main () | |
10826 | { | |
10827 | ||
10828 | ; | |
10829 | return 0; | |
10830 | } | |
10831 | _ACEOF | |
5213506e | 10832 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10833 | |
10834 | lt_aix_libpath_sed=' | |
10835 | /Import File Strings/,/^$/ { | |
10836 | /^0/ { | |
10837 | s/^0 *\(.*\)$/\1/ | |
10838 | p | |
10839 | } | |
10840 | }' | |
10841 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10842 | # Check for a 64-bit object if we didn't find anything. | |
10843 | if test -z "$aix_libpath"; then | |
10844 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10845 | fi | |
1cf3d07d | 10846 | fi |
5213506e RW |
10847 | rm -f core conftest.err conftest.$ac_objext \ |
10848 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10849 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10850 | ||
10851 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 10852 | 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 |
10853 | else |
10854 | if test "$host_cpu" = ia64; then | |
10855 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10856 | allow_undefined_flag="-z nodefs" | |
10857 | 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" | |
10858 | else | |
10859 | # Determine the default libpath from the value encoded in an | |
10860 | # empty executable. | |
10861 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10862 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10863 | fi |
5213506e | 10864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10865 | /* end confdefs.h. */ |
10866 | ||
10867 | int | |
10868 | main () | |
10869 | { | |
10870 | ||
10871 | ; | |
10872 | return 0; | |
10873 | } | |
10874 | _ACEOF | |
5213506e | 10875 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10876 | |
10877 | lt_aix_libpath_sed=' | |
10878 | /Import File Strings/,/^$/ { | |
10879 | /^0/ { | |
10880 | s/^0 *\(.*\)$/\1/ | |
10881 | p | |
10882 | } | |
10883 | }' | |
10884 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10885 | # Check for a 64-bit object if we didn't find anything. | |
10886 | if test -z "$aix_libpath"; then | |
10887 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10888 | fi | |
1cf3d07d | 10889 | fi |
5213506e RW |
10890 | rm -f core conftest.err conftest.$ac_objext \ |
10891 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10892 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10893 | ||
10894 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10895 | # Warning - without using the other run time loading flags, | |
10896 | # -berok will link without error, but may produce a broken library. | |
10897 | no_undefined_flag=' ${wl}-bernotok' | |
10898 | allow_undefined_flag=' ${wl}-berok' | |
43e02a8a RW |
10899 | if test "$with_gnu_ld" = yes; then |
10900 | # We only use this code for GNU lds that support --whole-archive. | |
10901 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10902 | else | |
10903 | # Exported symbols can be pulled into shared objects from archives | |
10904 | whole_archive_flag_spec='$convenience' | |
10905 | fi | |
1cf3d07d SE |
10906 | archive_cmds_need_lc=yes |
10907 | # This is similar to how AIX traditionally builds its shared libraries. | |
10908 | 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' | |
10909 | fi | |
10910 | fi | |
10911 | ;; | |
10912 | ||
10913 | amigaos*) | |
d58dead8 PG |
10914 | case $host_cpu in |
10915 | powerpc) | |
10916 | # see comment about AmigaOS4 .so support | |
10917 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10918 | archive_expsym_cmds='' | |
10919 | ;; | |
10920 | m68k) | |
10921 | 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)' | |
10922 | hardcode_libdir_flag_spec='-L$libdir' | |
10923 | hardcode_minus_L=yes | |
10924 | ;; | |
10925 | esac | |
1cf3d07d SE |
10926 | ;; |
10927 | ||
10928 | bsdi[45]*) | |
10929 | export_dynamic_flag_spec=-rdynamic | |
10930 | ;; | |
10931 | ||
d58dead8 | 10932 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10933 | # When not using gcc, we currently assume that we are using |
10934 | # Microsoft Visual C++. | |
10935 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10936 | # no search path for DLLs. | |
10937 | hardcode_libdir_flag_spec=' ' | |
10938 | allow_undefined_flag=unsupported | |
10939 | # Tell ltmain to make .lib files, not .a files. | |
10940 | libext=lib | |
10941 | # Tell ltmain to make .dll files, not .so files. | |
10942 | shrext_cmds=".dll" | |
10943 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 10944 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
10945 | # The linker will automatically build a .lib file if we build a DLL. |
10946 | old_archive_from_new_cmds='true' | |
10947 | # FIXME: Should let the user specify the lib program. | |
10948 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10949 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10950 | enable_shared_with_static_runtimes=yes | |
10951 | ;; | |
10952 | ||
10953 | darwin* | rhapsody*) | |
1cf3d07d | 10954 | |
d58dead8 PG |
10955 | |
10956 | archive_cmds_need_lc=no | |
10957 | hardcode_direct=no | |
10958 | hardcode_automatic=yes | |
10959 | hardcode_shlibpath_var=unsupported | |
43e02a8a RW |
10960 | if test "$lt_cv_ld_force_load" = "yes"; then |
10961 | 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\"`' | |
10962 | else | |
10963 | whole_archive_flag_spec='' | |
10964 | fi | |
d58dead8 PG |
10965 | link_all_deplibs=yes |
10966 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10967 | case $cc_basename in | |
10968 | ifort*) _lt_dar_can_shared=yes ;; | |
10969 | *) _lt_dar_can_shared=$GCC ;; | |
10970 | esac | |
10971 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 10972 | output_verbose_link_cmd=func_echo_all |
d58dead8 PG |
10973 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10974 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10975 | 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}" | |
10976 | 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}" | |
10977 | ||
10978 | else | |
10979 | ld_shlibs=no | |
10980 | fi | |
10981 | ||
1cf3d07d SE |
10982 | ;; |
10983 | ||
10984 | dgux*) | |
10985 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10986 | hardcode_libdir_flag_spec='-L$libdir' | |
10987 | hardcode_shlibpath_var=no | |
10988 | ;; | |
10989 | ||
1cf3d07d SE |
10990 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10991 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10992 | # does not break anything, and helps significantly (at the cost of a little | |
10993 | # extra space). | |
10994 | freebsd2.2*) | |
10995 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10996 | hardcode_libdir_flag_spec='-R$libdir' | |
10997 | hardcode_direct=yes | |
10998 | hardcode_shlibpath_var=no | |
10999 | ;; | |
11000 | ||
11001 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 11002 | freebsd2.*) |
1cf3d07d SE |
11003 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
11004 | hardcode_direct=yes | |
11005 | hardcode_minus_L=yes | |
11006 | hardcode_shlibpath_var=no | |
11007 | ;; | |
11008 | ||
11009 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
11010 | freebsd* | dragonfly*) | |
11011 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
11012 | hardcode_libdir_flag_spec='-R$libdir' | |
11013 | hardcode_direct=yes | |
11014 | hardcode_shlibpath_var=no | |
11015 | ;; | |
11016 | ||
11017 | hpux9*) | |
11018 | if test "$GCC" = yes; then | |
11019 | 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' | |
11020 | else | |
11021 | 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' | |
11022 | fi | |
11023 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11024 | hardcode_libdir_separator=: | |
11025 | hardcode_direct=yes | |
11026 | ||
11027 | # hardcode_minus_L: Not really in the search PATH, | |
11028 | # but as the default location of the library. | |
11029 | hardcode_minus_L=yes | |
11030 | export_dynamic_flag_spec='${wl}-E' | |
11031 | ;; | |
11032 | ||
11033 | hpux10*) | |
43e02a8a | 11034 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
11035 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
11036 | else | |
11037 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11038 | fi | |
11039 | if test "$with_gnu_ld" = no; then | |
11040 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11041 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
11042 | hardcode_libdir_separator=: | |
11043 | hardcode_direct=yes | |
11044 | hardcode_direct_absolute=yes | |
11045 | export_dynamic_flag_spec='${wl}-E' | |
11046 | # hardcode_minus_L: Not really in the search PATH, | |
11047 | # but as the default location of the library. | |
11048 | hardcode_minus_L=yes | |
11049 | fi | |
11050 | ;; | |
11051 | ||
11052 | hpux11*) | |
43e02a8a | 11053 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
11054 | case $host_cpu in |
11055 | hppa*64*) | |
4e4ba647 | 11056 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
11057 | ;; |
11058 | ia64*) | |
d58dead8 | 11059 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
11060 | ;; |
11061 | *) | |
11062 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11063 | ;; | |
11064 | esac | |
11065 | else | |
11066 | case $host_cpu in | |
11067 | hppa*64*) | |
4e4ba647 | 11068 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
11069 | ;; |
11070 | ia64*) | |
11071 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
11072 | ;; | |
11073 | *) | |
43e02a8a RW |
11074 | |
11075 | # Older versions of the 11.00 compiler do not understand -b yet | |
11076 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
11077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
11078 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
22e05272 | 11079 | if ${lt_cv_prog_compiler__b+:} false; then : |
43e02a8a RW |
11080 | $as_echo_n "(cached) " >&6 |
11081 | else | |
11082 | lt_cv_prog_compiler__b=no | |
11083 | save_LDFLAGS="$LDFLAGS" | |
11084 | LDFLAGS="$LDFLAGS -b" | |
11085 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11086 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11087 | # The linker can only warn and ignore the option if not recognized | |
11088 | # So say no if there are warnings | |
11089 | if test -s conftest.err; then | |
11090 | # Append any errors to the config.log. | |
11091 | cat conftest.err 1>&5 | |
11092 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11093 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11094 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11095 | lt_cv_prog_compiler__b=yes | |
11096 | fi | |
11097 | else | |
11098 | lt_cv_prog_compiler__b=yes | |
11099 | fi | |
11100 | fi | |
11101 | $RM -r conftest* | |
11102 | LDFLAGS="$save_LDFLAGS" | |
11103 | ||
11104 | fi | |
11105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11106 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11107 | ||
11108 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
11109 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11110 | else | |
11111 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11112 | fi | |
11113 | ||
1cf3d07d SE |
11114 | ;; |
11115 | esac | |
11116 | fi | |
11117 | if test "$with_gnu_ld" = no; then | |
11118 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11119 | hardcode_libdir_separator=: | |
11120 | ||
11121 | case $host_cpu in | |
11122 | hppa*64*|ia64*) | |
11123 | hardcode_direct=no | |
11124 | hardcode_shlibpath_var=no | |
11125 | ;; | |
11126 | *) | |
11127 | hardcode_direct=yes | |
11128 | hardcode_direct_absolute=yes | |
11129 | export_dynamic_flag_spec='${wl}-E' | |
11130 | ||
11131 | # hardcode_minus_L: Not really in the search PATH, | |
11132 | # but as the default location of the library. | |
11133 | hardcode_minus_L=yes | |
11134 | ;; | |
11135 | esac | |
11136 | fi | |
11137 | ;; | |
11138 | ||
11139 | irix5* | irix6* | nonstopux*) | |
11140 | if test "$GCC" = yes; then | |
43e02a8a | 11141 | 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 |
11142 | # Try to use the -exported_symbol ld option, if it does not |
11143 | # work, assume that -exports_file does not work either and | |
11144 | # implicitly export all symbols. | |
11145 | save_LDFLAGS="$LDFLAGS" | |
11146 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
11147 | if test x$gcc_no_link = xyes; then | |
22e05272 | 11148 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 11149 | fi |
5213506e RW |
11150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11151 | /* end confdefs.h. */ | |
1cf3d07d SE |
11152 | int foo(void) {} |
11153 | _ACEOF | |
5213506e | 11154 | if ac_fn_c_try_link "$LINENO"; then : |
43e02a8a | 11155 | 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 | 11156 | |
1cf3d07d | 11157 | fi |
5213506e RW |
11158 | rm -f core conftest.err conftest.$ac_objext \ |
11159 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11160 | LDFLAGS="$save_LDFLAGS" |
11161 | else | |
43e02a8a RW |
11162 | 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' |
11163 | 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 |
11164 | fi |
11165 | archive_cmds_need_lc='no' | |
11166 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11167 | hardcode_libdir_separator=: | |
11168 | inherit_rpath=yes | |
11169 | link_all_deplibs=yes | |
11170 | ;; | |
11171 | ||
11172 | netbsd*) | |
11173 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11174 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11175 | else | |
11176 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11177 | fi | |
11178 | hardcode_libdir_flag_spec='-R$libdir' | |
11179 | hardcode_direct=yes | |
11180 | hardcode_shlibpath_var=no | |
11181 | ;; | |
11182 | ||
11183 | newsos6) | |
11184 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11185 | hardcode_direct=yes | |
11186 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11187 | hardcode_libdir_separator=: | |
11188 | hardcode_shlibpath_var=no | |
11189 | ;; | |
11190 | ||
11191 | *nto* | *qnx*) | |
11192 | ;; | |
11193 | ||
11194 | openbsd*) | |
d58dead8 PG |
11195 | if test -f /usr/libexec/ld.so; then |
11196 | hardcode_direct=yes | |
11197 | hardcode_shlibpath_var=no | |
11198 | hardcode_direct_absolute=yes | |
11199 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 11200 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d58dead8 | 11201 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 11202 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
d58dead8 PG |
11203 | export_dynamic_flag_spec='${wl}-E' |
11204 | else | |
11205 | case $host_os in | |
11206 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
11207 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11208 | hardcode_libdir_flag_spec='-R$libdir' | |
11209 | ;; | |
11210 | *) | |
11211 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11212 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11213 | ;; | |
11214 | esac | |
11215 | fi | |
11216 | else | |
11217 | ld_shlibs=no | |
1cf3d07d SE |
11218 | fi |
11219 | ;; | |
11220 | ||
11221 | os2*) | |
11222 | hardcode_libdir_flag_spec='-L$libdir' | |
11223 | hardcode_minus_L=yes | |
11224 | allow_undefined_flag=unsupported | |
43e02a8a | 11225 | 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 |
11226 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
11227 | ;; | |
11228 | ||
11229 | osf3*) | |
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}-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 | else |
11234 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 11235 | 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 |
11236 | fi |
11237 | archive_cmds_need_lc='no' | |
11238 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11239 | hardcode_libdir_separator=: | |
11240 | ;; | |
11241 | ||
11242 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11243 | if test "$GCC" = yes; then | |
11244 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 11245 | 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 |
11246 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
11247 | else | |
11248 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 11249 | 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 | 11250 | 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 | 11251 | $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 |
11252 | |
11253 | # Both c and cxx compiler support -rpath directly | |
11254 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11255 | fi | |
11256 | archive_cmds_need_lc='no' | |
11257 | hardcode_libdir_separator=: | |
11258 | ;; | |
11259 | ||
11260 | solaris*) | |
11261 | no_undefined_flag=' -z defs' | |
11262 | if test "$GCC" = yes; then | |
11263 | wlarc='${wl}' | |
11264 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$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 -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11267 | else | |
11268 | case `$CC -V 2>&1` in | |
11269 | *"Compilers 5.0"*) | |
11270 | wlarc='' | |
11271 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11272 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11273 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11274 | ;; | |
11275 | *) | |
11276 | wlarc='${wl}' | |
11277 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11278 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11279 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11280 | ;; | |
11281 | esac | |
11282 | fi | |
11283 | hardcode_libdir_flag_spec='-R$libdir' | |
11284 | hardcode_shlibpath_var=no | |
11285 | case $host_os in | |
11286 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11287 | *) | |
11288 | # The compiler driver will combine and reorder linker options, | |
11289 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11290 | # but is careful enough not to reorder. | |
11291 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11292 | if test "$GCC" = yes; then | |
11293 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11294 | else | |
11295 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11296 | fi | |
11297 | ;; | |
11298 | esac | |
11299 | link_all_deplibs=yes | |
11300 | ;; | |
11301 | ||
11302 | sunos4*) | |
11303 | if test "x$host_vendor" = xsequent; then | |
11304 | # Use $CC to link under sequent, because it throws in some extra .o | |
11305 | # files that make .init and .fini sections work. | |
11306 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11307 | else | |
11308 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11309 | fi | |
11310 | hardcode_libdir_flag_spec='-L$libdir' | |
11311 | hardcode_direct=yes | |
11312 | hardcode_minus_L=yes | |
11313 | hardcode_shlibpath_var=no | |
11314 | ;; | |
11315 | ||
11316 | sysv4) | |
11317 | case $host_vendor in | |
11318 | sni) | |
11319 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11320 | hardcode_direct=yes # is this really true??? | |
11321 | ;; | |
11322 | siemens) | |
11323 | ## LD is ld it makes a PLAMLIB | |
11324 | ## CC just makes a GrossModule. | |
11325 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11326 | reload_cmds='$CC -r -o $output$reload_objs' | |
11327 | hardcode_direct=no | |
11328 | ;; | |
11329 | motorola) | |
11330 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11331 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11332 | ;; | |
11333 | esac | |
11334 | runpath_var='LD_RUN_PATH' | |
11335 | hardcode_shlibpath_var=no | |
11336 | ;; | |
11337 | ||
11338 | sysv4.3*) | |
11339 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11340 | hardcode_shlibpath_var=no | |
11341 | export_dynamic_flag_spec='-Bexport' | |
11342 | ;; | |
11343 | ||
11344 | sysv4*MP*) | |
11345 | if test -d /usr/nec; then | |
11346 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11347 | hardcode_shlibpath_var=no | |
11348 | runpath_var=LD_RUN_PATH | |
11349 | hardcode_runpath_var=yes | |
11350 | ld_shlibs=yes | |
11351 | fi | |
11352 | ;; | |
11353 | ||
11354 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11355 | no_undefined_flag='${wl}-z,text' | |
11356 | archive_cmds_need_lc=no | |
11357 | hardcode_shlibpath_var=no | |
11358 | runpath_var='LD_RUN_PATH' | |
11359 | ||
11360 | if test "$GCC" = yes; then | |
11361 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11362 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11363 | else | |
11364 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11365 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11366 | fi | |
11367 | ;; | |
11368 | ||
11369 | sysv5* | sco3.2v5* | sco5v6*) | |
11370 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11371 | # link with -lc, and that would cause any symbols used from libc to | |
11372 | # always be unresolved, which means just about no library would | |
11373 | # ever link correctly. If we're not using GNU ld we use -z text | |
11374 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11375 | # as -z defs. | |
11376 | no_undefined_flag='${wl}-z,text' | |
11377 | allow_undefined_flag='${wl}-z,nodefs' | |
11378 | archive_cmds_need_lc=no | |
11379 | hardcode_shlibpath_var=no | |
11380 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11381 | hardcode_libdir_separator=':' | |
11382 | link_all_deplibs=yes | |
11383 | export_dynamic_flag_spec='${wl}-Bexport' | |
11384 | runpath_var='LD_RUN_PATH' | |
11385 | ||
11386 | if test "$GCC" = yes; then | |
11387 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11388 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11389 | else | |
11390 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11391 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11392 | fi | |
11393 | ;; | |
11394 | ||
11395 | uts4*) | |
11396 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11397 | hardcode_libdir_flag_spec='-L$libdir' | |
11398 | hardcode_shlibpath_var=no | |
11399 | ;; | |
11400 | ||
11401 | *) | |
11402 | ld_shlibs=no | |
11403 | ;; | |
11404 | esac | |
11405 | ||
11406 | if test x$host_vendor = xsni; then | |
11407 | case $host in | |
11408 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11409 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11410 | ;; | |
11411 | esac | |
11412 | fi | |
11413 | fi | |
11414 | ||
5213506e RW |
11415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
11416 | $as_echo "$ld_shlibs" >&6; } | |
1cf3d07d SE |
11417 | test "$ld_shlibs" = no && can_build_shared=no |
11418 | ||
11419 | with_gnu_ld=$with_gnu_ld | |
11420 | ||
11421 | ||
11422 | ||
11423 | ||
11424 | ||
11425 | ||
11426 | ||
11427 | ||
11428 | ||
11429 | ||
11430 | ||
11431 | ||
11432 | ||
11433 | ||
11434 | ||
11435 | # | |
11436 | # Do we need to explicitly link libc? | |
11437 | # | |
11438 | case "x$archive_cmds_need_lc" in | |
11439 | x|xyes) | |
11440 | # Assume -lc should be added | |
11441 | archive_cmds_need_lc=yes | |
11442 | ||
11443 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11444 | case $archive_cmds in | |
11445 | *'~'*) | |
11446 | # FIXME: we may have to deal with multi-command sequences. | |
11447 | ;; | |
11448 | '$CC '*) | |
11449 | # Test whether the compiler implicitly links with -lc since on some | |
11450 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11451 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
11452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
11453 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 11454 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
5213506e | 11455 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
11456 | else |
11457 | $RM conftest* | |
11458 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 11459 | |
5213506e | 11460 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
11461 | (eval $ac_compile) 2>&5 |
11462 | ac_status=$? | |
5213506e RW |
11463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11464 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
11465 | soname=conftest |
11466 | lib=conftest | |
11467 | libobjs=conftest.$ac_objext | |
11468 | deplibs= | |
11469 | wl=$lt_prog_compiler_wl | |
11470 | pic_flag=$lt_prog_compiler_pic | |
11471 | compiler_flags=-v | |
11472 | linker_flags=-v | |
11473 | verstring= | |
11474 | output_objdir=. | |
11475 | libname=conftest | |
11476 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11477 | allow_undefined_flag= | |
5213506e | 11478 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d SE |
11479 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11480 | ac_status=$? | |
5213506e RW |
11481 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11482 | test $ac_status = 0; } | |
baafc534 RW |
11483 | then |
11484 | lt_cv_archive_cmds_need_lc=no | |
11485 | else | |
11486 | lt_cv_archive_cmds_need_lc=yes | |
11487 | fi | |
11488 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11489 | else | |
11490 | cat conftest.err 1>&5 | |
11491 | fi | |
11492 | $RM conftest* | |
11493 | ||
11494 | fi | |
5213506e RW |
11495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
11496 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
baafc534 | 11497 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
1cf3d07d SE |
11498 | ;; |
11499 | esac | |
11500 | fi | |
11501 | ;; | |
11502 | esac | |
11503 | ||
11504 | ||
11505 | ||
11506 | ||
11507 | ||
11508 | ||
11509 | ||
11510 | ||
11511 | ||
11512 | ||
11513 | ||
11514 | ||
11515 | ||
11516 | ||
11517 | ||
11518 | ||
11519 | ||
11520 | ||
11521 | ||
11522 | ||
11523 | ||
11524 | ||
11525 | ||
11526 | ||
11527 | ||
11528 | ||
11529 | ||
11530 | ||
11531 | ||
11532 | ||
11533 | ||
11534 | ||
11535 | ||
11536 | ||
11537 | ||
11538 | ||
11539 | ||
11540 | ||
11541 | ||
11542 | ||
11543 | ||
11544 | ||
11545 | ||
11546 | ||
11547 | ||
11548 | ||
11549 | ||
11550 | ||
11551 | ||
11552 | ||
11553 | ||
11554 | ||
11555 | ||
11556 | ||
11557 | ||
11558 | ||
11559 | ||
11560 | ||
11561 | ||
11562 | ||
11563 | ||
11564 | ||
11565 | ||
11566 | ||
11567 | ||
11568 | ||
11569 | ||
11570 | ||
11571 | ||
11572 | ||
11573 | ||
11574 | ||
11575 | ||
11576 | ||
11577 | ||
11578 | ||
11579 | ||
11580 | ||
11581 | ||
11582 | ||
11583 | ||
11584 | ||
11585 | ||
11586 | ||
11587 | ||
11588 | ||
11589 | ||
11590 | ||
11591 | ||
11592 | ||
11593 | ||
11594 | ||
11595 | ||
11596 | ||
11597 | ||
11598 | ||
11599 | ||
11600 | ||
11601 | ||
11602 | ||
11603 | ||
11604 | ||
11605 | ||
11606 | ||
11607 | ||
11608 | ||
11609 | ||
11610 | ||
11611 | ||
11612 | ||
11613 | ||
11614 | ||
11615 | ||
11616 | ||
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | ||
11633 | ||
11634 | ||
11635 | ||
11636 | ||
11637 | ||
11638 | ||
11639 | ||
11640 | ||
11641 | ||
11642 | ||
11643 | ||
11644 | ||
11645 | ||
11646 | ||
11647 | ||
11648 | ||
11649 | ||
11650 | ||
11651 | ||
11652 | ||
11653 | ||
11654 | ||
11655 | ||
11656 | ||
11657 | ||
11658 | ||
11659 | ||
5213506e RW |
11660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
11661 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
d58dead8 PG |
11662 | |
11663 | if test "$GCC" = yes; then | |
1cf3d07d SE |
11664 | case $host_os in |
11665 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11666 | *) lt_awk_arg="/^libraries:/" ;; | |
11667 | esac | |
43e02a8a RW |
11668 | case $host_os in |
11669 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11670 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11671 | esac | |
11672 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11673 | case $lt_search_path_spec in | |
11674 | *\;*) | |
1cf3d07d SE |
11675 | # if the path contains ";" then we assume it to be the separator |
11676 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11677 | # assumed that no part of a normal pathname contains ";" but that should | |
11678 | # okay in the real world where ";" in dirpaths is itself problematic. | |
43e02a8a RW |
11679 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11680 | ;; | |
11681 | *) | |
11682 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11683 | ;; | |
11684 | esac | |
1cf3d07d SE |
11685 | # Ok, now we have the path, separated by spaces, we can step through it |
11686 | # and add multilib dir if necessary. | |
11687 | lt_tmp_lt_search_path_spec= | |
11688 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11689 | for lt_sys_path in $lt_search_path_spec; do | |
11690 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11691 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11692 | else | |
11693 | test -d "$lt_sys_path" && \ | |
11694 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11695 | fi | |
11696 | done | |
43e02a8a | 11697 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
1cf3d07d SE |
11698 | BEGIN {RS=" "; FS="/|\n";} { |
11699 | lt_foo=""; | |
11700 | lt_count=0; | |
11701 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11702 | if ($lt_i != "" && $lt_i != ".") { | |
11703 | if ($lt_i == "..") { | |
11704 | lt_count++; | |
11705 | } else { | |
11706 | if (lt_count == 0) { | |
11707 | lt_foo="/" $lt_i lt_foo; | |
11708 | } else { | |
11709 | lt_count--; | |
11710 | } | |
11711 | } | |
11712 | } | |
11713 | } | |
11714 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11715 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11716 | }'` | |
43e02a8a RW |
11717 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11718 | # for these hosts. | |
11719 | case $host_os in | |
11720 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11721 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11722 | esac | |
11723 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
1cf3d07d SE |
11724 | else |
11725 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11726 | fi | |
11727 | library_names_spec= | |
11728 | libname_spec='lib$name' | |
11729 | soname_spec= | |
11730 | shrext_cmds=".so" | |
11731 | postinstall_cmds= | |
11732 | postuninstall_cmds= | |
11733 | finish_cmds= | |
11734 | finish_eval= | |
11735 | shlibpath_var= | |
11736 | shlibpath_overrides_runpath=unknown | |
11737 | version_type=none | |
11738 | dynamic_linker="$host_os ld.so" | |
11739 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11740 | need_lib_prefix=unknown | |
11741 | hardcode_into_libs=no | |
11742 | ||
11743 | # when you set need_version to no, make sure it does not cause -set_version | |
11744 | # flags to be left without arguments | |
11745 | need_version=unknown | |
11746 | ||
11747 | case $host_os in | |
11748 | aix3*) | |
11749 | version_type=linux | |
11750 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11751 | shlibpath_var=LIBPATH | |
11752 | ||
11753 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11754 | soname_spec='${libname}${release}${shared_ext}$major' | |
11755 | ;; | |
11756 | ||
4f6bebc3 | 11757 | aix[4-9]*) |
1cf3d07d SE |
11758 | version_type=linux |
11759 | need_lib_prefix=no | |
11760 | need_version=no | |
11761 | hardcode_into_libs=yes | |
11762 | if test "$host_cpu" = ia64; then | |
11763 | # AIX 5 supports IA64 | |
11764 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11765 | shlibpath_var=LD_LIBRARY_PATH | |
11766 | else | |
11767 | # With GCC up to 2.95.x, collect2 would create an import file | |
11768 | # for dependence libraries. The import file would start with | |
11769 | # the line `#! .'. This would cause the generated library to | |
11770 | # depend on `.', always an invalid library. This was fixed in | |
11771 | # development snapshots of GCC prior to 3.0. | |
11772 | case $host_os in | |
11773 | aix4 | aix4.[01] | aix4.[01].*) | |
11774 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11775 | echo ' yes ' | |
11776 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11777 | : | |
11778 | else | |
11779 | can_build_shared=no | |
11780 | fi | |
11781 | ;; | |
11782 | esac | |
11783 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11784 | # soname into executable. Probably we can add versioning support to | |
11785 | # collect2, so additional links can be useful in future. | |
11786 | if test "$aix_use_runtimelinking" = yes; then | |
11787 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11788 | # instead of lib<name>.a to let people know that these are not | |
11789 | # typical AIX shared libraries. | |
11790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11791 | else | |
11792 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11793 | # and later when we are not doing run time linking. | |
11794 | library_names_spec='${libname}${release}.a $libname.a' | |
11795 | soname_spec='${libname}${release}${shared_ext}$major' | |
11796 | fi | |
11797 | shlibpath_var=LIBPATH | |
11798 | fi | |
11799 | ;; | |
11800 | ||
11801 | amigaos*) | |
d58dead8 PG |
11802 | case $host_cpu in |
11803 | powerpc) | |
11804 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11805 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11806 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11807 | ;; | |
11808 | m68k) | |
1cf3d07d SE |
11809 | library_names_spec='$libname.ixlibrary $libname.a' |
11810 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 11811 | 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 |
11812 | ;; |
11813 | esac | |
1cf3d07d SE |
11814 | ;; |
11815 | ||
11816 | beos*) | |
11817 | library_names_spec='${libname}${shared_ext}' | |
11818 | dynamic_linker="$host_os ld.so" | |
11819 | shlibpath_var=LIBRARY_PATH | |
11820 | ;; | |
11821 | ||
11822 | bsdi[45]*) | |
11823 | version_type=linux | |
11824 | need_version=no | |
11825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11826 | soname_spec='${libname}${release}${shared_ext}$major' | |
11827 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11828 | shlibpath_var=LD_LIBRARY_PATH | |
11829 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11830 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11831 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11832 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11833 | # libtool to hard-code these into programs | |
11834 | ;; | |
11835 | ||
d58dead8 | 11836 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
11837 | version_type=windows |
11838 | shrext_cmds=".dll" | |
11839 | need_version=no | |
11840 | need_lib_prefix=no | |
11841 | ||
d58dead8 PG |
11842 | case $GCC,$host_os in |
11843 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
11844 | library_names_spec='$libname.dll.a' |
11845 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11846 | postinstall_cmds='base_file=`basename \${file}`~ | |
11847 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11848 | dldir=$destdir/`dirname \$dlpath`~ | |
11849 | test -d \$dldir || mkdir -p \$dldir~ | |
11850 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11851 | chmod a+x \$dldir/$dlname~ | |
11852 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11853 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11854 | fi' | |
11855 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11856 | dlpath=$dir/\$dldll~ | |
11857 | $RM \$dlpath' | |
11858 | shlibpath_overrides_runpath=yes | |
11859 | ||
11860 | case $host_os in | |
11861 | cygwin*) | |
11862 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11863 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a RW |
11864 | |
11865 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
1cf3d07d | 11866 | ;; |
d58dead8 | 11867 | mingw* | cegcc*) |
1cf3d07d SE |
11868 | # MinGW DLLs use traditional 'lib' prefix |
11869 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
11870 | ;; |
11871 | pw32*) | |
11872 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11873 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11874 | ;; | |
11875 | esac | |
11876 | ;; | |
11877 | ||
11878 | *) | |
11879 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11880 | ;; | |
11881 | esac | |
11882 | dynamic_linker='Win32 ld.exe' | |
11883 | # FIXME: first we should search . and the directory the executable is in | |
11884 | shlibpath_var=PATH | |
11885 | ;; | |
11886 | ||
11887 | darwin* | rhapsody*) | |
11888 | dynamic_linker="$host_os dyld" | |
11889 | version_type=darwin | |
11890 | need_lib_prefix=no | |
11891 | need_version=no | |
11892 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11893 | soname_spec='${libname}${release}${major}$shared_ext' | |
11894 | shlibpath_overrides_runpath=yes | |
11895 | shlibpath_var=DYLD_LIBRARY_PATH | |
11896 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11897 | ||
11898 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11899 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11900 | ;; | |
11901 | ||
11902 | dgux*) | |
11903 | version_type=linux | |
11904 | need_lib_prefix=no | |
11905 | need_version=no | |
11906 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11907 | soname_spec='${libname}${release}${shared_ext}$major' | |
11908 | shlibpath_var=LD_LIBRARY_PATH | |
11909 | ;; | |
11910 | ||
1cf3d07d SE |
11911 | freebsd* | dragonfly*) |
11912 | # DragonFly does not have aout. When/if they implement a new | |
11913 | # versioning mechanism, adjust this. | |
11914 | if test -x /usr/bin/objformat; then | |
11915 | objformat=`/usr/bin/objformat` | |
11916 | else | |
11917 | case $host_os in | |
c6084f68 | 11918 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
11919 | *) objformat=elf ;; |
11920 | esac | |
11921 | fi | |
11922 | version_type=freebsd-$objformat | |
11923 | case $version_type in | |
11924 | freebsd-elf*) | |
11925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11926 | need_version=no | |
11927 | need_lib_prefix=no | |
11928 | ;; | |
11929 | freebsd-*) | |
11930 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11931 | need_version=yes | |
11932 | ;; | |
11933 | esac | |
11934 | shlibpath_var=LD_LIBRARY_PATH | |
11935 | case $host_os in | |
c6084f68 | 11936 | freebsd2.*) |
1cf3d07d SE |
11937 | shlibpath_overrides_runpath=yes |
11938 | ;; | |
11939 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11940 | shlibpath_overrides_runpath=yes | |
11941 | hardcode_into_libs=yes | |
11942 | ;; | |
11943 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11944 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11945 | shlibpath_overrides_runpath=no | |
11946 | hardcode_into_libs=yes | |
11947 | ;; | |
11948 | *) # from 4.6 on, and DragonFly | |
11949 | shlibpath_overrides_runpath=yes | |
11950 | hardcode_into_libs=yes | |
11951 | ;; | |
11952 | esac | |
11953 | ;; | |
11954 | ||
43e02a8a RW |
11955 | haiku*) |
11956 | version_type=linux | |
11957 | need_lib_prefix=no | |
11958 | need_version=no | |
11959 | dynamic_linker="$host_os runtime_loader" | |
11960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11961 | soname_spec='${libname}${release}${shared_ext}$major' | |
11962 | shlibpath_var=LIBRARY_PATH | |
11963 | shlibpath_overrides_runpath=yes | |
ead5103c | 11964 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
43e02a8a RW |
11965 | hardcode_into_libs=yes |
11966 | ;; | |
11967 | ||
1cf3d07d SE |
11968 | hpux9* | hpux10* | hpux11*) |
11969 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11970 | # link against other versions. | |
11971 | version_type=sunos | |
11972 | need_lib_prefix=no | |
11973 | need_version=no | |
11974 | case $host_cpu in | |
11975 | ia64*) | |
11976 | shrext_cmds='.so' | |
11977 | hardcode_into_libs=yes | |
11978 | dynamic_linker="$host_os dld.so" | |
11979 | shlibpath_var=LD_LIBRARY_PATH | |
11980 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11981 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11982 | soname_spec='${libname}${release}${shared_ext}$major' | |
11983 | if test "X$HPUX_IA64_MODE" = X32; then | |
11984 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11985 | else | |
11986 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11987 | fi | |
11988 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11989 | ;; | |
11990 | hppa*64*) | |
11991 | shrext_cmds='.sl' | |
11992 | hardcode_into_libs=yes | |
11993 | dynamic_linker="$host_os dld.sl" | |
11994 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11995 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11997 | soname_spec='${libname}${release}${shared_ext}$major' | |
11998 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11999 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12000 | ;; | |
12001 | *) | |
12002 | shrext_cmds='.sl' | |
12003 | dynamic_linker="$host_os dld.sl" | |
12004 | shlibpath_var=SHLIB_PATH | |
12005 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12007 | soname_spec='${libname}${release}${shared_ext}$major' | |
12008 | ;; | |
12009 | esac | |
43e02a8a | 12010 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 12011 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
12012 | # or fails outright, so override atomically: |
12013 | install_override_mode=555 | |
1cf3d07d SE |
12014 | ;; |
12015 | ||
12016 | interix[3-9]*) | |
12017 | version_type=linux | |
12018 | need_lib_prefix=no | |
12019 | need_version=no | |
12020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12021 | soname_spec='${libname}${release}${shared_ext}$major' | |
12022 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12023 | shlibpath_var=LD_LIBRARY_PATH | |
12024 | shlibpath_overrides_runpath=no | |
12025 | hardcode_into_libs=yes | |
12026 | ;; | |
12027 | ||
12028 | irix5* | irix6* | nonstopux*) | |
12029 | case $host_os in | |
12030 | nonstopux*) version_type=nonstopux ;; | |
12031 | *) | |
12032 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
12033 | version_type=linux | |
12034 | else | |
12035 | version_type=irix | |
12036 | fi ;; | |
12037 | esac | |
12038 | need_lib_prefix=no | |
12039 | need_version=no | |
12040 | soname_spec='${libname}${release}${shared_ext}$major' | |
12041 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12042 | case $host_os in | |
12043 | irix5* | nonstopux*) | |
12044 | libsuff= shlibsuff= | |
12045 | ;; | |
12046 | *) | |
12047 | case $LD in # libtool.m4 will add one of these switches to LD | |
12048 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12049 | libsuff= shlibsuff= libmagic=32-bit;; | |
12050 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12051 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12052 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12053 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12054 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12055 | esac | |
12056 | ;; | |
12057 | esac | |
12058 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12059 | shlibpath_overrides_runpath=no | |
12060 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12061 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12062 | hardcode_into_libs=yes | |
12063 | ;; | |
12064 | ||
12065 | # No shared lib support for Linux oldld, aout, or coff. | |
12066 | linux*oldld* | linux*aout* | linux*coff*) | |
12067 | dynamic_linker=no | |
12068 | ;; | |
12069 | ||
12070 | # This must be Linux ELF. | |
e9085da5 MR |
12071 | |
12072 | # uclinux* changes (here and below) have been submitted to the libtool | |
12073 | # project, but have not yet been accepted: they are GCC-local changes | |
12074 | # for the time being. (See | |
12075 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
f56de355 | 12076 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
1cf3d07d SE |
12077 | version_type=linux |
12078 | need_lib_prefix=no | |
12079 | need_version=no | |
12080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12081 | soname_spec='${libname}${release}${shared_ext}$major' | |
12082 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12083 | shlibpath_var=LD_LIBRARY_PATH | |
12084 | shlibpath_overrides_runpath=no | |
baafc534 | 12085 | |
1cf3d07d | 12086 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 12087 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 12088 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
12089 | else |
12090 | lt_cv_shlibpath_overrides_runpath=no | |
12091 | save_LDFLAGS=$LDFLAGS | |
12092 | save_libdir=$libdir | |
12093 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12094 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12095 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12096 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12097 | fi |
5213506e | 12098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12099 | /* end confdefs.h. */ |
12100 | ||
12101 | int | |
12102 | main () | |
12103 | { | |
12104 | ||
12105 | ; | |
12106 | return 0; | |
12107 | } | |
12108 | _ACEOF | |
5213506e RW |
12109 | if ac_fn_c_try_link "$LINENO"; then : |
12110 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 12111 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 12112 | fi |
1cf3d07d | 12113 | fi |
5213506e RW |
12114 | rm -f core conftest.err conftest.$ac_objext \ |
12115 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
12116 | LDFLAGS=$save_LDFLAGS |
12117 | libdir=$save_libdir | |
12118 | ||
12119 | fi | |
12120 | ||
12121 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
12122 | |
12123 | # This implies no fast_install, which is unacceptable. | |
12124 | # Some rework will be needed to allow for fast_install | |
12125 | # before this can be enabled. | |
12126 | hardcode_into_libs=yes | |
12127 | ||
12128 | # Append ld.so.conf contents to the search path | |
12129 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 12130 | 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 |
12131 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
12132 | fi | |
12133 | ||
12134 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12135 | # powerpc, because MkLinux only supported shared libraries with the | |
12136 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12137 | # most powerpc-linux boxes support dynamic linking these days and | |
12138 | # people can always --disable-shared, the test was removed, and we | |
12139 | # assume the GNU/Linux dynamic linker is in use. | |
12140 | dynamic_linker='GNU/Linux ld.so' | |
12141 | ;; | |
12142 | ||
12143 | netbsd*) | |
12144 | version_type=sunos | |
12145 | need_lib_prefix=no | |
12146 | need_version=no | |
12147 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12149 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12150 | dynamic_linker='NetBSD (a.out) ld.so' | |
12151 | else | |
12152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12153 | soname_spec='${libname}${release}${shared_ext}$major' | |
12154 | dynamic_linker='NetBSD ld.elf_so' | |
12155 | fi | |
12156 | shlibpath_var=LD_LIBRARY_PATH | |
12157 | shlibpath_overrides_runpath=yes | |
12158 | hardcode_into_libs=yes | |
12159 | ;; | |
12160 | ||
12161 | newsos6) | |
12162 | version_type=linux | |
12163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12164 | shlibpath_var=LD_LIBRARY_PATH | |
12165 | shlibpath_overrides_runpath=yes | |
12166 | ;; | |
12167 | ||
12168 | *nto* | *qnx*) | |
12169 | version_type=qnx | |
12170 | need_lib_prefix=no | |
12171 | need_version=no | |
12172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12173 | soname_spec='${libname}${release}${shared_ext}$major' | |
12174 | shlibpath_var=LD_LIBRARY_PATH | |
12175 | shlibpath_overrides_runpath=no | |
12176 | hardcode_into_libs=yes | |
12177 | dynamic_linker='ldqnx.so' | |
12178 | ;; | |
12179 | ||
12180 | openbsd*) | |
12181 | version_type=sunos | |
12182 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12183 | need_lib_prefix=no | |
12184 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12185 | case $host_os in | |
12186 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12187 | *) need_version=no ;; | |
12188 | esac | |
12189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12190 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12191 | shlibpath_var=LD_LIBRARY_PATH | |
12192 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12193 | case $host_os in | |
12194 | openbsd2.[89] | openbsd2.[89].*) | |
12195 | shlibpath_overrides_runpath=no | |
12196 | ;; | |
12197 | *) | |
12198 | shlibpath_overrides_runpath=yes | |
12199 | ;; | |
12200 | esac | |
12201 | else | |
12202 | shlibpath_overrides_runpath=yes | |
12203 | fi | |
12204 | ;; | |
12205 | ||
12206 | os2*) | |
12207 | libname_spec='$name' | |
12208 | shrext_cmds=".dll" | |
12209 | need_lib_prefix=no | |
12210 | library_names_spec='$libname${shared_ext} $libname.a' | |
12211 | dynamic_linker='OS/2 ld.exe' | |
12212 | shlibpath_var=LIBPATH | |
12213 | ;; | |
12214 | ||
12215 | osf3* | osf4* | osf5*) | |
12216 | version_type=osf | |
12217 | need_lib_prefix=no | |
12218 | need_version=no | |
12219 | soname_spec='${libname}${release}${shared_ext}$major' | |
12220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12221 | shlibpath_var=LD_LIBRARY_PATH | |
12222 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12223 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12224 | ;; | |
12225 | ||
12226 | rdos*) | |
12227 | dynamic_linker=no | |
12228 | ;; | |
12229 | ||
12230 | solaris*) | |
12231 | version_type=linux | |
12232 | need_lib_prefix=no | |
12233 | need_version=no | |
12234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12235 | soname_spec='${libname}${release}${shared_ext}$major' | |
12236 | shlibpath_var=LD_LIBRARY_PATH | |
12237 | shlibpath_overrides_runpath=yes | |
12238 | hardcode_into_libs=yes | |
12239 | # ldd complains unless libraries are executable | |
12240 | postinstall_cmds='chmod +x $lib' | |
12241 | ;; | |
12242 | ||
12243 | sunos4*) | |
12244 | version_type=sunos | |
12245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12246 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12247 | shlibpath_var=LD_LIBRARY_PATH | |
12248 | shlibpath_overrides_runpath=yes | |
12249 | if test "$with_gnu_ld" = yes; then | |
12250 | need_lib_prefix=no | |
12251 | fi | |
12252 | need_version=yes | |
12253 | ;; | |
12254 | ||
12255 | sysv4 | sysv4.3*) | |
12256 | version_type=linux | |
12257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12258 | soname_spec='${libname}${release}${shared_ext}$major' | |
12259 | shlibpath_var=LD_LIBRARY_PATH | |
12260 | case $host_vendor in | |
12261 | sni) | |
12262 | shlibpath_overrides_runpath=no | |
12263 | need_lib_prefix=no | |
12264 | runpath_var=LD_RUN_PATH | |
12265 | ;; | |
12266 | siemens) | |
12267 | need_lib_prefix=no | |
12268 | ;; | |
12269 | motorola) | |
12270 | need_lib_prefix=no | |
12271 | need_version=no | |
12272 | shlibpath_overrides_runpath=no | |
12273 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12274 | ;; | |
12275 | esac | |
12276 | ;; | |
12277 | ||
12278 | sysv4*MP*) | |
12279 | if test -d /usr/nec ;then | |
12280 | version_type=linux | |
12281 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12282 | soname_spec='$libname${shared_ext}.$major' | |
12283 | shlibpath_var=LD_LIBRARY_PATH | |
12284 | fi | |
12285 | ;; | |
12286 | ||
12287 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12288 | version_type=freebsd-elf | |
12289 | need_lib_prefix=no | |
12290 | need_version=no | |
12291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12292 | soname_spec='${libname}${release}${shared_ext}$major' | |
12293 | shlibpath_var=LD_LIBRARY_PATH | |
12294 | shlibpath_overrides_runpath=yes | |
12295 | hardcode_into_libs=yes | |
12296 | if test "$with_gnu_ld" = yes; then | |
12297 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12298 | else | |
12299 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12300 | case $host_os in | |
12301 | sco3.2v5*) | |
12302 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12303 | ;; | |
12304 | esac | |
12305 | fi | |
12306 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12307 | ;; | |
12308 | ||
12309 | tpf*) | |
12310 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12311 | version_type=linux | |
12312 | need_lib_prefix=no | |
12313 | need_version=no | |
d58dead8 | 12314 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
12315 | shlibpath_var=LD_LIBRARY_PATH |
12316 | shlibpath_overrides_runpath=no | |
12317 | hardcode_into_libs=yes | |
12318 | ;; | |
12319 | ||
12320 | uts4*) | |
12321 | version_type=linux | |
12322 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12323 | soname_spec='${libname}${release}${shared_ext}$major' | |
12324 | shlibpath_var=LD_LIBRARY_PATH | |
12325 | ;; | |
12326 | ||
0ecd0f1c OH |
12327 | # Shared libraries for VwWorks, >= 7 only at this stage |
12328 | # and (fpic) still incompatible with "large" code models | |
12329 | # in a few configurations. Only for RTP mode in any case, | |
12330 | # and upon explicit request at configure time. | |
12331 | vxworks7*) | |
12332 | dynamic_linker=no | |
12333 | case ${with_multisubdir}-${enable_shared} in | |
12334 | *large*) | |
12335 | ;; | |
12336 | *mrtp*-yes) | |
12337 | version_type=linux | |
12338 | need_lib_prefix=no | |
12339 | need_version=no | |
12340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12341 | soname_spec='${libname}${release}${shared_ext}$major' | |
12342 | dynamic_linker="$host_os module_loader" | |
12343 | ;; | |
12344 | esac | |
12345 | ;; | |
1cf3d07d SE |
12346 | *) |
12347 | dynamic_linker=no | |
12348 | ;; | |
12349 | esac | |
5213506e RW |
12350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
12351 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
12352 | test "$dynamic_linker" = no && can_build_shared=no |
12353 | ||
12354 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12355 | if test "$GCC" = yes; then | |
12356 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12357 | fi | |
12358 | ||
d58dead8 PG |
12359 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
12360 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12361 | fi | |
12362 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12363 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12364 | fi | |
12365 | ||
1cf3d07d SE |
12366 | |
12367 | ||
12368 | ||
12369 | ||
12370 | ||
12371 | ||
12372 | ||
12373 | ||
12374 | ||
12375 | ||
12376 | ||
12377 | ||
12378 | ||
12379 | ||
12380 | ||
12381 | ||
12382 | ||
12383 | ||
12384 | ||
12385 | ||
12386 | ||
12387 | ||
12388 | ||
12389 | ||
12390 | ||
12391 | ||
12392 | ||
12393 | ||
12394 | ||
12395 | ||
12396 | ||
12397 | ||
12398 | ||
12399 | ||
12400 | ||
12401 | ||
12402 | ||
12403 | ||
12404 | ||
12405 | ||
12406 | ||
12407 | ||
12408 | ||
12409 | ||
12410 | ||
12411 | ||
12412 | ||
12413 | ||
12414 | ||
12415 | ||
12416 | ||
12417 | ||
12418 | ||
12419 | ||
12420 | ||
12421 | ||
12422 | ||
12423 | ||
12424 | ||
12425 | ||
12426 | ||
12427 | ||
12428 | ||
12429 | ||
12430 | ||
12431 | ||
12432 | ||
12433 | ||
12434 | ||
12435 | ||
12436 | ||
12437 | ||
12438 | ||
12439 | ||
12440 | ||
12441 | ||
12442 | ||
12443 | ||
12444 | ||
12445 | ||
43e02a8a RW |
12446 | |
12447 | ||
12448 | ||
12449 | ||
12450 | ||
1cf3d07d SE |
12451 | |
12452 | ||
12453 | ||
12454 | ||
12455 | ||
12456 | ||
5213506e RW |
12457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
12458 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
12459 | hardcode_action= |
12460 | if test -n "$hardcode_libdir_flag_spec" || | |
12461 | test -n "$runpath_var" || | |
12462 | test "X$hardcode_automatic" = "Xyes" ; then | |
12463 | ||
12464 | # We can hardcode non-existent directories. | |
12465 | if test "$hardcode_direct" != no && | |
12466 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12467 | # have to relink, otherwise we might link with an installed library | |
12468 | # when we should be linking with a yet-to-be-installed one | |
12469 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12470 | test "$hardcode_minus_L" != no; then | |
12471 | # Linking always hardcodes the temporary library directory. | |
12472 | hardcode_action=relink | |
12473 | else | |
12474 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12475 | hardcode_action=immediate | |
12476 | fi | |
12477 | else | |
12478 | # We cannot hardcode anything, or else we can only hardcode existing | |
12479 | # directories. | |
12480 | hardcode_action=unsupported | |
12481 | fi | |
5213506e RW |
12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
12483 | $as_echo "$hardcode_action" >&6; } | |
1cf3d07d SE |
12484 | |
12485 | if test "$hardcode_action" = relink || | |
12486 | test "$inherit_rpath" = yes; then | |
12487 | # Fast installation is not supported | |
12488 | enable_fast_install=no | |
12489 | elif test "$shlibpath_overrides_runpath" = yes || | |
12490 | test "$enable_shared" = no; then | |
12491 | # Fast installation is not necessary | |
12492 | enable_fast_install=needless | |
12493 | fi | |
12494 | ||
12495 | ||
12496 | ||
12497 | ||
12498 | ||
12499 | ||
12500 | if test "x$enable_dlopen" != xyes; then | |
12501 | enable_dlopen=unknown | |
12502 | enable_dlopen_self=unknown | |
12503 | enable_dlopen_self_static=unknown | |
12504 | else | |
12505 | lt_cv_dlopen=no | |
12506 | lt_cv_dlopen_libs= | |
12507 | ||
12508 | case $host_os in | |
12509 | beos*) | |
12510 | lt_cv_dlopen="load_add_on" | |
12511 | lt_cv_dlopen_libs= | |
12512 | lt_cv_dlopen_self=yes | |
12513 | ;; | |
12514 | ||
d58dead8 | 12515 | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12516 | lt_cv_dlopen="LoadLibrary" |
12517 | lt_cv_dlopen_libs= | |
12518 | ;; | |
12519 | ||
12520 | cygwin*) | |
12521 | lt_cv_dlopen="dlopen" | |
12522 | lt_cv_dlopen_libs= | |
12523 | ;; | |
12524 | ||
12525 | darwin*) | |
12526 | # if libdl is installed we need to link against it | |
5213506e RW |
12527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12528 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 12529 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 12530 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12531 | else |
12532 | ac_check_lib_save_LIBS=$LIBS | |
12533 | LIBS="-ldl $LIBS" | |
12534 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12535 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12536 | fi |
5213506e | 12537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12538 | /* end confdefs.h. */ |
12539 | ||
5213506e RW |
12540 | /* Override any GCC internal prototype to avoid an error. |
12541 | Use char because int might match the return type of a GCC | |
12542 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12543 | #ifdef __cplusplus |
12544 | extern "C" | |
12545 | #endif | |
1cf3d07d SE |
12546 | char dlopen (); |
12547 | int | |
12548 | main () | |
12549 | { | |
5213506e | 12550 | return dlopen (); |
1cf3d07d SE |
12551 | ; |
12552 | return 0; | |
12553 | } | |
12554 | _ACEOF | |
5213506e | 12555 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12556 | ac_cv_lib_dl_dlopen=yes |
12557 | else | |
5213506e | 12558 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 12559 | fi |
5213506e RW |
12560 | rm -f core conftest.err conftest.$ac_objext \ |
12561 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12562 | LIBS=$ac_check_lib_save_LIBS |
12563 | fi | |
5213506e RW |
12564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12565 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 12566 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
12567 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12568 | else | |
12569 | ||
12570 | lt_cv_dlopen="dyld" | |
12571 | lt_cv_dlopen_libs= | |
12572 | lt_cv_dlopen_self=yes | |
12573 | ||
12574 | fi | |
12575 | ||
12576 | ;; | |
12577 | ||
12578 | *) | |
5213506e | 12579 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
22e05272 | 12580 | if test "x$ac_cv_func_shl_load" = xyes; then : |
1cf3d07d SE |
12581 | lt_cv_dlopen="shl_load" |
12582 | else | |
5213506e RW |
12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12584 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
22e05272 | 12585 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
5213506e | 12586 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12587 | else |
12588 | ac_check_lib_save_LIBS=$LIBS | |
12589 | LIBS="-ldld $LIBS" | |
12590 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12591 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12592 | fi |
5213506e | 12593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12594 | /* end confdefs.h. */ |
12595 | ||
5213506e RW |
12596 | /* Override any GCC internal prototype to avoid an error. |
12597 | Use char because int might match the return type of a GCC | |
12598 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12599 | #ifdef __cplusplus |
12600 | extern "C" | |
12601 | #endif | |
1cf3d07d SE |
12602 | char shl_load (); |
12603 | int | |
12604 | main () | |
12605 | { | |
5213506e | 12606 | return shl_load (); |
1cf3d07d SE |
12607 | ; |
12608 | return 0; | |
12609 | } | |
12610 | _ACEOF | |
5213506e | 12611 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12612 | ac_cv_lib_dld_shl_load=yes |
12613 | else | |
5213506e | 12614 | ac_cv_lib_dld_shl_load=no |
1cf3d07d | 12615 | fi |
5213506e RW |
12616 | rm -f core conftest.err conftest.$ac_objext \ |
12617 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12618 | LIBS=$ac_check_lib_save_LIBS |
12619 | fi | |
5213506e RW |
12620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12621 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
22e05272 | 12622 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
d58dead8 | 12623 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
1cf3d07d | 12624 | else |
5213506e | 12625 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
22e05272 | 12626 | if test "x$ac_cv_func_dlopen" = xyes; then : |
1cf3d07d SE |
12627 | lt_cv_dlopen="dlopen" |
12628 | else | |
5213506e RW |
12629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12630 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 12631 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 12632 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12633 | else |
12634 | ac_check_lib_save_LIBS=$LIBS | |
12635 | LIBS="-ldl $LIBS" | |
12636 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12637 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12638 | fi |
5213506e | 12639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12640 | /* end confdefs.h. */ |
12641 | ||
5213506e RW |
12642 | /* Override any GCC internal prototype to avoid an error. |
12643 | Use char because int might match the return type of a GCC | |
12644 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12645 | #ifdef __cplusplus |
12646 | extern "C" | |
12647 | #endif | |
1cf3d07d SE |
12648 | char dlopen (); |
12649 | int | |
12650 | main () | |
12651 | { | |
5213506e | 12652 | return dlopen (); |
1cf3d07d SE |
12653 | ; |
12654 | return 0; | |
12655 | } | |
12656 | _ACEOF | |
5213506e | 12657 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12658 | ac_cv_lib_dl_dlopen=yes |
12659 | else | |
5213506e | 12660 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 12661 | fi |
5213506e RW |
12662 | rm -f core conftest.err conftest.$ac_objext \ |
12663 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12664 | LIBS=$ac_check_lib_save_LIBS |
12665 | fi | |
5213506e RW |
12666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12667 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 12668 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
12669 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12670 | else | |
5213506e RW |
12671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
12672 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
22e05272 | 12673 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
5213506e | 12674 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12675 | else |
12676 | ac_check_lib_save_LIBS=$LIBS | |
12677 | LIBS="-lsvld $LIBS" | |
12678 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12679 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12680 | fi |
5213506e | 12681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12682 | /* end confdefs.h. */ |
12683 | ||
5213506e RW |
12684 | /* Override any GCC internal prototype to avoid an error. |
12685 | Use char because int might match the return type of a GCC | |
12686 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12687 | #ifdef __cplusplus |
12688 | extern "C" | |
12689 | #endif | |
1cf3d07d SE |
12690 | char dlopen (); |
12691 | int | |
12692 | main () | |
12693 | { | |
5213506e | 12694 | return dlopen (); |
1cf3d07d SE |
12695 | ; |
12696 | return 0; | |
12697 | } | |
12698 | _ACEOF | |
5213506e | 12699 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12700 | ac_cv_lib_svld_dlopen=yes |
12701 | else | |
5213506e | 12702 | ac_cv_lib_svld_dlopen=no |
1cf3d07d | 12703 | fi |
5213506e RW |
12704 | rm -f core conftest.err conftest.$ac_objext \ |
12705 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12706 | LIBS=$ac_check_lib_save_LIBS |
12707 | fi | |
5213506e RW |
12708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12709 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
22e05272 | 12710 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
1cf3d07d SE |
12711 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12712 | else | |
5213506e RW |
12713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12714 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
22e05272 | 12715 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
5213506e | 12716 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12717 | else |
12718 | ac_check_lib_save_LIBS=$LIBS | |
12719 | LIBS="-ldld $LIBS" | |
12720 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12721 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12722 | fi |
5213506e | 12723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12724 | /* end confdefs.h. */ |
12725 | ||
5213506e RW |
12726 | /* Override any GCC internal prototype to avoid an error. |
12727 | Use char because int might match the return type of a GCC | |
12728 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12729 | #ifdef __cplusplus |
12730 | extern "C" | |
12731 | #endif | |
1cf3d07d SE |
12732 | char dld_link (); |
12733 | int | |
12734 | main () | |
12735 | { | |
5213506e | 12736 | return dld_link (); |
1cf3d07d SE |
12737 | ; |
12738 | return 0; | |
12739 | } | |
12740 | _ACEOF | |
5213506e | 12741 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12742 | ac_cv_lib_dld_dld_link=yes |
12743 | else | |
5213506e | 12744 | ac_cv_lib_dld_dld_link=no |
1cf3d07d | 12745 | fi |
5213506e RW |
12746 | rm -f core conftest.err conftest.$ac_objext \ |
12747 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12748 | LIBS=$ac_check_lib_save_LIBS |
12749 | fi | |
5213506e RW |
12750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12751 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
22e05272 | 12752 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
d58dead8 | 12753 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
1cf3d07d SE |
12754 | fi |
12755 | ||
12756 | ||
12757 | fi | |
12758 | ||
12759 | ||
12760 | fi | |
12761 | ||
12762 | ||
12763 | fi | |
12764 | ||
12765 | ||
12766 | fi | |
12767 | ||
12768 | ||
12769 | fi | |
12770 | ||
12771 | ;; | |
12772 | esac | |
12773 | ||
12774 | if test "x$lt_cv_dlopen" != xno; then | |
12775 | enable_dlopen=yes | |
12776 | else | |
12777 | enable_dlopen=no | |
12778 | fi | |
12779 | ||
12780 | case $lt_cv_dlopen in | |
12781 | dlopen) | |
12782 | save_CPPFLAGS="$CPPFLAGS" | |
12783 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12784 | ||
12785 | save_LDFLAGS="$LDFLAGS" | |
12786 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12787 | ||
12788 | save_LIBS="$LIBS" | |
12789 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12790 | ||
5213506e RW |
12791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12792 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
22e05272 | 12793 | if ${lt_cv_dlopen_self+:} false; then : |
5213506e | 12794 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12795 | else |
12796 | if test "$cross_compiling" = yes; then : | |
12797 | lt_cv_dlopen_self=cross | |
12798 | else | |
12799 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12800 | lt_status=$lt_dlunknown | |
12801 | cat > conftest.$ac_ext <<_LT_EOF | |
f3307109 | 12802 | #line 12802 "configure" |
1cf3d07d SE |
12803 | #include "confdefs.h" |
12804 | ||
12805 | #if HAVE_DLFCN_H | |
12806 | #include <dlfcn.h> | |
12807 | #endif | |
12808 | ||
12809 | #include <stdio.h> | |
12810 | ||
12811 | #ifdef RTLD_GLOBAL | |
12812 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12813 | #else | |
12814 | # ifdef DL_GLOBAL | |
12815 | # define LT_DLGLOBAL DL_GLOBAL | |
12816 | # else | |
12817 | # define LT_DLGLOBAL 0 | |
12818 | # endif | |
12819 | #endif | |
12820 | ||
12821 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12822 | find out it does not work in some platform. */ | |
12823 | #ifndef LT_DLLAZY_OR_NOW | |
12824 | # ifdef RTLD_LAZY | |
12825 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12826 | # else | |
12827 | # ifdef DL_LAZY | |
12828 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12829 | # else | |
12830 | # ifdef RTLD_NOW | |
12831 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12832 | # else | |
12833 | # ifdef DL_NOW | |
12834 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12835 | # else | |
12836 | # define LT_DLLAZY_OR_NOW 0 | |
12837 | # endif | |
12838 | # endif | |
12839 | # endif | |
12840 | # endif | |
12841 | #endif | |
12842 | ||
43e02a8a RW |
12843 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12844 | correspondingly for the symbols needed. */ | |
12845 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12846 | void fnord () __attribute__((visibility("default"))); | |
12847 | #endif | |
12848 | ||
12849 | void fnord () { int i=42; } | |
1cf3d07d SE |
12850 | int main () |
12851 | { | |
12852 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12853 | int status = $lt_dlunknown; | |
12854 | ||
12855 | if (self) | |
12856 | { | |
12857 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
12858 | else |
12859 | { | |
12860 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12861 | else puts (dlerror ()); | |
12862 | } | |
1cf3d07d SE |
12863 | /* dlclose (self); */ |
12864 | } | |
12865 | else | |
12866 | puts (dlerror ()); | |
12867 | ||
d58dead8 | 12868 | return status; |
1cf3d07d SE |
12869 | } |
12870 | _LT_EOF | |
5213506e | 12871 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
12872 | (eval $ac_link) 2>&5 |
12873 | ac_status=$? | |
5213506e RW |
12874 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12875 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
12876 | (./conftest; exit; ) >&5 2>/dev/null |
12877 | lt_status=$? | |
12878 | case x$lt_status in | |
12879 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12880 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12881 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12882 | esac | |
12883 | else : | |
12884 | # compilation failed | |
12885 | lt_cv_dlopen_self=no | |
12886 | fi | |
12887 | fi | |
12888 | rm -fr conftest* | |
12889 | ||
12890 | ||
12891 | fi | |
5213506e RW |
12892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12893 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
1cf3d07d SE |
12894 | |
12895 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12896 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
5213506e RW |
12897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
12898 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
22e05272 | 12899 | if ${lt_cv_dlopen_self_static+:} false; then : |
5213506e | 12900 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12901 | else |
12902 | if test "$cross_compiling" = yes; then : | |
12903 | lt_cv_dlopen_self_static=cross | |
12904 | else | |
12905 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12906 | lt_status=$lt_dlunknown | |
12907 | cat > conftest.$ac_ext <<_LT_EOF | |
f3307109 | 12908 | #line 12908 "configure" |
1cf3d07d SE |
12909 | #include "confdefs.h" |
12910 | ||
12911 | #if HAVE_DLFCN_H | |
12912 | #include <dlfcn.h> | |
12913 | #endif | |
12914 | ||
12915 | #include <stdio.h> | |
12916 | ||
12917 | #ifdef RTLD_GLOBAL | |
12918 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12919 | #else | |
12920 | # ifdef DL_GLOBAL | |
12921 | # define LT_DLGLOBAL DL_GLOBAL | |
12922 | # else | |
12923 | # define LT_DLGLOBAL 0 | |
12924 | # endif | |
12925 | #endif | |
12926 | ||
12927 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12928 | find out it does not work in some platform. */ | |
12929 | #ifndef LT_DLLAZY_OR_NOW | |
12930 | # ifdef RTLD_LAZY | |
12931 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12932 | # else | |
12933 | # ifdef DL_LAZY | |
12934 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12935 | # else | |
12936 | # ifdef RTLD_NOW | |
12937 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12938 | # else | |
12939 | # ifdef DL_NOW | |
12940 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12941 | # else | |
12942 | # define LT_DLLAZY_OR_NOW 0 | |
12943 | # endif | |
12944 | # endif | |
12945 | # endif | |
12946 | # endif | |
12947 | #endif | |
12948 | ||
43e02a8a RW |
12949 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12950 | correspondingly for the symbols needed. */ | |
12951 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12952 | void fnord () __attribute__((visibility("default"))); | |
12953 | #endif | |
12954 | ||
12955 | void fnord () { int i=42; } | |
1cf3d07d SE |
12956 | int main () |
12957 | { | |
12958 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12959 | int status = $lt_dlunknown; | |
12960 | ||
12961 | if (self) | |
12962 | { | |
12963 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
12964 | else |
12965 | { | |
12966 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12967 | else puts (dlerror ()); | |
12968 | } | |
1cf3d07d SE |
12969 | /* dlclose (self); */ |
12970 | } | |
12971 | else | |
12972 | puts (dlerror ()); | |
12973 | ||
d58dead8 | 12974 | return status; |
1cf3d07d SE |
12975 | } |
12976 | _LT_EOF | |
5213506e | 12977 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
12978 | (eval $ac_link) 2>&5 |
12979 | ac_status=$? | |
5213506e RW |
12980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12981 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
12982 | (./conftest; exit; ) >&5 2>/dev/null |
12983 | lt_status=$? | |
12984 | case x$lt_status in | |
12985 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12986 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12987 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12988 | esac | |
12989 | else : | |
12990 | # compilation failed | |
12991 | lt_cv_dlopen_self_static=no | |
12992 | fi | |
12993 | fi | |
12994 | rm -fr conftest* | |
12995 | ||
12996 | ||
12997 | fi | |
5213506e RW |
12998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12999 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
1cf3d07d SE |
13000 | fi |
13001 | ||
13002 | CPPFLAGS="$save_CPPFLAGS" | |
13003 | LDFLAGS="$save_LDFLAGS" | |
13004 | LIBS="$save_LIBS" | |
13005 | ;; | |
13006 | esac | |
13007 | ||
13008 | case $lt_cv_dlopen_self in | |
13009 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
13010 | *) enable_dlopen_self=unknown ;; | |
13011 | esac | |
13012 | ||
13013 | case $lt_cv_dlopen_self_static in | |
13014 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
13015 | *) enable_dlopen_self_static=unknown ;; | |
13016 | esac | |
13017 | fi | |
13018 | ||
13019 | ||
13020 | ||
13021 | ||
13022 | ||
13023 | ||
13024 | ||
13025 | ||
13026 | ||
13027 | ||
13028 | ||
13029 | ||
13030 | ||
13031 | ||
13032 | ||
13033 | ||
13034 | ||
13035 | striplib= | |
13036 | old_striplib= | |
5213506e RW |
13037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
13038 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
1cf3d07d SE |
13039 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
13040 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
13041 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
5213506e RW |
13042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13043 | $as_echo "yes" >&6; } | |
1cf3d07d SE |
13044 | else |
13045 | # FIXME - insert some real tests, host_os isn't really good enough | |
13046 | case $host_os in | |
13047 | darwin*) | |
13048 | if test -n "$STRIP" ; then | |
13049 | striplib="$STRIP -x" | |
13050 | old_striplib="$STRIP -S" | |
5213506e RW |
13051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13052 | $as_echo "yes" >&6; } | |
1cf3d07d | 13053 | else |
5213506e RW |
13054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13055 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13056 | fi |
13057 | ;; | |
13058 | *) | |
5213506e RW |
13059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13060 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13061 | ;; |
13062 | esac | |
13063 | fi | |
13064 | ||
13065 | ||
13066 | ||
13067 | ||
13068 | ||
13069 | ||
13070 | ||
13071 | ||
13072 | ||
13073 | ||
13074 | ||
13075 | ||
43e02a8a RW |
13076 | # Report which library types will actually be built |
13077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
13078 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13080 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 13081 | |
43e02a8a RW |
13082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13083 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
13084 | test "$can_build_shared" = "no" && enable_shared=no | |
1cf3d07d | 13085 | |
43e02a8a RW |
13086 | # On AIX, shared libraries and static libraries use the same namespace, and |
13087 | # are all built from PIC. | |
13088 | case $host_os in | |
13089 | aix3*) | |
13090 | test "$enable_shared" = yes && enable_static=no | |
13091 | if test -n "$RANLIB"; then | |
13092 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13093 | postinstall_cmds='$RANLIB $lib' | |
13094 | fi | |
13095 | ;; | |
1cf3d07d | 13096 | |
43e02a8a RW |
13097 | aix[4-9]*) |
13098 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
13099 | test "$enable_shared" = yes && enable_static=no | |
13100 | fi | |
13101 | ;; | |
13102 | esac | |
13103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
13104 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 13105 | |
43e02a8a RW |
13106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13107 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13108 | # Make sure either enable_shared or enable_static is yes. | |
13109 | test "$enable_shared" = yes || enable_static=yes | |
13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
13111 | $as_echo "$enable_static" >&6; } | |
1cf3d07d | 13112 | |
1cf3d07d | 13113 | |
1cf3d07d | 13114 | |
1cf3d07d SE |
13115 | |
13116 | fi | |
1cf3d07d SE |
13117 | ac_ext=c |
13118 | ac_cpp='$CPP $CPPFLAGS' | |
13119 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13120 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13121 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13122 | ||
43e02a8a RW |
13123 | CC="$lt_save_CC" |
13124 | ||
13125 | ||
13126 | ||
13127 | ||
13128 | ||
13129 | ||
13130 | ||
13131 | ||
13132 | ||
13133 | ||
13134 | ||
13135 | ||
13136 | ||
13137 | ac_config_commands="$ac_config_commands libtool" | |
13138 | ||
13139 | ||
13140 | ||
13141 | ||
13142 | # Only expand once: | |
13143 | ||
13144 | ||
9b025925 IS |
13145 | LIBM= |
13146 | case $host in | |
13147 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | |
13148 | # These system don't have libm, or don't need it | |
13149 | ;; | |
13150 | *-ncr-sysv4.3*) | |
13151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 | |
13152 | $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } | |
13153 | if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : | |
13154 | $as_echo_n "(cached) " >&6 | |
13155 | else | |
13156 | ac_check_lib_save_LIBS=$LIBS | |
13157 | LIBS="-lmw $LIBS" | |
13158 | if test x$gcc_no_link = xyes; then | |
13159 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
13160 | fi | |
13161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13162 | /* end confdefs.h. */ | |
13163 | ||
13164 | /* Override any GCC internal prototype to avoid an error. | |
13165 | Use char because int might match the return type of a GCC | |
13166 | builtin and then its argument prototype would still apply. */ | |
13167 | #ifdef __cplusplus | |
13168 | extern "C" | |
13169 | #endif | |
13170 | char _mwvalidcheckl (); | |
13171 | int | |
13172 | main () | |
13173 | { | |
13174 | return _mwvalidcheckl (); | |
13175 | ; | |
13176 | return 0; | |
13177 | } | |
13178 | _ACEOF | |
13179 | if ac_fn_c_try_link "$LINENO"; then : | |
13180 | ac_cv_lib_mw__mwvalidcheckl=yes | |
13181 | else | |
13182 | ac_cv_lib_mw__mwvalidcheckl=no | |
13183 | fi | |
13184 | rm -f core conftest.err conftest.$ac_objext \ | |
13185 | conftest$ac_exeext conftest.$ac_ext | |
13186 | LIBS=$ac_check_lib_save_LIBS | |
13187 | fi | |
13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 | |
13189 | $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } | |
13190 | if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : | |
13191 | LIBM="-lmw" | |
13192 | fi | |
13193 | ||
13194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 | |
13195 | $as_echo_n "checking for cos in -lm... " >&6; } | |
13196 | if ${ac_cv_lib_m_cos+:} false; then : | |
13197 | $as_echo_n "(cached) " >&6 | |
13198 | else | |
13199 | ac_check_lib_save_LIBS=$LIBS | |
13200 | LIBS="-lm $LIBS" | |
13201 | if test x$gcc_no_link = xyes; then | |
13202 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
13203 | fi | |
13204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13205 | /* end confdefs.h. */ | |
13206 | ||
13207 | /* Override any GCC internal prototype to avoid an error. | |
13208 | Use char because int might match the return type of a GCC | |
13209 | builtin and then its argument prototype would still apply. */ | |
13210 | #ifdef __cplusplus | |
13211 | extern "C" | |
13212 | #endif | |
13213 | char cos (); | |
13214 | int | |
13215 | main () | |
13216 | { | |
13217 | return cos (); | |
13218 | ; | |
13219 | return 0; | |
13220 | } | |
13221 | _ACEOF | |
13222 | if ac_fn_c_try_link "$LINENO"; then : | |
13223 | ac_cv_lib_m_cos=yes | |
13224 | else | |
13225 | ac_cv_lib_m_cos=no | |
13226 | fi | |
13227 | rm -f core conftest.err conftest.$ac_objext \ | |
13228 | conftest$ac_exeext conftest.$ac_ext | |
13229 | LIBS=$ac_check_lib_save_LIBS | |
13230 | fi | |
13231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 | |
13232 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
13233 | if test "x$ac_cv_lib_m_cos" = xyes; then : | |
13234 | LIBM="$LIBM -lm" | |
13235 | fi | |
13236 | ||
13237 | ;; | |
13238 | *) | |
13239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 | |
13240 | $as_echo_n "checking for cos in -lm... " >&6; } | |
13241 | if ${ac_cv_lib_m_cos+:} false; then : | |
13242 | $as_echo_n "(cached) " >&6 | |
13243 | else | |
13244 | ac_check_lib_save_LIBS=$LIBS | |
13245 | LIBS="-lm $LIBS" | |
13246 | if test x$gcc_no_link = xyes; then | |
13247 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
13248 | fi | |
13249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13250 | /* end confdefs.h. */ | |
13251 | ||
13252 | /* Override any GCC internal prototype to avoid an error. | |
13253 | Use char because int might match the return type of a GCC | |
13254 | builtin and then its argument prototype would still apply. */ | |
13255 | #ifdef __cplusplus | |
13256 | extern "C" | |
13257 | #endif | |
13258 | char cos (); | |
13259 | int | |
13260 | main () | |
13261 | { | |
13262 | return cos (); | |
13263 | ; | |
13264 | return 0; | |
13265 | } | |
13266 | _ACEOF | |
13267 | if ac_fn_c_try_link "$LINENO"; then : | |
13268 | ac_cv_lib_m_cos=yes | |
13269 | else | |
13270 | ac_cv_lib_m_cos=no | |
13271 | fi | |
13272 | rm -f core conftest.err conftest.$ac_objext \ | |
13273 | conftest$ac_exeext conftest.$ac_ext | |
13274 | LIBS=$ac_check_lib_save_LIBS | |
13275 | fi | |
13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 | |
13277 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
13278 | if test "x$ac_cv_lib_m_cos" = xyes; then : | |
13279 | LIBM="-lm" | |
13280 | fi | |
13281 | ||
13282 | ;; | |
13283 | esac | |
13284 | ||
13285 | ||
43e02a8a RW |
13286 | |
13287 | ||
7de6ba7a DK |
13288 | |
13289 | case $host in | |
13290 | *-cygwin* | *-mingw*) | |
13291 | # 'host' will be top-level target in the case of a target lib, | |
13292 | # we must compare to with_cross_host to decide if this is a native | |
13293 | # or cross-compiler and select where to install dlls appropriately. | |
13294 | if test -n "$with_cross_host" && | |
13295 | test x"$with_cross_host" != x"no"; then | |
13296 | lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
13297 | else | |
13298 | lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
13299 | fi | |
13300 | ;; | |
13301 | *) | |
13302 | lt_host_flags= | |
13303 | ;; | |
13304 | esac | |
13305 | ||
13306 | ||
13307 | ||
13308 | ||
13309 | ||
43e02a8a | 13310 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 |
1cf3d07d | 13311 | |
43e02a8a RW |
13312 | # We need gfortran to compile parts of the library |
13313 | #AC_PROG_FC(gfortran) | |
13314 | FC="$GFORTRAN" | |
5213506e RW |
13315 | ac_ext=${ac_fc_srcext-f} |
13316 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13317 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
13318 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13319 | if test -n "$ac_tool_prefix"; then | |
43e02a8a | 13320 | for ac_prog in gfortran |
1cf3d07d SE |
13321 | do |
13322 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13323 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13325 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13326 | if ${ac_cv_prog_FC+:} false; then : |
5213506e | 13327 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13328 | else |
13329 | if test -n "$FC"; then | |
13330 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
13331 | else | |
13332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13333 | for as_dir in $PATH | |
13334 | do | |
13335 | IFS=$as_save_IFS | |
13336 | test -z "$as_dir" && as_dir=. | |
5213506e | 13337 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13338 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 13339 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
5213506e | 13340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
13341 | break 2 |
13342 | fi | |
13343 | done | |
5213506e RW |
13344 | done |
13345 | IFS=$as_save_IFS | |
1cf3d07d SE |
13346 | |
13347 | fi | |
13348 | fi | |
13349 | FC=$ac_cv_prog_FC | |
13350 | if test -n "$FC"; then | |
5213506e RW |
13351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
13352 | $as_echo "$FC" >&6; } | |
1cf3d07d | 13353 | else |
5213506e RW |
13354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13355 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13356 | fi |
13357 | ||
5213506e | 13358 | |
1cf3d07d SE |
13359 | test -n "$FC" && break |
13360 | done | |
13361 | fi | |
13362 | if test -z "$FC"; then | |
13363 | ac_ct_FC=$FC | |
43e02a8a | 13364 | for ac_prog in gfortran |
1cf3d07d SE |
13365 | do |
13366 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13367 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
13368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13369 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13370 | if ${ac_cv_prog_ac_ct_FC+:} false; then : |
5213506e | 13371 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13372 | else |
13373 | if test -n "$ac_ct_FC"; then | |
13374 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
13375 | else | |
13376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13377 | for as_dir in $PATH | |
13378 | do | |
13379 | IFS=$as_save_IFS | |
13380 | test -z "$as_dir" && as_dir=. | |
5213506e | 13381 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13382 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 13383 | ac_cv_prog_ac_ct_FC="$ac_prog" |
5213506e | 13384 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
13385 | break 2 |
13386 | fi | |
13387 | done | |
5213506e RW |
13388 | done |
13389 | IFS=$as_save_IFS | |
1cf3d07d SE |
13390 | |
13391 | fi | |
13392 | fi | |
13393 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
13394 | if test -n "$ac_ct_FC"; then | |
5213506e RW |
13395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
13396 | $as_echo "$ac_ct_FC" >&6; } | |
1cf3d07d | 13397 | else |
5213506e RW |
13398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13399 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13400 | fi |
13401 | ||
5213506e | 13402 | |
1cf3d07d | 13403 | test -n "$ac_ct_FC" && break |
38d24731 RW |
13404 | done |
13405 | ||
5213506e RW |
13406 | if test "x$ac_ct_FC" = x; then |
13407 | FC="" | |
13408 | else | |
13409 | case $cross_compiling:$ac_tool_warned in | |
13410 | yes:) | |
13411 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13412 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13413 | ac_tool_warned=yes ;; | |
13414 | esac | |
13415 | FC=$ac_ct_FC | |
13416 | fi | |
1cf3d07d SE |
13417 | fi |
13418 | ||
13419 | ||
13420 | # Provide some information about the compiler. | |
5213506e RW |
13421 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
13422 | set X $ac_compile | |
13423 | ac_compiler=$2 | |
13424 | for ac_option in --version -v -V -qversion; do | |
13425 | { { ac_try="$ac_compiler $ac_option >&5" | |
13426 | case "(($ac_try" in | |
13427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13428 | *) ac_try_echo=$ac_try;; | |
13429 | esac | |
13430 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
13431 | $as_echo "$ac_try_echo"; } >&5 | |
13432 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1cf3d07d | 13433 | ac_status=$? |
5213506e RW |
13434 | if test -s conftest.err; then |
13435 | sed '10a\ | |
13436 | ... rest of stderr output deleted ... | |
13437 | 10q' conftest.err >conftest.er1 | |
13438 | cat conftest.er1 >&5 | |
5213506e | 13439 | fi |
22e05272 | 13440 | rm -f conftest.er1 conftest.err |
5213506e RW |
13441 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13442 | test $ac_status = 0; } | |
13443 | done | |
1cf3d07d SE |
13444 | rm -f a.out |
13445 | ||
13446 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
13447 | # input file. (Note that this only needs to work for GNU compilers.) | |
13448 | ac_save_ext=$ac_ext | |
13449 | ac_ext=F | |
5213506e RW |
13450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
13451 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | |
22e05272 | 13452 | if ${ac_cv_fc_compiler_gnu+:} false; then : |
5213506e | 13453 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 13454 | else |
5213506e | 13455 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13456 | program main |
13457 | #ifndef __GNUC__ | |
13458 | choke me | |
13459 | #endif | |
13460 | ||
13461 | end | |
13462 | _ACEOF | |
5213506e | 13463 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
13464 | ac_compiler_gnu=yes |
13465 | else | |
5213506e | 13466 | ac_compiler_gnu=no |
1cf3d07d | 13467 | fi |
5213506e | 13468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
13469 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
13470 | ||
13471 | fi | |
5213506e RW |
13472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
13473 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
1cf3d07d | 13474 | ac_ext=$ac_save_ext |
5213506e RW |
13475 | ac_test_FCFLAGS=${FCFLAGS+set} |
13476 | ac_save_FCFLAGS=$FCFLAGS | |
1cf3d07d | 13477 | FCFLAGS= |
5213506e RW |
13478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
13479 | $as_echo_n "checking whether $FC accepts -g... " >&6; } | |
22e05272 | 13480 | if ${ac_cv_prog_fc_g+:} false; then : |
5213506e | 13481 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13482 | else |
13483 | FCFLAGS=-g | |
5213506e | 13484 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13485 | program main |
13486 | ||
13487 | end | |
13488 | _ACEOF | |
5213506e | 13489 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
13490 | ac_cv_prog_fc_g=yes |
13491 | else | |
5213506e | 13492 | ac_cv_prog_fc_g=no |
1cf3d07d | 13493 | fi |
5213506e | 13494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
13495 | |
13496 | fi | |
5213506e RW |
13497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
13498 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
13499 | if test "$ac_test_FCFLAGS" = set; then | |
13500 | FCFLAGS=$ac_save_FCFLAGS | |
1cf3d07d SE |
13501 | elif test $ac_cv_prog_fc_g = yes; then |
13502 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13503 | FCFLAGS="-g -O2" | |
13504 | else | |
13505 | FCFLAGS="-g" | |
13506 | fi | |
13507 | else | |
13508 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13509 | FCFLAGS="-O2" | |
13510 | else | |
13511 | FCFLAGS= | |
13512 | fi | |
13513 | fi | |
13514 | ||
22e05272 JM |
13515 | if test $ac_compiler_gnu = yes; then |
13516 | GFC=yes | |
13517 | else | |
13518 | GFC= | |
13519 | fi | |
1cf3d07d SE |
13520 | ac_ext=c |
13521 | ac_cpp='$CPP $CPPFLAGS' | |
13522 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13523 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13524 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13525 | ||
5213506e RW |
13526 | ac_ext=${ac_fc_srcext-f} |
13527 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13528 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
13529 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13530 | ||
13531 | ||
43e02a8a RW |
13532 | if test -z "$FC" || test "X$FC" = "Xno"; then |
13533 | _lt_disable_FC=yes | |
13534 | fi | |
13535 | ||
1cf3d07d SE |
13536 | archive_cmds_need_lc_FC=no |
13537 | allow_undefined_flag_FC= | |
13538 | always_export_symbols_FC=no | |
13539 | archive_expsym_cmds_FC= | |
13540 | export_dynamic_flag_spec_FC= | |
13541 | hardcode_direct_FC=no | |
13542 | hardcode_direct_absolute_FC=no | |
13543 | hardcode_libdir_flag_spec_FC= | |
13544 | hardcode_libdir_flag_spec_ld_FC= | |
13545 | hardcode_libdir_separator_FC= | |
13546 | hardcode_minus_L_FC=no | |
13547 | hardcode_automatic_FC=no | |
13548 | inherit_rpath_FC=no | |
13549 | module_cmds_FC= | |
13550 | module_expsym_cmds_FC= | |
13551 | link_all_deplibs_FC=unknown | |
13552 | old_archive_cmds_FC=$old_archive_cmds | |
43e02a8a RW |
13553 | reload_flag_FC=$reload_flag |
13554 | reload_cmds_FC=$reload_cmds | |
1cf3d07d SE |
13555 | no_undefined_flag_FC= |
13556 | whole_archive_flag_spec_FC= | |
13557 | enable_shared_with_static_runtimes_FC=no | |
13558 | ||
13559 | # Source file extension for fc test sources. | |
13560 | ac_ext=${ac_fc_srcext-f} | |
13561 | ||
13562 | # Object file extension for compiled fc test sources. | |
13563 | objext=o | |
13564 | objext_FC=$objext | |
13565 | ||
13566 | # No sense in running all these tests if we already determined that | |
13567 | # the FC compiler isn't working. Some variables (like enable_shared) | |
13568 | # are currently assumed to apply to all compilers on this platform, | |
13569 | # and will be corrupted by setting them based on a non-working compiler. | |
13570 | if test "$_lt_disable_FC" != yes; then | |
13571 | # Code to be used in simple compile tests | |
13572 | lt_simple_compile_test_code="\ | |
13573 | subroutine t | |
13574 | return | |
13575 | end | |
13576 | " | |
13577 | ||
13578 | # Code to be used in simple link tests | |
13579 | lt_simple_link_test_code="\ | |
13580 | program t | |
13581 | end | |
13582 | " | |
13583 | ||
13584 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13585 | ||
13586 | ||
13587 | ||
13588 | ||
13589 | ||
13590 | ||
13591 | # If no C compiler was specified, use CC. | |
13592 | LTCC=${LTCC-"$CC"} | |
13593 | ||
13594 | # If no C compiler flags were specified, use CFLAGS. | |
13595 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13596 | ||
13597 | # Allow CC to be a program name with arguments. | |
13598 | compiler=$CC | |
13599 | ||
13600 | ||
13601 | # save warnings/boilerplate of simple test code | |
13602 | ac_outfile=conftest.$ac_objext | |
13603 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13604 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13605 | _lt_compiler_boilerplate=`cat conftest.err` | |
13606 | $RM conftest* | |
13607 | ||
13608 | ac_outfile=conftest.$ac_objext | |
13609 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13610 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13611 | _lt_linker_boilerplate=`cat conftest.err` | |
d58dead8 | 13612 | $RM -r conftest* |
1cf3d07d SE |
13613 | |
13614 | ||
13615 | # Allow CC to be a program name with arguments. | |
13616 | lt_save_CC="$CC" | |
d58dead8 | 13617 | lt_save_GCC=$GCC |
1cf3d07d SE |
13618 | CC=${FC-"f95"} |
13619 | compiler=$CC | |
d58dead8 PG |
13620 | GCC=$ac_cv_fc_compiler_gnu |
13621 | ||
1cf3d07d SE |
13622 | compiler_FC=$CC |
13623 | for cc_temp in $compiler""; do | |
13624 | case $cc_temp in | |
13625 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13626 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13627 | \-*) ;; | |
13628 | *) break;; | |
13629 | esac | |
13630 | done | |
43e02a8a | 13631 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
13632 | |
13633 | ||
13634 | if test -n "$compiler"; then | |
5213506e RW |
13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
13636 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13638 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 13639 | |
5213506e RW |
13640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13641 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
1cf3d07d SE |
13642 | test "$can_build_shared" = "no" && enable_shared=no |
13643 | ||
13644 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13645 | # are all built from PIC. | |
13646 | case $host_os in | |
13647 | aix3*) | |
13648 | test "$enable_shared" = yes && enable_static=no | |
13649 | if test -n "$RANLIB"; then | |
13650 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13651 | postinstall_cmds='$RANLIB $lib' | |
13652 | fi | |
13653 | ;; | |
4f6bebc3 | 13654 | aix[4-9]*) |
1cf3d07d SE |
13655 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13656 | test "$enable_shared" = yes && enable_static=no | |
13657 | fi | |
13658 | ;; | |
13659 | esac | |
5213506e RW |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
13661 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 13662 | |
5213506e RW |
13663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13664 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
1cf3d07d SE |
13665 | # Make sure either enable_shared or enable_static is yes. |
13666 | test "$enable_shared" = yes || enable_static=yes | |
5213506e RW |
13667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
13668 | $as_echo "$enable_static" >&6; } | |
1cf3d07d SE |
13669 | |
13670 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
13671 | LD_FC="$LD" | |
13672 | ||
13673 | ## CAVEAT EMPTOR: | |
13674 | ## There is no encapsulation within the following macros, do not change | |
13675 | ## the running order or otherwise move them around unless you know exactly | |
13676 | ## what you are doing... | |
13677 | # Dependencies to place before and after the object being linked: | |
13678 | predep_objects_FC= | |
13679 | postdep_objects_FC= | |
13680 | predeps_FC= | |
13681 | postdeps_FC= | |
13682 | compiler_lib_search_path_FC= | |
13683 | ||
13684 | cat > conftest.$ac_ext <<_LT_EOF | |
13685 | subroutine foo | |
13686 | implicit none | |
13687 | integer a | |
13688 | a=0 | |
13689 | return | |
13690 | end | |
13691 | _LT_EOF | |
13692 | ||
5213506e | 13693 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
13694 | (eval $ac_compile) 2>&5 |
13695 | ac_status=$? | |
5213506e RW |
13696 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13697 | test $ac_status = 0; }; then | |
1cf3d07d SE |
13698 | # Parse the compiler output and extract the necessary |
13699 | # objects, libraries and library flags. | |
13700 | ||
13701 | # Sentinel used to keep track of whether or not we are before | |
13702 | # the conftest object file. | |
13703 | pre_test_object_deps_done=no | |
13704 | ||
d58dead8 | 13705 | for p in `eval "$output_verbose_link_cmd"`; do |
1cf3d07d SE |
13706 | case $p in |
13707 | ||
13708 | -L* | -R* | -l*) | |
13709 | # Some compilers place space between "-{L,R}" and the path. | |
13710 | # Remove the space. | |
13711 | if test $p = "-L" || | |
13712 | test $p = "-R"; then | |
13713 | prev=$p | |
13714 | continue | |
13715 | else | |
13716 | prev= | |
13717 | fi | |
13718 | ||
13719 | if test "$pre_test_object_deps_done" = no; then | |
13720 | case $p in | |
13721 | -L* | -R*) | |
13722 | # Internal compiler library paths should come after those | |
13723 | # provided the user. The postdeps already come after the | |
13724 | # user supplied libs so there is no need to process them. | |
13725 | if test -z "$compiler_lib_search_path_FC"; then | |
13726 | compiler_lib_search_path_FC="${prev}${p}" | |
13727 | else | |
13728 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
13729 | fi | |
13730 | ;; | |
13731 | # The "-l" case would never come before the object being | |
13732 | # linked, so don't bother handling this case. | |
13733 | esac | |
13734 | else | |
13735 | if test -z "$postdeps_FC"; then | |
13736 | postdeps_FC="${prev}${p}" | |
13737 | else | |
13738 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
13739 | fi | |
13740 | fi | |
13741 | ;; | |
13742 | ||
13743 | *.$objext) | |
13744 | # This assumes that the test object file only shows up | |
13745 | # once in the compiler output. | |
13746 | if test "$p" = "conftest.$objext"; then | |
13747 | pre_test_object_deps_done=yes | |
13748 | continue | |
13749 | fi | |
13750 | ||
13751 | if test "$pre_test_object_deps_done" = no; then | |
13752 | if test -z "$predep_objects_FC"; then | |
13753 | predep_objects_FC="$p" | |
13754 | else | |
13755 | predep_objects_FC="$predep_objects_FC $p" | |
13756 | fi | |
13757 | else | |
13758 | if test -z "$postdep_objects_FC"; then | |
13759 | postdep_objects_FC="$p" | |
13760 | else | |
13761 | postdep_objects_FC="$postdep_objects_FC $p" | |
13762 | fi | |
13763 | fi | |
13764 | ;; | |
13765 | ||
13766 | *) ;; # Ignore the rest. | |
13767 | ||
13768 | esac | |
13769 | done | |
13770 | ||
13771 | # Clean up. | |
13772 | rm -f a.out a.exe | |
13773 | else | |
13774 | echo "libtool.m4: error: problem compiling FC test program" | |
13775 | fi | |
13776 | ||
13777 | $RM -f confest.$objext | |
13778 | ||
13779 | # PORTME: override above test on systems where it is broken | |
13780 | ||
13781 | ||
13782 | case " $postdeps_FC " in | |
13783 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
13784 | esac | |
d58dead8 PG |
13785 | compiler_lib_search_dirs_FC= |
13786 | if test -n "${compiler_lib_search_path_FC}"; then | |
13787 | compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13788 | fi | |
13789 | ||
13790 | ||
13791 | ||
13792 | ||
13793 | ||
1cf3d07d SE |
13794 | |
13795 | ||
13796 | ||
13797 | ||
13798 | ||
13799 | ||
13800 | ||
13801 | ||
13802 | ||
13803 | ||
13804 | ||
13805 | ||
13806 | ||
13807 | ||
13808 | ||
13809 | ||
13810 | ||
13811 | ||
13812 | ||
13813 | ||
13814 | ||
13815 | ||
13816 | ||
13817 | ||
13818 | ||
13819 | ||
13820 | lt_prog_compiler_wl_FC= | |
13821 | lt_prog_compiler_pic_FC= | |
13822 | lt_prog_compiler_static_FC= | |
13823 | ||
5213506e RW |
13824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
13825 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
13826 | |
13827 | if test "$GCC" = yes; then | |
13828 | lt_prog_compiler_wl_FC='-Wl,' | |
13829 | lt_prog_compiler_static_FC='-static' | |
13830 | ||
13831 | case $host_os in | |
13832 | aix*) | |
13833 | # All AIX code is PIC. | |
13834 | if test "$host_cpu" = ia64; then | |
13835 | # AIX 5 now supports IA64 processor | |
13836 | lt_prog_compiler_static_FC='-Bstatic' | |
13837 | fi | |
bad8a4a7 | 13838 | lt_prog_compiler_pic_FC='-fPIC' |
1cf3d07d SE |
13839 | ;; |
13840 | ||
13841 | amigaos*) | |
d58dead8 PG |
13842 | case $host_cpu in |
13843 | powerpc) | |
13844 | # see comment about AmigaOS4 .so support | |
13845 | lt_prog_compiler_pic_FC='-fPIC' | |
13846 | ;; | |
13847 | m68k) | |
13848 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13849 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13850 | # like `-m68040'. | |
13851 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
13852 | ;; | |
13853 | esac | |
1cf3d07d SE |
13854 | ;; |
13855 | ||
13856 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13857 | # PIC is the default for these OSes. | |
13858 | ;; | |
13859 | ||
d58dead8 | 13860 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
13861 | # This hack is so that the source file can tell whether it is being |
13862 | # built for inclusion in a dll (and should export symbols for example). | |
13863 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13864 | # (--disable-auto-import) libraries | |
13865 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13866 | ;; | |
13867 | ||
13868 | darwin* | rhapsody*) | |
13869 | # PIC is the default on this platform | |
13870 | # Common symbols not allowed in MH_DYLIB files | |
13871 | lt_prog_compiler_pic_FC='-fno-common' | |
13872 | ;; | |
13873 | ||
43e02a8a RW |
13874 | haiku*) |
13875 | # PIC is the default for Haiku. | |
13876 | # The "-static" flag exists, but is broken. | |
13877 | lt_prog_compiler_static_FC= | |
13878 | ;; | |
13879 | ||
1cf3d07d | 13880 | hpux*) |
d58dead8 PG |
13881 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
13882 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13883 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 13884 | case $host_cpu in |
d58dead8 | 13885 | hppa*64*) |
1cf3d07d SE |
13886 | # +Z the default |
13887 | ;; | |
13888 | *) | |
13889 | lt_prog_compiler_pic_FC='-fPIC' | |
13890 | ;; | |
13891 | esac | |
13892 | ;; | |
13893 | ||
13894 | interix[3-9]*) | |
13895 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13896 | # Instead, we relocate shared libraries at runtime. | |
13897 | ;; | |
13898 | ||
13899 | msdosdjgpp*) | |
13900 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13901 | # on systems that don't support them. | |
13902 | lt_prog_compiler_can_build_shared_FC=no | |
13903 | enable_shared=no | |
13904 | ;; | |
13905 | ||
13906 | *nto* | *qnx*) | |
13907 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13908 | # it will coredump. | |
13909 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13910 | ;; | |
13911 | ||
13912 | sysv4*MP*) | |
13913 | if test -d /usr/nec; then | |
13914 | lt_prog_compiler_pic_FC=-Kconform_pic | |
13915 | fi | |
13916 | ;; | |
13917 | ||
13918 | *) | |
13919 | lt_prog_compiler_pic_FC='-fPIC' | |
13920 | ;; | |
13921 | esac | |
43e02a8a RW |
13922 | |
13923 | case $cc_basename in | |
13924 | nvcc*) # Cuda Compiler Driver 2.2 | |
13925 | lt_prog_compiler_wl_FC='-Xlinker ' | |
13926 | lt_prog_compiler_pic_FC='-Xcompiler -fPIC' | |
13927 | ;; | |
13928 | esac | |
1cf3d07d SE |
13929 | else |
13930 | # PORTME Check for flag to pass linker flags through the system compiler. | |
13931 | case $host_os in | |
13932 | aix*) | |
13933 | lt_prog_compiler_wl_FC='-Wl,' | |
13934 | if test "$host_cpu" = ia64; then | |
13935 | # AIX 5 now supports IA64 processor | |
13936 | lt_prog_compiler_static_FC='-Bstatic' | |
13937 | else | |
13938 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
13939 | fi | |
13940 | ;; | |
1cf3d07d | 13941 | |
d58dead8 | 13942 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
13943 | # This hack is so that the source file can tell whether it is being |
13944 | # built for inclusion in a dll (and should export symbols for example). | |
13945 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13946 | ;; | |
13947 | ||
13948 | hpux9* | hpux10* | hpux11*) | |
13949 | lt_prog_compiler_wl_FC='-Wl,' | |
13950 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13951 | # not for PA HP-UX. | |
13952 | case $host_cpu in | |
13953 | hppa*64*|ia64*) | |
13954 | # +Z the default | |
13955 | ;; | |
13956 | *) | |
13957 | lt_prog_compiler_pic_FC='+Z' | |
13958 | ;; | |
13959 | esac | |
13960 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13961 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
13962 | ;; | |
13963 | ||
13964 | irix5* | irix6* | nonstopux*) | |
13965 | lt_prog_compiler_wl_FC='-Wl,' | |
13966 | # PIC (with -KPIC) is the default. | |
13967 | lt_prog_compiler_static_FC='-non_shared' | |
13968 | ;; | |
13969 | ||
7a9d3fe8 | 13970 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 13971 | case $cc_basename in |
d58dead8 PG |
13972 | # old Intel for x86_64 which still supported -KPIC. |
13973 | ecc*) | |
1cf3d07d SE |
13974 | lt_prog_compiler_wl_FC='-Wl,' |
13975 | lt_prog_compiler_pic_FC='-KPIC' | |
13976 | lt_prog_compiler_static_FC='-static' | |
13977 | ;; | |
d58dead8 PG |
13978 | # icc used to be incompatible with GCC. |
13979 | # ICC 10 doesn't accept -KPIC any more. | |
13980 | icc* | ifort*) | |
13981 | lt_prog_compiler_wl_FC='-Wl,' | |
13982 | lt_prog_compiler_pic_FC='-fPIC' | |
13983 | lt_prog_compiler_static_FC='-static' | |
13984 | ;; | |
13985 | # Lahey Fortran 8.1. | |
13986 | lf95*) | |
13987 | lt_prog_compiler_wl_FC='-Wl,' | |
13988 | lt_prog_compiler_pic_FC='--shared' | |
13989 | lt_prog_compiler_static_FC='--static' | |
13990 | ;; | |
43e02a8a | 13991 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
13992 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13993 | # which looks to be a dead project) | |
13994 | lt_prog_compiler_wl_FC='-Wl,' | |
13995 | lt_prog_compiler_pic_FC='-fpic' | |
13996 | lt_prog_compiler_static_FC='-Bstatic' | |
13997 | ;; | |
13998 | ccc*) | |
13999 | lt_prog_compiler_wl_FC='-Wl,' | |
14000 | # All Alpha code is PIC. | |
14001 | lt_prog_compiler_static_FC='-non_shared' | |
14002 | ;; | |
43e02a8a RW |
14003 | xl* | bgxl* | bgf* | mpixl*) |
14004 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
d58dead8 PG |
14005 | lt_prog_compiler_wl_FC='-Wl,' |
14006 | lt_prog_compiler_pic_FC='-qpic' | |
14007 | lt_prog_compiler_static_FC='-qstaticlink' | |
14008 | ;; | |
1cf3d07d SE |
14009 | *) |
14010 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
14011 | *Sun\ F* | *Sun*Fortran*) |
14012 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
14013 | lt_prog_compiler_pic_FC='-KPIC' |
14014 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 14015 | lt_prog_compiler_wl_FC='' |
1cf3d07d | 14016 | ;; |
43e02a8a RW |
14017 | *Sun\ C*) |
14018 | # Sun C 5.9 | |
1cf3d07d SE |
14019 | lt_prog_compiler_pic_FC='-KPIC' |
14020 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 14021 | lt_prog_compiler_wl_FC='-Wl,' |
1cf3d07d SE |
14022 | ;; |
14023 | esac | |
14024 | ;; | |
14025 | esac | |
14026 | ;; | |
14027 | ||
14028 | newsos6) | |
14029 | lt_prog_compiler_pic_FC='-KPIC' | |
14030 | lt_prog_compiler_static_FC='-Bstatic' | |
14031 | ;; | |
14032 | ||
14033 | *nto* | *qnx*) | |
14034 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14035 | # it will coredump. | |
14036 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
14037 | ;; | |
14038 | ||
14039 | osf3* | osf4* | osf5*) | |
14040 | lt_prog_compiler_wl_FC='-Wl,' | |
14041 | # All OSF/1 code is PIC. | |
14042 | lt_prog_compiler_static_FC='-non_shared' | |
14043 | ;; | |
14044 | ||
14045 | rdos*) | |
14046 | lt_prog_compiler_static_FC='-non_shared' | |
14047 | ;; | |
14048 | ||
14049 | solaris*) | |
14050 | lt_prog_compiler_pic_FC='-KPIC' | |
14051 | lt_prog_compiler_static_FC='-Bstatic' | |
14052 | case $cc_basename in | |
14053 | f77* | f90* | f95*) | |
14054 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
14055 | *) | |
14056 | lt_prog_compiler_wl_FC='-Wl,';; | |
14057 | esac | |
14058 | ;; | |
14059 | ||
14060 | sunos4*) | |
14061 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
14062 | lt_prog_compiler_pic_FC='-PIC' | |
14063 | lt_prog_compiler_static_FC='-Bstatic' | |
14064 | ;; | |
14065 | ||
14066 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
14067 | lt_prog_compiler_wl_FC='-Wl,' | |
14068 | lt_prog_compiler_pic_FC='-KPIC' | |
14069 | lt_prog_compiler_static_FC='-Bstatic' | |
14070 | ;; | |
14071 | ||
14072 | sysv4*MP*) | |
14073 | if test -d /usr/nec ;then | |
14074 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
14075 | lt_prog_compiler_static_FC='-Bstatic' | |
14076 | fi | |
14077 | ;; | |
14078 | ||
14079 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14080 | lt_prog_compiler_wl_FC='-Wl,' | |
14081 | lt_prog_compiler_pic_FC='-KPIC' | |
14082 | lt_prog_compiler_static_FC='-Bstatic' | |
14083 | ;; | |
14084 | ||
14085 | unicos*) | |
14086 | lt_prog_compiler_wl_FC='-Wl,' | |
14087 | lt_prog_compiler_can_build_shared_FC=no | |
14088 | ;; | |
14089 | ||
14090 | uts4*) | |
14091 | lt_prog_compiler_pic_FC='-pic' | |
14092 | lt_prog_compiler_static_FC='-Bstatic' | |
14093 | ;; | |
14094 | ||
14095 | *) | |
14096 | lt_prog_compiler_can_build_shared_FC=no | |
14097 | ;; | |
14098 | esac | |
14099 | fi | |
14100 | ||
14101 | case $host_os in | |
14102 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14103 | *djgpp*) | |
14104 | lt_prog_compiler_pic_FC= | |
14105 | ;; | |
14106 | *) | |
14107 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
14108 | ;; | |
14109 | esac | |
5213506e RW |
14110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 |
14111 | $as_echo "$lt_prog_compiler_pic_FC" >&6; } | |
1cf3d07d SE |
14112 | |
14113 | ||
14114 | ||
14115 | # | |
14116 | # Check to make sure the PIC flag actually works. | |
14117 | # | |
14118 | if test -n "$lt_prog_compiler_pic_FC"; then | |
5213506e RW |
14119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 |
14120 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } | |
22e05272 | 14121 | if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : |
5213506e | 14122 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 14123 | else |
d58dead8 | 14124 | lt_cv_prog_compiler_pic_works_FC=no |
1cf3d07d SE |
14125 | ac_outfile=conftest.$ac_objext |
14126 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14127 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
14128 | # Insert the option either (1) after the last *FLAGS variable, or | |
14129 | # (2) before a word containing "conftest.", or (3) at the end. | |
14130 | # Note that $ac_compile itself does not contain backslashes and begins | |
14131 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14132 | # The option is referenced via a variable to avoid confusing sed. | |
14133 | lt_compile=`echo "$ac_compile" | $SED \ | |
14134 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14135 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14136 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 14137 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
14138 | (eval "$lt_compile" 2>conftest.err) |
14139 | ac_status=$? | |
14140 | cat conftest.err >&5 | |
43e02a8a | 14141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
14142 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14143 | # The compiler can only warn and ignore the option if not recognized | |
14144 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 14145 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
14146 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14147 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 14148 | lt_cv_prog_compiler_pic_works_FC=yes |
1cf3d07d SE |
14149 | fi |
14150 | fi | |
14151 | $RM conftest* | |
14152 | ||
14153 | fi | |
5213506e RW |
14154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
14155 | $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } | |
1cf3d07d | 14156 | |
d58dead8 | 14157 | if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then |
1cf3d07d SE |
14158 | case $lt_prog_compiler_pic_FC in |
14159 | "" | " "*) ;; | |
14160 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
14161 | esac | |
14162 | else | |
14163 | lt_prog_compiler_pic_FC= | |
14164 | lt_prog_compiler_can_build_shared_FC=no | |
14165 | fi | |
14166 | ||
14167 | fi | |
14168 | ||
14169 | ||
14170 | ||
14171 | # | |
14172 | # Check to make sure the static flag actually works. | |
14173 | # | |
14174 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
5213506e RW |
14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14176 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 14177 | if ${lt_cv_prog_compiler_static_works_FC+:} false; then : |
5213506e | 14178 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 14179 | else |
d58dead8 | 14180 | lt_cv_prog_compiler_static_works_FC=no |
1cf3d07d SE |
14181 | save_LDFLAGS="$LDFLAGS" |
14182 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14183 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14184 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14185 | # The linker can only warn and ignore the option if not recognized | |
14186 | # So say no if there are warnings | |
14187 | if test -s conftest.err; then | |
14188 | # Append any errors to the config.log. | |
14189 | cat conftest.err 1>&5 | |
43e02a8a | 14190 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
14191 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14192 | if diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 14193 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
14194 | fi |
14195 | else | |
d58dead8 | 14196 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
14197 | fi |
14198 | fi | |
d58dead8 | 14199 | $RM -r conftest* |
1cf3d07d SE |
14200 | LDFLAGS="$save_LDFLAGS" |
14201 | ||
14202 | fi | |
5213506e RW |
14203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
14204 | $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } | |
1cf3d07d | 14205 | |
d58dead8 | 14206 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
1cf3d07d SE |
14207 | : |
14208 | else | |
14209 | lt_prog_compiler_static_FC= | |
14210 | fi | |
14211 | ||
14212 | ||
14213 | ||
14214 | ||
5213506e RW |
14215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14216 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 14217 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 14218 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
14219 | else |
14220 | lt_cv_prog_compiler_c_o_FC=no | |
14221 | $RM -r conftest 2>/dev/null | |
14222 | mkdir conftest | |
14223 | cd conftest | |
14224 | mkdir out | |
14225 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14226 | ||
14227 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14228 | # Insert the option either (1) after the last *FLAGS variable, or | |
14229 | # (2) before a word containing "conftest.", or (3) at the end. | |
14230 | # Note that $ac_compile itself does not contain backslashes and begins | |
14231 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14232 | lt_compile=`echo "$ac_compile" | $SED \ | |
14233 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14234 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14235 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 14236 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
14237 | (eval "$lt_compile" 2>out/conftest.err) |
14238 | ac_status=$? | |
14239 | cat out/conftest.err >&5 | |
43e02a8a | 14240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
14241 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14242 | then | |
14243 | # The compiler can only warn and ignore the option if not recognized | |
14244 | # So say no if there are warnings | |
43e02a8a | 14245 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
14246 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14247 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14248 | lt_cv_prog_compiler_c_o_FC=yes | |
14249 | fi | |
14250 | fi | |
14251 | chmod u+w . 2>&5 | |
14252 | $RM conftest* | |
14253 | # SGI C++ compiler will create directory out/ii_files/ for | |
14254 | # template instantiation | |
14255 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14256 | $RM out/* && rmdir out | |
14257 | cd .. | |
14258 | $RM -r conftest | |
14259 | $RM conftest* | |
14260 | ||
14261 | fi | |
5213506e RW |
14262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14263 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
14264 | |
14265 | ||
14266 | ||
5213506e RW |
14267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14268 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 14269 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 14270 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
14271 | else |
14272 | lt_cv_prog_compiler_c_o_FC=no | |
14273 | $RM -r conftest 2>/dev/null | |
14274 | mkdir conftest | |
14275 | cd conftest | |
14276 | mkdir out | |
14277 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14278 | ||
14279 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14280 | # Insert the option either (1) after the last *FLAGS variable, or | |
14281 | # (2) before a word containing "conftest.", or (3) at the end. | |
14282 | # Note that $ac_compile itself does not contain backslashes and begins | |
14283 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14284 | lt_compile=`echo "$ac_compile" | $SED \ | |
14285 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14286 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14287 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 14288 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
14289 | (eval "$lt_compile" 2>out/conftest.err) |
14290 | ac_status=$? | |
14291 | cat out/conftest.err >&5 | |
43e02a8a | 14292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
14293 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14294 | then | |
14295 | # The compiler can only warn and ignore the option if not recognized | |
14296 | # So say no if there are warnings | |
43e02a8a | 14297 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
14298 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14299 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14300 | lt_cv_prog_compiler_c_o_FC=yes | |
14301 | fi | |
14302 | fi | |
14303 | chmod u+w . 2>&5 | |
14304 | $RM conftest* | |
14305 | # SGI C++ compiler will create directory out/ii_files/ for | |
14306 | # template instantiation | |
14307 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14308 | $RM out/* && rmdir out | |
14309 | cd .. | |
14310 | $RM -r conftest | |
14311 | $RM conftest* | |
14312 | ||
14313 | fi | |
5213506e RW |
14314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14315 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
14316 | |
14317 | ||
14318 | ||
14319 | ||
14320 | hard_links="nottested" | |
14321 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
14322 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
14323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
14324 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
14325 | hard_links=yes |
14326 | $RM conftest* | |
14327 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14328 | touch conftest.a | |
14329 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14330 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
14331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
14332 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 14333 | if test "$hard_links" = no; then |
5213506e RW |
14334 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14335 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
14336 | need_locks=warn |
14337 | fi | |
14338 | else | |
14339 | need_locks=no | |
14340 | fi | |
14341 | ||
14342 | ||
14343 | ||
5213506e RW |
14344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14345 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
14346 | |
14347 | runpath_var= | |
14348 | allow_undefined_flag_FC= | |
14349 | always_export_symbols_FC=no | |
14350 | archive_cmds_FC= | |
14351 | archive_expsym_cmds_FC= | |
14352 | compiler_needs_object_FC=no | |
14353 | enable_shared_with_static_runtimes_FC=no | |
14354 | export_dynamic_flag_spec_FC= | |
14355 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14356 | hardcode_automatic_FC=no | |
14357 | hardcode_direct_FC=no | |
14358 | hardcode_direct_absolute_FC=no | |
14359 | hardcode_libdir_flag_spec_FC= | |
14360 | hardcode_libdir_flag_spec_ld_FC= | |
14361 | hardcode_libdir_separator_FC= | |
14362 | hardcode_minus_L_FC=no | |
14363 | hardcode_shlibpath_var_FC=unsupported | |
14364 | inherit_rpath_FC=no | |
14365 | link_all_deplibs_FC=unknown | |
14366 | module_cmds_FC= | |
14367 | module_expsym_cmds_FC= | |
14368 | old_archive_from_new_cmds_FC= | |
14369 | old_archive_from_expsyms_cmds_FC= | |
14370 | thread_safe_flag_spec_FC= | |
14371 | whole_archive_flag_spec_FC= | |
14372 | # include_expsyms should be a list of space-separated symbols to be *always* | |
14373 | # included in the symbol list | |
14374 | include_expsyms_FC= | |
14375 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
14376 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
14377 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
14378 | # as well as any symbol that contains `d'. | |
d58dead8 | 14379 | exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
14380 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14381 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
14382 | # the symbol is explicitly referenced. Since portable code cannot | |
14383 | # rely on this symbol name, it's probably fine to never include it in | |
14384 | # preloaded symbol tables. | |
d58dead8 | 14385 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
14386 | extract_expsyms_cmds= |
14387 | ||
14388 | case $host_os in | |
d58dead8 | 14389 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14390 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14391 | # When not using gcc, we currently assume that we are using | |
14392 | # Microsoft Visual C++. | |
14393 | if test "$GCC" != yes; then | |
14394 | with_gnu_ld=no | |
14395 | fi | |
14396 | ;; | |
14397 | interix*) | |
14398 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
14399 | with_gnu_ld=yes | |
14400 | ;; | |
14401 | openbsd*) | |
14402 | with_gnu_ld=no | |
14403 | ;; | |
14404 | esac | |
14405 | ||
14406 | ld_shlibs_FC=yes | |
43e02a8a RW |
14407 | |
14408 | # On some targets, GNU ld is compatible enough with the native linker | |
14409 | # that we're better off using the native interface for both. | |
14410 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 14411 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
14412 | case $host_os in |
14413 | aix*) | |
14414 | # The AIX port of GNU ld has always aspired to compatibility | |
14415 | # with the native linker. However, as the warning in the GNU ld | |
14416 | # block says, versions before 2.19.5* couldn't really create working | |
14417 | # shared libraries, regardless of the interface used. | |
14418 | case `$LD -v 2>&1` in | |
14419 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
14420 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
14421 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
14422 | *) | |
14423 | lt_use_gnu_ld_interface=yes | |
14424 | ;; | |
14425 | esac | |
14426 | ;; | |
14427 | *) | |
14428 | lt_use_gnu_ld_interface=yes | |
14429 | ;; | |
14430 | esac | |
14431 | fi | |
14432 | ||
14433 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
14434 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14435 | wlarc='${wl}' | |
14436 | ||
14437 | # Set some defaults for GNU ld with shared library support. These | |
14438 | # are reset later if shared libraries are not supported. Putting them | |
14439 | # here allows them to be overridden if necessary. | |
14440 | runpath_var=LD_RUN_PATH | |
14441 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14442 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
14443 | # ancient GNU ld didn't support --whole-archive et. al. | |
14444 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
14445 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
14446 | else | |
14447 | whole_archive_flag_spec_FC= | |
14448 | fi | |
14449 | supports_anon_versioning=no | |
14450 | case `$LD -v 2>&1` in | |
43e02a8a | 14451 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
14452 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14453 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
14454 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
14455 | *\ 2.11.*) ;; # other 2.11 versions | |
14456 | *) supports_anon_versioning=yes ;; | |
14457 | esac | |
14458 | ||
14459 | # See if GNU ld supports shared libraries. | |
14460 | case $host_os in | |
4f6bebc3 | 14461 | aix[3-9]*) |
1cf3d07d SE |
14462 | # On AIX/PPC, the GNU linker is very broken |
14463 | if test "$host_cpu" != ia64; then | |
14464 | ld_shlibs_FC=no | |
14465 | cat <<_LT_EOF 1>&2 | |
14466 | ||
43e02a8a | 14467 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
14468 | *** to be unable to reliably create shared libraries on AIX. |
14469 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
14470 | *** really care for shared libraries, you may want to install binutils |
14471 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
14472 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
14473 | |
14474 | _LT_EOF | |
14475 | fi | |
14476 | ;; | |
14477 | ||
14478 | amigaos*) | |
d58dead8 PG |
14479 | case $host_cpu in |
14480 | powerpc) | |
14481 | # see comment about AmigaOS4 .so support | |
14482 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14483 | archive_expsym_cmds_FC='' | |
14484 | ;; | |
14485 | m68k) | |
14486 | 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)' | |
14487 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14488 | hardcode_minus_L_FC=yes | |
14489 | ;; | |
14490 | esac | |
1cf3d07d SE |
14491 | ;; |
14492 | ||
14493 | beos*) | |
14494 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14495 | allow_undefined_flag_FC=unsupported | |
14496 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
14497 | # support --undefined. This deserves some investigation. FIXME | |
14498 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14499 | else | |
14500 | ld_shlibs_FC=no | |
14501 | fi | |
14502 | ;; | |
14503 | ||
d58dead8 | 14504 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14505 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, |
14506 | # as there is no search path for DLLs. | |
14507 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
43e02a8a | 14508 | export_dynamic_flag_spec_FC='${wl}--export-all-symbols' |
1cf3d07d SE |
14509 | allow_undefined_flag_FC=unsupported |
14510 | always_export_symbols_FC=no | |
14511 | enable_shared_with_static_runtimes_FC=yes | |
14512 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
14513 | ||
14514 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
14515 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14516 | # If the export-symbols file already is a .def file (1st line | |
14517 | # is EXPORTS), use it as is; otherwise, prepend... | |
14518 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
14519 | cp $export_symbols $output_objdir/$soname.def; | |
14520 | else | |
14521 | echo EXPORTS > $output_objdir/$soname.def; | |
14522 | cat $export_symbols >> $output_objdir/$soname.def; | |
14523 | fi~ | |
14524 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14525 | else | |
14526 | ld_shlibs_FC=no | |
14527 | fi | |
14528 | ;; | |
14529 | ||
43e02a8a RW |
14530 | haiku*) |
14531 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14532 | link_all_deplibs_FC=yes | |
14533 | ;; | |
14534 | ||
1cf3d07d SE |
14535 | interix[3-9]*) |
14536 | hardcode_direct_FC=no | |
14537 | hardcode_shlibpath_var_FC=no | |
14538 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
14539 | export_dynamic_flag_spec_FC='${wl}-E' | |
14540 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
14541 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14542 | # default) and relocated if they conflict, which is a slow very memory | |
14543 | # consuming and fragmenting process. To avoid this, we pick a random, | |
14544 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14545 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
14546 | 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' | |
14547 | 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' | |
14548 | ;; | |
14549 | ||
e9085da5 | 14550 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
14551 | tmp_diet=no |
14552 | if test "$host_os" = linux-dietlibc; then | |
14553 | case $cc_basename in | |
14554 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
14555 | esac | |
14556 | fi | |
14557 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
14558 | && test "$tmp_diet" = no | |
14559 | then | |
a699d672 | 14560 | tmp_addflag=' $pic_flag' |
d58dead8 | 14561 | tmp_sharedflag='-shared' |
1cf3d07d SE |
14562 | case $cc_basename,$host_cpu in |
14563 | pgcc*) # Portland Group C compiler | |
43e02a8a | 14564 | 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 |
14565 | tmp_addflag=' $pic_flag' |
14566 | ;; | |
43e02a8a RW |
14567 | pgf77* | pgf90* | pgf95* | pgfortran*) |
14568 | # Portland Group f77 and f90 compilers | |
14569 | 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 |
14570 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14571 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
14572 | tmp_addflag=' -i_dynamic' ;; | |
14573 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
14574 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
14575 | ifc* | ifort*) # Intel Fortran compiler | |
14576 | tmp_addflag=' -nofor_main' ;; | |
d58dead8 PG |
14577 | lf95*) # Lahey Fortran 8.1 |
14578 | whole_archive_flag_spec_FC= | |
14579 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 14580 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
d58dead8 PG |
14581 | tmp_sharedflag='-qmkshrobj' |
14582 | tmp_addflag= ;; | |
43e02a8a RW |
14583 | nvcc*) # Cuda Compiler Driver 2.2 |
14584 | 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' | |
14585 | compiler_needs_object_FC=yes | |
14586 | ;; | |
1cf3d07d SE |
14587 | esac |
14588 | case `$CC -V 2>&1 | sed 5q` in | |
14589 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 14590 | 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 |
14591 | compiler_needs_object_FC=yes |
14592 | tmp_sharedflag='-G' ;; | |
14593 | *Sun\ F*) # Sun Fortran 8.3 | |
14594 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
14595 | esac |
14596 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14597 | ||
14598 | if test "x$supports_anon_versioning" = xyes; then | |
14599 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14600 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14601 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14602 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
14603 | fi | |
d58dead8 PG |
14604 | |
14605 | case $cc_basename in | |
43e02a8a | 14606 | xlf* | bgf* | bgxlf* | mpixlf*) |
d58dead8 PG |
14607 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
14608 | whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' | |
14609 | hardcode_libdir_flag_spec_FC= | |
14610 | hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' | |
14611 | archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
14612 | if test "x$supports_anon_versioning" = xyes; then | |
14613 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14614 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14615 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14616 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
14617 | fi | |
14618 | ;; | |
14619 | esac | |
1cf3d07d SE |
14620 | else |
14621 | ld_shlibs_FC=no | |
14622 | fi | |
14623 | ;; | |
14624 | ||
14625 | netbsd*) | |
14626 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14627 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
14628 | wlarc= | |
14629 | else | |
14630 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14631 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14632 | fi | |
14633 | ;; | |
14634 | ||
14635 | solaris*) | |
14636 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
14637 | ld_shlibs_FC=no | |
14638 | cat <<_LT_EOF 1>&2 | |
14639 | ||
14640 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
14641 | *** create shared libraries on Solaris systems. Therefore, libtool | |
14642 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14643 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
14644 | *** your PATH or compiler configuration so that the native linker is | |
14645 | *** used, and then restart. | |
14646 | ||
14647 | _LT_EOF | |
14648 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14649 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14650 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14651 | else | |
14652 | ld_shlibs_FC=no | |
14653 | fi | |
14654 | ;; | |
14655 | ||
14656 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
14657 | case `$LD -v 2>&1` in | |
14658 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
14659 | ld_shlibs_FC=no | |
14660 | cat <<_LT_EOF 1>&2 | |
14661 | ||
14662 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
14663 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
14664 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14665 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
14666 | *** your PATH or compiler configuration so that the native linker is | |
14667 | *** used, and then restart. | |
14668 | ||
14669 | _LT_EOF | |
14670 | ;; | |
14671 | *) | |
14672 | # For security reasons, it is highly recommended that you always | |
14673 | # use absolute paths for naming shared libraries, and exclude the | |
14674 | # DT_RUNPATH tag from executables and libraries. But doing so | |
14675 | # requires that you compile everything twice, which is a pain. | |
14676 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14677 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14678 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14679 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14680 | else | |
14681 | ld_shlibs_FC=no | |
14682 | fi | |
14683 | ;; | |
14684 | esac | |
14685 | ;; | |
14686 | ||
14687 | sunos4*) | |
14688 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14689 | wlarc= | |
14690 | hardcode_direct_FC=yes | |
14691 | hardcode_shlibpath_var_FC=no | |
14692 | ;; | |
14693 | ||
14694 | *) | |
14695 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14696 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14697 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14698 | else | |
14699 | ld_shlibs_FC=no | |
14700 | fi | |
14701 | ;; | |
14702 | esac | |
14703 | ||
14704 | if test "$ld_shlibs_FC" = no; then | |
14705 | runpath_var= | |
14706 | hardcode_libdir_flag_spec_FC= | |
14707 | export_dynamic_flag_spec_FC= | |
14708 | whole_archive_flag_spec_FC= | |
14709 | fi | |
14710 | else | |
14711 | # PORTME fill in a description of your system's linker (not GNU ld) | |
14712 | case $host_os in | |
14713 | aix3*) | |
14714 | allow_undefined_flag_FC=unsupported | |
14715 | always_export_symbols_FC=yes | |
14716 | 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' | |
14717 | # Note: this linker hardcodes the directories in LIBPATH if there | |
14718 | # are no directories specified by -L. | |
14719 | hardcode_minus_L_FC=yes | |
14720 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
14721 | # Neither direct hardcoding nor static linking is supported with a | |
14722 | # broken collect2. | |
14723 | hardcode_direct_FC=unsupported | |
14724 | fi | |
14725 | ;; | |
14726 | ||
4f6bebc3 | 14727 | aix[4-9]*) |
1cf3d07d SE |
14728 | if test "$host_cpu" = ia64; then |
14729 | # On IA64, the linker does run time linking by default, so we don't | |
14730 | # have to do anything special. | |
14731 | aix_use_runtimelinking=no | |
14732 | exp_sym_flag='-Bexport' | |
14733 | no_entry_flag="" | |
14734 | else | |
14735 | # If we're using GNU nm, then we don't want the "-C" option. | |
14736 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
14737 | # Also, AIX nm treats weak defined symbols like other global |
14738 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 14739 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 14740 | 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 | 14741 | else |
d3ca2257 | 14742 | 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 |
14743 | fi |
14744 | aix_use_runtimelinking=no | |
14745 | ||
14746 | # Test if we are trying to use run time linking or normal | |
14747 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14748 | # need to do runtime linking. | |
4f6bebc3 | 14749 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
14750 | for ld_flag in $LDFLAGS; do |
14751 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14752 | aix_use_runtimelinking=yes | |
14753 | break | |
14754 | fi | |
14755 | done | |
14756 | ;; | |
14757 | esac | |
14758 | ||
14759 | exp_sym_flag='-bexport' | |
14760 | no_entry_flag='-bnoentry' | |
14761 | fi | |
14762 | ||
14763 | # When large executables or shared objects are built, AIX ld can | |
14764 | # have problems creating the table of contents. If linking a library | |
14765 | # or program results in "error TOC overflow" add -mminimal-toc to | |
14766 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14767 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14768 | ||
14769 | archive_cmds_FC='' | |
14770 | hardcode_direct_FC=yes | |
14771 | hardcode_direct_absolute_FC=yes | |
14772 | hardcode_libdir_separator_FC=':' | |
14773 | link_all_deplibs_FC=yes | |
14774 | file_list_spec_FC='${wl}-f,' | |
14775 | ||
14776 | if test "$GCC" = yes; then | |
14777 | case $host_os in aix4.[012]|aix4.[012].*) | |
14778 | # We only want to do this on AIX 4.2 and lower, the check | |
14779 | # below for broken collect2 doesn't work under 4.3+ | |
14780 | collect2name=`${CC} -print-prog-name=collect2` | |
14781 | if test -f "$collect2name" && | |
14782 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
14783 | then | |
14784 | # We have reworked collect2 | |
14785 | : | |
14786 | else | |
14787 | # We have old collect2 | |
14788 | hardcode_direct_FC=unsupported | |
14789 | # It fails to find uninstalled libraries when the uninstalled | |
14790 | # path is not listed in the libpath. Setting hardcode_minus_L | |
14791 | # to unsupported forces relinking | |
14792 | hardcode_minus_L_FC=yes | |
14793 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14794 | hardcode_libdir_separator_FC= | |
14795 | fi | |
14796 | ;; | |
14797 | esac | |
14798 | shared_flag='-shared' | |
14799 | if test "$aix_use_runtimelinking" = yes; then | |
14800 | shared_flag="$shared_flag "'${wl}-G' | |
14801 | fi | |
14802 | else | |
14803 | # not using gcc | |
14804 | if test "$host_cpu" = ia64; then | |
14805 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14806 | # chokes on -Wl,-G. The following line is correct: | |
14807 | shared_flag='-G' | |
14808 | else | |
14809 | if test "$aix_use_runtimelinking" = yes; then | |
14810 | shared_flag='${wl}-G' | |
14811 | else | |
14812 | shared_flag='${wl}-bM:SRE' | |
14813 | fi | |
14814 | fi | |
14815 | fi | |
14816 | ||
d58dead8 | 14817 | export_dynamic_flag_spec_FC='${wl}-bexpall' |
1cf3d07d SE |
14818 | # It seems that -bexpall does not export symbols beginning with |
14819 | # underscore (_), so it is better to generate a list of symbols to export. | |
14820 | always_export_symbols_FC=yes | |
14821 | if test "$aix_use_runtimelinking" = yes; then | |
14822 | # Warning - without using the other runtime loading flags (-brtl), | |
14823 | # -berok will link without error, but may produce a broken library. | |
14824 | allow_undefined_flag_FC='-berok' | |
14825 | # Determine the default libpath from the value encoded in an | |
14826 | # empty executable. | |
14827 | if test x$gcc_no_link = xyes; then | |
22e05272 | 14828 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 14829 | fi |
5213506e | 14830 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14831 | program main |
14832 | ||
14833 | end | |
14834 | _ACEOF | |
5213506e | 14835 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
14836 | |
14837 | lt_aix_libpath_sed=' | |
14838 | /Import File Strings/,/^$/ { | |
14839 | /^0/ { | |
14840 | s/^0 *\(.*\)$/\1/ | |
14841 | p | |
14842 | } | |
14843 | }' | |
14844 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14845 | # Check for a 64-bit object if we didn't find anything. | |
14846 | if test -z "$aix_libpath"; then | |
14847 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14848 | fi | |
1cf3d07d | 14849 | fi |
5213506e RW |
14850 | rm -f core conftest.err conftest.$ac_objext \ |
14851 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
14852 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14853 | ||
14854 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 14855 | 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 |
14856 | else |
14857 | if test "$host_cpu" = ia64; then | |
14858 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
14859 | allow_undefined_flag_FC="-z nodefs" | |
14860 | 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" | |
14861 | else | |
14862 | # Determine the default libpath from the value encoded in an | |
14863 | # empty executable. | |
14864 | if test x$gcc_no_link = xyes; then | |
22e05272 | 14865 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 14866 | fi |
5213506e | 14867 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14868 | program main |
14869 | ||
14870 | end | |
14871 | _ACEOF | |
5213506e | 14872 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
14873 | |
14874 | lt_aix_libpath_sed=' | |
14875 | /Import File Strings/,/^$/ { | |
14876 | /^0/ { | |
14877 | s/^0 *\(.*\)$/\1/ | |
14878 | p | |
14879 | } | |
14880 | }' | |
14881 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14882 | # Check for a 64-bit object if we didn't find anything. | |
14883 | if test -z "$aix_libpath"; then | |
14884 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14885 | fi | |
1cf3d07d | 14886 | fi |
5213506e RW |
14887 | rm -f core conftest.err conftest.$ac_objext \ |
14888 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
14889 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14890 | ||
14891 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14892 | # Warning - without using the other run time loading flags, | |
14893 | # -berok will link without error, but may produce a broken library. | |
14894 | no_undefined_flag_FC=' ${wl}-bernotok' | |
14895 | allow_undefined_flag_FC=' ${wl}-berok' | |
43e02a8a RW |
14896 | if test "$with_gnu_ld" = yes; then |
14897 | # We only use this code for GNU lds that support --whole-archive. | |
14898 | whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
14899 | else | |
14900 | # Exported symbols can be pulled into shared objects from archives | |
14901 | whole_archive_flag_spec_FC='$convenience' | |
14902 | fi | |
1cf3d07d SE |
14903 | archive_cmds_need_lc_FC=yes |
14904 | # This is similar to how AIX traditionally builds its shared libraries. | |
14905 | 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' | |
14906 | fi | |
14907 | fi | |
14908 | ;; | |
14909 | ||
14910 | amigaos*) | |
d58dead8 PG |
14911 | case $host_cpu in |
14912 | powerpc) | |
14913 | # see comment about AmigaOS4 .so support | |
14914 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14915 | archive_expsym_cmds_FC='' | |
14916 | ;; | |
14917 | m68k) | |
14918 | 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)' | |
14919 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14920 | hardcode_minus_L_FC=yes | |
14921 | ;; | |
14922 | esac | |
1cf3d07d SE |
14923 | ;; |
14924 | ||
14925 | bsdi[45]*) | |
14926 | export_dynamic_flag_spec_FC=-rdynamic | |
14927 | ;; | |
14928 | ||
d58dead8 | 14929 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14930 | # When not using gcc, we currently assume that we are using |
14931 | # Microsoft Visual C++. | |
14932 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14933 | # no search path for DLLs. | |
14934 | hardcode_libdir_flag_spec_FC=' ' | |
14935 | allow_undefined_flag_FC=unsupported | |
14936 | # Tell ltmain to make .lib files, not .a files. | |
14937 | libext=lib | |
14938 | # Tell ltmain to make .dll files, not .so files. | |
14939 | shrext_cmds=".dll" | |
14940 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 14941 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
14942 | # The linker will automatically build a .lib file if we build a DLL. |
14943 | old_archive_from_new_cmds_FC='true' | |
14944 | # FIXME: Should let the user specify the lib program. | |
14945 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
14946 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
14947 | enable_shared_with_static_runtimes_FC=yes | |
14948 | ;; | |
14949 | ||
14950 | darwin* | rhapsody*) | |
1cf3d07d | 14951 | |
d58dead8 PG |
14952 | |
14953 | archive_cmds_need_lc_FC=no | |
14954 | hardcode_direct_FC=no | |
14955 | hardcode_automatic_FC=yes | |
14956 | hardcode_shlibpath_var_FC=unsupported | |
43e02a8a RW |
14957 | if test "$lt_cv_ld_force_load" = "yes"; then |
14958 | 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\"`' | |
14959 | else | |
14960 | whole_archive_flag_spec_FC='' | |
14961 | fi | |
d58dead8 PG |
14962 | link_all_deplibs_FC=yes |
14963 | allow_undefined_flag_FC="$_lt_dar_allow_undefined" | |
14964 | case $cc_basename in | |
14965 | ifort*) _lt_dar_can_shared=yes ;; | |
14966 | *) _lt_dar_can_shared=$GCC ;; | |
14967 | esac | |
14968 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 14969 | output_verbose_link_cmd=func_echo_all |
d58dead8 PG |
14970 | 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}" |
14971 | module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
14972 | 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}" | |
14973 | 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}" | |
14974 | ||
14975 | else | |
14976 | ld_shlibs_FC=no | |
14977 | fi | |
14978 | ||
1cf3d07d SE |
14979 | ;; |
14980 | ||
14981 | dgux*) | |
14982 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14983 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14984 | hardcode_shlibpath_var_FC=no | |
14985 | ;; | |
14986 | ||
1cf3d07d SE |
14987 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14988 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
14989 | # does not break anything, and helps significantly (at the cost of a little | |
14990 | # extra space). | |
14991 | freebsd2.2*) | |
14992 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14993 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14994 | hardcode_direct_FC=yes | |
14995 | hardcode_shlibpath_var_FC=no | |
14996 | ;; | |
14997 | ||
14998 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 14999 | freebsd2.*) |
1cf3d07d SE |
15000 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15001 | hardcode_direct_FC=yes | |
15002 | hardcode_minus_L_FC=yes | |
15003 | hardcode_shlibpath_var_FC=no | |
15004 | ;; | |
15005 | ||
15006 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
15007 | freebsd* | dragonfly*) | |
15008 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
15009 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15010 | hardcode_direct_FC=yes | |
15011 | hardcode_shlibpath_var_FC=no | |
15012 | ;; | |
15013 | ||
15014 | hpux9*) | |
15015 | if test "$GCC" = yes; then | |
15016 | 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' | |
15017 | else | |
15018 | 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' | |
15019 | fi | |
15020 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
15021 | hardcode_libdir_separator_FC=: | |
15022 | hardcode_direct_FC=yes | |
15023 | ||
15024 | # hardcode_minus_L: Not really in the search PATH, | |
15025 | # but as the default location of the library. | |
15026 | hardcode_minus_L_FC=yes | |
15027 | export_dynamic_flag_spec_FC='${wl}-E' | |
15028 | ;; | |
15029 | ||
15030 | hpux10*) | |
43e02a8a | 15031 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
15032 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15033 | else | |
15034 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
15035 | fi | |
15036 | if test "$with_gnu_ld" = no; then | |
15037 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
15038 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
15039 | hardcode_libdir_separator_FC=: | |
15040 | hardcode_direct_FC=yes | |
15041 | hardcode_direct_absolute_FC=yes | |
15042 | export_dynamic_flag_spec_FC='${wl}-E' | |
15043 | # hardcode_minus_L: Not really in the search PATH, | |
15044 | # but as the default location of the library. | |
15045 | hardcode_minus_L_FC=yes | |
15046 | fi | |
15047 | ;; | |
15048 | ||
15049 | hpux11*) | |
43e02a8a | 15050 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
15051 | case $host_cpu in |
15052 | hppa*64*) | |
4e4ba647 | 15053 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
15054 | ;; |
15055 | ia64*) | |
d58dead8 | 15056 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
15057 | ;; |
15058 | *) | |
15059 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
15060 | ;; | |
15061 | esac | |
15062 | else | |
15063 | case $host_cpu in | |
15064 | hppa*64*) | |
4e4ba647 | 15065 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
15066 | ;; |
15067 | ia64*) | |
15068 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
15069 | ;; | |
15070 | *) | |
43e02a8a | 15071 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
15072 | ;; |
15073 | esac | |
15074 | fi | |
15075 | if test "$with_gnu_ld" = no; then | |
15076 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
15077 | hardcode_libdir_separator_FC=: | |
15078 | ||
15079 | case $host_cpu in | |
15080 | hppa*64*|ia64*) | |
15081 | hardcode_direct_FC=no | |
15082 | hardcode_shlibpath_var_FC=no | |
15083 | ;; | |
15084 | *) | |
15085 | hardcode_direct_FC=yes | |
15086 | hardcode_direct_absolute_FC=yes | |
15087 | export_dynamic_flag_spec_FC='${wl}-E' | |
15088 | ||
15089 | # hardcode_minus_L: Not really in the search PATH, | |
15090 | # but as the default location of the library. | |
15091 | hardcode_minus_L_FC=yes | |
15092 | ;; | |
15093 | esac | |
15094 | fi | |
15095 | ;; | |
15096 | ||
15097 | irix5* | irix6* | nonstopux*) | |
15098 | if test "$GCC" = yes; then | |
43e02a8a | 15099 | 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 |
15100 | # Try to use the -exported_symbol ld option, if it does not |
15101 | # work, assume that -exports_file does not work either and | |
15102 | # implicitly export all symbols. | |
15103 | save_LDFLAGS="$LDFLAGS" | |
15104 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
15105 | if test x$gcc_no_link = xyes; then | |
22e05272 | 15106 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 15107 | fi |
5213506e | 15108 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
15109 | int foo(void) {} |
15110 | _ACEOF | |
5213506e | 15111 | if ac_fn_fc_try_link "$LINENO"; then : |
43e02a8a | 15112 | 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 | 15113 | |
1cf3d07d | 15114 | fi |
5213506e RW |
15115 | rm -f core conftest.err conftest.$ac_objext \ |
15116 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
15117 | LDFLAGS="$save_LDFLAGS" |
15118 | else | |
43e02a8a RW |
15119 | 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' |
15120 | 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 |
15121 | fi |
15122 | archive_cmds_need_lc_FC='no' | |
15123 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
15124 | hardcode_libdir_separator_FC=: | |
15125 | inherit_rpath_FC=yes | |
15126 | link_all_deplibs_FC=yes | |
15127 | ;; | |
15128 | ||
15129 | netbsd*) | |
15130 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15131 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
15132 | else | |
15133 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
15134 | fi | |
15135 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15136 | hardcode_direct_FC=yes | |
15137 | hardcode_shlibpath_var_FC=no | |
15138 | ;; | |
15139 | ||
15140 | newsos6) | |
15141 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15142 | hardcode_direct_FC=yes | |
15143 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
15144 | hardcode_libdir_separator_FC=: | |
15145 | hardcode_shlibpath_var_FC=no | |
15146 | ;; | |
15147 | ||
15148 | *nto* | *qnx*) | |
15149 | ;; | |
15150 | ||
15151 | openbsd*) | |
d58dead8 PG |
15152 | if test -f /usr/libexec/ld.so; then |
15153 | hardcode_direct_FC=yes | |
15154 | hardcode_shlibpath_var_FC=no | |
15155 | hardcode_direct_absolute_FC=yes | |
15156 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 15157 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d58dead8 | 15158 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 15159 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' |
d58dead8 PG |
15160 | export_dynamic_flag_spec_FC='${wl}-E' |
15161 | else | |
15162 | case $host_os in | |
15163 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
15164 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
15165 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15166 | ;; | |
15167 | *) | |
15168 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
15169 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
15170 | ;; | |
15171 | esac | |
15172 | fi | |
15173 | else | |
15174 | ld_shlibs_FC=no | |
1cf3d07d SE |
15175 | fi |
15176 | ;; | |
15177 | ||
15178 | os2*) | |
15179 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15180 | hardcode_minus_L_FC=yes | |
15181 | allow_undefined_flag_FC=unsupported | |
43e02a8a | 15182 | 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 |
15183 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
15184 | ;; | |
15185 | ||
15186 | osf3*) | |
15187 | if test "$GCC" = yes; then | |
15188 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 15189 | 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 |
15190 | else |
15191 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 15192 | 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 |
15193 | fi |
15194 | archive_cmds_need_lc_FC='no' | |
15195 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
15196 | hardcode_libdir_separator_FC=: | |
15197 | ;; | |
15198 | ||
15199 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
15200 | if test "$GCC" = yes; then | |
15201 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 15202 | 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 |
15203 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' |
15204 | else | |
15205 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 15206 | 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 | 15207 | 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 | 15208 | $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 |
15209 | |
15210 | # Both c and cxx compiler support -rpath directly | |
15211 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
15212 | fi | |
15213 | archive_cmds_need_lc_FC='no' | |
15214 | hardcode_libdir_separator_FC=: | |
15215 | ;; | |
15216 | ||
15217 | solaris*) | |
15218 | no_undefined_flag_FC=' -z defs' | |
15219 | if test "$GCC" = yes; then | |
15220 | wlarc='${wl}' | |
15221 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15222 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
15223 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
15224 | else | |
15225 | case `$CC -V 2>&1` in | |
15226 | *"Compilers 5.0"*) | |
15227 | wlarc='' | |
15228 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15229 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
15230 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
15231 | ;; | |
15232 | *) | |
15233 | wlarc='${wl}' | |
15234 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15235 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
15236 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
15237 | ;; | |
15238 | esac | |
15239 | fi | |
15240 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15241 | hardcode_shlibpath_var_FC=no | |
15242 | case $host_os in | |
15243 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
15244 | *) | |
15245 | # The compiler driver will combine and reorder linker options, | |
15246 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
15247 | # but is careful enough not to reorder. | |
15248 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
15249 | if test "$GCC" = yes; then | |
15250 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
15251 | else | |
15252 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
15253 | fi | |
15254 | ;; | |
15255 | esac | |
15256 | link_all_deplibs_FC=yes | |
15257 | ;; | |
15258 | ||
15259 | sunos4*) | |
15260 | if test "x$host_vendor" = xsequent; then | |
15261 | # Use $CC to link under sequent, because it throws in some extra .o | |
15262 | # files that make .init and .fini sections work. | |
15263 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15264 | else | |
15265 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
15266 | fi | |
15267 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15268 | hardcode_direct_FC=yes | |
15269 | hardcode_minus_L_FC=yes | |
15270 | hardcode_shlibpath_var_FC=no | |
15271 | ;; | |
15272 | ||
15273 | sysv4) | |
15274 | case $host_vendor in | |
15275 | sni) | |
15276 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15277 | hardcode_direct_FC=yes # is this really true??? | |
15278 | ;; | |
15279 | siemens) | |
15280 | ## LD is ld it makes a PLAMLIB | |
15281 | ## CC just makes a GrossModule. | |
15282 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
15283 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
15284 | hardcode_direct_FC=no | |
15285 | ;; | |
15286 | motorola) | |
15287 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15288 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
15289 | ;; | |
15290 | esac | |
15291 | runpath_var='LD_RUN_PATH' | |
15292 | hardcode_shlibpath_var_FC=no | |
15293 | ;; | |
15294 | ||
15295 | sysv4.3*) | |
15296 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15297 | hardcode_shlibpath_var_FC=no | |
15298 | export_dynamic_flag_spec_FC='-Bexport' | |
15299 | ;; | |
15300 | ||
15301 | sysv4*MP*) | |
15302 | if test -d /usr/nec; then | |
15303 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15304 | hardcode_shlibpath_var_FC=no | |
15305 | runpath_var=LD_RUN_PATH | |
15306 | hardcode_runpath_var=yes | |
15307 | ld_shlibs_FC=yes | |
15308 | fi | |
15309 | ;; | |
15310 | ||
15311 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
15312 | no_undefined_flag_FC='${wl}-z,text' | |
15313 | archive_cmds_need_lc_FC=no | |
15314 | hardcode_shlibpath_var_FC=no | |
15315 | runpath_var='LD_RUN_PATH' | |
15316 | ||
15317 | if test "$GCC" = yes; then | |
15318 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15319 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15320 | else | |
15321 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15322 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15323 | fi | |
15324 | ;; | |
15325 | ||
15326 | sysv5* | sco3.2v5* | sco5v6*) | |
15327 | # Note: We can NOT use -z defs as we might desire, because we do not | |
15328 | # link with -lc, and that would cause any symbols used from libc to | |
15329 | # always be unresolved, which means just about no library would | |
15330 | # ever link correctly. If we're not using GNU ld we use -z text | |
15331 | # though, which does catch some bad symbols but isn't as heavy-handed | |
15332 | # as -z defs. | |
15333 | no_undefined_flag_FC='${wl}-z,text' | |
15334 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
15335 | archive_cmds_need_lc_FC=no | |
15336 | hardcode_shlibpath_var_FC=no | |
15337 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
15338 | hardcode_libdir_separator_FC=':' | |
15339 | link_all_deplibs_FC=yes | |
15340 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
15341 | runpath_var='LD_RUN_PATH' | |
15342 | ||
15343 | if test "$GCC" = yes; then | |
15344 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15345 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15346 | else | |
15347 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15348 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15349 | fi | |
15350 | ;; | |
15351 | ||
15352 | uts4*) | |
15353 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15354 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15355 | hardcode_shlibpath_var_FC=no | |
15356 | ;; | |
15357 | ||
15358 | *) | |
15359 | ld_shlibs_FC=no | |
15360 | ;; | |
15361 | esac | |
15362 | ||
15363 | if test x$host_vendor = xsni; then | |
15364 | case $host in | |
15365 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
15366 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
15367 | ;; | |
15368 | esac | |
15369 | fi | |
15370 | fi | |
15371 | ||
5213506e RW |
15372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 |
15373 | $as_echo "$ld_shlibs_FC" >&6; } | |
1cf3d07d SE |
15374 | test "$ld_shlibs_FC" = no && can_build_shared=no |
15375 | ||
15376 | with_gnu_ld_FC=$with_gnu_ld | |
15377 | ||
15378 | ||
15379 | ||
15380 | ||
15381 | ||
15382 | ||
15383 | # | |
15384 | # Do we need to explicitly link libc? | |
15385 | # | |
15386 | case "x$archive_cmds_need_lc_FC" in | |
15387 | x|xyes) | |
15388 | # Assume -lc should be added | |
15389 | archive_cmds_need_lc_FC=yes | |
15390 | ||
15391 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
15392 | case $archive_cmds_FC in | |
15393 | *'~'*) | |
15394 | # FIXME: we may have to deal with multi-command sequences. | |
15395 | ;; | |
15396 | '$CC '*) | |
15397 | # Test whether the compiler implicitly links with -lc since on some | |
15398 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15399 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
15400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
15401 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 15402 | if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : |
5213506e | 15403 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
15404 | else |
15405 | $RM conftest* | |
15406 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 15407 | |
5213506e | 15408 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
15409 | (eval $ac_compile) 2>&5 |
15410 | ac_status=$? | |
5213506e RW |
15411 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15412 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
15413 | soname=conftest |
15414 | lib=conftest | |
15415 | libobjs=conftest.$ac_objext | |
15416 | deplibs= | |
15417 | wl=$lt_prog_compiler_wl_FC | |
15418 | pic_flag=$lt_prog_compiler_pic_FC | |
15419 | compiler_flags=-v | |
15420 | linker_flags=-v | |
15421 | verstring= | |
15422 | output_objdir=. | |
15423 | libname=conftest | |
15424 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
15425 | allow_undefined_flag_FC= | |
5213506e | 15426 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d | 15427 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9cdc381b | 15428 | ac_status=$? |
5213506e RW |
15429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15430 | test $ac_status = 0; } | |
baafc534 RW |
15431 | then |
15432 | lt_cv_archive_cmds_need_lc_FC=no | |
15433 | else | |
15434 | lt_cv_archive_cmds_need_lc_FC=yes | |
15435 | fi | |
15436 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
15437 | else | |
15438 | cat conftest.err 1>&5 | |
15439 | fi | |
15440 | $RM conftest* | |
15441 | ||
15442 | fi | |
5213506e RW |
15443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 |
15444 | $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } | |
baafc534 | 15445 | archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC |
1cf3d07d SE |
15446 | ;; |
15447 | esac | |
15448 | fi | |
15449 | ;; | |
15450 | esac | |
9cdc381b | 15451 | |
9cdc381b | 15452 | |
1cf3d07d SE |
15453 | |
15454 | ||
15455 | ||
15456 | ||
15457 | ||
15458 | ||
15459 | ||
15460 | ||
15461 | ||
15462 | ||
15463 | ||
15464 | ||
15465 | ||
15466 | ||
15467 | ||
15468 | ||
15469 | ||
15470 | ||
15471 | ||
15472 | ||
15473 | ||
15474 | ||
15475 | ||
15476 | ||
15477 | ||
15478 | ||
15479 | ||
15480 | ||
15481 | ||
15482 | ||
15483 | ||
15484 | ||
15485 | ||
15486 | ||
15487 | ||
15488 | ||
15489 | ||
15490 | ||
15491 | ||
15492 | ||
15493 | ||
15494 | ||
15495 | ||
15496 | ||
15497 | ||
15498 | ||
15499 | ||
15500 | ||
15501 | ||
15502 | ||
15503 | ||
15504 | ||
15505 | ||
15506 | ||
15507 | ||
15508 | ||
15509 | ||
15510 | ||
15511 | ||
15512 | ||
15513 | ||
15514 | ||
5213506e RW |
15515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
15516 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
d58dead8 | 15517 | |
1cf3d07d SE |
15518 | library_names_spec= |
15519 | libname_spec='lib$name' | |
15520 | soname_spec= | |
15521 | shrext_cmds=".so" | |
15522 | postinstall_cmds= | |
15523 | postuninstall_cmds= | |
15524 | finish_cmds= | |
15525 | finish_eval= | |
15526 | shlibpath_var= | |
15527 | shlibpath_overrides_runpath=unknown | |
15528 | version_type=none | |
15529 | dynamic_linker="$host_os ld.so" | |
15530 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15531 | need_lib_prefix=unknown | |
15532 | hardcode_into_libs=no | |
15533 | ||
15534 | # when you set need_version to no, make sure it does not cause -set_version | |
15535 | # flags to be left without arguments | |
15536 | need_version=unknown | |
15537 | ||
15538 | case $host_os in | |
15539 | aix3*) | |
15540 | version_type=linux | |
15541 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
15542 | shlibpath_var=LIBPATH | |
15543 | ||
15544 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15545 | soname_spec='${libname}${release}${shared_ext}$major' | |
15546 | ;; | |
15547 | ||
4f6bebc3 | 15548 | aix[4-9]*) |
1cf3d07d SE |
15549 | version_type=linux |
15550 | need_lib_prefix=no | |
15551 | need_version=no | |
15552 | hardcode_into_libs=yes | |
15553 | if test "$host_cpu" = ia64; then | |
15554 | # AIX 5 supports IA64 | |
15555 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15556 | shlibpath_var=LD_LIBRARY_PATH | |
15557 | else | |
15558 | # With GCC up to 2.95.x, collect2 would create an import file | |
15559 | # for dependence libraries. The import file would start with | |
15560 | # the line `#! .'. This would cause the generated library to | |
15561 | # depend on `.', always an invalid library. This was fixed in | |
15562 | # development snapshots of GCC prior to 3.0. | |
15563 | case $host_os in | |
15564 | aix4 | aix4.[01] | aix4.[01].*) | |
15565 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15566 | echo ' yes ' | |
15567 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
15568 | : | |
15569 | else | |
15570 | can_build_shared=no | |
15571 | fi | |
15572 | ;; | |
15573 | esac | |
15574 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15575 | # soname into executable. Probably we can add versioning support to | |
15576 | # collect2, so additional links can be useful in future. | |
15577 | if test "$aix_use_runtimelinking" = yes; then | |
15578 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15579 | # instead of lib<name>.a to let people know that these are not | |
15580 | # typical AIX shared libraries. | |
15581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15582 | else | |
15583 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15584 | # and later when we are not doing run time linking. | |
15585 | library_names_spec='${libname}${release}.a $libname.a' | |
15586 | soname_spec='${libname}${release}${shared_ext}$major' | |
15587 | fi | |
15588 | shlibpath_var=LIBPATH | |
15589 | fi | |
15590 | ;; | |
15591 | ||
15592 | amigaos*) | |
d58dead8 PG |
15593 | case $host_cpu in |
15594 | powerpc) | |
15595 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15596 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15597 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15598 | ;; | |
15599 | m68k) | |
1cf3d07d SE |
15600 | library_names_spec='$libname.ixlibrary $libname.a' |
15601 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 15602 | 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 |
15603 | ;; |
15604 | esac | |
1cf3d07d SE |
15605 | ;; |
15606 | ||
15607 | beos*) | |
15608 | library_names_spec='${libname}${shared_ext}' | |
15609 | dynamic_linker="$host_os ld.so" | |
15610 | shlibpath_var=LIBRARY_PATH | |
15611 | ;; | |
15612 | ||
15613 | bsdi[45]*) | |
15614 | version_type=linux | |
15615 | need_version=no | |
15616 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15617 | soname_spec='${libname}${release}${shared_ext}$major' | |
15618 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15619 | shlibpath_var=LD_LIBRARY_PATH | |
15620 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15621 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15622 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15623 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15624 | # libtool to hard-code these into programs | |
15625 | ;; | |
15626 | ||
d58dead8 | 15627 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
15628 | version_type=windows |
15629 | shrext_cmds=".dll" | |
15630 | need_version=no | |
15631 | need_lib_prefix=no | |
15632 | ||
d58dead8 PG |
15633 | case $GCC,$host_os in |
15634 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
15635 | library_names_spec='$libname.dll.a' |
15636 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15637 | postinstall_cmds='base_file=`basename \${file}`~ | |
15638 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15639 | dldir=$destdir/`dirname \$dlpath`~ | |
15640 | test -d \$dldir || mkdir -p \$dldir~ | |
15641 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15642 | chmod a+x \$dldir/$dlname~ | |
15643 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15644 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15645 | fi' | |
15646 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15647 | dlpath=$dir/\$dldll~ | |
15648 | $RM \$dlpath' | |
15649 | shlibpath_overrides_runpath=yes | |
15650 | ||
15651 | case $host_os in | |
15652 | cygwin*) | |
15653 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15654 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a | 15655 | |
1cf3d07d | 15656 | ;; |
d58dead8 | 15657 | mingw* | cegcc*) |
1cf3d07d SE |
15658 | # MinGW DLLs use traditional 'lib' prefix |
15659 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
15660 | ;; |
15661 | pw32*) | |
15662 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15663 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15664 | ;; | |
15665 | esac | |
15666 | ;; | |
15667 | ||
15668 | *) | |
15669 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
15670 | ;; | |
15671 | esac | |
15672 | dynamic_linker='Win32 ld.exe' | |
15673 | # FIXME: first we should search . and the directory the executable is in | |
15674 | shlibpath_var=PATH | |
15675 | ;; | |
15676 | ||
15677 | darwin* | rhapsody*) | |
15678 | dynamic_linker="$host_os dyld" | |
15679 | version_type=darwin | |
15680 | need_lib_prefix=no | |
15681 | need_version=no | |
15682 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15683 | soname_spec='${libname}${release}${major}$shared_ext' | |
15684 | shlibpath_overrides_runpath=yes | |
15685 | shlibpath_var=DYLD_LIBRARY_PATH | |
15686 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
15687 | ||
15688 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
15689 | ;; | |
15690 | ||
15691 | dgux*) | |
15692 | version_type=linux | |
15693 | need_lib_prefix=no | |
15694 | need_version=no | |
15695 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15696 | soname_spec='${libname}${release}${shared_ext}$major' | |
15697 | shlibpath_var=LD_LIBRARY_PATH | |
15698 | ;; | |
15699 | ||
1cf3d07d SE |
15700 | freebsd* | dragonfly*) |
15701 | # DragonFly does not have aout. When/if they implement a new | |
15702 | # versioning mechanism, adjust this. | |
15703 | if test -x /usr/bin/objformat; then | |
15704 | objformat=`/usr/bin/objformat` | |
15705 | else | |
15706 | case $host_os in | |
c6084f68 | 15707 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
15708 | *) objformat=elf ;; |
15709 | esac | |
15710 | fi | |
15711 | version_type=freebsd-$objformat | |
15712 | case $version_type in | |
15713 | freebsd-elf*) | |
15714 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15715 | need_version=no | |
15716 | need_lib_prefix=no | |
15717 | ;; | |
15718 | freebsd-*) | |
15719 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15720 | need_version=yes | |
15721 | ;; | |
15722 | esac | |
15723 | shlibpath_var=LD_LIBRARY_PATH | |
15724 | case $host_os in | |
c6084f68 | 15725 | freebsd2.*) |
1cf3d07d SE |
15726 | shlibpath_overrides_runpath=yes |
15727 | ;; | |
15728 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15729 | shlibpath_overrides_runpath=yes | |
15730 | hardcode_into_libs=yes | |
15731 | ;; | |
15732 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15733 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15734 | shlibpath_overrides_runpath=no | |
15735 | hardcode_into_libs=yes | |
15736 | ;; | |
15737 | *) # from 4.6 on, and DragonFly | |
15738 | shlibpath_overrides_runpath=yes | |
15739 | hardcode_into_libs=yes | |
15740 | ;; | |
15741 | esac | |
15742 | ;; | |
15743 | ||
43e02a8a RW |
15744 | haiku*) |
15745 | version_type=linux | |
15746 | need_lib_prefix=no | |
15747 | need_version=no | |
15748 | dynamic_linker="$host_os runtime_loader" | |
15749 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15750 | soname_spec='${libname}${release}${shared_ext}$major' | |
15751 | shlibpath_var=LIBRARY_PATH | |
15752 | shlibpath_overrides_runpath=yes | |
ead5103c | 15753 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
43e02a8a RW |
15754 | hardcode_into_libs=yes |
15755 | ;; | |
15756 | ||
1cf3d07d SE |
15757 | hpux9* | hpux10* | hpux11*) |
15758 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15759 | # link against other versions. | |
15760 | version_type=sunos | |
15761 | need_lib_prefix=no | |
15762 | need_version=no | |
15763 | case $host_cpu in | |
15764 | ia64*) | |
15765 | shrext_cmds='.so' | |
15766 | hardcode_into_libs=yes | |
15767 | dynamic_linker="$host_os dld.so" | |
15768 | shlibpath_var=LD_LIBRARY_PATH | |
15769 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15771 | soname_spec='${libname}${release}${shared_ext}$major' | |
15772 | if test "X$HPUX_IA64_MODE" = X32; then | |
15773 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15774 | else | |
15775 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15776 | fi | |
15777 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15778 | ;; | |
15779 | hppa*64*) | |
15780 | shrext_cmds='.sl' | |
15781 | hardcode_into_libs=yes | |
15782 | dynamic_linker="$host_os dld.sl" | |
15783 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15784 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15785 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15786 | soname_spec='${libname}${release}${shared_ext}$major' | |
15787 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15788 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15789 | ;; | |
15790 | *) | |
15791 | shrext_cmds='.sl' | |
15792 | dynamic_linker="$host_os dld.sl" | |
15793 | shlibpath_var=SHLIB_PATH | |
15794 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15795 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15796 | soname_spec='${libname}${release}${shared_ext}$major' | |
15797 | ;; | |
15798 | esac | |
43e02a8a | 15799 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 15800 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
15801 | # or fails outright, so override atomically: |
15802 | install_override_mode=555 | |
1cf3d07d SE |
15803 | ;; |
15804 | ||
15805 | interix[3-9]*) | |
15806 | version_type=linux | |
15807 | need_lib_prefix=no | |
15808 | need_version=no | |
15809 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15810 | soname_spec='${libname}${release}${shared_ext}$major' | |
15811 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15812 | shlibpath_var=LD_LIBRARY_PATH | |
15813 | shlibpath_overrides_runpath=no | |
15814 | hardcode_into_libs=yes | |
15815 | ;; | |
15816 | ||
15817 | irix5* | irix6* | nonstopux*) | |
15818 | case $host_os in | |
15819 | nonstopux*) version_type=nonstopux ;; | |
15820 | *) | |
15821 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15822 | version_type=linux | |
15823 | else | |
15824 | version_type=irix | |
15825 | fi ;; | |
15826 | esac | |
15827 | need_lib_prefix=no | |
15828 | need_version=no | |
15829 | soname_spec='${libname}${release}${shared_ext}$major' | |
15830 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15831 | case $host_os in | |
15832 | irix5* | nonstopux*) | |
15833 | libsuff= shlibsuff= | |
15834 | ;; | |
15835 | *) | |
15836 | case $LD in # libtool.m4 will add one of these switches to LD | |
15837 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15838 | libsuff= shlibsuff= libmagic=32-bit;; | |
15839 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15840 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15841 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15842 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15843 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15844 | esac | |
15845 | ;; | |
15846 | esac | |
15847 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15848 | shlibpath_overrides_runpath=no | |
15849 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15850 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15851 | hardcode_into_libs=yes | |
15852 | ;; | |
15853 | ||
15854 | # No shared lib support for Linux oldld, aout, or coff. | |
15855 | linux*oldld* | linux*aout* | linux*coff*) | |
15856 | dynamic_linker=no | |
15857 | ;; | |
15858 | ||
15859 | # This must be Linux ELF. | |
e9085da5 MR |
15860 | |
15861 | # uclinux* changes (here and below) have been submitted to the libtool | |
15862 | # project, but have not yet been accepted: they are GCC-local changes | |
15863 | # for the time being. (See | |
15864 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
c0f8c22a | 15865 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
1cf3d07d SE |
15866 | version_type=linux |
15867 | need_lib_prefix=no | |
15868 | need_version=no | |
15869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15870 | soname_spec='${libname}${release}${shared_ext}$major' | |
15871 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15872 | shlibpath_var=LD_LIBRARY_PATH | |
15873 | shlibpath_overrides_runpath=no | |
baafc534 | 15874 | |
1cf3d07d | 15875 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 15876 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 15877 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
15878 | else |
15879 | lt_cv_shlibpath_overrides_runpath=no | |
15880 | save_LDFLAGS=$LDFLAGS | |
15881 | save_libdir=$libdir | |
15882 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
15883 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
15884 | if test x$gcc_no_link = xyes; then | |
22e05272 | 15885 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 15886 | fi |
5213506e | 15887 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
15888 | program main |
15889 | ||
15890 | end | |
9cdc381b | 15891 | _ACEOF |
5213506e RW |
15892 | if ac_fn_fc_try_link "$LINENO"; then : |
15893 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 15894 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 15895 | fi |
9cdc381b | 15896 | fi |
5213506e RW |
15897 | rm -f core conftest.err conftest.$ac_objext \ |
15898 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
15899 | LDFLAGS=$save_LDFLAGS |
15900 | libdir=$save_libdir | |
15901 | ||
15902 | fi | |
15903 | ||
15904 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
15905 | |
15906 | # This implies no fast_install, which is unacceptable. | |
15907 | # Some rework will be needed to allow for fast_install | |
15908 | # before this can be enabled. | |
15909 | hardcode_into_libs=yes | |
15910 | ||
15911 | # Append ld.so.conf contents to the search path | |
15912 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 15913 | 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 |
15914 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15915 | fi | |
15916 | ||
15917 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15918 | # powerpc, because MkLinux only supported shared libraries with the | |
15919 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15920 | # most powerpc-linux boxes support dynamic linking these days and | |
15921 | # people can always --disable-shared, the test was removed, and we | |
15922 | # assume the GNU/Linux dynamic linker is in use. | |
15923 | dynamic_linker='GNU/Linux ld.so' | |
15924 | ;; | |
15925 | ||
15926 | netbsd*) | |
15927 | version_type=sunos | |
15928 | need_lib_prefix=no | |
15929 | need_version=no | |
15930 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15932 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15933 | dynamic_linker='NetBSD (a.out) ld.so' | |
15934 | else | |
15935 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15936 | soname_spec='${libname}${release}${shared_ext}$major' | |
15937 | dynamic_linker='NetBSD ld.elf_so' | |
15938 | fi | |
15939 | shlibpath_var=LD_LIBRARY_PATH | |
15940 | shlibpath_overrides_runpath=yes | |
15941 | hardcode_into_libs=yes | |
15942 | ;; | |
15943 | ||
15944 | newsos6) | |
15945 | version_type=linux | |
15946 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15947 | shlibpath_var=LD_LIBRARY_PATH | |
15948 | shlibpath_overrides_runpath=yes | |
15949 | ;; | |
15950 | ||
15951 | *nto* | *qnx*) | |
15952 | version_type=qnx | |
15953 | need_lib_prefix=no | |
15954 | need_version=no | |
15955 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15956 | soname_spec='${libname}${release}${shared_ext}$major' | |
15957 | shlibpath_var=LD_LIBRARY_PATH | |
15958 | shlibpath_overrides_runpath=no | |
15959 | hardcode_into_libs=yes | |
15960 | dynamic_linker='ldqnx.so' | |
15961 | ;; | |
15962 | ||
15963 | openbsd*) | |
15964 | version_type=sunos | |
15965 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15966 | need_lib_prefix=no | |
15967 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15968 | case $host_os in | |
15969 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15970 | *) need_version=no ;; | |
15971 | esac | |
15972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15973 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15974 | shlibpath_var=LD_LIBRARY_PATH | |
15975 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15976 | case $host_os in | |
15977 | openbsd2.[89] | openbsd2.[89].*) | |
15978 | shlibpath_overrides_runpath=no | |
15979 | ;; | |
15980 | *) | |
15981 | shlibpath_overrides_runpath=yes | |
15982 | ;; | |
15983 | esac | |
15984 | else | |
15985 | shlibpath_overrides_runpath=yes | |
15986 | fi | |
15987 | ;; | |
15988 | ||
15989 | os2*) | |
15990 | libname_spec='$name' | |
15991 | shrext_cmds=".dll" | |
15992 | need_lib_prefix=no | |
15993 | library_names_spec='$libname${shared_ext} $libname.a' | |
15994 | dynamic_linker='OS/2 ld.exe' | |
15995 | shlibpath_var=LIBPATH | |
15996 | ;; | |
15997 | ||
15998 | osf3* | osf4* | osf5*) | |
15999 | version_type=osf | |
16000 | need_lib_prefix=no | |
16001 | need_version=no | |
16002 | soname_spec='${libname}${release}${shared_ext}$major' | |
16003 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16004 | shlibpath_var=LD_LIBRARY_PATH | |
16005 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
16006 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
16007 | ;; | |
16008 | ||
16009 | rdos*) | |
16010 | dynamic_linker=no | |
16011 | ;; | |
16012 | ||
16013 | solaris*) | |
16014 | version_type=linux | |
16015 | need_lib_prefix=no | |
16016 | need_version=no | |
16017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16018 | soname_spec='${libname}${release}${shared_ext}$major' | |
16019 | shlibpath_var=LD_LIBRARY_PATH | |
16020 | shlibpath_overrides_runpath=yes | |
16021 | hardcode_into_libs=yes | |
16022 | # ldd complains unless libraries are executable | |
16023 | postinstall_cmds='chmod +x $lib' | |
16024 | ;; | |
16025 | ||
16026 | sunos4*) | |
16027 | version_type=sunos | |
16028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
16029 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
16030 | shlibpath_var=LD_LIBRARY_PATH | |
16031 | shlibpath_overrides_runpath=yes | |
16032 | if test "$with_gnu_ld" = yes; then | |
16033 | need_lib_prefix=no | |
16034 | fi | |
16035 | need_version=yes | |
16036 | ;; | |
16037 | ||
16038 | sysv4 | sysv4.3*) | |
16039 | version_type=linux | |
16040 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16041 | soname_spec='${libname}${release}${shared_ext}$major' | |
16042 | shlibpath_var=LD_LIBRARY_PATH | |
16043 | case $host_vendor in | |
16044 | sni) | |
16045 | shlibpath_overrides_runpath=no | |
16046 | need_lib_prefix=no | |
16047 | runpath_var=LD_RUN_PATH | |
16048 | ;; | |
16049 | siemens) | |
16050 | need_lib_prefix=no | |
16051 | ;; | |
16052 | motorola) | |
16053 | need_lib_prefix=no | |
16054 | need_version=no | |
16055 | shlibpath_overrides_runpath=no | |
16056 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
16057 | ;; | |
16058 | esac | |
16059 | ;; | |
16060 | ||
16061 | sysv4*MP*) | |
16062 | if test -d /usr/nec ;then | |
16063 | version_type=linux | |
16064 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
16065 | soname_spec='$libname${shared_ext}.$major' | |
16066 | shlibpath_var=LD_LIBRARY_PATH | |
16067 | fi | |
16068 | ;; | |
16069 | ||
16070 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
16071 | version_type=freebsd-elf | |
16072 | need_lib_prefix=no | |
16073 | need_version=no | |
16074 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
16075 | soname_spec='${libname}${release}${shared_ext}$major' | |
16076 | shlibpath_var=LD_LIBRARY_PATH | |
16077 | shlibpath_overrides_runpath=yes | |
16078 | hardcode_into_libs=yes | |
16079 | if test "$with_gnu_ld" = yes; then | |
16080 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
16081 | else | |
16082 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
16083 | case $host_os in | |
16084 | sco3.2v5*) | |
16085 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
16086 | ;; | |
16087 | esac | |
16088 | fi | |
16089 | sys_lib_dlsearch_path_spec='/usr/lib' | |
16090 | ;; | |
16091 | ||
16092 | tpf*) | |
16093 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
16094 | version_type=linux | |
16095 | need_lib_prefix=no | |
16096 | need_version=no | |
d58dead8 | 16097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
16098 | shlibpath_var=LD_LIBRARY_PATH |
16099 | shlibpath_overrides_runpath=no | |
16100 | hardcode_into_libs=yes | |
16101 | ;; | |
16102 | ||
16103 | uts4*) | |
16104 | version_type=linux | |
16105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16106 | soname_spec='${libname}${release}${shared_ext}$major' | |
16107 | shlibpath_var=LD_LIBRARY_PATH | |
16108 | ;; | |
16109 | ||
0ecd0f1c OH |
16110 | # Shared libraries for VwWorks, >= 7 only at this stage |
16111 | # and (fpic) still incompatible with "large" code models | |
16112 | # in a few configurations. Only for RTP mode in any case, | |
16113 | # and upon explicit request at configure time. | |
16114 | vxworks7*) | |
16115 | dynamic_linker=no | |
16116 | case ${with_multisubdir}-${enable_shared} in | |
16117 | *large*) | |
16118 | ;; | |
16119 | *mrtp*-yes) | |
16120 | version_type=linux | |
16121 | need_lib_prefix=no | |
16122 | need_version=no | |
16123 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16124 | soname_spec='${libname}${release}${shared_ext}$major' | |
16125 | dynamic_linker="$host_os module_loader" | |
16126 | ;; | |
16127 | esac | |
16128 | ;; | |
1cf3d07d SE |
16129 | *) |
16130 | dynamic_linker=no | |
16131 | ;; | |
16132 | esac | |
5213506e RW |
16133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
16134 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
16135 | test "$dynamic_linker" = no && can_build_shared=no |
16136 | ||
16137 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
16138 | if test "$GCC" = yes; then | |
16139 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9cdc381b | 16140 | fi |
9cdc381b | 16141 | |
d58dead8 PG |
16142 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
16143 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
16144 | fi | |
16145 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
16146 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
16147 | fi | |
16148 | ||
9cdc381b | 16149 | |
1cf3d07d SE |
16150 | |
16151 | ||
16152 | ||
16153 | ||
16154 | ||
16155 | ||
16156 | ||
16157 | ||
16158 | ||
16159 | ||
16160 | ||
16161 | ||
16162 | ||
16163 | ||
16164 | ||
16165 | ||
16166 | ||
16167 | ||
16168 | ||
16169 | ||
16170 | ||
16171 | ||
16172 | ||
16173 | ||
16174 | ||
16175 | ||
16176 | ||
16177 | ||
16178 | ||
16179 | ||
16180 | ||
43e02a8a RW |
16181 | |
16182 | ||
1cf3d07d SE |
16183 | |
16184 | ||
16185 | ||
5213506e RW |
16186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
16187 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
16188 | hardcode_action_FC= |
16189 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
16190 | test -n "$runpath_var_FC" || | |
16191 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
16192 | ||
16193 | # We can hardcode non-existent directories. | |
16194 | if test "$hardcode_direct_FC" != no && | |
16195 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
16196 | # have to relink, otherwise we might link with an installed library | |
16197 | # when we should be linking with a yet-to-be-installed one | |
16198 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
16199 | test "$hardcode_minus_L_FC" != no; then | |
16200 | # Linking always hardcodes the temporary library directory. | |
16201 | hardcode_action_FC=relink | |
16202 | else | |
16203 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
16204 | hardcode_action_FC=immediate | |
16205 | fi | |
16206 | else | |
16207 | # We cannot hardcode anything, or else we can only hardcode existing | |
16208 | # directories. | |
16209 | hardcode_action_FC=unsupported | |
9cdc381b | 16210 | fi |
5213506e RW |
16211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 |
16212 | $as_echo "$hardcode_action_FC" >&6; } | |
1cf3d07d SE |
16213 | |
16214 | if test "$hardcode_action_FC" = relink || | |
16215 | test "$inherit_rpath_FC" = yes; then | |
16216 | # Fast installation is not supported | |
16217 | enable_fast_install=no | |
16218 | elif test "$shlibpath_overrides_runpath" = yes || | |
16219 | test "$enable_shared" = no; then | |
16220 | # Fast installation is not necessary | |
16221 | enable_fast_install=needless | |
9cdc381b BD |
16222 | fi |
16223 | ||
1cf3d07d SE |
16224 | |
16225 | ||
16226 | ||
16227 | ||
16228 | ||
16229 | ||
16230 | fi # test -n "$compiler" | |
16231 | ||
d58dead8 | 16232 | GCC=$lt_save_GCC |
1cf3d07d SE |
16233 | CC="$lt_save_CC" |
16234 | fi # test "$_lt_disable_FC" != yes | |
16235 | ||
dd46a4de | 16236 | ac_ext=c |
96b8a615 AJ |
16237 | ac_cpp='$CPP $CPPFLAGS' |
16238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1cf3d07d SE |
16241 | |
16242 | ||
16243 | ||
16244 | # extra LD Flags which are required for targets | |
16245 | case "${host}" in | |
16246 | *-darwin*) | |
16247 | # Darwin needs -single_module when linking libgfortran | |
16248 | extra_ldflags_libgfortran=-Wl,-single_module | |
16249 | ;; | |
16250 | esac | |
16251 | ||
16252 | ||
16253 | # We need a working compiler at that point, otherwise give a clear | |
16254 | # error message and bail out. | |
16255 | ||
5213506e RW |
16256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5 |
16257 | $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; } | |
16258 | ac_ext=${ac_fc_srcext-f} | |
16259 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
16260 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
16261 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
16262 | ||
5213506e | 16263 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
16264 | |
16265 | program foo | |
16266 | real, parameter :: bar = sin (12.34 / 2.5) | |
16267 | end program foo | |
6de9cd9a | 16268 | _ACEOF |
5213506e RW |
16269 | if ac_fn_fc_try_compile "$LINENO"; then : |
16270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16271 | $as_echo "yes" >&6; } | |
6de9cd9a | 16272 | else |
5213506e RW |
16273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16274 | $as_echo "no" >&6; } | |
22e05272 | 16275 | 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 | 16276 | |
96b8a615 | 16277 | fi |
5213506e | 16278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
16279 | ac_ext=c |
16280 | ac_cpp='$CPP $CPPFLAGS' | |
16281 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16282 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16283 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
96b8a615 | 16284 | |
96b8a615 | 16285 | |
1cf3d07d | 16286 | |
5213506e RW |
16287 | # Check whether --enable-largefile was given. |
16288 | if test "${enable_largefile+set}" = set; then : | |
16289 | enableval=$enable_largefile; | |
16290 | fi | |
1cf3d07d | 16291 | |
1cf3d07d SE |
16292 | if test "$enable_largefile" != no; then |
16293 | ||
5213506e RW |
16294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
16295 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
22e05272 | 16296 | if ${ac_cv_sys_largefile_CC+:} false; then : |
5213506e | 16297 | $as_echo_n "(cached) " >&6 |
96b8a615 | 16298 | else |
1cf3d07d SE |
16299 | ac_cv_sys_largefile_CC=no |
16300 | if test "$GCC" != yes; then | |
16301 | ac_save_CC=$CC | |
16302 | while :; do | |
5213506e RW |
16303 | # IRIX 6.2 and later do not support large files by default, |
16304 | # so use the C compiler's -n32 option if that helps. | |
16305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
96b8a615 | 16306 | /* end confdefs.h. */ |
1cf3d07d SE |
16307 | #include <sys/types.h> |
16308 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16309 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16310 | since some C++ compilers masquerading as C compilers | |
16311 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16312 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16313 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16314 | && LARGE_OFF_T % 2147483647 == 1) | |
16315 | ? 1 : -1]; | |
4c4b3eb0 PB |
16316 | int |
16317 | main () | |
16318 | { | |
4c4b3eb0 PB |
16319 | |
16320 | ; | |
16321 | return 0; | |
16322 | } | |
16323 | _ACEOF | |
5213506e RW |
16324 | if ac_fn_c_try_compile "$LINENO"; then : |
16325 | break | |
4c4b3eb0 | 16326 | fi |
5213506e RW |
16327 | rm -f core conftest.err conftest.$ac_objext |
16328 | CC="$CC -n32" | |
16329 | if ac_fn_c_try_compile "$LINENO"; then : | |
16330 | ac_cv_sys_largefile_CC=' -n32'; break | |
16331 | fi | |
16332 | rm -f core conftest.err conftest.$ac_objext | |
16333 | break | |
16334 | done | |
16335 | CC=$ac_save_CC | |
16336 | rm -f conftest.$ac_ext | |
16337 | fi | |
16338 | fi | |
16339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
16340 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
16341 | if test "$ac_cv_sys_largefile_CC" != no; then | |
16342 | CC=$CC$ac_cv_sys_largefile_CC | |
16343 | fi | |
4c4b3eb0 | 16344 | |
5213506e RW |
16345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
16346 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
22e05272 | 16347 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
5213506e RW |
16348 | $as_echo_n "(cached) " >&6 |
16349 | else | |
16350 | while :; do | |
16351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16352 | /* end confdefs.h. */ |
5213506e RW |
16353 | #include <sys/types.h> |
16354 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16355 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16356 | since some C++ compilers masquerading as C compilers | |
16357 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16358 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16359 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16360 | && LARGE_OFF_T % 2147483647 == 1) | |
16361 | ? 1 : -1]; | |
4c4b3eb0 PB |
16362 | int |
16363 | main () | |
16364 | { | |
4c4b3eb0 PB |
16365 | |
16366 | ; | |
16367 | return 0; | |
16368 | } | |
16369 | _ACEOF | |
5213506e RW |
16370 | if ac_fn_c_try_compile "$LINENO"; then : |
16371 | ac_cv_sys_file_offset_bits=no; break | |
16372 | fi | |
16373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16375 | /* end confdefs.h. */ |
5213506e RW |
16376 | #define _FILE_OFFSET_BITS 64 |
16377 | #include <sys/types.h> | |
16378 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16379 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16380 | since some C++ compilers masquerading as C compilers | |
16381 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16382 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16383 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16384 | && LARGE_OFF_T % 2147483647 == 1) | |
16385 | ? 1 : -1]; | |
4c4b3eb0 PB |
16386 | int |
16387 | main () | |
16388 | { | |
4c4b3eb0 PB |
16389 | |
16390 | ; | |
16391 | return 0; | |
16392 | } | |
16393 | _ACEOF | |
5213506e RW |
16394 | if ac_fn_c_try_compile "$LINENO"; then : |
16395 | ac_cv_sys_file_offset_bits=64; break | |
4c4b3eb0 | 16396 | fi |
5213506e RW |
16397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16398 | ac_cv_sys_file_offset_bits=unknown | |
16399 | break | |
16400 | done | |
4c4b3eb0 | 16401 | fi |
5213506e RW |
16402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
16403 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
16404 | case $ac_cv_sys_file_offset_bits in #( | |
16405 | no | unknown) ;; | |
16406 | *) | |
16407 | cat >>confdefs.h <<_ACEOF | |
16408 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4c4b3eb0 | 16409 | _ACEOF |
5213506e RW |
16410 | ;; |
16411 | esac | |
16412 | rm -rf conftest* | |
16413 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
16414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
16415 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
22e05272 | 16416 | if ${ac_cv_sys_large_files+:} false; then : |
5213506e RW |
16417 | $as_echo_n "(cached) " >&6 |
16418 | else | |
16419 | while :; do | |
16420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16421 | /* end confdefs.h. */ |
5213506e RW |
16422 | #include <sys/types.h> |
16423 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16424 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16425 | since some C++ compilers masquerading as C compilers | |
16426 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16427 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16428 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16429 | && LARGE_OFF_T % 2147483647 == 1) | |
16430 | ? 1 : -1]; | |
4c4b3eb0 PB |
16431 | int |
16432 | main () | |
16433 | { | |
4c4b3eb0 PB |
16434 | |
16435 | ; | |
16436 | return 0; | |
16437 | } | |
16438 | _ACEOF | |
5213506e RW |
16439 | if ac_fn_c_try_compile "$LINENO"; then : |
16440 | ac_cv_sys_large_files=no; break | |
4c4b3eb0 | 16441 | fi |
5213506e RW |
16442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16444 | /* end confdefs.h. */ |
5213506e RW |
16445 | #define _LARGE_FILES 1 |
16446 | #include <sys/types.h> | |
16447 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16448 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16449 | since some C++ compilers masquerading as C compilers | |
16450 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16451 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16452 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16453 | && LARGE_OFF_T % 2147483647 == 1) | |
16454 | ? 1 : -1]; | |
4c4b3eb0 PB |
16455 | int |
16456 | main () | |
16457 | { | |
16458 | ||
4c4b3eb0 PB |
16459 | ; |
16460 | return 0; | |
16461 | } | |
16462 | _ACEOF | |
5213506e RW |
16463 | if ac_fn_c_try_compile "$LINENO"; then : |
16464 | ac_cv_sys_large_files=1; break | |
4c4b3eb0 | 16465 | fi |
5213506e RW |
16466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16467 | ac_cv_sys_large_files=unknown | |
16468 | break | |
16469 | done | |
38d24731 | 16470 | fi |
5213506e RW |
16471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
16472 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
16473 | case $ac_cv_sys_large_files in #( | |
16474 | no | unknown) ;; | |
16475 | *) | |
4c4b3eb0 | 16476 | cat >>confdefs.h <<_ACEOF |
5213506e | 16477 | #define _LARGE_FILES $ac_cv_sys_large_files |
4c4b3eb0 | 16478 | _ACEOF |
5213506e RW |
16479 | ;; |
16480 | esac | |
16481 | rm -rf conftest* | |
16482 | fi | |
22e05272 JM |
16483 | |
16484 | ||
4c4b3eb0 PB |
16485 | fi |
16486 | ||
44720bef JB |
16487 | |
16488 | # Types | |
5213506e | 16489 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
22e05272 | 16490 | if test "x$ac_cv_type_off_t" = xyes; then : |
4c4b3eb0 | 16491 | |
5213506e | 16492 | else |
4c4b3eb0 | 16493 | |
5213506e RW |
16494 | cat >>confdefs.h <<_ACEOF |
16495 | #define off_t long int | |
16496 | _ACEOF | |
4c4b3eb0 | 16497 | |
44720bef JB |
16498 | fi |
16499 | ||
16500 | ||
16501 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" | |
22e05272 | 16502 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
44720bef JB |
16503 | |
16504 | $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h | |
16505 | ||
16506 | else | |
16507 | for ac_type in 'int' 'long int' 'long long int'; do | |
16508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16509 | /* end confdefs.h. */ | |
16510 | $ac_includes_default | |
16511 | int | |
16512 | main () | |
16513 | { | |
16514 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
22e05272 JM |
16515 | test_array [0] = 0; |
16516 | return test_array [0]; | |
44720bef JB |
16517 | |
16518 | ; | |
16519 | return 0; | |
16520 | } | |
16521 | _ACEOF | |
16522 | if ac_fn_c_try_compile "$LINENO"; then : | |
16523 | ||
16524 | cat >>confdefs.h <<_ACEOF | |
16525 | #define intptr_t $ac_type | |
16526 | _ACEOF | |
16527 | ||
16528 | ac_type= | |
16529 | fi | |
16530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16531 | test -z "$ac_type" && break | |
16532 | done | |
16533 | fi | |
16534 | ||
16535 | ||
16536 | ||
16537 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | |
22e05272 | 16538 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
44720bef JB |
16539 | |
16540 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | |
16541 | ||
16542 | else | |
16543 | for ac_type in 'unsigned int' 'unsigned long int' \ | |
16544 | 'unsigned long long int'; do | |
16545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16546 | /* end confdefs.h. */ | |
16547 | $ac_includes_default | |
16548 | int | |
16549 | main () | |
16550 | { | |
16551 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
22e05272 JM |
16552 | test_array [0] = 0; |
16553 | return test_array [0]; | |
44720bef JB |
16554 | |
16555 | ; | |
16556 | return 0; | |
16557 | } | |
16558 | _ACEOF | |
16559 | if ac_fn_c_try_compile "$LINENO"; then : | |
16560 | ||
16561 | cat >>confdefs.h <<_ACEOF | |
16562 | #define uintptr_t $ac_type | |
16563 | _ACEOF | |
16564 | ||
16565 | ac_type= | |
16566 | fi | |
16567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16568 | test -z "$ac_type" && break | |
16569 | done | |
16570 | fi | |
16571 | ||
16572 | ||
16573 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
22e05272 | 16574 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
44720bef JB |
16575 | |
16576 | cat >>confdefs.h <<_ACEOF | |
16577 | #define HAVE_PTRDIFF_T 1 | |
16578 | _ACEOF | |
16579 | ||
16580 | ||
4c4b3eb0 PB |
16581 | fi |
16582 | ||
4c4b3eb0 | 16583 | |
74544378 | 16584 | # check header files (we assume C89 is available, so don't check for that) |
df65f093 | 16585 | |
5213506e | 16586 | |
df65f093 | 16587 | |
74544378 JB |
16588 | for ac_header in $ac_header_list |
16589 | do : | |
16590 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16591 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
16592 | " | |
22e05272 | 16593 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
74544378 JB |
16594 | cat >>confdefs.h <<_ACEOF |
16595 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
df65f093 SK |
16596 | _ACEOF |
16597 | ||
5213506e | 16598 | fi |
df65f093 | 16599 | |
74544378 | 16600 | done |
864c28e1 RO |
16601 | |
16602 | ||
df65f093 | 16603 | |
5213506e | 16604 | |
5213506e | 16605 | |
df65f093 | 16606 | |
5213506e | 16607 | |
5213506e | 16608 | |
df65f093 | 16609 | |
df65f093 | 16610 | |
df65f093 SK |
16611 | |
16612 | ||
df65f093 | 16613 | |
df65f093 | 16614 | |
df65f093 SK |
16615 | |
16616 | ||
df65f093 SK |
16617 | |
16618 | ||
41724e6a | 16619 | |
2cbcdeba | 16620 | |
3969c39f | 16621 | |
1fb2002d FXC |
16622 | |
16623 | ||
32aa3bff | 16624 | |
f77b6ca3 | 16625 | |
f77b6ca3 | 16626 | |
f77b6ca3 | 16627 | |
f77b6ca3 | 16628 | |
f77b6ca3 | 16629 | |
f77b6ca3 | 16630 | |
fa86f4f9 TB |
16631 | |
16632 | ||
9cbecd06 JB |
16633 | |
16634 | ||
edaaef60 JB |
16635 | |
16636 | ||
f77b6ca3 | 16637 | |
f77b6ca3 | 16638 | |
6de9cd9a | 16639 | |
c13e029b | 16640 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |
6de9cd9a | 16641 | |
c13e029b PB |
16642 | acx_cv_header_stdint=stddef.h |
16643 | acx_cv_header_stdint_kind="(already complete)" | |
16644 | for i in stdint.h $inttype_headers; do | |
16645 | unset ac_cv_type_uintptr_t | |
16646 | unset ac_cv_type_uintmax_t | |
16647 | unset ac_cv_type_int_least32_t | |
16648 | unset ac_cv_type_int_fast32_t | |
16649 | unset ac_cv_type_uint64_t | |
16650 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
16651 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
16652 | #include <$i> | |
16653 | " | |
22e05272 | 16654 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
c13e029b | 16655 | acx_cv_header_stdint=$i |
5213506e | 16656 | else |
c13e029b | 16657 | continue |
5213506e | 16658 | fi |
6de9cd9a | 16659 | |
c13e029b PB |
16660 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16661 | #include <$i> | |
16662 | " | |
22e05272 | 16663 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
96b8a615 | 16664 | |
5213506e | 16665 | else |
c13e029b | 16666 | acx_cv_header_stdint_kind="(mostly complete)" |
5213506e | 16667 | fi |
96b8a615 | 16668 | |
c13e029b PB |
16669 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> |
16670 | #include <$i> | |
16671 | " | |
22e05272 | 16672 | if test "x$ac_cv_type_int_least32_t" = xyes; then : |
c13e029b | 16673 | |
f77b6ca3 | 16674 | else |
c13e029b | 16675 | acx_cv_header_stdint_kind="(mostly complete)" |
5213506e | 16676 | fi |
5213506e | 16677 | |
c13e029b PB |
16678 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> |
16679 | #include <$i> | |
16680 | " | |
22e05272 | 16681 | if test "x$ac_cv_type_int_fast32_t" = xyes; then : |
f77b6ca3 | 16682 | |
c13e029b PB |
16683 | else |
16684 | acx_cv_header_stdint_kind="(mostly complete)" | |
16685 | fi | |
d72a3ac1 | 16686 | |
c13e029b PB |
16687 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16688 | #include <$i> | |
16689 | " | |
22e05272 | 16690 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
d72a3ac1 | 16691 | |
5213506e | 16692 | else |
c13e029b PB |
16693 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
16694 | fi | |
f77b6ca3 | 16695 | |
c13e029b PB |
16696 | break |
16697 | done | |
16698 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16699 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
16700 | for i in stdint.h $inttype_headers; do | |
16701 | unset ac_cv_type_uintptr_t | |
16702 | unset ac_cv_type_uint32_t | |
16703 | unset ac_cv_type_uint64_t | |
16704 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
16705 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
16706 | #include <$i> | |
16707 | " | |
22e05272 | 16708 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
c13e029b PB |
16709 | acx_cv_header_stdint=$i |
16710 | else | |
16711 | continue | |
5213506e | 16712 | fi |
f77b6ca3 | 16713 | |
c13e029b PB |
16714 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16715 | #include <$i> | |
16716 | " | |
22e05272 | 16717 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
8845001b | 16718 | |
c13e029b | 16719 | fi |
185d7d97 | 16720 | |
c13e029b PB |
16721 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16722 | #include <$i> | |
16723 | " | |
22e05272 | 16724 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
185d7d97 | 16725 | |
c13e029b | 16726 | fi |
35059811 | 16727 | |
c13e029b PB |
16728 | break |
16729 | done | |
16730 | fi | |
16731 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16732 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
16733 | for i in sys/types.h $inttype_headers; do | |
16734 | unset ac_cv_type_u_int32_t | |
16735 | unset ac_cv_type_u_int64_t | |
16736 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
16737 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
16738 | #include <$i> | |
16739 | " | |
22e05272 | 16740 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
c13e029b | 16741 | acx_cv_header_stdint=$i |
d72a3ac1 | 16742 | else |
c13e029b PB |
16743 | continue |
16744 | fi | |
a119fc1c | 16745 | |
c13e029b PB |
16746 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> |
16747 | #include <$i> | |
16748 | " | |
22e05272 | 16749 | if test "x$ac_cv_type_u_int64_t" = xyes; then : |
a119fc1c | 16750 | |
c13e029b | 16751 | fi |
a119fc1c | 16752 | |
c13e029b PB |
16753 | break |
16754 | done | |
a119fc1c | 16755 | fi |
c13e029b PB |
16756 | if test "$acx_cv_header_stdint" = stddef.h; then |
16757 | acx_cv_header_stdint_kind="(using manual detection)" | |
5213506e | 16758 | fi |
a119fc1c | 16759 | |
c13e029b PB |
16760 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
16761 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
16762 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
16763 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
16764 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
a119fc1c | 16765 | |
c13e029b | 16766 | # ----------------- Summarize what we found so far |
5213506e | 16767 | |
c13e029b PB |
16768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 |
16769 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
a119fc1c | 16770 | |
c13e029b PB |
16771 | case `$as_basename -- gstdint.h || |
16772 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
16773 | Xgstdint.h : 'X\(//\)$' \| \ | |
16774 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
16775 | $as_echo X/gstdint.h | | |
16776 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16777 | s//\1/ | |
16778 | q | |
16779 | } | |
16780 | /^X\/\(\/\/\)$/{ | |
16781 | s//\1/ | |
16782 | q | |
16783 | } | |
16784 | /^X\/\(\/\).*/{ | |
16785 | s//\1/ | |
16786 | q | |
16787 | } | |
16788 | s/.*/./; q'` in | |
16789 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16790 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16791 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16792 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16793 | *) ;; | |
16794 | esac | |
a119fc1c | 16795 | |
c13e029b PB |
16796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
16797 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
a63a0959 | 16798 | |
c13e029b | 16799 | # ----------------- done included file, check C basic types -------- |
868d75db | 16800 | |
c13e029b PB |
16801 | # Lacking an uintptr_t? Test size of void * |
16802 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
16803 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
16804 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16805 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16806 | # This bug is HP SR number 8606223364. | |
16807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
16808 | $as_echo_n "checking size of void *... " >&6; } | |
22e05272 | 16809 | if ${ac_cv_sizeof_void_p+:} false; then : |
c13e029b PB |
16810 | $as_echo_n "(cached) " >&6 |
16811 | else | |
16812 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
868d75db | 16813 | |
c13e029b PB |
16814 | else |
16815 | if test "$ac_cv_type_void_p" = yes; then | |
16816 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16817 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16818 | as_fn_error 77 "cannot compute sizeof (void *) |
16819 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16820 | else |
16821 | ac_cv_sizeof_void_p=0 | |
16822 | fi | |
16823 | fi | |
d72a3ac1 | 16824 | |
c13e029b PB |
16825 | fi |
16826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
16827 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
d72a3ac1 | 16828 | |
868d75db FXC |
16829 | |
16830 | ||
d72a3ac1 | 16831 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16832 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
d72a3ac1 | 16833 | _ACEOF |
d72a3ac1 | 16834 | |
c13e029b PB |
16835 | ;; |
16836 | esac | |
d72a3ac1 | 16837 | |
c13e029b PB |
16838 | # Lacking an uint64_t? Test size of long |
16839 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
16840 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
16841 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16842 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16843 | # This bug is HP SR number 8606223364. | |
16844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
16845 | $as_echo_n "checking size of long... " >&6; } | |
22e05272 | 16846 | if ${ac_cv_sizeof_long+:} false; then : |
5213506e RW |
16847 | $as_echo_n "(cached) " >&6 |
16848 | else | |
c13e029b | 16849 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
d72a3ac1 | 16850 | |
7f483eec | 16851 | else |
c13e029b PB |
16852 | if test "$ac_cv_type_long" = yes; then |
16853 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16854 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16855 | as_fn_error 77 "cannot compute sizeof (long) |
16856 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16857 | else |
16858 | ac_cv_sizeof_long=0 | |
16859 | fi | |
5213506e | 16860 | fi |
7f483eec | 16861 | |
c13e029b PB |
16862 | fi |
16863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
16864 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
d72a3ac1 | 16865 | |
7f483eec | 16866 | |
d72a3ac1 PB |
16867 | |
16868 | cat >>confdefs.h <<_ACEOF | |
c13e029b | 16869 | #define SIZEOF_LONG $ac_cv_sizeof_long |
d72a3ac1 | 16870 | _ACEOF |
7f483eec | 16871 | |
c13e029b PB |
16872 | ;; |
16873 | esac | |
29e86cb0 | 16874 | |
c13e029b PB |
16875 | if test $acx_cv_header_stdint = stddef.h; then |
16876 | # Lacking a good header? Test size of everything and deduce all types. | |
16877 | # The cast to long int works around a bug in the HP C Compiler | |
16878 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16879 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16880 | # This bug is HP SR number 8606223364. | |
16881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
16882 | $as_echo_n "checking size of int... " >&6; } | |
22e05272 | 16883 | if ${ac_cv_sizeof_int+:} false; then : |
c13e029b PB |
16884 | $as_echo_n "(cached) " >&6 |
16885 | else | |
16886 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
6422c112 | 16887 | |
c13e029b PB |
16888 | else |
16889 | if test "$ac_cv_type_int" = yes; then | |
16890 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16891 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16892 | as_fn_error 77 "cannot compute sizeof (int) |
16893 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16894 | else |
16895 | ac_cv_sizeof_int=0 | |
16896 | fi | |
16897 | fi | |
d8163f5c | 16898 | |
c13e029b PB |
16899 | fi |
16900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
16901 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
2515e5a7 FXC |
16902 | |
16903 | ||
868d75db | 16904 | |
d72a3ac1 | 16905 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16906 | #define SIZEOF_INT $ac_cv_sizeof_int |
d72a3ac1 PB |
16907 | _ACEOF |
16908 | ||
d72a3ac1 | 16909 | |
c13e029b PB |
16910 | # The cast to long int works around a bug in the HP C Compiler |
16911 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16912 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16913 | # This bug is HP SR number 8606223364. | |
16914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
16915 | $as_echo_n "checking size of short... " >&6; } | |
22e05272 | 16916 | if ${ac_cv_sizeof_short+:} false; then : |
c13e029b PB |
16917 | $as_echo_n "(cached) " >&6 |
16918 | else | |
16919 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
d72a3ac1 | 16920 | |
c13e029b PB |
16921 | else |
16922 | if test "$ac_cv_type_short" = yes; then | |
16923 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16924 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16925 | as_fn_error 77 "cannot compute sizeof (short) |
16926 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16927 | else |
16928 | ac_cv_sizeof_short=0 | |
16929 | fi | |
16930 | fi | |
d72a3ac1 | 16931 | |
c13e029b PB |
16932 | fi |
16933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
16934 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
d72a3ac1 PB |
16935 | |
16936 | ||
16937 | ||
c13e029b PB |
16938 | cat >>confdefs.h <<_ACEOF |
16939 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16940 | _ACEOF | |
d72a3ac1 PB |
16941 | |
16942 | ||
c13e029b PB |
16943 | # The cast to long int works around a bug in the HP C Compiler |
16944 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16945 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16946 | # This bug is HP SR number 8606223364. | |
16947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
16948 | $as_echo_n "checking size of char... " >&6; } | |
22e05272 | 16949 | if ${ac_cv_sizeof_char+:} false; then : |
c13e029b PB |
16950 | $as_echo_n "(cached) " >&6 |
16951 | else | |
16952 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
d72a3ac1 | 16953 | |
c13e029b PB |
16954 | else |
16955 | if test "$ac_cv_type_char" = yes; then | |
16956 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16957 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16958 | as_fn_error 77 "cannot compute sizeof (char) |
16959 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16960 | else |
16961 | ac_cv_sizeof_char=0 | |
16962 | fi | |
16963 | fi | |
d72a3ac1 | 16964 | |
c13e029b PB |
16965 | fi |
16966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
16967 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
d72a3ac1 PB |
16968 | |
16969 | ||
d72a3ac1 | 16970 | |
5213506e | 16971 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16972 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
868d75db | 16973 | _ACEOF |
868d75db | 16974 | |
868d75db | 16975 | |
2017c370 | 16976 | |
c13e029b PB |
16977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 |
16978 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
16979 | case "$ac_cv_sizeof_char" in | |
16980 | 1) acx_cv_type_int8_t=char ;; | |
22e05272 | 16981 | *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16982 | esac |
16983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
16984 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
16985 | ||
16986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
16987 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
16988 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
16989 | 2:*) acx_cv_type_int16_t=int ;; | |
16990 | *:2) acx_cv_type_int16_t=short ;; | |
22e05272 | 16991 | *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16992 | esac |
16993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
16994 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
16995 | ||
16996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
16997 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
16998 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
16999 | 4:*) acx_cv_type_int32_t=int ;; | |
17000 | *:4) acx_cv_type_int32_t=long ;; | |
22e05272 | 17001 | *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
17002 | esac |
17003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
17004 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
5213506e RW |
17005 | fi |
17006 | ||
c13e029b | 17007 | # These tests are here to make the output prettier |
d72a3ac1 | 17008 | |
c13e029b PB |
17009 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then |
17010 | case "$ac_cv_sizeof_long" in | |
17011 | 8) acx_cv_type_int64_t=long ;; | |
17012 | esac | |
17013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
17014 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
17015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
17016 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
17017 | fi | |
17018 | ||
17019 | # Now we can use the above types | |
17020 | ||
17021 | if test "$ac_cv_type_uintptr_t" != yes; then | |
17022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
17023 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
17024 | case $ac_cv_sizeof_void_p in | |
17025 | 2) acx_cv_type_intptr_t=int16_t ;; | |
17026 | 4) acx_cv_type_intptr_t=int32_t ;; | |
17027 | 8) acx_cv_type_intptr_t=int64_t ;; | |
22e05272 | 17028 | *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
c13e029b PB |
17029 | esac |
17030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
17031 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
17032 | fi | |
d72a3ac1 | 17033 | |
c13e029b | 17034 | # ----------------- done all checks, emit header ------------- |
5213506e | 17035 | ac_config_commands="$ac_config_commands gstdint.h" |
2017c370 | 17036 | |
2017c370 | 17037 | |
5213506e RW |
17038 | |
17039 | ||
17040 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
22e05272 | 17041 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
5213506e RW |
17042 | |
17043 | cat >>confdefs.h <<_ACEOF | |
17044 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
2017c370 | 17045 | _ACEOF |
2017c370 | 17046 | |
5213506e | 17047 | |
2017c370 | 17048 | fi |
5213506e | 17049 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
22e05272 | 17050 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
5213506e RW |
17051 | |
17052 | cat >>confdefs.h <<_ACEOF | |
17053 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
2017c370 JB |
17054 | _ACEOF |
17055 | ||
5213506e | 17056 | |
2017c370 | 17057 | fi |
5213506e | 17058 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
22e05272 | 17059 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
2017c370 | 17060 | |
5213506e RW |
17061 | cat >>confdefs.h <<_ACEOF |
17062 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
17063 | _ACEOF | |
868d75db FXC |
17064 | |
17065 | ||
f02d008e | 17066 | fi |
5213506e RW |
17067 | |
17068 | ||
bd459d0b JG |
17069 | case "${host}--x${with_newlib}" in |
17070 | mips*--xyes) | |
17071 | hardwire_newlib=1;; | |
d3ca2257 NS |
17072 | nvptx*--xyes) |
17073 | hardwire_newlib=1;; | |
bd459d0b JG |
17074 | esac |
17075 | ||
5213506e | 17076 | # Check for library functions. |
bd459d0b | 17077 | if test "${hardwire_newlib:-0}" -eq 1; then |
b4005c71 SE |
17078 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS |
17079 | # may not work correctly, because the compiler may not be able to | |
17080 | # link executables. | |
17081 | ||
17082 | $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h | |
17083 | ||
17084 | ||
17085 | $as_echo "#define HAVE_STRTOF 1" >>confdefs.h | |
17086 | ||
17087 | ||
b4005c71 SE |
17088 | $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h |
17089 | ||
17090 | ||
b4005c71 SE |
17091 | $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h |
17092 | ||
17093 | ||
17094 | $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h | |
17095 | ||
17096 | ||
17097 | $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h | |
17098 | ||
cb83df66 | 17099 | |
ebfedee6 HPN |
17100 | $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h |
17101 | ||
17102 | ||
17103 | $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h | |
17104 | ||
17105 | ||
cb83df66 SE |
17106 | # At some point, we should differentiate between architectures |
17107 | # like x86, which have long double versions, and alpha/powerpc/etc., | |
17108 | # which don't. For the time being, punt. | |
17109 | if test x"long_double_math_on_this_cpu" = x"yes"; then | |
17110 | ||
17111 | $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h | |
17112 | ||
17113 | fi | |
b4005c71 | 17114 | else |
f77b6ca3 | 17115 | |
f77b6ca3 | 17116 | |
74544378 JB |
17117 | |
17118 | for ac_func in $ac_func_list | |
5213506e RW |
17119 | do : |
17120 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
17121 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 17122 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
5213506e RW |
17123 | cat >>confdefs.h <<_ACEOF |
17124 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17125 | _ACEOF | |
f77b6ca3 | 17126 | |
5213506e RW |
17127 | fi |
17128 | done | |
f77b6ca3 | 17129 | |
f77b6ca3 | 17130 | |
5213506e | 17131 | |
96b8a615 | 17132 | |
5213506e | 17133 | |
5213506e | 17134 | |
5213506e | 17135 | |
6de9cd9a | 17136 | |
6de9cd9a | 17137 | |
b6e7a3d1 | 17138 | |
b6e7a3d1 | 17139 | |
6de9cd9a | 17140 | |
4c0c6b9f | 17141 | |
4c0c6b9f | 17142 | |
4c0c6b9f | 17143 | |
4c0c6b9f | 17144 | |
4c0c6b9f | 17145 | |
4c0c6b9f | 17146 | |
4c0c6b9f | 17147 | |
4c0c6b9f | 17148 | |
868d75db | 17149 | |
868d75db | 17150 | |
868d75db | 17151 | |
868d75db | 17152 | |
4c0c6b9f | 17153 | |
4c0c6b9f | 17154 | |
4c0c6b9f | 17155 | |
4c0c6b9f | 17156 | |
6422c112 | 17157 | |
6422c112 | 17158 | |
6422c112 | 17159 | |
74544378 JB |
17160 | |
17161 | ||
17162 | ||
17163 | ||
17164 | ||
17165 | ||
17166 | ||
17167 | ||
17168 | ||
17169 | ||
17170 | ||
17171 | ||
17172 | ||
17173 | ||
17174 | ||
17175 | ||
17176 | ||
17177 | ||
17178 | ||
17179 | ||
17180 | ||
17181 | ||
17182 | ||
17183 | ||
17184 | ||
17185 | ||
17186 | ||
17187 | ||
17188 | ||
17189 | ||
17190 | ||
17191 | ||
17192 | ||
17193 | ||
17194 | ||
17195 | ||
17196 | ||
17197 | ||
17198 | ||
17199 | ||
17200 | ||
17201 | ||
17202 | ||
17203 | ||
17204 | ||
17205 | ||
17206 | ||
17207 | ||
17208 | ||
17209 | ||
17210 | ||
17211 | ||
17212 | ||
17213 | ||
17214 | ||
17215 | ||
68ee9c08 | 17216 | |
227e441f | 17217 | |
9cbecd06 JB |
17218 | |
17219 | ||
4269f19c JB |
17220 | |
17221 | ||
b5b58343 UW |
17222 | |
17223 | ||
70480968 JB |
17224 | |
17225 | ||
d66d6d15 JB |
17226 | |
17227 | ||
edaaef60 JB |
17228 | |
17229 | ||
ef536b41 JB |
17230 | |
17231 | ||
17232 | ||
17233 | ||
133d0d42 JJ |
17234 | |
17235 | ||
17236 | ||
17237 | ||
f8886038 JB |
17238 | |
17239 | ||
227e441f | 17240 | |
8ecd1c0d TB |
17241 | |
17242 | ||
b4005c71 | 17243 | fi |
74544378 | 17244 | |
4179e59a TB |
17245 | # Check strerror_r, cannot be above as versions with two and three arguments exist |
17246 | ||
17247 | ac_save_CFLAGS="$CFLAGS" | |
17248 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
17249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17250 | /* end confdefs.h. */ | |
17251 | #define _GNU_SOURCE 1 | |
17252 | #include <string.h> | |
17253 | #include <locale.h> | |
17254 | int | |
17255 | main () | |
17256 | { | |
17257 | char s[128]; strerror_r(5, s, 128); | |
17258 | ; | |
17259 | return 0; | |
17260 | } | |
17261 | _ACEOF | |
17262 | if ac_fn_c_try_compile "$LINENO"; then : | |
17263 | ||
17264 | $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h | |
17265 | ||
17266 | fi | |
17267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17268 | CFLAGS="$ac_save_CFLAGS" | |
17269 | ||
17270 | ac_save_CFLAGS="$CFLAGS" | |
17271 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
17272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17273 | /* end confdefs.h. */ | |
17274 | #define _GNU_SOURCE 1 | |
17275 | #include <string.h> | |
17276 | #include <locale.h> | |
17277 | int | |
17278 | main () | |
17279 | { | |
17280 | char s[128]; strerror_r(5, s); | |
17281 | ; | |
17282 | return 0; | |
17283 | } | |
17284 | _ACEOF | |
17285 | if ac_fn_c_try_compile "$LINENO"; then : | |
17286 | ||
17287 | $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h | |
17288 | ||
17289 | fi | |
17290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17291 | CFLAGS="$ac_save_CFLAGS" | |
6422c112 | 17292 | |
4c0c6b9f | 17293 | |
453310d8 | 17294 | # Check for C99 (and other IEEE) math functions |
db9f46a9 TG |
17295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 |
17296 | $as_echo_n "checking for sin in -lm... " >&6; } | |
22e05272 | 17297 | if ${ac_cv_lib_m_sin+:} false; then : |
5213506e | 17298 | $as_echo_n "(cached) " >&6 |
453310d8 RS |
17299 | else |
17300 | ac_check_lib_save_LIBS=$LIBS | |
17301 | LIBS="-lm $LIBS" | |
f02d008e | 17302 | if test x$gcc_no_link = xyes; then |
22e05272 | 17303 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17304 | fi |
5213506e | 17305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17306 | /* end confdefs.h. */ |
17307 | ||
5213506e RW |
17308 | /* Override any GCC internal prototype to avoid an error. |
17309 | Use char because int might match the return type of a GCC | |
17310 | builtin and then its argument prototype would still apply. */ | |
453310d8 RS |
17311 | #ifdef __cplusplus |
17312 | extern "C" | |
17313 | #endif | |
db9f46a9 | 17314 | char sin (); |
453310d8 RS |
17315 | int |
17316 | main () | |
17317 | { | |
db9f46a9 | 17318 | return sin (); |
453310d8 RS |
17319 | ; |
17320 | return 0; | |
17321 | } | |
17322 | _ACEOF | |
5213506e | 17323 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17324 | ac_cv_lib_m_sin=yes |
453310d8 | 17325 | else |
db9f46a9 | 17326 | ac_cv_lib_m_sin=no |
453310d8 | 17327 | fi |
5213506e RW |
17328 | rm -f core conftest.err conftest.$ac_objext \ |
17329 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 RS |
17330 | LIBS=$ac_check_lib_save_LIBS |
17331 | fi | |
db9f46a9 TG |
17332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 |
17333 | $as_echo "$ac_cv_lib_m_sin" >&6; } | |
22e05272 | 17334 | if test "x$ac_cv_lib_m_sin" = xyes; then : |
db9f46a9 TG |
17335 | cat >>confdefs.h <<_ACEOF |
17336 | #define HAVE_LIBM 1 | |
17337 | _ACEOF | |
453310d8 | 17338 | |
db9f46a9 | 17339 | LIBS="-lm $LIBS" |
453310d8 RS |
17340 | |
17341 | fi | |
17342 | ||
db9f46a9 TG |
17343 | |
17344 | ||
17345 | ||
17346 | ||
17347 | ||
17348 | ||
17349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5 | |
17350 | $as_echo_n "checking for acosf... " >&6; } | |
22e05272 | 17351 | if ${gcc_cv_math_func_acosf+:} false; then : |
5213506e | 17352 | $as_echo_n "(cached) " >&6 |
f02d008e | 17353 | else |
db9f46a9 | 17354 | if test x$gcc_no_link = xyes; then |
22e05272 | 17355 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17356 | fi |
5213506e | 17357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17358 | /* end confdefs.h. */ |
17359 | ||
db9f46a9 TG |
17360 | #ifdef HAVE_COMPLEX_H |
17361 | #include <complex.h> | |
17362 | #endif | |
17363 | #ifdef HAVE_MATH_H | |
17364 | #include <math.h> | |
f02d008e | 17365 | #endif |
db9f46a9 TG |
17366 | |
17367 | int (*ptr)() = (int (*)())acosf; | |
17368 | ||
f02d008e JD |
17369 | int |
17370 | main () | |
17371 | { | |
f02d008e JD |
17372 | return 0; |
17373 | } | |
db9f46a9 | 17374 | |
f02d008e | 17375 | _ACEOF |
5213506e | 17376 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17377 | gcc_cv_math_func_acosf=yes |
f02d008e | 17378 | else |
db9f46a9 | 17379 | gcc_cv_math_func_acosf=no |
f02d008e | 17380 | fi |
5213506e RW |
17381 | rm -f core conftest.err conftest.$ac_objext \ |
17382 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17383 | fi |
db9f46a9 TG |
17384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5 |
17385 | $as_echo "$gcc_cv_math_func_acosf" >&6; } | |
17386 | if test $gcc_cv_math_func_acosf = yes; then | |
f1cdfa01 | 17387 | |
f38a14ca TG |
17388 | cat >>confdefs.h <<_ACEOF |
17389 | #define HAVE_ACOSF 1 | |
17390 | _ACEOF | |
db9f46a9 TG |
17391 | |
17392 | fi | |
f02d008e | 17393 | |
f02d008e | 17394 | |
f02d008e | 17395 | |
db9f46a9 TG |
17396 | |
17397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5 | |
17398 | $as_echo_n "checking for acos... " >&6; } | |
22e05272 | 17399 | if ${gcc_cv_math_func_acos+:} false; then : |
5213506e | 17400 | $as_echo_n "(cached) " >&6 |
453310d8 | 17401 | else |
db9f46a9 | 17402 | if test x$gcc_no_link = xyes; then |
22e05272 | 17403 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17404 | fi |
5213506e | 17405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17406 | /* end confdefs.h. */ |
17407 | ||
db9f46a9 TG |
17408 | #ifdef HAVE_COMPLEX_H |
17409 | #include <complex.h> | |
453310d8 | 17410 | #endif |
db9f46a9 TG |
17411 | #ifdef HAVE_MATH_H |
17412 | #include <math.h> | |
17413 | #endif | |
17414 | ||
17415 | int (*ptr)() = (int (*)())acos; | |
17416 | ||
453310d8 RS |
17417 | int |
17418 | main () | |
17419 | { | |
453310d8 RS |
17420 | return 0; |
17421 | } | |
db9f46a9 | 17422 | |
453310d8 | 17423 | _ACEOF |
5213506e | 17424 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17425 | gcc_cv_math_func_acos=yes |
453310d8 | 17426 | else |
db9f46a9 | 17427 | gcc_cv_math_func_acos=no |
453310d8 | 17428 | fi |
5213506e RW |
17429 | rm -f core conftest.err conftest.$ac_objext \ |
17430 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17431 | fi |
db9f46a9 TG |
17432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5 |
17433 | $as_echo "$gcc_cv_math_func_acos" >&6; } | |
17434 | if test $gcc_cv_math_func_acos = yes; then | |
f1cdfa01 | 17435 | |
f38a14ca TG |
17436 | cat >>confdefs.h <<_ACEOF |
17437 | #define HAVE_ACOS 1 | |
17438 | _ACEOF | |
db9f46a9 TG |
17439 | |
17440 | fi | |
17441 | ||
453310d8 | 17442 | |
453310d8 | 17443 | |
453310d8 | 17444 | |
db9f46a9 TG |
17445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5 |
17446 | $as_echo_n "checking for acosl... " >&6; } | |
22e05272 | 17447 | if ${gcc_cv_math_func_acosl+:} false; then : |
5213506e | 17448 | $as_echo_n "(cached) " >&6 |
f02d008e | 17449 | else |
db9f46a9 | 17450 | if test x$gcc_no_link = xyes; then |
22e05272 | 17451 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17452 | fi |
5213506e | 17453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17454 | /* end confdefs.h. */ |
17455 | ||
db9f46a9 TG |
17456 | #ifdef HAVE_COMPLEX_H |
17457 | #include <complex.h> | |
17458 | #endif | |
17459 | #ifdef HAVE_MATH_H | |
17460 | #include <math.h> | |
f02d008e | 17461 | #endif |
db9f46a9 TG |
17462 | |
17463 | int (*ptr)() = (int (*)())acosl; | |
17464 | ||
f02d008e JD |
17465 | int |
17466 | main () | |
17467 | { | |
f02d008e JD |
17468 | return 0; |
17469 | } | |
db9f46a9 | 17470 | |
f02d008e | 17471 | _ACEOF |
5213506e | 17472 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17473 | gcc_cv_math_func_acosl=yes |
f02d008e | 17474 | else |
db9f46a9 | 17475 | gcc_cv_math_func_acosl=no |
f02d008e | 17476 | fi |
5213506e RW |
17477 | rm -f core conftest.err conftest.$ac_objext \ |
17478 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17479 | fi |
db9f46a9 TG |
17480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5 |
17481 | $as_echo "$gcc_cv_math_func_acosl" >&6; } | |
17482 | if test $gcc_cv_math_func_acosl = yes; then | |
f1cdfa01 | 17483 | |
f38a14ca TG |
17484 | cat >>confdefs.h <<_ACEOF |
17485 | #define HAVE_ACOSL 1 | |
17486 | _ACEOF | |
db9f46a9 TG |
17487 | |
17488 | fi | |
f02d008e | 17489 | |
f02d008e | 17490 | |
f02d008e | 17491 | |
db9f46a9 TG |
17492 | |
17493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5 | |
17494 | $as_echo_n "checking for acoshf... " >&6; } | |
22e05272 | 17495 | if ${gcc_cv_math_func_acoshf+:} false; then : |
5213506e | 17496 | $as_echo_n "(cached) " >&6 |
453310d8 | 17497 | else |
db9f46a9 | 17498 | if test x$gcc_no_link = xyes; then |
22e05272 | 17499 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17500 | fi |
5213506e | 17501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17502 | /* end confdefs.h. */ |
17503 | ||
db9f46a9 TG |
17504 | #ifdef HAVE_COMPLEX_H |
17505 | #include <complex.h> | |
453310d8 | 17506 | #endif |
db9f46a9 TG |
17507 | #ifdef HAVE_MATH_H |
17508 | #include <math.h> | |
17509 | #endif | |
17510 | ||
17511 | int (*ptr)() = (int (*)())acoshf; | |
17512 | ||
453310d8 RS |
17513 | int |
17514 | main () | |
17515 | { | |
453310d8 RS |
17516 | return 0; |
17517 | } | |
db9f46a9 | 17518 | |
453310d8 | 17519 | _ACEOF |
5213506e | 17520 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17521 | gcc_cv_math_func_acoshf=yes |
453310d8 | 17522 | else |
db9f46a9 | 17523 | gcc_cv_math_func_acoshf=no |
453310d8 | 17524 | fi |
5213506e RW |
17525 | rm -f core conftest.err conftest.$ac_objext \ |
17526 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17527 | fi |
db9f46a9 TG |
17528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5 |
17529 | $as_echo "$gcc_cv_math_func_acoshf" >&6; } | |
17530 | if test $gcc_cv_math_func_acoshf = yes; then | |
f1cdfa01 | 17531 | |
f38a14ca TG |
17532 | cat >>confdefs.h <<_ACEOF |
17533 | #define HAVE_ACOSHF 1 | |
17534 | _ACEOF | |
453310d8 | 17535 | |
db9f46a9 | 17536 | fi |
453310d8 | 17537 | |
453310d8 | 17538 | |
db9f46a9 TG |
17539 | |
17540 | ||
17541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5 | |
17542 | $as_echo_n "checking for acosh... " >&6; } | |
22e05272 | 17543 | if ${gcc_cv_math_func_acosh+:} false; then : |
5213506e | 17544 | $as_echo_n "(cached) " >&6 |
453310d8 | 17545 | else |
db9f46a9 | 17546 | if test x$gcc_no_link = xyes; then |
22e05272 | 17547 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17548 | fi |
5213506e | 17549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17550 | /* end confdefs.h. */ |
17551 | ||
db9f46a9 TG |
17552 | #ifdef HAVE_COMPLEX_H |
17553 | #include <complex.h> | |
17554 | #endif | |
17555 | #ifdef HAVE_MATH_H | |
17556 | #include <math.h> | |
453310d8 | 17557 | #endif |
db9f46a9 TG |
17558 | |
17559 | int (*ptr)() = (int (*)())acosh; | |
17560 | ||
453310d8 RS |
17561 | int |
17562 | main () | |
17563 | { | |
5213506e RW |
17564 | return 0; |
17565 | } | |
db9f46a9 | 17566 | |
5213506e RW |
17567 | _ACEOF |
17568 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 17569 | gcc_cv_math_func_acosh=yes |
453310d8 | 17570 | else |
db9f46a9 | 17571 | gcc_cv_math_func_acosh=no |
453310d8 | 17572 | fi |
5213506e RW |
17573 | rm -f core conftest.err conftest.$ac_objext \ |
17574 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17575 | fi |
db9f46a9 TG |
17576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5 |
17577 | $as_echo "$gcc_cv_math_func_acosh" >&6; } | |
17578 | if test $gcc_cv_math_func_acosh = yes; then | |
f1cdfa01 | 17579 | |
f38a14ca TG |
17580 | cat >>confdefs.h <<_ACEOF |
17581 | #define HAVE_ACOSH 1 | |
17582 | _ACEOF | |
db9f46a9 TG |
17583 | |
17584 | fi | |
453310d8 | 17585 | |
453310d8 | 17586 | |
453310d8 | 17587 | |
db9f46a9 TG |
17588 | |
17589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5 | |
17590 | $as_echo_n "checking for acoshl... " >&6; } | |
22e05272 | 17591 | if ${gcc_cv_math_func_acoshl+:} false; then : |
5213506e | 17592 | $as_echo_n "(cached) " >&6 |
f02d008e | 17593 | else |
db9f46a9 | 17594 | if test x$gcc_no_link = xyes; then |
22e05272 | 17595 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17596 | fi |
5213506e | 17597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17598 | /* end confdefs.h. */ |
17599 | ||
db9f46a9 TG |
17600 | #ifdef HAVE_COMPLEX_H |
17601 | #include <complex.h> | |
f02d008e | 17602 | #endif |
db9f46a9 TG |
17603 | #ifdef HAVE_MATH_H |
17604 | #include <math.h> | |
17605 | #endif | |
17606 | ||
17607 | int (*ptr)() = (int (*)())acoshl; | |
17608 | ||
f02d008e JD |
17609 | int |
17610 | main () | |
17611 | { | |
f02d008e JD |
17612 | return 0; |
17613 | } | |
db9f46a9 | 17614 | |
f02d008e | 17615 | _ACEOF |
5213506e | 17616 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17617 | gcc_cv_math_func_acoshl=yes |
f02d008e | 17618 | else |
db9f46a9 | 17619 | gcc_cv_math_func_acoshl=no |
f02d008e | 17620 | fi |
5213506e RW |
17621 | rm -f core conftest.err conftest.$ac_objext \ |
17622 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17623 | fi |
db9f46a9 TG |
17624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5 |
17625 | $as_echo "$gcc_cv_math_func_acoshl" >&6; } | |
17626 | if test $gcc_cv_math_func_acoshl = yes; then | |
f1cdfa01 | 17627 | |
f38a14ca TG |
17628 | cat >>confdefs.h <<_ACEOF |
17629 | #define HAVE_ACOSHL 1 | |
17630 | _ACEOF | |
db9f46a9 TG |
17631 | |
17632 | fi | |
17633 | ||
f02d008e | 17634 | |
f02d008e | 17635 | |
f02d008e | 17636 | |
db9f46a9 TG |
17637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5 |
17638 | $as_echo_n "checking for asinf... " >&6; } | |
22e05272 | 17639 | if ${gcc_cv_math_func_asinf+:} false; then : |
5213506e | 17640 | $as_echo_n "(cached) " >&6 |
453310d8 | 17641 | else |
db9f46a9 | 17642 | if test x$gcc_no_link = xyes; then |
22e05272 | 17643 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17644 | fi |
5213506e | 17645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17646 | /* end confdefs.h. */ |
17647 | ||
db9f46a9 TG |
17648 | #ifdef HAVE_COMPLEX_H |
17649 | #include <complex.h> | |
17650 | #endif | |
17651 | #ifdef HAVE_MATH_H | |
17652 | #include <math.h> | |
453310d8 | 17653 | #endif |
db9f46a9 TG |
17654 | |
17655 | int (*ptr)() = (int (*)())asinf; | |
17656 | ||
453310d8 RS |
17657 | int |
17658 | main () | |
17659 | { | |
453310d8 RS |
17660 | return 0; |
17661 | } | |
db9f46a9 | 17662 | |
453310d8 | 17663 | _ACEOF |
5213506e | 17664 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17665 | gcc_cv_math_func_asinf=yes |
453310d8 | 17666 | else |
db9f46a9 | 17667 | gcc_cv_math_func_asinf=no |
453310d8 | 17668 | fi |
5213506e RW |
17669 | rm -f core conftest.err conftest.$ac_objext \ |
17670 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17671 | fi |
db9f46a9 TG |
17672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5 |
17673 | $as_echo "$gcc_cv_math_func_asinf" >&6; } | |
17674 | if test $gcc_cv_math_func_asinf = yes; then | |
f1cdfa01 | 17675 | |
f38a14ca TG |
17676 | cat >>confdefs.h <<_ACEOF |
17677 | #define HAVE_ASINF 1 | |
17678 | _ACEOF | |
db9f46a9 TG |
17679 | |
17680 | fi | |
453310d8 | 17681 | |
453310d8 | 17682 | |
453310d8 | 17683 | |
db9f46a9 TG |
17684 | |
17685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5 | |
17686 | $as_echo_n "checking for asin... " >&6; } | |
22e05272 | 17687 | if ${gcc_cv_math_func_asin+:} false; then : |
5213506e | 17688 | $as_echo_n "(cached) " >&6 |
453310d8 | 17689 | else |
db9f46a9 | 17690 | if test x$gcc_no_link = xyes; then |
22e05272 | 17691 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17692 | fi |
5213506e | 17693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17694 | /* end confdefs.h. */ |
17695 | ||
db9f46a9 TG |
17696 | #ifdef HAVE_COMPLEX_H |
17697 | #include <complex.h> | |
453310d8 | 17698 | #endif |
db9f46a9 TG |
17699 | #ifdef HAVE_MATH_H |
17700 | #include <math.h> | |
17701 | #endif | |
17702 | ||
17703 | int (*ptr)() = (int (*)())asin; | |
17704 | ||
453310d8 RS |
17705 | int |
17706 | main () | |
17707 | { | |
453310d8 RS |
17708 | return 0; |
17709 | } | |
db9f46a9 | 17710 | |
453310d8 | 17711 | _ACEOF |
5213506e | 17712 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17713 | gcc_cv_math_func_asin=yes |
453310d8 | 17714 | else |
db9f46a9 | 17715 | gcc_cv_math_func_asin=no |
453310d8 | 17716 | fi |
5213506e RW |
17717 | rm -f core conftest.err conftest.$ac_objext \ |
17718 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17719 | fi |
db9f46a9 TG |
17720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5 |
17721 | $as_echo "$gcc_cv_math_func_asin" >&6; } | |
17722 | if test $gcc_cv_math_func_asin = yes; then | |
f1cdfa01 | 17723 | |
f38a14ca TG |
17724 | cat >>confdefs.h <<_ACEOF |
17725 | #define HAVE_ASIN 1 | |
17726 | _ACEOF | |
453310d8 | 17727 | |
db9f46a9 | 17728 | fi |
453310d8 | 17729 | |
453310d8 | 17730 | |
db9f46a9 TG |
17731 | |
17732 | ||
17733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5 | |
17734 | $as_echo_n "checking for asinl... " >&6; } | |
22e05272 | 17735 | if ${gcc_cv_math_func_asinl+:} false; then : |
5213506e | 17736 | $as_echo_n "(cached) " >&6 |
453310d8 | 17737 | else |
db9f46a9 | 17738 | if test x$gcc_no_link = xyes; then |
22e05272 | 17739 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17740 | fi |
5213506e | 17741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17742 | /* end confdefs.h. */ |
17743 | ||
db9f46a9 TG |
17744 | #ifdef HAVE_COMPLEX_H |
17745 | #include <complex.h> | |
17746 | #endif | |
17747 | #ifdef HAVE_MATH_H | |
17748 | #include <math.h> | |
453310d8 | 17749 | #endif |
db9f46a9 TG |
17750 | |
17751 | int (*ptr)() = (int (*)())asinl; | |
17752 | ||
453310d8 RS |
17753 | int |
17754 | main () | |
17755 | { | |
453310d8 RS |
17756 | return 0; |
17757 | } | |
db9f46a9 | 17758 | |
453310d8 | 17759 | _ACEOF |
5213506e | 17760 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17761 | gcc_cv_math_func_asinl=yes |
453310d8 | 17762 | else |
db9f46a9 | 17763 | gcc_cv_math_func_asinl=no |
453310d8 | 17764 | fi |
5213506e RW |
17765 | rm -f core conftest.err conftest.$ac_objext \ |
17766 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17767 | fi |
db9f46a9 TG |
17768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5 |
17769 | $as_echo "$gcc_cv_math_func_asinl" >&6; } | |
17770 | if test $gcc_cv_math_func_asinl = yes; then | |
f1cdfa01 | 17771 | |
f38a14ca TG |
17772 | cat >>confdefs.h <<_ACEOF |
17773 | #define HAVE_ASINL 1 | |
17774 | _ACEOF | |
db9f46a9 TG |
17775 | |
17776 | fi | |
453310d8 | 17777 | |
453310d8 | 17778 | |
453310d8 | 17779 | |
db9f46a9 TG |
17780 | |
17781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5 | |
17782 | $as_echo_n "checking for asinhf... " >&6; } | |
22e05272 | 17783 | if ${gcc_cv_math_func_asinhf+:} false; then : |
5213506e | 17784 | $as_echo_n "(cached) " >&6 |
453310d8 | 17785 | else |
db9f46a9 | 17786 | if test x$gcc_no_link = xyes; then |
22e05272 | 17787 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17788 | fi |
5213506e | 17789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17790 | /* end confdefs.h. */ |
17791 | ||
db9f46a9 TG |
17792 | #ifdef HAVE_COMPLEX_H |
17793 | #include <complex.h> | |
453310d8 | 17794 | #endif |
db9f46a9 TG |
17795 | #ifdef HAVE_MATH_H |
17796 | #include <math.h> | |
17797 | #endif | |
17798 | ||
17799 | int (*ptr)() = (int (*)())asinhf; | |
17800 | ||
453310d8 RS |
17801 | int |
17802 | main () | |
17803 | { | |
453310d8 RS |
17804 | return 0; |
17805 | } | |
db9f46a9 | 17806 | |
453310d8 | 17807 | _ACEOF |
5213506e | 17808 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17809 | gcc_cv_math_func_asinhf=yes |
453310d8 | 17810 | else |
db9f46a9 | 17811 | gcc_cv_math_func_asinhf=no |
453310d8 | 17812 | fi |
5213506e RW |
17813 | rm -f core conftest.err conftest.$ac_objext \ |
17814 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17815 | fi |
db9f46a9 TG |
17816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5 |
17817 | $as_echo "$gcc_cv_math_func_asinhf" >&6; } | |
17818 | if test $gcc_cv_math_func_asinhf = yes; then | |
f1cdfa01 | 17819 | |
f38a14ca TG |
17820 | cat >>confdefs.h <<_ACEOF |
17821 | #define HAVE_ASINHF 1 | |
17822 | _ACEOF | |
db9f46a9 TG |
17823 | |
17824 | fi | |
17825 | ||
453310d8 | 17826 | |
453310d8 | 17827 | |
453310d8 | 17828 | |
db9f46a9 TG |
17829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5 |
17830 | $as_echo_n "checking for asinh... " >&6; } | |
22e05272 | 17831 | if ${gcc_cv_math_func_asinh+:} false; then : |
5213506e | 17832 | $as_echo_n "(cached) " >&6 |
453310d8 | 17833 | else |
db9f46a9 | 17834 | if test x$gcc_no_link = xyes; then |
22e05272 | 17835 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17836 | fi |
5213506e | 17837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17838 | /* end confdefs.h. */ |
17839 | ||
db9f46a9 TG |
17840 | #ifdef HAVE_COMPLEX_H |
17841 | #include <complex.h> | |
17842 | #endif | |
17843 | #ifdef HAVE_MATH_H | |
17844 | #include <math.h> | |
453310d8 | 17845 | #endif |
db9f46a9 TG |
17846 | |
17847 | int (*ptr)() = (int (*)())asinh; | |
17848 | ||
453310d8 RS |
17849 | int |
17850 | main () | |
17851 | { | |
453310d8 RS |
17852 | return 0; |
17853 | } | |
db9f46a9 | 17854 | |
453310d8 | 17855 | _ACEOF |
5213506e | 17856 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17857 | gcc_cv_math_func_asinh=yes |
453310d8 | 17858 | else |
db9f46a9 | 17859 | gcc_cv_math_func_asinh=no |
453310d8 | 17860 | fi |
5213506e RW |
17861 | rm -f core conftest.err conftest.$ac_objext \ |
17862 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17863 | fi |
db9f46a9 TG |
17864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5 |
17865 | $as_echo "$gcc_cv_math_func_asinh" >&6; } | |
17866 | if test $gcc_cv_math_func_asinh = yes; then | |
f1cdfa01 | 17867 | |
f38a14ca TG |
17868 | cat >>confdefs.h <<_ACEOF |
17869 | #define HAVE_ASINH 1 | |
17870 | _ACEOF | |
db9f46a9 TG |
17871 | |
17872 | fi | |
453310d8 | 17873 | |
453310d8 | 17874 | |
453310d8 | 17875 | |
db9f46a9 TG |
17876 | |
17877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5 | |
17878 | $as_echo_n "checking for asinhl... " >&6; } | |
22e05272 | 17879 | if ${gcc_cv_math_func_asinhl+:} false; then : |
5213506e | 17880 | $as_echo_n "(cached) " >&6 |
6e4d9244 | 17881 | else |
db9f46a9 | 17882 | if test x$gcc_no_link = xyes; then |
22e05272 | 17883 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17884 | fi |
5213506e | 17885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6e4d9244 EB |
17886 | /* end confdefs.h. */ |
17887 | ||
db9f46a9 TG |
17888 | #ifdef HAVE_COMPLEX_H |
17889 | #include <complex.h> | |
6e4d9244 | 17890 | #endif |
db9f46a9 TG |
17891 | #ifdef HAVE_MATH_H |
17892 | #include <math.h> | |
17893 | #endif | |
17894 | ||
17895 | int (*ptr)() = (int (*)())asinhl; | |
17896 | ||
6e4d9244 EB |
17897 | int |
17898 | main () | |
17899 | { | |
6e4d9244 EB |
17900 | return 0; |
17901 | } | |
db9f46a9 | 17902 | |
6e4d9244 | 17903 | _ACEOF |
5213506e | 17904 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17905 | gcc_cv_math_func_asinhl=yes |
6e4d9244 | 17906 | else |
db9f46a9 | 17907 | gcc_cv_math_func_asinhl=no |
6e4d9244 | 17908 | fi |
5213506e RW |
17909 | rm -f core conftest.err conftest.$ac_objext \ |
17910 | conftest$ac_exeext conftest.$ac_ext | |
6e4d9244 | 17911 | fi |
db9f46a9 TG |
17912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5 |
17913 | $as_echo "$gcc_cv_math_func_asinhl" >&6; } | |
17914 | if test $gcc_cv_math_func_asinhl = yes; then | |
f1cdfa01 | 17915 | |
f38a14ca TG |
17916 | cat >>confdefs.h <<_ACEOF |
17917 | #define HAVE_ASINHL 1 | |
17918 | _ACEOF | |
6e4d9244 | 17919 | |
db9f46a9 | 17920 | fi |
6e4d9244 | 17921 | |
6e4d9244 | 17922 | |
db9f46a9 TG |
17923 | |
17924 | ||
17925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5 | |
17926 | $as_echo_n "checking for atan2f... " >&6; } | |
22e05272 | 17927 | if ${gcc_cv_math_func_atan2f+:} false; then : |
5213506e | 17928 | $as_echo_n "(cached) " >&6 |
453310d8 | 17929 | else |
db9f46a9 | 17930 | if test x$gcc_no_link = xyes; then |
22e05272 | 17931 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17932 | fi |
5213506e | 17933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17934 | /* end confdefs.h. */ |
17935 | ||
db9f46a9 TG |
17936 | #ifdef HAVE_COMPLEX_H |
17937 | #include <complex.h> | |
453310d8 | 17938 | #endif |
db9f46a9 TG |
17939 | #ifdef HAVE_MATH_H |
17940 | #include <math.h> | |
17941 | #endif | |
17942 | ||
17943 | int (*ptr)() = (int (*)())atan2f; | |
17944 | ||
17945 | int | |
453310d8 RS |
17946 | main () |
17947 | { | |
453310d8 RS |
17948 | return 0; |
17949 | } | |
db9f46a9 | 17950 | |
453310d8 | 17951 | _ACEOF |
5213506e | 17952 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17953 | gcc_cv_math_func_atan2f=yes |
453310d8 | 17954 | else |
db9f46a9 | 17955 | gcc_cv_math_func_atan2f=no |
453310d8 | 17956 | fi |
5213506e RW |
17957 | rm -f core conftest.err conftest.$ac_objext \ |
17958 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17959 | fi |
db9f46a9 TG |
17960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5 |
17961 | $as_echo "$gcc_cv_math_func_atan2f" >&6; } | |
17962 | if test $gcc_cv_math_func_atan2f = yes; then | |
f1cdfa01 | 17963 | |
f38a14ca TG |
17964 | cat >>confdefs.h <<_ACEOF |
17965 | #define HAVE_ATAN2F 1 | |
17966 | _ACEOF | |
db9f46a9 TG |
17967 | |
17968 | fi | |
453310d8 | 17969 | |
453310d8 | 17970 | |
453310d8 | 17971 | |
db9f46a9 TG |
17972 | |
17973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5 | |
17974 | $as_echo_n "checking for atan2... " >&6; } | |
22e05272 | 17975 | if ${gcc_cv_math_func_atan2+:} false; then : |
5213506e | 17976 | $as_echo_n "(cached) " >&6 |
453310d8 | 17977 | else |
db9f46a9 | 17978 | if test x$gcc_no_link = xyes; then |
22e05272 | 17979 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17980 | fi |
5213506e | 17981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17982 | /* end confdefs.h. */ |
17983 | ||
db9f46a9 TG |
17984 | #ifdef HAVE_COMPLEX_H |
17985 | #include <complex.h> | |
453310d8 | 17986 | #endif |
db9f46a9 TG |
17987 | #ifdef HAVE_MATH_H |
17988 | #include <math.h> | |
17989 | #endif | |
17990 | ||
17991 | int (*ptr)() = (int (*)())atan2; | |
17992 | ||
453310d8 RS |
17993 | int |
17994 | main () | |
17995 | { | |
453310d8 RS |
17996 | return 0; |
17997 | } | |
db9f46a9 | 17998 | |
453310d8 | 17999 | _ACEOF |
5213506e | 18000 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18001 | gcc_cv_math_func_atan2=yes |
453310d8 | 18002 | else |
db9f46a9 | 18003 | gcc_cv_math_func_atan2=no |
453310d8 | 18004 | fi |
5213506e RW |
18005 | rm -f core conftest.err conftest.$ac_objext \ |
18006 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18007 | fi |
db9f46a9 TG |
18008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5 |
18009 | $as_echo "$gcc_cv_math_func_atan2" >&6; } | |
18010 | if test $gcc_cv_math_func_atan2 = yes; then | |
f1cdfa01 | 18011 | |
f38a14ca TG |
18012 | cat >>confdefs.h <<_ACEOF |
18013 | #define HAVE_ATAN2 1 | |
18014 | _ACEOF | |
453310d8 | 18015 | |
db9f46a9 | 18016 | fi |
453310d8 | 18017 | |
453310d8 | 18018 | |
db9f46a9 TG |
18019 | |
18020 | ||
18021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5 | |
18022 | $as_echo_n "checking for atan2l... " >&6; } | |
22e05272 | 18023 | if ${gcc_cv_math_func_atan2l+:} false; then : |
5213506e | 18024 | $as_echo_n "(cached) " >&6 |
453310d8 | 18025 | else |
db9f46a9 | 18026 | if test x$gcc_no_link = xyes; then |
22e05272 | 18027 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18028 | fi |
5213506e | 18029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18030 | /* end confdefs.h. */ |
18031 | ||
db9f46a9 TG |
18032 | #ifdef HAVE_COMPLEX_H |
18033 | #include <complex.h> | |
18034 | #endif | |
18035 | #ifdef HAVE_MATH_H | |
18036 | #include <math.h> | |
453310d8 | 18037 | #endif |
db9f46a9 TG |
18038 | |
18039 | int (*ptr)() = (int (*)())atan2l; | |
18040 | ||
453310d8 RS |
18041 | int |
18042 | main () | |
18043 | { | |
453310d8 RS |
18044 | return 0; |
18045 | } | |
db9f46a9 | 18046 | |
453310d8 | 18047 | _ACEOF |
5213506e | 18048 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18049 | gcc_cv_math_func_atan2l=yes |
453310d8 | 18050 | else |
db9f46a9 | 18051 | gcc_cv_math_func_atan2l=no |
453310d8 | 18052 | fi |
5213506e RW |
18053 | rm -f core conftest.err conftest.$ac_objext \ |
18054 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18055 | fi |
db9f46a9 TG |
18056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5 |
18057 | $as_echo "$gcc_cv_math_func_atan2l" >&6; } | |
18058 | if test $gcc_cv_math_func_atan2l = yes; then | |
f1cdfa01 | 18059 | |
f38a14ca TG |
18060 | cat >>confdefs.h <<_ACEOF |
18061 | #define HAVE_ATAN2L 1 | |
18062 | _ACEOF | |
db9f46a9 TG |
18063 | |
18064 | fi | |
453310d8 | 18065 | |
453310d8 | 18066 | |
453310d8 | 18067 | |
db9f46a9 TG |
18068 | |
18069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5 | |
18070 | $as_echo_n "checking for atanf... " >&6; } | |
22e05272 | 18071 | if ${gcc_cv_math_func_atanf+:} false; then : |
5213506e | 18072 | $as_echo_n "(cached) " >&6 |
453310d8 | 18073 | else |
db9f46a9 | 18074 | if test x$gcc_no_link = xyes; then |
22e05272 | 18075 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18076 | fi |
5213506e | 18077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18078 | /* end confdefs.h. */ |
18079 | ||
db9f46a9 TG |
18080 | #ifdef HAVE_COMPLEX_H |
18081 | #include <complex.h> | |
453310d8 | 18082 | #endif |
db9f46a9 TG |
18083 | #ifdef HAVE_MATH_H |
18084 | #include <math.h> | |
18085 | #endif | |
18086 | ||
18087 | int (*ptr)() = (int (*)())atanf; | |
18088 | ||
453310d8 RS |
18089 | int |
18090 | main () | |
18091 | { | |
453310d8 RS |
18092 | return 0; |
18093 | } | |
db9f46a9 | 18094 | |
453310d8 | 18095 | _ACEOF |
5213506e | 18096 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18097 | gcc_cv_math_func_atanf=yes |
453310d8 | 18098 | else |
db9f46a9 | 18099 | gcc_cv_math_func_atanf=no |
453310d8 | 18100 | fi |
5213506e RW |
18101 | rm -f core conftest.err conftest.$ac_objext \ |
18102 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18103 | fi |
db9f46a9 TG |
18104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5 |
18105 | $as_echo "$gcc_cv_math_func_atanf" >&6; } | |
18106 | if test $gcc_cv_math_func_atanf = yes; then | |
f1cdfa01 | 18107 | |
f38a14ca TG |
18108 | cat >>confdefs.h <<_ACEOF |
18109 | #define HAVE_ATANF 1 | |
18110 | _ACEOF | |
db9f46a9 TG |
18111 | |
18112 | fi | |
18113 | ||
453310d8 | 18114 | |
453310d8 | 18115 | |
453310d8 | 18116 | |
db9f46a9 TG |
18117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5 |
18118 | $as_echo_n "checking for atan... " >&6; } | |
22e05272 | 18119 | if ${gcc_cv_math_func_atan+:} false; then : |
5213506e | 18120 | $as_echo_n "(cached) " >&6 |
453310d8 | 18121 | else |
db9f46a9 | 18122 | if test x$gcc_no_link = xyes; then |
22e05272 | 18123 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18124 | fi |
5213506e | 18125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18126 | /* end confdefs.h. */ |
18127 | ||
db9f46a9 TG |
18128 | #ifdef HAVE_COMPLEX_H |
18129 | #include <complex.h> | |
18130 | #endif | |
18131 | #ifdef HAVE_MATH_H | |
18132 | #include <math.h> | |
453310d8 | 18133 | #endif |
db9f46a9 TG |
18134 | |
18135 | int (*ptr)() = (int (*)())atan; | |
18136 | ||
453310d8 RS |
18137 | int |
18138 | main () | |
18139 | { | |
453310d8 RS |
18140 | return 0; |
18141 | } | |
db9f46a9 | 18142 | |
453310d8 | 18143 | _ACEOF |
5213506e | 18144 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18145 | gcc_cv_math_func_atan=yes |
453310d8 | 18146 | else |
db9f46a9 | 18147 | gcc_cv_math_func_atan=no |
453310d8 | 18148 | fi |
5213506e RW |
18149 | rm -f core conftest.err conftest.$ac_objext \ |
18150 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18151 | fi |
db9f46a9 TG |
18152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5 |
18153 | $as_echo "$gcc_cv_math_func_atan" >&6; } | |
18154 | if test $gcc_cv_math_func_atan = yes; then | |
f1cdfa01 | 18155 | |
f38a14ca TG |
18156 | cat >>confdefs.h <<_ACEOF |
18157 | #define HAVE_ATAN 1 | |
18158 | _ACEOF | |
db9f46a9 TG |
18159 | |
18160 | fi | |
453310d8 | 18161 | |
453310d8 | 18162 | |
453310d8 | 18163 | |
db9f46a9 TG |
18164 | |
18165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5 | |
18166 | $as_echo_n "checking for atanl... " >&6; } | |
22e05272 | 18167 | if ${gcc_cv_math_func_atanl+:} false; then : |
5213506e | 18168 | $as_echo_n "(cached) " >&6 |
32aa3bff | 18169 | else |
db9f46a9 | 18170 | if test x$gcc_no_link = xyes; then |
22e05272 | 18171 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18172 | fi |
5213506e | 18173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
32aa3bff FXC |
18174 | /* end confdefs.h. */ |
18175 | ||
db9f46a9 TG |
18176 | #ifdef HAVE_COMPLEX_H |
18177 | #include <complex.h> | |
32aa3bff | 18178 | #endif |
db9f46a9 TG |
18179 | #ifdef HAVE_MATH_H |
18180 | #include <math.h> | |
18181 | #endif | |
18182 | ||
18183 | int (*ptr)() = (int (*)())atanl; | |
18184 | ||
32aa3bff FXC |
18185 | int |
18186 | main () | |
18187 | { | |
32aa3bff FXC |
18188 | return 0; |
18189 | } | |
db9f46a9 | 18190 | |
32aa3bff | 18191 | _ACEOF |
5213506e | 18192 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18193 | gcc_cv_math_func_atanl=yes |
32aa3bff | 18194 | else |
db9f46a9 | 18195 | gcc_cv_math_func_atanl=no |
32aa3bff | 18196 | fi |
5213506e RW |
18197 | rm -f core conftest.err conftest.$ac_objext \ |
18198 | conftest$ac_exeext conftest.$ac_ext | |
32aa3bff | 18199 | fi |
db9f46a9 TG |
18200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5 |
18201 | $as_echo "$gcc_cv_math_func_atanl" >&6; } | |
18202 | if test $gcc_cv_math_func_atanl = yes; then | |
f1cdfa01 | 18203 | |
f38a14ca TG |
18204 | cat >>confdefs.h <<_ACEOF |
18205 | #define HAVE_ATANL 1 | |
18206 | _ACEOF | |
32aa3bff | 18207 | |
db9f46a9 | 18208 | fi |
32aa3bff | 18209 | |
32aa3bff | 18210 | |
db9f46a9 TG |
18211 | |
18212 | ||
18213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5 | |
18214 | $as_echo_n "checking for atanhf... " >&6; } | |
22e05272 | 18215 | if ${gcc_cv_math_func_atanhf+:} false; then : |
5213506e | 18216 | $as_echo_n "(cached) " >&6 |
453310d8 | 18217 | else |
db9f46a9 | 18218 | if test x$gcc_no_link = xyes; then |
22e05272 | 18219 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18220 | fi |
5213506e | 18221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18222 | /* end confdefs.h. */ |
18223 | ||
db9f46a9 TG |
18224 | #ifdef HAVE_COMPLEX_H |
18225 | #include <complex.h> | |
18226 | #endif | |
18227 | #ifdef HAVE_MATH_H | |
18228 | #include <math.h> | |
453310d8 | 18229 | #endif |
db9f46a9 TG |
18230 | |
18231 | int (*ptr)() = (int (*)())atanhf; | |
18232 | ||
453310d8 RS |
18233 | int |
18234 | main () | |
18235 | { | |
453310d8 RS |
18236 | return 0; |
18237 | } | |
db9f46a9 | 18238 | |
453310d8 | 18239 | _ACEOF |
5213506e | 18240 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18241 | gcc_cv_math_func_atanhf=yes |
453310d8 | 18242 | else |
db9f46a9 | 18243 | gcc_cv_math_func_atanhf=no |
453310d8 | 18244 | fi |
5213506e RW |
18245 | rm -f core conftest.err conftest.$ac_objext \ |
18246 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18247 | fi |
db9f46a9 TG |
18248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5 |
18249 | $as_echo "$gcc_cv_math_func_atanhf" >&6; } | |
18250 | if test $gcc_cv_math_func_atanhf = yes; then | |
f1cdfa01 | 18251 | |
f38a14ca TG |
18252 | cat >>confdefs.h <<_ACEOF |
18253 | #define HAVE_ATANHF 1 | |
18254 | _ACEOF | |
db9f46a9 TG |
18255 | |
18256 | fi | |
453310d8 | 18257 | |
453310d8 | 18258 | |
453310d8 | 18259 | |
db9f46a9 TG |
18260 | |
18261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5 | |
18262 | $as_echo_n "checking for atanh... " >&6; } | |
22e05272 | 18263 | if ${gcc_cv_math_func_atanh+:} false; then : |
5213506e | 18264 | $as_echo_n "(cached) " >&6 |
453310d8 | 18265 | else |
db9f46a9 | 18266 | if test x$gcc_no_link = xyes; then |
22e05272 | 18267 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18268 | fi |
5213506e | 18269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18270 | /* end confdefs.h. */ |
18271 | ||
db9f46a9 TG |
18272 | #ifdef HAVE_COMPLEX_H |
18273 | #include <complex.h> | |
453310d8 | 18274 | #endif |
db9f46a9 TG |
18275 | #ifdef HAVE_MATH_H |
18276 | #include <math.h> | |
18277 | #endif | |
18278 | ||
18279 | int (*ptr)() = (int (*)())atanh; | |
18280 | ||
453310d8 RS |
18281 | int |
18282 | main () | |
18283 | { | |
453310d8 RS |
18284 | return 0; |
18285 | } | |
db9f46a9 | 18286 | |
453310d8 | 18287 | _ACEOF |
5213506e | 18288 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18289 | gcc_cv_math_func_atanh=yes |
453310d8 | 18290 | else |
db9f46a9 | 18291 | gcc_cv_math_func_atanh=no |
453310d8 | 18292 | fi |
5213506e RW |
18293 | rm -f core conftest.err conftest.$ac_objext \ |
18294 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18295 | fi |
db9f46a9 TG |
18296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5 |
18297 | $as_echo "$gcc_cv_math_func_atanh" >&6; } | |
18298 | if test $gcc_cv_math_func_atanh = yes; then | |
f1cdfa01 | 18299 | |
f38a14ca TG |
18300 | cat >>confdefs.h <<_ACEOF |
18301 | #define HAVE_ATANH 1 | |
18302 | _ACEOF | |
db9f46a9 TG |
18303 | |
18304 | fi | |
18305 | ||
453310d8 | 18306 | |
453310d8 | 18307 | |
453310d8 | 18308 | |
db9f46a9 TG |
18309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5 |
18310 | $as_echo_n "checking for atanhl... " >&6; } | |
22e05272 | 18311 | if ${gcc_cv_math_func_atanhl+:} false; then : |
5213506e | 18312 | $as_echo_n "(cached) " >&6 |
bf4d99cf | 18313 | else |
db9f46a9 | 18314 | if test x$gcc_no_link = xyes; then |
22e05272 | 18315 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18316 | fi |
5213506e | 18317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bf4d99cf TS |
18318 | /* end confdefs.h. */ |
18319 | ||
db9f46a9 TG |
18320 | #ifdef HAVE_COMPLEX_H |
18321 | #include <complex.h> | |
18322 | #endif | |
18323 | #ifdef HAVE_MATH_H | |
18324 | #include <math.h> | |
bf4d99cf | 18325 | #endif |
db9f46a9 TG |
18326 | |
18327 | int (*ptr)() = (int (*)())atanhl; | |
18328 | ||
bf4d99cf TS |
18329 | int |
18330 | main () | |
18331 | { | |
bf4d99cf TS |
18332 | return 0; |
18333 | } | |
db9f46a9 | 18334 | |
bf4d99cf | 18335 | _ACEOF |
5213506e | 18336 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18337 | gcc_cv_math_func_atanhl=yes |
bf4d99cf | 18338 | else |
db9f46a9 | 18339 | gcc_cv_math_func_atanhl=no |
bf4d99cf | 18340 | fi |
5213506e RW |
18341 | rm -f core conftest.err conftest.$ac_objext \ |
18342 | conftest$ac_exeext conftest.$ac_ext | |
bf4d99cf | 18343 | fi |
db9f46a9 TG |
18344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5 |
18345 | $as_echo "$gcc_cv_math_func_atanhl" >&6; } | |
18346 | if test $gcc_cv_math_func_atanhl = yes; then | |
f1cdfa01 | 18347 | |
f38a14ca TG |
18348 | cat >>confdefs.h <<_ACEOF |
18349 | #define HAVE_ATANHL 1 | |
18350 | _ACEOF | |
db9f46a9 TG |
18351 | |
18352 | fi | |
bf4d99cf | 18353 | |
bf4d99cf | 18354 | |
bf4d99cf | 18355 | |
db9f46a9 TG |
18356 | |
18357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5 | |
18358 | $as_echo_n "checking for cargf... " >&6; } | |
22e05272 | 18359 | if ${gcc_cv_math_func_cargf+:} false; then : |
5213506e | 18360 | $as_echo_n "(cached) " >&6 |
a2a2059f | 18361 | else |
db9f46a9 | 18362 | if test x$gcc_no_link = xyes; then |
22e05272 | 18363 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18364 | fi |
5213506e | 18365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2a2059f BD |
18366 | /* end confdefs.h. */ |
18367 | ||
db9f46a9 TG |
18368 | #ifdef HAVE_COMPLEX_H |
18369 | #include <complex.h> | |
a2a2059f | 18370 | #endif |
db9f46a9 TG |
18371 | #ifdef HAVE_MATH_H |
18372 | #include <math.h> | |
18373 | #endif | |
18374 | ||
18375 | int (*ptr)() = (int (*)())cargf; | |
18376 | ||
453310d8 RS |
18377 | int |
18378 | main () | |
18379 | { | |
453310d8 RS |
18380 | return 0; |
18381 | } | |
db9f46a9 | 18382 | |
453310d8 | 18383 | _ACEOF |
5213506e | 18384 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18385 | gcc_cv_math_func_cargf=yes |
453310d8 | 18386 | else |
db9f46a9 | 18387 | gcc_cv_math_func_cargf=no |
453310d8 | 18388 | fi |
5213506e RW |
18389 | rm -f core conftest.err conftest.$ac_objext \ |
18390 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18391 | fi |
db9f46a9 TG |
18392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5 |
18393 | $as_echo "$gcc_cv_math_func_cargf" >&6; } | |
18394 | if test $gcc_cv_math_func_cargf = yes; then | |
f1cdfa01 | 18395 | |
f38a14ca TG |
18396 | cat >>confdefs.h <<_ACEOF |
18397 | #define HAVE_CARGF 1 | |
18398 | _ACEOF | |
453310d8 | 18399 | |
db9f46a9 | 18400 | fi |
453310d8 | 18401 | |
453310d8 | 18402 | |
db9f46a9 TG |
18403 | |
18404 | ||
18405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5 | |
18406 | $as_echo_n "checking for carg... " >&6; } | |
22e05272 | 18407 | if ${gcc_cv_math_func_carg+:} false; then : |
5213506e | 18408 | $as_echo_n "(cached) " >&6 |
453310d8 | 18409 | else |
db9f46a9 | 18410 | if test x$gcc_no_link = xyes; then |
22e05272 | 18411 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18412 | fi |
5213506e | 18413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18414 | /* end confdefs.h. */ |
18415 | ||
db9f46a9 TG |
18416 | #ifdef HAVE_COMPLEX_H |
18417 | #include <complex.h> | |
18418 | #endif | |
18419 | #ifdef HAVE_MATH_H | |
18420 | #include <math.h> | |
453310d8 | 18421 | #endif |
db9f46a9 TG |
18422 | |
18423 | int (*ptr)() = (int (*)())carg; | |
18424 | ||
a2a2059f BD |
18425 | int |
18426 | main () | |
18427 | { | |
a2a2059f BD |
18428 | return 0; |
18429 | } | |
db9f46a9 | 18430 | |
a2a2059f | 18431 | _ACEOF |
5213506e | 18432 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18433 | gcc_cv_math_func_carg=yes |
a2a2059f | 18434 | else |
db9f46a9 | 18435 | gcc_cv_math_func_carg=no |
a2a2059f | 18436 | fi |
5213506e RW |
18437 | rm -f core conftest.err conftest.$ac_objext \ |
18438 | conftest$ac_exeext conftest.$ac_ext | |
a2a2059f | 18439 | fi |
db9f46a9 TG |
18440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5 |
18441 | $as_echo "$gcc_cv_math_func_carg" >&6; } | |
18442 | if test $gcc_cv_math_func_carg = yes; then | |
f1cdfa01 | 18443 | |
f38a14ca TG |
18444 | cat >>confdefs.h <<_ACEOF |
18445 | #define HAVE_CARG 1 | |
18446 | _ACEOF | |
db9f46a9 TG |
18447 | |
18448 | fi | |
a2a2059f | 18449 | |
a2a2059f | 18450 | |
a2a2059f | 18451 | |
db9f46a9 TG |
18452 | |
18453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5 | |
18454 | $as_echo_n "checking for cargl... " >&6; } | |
22e05272 | 18455 | if ${gcc_cv_math_func_cargl+:} false; then : |
5213506e | 18456 | $as_echo_n "(cached) " >&6 |
a2a2059f | 18457 | else |
db9f46a9 | 18458 | if test x$gcc_no_link = xyes; then |
22e05272 | 18459 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18460 | fi |
5213506e | 18461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2a2059f BD |
18462 | /* end confdefs.h. */ |
18463 | ||
db9f46a9 TG |
18464 | #ifdef HAVE_COMPLEX_H |
18465 | #include <complex.h> | |
a2a2059f | 18466 | #endif |
db9f46a9 TG |
18467 | #ifdef HAVE_MATH_H |
18468 | #include <math.h> | |
18469 | #endif | |
18470 | ||
18471 | int (*ptr)() = (int (*)())cargl; | |
18472 | ||
a2a2059f BD |
18473 | int |
18474 | main () | |
18475 | { | |
a2a2059f BD |
18476 | return 0; |
18477 | } | |
db9f46a9 | 18478 | |
a2a2059f | 18479 | _ACEOF |
5213506e | 18480 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18481 | gcc_cv_math_func_cargl=yes |
a2a2059f | 18482 | else |
db9f46a9 | 18483 | gcc_cv_math_func_cargl=no |
a2a2059f | 18484 | fi |
5213506e RW |
18485 | rm -f core conftest.err conftest.$ac_objext \ |
18486 | conftest$ac_exeext conftest.$ac_ext | |
a2a2059f | 18487 | fi |
db9f46a9 TG |
18488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5 |
18489 | $as_echo "$gcc_cv_math_func_cargl" >&6; } | |
18490 | if test $gcc_cv_math_func_cargl = yes; then | |
f1cdfa01 | 18491 | |
f38a14ca TG |
18492 | cat >>confdefs.h <<_ACEOF |
18493 | #define HAVE_CARGL 1 | |
18494 | _ACEOF | |
db9f46a9 TG |
18495 | |
18496 | fi | |
18497 | ||
a2a2059f | 18498 | |
a2a2059f | 18499 | |
a2a2059f | 18500 | |
db9f46a9 TG |
18501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5 |
18502 | $as_echo_n "checking for ceilf... " >&6; } | |
22e05272 | 18503 | if ${gcc_cv_math_func_ceilf+:} false; then : |
5213506e | 18504 | $as_echo_n "(cached) " >&6 |
ae973d6a | 18505 | else |
db9f46a9 | 18506 | if test x$gcc_no_link = xyes; then |
22e05272 | 18507 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18508 | fi |
5213506e | 18509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ae973d6a FXC |
18510 | /* end confdefs.h. */ |
18511 | ||
db9f46a9 TG |
18512 | #ifdef HAVE_COMPLEX_H |
18513 | #include <complex.h> | |
18514 | #endif | |
18515 | #ifdef HAVE_MATH_H | |
18516 | #include <math.h> | |
ae973d6a | 18517 | #endif |
db9f46a9 TG |
18518 | |
18519 | int (*ptr)() = (int (*)())ceilf; | |
18520 | ||
ae973d6a FXC |
18521 | int |
18522 | main () | |
18523 | { | |
ae973d6a FXC |
18524 | return 0; |
18525 | } | |
db9f46a9 | 18526 | |
ae973d6a | 18527 | _ACEOF |
5213506e | 18528 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18529 | gcc_cv_math_func_ceilf=yes |
ae973d6a | 18530 | else |
db9f46a9 | 18531 | gcc_cv_math_func_ceilf=no |
ae973d6a | 18532 | fi |
5213506e RW |
18533 | rm -f core conftest.err conftest.$ac_objext \ |
18534 | conftest$ac_exeext conftest.$ac_ext | |
ae973d6a | 18535 | fi |
db9f46a9 TG |
18536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5 |
18537 | $as_echo "$gcc_cv_math_func_ceilf" >&6; } | |
18538 | if test $gcc_cv_math_func_ceilf = yes; then | |
f1cdfa01 | 18539 | |
f38a14ca TG |
18540 | cat >>confdefs.h <<_ACEOF |
18541 | #define HAVE_CEILF 1 | |
18542 | _ACEOF | |
db9f46a9 TG |
18543 | |
18544 | fi | |
ae973d6a | 18545 | |
ae973d6a | 18546 | |
ae973d6a | 18547 | |
db9f46a9 TG |
18548 | |
18549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5 | |
18550 | $as_echo_n "checking for ceil... " >&6; } | |
22e05272 | 18551 | if ${gcc_cv_math_func_ceil+:} false; then : |
5213506e | 18552 | $as_echo_n "(cached) " >&6 |
a9e7b9d3 | 18553 | else |
db9f46a9 | 18554 | if test x$gcc_no_link = xyes; then |
22e05272 | 18555 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18556 | fi |
5213506e | 18557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a9e7b9d3 PB |
18558 | /* end confdefs.h. */ |
18559 | ||
db9f46a9 TG |
18560 | #ifdef HAVE_COMPLEX_H |
18561 | #include <complex.h> | |
a9e7b9d3 | 18562 | #endif |
db9f46a9 TG |
18563 | #ifdef HAVE_MATH_H |
18564 | #include <math.h> | |
18565 | #endif | |
18566 | ||
18567 | int (*ptr)() = (int (*)())ceil; | |
18568 | ||
a9e7b9d3 PB |
18569 | int |
18570 | main () | |
18571 | { | |
a9e7b9d3 PB |
18572 | return 0; |
18573 | } | |
db9f46a9 | 18574 | |
a9e7b9d3 | 18575 | _ACEOF |
5213506e | 18576 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18577 | gcc_cv_math_func_ceil=yes |
a9e7b9d3 | 18578 | else |
db9f46a9 | 18579 | gcc_cv_math_func_ceil=no |
a9e7b9d3 | 18580 | fi |
5213506e RW |
18581 | rm -f core conftest.err conftest.$ac_objext \ |
18582 | conftest$ac_exeext conftest.$ac_ext | |
a9e7b9d3 | 18583 | fi |
db9f46a9 TG |
18584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5 |
18585 | $as_echo "$gcc_cv_math_func_ceil" >&6; } | |
18586 | if test $gcc_cv_math_func_ceil = yes; then | |
f1cdfa01 | 18587 | |
f38a14ca TG |
18588 | cat >>confdefs.h <<_ACEOF |
18589 | #define HAVE_CEIL 1 | |
18590 | _ACEOF | |
a9e7b9d3 | 18591 | |
db9f46a9 | 18592 | fi |
a9e7b9d3 | 18593 | |
a9e7b9d3 | 18594 | |
db9f46a9 TG |
18595 | |
18596 | ||
18597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5 | |
18598 | $as_echo_n "checking for ceill... " >&6; } | |
22e05272 | 18599 | if ${gcc_cv_math_func_ceill+:} false; then : |
5213506e | 18600 | $as_echo_n "(cached) " >&6 |
a9e7b9d3 | 18601 | else |
db9f46a9 | 18602 | if test x$gcc_no_link = xyes; then |
22e05272 | 18603 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18604 | fi |
5213506e | 18605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a9e7b9d3 PB |
18606 | /* end confdefs.h. */ |
18607 | ||
db9f46a9 TG |
18608 | #ifdef HAVE_COMPLEX_H |
18609 | #include <complex.h> | |
18610 | #endif | |
18611 | #ifdef HAVE_MATH_H | |
18612 | #include <math.h> | |
a9e7b9d3 | 18613 | #endif |
db9f46a9 TG |
18614 | |
18615 | int (*ptr)() = (int (*)())ceill; | |
18616 | ||
a9e7b9d3 PB |
18617 | int |
18618 | main () | |
18619 | { | |
a9e7b9d3 PB |
18620 | return 0; |
18621 | } | |
db9f46a9 | 18622 | |
a9e7b9d3 | 18623 | _ACEOF |
5213506e | 18624 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18625 | gcc_cv_math_func_ceill=yes |
a9e7b9d3 | 18626 | else |
db9f46a9 | 18627 | gcc_cv_math_func_ceill=no |
a9e7b9d3 | 18628 | fi |
5213506e RW |
18629 | rm -f core conftest.err conftest.$ac_objext \ |
18630 | conftest$ac_exeext conftest.$ac_ext | |
a9e7b9d3 | 18631 | fi |
db9f46a9 TG |
18632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5 |
18633 | $as_echo "$gcc_cv_math_func_ceill" >&6; } | |
18634 | if test $gcc_cv_math_func_ceill = yes; then | |
f1cdfa01 | 18635 | |
f38a14ca TG |
18636 | cat >>confdefs.h <<_ACEOF |
18637 | #define HAVE_CEILL 1 | |
18638 | _ACEOF | |
db9f46a9 TG |
18639 | |
18640 | fi | |
a9e7b9d3 | 18641 | |
453310d8 | 18642 | |
453310d8 | 18643 | |
db9f46a9 TG |
18644 | |
18645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5 | |
18646 | $as_echo_n "checking for copysignf... " >&6; } | |
22e05272 | 18647 | if ${gcc_cv_math_func_copysignf+:} false; then : |
5213506e | 18648 | $as_echo_n "(cached) " >&6 |
453310d8 | 18649 | else |
db9f46a9 | 18650 | if test x$gcc_no_link = xyes; then |
22e05272 | 18651 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18652 | fi |
5213506e | 18653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18654 | /* end confdefs.h. */ |
18655 | ||
db9f46a9 TG |
18656 | #ifdef HAVE_COMPLEX_H |
18657 | #include <complex.h> | |
453310d8 | 18658 | #endif |
db9f46a9 TG |
18659 | #ifdef HAVE_MATH_H |
18660 | #include <math.h> | |
18661 | #endif | |
18662 | ||
18663 | int (*ptr)() = (int (*)())copysignf; | |
18664 | ||
453310d8 RS |
18665 | int |
18666 | main () | |
18667 | { | |
453310d8 RS |
18668 | return 0; |
18669 | } | |
db9f46a9 | 18670 | |
453310d8 | 18671 | _ACEOF |
5213506e | 18672 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18673 | gcc_cv_math_func_copysignf=yes |
453310d8 | 18674 | else |
db9f46a9 | 18675 | gcc_cv_math_func_copysignf=no |
453310d8 | 18676 | fi |
5213506e RW |
18677 | rm -f core conftest.err conftest.$ac_objext \ |
18678 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18679 | fi |
db9f46a9 TG |
18680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5 |
18681 | $as_echo "$gcc_cv_math_func_copysignf" >&6; } | |
18682 | if test $gcc_cv_math_func_copysignf = yes; then | |
f1cdfa01 | 18683 | |
f38a14ca TG |
18684 | cat >>confdefs.h <<_ACEOF |
18685 | #define HAVE_COPYSIGNF 1 | |
18686 | _ACEOF | |
db9f46a9 TG |
18687 | |
18688 | fi | |
18689 | ||
453310d8 | 18690 | |
453310d8 | 18691 | |
453310d8 | 18692 | |
db9f46a9 TG |
18693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5 |
18694 | $as_echo_n "checking for copysign... " >&6; } | |
22e05272 | 18695 | if ${gcc_cv_math_func_copysign+:} false; then : |
5213506e | 18696 | $as_echo_n "(cached) " >&6 |
453310d8 | 18697 | else |
db9f46a9 | 18698 | if test x$gcc_no_link = xyes; then |
22e05272 | 18699 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18700 | fi |
5213506e | 18701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18702 | /* end confdefs.h. */ |
18703 | ||
db9f46a9 TG |
18704 | #ifdef HAVE_COMPLEX_H |
18705 | #include <complex.h> | |
18706 | #endif | |
18707 | #ifdef HAVE_MATH_H | |
18708 | #include <math.h> | |
453310d8 | 18709 | #endif |
db9f46a9 TG |
18710 | |
18711 | int (*ptr)() = (int (*)())copysign; | |
18712 | ||
453310d8 RS |
18713 | int |
18714 | main () | |
18715 | { | |
453310d8 RS |
18716 | return 0; |
18717 | } | |
db9f46a9 | 18718 | |
453310d8 | 18719 | _ACEOF |
5213506e | 18720 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18721 | gcc_cv_math_func_copysign=yes |
453310d8 | 18722 | else |
db9f46a9 | 18723 | gcc_cv_math_func_copysign=no |
453310d8 | 18724 | fi |
5213506e RW |
18725 | rm -f core conftest.err conftest.$ac_objext \ |
18726 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18727 | fi |
db9f46a9 TG |
18728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5 |
18729 | $as_echo "$gcc_cv_math_func_copysign" >&6; } | |
18730 | if test $gcc_cv_math_func_copysign = yes; then | |
f1cdfa01 | 18731 | |
f38a14ca TG |
18732 | cat >>confdefs.h <<_ACEOF |
18733 | #define HAVE_COPYSIGN 1 | |
18734 | _ACEOF | |
db9f46a9 TG |
18735 | |
18736 | fi | |
453310d8 | 18737 | |
453310d8 | 18738 | |
453310d8 | 18739 | |
db9f46a9 TG |
18740 | |
18741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5 | |
18742 | $as_echo_n "checking for copysignl... " >&6; } | |
22e05272 | 18743 | if ${gcc_cv_math_func_copysignl+:} false; then : |
5213506e | 18744 | $as_echo_n "(cached) " >&6 |
453310d8 | 18745 | else |
db9f46a9 | 18746 | if test x$gcc_no_link = xyes; then |
22e05272 | 18747 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18748 | fi |
5213506e | 18749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18750 | /* end confdefs.h. */ |
18751 | ||
db9f46a9 TG |
18752 | #ifdef HAVE_COMPLEX_H |
18753 | #include <complex.h> | |
453310d8 | 18754 | #endif |
db9f46a9 TG |
18755 | #ifdef HAVE_MATH_H |
18756 | #include <math.h> | |
18757 | #endif | |
18758 | ||
18759 | int (*ptr)() = (int (*)())copysignl; | |
18760 | ||
453310d8 RS |
18761 | int |
18762 | main () | |
18763 | { | |
5213506e RW |
18764 | return 0; |
18765 | } | |
db9f46a9 | 18766 | |
5213506e RW |
18767 | _ACEOF |
18768 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 18769 | gcc_cv_math_func_copysignl=yes |
453310d8 | 18770 | else |
db9f46a9 | 18771 | gcc_cv_math_func_copysignl=no |
453310d8 | 18772 | fi |
5213506e RW |
18773 | rm -f core conftest.err conftest.$ac_objext \ |
18774 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18775 | fi |
db9f46a9 TG |
18776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5 |
18777 | $as_echo "$gcc_cv_math_func_copysignl" >&6; } | |
18778 | if test $gcc_cv_math_func_copysignl = yes; then | |
f1cdfa01 | 18779 | |
f38a14ca TG |
18780 | cat >>confdefs.h <<_ACEOF |
18781 | #define HAVE_COPYSIGNL 1 | |
18782 | _ACEOF | |
453310d8 | 18783 | |
db9f46a9 | 18784 | fi |
a9e7b9d3 | 18785 | |
a9e7b9d3 | 18786 | |
db9f46a9 TG |
18787 | |
18788 | ||
18789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5 | |
18790 | $as_echo_n "checking for cosf... " >&6; } | |
22e05272 | 18791 | if ${gcc_cv_math_func_cosf+:} false; then : |
5213506e | 18792 | $as_echo_n "(cached) " >&6 |
69a2d125 | 18793 | else |
db9f46a9 | 18794 | if test x$gcc_no_link = xyes; then |
22e05272 | 18795 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18796 | fi |
5213506e | 18797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
69a2d125 EB |
18798 | /* end confdefs.h. */ |
18799 | ||
db9f46a9 TG |
18800 | #ifdef HAVE_COMPLEX_H |
18801 | #include <complex.h> | |
18802 | #endif | |
18803 | #ifdef HAVE_MATH_H | |
18804 | #include <math.h> | |
69a2d125 | 18805 | #endif |
db9f46a9 TG |
18806 | |
18807 | int (*ptr)() = (int (*)())cosf; | |
18808 | ||
69a2d125 EB |
18809 | int |
18810 | main () | |
18811 | { | |
69a2d125 EB |
18812 | return 0; |
18813 | } | |
db9f46a9 | 18814 | |
69a2d125 | 18815 | _ACEOF |
5213506e | 18816 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18817 | gcc_cv_math_func_cosf=yes |
69a2d125 | 18818 | else |
db9f46a9 | 18819 | gcc_cv_math_func_cosf=no |
69a2d125 | 18820 | fi |
5213506e RW |
18821 | rm -f core conftest.err conftest.$ac_objext \ |
18822 | conftest$ac_exeext conftest.$ac_ext | |
69a2d125 | 18823 | fi |
db9f46a9 TG |
18824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5 |
18825 | $as_echo "$gcc_cv_math_func_cosf" >&6; } | |
18826 | if test $gcc_cv_math_func_cosf = yes; then | |
f1cdfa01 | 18827 | |
f38a14ca TG |
18828 | cat >>confdefs.h <<_ACEOF |
18829 | #define HAVE_COSF 1 | |
18830 | _ACEOF | |
db9f46a9 TG |
18831 | |
18832 | fi | |
69a2d125 | 18833 | |
1409cd0b | 18834 | |
1409cd0b | 18835 | |
db9f46a9 TG |
18836 | |
18837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5 | |
18838 | $as_echo_n "checking for cos... " >&6; } | |
22e05272 | 18839 | if ${gcc_cv_math_func_cos+:} false; then : |
5213506e | 18840 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18841 | else |
db9f46a9 | 18842 | if test x$gcc_no_link = xyes; then |
22e05272 | 18843 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18844 | fi |
5213506e | 18845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18846 | /* end confdefs.h. */ |
18847 | ||
db9f46a9 TG |
18848 | #ifdef HAVE_COMPLEX_H |
18849 | #include <complex.h> | |
1409cd0b | 18850 | #endif |
db9f46a9 TG |
18851 | #ifdef HAVE_MATH_H |
18852 | #include <math.h> | |
18853 | #endif | |
18854 | ||
18855 | int (*ptr)() = (int (*)())cos; | |
18856 | ||
1409cd0b FXC |
18857 | int |
18858 | main () | |
18859 | { | |
1409cd0b FXC |
18860 | return 0; |
18861 | } | |
db9f46a9 | 18862 | |
1409cd0b | 18863 | _ACEOF |
5213506e | 18864 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18865 | gcc_cv_math_func_cos=yes |
1409cd0b | 18866 | else |
db9f46a9 | 18867 | gcc_cv_math_func_cos=no |
1409cd0b | 18868 | fi |
5213506e RW |
18869 | rm -f core conftest.err conftest.$ac_objext \ |
18870 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18871 | fi |
db9f46a9 TG |
18872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5 |
18873 | $as_echo "$gcc_cv_math_func_cos" >&6; } | |
18874 | if test $gcc_cv_math_func_cos = yes; then | |
f1cdfa01 | 18875 | |
f38a14ca TG |
18876 | cat >>confdefs.h <<_ACEOF |
18877 | #define HAVE_COS 1 | |
18878 | _ACEOF | |
db9f46a9 TG |
18879 | |
18880 | fi | |
18881 | ||
1409cd0b | 18882 | |
1409cd0b | 18883 | |
1409cd0b | 18884 | |
db9f46a9 TG |
18885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5 |
18886 | $as_echo_n "checking for cosl... " >&6; } | |
22e05272 | 18887 | if ${gcc_cv_math_func_cosl+:} false; then : |
5213506e | 18888 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18889 | else |
db9f46a9 | 18890 | if test x$gcc_no_link = xyes; then |
22e05272 | 18891 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18892 | fi |
5213506e | 18893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18894 | /* end confdefs.h. */ |
18895 | ||
db9f46a9 TG |
18896 | #ifdef HAVE_COMPLEX_H |
18897 | #include <complex.h> | |
18898 | #endif | |
18899 | #ifdef HAVE_MATH_H | |
18900 | #include <math.h> | |
1409cd0b | 18901 | #endif |
db9f46a9 TG |
18902 | |
18903 | int (*ptr)() = (int (*)())cosl; | |
18904 | ||
1409cd0b FXC |
18905 | int |
18906 | main () | |
18907 | { | |
1409cd0b FXC |
18908 | return 0; |
18909 | } | |
db9f46a9 | 18910 | |
1409cd0b | 18911 | _ACEOF |
5213506e | 18912 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18913 | gcc_cv_math_func_cosl=yes |
1409cd0b | 18914 | else |
db9f46a9 | 18915 | gcc_cv_math_func_cosl=no |
1409cd0b | 18916 | fi |
5213506e RW |
18917 | rm -f core conftest.err conftest.$ac_objext \ |
18918 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18919 | fi |
db9f46a9 TG |
18920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5 |
18921 | $as_echo "$gcc_cv_math_func_cosl" >&6; } | |
18922 | if test $gcc_cv_math_func_cosl = yes; then | |
f1cdfa01 | 18923 | |
f38a14ca TG |
18924 | cat >>confdefs.h <<_ACEOF |
18925 | #define HAVE_COSL 1 | |
18926 | _ACEOF | |
db9f46a9 TG |
18927 | |
18928 | fi | |
1409cd0b | 18929 | |
1409cd0b | 18930 | |
1409cd0b | 18931 | |
db9f46a9 TG |
18932 | |
18933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5 | |
18934 | $as_echo_n "checking for ccosf... " >&6; } | |
22e05272 | 18935 | if ${gcc_cv_math_func_ccosf+:} false; then : |
5213506e | 18936 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18937 | else |
db9f46a9 | 18938 | if test x$gcc_no_link = xyes; then |
22e05272 | 18939 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18940 | fi |
5213506e | 18941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18942 | /* end confdefs.h. */ |
18943 | ||
db9f46a9 TG |
18944 | #ifdef HAVE_COMPLEX_H |
18945 | #include <complex.h> | |
1409cd0b | 18946 | #endif |
db9f46a9 TG |
18947 | #ifdef HAVE_MATH_H |
18948 | #include <math.h> | |
18949 | #endif | |
18950 | ||
18951 | int (*ptr)() = (int (*)())ccosf; | |
18952 | ||
1409cd0b FXC |
18953 | int |
18954 | main () | |
18955 | { | |
1409cd0b FXC |
18956 | return 0; |
18957 | } | |
db9f46a9 | 18958 | |
1409cd0b | 18959 | _ACEOF |
5213506e | 18960 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18961 | gcc_cv_math_func_ccosf=yes |
1409cd0b | 18962 | else |
db9f46a9 | 18963 | gcc_cv_math_func_ccosf=no |
1409cd0b | 18964 | fi |
5213506e RW |
18965 | rm -f core conftest.err conftest.$ac_objext \ |
18966 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18967 | fi |
db9f46a9 TG |
18968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5 |
18969 | $as_echo "$gcc_cv_math_func_ccosf" >&6; } | |
18970 | if test $gcc_cv_math_func_ccosf = yes; then | |
f1cdfa01 | 18971 | |
f38a14ca TG |
18972 | cat >>confdefs.h <<_ACEOF |
18973 | #define HAVE_CCOSF 1 | |
18974 | _ACEOF | |
1409cd0b | 18975 | |
db9f46a9 | 18976 | fi |
1409cd0b | 18977 | |
1409cd0b | 18978 | |
db9f46a9 TG |
18979 | |
18980 | ||
18981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5 | |
18982 | $as_echo_n "checking for ccos... " >&6; } | |
22e05272 | 18983 | if ${gcc_cv_math_func_ccos+:} false; then : |
5213506e | 18984 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18985 | else |
db9f46a9 | 18986 | if test x$gcc_no_link = xyes; then |
22e05272 | 18987 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18988 | fi |
5213506e | 18989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18990 | /* end confdefs.h. */ |
18991 | ||
db9f46a9 TG |
18992 | #ifdef HAVE_COMPLEX_H |
18993 | #include <complex.h> | |
18994 | #endif | |
18995 | #ifdef HAVE_MATH_H | |
18996 | #include <math.h> | |
1409cd0b | 18997 | #endif |
db9f46a9 TG |
18998 | |
18999 | int (*ptr)() = (int (*)())ccos; | |
19000 | ||
1409cd0b FXC |
19001 | int |
19002 | main () | |
19003 | { | |
1409cd0b FXC |
19004 | return 0; |
19005 | } | |
db9f46a9 | 19006 | |
1409cd0b | 19007 | _ACEOF |
5213506e | 19008 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19009 | gcc_cv_math_func_ccos=yes |
1409cd0b | 19010 | else |
db9f46a9 | 19011 | gcc_cv_math_func_ccos=no |
1409cd0b | 19012 | fi |
5213506e RW |
19013 | rm -f core conftest.err conftest.$ac_objext \ |
19014 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19015 | fi |
db9f46a9 TG |
19016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5 |
19017 | $as_echo "$gcc_cv_math_func_ccos" >&6; } | |
19018 | if test $gcc_cv_math_func_ccos = yes; then | |
f1cdfa01 | 19019 | |
f38a14ca TG |
19020 | cat >>confdefs.h <<_ACEOF |
19021 | #define HAVE_CCOS 1 | |
19022 | _ACEOF | |
db9f46a9 TG |
19023 | |
19024 | fi | |
1409cd0b | 19025 | |
1409cd0b | 19026 | |
1409cd0b | 19027 | |
db9f46a9 TG |
19028 | |
19029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5 | |
19030 | $as_echo_n "checking for ccosl... " >&6; } | |
22e05272 | 19031 | if ${gcc_cv_math_func_ccosl+:} false; then : |
5213506e | 19032 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19033 | else |
db9f46a9 | 19034 | if test x$gcc_no_link = xyes; then |
22e05272 | 19035 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19036 | fi |
5213506e | 19037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19038 | /* end confdefs.h. */ |
19039 | ||
db9f46a9 TG |
19040 | #ifdef HAVE_COMPLEX_H |
19041 | #include <complex.h> | |
1409cd0b | 19042 | #endif |
db9f46a9 TG |
19043 | #ifdef HAVE_MATH_H |
19044 | #include <math.h> | |
19045 | #endif | |
19046 | ||
19047 | int (*ptr)() = (int (*)())ccosl; | |
19048 | ||
1409cd0b FXC |
19049 | int |
19050 | main () | |
19051 | { | |
1409cd0b FXC |
19052 | return 0; |
19053 | } | |
db9f46a9 | 19054 | |
1409cd0b | 19055 | _ACEOF |
5213506e | 19056 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19057 | gcc_cv_math_func_ccosl=yes |
1409cd0b | 19058 | else |
db9f46a9 | 19059 | gcc_cv_math_func_ccosl=no |
1409cd0b | 19060 | fi |
5213506e RW |
19061 | rm -f core conftest.err conftest.$ac_objext \ |
19062 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19063 | fi |
db9f46a9 TG |
19064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5 |
19065 | $as_echo "$gcc_cv_math_func_ccosl" >&6; } | |
19066 | if test $gcc_cv_math_func_ccosl = yes; then | |
f1cdfa01 | 19067 | |
f38a14ca TG |
19068 | cat >>confdefs.h <<_ACEOF |
19069 | #define HAVE_CCOSL 1 | |
19070 | _ACEOF | |
db9f46a9 TG |
19071 | |
19072 | fi | |
19073 | ||
1409cd0b | 19074 | |
1409cd0b | 19075 | |
1409cd0b | 19076 | |
db9f46a9 TG |
19077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5 |
19078 | $as_echo_n "checking for coshf... " >&6; } | |
22e05272 | 19079 | if ${gcc_cv_math_func_coshf+:} false; then : |
5213506e | 19080 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19081 | else |
db9f46a9 | 19082 | if test x$gcc_no_link = xyes; then |
22e05272 | 19083 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19084 | fi |
5213506e | 19085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19086 | /* end confdefs.h. */ |
19087 | ||
db9f46a9 TG |
19088 | #ifdef HAVE_COMPLEX_H |
19089 | #include <complex.h> | |
19090 | #endif | |
19091 | #ifdef HAVE_MATH_H | |
19092 | #include <math.h> | |
1409cd0b | 19093 | #endif |
db9f46a9 TG |
19094 | |
19095 | int (*ptr)() = (int (*)())coshf; | |
19096 | ||
1409cd0b FXC |
19097 | int |
19098 | main () | |
19099 | { | |
1409cd0b FXC |
19100 | return 0; |
19101 | } | |
db9f46a9 | 19102 | |
1409cd0b | 19103 | _ACEOF |
5213506e | 19104 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19105 | gcc_cv_math_func_coshf=yes |
1409cd0b | 19106 | else |
db9f46a9 | 19107 | gcc_cv_math_func_coshf=no |
1409cd0b | 19108 | fi |
5213506e RW |
19109 | rm -f core conftest.err conftest.$ac_objext \ |
19110 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19111 | fi |
db9f46a9 TG |
19112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5 |
19113 | $as_echo "$gcc_cv_math_func_coshf" >&6; } | |
19114 | if test $gcc_cv_math_func_coshf = yes; then | |
f1cdfa01 | 19115 | |
f38a14ca TG |
19116 | cat >>confdefs.h <<_ACEOF |
19117 | #define HAVE_COSHF 1 | |
19118 | _ACEOF | |
db9f46a9 TG |
19119 | |
19120 | fi | |
1409cd0b | 19121 | |
1409cd0b | 19122 | |
1409cd0b | 19123 | |
db9f46a9 TG |
19124 | |
19125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5 | |
19126 | $as_echo_n "checking for cosh... " >&6; } | |
22e05272 | 19127 | if ${gcc_cv_math_func_cosh+:} false; then : |
5213506e | 19128 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19129 | else |
db9f46a9 | 19130 | if test x$gcc_no_link = xyes; then |
22e05272 | 19131 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19132 | fi |
5213506e | 19133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19134 | /* end confdefs.h. */ |
19135 | ||
db9f46a9 TG |
19136 | #ifdef HAVE_COMPLEX_H |
19137 | #include <complex.h> | |
1409cd0b | 19138 | #endif |
db9f46a9 TG |
19139 | #ifdef HAVE_MATH_H |
19140 | #include <math.h> | |
19141 | #endif | |
19142 | ||
19143 | int (*ptr)() = (int (*)())cosh; | |
19144 | ||
1409cd0b FXC |
19145 | int |
19146 | main () | |
19147 | { | |
1409cd0b FXC |
19148 | return 0; |
19149 | } | |
db9f46a9 | 19150 | |
1409cd0b | 19151 | _ACEOF |
5213506e | 19152 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19153 | gcc_cv_math_func_cosh=yes |
1409cd0b | 19154 | else |
db9f46a9 | 19155 | gcc_cv_math_func_cosh=no |
1409cd0b | 19156 | fi |
5213506e RW |
19157 | rm -f core conftest.err conftest.$ac_objext \ |
19158 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19159 | fi |
db9f46a9 TG |
19160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5 |
19161 | $as_echo "$gcc_cv_math_func_cosh" >&6; } | |
19162 | if test $gcc_cv_math_func_cosh = yes; then | |
f1cdfa01 | 19163 | |
f38a14ca TG |
19164 | cat >>confdefs.h <<_ACEOF |
19165 | #define HAVE_COSH 1 | |
19166 | _ACEOF | |
1409cd0b | 19167 | |
db9f46a9 | 19168 | fi |
1409cd0b | 19169 | |
1409cd0b | 19170 | |
db9f46a9 TG |
19171 | |
19172 | ||
19173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5 | |
19174 | $as_echo_n "checking for coshl... " >&6; } | |
22e05272 | 19175 | if ${gcc_cv_math_func_coshl+:} false; then : |
5213506e | 19176 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19177 | else |
db9f46a9 | 19178 | if test x$gcc_no_link = xyes; then |
22e05272 | 19179 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19180 | fi |
5213506e | 19181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19182 | /* end confdefs.h. */ |
19183 | ||
db9f46a9 TG |
19184 | #ifdef HAVE_COMPLEX_H |
19185 | #include <complex.h> | |
19186 | #endif | |
19187 | #ifdef HAVE_MATH_H | |
19188 | #include <math.h> | |
1409cd0b | 19189 | #endif |
db9f46a9 TG |
19190 | |
19191 | int (*ptr)() = (int (*)())coshl; | |
19192 | ||
1409cd0b FXC |
19193 | int |
19194 | main () | |
19195 | { | |
1409cd0b FXC |
19196 | return 0; |
19197 | } | |
db9f46a9 | 19198 | |
1409cd0b | 19199 | _ACEOF |
5213506e | 19200 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19201 | gcc_cv_math_func_coshl=yes |
1409cd0b | 19202 | else |
db9f46a9 | 19203 | gcc_cv_math_func_coshl=no |
1409cd0b | 19204 | fi |
5213506e RW |
19205 | rm -f core conftest.err conftest.$ac_objext \ |
19206 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19207 | fi |
db9f46a9 TG |
19208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5 |
19209 | $as_echo "$gcc_cv_math_func_coshl" >&6; } | |
19210 | if test $gcc_cv_math_func_coshl = yes; then | |
f1cdfa01 | 19211 | |
f38a14ca TG |
19212 | cat >>confdefs.h <<_ACEOF |
19213 | #define HAVE_COSHL 1 | |
19214 | _ACEOF | |
db9f46a9 TG |
19215 | |
19216 | fi | |
1409cd0b | 19217 | |
1409cd0b | 19218 | |
1409cd0b | 19219 | |
db9f46a9 TG |
19220 | |
19221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5 | |
19222 | $as_echo_n "checking for ccoshf... " >&6; } | |
22e05272 | 19223 | if ${gcc_cv_math_func_ccoshf+:} false; then : |
5213506e | 19224 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19225 | else |
db9f46a9 | 19226 | if test x$gcc_no_link = xyes; then |
22e05272 | 19227 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19228 | fi |
5213506e | 19229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19230 | /* end confdefs.h. */ |
19231 | ||
db9f46a9 TG |
19232 | #ifdef HAVE_COMPLEX_H |
19233 | #include <complex.h> | |
1409cd0b | 19234 | #endif |
db9f46a9 TG |
19235 | #ifdef HAVE_MATH_H |
19236 | #include <math.h> | |
19237 | #endif | |
19238 | ||
19239 | int (*ptr)() = (int (*)())ccoshf; | |
19240 | ||
1409cd0b FXC |
19241 | int |
19242 | main () | |
19243 | { | |
1409cd0b FXC |
19244 | return 0; |
19245 | } | |
db9f46a9 | 19246 | |
1409cd0b | 19247 | _ACEOF |
5213506e | 19248 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19249 | gcc_cv_math_func_ccoshf=yes |
1409cd0b | 19250 | else |
db9f46a9 | 19251 | gcc_cv_math_func_ccoshf=no |
1409cd0b | 19252 | fi |
5213506e RW |
19253 | rm -f core conftest.err conftest.$ac_objext \ |
19254 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19255 | fi |
db9f46a9 TG |
19256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5 |
19257 | $as_echo "$gcc_cv_math_func_ccoshf" >&6; } | |
19258 | if test $gcc_cv_math_func_ccoshf = yes; then | |
f1cdfa01 | 19259 | |
f38a14ca TG |
19260 | cat >>confdefs.h <<_ACEOF |
19261 | #define HAVE_CCOSHF 1 | |
19262 | _ACEOF | |
db9f46a9 TG |
19263 | |
19264 | fi | |
19265 | ||
1409cd0b | 19266 | |
1409cd0b | 19267 | |
1409cd0b | 19268 | |
db9f46a9 TG |
19269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5 |
19270 | $as_echo_n "checking for ccosh... " >&6; } | |
22e05272 | 19271 | if ${gcc_cv_math_func_ccosh+:} false; then : |
5213506e | 19272 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19273 | else |
db9f46a9 | 19274 | if test x$gcc_no_link = xyes; then |
22e05272 | 19275 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19276 | fi |
5213506e | 19277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19278 | /* end confdefs.h. */ |
19279 | ||
db9f46a9 TG |
19280 | #ifdef HAVE_COMPLEX_H |
19281 | #include <complex.h> | |
19282 | #endif | |
19283 | #ifdef HAVE_MATH_H | |
19284 | #include <math.h> | |
1409cd0b | 19285 | #endif |
db9f46a9 TG |
19286 | |
19287 | int (*ptr)() = (int (*)())ccosh; | |
19288 | ||
1409cd0b FXC |
19289 | int |
19290 | main () | |
19291 | { | |
1409cd0b FXC |
19292 | return 0; |
19293 | } | |
db9f46a9 | 19294 | |
1409cd0b | 19295 | _ACEOF |
5213506e | 19296 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19297 | gcc_cv_math_func_ccosh=yes |
1409cd0b | 19298 | else |
db9f46a9 | 19299 | gcc_cv_math_func_ccosh=no |
1409cd0b | 19300 | fi |
5213506e RW |
19301 | rm -f core conftest.err conftest.$ac_objext \ |
19302 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19303 | fi |
db9f46a9 TG |
19304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5 |
19305 | $as_echo "$gcc_cv_math_func_ccosh" >&6; } | |
19306 | if test $gcc_cv_math_func_ccosh = yes; then | |
f1cdfa01 | 19307 | |
f38a14ca TG |
19308 | cat >>confdefs.h <<_ACEOF |
19309 | #define HAVE_CCOSH 1 | |
19310 | _ACEOF | |
db9f46a9 TG |
19311 | |
19312 | fi | |
1409cd0b | 19313 | |
1409cd0b | 19314 | |
1409cd0b | 19315 | |
db9f46a9 TG |
19316 | |
19317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5 | |
19318 | $as_echo_n "checking for ccoshl... " >&6; } | |
22e05272 | 19319 | if ${gcc_cv_math_func_ccoshl+:} false; then : |
5213506e | 19320 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19321 | else |
db9f46a9 | 19322 | if test x$gcc_no_link = xyes; then |
22e05272 | 19323 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19324 | fi |
5213506e | 19325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19326 | /* end confdefs.h. */ |
19327 | ||
db9f46a9 TG |
19328 | #ifdef HAVE_COMPLEX_H |
19329 | #include <complex.h> | |
1409cd0b | 19330 | #endif |
db9f46a9 TG |
19331 | #ifdef HAVE_MATH_H |
19332 | #include <math.h> | |
19333 | #endif | |
19334 | ||
19335 | int (*ptr)() = (int (*)())ccoshl; | |
19336 | ||
1409cd0b FXC |
19337 | int |
19338 | main () | |
19339 | { | |
1409cd0b FXC |
19340 | return 0; |
19341 | } | |
db9f46a9 | 19342 | |
1409cd0b | 19343 | _ACEOF |
5213506e | 19344 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19345 | gcc_cv_math_func_ccoshl=yes |
1409cd0b | 19346 | else |
db9f46a9 | 19347 | gcc_cv_math_func_ccoshl=no |
1409cd0b | 19348 | fi |
5213506e RW |
19349 | rm -f core conftest.err conftest.$ac_objext \ |
19350 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19351 | fi |
db9f46a9 TG |
19352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5 |
19353 | $as_echo "$gcc_cv_math_func_ccoshl" >&6; } | |
19354 | if test $gcc_cv_math_func_ccoshl = yes; then | |
f1cdfa01 | 19355 | |
f38a14ca TG |
19356 | cat >>confdefs.h <<_ACEOF |
19357 | #define HAVE_CCOSHL 1 | |
19358 | _ACEOF | |
1409cd0b | 19359 | |
db9f46a9 | 19360 | fi |
1409cd0b | 19361 | |
1409cd0b | 19362 | |
db9f46a9 TG |
19363 | |
19364 | ||
19365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5 | |
19366 | $as_echo_n "checking for expf... " >&6; } | |
22e05272 | 19367 | if ${gcc_cv_math_func_expf+:} false; then : |
5213506e | 19368 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19369 | else |
db9f46a9 | 19370 | if test x$gcc_no_link = xyes; then |
22e05272 | 19371 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19372 | fi |
5213506e | 19373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19374 | /* end confdefs.h. */ |
19375 | ||
db9f46a9 TG |
19376 | #ifdef HAVE_COMPLEX_H |
19377 | #include <complex.h> | |
19378 | #endif | |
19379 | #ifdef HAVE_MATH_H | |
19380 | #include <math.h> | |
1409cd0b | 19381 | #endif |
db9f46a9 TG |
19382 | |
19383 | int (*ptr)() = (int (*)())expf; | |
19384 | ||
1409cd0b FXC |
19385 | int |
19386 | main () | |
19387 | { | |
1409cd0b FXC |
19388 | return 0; |
19389 | } | |
db9f46a9 | 19390 | |
1409cd0b | 19391 | _ACEOF |
5213506e | 19392 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19393 | gcc_cv_math_func_expf=yes |
1409cd0b | 19394 | else |
db9f46a9 | 19395 | gcc_cv_math_func_expf=no |
1409cd0b | 19396 | fi |
5213506e RW |
19397 | rm -f core conftest.err conftest.$ac_objext \ |
19398 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19399 | fi |
db9f46a9 TG |
19400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5 |
19401 | $as_echo "$gcc_cv_math_func_expf" >&6; } | |
19402 | if test $gcc_cv_math_func_expf = yes; then | |
f1cdfa01 | 19403 | |
f38a14ca TG |
19404 | cat >>confdefs.h <<_ACEOF |
19405 | #define HAVE_EXPF 1 | |
19406 | _ACEOF | |
db9f46a9 TG |
19407 | |
19408 | fi | |
1409cd0b | 19409 | |
1409cd0b | 19410 | |
1409cd0b | 19411 | |
db9f46a9 TG |
19412 | |
19413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5 | |
19414 | $as_echo_n "checking for exp... " >&6; } | |
22e05272 | 19415 | if ${gcc_cv_math_func_exp+:} false; then : |
5213506e | 19416 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19417 | else |
db9f46a9 | 19418 | if test x$gcc_no_link = xyes; then |
22e05272 | 19419 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19420 | fi |
5213506e | 19421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19422 | /* end confdefs.h. */ |
19423 | ||
db9f46a9 TG |
19424 | #ifdef HAVE_COMPLEX_H |
19425 | #include <complex.h> | |
1409cd0b | 19426 | #endif |
db9f46a9 TG |
19427 | #ifdef HAVE_MATH_H |
19428 | #include <math.h> | |
19429 | #endif | |
19430 | ||
19431 | int (*ptr)() = (int (*)())exp; | |
19432 | ||
1409cd0b FXC |
19433 | int |
19434 | main () | |
19435 | { | |
1409cd0b FXC |
19436 | return 0; |
19437 | } | |
db9f46a9 | 19438 | |
1409cd0b | 19439 | _ACEOF |
5213506e | 19440 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19441 | gcc_cv_math_func_exp=yes |
1409cd0b | 19442 | else |
db9f46a9 | 19443 | gcc_cv_math_func_exp=no |
1409cd0b | 19444 | fi |
5213506e RW |
19445 | rm -f core conftest.err conftest.$ac_objext \ |
19446 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19447 | fi |
db9f46a9 TG |
19448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5 |
19449 | $as_echo "$gcc_cv_math_func_exp" >&6; } | |
19450 | if test $gcc_cv_math_func_exp = yes; then | |
f1cdfa01 | 19451 | |
f38a14ca TG |
19452 | cat >>confdefs.h <<_ACEOF |
19453 | #define HAVE_EXP 1 | |
19454 | _ACEOF | |
db9f46a9 TG |
19455 | |
19456 | fi | |
19457 | ||
1409cd0b | 19458 | |
1409cd0b | 19459 | |
1409cd0b | 19460 | |
db9f46a9 TG |
19461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5 |
19462 | $as_echo_n "checking for expl... " >&6; } | |
22e05272 | 19463 | if ${gcc_cv_math_func_expl+:} false; then : |
5213506e | 19464 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19465 | else |
db9f46a9 | 19466 | if test x$gcc_no_link = xyes; then |
22e05272 | 19467 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19468 | fi |
5213506e | 19469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19470 | /* end confdefs.h. */ |
19471 | ||
db9f46a9 TG |
19472 | #ifdef HAVE_COMPLEX_H |
19473 | #include <complex.h> | |
19474 | #endif | |
19475 | #ifdef HAVE_MATH_H | |
19476 | #include <math.h> | |
1409cd0b | 19477 | #endif |
db9f46a9 TG |
19478 | |
19479 | int (*ptr)() = (int (*)())expl; | |
19480 | ||
1409cd0b FXC |
19481 | int |
19482 | main () | |
19483 | { | |
1409cd0b FXC |
19484 | return 0; |
19485 | } | |
db9f46a9 | 19486 | |
1409cd0b | 19487 | _ACEOF |
5213506e | 19488 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19489 | gcc_cv_math_func_expl=yes |
1409cd0b | 19490 | else |
db9f46a9 | 19491 | gcc_cv_math_func_expl=no |
1409cd0b | 19492 | fi |
5213506e RW |
19493 | rm -f core conftest.err conftest.$ac_objext \ |
19494 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19495 | fi |
db9f46a9 TG |
19496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5 |
19497 | $as_echo "$gcc_cv_math_func_expl" >&6; } | |
19498 | if test $gcc_cv_math_func_expl = yes; then | |
f1cdfa01 | 19499 | |
f38a14ca TG |
19500 | cat >>confdefs.h <<_ACEOF |
19501 | #define HAVE_EXPL 1 | |
19502 | _ACEOF | |
db9f46a9 TG |
19503 | |
19504 | fi | |
1409cd0b | 19505 | |
1409cd0b | 19506 | |
1409cd0b | 19507 | |
db9f46a9 TG |
19508 | |
19509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5 | |
19510 | $as_echo_n "checking for cexpf... " >&6; } | |
22e05272 | 19511 | if ${gcc_cv_math_func_cexpf+:} false; then : |
5213506e | 19512 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19513 | else |
db9f46a9 | 19514 | if test x$gcc_no_link = xyes; then |
22e05272 | 19515 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19516 | fi |
5213506e | 19517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19518 | /* end confdefs.h. */ |
19519 | ||
db9f46a9 TG |
19520 | #ifdef HAVE_COMPLEX_H |
19521 | #include <complex.h> | |
1409cd0b | 19522 | #endif |
db9f46a9 TG |
19523 | #ifdef HAVE_MATH_H |
19524 | #include <math.h> | |
19525 | #endif | |
19526 | ||
19527 | int (*ptr)() = (int (*)())cexpf; | |
19528 | ||
1409cd0b FXC |
19529 | int |
19530 | main () | |
19531 | { | |
1409cd0b FXC |
19532 | return 0; |
19533 | } | |
db9f46a9 | 19534 | |
1409cd0b | 19535 | _ACEOF |
5213506e | 19536 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19537 | gcc_cv_math_func_cexpf=yes |
1409cd0b | 19538 | else |
db9f46a9 | 19539 | gcc_cv_math_func_cexpf=no |
1409cd0b | 19540 | fi |
5213506e RW |
19541 | rm -f core conftest.err conftest.$ac_objext \ |
19542 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19543 | fi |
db9f46a9 TG |
19544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5 |
19545 | $as_echo "$gcc_cv_math_func_cexpf" >&6; } | |
19546 | if test $gcc_cv_math_func_cexpf = yes; then | |
f1cdfa01 | 19547 | |
f38a14ca TG |
19548 | cat >>confdefs.h <<_ACEOF |
19549 | #define HAVE_CEXPF 1 | |
19550 | _ACEOF | |
1409cd0b | 19551 | |
db9f46a9 | 19552 | fi |
1409cd0b | 19553 | |
1409cd0b | 19554 | |
db9f46a9 TG |
19555 | |
19556 | ||
19557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5 | |
19558 | $as_echo_n "checking for cexp... " >&6; } | |
22e05272 | 19559 | if ${gcc_cv_math_func_cexp+:} false; then : |
5213506e | 19560 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19561 | else |
db9f46a9 | 19562 | if test x$gcc_no_link = xyes; then |
22e05272 | 19563 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19564 | fi |
5213506e | 19565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19566 | /* end confdefs.h. */ |
19567 | ||
db9f46a9 TG |
19568 | #ifdef HAVE_COMPLEX_H |
19569 | #include <complex.h> | |
19570 | #endif | |
19571 | #ifdef HAVE_MATH_H | |
19572 | #include <math.h> | |
1409cd0b | 19573 | #endif |
db9f46a9 TG |
19574 | |
19575 | int (*ptr)() = (int (*)())cexp; | |
19576 | ||
1409cd0b FXC |
19577 | int |
19578 | main () | |
19579 | { | |
1409cd0b FXC |
19580 | return 0; |
19581 | } | |
db9f46a9 | 19582 | |
1409cd0b | 19583 | _ACEOF |
5213506e | 19584 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19585 | gcc_cv_math_func_cexp=yes |
1409cd0b | 19586 | else |
db9f46a9 | 19587 | gcc_cv_math_func_cexp=no |
1409cd0b | 19588 | fi |
5213506e RW |
19589 | rm -f core conftest.err conftest.$ac_objext \ |
19590 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19591 | fi |
db9f46a9 TG |
19592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5 |
19593 | $as_echo "$gcc_cv_math_func_cexp" >&6; } | |
19594 | if test $gcc_cv_math_func_cexp = yes; then | |
f1cdfa01 | 19595 | |
f38a14ca TG |
19596 | cat >>confdefs.h <<_ACEOF |
19597 | #define HAVE_CEXP 1 | |
19598 | _ACEOF | |
db9f46a9 TG |
19599 | |
19600 | fi | |
1409cd0b | 19601 | |
1409cd0b | 19602 | |
1409cd0b | 19603 | |
db9f46a9 TG |
19604 | |
19605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5 | |
19606 | $as_echo_n "checking for cexpl... " >&6; } | |
22e05272 | 19607 | if ${gcc_cv_math_func_cexpl+:} false; then : |
5213506e | 19608 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19609 | else |
db9f46a9 | 19610 | if test x$gcc_no_link = xyes; then |
22e05272 | 19611 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19612 | fi |
5213506e | 19613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19614 | /* end confdefs.h. */ |
19615 | ||
db9f46a9 TG |
19616 | #ifdef HAVE_COMPLEX_H |
19617 | #include <complex.h> | |
1409cd0b | 19618 | #endif |
db9f46a9 TG |
19619 | #ifdef HAVE_MATH_H |
19620 | #include <math.h> | |
19621 | #endif | |
19622 | ||
19623 | int (*ptr)() = (int (*)())cexpl; | |
19624 | ||
1409cd0b FXC |
19625 | int |
19626 | main () | |
19627 | { | |
1409cd0b FXC |
19628 | return 0; |
19629 | } | |
db9f46a9 | 19630 | |
1409cd0b | 19631 | _ACEOF |
5213506e | 19632 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19633 | gcc_cv_math_func_cexpl=yes |
1409cd0b | 19634 | else |
db9f46a9 | 19635 | gcc_cv_math_func_cexpl=no |
1409cd0b | 19636 | fi |
5213506e RW |
19637 | rm -f core conftest.err conftest.$ac_objext \ |
19638 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19639 | fi |
db9f46a9 TG |
19640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5 |
19641 | $as_echo "$gcc_cv_math_func_cexpl" >&6; } | |
19642 | if test $gcc_cv_math_func_cexpl = yes; then | |
f1cdfa01 | 19643 | |
f38a14ca TG |
19644 | cat >>confdefs.h <<_ACEOF |
19645 | #define HAVE_CEXPL 1 | |
19646 | _ACEOF | |
db9f46a9 TG |
19647 | |
19648 | fi | |
19649 | ||
1409cd0b | 19650 | |
1409cd0b | 19651 | |
1409cd0b | 19652 | |
db9f46a9 TG |
19653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5 |
19654 | $as_echo_n "checking for fabsf... " >&6; } | |
22e05272 | 19655 | if ${gcc_cv_math_func_fabsf+:} false; then : |
5213506e | 19656 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19657 | else |
db9f46a9 | 19658 | if test x$gcc_no_link = xyes; then |
22e05272 | 19659 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19660 | fi |
5213506e | 19661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19662 | /* end confdefs.h. */ |
19663 | ||
db9f46a9 TG |
19664 | #ifdef HAVE_COMPLEX_H |
19665 | #include <complex.h> | |
19666 | #endif | |
19667 | #ifdef HAVE_MATH_H | |
19668 | #include <math.h> | |
1409cd0b | 19669 | #endif |
db9f46a9 TG |
19670 | |
19671 | int (*ptr)() = (int (*)())fabsf; | |
19672 | ||
1409cd0b FXC |
19673 | int |
19674 | main () | |
19675 | { | |
1409cd0b FXC |
19676 | return 0; |
19677 | } | |
db9f46a9 | 19678 | |
1409cd0b | 19679 | _ACEOF |
5213506e | 19680 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19681 | gcc_cv_math_func_fabsf=yes |
1409cd0b | 19682 | else |
db9f46a9 | 19683 | gcc_cv_math_func_fabsf=no |
1409cd0b | 19684 | fi |
5213506e RW |
19685 | rm -f core conftest.err conftest.$ac_objext \ |
19686 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19687 | fi |
db9f46a9 TG |
19688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5 |
19689 | $as_echo "$gcc_cv_math_func_fabsf" >&6; } | |
19690 | if test $gcc_cv_math_func_fabsf = yes; then | |
f1cdfa01 | 19691 | |
f38a14ca TG |
19692 | cat >>confdefs.h <<_ACEOF |
19693 | #define HAVE_FABSF 1 | |
19694 | _ACEOF | |
db9f46a9 TG |
19695 | |
19696 | fi | |
1409cd0b | 19697 | |
1409cd0b | 19698 | |
1409cd0b | 19699 | |
db9f46a9 TG |
19700 | |
19701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5 | |
19702 | $as_echo_n "checking for fabs... " >&6; } | |
22e05272 | 19703 | if ${gcc_cv_math_func_fabs+:} false; then : |
5213506e | 19704 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19705 | else |
db9f46a9 | 19706 | if test x$gcc_no_link = xyes; then |
22e05272 | 19707 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19708 | fi |
5213506e | 19709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19710 | /* end confdefs.h. */ |
19711 | ||
db9f46a9 TG |
19712 | #ifdef HAVE_COMPLEX_H |
19713 | #include <complex.h> | |
1409cd0b | 19714 | #endif |
db9f46a9 TG |
19715 | #ifdef HAVE_MATH_H |
19716 | #include <math.h> | |
19717 | #endif | |
19718 | ||
19719 | int (*ptr)() = (int (*)())fabs; | |
19720 | ||
1409cd0b FXC |
19721 | int |
19722 | main () | |
19723 | { | |
1409cd0b FXC |
19724 | return 0; |
19725 | } | |
db9f46a9 | 19726 | |
1409cd0b | 19727 | _ACEOF |
5213506e | 19728 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19729 | gcc_cv_math_func_fabs=yes |
1409cd0b | 19730 | else |
db9f46a9 | 19731 | gcc_cv_math_func_fabs=no |
1409cd0b | 19732 | fi |
5213506e RW |
19733 | rm -f core conftest.err conftest.$ac_objext \ |
19734 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19735 | fi |
db9f46a9 TG |
19736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5 |
19737 | $as_echo "$gcc_cv_math_func_fabs" >&6; } | |
19738 | if test $gcc_cv_math_func_fabs = yes; then | |
f1cdfa01 | 19739 | |
f38a14ca TG |
19740 | cat >>confdefs.h <<_ACEOF |
19741 | #define HAVE_FABS 1 | |
19742 | _ACEOF | |
1409cd0b | 19743 | |
db9f46a9 | 19744 | fi |
1409cd0b | 19745 | |
1409cd0b | 19746 | |
db9f46a9 TG |
19747 | |
19748 | ||
19749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5 | |
19750 | $as_echo_n "checking for fabsl... " >&6; } | |
22e05272 | 19751 | if ${gcc_cv_math_func_fabsl+:} false; then : |
5213506e | 19752 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19753 | else |
db9f46a9 | 19754 | if test x$gcc_no_link = xyes; then |
22e05272 | 19755 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19756 | fi |
5213506e | 19757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19758 | /* end confdefs.h. */ |
19759 | ||
db9f46a9 TG |
19760 | #ifdef HAVE_COMPLEX_H |
19761 | #include <complex.h> | |
19762 | #endif | |
19763 | #ifdef HAVE_MATH_H | |
19764 | #include <math.h> | |
1409cd0b | 19765 | #endif |
db9f46a9 TG |
19766 | |
19767 | int (*ptr)() = (int (*)())fabsl; | |
19768 | ||
1409cd0b FXC |
19769 | int |
19770 | main () | |
19771 | { | |
1409cd0b FXC |
19772 | return 0; |
19773 | } | |
db9f46a9 | 19774 | |
1409cd0b | 19775 | _ACEOF |
5213506e | 19776 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19777 | gcc_cv_math_func_fabsl=yes |
1409cd0b | 19778 | else |
db9f46a9 | 19779 | gcc_cv_math_func_fabsl=no |
1409cd0b | 19780 | fi |
5213506e RW |
19781 | rm -f core conftest.err conftest.$ac_objext \ |
19782 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19783 | fi |
db9f46a9 TG |
19784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5 |
19785 | $as_echo "$gcc_cv_math_func_fabsl" >&6; } | |
19786 | if test $gcc_cv_math_func_fabsl = yes; then | |
f1cdfa01 | 19787 | |
f38a14ca TG |
19788 | cat >>confdefs.h <<_ACEOF |
19789 | #define HAVE_FABSL 1 | |
19790 | _ACEOF | |
db9f46a9 TG |
19791 | |
19792 | fi | |
1409cd0b | 19793 | |
1409cd0b | 19794 | |
1409cd0b | 19795 | |
db9f46a9 TG |
19796 | |
19797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5 | |
19798 | $as_echo_n "checking for cabsf... " >&6; } | |
22e05272 | 19799 | if ${gcc_cv_math_func_cabsf+:} false; then : |
5213506e | 19800 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19801 | else |
db9f46a9 | 19802 | if test x$gcc_no_link = xyes; then |
22e05272 | 19803 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19804 | fi |
5213506e | 19805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19806 | /* end confdefs.h. */ |
19807 | ||
db9f46a9 TG |
19808 | #ifdef HAVE_COMPLEX_H |
19809 | #include <complex.h> | |
1409cd0b | 19810 | #endif |
db9f46a9 TG |
19811 | #ifdef HAVE_MATH_H |
19812 | #include <math.h> | |
19813 | #endif | |
19814 | ||
19815 | int (*ptr)() = (int (*)())cabsf; | |
19816 | ||
1409cd0b FXC |
19817 | int |
19818 | main () | |
19819 | { | |
1409cd0b FXC |
19820 | return 0; |
19821 | } | |
db9f46a9 | 19822 | |
1409cd0b | 19823 | _ACEOF |
5213506e | 19824 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19825 | gcc_cv_math_func_cabsf=yes |
1409cd0b | 19826 | else |
db9f46a9 | 19827 | gcc_cv_math_func_cabsf=no |
1409cd0b | 19828 | fi |
5213506e RW |
19829 | rm -f core conftest.err conftest.$ac_objext \ |
19830 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19831 | fi |
db9f46a9 TG |
19832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5 |
19833 | $as_echo "$gcc_cv_math_func_cabsf" >&6; } | |
19834 | if test $gcc_cv_math_func_cabsf = yes; then | |
f1cdfa01 | 19835 | |
f38a14ca TG |
19836 | cat >>confdefs.h <<_ACEOF |
19837 | #define HAVE_CABSF 1 | |
19838 | _ACEOF | |
db9f46a9 TG |
19839 | |
19840 | fi | |
19841 | ||
1409cd0b | 19842 | |
1409cd0b | 19843 | |
1409cd0b | 19844 | |
db9f46a9 TG |
19845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5 |
19846 | $as_echo_n "checking for cabs... " >&6; } | |
22e05272 | 19847 | if ${gcc_cv_math_func_cabs+:} false; then : |
5213506e | 19848 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19849 | else |
db9f46a9 | 19850 | if test x$gcc_no_link = xyes; then |
22e05272 | 19851 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19852 | fi |
5213506e | 19853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19854 | /* end confdefs.h. */ |
19855 | ||
db9f46a9 TG |
19856 | #ifdef HAVE_COMPLEX_H |
19857 | #include <complex.h> | |
19858 | #endif | |
19859 | #ifdef HAVE_MATH_H | |
19860 | #include <math.h> | |
1409cd0b | 19861 | #endif |
db9f46a9 TG |
19862 | |
19863 | int (*ptr)() = (int (*)())cabs; | |
19864 | ||
1409cd0b FXC |
19865 | int |
19866 | main () | |
19867 | { | |
1409cd0b FXC |
19868 | return 0; |
19869 | } | |
db9f46a9 | 19870 | |
1409cd0b | 19871 | _ACEOF |
5213506e | 19872 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19873 | gcc_cv_math_func_cabs=yes |
1409cd0b | 19874 | else |
db9f46a9 | 19875 | gcc_cv_math_func_cabs=no |
1409cd0b | 19876 | fi |
5213506e RW |
19877 | rm -f core conftest.err conftest.$ac_objext \ |
19878 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19879 | fi |
db9f46a9 TG |
19880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5 |
19881 | $as_echo "$gcc_cv_math_func_cabs" >&6; } | |
19882 | if test $gcc_cv_math_func_cabs = yes; then | |
f1cdfa01 | 19883 | |
f38a14ca TG |
19884 | cat >>confdefs.h <<_ACEOF |
19885 | #define HAVE_CABS 1 | |
19886 | _ACEOF | |
db9f46a9 TG |
19887 | |
19888 | fi | |
1409cd0b | 19889 | |
1409cd0b | 19890 | |
1409cd0b | 19891 | |
db9f46a9 TG |
19892 | |
19893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5 | |
19894 | $as_echo_n "checking for cabsl... " >&6; } | |
22e05272 | 19895 | if ${gcc_cv_math_func_cabsl+:} false; then : |
5213506e | 19896 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19897 | else |
db9f46a9 | 19898 | if test x$gcc_no_link = xyes; then |
22e05272 | 19899 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19900 | fi |
5213506e | 19901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19902 | /* end confdefs.h. */ |
19903 | ||
db9f46a9 TG |
19904 | #ifdef HAVE_COMPLEX_H |
19905 | #include <complex.h> | |
1409cd0b | 19906 | #endif |
db9f46a9 TG |
19907 | #ifdef HAVE_MATH_H |
19908 | #include <math.h> | |
19909 | #endif | |
19910 | ||
19911 | int (*ptr)() = (int (*)())cabsl; | |
19912 | ||
1409cd0b FXC |
19913 | int |
19914 | main () | |
19915 | { | |
1409cd0b FXC |
19916 | return 0; |
19917 | } | |
db9f46a9 | 19918 | |
1409cd0b | 19919 | _ACEOF |
5213506e | 19920 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19921 | gcc_cv_math_func_cabsl=yes |
1409cd0b | 19922 | else |
db9f46a9 | 19923 | gcc_cv_math_func_cabsl=no |
1409cd0b | 19924 | fi |
5213506e RW |
19925 | rm -f core conftest.err conftest.$ac_objext \ |
19926 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19927 | fi |
db9f46a9 TG |
19928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5 |
19929 | $as_echo "$gcc_cv_math_func_cabsl" >&6; } | |
19930 | if test $gcc_cv_math_func_cabsl = yes; then | |
f1cdfa01 | 19931 | |
f38a14ca TG |
19932 | cat >>confdefs.h <<_ACEOF |
19933 | #define HAVE_CABSL 1 | |
19934 | _ACEOF | |
1409cd0b | 19935 | |
db9f46a9 | 19936 | fi |
1409cd0b | 19937 | |
1409cd0b | 19938 | |
db9f46a9 TG |
19939 | |
19940 | ||
19941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5 | |
19942 | $as_echo_n "checking for floorf... " >&6; } | |
22e05272 | 19943 | if ${gcc_cv_math_func_floorf+:} false; then : |
5213506e | 19944 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19945 | else |
db9f46a9 | 19946 | if test x$gcc_no_link = xyes; then |
22e05272 | 19947 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19948 | fi |
5213506e | 19949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19950 | /* end confdefs.h. */ |
19951 | ||
db9f46a9 TG |
19952 | #ifdef HAVE_COMPLEX_H |
19953 | #include <complex.h> | |
19954 | #endif | |
19955 | #ifdef HAVE_MATH_H | |
19956 | #include <math.h> | |
1409cd0b | 19957 | #endif |
db9f46a9 TG |
19958 | |
19959 | int (*ptr)() = (int (*)())floorf; | |
19960 | ||
1409cd0b FXC |
19961 | int |
19962 | main () | |
19963 | { | |
5213506e RW |
19964 | return 0; |
19965 | } | |
db9f46a9 | 19966 | |
5213506e RW |
19967 | _ACEOF |
19968 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 19969 | gcc_cv_math_func_floorf=yes |
1409cd0b | 19970 | else |
db9f46a9 | 19971 | gcc_cv_math_func_floorf=no |
1409cd0b | 19972 | fi |
5213506e RW |
19973 | rm -f core conftest.err conftest.$ac_objext \ |
19974 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19975 | fi |
db9f46a9 TG |
19976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5 |
19977 | $as_echo "$gcc_cv_math_func_floorf" >&6; } | |
19978 | if test $gcc_cv_math_func_floorf = yes; then | |
f1cdfa01 | 19979 | |
f38a14ca TG |
19980 | cat >>confdefs.h <<_ACEOF |
19981 | #define HAVE_FLOORF 1 | |
19982 | _ACEOF | |
db9f46a9 TG |
19983 | |
19984 | fi | |
1409cd0b | 19985 | |
1409cd0b | 19986 | |
1409cd0b | 19987 | |
db9f46a9 TG |
19988 | |
19989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5 | |
19990 | $as_echo_n "checking for floor... " >&6; } | |
22e05272 | 19991 | if ${gcc_cv_math_func_floor+:} false; then : |
5213506e | 19992 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19993 | else |
db9f46a9 | 19994 | if test x$gcc_no_link = xyes; then |
22e05272 | 19995 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19996 | fi |
5213506e | 19997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19998 | /* end confdefs.h. */ |
19999 | ||
db9f46a9 TG |
20000 | #ifdef HAVE_COMPLEX_H |
20001 | #include <complex.h> | |
1409cd0b | 20002 | #endif |
db9f46a9 TG |
20003 | #ifdef HAVE_MATH_H |
20004 | #include <math.h> | |
20005 | #endif | |
20006 | ||
20007 | int (*ptr)() = (int (*)())floor; | |
20008 | ||
1409cd0b FXC |
20009 | int |
20010 | main () | |
20011 | { | |
1409cd0b FXC |
20012 | return 0; |
20013 | } | |
db9f46a9 | 20014 | |
1409cd0b | 20015 | _ACEOF |
5213506e | 20016 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20017 | gcc_cv_math_func_floor=yes |
1409cd0b | 20018 | else |
db9f46a9 | 20019 | gcc_cv_math_func_floor=no |
1409cd0b | 20020 | fi |
5213506e RW |
20021 | rm -f core conftest.err conftest.$ac_objext \ |
20022 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20023 | fi |
db9f46a9 TG |
20024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5 |
20025 | $as_echo "$gcc_cv_math_func_floor" >&6; } | |
20026 | if test $gcc_cv_math_func_floor = yes; then | |
f1cdfa01 | 20027 | |
f38a14ca TG |
20028 | cat >>confdefs.h <<_ACEOF |
20029 | #define HAVE_FLOOR 1 | |
20030 | _ACEOF | |
db9f46a9 TG |
20031 | |
20032 | fi | |
20033 | ||
1409cd0b | 20034 | |
1409cd0b | 20035 | |
1409cd0b | 20036 | |
db9f46a9 TG |
20037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5 |
20038 | $as_echo_n "checking for floorl... " >&6; } | |
22e05272 | 20039 | if ${gcc_cv_math_func_floorl+:} false; then : |
5213506e | 20040 | $as_echo_n "(cached) " >&6 |
eb647f7d | 20041 | else |
db9f46a9 | 20042 | if test x$gcc_no_link = xyes; then |
22e05272 | 20043 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 20044 | fi |
5213506e | 20045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
20046 | /* end confdefs.h. */ |
20047 | ||
db9f46a9 TG |
20048 | #ifdef HAVE_COMPLEX_H |
20049 | #include <complex.h> | |
20050 | #endif | |
20051 | #ifdef HAVE_MATH_H | |
20052 | #include <math.h> | |
eb647f7d | 20053 | #endif |
db9f46a9 TG |
20054 | |
20055 | int (*ptr)() = (int (*)())floorl; | |
20056 | ||
eb647f7d FXC |
20057 | int |
20058 | main () | |
20059 | { | |
eb647f7d FXC |
20060 | return 0; |
20061 | } | |
db9f46a9 | 20062 | |
eb647f7d | 20063 | _ACEOF |
5213506e | 20064 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20065 | gcc_cv_math_func_floorl=yes |
eb647f7d | 20066 | else |
db9f46a9 | 20067 | gcc_cv_math_func_floorl=no |
eb647f7d | 20068 | fi |
5213506e RW |
20069 | rm -f core conftest.err conftest.$ac_objext \ |
20070 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 20071 | fi |
db9f46a9 TG |
20072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5 |
20073 | $as_echo "$gcc_cv_math_func_floorl" >&6; } | |
20074 | if test $gcc_cv_math_func_floorl = yes; then | |
f1cdfa01 | 20075 | |
f38a14ca TG |
20076 | cat >>confdefs.h <<_ACEOF |
20077 | #define HAVE_FLOORL 1 | |
20078 | _ACEOF | |
db9f46a9 TG |
20079 | |
20080 | fi | |
eb647f7d | 20081 | |
eb647f7d | 20082 | |
eb647f7d | 20083 | |
db9f46a9 | 20084 | |
1868599f JJ |
20085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5 |
20086 | $as_echo_n "checking for fmaf... " >&6; } | |
20087 | if ${gcc_cv_math_func_fmaf+:} false; then : | |
20088 | $as_echo_n "(cached) " >&6 | |
20089 | else | |
20090 | if test x$gcc_no_link = xyes; then | |
20091 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
20092 | fi | |
20093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20094 | /* end confdefs.h. */ | |
20095 | ||
20096 | #ifdef HAVE_COMPLEX_H | |
20097 | #include <complex.h> | |
20098 | #endif | |
20099 | #ifdef HAVE_MATH_H | |
20100 | #include <math.h> | |
20101 | #endif | |
20102 | ||
20103 | int (*ptr)() = (int (*)())fmaf; | |
20104 | ||
20105 | int | |
20106 | main () | |
20107 | { | |
20108 | return 0; | |
20109 | } | |
20110 | ||
20111 | _ACEOF | |
20112 | if ac_fn_c_try_link "$LINENO"; then : | |
20113 | gcc_cv_math_func_fmaf=yes | |
20114 | else | |
20115 | gcc_cv_math_func_fmaf=no | |
20116 | fi | |
20117 | rm -f core conftest.err conftest.$ac_objext \ | |
20118 | conftest$ac_exeext conftest.$ac_ext | |
20119 | fi | |
20120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5 | |
20121 | $as_echo "$gcc_cv_math_func_fmaf" >&6; } | |
20122 | if test $gcc_cv_math_func_fmaf = yes; then | |
20123 | ||
20124 | cat >>confdefs.h <<_ACEOF | |
20125 | #define HAVE_FMAF 1 | |
20126 | _ACEOF | |
20127 | ||
20128 | fi | |
20129 | ||
20130 | ||
20131 | ||
20132 | ||
20133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5 | |
20134 | $as_echo_n "checking for fma... " >&6; } | |
20135 | if ${gcc_cv_math_func_fma+:} false; then : | |
20136 | $as_echo_n "(cached) " >&6 | |
20137 | else | |
20138 | if test x$gcc_no_link = xyes; then | |
20139 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
20140 | fi | |
20141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20142 | /* end confdefs.h. */ | |
20143 | ||
20144 | #ifdef HAVE_COMPLEX_H | |
20145 | #include <complex.h> | |
20146 | #endif | |
20147 | #ifdef HAVE_MATH_H | |
20148 | #include <math.h> | |
20149 | #endif | |
20150 | ||
20151 | int (*ptr)() = (int (*)())fma; | |
20152 | ||
20153 | int | |
20154 | main () | |
20155 | { | |
20156 | return 0; | |
20157 | } | |
20158 | ||
20159 | _ACEOF | |
20160 | if ac_fn_c_try_link "$LINENO"; then : | |
20161 | gcc_cv_math_func_fma=yes | |
20162 | else | |
20163 | gcc_cv_math_func_fma=no | |
20164 | fi | |
20165 | rm -f core conftest.err conftest.$ac_objext \ | |
20166 | conftest$ac_exeext conftest.$ac_ext | |
20167 | fi | |
20168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5 | |
20169 | $as_echo "$gcc_cv_math_func_fma" >&6; } | |
20170 | if test $gcc_cv_math_func_fma = yes; then | |
20171 | ||
20172 | cat >>confdefs.h <<_ACEOF | |
20173 | #define HAVE_FMA 1 | |
20174 | _ACEOF | |
20175 | ||
20176 | fi | |
20177 | ||
20178 | ||
20179 | ||
20180 | ||
20181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5 | |
20182 | $as_echo_n "checking for fmal... " >&6; } | |
20183 | if ${gcc_cv_math_func_fmal+:} false; then : | |
20184 | $as_echo_n "(cached) " >&6 | |
20185 | else | |
20186 | if test x$gcc_no_link = xyes; then | |
20187 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
20188 | fi | |
20189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20190 | /* end confdefs.h. */ | |
20191 | ||
20192 | #ifdef HAVE_COMPLEX_H | |
20193 | #include <complex.h> | |
20194 | #endif | |
20195 | #ifdef HAVE_MATH_H | |
20196 | #include <math.h> | |
20197 | #endif | |
20198 | ||
20199 | int (*ptr)() = (int (*)())fmal; | |
20200 | ||
20201 | int | |
20202 | main () | |
20203 | { | |
20204 | return 0; | |
20205 | } | |
20206 | ||
20207 | _ACEOF | |
20208 | if ac_fn_c_try_link "$LINENO"; then : | |
20209 | gcc_cv_math_func_fmal=yes | |
20210 | else | |
20211 | gcc_cv_math_func_fmal=no | |
20212 | fi | |
20213 | rm -f core conftest.err conftest.$ac_objext \ | |
20214 | conftest$ac_exeext conftest.$ac_ext | |
20215 | fi | |
20216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5 | |
20217 | $as_echo "$gcc_cv_math_func_fmal" >&6; } | |
20218 | if test $gcc_cv_math_func_fmal = yes; then | |
20219 | ||
20220 | cat >>confdefs.h <<_ACEOF | |
20221 | #define HAVE_FMAL 1 | |
20222 | _ACEOF | |
20223 | ||
20224 | fi | |
20225 | ||
20226 | ||
20227 | ||
20228 | ||
db9f46a9 TG |
20229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5 |
20230 | $as_echo_n "checking for fmodf... " >&6; } | |
22e05272 | 20231 | if ${gcc_cv_math_func_fmodf+:} false; then : |
5213506e | 20232 | $as_echo_n "(cached) " >&6 |
eb647f7d | 20233 | else |
db9f46a9 | 20234 | if test x$gcc_no_link = xyes; then |
22e05272 | 20235 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 20236 | fi |
5213506e | 20237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
20238 | /* end confdefs.h. */ |
20239 | ||
db9f46a9 TG |
20240 | #ifdef HAVE_COMPLEX_H |
20241 | #include <complex.h> | |
eb647f7d | 20242 | #endif |
db9f46a9 TG |
20243 | #ifdef HAVE_MATH_H |
20244 | #include <math.h> | |
20245 | #endif | |
20246 | ||
20247 | int (*ptr)() = (int (*)())fmodf; | |
20248 | ||
eb647f7d FXC |
20249 | int |
20250 | main () | |
20251 | { | |
eb647f7d FXC |
20252 | return 0; |
20253 | } | |
db9f46a9 | 20254 | |
eb647f7d | 20255 | _ACEOF |
5213506e | 20256 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20257 | gcc_cv_math_func_fmodf=yes |
eb647f7d | 20258 | else |
db9f46a9 | 20259 | gcc_cv_math_func_fmodf=no |
eb647f7d | 20260 | fi |
5213506e RW |
20261 | rm -f core conftest.err conftest.$ac_objext \ |
20262 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 20263 | fi |
db9f46a9 TG |
20264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5 |
20265 | $as_echo "$gcc_cv_math_func_fmodf" >&6; } | |
20266 | if test $gcc_cv_math_func_fmodf = yes; then | |
f1cdfa01 | 20267 | |
f38a14ca TG |
20268 | cat >>confdefs.h <<_ACEOF |
20269 | #define HAVE_FMODF 1 | |
20270 | _ACEOF | |
eb647f7d | 20271 | |
db9f46a9 | 20272 | fi |
eb647f7d | 20273 | |
eb647f7d | 20274 | |
db9f46a9 TG |
20275 | |
20276 | ||
20277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5 | |
20278 | $as_echo_n "checking for fmod... " >&6; } | |
22e05272 | 20279 | if ${gcc_cv_math_func_fmod+:} false; then : |
5213506e | 20280 | $as_echo_n "(cached) " >&6 |
eb647f7d | 20281 | else |
db9f46a9 | 20282 | if test x$gcc_no_link = xyes; then |
22e05272 | 20283 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 20284 | fi |
5213506e | 20285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
20286 | /* end confdefs.h. */ |
20287 | ||
db9f46a9 TG |
20288 | #ifdef HAVE_COMPLEX_H |
20289 | #include <complex.h> | |
20290 | #endif | |
20291 | #ifdef HAVE_MATH_H | |
20292 | #include <math.h> | |
eb647f7d | 20293 | #endif |
db9f46a9 TG |
20294 | |
20295 | int (*ptr)() = (int (*)())fmod; | |
20296 | ||
eb647f7d FXC |
20297 | int |
20298 | main () | |
20299 | { | |
eb647f7d FXC |
20300 | return 0; |
20301 | } | |
db9f46a9 | 20302 | |
eb647f7d | 20303 | _ACEOF |
5213506e | 20304 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20305 | gcc_cv_math_func_fmod=yes |
eb647f7d | 20306 | else |
db9f46a9 | 20307 | gcc_cv_math_func_fmod=no |
eb647f7d | 20308 | fi |
5213506e RW |
20309 | rm -f core conftest.err conftest.$ac_objext \ |
20310 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 20311 | fi |
db9f46a9 TG |
20312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5 |
20313 | $as_echo "$gcc_cv_math_func_fmod" >&6; } | |
20314 | if test $gcc_cv_math_func_fmod = yes; then | |
f1cdfa01 | 20315 | |
f38a14ca TG |
20316 | cat >>confdefs.h <<_ACEOF |
20317 | #define HAVE_FMOD 1 | |
20318 | _ACEOF | |
db9f46a9 TG |
20319 | |
20320 | fi | |
eb647f7d | 20321 | |
eb647f7d | 20322 | |
eb647f7d | 20323 | |
db9f46a9 TG |
20324 | |
20325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5 | |
20326 | $as_echo_n "checking for fmodl... " >&6; } | |
22e05272 | 20327 | if ${gcc_cv_math_func_fmodl+:} false; then : |
5213506e | 20328 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20329 | else |
db9f46a9 | 20330 | if test x$gcc_no_link = xyes; then |
22e05272 | 20331 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20332 | fi |
5213506e | 20333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20334 | /* end confdefs.h. */ |
20335 | ||
db9f46a9 TG |
20336 | #ifdef HAVE_COMPLEX_H |
20337 | #include <complex.h> | |
1409cd0b | 20338 | #endif |
db9f46a9 TG |
20339 | #ifdef HAVE_MATH_H |
20340 | #include <math.h> | |
20341 | #endif | |
20342 | ||
20343 | int (*ptr)() = (int (*)())fmodl; | |
20344 | ||
1409cd0b FXC |
20345 | int |
20346 | main () | |
20347 | { | |
1409cd0b FXC |
20348 | return 0; |
20349 | } | |
db9f46a9 | 20350 | |
1409cd0b | 20351 | _ACEOF |
5213506e | 20352 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20353 | gcc_cv_math_func_fmodl=yes |
1409cd0b | 20354 | else |
db9f46a9 | 20355 | gcc_cv_math_func_fmodl=no |
1409cd0b | 20356 | fi |
5213506e RW |
20357 | rm -f core conftest.err conftest.$ac_objext \ |
20358 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20359 | fi |
db9f46a9 TG |
20360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5 |
20361 | $as_echo "$gcc_cv_math_func_fmodl" >&6; } | |
20362 | if test $gcc_cv_math_func_fmodl = yes; then | |
f1cdfa01 | 20363 | |
f38a14ca TG |
20364 | cat >>confdefs.h <<_ACEOF |
20365 | #define HAVE_FMODL 1 | |
20366 | _ACEOF | |
db9f46a9 TG |
20367 | |
20368 | fi | |
20369 | ||
1409cd0b | 20370 | |
1409cd0b | 20371 | |
1409cd0b | 20372 | |
db9f46a9 TG |
20373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5 |
20374 | $as_echo_n "checking for frexpf... " >&6; } | |
22e05272 | 20375 | if ${gcc_cv_math_func_frexpf+:} false; then : |
5213506e | 20376 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20377 | else |
db9f46a9 | 20378 | if test x$gcc_no_link = xyes; then |
22e05272 | 20379 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20380 | fi |
5213506e | 20381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20382 | /* end confdefs.h. */ |
20383 | ||
db9f46a9 TG |
20384 | #ifdef HAVE_COMPLEX_H |
20385 | #include <complex.h> | |
20386 | #endif | |
20387 | #ifdef HAVE_MATH_H | |
20388 | #include <math.h> | |
1409cd0b | 20389 | #endif |
db9f46a9 TG |
20390 | |
20391 | int (*ptr)() = (int (*)())frexpf; | |
20392 | ||
1409cd0b FXC |
20393 | int |
20394 | main () | |
20395 | { | |
1409cd0b FXC |
20396 | return 0; |
20397 | } | |
db9f46a9 | 20398 | |
1409cd0b | 20399 | _ACEOF |
5213506e | 20400 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20401 | gcc_cv_math_func_frexpf=yes |
1409cd0b | 20402 | else |
db9f46a9 | 20403 | gcc_cv_math_func_frexpf=no |
1409cd0b | 20404 | fi |
5213506e RW |
20405 | rm -f core conftest.err conftest.$ac_objext \ |
20406 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20407 | fi |
db9f46a9 TG |
20408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5 |
20409 | $as_echo "$gcc_cv_math_func_frexpf" >&6; } | |
20410 | if test $gcc_cv_math_func_frexpf = yes; then | |
f1cdfa01 | 20411 | |
f38a14ca TG |
20412 | cat >>confdefs.h <<_ACEOF |
20413 | #define HAVE_FREXPF 1 | |
20414 | _ACEOF | |
db9f46a9 TG |
20415 | |
20416 | fi | |
1409cd0b | 20417 | |
1409cd0b | 20418 | |
1409cd0b | 20419 | |
db9f46a9 TG |
20420 | |
20421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5 | |
20422 | $as_echo_n "checking for frexp... " >&6; } | |
22e05272 | 20423 | if ${gcc_cv_math_func_frexp+:} false; then : |
5213506e | 20424 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20425 | else |
db9f46a9 | 20426 | if test x$gcc_no_link = xyes; then |
22e05272 | 20427 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20428 | fi |
5213506e | 20429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20430 | /* end confdefs.h. */ |
20431 | ||
db9f46a9 TG |
20432 | #ifdef HAVE_COMPLEX_H |
20433 | #include <complex.h> | |
1409cd0b | 20434 | #endif |
db9f46a9 TG |
20435 | #ifdef HAVE_MATH_H |
20436 | #include <math.h> | |
20437 | #endif | |
20438 | ||
20439 | int (*ptr)() = (int (*)())frexp; | |
20440 | ||
1409cd0b FXC |
20441 | int |
20442 | main () | |
20443 | { | |
1409cd0b FXC |
20444 | return 0; |
20445 | } | |
db9f46a9 | 20446 | |
1409cd0b | 20447 | _ACEOF |
5213506e | 20448 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20449 | gcc_cv_math_func_frexp=yes |
1409cd0b | 20450 | else |
db9f46a9 | 20451 | gcc_cv_math_func_frexp=no |
1409cd0b | 20452 | fi |
5213506e RW |
20453 | rm -f core conftest.err conftest.$ac_objext \ |
20454 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20455 | fi |
db9f46a9 TG |
20456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5 |
20457 | $as_echo "$gcc_cv_math_func_frexp" >&6; } | |
20458 | if test $gcc_cv_math_func_frexp = yes; then | |
f1cdfa01 | 20459 | |
f38a14ca TG |
20460 | cat >>confdefs.h <<_ACEOF |
20461 | #define HAVE_FREXP 1 | |
20462 | _ACEOF | |
1409cd0b | 20463 | |
db9f46a9 | 20464 | fi |
1409cd0b | 20465 | |
1409cd0b | 20466 | |
db9f46a9 TG |
20467 | |
20468 | ||
20469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5 | |
20470 | $as_echo_n "checking for frexpl... " >&6; } | |
22e05272 | 20471 | if ${gcc_cv_math_func_frexpl+:} false; then : |
5213506e | 20472 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20473 | else |
db9f46a9 | 20474 | if test x$gcc_no_link = xyes; then |
22e05272 | 20475 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20476 | fi |
5213506e | 20477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20478 | /* end confdefs.h. */ |
20479 | ||
db9f46a9 TG |
20480 | #ifdef HAVE_COMPLEX_H |
20481 | #include <complex.h> | |
20482 | #endif | |
20483 | #ifdef HAVE_MATH_H | |
20484 | #include <math.h> | |
1409cd0b | 20485 | #endif |
db9f46a9 TG |
20486 | |
20487 | int (*ptr)() = (int (*)())frexpl; | |
20488 | ||
1409cd0b FXC |
20489 | int |
20490 | main () | |
20491 | { | |
1409cd0b FXC |
20492 | return 0; |
20493 | } | |
db9f46a9 | 20494 | |
1409cd0b | 20495 | _ACEOF |
5213506e | 20496 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20497 | gcc_cv_math_func_frexpl=yes |
1409cd0b | 20498 | else |
db9f46a9 | 20499 | gcc_cv_math_func_frexpl=no |
1409cd0b | 20500 | fi |
5213506e RW |
20501 | rm -f core conftest.err conftest.$ac_objext \ |
20502 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20503 | fi |
db9f46a9 TG |
20504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5 |
20505 | $as_echo "$gcc_cv_math_func_frexpl" >&6; } | |
20506 | if test $gcc_cv_math_func_frexpl = yes; then | |
f1cdfa01 | 20507 | |
f38a14ca TG |
20508 | cat >>confdefs.h <<_ACEOF |
20509 | #define HAVE_FREXPL 1 | |
20510 | _ACEOF | |
db9f46a9 TG |
20511 | |
20512 | fi | |
1409cd0b | 20513 | |
1409cd0b | 20514 | |
1409cd0b | 20515 | |
db9f46a9 TG |
20516 | |
20517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5 | |
20518 | $as_echo_n "checking for hypotf... " >&6; } | |
22e05272 | 20519 | if ${gcc_cv_math_func_hypotf+:} false; then : |
5213506e | 20520 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20521 | else |
db9f46a9 | 20522 | if test x$gcc_no_link = xyes; then |
22e05272 | 20523 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20524 | fi |
5213506e | 20525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20526 | /* end confdefs.h. */ |
20527 | ||
db9f46a9 TG |
20528 | #ifdef HAVE_COMPLEX_H |
20529 | #include <complex.h> | |
1409cd0b | 20530 | #endif |
db9f46a9 TG |
20531 | #ifdef HAVE_MATH_H |
20532 | #include <math.h> | |
20533 | #endif | |
20534 | ||
20535 | int (*ptr)() = (int (*)())hypotf; | |
20536 | ||
1409cd0b FXC |
20537 | int |
20538 | main () | |
20539 | { | |
1409cd0b FXC |
20540 | return 0; |
20541 | } | |
db9f46a9 | 20542 | |
1409cd0b | 20543 | _ACEOF |
5213506e | 20544 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20545 | gcc_cv_math_func_hypotf=yes |
1409cd0b | 20546 | else |
db9f46a9 | 20547 | gcc_cv_math_func_hypotf=no |
1409cd0b | 20548 | fi |
5213506e RW |
20549 | rm -f core conftest.err conftest.$ac_objext \ |
20550 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20551 | fi |
db9f46a9 TG |
20552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5 |
20553 | $as_echo "$gcc_cv_math_func_hypotf" >&6; } | |
20554 | if test $gcc_cv_math_func_hypotf = yes; then | |
f1cdfa01 | 20555 | |
f38a14ca TG |
20556 | cat >>confdefs.h <<_ACEOF |
20557 | #define HAVE_HYPOTF 1 | |
20558 | _ACEOF | |
db9f46a9 TG |
20559 | |
20560 | fi | |
20561 | ||
1409cd0b | 20562 | |
1409cd0b | 20563 | |
1409cd0b | 20564 | |
db9f46a9 TG |
20565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5 |
20566 | $as_echo_n "checking for hypot... " >&6; } | |
22e05272 | 20567 | if ${gcc_cv_math_func_hypot+:} false; then : |
5213506e | 20568 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20569 | else |
db9f46a9 | 20570 | if test x$gcc_no_link = xyes; then |
22e05272 | 20571 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20572 | fi |
5213506e | 20573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20574 | /* end confdefs.h. */ |
20575 | ||
db9f46a9 TG |
20576 | #ifdef HAVE_COMPLEX_H |
20577 | #include <complex.h> | |
20578 | #endif | |
20579 | #ifdef HAVE_MATH_H | |
20580 | #include <math.h> | |
1409cd0b | 20581 | #endif |
db9f46a9 TG |
20582 | |
20583 | int (*ptr)() = (int (*)())hypot; | |
20584 | ||
1409cd0b FXC |
20585 | int |
20586 | main () | |
20587 | { | |
1409cd0b FXC |
20588 | return 0; |
20589 | } | |
db9f46a9 | 20590 | |
1409cd0b | 20591 | _ACEOF |
5213506e | 20592 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20593 | gcc_cv_math_func_hypot=yes |
1409cd0b | 20594 | else |
db9f46a9 | 20595 | gcc_cv_math_func_hypot=no |
1409cd0b | 20596 | fi |
5213506e RW |
20597 | rm -f core conftest.err conftest.$ac_objext \ |
20598 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20599 | fi |
db9f46a9 TG |
20600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5 |
20601 | $as_echo "$gcc_cv_math_func_hypot" >&6; } | |
20602 | if test $gcc_cv_math_func_hypot = yes; then | |
f1cdfa01 | 20603 | |
f38a14ca TG |
20604 | cat >>confdefs.h <<_ACEOF |
20605 | #define HAVE_HYPOT 1 | |
20606 | _ACEOF | |
db9f46a9 TG |
20607 | |
20608 | fi | |
1409cd0b | 20609 | |
1409cd0b | 20610 | |
1409cd0b | 20611 | |
db9f46a9 TG |
20612 | |
20613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5 | |
20614 | $as_echo_n "checking for hypotl... " >&6; } | |
22e05272 | 20615 | if ${gcc_cv_math_func_hypotl+:} false; then : |
5213506e | 20616 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20617 | else |
db9f46a9 | 20618 | if test x$gcc_no_link = xyes; then |
22e05272 | 20619 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20620 | fi |
5213506e | 20621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20622 | /* end confdefs.h. */ |
20623 | ||
db9f46a9 TG |
20624 | #ifdef HAVE_COMPLEX_H |
20625 | #include <complex.h> | |
cc6d3bde | 20626 | #endif |
db9f46a9 TG |
20627 | #ifdef HAVE_MATH_H |
20628 | #include <math.h> | |
20629 | #endif | |
20630 | ||
20631 | int (*ptr)() = (int (*)())hypotl; | |
20632 | ||
cc6d3bde SK |
20633 | int |
20634 | main () | |
20635 | { | |
cc6d3bde SK |
20636 | return 0; |
20637 | } | |
db9f46a9 | 20638 | |
cc6d3bde | 20639 | _ACEOF |
5213506e | 20640 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20641 | gcc_cv_math_func_hypotl=yes |
cc6d3bde | 20642 | else |
db9f46a9 | 20643 | gcc_cv_math_func_hypotl=no |
cc6d3bde | 20644 | fi |
5213506e RW |
20645 | rm -f core conftest.err conftest.$ac_objext \ |
20646 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20647 | fi |
db9f46a9 TG |
20648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5 |
20649 | $as_echo "$gcc_cv_math_func_hypotl" >&6; } | |
20650 | if test $gcc_cv_math_func_hypotl = yes; then | |
f1cdfa01 | 20651 | |
f38a14ca TG |
20652 | cat >>confdefs.h <<_ACEOF |
20653 | #define HAVE_HYPOTL 1 | |
20654 | _ACEOF | |
cc6d3bde | 20655 | |
db9f46a9 | 20656 | fi |
cc6d3bde | 20657 | |
cc6d3bde | 20658 | |
db9f46a9 TG |
20659 | |
20660 | ||
20661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5 | |
20662 | $as_echo_n "checking for ldexpf... " >&6; } | |
22e05272 | 20663 | if ${gcc_cv_math_func_ldexpf+:} false; then : |
5213506e | 20664 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20665 | else |
db9f46a9 | 20666 | if test x$gcc_no_link = xyes; then |
22e05272 | 20667 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20668 | fi |
5213506e | 20669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20670 | /* end confdefs.h. */ |
20671 | ||
db9f46a9 TG |
20672 | #ifdef HAVE_COMPLEX_H |
20673 | #include <complex.h> | |
20674 | #endif | |
20675 | #ifdef HAVE_MATH_H | |
20676 | #include <math.h> | |
cc6d3bde | 20677 | #endif |
db9f46a9 TG |
20678 | |
20679 | int (*ptr)() = (int (*)())ldexpf; | |
20680 | ||
cc6d3bde SK |
20681 | int |
20682 | main () | |
20683 | { | |
cc6d3bde SK |
20684 | return 0; |
20685 | } | |
db9f46a9 | 20686 | |
cc6d3bde | 20687 | _ACEOF |
5213506e | 20688 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20689 | gcc_cv_math_func_ldexpf=yes |
cc6d3bde | 20690 | else |
db9f46a9 | 20691 | gcc_cv_math_func_ldexpf=no |
cc6d3bde | 20692 | fi |
5213506e RW |
20693 | rm -f core conftest.err conftest.$ac_objext \ |
20694 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20695 | fi |
db9f46a9 TG |
20696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5 |
20697 | $as_echo "$gcc_cv_math_func_ldexpf" >&6; } | |
20698 | if test $gcc_cv_math_func_ldexpf = yes; then | |
f1cdfa01 | 20699 | |
f38a14ca TG |
20700 | cat >>confdefs.h <<_ACEOF |
20701 | #define HAVE_LDEXPF 1 | |
20702 | _ACEOF | |
db9f46a9 TG |
20703 | |
20704 | fi | |
cc6d3bde | 20705 | |
cc6d3bde | 20706 | |
cc6d3bde | 20707 | |
db9f46a9 TG |
20708 | |
20709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5 | |
20710 | $as_echo_n "checking for ldexp... " >&6; } | |
22e05272 | 20711 | if ${gcc_cv_math_func_ldexp+:} false; then : |
5213506e | 20712 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20713 | else |
db9f46a9 | 20714 | if test x$gcc_no_link = xyes; then |
22e05272 | 20715 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20716 | fi |
5213506e | 20717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20718 | /* end confdefs.h. */ |
20719 | ||
db9f46a9 TG |
20720 | #ifdef HAVE_COMPLEX_H |
20721 | #include <complex.h> | |
cc6d3bde | 20722 | #endif |
db9f46a9 TG |
20723 | #ifdef HAVE_MATH_H |
20724 | #include <math.h> | |
20725 | #endif | |
20726 | ||
20727 | int (*ptr)() = (int (*)())ldexp; | |
20728 | ||
cc6d3bde SK |
20729 | int |
20730 | main () | |
20731 | { | |
cc6d3bde SK |
20732 | return 0; |
20733 | } | |
db9f46a9 | 20734 | |
cc6d3bde | 20735 | _ACEOF |
5213506e | 20736 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20737 | gcc_cv_math_func_ldexp=yes |
cc6d3bde | 20738 | else |
db9f46a9 | 20739 | gcc_cv_math_func_ldexp=no |
cc6d3bde | 20740 | fi |
5213506e RW |
20741 | rm -f core conftest.err conftest.$ac_objext \ |
20742 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20743 | fi |
db9f46a9 TG |
20744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5 |
20745 | $as_echo "$gcc_cv_math_func_ldexp" >&6; } | |
20746 | if test $gcc_cv_math_func_ldexp = yes; then | |
f1cdfa01 | 20747 | |
f38a14ca TG |
20748 | cat >>confdefs.h <<_ACEOF |
20749 | #define HAVE_LDEXP 1 | |
20750 | _ACEOF | |
db9f46a9 TG |
20751 | |
20752 | fi | |
20753 | ||
cc6d3bde | 20754 | |
cc6d3bde | 20755 | |
cc6d3bde | 20756 | |
db9f46a9 TG |
20757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5 |
20758 | $as_echo_n "checking for ldexpl... " >&6; } | |
22e05272 | 20759 | if ${gcc_cv_math_func_ldexpl+:} false; then : |
5213506e | 20760 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20761 | else |
db9f46a9 | 20762 | if test x$gcc_no_link = xyes; then |
22e05272 | 20763 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20764 | fi |
5213506e | 20765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20766 | /* end confdefs.h. */ |
20767 | ||
db9f46a9 TG |
20768 | #ifdef HAVE_COMPLEX_H |
20769 | #include <complex.h> | |
20770 | #endif | |
20771 | #ifdef HAVE_MATH_H | |
20772 | #include <math.h> | |
1409cd0b | 20773 | #endif |
db9f46a9 TG |
20774 | |
20775 | int (*ptr)() = (int (*)())ldexpl; | |
20776 | ||
1409cd0b FXC |
20777 | int |
20778 | main () | |
20779 | { | |
1409cd0b FXC |
20780 | return 0; |
20781 | } | |
db9f46a9 | 20782 | |
1409cd0b | 20783 | _ACEOF |
5213506e | 20784 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20785 | gcc_cv_math_func_ldexpl=yes |
1409cd0b | 20786 | else |
db9f46a9 | 20787 | gcc_cv_math_func_ldexpl=no |
1409cd0b | 20788 | fi |
5213506e RW |
20789 | rm -f core conftest.err conftest.$ac_objext \ |
20790 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20791 | fi |
db9f46a9 TG |
20792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5 |
20793 | $as_echo "$gcc_cv_math_func_ldexpl" >&6; } | |
20794 | if test $gcc_cv_math_func_ldexpl = yes; then | |
f1cdfa01 | 20795 | |
f38a14ca TG |
20796 | cat >>confdefs.h <<_ACEOF |
20797 | #define HAVE_LDEXPL 1 | |
20798 | _ACEOF | |
db9f46a9 TG |
20799 | |
20800 | fi | |
1409cd0b | 20801 | |
1409cd0b | 20802 | |
1409cd0b | 20803 | |
db9f46a9 TG |
20804 | |
20805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5 | |
20806 | $as_echo_n "checking for logf... " >&6; } | |
22e05272 | 20807 | if ${gcc_cv_math_func_logf+:} false; then : |
5213506e | 20808 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20809 | else |
db9f46a9 | 20810 | if test x$gcc_no_link = xyes; then |
22e05272 | 20811 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20812 | fi |
5213506e | 20813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20814 | /* end confdefs.h. */ |
20815 | ||
db9f46a9 TG |
20816 | #ifdef HAVE_COMPLEX_H |
20817 | #include <complex.h> | |
1409cd0b | 20818 | #endif |
db9f46a9 TG |
20819 | #ifdef HAVE_MATH_H |
20820 | #include <math.h> | |
20821 | #endif | |
20822 | ||
20823 | int (*ptr)() = (int (*)())logf; | |
20824 | ||
1409cd0b FXC |
20825 | int |
20826 | main () | |
20827 | { | |
1409cd0b FXC |
20828 | return 0; |
20829 | } | |
db9f46a9 | 20830 | |
1409cd0b | 20831 | _ACEOF |
5213506e | 20832 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20833 | gcc_cv_math_func_logf=yes |
1409cd0b | 20834 | else |
db9f46a9 | 20835 | gcc_cv_math_func_logf=no |
1409cd0b | 20836 | fi |
5213506e RW |
20837 | rm -f core conftest.err conftest.$ac_objext \ |
20838 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20839 | fi |
db9f46a9 TG |
20840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5 |
20841 | $as_echo "$gcc_cv_math_func_logf" >&6; } | |
20842 | if test $gcc_cv_math_func_logf = yes; then | |
f1cdfa01 | 20843 | |
f38a14ca TG |
20844 | cat >>confdefs.h <<_ACEOF |
20845 | #define HAVE_LOGF 1 | |
20846 | _ACEOF | |
1409cd0b | 20847 | |
db9f46a9 | 20848 | fi |
1409cd0b | 20849 | |
1409cd0b | 20850 | |
db9f46a9 TG |
20851 | |
20852 | ||
20853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5 | |
20854 | $as_echo_n "checking for log... " >&6; } | |
22e05272 | 20855 | if ${gcc_cv_math_func_log+:} false; then : |
5213506e | 20856 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20857 | else |
db9f46a9 | 20858 | if test x$gcc_no_link = xyes; then |
22e05272 | 20859 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20860 | fi |
5213506e | 20861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20862 | /* end confdefs.h. */ |
20863 | ||
db9f46a9 TG |
20864 | #ifdef HAVE_COMPLEX_H |
20865 | #include <complex.h> | |
20866 | #endif | |
20867 | #ifdef HAVE_MATH_H | |
20868 | #include <math.h> | |
1409cd0b | 20869 | #endif |
db9f46a9 TG |
20870 | |
20871 | int (*ptr)() = (int (*)())log; | |
20872 | ||
1409cd0b FXC |
20873 | int |
20874 | main () | |
20875 | { | |
1409cd0b FXC |
20876 | return 0; |
20877 | } | |
db9f46a9 | 20878 | |
1409cd0b | 20879 | _ACEOF |
5213506e | 20880 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20881 | gcc_cv_math_func_log=yes |
1409cd0b | 20882 | else |
db9f46a9 | 20883 | gcc_cv_math_func_log=no |
1409cd0b | 20884 | fi |
5213506e RW |
20885 | rm -f core conftest.err conftest.$ac_objext \ |
20886 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20887 | fi |
db9f46a9 TG |
20888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5 |
20889 | $as_echo "$gcc_cv_math_func_log" >&6; } | |
20890 | if test $gcc_cv_math_func_log = yes; then | |
f1cdfa01 | 20891 | |
f38a14ca TG |
20892 | cat >>confdefs.h <<_ACEOF |
20893 | #define HAVE_LOG 1 | |
20894 | _ACEOF | |
db9f46a9 TG |
20895 | |
20896 | fi | |
1409cd0b | 20897 | |
1409cd0b | 20898 | |
1409cd0b | 20899 | |
db9f46a9 TG |
20900 | |
20901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5 | |
20902 | $as_echo_n "checking for logl... " >&6; } | |
22e05272 | 20903 | if ${gcc_cv_math_func_logl+:} false; then : |
5213506e | 20904 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20905 | else |
db9f46a9 | 20906 | if test x$gcc_no_link = xyes; then |
22e05272 | 20907 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20908 | fi |
5213506e | 20909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20910 | /* end confdefs.h. */ |
20911 | ||
db9f46a9 TG |
20912 | #ifdef HAVE_COMPLEX_H |
20913 | #include <complex.h> | |
1409cd0b | 20914 | #endif |
db9f46a9 TG |
20915 | #ifdef HAVE_MATH_H |
20916 | #include <math.h> | |
20917 | #endif | |
20918 | ||
20919 | int (*ptr)() = (int (*)())logl; | |
20920 | ||
1409cd0b FXC |
20921 | int |
20922 | main () | |
20923 | { | |
1409cd0b FXC |
20924 | return 0; |
20925 | } | |
db9f46a9 | 20926 | |
1409cd0b | 20927 | _ACEOF |
5213506e | 20928 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20929 | gcc_cv_math_func_logl=yes |
1409cd0b | 20930 | else |
db9f46a9 | 20931 | gcc_cv_math_func_logl=no |
1409cd0b | 20932 | fi |
5213506e RW |
20933 | rm -f core conftest.err conftest.$ac_objext \ |
20934 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20935 | fi |
db9f46a9 TG |
20936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5 |
20937 | $as_echo "$gcc_cv_math_func_logl" >&6; } | |
20938 | if test $gcc_cv_math_func_logl = yes; then | |
f1cdfa01 | 20939 | |
f38a14ca TG |
20940 | cat >>confdefs.h <<_ACEOF |
20941 | #define HAVE_LOGL 1 | |
20942 | _ACEOF | |
db9f46a9 TG |
20943 | |
20944 | fi | |
20945 | ||
1409cd0b | 20946 | |
1409cd0b | 20947 | |
1409cd0b | 20948 | |
db9f46a9 TG |
20949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5 |
20950 | $as_echo_n "checking for clogf... " >&6; } | |
22e05272 | 20951 | if ${gcc_cv_math_func_clogf+:} false; then : |
5213506e | 20952 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20953 | else |
db9f46a9 | 20954 | if test x$gcc_no_link = xyes; then |
22e05272 | 20955 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20956 | fi |
5213506e | 20957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20958 | /* end confdefs.h. */ |
20959 | ||
db9f46a9 TG |
20960 | #ifdef HAVE_COMPLEX_H |
20961 | #include <complex.h> | |
20962 | #endif | |
20963 | #ifdef HAVE_MATH_H | |
20964 | #include <math.h> | |
1409cd0b | 20965 | #endif |
db9f46a9 TG |
20966 | |
20967 | int (*ptr)() = (int (*)())clogf; | |
20968 | ||
1409cd0b FXC |
20969 | int |
20970 | main () | |
20971 | { | |
1409cd0b FXC |
20972 | return 0; |
20973 | } | |
db9f46a9 | 20974 | |
1409cd0b | 20975 | _ACEOF |
5213506e | 20976 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20977 | gcc_cv_math_func_clogf=yes |
1409cd0b | 20978 | else |
db9f46a9 | 20979 | gcc_cv_math_func_clogf=no |
1409cd0b | 20980 | fi |
5213506e RW |
20981 | rm -f core conftest.err conftest.$ac_objext \ |
20982 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20983 | fi |
db9f46a9 TG |
20984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5 |
20985 | $as_echo "$gcc_cv_math_func_clogf" >&6; } | |
20986 | if test $gcc_cv_math_func_clogf = yes; then | |
f1cdfa01 | 20987 | |
f38a14ca TG |
20988 | cat >>confdefs.h <<_ACEOF |
20989 | #define HAVE_CLOGF 1 | |
20990 | _ACEOF | |
db9f46a9 TG |
20991 | |
20992 | fi | |
1409cd0b | 20993 | |
1409cd0b | 20994 | |
1409cd0b | 20995 | |
db9f46a9 TG |
20996 | |
20997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5 | |
20998 | $as_echo_n "checking for clog... " >&6; } | |
22e05272 | 20999 | if ${gcc_cv_math_func_clog+:} false; then : |
5213506e | 21000 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21001 | else |
db9f46a9 | 21002 | if test x$gcc_no_link = xyes; then |
22e05272 | 21003 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21004 | fi |
5213506e | 21005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21006 | /* end confdefs.h. */ |
21007 | ||
db9f46a9 TG |
21008 | #ifdef HAVE_COMPLEX_H |
21009 | #include <complex.h> | |
1409cd0b | 21010 | #endif |
db9f46a9 TG |
21011 | #ifdef HAVE_MATH_H |
21012 | #include <math.h> | |
21013 | #endif | |
21014 | ||
21015 | int (*ptr)() = (int (*)())clog; | |
21016 | ||
1409cd0b FXC |
21017 | int |
21018 | main () | |
21019 | { | |
1409cd0b FXC |
21020 | return 0; |
21021 | } | |
db9f46a9 | 21022 | |
1409cd0b | 21023 | _ACEOF |
5213506e | 21024 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21025 | gcc_cv_math_func_clog=yes |
1409cd0b | 21026 | else |
db9f46a9 | 21027 | gcc_cv_math_func_clog=no |
1409cd0b | 21028 | fi |
5213506e RW |
21029 | rm -f core conftest.err conftest.$ac_objext \ |
21030 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21031 | fi |
db9f46a9 TG |
21032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5 |
21033 | $as_echo "$gcc_cv_math_func_clog" >&6; } | |
21034 | if test $gcc_cv_math_func_clog = yes; then | |
f1cdfa01 | 21035 | |
f38a14ca TG |
21036 | cat >>confdefs.h <<_ACEOF |
21037 | #define HAVE_CLOG 1 | |
21038 | _ACEOF | |
1409cd0b | 21039 | |
db9f46a9 | 21040 | fi |
1409cd0b | 21041 | |
1409cd0b | 21042 | |
db9f46a9 TG |
21043 | |
21044 | ||
21045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5 | |
21046 | $as_echo_n "checking for clogl... " >&6; } | |
22e05272 | 21047 | if ${gcc_cv_math_func_clogl+:} false; then : |
5213506e | 21048 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21049 | else |
db9f46a9 | 21050 | if test x$gcc_no_link = xyes; then |
22e05272 | 21051 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21052 | fi |
5213506e | 21053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21054 | /* end confdefs.h. */ |
21055 | ||
db9f46a9 TG |
21056 | #ifdef HAVE_COMPLEX_H |
21057 | #include <complex.h> | |
21058 | #endif | |
21059 | #ifdef HAVE_MATH_H | |
21060 | #include <math.h> | |
1409cd0b | 21061 | #endif |
db9f46a9 TG |
21062 | |
21063 | int (*ptr)() = (int (*)())clogl; | |
21064 | ||
1409cd0b FXC |
21065 | int |
21066 | main () | |
21067 | { | |
1409cd0b FXC |
21068 | return 0; |
21069 | } | |
db9f46a9 | 21070 | |
1409cd0b | 21071 | _ACEOF |
5213506e | 21072 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21073 | gcc_cv_math_func_clogl=yes |
1409cd0b | 21074 | else |
db9f46a9 | 21075 | gcc_cv_math_func_clogl=no |
1409cd0b | 21076 | fi |
5213506e RW |
21077 | rm -f core conftest.err conftest.$ac_objext \ |
21078 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21079 | fi |
db9f46a9 TG |
21080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5 |
21081 | $as_echo "$gcc_cv_math_func_clogl" >&6; } | |
21082 | if test $gcc_cv_math_func_clogl = yes; then | |
f1cdfa01 | 21083 | |
f38a14ca TG |
21084 | cat >>confdefs.h <<_ACEOF |
21085 | #define HAVE_CLOGL 1 | |
21086 | _ACEOF | |
db9f46a9 TG |
21087 | |
21088 | fi | |
1409cd0b | 21089 | |
1409cd0b | 21090 | |
1409cd0b | 21091 | |
db9f46a9 TG |
21092 | |
21093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5 | |
21094 | $as_echo_n "checking for log10f... " >&6; } | |
22e05272 | 21095 | if ${gcc_cv_math_func_log10f+:} false; then : |
5213506e | 21096 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21097 | else |
db9f46a9 | 21098 | if test x$gcc_no_link = xyes; then |
22e05272 | 21099 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21100 | fi |
5213506e | 21101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21102 | /* end confdefs.h. */ |
21103 | ||
db9f46a9 TG |
21104 | #ifdef HAVE_COMPLEX_H |
21105 | #include <complex.h> | |
1409cd0b | 21106 | #endif |
db9f46a9 TG |
21107 | #ifdef HAVE_MATH_H |
21108 | #include <math.h> | |
21109 | #endif | |
21110 | ||
21111 | int (*ptr)() = (int (*)())log10f; | |
21112 | ||
1409cd0b FXC |
21113 | int |
21114 | main () | |
21115 | { | |
1409cd0b FXC |
21116 | return 0; |
21117 | } | |
db9f46a9 | 21118 | |
1409cd0b | 21119 | _ACEOF |
5213506e | 21120 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21121 | gcc_cv_math_func_log10f=yes |
1409cd0b | 21122 | else |
db9f46a9 | 21123 | gcc_cv_math_func_log10f=no |
1409cd0b | 21124 | fi |
5213506e RW |
21125 | rm -f core conftest.err conftest.$ac_objext \ |
21126 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21127 | fi |
db9f46a9 TG |
21128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5 |
21129 | $as_echo "$gcc_cv_math_func_log10f" >&6; } | |
21130 | if test $gcc_cv_math_func_log10f = yes; then | |
f1cdfa01 | 21131 | |
f38a14ca TG |
21132 | cat >>confdefs.h <<_ACEOF |
21133 | #define HAVE_LOG10F 1 | |
21134 | _ACEOF | |
db9f46a9 TG |
21135 | |
21136 | fi | |
21137 | ||
1409cd0b | 21138 | |
1409cd0b | 21139 | |
1409cd0b | 21140 | |
db9f46a9 TG |
21141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5 |
21142 | $as_echo_n "checking for log10... " >&6; } | |
22e05272 | 21143 | if ${gcc_cv_math_func_log10+:} false; then : |
5213506e | 21144 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21145 | else |
db9f46a9 | 21146 | if test x$gcc_no_link = xyes; then |
22e05272 | 21147 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21148 | fi |
5213506e | 21149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21150 | /* end confdefs.h. */ |
21151 | ||
db9f46a9 TG |
21152 | #ifdef HAVE_COMPLEX_H |
21153 | #include <complex.h> | |
21154 | #endif | |
21155 | #ifdef HAVE_MATH_H | |
21156 | #include <math.h> | |
1409cd0b | 21157 | #endif |
db9f46a9 TG |
21158 | |
21159 | int (*ptr)() = (int (*)())log10; | |
21160 | ||
1409cd0b FXC |
21161 | int |
21162 | main () | |
21163 | { | |
1409cd0b FXC |
21164 | return 0; |
21165 | } | |
db9f46a9 | 21166 | |
1409cd0b | 21167 | _ACEOF |
5213506e | 21168 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21169 | gcc_cv_math_func_log10=yes |
1409cd0b | 21170 | else |
db9f46a9 | 21171 | gcc_cv_math_func_log10=no |
1409cd0b | 21172 | fi |
5213506e RW |
21173 | rm -f core conftest.err conftest.$ac_objext \ |
21174 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21175 | fi |
db9f46a9 TG |
21176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5 |
21177 | $as_echo "$gcc_cv_math_func_log10" >&6; } | |
21178 | if test $gcc_cv_math_func_log10 = yes; then | |
f1cdfa01 | 21179 | |
f38a14ca TG |
21180 | cat >>confdefs.h <<_ACEOF |
21181 | #define HAVE_LOG10 1 | |
21182 | _ACEOF | |
db9f46a9 TG |
21183 | |
21184 | fi | |
1409cd0b | 21185 | |
1409cd0b | 21186 | |
1409cd0b | 21187 | |
db9f46a9 TG |
21188 | |
21189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5 | |
21190 | $as_echo_n "checking for log10l... " >&6; } | |
22e05272 | 21191 | if ${gcc_cv_math_func_log10l+:} false; then : |
5213506e | 21192 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21193 | else |
db9f46a9 | 21194 | if test x$gcc_no_link = xyes; then |
22e05272 | 21195 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21196 | fi |
5213506e | 21197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21198 | /* end confdefs.h. */ |
21199 | ||
db9f46a9 TG |
21200 | #ifdef HAVE_COMPLEX_H |
21201 | #include <complex.h> | |
1409cd0b | 21202 | #endif |
db9f46a9 TG |
21203 | #ifdef HAVE_MATH_H |
21204 | #include <math.h> | |
21205 | #endif | |
21206 | ||
21207 | int (*ptr)() = (int (*)())log10l; | |
21208 | ||
1409cd0b FXC |
21209 | int |
21210 | main () | |
21211 | { | |
1409cd0b FXC |
21212 | return 0; |
21213 | } | |
db9f46a9 | 21214 | |
1409cd0b | 21215 | _ACEOF |
5213506e | 21216 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21217 | gcc_cv_math_func_log10l=yes |
1409cd0b | 21218 | else |
db9f46a9 | 21219 | gcc_cv_math_func_log10l=no |
1409cd0b | 21220 | fi |
5213506e RW |
21221 | rm -f core conftest.err conftest.$ac_objext \ |
21222 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21223 | fi |
db9f46a9 TG |
21224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5 |
21225 | $as_echo "$gcc_cv_math_func_log10l" >&6; } | |
21226 | if test $gcc_cv_math_func_log10l = yes; then | |
f1cdfa01 | 21227 | |
f38a14ca TG |
21228 | cat >>confdefs.h <<_ACEOF |
21229 | #define HAVE_LOG10L 1 | |
21230 | _ACEOF | |
1409cd0b | 21231 | |
db9f46a9 | 21232 | fi |
1409cd0b | 21233 | |
1409cd0b | 21234 | |
db9f46a9 TG |
21235 | |
21236 | ||
21237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5 | |
21238 | $as_echo_n "checking for clog10f... " >&6; } | |
22e05272 | 21239 | if ${gcc_cv_math_func_clog10f+:} false; then : |
5213506e | 21240 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21241 | else |
db9f46a9 | 21242 | if test x$gcc_no_link = xyes; then |
22e05272 | 21243 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21244 | fi |
5213506e | 21245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21246 | /* end confdefs.h. */ |
21247 | ||
db9f46a9 TG |
21248 | #ifdef HAVE_COMPLEX_H |
21249 | #include <complex.h> | |
21250 | #endif | |
21251 | #ifdef HAVE_MATH_H | |
21252 | #include <math.h> | |
1409cd0b | 21253 | #endif |
db9f46a9 TG |
21254 | |
21255 | int (*ptr)() = (int (*)())clog10f; | |
21256 | ||
1409cd0b FXC |
21257 | int |
21258 | main () | |
21259 | { | |
1409cd0b FXC |
21260 | return 0; |
21261 | } | |
db9f46a9 | 21262 | |
1409cd0b | 21263 | _ACEOF |
5213506e | 21264 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21265 | gcc_cv_math_func_clog10f=yes |
1409cd0b | 21266 | else |
db9f46a9 | 21267 | gcc_cv_math_func_clog10f=no |
1409cd0b | 21268 | fi |
5213506e RW |
21269 | rm -f core conftest.err conftest.$ac_objext \ |
21270 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21271 | fi |
db9f46a9 TG |
21272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5 |
21273 | $as_echo "$gcc_cv_math_func_clog10f" >&6; } | |
21274 | if test $gcc_cv_math_func_clog10f = yes; then | |
f1cdfa01 | 21275 | |
f38a14ca TG |
21276 | cat >>confdefs.h <<_ACEOF |
21277 | #define HAVE_CLOG10F 1 | |
21278 | _ACEOF | |
db9f46a9 TG |
21279 | |
21280 | fi | |
1409cd0b | 21281 | |
1409cd0b | 21282 | |
1409cd0b | 21283 | |
db9f46a9 TG |
21284 | |
21285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5 | |
21286 | $as_echo_n "checking for clog10... " >&6; } | |
22e05272 | 21287 | if ${gcc_cv_math_func_clog10+:} false; then : |
5213506e | 21288 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21289 | else |
db9f46a9 | 21290 | if test x$gcc_no_link = xyes; then |
22e05272 | 21291 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21292 | fi |
5213506e | 21293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21294 | /* end confdefs.h. */ |
21295 | ||
db9f46a9 TG |
21296 | #ifdef HAVE_COMPLEX_H |
21297 | #include <complex.h> | |
1409cd0b | 21298 | #endif |
db9f46a9 TG |
21299 | #ifdef HAVE_MATH_H |
21300 | #include <math.h> | |
21301 | #endif | |
21302 | ||
21303 | int (*ptr)() = (int (*)())clog10; | |
21304 | ||
1409cd0b FXC |
21305 | int |
21306 | main () | |
21307 | { | |
5213506e RW |
21308 | return 0; |
21309 | } | |
db9f46a9 | 21310 | |
5213506e RW |
21311 | _ACEOF |
21312 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 21313 | gcc_cv_math_func_clog10=yes |
1409cd0b | 21314 | else |
db9f46a9 | 21315 | gcc_cv_math_func_clog10=no |
1409cd0b | 21316 | fi |
5213506e RW |
21317 | rm -f core conftest.err conftest.$ac_objext \ |
21318 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21319 | fi |
db9f46a9 TG |
21320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5 |
21321 | $as_echo "$gcc_cv_math_func_clog10" >&6; } | |
21322 | if test $gcc_cv_math_func_clog10 = yes; then | |
f1cdfa01 | 21323 | |
f38a14ca TG |
21324 | cat >>confdefs.h <<_ACEOF |
21325 | #define HAVE_CLOG10 1 | |
21326 | _ACEOF | |
db9f46a9 TG |
21327 | |
21328 | fi | |
21329 | ||
1409cd0b | 21330 | |
1409cd0b | 21331 | |
1409cd0b | 21332 | |
db9f46a9 TG |
21333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5 |
21334 | $as_echo_n "checking for clog10l... " >&6; } | |
22e05272 | 21335 | if ${gcc_cv_math_func_clog10l+:} false; then : |
5213506e | 21336 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21337 | else |
db9f46a9 | 21338 | if test x$gcc_no_link = xyes; then |
22e05272 | 21339 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21340 | fi |
5213506e | 21341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21342 | /* end confdefs.h. */ |
21343 | ||
db9f46a9 TG |
21344 | #ifdef HAVE_COMPLEX_H |
21345 | #include <complex.h> | |
21346 | #endif | |
21347 | #ifdef HAVE_MATH_H | |
21348 | #include <math.h> | |
1409cd0b | 21349 | #endif |
db9f46a9 TG |
21350 | |
21351 | int (*ptr)() = (int (*)())clog10l; | |
21352 | ||
1409cd0b FXC |
21353 | int |
21354 | main () | |
21355 | { | |
1409cd0b FXC |
21356 | return 0; |
21357 | } | |
db9f46a9 | 21358 | |
1409cd0b | 21359 | _ACEOF |
5213506e | 21360 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21361 | gcc_cv_math_func_clog10l=yes |
1409cd0b | 21362 | else |
db9f46a9 | 21363 | gcc_cv_math_func_clog10l=no |
1409cd0b | 21364 | fi |
5213506e RW |
21365 | rm -f core conftest.err conftest.$ac_objext \ |
21366 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21367 | fi |
db9f46a9 TG |
21368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5 |
21369 | $as_echo "$gcc_cv_math_func_clog10l" >&6; } | |
21370 | if test $gcc_cv_math_func_clog10l = yes; then | |
f1cdfa01 | 21371 | |
f38a14ca TG |
21372 | cat >>confdefs.h <<_ACEOF |
21373 | #define HAVE_CLOG10L 1 | |
21374 | _ACEOF | |
db9f46a9 TG |
21375 | |
21376 | fi | |
1409cd0b | 21377 | |
1409cd0b | 21378 | |
1409cd0b | 21379 | |
db9f46a9 TG |
21380 | |
21381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5 | |
21382 | $as_echo_n "checking for nextafterf... " >&6; } | |
22e05272 | 21383 | if ${gcc_cv_math_func_nextafterf+:} false; then : |
5213506e | 21384 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21385 | else |
db9f46a9 | 21386 | if test x$gcc_no_link = xyes; then |
22e05272 | 21387 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21388 | fi |
5213506e | 21389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21390 | /* end confdefs.h. */ |
21391 | ||
db9f46a9 TG |
21392 | #ifdef HAVE_COMPLEX_H |
21393 | #include <complex.h> | |
1409cd0b | 21394 | #endif |
db9f46a9 TG |
21395 | #ifdef HAVE_MATH_H |
21396 | #include <math.h> | |
21397 | #endif | |
21398 | ||
21399 | int (*ptr)() = (int (*)())nextafterf; | |
21400 | ||
1409cd0b FXC |
21401 | int |
21402 | main () | |
21403 | { | |
1409cd0b FXC |
21404 | return 0; |
21405 | } | |
db9f46a9 | 21406 | |
1409cd0b | 21407 | _ACEOF |
5213506e | 21408 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21409 | gcc_cv_math_func_nextafterf=yes |
1409cd0b | 21410 | else |
db9f46a9 | 21411 | gcc_cv_math_func_nextafterf=no |
1409cd0b | 21412 | fi |
5213506e RW |
21413 | rm -f core conftest.err conftest.$ac_objext \ |
21414 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21415 | fi |
db9f46a9 TG |
21416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5 |
21417 | $as_echo "$gcc_cv_math_func_nextafterf" >&6; } | |
21418 | if test $gcc_cv_math_func_nextafterf = yes; then | |
f1cdfa01 | 21419 | |
f38a14ca TG |
21420 | cat >>confdefs.h <<_ACEOF |
21421 | #define HAVE_NEXTAFTERF 1 | |
21422 | _ACEOF | |
1409cd0b | 21423 | |
db9f46a9 | 21424 | fi |
1409cd0b | 21425 | |
1409cd0b | 21426 | |
db9f46a9 TG |
21427 | |
21428 | ||
21429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5 | |
21430 | $as_echo_n "checking for nextafter... " >&6; } | |
22e05272 | 21431 | if ${gcc_cv_math_func_nextafter+:} false; then : |
5213506e | 21432 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21433 | else |
db9f46a9 | 21434 | if test x$gcc_no_link = xyes; then |
22e05272 | 21435 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21436 | fi |
5213506e | 21437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21438 | /* end confdefs.h. */ |
21439 | ||
db9f46a9 TG |
21440 | #ifdef HAVE_COMPLEX_H |
21441 | #include <complex.h> | |
21442 | #endif | |
21443 | #ifdef HAVE_MATH_H | |
21444 | #include <math.h> | |
1409cd0b | 21445 | #endif |
db9f46a9 TG |
21446 | |
21447 | int (*ptr)() = (int (*)())nextafter; | |
21448 | ||
1409cd0b FXC |
21449 | int |
21450 | main () | |
21451 | { | |
1409cd0b FXC |
21452 | return 0; |
21453 | } | |
db9f46a9 | 21454 | |
1409cd0b | 21455 | _ACEOF |
5213506e | 21456 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21457 | gcc_cv_math_func_nextafter=yes |
1409cd0b | 21458 | else |
db9f46a9 | 21459 | gcc_cv_math_func_nextafter=no |
1409cd0b | 21460 | fi |
5213506e RW |
21461 | rm -f core conftest.err conftest.$ac_objext \ |
21462 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21463 | fi |
db9f46a9 TG |
21464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5 |
21465 | $as_echo "$gcc_cv_math_func_nextafter" >&6; } | |
21466 | if test $gcc_cv_math_func_nextafter = yes; then | |
f1cdfa01 | 21467 | |
f38a14ca TG |
21468 | cat >>confdefs.h <<_ACEOF |
21469 | #define HAVE_NEXTAFTER 1 | |
21470 | _ACEOF | |
db9f46a9 TG |
21471 | |
21472 | fi | |
1409cd0b | 21473 | |
1409cd0b | 21474 | |
1409cd0b | 21475 | |
db9f46a9 TG |
21476 | |
21477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5 | |
21478 | $as_echo_n "checking for nextafterl... " >&6; } | |
22e05272 | 21479 | if ${gcc_cv_math_func_nextafterl+:} false; then : |
5213506e | 21480 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21481 | else |
db9f46a9 | 21482 | if test x$gcc_no_link = xyes; then |
22e05272 | 21483 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21484 | fi |
5213506e | 21485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21486 | /* end confdefs.h. */ |
21487 | ||
db9f46a9 TG |
21488 | #ifdef HAVE_COMPLEX_H |
21489 | #include <complex.h> | |
1409cd0b | 21490 | #endif |
db9f46a9 TG |
21491 | #ifdef HAVE_MATH_H |
21492 | #include <math.h> | |
21493 | #endif | |
21494 | ||
21495 | int (*ptr)() = (int (*)())nextafterl; | |
21496 | ||
1409cd0b FXC |
21497 | int |
21498 | main () | |
21499 | { | |
1409cd0b FXC |
21500 | return 0; |
21501 | } | |
db9f46a9 | 21502 | |
1409cd0b | 21503 | _ACEOF |
5213506e | 21504 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21505 | gcc_cv_math_func_nextafterl=yes |
1409cd0b | 21506 | else |
db9f46a9 | 21507 | gcc_cv_math_func_nextafterl=no |
1409cd0b | 21508 | fi |
5213506e RW |
21509 | rm -f core conftest.err conftest.$ac_objext \ |
21510 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21511 | fi |
db9f46a9 TG |
21512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5 |
21513 | $as_echo "$gcc_cv_math_func_nextafterl" >&6; } | |
21514 | if test $gcc_cv_math_func_nextafterl = yes; then | |
f1cdfa01 | 21515 | |
f38a14ca TG |
21516 | cat >>confdefs.h <<_ACEOF |
21517 | #define HAVE_NEXTAFTERL 1 | |
21518 | _ACEOF | |
db9f46a9 TG |
21519 | |
21520 | fi | |
21521 | ||
1409cd0b | 21522 | |
1409cd0b | 21523 | |
1409cd0b | 21524 | |
db9f46a9 TG |
21525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5 |
21526 | $as_echo_n "checking for powf... " >&6; } | |
22e05272 | 21527 | if ${gcc_cv_math_func_powf+:} false; then : |
5213506e | 21528 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21529 | else |
db9f46a9 | 21530 | if test x$gcc_no_link = xyes; then |
22e05272 | 21531 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21532 | fi |
5213506e | 21533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21534 | /* end confdefs.h. */ |
21535 | ||
db9f46a9 TG |
21536 | #ifdef HAVE_COMPLEX_H |
21537 | #include <complex.h> | |
21538 | #endif | |
21539 | #ifdef HAVE_MATH_H | |
21540 | #include <math.h> | |
1409cd0b | 21541 | #endif |
db9f46a9 TG |
21542 | |
21543 | int (*ptr)() = (int (*)())powf; | |
21544 | ||
1409cd0b FXC |
21545 | int |
21546 | main () | |
21547 | { | |
1409cd0b FXC |
21548 | return 0; |
21549 | } | |
db9f46a9 | 21550 | |
1409cd0b | 21551 | _ACEOF |
5213506e | 21552 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21553 | gcc_cv_math_func_powf=yes |
1409cd0b | 21554 | else |
db9f46a9 | 21555 | gcc_cv_math_func_powf=no |
1409cd0b | 21556 | fi |
5213506e RW |
21557 | rm -f core conftest.err conftest.$ac_objext \ |
21558 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21559 | fi |
db9f46a9 TG |
21560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5 |
21561 | $as_echo "$gcc_cv_math_func_powf" >&6; } | |
21562 | if test $gcc_cv_math_func_powf = yes; then | |
f1cdfa01 | 21563 | |
f38a14ca TG |
21564 | cat >>confdefs.h <<_ACEOF |
21565 | #define HAVE_POWF 1 | |
21566 | _ACEOF | |
db9f46a9 TG |
21567 | |
21568 | fi | |
1409cd0b | 21569 | |
1409cd0b | 21570 | |
1409cd0b | 21571 | |
db9f46a9 TG |
21572 | |
21573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5 | |
21574 | $as_echo_n "checking for pow... " >&6; } | |
22e05272 | 21575 | if ${gcc_cv_math_func_pow+:} false; then : |
5213506e | 21576 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21577 | else |
db9f46a9 | 21578 | if test x$gcc_no_link = xyes; then |
22e05272 | 21579 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21580 | fi |
5213506e | 21581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21582 | /* end confdefs.h. */ |
21583 | ||
db9f46a9 TG |
21584 | #ifdef HAVE_COMPLEX_H |
21585 | #include <complex.h> | |
1409cd0b | 21586 | #endif |
db9f46a9 TG |
21587 | #ifdef HAVE_MATH_H |
21588 | #include <math.h> | |
21589 | #endif | |
21590 | ||
21591 | int (*ptr)() = (int (*)())pow; | |
21592 | ||
1409cd0b FXC |
21593 | int |
21594 | main () | |
21595 | { | |
1409cd0b FXC |
21596 | return 0; |
21597 | } | |
db9f46a9 | 21598 | |
1409cd0b | 21599 | _ACEOF |
5213506e | 21600 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21601 | gcc_cv_math_func_pow=yes |
1409cd0b | 21602 | else |
db9f46a9 | 21603 | gcc_cv_math_func_pow=no |
1409cd0b | 21604 | fi |
5213506e RW |
21605 | rm -f core conftest.err conftest.$ac_objext \ |
21606 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21607 | fi |
db9f46a9 TG |
21608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5 |
21609 | $as_echo "$gcc_cv_math_func_pow" >&6; } | |
21610 | if test $gcc_cv_math_func_pow = yes; then | |
f1cdfa01 | 21611 | |
f38a14ca TG |
21612 | cat >>confdefs.h <<_ACEOF |
21613 | #define HAVE_POW 1 | |
21614 | _ACEOF | |
1409cd0b | 21615 | |
db9f46a9 | 21616 | fi |
1409cd0b | 21617 | |
1409cd0b | 21618 | |
db9f46a9 TG |
21619 | |
21620 | ||
db9f46a9 TG |
21621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5 |
21622 | $as_echo_n "checking for cpowf... " >&6; } | |
22e05272 | 21623 | if ${gcc_cv_math_func_cpowf+:} false; then : |
5213506e | 21624 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21625 | else |
db9f46a9 | 21626 | if test x$gcc_no_link = xyes; then |
22e05272 | 21627 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21628 | fi |
5213506e | 21629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21630 | /* end confdefs.h. */ |
21631 | ||
db9f46a9 TG |
21632 | #ifdef HAVE_COMPLEX_H |
21633 | #include <complex.h> | |
1409cd0b | 21634 | #endif |
db9f46a9 TG |
21635 | #ifdef HAVE_MATH_H |
21636 | #include <math.h> | |
21637 | #endif | |
21638 | ||
21639 | int (*ptr)() = (int (*)())cpowf; | |
21640 | ||
1409cd0b FXC |
21641 | int |
21642 | main () | |
21643 | { | |
1409cd0b FXC |
21644 | return 0; |
21645 | } | |
db9f46a9 | 21646 | |
1409cd0b | 21647 | _ACEOF |
5213506e | 21648 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21649 | gcc_cv_math_func_cpowf=yes |
1409cd0b | 21650 | else |
db9f46a9 | 21651 | gcc_cv_math_func_cpowf=no |
1409cd0b | 21652 | fi |
5213506e RW |
21653 | rm -f core conftest.err conftest.$ac_objext \ |
21654 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21655 | fi |
db9f46a9 TG |
21656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5 |
21657 | $as_echo "$gcc_cv_math_func_cpowf" >&6; } | |
21658 | if test $gcc_cv_math_func_cpowf = yes; then | |
f1cdfa01 | 21659 | |
f38a14ca TG |
21660 | cat >>confdefs.h <<_ACEOF |
21661 | #define HAVE_CPOWF 1 | |
21662 | _ACEOF | |
db9f46a9 TG |
21663 | |
21664 | fi | |
21665 | ||
1409cd0b | 21666 | |
1409cd0b | 21667 | |
1409cd0b | 21668 | |
db9f46a9 TG |
21669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5 |
21670 | $as_echo_n "checking for cpow... " >&6; } | |
22e05272 | 21671 | if ${gcc_cv_math_func_cpow+:} false; then : |
5213506e | 21672 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21673 | else |
db9f46a9 | 21674 | if test x$gcc_no_link = xyes; then |
22e05272 | 21675 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21676 | fi |
5213506e | 21677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21678 | /* end confdefs.h. */ |
21679 | ||
db9f46a9 TG |
21680 | #ifdef HAVE_COMPLEX_H |
21681 | #include <complex.h> | |
21682 | #endif | |
21683 | #ifdef HAVE_MATH_H | |
21684 | #include <math.h> | |
1409cd0b | 21685 | #endif |
db9f46a9 TG |
21686 | |
21687 | int (*ptr)() = (int (*)())cpow; | |
21688 | ||
1409cd0b FXC |
21689 | int |
21690 | main () | |
21691 | { | |
1409cd0b FXC |
21692 | return 0; |
21693 | } | |
db9f46a9 | 21694 | |
1409cd0b | 21695 | _ACEOF |
5213506e | 21696 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21697 | gcc_cv_math_func_cpow=yes |
1409cd0b | 21698 | else |
db9f46a9 | 21699 | gcc_cv_math_func_cpow=no |
1409cd0b | 21700 | fi |
5213506e RW |
21701 | rm -f core conftest.err conftest.$ac_objext \ |
21702 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21703 | fi |
db9f46a9 TG |
21704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5 |
21705 | $as_echo "$gcc_cv_math_func_cpow" >&6; } | |
21706 | if test $gcc_cv_math_func_cpow = yes; then | |
f1cdfa01 | 21707 | |
f38a14ca TG |
21708 | cat >>confdefs.h <<_ACEOF |
21709 | #define HAVE_CPOW 1 | |
21710 | _ACEOF | |
db9f46a9 TG |
21711 | |
21712 | fi | |
1409cd0b | 21713 | |
1409cd0b | 21714 | |
1409cd0b | 21715 | |
db9f46a9 TG |
21716 | |
21717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5 | |
21718 | $as_echo_n "checking for cpowl... " >&6; } | |
22e05272 | 21719 | if ${gcc_cv_math_func_cpowl+:} false; then : |
5213506e | 21720 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21721 | else |
db9f46a9 | 21722 | if test x$gcc_no_link = xyes; then |
22e05272 | 21723 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21724 | fi |
5213506e | 21725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21726 | /* end confdefs.h. */ |
21727 | ||
db9f46a9 TG |
21728 | #ifdef HAVE_COMPLEX_H |
21729 | #include <complex.h> | |
1409cd0b | 21730 | #endif |
db9f46a9 TG |
21731 | #ifdef HAVE_MATH_H |
21732 | #include <math.h> | |
21733 | #endif | |
21734 | ||
21735 | int (*ptr)() = (int (*)())cpowl; | |
21736 | ||
1409cd0b FXC |
21737 | int |
21738 | main () | |
21739 | { | |
1409cd0b FXC |
21740 | return 0; |
21741 | } | |
db9f46a9 | 21742 | |
1409cd0b | 21743 | _ACEOF |
5213506e | 21744 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21745 | gcc_cv_math_func_cpowl=yes |
1409cd0b | 21746 | else |
db9f46a9 | 21747 | gcc_cv_math_func_cpowl=no |
1409cd0b | 21748 | fi |
5213506e RW |
21749 | rm -f core conftest.err conftest.$ac_objext \ |
21750 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21751 | fi |
db9f46a9 TG |
21752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5 |
21753 | $as_echo "$gcc_cv_math_func_cpowl" >&6; } | |
21754 | if test $gcc_cv_math_func_cpowl = yes; then | |
f1cdfa01 | 21755 | |
f38a14ca TG |
21756 | cat >>confdefs.h <<_ACEOF |
21757 | #define HAVE_CPOWL 1 | |
21758 | _ACEOF | |
1409cd0b | 21759 | |
db9f46a9 | 21760 | fi |
1409cd0b | 21761 | |
1409cd0b | 21762 | |
db9f46a9 TG |
21763 | |
21764 | ||
21765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5 | |
21766 | $as_echo_n "checking for roundf... " >&6; } | |
22e05272 | 21767 | if ${gcc_cv_math_func_roundf+:} false; then : |
5213506e | 21768 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21769 | else |
db9f46a9 | 21770 | if test x$gcc_no_link = xyes; then |
22e05272 | 21771 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21772 | fi |
5213506e | 21773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21774 | /* end confdefs.h. */ |
21775 | ||
db9f46a9 TG |
21776 | #ifdef HAVE_COMPLEX_H |
21777 | #include <complex.h> | |
21778 | #endif | |
21779 | #ifdef HAVE_MATH_H | |
21780 | #include <math.h> | |
1409cd0b | 21781 | #endif |
db9f46a9 TG |
21782 | |
21783 | int (*ptr)() = (int (*)())roundf; | |
21784 | ||
1409cd0b FXC |
21785 | int |
21786 | main () | |
21787 | { | |
1409cd0b FXC |
21788 | return 0; |
21789 | } | |
db9f46a9 | 21790 | |
1409cd0b | 21791 | _ACEOF |
5213506e | 21792 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21793 | gcc_cv_math_func_roundf=yes |
1409cd0b | 21794 | else |
db9f46a9 | 21795 | gcc_cv_math_func_roundf=no |
1409cd0b | 21796 | fi |
5213506e RW |
21797 | rm -f core conftest.err conftest.$ac_objext \ |
21798 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21799 | fi |
db9f46a9 TG |
21800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5 |
21801 | $as_echo "$gcc_cv_math_func_roundf" >&6; } | |
21802 | if test $gcc_cv_math_func_roundf = yes; then | |
f1cdfa01 | 21803 | |
f38a14ca TG |
21804 | cat >>confdefs.h <<_ACEOF |
21805 | #define HAVE_ROUNDF 1 | |
21806 | _ACEOF | |
db9f46a9 TG |
21807 | |
21808 | fi | |
1409cd0b | 21809 | |
1409cd0b | 21810 | |
1409cd0b | 21811 | |
db9f46a9 TG |
21812 | |
21813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5 | |
21814 | $as_echo_n "checking for round... " >&6; } | |
22e05272 | 21815 | if ${gcc_cv_math_func_round+:} false; then : |
5213506e | 21816 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21817 | else |
db9f46a9 | 21818 | if test x$gcc_no_link = xyes; then |
22e05272 | 21819 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21820 | fi |
5213506e | 21821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21822 | /* end confdefs.h. */ |
21823 | ||
db9f46a9 TG |
21824 | #ifdef HAVE_COMPLEX_H |
21825 | #include <complex.h> | |
1409cd0b | 21826 | #endif |
db9f46a9 TG |
21827 | #ifdef HAVE_MATH_H |
21828 | #include <math.h> | |
21829 | #endif | |
21830 | ||
21831 | int (*ptr)() = (int (*)())round; | |
21832 | ||
1409cd0b FXC |
21833 | int |
21834 | main () | |
21835 | { | |
1409cd0b FXC |
21836 | return 0; |
21837 | } | |
db9f46a9 | 21838 | |
1409cd0b | 21839 | _ACEOF |
5213506e | 21840 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21841 | gcc_cv_math_func_round=yes |
1409cd0b | 21842 | else |
db9f46a9 | 21843 | gcc_cv_math_func_round=no |
1409cd0b | 21844 | fi |
5213506e RW |
21845 | rm -f core conftest.err conftest.$ac_objext \ |
21846 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21847 | fi |
db9f46a9 TG |
21848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5 |
21849 | $as_echo "$gcc_cv_math_func_round" >&6; } | |
21850 | if test $gcc_cv_math_func_round = yes; then | |
f1cdfa01 | 21851 | |
f38a14ca TG |
21852 | cat >>confdefs.h <<_ACEOF |
21853 | #define HAVE_ROUND 1 | |
21854 | _ACEOF | |
db9f46a9 TG |
21855 | |
21856 | fi | |
21857 | ||
1409cd0b | 21858 | |
1409cd0b | 21859 | |
1409cd0b | 21860 | |
db9f46a9 TG |
21861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5 |
21862 | $as_echo_n "checking for roundl... " >&6; } | |
22e05272 | 21863 | if ${gcc_cv_math_func_roundl+:} false; then : |
5213506e | 21864 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21865 | else |
db9f46a9 | 21866 | if test x$gcc_no_link = xyes; then |
22e05272 | 21867 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21868 | fi |
5213506e | 21869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21870 | /* end confdefs.h. */ |
21871 | ||
db9f46a9 TG |
21872 | #ifdef HAVE_COMPLEX_H |
21873 | #include <complex.h> | |
21874 | #endif | |
21875 | #ifdef HAVE_MATH_H | |
21876 | #include <math.h> | |
94f548c2 | 21877 | #endif |
db9f46a9 TG |
21878 | |
21879 | int (*ptr)() = (int (*)())roundl; | |
21880 | ||
94f548c2 FXC |
21881 | int |
21882 | main () | |
21883 | { | |
94f548c2 FXC |
21884 | return 0; |
21885 | } | |
db9f46a9 | 21886 | |
94f548c2 | 21887 | _ACEOF |
5213506e | 21888 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21889 | gcc_cv_math_func_roundl=yes |
94f548c2 | 21890 | else |
db9f46a9 | 21891 | gcc_cv_math_func_roundl=no |
94f548c2 | 21892 | fi |
5213506e RW |
21893 | rm -f core conftest.err conftest.$ac_objext \ |
21894 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21895 | fi |
db9f46a9 TG |
21896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5 |
21897 | $as_echo "$gcc_cv_math_func_roundl" >&6; } | |
21898 | if test $gcc_cv_math_func_roundl = yes; then | |
f1cdfa01 | 21899 | |
f38a14ca TG |
21900 | cat >>confdefs.h <<_ACEOF |
21901 | #define HAVE_ROUNDL 1 | |
21902 | _ACEOF | |
db9f46a9 TG |
21903 | |
21904 | fi | |
94f548c2 | 21905 | |
94f548c2 | 21906 | |
94f548c2 | 21907 | |
db9f46a9 TG |
21908 | |
21909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5 | |
21910 | $as_echo_n "checking for lroundf... " >&6; } | |
22e05272 | 21911 | if ${gcc_cv_math_func_lroundf+:} false; then : |
5213506e | 21912 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21913 | else |
db9f46a9 | 21914 | if test x$gcc_no_link = xyes; then |
22e05272 | 21915 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21916 | fi |
5213506e | 21917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21918 | /* end confdefs.h. */ |
21919 | ||
db9f46a9 TG |
21920 | #ifdef HAVE_COMPLEX_H |
21921 | #include <complex.h> | |
94f548c2 | 21922 | #endif |
db9f46a9 TG |
21923 | #ifdef HAVE_MATH_H |
21924 | #include <math.h> | |
21925 | #endif | |
21926 | ||
21927 | int (*ptr)() = (int (*)())lroundf; | |
21928 | ||
94f548c2 FXC |
21929 | int |
21930 | main () | |
21931 | { | |
94f548c2 FXC |
21932 | return 0; |
21933 | } | |
db9f46a9 | 21934 | |
94f548c2 | 21935 | _ACEOF |
5213506e | 21936 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21937 | gcc_cv_math_func_lroundf=yes |
94f548c2 | 21938 | else |
db9f46a9 | 21939 | gcc_cv_math_func_lroundf=no |
94f548c2 | 21940 | fi |
5213506e RW |
21941 | rm -f core conftest.err conftest.$ac_objext \ |
21942 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21943 | fi |
db9f46a9 TG |
21944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5 |
21945 | $as_echo "$gcc_cv_math_func_lroundf" >&6; } | |
21946 | if test $gcc_cv_math_func_lroundf = yes; then | |
f1cdfa01 | 21947 | |
f38a14ca TG |
21948 | cat >>confdefs.h <<_ACEOF |
21949 | #define HAVE_LROUNDF 1 | |
21950 | _ACEOF | |
94f548c2 | 21951 | |
db9f46a9 | 21952 | fi |
94f548c2 | 21953 | |
94f548c2 | 21954 | |
db9f46a9 TG |
21955 | |
21956 | ||
21957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5 | |
21958 | $as_echo_n "checking for lround... " >&6; } | |
22e05272 | 21959 | if ${gcc_cv_math_func_lround+:} false; then : |
5213506e | 21960 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21961 | else |
db9f46a9 | 21962 | if test x$gcc_no_link = xyes; then |
22e05272 | 21963 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21964 | fi |
5213506e | 21965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21966 | /* end confdefs.h. */ |
21967 | ||
db9f46a9 TG |
21968 | #ifdef HAVE_COMPLEX_H |
21969 | #include <complex.h> | |
21970 | #endif | |
21971 | #ifdef HAVE_MATH_H | |
21972 | #include <math.h> | |
94f548c2 | 21973 | #endif |
db9f46a9 TG |
21974 | |
21975 | int (*ptr)() = (int (*)())lround; | |
21976 | ||
94f548c2 FXC |
21977 | int |
21978 | main () | |
21979 | { | |
94f548c2 FXC |
21980 | return 0; |
21981 | } | |
db9f46a9 | 21982 | |
94f548c2 | 21983 | _ACEOF |
5213506e | 21984 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21985 | gcc_cv_math_func_lround=yes |
94f548c2 | 21986 | else |
db9f46a9 | 21987 | gcc_cv_math_func_lround=no |
94f548c2 | 21988 | fi |
5213506e RW |
21989 | rm -f core conftest.err conftest.$ac_objext \ |
21990 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21991 | fi |
db9f46a9 TG |
21992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5 |
21993 | $as_echo "$gcc_cv_math_func_lround" >&6; } | |
21994 | if test $gcc_cv_math_func_lround = yes; then | |
f1cdfa01 | 21995 | |
f38a14ca TG |
21996 | cat >>confdefs.h <<_ACEOF |
21997 | #define HAVE_LROUND 1 | |
21998 | _ACEOF | |
db9f46a9 TG |
21999 | |
22000 | fi | |
22001 | ||
94f548c2 | 22002 | |
94f548c2 | 22003 | |
94f548c2 | 22004 | |
db9f46a9 TG |
22005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5 |
22006 | $as_echo_n "checking for lroundl... " >&6; } | |
22e05272 | 22007 | if ${gcc_cv_math_func_lroundl+:} false; then : |
5213506e | 22008 | $as_echo_n "(cached) " >&6 |
94f548c2 | 22009 | else |
db9f46a9 | 22010 | if test x$gcc_no_link = xyes; then |
22e05272 | 22011 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 22012 | fi |
5213506e | 22013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
22014 | /* end confdefs.h. */ |
22015 | ||
db9f46a9 TG |
22016 | #ifdef HAVE_COMPLEX_H |
22017 | #include <complex.h> | |
22018 | #endif | |
22019 | #ifdef HAVE_MATH_H | |
22020 | #include <math.h> | |
94f548c2 | 22021 | #endif |
db9f46a9 TG |
22022 | |
22023 | int (*ptr)() = (int (*)())lroundl; | |
22024 | ||
94f548c2 FXC |
22025 | int |
22026 | main () | |
22027 | { | |
94f548c2 FXC |
22028 | return 0; |
22029 | } | |
db9f46a9 | 22030 | |
94f548c2 | 22031 | _ACEOF |
5213506e | 22032 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22033 | gcc_cv_math_func_lroundl=yes |
94f548c2 | 22034 | else |
db9f46a9 | 22035 | gcc_cv_math_func_lroundl=no |
94f548c2 | 22036 | fi |
5213506e RW |
22037 | rm -f core conftest.err conftest.$ac_objext \ |
22038 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 22039 | fi |
db9f46a9 TG |
22040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5 |
22041 | $as_echo "$gcc_cv_math_func_lroundl" >&6; } | |
22042 | if test $gcc_cv_math_func_lroundl = yes; then | |
f1cdfa01 | 22043 | |
f38a14ca TG |
22044 | cat >>confdefs.h <<_ACEOF |
22045 | #define HAVE_LROUNDL 1 | |
22046 | _ACEOF | |
94f548c2 | 22047 | |
db9f46a9 | 22048 | fi |
94f548c2 | 22049 | |
94f548c2 | 22050 | |
db9f46a9 TG |
22051 | |
22052 | ||
22053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5 | |
22054 | $as_echo_n "checking for llroundf... " >&6; } | |
22e05272 | 22055 | if ${gcc_cv_math_func_llroundf+:} false; then : |
5213506e | 22056 | $as_echo_n "(cached) " >&6 |
94f548c2 | 22057 | else |
db9f46a9 | 22058 | if test x$gcc_no_link = xyes; then |
22e05272 | 22059 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 22060 | fi |
5213506e | 22061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
22062 | /* end confdefs.h. */ |
22063 | ||
db9f46a9 TG |
22064 | #ifdef HAVE_COMPLEX_H |
22065 | #include <complex.h> | |
94f548c2 | 22066 | #endif |
db9f46a9 TG |
22067 | #ifdef HAVE_MATH_H |
22068 | #include <math.h> | |
22069 | #endif | |
22070 | ||
22071 | int (*ptr)() = (int (*)())llroundf; | |
22072 | ||
94f548c2 FXC |
22073 | int |
22074 | main () | |
22075 | { | |
94f548c2 FXC |
22076 | return 0; |
22077 | } | |
db9f46a9 | 22078 | |
94f548c2 | 22079 | _ACEOF |
5213506e | 22080 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22081 | gcc_cv_math_func_llroundf=yes |
94f548c2 | 22082 | else |
db9f46a9 | 22083 | gcc_cv_math_func_llroundf=no |
94f548c2 | 22084 | fi |
5213506e RW |
22085 | rm -f core conftest.err conftest.$ac_objext \ |
22086 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 22087 | fi |
db9f46a9 TG |
22088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5 |
22089 | $as_echo "$gcc_cv_math_func_llroundf" >&6; } | |
22090 | if test $gcc_cv_math_func_llroundf = yes; then | |
f1cdfa01 | 22091 | |
f38a14ca TG |
22092 | cat >>confdefs.h <<_ACEOF |
22093 | #define HAVE_LLROUNDF 1 | |
22094 | _ACEOF | |
94f548c2 | 22095 | |
db9f46a9 | 22096 | fi |
94f548c2 | 22097 | |
94f548c2 | 22098 | |
db9f46a9 TG |
22099 | |
22100 | ||
22101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5 | |
22102 | $as_echo_n "checking for llround... " >&6; } | |
22e05272 | 22103 | if ${gcc_cv_math_func_llround+:} false; then : |
5213506e | 22104 | $as_echo_n "(cached) " >&6 |
94f548c2 | 22105 | else |
db9f46a9 | 22106 | if test x$gcc_no_link = xyes; then |
22e05272 | 22107 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 22108 | fi |
5213506e | 22109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
22110 | /* end confdefs.h. */ |
22111 | ||
db9f46a9 TG |
22112 | #ifdef HAVE_COMPLEX_H |
22113 | #include <complex.h> | |
22114 | #endif | |
22115 | #ifdef HAVE_MATH_H | |
22116 | #include <math.h> | |
94f548c2 | 22117 | #endif |
db9f46a9 TG |
22118 | |
22119 | int (*ptr)() = (int (*)())llround; | |
22120 | ||
94f548c2 FXC |
22121 | int |
22122 | main () | |
22123 | { | |
94f548c2 FXC |
22124 | return 0; |
22125 | } | |
db9f46a9 | 22126 | |
94f548c2 | 22127 | _ACEOF |
5213506e | 22128 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22129 | gcc_cv_math_func_llround=yes |
94f548c2 | 22130 | else |
db9f46a9 | 22131 | gcc_cv_math_func_llround=no |
94f548c2 | 22132 | fi |
5213506e RW |
22133 | rm -f core conftest.err conftest.$ac_objext \ |
22134 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 22135 | fi |
db9f46a9 TG |
22136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5 |
22137 | $as_echo "$gcc_cv_math_func_llround" >&6; } | |
22138 | if test $gcc_cv_math_func_llround = yes; then | |
f1cdfa01 | 22139 | |
f38a14ca TG |
22140 | cat >>confdefs.h <<_ACEOF |
22141 | #define HAVE_LLROUND 1 | |
22142 | _ACEOF | |
db9f46a9 TG |
22143 | |
22144 | fi | |
22145 | ||
94f548c2 | 22146 | |
94f548c2 | 22147 | |
94f548c2 | 22148 | |
db9f46a9 TG |
22149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5 |
22150 | $as_echo_n "checking for llroundl... " >&6; } | |
22e05272 | 22151 | if ${gcc_cv_math_func_llroundl+:} false; then : |
5213506e | 22152 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22153 | else |
db9f46a9 | 22154 | if test x$gcc_no_link = xyes; then |
22e05272 | 22155 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22156 | fi |
5213506e | 22157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22158 | /* end confdefs.h. */ |
22159 | ||
db9f46a9 TG |
22160 | #ifdef HAVE_COMPLEX_H |
22161 | #include <complex.h> | |
22162 | #endif | |
22163 | #ifdef HAVE_MATH_H | |
22164 | #include <math.h> | |
1409cd0b | 22165 | #endif |
db9f46a9 TG |
22166 | |
22167 | int (*ptr)() = (int (*)())llroundl; | |
22168 | ||
1409cd0b FXC |
22169 | int |
22170 | main () | |
22171 | { | |
1409cd0b FXC |
22172 | return 0; |
22173 | } | |
db9f46a9 | 22174 | |
1409cd0b | 22175 | _ACEOF |
5213506e | 22176 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22177 | gcc_cv_math_func_llroundl=yes |
1409cd0b | 22178 | else |
db9f46a9 | 22179 | gcc_cv_math_func_llroundl=no |
1409cd0b | 22180 | fi |
5213506e RW |
22181 | rm -f core conftest.err conftest.$ac_objext \ |
22182 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22183 | fi |
db9f46a9 TG |
22184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5 |
22185 | $as_echo "$gcc_cv_math_func_llroundl" >&6; } | |
22186 | if test $gcc_cv_math_func_llroundl = yes; then | |
f1cdfa01 | 22187 | |
f38a14ca TG |
22188 | cat >>confdefs.h <<_ACEOF |
22189 | #define HAVE_LLROUNDL 1 | |
22190 | _ACEOF | |
1409cd0b | 22191 | |
db9f46a9 | 22192 | fi |
1409cd0b | 22193 | |
1409cd0b | 22194 | |
db9f46a9 TG |
22195 | |
22196 | ||
22197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5 | |
22198 | $as_echo_n "checking for scalbnf... " >&6; } | |
22e05272 | 22199 | if ${gcc_cv_math_func_scalbnf+:} false; then : |
5213506e | 22200 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22201 | else |
db9f46a9 | 22202 | if test x$gcc_no_link = xyes; then |
22e05272 | 22203 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22204 | fi |
5213506e | 22205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22206 | /* end confdefs.h. */ |
22207 | ||
db9f46a9 TG |
22208 | #ifdef HAVE_COMPLEX_H |
22209 | #include <complex.h> | |
1409cd0b | 22210 | #endif |
db9f46a9 TG |
22211 | #ifdef HAVE_MATH_H |
22212 | #include <math.h> | |
22213 | #endif | |
22214 | ||
22215 | int (*ptr)() = (int (*)())scalbnf; | |
22216 | ||
1409cd0b FXC |
22217 | int |
22218 | main () | |
22219 | { | |
1409cd0b FXC |
22220 | return 0; |
22221 | } | |
db9f46a9 | 22222 | |
1409cd0b | 22223 | _ACEOF |
5213506e | 22224 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22225 | gcc_cv_math_func_scalbnf=yes |
1409cd0b | 22226 | else |
db9f46a9 | 22227 | gcc_cv_math_func_scalbnf=no |
1409cd0b | 22228 | fi |
5213506e RW |
22229 | rm -f core conftest.err conftest.$ac_objext \ |
22230 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22231 | fi |
db9f46a9 TG |
22232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5 |
22233 | $as_echo "$gcc_cv_math_func_scalbnf" >&6; } | |
22234 | if test $gcc_cv_math_func_scalbnf = yes; then | |
f1cdfa01 | 22235 | |
f38a14ca TG |
22236 | cat >>confdefs.h <<_ACEOF |
22237 | #define HAVE_SCALBNF 1 | |
22238 | _ACEOF | |
1409cd0b | 22239 | |
db9f46a9 | 22240 | fi |
1409cd0b | 22241 | |
1409cd0b | 22242 | |
db9f46a9 TG |
22243 | |
22244 | ||
22245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5 | |
22246 | $as_echo_n "checking for scalbn... " >&6; } | |
22e05272 | 22247 | if ${gcc_cv_math_func_scalbn+:} false; then : |
5213506e | 22248 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22249 | else |
db9f46a9 | 22250 | if test x$gcc_no_link = xyes; then |
22e05272 | 22251 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22252 | fi |
5213506e | 22253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22254 | /* end confdefs.h. */ |
22255 | ||
db9f46a9 TG |
22256 | #ifdef HAVE_COMPLEX_H |
22257 | #include <complex.h> | |
22258 | #endif | |
22259 | #ifdef HAVE_MATH_H | |
22260 | #include <math.h> | |
1409cd0b | 22261 | #endif |
db9f46a9 TG |
22262 | |
22263 | int (*ptr)() = (int (*)())scalbn; | |
22264 | ||
1409cd0b FXC |
22265 | int |
22266 | main () | |
22267 | { | |
1409cd0b FXC |
22268 | return 0; |
22269 | } | |
db9f46a9 | 22270 | |
1409cd0b | 22271 | _ACEOF |
5213506e | 22272 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22273 | gcc_cv_math_func_scalbn=yes |
1409cd0b | 22274 | else |
db9f46a9 | 22275 | gcc_cv_math_func_scalbn=no |
1409cd0b | 22276 | fi |
5213506e RW |
22277 | rm -f core conftest.err conftest.$ac_objext \ |
22278 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22279 | fi |
db9f46a9 TG |
22280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5 |
22281 | $as_echo "$gcc_cv_math_func_scalbn" >&6; } | |
22282 | if test $gcc_cv_math_func_scalbn = yes; then | |
f1cdfa01 | 22283 | |
f38a14ca TG |
22284 | cat >>confdefs.h <<_ACEOF |
22285 | #define HAVE_SCALBN 1 | |
22286 | _ACEOF | |
db9f46a9 TG |
22287 | |
22288 | fi | |
22289 | ||
1409cd0b | 22290 | |
1409cd0b | 22291 | |
1409cd0b | 22292 | |
db9f46a9 TG |
22293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5 |
22294 | $as_echo_n "checking for scalbnl... " >&6; } | |
22e05272 | 22295 | if ${gcc_cv_math_func_scalbnl+:} false; then : |
5213506e | 22296 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22297 | else |
db9f46a9 | 22298 | if test x$gcc_no_link = xyes; then |
22e05272 | 22299 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22300 | fi |
5213506e | 22301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22302 | /* end confdefs.h. */ |
22303 | ||
db9f46a9 TG |
22304 | #ifdef HAVE_COMPLEX_H |
22305 | #include <complex.h> | |
22306 | #endif | |
22307 | #ifdef HAVE_MATH_H | |
22308 | #include <math.h> | |
1409cd0b | 22309 | #endif |
db9f46a9 TG |
22310 | |
22311 | int (*ptr)() = (int (*)())scalbnl; | |
22312 | ||
1409cd0b FXC |
22313 | int |
22314 | main () | |
22315 | { | |
1409cd0b FXC |
22316 | return 0; |
22317 | } | |
db9f46a9 | 22318 | |
1409cd0b | 22319 | _ACEOF |
5213506e | 22320 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22321 | gcc_cv_math_func_scalbnl=yes |
1409cd0b | 22322 | else |
db9f46a9 | 22323 | gcc_cv_math_func_scalbnl=no |
1409cd0b | 22324 | fi |
5213506e RW |
22325 | rm -f core conftest.err conftest.$ac_objext \ |
22326 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22327 | fi |
db9f46a9 TG |
22328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5 |
22329 | $as_echo "$gcc_cv_math_func_scalbnl" >&6; } | |
22330 | if test $gcc_cv_math_func_scalbnl = yes; then | |
f1cdfa01 | 22331 | |
f38a14ca TG |
22332 | cat >>confdefs.h <<_ACEOF |
22333 | #define HAVE_SCALBNL 1 | |
22334 | _ACEOF | |
1409cd0b | 22335 | |
db9f46a9 | 22336 | fi |
1409cd0b | 22337 | |
1409cd0b | 22338 | |
db9f46a9 TG |
22339 | |
22340 | ||
22341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5 | |
22342 | $as_echo_n "checking for sinf... " >&6; } | |
22e05272 | 22343 | if ${gcc_cv_math_func_sinf+:} false; then : |
5213506e | 22344 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22345 | else |
db9f46a9 | 22346 | if test x$gcc_no_link = xyes; then |
22e05272 | 22347 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22348 | fi |
5213506e | 22349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22350 | /* end confdefs.h. */ |
22351 | ||
db9f46a9 TG |
22352 | #ifdef HAVE_COMPLEX_H |
22353 | #include <complex.h> | |
1409cd0b | 22354 | #endif |
db9f46a9 TG |
22355 | #ifdef HAVE_MATH_H |
22356 | #include <math.h> | |
22357 | #endif | |
22358 | ||
22359 | int (*ptr)() = (int (*)())sinf; | |
22360 | ||
1409cd0b FXC |
22361 | int |
22362 | main () | |
22363 | { | |
1409cd0b FXC |
22364 | return 0; |
22365 | } | |
db9f46a9 | 22366 | |
1409cd0b | 22367 | _ACEOF |
5213506e | 22368 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22369 | gcc_cv_math_func_sinf=yes |
1409cd0b | 22370 | else |
db9f46a9 | 22371 | gcc_cv_math_func_sinf=no |
1409cd0b | 22372 | fi |
5213506e RW |
22373 | rm -f core conftest.err conftest.$ac_objext \ |
22374 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22375 | fi |
db9f46a9 TG |
22376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5 |
22377 | $as_echo "$gcc_cv_math_func_sinf" >&6; } | |
22378 | if test $gcc_cv_math_func_sinf = yes; then | |
f1cdfa01 | 22379 | |
f38a14ca TG |
22380 | cat >>confdefs.h <<_ACEOF |
22381 | #define HAVE_SINF 1 | |
22382 | _ACEOF | |
1409cd0b | 22383 | |
db9f46a9 | 22384 | fi |
1409cd0b | 22385 | |
1409cd0b | 22386 | |
db9f46a9 TG |
22387 | |
22388 | ||
22389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5 | |
22390 | $as_echo_n "checking for sin... " >&6; } | |
22e05272 | 22391 | if ${gcc_cv_math_func_sin+:} false; then : |
5213506e | 22392 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22393 | else |
db9f46a9 | 22394 | if test x$gcc_no_link = xyes; then |
22e05272 | 22395 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22396 | fi |
5213506e | 22397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22398 | /* end confdefs.h. */ |
22399 | ||
db9f46a9 TG |
22400 | #ifdef HAVE_COMPLEX_H |
22401 | #include <complex.h> | |
1409cd0b | 22402 | #endif |
db9f46a9 TG |
22403 | #ifdef HAVE_MATH_H |
22404 | #include <math.h> | |
22405 | #endif | |
22406 | ||
22407 | int (*ptr)() = (int (*)())sin; | |
22408 | ||
1409cd0b FXC |
22409 | int |
22410 | main () | |
22411 | { | |
1409cd0b FXC |
22412 | return 0; |
22413 | } | |
db9f46a9 | 22414 | |
1409cd0b | 22415 | _ACEOF |
5213506e | 22416 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22417 | gcc_cv_math_func_sin=yes |
1409cd0b | 22418 | else |
db9f46a9 | 22419 | gcc_cv_math_func_sin=no |
1409cd0b | 22420 | fi |
5213506e RW |
22421 | rm -f core conftest.err conftest.$ac_objext \ |
22422 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22423 | fi |
db9f46a9 TG |
22424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5 |
22425 | $as_echo "$gcc_cv_math_func_sin" >&6; } | |
22426 | if test $gcc_cv_math_func_sin = yes; then | |
f1cdfa01 | 22427 | |
f38a14ca TG |
22428 | cat >>confdefs.h <<_ACEOF |
22429 | #define HAVE_SIN 1 | |
22430 | _ACEOF | |
db9f46a9 TG |
22431 | |
22432 | fi | |
22433 | ||
1409cd0b | 22434 | |
1409cd0b | 22435 | |
1409cd0b | 22436 | |
db9f46a9 TG |
22437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5 |
22438 | $as_echo_n "checking for sinl... " >&6; } | |
22e05272 | 22439 | if ${gcc_cv_math_func_sinl+:} false; then : |
5213506e | 22440 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22441 | else |
db9f46a9 | 22442 | if test x$gcc_no_link = xyes; then |
22e05272 | 22443 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22444 | fi |
5213506e | 22445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22446 | /* end confdefs.h. */ |
22447 | ||
db9f46a9 TG |
22448 | #ifdef HAVE_COMPLEX_H |
22449 | #include <complex.h> | |
1409cd0b | 22450 | #endif |
db9f46a9 TG |
22451 | #ifdef HAVE_MATH_H |
22452 | #include <math.h> | |
22453 | #endif | |
22454 | ||
22455 | int (*ptr)() = (int (*)())sinl; | |
22456 | ||
1409cd0b FXC |
22457 | int |
22458 | main () | |
22459 | { | |
5213506e RW |
22460 | return 0; |
22461 | } | |
db9f46a9 | 22462 | |
5213506e RW |
22463 | _ACEOF |
22464 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 22465 | gcc_cv_math_func_sinl=yes |
1409cd0b | 22466 | else |
db9f46a9 | 22467 | gcc_cv_math_func_sinl=no |
1409cd0b | 22468 | fi |
5213506e RW |
22469 | rm -f core conftest.err conftest.$ac_objext \ |
22470 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22471 | fi |
db9f46a9 TG |
22472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5 |
22473 | $as_echo "$gcc_cv_math_func_sinl" >&6; } | |
22474 | if test $gcc_cv_math_func_sinl = yes; then | |
f1cdfa01 | 22475 | |
f38a14ca TG |
22476 | cat >>confdefs.h <<_ACEOF |
22477 | #define HAVE_SINL 1 | |
22478 | _ACEOF | |
db9f46a9 TG |
22479 | |
22480 | fi | |
1409cd0b | 22481 | |
1409cd0b | 22482 | |
1409cd0b | 22483 | |
db9f46a9 TG |
22484 | |
22485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5 | |
22486 | $as_echo_n "checking for csinf... " >&6; } | |
22e05272 | 22487 | if ${gcc_cv_math_func_csinf+:} false; then : |
5213506e | 22488 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22489 | else |
db9f46a9 | 22490 | if test x$gcc_no_link = xyes; then |
22e05272 | 22491 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22492 | fi |
5213506e | 22493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22494 | /* end confdefs.h. */ |
22495 | ||
db9f46a9 TG |
22496 | #ifdef HAVE_COMPLEX_H |
22497 | #include <complex.h> | |
22498 | #endif | |
22499 | #ifdef HAVE_MATH_H | |
22500 | #include <math.h> | |
1409cd0b | 22501 | #endif |
db9f46a9 TG |
22502 | |
22503 | int (*ptr)() = (int (*)())csinf; | |
22504 | ||
1409cd0b FXC |
22505 | int |
22506 | main () | |
22507 | { | |
1409cd0b FXC |
22508 | return 0; |
22509 | } | |
db9f46a9 | 22510 | |
1409cd0b | 22511 | _ACEOF |
5213506e | 22512 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22513 | gcc_cv_math_func_csinf=yes |
1409cd0b | 22514 | else |
db9f46a9 | 22515 | gcc_cv_math_func_csinf=no |
1409cd0b | 22516 | fi |
5213506e RW |
22517 | rm -f core conftest.err conftest.$ac_objext \ |
22518 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22519 | fi |
db9f46a9 TG |
22520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5 |
22521 | $as_echo "$gcc_cv_math_func_csinf" >&6; } | |
22522 | if test $gcc_cv_math_func_csinf = yes; then | |
f1cdfa01 | 22523 | |
f38a14ca TG |
22524 | cat >>confdefs.h <<_ACEOF |
22525 | #define HAVE_CSINF 1 | |
22526 | _ACEOF | |
1409cd0b | 22527 | |
db9f46a9 | 22528 | fi |
1409cd0b | 22529 | |
1409cd0b | 22530 | |
db9f46a9 TG |
22531 | |
22532 | ||
22533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5 | |
22534 | $as_echo_n "checking for csin... " >&6; } | |
22e05272 | 22535 | if ${gcc_cv_math_func_csin+:} false; then : |
5213506e | 22536 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22537 | else |
db9f46a9 | 22538 | if test x$gcc_no_link = xyes; then |
22e05272 | 22539 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22540 | fi |
5213506e | 22541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22542 | /* end confdefs.h. */ |
22543 | ||
db9f46a9 TG |
22544 | #ifdef HAVE_COMPLEX_H |
22545 | #include <complex.h> | |
1409cd0b | 22546 | #endif |
db9f46a9 TG |
22547 | #ifdef HAVE_MATH_H |
22548 | #include <math.h> | |
22549 | #endif | |
22550 | ||
22551 | int (*ptr)() = (int (*)())csin; | |
22552 | ||
1409cd0b FXC |
22553 | int |
22554 | main () | |
22555 | { | |
1409cd0b FXC |
22556 | return 0; |
22557 | } | |
db9f46a9 | 22558 | |
1409cd0b | 22559 | _ACEOF |
5213506e | 22560 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22561 | gcc_cv_math_func_csin=yes |
1409cd0b | 22562 | else |
db9f46a9 | 22563 | gcc_cv_math_func_csin=no |
1409cd0b | 22564 | fi |
5213506e RW |
22565 | rm -f core conftest.err conftest.$ac_objext \ |
22566 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22567 | fi |
db9f46a9 TG |
22568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5 |
22569 | $as_echo "$gcc_cv_math_func_csin" >&6; } | |
22570 | if test $gcc_cv_math_func_csin = yes; then | |
f1cdfa01 | 22571 | |
f38a14ca TG |
22572 | cat >>confdefs.h <<_ACEOF |
22573 | #define HAVE_CSIN 1 | |
22574 | _ACEOF | |
db9f46a9 TG |
22575 | |
22576 | fi | |
22577 | ||
1409cd0b | 22578 | |
1409cd0b | 22579 | |
1409cd0b | 22580 | |
db9f46a9 TG |
22581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5 |
22582 | $as_echo_n "checking for csinl... " >&6; } | |
22e05272 | 22583 | if ${gcc_cv_math_func_csinl+:} false; then : |
5213506e | 22584 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22585 | else |
db9f46a9 | 22586 | if test x$gcc_no_link = xyes; then |
22e05272 | 22587 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22588 | fi |
5213506e | 22589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22590 | /* end confdefs.h. */ |
22591 | ||
db9f46a9 TG |
22592 | #ifdef HAVE_COMPLEX_H |
22593 | #include <complex.h> | |
1409cd0b | 22594 | #endif |
db9f46a9 TG |
22595 | #ifdef HAVE_MATH_H |
22596 | #include <math.h> | |
22597 | #endif | |
22598 | ||
22599 | int (*ptr)() = (int (*)())csinl; | |
22600 | ||
1409cd0b FXC |
22601 | int |
22602 | main () | |
22603 | { | |
1409cd0b FXC |
22604 | return 0; |
22605 | } | |
db9f46a9 | 22606 | |
1409cd0b | 22607 | _ACEOF |
5213506e | 22608 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22609 | gcc_cv_math_func_csinl=yes |
1409cd0b | 22610 | else |
db9f46a9 | 22611 | gcc_cv_math_func_csinl=no |
1409cd0b | 22612 | fi |
5213506e RW |
22613 | rm -f core conftest.err conftest.$ac_objext \ |
22614 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22615 | fi |
db9f46a9 TG |
22616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5 |
22617 | $as_echo "$gcc_cv_math_func_csinl" >&6; } | |
22618 | if test $gcc_cv_math_func_csinl = yes; then | |
f1cdfa01 | 22619 | |
f38a14ca TG |
22620 | cat >>confdefs.h <<_ACEOF |
22621 | #define HAVE_CSINL 1 | |
22622 | _ACEOF | |
db9f46a9 TG |
22623 | |
22624 | fi | |
1409cd0b | 22625 | |
1409cd0b | 22626 | |
1409cd0b | 22627 | |
db9f46a9 TG |
22628 | |
22629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5 | |
22630 | $as_echo_n "checking for sinhf... " >&6; } | |
22e05272 | 22631 | if ${gcc_cv_math_func_sinhf+:} false; then : |
5213506e | 22632 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22633 | else |
db9f46a9 | 22634 | if test x$gcc_no_link = xyes; then |
22e05272 | 22635 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22636 | fi |
5213506e | 22637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22638 | /* end confdefs.h. */ |
22639 | ||
db9f46a9 TG |
22640 | #ifdef HAVE_COMPLEX_H |
22641 | #include <complex.h> | |
22642 | #endif | |
22643 | #ifdef HAVE_MATH_H | |
22644 | #include <math.h> | |
1409cd0b | 22645 | #endif |
db9f46a9 TG |
22646 | |
22647 | int (*ptr)() = (int (*)())sinhf; | |
22648 | ||
1409cd0b FXC |
22649 | int |
22650 | main () | |
22651 | { | |
1409cd0b FXC |
22652 | return 0; |
22653 | } | |
db9f46a9 | 22654 | |
1409cd0b | 22655 | _ACEOF |
5213506e | 22656 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22657 | gcc_cv_math_func_sinhf=yes |
1409cd0b | 22658 | else |
db9f46a9 | 22659 | gcc_cv_math_func_sinhf=no |
1409cd0b | 22660 | fi |
5213506e RW |
22661 | rm -f core conftest.err conftest.$ac_objext \ |
22662 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22663 | fi |
db9f46a9 TG |
22664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5 |
22665 | $as_echo "$gcc_cv_math_func_sinhf" >&6; } | |
22666 | if test $gcc_cv_math_func_sinhf = yes; then | |
f1cdfa01 | 22667 | |
f38a14ca TG |
22668 | cat >>confdefs.h <<_ACEOF |
22669 | #define HAVE_SINHF 1 | |
22670 | _ACEOF | |
1409cd0b | 22671 | |
db9f46a9 | 22672 | fi |
1409cd0b | 22673 | |
1409cd0b | 22674 | |
db9f46a9 TG |
22675 | |
22676 | ||
22677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5 | |
22678 | $as_echo_n "checking for sinh... " >&6; } | |
22e05272 | 22679 | if ${gcc_cv_math_func_sinh+:} false; then : |
5213506e | 22680 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22681 | else |
db9f46a9 | 22682 | if test x$gcc_no_link = xyes; then |
22e05272 | 22683 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22684 | fi |
5213506e | 22685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22686 | /* end confdefs.h. */ |
22687 | ||
db9f46a9 TG |
22688 | #ifdef HAVE_COMPLEX_H |
22689 | #include <complex.h> | |
1409cd0b | 22690 | #endif |
db9f46a9 TG |
22691 | #ifdef HAVE_MATH_H |
22692 | #include <math.h> | |
22693 | #endif | |
22694 | ||
22695 | int (*ptr)() = (int (*)())sinh; | |
22696 | ||
1409cd0b FXC |
22697 | int |
22698 | main () | |
22699 | { | |
1409cd0b FXC |
22700 | return 0; |
22701 | } | |
db9f46a9 | 22702 | |
1409cd0b | 22703 | _ACEOF |
5213506e | 22704 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22705 | gcc_cv_math_func_sinh=yes |
1409cd0b | 22706 | else |
db9f46a9 | 22707 | gcc_cv_math_func_sinh=no |
1409cd0b | 22708 | fi |
5213506e RW |
22709 | rm -f core conftest.err conftest.$ac_objext \ |
22710 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22711 | fi |
db9f46a9 TG |
22712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5 |
22713 | $as_echo "$gcc_cv_math_func_sinh" >&6; } | |
22714 | if test $gcc_cv_math_func_sinh = yes; then | |
f1cdfa01 | 22715 | |
f38a14ca TG |
22716 | cat >>confdefs.h <<_ACEOF |
22717 | #define HAVE_SINH 1 | |
22718 | _ACEOF | |
db9f46a9 TG |
22719 | |
22720 | fi | |
22721 | ||
1409cd0b | 22722 | |
1409cd0b | 22723 | |
1409cd0b | 22724 | |
db9f46a9 TG |
22725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5 |
22726 | $as_echo_n "checking for sinhl... " >&6; } | |
22e05272 | 22727 | if ${gcc_cv_math_func_sinhl+:} false; then : |
5213506e | 22728 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22729 | else |
db9f46a9 | 22730 | if test x$gcc_no_link = xyes; then |
22e05272 | 22731 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22732 | fi |
5213506e | 22733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22734 | /* end confdefs.h. */ |
22735 | ||
db9f46a9 TG |
22736 | #ifdef HAVE_COMPLEX_H |
22737 | #include <complex.h> | |
1409cd0b | 22738 | #endif |
db9f46a9 TG |
22739 | #ifdef HAVE_MATH_H |
22740 | #include <math.h> | |
22741 | #endif | |
22742 | ||
22743 | int (*ptr)() = (int (*)())sinhl; | |
22744 | ||
1409cd0b FXC |
22745 | int |
22746 | main () | |
22747 | { | |
1409cd0b FXC |
22748 | return 0; |
22749 | } | |
db9f46a9 | 22750 | |
1409cd0b | 22751 | _ACEOF |
5213506e | 22752 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22753 | gcc_cv_math_func_sinhl=yes |
1409cd0b | 22754 | else |
db9f46a9 | 22755 | gcc_cv_math_func_sinhl=no |
1409cd0b | 22756 | fi |
5213506e RW |
22757 | rm -f core conftest.err conftest.$ac_objext \ |
22758 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22759 | fi |
db9f46a9 TG |
22760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5 |
22761 | $as_echo "$gcc_cv_math_func_sinhl" >&6; } | |
22762 | if test $gcc_cv_math_func_sinhl = yes; then | |
f1cdfa01 | 22763 | |
f38a14ca TG |
22764 | cat >>confdefs.h <<_ACEOF |
22765 | #define HAVE_SINHL 1 | |
22766 | _ACEOF | |
db9f46a9 TG |
22767 | |
22768 | fi | |
1409cd0b | 22769 | |
1409cd0b | 22770 | |
1409cd0b | 22771 | |
db9f46a9 TG |
22772 | |
22773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5 | |
22774 | $as_echo_n "checking for csinhf... " >&6; } | |
22e05272 | 22775 | if ${gcc_cv_math_func_csinhf+:} false; then : |
5213506e | 22776 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22777 | else |
db9f46a9 | 22778 | if test x$gcc_no_link = xyes; then |
22e05272 | 22779 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22780 | fi |
5213506e | 22781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22782 | /* end confdefs.h. */ |
22783 | ||
db9f46a9 TG |
22784 | #ifdef HAVE_COMPLEX_H |
22785 | #include <complex.h> | |
22786 | #endif | |
22787 | #ifdef HAVE_MATH_H | |
22788 | #include <math.h> | |
1409cd0b | 22789 | #endif |
db9f46a9 TG |
22790 | |
22791 | int (*ptr)() = (int (*)())csinhf; | |
22792 | ||
1409cd0b FXC |
22793 | int |
22794 | main () | |
22795 | { | |
1409cd0b FXC |
22796 | return 0; |
22797 | } | |
db9f46a9 | 22798 | |
1409cd0b | 22799 | _ACEOF |
5213506e | 22800 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22801 | gcc_cv_math_func_csinhf=yes |
1409cd0b | 22802 | else |
db9f46a9 | 22803 | gcc_cv_math_func_csinhf=no |
1409cd0b | 22804 | fi |
5213506e RW |
22805 | rm -f core conftest.err conftest.$ac_objext \ |
22806 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22807 | fi |
db9f46a9 TG |
22808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5 |
22809 | $as_echo "$gcc_cv_math_func_csinhf" >&6; } | |
22810 | if test $gcc_cv_math_func_csinhf = yes; then | |
f1cdfa01 | 22811 | |
f38a14ca TG |
22812 | cat >>confdefs.h <<_ACEOF |
22813 | #define HAVE_CSINHF 1 | |
22814 | _ACEOF | |
1409cd0b | 22815 | |
db9f46a9 | 22816 | fi |
1409cd0b | 22817 | |
1409cd0b | 22818 | |
db9f46a9 TG |
22819 | |
22820 | ||
22821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5 | |
22822 | $as_echo_n "checking for csinh... " >&6; } | |
22e05272 | 22823 | if ${gcc_cv_math_func_csinh+:} false; then : |
5213506e | 22824 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22825 | else |
db9f46a9 | 22826 | if test x$gcc_no_link = xyes; then |
22e05272 | 22827 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22828 | fi |
5213506e | 22829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22830 | /* end confdefs.h. */ |
22831 | ||
db9f46a9 TG |
22832 | #ifdef HAVE_COMPLEX_H |
22833 | #include <complex.h> | |
1409cd0b | 22834 | #endif |
db9f46a9 TG |
22835 | #ifdef HAVE_MATH_H |
22836 | #include <math.h> | |
22837 | #endif | |
22838 | ||
22839 | int (*ptr)() = (int (*)())csinh; | |
22840 | ||
1409cd0b FXC |
22841 | int |
22842 | main () | |
22843 | { | |
1409cd0b FXC |
22844 | return 0; |
22845 | } | |
db9f46a9 | 22846 | |
1409cd0b | 22847 | _ACEOF |
5213506e | 22848 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22849 | gcc_cv_math_func_csinh=yes |
1409cd0b | 22850 | else |
db9f46a9 | 22851 | gcc_cv_math_func_csinh=no |
1409cd0b | 22852 | fi |
5213506e RW |
22853 | rm -f core conftest.err conftest.$ac_objext \ |
22854 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22855 | fi |
db9f46a9 TG |
22856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5 |
22857 | $as_echo "$gcc_cv_math_func_csinh" >&6; } | |
22858 | if test $gcc_cv_math_func_csinh = yes; then | |
f1cdfa01 | 22859 | |
f38a14ca TG |
22860 | cat >>confdefs.h <<_ACEOF |
22861 | #define HAVE_CSINH 1 | |
22862 | _ACEOF | |
db9f46a9 TG |
22863 | |
22864 | fi | |
22865 | ||
1409cd0b | 22866 | |
1409cd0b | 22867 | |
1409cd0b | 22868 | |
db9f46a9 TG |
22869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5 |
22870 | $as_echo_n "checking for csinhl... " >&6; } | |
22e05272 | 22871 | if ${gcc_cv_math_func_csinhl+:} false; then : |
5213506e | 22872 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22873 | else |
db9f46a9 | 22874 | if test x$gcc_no_link = xyes; then |
22e05272 | 22875 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22876 | fi |
5213506e | 22877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22878 | /* end confdefs.h. */ |
22879 | ||
db9f46a9 TG |
22880 | #ifdef HAVE_COMPLEX_H |
22881 | #include <complex.h> | |
1409cd0b | 22882 | #endif |
db9f46a9 TG |
22883 | #ifdef HAVE_MATH_H |
22884 | #include <math.h> | |
22885 | #endif | |
22886 | ||
22887 | int (*ptr)() = (int (*)())csinhl; | |
22888 | ||
1409cd0b FXC |
22889 | int |
22890 | main () | |
22891 | { | |
1409cd0b FXC |
22892 | return 0; |
22893 | } | |
db9f46a9 | 22894 | |
1409cd0b | 22895 | _ACEOF |
5213506e | 22896 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22897 | gcc_cv_math_func_csinhl=yes |
1409cd0b | 22898 | else |
db9f46a9 | 22899 | gcc_cv_math_func_csinhl=no |
1409cd0b | 22900 | fi |
5213506e RW |
22901 | rm -f core conftest.err conftest.$ac_objext \ |
22902 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22903 | fi |
db9f46a9 TG |
22904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5 |
22905 | $as_echo "$gcc_cv_math_func_csinhl" >&6; } | |
22906 | if test $gcc_cv_math_func_csinhl = yes; then | |
f1cdfa01 | 22907 | |
f38a14ca TG |
22908 | cat >>confdefs.h <<_ACEOF |
22909 | #define HAVE_CSINHL 1 | |
22910 | _ACEOF | |
db9f46a9 TG |
22911 | |
22912 | fi | |
1409cd0b | 22913 | |
1409cd0b | 22914 | |
1409cd0b | 22915 | |
db9f46a9 TG |
22916 | |
22917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5 | |
22918 | $as_echo_n "checking for sqrtf... " >&6; } | |
22e05272 | 22919 | if ${gcc_cv_math_func_sqrtf+:} false; then : |
5213506e | 22920 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22921 | else |
db9f46a9 | 22922 | if test x$gcc_no_link = xyes; then |
22e05272 | 22923 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22924 | fi |
5213506e | 22925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22926 | /* end confdefs.h. */ |
22927 | ||
db9f46a9 TG |
22928 | #ifdef HAVE_COMPLEX_H |
22929 | #include <complex.h> | |
22930 | #endif | |
22931 | #ifdef HAVE_MATH_H | |
22932 | #include <math.h> | |
1409cd0b | 22933 | #endif |
db9f46a9 TG |
22934 | |
22935 | int (*ptr)() = (int (*)())sqrtf; | |
22936 | ||
1409cd0b FXC |
22937 | int |
22938 | main () | |
22939 | { | |
1409cd0b FXC |
22940 | return 0; |
22941 | } | |
db9f46a9 | 22942 | |
1409cd0b | 22943 | _ACEOF |
5213506e | 22944 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22945 | gcc_cv_math_func_sqrtf=yes |
1409cd0b | 22946 | else |
db9f46a9 | 22947 | gcc_cv_math_func_sqrtf=no |
1409cd0b | 22948 | fi |
5213506e RW |
22949 | rm -f core conftest.err conftest.$ac_objext \ |
22950 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22951 | fi |
db9f46a9 TG |
22952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5 |
22953 | $as_echo "$gcc_cv_math_func_sqrtf" >&6; } | |
22954 | if test $gcc_cv_math_func_sqrtf = yes; then | |
f1cdfa01 | 22955 | |
f38a14ca TG |
22956 | cat >>confdefs.h <<_ACEOF |
22957 | #define HAVE_SQRTF 1 | |
22958 | _ACEOF | |
db9f46a9 TG |
22959 | |
22960 | fi | |
1409cd0b | 22961 | |
1409cd0b | 22962 | |
db9f46a9 TG |
22963 | |
22964 | ||
22965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5 | |
22966 | $as_echo_n "checking for sqrt... " >&6; } | |
22e05272 | 22967 | if ${gcc_cv_math_func_sqrt+:} false; then : |
db9f46a9 TG |
22968 | $as_echo_n "(cached) " >&6 |
22969 | else | |
22970 | if test x$gcc_no_link = xyes; then | |
22e05272 | 22971 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22972 | fi |
db9f46a9 TG |
22973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22974 | /* end confdefs.h. */ | |
22975 | ||
22976 | #ifdef HAVE_COMPLEX_H | |
22977 | #include <complex.h> | |
22978 | #endif | |
22979 | #ifdef HAVE_MATH_H | |
22980 | #include <math.h> | |
22981 | #endif | |
22982 | ||
22983 | int (*ptr)() = (int (*)())sqrt; | |
22984 | ||
22985 | int | |
22986 | main () | |
22987 | { | |
22988 | return 0; | |
22989 | } | |
22990 | ||
22991 | _ACEOF | |
22992 | if ac_fn_c_try_link "$LINENO"; then : | |
22993 | gcc_cv_math_func_sqrt=yes | |
22994 | else | |
22995 | gcc_cv_math_func_sqrt=no | |
22996 | fi | |
22997 | rm -f core conftest.err conftest.$ac_objext \ | |
22998 | conftest$ac_exeext conftest.$ac_ext | |
22999 | fi | |
23000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5 | |
23001 | $as_echo "$gcc_cv_math_func_sqrt" >&6; } | |
23002 | if test $gcc_cv_math_func_sqrt = yes; then | |
f1cdfa01 | 23003 | |
f38a14ca TG |
23004 | cat >>confdefs.h <<_ACEOF |
23005 | #define HAVE_SQRT 1 | |
23006 | _ACEOF | |
db9f46a9 TG |
23007 | |
23008 | fi | |
1409cd0b | 23009 | |
db9f46a9 TG |
23010 | |
23011 | ||
23012 | ||
23013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5 | |
23014 | $as_echo_n "checking for sqrtl... " >&6; } | |
22e05272 | 23015 | if ${gcc_cv_math_func_sqrtl+:} false; then : |
5213506e | 23016 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23017 | else |
db9f46a9 | 23018 | if test x$gcc_no_link = xyes; then |
22e05272 | 23019 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23020 | fi |
5213506e | 23021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23022 | /* end confdefs.h. */ |
23023 | ||
db9f46a9 TG |
23024 | #ifdef HAVE_COMPLEX_H |
23025 | #include <complex.h> | |
23026 | #endif | |
23027 | #ifdef HAVE_MATH_H | |
23028 | #include <math.h> | |
1409cd0b | 23029 | #endif |
db9f46a9 TG |
23030 | |
23031 | int (*ptr)() = (int (*)())sqrtl; | |
23032 | ||
1409cd0b FXC |
23033 | int |
23034 | main () | |
23035 | { | |
1409cd0b FXC |
23036 | return 0; |
23037 | } | |
db9f46a9 | 23038 | |
1409cd0b | 23039 | _ACEOF |
5213506e | 23040 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23041 | gcc_cv_math_func_sqrtl=yes |
1409cd0b | 23042 | else |
db9f46a9 | 23043 | gcc_cv_math_func_sqrtl=no |
1409cd0b | 23044 | fi |
5213506e RW |
23045 | rm -f core conftest.err conftest.$ac_objext \ |
23046 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23047 | fi |
db9f46a9 TG |
23048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5 |
23049 | $as_echo "$gcc_cv_math_func_sqrtl" >&6; } | |
23050 | if test $gcc_cv_math_func_sqrtl = yes; then | |
f1cdfa01 | 23051 | |
f38a14ca TG |
23052 | cat >>confdefs.h <<_ACEOF |
23053 | #define HAVE_SQRTL 1 | |
23054 | _ACEOF | |
db9f46a9 TG |
23055 | |
23056 | fi | |
1409cd0b | 23057 | |
1409cd0b | 23058 | |
1409cd0b | 23059 | |
db9f46a9 TG |
23060 | |
23061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5 | |
23062 | $as_echo_n "checking for csqrtf... " >&6; } | |
22e05272 | 23063 | if ${gcc_cv_math_func_csqrtf+:} false; then : |
5213506e | 23064 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23065 | else |
db9f46a9 | 23066 | if test x$gcc_no_link = xyes; then |
22e05272 | 23067 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23068 | fi |
5213506e | 23069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23070 | /* end confdefs.h. */ |
23071 | ||
db9f46a9 TG |
23072 | #ifdef HAVE_COMPLEX_H |
23073 | #include <complex.h> | |
1409cd0b | 23074 | #endif |
db9f46a9 TG |
23075 | #ifdef HAVE_MATH_H |
23076 | #include <math.h> | |
23077 | #endif | |
23078 | ||
23079 | int (*ptr)() = (int (*)())csqrtf; | |
23080 | ||
1409cd0b FXC |
23081 | int |
23082 | main () | |
23083 | { | |
1409cd0b FXC |
23084 | return 0; |
23085 | } | |
db9f46a9 | 23086 | |
1409cd0b | 23087 | _ACEOF |
5213506e | 23088 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23089 | gcc_cv_math_func_csqrtf=yes |
1409cd0b | 23090 | else |
db9f46a9 | 23091 | gcc_cv_math_func_csqrtf=no |
1409cd0b | 23092 | fi |
5213506e RW |
23093 | rm -f core conftest.err conftest.$ac_objext \ |
23094 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23095 | fi |
db9f46a9 TG |
23096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5 |
23097 | $as_echo "$gcc_cv_math_func_csqrtf" >&6; } | |
23098 | if test $gcc_cv_math_func_csqrtf = yes; then | |
f1cdfa01 | 23099 | |
f38a14ca TG |
23100 | cat >>confdefs.h <<_ACEOF |
23101 | #define HAVE_CSQRTF 1 | |
23102 | _ACEOF | |
1409cd0b | 23103 | |
db9f46a9 | 23104 | fi |
1409cd0b | 23105 | |
1409cd0b | 23106 | |
db9f46a9 TG |
23107 | |
23108 | ||
23109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5 | |
23110 | $as_echo_n "checking for csqrt... " >&6; } | |
22e05272 | 23111 | if ${gcc_cv_math_func_csqrt+:} false; then : |
5213506e | 23112 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23113 | else |
db9f46a9 | 23114 | if test x$gcc_no_link = xyes; then |
22e05272 | 23115 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23116 | fi |
5213506e | 23117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23118 | /* end confdefs.h. */ |
23119 | ||
db9f46a9 TG |
23120 | #ifdef HAVE_COMPLEX_H |
23121 | #include <complex.h> | |
23122 | #endif | |
23123 | #ifdef HAVE_MATH_H | |
23124 | #include <math.h> | |
1409cd0b | 23125 | #endif |
db9f46a9 TG |
23126 | |
23127 | int (*ptr)() = (int (*)())csqrt; | |
23128 | ||
1409cd0b FXC |
23129 | int |
23130 | main () | |
23131 | { | |
1409cd0b FXC |
23132 | return 0; |
23133 | } | |
db9f46a9 | 23134 | |
1409cd0b | 23135 | _ACEOF |
5213506e | 23136 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23137 | gcc_cv_math_func_csqrt=yes |
1409cd0b | 23138 | else |
db9f46a9 | 23139 | gcc_cv_math_func_csqrt=no |
1409cd0b | 23140 | fi |
5213506e RW |
23141 | rm -f core conftest.err conftest.$ac_objext \ |
23142 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23143 | fi |
db9f46a9 TG |
23144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5 |
23145 | $as_echo "$gcc_cv_math_func_csqrt" >&6; } | |
23146 | if test $gcc_cv_math_func_csqrt = yes; then | |
f1cdfa01 | 23147 | |
f38a14ca TG |
23148 | cat >>confdefs.h <<_ACEOF |
23149 | #define HAVE_CSQRT 1 | |
23150 | _ACEOF | |
db9f46a9 TG |
23151 | |
23152 | fi | |
1409cd0b | 23153 | |
1409cd0b | 23154 | |
1409cd0b | 23155 | |
db9f46a9 TG |
23156 | |
23157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5 | |
23158 | $as_echo_n "checking for csqrtl... " >&6; } | |
22e05272 | 23159 | if ${gcc_cv_math_func_csqrtl+:} false; then : |
5213506e | 23160 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23161 | else |
db9f46a9 | 23162 | if test x$gcc_no_link = xyes; then |
22e05272 | 23163 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23164 | fi |
5213506e | 23165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23166 | /* end confdefs.h. */ |
23167 | ||
db9f46a9 TG |
23168 | #ifdef HAVE_COMPLEX_H |
23169 | #include <complex.h> | |
1409cd0b | 23170 | #endif |
db9f46a9 TG |
23171 | #ifdef HAVE_MATH_H |
23172 | #include <math.h> | |
23173 | #endif | |
23174 | ||
23175 | int (*ptr)() = (int (*)())csqrtl; | |
23176 | ||
1409cd0b FXC |
23177 | int |
23178 | main () | |
23179 | { | |
1409cd0b FXC |
23180 | return 0; |
23181 | } | |
db9f46a9 | 23182 | |
1409cd0b | 23183 | _ACEOF |
5213506e | 23184 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23185 | gcc_cv_math_func_csqrtl=yes |
1409cd0b | 23186 | else |
db9f46a9 | 23187 | gcc_cv_math_func_csqrtl=no |
1409cd0b | 23188 | fi |
5213506e RW |
23189 | rm -f core conftest.err conftest.$ac_objext \ |
23190 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23191 | fi |
db9f46a9 TG |
23192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5 |
23193 | $as_echo "$gcc_cv_math_func_csqrtl" >&6; } | |
23194 | if test $gcc_cv_math_func_csqrtl = yes; then | |
f1cdfa01 | 23195 | |
f38a14ca TG |
23196 | cat >>confdefs.h <<_ACEOF |
23197 | #define HAVE_CSQRTL 1 | |
23198 | _ACEOF | |
db9f46a9 TG |
23199 | |
23200 | fi | |
23201 | ||
1409cd0b | 23202 | |
1409cd0b | 23203 | |
1409cd0b | 23204 | |
db9f46a9 TG |
23205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5 |
23206 | $as_echo_n "checking for tanf... " >&6; } | |
22e05272 | 23207 | if ${gcc_cv_math_func_tanf+:} false; then : |
5213506e | 23208 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23209 | else |
db9f46a9 | 23210 | if test x$gcc_no_link = xyes; then |
22e05272 | 23211 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23212 | fi |
5213506e | 23213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23214 | /* end confdefs.h. */ |
23215 | ||
db9f46a9 TG |
23216 | #ifdef HAVE_COMPLEX_H |
23217 | #include <complex.h> | |
23218 | #endif | |
23219 | #ifdef HAVE_MATH_H | |
23220 | #include <math.h> | |
1409cd0b | 23221 | #endif |
db9f46a9 TG |
23222 | |
23223 | int (*ptr)() = (int (*)())tanf; | |
23224 | ||
1409cd0b FXC |
23225 | int |
23226 | main () | |
23227 | { | |
1409cd0b FXC |
23228 | return 0; |
23229 | } | |
db9f46a9 | 23230 | |
1409cd0b | 23231 | _ACEOF |
5213506e | 23232 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23233 | gcc_cv_math_func_tanf=yes |
1409cd0b | 23234 | else |
db9f46a9 | 23235 | gcc_cv_math_func_tanf=no |
1409cd0b | 23236 | fi |
5213506e RW |
23237 | rm -f core conftest.err conftest.$ac_objext \ |
23238 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23239 | fi |
db9f46a9 TG |
23240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5 |
23241 | $as_echo "$gcc_cv_math_func_tanf" >&6; } | |
23242 | if test $gcc_cv_math_func_tanf = yes; then | |
f1cdfa01 | 23243 | |
f38a14ca TG |
23244 | cat >>confdefs.h <<_ACEOF |
23245 | #define HAVE_TANF 1 | |
23246 | _ACEOF | |
db9f46a9 TG |
23247 | |
23248 | fi | |
1409cd0b | 23249 | |
1409cd0b | 23250 | |
1409cd0b | 23251 | |
db9f46a9 TG |
23252 | |
23253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5 | |
23254 | $as_echo_n "checking for tan... " >&6; } | |
22e05272 | 23255 | if ${gcc_cv_math_func_tan+:} false; then : |
5213506e | 23256 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23257 | else |
db9f46a9 | 23258 | if test x$gcc_no_link = xyes; then |
22e05272 | 23259 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23260 | fi |
5213506e | 23261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23262 | /* end confdefs.h. */ |
23263 | ||
db9f46a9 TG |
23264 | #ifdef HAVE_COMPLEX_H |
23265 | #include <complex.h> | |
1409cd0b | 23266 | #endif |
db9f46a9 TG |
23267 | #ifdef HAVE_MATH_H |
23268 | #include <math.h> | |
23269 | #endif | |
23270 | ||
23271 | int (*ptr)() = (int (*)())tan; | |
23272 | ||
1409cd0b FXC |
23273 | int |
23274 | main () | |
23275 | { | |
1409cd0b FXC |
23276 | return 0; |
23277 | } | |
db9f46a9 | 23278 | |
1409cd0b | 23279 | _ACEOF |
5213506e | 23280 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23281 | gcc_cv_math_func_tan=yes |
1409cd0b | 23282 | else |
db9f46a9 | 23283 | gcc_cv_math_func_tan=no |
1409cd0b | 23284 | fi |
5213506e RW |
23285 | rm -f core conftest.err conftest.$ac_objext \ |
23286 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23287 | fi |
db9f46a9 TG |
23288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5 |
23289 | $as_echo "$gcc_cv_math_func_tan" >&6; } | |
23290 | if test $gcc_cv_math_func_tan = yes; then | |
f1cdfa01 | 23291 | |
f38a14ca TG |
23292 | cat >>confdefs.h <<_ACEOF |
23293 | #define HAVE_TAN 1 | |
23294 | _ACEOF | |
1409cd0b | 23295 | |
db9f46a9 | 23296 | fi |
1409cd0b | 23297 | |
1409cd0b | 23298 | |
db9f46a9 TG |
23299 | |
23300 | ||
23301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5 | |
23302 | $as_echo_n "checking for tanl... " >&6; } | |
22e05272 | 23303 | if ${gcc_cv_math_func_tanl+:} false; then : |
5213506e | 23304 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23305 | else |
db9f46a9 | 23306 | if test x$gcc_no_link = xyes; then |
22e05272 | 23307 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23308 | fi |
5213506e | 23309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23310 | /* end confdefs.h. */ |
23311 | ||
db9f46a9 TG |
23312 | #ifdef HAVE_COMPLEX_H |
23313 | #include <complex.h> | |
23314 | #endif | |
23315 | #ifdef HAVE_MATH_H | |
23316 | #include <math.h> | |
1409cd0b | 23317 | #endif |
db9f46a9 TG |
23318 | |
23319 | int (*ptr)() = (int (*)())tanl; | |
23320 | ||
1409cd0b FXC |
23321 | int |
23322 | main () | |
23323 | { | |
1409cd0b FXC |
23324 | return 0; |
23325 | } | |
db9f46a9 | 23326 | |
1409cd0b | 23327 | _ACEOF |
5213506e | 23328 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23329 | gcc_cv_math_func_tanl=yes |
1409cd0b | 23330 | else |
db9f46a9 | 23331 | gcc_cv_math_func_tanl=no |
1409cd0b | 23332 | fi |
5213506e RW |
23333 | rm -f core conftest.err conftest.$ac_objext \ |
23334 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23335 | fi |
db9f46a9 TG |
23336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5 |
23337 | $as_echo "$gcc_cv_math_func_tanl" >&6; } | |
23338 | if test $gcc_cv_math_func_tanl = yes; then | |
f1cdfa01 | 23339 | |
f38a14ca TG |
23340 | cat >>confdefs.h <<_ACEOF |
23341 | #define HAVE_TANL 1 | |
23342 | _ACEOF | |
db9f46a9 TG |
23343 | |
23344 | fi | |
1409cd0b | 23345 | |
1409cd0b | 23346 | |
1409cd0b | 23347 | |
db9f46a9 TG |
23348 | |
23349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5 | |
23350 | $as_echo_n "checking for ctanf... " >&6; } | |
22e05272 | 23351 | if ${gcc_cv_math_func_ctanf+:} false; then : |
5213506e | 23352 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23353 | else |
db9f46a9 | 23354 | if test x$gcc_no_link = xyes; then |
22e05272 | 23355 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23356 | fi |
5213506e | 23357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23358 | /* end confdefs.h. */ |
23359 | ||
db9f46a9 TG |
23360 | #ifdef HAVE_COMPLEX_H |
23361 | #include <complex.h> | |
1409cd0b | 23362 | #endif |
db9f46a9 TG |
23363 | #ifdef HAVE_MATH_H |
23364 | #include <math.h> | |
23365 | #endif | |
23366 | ||
23367 | int (*ptr)() = (int (*)())ctanf; | |
23368 | ||
1409cd0b FXC |
23369 | int |
23370 | main () | |
23371 | { | |
1409cd0b FXC |
23372 | return 0; |
23373 | } | |
db9f46a9 | 23374 | |
1409cd0b | 23375 | _ACEOF |
5213506e | 23376 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23377 | gcc_cv_math_func_ctanf=yes |
1409cd0b | 23378 | else |
db9f46a9 | 23379 | gcc_cv_math_func_ctanf=no |
1409cd0b | 23380 | fi |
5213506e RW |
23381 | rm -f core conftest.err conftest.$ac_objext \ |
23382 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23383 | fi |
db9f46a9 TG |
23384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5 |
23385 | $as_echo "$gcc_cv_math_func_ctanf" >&6; } | |
23386 | if test $gcc_cv_math_func_ctanf = yes; then | |
f1cdfa01 | 23387 | |
f38a14ca TG |
23388 | cat >>confdefs.h <<_ACEOF |
23389 | #define HAVE_CTANF 1 | |
23390 | _ACEOF | |
db9f46a9 TG |
23391 | |
23392 | fi | |
23393 | ||
1409cd0b | 23394 | |
1409cd0b | 23395 | |
1409cd0b | 23396 | |
db9f46a9 TG |
23397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5 |
23398 | $as_echo_n "checking for ctan... " >&6; } | |
22e05272 | 23399 | if ${gcc_cv_math_func_ctan+:} false; then : |
5213506e | 23400 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23401 | else |
db9f46a9 | 23402 | if test x$gcc_no_link = xyes; then |
22e05272 | 23403 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23404 | fi |
5213506e | 23405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23406 | /* end confdefs.h. */ |
23407 | ||
db9f46a9 TG |
23408 | #ifdef HAVE_COMPLEX_H |
23409 | #include <complex.h> | |
23410 | #endif | |
23411 | #ifdef HAVE_MATH_H | |
23412 | #include <math.h> | |
1409cd0b | 23413 | #endif |
db9f46a9 TG |
23414 | |
23415 | int (*ptr)() = (int (*)())ctan; | |
23416 | ||
1409cd0b FXC |
23417 | int |
23418 | main () | |
23419 | { | |
1409cd0b FXC |
23420 | return 0; |
23421 | } | |
db9f46a9 | 23422 | |
1409cd0b | 23423 | _ACEOF |
5213506e | 23424 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23425 | gcc_cv_math_func_ctan=yes |
1409cd0b | 23426 | else |
db9f46a9 | 23427 | gcc_cv_math_func_ctan=no |
1409cd0b | 23428 | fi |
5213506e RW |
23429 | rm -f core conftest.err conftest.$ac_objext \ |
23430 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23431 | fi |
db9f46a9 TG |
23432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5 |
23433 | $as_echo "$gcc_cv_math_func_ctan" >&6; } | |
23434 | if test $gcc_cv_math_func_ctan = yes; then | |
f1cdfa01 | 23435 | |
f38a14ca TG |
23436 | cat >>confdefs.h <<_ACEOF |
23437 | #define HAVE_CTAN 1 | |
23438 | _ACEOF | |
db9f46a9 TG |
23439 | |
23440 | fi | |
1409cd0b | 23441 | |
1409cd0b | 23442 | |
1409cd0b | 23443 | |
db9f46a9 TG |
23444 | |
23445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5 | |
23446 | $as_echo_n "checking for ctanl... " >&6; } | |
22e05272 | 23447 | if ${gcc_cv_math_func_ctanl+:} false; then : |
5213506e | 23448 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23449 | else |
db9f46a9 | 23450 | if test x$gcc_no_link = xyes; then |
22e05272 | 23451 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23452 | fi |
5213506e | 23453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23454 | /* end confdefs.h. */ |
23455 | ||
db9f46a9 TG |
23456 | #ifdef HAVE_COMPLEX_H |
23457 | #include <complex.h> | |
1409cd0b | 23458 | #endif |
db9f46a9 TG |
23459 | #ifdef HAVE_MATH_H |
23460 | #include <math.h> | |
23461 | #endif | |
23462 | ||
23463 | int (*ptr)() = (int (*)())ctanl; | |
23464 | ||
1409cd0b FXC |
23465 | int |
23466 | main () | |
23467 | { | |
1409cd0b FXC |
23468 | return 0; |
23469 | } | |
db9f46a9 | 23470 | |
1409cd0b | 23471 | _ACEOF |
5213506e | 23472 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23473 | gcc_cv_math_func_ctanl=yes |
1409cd0b | 23474 | else |
db9f46a9 | 23475 | gcc_cv_math_func_ctanl=no |
1409cd0b | 23476 | fi |
5213506e RW |
23477 | rm -f core conftest.err conftest.$ac_objext \ |
23478 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23479 | fi |
db9f46a9 TG |
23480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5 |
23481 | $as_echo "$gcc_cv_math_func_ctanl" >&6; } | |
23482 | if test $gcc_cv_math_func_ctanl = yes; then | |
f1cdfa01 | 23483 | |
f38a14ca TG |
23484 | cat >>confdefs.h <<_ACEOF |
23485 | #define HAVE_CTANL 1 | |
23486 | _ACEOF | |
1409cd0b | 23487 | |
db9f46a9 | 23488 | fi |
1409cd0b | 23489 | |
1409cd0b | 23490 | |
db9f46a9 TG |
23491 | |
23492 | ||
23493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5 | |
23494 | $as_echo_n "checking for tanhf... " >&6; } | |
22e05272 | 23495 | if ${gcc_cv_math_func_tanhf+:} false; then : |
5213506e | 23496 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23497 | else |
db9f46a9 | 23498 | if test x$gcc_no_link = xyes; then |
22e05272 | 23499 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23500 | fi |
5213506e | 23501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23502 | /* end confdefs.h. */ |
23503 | ||
db9f46a9 TG |
23504 | #ifdef HAVE_COMPLEX_H |
23505 | #include <complex.h> | |
23506 | #endif | |
23507 | #ifdef HAVE_MATH_H | |
23508 | #include <math.h> | |
1409cd0b | 23509 | #endif |
db9f46a9 TG |
23510 | |
23511 | int (*ptr)() = (int (*)())tanhf; | |
23512 | ||
1409cd0b FXC |
23513 | int |
23514 | main () | |
23515 | { | |
1409cd0b FXC |
23516 | return 0; |
23517 | } | |
db9f46a9 | 23518 | |
1409cd0b | 23519 | _ACEOF |
5213506e | 23520 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23521 | gcc_cv_math_func_tanhf=yes |
1409cd0b | 23522 | else |
db9f46a9 | 23523 | gcc_cv_math_func_tanhf=no |
1409cd0b | 23524 | fi |
5213506e RW |
23525 | rm -f core conftest.err conftest.$ac_objext \ |
23526 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23527 | fi |
db9f46a9 TG |
23528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5 |
23529 | $as_echo "$gcc_cv_math_func_tanhf" >&6; } | |
23530 | if test $gcc_cv_math_func_tanhf = yes; then | |
f1cdfa01 | 23531 | |
f38a14ca TG |
23532 | cat >>confdefs.h <<_ACEOF |
23533 | #define HAVE_TANHF 1 | |
23534 | _ACEOF | |
db9f46a9 TG |
23535 | |
23536 | fi | |
1409cd0b | 23537 | |
1409cd0b | 23538 | |
1409cd0b | 23539 | |
db9f46a9 TG |
23540 | |
23541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5 | |
23542 | $as_echo_n "checking for tanh... " >&6; } | |
22e05272 | 23543 | if ${gcc_cv_math_func_tanh+:} false; then : |
5213506e | 23544 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23545 | else |
db9f46a9 | 23546 | if test x$gcc_no_link = xyes; then |
22e05272 | 23547 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23548 | fi |
5213506e | 23549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23550 | /* end confdefs.h. */ |
23551 | ||
db9f46a9 TG |
23552 | #ifdef HAVE_COMPLEX_H |
23553 | #include <complex.h> | |
1409cd0b | 23554 | #endif |
db9f46a9 TG |
23555 | #ifdef HAVE_MATH_H |
23556 | #include <math.h> | |
23557 | #endif | |
23558 | ||
23559 | int (*ptr)() = (int (*)())tanh; | |
23560 | ||
1409cd0b FXC |
23561 | int |
23562 | main () | |
23563 | { | |
1409cd0b FXC |
23564 | return 0; |
23565 | } | |
db9f46a9 | 23566 | |
1409cd0b | 23567 | _ACEOF |
5213506e | 23568 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23569 | gcc_cv_math_func_tanh=yes |
1409cd0b | 23570 | else |
db9f46a9 | 23571 | gcc_cv_math_func_tanh=no |
1409cd0b | 23572 | fi |
5213506e RW |
23573 | rm -f core conftest.err conftest.$ac_objext \ |
23574 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23575 | fi |
db9f46a9 TG |
23576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5 |
23577 | $as_echo "$gcc_cv_math_func_tanh" >&6; } | |
23578 | if test $gcc_cv_math_func_tanh = yes; then | |
f1cdfa01 | 23579 | |
f38a14ca TG |
23580 | cat >>confdefs.h <<_ACEOF |
23581 | #define HAVE_TANH 1 | |
23582 | _ACEOF | |
db9f46a9 TG |
23583 | |
23584 | fi | |
23585 | ||
1409cd0b | 23586 | |
1409cd0b | 23587 | |
1409cd0b | 23588 | |
db9f46a9 TG |
23589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5 |
23590 | $as_echo_n "checking for tanhl... " >&6; } | |
22e05272 | 23591 | if ${gcc_cv_math_func_tanhl+:} false; then : |
5213506e | 23592 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23593 | else |
db9f46a9 | 23594 | if test x$gcc_no_link = xyes; then |
22e05272 | 23595 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23596 | fi |
5213506e | 23597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23598 | /* end confdefs.h. */ |
23599 | ||
db9f46a9 TG |
23600 | #ifdef HAVE_COMPLEX_H |
23601 | #include <complex.h> | |
23602 | #endif | |
23603 | #ifdef HAVE_MATH_H | |
23604 | #include <math.h> | |
1409cd0b | 23605 | #endif |
db9f46a9 TG |
23606 | |
23607 | int (*ptr)() = (int (*)())tanhl; | |
23608 | ||
1409cd0b FXC |
23609 | int |
23610 | main () | |
23611 | { | |
1409cd0b FXC |
23612 | return 0; |
23613 | } | |
db9f46a9 | 23614 | |
1409cd0b | 23615 | _ACEOF |
5213506e | 23616 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23617 | gcc_cv_math_func_tanhl=yes |
1409cd0b | 23618 | else |
db9f46a9 | 23619 | gcc_cv_math_func_tanhl=no |
1409cd0b | 23620 | fi |
5213506e RW |
23621 | rm -f core conftest.err conftest.$ac_objext \ |
23622 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23623 | fi |
db9f46a9 TG |
23624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5 |
23625 | $as_echo "$gcc_cv_math_func_tanhl" >&6; } | |
23626 | if test $gcc_cv_math_func_tanhl = yes; then | |
f1cdfa01 | 23627 | |
f38a14ca TG |
23628 | cat >>confdefs.h <<_ACEOF |
23629 | #define HAVE_TANHL 1 | |
23630 | _ACEOF | |
db9f46a9 TG |
23631 | |
23632 | fi | |
1409cd0b | 23633 | |
1409cd0b | 23634 | |
1409cd0b | 23635 | |
db9f46a9 TG |
23636 | |
23637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5 | |
23638 | $as_echo_n "checking for ctanhf... " >&6; } | |
22e05272 | 23639 | if ${gcc_cv_math_func_ctanhf+:} false; then : |
5213506e | 23640 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23641 | else |
db9f46a9 | 23642 | if test x$gcc_no_link = xyes; then |
22e05272 | 23643 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db9f46a9 TG |
23644 | fi |
23645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23646 | /* end confdefs.h. */ | |
23647 | ||
23648 | #ifdef HAVE_COMPLEX_H | |
23649 | #include <complex.h> | |
1409cd0b | 23650 | #endif |
db9f46a9 TG |
23651 | #ifdef HAVE_MATH_H |
23652 | #include <math.h> | |
23653 | #endif | |
23654 | ||
23655 | int (*ptr)() = (int (*)())ctanhf; | |
23656 | ||
1409cd0b FXC |
23657 | int |
23658 | main () | |
23659 | { | |
1409cd0b FXC |
23660 | return 0; |
23661 | } | |
db9f46a9 | 23662 | |
1409cd0b | 23663 | _ACEOF |
5213506e | 23664 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23665 | gcc_cv_math_func_ctanhf=yes |
1409cd0b | 23666 | else |
db9f46a9 | 23667 | gcc_cv_math_func_ctanhf=no |
1409cd0b | 23668 | fi |
5213506e RW |
23669 | rm -f core conftest.err conftest.$ac_objext \ |
23670 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23671 | fi |
db9f46a9 TG |
23672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5 |
23673 | $as_echo "$gcc_cv_math_func_ctanhf" >&6; } | |
23674 | if test $gcc_cv_math_func_ctanhf = yes; then | |
f1cdfa01 | 23675 | |
f38a14ca TG |
23676 | cat >>confdefs.h <<_ACEOF |
23677 | #define HAVE_CTANHF 1 | |
23678 | _ACEOF | |
1409cd0b | 23679 | |
db9f46a9 | 23680 | fi |
1409cd0b | 23681 | |
1409cd0b | 23682 | |
db9f46a9 TG |
23683 | |
23684 | ||
23685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5 | |
23686 | $as_echo_n "checking for ctanh... " >&6; } | |
22e05272 | 23687 | if ${gcc_cv_math_func_ctanh+:} false; then : |
5213506e | 23688 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23689 | else |
db9f46a9 | 23690 | if test x$gcc_no_link = xyes; then |
22e05272 | 23691 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23692 | fi |
5213506e | 23693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23694 | /* end confdefs.h. */ |
23695 | ||
db9f46a9 TG |
23696 | #ifdef HAVE_COMPLEX_H |
23697 | #include <complex.h> | |
23698 | #endif | |
23699 | #ifdef HAVE_MATH_H | |
23700 | #include <math.h> | |
1409cd0b | 23701 | #endif |
db9f46a9 TG |
23702 | |
23703 | int (*ptr)() = (int (*)())ctanh; | |
23704 | ||
1409cd0b FXC |
23705 | int |
23706 | main () | |
23707 | { | |
5213506e RW |
23708 | return 0; |
23709 | } | |
db9f46a9 | 23710 | |
5213506e RW |
23711 | _ACEOF |
23712 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 23713 | gcc_cv_math_func_ctanh=yes |
1409cd0b | 23714 | else |
db9f46a9 | 23715 | gcc_cv_math_func_ctanh=no |
1409cd0b | 23716 | fi |
5213506e RW |
23717 | rm -f core conftest.err conftest.$ac_objext \ |
23718 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23719 | fi |
db9f46a9 TG |
23720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5 |
23721 | $as_echo "$gcc_cv_math_func_ctanh" >&6; } | |
23722 | if test $gcc_cv_math_func_ctanh = yes; then | |
f1cdfa01 | 23723 | |
f38a14ca TG |
23724 | cat >>confdefs.h <<_ACEOF |
23725 | #define HAVE_CTANH 1 | |
23726 | _ACEOF | |
db9f46a9 TG |
23727 | |
23728 | fi | |
1409cd0b | 23729 | |
1409cd0b | 23730 | |
1409cd0b | 23731 | |
db9f46a9 TG |
23732 | |
23733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5 | |
23734 | $as_echo_n "checking for ctanhl... " >&6; } | |
22e05272 | 23735 | if ${gcc_cv_math_func_ctanhl+:} false; then : |
5213506e | 23736 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23737 | else |
db9f46a9 | 23738 | if test x$gcc_no_link = xyes; then |
22e05272 | 23739 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23740 | fi |
5213506e | 23741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23742 | /* end confdefs.h. */ |
23743 | ||
db9f46a9 TG |
23744 | #ifdef HAVE_COMPLEX_H |
23745 | #include <complex.h> | |
1409cd0b | 23746 | #endif |
db9f46a9 TG |
23747 | #ifdef HAVE_MATH_H |
23748 | #include <math.h> | |
23749 | #endif | |
23750 | ||
23751 | int (*ptr)() = (int (*)())ctanhl; | |
23752 | ||
1409cd0b FXC |
23753 | int |
23754 | main () | |
23755 | { | |
1409cd0b FXC |
23756 | return 0; |
23757 | } | |
db9f46a9 | 23758 | |
1409cd0b | 23759 | _ACEOF |
5213506e | 23760 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23761 | gcc_cv_math_func_ctanhl=yes |
1409cd0b | 23762 | else |
db9f46a9 | 23763 | gcc_cv_math_func_ctanhl=no |
1409cd0b | 23764 | fi |
5213506e RW |
23765 | rm -f core conftest.err conftest.$ac_objext \ |
23766 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23767 | fi |
db9f46a9 TG |
23768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5 |
23769 | $as_echo "$gcc_cv_math_func_ctanhl" >&6; } | |
23770 | if test $gcc_cv_math_func_ctanhl = yes; then | |
f1cdfa01 | 23771 | |
f38a14ca TG |
23772 | cat >>confdefs.h <<_ACEOF |
23773 | #define HAVE_CTANHL 1 | |
23774 | _ACEOF | |
db9f46a9 TG |
23775 | |
23776 | fi | |
23777 | ||
1409cd0b | 23778 | |
69a2d125 | 23779 | |
69a2d125 | 23780 | |
db9f46a9 TG |
23781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5 |
23782 | $as_echo_n "checking for truncf... " >&6; } | |
22e05272 | 23783 | if ${gcc_cv_math_func_truncf+:} false; then : |
5213506e | 23784 | $as_echo_n "(cached) " >&6 |
69a2d125 | 23785 | else |
db9f46a9 | 23786 | if test x$gcc_no_link = xyes; then |
22e05272 | 23787 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 23788 | fi |
5213506e | 23789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
69a2d125 EB |
23790 | /* end confdefs.h. */ |
23791 | ||
db9f46a9 TG |
23792 | #ifdef HAVE_COMPLEX_H |
23793 | #include <complex.h> | |
23794 | #endif | |
23795 | #ifdef HAVE_MATH_H | |
23796 | #include <math.h> | |
69a2d125 | 23797 | #endif |
db9f46a9 TG |
23798 | |
23799 | int (*ptr)() = (int (*)())truncf; | |
23800 | ||
1409cd0b FXC |
23801 | int |
23802 | main () | |
23803 | { | |
1409cd0b FXC |
23804 | return 0; |
23805 | } | |
db9f46a9 | 23806 | |
1409cd0b | 23807 | _ACEOF |
5213506e | 23808 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23809 | gcc_cv_math_func_truncf=yes |
1409cd0b | 23810 | else |
db9f46a9 | 23811 | gcc_cv_math_func_truncf=no |
1409cd0b | 23812 | fi |
5213506e RW |
23813 | rm -f core conftest.err conftest.$ac_objext \ |
23814 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23815 | fi |
db9f46a9 TG |
23816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5 |
23817 | $as_echo "$gcc_cv_math_func_truncf" >&6; } | |
23818 | if test $gcc_cv_math_func_truncf = yes; then | |
f1cdfa01 | 23819 | |
f38a14ca TG |
23820 | cat >>confdefs.h <<_ACEOF |
23821 | #define HAVE_TRUNCF 1 | |
23822 | _ACEOF | |
db9f46a9 TG |
23823 | |
23824 | fi | |
1409cd0b | 23825 | |
1409cd0b | 23826 | |
1409cd0b | 23827 | |
db9f46a9 TG |
23828 | |
23829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5 | |
23830 | $as_echo_n "checking for trunc... " >&6; } | |
22e05272 | 23831 | if ${gcc_cv_math_func_trunc+:} false; then : |
5213506e | 23832 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23833 | else |
db9f46a9 | 23834 | if test x$gcc_no_link = xyes; then |
22e05272 | 23835 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23836 | fi |
5213506e | 23837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23838 | /* end confdefs.h. */ |
23839 | ||
db9f46a9 TG |
23840 | #ifdef HAVE_COMPLEX_H |
23841 | #include <complex.h> | |
1409cd0b | 23842 | #endif |
db9f46a9 TG |
23843 | #ifdef HAVE_MATH_H |
23844 | #include <math.h> | |
23845 | #endif | |
23846 | ||
23847 | int (*ptr)() = (int (*)())trunc; | |
23848 | ||
1409cd0b FXC |
23849 | int |
23850 | main () | |
23851 | { | |
1409cd0b FXC |
23852 | return 0; |
23853 | } | |
db9f46a9 | 23854 | |
1409cd0b | 23855 | _ACEOF |
5213506e | 23856 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23857 | gcc_cv_math_func_trunc=yes |
1409cd0b | 23858 | else |
db9f46a9 | 23859 | gcc_cv_math_func_trunc=no |
1409cd0b | 23860 | fi |
5213506e RW |
23861 | rm -f core conftest.err conftest.$ac_objext \ |
23862 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23863 | fi |
db9f46a9 TG |
23864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5 |
23865 | $as_echo "$gcc_cv_math_func_trunc" >&6; } | |
23866 | if test $gcc_cv_math_func_trunc = yes; then | |
f1cdfa01 | 23867 | |
f38a14ca TG |
23868 | cat >>confdefs.h <<_ACEOF |
23869 | #define HAVE_TRUNC 1 | |
23870 | _ACEOF | |
1409cd0b | 23871 | |
db9f46a9 | 23872 | fi |
1409cd0b | 23873 | |
1409cd0b | 23874 | |
db9f46a9 TG |
23875 | |
23876 | ||
23877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5 | |
23878 | $as_echo_n "checking for truncl... " >&6; } | |
22e05272 | 23879 | if ${gcc_cv_math_func_truncl+:} false; then : |
5213506e | 23880 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23881 | else |
db9f46a9 | 23882 | if test x$gcc_no_link = xyes; then |
22e05272 | 23883 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23884 | fi |
5213506e | 23885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23886 | /* end confdefs.h. */ |
23887 | ||
db9f46a9 TG |
23888 | #ifdef HAVE_COMPLEX_H |
23889 | #include <complex.h> | |
23890 | #endif | |
23891 | #ifdef HAVE_MATH_H | |
23892 | #include <math.h> | |
1409cd0b | 23893 | #endif |
db9f46a9 TG |
23894 | |
23895 | int (*ptr)() = (int (*)())truncl; | |
23896 | ||
1409cd0b FXC |
23897 | int |
23898 | main () | |
23899 | { | |
1409cd0b FXC |
23900 | return 0; |
23901 | } | |
db9f46a9 | 23902 | |
1409cd0b | 23903 | _ACEOF |
5213506e | 23904 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23905 | gcc_cv_math_func_truncl=yes |
1409cd0b | 23906 | else |
db9f46a9 | 23907 | gcc_cv_math_func_truncl=no |
1409cd0b | 23908 | fi |
5213506e RW |
23909 | rm -f core conftest.err conftest.$ac_objext \ |
23910 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23911 | fi |
db9f46a9 TG |
23912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5 |
23913 | $as_echo "$gcc_cv_math_func_truncl" >&6; } | |
23914 | if test $gcc_cv_math_func_truncl = yes; then | |
f1cdfa01 | 23915 | |
f38a14ca TG |
23916 | cat >>confdefs.h <<_ACEOF |
23917 | #define HAVE_TRUNCL 1 | |
23918 | _ACEOF | |
db9f46a9 TG |
23919 | |
23920 | fi | |
1409cd0b | 23921 | |
1409cd0b | 23922 | |
1409cd0b | 23923 | |
db9f46a9 TG |
23924 | |
23925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5 | |
23926 | $as_echo_n "checking for erff... " >&6; } | |
22e05272 | 23927 | if ${gcc_cv_math_func_erff+:} false; then : |
5213506e | 23928 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23929 | else |
db9f46a9 | 23930 | if test x$gcc_no_link = xyes; then |
22e05272 | 23931 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23932 | fi |
5213506e | 23933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23934 | /* end confdefs.h. */ |
23935 | ||
db9f46a9 TG |
23936 | #ifdef HAVE_COMPLEX_H |
23937 | #include <complex.h> | |
1409cd0b | 23938 | #endif |
db9f46a9 TG |
23939 | #ifdef HAVE_MATH_H |
23940 | #include <math.h> | |
23941 | #endif | |
23942 | ||
23943 | int (*ptr)() = (int (*)())erff; | |
23944 | ||
1409cd0b FXC |
23945 | int |
23946 | main () | |
23947 | { | |
1409cd0b FXC |
23948 | return 0; |
23949 | } | |
db9f46a9 | 23950 | |
1409cd0b | 23951 | _ACEOF |
5213506e | 23952 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23953 | gcc_cv_math_func_erff=yes |
1409cd0b | 23954 | else |
db9f46a9 | 23955 | gcc_cv_math_func_erff=no |
1409cd0b | 23956 | fi |
5213506e RW |
23957 | rm -f core conftest.err conftest.$ac_objext \ |
23958 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23959 | fi |
db9f46a9 TG |
23960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5 |
23961 | $as_echo "$gcc_cv_math_func_erff" >&6; } | |
23962 | if test $gcc_cv_math_func_erff = yes; then | |
f1cdfa01 | 23963 | |
f38a14ca TG |
23964 | cat >>confdefs.h <<_ACEOF |
23965 | #define HAVE_ERFF 1 | |
23966 | _ACEOF | |
db9f46a9 TG |
23967 | |
23968 | fi | |
23969 | ||
1409cd0b | 23970 | |
1409cd0b | 23971 | |
1409cd0b | 23972 | |
db9f46a9 TG |
23973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5 |
23974 | $as_echo_n "checking for erf... " >&6; } | |
22e05272 | 23975 | if ${gcc_cv_math_func_erf+:} false; then : |
5213506e | 23976 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23977 | else |
db9f46a9 | 23978 | if test x$gcc_no_link = xyes; then |
22e05272 | 23979 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23980 | fi |
5213506e | 23981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23982 | /* end confdefs.h. */ |
23983 | ||
db9f46a9 TG |
23984 | #ifdef HAVE_COMPLEX_H |
23985 | #include <complex.h> | |
23986 | #endif | |
23987 | #ifdef HAVE_MATH_H | |
23988 | #include <math.h> | |
1409cd0b | 23989 | #endif |
db9f46a9 TG |
23990 | |
23991 | int (*ptr)() = (int (*)())erf; | |
23992 | ||
1409cd0b FXC |
23993 | int |
23994 | main () | |
23995 | { | |
1409cd0b FXC |
23996 | return 0; |
23997 | } | |
db9f46a9 | 23998 | |
1409cd0b | 23999 | _ACEOF |
5213506e | 24000 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24001 | gcc_cv_math_func_erf=yes |
1409cd0b | 24002 | else |
db9f46a9 | 24003 | gcc_cv_math_func_erf=no |
1409cd0b | 24004 | fi |
5213506e RW |
24005 | rm -f core conftest.err conftest.$ac_objext \ |
24006 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 24007 | fi |
db9f46a9 TG |
24008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5 |
24009 | $as_echo "$gcc_cv_math_func_erf" >&6; } | |
24010 | if test $gcc_cv_math_func_erf = yes; then | |
f1cdfa01 | 24011 | |
f38a14ca TG |
24012 | cat >>confdefs.h <<_ACEOF |
24013 | #define HAVE_ERF 1 | |
24014 | _ACEOF | |
db9f46a9 TG |
24015 | |
24016 | fi | |
1409cd0b | 24017 | |
1409cd0b | 24018 | |
1409cd0b | 24019 | |
db9f46a9 | 24020 | |
db9f46a9 TG |
24021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5 |
24022 | $as_echo_n "checking for erfcf... " >&6; } | |
22e05272 | 24023 | if ${gcc_cv_math_func_erfcf+:} false; then : |
5213506e | 24024 | $as_echo_n "(cached) " >&6 |
1409cd0b | 24025 | else |
db9f46a9 | 24026 | if test x$gcc_no_link = xyes; then |
22e05272 | 24027 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 24028 | fi |
5213506e | 24029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
24030 | /* end confdefs.h. */ |
24031 | ||
db9f46a9 TG |
24032 | #ifdef HAVE_COMPLEX_H |
24033 | #include <complex.h> | |
24034 | #endif | |
24035 | #ifdef HAVE_MATH_H | |
24036 | #include <math.h> | |
1409cd0b | 24037 | #endif |
db9f46a9 TG |
24038 | |
24039 | int (*ptr)() = (int (*)())erfcf; | |
24040 | ||
1409cd0b FXC |
24041 | int |
24042 | main () | |
24043 | { | |
1409cd0b FXC |
24044 | return 0; |
24045 | } | |
db9f46a9 | 24046 | |
1409cd0b | 24047 | _ACEOF |
5213506e | 24048 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24049 | gcc_cv_math_func_erfcf=yes |
1409cd0b | 24050 | else |
db9f46a9 | 24051 | gcc_cv_math_func_erfcf=no |
1409cd0b | 24052 | fi |
5213506e RW |
24053 | rm -f core conftest.err conftest.$ac_objext \ |
24054 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 24055 | fi |
db9f46a9 TG |
24056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5 |
24057 | $as_echo "$gcc_cv_math_func_erfcf" >&6; } | |
24058 | if test $gcc_cv_math_func_erfcf = yes; then | |
f1cdfa01 | 24059 | |
f38a14ca TG |
24060 | cat >>confdefs.h <<_ACEOF |
24061 | #define HAVE_ERFCF 1 | |
24062 | _ACEOF | |
db9f46a9 TG |
24063 | |
24064 | fi | |
1409cd0b | 24065 | |
1409cd0b | 24066 | |
1409cd0b | 24067 | |
db9f46a9 TG |
24068 | |
24069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5 | |
24070 | $as_echo_n "checking for erfc... " >&6; } | |
22e05272 | 24071 | if ${gcc_cv_math_func_erfc+:} false; then : |
5213506e | 24072 | $as_echo_n "(cached) " >&6 |
1409cd0b | 24073 | else |
db9f46a9 | 24074 | if test x$gcc_no_link = xyes; then |
22e05272 | 24075 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 24076 | fi |
5213506e | 24077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
24078 | /* end confdefs.h. */ |
24079 | ||
db9f46a9 TG |
24080 | #ifdef HAVE_COMPLEX_H |
24081 | #include <complex.h> | |
1409cd0b | 24082 | #endif |
db9f46a9 TG |
24083 | #ifdef HAVE_MATH_H |
24084 | #include <math.h> | |
24085 | #endif | |
24086 | ||
24087 | int (*ptr)() = (int (*)())erfc; | |
24088 | ||
69a2d125 EB |
24089 | int |
24090 | main () | |
24091 | { | |
69a2d125 EB |
24092 | return 0; |
24093 | } | |
db9f46a9 | 24094 | |
69a2d125 | 24095 | _ACEOF |
5213506e | 24096 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24097 | gcc_cv_math_func_erfc=yes |
69a2d125 | 24098 | else |
db9f46a9 | 24099 | gcc_cv_math_func_erfc=no |
69a2d125 | 24100 | fi |
5213506e RW |
24101 | rm -f core conftest.err conftest.$ac_objext \ |
24102 | conftest$ac_exeext conftest.$ac_ext | |
69a2d125 | 24103 | fi |
db9f46a9 TG |
24104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5 |
24105 | $as_echo "$gcc_cv_math_func_erfc" >&6; } | |
24106 | if test $gcc_cv_math_func_erfc = yes; then | |
f1cdfa01 | 24107 | |
f38a14ca TG |
24108 | cat >>confdefs.h <<_ACEOF |
24109 | #define HAVE_ERFC 1 | |
24110 | _ACEOF | |
db9f46a9 TG |
24111 | |
24112 | fi | |
24113 | ||
69a2d125 | 24114 | |
69a2d125 | 24115 | |
69a2d125 | 24116 | |
db9f46a9 TG |
24117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5 |
24118 | $as_echo_n "checking for erfcl... " >&6; } | |
22e05272 | 24119 | if ${gcc_cv_math_func_erfcl+:} false; then : |
5213506e | 24120 | $as_echo_n "(cached) " >&6 |
e8525382 | 24121 | else |
db9f46a9 | 24122 | if test x$gcc_no_link = xyes; then |
22e05272 | 24123 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24124 | fi |
5213506e | 24125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24126 | /* end confdefs.h. */ |
24127 | ||
db9f46a9 TG |
24128 | #ifdef HAVE_COMPLEX_H |
24129 | #include <complex.h> | |
24130 | #endif | |
24131 | #ifdef HAVE_MATH_H | |
24132 | #include <math.h> | |
e8525382 | 24133 | #endif |
db9f46a9 TG |
24134 | |
24135 | int (*ptr)() = (int (*)())erfcl; | |
24136 | ||
e8525382 SK |
24137 | int |
24138 | main () | |
24139 | { | |
e8525382 SK |
24140 | return 0; |
24141 | } | |
db9f46a9 | 24142 | |
e8525382 | 24143 | _ACEOF |
5213506e | 24144 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24145 | gcc_cv_math_func_erfcl=yes |
e8525382 | 24146 | else |
db9f46a9 | 24147 | gcc_cv_math_func_erfcl=no |
e8525382 | 24148 | fi |
5213506e RW |
24149 | rm -f core conftest.err conftest.$ac_objext \ |
24150 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24151 | fi |
db9f46a9 TG |
24152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5 |
24153 | $as_echo "$gcc_cv_math_func_erfcl" >&6; } | |
24154 | if test $gcc_cv_math_func_erfcl = yes; then | |
f1cdfa01 | 24155 | |
f38a14ca TG |
24156 | cat >>confdefs.h <<_ACEOF |
24157 | #define HAVE_ERFCL 1 | |
24158 | _ACEOF | |
db9f46a9 TG |
24159 | |
24160 | fi | |
e8525382 | 24161 | |
e8525382 | 24162 | |
e8525382 | 24163 | |
db9f46a9 TG |
24164 | |
24165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5 | |
24166 | $as_echo_n "checking for j0f... " >&6; } | |
22e05272 | 24167 | if ${gcc_cv_math_func_j0f+:} false; then : |
5213506e | 24168 | $as_echo_n "(cached) " >&6 |
e8525382 | 24169 | else |
db9f46a9 | 24170 | if test x$gcc_no_link = xyes; then |
22e05272 | 24171 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24172 | fi |
5213506e | 24173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24174 | /* end confdefs.h. */ |
24175 | ||
db9f46a9 TG |
24176 | #ifdef HAVE_COMPLEX_H |
24177 | #include <complex.h> | |
e8525382 | 24178 | #endif |
db9f46a9 TG |
24179 | #ifdef HAVE_MATH_H |
24180 | #include <math.h> | |
24181 | #endif | |
24182 | ||
24183 | int (*ptr)() = (int (*)())j0f; | |
24184 | ||
e8525382 SK |
24185 | int |
24186 | main () | |
24187 | { | |
e8525382 SK |
24188 | return 0; |
24189 | } | |
db9f46a9 | 24190 | |
e8525382 | 24191 | _ACEOF |
5213506e | 24192 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24193 | gcc_cv_math_func_j0f=yes |
e8525382 | 24194 | else |
db9f46a9 | 24195 | gcc_cv_math_func_j0f=no |
1409cd0b | 24196 | fi |
5213506e RW |
24197 | rm -f core conftest.err conftest.$ac_objext \ |
24198 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 24199 | fi |
db9f46a9 TG |
24200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5 |
24201 | $as_echo "$gcc_cv_math_func_j0f" >&6; } | |
24202 | if test $gcc_cv_math_func_j0f = yes; then | |
f1cdfa01 | 24203 | |
f38a14ca TG |
24204 | cat >>confdefs.h <<_ACEOF |
24205 | #define HAVE_J0F 1 | |
24206 | _ACEOF | |
1409cd0b | 24207 | |
db9f46a9 | 24208 | fi |
1409cd0b | 24209 | |
1409cd0b | 24210 | |
db9f46a9 TG |
24211 | |
24212 | ||
24213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5 | |
24214 | $as_echo_n "checking for j0... " >&6; } | |
22e05272 | 24215 | if ${gcc_cv_math_func_j0+:} false; then : |
5213506e | 24216 | $as_echo_n "(cached) " >&6 |
1409cd0b | 24217 | else |
db9f46a9 | 24218 | if test x$gcc_no_link = xyes; then |
22e05272 | 24219 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 24220 | fi |
5213506e | 24221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
24222 | /* end confdefs.h. */ |
24223 | ||
db9f46a9 TG |
24224 | #ifdef HAVE_COMPLEX_H |
24225 | #include <complex.h> | |
24226 | #endif | |
24227 | #ifdef HAVE_MATH_H | |
24228 | #include <math.h> | |
1409cd0b | 24229 | #endif |
db9f46a9 TG |
24230 | |
24231 | int (*ptr)() = (int (*)())j0; | |
24232 | ||
1409cd0b FXC |
24233 | int |
24234 | main () | |
24235 | { | |
1409cd0b FXC |
24236 | return 0; |
24237 | } | |
db9f46a9 | 24238 | |
1409cd0b | 24239 | _ACEOF |
5213506e | 24240 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24241 | gcc_cv_math_func_j0=yes |
1409cd0b | 24242 | else |
db9f46a9 | 24243 | gcc_cv_math_func_j0=no |
1409cd0b | 24244 | fi |
5213506e RW |
24245 | rm -f core conftest.err conftest.$ac_objext \ |
24246 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 24247 | fi |
db9f46a9 TG |
24248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5 |
24249 | $as_echo "$gcc_cv_math_func_j0" >&6; } | |
24250 | if test $gcc_cv_math_func_j0 = yes; then | |
f1cdfa01 | 24251 | |
f38a14ca TG |
24252 | cat >>confdefs.h <<_ACEOF |
24253 | #define HAVE_J0 1 | |
24254 | _ACEOF | |
db9f46a9 TG |
24255 | |
24256 | fi | |
1409cd0b | 24257 | |
1409cd0b | 24258 | |
1409cd0b | 24259 | |
db9f46a9 | 24260 | |
db9f46a9 TG |
24261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5 |
24262 | $as_echo_n "checking for j1f... " >&6; } | |
22e05272 | 24263 | if ${gcc_cv_math_func_j1f+:} false; then : |
5213506e | 24264 | $as_echo_n "(cached) " >&6 |
1409cd0b | 24265 | else |
db9f46a9 | 24266 | if test x$gcc_no_link = xyes; then |
22e05272 | 24267 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 24268 | fi |
5213506e | 24269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
24270 | /* end confdefs.h. */ |
24271 | ||
db9f46a9 TG |
24272 | #ifdef HAVE_COMPLEX_H |
24273 | #include <complex.h> | |
24274 | #endif | |
24275 | #ifdef HAVE_MATH_H | |
24276 | #include <math.h> | |
1409cd0b | 24277 | #endif |
db9f46a9 TG |
24278 | |
24279 | int (*ptr)() = (int (*)())j1f; | |
24280 | ||
1409cd0b FXC |
24281 | int |
24282 | main () | |
24283 | { | |
1409cd0b FXC |
24284 | return 0; |
24285 | } | |
db9f46a9 | 24286 | |
1409cd0b | 24287 | _ACEOF |
5213506e | 24288 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24289 | gcc_cv_math_func_j1f=yes |
1409cd0b | 24290 | else |
db9f46a9 | 24291 | gcc_cv_math_func_j1f=no |
e8525382 | 24292 | fi |
5213506e RW |
24293 | rm -f core conftest.err conftest.$ac_objext \ |
24294 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24295 | fi |
db9f46a9 TG |
24296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5 |
24297 | $as_echo "$gcc_cv_math_func_j1f" >&6; } | |
24298 | if test $gcc_cv_math_func_j1f = yes; then | |
f1cdfa01 | 24299 | |
f38a14ca TG |
24300 | cat >>confdefs.h <<_ACEOF |
24301 | #define HAVE_J1F 1 | |
24302 | _ACEOF | |
db9f46a9 TG |
24303 | |
24304 | fi | |
e8525382 | 24305 | |
e8525382 | 24306 | |
e8525382 | 24307 | |
db9f46a9 TG |
24308 | |
24309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5 | |
24310 | $as_echo_n "checking for j1... " >&6; } | |
22e05272 | 24311 | if ${gcc_cv_math_func_j1+:} false; then : |
5213506e | 24312 | $as_echo_n "(cached) " >&6 |
e8525382 | 24313 | else |
db9f46a9 | 24314 | if test x$gcc_no_link = xyes; then |
22e05272 | 24315 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24316 | fi |
5213506e | 24317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24318 | /* end confdefs.h. */ |
24319 | ||
db9f46a9 TG |
24320 | #ifdef HAVE_COMPLEX_H |
24321 | #include <complex.h> | |
e8525382 | 24322 | #endif |
db9f46a9 TG |
24323 | #ifdef HAVE_MATH_H |
24324 | #include <math.h> | |
24325 | #endif | |
24326 | ||
24327 | int (*ptr)() = (int (*)())j1; | |
24328 | ||
e8525382 SK |
24329 | int |
24330 | main () | |
24331 | { | |
e8525382 SK |
24332 | return 0; |
24333 | } | |
db9f46a9 | 24334 | |
e8525382 | 24335 | _ACEOF |
5213506e | 24336 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24337 | gcc_cv_math_func_j1=yes |
e8525382 | 24338 | else |
db9f46a9 | 24339 | gcc_cv_math_func_j1=no |
e8525382 | 24340 | fi |
5213506e RW |
24341 | rm -f core conftest.err conftest.$ac_objext \ |
24342 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24343 | fi |
db9f46a9 TG |
24344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5 |
24345 | $as_echo "$gcc_cv_math_func_j1" >&6; } | |
24346 | if test $gcc_cv_math_func_j1 = yes; then | |
f1cdfa01 | 24347 | |
f38a14ca TG |
24348 | cat >>confdefs.h <<_ACEOF |
24349 | #define HAVE_J1 1 | |
24350 | _ACEOF | |
e8525382 | 24351 | |
db9f46a9 | 24352 | fi |
e8525382 | 24353 | |
e8525382 | 24354 | |
db9f46a9 TG |
24355 | |
24356 | ||
db9f46a9 TG |
24357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5 |
24358 | $as_echo_n "checking for jnf... " >&6; } | |
22e05272 | 24359 | if ${gcc_cv_math_func_jnf+:} false; then : |
5213506e | 24360 | $as_echo_n "(cached) " >&6 |
e8525382 | 24361 | else |
db9f46a9 | 24362 | if test x$gcc_no_link = xyes; then |
22e05272 | 24363 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24364 | fi |
5213506e | 24365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24366 | /* end confdefs.h. */ |
24367 | ||
db9f46a9 TG |
24368 | #ifdef HAVE_COMPLEX_H |
24369 | #include <complex.h> | |
e8525382 | 24370 | #endif |
db9f46a9 TG |
24371 | #ifdef HAVE_MATH_H |
24372 | #include <math.h> | |
24373 | #endif | |
24374 | ||
24375 | int (*ptr)() = (int (*)())jnf; | |
24376 | ||
e8525382 SK |
24377 | int |
24378 | main () | |
24379 | { | |
e8525382 SK |
24380 | return 0; |
24381 | } | |
db9f46a9 | 24382 | |
e8525382 | 24383 | _ACEOF |
5213506e | 24384 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24385 | gcc_cv_math_func_jnf=yes |
e8525382 | 24386 | else |
db9f46a9 | 24387 | gcc_cv_math_func_jnf=no |
e8525382 | 24388 | fi |
5213506e RW |
24389 | rm -f core conftest.err conftest.$ac_objext \ |
24390 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24391 | fi |
db9f46a9 TG |
24392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5 |
24393 | $as_echo "$gcc_cv_math_func_jnf" >&6; } | |
24394 | if test $gcc_cv_math_func_jnf = yes; then | |
f1cdfa01 | 24395 | |
f38a14ca TG |
24396 | cat >>confdefs.h <<_ACEOF |
24397 | #define HAVE_JNF 1 | |
24398 | _ACEOF | |
db9f46a9 TG |
24399 | |
24400 | fi | |
24401 | ||
e8525382 | 24402 | |
e8525382 | 24403 | |
e8525382 | 24404 | |
db9f46a9 TG |
24405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5 |
24406 | $as_echo_n "checking for jn... " >&6; } | |
22e05272 | 24407 | if ${gcc_cv_math_func_jn+:} false; then : |
5213506e | 24408 | $as_echo_n "(cached) " >&6 |
e8525382 | 24409 | else |
db9f46a9 | 24410 | if test x$gcc_no_link = xyes; then |
22e05272 | 24411 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24412 | fi |
5213506e | 24413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24414 | /* end confdefs.h. */ |
24415 | ||
db9f46a9 TG |
24416 | #ifdef HAVE_COMPLEX_H |
24417 | #include <complex.h> | |
24418 | #endif | |
24419 | #ifdef HAVE_MATH_H | |
24420 | #include <math.h> | |
e8525382 | 24421 | #endif |
db9f46a9 TG |
24422 | |
24423 | int (*ptr)() = (int (*)())jn; | |
24424 | ||
e8525382 SK |
24425 | int |
24426 | main () | |
24427 | { | |
e8525382 SK |
24428 | return 0; |
24429 | } | |
db9f46a9 | 24430 | |
e8525382 | 24431 | _ACEOF |
5213506e | 24432 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24433 | gcc_cv_math_func_jn=yes |
e8525382 | 24434 | else |
db9f46a9 | 24435 | gcc_cv_math_func_jn=no |
e8525382 | 24436 | fi |
5213506e RW |
24437 | rm -f core conftest.err conftest.$ac_objext \ |
24438 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24439 | fi |
db9f46a9 TG |
24440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5 |
24441 | $as_echo "$gcc_cv_math_func_jn" >&6; } | |
24442 | if test $gcc_cv_math_func_jn = yes; then | |
f1cdfa01 | 24443 | |
f38a14ca TG |
24444 | cat >>confdefs.h <<_ACEOF |
24445 | #define HAVE_JN 1 | |
24446 | _ACEOF | |
db9f46a9 TG |
24447 | |
24448 | fi | |
e8525382 | 24449 | |
e8525382 | 24450 | |
e8525382 | 24451 | |
db9f46a9 TG |
24452 | |
24453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5 | |
24454 | $as_echo_n "checking for jnl... " >&6; } | |
22e05272 | 24455 | if ${gcc_cv_math_func_jnl+:} false; then : |
5213506e | 24456 | $as_echo_n "(cached) " >&6 |
e8525382 | 24457 | else |
db9f46a9 | 24458 | if test x$gcc_no_link = xyes; then |
22e05272 | 24459 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24460 | fi |
5213506e | 24461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24462 | /* end confdefs.h. */ |
24463 | ||
db9f46a9 TG |
24464 | #ifdef HAVE_COMPLEX_H |
24465 | #include <complex.h> | |
e8525382 | 24466 | #endif |
db9f46a9 TG |
24467 | #ifdef HAVE_MATH_H |
24468 | #include <math.h> | |
24469 | #endif | |
24470 | ||
24471 | int (*ptr)() = (int (*)())jnl; | |
24472 | ||
e8525382 SK |
24473 | int |
24474 | main () | |
24475 | { | |
e8525382 SK |
24476 | return 0; |
24477 | } | |
db9f46a9 | 24478 | |
e8525382 | 24479 | _ACEOF |
5213506e | 24480 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24481 | gcc_cv_math_func_jnl=yes |
e8525382 | 24482 | else |
db9f46a9 | 24483 | gcc_cv_math_func_jnl=no |
e8525382 | 24484 | fi |
5213506e RW |
24485 | rm -f core conftest.err conftest.$ac_objext \ |
24486 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24487 | fi |
db9f46a9 TG |
24488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5 |
24489 | $as_echo "$gcc_cv_math_func_jnl" >&6; } | |
24490 | if test $gcc_cv_math_func_jnl = yes; then | |
f1cdfa01 | 24491 | |
f38a14ca TG |
24492 | cat >>confdefs.h <<_ACEOF |
24493 | #define HAVE_JNL 1 | |
24494 | _ACEOF | |
e8525382 | 24495 | |
db9f46a9 | 24496 | fi |
e8525382 | 24497 | |
e8525382 | 24498 | |
db9f46a9 TG |
24499 | |
24500 | ||
24501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5 | |
24502 | $as_echo_n "checking for y0f... " >&6; } | |
22e05272 | 24503 | if ${gcc_cv_math_func_y0f+:} false; then : |
5213506e | 24504 | $as_echo_n "(cached) " >&6 |
e8525382 | 24505 | else |
db9f46a9 | 24506 | if test x$gcc_no_link = xyes; then |
22e05272 | 24507 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24508 | fi |
5213506e | 24509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24510 | /* end confdefs.h. */ |
24511 | ||
db9f46a9 TG |
24512 | #ifdef HAVE_COMPLEX_H |
24513 | #include <complex.h> | |
24514 | #endif | |
24515 | #ifdef HAVE_MATH_H | |
24516 | #include <math.h> | |
e8525382 | 24517 | #endif |
db9f46a9 TG |
24518 | |
24519 | int (*ptr)() = (int (*)())y0f; | |
24520 | ||
e8525382 SK |
24521 | int |
24522 | main () | |
24523 | { | |
e8525382 SK |
24524 | return 0; |
24525 | } | |
db9f46a9 | 24526 | |
e8525382 | 24527 | _ACEOF |
5213506e | 24528 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24529 | gcc_cv_math_func_y0f=yes |
e8525382 | 24530 | else |
db9f46a9 | 24531 | gcc_cv_math_func_y0f=no |
e8525382 | 24532 | fi |
5213506e RW |
24533 | rm -f core conftest.err conftest.$ac_objext \ |
24534 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24535 | fi |
db9f46a9 TG |
24536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5 |
24537 | $as_echo "$gcc_cv_math_func_y0f" >&6; } | |
24538 | if test $gcc_cv_math_func_y0f = yes; then | |
f1cdfa01 | 24539 | |
f38a14ca TG |
24540 | cat >>confdefs.h <<_ACEOF |
24541 | #define HAVE_Y0F 1 | |
24542 | _ACEOF | |
db9f46a9 TG |
24543 | |
24544 | fi | |
e8525382 | 24545 | |
e8525382 | 24546 | |
e8525382 | 24547 | |
db9f46a9 TG |
24548 | |
24549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5 | |
24550 | $as_echo_n "checking for y0... " >&6; } | |
22e05272 | 24551 | if ${gcc_cv_math_func_y0+:} false; then : |
5213506e | 24552 | $as_echo_n "(cached) " >&6 |
e8525382 | 24553 | else |
db9f46a9 | 24554 | if test x$gcc_no_link = xyes; then |
22e05272 | 24555 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24556 | fi |
5213506e | 24557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24558 | /* end confdefs.h. */ |
24559 | ||
db9f46a9 TG |
24560 | #ifdef HAVE_COMPLEX_H |
24561 | #include <complex.h> | |
e8525382 | 24562 | #endif |
db9f46a9 TG |
24563 | #ifdef HAVE_MATH_H |
24564 | #include <math.h> | |
24565 | #endif | |
24566 | ||
24567 | int (*ptr)() = (int (*)())y0; | |
24568 | ||
e8525382 SK |
24569 | int |
24570 | main () | |
24571 | { | |
e8525382 SK |
24572 | return 0; |
24573 | } | |
db9f46a9 | 24574 | |
e8525382 | 24575 | _ACEOF |
5213506e | 24576 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24577 | gcc_cv_math_func_y0=yes |
e8525382 | 24578 | else |
db9f46a9 | 24579 | gcc_cv_math_func_y0=no |
e8525382 | 24580 | fi |
5213506e RW |
24581 | rm -f core conftest.err conftest.$ac_objext \ |
24582 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24583 | fi |
db9f46a9 TG |
24584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5 |
24585 | $as_echo "$gcc_cv_math_func_y0" >&6; } | |
24586 | if test $gcc_cv_math_func_y0 = yes; then | |
f1cdfa01 | 24587 | |
f38a14ca TG |
24588 | cat >>confdefs.h <<_ACEOF |
24589 | #define HAVE_Y0 1 | |
24590 | _ACEOF | |
db9f46a9 TG |
24591 | |
24592 | fi | |
24593 | ||
e8525382 | 24594 | |
e8525382 | 24595 | |
e8525382 | 24596 | |
db9f46a9 TG |
24597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5 |
24598 | $as_echo_n "checking for y1f... " >&6; } | |
22e05272 | 24599 | if ${gcc_cv_math_func_y1f+:} false; then : |
5213506e | 24600 | $as_echo_n "(cached) " >&6 |
e8525382 | 24601 | else |
db9f46a9 | 24602 | if test x$gcc_no_link = xyes; then |
22e05272 | 24603 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24604 | fi |
5213506e | 24605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24606 | /* end confdefs.h. */ |
24607 | ||
db9f46a9 TG |
24608 | #ifdef HAVE_COMPLEX_H |
24609 | #include <complex.h> | |
e8525382 | 24610 | #endif |
db9f46a9 TG |
24611 | #ifdef HAVE_MATH_H |
24612 | #include <math.h> | |
24613 | #endif | |
24614 | ||
24615 | int (*ptr)() = (int (*)())y1f; | |
24616 | ||
e8525382 SK |
24617 | int |
24618 | main () | |
24619 | { | |
e8525382 SK |
24620 | return 0; |
24621 | } | |
db9f46a9 | 24622 | |
e8525382 | 24623 | _ACEOF |
5213506e | 24624 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24625 | gcc_cv_math_func_y1f=yes |
e8525382 | 24626 | else |
db9f46a9 | 24627 | gcc_cv_math_func_y1f=no |
e8525382 | 24628 | fi |
5213506e RW |
24629 | rm -f core conftest.err conftest.$ac_objext \ |
24630 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24631 | fi |
db9f46a9 TG |
24632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5 |
24633 | $as_echo "$gcc_cv_math_func_y1f" >&6; } | |
24634 | if test $gcc_cv_math_func_y1f = yes; then | |
f1cdfa01 | 24635 | |
f38a14ca TG |
24636 | cat >>confdefs.h <<_ACEOF |
24637 | #define HAVE_Y1F 1 | |
24638 | _ACEOF | |
e8525382 | 24639 | |
db9f46a9 | 24640 | fi |
e8525382 | 24641 | |
e8525382 | 24642 | |
db9f46a9 TG |
24643 | |
24644 | ||
24645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5 | |
24646 | $as_echo_n "checking for y1... " >&6; } | |
22e05272 | 24647 | if ${gcc_cv_math_func_y1+:} false; then : |
5213506e | 24648 | $as_echo_n "(cached) " >&6 |
e8525382 | 24649 | else |
db9f46a9 | 24650 | if test x$gcc_no_link = xyes; then |
22e05272 | 24651 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24652 | fi |
5213506e | 24653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24654 | /* end confdefs.h. */ |
24655 | ||
db9f46a9 TG |
24656 | #ifdef HAVE_COMPLEX_H |
24657 | #include <complex.h> | |
24658 | #endif | |
24659 | #ifdef HAVE_MATH_H | |
24660 | #include <math.h> | |
e8525382 | 24661 | #endif |
db9f46a9 TG |
24662 | |
24663 | int (*ptr)() = (int (*)())y1; | |
24664 | ||
e8525382 SK |
24665 | int |
24666 | main () | |
24667 | { | |
e8525382 SK |
24668 | return 0; |
24669 | } | |
db9f46a9 | 24670 | |
e8525382 | 24671 | _ACEOF |
5213506e | 24672 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24673 | gcc_cv_math_func_y1=yes |
e8525382 | 24674 | else |
db9f46a9 | 24675 | gcc_cv_math_func_y1=no |
e8525382 | 24676 | fi |
5213506e RW |
24677 | rm -f core conftest.err conftest.$ac_objext \ |
24678 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24679 | fi |
db9f46a9 TG |
24680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5 |
24681 | $as_echo "$gcc_cv_math_func_y1" >&6; } | |
24682 | if test $gcc_cv_math_func_y1 = yes; then | |
f1cdfa01 | 24683 | |
f38a14ca TG |
24684 | cat >>confdefs.h <<_ACEOF |
24685 | #define HAVE_Y1 1 | |
24686 | _ACEOF | |
db9f46a9 TG |
24687 | |
24688 | fi | |
e8525382 | 24689 | |
e8525382 | 24690 | |
e8525382 | 24691 | |
db9f46a9 | 24692 | |
db9f46a9 TG |
24693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5 |
24694 | $as_echo_n "checking for ynf... " >&6; } | |
22e05272 | 24695 | if ${gcc_cv_math_func_ynf+:} false; then : |
5213506e | 24696 | $as_echo_n "(cached) " >&6 |
db9f46a9 TG |
24697 | else |
24698 | if test x$gcc_no_link = xyes; then | |
22e05272 | 24699 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24700 | fi |
5213506e | 24701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24702 | /* end confdefs.h. */ |
24703 | ||
db9f46a9 TG |
24704 | #ifdef HAVE_COMPLEX_H |
24705 | #include <complex.h> | |
24706 | #endif | |
24707 | #ifdef HAVE_MATH_H | |
24708 | #include <math.h> | |
e8525382 | 24709 | #endif |
db9f46a9 TG |
24710 | |
24711 | int (*ptr)() = (int (*)())ynf; | |
24712 | ||
e8525382 SK |
24713 | int |
24714 | main () | |
24715 | { | |
e8525382 SK |
24716 | return 0; |
24717 | } | |
db9f46a9 | 24718 | |
e8525382 | 24719 | _ACEOF |
5213506e | 24720 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24721 | gcc_cv_math_func_ynf=yes |
e8525382 | 24722 | else |
db9f46a9 | 24723 | gcc_cv_math_func_ynf=no |
e8525382 | 24724 | fi |
5213506e RW |
24725 | rm -f core conftest.err conftest.$ac_objext \ |
24726 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24727 | fi |
db9f46a9 TG |
24728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5 |
24729 | $as_echo "$gcc_cv_math_func_ynf" >&6; } | |
24730 | if test $gcc_cv_math_func_ynf = yes; then | |
f1cdfa01 | 24731 | |
f38a14ca TG |
24732 | cat >>confdefs.h <<_ACEOF |
24733 | #define HAVE_YNF 1 | |
24734 | _ACEOF | |
db9f46a9 TG |
24735 | |
24736 | fi | |
e8525382 | 24737 | |
e8525382 | 24738 | |
e8525382 | 24739 | |
db9f46a9 TG |
24740 | |
24741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5 | |
24742 | $as_echo_n "checking for yn... " >&6; } | |
22e05272 | 24743 | if ${gcc_cv_math_func_yn+:} false; then : |
5213506e | 24744 | $as_echo_n "(cached) " >&6 |
e8525382 | 24745 | else |
db9f46a9 | 24746 | if test x$gcc_no_link = xyes; then |
22e05272 | 24747 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24748 | fi |
5213506e | 24749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24750 | /* end confdefs.h. */ |
24751 | ||
db9f46a9 TG |
24752 | #ifdef HAVE_COMPLEX_H |
24753 | #include <complex.h> | |
e8525382 | 24754 | #endif |
db9f46a9 TG |
24755 | #ifdef HAVE_MATH_H |
24756 | #include <math.h> | |
24757 | #endif | |
24758 | ||
24759 | int (*ptr)() = (int (*)())yn; | |
24760 | ||
e8525382 SK |
24761 | int |
24762 | main () | |
24763 | { | |
e8525382 SK |
24764 | return 0; |
24765 | } | |
db9f46a9 | 24766 | |
e8525382 | 24767 | _ACEOF |
5213506e | 24768 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24769 | gcc_cv_math_func_yn=yes |
e8525382 | 24770 | else |
db9f46a9 | 24771 | gcc_cv_math_func_yn=no |
e8525382 | 24772 | fi |
5213506e RW |
24773 | rm -f core conftest.err conftest.$ac_objext \ |
24774 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24775 | fi |
db9f46a9 TG |
24776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5 |
24777 | $as_echo "$gcc_cv_math_func_yn" >&6; } | |
24778 | if test $gcc_cv_math_func_yn = yes; then | |
f1cdfa01 | 24779 | |
f38a14ca TG |
24780 | cat >>confdefs.h <<_ACEOF |
24781 | #define HAVE_YN 1 | |
24782 | _ACEOF | |
db9f46a9 TG |
24783 | |
24784 | fi | |
24785 | ||
e8525382 | 24786 | |
e8525382 | 24787 | |
e8525382 | 24788 | |
db9f46a9 TG |
24789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5 |
24790 | $as_echo_n "checking for ynl... " >&6; } | |
22e05272 | 24791 | if ${gcc_cv_math_func_ynl+:} false; then : |
5213506e | 24792 | $as_echo_n "(cached) " >&6 |
e8525382 | 24793 | else |
db9f46a9 | 24794 | if test x$gcc_no_link = xyes; then |
22e05272 | 24795 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24796 | fi |
5213506e | 24797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24798 | /* end confdefs.h. */ |
24799 | ||
db9f46a9 TG |
24800 | #ifdef HAVE_COMPLEX_H |
24801 | #include <complex.h> | |
24802 | #endif | |
24803 | #ifdef HAVE_MATH_H | |
24804 | #include <math.h> | |
e8525382 | 24805 | #endif |
db9f46a9 TG |
24806 | |
24807 | int (*ptr)() = (int (*)())ynl; | |
24808 | ||
e8525382 SK |
24809 | int |
24810 | main () | |
24811 | { | |
e8525382 SK |
24812 | return 0; |
24813 | } | |
db9f46a9 | 24814 | |
e8525382 | 24815 | _ACEOF |
5213506e | 24816 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24817 | gcc_cv_math_func_ynl=yes |
e8525382 | 24818 | else |
db9f46a9 | 24819 | gcc_cv_math_func_ynl=no |
e8525382 | 24820 | fi |
5213506e RW |
24821 | rm -f core conftest.err conftest.$ac_objext \ |
24822 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24823 | fi |
db9f46a9 TG |
24824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5 |
24825 | $as_echo "$gcc_cv_math_func_ynl" >&6; } | |
24826 | if test $gcc_cv_math_func_ynl = yes; then | |
f1cdfa01 | 24827 | |
f38a14ca TG |
24828 | cat >>confdefs.h <<_ACEOF |
24829 | #define HAVE_YNL 1 | |
24830 | _ACEOF | |
db9f46a9 TG |
24831 | |
24832 | fi | |
e8525382 | 24833 | |
e8525382 | 24834 | |
e8525382 | 24835 | |
db9f46a9 TG |
24836 | |
24837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5 | |
24838 | $as_echo_n "checking for tgamma... " >&6; } | |
22e05272 | 24839 | if ${gcc_cv_math_func_tgamma+:} false; then : |
5213506e | 24840 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24841 | else |
db9f46a9 | 24842 | if test x$gcc_no_link = xyes; then |
22e05272 | 24843 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24844 | fi |
5213506e | 24845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24846 | /* end confdefs.h. */ |
24847 | ||
db9f46a9 TG |
24848 | #ifdef HAVE_COMPLEX_H |
24849 | #include <complex.h> | |
fb0a0e15 | 24850 | #endif |
db9f46a9 TG |
24851 | #ifdef HAVE_MATH_H |
24852 | #include <math.h> | |
24853 | #endif | |
24854 | ||
24855 | int (*ptr)() = (int (*)())tgamma; | |
24856 | ||
fb0a0e15 FXC |
24857 | int |
24858 | main () | |
24859 | { | |
fb0a0e15 FXC |
24860 | return 0; |
24861 | } | |
db9f46a9 | 24862 | |
fb0a0e15 | 24863 | _ACEOF |
5213506e | 24864 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24865 | gcc_cv_math_func_tgamma=yes |
fb0a0e15 | 24866 | else |
db9f46a9 | 24867 | gcc_cv_math_func_tgamma=no |
fb0a0e15 | 24868 | fi |
5213506e RW |
24869 | rm -f core conftest.err conftest.$ac_objext \ |
24870 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24871 | fi |
db9f46a9 TG |
24872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5 |
24873 | $as_echo "$gcc_cv_math_func_tgamma" >&6; } | |
24874 | if test $gcc_cv_math_func_tgamma = yes; then | |
f1cdfa01 | 24875 | |
f38a14ca TG |
24876 | cat >>confdefs.h <<_ACEOF |
24877 | #define HAVE_TGAMMA 1 | |
24878 | _ACEOF | |
fb0a0e15 | 24879 | |
db9f46a9 | 24880 | fi |
fb0a0e15 | 24881 | |
fb0a0e15 | 24882 | |
db9f46a9 TG |
24883 | |
24884 | ||
24885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5 | |
24886 | $as_echo_n "checking for tgammaf... " >&6; } | |
22e05272 | 24887 | if ${gcc_cv_math_func_tgammaf+:} false; then : |
5213506e | 24888 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24889 | else |
db9f46a9 | 24890 | if test x$gcc_no_link = xyes; then |
22e05272 | 24891 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24892 | fi |
5213506e | 24893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24894 | /* end confdefs.h. */ |
24895 | ||
db9f46a9 TG |
24896 | #ifdef HAVE_COMPLEX_H |
24897 | #include <complex.h> | |
24898 | #endif | |
24899 | #ifdef HAVE_MATH_H | |
24900 | #include <math.h> | |
fb0a0e15 | 24901 | #endif |
db9f46a9 TG |
24902 | |
24903 | int (*ptr)() = (int (*)())tgammaf; | |
24904 | ||
fb0a0e15 FXC |
24905 | int |
24906 | main () | |
24907 | { | |
fb0a0e15 FXC |
24908 | return 0; |
24909 | } | |
db9f46a9 | 24910 | |
fb0a0e15 | 24911 | _ACEOF |
5213506e | 24912 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24913 | gcc_cv_math_func_tgammaf=yes |
fb0a0e15 | 24914 | else |
db9f46a9 | 24915 | gcc_cv_math_func_tgammaf=no |
fb0a0e15 | 24916 | fi |
5213506e RW |
24917 | rm -f core conftest.err conftest.$ac_objext \ |
24918 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24919 | fi |
db9f46a9 TG |
24920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5 |
24921 | $as_echo "$gcc_cv_math_func_tgammaf" >&6; } | |
24922 | if test $gcc_cv_math_func_tgammaf = yes; then | |
f1cdfa01 | 24923 | |
f38a14ca TG |
24924 | cat >>confdefs.h <<_ACEOF |
24925 | #define HAVE_TGAMMAF 1 | |
24926 | _ACEOF | |
db9f46a9 TG |
24927 | |
24928 | fi | |
fb0a0e15 | 24929 | |
fb0a0e15 | 24930 | |
fb0a0e15 | 24931 | |
db9f46a9 | 24932 | |
db9f46a9 TG |
24933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5 |
24934 | $as_echo_n "checking for lgamma... " >&6; } | |
22e05272 | 24935 | if ${gcc_cv_math_func_lgamma+:} false; then : |
5213506e | 24936 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24937 | else |
db9f46a9 | 24938 | if test x$gcc_no_link = xyes; then |
22e05272 | 24939 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24940 | fi |
5213506e | 24941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24942 | /* end confdefs.h. */ |
24943 | ||
db9f46a9 TG |
24944 | #ifdef HAVE_COMPLEX_H |
24945 | #include <complex.h> | |
24946 | #endif | |
24947 | #ifdef HAVE_MATH_H | |
24948 | #include <math.h> | |
fb0a0e15 | 24949 | #endif |
db9f46a9 TG |
24950 | |
24951 | int (*ptr)() = (int (*)())lgamma; | |
24952 | ||
fb0a0e15 FXC |
24953 | int |
24954 | main () | |
24955 | { | |
fb0a0e15 FXC |
24956 | return 0; |
24957 | } | |
db9f46a9 | 24958 | |
fb0a0e15 | 24959 | _ACEOF |
5213506e | 24960 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24961 | gcc_cv_math_func_lgamma=yes |
fb0a0e15 | 24962 | else |
db9f46a9 | 24963 | gcc_cv_math_func_lgamma=no |
fb0a0e15 | 24964 | fi |
5213506e RW |
24965 | rm -f core conftest.err conftest.$ac_objext \ |
24966 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24967 | fi |
db9f46a9 TG |
24968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5 |
24969 | $as_echo "$gcc_cv_math_func_lgamma" >&6; } | |
24970 | if test $gcc_cv_math_func_lgamma = yes; then | |
f1cdfa01 | 24971 | |
f38a14ca TG |
24972 | cat >>confdefs.h <<_ACEOF |
24973 | #define HAVE_LGAMMA 1 | |
24974 | _ACEOF | |
db9f46a9 TG |
24975 | |
24976 | fi | |
fb0a0e15 | 24977 | |
fb0a0e15 | 24978 | |
fb0a0e15 | 24979 | |
db9f46a9 TG |
24980 | |
24981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5 | |
24982 | $as_echo_n "checking for lgammaf... " >&6; } | |
22e05272 | 24983 | if ${gcc_cv_math_func_lgammaf+:} false; then : |
5213506e | 24984 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24985 | else |
db9f46a9 | 24986 | if test x$gcc_no_link = xyes; then |
22e05272 | 24987 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24988 | fi |
5213506e | 24989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24990 | /* end confdefs.h. */ |
24991 | ||
db9f46a9 TG |
24992 | #ifdef HAVE_COMPLEX_H |
24993 | #include <complex.h> | |
fb0a0e15 | 24994 | #endif |
db9f46a9 TG |
24995 | #ifdef HAVE_MATH_H |
24996 | #include <math.h> | |
24997 | #endif | |
24998 | ||
24999 | int (*ptr)() = (int (*)())lgammaf; | |
25000 | ||
fb0a0e15 FXC |
25001 | int |
25002 | main () | |
25003 | { | |
fb0a0e15 FXC |
25004 | return 0; |
25005 | } | |
db9f46a9 | 25006 | |
fb0a0e15 | 25007 | _ACEOF |
5213506e | 25008 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 25009 | gcc_cv_math_func_lgammaf=yes |
fb0a0e15 | 25010 | else |
db9f46a9 | 25011 | gcc_cv_math_func_lgammaf=no |
fb0a0e15 | 25012 | fi |
5213506e RW |
25013 | rm -f core conftest.err conftest.$ac_objext \ |
25014 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 25015 | fi |
db9f46a9 TG |
25016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5 |
25017 | $as_echo "$gcc_cv_math_func_lgammaf" >&6; } | |
25018 | if test $gcc_cv_math_func_lgammaf = yes; then | |
f1cdfa01 | 25019 | |
f38a14ca TG |
25020 | cat >>confdefs.h <<_ACEOF |
25021 | #define HAVE_LGAMMAF 1 | |
25022 | _ACEOF | |
fb0a0e15 | 25023 | |
db9f46a9 | 25024 | fi |
fb0a0e15 | 25025 | |
fb0a0e15 | 25026 | |
db1cf15c | 25027 | # Check for GFORTRAN_C99_1.1 funcs |
db9f46a9 TG |
25028 | |
25029 | ||
25030 | ||
25031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5 | |
25032 | $as_echo_n "checking for cacos... " >&6; } | |
22e05272 | 25033 | if ${gcc_cv_math_func_cacos+:} false; then : |
db1cf15c IS |
25034 | $as_echo_n "(cached) " >&6 |
25035 | else | |
db9f46a9 | 25036 | if test x$gcc_no_link = xyes; then |
22e05272 | 25037 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25038 | fi |
25039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25040 | /* end confdefs.h. */ | |
25041 | ||
db9f46a9 TG |
25042 | #ifdef HAVE_COMPLEX_H |
25043 | #include <complex.h> | |
db1cf15c | 25044 | #endif |
db9f46a9 TG |
25045 | #ifdef HAVE_MATH_H |
25046 | #include <math.h> | |
25047 | #endif | |
25048 | ||
25049 | int (*ptr)() = (int (*)())cacos; | |
25050 | ||
db1cf15c IS |
25051 | int |
25052 | main () | |
25053 | { | |
db1cf15c IS |
25054 | return 0; |
25055 | } | |
db9f46a9 | 25056 | |
db1cf15c IS |
25057 | _ACEOF |
25058 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25059 | gcc_cv_math_func_cacos=yes |
db1cf15c | 25060 | else |
db9f46a9 | 25061 | gcc_cv_math_func_cacos=no |
db1cf15c IS |
25062 | fi |
25063 | rm -f core conftest.err conftest.$ac_objext \ | |
25064 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25065 | fi |
db9f46a9 TG |
25066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5 |
25067 | $as_echo "$gcc_cv_math_func_cacos" >&6; } | |
25068 | if test $gcc_cv_math_func_cacos = yes; then | |
f1cdfa01 | 25069 | |
f38a14ca TG |
25070 | cat >>confdefs.h <<_ACEOF |
25071 | #define HAVE_CACOS 1 | |
25072 | _ACEOF | |
db1cf15c | 25073 | |
db9f46a9 | 25074 | fi |
db1cf15c | 25075 | |
db1cf15c | 25076 | |
db9f46a9 TG |
25077 | |
25078 | ||
25079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5 | |
25080 | $as_echo_n "checking for cacosf... " >&6; } | |
22e05272 | 25081 | if ${gcc_cv_math_func_cacosf+:} false; then : |
db1cf15c IS |
25082 | $as_echo_n "(cached) " >&6 |
25083 | else | |
db9f46a9 | 25084 | if test x$gcc_no_link = xyes; then |
22e05272 | 25085 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25086 | fi |
25087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25088 | /* end confdefs.h. */ | |
25089 | ||
db9f46a9 TG |
25090 | #ifdef HAVE_COMPLEX_H |
25091 | #include <complex.h> | |
25092 | #endif | |
25093 | #ifdef HAVE_MATH_H | |
25094 | #include <math.h> | |
db1cf15c | 25095 | #endif |
db9f46a9 TG |
25096 | |
25097 | int (*ptr)() = (int (*)())cacosf; | |
25098 | ||
db1cf15c IS |
25099 | int |
25100 | main () | |
25101 | { | |
db1cf15c IS |
25102 | return 0; |
25103 | } | |
db9f46a9 | 25104 | |
db1cf15c IS |
25105 | _ACEOF |
25106 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25107 | gcc_cv_math_func_cacosf=yes |
db1cf15c | 25108 | else |
db9f46a9 | 25109 | gcc_cv_math_func_cacosf=no |
db1cf15c IS |
25110 | fi |
25111 | rm -f core conftest.err conftest.$ac_objext \ | |
25112 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25113 | fi |
db9f46a9 TG |
25114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5 |
25115 | $as_echo "$gcc_cv_math_func_cacosf" >&6; } | |
25116 | if test $gcc_cv_math_func_cacosf = yes; then | |
f1cdfa01 | 25117 | |
f38a14ca TG |
25118 | cat >>confdefs.h <<_ACEOF |
25119 | #define HAVE_CACOSF 1 | |
25120 | _ACEOF | |
db9f46a9 TG |
25121 | |
25122 | fi | |
db1cf15c | 25123 | |
db1cf15c | 25124 | |
db1cf15c | 25125 | |
db9f46a9 TG |
25126 | |
25127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5 | |
25128 | $as_echo_n "checking for cacosh... " >&6; } | |
22e05272 | 25129 | if ${gcc_cv_math_func_cacosh+:} false; then : |
db1cf15c IS |
25130 | $as_echo_n "(cached) " >&6 |
25131 | else | |
db9f46a9 | 25132 | if test x$gcc_no_link = xyes; then |
22e05272 | 25133 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25134 | fi |
25135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25136 | /* end confdefs.h. */ | |
25137 | ||
db9f46a9 TG |
25138 | #ifdef HAVE_COMPLEX_H |
25139 | #include <complex.h> | |
db1cf15c | 25140 | #endif |
db9f46a9 TG |
25141 | #ifdef HAVE_MATH_H |
25142 | #include <math.h> | |
25143 | #endif | |
25144 | ||
25145 | int (*ptr)() = (int (*)())cacosh; | |
25146 | ||
db1cf15c IS |
25147 | int |
25148 | main () | |
25149 | { | |
db1cf15c IS |
25150 | return 0; |
25151 | } | |
db9f46a9 | 25152 | |
db1cf15c IS |
25153 | _ACEOF |
25154 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25155 | gcc_cv_math_func_cacosh=yes |
db1cf15c | 25156 | else |
db9f46a9 | 25157 | gcc_cv_math_func_cacosh=no |
db1cf15c IS |
25158 | fi |
25159 | rm -f core conftest.err conftest.$ac_objext \ | |
25160 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25161 | fi |
db9f46a9 TG |
25162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5 |
25163 | $as_echo "$gcc_cv_math_func_cacosh" >&6; } | |
25164 | if test $gcc_cv_math_func_cacosh = yes; then | |
f1cdfa01 | 25165 | |
f38a14ca TG |
25166 | cat >>confdefs.h <<_ACEOF |
25167 | #define HAVE_CACOSH 1 | |
25168 | _ACEOF | |
db9f46a9 TG |
25169 | |
25170 | fi | |
25171 | ||
db1cf15c | 25172 | |
db1cf15c | 25173 | |
db1cf15c | 25174 | |
db9f46a9 TG |
25175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5 |
25176 | $as_echo_n "checking for cacoshf... " >&6; } | |
22e05272 | 25177 | if ${gcc_cv_math_func_cacoshf+:} false; then : |
db1cf15c IS |
25178 | $as_echo_n "(cached) " >&6 |
25179 | else | |
db9f46a9 | 25180 | if test x$gcc_no_link = xyes; then |
22e05272 | 25181 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25182 | fi |
25183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25184 | /* end confdefs.h. */ | |
25185 | ||
db9f46a9 TG |
25186 | #ifdef HAVE_COMPLEX_H |
25187 | #include <complex.h> | |
25188 | #endif | |
25189 | #ifdef HAVE_MATH_H | |
25190 | #include <math.h> | |
db1cf15c | 25191 | #endif |
db9f46a9 TG |
25192 | |
25193 | int (*ptr)() = (int (*)())cacoshf; | |
25194 | ||
db1cf15c IS |
25195 | int |
25196 | main () | |
25197 | { | |
db1cf15c IS |
25198 | return 0; |
25199 | } | |
db9f46a9 | 25200 | |
db1cf15c IS |
25201 | _ACEOF |
25202 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25203 | gcc_cv_math_func_cacoshf=yes |
db1cf15c | 25204 | else |
db9f46a9 | 25205 | gcc_cv_math_func_cacoshf=no |
db1cf15c IS |
25206 | fi |
25207 | rm -f core conftest.err conftest.$ac_objext \ | |
25208 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25209 | fi |
db9f46a9 TG |
25210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5 |
25211 | $as_echo "$gcc_cv_math_func_cacoshf" >&6; } | |
25212 | if test $gcc_cv_math_func_cacoshf = yes; then | |
f1cdfa01 | 25213 | |
f38a14ca TG |
25214 | cat >>confdefs.h <<_ACEOF |
25215 | #define HAVE_CACOSHF 1 | |
25216 | _ACEOF | |
db9f46a9 TG |
25217 | |
25218 | fi | |
db1cf15c | 25219 | |
db1cf15c | 25220 | |
db1cf15c | 25221 | |
db9f46a9 TG |
25222 | |
25223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5 | |
25224 | $as_echo_n "checking for cacoshl... " >&6; } | |
22e05272 | 25225 | if ${gcc_cv_math_func_cacoshl+:} false; then : |
db1cf15c IS |
25226 | $as_echo_n "(cached) " >&6 |
25227 | else | |
db9f46a9 | 25228 | if test x$gcc_no_link = xyes; then |
22e05272 | 25229 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25230 | fi |
25231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25232 | /* end confdefs.h. */ | |
25233 | ||
db9f46a9 TG |
25234 | #ifdef HAVE_COMPLEX_H |
25235 | #include <complex.h> | |
db1cf15c | 25236 | #endif |
db9f46a9 TG |
25237 | #ifdef HAVE_MATH_H |
25238 | #include <math.h> | |
25239 | #endif | |
25240 | ||
25241 | int (*ptr)() = (int (*)())cacoshl; | |
25242 | ||
db1cf15c IS |
25243 | int |
25244 | main () | |
25245 | { | |
db1cf15c IS |
25246 | return 0; |
25247 | } | |
db9f46a9 | 25248 | |
db1cf15c IS |
25249 | _ACEOF |
25250 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25251 | gcc_cv_math_func_cacoshl=yes |
db1cf15c | 25252 | else |
db9f46a9 | 25253 | gcc_cv_math_func_cacoshl=no |
db1cf15c IS |
25254 | fi |
25255 | rm -f core conftest.err conftest.$ac_objext \ | |
25256 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25257 | fi |
db9f46a9 TG |
25258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5 |
25259 | $as_echo "$gcc_cv_math_func_cacoshl" >&6; } | |
25260 | if test $gcc_cv_math_func_cacoshl = yes; then | |
f1cdfa01 | 25261 | |
f38a14ca TG |
25262 | cat >>confdefs.h <<_ACEOF |
25263 | #define HAVE_CACOSHL 1 | |
25264 | _ACEOF | |
db1cf15c | 25265 | |
db9f46a9 | 25266 | fi |
db1cf15c | 25267 | |
db1cf15c | 25268 | |
db9f46a9 TG |
25269 | |
25270 | ||
25271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5 | |
25272 | $as_echo_n "checking for cacosl... " >&6; } | |
22e05272 | 25273 | if ${gcc_cv_math_func_cacosl+:} false; then : |
db1cf15c IS |
25274 | $as_echo_n "(cached) " >&6 |
25275 | else | |
db9f46a9 | 25276 | if test x$gcc_no_link = xyes; then |
22e05272 | 25277 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25278 | fi |
25279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25280 | /* end confdefs.h. */ | |
25281 | ||
db9f46a9 TG |
25282 | #ifdef HAVE_COMPLEX_H |
25283 | #include <complex.h> | |
25284 | #endif | |
25285 | #ifdef HAVE_MATH_H | |
25286 | #include <math.h> | |
db1cf15c | 25287 | #endif |
db9f46a9 TG |
25288 | |
25289 | int (*ptr)() = (int (*)())cacosl; | |
25290 | ||
db1cf15c IS |
25291 | int |
25292 | main () | |
25293 | { | |
db1cf15c IS |
25294 | return 0; |
25295 | } | |
db9f46a9 | 25296 | |
db1cf15c IS |
25297 | _ACEOF |
25298 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25299 | gcc_cv_math_func_cacosl=yes |
db1cf15c | 25300 | else |
db9f46a9 | 25301 | gcc_cv_math_func_cacosl=no |
db1cf15c IS |
25302 | fi |
25303 | rm -f core conftest.err conftest.$ac_objext \ | |
25304 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25305 | fi |
db9f46a9 TG |
25306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5 |
25307 | $as_echo "$gcc_cv_math_func_cacosl" >&6; } | |
25308 | if test $gcc_cv_math_func_cacosl = yes; then | |
f1cdfa01 | 25309 | |
f38a14ca TG |
25310 | cat >>confdefs.h <<_ACEOF |
25311 | #define HAVE_CACOSL 1 | |
25312 | _ACEOF | |
db9f46a9 TG |
25313 | |
25314 | fi | |
db1cf15c | 25315 | |
db1cf15c | 25316 | |
db1cf15c | 25317 | |
db9f46a9 TG |
25318 | |
25319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5 | |
25320 | $as_echo_n "checking for casin... " >&6; } | |
22e05272 | 25321 | if ${gcc_cv_math_func_casin+:} false; then : |
db1cf15c IS |
25322 | $as_echo_n "(cached) " >&6 |
25323 | else | |
db9f46a9 | 25324 | if test x$gcc_no_link = xyes; then |
22e05272 | 25325 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25326 | fi |
25327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25328 | /* end confdefs.h. */ | |
25329 | ||
db9f46a9 TG |
25330 | #ifdef HAVE_COMPLEX_H |
25331 | #include <complex.h> | |
db1cf15c | 25332 | #endif |
db9f46a9 TG |
25333 | #ifdef HAVE_MATH_H |
25334 | #include <math.h> | |
25335 | #endif | |
25336 | ||
25337 | int (*ptr)() = (int (*)())casin; | |
25338 | ||
db1cf15c IS |
25339 | int |
25340 | main () | |
25341 | { | |
db1cf15c IS |
25342 | return 0; |
25343 | } | |
db9f46a9 | 25344 | |
db1cf15c IS |
25345 | _ACEOF |
25346 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25347 | gcc_cv_math_func_casin=yes |
db1cf15c | 25348 | else |
db9f46a9 | 25349 | gcc_cv_math_func_casin=no |
db1cf15c IS |
25350 | fi |
25351 | rm -f core conftest.err conftest.$ac_objext \ | |
25352 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25353 | fi |
db9f46a9 TG |
25354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5 |
25355 | $as_echo "$gcc_cv_math_func_casin" >&6; } | |
25356 | if test $gcc_cv_math_func_casin = yes; then | |
f1cdfa01 | 25357 | |
f38a14ca TG |
25358 | cat >>confdefs.h <<_ACEOF |
25359 | #define HAVE_CASIN 1 | |
25360 | _ACEOF | |
db9f46a9 TG |
25361 | |
25362 | fi | |
25363 | ||
db1cf15c | 25364 | |
db1cf15c | 25365 | |
db1cf15c | 25366 | |
db9f46a9 TG |
25367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5 |
25368 | $as_echo_n "checking for casinf... " >&6; } | |
22e05272 | 25369 | if ${gcc_cv_math_func_casinf+:} false; then : |
db1cf15c IS |
25370 | $as_echo_n "(cached) " >&6 |
25371 | else | |
db9f46a9 | 25372 | if test x$gcc_no_link = xyes; then |
22e05272 | 25373 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25374 | fi |
25375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25376 | /* end confdefs.h. */ | |
25377 | ||
db9f46a9 TG |
25378 | #ifdef HAVE_COMPLEX_H |
25379 | #include <complex.h> | |
25380 | #endif | |
25381 | #ifdef HAVE_MATH_H | |
25382 | #include <math.h> | |
db1cf15c | 25383 | #endif |
db9f46a9 TG |
25384 | |
25385 | int (*ptr)() = (int (*)())casinf; | |
25386 | ||
db1cf15c IS |
25387 | int |
25388 | main () | |
25389 | { | |
db1cf15c IS |
25390 | return 0; |
25391 | } | |
db9f46a9 | 25392 | |
db1cf15c IS |
25393 | _ACEOF |
25394 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25395 | gcc_cv_math_func_casinf=yes |
db1cf15c | 25396 | else |
db9f46a9 | 25397 | gcc_cv_math_func_casinf=no |
db1cf15c IS |
25398 | fi |
25399 | rm -f core conftest.err conftest.$ac_objext \ | |
25400 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25401 | fi |
db9f46a9 TG |
25402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5 |
25403 | $as_echo "$gcc_cv_math_func_casinf" >&6; } | |
25404 | if test $gcc_cv_math_func_casinf = yes; then | |
f1cdfa01 | 25405 | |
f38a14ca TG |
25406 | cat >>confdefs.h <<_ACEOF |
25407 | #define HAVE_CASINF 1 | |
25408 | _ACEOF | |
db9f46a9 TG |
25409 | |
25410 | fi | |
db1cf15c | 25411 | |
db1cf15c | 25412 | |
db1cf15c | 25413 | |
db9f46a9 TG |
25414 | |
25415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5 | |
25416 | $as_echo_n "checking for casinh... " >&6; } | |
22e05272 | 25417 | if ${gcc_cv_math_func_casinh+:} false; then : |
db1cf15c IS |
25418 | $as_echo_n "(cached) " >&6 |
25419 | else | |
db9f46a9 | 25420 | if test x$gcc_no_link = xyes; then |
22e05272 | 25421 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25422 | fi |
25423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25424 | /* end confdefs.h. */ | |
25425 | ||
db9f46a9 TG |
25426 | #ifdef HAVE_COMPLEX_H |
25427 | #include <complex.h> | |
db1cf15c | 25428 | #endif |
db9f46a9 TG |
25429 | #ifdef HAVE_MATH_H |
25430 | #include <math.h> | |
25431 | #endif | |
25432 | ||
25433 | int (*ptr)() = (int (*)())casinh; | |
25434 | ||
db1cf15c IS |
25435 | int |
25436 | main () | |
25437 | { | |
db1cf15c IS |
25438 | return 0; |
25439 | } | |
db9f46a9 | 25440 | |
db1cf15c IS |
25441 | _ACEOF |
25442 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25443 | gcc_cv_math_func_casinh=yes |
db1cf15c | 25444 | else |
db9f46a9 | 25445 | gcc_cv_math_func_casinh=no |
db1cf15c IS |
25446 | fi |
25447 | rm -f core conftest.err conftest.$ac_objext \ | |
25448 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25449 | fi |
db9f46a9 TG |
25450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5 |
25451 | $as_echo "$gcc_cv_math_func_casinh" >&6; } | |
25452 | if test $gcc_cv_math_func_casinh = yes; then | |
f1cdfa01 | 25453 | |
f38a14ca TG |
25454 | cat >>confdefs.h <<_ACEOF |
25455 | #define HAVE_CASINH 1 | |
25456 | _ACEOF | |
db1cf15c | 25457 | |
db9f46a9 | 25458 | fi |
db1cf15c | 25459 | |
db1cf15c | 25460 | |
db9f46a9 TG |
25461 | |
25462 | ||
25463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5 | |
25464 | $as_echo_n "checking for casinhf... " >&6; } | |
22e05272 | 25465 | if ${gcc_cv_math_func_casinhf+:} false; then : |
db1cf15c IS |
25466 | $as_echo_n "(cached) " >&6 |
25467 | else | |
db9f46a9 | 25468 | if test x$gcc_no_link = xyes; then |
22e05272 | 25469 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25470 | fi |
25471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25472 | /* end confdefs.h. */ | |
25473 | ||
db9f46a9 TG |
25474 | #ifdef HAVE_COMPLEX_H |
25475 | #include <complex.h> | |
25476 | #endif | |
25477 | #ifdef HAVE_MATH_H | |
25478 | #include <math.h> | |
db1cf15c | 25479 | #endif |
db9f46a9 TG |
25480 | |
25481 | int (*ptr)() = (int (*)())casinhf; | |
25482 | ||
db1cf15c IS |
25483 | int |
25484 | main () | |
25485 | { | |
db1cf15c IS |
25486 | return 0; |
25487 | } | |
db9f46a9 | 25488 | |
db1cf15c IS |
25489 | _ACEOF |
25490 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25491 | gcc_cv_math_func_casinhf=yes |
db1cf15c | 25492 | else |
db9f46a9 | 25493 | gcc_cv_math_func_casinhf=no |
db1cf15c IS |
25494 | fi |
25495 | rm -f core conftest.err conftest.$ac_objext \ | |
25496 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25497 | fi |
db9f46a9 TG |
25498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5 |
25499 | $as_echo "$gcc_cv_math_func_casinhf" >&6; } | |
25500 | if test $gcc_cv_math_func_casinhf = yes; then | |
f1cdfa01 | 25501 | |
f38a14ca TG |
25502 | cat >>confdefs.h <<_ACEOF |
25503 | #define HAVE_CASINHF 1 | |
25504 | _ACEOF | |
db9f46a9 TG |
25505 | |
25506 | fi | |
db1cf15c | 25507 | |
db1cf15c | 25508 | |
db1cf15c | 25509 | |
db9f46a9 TG |
25510 | |
25511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5 | |
25512 | $as_echo_n "checking for casinhl... " >&6; } | |
22e05272 | 25513 | if ${gcc_cv_math_func_casinhl+:} false; then : |
db1cf15c IS |
25514 | $as_echo_n "(cached) " >&6 |
25515 | else | |
db9f46a9 | 25516 | if test x$gcc_no_link = xyes; then |
22e05272 | 25517 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25518 | fi |
25519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25520 | /* end confdefs.h. */ | |
25521 | ||
db9f46a9 TG |
25522 | #ifdef HAVE_COMPLEX_H |
25523 | #include <complex.h> | |
db1cf15c | 25524 | #endif |
db9f46a9 TG |
25525 | #ifdef HAVE_MATH_H |
25526 | #include <math.h> | |
25527 | #endif | |
25528 | ||
25529 | int (*ptr)() = (int (*)())casinhl; | |
25530 | ||
db1cf15c IS |
25531 | int |
25532 | main () | |
25533 | { | |
db1cf15c IS |
25534 | return 0; |
25535 | } | |
db9f46a9 | 25536 | |
db1cf15c IS |
25537 | _ACEOF |
25538 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25539 | gcc_cv_math_func_casinhl=yes |
db1cf15c | 25540 | else |
db9f46a9 | 25541 | gcc_cv_math_func_casinhl=no |
db1cf15c IS |
25542 | fi |
25543 | rm -f core conftest.err conftest.$ac_objext \ | |
25544 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25545 | fi |
db9f46a9 TG |
25546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5 |
25547 | $as_echo "$gcc_cv_math_func_casinhl" >&6; } | |
25548 | if test $gcc_cv_math_func_casinhl = yes; then | |
f1cdfa01 | 25549 | |
f38a14ca TG |
25550 | cat >>confdefs.h <<_ACEOF |
25551 | #define HAVE_CASINHL 1 | |
25552 | _ACEOF | |
db9f46a9 TG |
25553 | |
25554 | fi | |
25555 | ||
db1cf15c | 25556 | |
db1cf15c | 25557 | |
db1cf15c | 25558 | |
db9f46a9 TG |
25559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5 |
25560 | $as_echo_n "checking for casinl... " >&6; } | |
22e05272 | 25561 | if ${gcc_cv_math_func_casinl+:} false; then : |
db1cf15c IS |
25562 | $as_echo_n "(cached) " >&6 |
25563 | else | |
db9f46a9 | 25564 | if test x$gcc_no_link = xyes; then |
22e05272 | 25565 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25566 | fi |
25567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25568 | /* end confdefs.h. */ | |
25569 | ||
db9f46a9 TG |
25570 | #ifdef HAVE_COMPLEX_H |
25571 | #include <complex.h> | |
25572 | #endif | |
25573 | #ifdef HAVE_MATH_H | |
25574 | #include <math.h> | |
db1cf15c | 25575 | #endif |
db9f46a9 TG |
25576 | |
25577 | int (*ptr)() = (int (*)())casinl; | |
25578 | ||
db1cf15c IS |
25579 | int |
25580 | main () | |
25581 | { | |
db1cf15c IS |
25582 | return 0; |
25583 | } | |
db9f46a9 | 25584 | |
db1cf15c IS |
25585 | _ACEOF |
25586 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25587 | gcc_cv_math_func_casinl=yes |
db1cf15c | 25588 | else |
db9f46a9 | 25589 | gcc_cv_math_func_casinl=no |
db1cf15c IS |
25590 | fi |
25591 | rm -f core conftest.err conftest.$ac_objext \ | |
25592 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25593 | fi |
db9f46a9 TG |
25594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5 |
25595 | $as_echo "$gcc_cv_math_func_casinl" >&6; } | |
25596 | if test $gcc_cv_math_func_casinl = yes; then | |
f1cdfa01 | 25597 | |
f38a14ca TG |
25598 | cat >>confdefs.h <<_ACEOF |
25599 | #define HAVE_CASINL 1 | |
25600 | _ACEOF | |
db9f46a9 TG |
25601 | |
25602 | fi | |
db1cf15c | 25603 | |
db1cf15c | 25604 | |
db1cf15c | 25605 | |
db9f46a9 TG |
25606 | |
25607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5 | |
25608 | $as_echo_n "checking for catan... " >&6; } | |
22e05272 | 25609 | if ${gcc_cv_math_func_catan+:} false; then : |
db1cf15c IS |
25610 | $as_echo_n "(cached) " >&6 |
25611 | else | |
db9f46a9 | 25612 | if test x$gcc_no_link = xyes; then |
22e05272 | 25613 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25614 | fi |
25615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25616 | /* end confdefs.h. */ | |
25617 | ||
db9f46a9 TG |
25618 | #ifdef HAVE_COMPLEX_H |
25619 | #include <complex.h> | |
db1cf15c | 25620 | #endif |
db9f46a9 TG |
25621 | #ifdef HAVE_MATH_H |
25622 | #include <math.h> | |
25623 | #endif | |
25624 | ||
25625 | int (*ptr)() = (int (*)())catan; | |
25626 | ||
db1cf15c IS |
25627 | int |
25628 | main () | |
25629 | { | |
db1cf15c IS |
25630 | return 0; |
25631 | } | |
db9f46a9 | 25632 | |
db1cf15c IS |
25633 | _ACEOF |
25634 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25635 | gcc_cv_math_func_catan=yes |
db1cf15c | 25636 | else |
db9f46a9 | 25637 | gcc_cv_math_func_catan=no |
db1cf15c IS |
25638 | fi |
25639 | rm -f core conftest.err conftest.$ac_objext \ | |
25640 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25641 | fi |
db9f46a9 TG |
25642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5 |
25643 | $as_echo "$gcc_cv_math_func_catan" >&6; } | |
25644 | if test $gcc_cv_math_func_catan = yes; then | |
f1cdfa01 | 25645 | |
f38a14ca TG |
25646 | cat >>confdefs.h <<_ACEOF |
25647 | #define HAVE_CATAN 1 | |
25648 | _ACEOF | |
db1cf15c | 25649 | |
db9f46a9 | 25650 | fi |
db1cf15c | 25651 | |
db1cf15c | 25652 | |
db9f46a9 TG |
25653 | |
25654 | ||
25655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5 | |
25656 | $as_echo_n "checking for catanf... " >&6; } | |
22e05272 | 25657 | if ${gcc_cv_math_func_catanf+:} false; then : |
db1cf15c IS |
25658 | $as_echo_n "(cached) " >&6 |
25659 | else | |
db9f46a9 | 25660 | if test x$gcc_no_link = xyes; then |
22e05272 | 25661 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25662 | fi |
25663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25664 | /* end confdefs.h. */ | |
25665 | ||
db9f46a9 TG |
25666 | #ifdef HAVE_COMPLEX_H |
25667 | #include <complex.h> | |
25668 | #endif | |
25669 | #ifdef HAVE_MATH_H | |
25670 | #include <math.h> | |
db1cf15c | 25671 | #endif |
db9f46a9 TG |
25672 | |
25673 | int (*ptr)() = (int (*)())catanf; | |
25674 | ||
db1cf15c IS |
25675 | int |
25676 | main () | |
25677 | { | |
db1cf15c IS |
25678 | return 0; |
25679 | } | |
db9f46a9 | 25680 | |
db1cf15c IS |
25681 | _ACEOF |
25682 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25683 | gcc_cv_math_func_catanf=yes |
db1cf15c | 25684 | else |
db9f46a9 | 25685 | gcc_cv_math_func_catanf=no |
db1cf15c IS |
25686 | fi |
25687 | rm -f core conftest.err conftest.$ac_objext \ | |
25688 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25689 | fi |
db9f46a9 TG |
25690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5 |
25691 | $as_echo "$gcc_cv_math_func_catanf" >&6; } | |
25692 | if test $gcc_cv_math_func_catanf = yes; then | |
f1cdfa01 | 25693 | |
f38a14ca TG |
25694 | cat >>confdefs.h <<_ACEOF |
25695 | #define HAVE_CATANF 1 | |
25696 | _ACEOF | |
db9f46a9 TG |
25697 | |
25698 | fi | |
db1cf15c | 25699 | |
db1cf15c | 25700 | |
db1cf15c | 25701 | |
db9f46a9 TG |
25702 | |
25703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5 | |
25704 | $as_echo_n "checking for catanh... " >&6; } | |
22e05272 | 25705 | if ${gcc_cv_math_func_catanh+:} false; then : |
db1cf15c IS |
25706 | $as_echo_n "(cached) " >&6 |
25707 | else | |
db9f46a9 | 25708 | if test x$gcc_no_link = xyes; then |
22e05272 | 25709 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25710 | fi |
25711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25712 | /* end confdefs.h. */ | |
25713 | ||
db9f46a9 TG |
25714 | #ifdef HAVE_COMPLEX_H |
25715 | #include <complex.h> | |
db1cf15c | 25716 | #endif |
db9f46a9 TG |
25717 | #ifdef HAVE_MATH_H |
25718 | #include <math.h> | |
25719 | #endif | |
25720 | ||
25721 | int (*ptr)() = (int (*)())catanh; | |
25722 | ||
db1cf15c IS |
25723 | int |
25724 | main () | |
25725 | { | |
db1cf15c IS |
25726 | return 0; |
25727 | } | |
db9f46a9 | 25728 | |
db1cf15c IS |
25729 | _ACEOF |
25730 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25731 | gcc_cv_math_func_catanh=yes |
db1cf15c | 25732 | else |
db9f46a9 | 25733 | gcc_cv_math_func_catanh=no |
db1cf15c IS |
25734 | fi |
25735 | rm -f core conftest.err conftest.$ac_objext \ | |
25736 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25737 | fi |
db9f46a9 TG |
25738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5 |
25739 | $as_echo "$gcc_cv_math_func_catanh" >&6; } | |
25740 | if test $gcc_cv_math_func_catanh = yes; then | |
f1cdfa01 | 25741 | |
f38a14ca TG |
25742 | cat >>confdefs.h <<_ACEOF |
25743 | #define HAVE_CATANH 1 | |
25744 | _ACEOF | |
db9f46a9 TG |
25745 | |
25746 | fi | |
25747 | ||
db1cf15c | 25748 | |
db1cf15c | 25749 | |
db1cf15c | 25750 | |
db9f46a9 TG |
25751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5 |
25752 | $as_echo_n "checking for catanhf... " >&6; } | |
22e05272 | 25753 | if ${gcc_cv_math_func_catanhf+:} false; then : |
db1cf15c IS |
25754 | $as_echo_n "(cached) " >&6 |
25755 | else | |
db9f46a9 | 25756 | if test x$gcc_no_link = xyes; then |
22e05272 | 25757 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25758 | fi |
25759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25760 | /* end confdefs.h. */ | |
25761 | ||
db9f46a9 TG |
25762 | #ifdef HAVE_COMPLEX_H |
25763 | #include <complex.h> | |
25764 | #endif | |
25765 | #ifdef HAVE_MATH_H | |
25766 | #include <math.h> | |
db1cf15c | 25767 | #endif |
db9f46a9 TG |
25768 | |
25769 | int (*ptr)() = (int (*)())catanhf; | |
25770 | ||
db1cf15c IS |
25771 | int |
25772 | main () | |
25773 | { | |
db1cf15c IS |
25774 | return 0; |
25775 | } | |
db9f46a9 | 25776 | |
db1cf15c IS |
25777 | _ACEOF |
25778 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25779 | gcc_cv_math_func_catanhf=yes |
db1cf15c | 25780 | else |
db9f46a9 | 25781 | gcc_cv_math_func_catanhf=no |
db1cf15c IS |
25782 | fi |
25783 | rm -f core conftest.err conftest.$ac_objext \ | |
25784 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25785 | fi |
db9f46a9 TG |
25786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5 |
25787 | $as_echo "$gcc_cv_math_func_catanhf" >&6; } | |
25788 | if test $gcc_cv_math_func_catanhf = yes; then | |
f1cdfa01 | 25789 | |
f38a14ca TG |
25790 | cat >>confdefs.h <<_ACEOF |
25791 | #define HAVE_CATANHF 1 | |
25792 | _ACEOF | |
db9f46a9 TG |
25793 | |
25794 | fi | |
db1cf15c | 25795 | |
db1cf15c | 25796 | |
db1cf15c | 25797 | |
db9f46a9 TG |
25798 | |
25799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5 | |
25800 | $as_echo_n "checking for catanhl... " >&6; } | |
22e05272 | 25801 | if ${gcc_cv_math_func_catanhl+:} false; then : |
db1cf15c IS |
25802 | $as_echo_n "(cached) " >&6 |
25803 | else | |
db9f46a9 | 25804 | if test x$gcc_no_link = xyes; then |
22e05272 | 25805 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25806 | fi |
25807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25808 | /* end confdefs.h. */ | |
25809 | ||
db9f46a9 TG |
25810 | #ifdef HAVE_COMPLEX_H |
25811 | #include <complex.h> | |
db1cf15c | 25812 | #endif |
db9f46a9 TG |
25813 | #ifdef HAVE_MATH_H |
25814 | #include <math.h> | |
25815 | #endif | |
25816 | ||
25817 | int (*ptr)() = (int (*)())catanhl; | |
25818 | ||
db1cf15c IS |
25819 | int |
25820 | main () | |
25821 | { | |
db1cf15c IS |
25822 | return 0; |
25823 | } | |
db9f46a9 | 25824 | |
db1cf15c IS |
25825 | _ACEOF |
25826 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25827 | gcc_cv_math_func_catanhl=yes |
db1cf15c | 25828 | else |
db9f46a9 | 25829 | gcc_cv_math_func_catanhl=no |
db1cf15c IS |
25830 | fi |
25831 | rm -f core conftest.err conftest.$ac_objext \ | |
25832 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25833 | fi |
db9f46a9 TG |
25834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5 |
25835 | $as_echo "$gcc_cv_math_func_catanhl" >&6; } | |
25836 | if test $gcc_cv_math_func_catanhl = yes; then | |
f1cdfa01 | 25837 | |
f38a14ca TG |
25838 | cat >>confdefs.h <<_ACEOF |
25839 | #define HAVE_CATANHL 1 | |
25840 | _ACEOF | |
db1cf15c | 25841 | |
db9f46a9 | 25842 | fi |
db1cf15c | 25843 | |
db1cf15c | 25844 | |
db9f46a9 TG |
25845 | |
25846 | ||
25847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5 | |
25848 | $as_echo_n "checking for catanl... " >&6; } | |
22e05272 | 25849 | if ${gcc_cv_math_func_catanl+:} false; then : |
db1cf15c IS |
25850 | $as_echo_n "(cached) " >&6 |
25851 | else | |
db9f46a9 | 25852 | if test x$gcc_no_link = xyes; then |
22e05272 | 25853 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25854 | fi |
25855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25856 | /* end confdefs.h. */ | |
25857 | ||
db9f46a9 TG |
25858 | #ifdef HAVE_COMPLEX_H |
25859 | #include <complex.h> | |
25860 | #endif | |
25861 | #ifdef HAVE_MATH_H | |
25862 | #include <math.h> | |
db1cf15c | 25863 | #endif |
db9f46a9 TG |
25864 | |
25865 | int (*ptr)() = (int (*)())catanl; | |
25866 | ||
db1cf15c IS |
25867 | int |
25868 | main () | |
25869 | { | |
db1cf15c IS |
25870 | return 0; |
25871 | } | |
db9f46a9 | 25872 | |
db1cf15c IS |
25873 | _ACEOF |
25874 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25875 | gcc_cv_math_func_catanl=yes |
db1cf15c | 25876 | else |
db9f46a9 | 25877 | gcc_cv_math_func_catanl=no |
db1cf15c IS |
25878 | fi |
25879 | rm -f core conftest.err conftest.$ac_objext \ | |
25880 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25881 | fi |
db9f46a9 TG |
25882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5 |
25883 | $as_echo "$gcc_cv_math_func_catanl" >&6; } | |
25884 | if test $gcc_cv_math_func_catanl = yes; then | |
f1cdfa01 | 25885 | |
f38a14ca TG |
25886 | cat >>confdefs.h <<_ACEOF |
25887 | #define HAVE_CATANL 1 | |
25888 | _ACEOF | |
db1cf15c | 25889 | |
db9f46a9 | 25890 | fi |
db1cf15c IS |
25891 | |
25892 | ||
6f4977fc TK |
25893 | # For POWER, check the ieee128 math functions |
25894 | ||
25895 | if test "x$have_real_17" = "xyes"; then | |
25896 | ||
a8fea8cd TK |
25897 | cat >>confdefs.h <<_ACEOF |
25898 | #define HAVE_REAL_17 1 | |
25899 | _ACEOF | |
25900 | ||
25901 | ||
25902 | ||
6f4977fc TK |
25903 | |
25904 | ||
25905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __acoshieee128" >&5 | |
25906 | $as_echo_n "checking for __acoshieee128... " >&6; } | |
25907 | if ${gcc_cv_math_func___acoshieee128+:} false; then : | |
25908 | $as_echo_n "(cached) " >&6 | |
25909 | else | |
25910 | if test x$gcc_no_link = xyes; then | |
25911 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25912 | fi | |
25913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25914 | /* end confdefs.h. */ | |
25915 | ||
5097cdf9 JJ |
25916 | _Float128 __acoshieee128 (_Float128); |
25917 | _Float128 (*ptr)(_Float128) = __acoshieee128; | |
6f4977fc TK |
25918 | |
25919 | int | |
25920 | main () | |
25921 | { | |
25922 | return 0; | |
25923 | } | |
25924 | ||
25925 | _ACEOF | |
25926 | if ac_fn_c_try_link "$LINENO"; then : | |
25927 | gcc_cv_math_func___acoshieee128=yes | |
25928 | else | |
25929 | gcc_cv_math_func___acoshieee128=no | |
25930 | fi | |
25931 | rm -f core conftest.err conftest.$ac_objext \ | |
25932 | conftest$ac_exeext conftest.$ac_ext | |
25933 | fi | |
25934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___acoshieee128" >&5 | |
25935 | $as_echo "$gcc_cv_math_func___acoshieee128" >&6; } | |
25936 | if test $gcc_cv_math_func___acoshieee128 = yes; then | |
25937 | ||
25938 | cat >>confdefs.h <<_ACEOF | |
25939 | #define HAVE___ACOSHIEEE128 1 | |
25940 | _ACEOF | |
25941 | ||
25942 | fi | |
25943 | ||
25944 | ||
25945 | ||
25946 | ||
25947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __acosieee128" >&5 | |
25948 | $as_echo_n "checking for __acosieee128... " >&6; } | |
25949 | if ${gcc_cv_math_func___acosieee128+:} false; then : | |
25950 | $as_echo_n "(cached) " >&6 | |
25951 | else | |
25952 | if test x$gcc_no_link = xyes; then | |
25953 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25954 | fi | |
25955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25956 | /* end confdefs.h. */ | |
25957 | ||
5097cdf9 JJ |
25958 | _Float128 __acosieee128 (_Float128); |
25959 | _Float128 (*ptr)(_Float128) = __acosieee128; | |
6f4977fc TK |
25960 | |
25961 | int | |
25962 | main () | |
25963 | { | |
25964 | return 0; | |
25965 | } | |
25966 | ||
25967 | _ACEOF | |
25968 | if ac_fn_c_try_link "$LINENO"; then : | |
25969 | gcc_cv_math_func___acosieee128=yes | |
25970 | else | |
25971 | gcc_cv_math_func___acosieee128=no | |
25972 | fi | |
25973 | rm -f core conftest.err conftest.$ac_objext \ | |
25974 | conftest$ac_exeext conftest.$ac_ext | |
25975 | fi | |
25976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___acosieee128" >&5 | |
25977 | $as_echo "$gcc_cv_math_func___acosieee128" >&6; } | |
25978 | if test $gcc_cv_math_func___acosieee128 = yes; then | |
25979 | ||
25980 | cat >>confdefs.h <<_ACEOF | |
25981 | #define HAVE___ACOSIEEE128 1 | |
25982 | _ACEOF | |
25983 | ||
25984 | fi | |
25985 | ||
25986 | ||
25987 | ||
25988 | ||
25989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asinhieee128" >&5 | |
25990 | $as_echo_n "checking for __asinhieee128... " >&6; } | |
25991 | if ${gcc_cv_math_func___asinhieee128+:} false; then : | |
25992 | $as_echo_n "(cached) " >&6 | |
25993 | else | |
25994 | if test x$gcc_no_link = xyes; then | |
25995 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25996 | fi | |
25997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25998 | /* end confdefs.h. */ | |
25999 | ||
5097cdf9 JJ |
26000 | _Float128 __asinhieee128 (_Float128); |
26001 | _Float128 (*ptr)(_Float128) = __asinhieee128; | |
6f4977fc TK |
26002 | |
26003 | int | |
26004 | main () | |
26005 | { | |
26006 | return 0; | |
26007 | } | |
26008 | ||
26009 | _ACEOF | |
26010 | if ac_fn_c_try_link "$LINENO"; then : | |
26011 | gcc_cv_math_func___asinhieee128=yes | |
26012 | else | |
26013 | gcc_cv_math_func___asinhieee128=no | |
26014 | fi | |
26015 | rm -f core conftest.err conftest.$ac_objext \ | |
26016 | conftest$ac_exeext conftest.$ac_ext | |
26017 | fi | |
26018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___asinhieee128" >&5 | |
26019 | $as_echo "$gcc_cv_math_func___asinhieee128" >&6; } | |
26020 | if test $gcc_cv_math_func___asinhieee128 = yes; then | |
26021 | ||
26022 | cat >>confdefs.h <<_ACEOF | |
26023 | #define HAVE___ASINHIEEE128 1 | |
26024 | _ACEOF | |
26025 | ||
26026 | fi | |
26027 | ||
26028 | ||
26029 | ||
26030 | ||
26031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asinieee128" >&5 | |
26032 | $as_echo_n "checking for __asinieee128... " >&6; } | |
26033 | if ${gcc_cv_math_func___asinieee128+:} false; then : | |
26034 | $as_echo_n "(cached) " >&6 | |
26035 | else | |
26036 | if test x$gcc_no_link = xyes; then | |
26037 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26038 | fi | |
26039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26040 | /* end confdefs.h. */ | |
26041 | ||
5097cdf9 JJ |
26042 | _Float128 __asinieee128 (_Float128); |
26043 | _Float128 (*ptr)(_Float128) = __asinieee128; | |
6f4977fc TK |
26044 | |
26045 | int | |
26046 | main () | |
26047 | { | |
26048 | return 0; | |
26049 | } | |
26050 | ||
26051 | _ACEOF | |
26052 | if ac_fn_c_try_link "$LINENO"; then : | |
26053 | gcc_cv_math_func___asinieee128=yes | |
26054 | else | |
26055 | gcc_cv_math_func___asinieee128=no | |
26056 | fi | |
26057 | rm -f core conftest.err conftest.$ac_objext \ | |
26058 | conftest$ac_exeext conftest.$ac_ext | |
26059 | fi | |
26060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___asinieee128" >&5 | |
26061 | $as_echo "$gcc_cv_math_func___asinieee128" >&6; } | |
26062 | if test $gcc_cv_math_func___asinieee128 = yes; then | |
26063 | ||
26064 | cat >>confdefs.h <<_ACEOF | |
26065 | #define HAVE___ASINIEEE128 1 | |
26066 | _ACEOF | |
26067 | ||
26068 | fi | |
26069 | ||
26070 | ||
26071 | ||
26072 | ||
26073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atan2ieee128" >&5 | |
26074 | $as_echo_n "checking for __atan2ieee128... " >&6; } | |
26075 | if ${gcc_cv_math_func___atan2ieee128+:} false; then : | |
26076 | $as_echo_n "(cached) " >&6 | |
26077 | else | |
26078 | if test x$gcc_no_link = xyes; then | |
26079 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26080 | fi | |
26081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26082 | /* end confdefs.h. */ | |
26083 | ||
5097cdf9 JJ |
26084 | _Float128 __atan2ieee128 (_Float128); |
26085 | _Float128 (*ptr)(_Float128) = __atan2ieee128; | |
6f4977fc TK |
26086 | |
26087 | int | |
26088 | main () | |
26089 | { | |
26090 | return 0; | |
26091 | } | |
26092 | ||
26093 | _ACEOF | |
26094 | if ac_fn_c_try_link "$LINENO"; then : | |
26095 | gcc_cv_math_func___atan2ieee128=yes | |
26096 | else | |
26097 | gcc_cv_math_func___atan2ieee128=no | |
26098 | fi | |
26099 | rm -f core conftest.err conftest.$ac_objext \ | |
26100 | conftest$ac_exeext conftest.$ac_ext | |
26101 | fi | |
26102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atan2ieee128" >&5 | |
26103 | $as_echo "$gcc_cv_math_func___atan2ieee128" >&6; } | |
26104 | if test $gcc_cv_math_func___atan2ieee128 = yes; then | |
26105 | ||
26106 | cat >>confdefs.h <<_ACEOF | |
26107 | #define HAVE___ATAN2IEEE128 1 | |
26108 | _ACEOF | |
26109 | ||
26110 | fi | |
26111 | ||
26112 | ||
26113 | ||
26114 | ||
26115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atanhieee128" >&5 | |
26116 | $as_echo_n "checking for __atanhieee128... " >&6; } | |
26117 | if ${gcc_cv_math_func___atanhieee128+:} false; then : | |
26118 | $as_echo_n "(cached) " >&6 | |
26119 | else | |
26120 | if test x$gcc_no_link = xyes; then | |
26121 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26122 | fi | |
26123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26124 | /* end confdefs.h. */ | |
26125 | ||
5097cdf9 JJ |
26126 | _Float128 __atanhieee128 (_Float128); |
26127 | _Float128 (*ptr)(_Float128) = __atanhieee128; | |
6f4977fc TK |
26128 | |
26129 | int | |
26130 | main () | |
26131 | { | |
26132 | return 0; | |
26133 | } | |
26134 | ||
26135 | _ACEOF | |
26136 | if ac_fn_c_try_link "$LINENO"; then : | |
26137 | gcc_cv_math_func___atanhieee128=yes | |
26138 | else | |
26139 | gcc_cv_math_func___atanhieee128=no | |
26140 | fi | |
26141 | rm -f core conftest.err conftest.$ac_objext \ | |
26142 | conftest$ac_exeext conftest.$ac_ext | |
26143 | fi | |
26144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atanhieee128" >&5 | |
26145 | $as_echo "$gcc_cv_math_func___atanhieee128" >&6; } | |
26146 | if test $gcc_cv_math_func___atanhieee128 = yes; then | |
26147 | ||
26148 | cat >>confdefs.h <<_ACEOF | |
26149 | #define HAVE___ATANHIEEE128 1 | |
26150 | _ACEOF | |
26151 | ||
26152 | fi | |
26153 | ||
26154 | ||
26155 | ||
26156 | ||
26157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atanieee128" >&5 | |
26158 | $as_echo_n "checking for __atanieee128... " >&6; } | |
26159 | if ${gcc_cv_math_func___atanieee128+:} false; then : | |
26160 | $as_echo_n "(cached) " >&6 | |
26161 | else | |
26162 | if test x$gcc_no_link = xyes; then | |
26163 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26164 | fi | |
26165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26166 | /* end confdefs.h. */ | |
26167 | ||
5097cdf9 JJ |
26168 | _Float128 __atanieee128 (_Float128); |
26169 | _Float128 (*ptr)(_Float128) = __atanieee128; | |
6f4977fc TK |
26170 | |
26171 | int | |
26172 | main () | |
26173 | { | |
26174 | return 0; | |
26175 | } | |
26176 | ||
26177 | _ACEOF | |
26178 | if ac_fn_c_try_link "$LINENO"; then : | |
26179 | gcc_cv_math_func___atanieee128=yes | |
26180 | else | |
26181 | gcc_cv_math_func___atanieee128=no | |
26182 | fi | |
26183 | rm -f core conftest.err conftest.$ac_objext \ | |
26184 | conftest$ac_exeext conftest.$ac_ext | |
26185 | fi | |
26186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___atanieee128" >&5 | |
26187 | $as_echo "$gcc_cv_math_func___atanieee128" >&6; } | |
26188 | if test $gcc_cv_math_func___atanieee128 = yes; then | |
26189 | ||
26190 | cat >>confdefs.h <<_ACEOF | |
26191 | #define HAVE___ATANIEEE128 1 | |
26192 | _ACEOF | |
26193 | ||
26194 | fi | |
26195 | ||
26196 | ||
26197 | ||
26198 | ||
26199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __coshieee128" >&5 | |
26200 | $as_echo_n "checking for __coshieee128... " >&6; } | |
26201 | if ${gcc_cv_math_func___coshieee128+:} false; then : | |
26202 | $as_echo_n "(cached) " >&6 | |
26203 | else | |
26204 | if test x$gcc_no_link = xyes; then | |
26205 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26206 | fi | |
26207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26208 | /* end confdefs.h. */ | |
26209 | ||
5097cdf9 JJ |
26210 | _Float128 __coshieee128 (_Float128); |
26211 | _Float128 (*ptr)(_Float128) = __coshieee128; | |
6f4977fc TK |
26212 | |
26213 | int | |
26214 | main () | |
26215 | { | |
26216 | return 0; | |
26217 | } | |
26218 | ||
26219 | _ACEOF | |
26220 | if ac_fn_c_try_link "$LINENO"; then : | |
26221 | gcc_cv_math_func___coshieee128=yes | |
26222 | else | |
26223 | gcc_cv_math_func___coshieee128=no | |
26224 | fi | |
26225 | rm -f core conftest.err conftest.$ac_objext \ | |
26226 | conftest$ac_exeext conftest.$ac_ext | |
26227 | fi | |
26228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___coshieee128" >&5 | |
26229 | $as_echo "$gcc_cv_math_func___coshieee128" >&6; } | |
26230 | if test $gcc_cv_math_func___coshieee128 = yes; then | |
26231 | ||
26232 | cat >>confdefs.h <<_ACEOF | |
26233 | #define HAVE___COSHIEEE128 1 | |
26234 | _ACEOF | |
26235 | ||
26236 | fi | |
26237 | ||
26238 | ||
26239 | ||
26240 | ||
26241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cosieee128" >&5 | |
26242 | $as_echo_n "checking for __cosieee128... " >&6; } | |
26243 | if ${gcc_cv_math_func___cosieee128+:} false; then : | |
26244 | $as_echo_n "(cached) " >&6 | |
26245 | else | |
26246 | if test x$gcc_no_link = xyes; then | |
26247 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26248 | fi | |
26249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26250 | /* end confdefs.h. */ | |
26251 | ||
5097cdf9 JJ |
26252 | _Float128 __cosieee128 (_Float128); |
26253 | _Float128 (*ptr)(_Float128) = __cosieee128; | |
6f4977fc TK |
26254 | |
26255 | int | |
26256 | main () | |
26257 | { | |
26258 | return 0; | |
26259 | } | |
26260 | ||
26261 | _ACEOF | |
26262 | if ac_fn_c_try_link "$LINENO"; then : | |
26263 | gcc_cv_math_func___cosieee128=yes | |
26264 | else | |
26265 | gcc_cv_math_func___cosieee128=no | |
26266 | fi | |
26267 | rm -f core conftest.err conftest.$ac_objext \ | |
26268 | conftest$ac_exeext conftest.$ac_ext | |
26269 | fi | |
26270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___cosieee128" >&5 | |
26271 | $as_echo "$gcc_cv_math_func___cosieee128" >&6; } | |
26272 | if test $gcc_cv_math_func___cosieee128 = yes; then | |
26273 | ||
26274 | cat >>confdefs.h <<_ACEOF | |
26275 | #define HAVE___COSIEEE128 1 | |
26276 | _ACEOF | |
26277 | ||
26278 | fi | |
26279 | ||
26280 | ||
26281 | ||
26282 | ||
26283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __erfieee128" >&5 | |
26284 | $as_echo_n "checking for __erfieee128... " >&6; } | |
26285 | if ${gcc_cv_math_func___erfieee128+:} false; then : | |
26286 | $as_echo_n "(cached) " >&6 | |
26287 | else | |
26288 | if test x$gcc_no_link = xyes; then | |
26289 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26290 | fi | |
26291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26292 | /* end confdefs.h. */ | |
26293 | ||
5097cdf9 JJ |
26294 | _Float128 __erfieee128 (_Float128); |
26295 | _Float128 (*ptr)(_Float128) = __erfieee128; | |
6f4977fc TK |
26296 | |
26297 | int | |
26298 | main () | |
26299 | { | |
26300 | return 0; | |
26301 | } | |
26302 | ||
26303 | _ACEOF | |
26304 | if ac_fn_c_try_link "$LINENO"; then : | |
26305 | gcc_cv_math_func___erfieee128=yes | |
26306 | else | |
26307 | gcc_cv_math_func___erfieee128=no | |
26308 | fi | |
26309 | rm -f core conftest.err conftest.$ac_objext \ | |
26310 | conftest$ac_exeext conftest.$ac_ext | |
26311 | fi | |
26312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___erfieee128" >&5 | |
26313 | $as_echo "$gcc_cv_math_func___erfieee128" >&6; } | |
26314 | if test $gcc_cv_math_func___erfieee128 = yes; then | |
26315 | ||
26316 | cat >>confdefs.h <<_ACEOF | |
26317 | #define HAVE___ERFIEEE128 1 | |
26318 | _ACEOF | |
26319 | ||
26320 | fi | |
26321 | ||
26322 | ||
26323 | ||
26324 | ||
26325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __expieee128" >&5 | |
26326 | $as_echo_n "checking for __expieee128... " >&6; } | |
26327 | if ${gcc_cv_math_func___expieee128+:} false; then : | |
26328 | $as_echo_n "(cached) " >&6 | |
26329 | else | |
26330 | if test x$gcc_no_link = xyes; then | |
26331 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26332 | fi | |
26333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26334 | /* end confdefs.h. */ | |
26335 | ||
5097cdf9 JJ |
26336 | _Float128 __expieee128 (_Float128); |
26337 | _Float128 (*ptr)(_Float128) = __expieee128; | |
6f4977fc TK |
26338 | |
26339 | int | |
26340 | main () | |
26341 | { | |
26342 | return 0; | |
26343 | } | |
26344 | ||
26345 | _ACEOF | |
26346 | if ac_fn_c_try_link "$LINENO"; then : | |
26347 | gcc_cv_math_func___expieee128=yes | |
26348 | else | |
26349 | gcc_cv_math_func___expieee128=no | |
26350 | fi | |
26351 | rm -f core conftest.err conftest.$ac_objext \ | |
26352 | conftest$ac_exeext conftest.$ac_ext | |
26353 | fi | |
26354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___expieee128" >&5 | |
26355 | $as_echo "$gcc_cv_math_func___expieee128" >&6; } | |
26356 | if test $gcc_cv_math_func___expieee128 = yes; then | |
26357 | ||
26358 | cat >>confdefs.h <<_ACEOF | |
26359 | #define HAVE___EXPIEEE128 1 | |
26360 | _ACEOF | |
26361 | ||
26362 | fi | |
26363 | ||
26364 | ||
26365 | ||
26366 | ||
26367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fabsieee128" >&5 | |
26368 | $as_echo_n "checking for __fabsieee128... " >&6; } | |
26369 | if ${gcc_cv_math_func___fabsieee128+:} false; then : | |
26370 | $as_echo_n "(cached) " >&6 | |
26371 | else | |
26372 | if test x$gcc_no_link = xyes; then | |
26373 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26374 | fi | |
26375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26376 | /* end confdefs.h. */ | |
26377 | ||
5097cdf9 JJ |
26378 | _Float128 __fabsieee128 (_Float128); |
26379 | _Float128 (*ptr)(_Float128) = __fabsieee128; | |
6f4977fc TK |
26380 | |
26381 | int | |
26382 | main () | |
26383 | { | |
26384 | return 0; | |
26385 | } | |
26386 | ||
26387 | _ACEOF | |
26388 | if ac_fn_c_try_link "$LINENO"; then : | |
26389 | gcc_cv_math_func___fabsieee128=yes | |
26390 | else | |
26391 | gcc_cv_math_func___fabsieee128=no | |
26392 | fi | |
26393 | rm -f core conftest.err conftest.$ac_objext \ | |
26394 | conftest$ac_exeext conftest.$ac_ext | |
26395 | fi | |
26396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___fabsieee128" >&5 | |
26397 | $as_echo "$gcc_cv_math_func___fabsieee128" >&6; } | |
26398 | if test $gcc_cv_math_func___fabsieee128 = yes; then | |
26399 | ||
26400 | cat >>confdefs.h <<_ACEOF | |
26401 | #define HAVE___FABSIEEE128 1 | |
26402 | _ACEOF | |
26403 | ||
26404 | fi | |
26405 | ||
26406 | ||
26407 | ||
26408 | ||
26409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __jnieee128" >&5 | |
26410 | $as_echo_n "checking for __jnieee128... " >&6; } | |
26411 | if ${gcc_cv_math_func___jnieee128+:} false; then : | |
26412 | $as_echo_n "(cached) " >&6 | |
26413 | else | |
26414 | if test x$gcc_no_link = xyes; then | |
26415 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26416 | fi | |
26417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26418 | /* end confdefs.h. */ | |
26419 | ||
5097cdf9 JJ |
26420 | _Float128 __jnieee128 (_Float128); |
26421 | _Float128 (*ptr)(_Float128) = __jnieee128; | |
6f4977fc TK |
26422 | |
26423 | int | |
26424 | main () | |
26425 | { | |
26426 | return 0; | |
26427 | } | |
26428 | ||
26429 | _ACEOF | |
26430 | if ac_fn_c_try_link "$LINENO"; then : | |
26431 | gcc_cv_math_func___jnieee128=yes | |
26432 | else | |
26433 | gcc_cv_math_func___jnieee128=no | |
26434 | fi | |
26435 | rm -f core conftest.err conftest.$ac_objext \ | |
26436 | conftest$ac_exeext conftest.$ac_ext | |
26437 | fi | |
26438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___jnieee128" >&5 | |
26439 | $as_echo "$gcc_cv_math_func___jnieee128" >&6; } | |
26440 | if test $gcc_cv_math_func___jnieee128 = yes; then | |
26441 | ||
26442 | cat >>confdefs.h <<_ACEOF | |
26443 | #define HAVE___JNIEEE128 1 | |
26444 | _ACEOF | |
26445 | ||
26446 | fi | |
26447 | ||
26448 | ||
26449 | ||
26450 | ||
26451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __log10ieee128" >&5 | |
26452 | $as_echo_n "checking for __log10ieee128... " >&6; } | |
26453 | if ${gcc_cv_math_func___log10ieee128+:} false; then : | |
26454 | $as_echo_n "(cached) " >&6 | |
26455 | else | |
26456 | if test x$gcc_no_link = xyes; then | |
26457 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26458 | fi | |
26459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26460 | /* end confdefs.h. */ | |
26461 | ||
5097cdf9 JJ |
26462 | _Float128 __log10ieee128 (_Float128); |
26463 | _Float128 (*ptr)(_Float128) = __log10ieee128; | |
6f4977fc TK |
26464 | |
26465 | int | |
26466 | main () | |
26467 | { | |
26468 | return 0; | |
26469 | } | |
26470 | ||
26471 | _ACEOF | |
26472 | if ac_fn_c_try_link "$LINENO"; then : | |
26473 | gcc_cv_math_func___log10ieee128=yes | |
26474 | else | |
26475 | gcc_cv_math_func___log10ieee128=no | |
26476 | fi | |
26477 | rm -f core conftest.err conftest.$ac_objext \ | |
26478 | conftest$ac_exeext conftest.$ac_ext | |
26479 | fi | |
26480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___log10ieee128" >&5 | |
26481 | $as_echo "$gcc_cv_math_func___log10ieee128" >&6; } | |
26482 | if test $gcc_cv_math_func___log10ieee128 = yes; then | |
26483 | ||
26484 | cat >>confdefs.h <<_ACEOF | |
26485 | #define HAVE___LOG10IEEE128 1 | |
26486 | _ACEOF | |
26487 | ||
26488 | fi | |
26489 | ||
26490 | ||
26491 | ||
26492 | ||
26493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __logieee128" >&5 | |
26494 | $as_echo_n "checking for __logieee128... " >&6; } | |
26495 | if ${gcc_cv_math_func___logieee128+:} false; then : | |
26496 | $as_echo_n "(cached) " >&6 | |
26497 | else | |
26498 | if test x$gcc_no_link = xyes; then | |
26499 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26500 | fi | |
26501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26502 | /* end confdefs.h. */ | |
26503 | ||
5097cdf9 JJ |
26504 | _Float128 __logieee128 (_Float128); |
26505 | _Float128 (*ptr)(_Float128) = __logieee128; | |
6f4977fc TK |
26506 | |
26507 | int | |
26508 | main () | |
26509 | { | |
26510 | return 0; | |
26511 | } | |
26512 | ||
26513 | _ACEOF | |
26514 | if ac_fn_c_try_link "$LINENO"; then : | |
26515 | gcc_cv_math_func___logieee128=yes | |
26516 | else | |
26517 | gcc_cv_math_func___logieee128=no | |
26518 | fi | |
26519 | rm -f core conftest.err conftest.$ac_objext \ | |
26520 | conftest$ac_exeext conftest.$ac_ext | |
26521 | fi | |
26522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___logieee128" >&5 | |
26523 | $as_echo "$gcc_cv_math_func___logieee128" >&6; } | |
26524 | if test $gcc_cv_math_func___logieee128 = yes; then | |
26525 | ||
26526 | cat >>confdefs.h <<_ACEOF | |
26527 | #define HAVE___LOGIEEE128 1 | |
26528 | _ACEOF | |
26529 | ||
26530 | fi | |
26531 | ||
26532 | ||
26533 | ||
26534 | ||
26535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __powieee128" >&5 | |
26536 | $as_echo_n "checking for __powieee128... " >&6; } | |
26537 | if ${gcc_cv_math_func___powieee128+:} false; then : | |
26538 | $as_echo_n "(cached) " >&6 | |
26539 | else | |
26540 | if test x$gcc_no_link = xyes; then | |
26541 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26542 | fi | |
26543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26544 | /* end confdefs.h. */ | |
26545 | ||
5097cdf9 JJ |
26546 | _Float128 __powieee128 (_Float128); |
26547 | _Float128 (*ptr)(_Float128) = __powieee128; | |
6f4977fc TK |
26548 | |
26549 | int | |
26550 | main () | |
26551 | { | |
26552 | return 0; | |
26553 | } | |
26554 | ||
26555 | _ACEOF | |
26556 | if ac_fn_c_try_link "$LINENO"; then : | |
26557 | gcc_cv_math_func___powieee128=yes | |
26558 | else | |
26559 | gcc_cv_math_func___powieee128=no | |
26560 | fi | |
26561 | rm -f core conftest.err conftest.$ac_objext \ | |
26562 | conftest$ac_exeext conftest.$ac_ext | |
26563 | fi | |
26564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___powieee128" >&5 | |
26565 | $as_echo "$gcc_cv_math_func___powieee128" >&6; } | |
26566 | if test $gcc_cv_math_func___powieee128 = yes; then | |
26567 | ||
26568 | cat >>confdefs.h <<_ACEOF | |
26569 | #define HAVE___POWIEEE128 1 | |
26570 | _ACEOF | |
26571 | ||
26572 | fi | |
26573 | ||
26574 | ||
26575 | ||
26576 | ||
26577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sinhieee128" >&5 | |
26578 | $as_echo_n "checking for __sinhieee128... " >&6; } | |
26579 | if ${gcc_cv_math_func___sinhieee128+:} false; then : | |
26580 | $as_echo_n "(cached) " >&6 | |
26581 | else | |
26582 | if test x$gcc_no_link = xyes; then | |
26583 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26584 | fi | |
26585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26586 | /* end confdefs.h. */ | |
26587 | ||
5097cdf9 JJ |
26588 | _Float128 __sinhieee128 (_Float128); |
26589 | _Float128 (*ptr)(_Float128) = __sinhieee128; | |
6f4977fc TK |
26590 | |
26591 | int | |
26592 | main () | |
26593 | { | |
26594 | return 0; | |
26595 | } | |
26596 | ||
26597 | _ACEOF | |
26598 | if ac_fn_c_try_link "$LINENO"; then : | |
26599 | gcc_cv_math_func___sinhieee128=yes | |
26600 | else | |
26601 | gcc_cv_math_func___sinhieee128=no | |
26602 | fi | |
26603 | rm -f core conftest.err conftest.$ac_objext \ | |
26604 | conftest$ac_exeext conftest.$ac_ext | |
26605 | fi | |
26606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sinhieee128" >&5 | |
26607 | $as_echo "$gcc_cv_math_func___sinhieee128" >&6; } | |
26608 | if test $gcc_cv_math_func___sinhieee128 = yes; then | |
26609 | ||
26610 | cat >>confdefs.h <<_ACEOF | |
26611 | #define HAVE___SINHIEEE128 1 | |
26612 | _ACEOF | |
26613 | ||
26614 | fi | |
26615 | ||
26616 | ||
26617 | ||
26618 | ||
26619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sinieee128" >&5 | |
26620 | $as_echo_n "checking for __sinieee128... " >&6; } | |
26621 | if ${gcc_cv_math_func___sinieee128+:} false; then : | |
26622 | $as_echo_n "(cached) " >&6 | |
26623 | else | |
26624 | if test x$gcc_no_link = xyes; then | |
26625 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26626 | fi | |
26627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26628 | /* end confdefs.h. */ | |
26629 | ||
5097cdf9 JJ |
26630 | _Float128 __sinieee128 (_Float128); |
26631 | _Float128 (*ptr)(_Float128) = __sinieee128; | |
6f4977fc TK |
26632 | |
26633 | int | |
26634 | main () | |
26635 | { | |
26636 | return 0; | |
26637 | } | |
26638 | ||
26639 | _ACEOF | |
26640 | if ac_fn_c_try_link "$LINENO"; then : | |
26641 | gcc_cv_math_func___sinieee128=yes | |
26642 | else | |
26643 | gcc_cv_math_func___sinieee128=no | |
26644 | fi | |
26645 | rm -f core conftest.err conftest.$ac_objext \ | |
26646 | conftest$ac_exeext conftest.$ac_ext | |
26647 | fi | |
26648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sinieee128" >&5 | |
26649 | $as_echo "$gcc_cv_math_func___sinieee128" >&6; } | |
26650 | if test $gcc_cv_math_func___sinieee128 = yes; then | |
26651 | ||
26652 | cat >>confdefs.h <<_ACEOF | |
26653 | #define HAVE___SINIEEE128 1 | |
26654 | _ACEOF | |
26655 | ||
26656 | fi | |
26657 | ||
26658 | ||
26659 | ||
26660 | ||
26661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sqrtieee128" >&5 | |
26662 | $as_echo_n "checking for __sqrtieee128... " >&6; } | |
26663 | if ${gcc_cv_math_func___sqrtieee128+:} false; then : | |
26664 | $as_echo_n "(cached) " >&6 | |
26665 | else | |
26666 | if test x$gcc_no_link = xyes; then | |
26667 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26668 | fi | |
26669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26670 | /* end confdefs.h. */ | |
26671 | ||
5097cdf9 JJ |
26672 | _Float128 __sqrtieee128 (_Float128); |
26673 | _Float128 (*ptr)(_Float128) = __sqrtieee128; | |
6f4977fc TK |
26674 | |
26675 | int | |
26676 | main () | |
26677 | { | |
26678 | return 0; | |
26679 | } | |
26680 | ||
26681 | _ACEOF | |
26682 | if ac_fn_c_try_link "$LINENO"; then : | |
26683 | gcc_cv_math_func___sqrtieee128=yes | |
26684 | else | |
26685 | gcc_cv_math_func___sqrtieee128=no | |
26686 | fi | |
26687 | rm -f core conftest.err conftest.$ac_objext \ | |
26688 | conftest$ac_exeext conftest.$ac_ext | |
26689 | fi | |
26690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___sqrtieee128" >&5 | |
26691 | $as_echo "$gcc_cv_math_func___sqrtieee128" >&6; } | |
26692 | if test $gcc_cv_math_func___sqrtieee128 = yes; then | |
26693 | ||
26694 | cat >>confdefs.h <<_ACEOF | |
26695 | #define HAVE___SQRTIEEE128 1 | |
26696 | _ACEOF | |
26697 | ||
26698 | fi | |
26699 | ||
26700 | ||
26701 | ||
26702 | ||
26703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __tanhieee128" >&5 | |
26704 | $as_echo_n "checking for __tanhieee128... " >&6; } | |
26705 | if ${gcc_cv_math_func___tanhieee128+:} false; then : | |
26706 | $as_echo_n "(cached) " >&6 | |
26707 | else | |
26708 | if test x$gcc_no_link = xyes; then | |
26709 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26710 | fi | |
26711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26712 | /* end confdefs.h. */ | |
26713 | ||
5097cdf9 JJ |
26714 | _Float128 __tanhieee128 (_Float128); |
26715 | _Float128 (*ptr)(_Float128) = __tanhieee128; | |
6f4977fc TK |
26716 | |
26717 | int | |
26718 | main () | |
26719 | { | |
26720 | return 0; | |
26721 | } | |
26722 | ||
26723 | _ACEOF | |
26724 | if ac_fn_c_try_link "$LINENO"; then : | |
26725 | gcc_cv_math_func___tanhieee128=yes | |
26726 | else | |
26727 | gcc_cv_math_func___tanhieee128=no | |
26728 | fi | |
26729 | rm -f core conftest.err conftest.$ac_objext \ | |
26730 | conftest$ac_exeext conftest.$ac_ext | |
26731 | fi | |
26732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___tanhieee128" >&5 | |
26733 | $as_echo "$gcc_cv_math_func___tanhieee128" >&6; } | |
26734 | if test $gcc_cv_math_func___tanhieee128 = yes; then | |
26735 | ||
26736 | cat >>confdefs.h <<_ACEOF | |
26737 | #define HAVE___TANHIEEE128 1 | |
26738 | _ACEOF | |
26739 | ||
26740 | fi | |
26741 | ||
26742 | ||
26743 | ||
26744 | ||
26745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __tanieee128" >&5 | |
26746 | $as_echo_n "checking for __tanieee128... " >&6; } | |
26747 | if ${gcc_cv_math_func___tanieee128+:} false; then : | |
26748 | $as_echo_n "(cached) " >&6 | |
26749 | else | |
26750 | if test x$gcc_no_link = xyes; then | |
26751 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26752 | fi | |
26753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26754 | /* end confdefs.h. */ | |
26755 | ||
5097cdf9 JJ |
26756 | _Float128 __tanieee128 (_Float128); |
26757 | _Float128 (*ptr)(_Float128) = __tanieee128; | |
6f4977fc TK |
26758 | |
26759 | int | |
26760 | main () | |
26761 | { | |
26762 | return 0; | |
26763 | } | |
26764 | ||
26765 | _ACEOF | |
26766 | if ac_fn_c_try_link "$LINENO"; then : | |
26767 | gcc_cv_math_func___tanieee128=yes | |
26768 | else | |
26769 | gcc_cv_math_func___tanieee128=no | |
26770 | fi | |
26771 | rm -f core conftest.err conftest.$ac_objext \ | |
26772 | conftest$ac_exeext conftest.$ac_ext | |
26773 | fi | |
26774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___tanieee128" >&5 | |
26775 | $as_echo "$gcc_cv_math_func___tanieee128" >&6; } | |
26776 | if test $gcc_cv_math_func___tanieee128 = yes; then | |
26777 | ||
26778 | cat >>confdefs.h <<_ACEOF | |
26779 | #define HAVE___TANIEEE128 1 | |
26780 | _ACEOF | |
26781 | ||
26782 | fi | |
26783 | ||
26784 | ||
26785 | ||
26786 | ||
26787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ynieee128" >&5 | |
26788 | $as_echo_n "checking for __ynieee128... " >&6; } | |
26789 | if ${gcc_cv_math_func___ynieee128+:} false; then : | |
26790 | $as_echo_n "(cached) " >&6 | |
26791 | else | |
26792 | if test x$gcc_no_link = xyes; then | |
26793 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26794 | fi | |
26795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26796 | /* end confdefs.h. */ | |
26797 | ||
5097cdf9 JJ |
26798 | _Float128 __ynieee128 (_Float128); |
26799 | _Float128 (*ptr)(_Float128) = __ynieee128; | |
6f4977fc TK |
26800 | |
26801 | int | |
26802 | main () | |
26803 | { | |
26804 | return 0; | |
26805 | } | |
26806 | ||
26807 | _ACEOF | |
26808 | if ac_fn_c_try_link "$LINENO"; then : | |
26809 | gcc_cv_math_func___ynieee128=yes | |
26810 | else | |
26811 | gcc_cv_math_func___ynieee128=no | |
26812 | fi | |
26813 | rm -f core conftest.err conftest.$ac_objext \ | |
26814 | conftest$ac_exeext conftest.$ac_ext | |
26815 | fi | |
26816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func___ynieee128" >&5 | |
26817 | $as_echo "$gcc_cv_math_func___ynieee128" >&6; } | |
26818 | if test $gcc_cv_math_func___ynieee128 = yes; then | |
26819 | ||
26820 | cat >>confdefs.h <<_ACEOF | |
26821 | #define HAVE___YNIEEE128 1 | |
26822 | _ACEOF | |
26823 | ||
26824 | fi | |
26825 | ||
26826 | fi | |
26827 | ||
118ea208 | 26828 | # On AIX, clog is present in libm as __clog |
5213506e RW |
26829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5 |
26830 | $as_echo_n "checking for __clog in -lm... " >&6; } | |
22e05272 | 26831 | if ${ac_cv_lib_m___clog+:} false; then : |
5213506e | 26832 | $as_echo_n "(cached) " >&6 |
e097b4f1 DE |
26833 | else |
26834 | ac_check_lib_save_LIBS=$LIBS | |
26835 | LIBS="-lm $LIBS" | |
26836 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26837 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
e097b4f1 | 26838 | fi |
5213506e | 26839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e097b4f1 DE |
26840 | /* end confdefs.h. */ |
26841 | ||
5213506e RW |
26842 | /* Override any GCC internal prototype to avoid an error. |
26843 | Use char because int might match the return type of a GCC | |
26844 | builtin and then its argument prototype would still apply. */ | |
e097b4f1 DE |
26845 | #ifdef __cplusplus |
26846 | extern "C" | |
26847 | #endif | |
e097b4f1 DE |
26848 | char __clog (); |
26849 | int | |
26850 | main () | |
26851 | { | |
5213506e | 26852 | return __clog (); |
e097b4f1 DE |
26853 | ; |
26854 | return 0; | |
26855 | } | |
26856 | _ACEOF | |
5213506e | 26857 | if ac_fn_c_try_link "$LINENO"; then : |
e097b4f1 DE |
26858 | ac_cv_lib_m___clog=yes |
26859 | else | |
5213506e | 26860 | ac_cv_lib_m___clog=no |
e097b4f1 | 26861 | fi |
5213506e RW |
26862 | rm -f core conftest.err conftest.$ac_objext \ |
26863 | conftest$ac_exeext conftest.$ac_ext | |
e097b4f1 DE |
26864 | LIBS=$ac_check_lib_save_LIBS |
26865 | fi | |
5213506e RW |
26866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5 |
26867 | $as_echo "$ac_cv_lib_m___clog" >&6; } | |
22e05272 | 26868 | if test "x$ac_cv_lib_m___clog" = xyes; then : |
e097b4f1 | 26869 | |
5213506e | 26870 | $as_echo "#define HAVE_CLOG 1" >>confdefs.h |
e097b4f1 DE |
26871 | |
26872 | fi | |
26873 | ||
26874 | ||
1868599f JJ |
26875 | |
26876 | ||
26877 | if test $gcc_cv_math_func_copysign = no; then | |
26878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5 | |
26879 | $as_echo_n "checking for inline __builtin_copysign... " >&6; } | |
26880 | if ${gcc_cv_math_inline_builtin_copysign+:} false; then : | |
26881 | $as_echo_n "(cached) " >&6 | |
26882 | else | |
26883 | if test x$gcc_no_link = xyes; then | |
26884 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26885 | fi | |
26886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26887 | /* end confdefs.h. */ | |
26888 | ||
26889 | double | |
26890 | copysign_fallback (double x, double y) | |
26891 | { | |
26892 | return __builtin_copysign (x, y); | |
26893 | } | |
26894 | ||
26895 | int | |
26896 | main () | |
26897 | { | |
26898 | return 0; | |
26899 | } | |
26900 | ||
26901 | _ACEOF | |
26902 | if ac_fn_c_try_link "$LINENO"; then : | |
26903 | gcc_cv_math_inline_builtin_copysign=yes | |
26904 | else | |
26905 | gcc_cv_math_inline_builtin_copysign=no | |
26906 | fi | |
26907 | rm -f core conftest.err conftest.$ac_objext \ | |
26908 | conftest$ac_exeext conftest.$ac_ext | |
26909 | fi | |
26910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5 | |
26911 | $as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; } | |
26912 | if test $gcc_cv_math_inline_builtin_copysign = yes; then | |
26913 | ||
26914 | cat >>confdefs.h <<_ACEOF | |
26915 | #define HAVE_INLINE_BUILTIN_COPYSIGN 1 | |
26916 | _ACEOF | |
26917 | ||
26918 | fi | |
26919 | fi | |
26920 | ||
26921 | ||
26922 | if test $gcc_cv_math_func_copysignl = no; then | |
26923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5 | |
26924 | $as_echo_n "checking for inline __builtin_copysignl... " >&6; } | |
26925 | if ${gcc_cv_math_inline_builtin_copysignl+:} false; then : | |
26926 | $as_echo_n "(cached) " >&6 | |
26927 | else | |
26928 | if test x$gcc_no_link = xyes; then | |
26929 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26930 | fi | |
26931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26932 | /* end confdefs.h. */ | |
26933 | ||
26934 | long double | |
26935 | copysignl_fallback (long double x, long double y) | |
26936 | { | |
26937 | return __builtin_copysignl (x, y); | |
26938 | } | |
26939 | ||
26940 | int | |
26941 | main () | |
26942 | { | |
26943 | return 0; | |
26944 | } | |
26945 | ||
26946 | _ACEOF | |
26947 | if ac_fn_c_try_link "$LINENO"; then : | |
26948 | gcc_cv_math_inline_builtin_copysignl=yes | |
26949 | else | |
26950 | gcc_cv_math_inline_builtin_copysignl=no | |
26951 | fi | |
26952 | rm -f core conftest.err conftest.$ac_objext \ | |
26953 | conftest$ac_exeext conftest.$ac_ext | |
26954 | fi | |
26955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5 | |
26956 | $as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; } | |
26957 | if test $gcc_cv_math_inline_builtin_copysignl = yes; then | |
26958 | ||
26959 | cat >>confdefs.h <<_ACEOF | |
26960 | #define HAVE_INLINE_BUILTIN_COPYSIGNL 1 | |
26961 | _ACEOF | |
26962 | ||
26963 | fi | |
26964 | fi | |
26965 | ||
26966 | ||
26967 | if test $gcc_cv_math_func_fabs = no; then | |
26968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5 | |
26969 | $as_echo_n "checking for inline __builtin_fabs... " >&6; } | |
26970 | if ${gcc_cv_math_inline_builtin_fabs+:} false; then : | |
26971 | $as_echo_n "(cached) " >&6 | |
26972 | else | |
26973 | if test x$gcc_no_link = xyes; then | |
26974 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26975 | fi | |
26976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26977 | /* end confdefs.h. */ | |
26978 | ||
26979 | double | |
26980 | fabs_fallback (double x) | |
26981 | { | |
26982 | return __builtin_fabs (x); | |
26983 | } | |
26984 | ||
26985 | int | |
26986 | main () | |
26987 | { | |
26988 | return 0; | |
26989 | } | |
26990 | ||
26991 | _ACEOF | |
26992 | if ac_fn_c_try_link "$LINENO"; then : | |
26993 | gcc_cv_math_inline_builtin_fabs=yes | |
26994 | else | |
26995 | gcc_cv_math_inline_builtin_fabs=no | |
26996 | fi | |
26997 | rm -f core conftest.err conftest.$ac_objext \ | |
26998 | conftest$ac_exeext conftest.$ac_ext | |
26999 | fi | |
27000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5 | |
27001 | $as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; } | |
27002 | if test $gcc_cv_math_inline_builtin_fabs = yes; then | |
27003 | ||
27004 | cat >>confdefs.h <<_ACEOF | |
27005 | #define HAVE_INLINE_BUILTIN_FABS 1 | |
27006 | _ACEOF | |
27007 | ||
27008 | fi | |
27009 | fi | |
27010 | ||
27011 | ||
27012 | if test $gcc_cv_math_func_fabsl = no; then | |
27013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5 | |
27014 | $as_echo_n "checking for inline __builtin_fabsl... " >&6; } | |
27015 | if ${gcc_cv_math_inline_builtin_fabsl+:} false; then : | |
27016 | $as_echo_n "(cached) " >&6 | |
27017 | else | |
27018 | if test x$gcc_no_link = xyes; then | |
27019 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27020 | fi | |
27021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27022 | /* end confdefs.h. */ | |
27023 | ||
27024 | long double | |
27025 | fabsl_fallback (long double x) | |
27026 | { | |
27027 | return __builtin_fabsl (x); | |
27028 | } | |
27029 | ||
27030 | int | |
27031 | main () | |
27032 | { | |
27033 | return 0; | |
27034 | } | |
27035 | ||
27036 | _ACEOF | |
27037 | if ac_fn_c_try_link "$LINENO"; then : | |
27038 | gcc_cv_math_inline_builtin_fabsl=yes | |
27039 | else | |
27040 | gcc_cv_math_inline_builtin_fabsl=no | |
27041 | fi | |
27042 | rm -f core conftest.err conftest.$ac_objext \ | |
27043 | conftest$ac_exeext conftest.$ac_ext | |
27044 | fi | |
27045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5 | |
27046 | $as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; } | |
27047 | if test $gcc_cv_math_inline_builtin_fabsl = yes; then | |
27048 | ||
27049 | cat >>confdefs.h <<_ACEOF | |
27050 | #define HAVE_INLINE_BUILTIN_FABSL 1 | |
27051 | _ACEOF | |
27052 | ||
27053 | fi | |
27054 | fi | |
27055 | ||
ad238e4f | 27056 | |
ad238e4f | 27057 | |
ad238e4f | 27058 | |
133d0d42 JJ |
27059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf128" >&5 |
27060 | $as_echo_n "checking for acosf128... " >&6; } | |
27061 | if ${gcc_cv_math_func_acosf128+:} false; then : | |
27062 | $as_echo_n "(cached) " >&6 | |
ad238e4f | 27063 | else |
133d0d42 JJ |
27064 | if test x$gcc_no_link = xyes; then |
27065 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27066 | fi | |
27067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad238e4f FXC |
27068 | /* end confdefs.h. */ |
27069 | ||
133d0d42 JJ |
27070 | #ifdef HAVE_COMPLEX_H |
27071 | #include <complex.h> | |
27072 | #endif | |
27073 | #ifdef HAVE_MATH_H | |
27074 | #include <math.h> | |
27075 | #endif | |
ad238e4f | 27076 | |
133d0d42 | 27077 | int (*ptr)() = (int (*)())acosf128; |
ad238e4f | 27078 | |
133d0d42 JJ |
27079 | int |
27080 | main () | |
27081 | { | |
ad238e4f FXC |
27082 | return 0; |
27083 | } | |
133d0d42 | 27084 | |
ad238e4f | 27085 | _ACEOF |
133d0d42 JJ |
27086 | if ac_fn_c_try_link "$LINENO"; then : |
27087 | gcc_cv_math_func_acosf128=yes | |
ad238e4f | 27088 | else |
133d0d42 | 27089 | gcc_cv_math_func_acosf128=no |
ad238e4f | 27090 | fi |
133d0d42 JJ |
27091 | rm -f core conftest.err conftest.$ac_objext \ |
27092 | conftest$ac_exeext conftest.$ac_ext | |
ad238e4f | 27093 | fi |
133d0d42 JJ |
27094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf128" >&5 |
27095 | $as_echo "$gcc_cv_math_func_acosf128" >&6; } | |
27096 | if test $gcc_cv_math_func_acosf128 = yes; then | |
5213506e | 27097 | |
133d0d42 JJ |
27098 | cat >>confdefs.h <<_ACEOF |
27099 | #define HAVE_ACOSF128 1 | |
27100 | _ACEOF | |
ad238e4f | 27101 | |
133d0d42 | 27102 | fi |
ad238e4f | 27103 | |
ad238e4f | 27104 | |
db8092dc | 27105 | |
133d0d42 JJ |
27106 | |
27107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf128" >&5 | |
27108 | $as_echo_n "checking for acoshf128... " >&6; } | |
27109 | if ${gcc_cv_math_func_acoshf128+:} false; then : | |
5213506e | 27110 | $as_echo_n "(cached) " >&6 |
db8092dc | 27111 | else |
133d0d42 | 27112 | if test x$gcc_no_link = xyes; then |
22e05272 | 27113 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db8092dc | 27114 | fi |
5213506e | 27115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db8092dc FXC |
27116 | /* end confdefs.h. */ |
27117 | ||
133d0d42 JJ |
27118 | #ifdef HAVE_COMPLEX_H |
27119 | #include <complex.h> | |
27120 | #endif | |
27121 | #ifdef HAVE_MATH_H | |
27122 | #include <math.h> | |
27123 | #endif | |
27124 | ||
27125 | int (*ptr)() = (int (*)())acoshf128; | |
db8092dc FXC |
27126 | |
27127 | int | |
27128 | main () | |
27129 | { | |
db8092dc FXC |
27130 | return 0; |
27131 | } | |
133d0d42 | 27132 | |
db8092dc | 27133 | _ACEOF |
5213506e | 27134 | if ac_fn_c_try_link "$LINENO"; then : |
133d0d42 | 27135 | gcc_cv_math_func_acoshf128=yes |
db8092dc | 27136 | else |
133d0d42 | 27137 | gcc_cv_math_func_acoshf128=no |
db8092dc | 27138 | fi |
5213506e RW |
27139 | rm -f core conftest.err conftest.$ac_objext \ |
27140 | conftest$ac_exeext conftest.$ac_ext | |
db8092dc | 27141 | fi |
133d0d42 JJ |
27142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf128" >&5 |
27143 | $as_echo "$gcc_cv_math_func_acoshf128" >&6; } | |
27144 | if test $gcc_cv_math_func_acoshf128 = yes; then | |
db8092dc | 27145 | |
133d0d42 JJ |
27146 | cat >>confdefs.h <<_ACEOF |
27147 | #define HAVE_ACOSHF128 1 | |
27148 | _ACEOF | |
db8092dc FXC |
27149 | |
27150 | fi | |
27151 | ||
27152 | ||
1ec601bf | 27153 | |
87e6d9dc | 27154 | |
133d0d42 JJ |
27155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf128" >&5 |
27156 | $as_echo_n "checking for asinf128... " >&6; } | |
27157 | if ${gcc_cv_math_func_asinf128+:} false; then : | |
1ec601bf FXC |
27158 | $as_echo_n "(cached) " >&6 |
27159 | else | |
133d0d42 JJ |
27160 | if test x$gcc_no_link = xyes; then |
27161 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27162 | fi | |
27163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1ec601bf FXC |
27164 | /* end confdefs.h. */ |
27165 | ||
133d0d42 JJ |
27166 | #ifdef HAVE_COMPLEX_H |
27167 | #include <complex.h> | |
27168 | #endif | |
27169 | #ifdef HAVE_MATH_H | |
27170 | #include <math.h> | |
27171 | #endif | |
69eb61d4 | 27172 | |
133d0d42 | 27173 | int (*ptr)() = (int (*)())asinf128; |
1ec601bf FXC |
27174 | |
27175 | int | |
27176 | main () | |
27177 | { | |
69eb61d4 TB |
27178 | return 0; |
27179 | } | |
133d0d42 | 27180 | |
69eb61d4 | 27181 | _ACEOF |
133d0d42 JJ |
27182 | if ac_fn_c_try_link "$LINENO"; then : |
27183 | gcc_cv_math_func_asinf128=yes | |
27184 | else | |
27185 | gcc_cv_math_func_asinf128=no | |
27186 | fi | |
27187 | rm -f core conftest.err conftest.$ac_objext \ | |
27188 | conftest$ac_exeext conftest.$ac_ext | |
27189 | fi | |
27190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf128" >&5 | |
27191 | $as_echo "$gcc_cv_math_func_asinf128" >&6; } | |
27192 | if test $gcc_cv_math_func_asinf128 = yes; then | |
1ec601bf | 27193 | |
133d0d42 JJ |
27194 | cat >>confdefs.h <<_ACEOF |
27195 | #define HAVE_ASINF128 1 | |
27196 | _ACEOF | |
1ec601bf | 27197 | |
133d0d42 | 27198 | fi |
69eb61d4 | 27199 | |
69eb61d4 | 27200 | |
133d0d42 JJ |
27201 | |
27202 | ||
27203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf128" >&5 | |
27204 | $as_echo_n "checking for asinhf128... " >&6; } | |
27205 | if ${gcc_cv_math_func_asinhf128+:} false; then : | |
27206 | $as_echo_n "(cached) " >&6 | |
69eb61d4 TB |
27207 | else |
27208 | if test x$gcc_no_link = xyes; then | |
22e05272 | 27209 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
69eb61d4 TB |
27210 | fi |
27211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27212 | /* end confdefs.h. */ | |
27213 | ||
133d0d42 JJ |
27214 | #ifdef HAVE_COMPLEX_H |
27215 | #include <complex.h> | |
27216 | #endif | |
27217 | #ifdef HAVE_MATH_H | |
27218 | #include <math.h> | |
27219 | #endif | |
69eb61d4 | 27220 | |
133d0d42 | 27221 | int (*ptr)() = (int (*)())asinhf128; |
69eb61d4 TB |
27222 | |
27223 | int | |
27224 | main () | |
27225 | { | |
1ec601bf FXC |
27226 | return 0; |
27227 | } | |
133d0d42 | 27228 | |
1ec601bf FXC |
27229 | _ACEOF |
27230 | if ac_fn_c_try_link "$LINENO"; then : | |
133d0d42 | 27231 | gcc_cv_math_func_asinhf128=yes |
1ec601bf | 27232 | else |
133d0d42 | 27233 | gcc_cv_math_func_asinhf128=no |
1ec601bf FXC |
27234 | fi |
27235 | rm -f core conftest.err conftest.$ac_objext \ | |
27236 | conftest$ac_exeext conftest.$ac_ext | |
69eb61d4 | 27237 | fi |
133d0d42 JJ |
27238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf128" >&5 |
27239 | $as_echo "$gcc_cv_math_func_asinhf128" >&6; } | |
27240 | if test $gcc_cv_math_func_asinhf128 = yes; then | |
1ec601bf | 27241 | |
133d0d42 JJ |
27242 | cat >>confdefs.h <<_ACEOF |
27243 | #define HAVE_ASINHF128 1 | |
27244 | _ACEOF | |
1ec601bf | 27245 | |
133d0d42 | 27246 | fi |
1ec601bf FXC |
27247 | |
27248 | ||
1ec601bf | 27249 | |
1ec601bf | 27250 | |
133d0d42 JJ |
27251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f128" >&5 |
27252 | $as_echo_n "checking for atan2f128... " >&6; } | |
27253 | if ${gcc_cv_math_func_atan2f128+:} false; then : | |
27254 | $as_echo_n "(cached) " >&6 | |
27255 | else | |
27256 | if test x$gcc_no_link = xyes; then | |
22e05272 | 27257 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1ec601bf FXC |
27258 | fi |
27259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27260 | /* end confdefs.h. */ | |
27261 | ||
133d0d42 JJ |
27262 | #ifdef HAVE_COMPLEX_H |
27263 | #include <complex.h> | |
27264 | #endif | |
27265 | #ifdef HAVE_MATH_H | |
27266 | #include <math.h> | |
27267 | #endif | |
27268 | ||
27269 | int (*ptr)() = (int (*)())atan2f128; | |
27270 | ||
1ec601bf FXC |
27271 | int |
27272 | main () | |
27273 | { | |
1ec601bf FXC |
27274 | return 0; |
27275 | } | |
133d0d42 | 27276 | |
1ec601bf FXC |
27277 | _ACEOF |
27278 | if ac_fn_c_try_link "$LINENO"; then : | |
133d0d42 | 27279 | gcc_cv_math_func_atan2f128=yes |
1ec601bf | 27280 | else |
133d0d42 | 27281 | gcc_cv_math_func_atan2f128=no |
1ec601bf FXC |
27282 | fi |
27283 | rm -f core conftest.err conftest.$ac_objext \ | |
27284 | conftest$ac_exeext conftest.$ac_ext | |
133d0d42 JJ |
27285 | fi |
27286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f128" >&5 | |
27287 | $as_echo "$gcc_cv_math_func_atan2f128" >&6; } | |
27288 | if test $gcc_cv_math_func_atan2f128 = yes; then | |
828012a5 | 27289 | |
133d0d42 JJ |
27290 | cat >>confdefs.h <<_ACEOF |
27291 | #define HAVE_ATAN2F128 1 | |
27292 | _ACEOF | |
27293 | ||
27294 | fi | |
27295 | ||
27296 | ||
27297 | ||
27298 | ||
27299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf128" >&5 | |
27300 | $as_echo_n "checking for atanf128... " >&6; } | |
27301 | if ${gcc_cv_math_func_atanf128+:} false; then : | |
27302 | $as_echo_n "(cached) " >&6 | |
27303 | else | |
27304 | if test x$gcc_no_link = xyes; then | |
22e05272 | 27305 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
828012a5 RO |
27306 | fi |
27307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27308 | /* end confdefs.h. */ | |
27309 | ||
133d0d42 JJ |
27310 | #ifdef HAVE_COMPLEX_H |
27311 | #include <complex.h> | |
27312 | #endif | |
27313 | #ifdef HAVE_MATH_H | |
27314 | #include <math.h> | |
27315 | #endif | |
27316 | ||
27317 | int (*ptr)() = (int (*)())atanf128; | |
27318 | ||
828012a5 RO |
27319 | int |
27320 | main () | |
27321 | { | |
133d0d42 JJ |
27322 | return 0; |
27323 | } | |
27324 | ||
27325 | _ACEOF | |
27326 | if ac_fn_c_try_link "$LINENO"; then : | |
27327 | gcc_cv_math_func_atanf128=yes | |
27328 | else | |
27329 | gcc_cv_math_func_atanf128=no | |
27330 | fi | |
27331 | rm -f core conftest.err conftest.$ac_objext \ | |
27332 | conftest$ac_exeext conftest.$ac_ext | |
27333 | fi | |
27334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf128" >&5 | |
27335 | $as_echo "$gcc_cv_math_func_atanf128" >&6; } | |
27336 | if test $gcc_cv_math_func_atanf128 = yes; then | |
27337 | ||
27338 | cat >>confdefs.h <<_ACEOF | |
27339 | #define HAVE_ATANF128 1 | |
27340 | _ACEOF | |
27341 | ||
27342 | fi | |
27343 | ||
27344 | ||
27345 | ||
27346 | ||
27347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf128" >&5 | |
27348 | $as_echo_n "checking for atanhf128... " >&6; } | |
27349 | if ${gcc_cv_math_func_atanhf128+:} false; then : | |
27350 | $as_echo_n "(cached) " >&6 | |
27351 | else | |
27352 | if test x$gcc_no_link = xyes; then | |
27353 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27354 | fi | |
27355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27356 | /* end confdefs.h. */ | |
27357 | ||
27358 | #ifdef HAVE_COMPLEX_H | |
27359 | #include <complex.h> | |
27360 | #endif | |
27361 | #ifdef HAVE_MATH_H | |
27362 | #include <math.h> | |
27363 | #endif | |
27364 | ||
27365 | int (*ptr)() = (int (*)())atanhf128; | |
27366 | ||
27367 | int | |
27368 | main () | |
27369 | { | |
27370 | return 0; | |
27371 | } | |
27372 | ||
27373 | _ACEOF | |
27374 | if ac_fn_c_try_link "$LINENO"; then : | |
27375 | gcc_cv_math_func_atanhf128=yes | |
27376 | else | |
27377 | gcc_cv_math_func_atanhf128=no | |
27378 | fi | |
27379 | rm -f core conftest.err conftest.$ac_objext \ | |
27380 | conftest$ac_exeext conftest.$ac_ext | |
27381 | fi | |
27382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf128" >&5 | |
27383 | $as_echo "$gcc_cv_math_func_atanhf128" >&6; } | |
27384 | if test $gcc_cv_math_func_atanhf128 = yes; then | |
27385 | ||
27386 | cat >>confdefs.h <<_ACEOF | |
27387 | #define HAVE_ATANHF128 1 | |
27388 | _ACEOF | |
27389 | ||
27390 | fi | |
27391 | ||
27392 | ||
27393 | ||
27394 | ||
27395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf128" >&5 | |
27396 | $as_echo_n "checking for cargf128... " >&6; } | |
27397 | if ${gcc_cv_math_func_cargf128+:} false; then : | |
27398 | $as_echo_n "(cached) " >&6 | |
27399 | else | |
27400 | if test x$gcc_no_link = xyes; then | |
27401 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27402 | fi | |
27403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27404 | /* end confdefs.h. */ | |
27405 | ||
27406 | #ifdef HAVE_COMPLEX_H | |
27407 | #include <complex.h> | |
27408 | #endif | |
27409 | #ifdef HAVE_MATH_H | |
27410 | #include <math.h> | |
27411 | #endif | |
27412 | ||
27413 | int (*ptr)() = (int (*)())cargf128; | |
27414 | ||
27415 | int | |
27416 | main () | |
27417 | { | |
27418 | return 0; | |
27419 | } | |
27420 | ||
27421 | _ACEOF | |
27422 | if ac_fn_c_try_link "$LINENO"; then : | |
27423 | gcc_cv_math_func_cargf128=yes | |
27424 | else | |
27425 | gcc_cv_math_func_cargf128=no | |
27426 | fi | |
27427 | rm -f core conftest.err conftest.$ac_objext \ | |
27428 | conftest$ac_exeext conftest.$ac_ext | |
27429 | fi | |
27430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf128" >&5 | |
27431 | $as_echo "$gcc_cv_math_func_cargf128" >&6; } | |
27432 | if test $gcc_cv_math_func_cargf128 = yes; then | |
27433 | ||
27434 | cat >>confdefs.h <<_ACEOF | |
27435 | #define HAVE_CARGF128 1 | |
27436 | _ACEOF | |
27437 | ||
27438 | fi | |
27439 | ||
27440 | ||
27441 | ||
27442 | ||
27443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf128" >&5 | |
27444 | $as_echo_n "checking for ceilf128... " >&6; } | |
27445 | if ${gcc_cv_math_func_ceilf128+:} false; then : | |
27446 | $as_echo_n "(cached) " >&6 | |
27447 | else | |
27448 | if test x$gcc_no_link = xyes; then | |
27449 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27450 | fi | |
27451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27452 | /* end confdefs.h. */ | |
27453 | ||
27454 | #ifdef HAVE_COMPLEX_H | |
27455 | #include <complex.h> | |
27456 | #endif | |
27457 | #ifdef HAVE_MATH_H | |
27458 | #include <math.h> | |
27459 | #endif | |
27460 | ||
27461 | int (*ptr)() = (int (*)())ceilf128; | |
27462 | ||
27463 | int | |
27464 | main () | |
27465 | { | |
27466 | return 0; | |
27467 | } | |
27468 | ||
27469 | _ACEOF | |
27470 | if ac_fn_c_try_link "$LINENO"; then : | |
27471 | gcc_cv_math_func_ceilf128=yes | |
27472 | else | |
27473 | gcc_cv_math_func_ceilf128=no | |
27474 | fi | |
27475 | rm -f core conftest.err conftest.$ac_objext \ | |
27476 | conftest$ac_exeext conftest.$ac_ext | |
27477 | fi | |
27478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf128" >&5 | |
27479 | $as_echo "$gcc_cv_math_func_ceilf128" >&6; } | |
27480 | if test $gcc_cv_math_func_ceilf128 = yes; then | |
27481 | ||
27482 | cat >>confdefs.h <<_ACEOF | |
27483 | #define HAVE_CEILF128 1 | |
27484 | _ACEOF | |
27485 | ||
27486 | fi | |
27487 | ||
27488 | ||
27489 | ||
27490 | ||
27491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf128" >&5 | |
27492 | $as_echo_n "checking for copysignf128... " >&6; } | |
27493 | if ${gcc_cv_math_func_copysignf128+:} false; then : | |
27494 | $as_echo_n "(cached) " >&6 | |
27495 | else | |
27496 | if test x$gcc_no_link = xyes; then | |
27497 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27498 | fi | |
27499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27500 | /* end confdefs.h. */ | |
27501 | ||
27502 | #ifdef HAVE_COMPLEX_H | |
27503 | #include <complex.h> | |
27504 | #endif | |
27505 | #ifdef HAVE_MATH_H | |
27506 | #include <math.h> | |
27507 | #endif | |
27508 | ||
27509 | int (*ptr)() = (int (*)())copysignf128; | |
27510 | ||
27511 | int | |
27512 | main () | |
27513 | { | |
27514 | return 0; | |
27515 | } | |
27516 | ||
27517 | _ACEOF | |
27518 | if ac_fn_c_try_link "$LINENO"; then : | |
27519 | gcc_cv_math_func_copysignf128=yes | |
27520 | else | |
27521 | gcc_cv_math_func_copysignf128=no | |
27522 | fi | |
27523 | rm -f core conftest.err conftest.$ac_objext \ | |
27524 | conftest$ac_exeext conftest.$ac_ext | |
27525 | fi | |
27526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf128" >&5 | |
27527 | $as_echo "$gcc_cv_math_func_copysignf128" >&6; } | |
27528 | if test $gcc_cv_math_func_copysignf128 = yes; then | |
27529 | ||
27530 | cat >>confdefs.h <<_ACEOF | |
27531 | #define HAVE_COPYSIGNF128 1 | |
27532 | _ACEOF | |
27533 | ||
27534 | fi | |
27535 | ||
27536 | ||
27537 | ||
27538 | ||
27539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf128" >&5 | |
27540 | $as_echo_n "checking for cosf128... " >&6; } | |
27541 | if ${gcc_cv_math_func_cosf128+:} false; then : | |
27542 | $as_echo_n "(cached) " >&6 | |
27543 | else | |
27544 | if test x$gcc_no_link = xyes; then | |
27545 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27546 | fi | |
27547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27548 | /* end confdefs.h. */ | |
27549 | ||
27550 | #ifdef HAVE_COMPLEX_H | |
27551 | #include <complex.h> | |
27552 | #endif | |
27553 | #ifdef HAVE_MATH_H | |
27554 | #include <math.h> | |
27555 | #endif | |
27556 | ||
27557 | int (*ptr)() = (int (*)())cosf128; | |
27558 | ||
27559 | int | |
27560 | main () | |
27561 | { | |
27562 | return 0; | |
27563 | } | |
27564 | ||
27565 | _ACEOF | |
27566 | if ac_fn_c_try_link "$LINENO"; then : | |
27567 | gcc_cv_math_func_cosf128=yes | |
27568 | else | |
27569 | gcc_cv_math_func_cosf128=no | |
27570 | fi | |
27571 | rm -f core conftest.err conftest.$ac_objext \ | |
27572 | conftest$ac_exeext conftest.$ac_ext | |
27573 | fi | |
27574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf128" >&5 | |
27575 | $as_echo "$gcc_cv_math_func_cosf128" >&6; } | |
27576 | if test $gcc_cv_math_func_cosf128 = yes; then | |
27577 | ||
27578 | cat >>confdefs.h <<_ACEOF | |
27579 | #define HAVE_COSF128 1 | |
27580 | _ACEOF | |
27581 | ||
27582 | fi | |
27583 | ||
27584 | ||
27585 | ||
27586 | ||
27587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf128" >&5 | |
27588 | $as_echo_n "checking for ccosf128... " >&6; } | |
27589 | if ${gcc_cv_math_func_ccosf128+:} false; then : | |
27590 | $as_echo_n "(cached) " >&6 | |
27591 | else | |
27592 | if test x$gcc_no_link = xyes; then | |
27593 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27594 | fi | |
27595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27596 | /* end confdefs.h. */ | |
27597 | ||
27598 | #ifdef HAVE_COMPLEX_H | |
27599 | #include <complex.h> | |
27600 | #endif | |
27601 | #ifdef HAVE_MATH_H | |
27602 | #include <math.h> | |
27603 | #endif | |
27604 | ||
27605 | int (*ptr)() = (int (*)())ccosf128; | |
27606 | ||
27607 | int | |
27608 | main () | |
27609 | { | |
27610 | return 0; | |
27611 | } | |
27612 | ||
27613 | _ACEOF | |
27614 | if ac_fn_c_try_link "$LINENO"; then : | |
27615 | gcc_cv_math_func_ccosf128=yes | |
27616 | else | |
27617 | gcc_cv_math_func_ccosf128=no | |
27618 | fi | |
27619 | rm -f core conftest.err conftest.$ac_objext \ | |
27620 | conftest$ac_exeext conftest.$ac_ext | |
27621 | fi | |
27622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf128" >&5 | |
27623 | $as_echo "$gcc_cv_math_func_ccosf128" >&6; } | |
27624 | if test $gcc_cv_math_func_ccosf128 = yes; then | |
27625 | ||
27626 | cat >>confdefs.h <<_ACEOF | |
27627 | #define HAVE_CCOSF128 1 | |
27628 | _ACEOF | |
27629 | ||
27630 | fi | |
27631 | ||
27632 | ||
27633 | ||
27634 | ||
27635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf128" >&5 | |
27636 | $as_echo_n "checking for coshf128... " >&6; } | |
27637 | if ${gcc_cv_math_func_coshf128+:} false; then : | |
27638 | $as_echo_n "(cached) " >&6 | |
27639 | else | |
27640 | if test x$gcc_no_link = xyes; then | |
27641 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27642 | fi | |
27643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27644 | /* end confdefs.h. */ | |
27645 | ||
27646 | #ifdef HAVE_COMPLEX_H | |
27647 | #include <complex.h> | |
27648 | #endif | |
27649 | #ifdef HAVE_MATH_H | |
27650 | #include <math.h> | |
27651 | #endif | |
27652 | ||
27653 | int (*ptr)() = (int (*)())coshf128; | |
27654 | ||
27655 | int | |
27656 | main () | |
27657 | { | |
27658 | return 0; | |
27659 | } | |
27660 | ||
27661 | _ACEOF | |
27662 | if ac_fn_c_try_link "$LINENO"; then : | |
27663 | gcc_cv_math_func_coshf128=yes | |
27664 | else | |
27665 | gcc_cv_math_func_coshf128=no | |
27666 | fi | |
27667 | rm -f core conftest.err conftest.$ac_objext \ | |
27668 | conftest$ac_exeext conftest.$ac_ext | |
27669 | fi | |
27670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf128" >&5 | |
27671 | $as_echo "$gcc_cv_math_func_coshf128" >&6; } | |
27672 | if test $gcc_cv_math_func_coshf128 = yes; then | |
27673 | ||
27674 | cat >>confdefs.h <<_ACEOF | |
27675 | #define HAVE_COSHF128 1 | |
27676 | _ACEOF | |
27677 | ||
27678 | fi | |
27679 | ||
27680 | ||
27681 | ||
27682 | ||
27683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf128" >&5 | |
27684 | $as_echo_n "checking for ccoshf128... " >&6; } | |
27685 | if ${gcc_cv_math_func_ccoshf128+:} false; then : | |
27686 | $as_echo_n "(cached) " >&6 | |
27687 | else | |
27688 | if test x$gcc_no_link = xyes; then | |
27689 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27690 | fi | |
27691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27692 | /* end confdefs.h. */ | |
27693 | ||
27694 | #ifdef HAVE_COMPLEX_H | |
27695 | #include <complex.h> | |
27696 | #endif | |
27697 | #ifdef HAVE_MATH_H | |
27698 | #include <math.h> | |
27699 | #endif | |
27700 | ||
27701 | int (*ptr)() = (int (*)())ccoshf128; | |
27702 | ||
27703 | int | |
27704 | main () | |
27705 | { | |
27706 | return 0; | |
27707 | } | |
27708 | ||
27709 | _ACEOF | |
27710 | if ac_fn_c_try_link "$LINENO"; then : | |
27711 | gcc_cv_math_func_ccoshf128=yes | |
27712 | else | |
27713 | gcc_cv_math_func_ccoshf128=no | |
27714 | fi | |
27715 | rm -f core conftest.err conftest.$ac_objext \ | |
27716 | conftest$ac_exeext conftest.$ac_ext | |
27717 | fi | |
27718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf128" >&5 | |
27719 | $as_echo "$gcc_cv_math_func_ccoshf128" >&6; } | |
27720 | if test $gcc_cv_math_func_ccoshf128 = yes; then | |
27721 | ||
27722 | cat >>confdefs.h <<_ACEOF | |
27723 | #define HAVE_CCOSHF128 1 | |
27724 | _ACEOF | |
27725 | ||
27726 | fi | |
27727 | ||
27728 | ||
27729 | ||
27730 | ||
27731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf128" >&5 | |
27732 | $as_echo_n "checking for expf128... " >&6; } | |
27733 | if ${gcc_cv_math_func_expf128+:} false; then : | |
27734 | $as_echo_n "(cached) " >&6 | |
27735 | else | |
27736 | if test x$gcc_no_link = xyes; then | |
27737 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27738 | fi | |
27739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27740 | /* end confdefs.h. */ | |
27741 | ||
27742 | #ifdef HAVE_COMPLEX_H | |
27743 | #include <complex.h> | |
27744 | #endif | |
27745 | #ifdef HAVE_MATH_H | |
27746 | #include <math.h> | |
27747 | #endif | |
27748 | ||
27749 | int (*ptr)() = (int (*)())expf128; | |
27750 | ||
27751 | int | |
27752 | main () | |
27753 | { | |
27754 | return 0; | |
27755 | } | |
27756 | ||
27757 | _ACEOF | |
27758 | if ac_fn_c_try_link "$LINENO"; then : | |
27759 | gcc_cv_math_func_expf128=yes | |
27760 | else | |
27761 | gcc_cv_math_func_expf128=no | |
27762 | fi | |
27763 | rm -f core conftest.err conftest.$ac_objext \ | |
27764 | conftest$ac_exeext conftest.$ac_ext | |
27765 | fi | |
27766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf128" >&5 | |
27767 | $as_echo "$gcc_cv_math_func_expf128" >&6; } | |
27768 | if test $gcc_cv_math_func_expf128 = yes; then | |
27769 | ||
27770 | cat >>confdefs.h <<_ACEOF | |
27771 | #define HAVE_EXPF128 1 | |
27772 | _ACEOF | |
27773 | ||
27774 | fi | |
27775 | ||
27776 | ||
27777 | ||
27778 | ||
27779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf128" >&5 | |
27780 | $as_echo_n "checking for cexpf128... " >&6; } | |
27781 | if ${gcc_cv_math_func_cexpf128+:} false; then : | |
27782 | $as_echo_n "(cached) " >&6 | |
27783 | else | |
27784 | if test x$gcc_no_link = xyes; then | |
27785 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27786 | fi | |
27787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27788 | /* end confdefs.h. */ | |
27789 | ||
27790 | #ifdef HAVE_COMPLEX_H | |
27791 | #include <complex.h> | |
27792 | #endif | |
27793 | #ifdef HAVE_MATH_H | |
27794 | #include <math.h> | |
27795 | #endif | |
27796 | ||
27797 | int (*ptr)() = (int (*)())cexpf128; | |
27798 | ||
27799 | int | |
27800 | main () | |
27801 | { | |
27802 | return 0; | |
27803 | } | |
27804 | ||
27805 | _ACEOF | |
27806 | if ac_fn_c_try_link "$LINENO"; then : | |
27807 | gcc_cv_math_func_cexpf128=yes | |
27808 | else | |
27809 | gcc_cv_math_func_cexpf128=no | |
27810 | fi | |
27811 | rm -f core conftest.err conftest.$ac_objext \ | |
27812 | conftest$ac_exeext conftest.$ac_ext | |
27813 | fi | |
27814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf128" >&5 | |
27815 | $as_echo "$gcc_cv_math_func_cexpf128" >&6; } | |
27816 | if test $gcc_cv_math_func_cexpf128 = yes; then | |
27817 | ||
27818 | cat >>confdefs.h <<_ACEOF | |
27819 | #define HAVE_CEXPF128 1 | |
27820 | _ACEOF | |
27821 | ||
27822 | fi | |
27823 | ||
27824 | ||
27825 | ||
27826 | ||
27827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf128" >&5 | |
27828 | $as_echo_n "checking for fabsf128... " >&6; } | |
27829 | if ${gcc_cv_math_func_fabsf128+:} false; then : | |
27830 | $as_echo_n "(cached) " >&6 | |
27831 | else | |
27832 | if test x$gcc_no_link = xyes; then | |
27833 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27834 | fi | |
27835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27836 | /* end confdefs.h. */ | |
27837 | ||
27838 | #ifdef HAVE_COMPLEX_H | |
27839 | #include <complex.h> | |
27840 | #endif | |
27841 | #ifdef HAVE_MATH_H | |
27842 | #include <math.h> | |
27843 | #endif | |
27844 | ||
27845 | int (*ptr)() = (int (*)())fabsf128; | |
27846 | ||
27847 | int | |
27848 | main () | |
27849 | { | |
27850 | return 0; | |
27851 | } | |
27852 | ||
27853 | _ACEOF | |
27854 | if ac_fn_c_try_link "$LINENO"; then : | |
27855 | gcc_cv_math_func_fabsf128=yes | |
27856 | else | |
27857 | gcc_cv_math_func_fabsf128=no | |
27858 | fi | |
27859 | rm -f core conftest.err conftest.$ac_objext \ | |
27860 | conftest$ac_exeext conftest.$ac_ext | |
27861 | fi | |
27862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf128" >&5 | |
27863 | $as_echo "$gcc_cv_math_func_fabsf128" >&6; } | |
27864 | if test $gcc_cv_math_func_fabsf128 = yes; then | |
27865 | ||
27866 | cat >>confdefs.h <<_ACEOF | |
27867 | #define HAVE_FABSF128 1 | |
27868 | _ACEOF | |
27869 | ||
27870 | fi | |
27871 | ||
27872 | ||
27873 | ||
27874 | ||
27875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf128" >&5 | |
27876 | $as_echo_n "checking for cabsf128... " >&6; } | |
27877 | if ${gcc_cv_math_func_cabsf128+:} false; then : | |
27878 | $as_echo_n "(cached) " >&6 | |
27879 | else | |
27880 | if test x$gcc_no_link = xyes; then | |
27881 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27882 | fi | |
27883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27884 | /* end confdefs.h. */ | |
27885 | ||
27886 | #ifdef HAVE_COMPLEX_H | |
27887 | #include <complex.h> | |
27888 | #endif | |
27889 | #ifdef HAVE_MATH_H | |
27890 | #include <math.h> | |
27891 | #endif | |
27892 | ||
27893 | int (*ptr)() = (int (*)())cabsf128; | |
27894 | ||
27895 | int | |
27896 | main () | |
27897 | { | |
27898 | return 0; | |
27899 | } | |
27900 | ||
27901 | _ACEOF | |
27902 | if ac_fn_c_try_link "$LINENO"; then : | |
27903 | gcc_cv_math_func_cabsf128=yes | |
27904 | else | |
27905 | gcc_cv_math_func_cabsf128=no | |
27906 | fi | |
27907 | rm -f core conftest.err conftest.$ac_objext \ | |
27908 | conftest$ac_exeext conftest.$ac_ext | |
27909 | fi | |
27910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf128" >&5 | |
27911 | $as_echo "$gcc_cv_math_func_cabsf128" >&6; } | |
27912 | if test $gcc_cv_math_func_cabsf128 = yes; then | |
27913 | ||
27914 | cat >>confdefs.h <<_ACEOF | |
27915 | #define HAVE_CABSF128 1 | |
27916 | _ACEOF | |
27917 | ||
27918 | fi | |
27919 | ||
27920 | ||
27921 | ||
27922 | ||
27923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf128" >&5 | |
27924 | $as_echo_n "checking for floorf128... " >&6; } | |
27925 | if ${gcc_cv_math_func_floorf128+:} false; then : | |
27926 | $as_echo_n "(cached) " >&6 | |
27927 | else | |
27928 | if test x$gcc_no_link = xyes; then | |
27929 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27930 | fi | |
27931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27932 | /* end confdefs.h. */ | |
27933 | ||
27934 | #ifdef HAVE_COMPLEX_H | |
27935 | #include <complex.h> | |
27936 | #endif | |
27937 | #ifdef HAVE_MATH_H | |
27938 | #include <math.h> | |
27939 | #endif | |
27940 | ||
27941 | int (*ptr)() = (int (*)())floorf128; | |
27942 | ||
27943 | int | |
27944 | main () | |
27945 | { | |
27946 | return 0; | |
27947 | } | |
27948 | ||
27949 | _ACEOF | |
27950 | if ac_fn_c_try_link "$LINENO"; then : | |
27951 | gcc_cv_math_func_floorf128=yes | |
27952 | else | |
27953 | gcc_cv_math_func_floorf128=no | |
27954 | fi | |
27955 | rm -f core conftest.err conftest.$ac_objext \ | |
27956 | conftest$ac_exeext conftest.$ac_ext | |
27957 | fi | |
27958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf128" >&5 | |
27959 | $as_echo "$gcc_cv_math_func_floorf128" >&6; } | |
27960 | if test $gcc_cv_math_func_floorf128 = yes; then | |
27961 | ||
27962 | cat >>confdefs.h <<_ACEOF | |
27963 | #define HAVE_FLOORF128 1 | |
27964 | _ACEOF | |
27965 | ||
27966 | fi | |
27967 | ||
27968 | ||
27969 | ||
27970 | ||
27971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf128" >&5 | |
27972 | $as_echo_n "checking for fmaf128... " >&6; } | |
27973 | if ${gcc_cv_math_func_fmaf128+:} false; then : | |
27974 | $as_echo_n "(cached) " >&6 | |
27975 | else | |
27976 | if test x$gcc_no_link = xyes; then | |
27977 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
27978 | fi | |
27979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27980 | /* end confdefs.h. */ | |
27981 | ||
27982 | #ifdef HAVE_COMPLEX_H | |
27983 | #include <complex.h> | |
27984 | #endif | |
27985 | #ifdef HAVE_MATH_H | |
27986 | #include <math.h> | |
27987 | #endif | |
27988 | ||
27989 | int (*ptr)() = (int (*)())fmaf128; | |
27990 | ||
27991 | int | |
27992 | main () | |
27993 | { | |
27994 | return 0; | |
27995 | } | |
27996 | ||
27997 | _ACEOF | |
27998 | if ac_fn_c_try_link "$LINENO"; then : | |
27999 | gcc_cv_math_func_fmaf128=yes | |
28000 | else | |
28001 | gcc_cv_math_func_fmaf128=no | |
28002 | fi | |
28003 | rm -f core conftest.err conftest.$ac_objext \ | |
28004 | conftest$ac_exeext conftest.$ac_ext | |
28005 | fi | |
28006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf128" >&5 | |
28007 | $as_echo "$gcc_cv_math_func_fmaf128" >&6; } | |
28008 | if test $gcc_cv_math_func_fmaf128 = yes; then | |
28009 | ||
28010 | cat >>confdefs.h <<_ACEOF | |
28011 | #define HAVE_FMAF128 1 | |
28012 | _ACEOF | |
28013 | ||
28014 | fi | |
28015 | ||
28016 | ||
28017 | ||
28018 | ||
28019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf128" >&5 | |
28020 | $as_echo_n "checking for fmodf128... " >&6; } | |
28021 | if ${gcc_cv_math_func_fmodf128+:} false; then : | |
28022 | $as_echo_n "(cached) " >&6 | |
28023 | else | |
28024 | if test x$gcc_no_link = xyes; then | |
28025 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28026 | fi | |
28027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28028 | /* end confdefs.h. */ | |
28029 | ||
28030 | #ifdef HAVE_COMPLEX_H | |
28031 | #include <complex.h> | |
28032 | #endif | |
28033 | #ifdef HAVE_MATH_H | |
28034 | #include <math.h> | |
28035 | #endif | |
28036 | ||
28037 | int (*ptr)() = (int (*)())fmodf128; | |
28038 | ||
28039 | int | |
28040 | main () | |
28041 | { | |
28042 | return 0; | |
28043 | } | |
28044 | ||
28045 | _ACEOF | |
28046 | if ac_fn_c_try_link "$LINENO"; then : | |
28047 | gcc_cv_math_func_fmodf128=yes | |
28048 | else | |
28049 | gcc_cv_math_func_fmodf128=no | |
28050 | fi | |
28051 | rm -f core conftest.err conftest.$ac_objext \ | |
28052 | conftest$ac_exeext conftest.$ac_ext | |
28053 | fi | |
28054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf128" >&5 | |
28055 | $as_echo "$gcc_cv_math_func_fmodf128" >&6; } | |
28056 | if test $gcc_cv_math_func_fmodf128 = yes; then | |
28057 | ||
28058 | cat >>confdefs.h <<_ACEOF | |
28059 | #define HAVE_FMODF128 1 | |
28060 | _ACEOF | |
28061 | ||
28062 | fi | |
28063 | ||
28064 | ||
28065 | ||
28066 | ||
28067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf128" >&5 | |
28068 | $as_echo_n "checking for frexpf128... " >&6; } | |
28069 | if ${gcc_cv_math_func_frexpf128+:} false; then : | |
28070 | $as_echo_n "(cached) " >&6 | |
28071 | else | |
28072 | if test x$gcc_no_link = xyes; then | |
28073 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28074 | fi | |
28075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28076 | /* end confdefs.h. */ | |
28077 | ||
28078 | #ifdef HAVE_COMPLEX_H | |
28079 | #include <complex.h> | |
28080 | #endif | |
28081 | #ifdef HAVE_MATH_H | |
28082 | #include <math.h> | |
28083 | #endif | |
28084 | ||
28085 | int (*ptr)() = (int (*)())frexpf128; | |
28086 | ||
28087 | int | |
28088 | main () | |
28089 | { | |
28090 | return 0; | |
28091 | } | |
28092 | ||
28093 | _ACEOF | |
28094 | if ac_fn_c_try_link "$LINENO"; then : | |
28095 | gcc_cv_math_func_frexpf128=yes | |
28096 | else | |
28097 | gcc_cv_math_func_frexpf128=no | |
28098 | fi | |
28099 | rm -f core conftest.err conftest.$ac_objext \ | |
28100 | conftest$ac_exeext conftest.$ac_ext | |
28101 | fi | |
28102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf128" >&5 | |
28103 | $as_echo "$gcc_cv_math_func_frexpf128" >&6; } | |
28104 | if test $gcc_cv_math_func_frexpf128 = yes; then | |
28105 | ||
28106 | cat >>confdefs.h <<_ACEOF | |
28107 | #define HAVE_FREXPF128 1 | |
28108 | _ACEOF | |
28109 | ||
28110 | fi | |
28111 | ||
28112 | ||
28113 | ||
28114 | ||
28115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf128" >&5 | |
28116 | $as_echo_n "checking for hypotf128... " >&6; } | |
28117 | if ${gcc_cv_math_func_hypotf128+:} false; then : | |
28118 | $as_echo_n "(cached) " >&6 | |
28119 | else | |
28120 | if test x$gcc_no_link = xyes; then | |
28121 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28122 | fi | |
28123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28124 | /* end confdefs.h. */ | |
28125 | ||
28126 | #ifdef HAVE_COMPLEX_H | |
28127 | #include <complex.h> | |
28128 | #endif | |
28129 | #ifdef HAVE_MATH_H | |
28130 | #include <math.h> | |
28131 | #endif | |
28132 | ||
28133 | int (*ptr)() = (int (*)())hypotf128; | |
28134 | ||
28135 | int | |
28136 | main () | |
28137 | { | |
28138 | return 0; | |
28139 | } | |
28140 | ||
28141 | _ACEOF | |
28142 | if ac_fn_c_try_link "$LINENO"; then : | |
28143 | gcc_cv_math_func_hypotf128=yes | |
28144 | else | |
28145 | gcc_cv_math_func_hypotf128=no | |
28146 | fi | |
28147 | rm -f core conftest.err conftest.$ac_objext \ | |
28148 | conftest$ac_exeext conftest.$ac_ext | |
28149 | fi | |
28150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf128" >&5 | |
28151 | $as_echo "$gcc_cv_math_func_hypotf128" >&6; } | |
28152 | if test $gcc_cv_math_func_hypotf128 = yes; then | |
28153 | ||
28154 | cat >>confdefs.h <<_ACEOF | |
28155 | #define HAVE_HYPOTF128 1 | |
28156 | _ACEOF | |
28157 | ||
28158 | fi | |
28159 | ||
28160 | ||
28161 | ||
28162 | ||
28163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf128" >&5 | |
28164 | $as_echo_n "checking for ldexpf128... " >&6; } | |
28165 | if ${gcc_cv_math_func_ldexpf128+:} false; then : | |
28166 | $as_echo_n "(cached) " >&6 | |
28167 | else | |
28168 | if test x$gcc_no_link = xyes; then | |
28169 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28170 | fi | |
28171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28172 | /* end confdefs.h. */ | |
28173 | ||
28174 | #ifdef HAVE_COMPLEX_H | |
28175 | #include <complex.h> | |
28176 | #endif | |
28177 | #ifdef HAVE_MATH_H | |
28178 | #include <math.h> | |
28179 | #endif | |
28180 | ||
28181 | int (*ptr)() = (int (*)())ldexpf128; | |
28182 | ||
28183 | int | |
28184 | main () | |
28185 | { | |
28186 | return 0; | |
28187 | } | |
28188 | ||
28189 | _ACEOF | |
28190 | if ac_fn_c_try_link "$LINENO"; then : | |
28191 | gcc_cv_math_func_ldexpf128=yes | |
28192 | else | |
28193 | gcc_cv_math_func_ldexpf128=no | |
28194 | fi | |
28195 | rm -f core conftest.err conftest.$ac_objext \ | |
28196 | conftest$ac_exeext conftest.$ac_ext | |
28197 | fi | |
28198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf128" >&5 | |
28199 | $as_echo "$gcc_cv_math_func_ldexpf128" >&6; } | |
28200 | if test $gcc_cv_math_func_ldexpf128 = yes; then | |
28201 | ||
28202 | cat >>confdefs.h <<_ACEOF | |
28203 | #define HAVE_LDEXPF128 1 | |
28204 | _ACEOF | |
28205 | ||
28206 | fi | |
28207 | ||
28208 | ||
28209 | ||
28210 | ||
28211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf128" >&5 | |
28212 | $as_echo_n "checking for logf128... " >&6; } | |
28213 | if ${gcc_cv_math_func_logf128+:} false; then : | |
28214 | $as_echo_n "(cached) " >&6 | |
28215 | else | |
28216 | if test x$gcc_no_link = xyes; then | |
28217 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28218 | fi | |
28219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28220 | /* end confdefs.h. */ | |
28221 | ||
28222 | #ifdef HAVE_COMPLEX_H | |
28223 | #include <complex.h> | |
28224 | #endif | |
28225 | #ifdef HAVE_MATH_H | |
28226 | #include <math.h> | |
28227 | #endif | |
28228 | ||
28229 | int (*ptr)() = (int (*)())logf128; | |
28230 | ||
28231 | int | |
28232 | main () | |
28233 | { | |
28234 | return 0; | |
28235 | } | |
28236 | ||
28237 | _ACEOF | |
28238 | if ac_fn_c_try_link "$LINENO"; then : | |
28239 | gcc_cv_math_func_logf128=yes | |
28240 | else | |
28241 | gcc_cv_math_func_logf128=no | |
28242 | fi | |
28243 | rm -f core conftest.err conftest.$ac_objext \ | |
28244 | conftest$ac_exeext conftest.$ac_ext | |
28245 | fi | |
28246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf128" >&5 | |
28247 | $as_echo "$gcc_cv_math_func_logf128" >&6; } | |
28248 | if test $gcc_cv_math_func_logf128 = yes; then | |
28249 | ||
28250 | cat >>confdefs.h <<_ACEOF | |
28251 | #define HAVE_LOGF128 1 | |
28252 | _ACEOF | |
28253 | ||
28254 | fi | |
28255 | ||
28256 | ||
28257 | ||
28258 | ||
28259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf128" >&5 | |
28260 | $as_echo_n "checking for clogf128... " >&6; } | |
28261 | if ${gcc_cv_math_func_clogf128+:} false; then : | |
28262 | $as_echo_n "(cached) " >&6 | |
28263 | else | |
28264 | if test x$gcc_no_link = xyes; then | |
28265 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28266 | fi | |
28267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28268 | /* end confdefs.h. */ | |
28269 | ||
28270 | #ifdef HAVE_COMPLEX_H | |
28271 | #include <complex.h> | |
28272 | #endif | |
28273 | #ifdef HAVE_MATH_H | |
28274 | #include <math.h> | |
28275 | #endif | |
28276 | ||
28277 | int (*ptr)() = (int (*)())clogf128; | |
28278 | ||
28279 | int | |
28280 | main () | |
28281 | { | |
28282 | return 0; | |
28283 | } | |
28284 | ||
28285 | _ACEOF | |
28286 | if ac_fn_c_try_link "$LINENO"; then : | |
28287 | gcc_cv_math_func_clogf128=yes | |
28288 | else | |
28289 | gcc_cv_math_func_clogf128=no | |
28290 | fi | |
28291 | rm -f core conftest.err conftest.$ac_objext \ | |
28292 | conftest$ac_exeext conftest.$ac_ext | |
28293 | fi | |
28294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf128" >&5 | |
28295 | $as_echo "$gcc_cv_math_func_clogf128" >&6; } | |
28296 | if test $gcc_cv_math_func_clogf128 = yes; then | |
28297 | ||
28298 | cat >>confdefs.h <<_ACEOF | |
28299 | #define HAVE_CLOGF128 1 | |
28300 | _ACEOF | |
28301 | ||
28302 | fi | |
28303 | ||
28304 | ||
28305 | ||
28306 | ||
28307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f128" >&5 | |
28308 | $as_echo_n "checking for log10f128... " >&6; } | |
28309 | if ${gcc_cv_math_func_log10f128+:} false; then : | |
28310 | $as_echo_n "(cached) " >&6 | |
28311 | else | |
28312 | if test x$gcc_no_link = xyes; then | |
28313 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28314 | fi | |
28315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28316 | /* end confdefs.h. */ | |
28317 | ||
28318 | #ifdef HAVE_COMPLEX_H | |
28319 | #include <complex.h> | |
28320 | #endif | |
28321 | #ifdef HAVE_MATH_H | |
28322 | #include <math.h> | |
28323 | #endif | |
28324 | ||
28325 | int (*ptr)() = (int (*)())log10f128; | |
28326 | ||
28327 | int | |
28328 | main () | |
28329 | { | |
28330 | return 0; | |
28331 | } | |
28332 | ||
28333 | _ACEOF | |
28334 | if ac_fn_c_try_link "$LINENO"; then : | |
28335 | gcc_cv_math_func_log10f128=yes | |
28336 | else | |
28337 | gcc_cv_math_func_log10f128=no | |
28338 | fi | |
28339 | rm -f core conftest.err conftest.$ac_objext \ | |
28340 | conftest$ac_exeext conftest.$ac_ext | |
28341 | fi | |
28342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f128" >&5 | |
28343 | $as_echo "$gcc_cv_math_func_log10f128" >&6; } | |
28344 | if test $gcc_cv_math_func_log10f128 = yes; then | |
28345 | ||
28346 | cat >>confdefs.h <<_ACEOF | |
28347 | #define HAVE_LOG10F128 1 | |
28348 | _ACEOF | |
28349 | ||
28350 | fi | |
28351 | ||
28352 | ||
28353 | ||
28354 | ||
28355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f128" >&5 | |
28356 | $as_echo_n "checking for clog10f128... " >&6; } | |
28357 | if ${gcc_cv_math_func_clog10f128+:} false; then : | |
28358 | $as_echo_n "(cached) " >&6 | |
28359 | else | |
28360 | if test x$gcc_no_link = xyes; then | |
28361 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28362 | fi | |
28363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28364 | /* end confdefs.h. */ | |
28365 | ||
28366 | #ifdef HAVE_COMPLEX_H | |
28367 | #include <complex.h> | |
28368 | #endif | |
28369 | #ifdef HAVE_MATH_H | |
28370 | #include <math.h> | |
28371 | #endif | |
28372 | ||
28373 | int (*ptr)() = (int (*)())clog10f128; | |
28374 | ||
28375 | int | |
28376 | main () | |
28377 | { | |
28378 | return 0; | |
28379 | } | |
28380 | ||
28381 | _ACEOF | |
28382 | if ac_fn_c_try_link "$LINENO"; then : | |
28383 | gcc_cv_math_func_clog10f128=yes | |
28384 | else | |
28385 | gcc_cv_math_func_clog10f128=no | |
28386 | fi | |
28387 | rm -f core conftest.err conftest.$ac_objext \ | |
28388 | conftest$ac_exeext conftest.$ac_ext | |
28389 | fi | |
28390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f128" >&5 | |
28391 | $as_echo "$gcc_cv_math_func_clog10f128" >&6; } | |
28392 | if test $gcc_cv_math_func_clog10f128 = yes; then | |
28393 | ||
28394 | cat >>confdefs.h <<_ACEOF | |
28395 | #define HAVE_CLOG10F128 1 | |
28396 | _ACEOF | |
28397 | ||
28398 | fi | |
28399 | ||
28400 | ||
28401 | ||
28402 | ||
28403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf128" >&5 | |
28404 | $as_echo_n "checking for nextafterf128... " >&6; } | |
28405 | if ${gcc_cv_math_func_nextafterf128+:} false; then : | |
28406 | $as_echo_n "(cached) " >&6 | |
28407 | else | |
28408 | if test x$gcc_no_link = xyes; then | |
28409 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28410 | fi | |
28411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28412 | /* end confdefs.h. */ | |
28413 | ||
28414 | #ifdef HAVE_COMPLEX_H | |
28415 | #include <complex.h> | |
28416 | #endif | |
28417 | #ifdef HAVE_MATH_H | |
28418 | #include <math.h> | |
28419 | #endif | |
28420 | ||
28421 | int (*ptr)() = (int (*)())nextafterf128; | |
28422 | ||
28423 | int | |
28424 | main () | |
28425 | { | |
28426 | return 0; | |
28427 | } | |
28428 | ||
28429 | _ACEOF | |
28430 | if ac_fn_c_try_link "$LINENO"; then : | |
28431 | gcc_cv_math_func_nextafterf128=yes | |
28432 | else | |
28433 | gcc_cv_math_func_nextafterf128=no | |
28434 | fi | |
28435 | rm -f core conftest.err conftest.$ac_objext \ | |
28436 | conftest$ac_exeext conftest.$ac_ext | |
28437 | fi | |
28438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf128" >&5 | |
28439 | $as_echo "$gcc_cv_math_func_nextafterf128" >&6; } | |
28440 | if test $gcc_cv_math_func_nextafterf128 = yes; then | |
28441 | ||
28442 | cat >>confdefs.h <<_ACEOF | |
28443 | #define HAVE_NEXTAFTERF128 1 | |
28444 | _ACEOF | |
28445 | ||
28446 | fi | |
28447 | ||
28448 | ||
28449 | ||
28450 | ||
28451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf128" >&5 | |
28452 | $as_echo_n "checking for powf128... " >&6; } | |
28453 | if ${gcc_cv_math_func_powf128+:} false; then : | |
28454 | $as_echo_n "(cached) " >&6 | |
28455 | else | |
28456 | if test x$gcc_no_link = xyes; then | |
28457 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28458 | fi | |
28459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28460 | /* end confdefs.h. */ | |
28461 | ||
28462 | #ifdef HAVE_COMPLEX_H | |
28463 | #include <complex.h> | |
28464 | #endif | |
28465 | #ifdef HAVE_MATH_H | |
28466 | #include <math.h> | |
28467 | #endif | |
28468 | ||
28469 | int (*ptr)() = (int (*)())powf128; | |
28470 | ||
28471 | int | |
28472 | main () | |
28473 | { | |
28474 | return 0; | |
28475 | } | |
28476 | ||
28477 | _ACEOF | |
28478 | if ac_fn_c_try_link "$LINENO"; then : | |
28479 | gcc_cv_math_func_powf128=yes | |
28480 | else | |
28481 | gcc_cv_math_func_powf128=no | |
28482 | fi | |
28483 | rm -f core conftest.err conftest.$ac_objext \ | |
28484 | conftest$ac_exeext conftest.$ac_ext | |
28485 | fi | |
28486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf128" >&5 | |
28487 | $as_echo "$gcc_cv_math_func_powf128" >&6; } | |
28488 | if test $gcc_cv_math_func_powf128 = yes; then | |
28489 | ||
28490 | cat >>confdefs.h <<_ACEOF | |
28491 | #define HAVE_POWF128 1 | |
28492 | _ACEOF | |
28493 | ||
28494 | fi | |
28495 | ||
28496 | ||
28497 | ||
28498 | ||
28499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf128" >&5 | |
28500 | $as_echo_n "checking for cpowf128... " >&6; } | |
28501 | if ${gcc_cv_math_func_cpowf128+:} false; then : | |
28502 | $as_echo_n "(cached) " >&6 | |
28503 | else | |
28504 | if test x$gcc_no_link = xyes; then | |
28505 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28506 | fi | |
28507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28508 | /* end confdefs.h. */ | |
28509 | ||
28510 | #ifdef HAVE_COMPLEX_H | |
28511 | #include <complex.h> | |
28512 | #endif | |
28513 | #ifdef HAVE_MATH_H | |
28514 | #include <math.h> | |
28515 | #endif | |
28516 | ||
28517 | int (*ptr)() = (int (*)())cpowf128; | |
28518 | ||
28519 | int | |
28520 | main () | |
28521 | { | |
28522 | return 0; | |
28523 | } | |
28524 | ||
28525 | _ACEOF | |
28526 | if ac_fn_c_try_link "$LINENO"; then : | |
28527 | gcc_cv_math_func_cpowf128=yes | |
28528 | else | |
28529 | gcc_cv_math_func_cpowf128=no | |
28530 | fi | |
28531 | rm -f core conftest.err conftest.$ac_objext \ | |
28532 | conftest$ac_exeext conftest.$ac_ext | |
28533 | fi | |
28534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf128" >&5 | |
28535 | $as_echo "$gcc_cv_math_func_cpowf128" >&6; } | |
28536 | if test $gcc_cv_math_func_cpowf128 = yes; then | |
28537 | ||
28538 | cat >>confdefs.h <<_ACEOF | |
28539 | #define HAVE_CPOWF128 1 | |
28540 | _ACEOF | |
28541 | ||
28542 | fi | |
28543 | ||
28544 | ||
28545 | ||
28546 | ||
28547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf128" >&5 | |
28548 | $as_echo_n "checking for roundf128... " >&6; } | |
28549 | if ${gcc_cv_math_func_roundf128+:} false; then : | |
28550 | $as_echo_n "(cached) " >&6 | |
28551 | else | |
28552 | if test x$gcc_no_link = xyes; then | |
28553 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28554 | fi | |
28555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28556 | /* end confdefs.h. */ | |
28557 | ||
28558 | #ifdef HAVE_COMPLEX_H | |
28559 | #include <complex.h> | |
28560 | #endif | |
28561 | #ifdef HAVE_MATH_H | |
28562 | #include <math.h> | |
28563 | #endif | |
28564 | ||
28565 | int (*ptr)() = (int (*)())roundf128; | |
28566 | ||
28567 | int | |
28568 | main () | |
28569 | { | |
28570 | return 0; | |
28571 | } | |
28572 | ||
28573 | _ACEOF | |
28574 | if ac_fn_c_try_link "$LINENO"; then : | |
28575 | gcc_cv_math_func_roundf128=yes | |
28576 | else | |
28577 | gcc_cv_math_func_roundf128=no | |
28578 | fi | |
28579 | rm -f core conftest.err conftest.$ac_objext \ | |
28580 | conftest$ac_exeext conftest.$ac_ext | |
28581 | fi | |
28582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf128" >&5 | |
28583 | $as_echo "$gcc_cv_math_func_roundf128" >&6; } | |
28584 | if test $gcc_cv_math_func_roundf128 = yes; then | |
28585 | ||
28586 | cat >>confdefs.h <<_ACEOF | |
28587 | #define HAVE_ROUNDF128 1 | |
28588 | _ACEOF | |
28589 | ||
28590 | fi | |
28591 | ||
28592 | ||
28593 | ||
28594 | ||
28595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf128" >&5 | |
28596 | $as_echo_n "checking for lroundf128... " >&6; } | |
28597 | if ${gcc_cv_math_func_lroundf128+:} false; then : | |
28598 | $as_echo_n "(cached) " >&6 | |
28599 | else | |
28600 | if test x$gcc_no_link = xyes; then | |
28601 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28602 | fi | |
28603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28604 | /* end confdefs.h. */ | |
28605 | ||
28606 | #ifdef HAVE_COMPLEX_H | |
28607 | #include <complex.h> | |
28608 | #endif | |
28609 | #ifdef HAVE_MATH_H | |
28610 | #include <math.h> | |
28611 | #endif | |
28612 | ||
28613 | int (*ptr)() = (int (*)())lroundf128; | |
28614 | ||
28615 | int | |
28616 | main () | |
28617 | { | |
28618 | return 0; | |
28619 | } | |
28620 | ||
28621 | _ACEOF | |
28622 | if ac_fn_c_try_link "$LINENO"; then : | |
28623 | gcc_cv_math_func_lroundf128=yes | |
28624 | else | |
28625 | gcc_cv_math_func_lroundf128=no | |
28626 | fi | |
28627 | rm -f core conftest.err conftest.$ac_objext \ | |
28628 | conftest$ac_exeext conftest.$ac_ext | |
28629 | fi | |
28630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf128" >&5 | |
28631 | $as_echo "$gcc_cv_math_func_lroundf128" >&6; } | |
28632 | if test $gcc_cv_math_func_lroundf128 = yes; then | |
28633 | ||
28634 | cat >>confdefs.h <<_ACEOF | |
28635 | #define HAVE_LROUNDF128 1 | |
28636 | _ACEOF | |
28637 | ||
28638 | fi | |
28639 | ||
28640 | ||
28641 | ||
28642 | ||
28643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf128" >&5 | |
28644 | $as_echo_n "checking for llroundf128... " >&6; } | |
28645 | if ${gcc_cv_math_func_llroundf128+:} false; then : | |
28646 | $as_echo_n "(cached) " >&6 | |
28647 | else | |
28648 | if test x$gcc_no_link = xyes; then | |
28649 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28650 | fi | |
28651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28652 | /* end confdefs.h. */ | |
28653 | ||
28654 | #ifdef HAVE_COMPLEX_H | |
28655 | #include <complex.h> | |
28656 | #endif | |
28657 | #ifdef HAVE_MATH_H | |
28658 | #include <math.h> | |
28659 | #endif | |
28660 | ||
28661 | int (*ptr)() = (int (*)())llroundf128; | |
28662 | ||
28663 | int | |
28664 | main () | |
28665 | { | |
28666 | return 0; | |
28667 | } | |
28668 | ||
28669 | _ACEOF | |
28670 | if ac_fn_c_try_link "$LINENO"; then : | |
28671 | gcc_cv_math_func_llroundf128=yes | |
28672 | else | |
28673 | gcc_cv_math_func_llroundf128=no | |
28674 | fi | |
28675 | rm -f core conftest.err conftest.$ac_objext \ | |
28676 | conftest$ac_exeext conftest.$ac_ext | |
28677 | fi | |
28678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf128" >&5 | |
28679 | $as_echo "$gcc_cv_math_func_llroundf128" >&6; } | |
28680 | if test $gcc_cv_math_func_llroundf128 = yes; then | |
28681 | ||
28682 | cat >>confdefs.h <<_ACEOF | |
28683 | #define HAVE_LLROUNDF128 1 | |
28684 | _ACEOF | |
28685 | ||
28686 | fi | |
28687 | ||
28688 | ||
28689 | ||
28690 | ||
28691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf128" >&5 | |
28692 | $as_echo_n "checking for scalbnf128... " >&6; } | |
28693 | if ${gcc_cv_math_func_scalbnf128+:} false; then : | |
28694 | $as_echo_n "(cached) " >&6 | |
28695 | else | |
28696 | if test x$gcc_no_link = xyes; then | |
28697 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28698 | fi | |
28699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28700 | /* end confdefs.h. */ | |
28701 | ||
28702 | #ifdef HAVE_COMPLEX_H | |
28703 | #include <complex.h> | |
28704 | #endif | |
28705 | #ifdef HAVE_MATH_H | |
28706 | #include <math.h> | |
28707 | #endif | |
28708 | ||
28709 | int (*ptr)() = (int (*)())scalbnf128; | |
28710 | ||
28711 | int | |
28712 | main () | |
28713 | { | |
28714 | return 0; | |
28715 | } | |
28716 | ||
28717 | _ACEOF | |
28718 | if ac_fn_c_try_link "$LINENO"; then : | |
28719 | gcc_cv_math_func_scalbnf128=yes | |
28720 | else | |
28721 | gcc_cv_math_func_scalbnf128=no | |
28722 | fi | |
28723 | rm -f core conftest.err conftest.$ac_objext \ | |
28724 | conftest$ac_exeext conftest.$ac_ext | |
28725 | fi | |
28726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf128" >&5 | |
28727 | $as_echo "$gcc_cv_math_func_scalbnf128" >&6; } | |
28728 | if test $gcc_cv_math_func_scalbnf128 = yes; then | |
28729 | ||
28730 | cat >>confdefs.h <<_ACEOF | |
28731 | #define HAVE_SCALBNF128 1 | |
28732 | _ACEOF | |
28733 | ||
28734 | fi | |
28735 | ||
28736 | ||
28737 | ||
28738 | ||
28739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf128" >&5 | |
28740 | $as_echo_n "checking for sinf128... " >&6; } | |
28741 | if ${gcc_cv_math_func_sinf128+:} false; then : | |
28742 | $as_echo_n "(cached) " >&6 | |
28743 | else | |
28744 | if test x$gcc_no_link = xyes; then | |
28745 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28746 | fi | |
28747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28748 | /* end confdefs.h. */ | |
28749 | ||
28750 | #ifdef HAVE_COMPLEX_H | |
28751 | #include <complex.h> | |
28752 | #endif | |
28753 | #ifdef HAVE_MATH_H | |
28754 | #include <math.h> | |
28755 | #endif | |
28756 | ||
28757 | int (*ptr)() = (int (*)())sinf128; | |
28758 | ||
28759 | int | |
28760 | main () | |
28761 | { | |
28762 | return 0; | |
28763 | } | |
28764 | ||
28765 | _ACEOF | |
28766 | if ac_fn_c_try_link "$LINENO"; then : | |
28767 | gcc_cv_math_func_sinf128=yes | |
28768 | else | |
28769 | gcc_cv_math_func_sinf128=no | |
28770 | fi | |
28771 | rm -f core conftest.err conftest.$ac_objext \ | |
28772 | conftest$ac_exeext conftest.$ac_ext | |
28773 | fi | |
28774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf128" >&5 | |
28775 | $as_echo "$gcc_cv_math_func_sinf128" >&6; } | |
28776 | if test $gcc_cv_math_func_sinf128 = yes; then | |
28777 | ||
28778 | cat >>confdefs.h <<_ACEOF | |
28779 | #define HAVE_SINF128 1 | |
28780 | _ACEOF | |
28781 | ||
28782 | fi | |
28783 | ||
28784 | ||
28785 | ||
28786 | ||
28787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf128" >&5 | |
28788 | $as_echo_n "checking for csinf128... " >&6; } | |
28789 | if ${gcc_cv_math_func_csinf128+:} false; then : | |
28790 | $as_echo_n "(cached) " >&6 | |
28791 | else | |
28792 | if test x$gcc_no_link = xyes; then | |
28793 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28794 | fi | |
28795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28796 | /* end confdefs.h. */ | |
28797 | ||
28798 | #ifdef HAVE_COMPLEX_H | |
28799 | #include <complex.h> | |
28800 | #endif | |
28801 | #ifdef HAVE_MATH_H | |
28802 | #include <math.h> | |
28803 | #endif | |
28804 | ||
28805 | int (*ptr)() = (int (*)())csinf128; | |
28806 | ||
28807 | int | |
28808 | main () | |
28809 | { | |
28810 | return 0; | |
28811 | } | |
28812 | ||
28813 | _ACEOF | |
28814 | if ac_fn_c_try_link "$LINENO"; then : | |
28815 | gcc_cv_math_func_csinf128=yes | |
28816 | else | |
28817 | gcc_cv_math_func_csinf128=no | |
28818 | fi | |
28819 | rm -f core conftest.err conftest.$ac_objext \ | |
28820 | conftest$ac_exeext conftest.$ac_ext | |
28821 | fi | |
28822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf128" >&5 | |
28823 | $as_echo "$gcc_cv_math_func_csinf128" >&6; } | |
28824 | if test $gcc_cv_math_func_csinf128 = yes; then | |
28825 | ||
28826 | cat >>confdefs.h <<_ACEOF | |
28827 | #define HAVE_CSINF128 1 | |
28828 | _ACEOF | |
28829 | ||
28830 | fi | |
28831 | ||
28832 | ||
28833 | ||
28834 | ||
28835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf128" >&5 | |
28836 | $as_echo_n "checking for sinhf128... " >&6; } | |
28837 | if ${gcc_cv_math_func_sinhf128+:} false; then : | |
28838 | $as_echo_n "(cached) " >&6 | |
28839 | else | |
28840 | if test x$gcc_no_link = xyes; then | |
28841 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28842 | fi | |
28843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28844 | /* end confdefs.h. */ | |
28845 | ||
28846 | #ifdef HAVE_COMPLEX_H | |
28847 | #include <complex.h> | |
28848 | #endif | |
28849 | #ifdef HAVE_MATH_H | |
28850 | #include <math.h> | |
28851 | #endif | |
28852 | ||
28853 | int (*ptr)() = (int (*)())sinhf128; | |
28854 | ||
28855 | int | |
28856 | main () | |
28857 | { | |
28858 | return 0; | |
28859 | } | |
28860 | ||
28861 | _ACEOF | |
28862 | if ac_fn_c_try_link "$LINENO"; then : | |
28863 | gcc_cv_math_func_sinhf128=yes | |
28864 | else | |
28865 | gcc_cv_math_func_sinhf128=no | |
28866 | fi | |
28867 | rm -f core conftest.err conftest.$ac_objext \ | |
28868 | conftest$ac_exeext conftest.$ac_ext | |
28869 | fi | |
28870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf128" >&5 | |
28871 | $as_echo "$gcc_cv_math_func_sinhf128" >&6; } | |
28872 | if test $gcc_cv_math_func_sinhf128 = yes; then | |
28873 | ||
28874 | cat >>confdefs.h <<_ACEOF | |
28875 | #define HAVE_SINHF128 1 | |
28876 | _ACEOF | |
28877 | ||
28878 | fi | |
28879 | ||
28880 | ||
28881 | ||
28882 | ||
28883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf128" >&5 | |
28884 | $as_echo_n "checking for csinhf128... " >&6; } | |
28885 | if ${gcc_cv_math_func_csinhf128+:} false; then : | |
28886 | $as_echo_n "(cached) " >&6 | |
28887 | else | |
28888 | if test x$gcc_no_link = xyes; then | |
28889 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28890 | fi | |
28891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28892 | /* end confdefs.h. */ | |
28893 | ||
28894 | #ifdef HAVE_COMPLEX_H | |
28895 | #include <complex.h> | |
28896 | #endif | |
28897 | #ifdef HAVE_MATH_H | |
28898 | #include <math.h> | |
28899 | #endif | |
28900 | ||
28901 | int (*ptr)() = (int (*)())csinhf128; | |
28902 | ||
28903 | int | |
28904 | main () | |
28905 | { | |
28906 | return 0; | |
28907 | } | |
28908 | ||
28909 | _ACEOF | |
28910 | if ac_fn_c_try_link "$LINENO"; then : | |
28911 | gcc_cv_math_func_csinhf128=yes | |
28912 | else | |
28913 | gcc_cv_math_func_csinhf128=no | |
28914 | fi | |
28915 | rm -f core conftest.err conftest.$ac_objext \ | |
28916 | conftest$ac_exeext conftest.$ac_ext | |
28917 | fi | |
28918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf128" >&5 | |
28919 | $as_echo "$gcc_cv_math_func_csinhf128" >&6; } | |
28920 | if test $gcc_cv_math_func_csinhf128 = yes; then | |
28921 | ||
28922 | cat >>confdefs.h <<_ACEOF | |
28923 | #define HAVE_CSINHF128 1 | |
28924 | _ACEOF | |
28925 | ||
28926 | fi | |
28927 | ||
28928 | ||
28929 | ||
28930 | ||
28931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf128" >&5 | |
28932 | $as_echo_n "checking for sqrtf128... " >&6; } | |
28933 | if ${gcc_cv_math_func_sqrtf128+:} false; then : | |
28934 | $as_echo_n "(cached) " >&6 | |
28935 | else | |
28936 | if test x$gcc_no_link = xyes; then | |
28937 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28938 | fi | |
28939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28940 | /* end confdefs.h. */ | |
28941 | ||
28942 | #ifdef HAVE_COMPLEX_H | |
28943 | #include <complex.h> | |
28944 | #endif | |
28945 | #ifdef HAVE_MATH_H | |
28946 | #include <math.h> | |
28947 | #endif | |
28948 | ||
28949 | int (*ptr)() = (int (*)())sqrtf128; | |
28950 | ||
28951 | int | |
28952 | main () | |
28953 | { | |
28954 | return 0; | |
28955 | } | |
28956 | ||
28957 | _ACEOF | |
28958 | if ac_fn_c_try_link "$LINENO"; then : | |
28959 | gcc_cv_math_func_sqrtf128=yes | |
28960 | else | |
28961 | gcc_cv_math_func_sqrtf128=no | |
28962 | fi | |
28963 | rm -f core conftest.err conftest.$ac_objext \ | |
28964 | conftest$ac_exeext conftest.$ac_ext | |
28965 | fi | |
28966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf128" >&5 | |
28967 | $as_echo "$gcc_cv_math_func_sqrtf128" >&6; } | |
28968 | if test $gcc_cv_math_func_sqrtf128 = yes; then | |
28969 | ||
28970 | cat >>confdefs.h <<_ACEOF | |
28971 | #define HAVE_SQRTF128 1 | |
28972 | _ACEOF | |
28973 | ||
28974 | fi | |
28975 | ||
28976 | ||
28977 | ||
28978 | ||
28979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf128" >&5 | |
28980 | $as_echo_n "checking for csqrtf128... " >&6; } | |
28981 | if ${gcc_cv_math_func_csqrtf128+:} false; then : | |
28982 | $as_echo_n "(cached) " >&6 | |
28983 | else | |
28984 | if test x$gcc_no_link = xyes; then | |
28985 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
28986 | fi | |
28987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
28988 | /* end confdefs.h. */ | |
28989 | ||
28990 | #ifdef HAVE_COMPLEX_H | |
28991 | #include <complex.h> | |
28992 | #endif | |
28993 | #ifdef HAVE_MATH_H | |
28994 | #include <math.h> | |
28995 | #endif | |
28996 | ||
28997 | int (*ptr)() = (int (*)())csqrtf128; | |
28998 | ||
28999 | int | |
29000 | main () | |
29001 | { | |
29002 | return 0; | |
29003 | } | |
29004 | ||
29005 | _ACEOF | |
29006 | if ac_fn_c_try_link "$LINENO"; then : | |
29007 | gcc_cv_math_func_csqrtf128=yes | |
29008 | else | |
29009 | gcc_cv_math_func_csqrtf128=no | |
29010 | fi | |
29011 | rm -f core conftest.err conftest.$ac_objext \ | |
29012 | conftest$ac_exeext conftest.$ac_ext | |
29013 | fi | |
29014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf128" >&5 | |
29015 | $as_echo "$gcc_cv_math_func_csqrtf128" >&6; } | |
29016 | if test $gcc_cv_math_func_csqrtf128 = yes; then | |
29017 | ||
29018 | cat >>confdefs.h <<_ACEOF | |
29019 | #define HAVE_CSQRTF128 1 | |
29020 | _ACEOF | |
29021 | ||
29022 | fi | |
29023 | ||
29024 | ||
29025 | ||
29026 | ||
29027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf128" >&5 | |
29028 | $as_echo_n "checking for tanf128... " >&6; } | |
29029 | if ${gcc_cv_math_func_tanf128+:} false; then : | |
29030 | $as_echo_n "(cached) " >&6 | |
29031 | else | |
29032 | if test x$gcc_no_link = xyes; then | |
29033 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29034 | fi | |
29035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29036 | /* end confdefs.h. */ | |
29037 | ||
29038 | #ifdef HAVE_COMPLEX_H | |
29039 | #include <complex.h> | |
29040 | #endif | |
29041 | #ifdef HAVE_MATH_H | |
29042 | #include <math.h> | |
29043 | #endif | |
29044 | ||
29045 | int (*ptr)() = (int (*)())tanf128; | |
29046 | ||
29047 | int | |
29048 | main () | |
29049 | { | |
29050 | return 0; | |
29051 | } | |
29052 | ||
29053 | _ACEOF | |
29054 | if ac_fn_c_try_link "$LINENO"; then : | |
29055 | gcc_cv_math_func_tanf128=yes | |
29056 | else | |
29057 | gcc_cv_math_func_tanf128=no | |
29058 | fi | |
29059 | rm -f core conftest.err conftest.$ac_objext \ | |
29060 | conftest$ac_exeext conftest.$ac_ext | |
29061 | fi | |
29062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf128" >&5 | |
29063 | $as_echo "$gcc_cv_math_func_tanf128" >&6; } | |
29064 | if test $gcc_cv_math_func_tanf128 = yes; then | |
29065 | ||
29066 | cat >>confdefs.h <<_ACEOF | |
29067 | #define HAVE_TANF128 1 | |
29068 | _ACEOF | |
29069 | ||
29070 | fi | |
29071 | ||
29072 | ||
29073 | ||
29074 | ||
29075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf128" >&5 | |
29076 | $as_echo_n "checking for ctanf128... " >&6; } | |
29077 | if ${gcc_cv_math_func_ctanf128+:} false; then : | |
29078 | $as_echo_n "(cached) " >&6 | |
29079 | else | |
29080 | if test x$gcc_no_link = xyes; then | |
29081 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29082 | fi | |
29083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29084 | /* end confdefs.h. */ | |
29085 | ||
29086 | #ifdef HAVE_COMPLEX_H | |
29087 | #include <complex.h> | |
29088 | #endif | |
29089 | #ifdef HAVE_MATH_H | |
29090 | #include <math.h> | |
29091 | #endif | |
29092 | ||
29093 | int (*ptr)() = (int (*)())ctanf128; | |
29094 | ||
29095 | int | |
29096 | main () | |
29097 | { | |
29098 | return 0; | |
29099 | } | |
29100 | ||
29101 | _ACEOF | |
29102 | if ac_fn_c_try_link "$LINENO"; then : | |
29103 | gcc_cv_math_func_ctanf128=yes | |
29104 | else | |
29105 | gcc_cv_math_func_ctanf128=no | |
29106 | fi | |
29107 | rm -f core conftest.err conftest.$ac_objext \ | |
29108 | conftest$ac_exeext conftest.$ac_ext | |
29109 | fi | |
29110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf128" >&5 | |
29111 | $as_echo "$gcc_cv_math_func_ctanf128" >&6; } | |
29112 | if test $gcc_cv_math_func_ctanf128 = yes; then | |
29113 | ||
29114 | cat >>confdefs.h <<_ACEOF | |
29115 | #define HAVE_CTANF128 1 | |
29116 | _ACEOF | |
29117 | ||
29118 | fi | |
29119 | ||
29120 | ||
29121 | ||
29122 | ||
29123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf128" >&5 | |
29124 | $as_echo_n "checking for tanhf128... " >&6; } | |
29125 | if ${gcc_cv_math_func_tanhf128+:} false; then : | |
29126 | $as_echo_n "(cached) " >&6 | |
29127 | else | |
29128 | if test x$gcc_no_link = xyes; then | |
29129 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29130 | fi | |
29131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29132 | /* end confdefs.h. */ | |
29133 | ||
29134 | #ifdef HAVE_COMPLEX_H | |
29135 | #include <complex.h> | |
29136 | #endif | |
29137 | #ifdef HAVE_MATH_H | |
29138 | #include <math.h> | |
29139 | #endif | |
29140 | ||
29141 | int (*ptr)() = (int (*)())tanhf128; | |
29142 | ||
29143 | int | |
29144 | main () | |
29145 | { | |
29146 | return 0; | |
29147 | } | |
29148 | ||
29149 | _ACEOF | |
29150 | if ac_fn_c_try_link "$LINENO"; then : | |
29151 | gcc_cv_math_func_tanhf128=yes | |
29152 | else | |
29153 | gcc_cv_math_func_tanhf128=no | |
29154 | fi | |
29155 | rm -f core conftest.err conftest.$ac_objext \ | |
29156 | conftest$ac_exeext conftest.$ac_ext | |
29157 | fi | |
29158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf128" >&5 | |
29159 | $as_echo "$gcc_cv_math_func_tanhf128" >&6; } | |
29160 | if test $gcc_cv_math_func_tanhf128 = yes; then | |
29161 | ||
29162 | cat >>confdefs.h <<_ACEOF | |
29163 | #define HAVE_TANHF128 1 | |
29164 | _ACEOF | |
29165 | ||
29166 | fi | |
29167 | ||
29168 | ||
29169 | ||
29170 | ||
29171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf128" >&5 | |
29172 | $as_echo_n "checking for ctanhf128... " >&6; } | |
29173 | if ${gcc_cv_math_func_ctanhf128+:} false; then : | |
29174 | $as_echo_n "(cached) " >&6 | |
29175 | else | |
29176 | if test x$gcc_no_link = xyes; then | |
29177 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29178 | fi | |
29179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29180 | /* end confdefs.h. */ | |
29181 | ||
29182 | #ifdef HAVE_COMPLEX_H | |
29183 | #include <complex.h> | |
29184 | #endif | |
29185 | #ifdef HAVE_MATH_H | |
29186 | #include <math.h> | |
29187 | #endif | |
29188 | ||
29189 | int (*ptr)() = (int (*)())ctanhf128; | |
29190 | ||
29191 | int | |
29192 | main () | |
29193 | { | |
29194 | return 0; | |
29195 | } | |
29196 | ||
29197 | _ACEOF | |
29198 | if ac_fn_c_try_link "$LINENO"; then : | |
29199 | gcc_cv_math_func_ctanhf128=yes | |
29200 | else | |
29201 | gcc_cv_math_func_ctanhf128=no | |
29202 | fi | |
29203 | rm -f core conftest.err conftest.$ac_objext \ | |
29204 | conftest$ac_exeext conftest.$ac_ext | |
29205 | fi | |
29206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf128" >&5 | |
29207 | $as_echo "$gcc_cv_math_func_ctanhf128" >&6; } | |
29208 | if test $gcc_cv_math_func_ctanhf128 = yes; then | |
29209 | ||
29210 | cat >>confdefs.h <<_ACEOF | |
29211 | #define HAVE_CTANHF128 1 | |
29212 | _ACEOF | |
29213 | ||
29214 | fi | |
29215 | ||
29216 | ||
29217 | ||
29218 | ||
29219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf128" >&5 | |
29220 | $as_echo_n "checking for truncf128... " >&6; } | |
29221 | if ${gcc_cv_math_func_truncf128+:} false; then : | |
29222 | $as_echo_n "(cached) " >&6 | |
29223 | else | |
29224 | if test x$gcc_no_link = xyes; then | |
29225 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29226 | fi | |
29227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29228 | /* end confdefs.h. */ | |
29229 | ||
29230 | #ifdef HAVE_COMPLEX_H | |
29231 | #include <complex.h> | |
29232 | #endif | |
29233 | #ifdef HAVE_MATH_H | |
29234 | #include <math.h> | |
29235 | #endif | |
29236 | ||
29237 | int (*ptr)() = (int (*)())truncf128; | |
29238 | ||
29239 | int | |
29240 | main () | |
29241 | { | |
29242 | return 0; | |
29243 | } | |
29244 | ||
29245 | _ACEOF | |
29246 | if ac_fn_c_try_link "$LINENO"; then : | |
29247 | gcc_cv_math_func_truncf128=yes | |
29248 | else | |
29249 | gcc_cv_math_func_truncf128=no | |
29250 | fi | |
29251 | rm -f core conftest.err conftest.$ac_objext \ | |
29252 | conftest$ac_exeext conftest.$ac_ext | |
29253 | fi | |
29254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf128" >&5 | |
29255 | $as_echo "$gcc_cv_math_func_truncf128" >&6; } | |
29256 | if test $gcc_cv_math_func_truncf128 = yes; then | |
29257 | ||
29258 | cat >>confdefs.h <<_ACEOF | |
29259 | #define HAVE_TRUNCF128 1 | |
29260 | _ACEOF | |
29261 | ||
29262 | fi | |
29263 | ||
29264 | ||
29265 | ||
29266 | ||
29267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff128" >&5 | |
29268 | $as_echo_n "checking for erff128... " >&6; } | |
29269 | if ${gcc_cv_math_func_erff128+:} false; then : | |
29270 | $as_echo_n "(cached) " >&6 | |
29271 | else | |
29272 | if test x$gcc_no_link = xyes; then | |
29273 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29274 | fi | |
29275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29276 | /* end confdefs.h. */ | |
29277 | ||
29278 | #ifdef HAVE_COMPLEX_H | |
29279 | #include <complex.h> | |
29280 | #endif | |
29281 | #ifdef HAVE_MATH_H | |
29282 | #include <math.h> | |
29283 | #endif | |
29284 | ||
29285 | int (*ptr)() = (int (*)())erff128; | |
29286 | ||
29287 | int | |
29288 | main () | |
29289 | { | |
29290 | return 0; | |
29291 | } | |
29292 | ||
29293 | _ACEOF | |
29294 | if ac_fn_c_try_link "$LINENO"; then : | |
29295 | gcc_cv_math_func_erff128=yes | |
29296 | else | |
29297 | gcc_cv_math_func_erff128=no | |
29298 | fi | |
29299 | rm -f core conftest.err conftest.$ac_objext \ | |
29300 | conftest$ac_exeext conftest.$ac_ext | |
29301 | fi | |
29302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff128" >&5 | |
29303 | $as_echo "$gcc_cv_math_func_erff128" >&6; } | |
29304 | if test $gcc_cv_math_func_erff128 = yes; then | |
29305 | ||
29306 | cat >>confdefs.h <<_ACEOF | |
29307 | #define HAVE_ERFF128 1 | |
29308 | _ACEOF | |
29309 | ||
29310 | fi | |
29311 | ||
29312 | ||
29313 | ||
29314 | ||
29315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf128" >&5 | |
29316 | $as_echo_n "checking for erfcf128... " >&6; } | |
29317 | if ${gcc_cv_math_func_erfcf128+:} false; then : | |
29318 | $as_echo_n "(cached) " >&6 | |
29319 | else | |
29320 | if test x$gcc_no_link = xyes; then | |
29321 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29322 | fi | |
29323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29324 | /* end confdefs.h. */ | |
29325 | ||
29326 | #ifdef HAVE_COMPLEX_H | |
29327 | #include <complex.h> | |
29328 | #endif | |
29329 | #ifdef HAVE_MATH_H | |
29330 | #include <math.h> | |
29331 | #endif | |
29332 | ||
29333 | int (*ptr)() = (int (*)())erfcf128; | |
29334 | ||
29335 | int | |
29336 | main () | |
29337 | { | |
29338 | return 0; | |
29339 | } | |
29340 | ||
29341 | _ACEOF | |
29342 | if ac_fn_c_try_link "$LINENO"; then : | |
29343 | gcc_cv_math_func_erfcf128=yes | |
29344 | else | |
29345 | gcc_cv_math_func_erfcf128=no | |
29346 | fi | |
29347 | rm -f core conftest.err conftest.$ac_objext \ | |
29348 | conftest$ac_exeext conftest.$ac_ext | |
29349 | fi | |
29350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf128" >&5 | |
29351 | $as_echo "$gcc_cv_math_func_erfcf128" >&6; } | |
29352 | if test $gcc_cv_math_func_erfcf128 = yes; then | |
29353 | ||
29354 | cat >>confdefs.h <<_ACEOF | |
29355 | #define HAVE_ERFCF128 1 | |
29356 | _ACEOF | |
29357 | ||
29358 | fi | |
29359 | ||
29360 | ||
29361 | ||
29362 | ||
29363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f128" >&5 | |
29364 | $as_echo_n "checking for j0f128... " >&6; } | |
29365 | if ${gcc_cv_math_func_j0f128+:} false; then : | |
29366 | $as_echo_n "(cached) " >&6 | |
29367 | else | |
29368 | if test x$gcc_no_link = xyes; then | |
29369 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29370 | fi | |
29371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29372 | /* end confdefs.h. */ | |
29373 | ||
29374 | #ifdef HAVE_COMPLEX_H | |
29375 | #include <complex.h> | |
29376 | #endif | |
29377 | #ifdef HAVE_MATH_H | |
29378 | #include <math.h> | |
29379 | #endif | |
29380 | ||
29381 | int (*ptr)() = (int (*)())j0f128; | |
29382 | ||
29383 | int | |
29384 | main () | |
29385 | { | |
29386 | return 0; | |
29387 | } | |
29388 | ||
29389 | _ACEOF | |
29390 | if ac_fn_c_try_link "$LINENO"; then : | |
29391 | gcc_cv_math_func_j0f128=yes | |
29392 | else | |
29393 | gcc_cv_math_func_j0f128=no | |
29394 | fi | |
29395 | rm -f core conftest.err conftest.$ac_objext \ | |
29396 | conftest$ac_exeext conftest.$ac_ext | |
29397 | fi | |
29398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f128" >&5 | |
29399 | $as_echo "$gcc_cv_math_func_j0f128" >&6; } | |
29400 | if test $gcc_cv_math_func_j0f128 = yes; then | |
29401 | ||
29402 | cat >>confdefs.h <<_ACEOF | |
29403 | #define HAVE_J0F128 1 | |
29404 | _ACEOF | |
29405 | ||
29406 | fi | |
29407 | ||
29408 | ||
29409 | ||
29410 | ||
29411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f128" >&5 | |
29412 | $as_echo_n "checking for j1f128... " >&6; } | |
29413 | if ${gcc_cv_math_func_j1f128+:} false; then : | |
29414 | $as_echo_n "(cached) " >&6 | |
29415 | else | |
29416 | if test x$gcc_no_link = xyes; then | |
29417 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29418 | fi | |
29419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29420 | /* end confdefs.h. */ | |
29421 | ||
29422 | #ifdef HAVE_COMPLEX_H | |
29423 | #include <complex.h> | |
29424 | #endif | |
29425 | #ifdef HAVE_MATH_H | |
29426 | #include <math.h> | |
29427 | #endif | |
29428 | ||
29429 | int (*ptr)() = (int (*)())j1f128; | |
29430 | ||
29431 | int | |
29432 | main () | |
29433 | { | |
29434 | return 0; | |
29435 | } | |
29436 | ||
29437 | _ACEOF | |
29438 | if ac_fn_c_try_link "$LINENO"; then : | |
29439 | gcc_cv_math_func_j1f128=yes | |
29440 | else | |
29441 | gcc_cv_math_func_j1f128=no | |
29442 | fi | |
29443 | rm -f core conftest.err conftest.$ac_objext \ | |
29444 | conftest$ac_exeext conftest.$ac_ext | |
29445 | fi | |
29446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f128" >&5 | |
29447 | $as_echo "$gcc_cv_math_func_j1f128" >&6; } | |
29448 | if test $gcc_cv_math_func_j1f128 = yes; then | |
29449 | ||
29450 | cat >>confdefs.h <<_ACEOF | |
29451 | #define HAVE_J1F128 1 | |
29452 | _ACEOF | |
29453 | ||
29454 | fi | |
29455 | ||
29456 | ||
29457 | ||
29458 | ||
29459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf128" >&5 | |
29460 | $as_echo_n "checking for jnf128... " >&6; } | |
29461 | if ${gcc_cv_math_func_jnf128+:} false; then : | |
29462 | $as_echo_n "(cached) " >&6 | |
29463 | else | |
29464 | if test x$gcc_no_link = xyes; then | |
29465 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29466 | fi | |
29467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29468 | /* end confdefs.h. */ | |
29469 | ||
29470 | #ifdef HAVE_COMPLEX_H | |
29471 | #include <complex.h> | |
29472 | #endif | |
29473 | #ifdef HAVE_MATH_H | |
29474 | #include <math.h> | |
29475 | #endif | |
29476 | ||
29477 | int (*ptr)() = (int (*)())jnf128; | |
29478 | ||
29479 | int | |
29480 | main () | |
29481 | { | |
29482 | return 0; | |
29483 | } | |
29484 | ||
29485 | _ACEOF | |
29486 | if ac_fn_c_try_link "$LINENO"; then : | |
29487 | gcc_cv_math_func_jnf128=yes | |
29488 | else | |
29489 | gcc_cv_math_func_jnf128=no | |
29490 | fi | |
29491 | rm -f core conftest.err conftest.$ac_objext \ | |
29492 | conftest$ac_exeext conftest.$ac_ext | |
29493 | fi | |
29494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf128" >&5 | |
29495 | $as_echo "$gcc_cv_math_func_jnf128" >&6; } | |
29496 | if test $gcc_cv_math_func_jnf128 = yes; then | |
29497 | ||
29498 | cat >>confdefs.h <<_ACEOF | |
29499 | #define HAVE_JNF128 1 | |
29500 | _ACEOF | |
29501 | ||
29502 | fi | |
29503 | ||
29504 | ||
29505 | ||
29506 | ||
29507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f128" >&5 | |
29508 | $as_echo_n "checking for y0f128... " >&6; } | |
29509 | if ${gcc_cv_math_func_y0f128+:} false; then : | |
29510 | $as_echo_n "(cached) " >&6 | |
29511 | else | |
29512 | if test x$gcc_no_link = xyes; then | |
29513 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29514 | fi | |
29515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29516 | /* end confdefs.h. */ | |
29517 | ||
29518 | #ifdef HAVE_COMPLEX_H | |
29519 | #include <complex.h> | |
29520 | #endif | |
29521 | #ifdef HAVE_MATH_H | |
29522 | #include <math.h> | |
29523 | #endif | |
29524 | ||
29525 | int (*ptr)() = (int (*)())y0f128; | |
29526 | ||
29527 | int | |
29528 | main () | |
29529 | { | |
29530 | return 0; | |
29531 | } | |
29532 | ||
29533 | _ACEOF | |
29534 | if ac_fn_c_try_link "$LINENO"; then : | |
29535 | gcc_cv_math_func_y0f128=yes | |
29536 | else | |
29537 | gcc_cv_math_func_y0f128=no | |
29538 | fi | |
29539 | rm -f core conftest.err conftest.$ac_objext \ | |
29540 | conftest$ac_exeext conftest.$ac_ext | |
29541 | fi | |
29542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f128" >&5 | |
29543 | $as_echo "$gcc_cv_math_func_y0f128" >&6; } | |
29544 | if test $gcc_cv_math_func_y0f128 = yes; then | |
29545 | ||
29546 | cat >>confdefs.h <<_ACEOF | |
29547 | #define HAVE_Y0F128 1 | |
29548 | _ACEOF | |
29549 | ||
29550 | fi | |
29551 | ||
29552 | ||
29553 | ||
29554 | ||
29555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f128" >&5 | |
29556 | $as_echo_n "checking for y1f128... " >&6; } | |
29557 | if ${gcc_cv_math_func_y1f128+:} false; then : | |
29558 | $as_echo_n "(cached) " >&6 | |
29559 | else | |
29560 | if test x$gcc_no_link = xyes; then | |
29561 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29562 | fi | |
29563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29564 | /* end confdefs.h. */ | |
29565 | ||
29566 | #ifdef HAVE_COMPLEX_H | |
29567 | #include <complex.h> | |
29568 | #endif | |
29569 | #ifdef HAVE_MATH_H | |
29570 | #include <math.h> | |
29571 | #endif | |
29572 | ||
29573 | int (*ptr)() = (int (*)())y1f128; | |
29574 | ||
29575 | int | |
29576 | main () | |
29577 | { | |
29578 | return 0; | |
29579 | } | |
29580 | ||
29581 | _ACEOF | |
29582 | if ac_fn_c_try_link "$LINENO"; then : | |
29583 | gcc_cv_math_func_y1f128=yes | |
29584 | else | |
29585 | gcc_cv_math_func_y1f128=no | |
29586 | fi | |
29587 | rm -f core conftest.err conftest.$ac_objext \ | |
29588 | conftest$ac_exeext conftest.$ac_ext | |
29589 | fi | |
29590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f128" >&5 | |
29591 | $as_echo "$gcc_cv_math_func_y1f128" >&6; } | |
29592 | if test $gcc_cv_math_func_y1f128 = yes; then | |
29593 | ||
29594 | cat >>confdefs.h <<_ACEOF | |
29595 | #define HAVE_Y1F128 1 | |
29596 | _ACEOF | |
29597 | ||
29598 | fi | |
29599 | ||
29600 | ||
29601 | ||
29602 | ||
29603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf128" >&5 | |
29604 | $as_echo_n "checking for ynf128... " >&6; } | |
29605 | if ${gcc_cv_math_func_ynf128+:} false; then : | |
29606 | $as_echo_n "(cached) " >&6 | |
29607 | else | |
29608 | if test x$gcc_no_link = xyes; then | |
29609 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29610 | fi | |
29611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29612 | /* end confdefs.h. */ | |
29613 | ||
29614 | #ifdef HAVE_COMPLEX_H | |
29615 | #include <complex.h> | |
29616 | #endif | |
29617 | #ifdef HAVE_MATH_H | |
29618 | #include <math.h> | |
29619 | #endif | |
29620 | ||
29621 | int (*ptr)() = (int (*)())ynf128; | |
29622 | ||
29623 | int | |
29624 | main () | |
29625 | { | |
29626 | return 0; | |
29627 | } | |
29628 | ||
29629 | _ACEOF | |
29630 | if ac_fn_c_try_link "$LINENO"; then : | |
29631 | gcc_cv_math_func_ynf128=yes | |
29632 | else | |
29633 | gcc_cv_math_func_ynf128=no | |
29634 | fi | |
29635 | rm -f core conftest.err conftest.$ac_objext \ | |
29636 | conftest$ac_exeext conftest.$ac_ext | |
29637 | fi | |
29638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf128" >&5 | |
29639 | $as_echo "$gcc_cv_math_func_ynf128" >&6; } | |
29640 | if test $gcc_cv_math_func_ynf128 = yes; then | |
29641 | ||
29642 | cat >>confdefs.h <<_ACEOF | |
29643 | #define HAVE_YNF128 1 | |
29644 | _ACEOF | |
29645 | ||
29646 | fi | |
29647 | ||
29648 | ||
29649 | ||
29650 | ||
29651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf128" >&5 | |
29652 | $as_echo_n "checking for tgammaf128... " >&6; } | |
29653 | if ${gcc_cv_math_func_tgammaf128+:} false; then : | |
29654 | $as_echo_n "(cached) " >&6 | |
29655 | else | |
29656 | if test x$gcc_no_link = xyes; then | |
29657 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29658 | fi | |
29659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29660 | /* end confdefs.h. */ | |
29661 | ||
29662 | #ifdef HAVE_COMPLEX_H | |
29663 | #include <complex.h> | |
29664 | #endif | |
29665 | #ifdef HAVE_MATH_H | |
29666 | #include <math.h> | |
29667 | #endif | |
29668 | ||
29669 | int (*ptr)() = (int (*)())tgammaf128; | |
29670 | ||
29671 | int | |
29672 | main () | |
29673 | { | |
29674 | return 0; | |
29675 | } | |
29676 | ||
29677 | _ACEOF | |
29678 | if ac_fn_c_try_link "$LINENO"; then : | |
29679 | gcc_cv_math_func_tgammaf128=yes | |
29680 | else | |
29681 | gcc_cv_math_func_tgammaf128=no | |
29682 | fi | |
29683 | rm -f core conftest.err conftest.$ac_objext \ | |
29684 | conftest$ac_exeext conftest.$ac_ext | |
29685 | fi | |
29686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf128" >&5 | |
29687 | $as_echo "$gcc_cv_math_func_tgammaf128" >&6; } | |
29688 | if test $gcc_cv_math_func_tgammaf128 = yes; then | |
29689 | ||
29690 | cat >>confdefs.h <<_ACEOF | |
29691 | #define HAVE_TGAMMAF128 1 | |
29692 | _ACEOF | |
29693 | ||
29694 | fi | |
29695 | ||
29696 | ||
29697 | ||
29698 | ||
29699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf128" >&5 | |
29700 | $as_echo_n "checking for lgammaf128... " >&6; } | |
29701 | if ${gcc_cv_math_func_lgammaf128+:} false; then : | |
29702 | $as_echo_n "(cached) " >&6 | |
29703 | else | |
29704 | if test x$gcc_no_link = xyes; then | |
29705 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29706 | fi | |
29707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29708 | /* end confdefs.h. */ | |
29709 | ||
29710 | #ifdef HAVE_COMPLEX_H | |
29711 | #include <complex.h> | |
29712 | #endif | |
29713 | #ifdef HAVE_MATH_H | |
29714 | #include <math.h> | |
29715 | #endif | |
29716 | ||
29717 | int (*ptr)() = (int (*)())lgammaf128; | |
29718 | ||
29719 | int | |
29720 | main () | |
29721 | { | |
29722 | return 0; | |
29723 | } | |
29724 | ||
29725 | _ACEOF | |
29726 | if ac_fn_c_try_link "$LINENO"; then : | |
29727 | gcc_cv_math_func_lgammaf128=yes | |
29728 | else | |
29729 | gcc_cv_math_func_lgammaf128=no | |
29730 | fi | |
29731 | rm -f core conftest.err conftest.$ac_objext \ | |
29732 | conftest$ac_exeext conftest.$ac_ext | |
29733 | fi | |
29734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf128" >&5 | |
29735 | $as_echo "$gcc_cv_math_func_lgammaf128" >&6; } | |
29736 | if test $gcc_cv_math_func_lgammaf128 = yes; then | |
29737 | ||
29738 | cat >>confdefs.h <<_ACEOF | |
29739 | #define HAVE_LGAMMAF128 1 | |
29740 | _ACEOF | |
29741 | ||
29742 | fi | |
29743 | ||
29744 | ||
29745 | ||
29746 | ||
29747 | ||
29748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf128" >&5 | |
29749 | $as_echo_n "checking for cacosf128... " >&6; } | |
29750 | if ${gcc_cv_math_func_cacosf128+:} false; then : | |
29751 | $as_echo_n "(cached) " >&6 | |
29752 | else | |
29753 | if test x$gcc_no_link = xyes; then | |
29754 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29755 | fi | |
29756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29757 | /* end confdefs.h. */ | |
29758 | ||
29759 | #ifdef HAVE_COMPLEX_H | |
29760 | #include <complex.h> | |
29761 | #endif | |
29762 | #ifdef HAVE_MATH_H | |
29763 | #include <math.h> | |
29764 | #endif | |
29765 | ||
29766 | int (*ptr)() = (int (*)())cacosf128; | |
29767 | ||
29768 | int | |
29769 | main () | |
29770 | { | |
29771 | return 0; | |
29772 | } | |
29773 | ||
29774 | _ACEOF | |
29775 | if ac_fn_c_try_link "$LINENO"; then : | |
29776 | gcc_cv_math_func_cacosf128=yes | |
29777 | else | |
29778 | gcc_cv_math_func_cacosf128=no | |
29779 | fi | |
29780 | rm -f core conftest.err conftest.$ac_objext \ | |
29781 | conftest$ac_exeext conftest.$ac_ext | |
29782 | fi | |
29783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf128" >&5 | |
29784 | $as_echo "$gcc_cv_math_func_cacosf128" >&6; } | |
29785 | if test $gcc_cv_math_func_cacosf128 = yes; then | |
29786 | ||
29787 | cat >>confdefs.h <<_ACEOF | |
29788 | #define HAVE_CACOSF128 1 | |
29789 | _ACEOF | |
29790 | ||
29791 | fi | |
29792 | ||
29793 | ||
29794 | ||
29795 | ||
29796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf128" >&5 | |
29797 | $as_echo_n "checking for cacoshf128... " >&6; } | |
29798 | if ${gcc_cv_math_func_cacoshf128+:} false; then : | |
29799 | $as_echo_n "(cached) " >&6 | |
29800 | else | |
29801 | if test x$gcc_no_link = xyes; then | |
29802 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29803 | fi | |
29804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29805 | /* end confdefs.h. */ | |
29806 | ||
29807 | #ifdef HAVE_COMPLEX_H | |
29808 | #include <complex.h> | |
29809 | #endif | |
29810 | #ifdef HAVE_MATH_H | |
29811 | #include <math.h> | |
29812 | #endif | |
29813 | ||
29814 | int (*ptr)() = (int (*)())cacoshf128; | |
29815 | ||
29816 | int | |
29817 | main () | |
29818 | { | |
29819 | return 0; | |
29820 | } | |
29821 | ||
29822 | _ACEOF | |
29823 | if ac_fn_c_try_link "$LINENO"; then : | |
29824 | gcc_cv_math_func_cacoshf128=yes | |
29825 | else | |
29826 | gcc_cv_math_func_cacoshf128=no | |
29827 | fi | |
29828 | rm -f core conftest.err conftest.$ac_objext \ | |
29829 | conftest$ac_exeext conftest.$ac_ext | |
29830 | fi | |
29831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf128" >&5 | |
29832 | $as_echo "$gcc_cv_math_func_cacoshf128" >&6; } | |
29833 | if test $gcc_cv_math_func_cacoshf128 = yes; then | |
29834 | ||
29835 | cat >>confdefs.h <<_ACEOF | |
29836 | #define HAVE_CACOSHF128 1 | |
29837 | _ACEOF | |
29838 | ||
29839 | fi | |
29840 | ||
29841 | ||
29842 | ||
29843 | ||
29844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf128" >&5 | |
29845 | $as_echo_n "checking for casinf128... " >&6; } | |
29846 | if ${gcc_cv_math_func_casinf128+:} false; then : | |
29847 | $as_echo_n "(cached) " >&6 | |
29848 | else | |
29849 | if test x$gcc_no_link = xyes; then | |
29850 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29851 | fi | |
29852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29853 | /* end confdefs.h. */ | |
29854 | ||
29855 | #ifdef HAVE_COMPLEX_H | |
29856 | #include <complex.h> | |
29857 | #endif | |
29858 | #ifdef HAVE_MATH_H | |
29859 | #include <math.h> | |
29860 | #endif | |
29861 | ||
29862 | int (*ptr)() = (int (*)())casinf128; | |
29863 | ||
29864 | int | |
29865 | main () | |
29866 | { | |
29867 | return 0; | |
29868 | } | |
29869 | ||
29870 | _ACEOF | |
29871 | if ac_fn_c_try_link "$LINENO"; then : | |
29872 | gcc_cv_math_func_casinf128=yes | |
29873 | else | |
29874 | gcc_cv_math_func_casinf128=no | |
29875 | fi | |
29876 | rm -f core conftest.err conftest.$ac_objext \ | |
29877 | conftest$ac_exeext conftest.$ac_ext | |
29878 | fi | |
29879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf128" >&5 | |
29880 | $as_echo "$gcc_cv_math_func_casinf128" >&6; } | |
29881 | if test $gcc_cv_math_func_casinf128 = yes; then | |
29882 | ||
29883 | cat >>confdefs.h <<_ACEOF | |
29884 | #define HAVE_CASINF128 1 | |
29885 | _ACEOF | |
29886 | ||
29887 | fi | |
29888 | ||
29889 | ||
29890 | ||
29891 | ||
29892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf128" >&5 | |
29893 | $as_echo_n "checking for casinhf128... " >&6; } | |
29894 | if ${gcc_cv_math_func_casinhf128+:} false; then : | |
29895 | $as_echo_n "(cached) " >&6 | |
29896 | else | |
29897 | if test x$gcc_no_link = xyes; then | |
29898 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29899 | fi | |
29900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29901 | /* end confdefs.h. */ | |
29902 | ||
29903 | #ifdef HAVE_COMPLEX_H | |
29904 | #include <complex.h> | |
29905 | #endif | |
29906 | #ifdef HAVE_MATH_H | |
29907 | #include <math.h> | |
29908 | #endif | |
29909 | ||
29910 | int (*ptr)() = (int (*)())casinhf128; | |
29911 | ||
29912 | int | |
29913 | main () | |
29914 | { | |
29915 | return 0; | |
29916 | } | |
29917 | ||
29918 | _ACEOF | |
29919 | if ac_fn_c_try_link "$LINENO"; then : | |
29920 | gcc_cv_math_func_casinhf128=yes | |
29921 | else | |
29922 | gcc_cv_math_func_casinhf128=no | |
29923 | fi | |
29924 | rm -f core conftest.err conftest.$ac_objext \ | |
29925 | conftest$ac_exeext conftest.$ac_ext | |
29926 | fi | |
29927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf128" >&5 | |
29928 | $as_echo "$gcc_cv_math_func_casinhf128" >&6; } | |
29929 | if test $gcc_cv_math_func_casinhf128 = yes; then | |
29930 | ||
29931 | cat >>confdefs.h <<_ACEOF | |
29932 | #define HAVE_CASINHF128 1 | |
29933 | _ACEOF | |
29934 | ||
29935 | fi | |
29936 | ||
29937 | ||
29938 | ||
29939 | ||
29940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf128" >&5 | |
29941 | $as_echo_n "checking for catanf128... " >&6; } | |
29942 | if ${gcc_cv_math_func_catanf128+:} false; then : | |
29943 | $as_echo_n "(cached) " >&6 | |
29944 | else | |
29945 | if test x$gcc_no_link = xyes; then | |
29946 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29947 | fi | |
29948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29949 | /* end confdefs.h. */ | |
29950 | ||
29951 | #ifdef HAVE_COMPLEX_H | |
29952 | #include <complex.h> | |
29953 | #endif | |
29954 | #ifdef HAVE_MATH_H | |
29955 | #include <math.h> | |
29956 | #endif | |
29957 | ||
29958 | int (*ptr)() = (int (*)())catanf128; | |
29959 | ||
29960 | int | |
29961 | main () | |
29962 | { | |
29963 | return 0; | |
29964 | } | |
29965 | ||
29966 | _ACEOF | |
29967 | if ac_fn_c_try_link "$LINENO"; then : | |
29968 | gcc_cv_math_func_catanf128=yes | |
29969 | else | |
29970 | gcc_cv_math_func_catanf128=no | |
29971 | fi | |
29972 | rm -f core conftest.err conftest.$ac_objext \ | |
29973 | conftest$ac_exeext conftest.$ac_ext | |
29974 | fi | |
29975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf128" >&5 | |
29976 | $as_echo "$gcc_cv_math_func_catanf128" >&6; } | |
29977 | if test $gcc_cv_math_func_catanf128 = yes; then | |
29978 | ||
29979 | cat >>confdefs.h <<_ACEOF | |
29980 | #define HAVE_CATANF128 1 | |
29981 | _ACEOF | |
29982 | ||
29983 | fi | |
29984 | ||
29985 | ||
29986 | ||
29987 | ||
29988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf128" >&5 | |
29989 | $as_echo_n "checking for catanhf128... " >&6; } | |
29990 | if ${gcc_cv_math_func_catanhf128+:} false; then : | |
29991 | $as_echo_n "(cached) " >&6 | |
29992 | else | |
29993 | if test x$gcc_no_link = xyes; then | |
29994 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
29995 | fi | |
29996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29997 | /* end confdefs.h. */ | |
29998 | ||
29999 | #ifdef HAVE_COMPLEX_H | |
30000 | #include <complex.h> | |
30001 | #endif | |
30002 | #ifdef HAVE_MATH_H | |
30003 | #include <math.h> | |
30004 | #endif | |
30005 | ||
30006 | int (*ptr)() = (int (*)())catanhf128; | |
30007 | ||
30008 | int | |
30009 | main () | |
30010 | { | |
30011 | return 0; | |
30012 | } | |
30013 | ||
30014 | _ACEOF | |
30015 | if ac_fn_c_try_link "$LINENO"; then : | |
30016 | gcc_cv_math_func_catanhf128=yes | |
30017 | else | |
30018 | gcc_cv_math_func_catanhf128=no | |
30019 | fi | |
30020 | rm -f core conftest.err conftest.$ac_objext \ | |
30021 | conftest$ac_exeext conftest.$ac_ext | |
30022 | fi | |
30023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf128" >&5 | |
30024 | $as_echo "$gcc_cv_math_func_catanhf128" >&6; } | |
30025 | if test $gcc_cv_math_func_catanhf128 = yes; then | |
30026 | ||
30027 | cat >>confdefs.h <<_ACEOF | |
30028 | #define HAVE_CATANHF128 1 | |
30029 | _ACEOF | |
30030 | ||
30031 | fi | |
30032 | ||
30033 | ||
30034 | # Check whether the system has a working stat() | |
30035 | ||
30036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5 | |
30037 | $as_echo_n "checking whether the target stat is reliable... " >&6; } | |
30038 | if ${libgfor_cv_have_working_stat+:} false; then : | |
30039 | $as_echo_n "(cached) " >&6 | |
30040 | else | |
30041 | ||
30042 | if test "$cross_compiling" = yes; then : | |
30043 | ||
30044 | case "${target}" in | |
30045 | *mingw*) libgfor_cv_have_working_stat=no ;; | |
30046 | *) libgfor_cv_have_working_stat=yes;; | |
30047 | esac | |
30048 | else | |
30049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30050 | /* end confdefs.h. */ | |
30051 | ||
30052 | #include <stdio.h> | |
30053 | #include <sys/types.h> | |
30054 | #include <sys/stat.h> | |
30055 | #include <unistd.h> | |
30056 | ||
30057 | int main () | |
30058 | { | |
30059 | FILE *f, *g; | |
30060 | struct stat st1, st2; | |
30061 | ||
30062 | f = fopen ("foo", "w"); | |
30063 | g = fopen ("bar", "w"); | |
30064 | if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) | |
30065 | return 1; | |
30066 | if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) | |
30067 | return 1; | |
30068 | fclose(f); | |
30069 | fclose(g); | |
30070 | return 0; | |
30071 | } | |
30072 | _ACEOF | |
30073 | if ac_fn_c_try_run "$LINENO"; then : | |
30074 | libgfor_cv_have_working_stat=yes | |
30075 | else | |
30076 | libgfor_cv_have_working_stat=no | |
30077 | fi | |
30078 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
30079 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
30080 | fi | |
30081 | ||
30082 | fi | |
30083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5 | |
30084 | $as_echo "$libgfor_cv_have_working_stat" >&6; } | |
30085 | if test x"$libgfor_cv_have_working_stat" = xyes; then | |
30086 | ||
30087 | $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h | |
30088 | ||
30089 | fi | |
30090 | ||
30091 | # Check whether __mingw_snprintf() is present | |
30092 | ||
30093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5 | |
30094 | $as_echo_n "checking whether __mingw_snprintf is present... " >&6; } | |
30095 | if ${libgfor_cv_have_mingw_snprintf+:} false; then : | |
30096 | $as_echo_n "(cached) " >&6 | |
30097 | else | |
30098 | ||
30099 | if test x$gcc_no_link = xyes; then | |
30100 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
30101 | fi | |
30102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30103 | /* end confdefs.h. */ | |
30104 | ||
30105 | #include <stdio.h> | |
30106 | extern int __mingw_snprintf (char *, size_t, const char *, ...); | |
30107 | ||
30108 | int | |
30109 | main () | |
30110 | { | |
30111 | ||
30112 | __mingw_snprintf (NULL, 0, "%d\n", 1); | |
30113 | ||
30114 | ; | |
30115 | return 0; | |
30116 | } | |
30117 | _ACEOF | |
30118 | if ac_fn_c_try_link "$LINENO"; then : | |
30119 | eval "libgfor_cv_have_mingw_snprintf=yes" | |
30120 | else | |
30121 | eval "libgfor_cv_have_mingw_snprintf=no" | |
30122 | fi | |
30123 | rm -f core conftest.err conftest.$ac_objext \ | |
30124 | conftest$ac_exeext conftest.$ac_ext | |
30125 | ||
30126 | fi | |
30127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5 | |
30128 | $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; } | |
30129 | if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then | |
30130 | ||
30131 | $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h | |
30132 | ||
30133 | fi | |
30134 | ||
30135 | ||
30136 | have_iec_60559_libc_support=no | |
30137 | if test "x$ac_cv_func_strtof128$ac_cv_func_strfromf128" = xyesyes \ | |
30138 | && test "x$gcc_cv_math_func_sinf128$gcc_cv_math_func_cacosf128" = xyesyes; then | |
30139 | have_iec_60559_libc_support=yes | |
30140 | fi | |
30141 | ||
30142 | # Check whether libquadmath should be used | |
30143 | # Check whether --enable-libquadmath-support was given. | |
30144 | if test "${enable_libquadmath_support+set}" = set; then : | |
30145 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
30146 | else | |
30147 | if test "x$have_iec_60559_libc_support" = xyes; then | |
30148 | ENABLE_LIBQUADMATH_SUPPORT=default | |
30149 | else | |
30150 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
30151 | fi | |
30152 | fi | |
30153 | ||
30154 | enable_libquadmath_support= | |
30155 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
30156 | enable_libquadmath_support=no | |
30157 | elif test "${ENABLE_LIBQUADMATH_SUPPORT}" = "default" ; then | |
30158 | enable_libquadmath_support=default | |
30159 | fi | |
30160 | ||
30161 | # Check whether we have a _Float128 type, depends on enable_libquadmath_support | |
30162 | # and have_iec_60559_libc_support. | |
30163 | ||
30164 | LIBQUADSPEC= | |
30165 | LIBQUADLIB= | |
30166 | LIBQUADLIB_DEP= | |
30167 | LIBQUADINCLUDE= | |
30168 | USE_IEC_60559=no | |
30169 | ||
30170 | if test "x$enable_libquadmath_support" != xno; then | |
30171 | ||
30172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable _Float128 type" >&5 | |
30173 | $as_echo_n "checking whether we have a usable _Float128 type... " >&6; } | |
30174 | if ${libgfor_cv_have_float128+:} false; then : | |
30175 | $as_echo_n "(cached) " >&6 | |
30176 | else | |
30177 | ||
30178 | if test x$gcc_no_link = xyes; then | |
30179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30180 | /* end confdefs.h. */ | |
30181 | ||
30182 | _Float128 foo (_Float128 x) | |
30183 | { | |
133d0d42 JJ |
30184 | _Complex _Float128 z1, z2; |
30185 | ||
30186 | z1 = x; | |
30187 | z2 = x / 7.F128; | |
30188 | z2 /= z1; | |
30189 | ||
30190 | return (_Float128) z2; | |
30191 | } | |
30192 | ||
30193 | _Float128 bar (_Float128 x) | |
30194 | { | |
30195 | return x * __builtin_huge_valf128 (); | |
30196 | } | |
30197 | ||
c022c0de JJ |
30198 | __float128 baz (__float128 x) |
30199 | { | |
30200 | return x * __builtin_huge_valf128 (); | |
30201 | } | |
30202 | ||
133d0d42 JJ |
30203 | int |
30204 | main () | |
30205 | { | |
30206 | ||
30207 | foo (1.2F128); | |
30208 | bar (1.2F128); | |
c022c0de | 30209 | baz (1.2F128); |
133d0d42 JJ |
30210 | foo (1.2Q); |
30211 | bar (1.2Q); | |
c022c0de | 30212 | baz (1.2Q); |
133d0d42 JJ |
30213 | |
30214 | ; | |
30215 | return 0; | |
30216 | } | |
30217 | _ACEOF | |
30218 | if ac_fn_c_try_compile "$LINENO"; then : | |
30219 | ||
30220 | libgfor_cv_have_float128=yes | |
30221 | ||
30222 | else | |
30223 | ||
30224 | libgfor_cv_have_float128=no | |
30225 | ||
30226 | fi | |
30227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
30228 | else | |
30229 | if test x$gcc_no_link = xyes; then | |
30230 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
30231 | fi | |
30232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30233 | /* end confdefs.h. */ | |
30234 | ||
30235 | _Float128 foo (_Float128 x) | |
30236 | { | |
133d0d42 JJ |
30237 | _Complex _Float128 z1, z2; |
30238 | ||
30239 | z1 = x; | |
30240 | z2 = x / 7.F128; | |
30241 | z2 /= z1; | |
30242 | ||
30243 | return (_Float128) z2; | |
30244 | } | |
30245 | ||
30246 | _Float128 bar (_Float128 x) | |
30247 | { | |
30248 | return x * __builtin_huge_valf128 (); | |
30249 | } | |
30250 | ||
c022c0de JJ |
30251 | __float128 baz (__float128 x) |
30252 | { | |
30253 | return x * __builtin_huge_valf128 (); | |
30254 | } | |
30255 | ||
133d0d42 JJ |
30256 | int |
30257 | main () | |
30258 | { | |
30259 | ||
30260 | foo (1.2F128); | |
30261 | bar (1.2F128); | |
c022c0de | 30262 | baz (1.2F128); |
133d0d42 JJ |
30263 | foo (1.2Q); |
30264 | bar (1.2Q); | |
c022c0de | 30265 | baz (1.2Q); |
133d0d42 JJ |
30266 | |
30267 | ; | |
30268 | return 0; | |
30269 | } | |
30270 | _ACEOF | |
30271 | if ac_fn_c_try_link "$LINENO"; then : | |
30272 | ||
30273 | libgfor_cv_have_float128=yes | |
30274 | ||
30275 | else | |
30276 | ||
30277 | libgfor_cv_have_float128=no | |
30278 | ||
30279 | fi | |
30280 | rm -f core conftest.err conftest.$ac_objext \ | |
30281 | conftest$ac_exeext conftest.$ac_ext | |
30282 | fi | |
30283 | fi | |
30284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5 | |
30285 | $as_echo "$libgfor_cv_have_float128" >&6; } | |
30286 | ||
30287 | if test "x$have_iec_60559_libc_support$enable_libquadmath_support$libgfor_cv_have_float128" = xyesdefaultyes; then | |
30288 | USE_IEC_60559=yes | |
30289 | fi | |
30290 | ||
30291 | ||
30292 | if test "x$libgfor_cv_have_float128" = xyes; then | |
30293 | if test "x$USE_IEC_60559" = xyes; then | |
30294 | ||
30295 | $as_echo "#define USE_IEC_60559 1" >>confdefs.h | |
30296 | ||
30297 | fi | |
30298 | ||
30299 | $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h | |
30300 | ||
30301 | ||
30302 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
30303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5 | |
30304 | $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; } | |
30305 | if ${libgfor_cv_have_as_needed+:} false; then : | |
30306 | $as_echo_n "(cached) " >&6 | |
30307 | else | |
30308 | ||
30309 | # Test for native Solaris options first. | |
30310 | # No whitespace after -z to pass it through -Wl. | |
30311 | libgfor_cv_as_needed_option="-zignore" | |
30312 | libgfor_cv_no_as_needed_option="-zrecord" | |
30313 | save_LDFLAGS="$LDFLAGS" | |
30314 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" | |
30315 | libgfor_cv_have_as_needed=no | |
30316 | ||
30317 | ac_c_werror_flag=yes | |
30318 | if test x$gcc_no_link = xyes; then | |
30319 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
30320 | fi | |
30321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30322 | /* end confdefs.h. */ | |
30323 | ||
30324 | int | |
30325 | main () | |
30326 | { | |
30327 | ||
30328 | ; | |
30329 | return 0; | |
30330 | } | |
30331 | _ACEOF | |
30332 | if ac_fn_c_try_link "$LINENO"; then : | |
30333 | libgfor_cv_have_as_needed=yes | |
30334 | else | |
30335 | libgfor_cv_have_as_needed=no | |
30336 | fi | |
30337 | rm -f core conftest.err conftest.$ac_objext \ | |
30338 | conftest$ac_exeext conftest.$ac_ext | |
30339 | LDFLAGS="$save_LDFLAGS" | |
30340 | if test "x$libgfor_cv_have_as_needed" = xno; then | |
30341 | libgfor_cv_as_needed_option="--as-needed" | |
30342 | libgfor_cv_no_as_needed_option="--no-as-needed" | |
30343 | save_LDFLAGS="$LDFLAGS" | |
30344 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" | |
30345 | libgfor_cv_have_as_needed=no | |
30346 | ||
30347 | ac_c_werror_flag=yes | |
30348 | if test x$gcc_no_link = xyes; then | |
30349 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
30350 | fi | |
30351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30352 | /* end confdefs.h. */ | |
30353 | ||
30354 | int | |
30355 | main () | |
30356 | { | |
30357 | ||
828012a5 RO |
30358 | ; |
30359 | return 0; | |
30360 | } | |
30361 | _ACEOF | |
30362 | if ac_fn_c_try_link "$LINENO"; then : | |
30363 | libgfor_cv_have_as_needed=yes | |
30364 | else | |
30365 | libgfor_cv_have_as_needed=no | |
30366 | fi | |
30367 | rm -f core conftest.err conftest.$ac_objext \ | |
30368 | conftest$ac_exeext conftest.$ac_ext | |
30369 | LDFLAGS="$save_LDFLAGS" | |
30370 | fi | |
1ec601bf FXC |
30371 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
30372 | ||
30373 | fi | |
30374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5 | |
30375 | $as_echo "$libgfor_cv_have_as_needed" >&6; } | |
30376 | ||
745be54b JJ |
30377 | touch conftest1.$ac_objext conftest2.$ac_objext |
30378 | LQUADMATH=-lquadmath | |
30379 | $FC -static-libgfortran -### -o conftest \ | |
30380 | conftest1.$ac_objext -lgfortran conftest2.$ac_objext 2>&1 >/dev/null \ | |
30381 | | grep "conftest1.$ac_objext.*conftest2.$ac_objext" > conftest.cmd | |
30382 | if grep "conftest1.$ac_objext.* -Bstatic -lgfortran -Bdynamic .*conftest2.$ac_objext" \ | |
30383 | conftest.cmd >/dev/null 2>&1; then | |
30384 | LQUADMATH="%{static-libquadmath:-Bstatic} -lquadmath %{static-libquadmath:-Bdynamic}" | |
30385 | elif grep "conftest1.$ac_objext.* -bstatic -lgfortran -bdynamic .*conftest2.$ac_objext" \ | |
30386 | conftest.cmd >/dev/null 2>&1; then | |
30387 | LQUADMATH="%{static-libquadmath:-bstatic} -lquadmath %{static-libquadmath:-bdynamic}" | |
30388 | elif grep "conftest1.$ac_objext.* -aarchive_shared -lgfortran -adefault .*conftest2.$ac_objext" \ | |
30389 | conftest.cmd >/dev/null 2>&1; then | |
30390 | LQUADMATH="%{static-libquadmath:-aarchive_shared} -lquadmath %{static-libquadmath:-adefault}" | |
30391 | elif grep "conftest1.$ac_objext.*libgfortran.a .*conftest2.$ac_objext" \ | |
30392 | conftest.cmd >/dev/null 2>&1; then | |
30393 | LQUADMATH="%{static-libquadmath:libquadmath.a%s;:-lquadmath}" | |
30394 | fi | |
30395 | rm -f conftest1.$ac_objext conftest2.$ac_objext conftest conftest.cmd | |
30396 | ||
133d0d42 JJ |
30397 | if test "x$libgfor_cv_have_as_needed" = xyes; then |
30398 | if test "x$USE_IEC_60559" = xyes; then | |
745be54b | 30399 | LIBQUADSPEC="$libgfor_cv_as_needed_option $LQUADMATH $libgfor_cv_no_as_needed_option" |
133d0d42 | 30400 | else |
745be54b | 30401 | LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} $LQUADMATH %{static-libgfortran:$libgfor_cv_no_as_needed_option}" |
133d0d42 | 30402 | fi |
1ec601bf | 30403 | else |
745be54b | 30404 | LIBQUADSPEC="$LQUADMATH" |
1ec601bf | 30405 | fi |
133d0d42 JJ |
30406 | if test "x$USE_IEC_60559" != xyes; then |
30407 | if test -f ../libquadmath/libquadmath.la; then | |
30408 | LIBQUADLIB=../libquadmath/libquadmath.la | |
30409 | LIBQUADLIB_DEP=../libquadmath/libquadmath.la | |
30410 | LIBQUADINCLUDE='-I$(srcdir)/../libquadmath' | |
30411 | else | |
30412 | LIBQUADLIB="-lquadmath" | |
30413 | fi | |
1ec601bf | 30414 | fi |
87e6d9dc | 30415 | else |
133d0d42 JJ |
30416 | USE_IEC_60559=no |
30417 | fi | |
87e6d9dc | 30418 | fi |
1ec601bf FXC |
30419 | |
30420 | ||
30421 | ||
30422 | ||
30423 | ||
30424 | ||
1ec601bf FXC |
30425 | |
30426 | ||
944b8b35 | 30427 | # Check for GNU libc feenableexcept |
5213506e RW |
30428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 |
30429 | $as_echo_n "checking for feenableexcept in -lm... " >&6; } | |
22e05272 | 30430 | if ${ac_cv_lib_m_feenableexcept+:} false; then : |
5213506e | 30431 | $as_echo_n "(cached) " >&6 |
944b8b35 FXC |
30432 | else |
30433 | ac_check_lib_save_LIBS=$LIBS | |
30434 | LIBS="-lm $LIBS" | |
30435 | if test x$gcc_no_link = xyes; then | |
22e05272 | 30436 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
944b8b35 | 30437 | fi |
5213506e | 30438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
944b8b35 FXC |
30439 | /* end confdefs.h. */ |
30440 | ||
5213506e RW |
30441 | /* Override any GCC internal prototype to avoid an error. |
30442 | Use char because int might match the return type of a GCC | |
30443 | builtin and then its argument prototype would still apply. */ | |
944b8b35 FXC |
30444 | #ifdef __cplusplus |
30445 | extern "C" | |
30446 | #endif | |
944b8b35 FXC |
30447 | char feenableexcept (); |
30448 | int | |
30449 | main () | |
30450 | { | |
5213506e | 30451 | return feenableexcept (); |
944b8b35 FXC |
30452 | ; |
30453 | return 0; | |
30454 | } | |
30455 | _ACEOF | |
5213506e | 30456 | if ac_fn_c_try_link "$LINENO"; then : |
944b8b35 FXC |
30457 | ac_cv_lib_m_feenableexcept=yes |
30458 | else | |
5213506e | 30459 | ac_cv_lib_m_feenableexcept=no |
944b8b35 | 30460 | fi |
5213506e RW |
30461 | rm -f core conftest.err conftest.$ac_objext \ |
30462 | conftest$ac_exeext conftest.$ac_ext | |
944b8b35 FXC |
30463 | LIBS=$ac_check_lib_save_LIBS |
30464 | fi | |
5213506e RW |
30465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 |
30466 | $as_echo "$ac_cv_lib_m_feenableexcept" >&6; } | |
22e05272 | 30467 | if test "x$ac_cv_lib_m_feenableexcept" = xyes; then : |
944b8b35 | 30468 | have_feenableexcept=yes |
5213506e | 30469 | $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h |
3b14f664 FXC |
30470 | |
30471 | fi | |
30472 | ||
3b14f664 | 30473 | |
5c30094f | 30474 | # At least for glibc, clock_gettime is in librt. But don't |
2aadeae2 JB |
30475 | # pull that in if it still doesn't give us the function we want. This |
30476 | # test is copied from libgomp, and modified to not link in -lrt as | |
30477 | # libgfortran calls clock_gettime via a weak reference if it's found | |
30478 | # in librt. | |
deb9dd74 | 30479 | if test "$ac_cv_func_clock_gettime" = no; then |
b6e7a3d1 JB |
30480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
30481 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
22e05272 | 30482 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
b6e7a3d1 JB |
30483 | $as_echo_n "(cached) " >&6 |
30484 | else | |
30485 | ac_check_lib_save_LIBS=$LIBS | |
30486 | LIBS="-lrt $LIBS" | |
30487 | if test x$gcc_no_link = xyes; then | |
22e05272 | 30488 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b6e7a3d1 JB |
30489 | fi |
30490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30491 | /* end confdefs.h. */ | |
30492 | ||
30493 | /* Override any GCC internal prototype to avoid an error. | |
30494 | Use char because int might match the return type of a GCC | |
30495 | builtin and then its argument prototype would still apply. */ | |
30496 | #ifdef __cplusplus | |
30497 | extern "C" | |
30498 | #endif | |
30499 | char clock_gettime (); | |
30500 | int | |
30501 | main () | |
30502 | { | |
30503 | return clock_gettime (); | |
30504 | ; | |
30505 | return 0; | |
30506 | } | |
30507 | _ACEOF | |
30508 | if ac_fn_c_try_link "$LINENO"; then : | |
30509 | ac_cv_lib_rt_clock_gettime=yes | |
30510 | else | |
30511 | ac_cv_lib_rt_clock_gettime=no | |
30512 | fi | |
30513 | rm -f core conftest.err conftest.$ac_objext \ | |
30514 | conftest$ac_exeext conftest.$ac_ext | |
30515 | LIBS=$ac_check_lib_save_LIBS | |
30516 | fi | |
30517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
30518 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
22e05272 | 30519 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
b6e7a3d1 | 30520 | |
2aadeae2 | 30521 | $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h |
b6e7a3d1 JB |
30522 | |
30523 | fi | |
30524 | ||
30525 | fi | |
30526 | ||
5213506e | 30527 | # Check for SysV fpsetmask |
3b14f664 | 30528 | |
5213506e RW |
30529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5 |
30530 | $as_echo_n "checking whether fpsetmask is present... " >&6; } | |
22e05272 | 30531 | if ${libgfor_cv_have_fpsetmask+:} false; then : |
5213506e RW |
30532 | $as_echo_n "(cached) " >&6 |
30533 | else | |
3b14f664 | 30534 | |
5213506e | 30535 | if test x$gcc_no_link = xyes; then |
22e05272 | 30536 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5213506e RW |
30537 | fi |
30538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30539 | /* end confdefs.h. */ | |
3b14f664 | 30540 | |
5213506e RW |
30541 | #if HAVE_FLOATINGPOINT_H |
30542 | # include <floatingpoint.h> | |
30543 | #endif /* HAVE_FLOATINGPOINT_H */ | |
30544 | #if HAVE_IEEEFP_H | |
30545 | # include <ieeefp.h> | |
30546 | #endif /* HAVE_IEEEFP_H */ | |
3b14f664 FXC |
30547 | int |
30548 | main () | |
30549 | { | |
5213506e | 30550 | fpsetmask(0); |
3b14f664 FXC |
30551 | ; |
30552 | return 0; | |
30553 | } | |
30554 | _ACEOF | |
5213506e RW |
30555 | if ac_fn_c_try_link "$LINENO"; then : |
30556 | eval "libgfor_cv_have_fpsetmask=yes" | |
3b14f664 | 30557 | else |
5213506e RW |
30558 | eval "libgfor_cv_have_fpsetmask=no" |
30559 | fi | |
30560 | rm -f core conftest.err conftest.$ac_objext \ | |
30561 | conftest$ac_exeext conftest.$ac_ext | |
3b14f664 | 30562 | |
3b14f664 | 30563 | fi |
5213506e RW |
30564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5 |
30565 | $as_echo "$libgfor_cv_have_fpsetmask" >&6; } | |
30566 | if test x"$libgfor_cv_have_fpsetmask" = xyes; then | |
1b9fef3e | 30567 | have_fpsetmask=yes |
5213506e RW |
30568 | |
30569 | $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h | |
30570 | ||
30571 | fi | |
30572 | ||
6faf4751 | 30573 | ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" " |
67c4c164 | 30574 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 30575 | #include <ieeefp.h> |
67c4c164 | 30576 | #endif |
6faf4751 FXC |
30577 | #include <math.h> |
30578 | ||
7ae346c3 | 30579 | " |
22e05272 | 30580 | if test "x$ac_cv_type_fp_except" = xyes; then : |
7ae346c3 TB |
30581 | |
30582 | cat >>confdefs.h <<_ACEOF | |
30583 | #define HAVE_FP_EXCEPT 1 | |
30584 | _ACEOF | |
30585 | ||
30586 | ||
30587 | fi | |
6faf4751 | 30588 | ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" " |
67c4c164 | 30589 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 30590 | #include <ieeefp.h> |
67c4c164 | 30591 | #endif |
6faf4751 FXC |
30592 | #include <math.h> |
30593 | ||
7ae346c3 | 30594 | " |
22e05272 | 30595 | if test "x$ac_cv_type_fp_except_t" = xyes; then : |
7ae346c3 TB |
30596 | |
30597 | cat >>confdefs.h <<_ACEOF | |
30598 | #define HAVE_FP_EXCEPT_T 1 | |
30599 | _ACEOF | |
30600 | ||
30601 | ||
82a4f54c TB |
30602 | fi |
30603 | ||
6faf4751 | 30604 | ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" " |
67c4c164 | 30605 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 30606 | #include <ieeefp.h> |
67c4c164 | 30607 | #endif |
6faf4751 FXC |
30608 | #include <math.h> |
30609 | ||
82a4f54c | 30610 | " |
22e05272 | 30611 | if test "x$ac_cv_type_fp_rnd" = xyes; then : |
82a4f54c TB |
30612 | |
30613 | cat >>confdefs.h <<_ACEOF | |
30614 | #define HAVE_FP_RND 1 | |
30615 | _ACEOF | |
30616 | ||
30617 | ||
30618 | fi | |
6faf4751 | 30619 | ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" " |
67c4c164 | 30620 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 30621 | #include <ieeefp.h> |
67c4c164 | 30622 | #endif |
6faf4751 FXC |
30623 | #include <math.h> |
30624 | ||
82a4f54c | 30625 | " |
22e05272 | 30626 | if test "x$ac_cv_type_fp_rnd_t" = xyes; then : |
82a4f54c TB |
30627 | |
30628 | cat >>confdefs.h <<_ACEOF | |
30629 | #define HAVE_FP_RND_T 1 | |
30630 | _ACEOF | |
30631 | ||
30632 | ||
7ae346c3 TB |
30633 | fi |
30634 | ||
5213506e | 30635 | |
de51fc1b RO |
30636 | # Check whether we have fpsetsticky or fpresetsticky |
30637 | ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky" | |
22e05272 | 30638 | if test "x$ac_cv_func_fpsetsticky" = xyes; then : |
de51fc1b RO |
30639 | have_fpsetsticky=yes |
30640 | $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h | |
30641 | ||
30642 | fi | |
30643 | ||
30644 | ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky" | |
22e05272 | 30645 | if test "x$ac_cv_func_fpresetsticky" = xyes; then : |
de51fc1b RO |
30646 | have_fpresetsticky=yes |
30647 | $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h | |
30648 | ||
30649 | fi | |
30650 | ||
30651 | ||
5213506e RW |
30652 | # Check for AIX fp_trap and fp_enable |
30653 | ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap" | |
22e05272 | 30654 | if test "x$ac_cv_func_fp_trap" = xyes; then : |
5213506e RW |
30655 | have_fp_trap=yes |
30656 | $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h | |
30657 | ||
3b14f664 | 30658 | fi |
5213506e RW |
30659 | |
30660 | ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable" | |
22e05272 | 30661 | if test "x$ac_cv_func_fp_enable" = xyes; then : |
3b14f664 | 30662 | have_fp_enable=yes |
5213506e | 30663 | $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h |
3b14f664 FXC |
30664 | |
30665 | fi | |
30666 | ||
30667 | ||
7b32a8f6 UB |
30668 | # Check if _SOFT_FLOAT is defined |
30669 | ||
30670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5 | |
30671 | $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; } | |
22e05272 | 30672 | if ${ac_cv_defined__SOFT_FLOAT+:} false; then : |
7b32a8f6 UB |
30673 | $as_echo_n "(cached) " >&6 |
30674 | else | |
30675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30676 | /* end confdefs.h. */ | |
30677 | ||
30678 | int | |
30679 | main () | |
30680 | { | |
30681 | ||
30682 | #ifdef _SOFT_FLOAT | |
30683 | int ok; | |
30684 | #else | |
30685 | choke me | |
30686 | #endif | |
30687 | ||
30688 | ; | |
30689 | return 0; | |
30690 | } | |
30691 | _ACEOF | |
30692 | if ac_fn_c_try_compile "$LINENO"; then : | |
30693 | ac_cv_defined__SOFT_FLOAT=yes | |
30694 | else | |
30695 | ac_cv_defined__SOFT_FLOAT=no | |
30696 | fi | |
30697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
30698 | fi | |
30699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5 | |
30700 | $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; } | |
30701 | if test $ac_cv_defined__SOFT_FLOAT != "no"; then : | |
30702 | have_soft_float=yes | |
30703 | fi | |
30704 | ||
944b8b35 FXC |
30705 | # Runs configure.host to set up necessary host-dependent shell variables. |
30706 | # We then display a message about it, and propagate them through the | |
30707 | # build chain. | |
30708 | . ${srcdir}/configure.host | |
5213506e RW |
30709 | { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5 |
30710 | $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} | |
8b198102 FXC |
30711 | { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5 |
30712 | $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;} | |
944b8b35 FXC |
30713 | FPU_HOST_HEADER=config/${fpu_host}.h |
30714 | ||
30715 | ||
8b198102 FXC |
30716 | # Whether we will build the IEEE modules |
30717 | if test x${ieee_support} = xyes; then | |
30718 | IEEE_SUPPORT_TRUE= | |
30719 | IEEE_SUPPORT_FALSE='#' | |
30720 | else | |
30721 | IEEE_SUPPORT_TRUE='#' | |
30722 | IEEE_SUPPORT_FALSE= | |
30723 | fi | |
30724 | ||
30725 | ||
30726 | ||
9fc77574 KK |
30727 | # Some targets require additional compiler options for IEEE compatibility. |
30728 | IEEE_FLAGS="${ieee_flags}" | |
30729 | ||
30730 | ||
47ddb895 DE |
30731 | # Conditionalize the makefile for this target machine. |
30732 | tmake_file_= | |
30733 | for f in ${tmake_file} | |
30734 | do | |
30735 | if test -f ${srcdir}/config/$f | |
30736 | then | |
30737 | tmake_file_="${tmake_file_} \$(srcdir)/config/$f" | |
30738 | fi | |
30739 | done | |
30740 | tmake_file="${tmake_file_}" | |
30741 | ||
30742 | ||
23e6d4a5 JB |
30743 | |
30744 | # Check for POSIX getpwuid_r | |
30745 | # | |
30746 | # There are two versions of getpwuid_r, the POSIX one with 5 | |
30747 | # arguments, and another one with 4 arguments used by at least HP-UX | |
30748 | # 10.2. | |
30749 | if test "$ac_cv_func_getpwuid_r" = "yes"; then | |
30750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5 | |
30751 | $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; } | |
22e05272 | 30752 | if ${libgfor_cv_posix_getpwuid_r+:} false; then : |
23e6d4a5 JB |
30753 | $as_echo_n "(cached) " >&6 |
30754 | else | |
30755 | ||
30756 | if test x$gcc_no_link = xyes; then | |
22e05272 | 30757 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
23e6d4a5 JB |
30758 | fi |
30759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30760 | /* end confdefs.h. */ | |
30761 | ||
30762 | #include <stdio.h> | |
30763 | #include <sys/types.h> | |
30764 | #include <pwd.h> | |
30765 | int | |
30766 | main () | |
30767 | { | |
30768 | ||
30769 | getpwuid_r(0, NULL, NULL, 0, NULL); | |
30770 | ||
30771 | ; | |
30772 | return 0; | |
30773 | } | |
30774 | _ACEOF | |
30775 | if ac_fn_c_try_link "$LINENO"; then : | |
30776 | libgfor_cv_posix_getpwuid_r="yes" | |
30777 | else | |
30778 | libgfor_cv_posix_getpwuid_r="no" | |
30779 | fi | |
30780 | rm -f core conftest.err conftest.$ac_objext \ | |
30781 | conftest$ac_exeext conftest.$ac_ext | |
30782 | fi | |
30783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5 | |
30784 | $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; } | |
30785 | fi | |
30786 | if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then | |
30787 | ||
30788 | $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h | |
30789 | ||
30790 | fi | |
30791 | ||
30792 | ||
7d7b8bfe RH |
30793 | # Check out attribute support. |
30794 | ||
5213506e RW |
30795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 |
30796 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
22e05272 | 30797 | if ${libgfor_cv_have_attribute_visibility+:} false; then : |
5213506e | 30798 | $as_echo_n "(cached) " >&6 |
7d7b8bfe RH |
30799 | else |
30800 | ||
30801 | save_CFLAGS="$CFLAGS" | |
30802 | CFLAGS="$CFLAGS -Werror" | |
5213506e | 30803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7d7b8bfe RH |
30804 | /* end confdefs.h. */ |
30805 | void __attribute__((visibility("hidden"))) foo(void) { } | |
30806 | int | |
30807 | main () | |
30808 | { | |
30809 | ||
30810 | ; | |
30811 | return 0; | |
30812 | } | |
30813 | _ACEOF | |
5213506e | 30814 | if ac_fn_c_try_compile "$LINENO"; then : |
6d26724a | 30815 | libgfor_cv_have_attribute_visibility=yes |
7d7b8bfe | 30816 | else |
5213506e | 30817 | libgfor_cv_have_attribute_visibility=no |
7d7b8bfe | 30818 | fi |
5213506e | 30819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7d7b8bfe RH |
30820 | CFLAGS="$save_CFLAGS" |
30821 | fi | |
5213506e RW |
30822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5 |
30823 | $as_echo "$libgfor_cv_have_attribute_visibility" >&6; } | |
6d26724a | 30824 | if test $libgfor_cv_have_attribute_visibility = yes; then |
7d7b8bfe | 30825 | |
5213506e | 30826 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h |
7d7b8bfe RH |
30827 | |
30828 | fi | |
30829 | ||
5213506e RW |
30830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 |
30831 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
22e05272 | 30832 | if ${libgfor_cv_have_attribute_alias+:} false; then : |
5213506e | 30833 | $as_echo_n "(cached) " >&6 |
7d7b8bfe RH |
30834 | else |
30835 | ||
f02d008e | 30836 | if test x$gcc_no_link = xyes; then |
22e05272 | 30837 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 30838 | fi |
5213506e | 30839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7d7b8bfe RH |
30840 | /* end confdefs.h. */ |
30841 | ||
7d7b8bfe | 30842 | void foo(void) { } |
16a314a9 | 30843 | extern void bar(void) __attribute__((alias("foo"))); |
7d7b8bfe RH |
30844 | int |
30845 | main () | |
30846 | { | |
30847 | bar(); | |
30848 | ; | |
30849 | return 0; | |
30850 | } | |
30851 | _ACEOF | |
5213506e | 30852 | if ac_fn_c_try_link "$LINENO"; then : |
6d26724a | 30853 | libgfor_cv_have_attribute_alias=yes |
7d7b8bfe | 30854 | else |
5213506e | 30855 | libgfor_cv_have_attribute_alias=no |
7d7b8bfe | 30856 | fi |
5213506e RW |
30857 | rm -f core conftest.err conftest.$ac_objext \ |
30858 | conftest$ac_exeext conftest.$ac_ext | |
7d7b8bfe | 30859 | fi |
5213506e RW |
30860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5 |
30861 | $as_echo "$libgfor_cv_have_attribute_alias" >&6; } | |
6d26724a | 30862 | if test $libgfor_cv_have_attribute_alias = yes; then |
7d7b8bfe | 30863 | |
5213506e | 30864 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h |
7d7b8bfe RH |
30865 | |
30866 | fi | |
30867 | ||
0536d5b3 | 30868 | # Check out atomic builtins support. |
5e805e44 | 30869 | |
0536d5b3 JB |
30870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5 |
30871 | $as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; } | |
30872 | if ${libgfor_cv_have_atomic_fetch_add+:} false; then : | |
5213506e | 30873 | $as_echo_n "(cached) " >&6 |
5e805e44 JJ |
30874 | else |
30875 | ||
30876 | if test x$gcc_no_link = xyes; then | |
22e05272 | 30877 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5e805e44 | 30878 | fi |
5213506e | 30879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5e805e44 JJ |
30880 | /* end confdefs.h. */ |
30881 | int foovar = 0; | |
30882 | int | |
30883 | main () | |
30884 | { | |
30885 | ||
0536d5b3 JB |
30886 | if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL); |
30887 | if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL); | |
5e805e44 JJ |
30888 | ; |
30889 | return 0; | |
30890 | } | |
30891 | _ACEOF | |
5213506e | 30892 | if ac_fn_c_try_link "$LINENO"; then : |
0536d5b3 | 30893 | libgfor_cv_have_atomic_fetch_add=yes |
5e805e44 | 30894 | else |
0536d5b3 | 30895 | libgfor_cv_have_atomic_fetch_add=no |
5e805e44 | 30896 | fi |
5213506e RW |
30897 | rm -f core conftest.err conftest.$ac_objext \ |
30898 | conftest$ac_exeext conftest.$ac_ext | |
5e805e44 | 30899 | fi |
0536d5b3 JB |
30900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5 |
30901 | $as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; } | |
30902 | if test $libgfor_cv_have_atomic_fetch_add = yes; then | |
5e805e44 | 30903 | |
0536d5b3 | 30904 | $as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h |
5e805e44 JJ |
30905 | |
30906 | fi | |
30907 | ||
6a822a74 FXC |
30908 | # Check out #pragma weak. |
30909 | ||
30910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5 | |
30911 | $as_echo_n "checking whether pragma weak works... " >&6; } | |
22e05272 | 30912 | if ${libgfor_cv_have_pragma_weak+:} false; then : |
6a822a74 FXC |
30913 | $as_echo_n "(cached) " >&6 |
30914 | else | |
30915 | ||
30916 | gfor_save_CFLAGS="$CFLAGS" | |
30917 | CFLAGS="$CFLAGS -Wunknown-pragmas" | |
30918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30919 | /* end confdefs.h. */ | |
30920 | ||
30921 | void foo (void); | |
30922 | #pragma weak foo | |
30923 | ||
30924 | int | |
30925 | main () | |
30926 | { | |
30927 | if (foo) foo (); | |
30928 | ; | |
30929 | return 0; | |
30930 | } | |
30931 | _ACEOF | |
30932 | if ac_fn_c_try_compile "$LINENO"; then : | |
30933 | libgfor_cv_have_pragma_weak=yes | |
30934 | else | |
30935 | libgfor_cv_have_pragma_weak=no | |
30936 | fi | |
30937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
30938 | fi | |
30939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5 | |
30940 | $as_echo "$libgfor_cv_have_pragma_weak" >&6; } | |
30941 | if test $libgfor_cv_have_pragma_weak = yes; then | |
30942 | ||
30943 | $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h | |
30944 | ||
30945 | fi | |
30946 | case "$host" in | |
30947 | *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* ) | |
30948 | ||
30949 | $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h | |
30950 | ||
30951 | ;; | |
30952 | esac | |
30953 | ||
e7854993 | 30954 | # Check out weakref support. |
5e805e44 | 30955 | |
e7854993 FXC |
30956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5 |
30957 | $as_echo_n "checking whether the target supports weakref... " >&6; } | |
22e05272 | 30958 | if ${libgfor_cv_have_weakref+:} false; then : |
5213506e | 30959 | $as_echo_n "(cached) " >&6 |
5e805e44 JJ |
30960 | else |
30961 | ||
e7854993 FXC |
30962 | save_CFLAGS="$CFLAGS" |
30963 | CFLAGS="$CFLAGS -Wunknown-pragmas -Werror" | |
30964 | if test x$gcc_no_link = xyes; then | |
22e05272 | 30965 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
e7854993 FXC |
30966 | fi |
30967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5e805e44 | 30968 | /* end confdefs.h. */ |
de15ea94 | 30969 | |
e7854993 | 30970 | static int mytoto (int) __attribute__((__weakref__("toto"))); |
de15ea94 | 30971 | |
5e805e44 JJ |
30972 | int |
30973 | main () | |
30974 | { | |
e7854993 | 30975 | return (mytoto != 0); |
5e805e44 JJ |
30976 | ; |
30977 | return 0; | |
30978 | } | |
30979 | _ACEOF | |
e7854993 FXC |
30980 | if ac_fn_c_try_link "$LINENO"; then : |
30981 | libgfor_cv_have_weakref=yes | |
5e805e44 | 30982 | else |
e7854993 | 30983 | libgfor_cv_have_weakref=no |
5e805e44 | 30984 | fi |
e7854993 FXC |
30985 | rm -f core conftest.err conftest.$ac_objext \ |
30986 | conftest$ac_exeext conftest.$ac_ext | |
30987 | CFLAGS="$save_CFLAGS" | |
5e805e44 | 30988 | fi |
e7854993 FXC |
30989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5 |
30990 | $as_echo "$libgfor_cv_have_weakref" >&6; } | |
30991 | if test $libgfor_cv_have_weakref = yes; then | |
5e805e44 | 30992 | |
e7854993 | 30993 | $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h |
5e805e44 JJ |
30994 | |
30995 | fi | |
30996 | ||
10c682a0 FXC |
30997 | # Various other checks on target |
30998 | ||
5213506e RW |
30999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5 |
31000 | $as_echo_n "checking whether the target can unlink an open file... " >&6; } | |
22e05272 | 31001 | if ${libgfor_cv_have_unlink_open_file+:} false; then : |
5213506e | 31002 | $as_echo_n "(cached) " >&6 |
10c682a0 FXC |
31003 | else |
31004 | ||
5213506e | 31005 | if test "$cross_compiling" = yes; then : |
10c682a0 FXC |
31006 | |
31007 | case "${target}" in | |
6d26724a RW |
31008 | *mingw*) libgfor_cv_have_unlink_open_file=no ;; |
31009 | *) libgfor_cv_have_unlink_open_file=yes;; | |
10c682a0 FXC |
31010 | esac |
31011 | else | |
5213506e | 31012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10c682a0 FXC |
31013 | /* end confdefs.h. */ |
31014 | ||
31015 | #include <errno.h> | |
31016 | #include <fcntl.h> | |
31017 | #include <unistd.h> | |
31018 | #include <sys/stat.h> | |
31019 | ||
31020 | int main () | |
31021 | { | |
31022 | int fd; | |
31023 | ||
42dfafa9 | 31024 | fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR); |
10c682a0 FXC |
31025 | if (fd <= 0) |
31026 | return 0; | |
31027 | if (unlink ("testfile") == -1) | |
31028 | return 1; | |
31029 | write (fd, "This is a test\n", 15); | |
31030 | close (fd); | |
31031 | ||
42dfafa9 | 31032 | if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT) |
10c682a0 FXC |
31033 | return 0; |
31034 | else | |
31035 | return 1; | |
31036 | } | |
31037 | _ACEOF | |
5213506e | 31038 | if ac_fn_c_try_run "$LINENO"; then : |
6d26724a | 31039 | libgfor_cv_have_unlink_open_file=yes |
10c682a0 | 31040 | else |
5213506e | 31041 | libgfor_cv_have_unlink_open_file=no |
10c682a0 | 31042 | fi |
5213506e RW |
31043 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
31044 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
10c682a0 | 31045 | fi |
5213506e | 31046 | |
10c682a0 | 31047 | fi |
5213506e RW |
31048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5 |
31049 | $as_echo "$libgfor_cv_have_unlink_open_file" >&6; } | |
6d26724a | 31050 | if test x"$libgfor_cv_have_unlink_open_file" = xyes; then |
10c682a0 | 31051 | |
5213506e | 31052 | $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h |
10c682a0 FXC |
31053 | |
31054 | fi | |
31055 | ||
3c127520 FXC |
31056 | # Check whether line terminator is LF or CRLF |
31057 | ||
5213506e RW |
31058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5 |
31059 | $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; } | |
22e05272 | 31060 | if ${libgfor_cv_have_crlf+:} false; then : |
5213506e | 31061 | $as_echo_n "(cached) " >&6 |
3c127520 FXC |
31062 | else |
31063 | ||
5213506e | 31064 | if test "$cross_compiling" = yes; then : |
3c127520 FXC |
31065 | |
31066 | case "${target}" in | |
6d26724a RW |
31067 | *mingw*) libgfor_cv_have_crlf=yes ;; |
31068 | *) libgfor_cv_have_crlf=no;; | |
3c127520 FXC |
31069 | esac |
31070 | else | |
5213506e | 31071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3c127520 FXC |
31072 | /* end confdefs.h. */ |
31073 | ||
31074 | /* This test program should exit with status 0 if system uses a CRLF as | |
31075 | line terminator, and status 1 otherwise. | |
31076 | Since it is used to check for mingw systems, and should return 0 in any | |
31077 | other case, in case of a failure we will not use CRLF. */ | |
31078 | #include <sys/stat.h> | |
31079 | #include <stdlib.h> | |
31080 | #include <fcntl.h> | |
31081 | #include <stdio.h> | |
31082 | ||
31083 | int main () | |
31084 | { | |
31085 | #ifndef O_BINARY | |
31086 | exit(1); | |
31087 | #else | |
31088 | int fd, bytes; | |
31089 | char buff[5]; | |
31090 | ||
31091 | fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); | |
31092 | if (fd < 0) | |
31093 | exit(1); | |
31094 | if (write (fd, "\n", 1) < 0) | |
31095 | perror ("write"); | |
31096 | ||
31097 | close (fd); | |
31098 | ||
31099 | if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) | |
31100 | exit(1); | |
31101 | bytes = read (fd, buff, 5); | |
31102 | if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') | |
31103 | exit(0); | |
31104 | else | |
31105 | exit(1); | |
31106 | #endif | |
31107 | } | |
31108 | _ACEOF | |
5213506e | 31109 | if ac_fn_c_try_run "$LINENO"; then : |
6d26724a | 31110 | libgfor_cv_have_crlf=yes |
3c127520 | 31111 | else |
5213506e | 31112 | libgfor_cv_have_crlf=no |
3c127520 | 31113 | fi |
5213506e RW |
31114 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
31115 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3c127520 | 31116 | fi |
5213506e | 31117 | |
3c127520 | 31118 | fi |
5213506e RW |
31119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5 |
31120 | $as_echo "$libgfor_cv_have_crlf" >&6; } | |
6d26724a | 31121 | if test x"$libgfor_cv_have_crlf" = xyes; then |
3c127520 | 31122 | |
5213506e | 31123 | $as_echo "#define HAVE_CRLF 1" >>confdefs.h |
3c127520 FXC |
31124 | |
31125 | fi | |
31126 | ||
31cfd832 TK |
31127 | # Check whether we support AVX extensions |
31128 | ||
31129 | ac_save_CFLAGS="$CFLAGS" | |
31130 | CFLAGS="-O2 -mavx" | |
31131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31132 | /* end confdefs.h. */ | |
31133 | ||
31134 | void _mm256_zeroall (void) | |
31135 | { | |
31136 | __builtin_ia32_vzeroall (); | |
31137 | } | |
31138 | int | |
31139 | main () | |
31140 | { | |
31141 | ||
31142 | ; | |
31143 | return 0; | |
31144 | } | |
31145 | _ACEOF | |
31146 | if ac_fn_c_try_compile "$LINENO"; then : | |
31147 | ||
31148 | $as_echo "#define HAVE_AVX 1" >>confdefs.h | |
31149 | ||
31150 | fi | |
31151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31152 | CFLAGS="$ac_save_CFLAGS" | |
31153 | ||
31154 | ||
49ad4d2c | 31155 | # Check whether we support AVX2 extensions |
31cfd832 TK |
31156 | |
31157 | ac_save_CFLAGS="$CFLAGS" | |
31158 | CFLAGS="-O2 -mavx2" | |
31159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31160 | /* end confdefs.h. */ | |
31161 | ||
31162 | typedef long long __v4di __attribute__ ((__vector_size__ (32))); | |
31163 | __v4di | |
31164 | mm256_is32_andnotsi256 (__v4di __X, __v4di __Y) | |
31165 | { | |
31166 | return __builtin_ia32_andnotsi256 (__X, __Y); | |
31167 | } | |
31168 | int | |
31169 | main () | |
31170 | { | |
31171 | ||
31172 | ; | |
31173 | return 0; | |
31174 | } | |
31175 | _ACEOF | |
31176 | if ac_fn_c_try_compile "$LINENO"; then : | |
31177 | ||
31178 | $as_echo "#define HAVE_AVX2 1" >>confdefs.h | |
31179 | ||
31180 | fi | |
31181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31182 | CFLAGS="$ac_save_CFLAGS" | |
31183 | ||
31184 | ||
49ad4d2c | 31185 | # Check whether we support AVX512f extensions |
31cfd832 TK |
31186 | |
31187 | ac_save_CFLAGS="$CFLAGS" | |
31188 | CFLAGS="-O2 -mavx512f" | |
31189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31190 | /* end confdefs.h. */ | |
31191 | ||
31192 | typedef double __m512d __attribute__ ((__vector_size__ (64))); | |
31193 | __m512d _mm512_add (__m512d a) | |
31194 | { | |
9db0a8c2 JJ |
31195 | __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4); |
31196 | /* For -m64/-mx32 also verify that code will work even if | |
31197 | the target uses call saved zmm16+ and needs to emit | |
31198 | unwind info for them (e.g. on mingw). See PR79127. */ | |
31199 | #ifdef __x86_64__ | |
31200 | asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19"); | |
31201 | #endif | |
31202 | return b; | |
31cfd832 TK |
31203 | } |
31204 | int | |
31205 | main () | |
31206 | { | |
31207 | ||
31208 | ; | |
31209 | return 0; | |
31210 | } | |
31211 | _ACEOF | |
31212 | if ac_fn_c_try_compile "$LINENO"; then : | |
31213 | ||
31214 | $as_echo "#define HAVE_AVX512F 1" >>confdefs.h | |
31215 | ||
31216 | fi | |
31217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31218 | CFLAGS="$ac_save_CFLAGS" | |
31219 | ||
31220 | ||
1d5cf7fc TK |
31221 | # Check for FMA3 extensions |
31222 | ||
31223 | ac_save_CFLAGS="$CFLAGS" | |
31224 | CFLAGS="-O2 -mfma -mno-fma4" | |
31225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31226 | /* end confdefs.h. */ | |
31227 | ||
9698e1bb RO |
31228 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
31229 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
31230 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
1d5cf7fc | 31231 | { |
9698e1bb RO |
31232 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
31233 | (__v4sf)__B, | |
31234 | (__v4sf)__C); | |
1d5cf7fc TK |
31235 | } |
31236 | int | |
31237 | main () | |
31238 | { | |
31239 | ||
31240 | ; | |
31241 | return 0; | |
31242 | } | |
31243 | _ACEOF | |
31244 | if ac_fn_c_try_compile "$LINENO"; then : | |
31245 | ||
31246 | $as_echo "#define HAVE_FMA3 1" >>confdefs.h | |
31247 | ||
31248 | fi | |
31249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31250 | CFLAGS="$ac_save_CFLAGS" | |
31251 | ||
31252 | ||
31253 | # Check for FMA4 extensions | |
31254 | ||
31255 | ac_save_CFLAGS="$CFLAGS" | |
31256 | CFLAGS="-O2 -mfma4 -mno-fma" | |
31257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31258 | /* end confdefs.h. */ | |
31259 | ||
9698e1bb RO |
31260 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
31261 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
31262 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
1d5cf7fc | 31263 | { |
9698e1bb RO |
31264 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
31265 | (__v4sf)__B, | |
31266 | (__v4sf)__C); | |
1d5cf7fc TK |
31267 | } |
31268 | int | |
31269 | main () | |
31270 | { | |
31271 | ||
31272 | ; | |
31273 | return 0; | |
31274 | } | |
31275 | _ACEOF | |
31276 | if ac_fn_c_try_compile "$LINENO"; then : | |
31277 | ||
31278 | $as_echo "#define HAVE_FMA4 1" >>confdefs.h | |
31279 | ||
31280 | fi | |
31281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31282 | CFLAGS="$ac_save_CFLAGS" | |
31283 | ||
31284 | ||
31285 | # Check if AVX128 works | |
31286 | ||
31287 | ac_save_CFLAGS="$CFLAGS" | |
31288 | CFLAGS="-O2 -mavx -mprefer-avx128" | |
31289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
31290 | /* end confdefs.h. */ | |
31291 | ||
31292 | void foo() | |
31293 | { | |
31294 | } | |
31295 | int | |
31296 | main () | |
31297 | { | |
31298 | ||
31299 | ; | |
31300 | return 0; | |
31301 | } | |
31302 | _ACEOF | |
31303 | if ac_fn_c_try_compile "$LINENO"; then : | |
31304 | ||
31305 | $as_echo "#define HAVE_AVX128 1" >>confdefs.h | |
31306 | ||
31307 | if true; then | |
31308 | HAVE_AVX128_TRUE= | |
31309 | HAVE_AVX128_FALSE='#' | |
31310 | else | |
31311 | HAVE_AVX128_TRUE='#' | |
31312 | HAVE_AVX128_FALSE= | |
31313 | fi | |
31314 | ||
5596d26a TK |
31315 | else |
31316 | if false; then | |
31317 | HAVE_AVX128_TRUE= | |
31318 | HAVE_AVX128_FALSE='#' | |
31319 | else | |
31320 | HAVE_AVX128_TRUE='#' | |
31321 | HAVE_AVX128_FALSE= | |
31322 | fi | |
31323 | ||
1d5cf7fc TK |
31324 | fi |
31325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
31326 | CFLAGS="$ac_save_CFLAGS" | |
31327 | ||
31328 | ||
3c36aa6b JJ |
31329 | # Determine what GCC version number to use in filesystem paths. |
31330 | ||
31331 | get_gcc_base_ver="cat" | |
31332 | ||
31333 | # Check whether --with-gcc-major-version-only was given. | |
31334 | if test "${with_gcc_major_version_only+set}" = set; then : | |
31335 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
001ddaa8 | 31336 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
31337 | fi |
31338 | ||
31339 | fi | |
31340 | ||
31341 | ||
31342 | ||
31343 | ||
6de9cd9a DN |
31344 | cat >confcache <<\_ACEOF |
31345 | # This file is a shell script that caches the results of configure | |
31346 | # tests run on this system so they can be shared between configure | |
31347 | # scripts and configure runs, see configure's option --config-cache. | |
31348 | # It is not useful on other systems. If it contains results you don't | |
31349 | # want to keep, you may remove or edit it. | |
31350 | # | |
31351 | # config.status only pays attention to the cache file if you give it | |
31352 | # the --recheck option to rerun configure. | |
31353 | # | |
31354 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31355 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31356 | # following values. | |
31357 | ||
31358 | _ACEOF | |
31359 | ||
31360 | # The following way of writing the cache mishandles newlines in values, | |
31361 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 31362 | # So, we kill variables containing newlines. |
6de9cd9a DN |
31363 | # Ultrix sh set writes to stderr and can't be redirected directly, |
31364 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
31365 | ( |
31366 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
31367 | eval ac_val=\$$ac_var | |
31368 | case $ac_val in #( | |
31369 | *${as_nl}*) | |
31370 | case $ac_var in #( | |
31371 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
31372 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
31373 | esac | |
31374 | case $ac_var in #( | |
31375 | _ | IFS | as_nl) ;; #( | |
31376 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
31377 | *) { eval $ac_var=; unset $ac_var;} ;; | |
31378 | esac ;; | |
31379 | esac | |
31380 | done | |
31381 | ||
6de9cd9a | 31382 | (set) 2>&1 | |
5213506e RW |
31383 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
31384 | *${as_nl}ac_space=\ *) | |
31385 | # `set' does not quote correctly, so add quotes: double-quote | |
31386 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
6de9cd9a DN |
31387 | sed -n \ |
31388 | "s/'/'\\\\''/g; | |
31389 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 31390 | ;; #( |
6de9cd9a DN |
31391 | *) |
31392 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 31393 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
6de9cd9a | 31394 | ;; |
5213506e RW |
31395 | esac | |
31396 | sort | |
31397 | ) | | |
6de9cd9a | 31398 | sed ' |
5213506e | 31399 | /^ac_cv_env_/b end |
6de9cd9a | 31400 | t clear |
5213506e | 31401 | :clear |
6de9cd9a DN |
31402 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
31403 | t end | |
5213506e RW |
31404 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
31405 | :end' >>confcache | |
31406 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
31407 | if test -w "$cache_file"; then | |
22e05272 | 31408 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
31409 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
31410 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
31411 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
31412 | cat confcache >"$cache_file" | |
31413 | else | |
31414 | case $cache_file in #( | |
31415 | */* | ?:*) | |
31416 | mv -f confcache "$cache_file"$$ && | |
31417 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
31418 | *) | |
31419 | mv -f confcache "$cache_file" ;; | |
31420 | esac | |
31421 | fi | |
31422 | fi | |
6de9cd9a | 31423 | else |
5213506e RW |
31424 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
31425 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6de9cd9a DN |
31426 | fi |
31427 | fi | |
31428 | rm -f confcache | |
31429 | ||
96b8a615 AJ |
31430 | if test ${multilib} = yes; then |
31431 | multilib_arg="--enable-multilib" | |
6de9cd9a | 31432 | else |
96b8a615 | 31433 | multilib_arg= |
6de9cd9a | 31434 | fi |
6de9cd9a | 31435 | |
1ec601bf FXC |
31436 | # Write our Makefile and spec file. |
31437 | ac_config_files="$ac_config_files Makefile libgfortran.spec" | |
96b8a615 | 31438 | |
6de9cd9a DN |
31439 | cat >confcache <<\_ACEOF |
31440 | # This file is a shell script that caches the results of configure | |
31441 | # tests run on this system so they can be shared between configure | |
31442 | # scripts and configure runs, see configure's option --config-cache. | |
31443 | # It is not useful on other systems. If it contains results you don't | |
31444 | # want to keep, you may remove or edit it. | |
31445 | # | |
31446 | # config.status only pays attention to the cache file if you give it | |
31447 | # the --recheck option to rerun configure. | |
31448 | # | |
31449 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31450 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31451 | # following values. | |
31452 | ||
31453 | _ACEOF | |
31454 | ||
31455 | # The following way of writing the cache mishandles newlines in values, | |
31456 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 31457 | # So, we kill variables containing newlines. |
6de9cd9a DN |
31458 | # Ultrix sh set writes to stderr and can't be redirected directly, |
31459 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
31460 | ( |
31461 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
31462 | eval ac_val=\$$ac_var | |
31463 | case $ac_val in #( | |
31464 | *${as_nl}*) | |
31465 | case $ac_var in #( | |
31466 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
31467 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
31468 | esac | |
31469 | case $ac_var in #( | |
31470 | _ | IFS | as_nl) ;; #( | |
31471 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
31472 | *) { eval $ac_var=; unset $ac_var;} ;; | |
31473 | esac ;; | |
31474 | esac | |
31475 | done | |
31476 | ||
6de9cd9a | 31477 | (set) 2>&1 | |
5213506e RW |
31478 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
31479 | *${as_nl}ac_space=\ *) | |
31480 | # `set' does not quote correctly, so add quotes: double-quote | |
31481 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
6de9cd9a DN |
31482 | sed -n \ |
31483 | "s/'/'\\\\''/g; | |
31484 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 31485 | ;; #( |
6de9cd9a DN |
31486 | *) |
31487 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 31488 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
6de9cd9a | 31489 | ;; |
5213506e RW |
31490 | esac | |
31491 | sort | |
31492 | ) | | |
6de9cd9a | 31493 | sed ' |
5213506e | 31494 | /^ac_cv_env_/b end |
6de9cd9a | 31495 | t clear |
5213506e | 31496 | :clear |
6de9cd9a DN |
31497 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
31498 | t end | |
5213506e RW |
31499 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
31500 | :end' >>confcache | |
31501 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
31502 | if test -w "$cache_file"; then | |
22e05272 | 31503 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
31504 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
31505 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
31506 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
31507 | cat confcache >"$cache_file" | |
31508 | else | |
31509 | case $cache_file in #( | |
31510 | */* | ?:*) | |
31511 | mv -f confcache "$cache_file"$$ && | |
31512 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
31513 | *) | |
31514 | mv -f confcache "$cache_file" ;; | |
31515 | esac | |
31516 | fi | |
31517 | fi | |
6de9cd9a | 31518 | else |
5213506e RW |
31519 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
31520 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6de9cd9a DN |
31521 | fi |
31522 | fi | |
31523 | rm -f confcache | |
31524 | ||
31525 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
31526 | # Let make expand exec_prefix. | |
31527 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
31528 | ||
6de9cd9a DN |
31529 | DEFS=-DHAVE_CONFIG_H |
31530 | ||
31531 | ac_libobjs= | |
31532 | ac_ltlibobjs= | |
22e05272 | 31533 | U= |
6de9cd9a DN |
31534 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
31535 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
31536 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
31537 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
31538 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
31539 | # will be set to the directory where LIBOBJS objects are built. | |
31540 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
31541 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
6de9cd9a DN |
31542 | done |
31543 | LIBOBJS=$ac_libobjs | |
31544 | ||
31545 | LTLIBOBJS=$ac_ltlibobjs | |
31546 | ||
31547 | ||
22e05272 JM |
31548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
31549 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
31550 | if test -n "$am_sleep_pid"; then | |
31551 | # Hide warnings about reused PIDs. | |
31552 | wait $am_sleep_pid 2>/dev/null | |
31553 | fi | |
31554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
31555 | $as_echo "done" >&6; } | |
5213506e RW |
31556 | if test -n "$EXEEXT"; then |
31557 | am__EXEEXT_TRUE= | |
31558 | am__EXEEXT_FALSE='#' | |
31559 | else | |
31560 | am__EXEEXT_TRUE='#' | |
31561 | am__EXEEXT_FALSE= | |
b808ac33 | 31562 | fi |
5213506e | 31563 | |
6de9cd9a | 31564 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22e05272 | 31565 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
5213506e | 31566 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
6de9cd9a | 31567 | fi |
679c0f9a | 31568 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
22e05272 | 31569 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
5213506e | 31570 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
679c0f9a TT |
31571 | fi |
31572 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
22e05272 | 31573 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
5213506e | 31574 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
679c0f9a | 31575 | fi |
21be0a5a | 31576 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
22e05272 | 31577 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
21be0a5a JB |
31578 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31579 | fi | |
49ad4d2c TK |
31580 | if test -z "${HAVE_REAL_17_TRUE}" && test -z "${HAVE_REAL_17_FALSE}"; then |
31581 | as_fn_error $? "conditional \"HAVE_REAL_17\" was never defined. | |
31582 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
31583 | fi | |
c0e7e2bf | 31584 | if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then |
22e05272 | 31585 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined. |
5213506e | 31586 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
c0e7e2bf | 31587 | fi |
49ea7a0e | 31588 | if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then |
22e05272 | 31589 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined. |
49ea7a0e RO |
31590 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31591 | fi | |
31592 | if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then | |
22e05272 | 31593 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined. |
49ea7a0e RO |
31594 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31595 | fi | |
ee95f928 | 31596 | if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then |
22e05272 | 31597 | as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined. |
ee95f928 BS |
31598 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31599 | fi | |
66dbcf2d | 31600 | if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then |
22e05272 | 31601 | as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined. |
66dbcf2d RO |
31602 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31603 | fi | |
8b198102 | 31604 | if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then |
22e05272 | 31605 | as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined. |
8b198102 FXC |
31606 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31607 | fi | |
1d5cf7fc | 31608 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
22e05272 | 31609 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
1d5cf7fc TK |
31610 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31611 | fi | |
5596d26a | 31612 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
22e05272 | 31613 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
5596d26a TK |
31614 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
31615 | fi | |
6de9cd9a | 31616 | |
22e05272 | 31617 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 31618 | ac_write_fail=0 |
6de9cd9a DN |
31619 | ac_clean_files_save=$ac_clean_files |
31620 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
31621 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
31622 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
31623 | as_write_fail=0 | |
31624 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
6de9cd9a DN |
31625 | #! $SHELL |
31626 | # Generated by $as_me. | |
31627 | # Run this file to recreate the current configuration. | |
31628 | # Compiler output produced by configure, useful for debugging | |
31629 | # configure, is in config.log if it exists. | |
31630 | ||
31631 | debug=false | |
31632 | ac_cs_recheck=false | |
31633 | ac_cs_silent=false | |
6de9cd9a | 31634 | |
5213506e RW |
31635 | SHELL=\${CONFIG_SHELL-$SHELL} |
31636 | export SHELL | |
31637 | _ASEOF | |
31638 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
31639 | ## -------------------- ## | |
31640 | ## M4sh Initialization. ## | |
31641 | ## -------------------- ## | |
31642 | ||
31643 | # Be more Bourne compatible | |
31644 | DUALCASE=1; export DUALCASE # for MKS sh | |
31645 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
6de9cd9a DN |
31646 | emulate sh |
31647 | NULLCMD=: | |
5213506e | 31648 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
6de9cd9a DN |
31649 | # is contrary to our usage. Disable this feature. |
31650 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
31651 | setopt NO_GLOB_SUBST |
31652 | else | |
31653 | case `(set -o) 2>/dev/null` in #( | |
31654 | *posix*) : | |
31655 | set -o posix ;; #( | |
31656 | *) : | |
31657 | ;; | |
31658 | esac | |
6de9cd9a | 31659 | fi |
6de9cd9a | 31660 | |
5213506e RW |
31661 | |
31662 | as_nl=' | |
31663 | ' | |
31664 | export as_nl | |
31665 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
31666 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
31667 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
31668 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
31669 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
31670 | # but without wasting forks for bash or zsh. | |
31671 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
31672 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
31673 | as_echo='print -r --' | |
31674 | as_echo_n='print -rn --' | |
31675 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
31676 | as_echo='printf %s\n' | |
31677 | as_echo_n='printf %s' | |
31678 | else | |
31679 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
31680 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
31681 | as_echo_n='/usr/ucb/echo -n' | |
31682 | else | |
31683 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
31684 | as_echo_n_body='eval | |
31685 | arg=$1; | |
31686 | case $arg in #( | |
31687 | *"$as_nl"*) | |
31688 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
31689 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
31690 | esac; | |
31691 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
31692 | ' | |
31693 | export as_echo_n_body | |
31694 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
31695 | fi | |
31696 | export as_echo_body | |
31697 | as_echo='sh -c $as_echo_body as_echo' | |
31698 | fi | |
31699 | ||
31700 | # The user is always right. | |
31701 | if test "${PATH_SEPARATOR+set}" != set; then | |
31702 | PATH_SEPARATOR=: | |
31703 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
31704 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
31705 | PATH_SEPARATOR=';' | |
31706 | } | |
6de9cd9a DN |
31707 | fi |
31708 | ||
31709 | ||
5213506e RW |
31710 | # IFS |
31711 | # We need space, tab and new line, in precisely that order. Quoting is | |
31712 | # there to prevent editors from complaining about space-tab. | |
31713 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
31714 | # splitting by setting IFS to empty value.) | |
31715 | IFS=" "" $as_nl" | |
31716 | ||
31717 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 31718 | as_myself= |
5213506e RW |
31719 | case $0 in #(( |
31720 | *[\\/]* ) as_myself=$0 ;; | |
31721 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31722 | for as_dir in $PATH | |
31723 | do | |
31724 | IFS=$as_save_IFS | |
31725 | test -z "$as_dir" && as_dir=. | |
31726 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
31727 | done | |
31728 | IFS=$as_save_IFS | |
31729 | ||
31730 | ;; | |
31731 | esac | |
31732 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
31733 | # in which case we are not to be found in the path. | |
31734 | if test "x$as_myself" = x; then | |
31735 | as_myself=$0 | |
31736 | fi | |
31737 | if test ! -f "$as_myself"; then | |
31738 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
31739 | exit 1 | |
31740 | fi | |
31741 | ||
31742 | # Unset variables that we do not need and which cause bugs (e.g. in | |
31743 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
31744 | # suppresses any "Segmentation fault" message there. '((' could | |
31745 | # trigger a bug in pdksh 5.2.14. | |
31746 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
31747 | do eval test x\${$as_var+set} = xset \ | |
31748 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
31749 | done | |
6de9cd9a DN |
31750 | PS1='$ ' |
31751 | PS2='> ' | |
31752 | PS4='+ ' | |
31753 | ||
31754 | # NLS nuisances. | |
5213506e RW |
31755 | LC_ALL=C |
31756 | export LC_ALL | |
31757 | LANGUAGE=C | |
31758 | export LANGUAGE | |
31759 | ||
31760 | # CDPATH. | |
31761 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
31762 | ||
31763 | ||
22e05272 JM |
31764 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
31765 | # ---------------------------------------- | |
5213506e RW |
31766 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
31767 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 31768 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
31769 | as_fn_error () |
31770 | { | |
22e05272 JM |
31771 | as_status=$1; test $as_status -eq 0 && as_status=1 |
31772 | if test "$4"; then | |
31773 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
31774 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
6de9cd9a | 31775 | fi |
22e05272 | 31776 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
31777 | as_fn_exit $as_status |
31778 | } # as_fn_error | |
31779 | ||
31780 | ||
31781 | # as_fn_set_status STATUS | |
31782 | # ----------------------- | |
31783 | # Set $? to STATUS, without forking. | |
31784 | as_fn_set_status () | |
31785 | { | |
31786 | return $1 | |
31787 | } # as_fn_set_status | |
31788 | ||
31789 | # as_fn_exit STATUS | |
31790 | # ----------------- | |
31791 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
31792 | as_fn_exit () | |
31793 | { | |
31794 | set +e | |
31795 | as_fn_set_status $1 | |
31796 | exit $1 | |
31797 | } # as_fn_exit | |
31798 | ||
31799 | # as_fn_unset VAR | |
31800 | # --------------- | |
31801 | # Portably unset VAR. | |
31802 | as_fn_unset () | |
31803 | { | |
31804 | { eval $1=; unset $1;} | |
31805 | } | |
31806 | as_unset=as_fn_unset | |
31807 | # as_fn_append VAR VALUE | |
31808 | # ---------------------- | |
31809 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
31810 | # advantage of any shell optimizations that allow amortized linear growth over | |
31811 | # repeated appends, instead of the typical quadratic growth present in naive | |
31812 | # implementations. | |
31813 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
31814 | eval 'as_fn_append () | |
31815 | { | |
31816 | eval $1+=\$2 | |
31817 | }' | |
31818 | else | |
31819 | as_fn_append () | |
31820 | { | |
31821 | eval $1=\$$1\$2 | |
31822 | } | |
31823 | fi # as_fn_append | |
31824 | ||
31825 | # as_fn_arith ARG... | |
31826 | # ------------------ | |
31827 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
31828 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
31829 | # must be portable across $(()) and expr. | |
31830 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
31831 | eval 'as_fn_arith () | |
31832 | { | |
31833 | as_val=$(( $* )) | |
31834 | }' | |
31835 | else | |
31836 | as_fn_arith () | |
31837 | { | |
31838 | as_val=`expr "$@" || test $? -eq 1` | |
31839 | } | |
31840 | fi # as_fn_arith | |
6de9cd9a | 31841 | |
5213506e RW |
31842 | |
31843 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
31844 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6de9cd9a DN |
31845 | as_expr=expr |
31846 | else | |
31847 | as_expr=false | |
31848 | fi | |
31849 | ||
5213506e | 31850 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6de9cd9a DN |
31851 | as_basename=basename |
31852 | else | |
31853 | as_basename=false | |
31854 | fi | |
31855 | ||
5213506e RW |
31856 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
31857 | as_dirname=dirname | |
31858 | else | |
31859 | as_dirname=false | |
31860 | fi | |
6de9cd9a | 31861 | |
5213506e | 31862 | as_me=`$as_basename -- "$0" || |
6de9cd9a DN |
31863 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
31864 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
31865 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
31866 | $as_echo X/"$0" | | |
31867 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
31868 | s//\1/ | |
31869 | q | |
31870 | } | |
31871 | /^X\/\(\/\/\)$/{ | |
31872 | s//\1/ | |
31873 | q | |
31874 | } | |
31875 | /^X\/\(\/\).*/{ | |
31876 | s//\1/ | |
31877 | q | |
31878 | } | |
31879 | s/.*/./; q'` | |
38d24731 | 31880 | |
38d24731 RW |
31881 | # Avoid depending upon Character Ranges. |
31882 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
31883 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
31884 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
31885 | as_cr_digits='0123456789' | |
31886 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
31887 | ||
5213506e RW |
31888 | ECHO_C= ECHO_N= ECHO_T= |
31889 | case `echo -n x` in #((((( | |
31890 | -n*) | |
31891 | case `echo 'xy\c'` in | |
31892 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
31893 | xy) ECHO_C='\c';; | |
31894 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
31895 | ECHO_T=' ';; | |
31896 | esac;; | |
31897 | *) | |
31898 | ECHO_N='-n';; | |
6de9cd9a DN |
31899 | esac |
31900 | ||
5213506e RW |
31901 | rm -f conf$$ conf$$.exe conf$$.file |
31902 | if test -d conf$$.dir; then | |
31903 | rm -f conf$$.dir/conf$$.file | |
6de9cd9a | 31904 | else |
5213506e RW |
31905 | rm -f conf$$.dir |
31906 | mkdir conf$$.dir 2>/dev/null | |
6de9cd9a | 31907 | fi |
5213506e RW |
31908 | if (echo >conf$$.file) 2>/dev/null; then |
31909 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
38d24731 | 31910 | as_ln_s='ln -s' |
5213506e RW |
31911 | # ... but there are two gotchas: |
31912 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
31913 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 31914 | # In both cases, we have to default to `cp -pR'. |
5213506e | 31915 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 31916 | as_ln_s='cp -pR' |
5213506e RW |
31917 | elif ln conf$$.file conf$$ 2>/dev/null; then |
31918 | as_ln_s=ln | |
31919 | else | |
22e05272 | 31920 | as_ln_s='cp -pR' |
38d24731 | 31921 | fi |
6de9cd9a | 31922 | else |
22e05272 | 31923 | as_ln_s='cp -pR' |
6de9cd9a | 31924 | fi |
5213506e RW |
31925 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
31926 | rmdir conf$$.dir 2>/dev/null | |
31927 | ||
31928 | ||
31929 | # as_fn_mkdir_p | |
31930 | # ------------- | |
31931 | # Create "$as_dir" as a directory, including parents if necessary. | |
31932 | as_fn_mkdir_p () | |
31933 | { | |
31934 | ||
31935 | case $as_dir in #( | |
31936 | -*) as_dir=./$as_dir;; | |
31937 | esac | |
31938 | test -d "$as_dir" || eval $as_mkdir_p || { | |
31939 | as_dirs= | |
31940 | while :; do | |
31941 | case $as_dir in #( | |
31942 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
31943 | *) as_qdir=$as_dir;; | |
31944 | esac | |
31945 | as_dirs="'$as_qdir' $as_dirs" | |
31946 | as_dir=`$as_dirname -- "$as_dir" || | |
31947 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
31948 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
31949 | X"$as_dir" : 'X\(//\)$' \| \ | |
31950 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
31951 | $as_echo X"$as_dir" | | |
31952 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
31953 | s//\1/ | |
31954 | q | |
31955 | } | |
31956 | /^X\(\/\/\)[^/].*/{ | |
31957 | s//\1/ | |
31958 | q | |
31959 | } | |
31960 | /^X\(\/\/\)$/{ | |
31961 | s//\1/ | |
31962 | q | |
31963 | } | |
31964 | /^X\(\/\).*/{ | |
31965 | s//\1/ | |
31966 | q | |
31967 | } | |
31968 | s/.*/./; q'` | |
31969 | test -d "$as_dir" && break | |
31970 | done | |
31971 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 31972 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 31973 | |
6de9cd9a | 31974 | |
5213506e | 31975 | } # as_fn_mkdir_p |
6de9cd9a | 31976 | if mkdir -p . 2>/dev/null; then |
5213506e | 31977 | as_mkdir_p='mkdir -p "$as_dir"' |
6de9cd9a DN |
31978 | else |
31979 | test -d ./-p && rmdir ./-p | |
31980 | as_mkdir_p=false | |
31981 | fi | |
31982 | ||
22e05272 JM |
31983 | |
31984 | # as_fn_executable_p FILE | |
31985 | # ----------------------- | |
31986 | # Test if FILE is an executable regular file. | |
31987 | as_fn_executable_p () | |
31988 | { | |
31989 | test -f "$1" && test -x "$1" | |
31990 | } # as_fn_executable_p | |
31991 | as_test_x='test -x' | |
31992 | as_executable_p=as_fn_executable_p | |
6de9cd9a DN |
31993 | |
31994 | # Sed expression to map a string onto a valid CPP name. | |
31995 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
31996 | ||
31997 | # Sed expression to map a string onto a valid variable name. | |
31998 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
31999 | ||
32000 | ||
6de9cd9a | 32001 | exec 6>&1 |
5213506e RW |
32002 | ## ----------------------------------- ## |
32003 | ## Main body of $CONFIG_STATUS script. ## | |
32004 | ## ----------------------------------- ## | |
32005 | _ASEOF | |
32006 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
32007 | ||
32008 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
32009 | # Save the log message, to keep $0 and so on meaningful, and to | |
6de9cd9a | 32010 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
32011 | # values after options handling. |
32012 | ac_log=" | |
0dce3ca1 | 32013 | This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was |
22e05272 | 32014 | generated by GNU Autoconf 2.69. Invocation command line was |
6de9cd9a DN |
32015 | |
32016 | CONFIG_FILES = $CONFIG_FILES | |
32017 | CONFIG_HEADERS = $CONFIG_HEADERS | |
32018 | CONFIG_LINKS = $CONFIG_LINKS | |
32019 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
32020 | $ $0 $@ | |
32021 | ||
5213506e RW |
32022 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
32023 | " | |
32024 | ||
6de9cd9a DN |
32025 | _ACEOF |
32026 | ||
5213506e RW |
32027 | case $ac_config_files in *" |
32028 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
32029 | esac | |
78511f8b | 32030 | |
5213506e RW |
32031 | case $ac_config_headers in *" |
32032 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
32033 | esac | |
38d24731 | 32034 | |
38d24731 | 32035 | |
5213506e RW |
32036 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
32037 | # Files that config.status was made for. | |
32038 | config_files="$ac_config_files" | |
32039 | config_headers="$ac_config_headers" | |
32040 | config_commands="$ac_config_commands" | |
6de9cd9a | 32041 | |
5213506e | 32042 | _ACEOF |
38d24731 | 32043 | |
5213506e | 32044 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6de9cd9a | 32045 | ac_cs_usage="\ |
5213506e RW |
32046 | \`$as_me' instantiates files and other configuration actions |
32047 | from templates according to the current configuration. Unless the files | |
32048 | and actions are specified as TAGs, all are instantiated by default. | |
6de9cd9a | 32049 | |
5213506e | 32050 | Usage: $0 [OPTION]... [TAG]... |
6de9cd9a DN |
32051 | |
32052 | -h, --help print this help, then exit | |
5213506e | 32053 | -V, --version print version number and configuration settings, then exit |
22e05272 | 32054 | --config print configuration, then exit |
5213506e RW |
32055 | -q, --quiet, --silent |
32056 | do not print progress messages | |
6de9cd9a DN |
32057 | -d, --debug don't remove temporary files |
32058 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
32059 | --file=FILE[:TEMPLATE] |
32060 | instantiate the configuration file FILE | |
32061 | --header=FILE[:TEMPLATE] | |
32062 | instantiate the configuration header FILE | |
6de9cd9a DN |
32063 | |
32064 | Configuration files: | |
32065 | $config_files | |
32066 | ||
32067 | Configuration headers: | |
32068 | $config_headers | |
32069 | ||
32070 | Configuration commands: | |
32071 | $config_commands | |
32072 | ||
5213506e RW |
32073 | Report bugs to the package provider. |
32074 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
32075 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
38d24731 | 32076 | |
5213506e RW |
32077 | _ACEOF |
32078 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 32079 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
6de9cd9a | 32080 | ac_cs_version="\\ |
0dce3ca1 | 32081 | GNU Fortran Runtime Library config.status 0.3 |
22e05272 JM |
32082 | configured by $0, generated by GNU Autoconf 2.69, |
32083 | with options \\"\$ac_cs_config\\" | |
6de9cd9a | 32084 | |
22e05272 | 32085 | Copyright (C) 2012 Free Software Foundation, Inc. |
6de9cd9a DN |
32086 | This config.status script is free software; the Free Software Foundation |
32087 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
32088 | |
32089 | ac_pwd='$ac_pwd' | |
32090 | srcdir='$srcdir' | |
32091 | INSTALL='$INSTALL' | |
32092 | MKDIR_P='$MKDIR_P' | |
32093 | AWK='$AWK' | |
32094 | test -n "\$AWK" || AWK=awk | |
6de9cd9a DN |
32095 | _ACEOF |
32096 | ||
5213506e RW |
32097 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
32098 | # The default lists apply if the user does not specify any file. | |
6de9cd9a DN |
32099 | ac_need_defaults=: |
32100 | while test $# != 0 | |
32101 | do | |
32102 | case $1 in | |
22e05272 | 32103 | --*=?*) |
5213506e RW |
32104 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
32105 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
6de9cd9a DN |
32106 | ac_shift=: |
32107 | ;; | |
22e05272 JM |
32108 | --*=) |
32109 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
32110 | ac_optarg= | |
32111 | ac_shift=: | |
32112 | ;; | |
5213506e | 32113 | *) |
6de9cd9a DN |
32114 | ac_option=$1 |
32115 | ac_optarg=$2 | |
32116 | ac_shift=shift | |
32117 | ;; | |
6de9cd9a DN |
32118 | esac |
32119 | ||
32120 | case $ac_option in | |
32121 | # Handling of the options. | |
6de9cd9a DN |
32122 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
32123 | ac_cs_recheck=: ;; | |
5213506e RW |
32124 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
32125 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
32126 | --config | --confi | --conf | --con | --co | --c ) |
32127 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 32128 | --debug | --debu | --deb | --de | --d | -d ) |
6de9cd9a DN |
32129 | debug=: ;; |
32130 | --file | --fil | --fi | --f ) | |
32131 | $ac_shift | |
5213506e RW |
32132 | case $ac_optarg in |
32133 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 32134 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
32135 | esac |
32136 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
6de9cd9a DN |
32137 | ac_need_defaults=false;; |
32138 | --header | --heade | --head | --hea ) | |
32139 | $ac_shift | |
5213506e RW |
32140 | case $ac_optarg in |
32141 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
32142 | esac | |
32143 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
6de9cd9a | 32144 | ac_need_defaults=false;; |
5213506e RW |
32145 | --he | --h) |
32146 | # Conflict between --help and --header | |
22e05272 | 32147 | as_fn_error $? "ambiguous option: \`$1' |
5213506e RW |
32148 | Try \`$0 --help' for more information.";; |
32149 | --help | --hel | -h ) | |
32150 | $as_echo "$ac_cs_usage"; exit ;; | |
6de9cd9a DN |
32151 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
32152 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
32153 | ac_cs_silent=: ;; | |
32154 | ||
32155 | # This is an error. | |
22e05272 | 32156 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 32157 | Try \`$0 --help' for more information." ;; |
6de9cd9a | 32158 | |
5213506e RW |
32159 | *) as_fn_append ac_config_targets " $1" |
32160 | ac_need_defaults=false ;; | |
6de9cd9a DN |
32161 | |
32162 | esac | |
32163 | shift | |
32164 | done | |
32165 | ||
32166 | ac_configure_extra_args= | |
32167 | ||
32168 | if $ac_cs_silent; then | |
32169 | exec 6>/dev/null | |
32170 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
32171 | fi | |
32172 | ||
32173 | _ACEOF | |
5213506e | 32174 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6de9cd9a | 32175 | if \$ac_cs_recheck; then |
22e05272 | 32176 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
32177 | shift |
32178 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
32179 | CONFIG_SHELL='$SHELL' | |
32180 | export CONFIG_SHELL | |
32181 | exec "\$@" | |
6de9cd9a DN |
32182 | fi |
32183 | ||
1cf3d07d | 32184 | _ACEOF |
5213506e RW |
32185 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
32186 | exec 5>>config.log | |
32187 | { | |
32188 | echo | |
32189 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
32190 | ## Running $as_me. ## | |
32191 | _ASBOX | |
32192 | $as_echo "$ac_log" | |
32193 | } >&5 | |
1cf3d07d | 32194 | |
5213506e RW |
32195 | _ACEOF |
32196 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1cf3d07d | 32197 | # |
5213506e | 32198 | # INIT-COMMANDS |
1cf3d07d SE |
32199 | # |
32200 | ||
1cf3d07d SE |
32201 | srcdir="$srcdir" |
32202 | host="$host" | |
32203 | target="$target" | |
32204 | with_multisubdir="$with_multisubdir" | |
32205 | with_multisrctop="$with_multisrctop" | |
32206 | with_target_subdir="$with_target_subdir" | |
32207 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
32208 | multi_basedir="$multi_basedir" | |
32209 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
32210 | CC="$CC" | |
2017c370 JB |
32211 | CXX="$CXX" |
32212 | GFORTRAN="$GFORTRAN" | |
22e05272 | 32213 | GDC="$GDC" |
1cf3d07d SE |
32214 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
32215 | ||
32216 | ||
32217 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
32218 | # if CDPATH is set. | |
32219 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
32220 | ||
32221 | sed_quote_subst='$sed_quote_subst' | |
32222 | double_quote_subst='$double_quote_subst' | |
32223 | delay_variable_subst='$delay_variable_subst' | |
66dbcf2d RO |
32224 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
32225 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
32226 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
32227 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
32228 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
32229 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
32230 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
32231 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
32232 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
32233 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
32234 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
32235 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
32236 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
32237 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
32238 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
32239 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
32240 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
32241 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
32242 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
32243 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
32244 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
32245 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
32246 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
32247 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
32248 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
32249 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
32250 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
32251 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
32252 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
32253 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
32254 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
32255 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
32256 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
32257 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
32258 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
32259 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
32260 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
32261 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32262 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32263 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
32264 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
32265 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
32266 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
32267 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
32268 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
32269 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
32270 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
32271 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
32272 | 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"`' | |
32273 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
32274 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
32275 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
32276 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
32277 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
32278 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
32279 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
32280 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
32281 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
32282 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
32283 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
32284 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
32285 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
32286 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
32287 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
32288 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
32289 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
32290 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
32291 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
32292 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
32293 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
32294 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
32295 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
32296 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
32297 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
32298 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
32299 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
32300 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
32301 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
32302 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
32303 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
32304 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
32305 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
32306 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
32307 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
32308 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
32309 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
32310 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
32311 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
32312 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
32313 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
32314 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
32315 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
32316 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
32317 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
32318 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
32319 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
32320 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
32321 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
32322 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
32323 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
32324 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
32325 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
32326 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
32327 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
32328 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
32329 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
32330 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
32331 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32332 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
32333 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
32334 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
32335 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
32336 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
32337 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
32338 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
32339 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
32340 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
32341 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
32342 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
32343 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
32344 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
32345 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
32346 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
32347 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
32348 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
32349 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
32350 | LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' | |
32351 | reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' | |
32352 | reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32353 | old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32354 | compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' | |
32355 | GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' | |
32356 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' | |
32357 | lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' | |
32358 | lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' | |
32359 | lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' | |
32360 | lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' | |
32361 | archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' | |
32362 | enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' | |
32363 | export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
32364 | whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
32365 | compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' | |
32366 | old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32367 | old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32368 | archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32369 | archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32370 | module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32371 | module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32372 | with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' | |
32373 | allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
32374 | no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
32375 | hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
32376 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' | |
32377 | hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' | |
32378 | hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' | |
32379 | hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' | |
32380 | hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' | |
32381 | hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' | |
32382 | hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' | |
32383 | inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' | |
32384 | link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' | |
32385 | fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' | |
32386 | always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' | |
32387 | export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32388 | exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
32389 | include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
32390 | prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
32391 | file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' | |
32392 | hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' | |
32393 | compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' | |
32394 | predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
32395 | postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
32396 | predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' | |
32397 | postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' | |
32398 | compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' | |
1cf3d07d SE |
32399 | |
32400 | LTCC='$LTCC' | |
32401 | LTCFLAGS='$LTCFLAGS' | |
32402 | compiler='$compiler_DEFAULT' | |
32403 | ||
43e02a8a RW |
32404 | # A function that is used when there is no print builtin or printf. |
32405 | func_fallback_echo () | |
32406 | { | |
32407 | eval 'cat <<_LTECHO_EOF | |
32408 | \$1 | |
32409 | _LTECHO_EOF' | |
32410 | } | |
32411 | ||
1cf3d07d | 32412 | # Quote evaled strings. |
66dbcf2d | 32413 | for var in SED \ |
1cf3d07d SE |
32414 | GREP \ |
32415 | EGREP \ | |
32416 | FGREP \ | |
66dbcf2d RO |
32417 | SHELL \ |
32418 | ECHO \ | |
1cf3d07d SE |
32419 | LD \ |
32420 | NM \ | |
32421 | LN_S \ | |
32422 | lt_SP2NL \ | |
32423 | lt_NL2SP \ | |
32424 | reload_flag \ | |
d58dead8 | 32425 | OBJDUMP \ |
1cf3d07d SE |
32426 | deplibs_check_method \ |
32427 | file_magic_cmd \ | |
32428 | AR \ | |
32429 | AR_FLAGS \ | |
32430 | STRIP \ | |
32431 | RANLIB \ | |
32432 | CC \ | |
32433 | CFLAGS \ | |
32434 | compiler \ | |
32435 | lt_cv_sys_global_symbol_pipe \ | |
32436 | lt_cv_sys_global_symbol_to_cdecl \ | |
32437 | lt_cv_sys_global_symbol_to_c_name_address \ | |
d58dead8 | 32438 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
1cf3d07d SE |
32439 | lt_prog_compiler_no_builtin_flag \ |
32440 | lt_prog_compiler_wl \ | |
32441 | lt_prog_compiler_pic \ | |
32442 | lt_prog_compiler_static \ | |
32443 | lt_cv_prog_compiler_c_o \ | |
32444 | need_locks \ | |
d58dead8 PG |
32445 | DSYMUTIL \ |
32446 | NMEDIT \ | |
32447 | LIPO \ | |
32448 | OTOOL \ | |
32449 | OTOOL64 \ | |
1cf3d07d SE |
32450 | shrext_cmds \ |
32451 | export_dynamic_flag_spec \ | |
32452 | whole_archive_flag_spec \ | |
32453 | compiler_needs_object \ | |
32454 | with_gnu_ld \ | |
32455 | allow_undefined_flag \ | |
32456 | no_undefined_flag \ | |
32457 | hardcode_libdir_flag_spec \ | |
32458 | hardcode_libdir_flag_spec_ld \ | |
32459 | hardcode_libdir_separator \ | |
32460 | fix_srcfile_path \ | |
32461 | exclude_expsyms \ | |
32462 | include_expsyms \ | |
32463 | file_list_spec \ | |
32464 | variables_saved_for_relink \ | |
32465 | libname_spec \ | |
32466 | library_names_spec \ | |
32467 | soname_spec \ | |
43e02a8a | 32468 | install_override_mode \ |
1cf3d07d SE |
32469 | finish_eval \ |
32470 | old_striplib \ | |
32471 | striplib \ | |
d58dead8 | 32472 | compiler_lib_search_dirs \ |
1cf3d07d SE |
32473 | predep_objects \ |
32474 | postdep_objects \ | |
32475 | predeps \ | |
32476 | postdeps \ | |
32477 | compiler_lib_search_path \ | |
32478 | LD_FC \ | |
43e02a8a | 32479 | reload_flag_FC \ |
1cf3d07d SE |
32480 | compiler_FC \ |
32481 | lt_prog_compiler_no_builtin_flag_FC \ | |
32482 | lt_prog_compiler_wl_FC \ | |
32483 | lt_prog_compiler_pic_FC \ | |
32484 | lt_prog_compiler_static_FC \ | |
32485 | lt_cv_prog_compiler_c_o_FC \ | |
32486 | export_dynamic_flag_spec_FC \ | |
32487 | whole_archive_flag_spec_FC \ | |
32488 | compiler_needs_object_FC \ | |
32489 | with_gnu_ld_FC \ | |
32490 | allow_undefined_flag_FC \ | |
32491 | no_undefined_flag_FC \ | |
32492 | hardcode_libdir_flag_spec_FC \ | |
32493 | hardcode_libdir_flag_spec_ld_FC \ | |
32494 | hardcode_libdir_separator_FC \ | |
32495 | fix_srcfile_path_FC \ | |
32496 | exclude_expsyms_FC \ | |
32497 | include_expsyms_FC \ | |
32498 | file_list_spec_FC \ | |
d58dead8 | 32499 | compiler_lib_search_dirs_FC \ |
1cf3d07d SE |
32500 | predep_objects_FC \ |
32501 | postdep_objects_FC \ | |
32502 | predeps_FC \ | |
32503 | postdeps_FC \ | |
32504 | compiler_lib_search_path_FC; do | |
43e02a8a | 32505 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 32506 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 32507 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
32508 | ;; |
32509 | *) | |
32510 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
32511 | ;; | |
32512 | esac | |
32513 | done | |
32514 | ||
32515 | # Double-quote double-evaled strings. | |
32516 | for var in reload_cmds \ | |
32517 | old_postinstall_cmds \ | |
32518 | old_postuninstall_cmds \ | |
32519 | old_archive_cmds \ | |
32520 | extract_expsyms_cmds \ | |
32521 | old_archive_from_new_cmds \ | |
32522 | old_archive_from_expsyms_cmds \ | |
32523 | archive_cmds \ | |
32524 | archive_expsym_cmds \ | |
32525 | module_cmds \ | |
32526 | module_expsym_cmds \ | |
32527 | export_symbols_cmds \ | |
32528 | prelink_cmds \ | |
32529 | postinstall_cmds \ | |
32530 | postuninstall_cmds \ | |
32531 | finish_cmds \ | |
32532 | sys_lib_search_path_spec \ | |
32533 | sys_lib_dlsearch_path_spec \ | |
43e02a8a | 32534 | reload_cmds_FC \ |
1cf3d07d SE |
32535 | old_archive_cmds_FC \ |
32536 | old_archive_from_new_cmds_FC \ | |
32537 | old_archive_from_expsyms_cmds_FC \ | |
32538 | archive_cmds_FC \ | |
32539 | archive_expsym_cmds_FC \ | |
32540 | module_cmds_FC \ | |
32541 | module_expsym_cmds_FC \ | |
32542 | export_symbols_cmds_FC \ | |
32543 | prelink_cmds_FC; do | |
43e02a8a | 32544 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 32545 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 32546 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
32547 | ;; |
32548 | *) | |
32549 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
32550 | ;; | |
32551 | esac | |
32552 | done | |
32553 | ||
1cf3d07d SE |
32554 | ac_aux_dir='$ac_aux_dir' |
32555 | xsi_shell='$xsi_shell' | |
32556 | lt_shell_append='$lt_shell_append' | |
32557 | ||
32558 | # See if we are running on zsh, and set the options which allow our | |
32559 | # commands through without removal of \ escapes INIT. | |
32560 | if test -n "\${ZSH_VERSION+set}" ; then | |
32561 | setopt NO_GLOB_SUBST | |
32562 | fi | |
32563 | ||
32564 | ||
32565 | PACKAGE='$PACKAGE' | |
32566 | VERSION='$VERSION' | |
32567 | TIMESTAMP='$TIMESTAMP' | |
32568 | RM='$RM' | |
32569 | ofile='$ofile' | |
32570 | ||
32571 | ||
6de9cd9a | 32572 | |
6de9cd9a | 32573 | |
78511f8b | 32574 | |
6de9cd9a | 32575 | |
c13e029b PB |
32576 | GCC="$GCC" |
32577 | CC="$CC" | |
32578 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
32579 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
32580 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
32581 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
32582 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
32583 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
32584 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
32585 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
32586 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
32587 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
32588 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
4c4b3eb0 PB |
32589 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" |
32590 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
c13e029b | 32591 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" |
4c4b3eb0 PB |
32592 | |
32593 | ||
6de9cd9a DN |
32594 | _ACEOF |
32595 | ||
5213506e | 32596 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
f489fba1 | 32597 | |
5213506e | 32598 | # Handling of arguments. |
6de9cd9a DN |
32599 | for ac_config_target in $ac_config_targets |
32600 | do | |
5213506e RW |
32601 | case $ac_config_target in |
32602 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
32603 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
32604 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
32605 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
32606 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
32607 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
1ec601bf | 32608 | "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;; |
5213506e | 32609 | |
22e05272 | 32610 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
6de9cd9a DN |
32611 | esac |
32612 | done | |
32613 | ||
5213506e | 32614 | |
6de9cd9a DN |
32615 | # If the user did not use the arguments to specify the items to instantiate, |
32616 | # then the envvar interface is used. Set only those that are not. | |
32617 | # We use the long form for the default assignment because of an extremely | |
32618 | # bizarre bug on SunOS 4.1.3. | |
32619 | if $ac_need_defaults; then | |
32620 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
32621 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
32622 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
32623 | fi | |
32624 | ||
32625 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 32626 | # simply because there is no reason against having it here, and in addition, |
6de9cd9a | 32627 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
32628 | # Hook for its removal unless debugging. |
32629 | # Note that there is a small window in which the directory will not be cleaned: | |
32630 | # after its creation but before its name has been assigned to `$tmp'. | |
6de9cd9a DN |
32631 | $debug || |
32632 | { | |
22e05272 | 32633 | tmp= ac_tmp= |
5213506e | 32634 | trap 'exit_status=$? |
22e05272 JM |
32635 | : "${ac_tmp:=$tmp}" |
32636 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
32637 | ' 0 |
32638 | trap 'as_fn_exit 1' 1 2 13 15 | |
6de9cd9a | 32639 | } |
6de9cd9a DN |
32640 | # Create a (secure) tmp directory for tmp files. |
32641 | ||
32642 | { | |
5213506e | 32643 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 32644 | test -d "$tmp" |
6de9cd9a DN |
32645 | } || |
32646 | { | |
5213506e RW |
32647 | tmp=./conf$$-$RANDOM |
32648 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
32649 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
32650 | ac_tmp=$tmp | |
5213506e RW |
32651 | |
32652 | # Set up the scripts for CONFIG_FILES section. | |
32653 | # No need to generate them if there are no CONFIG_FILES. | |
32654 | # This happens for instance with `./config.status config.h'. | |
32655 | if test -n "$CONFIG_FILES"; then | |
32656 | ||
32657 | ||
32658 | ac_cr=`echo X | tr X '\015'` | |
32659 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
32660 | # But we know of no other shell where ac_cr would be empty at this | |
32661 | # point, so we can use a bashism as a fallback. | |
32662 | if test "x$ac_cr" = x; then | |
32663 | eval ac_cr=\$\'\\r\' | |
32664 | fi | |
32665 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
32666 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 32667 | ac_cs_awk_cr='\\r' |
5213506e RW |
32668 | else |
32669 | ac_cs_awk_cr=$ac_cr | |
32670 | fi | |
32671 | ||
22e05272 | 32672 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
32673 | _ACEOF |
32674 | ||
32675 | ||
6de9cd9a | 32676 | { |
5213506e RW |
32677 | echo "cat >conf$$subs.awk <<_ACEOF" && |
32678 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
32679 | echo "_ACEOF" | |
32680 | } >conf$$subs.sh || | |
22e05272 JM |
32681 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
32682 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
32683 | ac_delim='%!_!# ' |
32684 | for ac_last_try in false false false false false :; do | |
32685 | . ./conf$$subs.sh || | |
22e05272 | 32686 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
32687 | |
32688 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
32689 | if test $ac_delim_n = $ac_delim_num; then | |
32690 | break | |
32691 | elif $ac_last_try; then | |
22e05272 | 32692 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
32693 | else |
32694 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
32695 | fi | |
32696 | done | |
32697 | rm -f conf$$subs.sh | |
32698 | ||
32699 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 32700 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5213506e RW |
32701 | _ACEOF |
32702 | sed -n ' | |
32703 | h | |
32704 | s/^/S["/; s/!.*/"]=/ | |
32705 | p | |
32706 | g | |
32707 | s/^[^!]*!// | |
32708 | :repl | |
32709 | t repl | |
32710 | s/'"$ac_delim"'$// | |
32711 | t delim | |
32712 | :nl | |
32713 | h | |
22e05272 | 32714 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
32715 | t more1 |
32716 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
32717 | p | |
32718 | n | |
32719 | b repl | |
32720 | :more1 | |
32721 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
32722 | p | |
32723 | g | |
32724 | s/.\{148\}// | |
32725 | t nl | |
32726 | :delim | |
32727 | h | |
22e05272 | 32728 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
32729 | t more2 |
32730 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
32731 | p | |
32732 | b | |
32733 | :more2 | |
32734 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
32735 | p | |
32736 | g | |
32737 | s/.\{148\}// | |
32738 | t delim | |
32739 | ' <conf$$subs.awk | sed ' | |
32740 | /^[^""]/{ | |
32741 | N | |
32742 | s/\n// | |
32743 | } | |
32744 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
32745 | rm -f conf$$subs.awk | |
32746 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32747 | _ACAWK | |
22e05272 | 32748 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
32749 | for (key in S) S_is_set[key] = 1 |
32750 | FS = "\a" | |
32751 | ||
32752 | } | |
32753 | { | |
32754 | line = $ 0 | |
32755 | nfields = split(line, field, "@") | |
32756 | substed = 0 | |
32757 | len = length(field[1]) | |
32758 | for (i = 2; i < nfields; i++) { | |
32759 | key = field[i] | |
32760 | keylen = length(key) | |
32761 | if (S_is_set[key]) { | |
32762 | value = S[key] | |
32763 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
32764 | len += length(value) + length(field[++i]) | |
32765 | substed = 1 | |
32766 | } else | |
32767 | len += 1 + keylen | |
32768 | } | |
32769 | ||
32770 | print line | |
6de9cd9a DN |
32771 | } |
32772 | ||
5213506e RW |
32773 | _ACAWK |
32774 | _ACEOF | |
32775 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
32776 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
32777 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
32778 | else | |
32779 | cat | |
22e05272 JM |
32780 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
32781 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
38d24731 RW |
32782 | _ACEOF |
32783 | ||
22e05272 JM |
32784 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
32785 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
32786 | # trailing colons and then remove the whole line if VPATH becomes empty |
32787 | # (actually we leave an empty line to preserve line numbers). | |
32788 | if test "x$srcdir" = x.; then | |
22e05272 JM |
32789 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
32790 | h | |
32791 | s/// | |
32792 | s/^/:/ | |
32793 | s/[ ]*$/:/ | |
32794 | s/:\$(srcdir):/:/g | |
32795 | s/:\${srcdir}:/:/g | |
32796 | s/:@srcdir@:/:/g | |
32797 | s/^:*// | |
5213506e | 32798 | s/:*$// |
22e05272 JM |
32799 | x |
32800 | s/\(=[ ]*\).*/\1/ | |
32801 | G | |
32802 | s/\n// | |
5213506e RW |
32803 | s/^[^=]*=[ ]*$// |
32804 | }' | |
32805 | fi | |
38d24731 | 32806 | |
5213506e RW |
32807 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
32808 | fi # test -n "$CONFIG_FILES" | |
6de9cd9a | 32809 | |
5213506e RW |
32810 | # Set up the scripts for CONFIG_HEADERS section. |
32811 | # No need to generate them if there are no CONFIG_HEADERS. | |
32812 | # This happens for instance with `./config.status Makefile'. | |
32813 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 32814 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
5213506e RW |
32815 | BEGIN { |
32816 | _ACEOF | |
32817 | ||
32818 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
32819 | # here-document in config.status, that substitutes the proper values into | |
32820 | # config.h.in to produce config.h. | |
32821 | ||
32822 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
32823 | # handling of long lines. | |
32824 | ac_delim='%!_!# ' | |
32825 | for ac_last_try in false false :; do | |
22e05272 JM |
32826 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
32827 | if test -z "$ac_tt"; then | |
5213506e RW |
32828 | break |
32829 | elif $ac_last_try; then | |
22e05272 | 32830 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
5213506e RW |
32831 | else |
32832 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
f489fba1 | 32833 | fi |
5213506e | 32834 | done |
c0e7e2bf | 32835 | |
5213506e RW |
32836 | # For the awk script, D is an array of macro values keyed by name, |
32837 | # likewise P contains macro parameters if any. Preserve backslash | |
32838 | # newline sequences. | |
32839 | ||
32840 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
32841 | sed -n ' | |
32842 | s/.\{148\}/&'"$ac_delim"'/g | |
32843 | t rset | |
32844 | :rset | |
32845 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
32846 | t def | |
32847 | d | |
32848 | :def | |
32849 | s/\\$// | |
32850 | t bsnl | |
32851 | s/["\\]/\\&/g | |
32852 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
32853 | D["\1"]=" \3"/p | |
32854 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
32855 | d | |
32856 | :bsnl | |
32857 | s/["\\]/\\&/g | |
32858 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
32859 | D["\1"]=" \3\\\\\\n"\\/p | |
32860 | t cont | |
32861 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
32862 | t cont | |
32863 | d | |
32864 | :cont | |
32865 | n | |
32866 | s/.\{148\}/&'"$ac_delim"'/g | |
32867 | t clear | |
32868 | :clear | |
32869 | s/\\$// | |
32870 | t bsnlc | |
32871 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
32872 | d | |
32873 | :bsnlc | |
32874 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
32875 | b cont | |
32876 | ' <confdefs.h | sed ' | |
32877 | s/'"$ac_delim"'/"\\\ | |
32878 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
32879 | ||
32880 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
32881 | for (key in D) D_is_set[key] = 1 | |
32882 | FS = "\a" | |
32883 | } | |
32884 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
32885 | line = \$ 0 | |
32886 | split(line, arg, " ") | |
32887 | if (arg[1] == "#") { | |
32888 | defundef = arg[2] | |
32889 | mac1 = arg[3] | |
32890 | } else { | |
32891 | defundef = substr(arg[1], 2) | |
32892 | mac1 = arg[2] | |
32893 | } | |
32894 | split(mac1, mac2, "(") #) | |
32895 | macro = mac2[1] | |
32896 | prefix = substr(line, 1, index(line, defundef) - 1) | |
32897 | if (D_is_set[macro]) { | |
32898 | # Preserve the white space surrounding the "#". | |
32899 | print prefix "define", macro P[macro] D[macro] | |
32900 | next | |
32901 | } else { | |
32902 | # Replace #undef with comments. This is necessary, for example, | |
32903 | # in the case of _POSIX_SOURCE, which is predefined and required | |
32904 | # on some systems where configure will not decide to define it. | |
32905 | if (defundef == "undef") { | |
32906 | print "/*", prefix defundef, macro, "*/" | |
32907 | next | |
32908 | } | |
32909 | } | |
32910 | } | |
32911 | { print } | |
32912 | _ACAWK | |
6de9cd9a | 32913 | _ACEOF |
5213506e | 32914 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22e05272 | 32915 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
5213506e RW |
32916 | fi # test -n "$CONFIG_HEADERS" |
32917 | ||
32918 | ||
32919 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
32920 | shift | |
32921 | for ac_tag | |
32922 | do | |
32923 | case $ac_tag in | |
32924 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
32925 | esac | |
32926 | case $ac_mode$ac_tag in | |
32927 | :[FHL]*:*);; | |
22e05272 | 32928 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
32929 | :[FH]-) ac_tag=-:-;; |
32930 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
32931 | esac | |
32932 | ac_save_IFS=$IFS | |
32933 | IFS=: | |
32934 | set x $ac_tag | |
32935 | IFS=$ac_save_IFS | |
32936 | shift | |
32937 | ac_file=$1 | |
32938 | shift | |
32939 | ||
32940 | case $ac_mode in | |
32941 | :L) ac_source=$1;; | |
32942 | :[FH]) | |
32943 | ac_file_inputs= | |
32944 | for ac_f | |
32945 | do | |
32946 | case $ac_f in | |
22e05272 | 32947 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
32948 | *) # Look for the file first in the build tree, then in the source tree |
32949 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
32950 | # because $ac_f cannot contain `:'. | |
32951 | test -f "$ac_f" || | |
32952 | case $ac_f in | |
32953 | [\\/$]*) false;; | |
32954 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
32955 | esac || | |
22e05272 | 32956 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
32957 | esac |
32958 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
32959 | as_fn_append ac_file_inputs " '$ac_f'" | |
32960 | done | |
32961 | ||
32962 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
32963 | # use $as_me), people would be surprised to read: | |
32964 | # /* config.h. Generated by config.status. */ | |
32965 | configure_input='Generated from '` | |
32966 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
32967 | `' by configure.' | |
32968 | if test x"$ac_file" != x-; then | |
32969 | configure_input="$ac_file. $configure_input" | |
32970 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
32971 | $as_echo "$as_me: creating $ac_file" >&6;} | |
32972 | fi | |
32973 | # Neutralize special characters interpreted by sed in replacement strings. | |
32974 | case $configure_input in #( | |
32975 | *\&* | *\|* | *\\* ) | |
32976 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
32977 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
32978 | *) ac_sed_conf_input=$configure_input;; | |
32979 | esac | |
32980 | ||
32981 | case $ac_tag in | |
22e05272 JM |
32982 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
32983 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
32984 | esac |
32985 | ;; | |
6de9cd9a DN |
32986 | esac |
32987 | ||
5213506e | 32988 | ac_dir=`$as_dirname -- "$ac_file" || |
6de9cd9a DN |
32989 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
32990 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
32991 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
32992 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
32993 | $as_echo X"$ac_file" | | |
32994 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
32995 | s//\1/ | |
32996 | q | |
32997 | } | |
32998 | /^X\(\/\/\)[^/].*/{ | |
32999 | s//\1/ | |
33000 | q | |
33001 | } | |
33002 | /^X\(\/\/\)$/{ | |
33003 | s//\1/ | |
33004 | q | |
33005 | } | |
33006 | /^X\(\/\).*/{ | |
33007 | s//\1/ | |
33008 | q | |
33009 | } | |
33010 | s/.*/./; q'` | |
33011 | as_dir="$ac_dir"; as_fn_mkdir_p | |
6de9cd9a DN |
33012 | ac_builddir=. |
33013 | ||
5213506e RW |
33014 | case "$ac_dir" in |
33015 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
33016 | *) | |
33017 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
33018 | # A ".." for each directory in $ac_dir_suffix. | |
33019 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
33020 | case $ac_top_builddir_sub in | |
33021 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
33022 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
33023 | esac ;; | |
33024 | esac | |
33025 | ac_abs_top_builddir=$ac_pwd | |
33026 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
33027 | # for backward compatibility: | |
33028 | ac_top_builddir=$ac_top_build_prefix | |
6de9cd9a DN |
33029 | |
33030 | case $srcdir in | |
5213506e | 33031 | .) # We are building in place. |
6de9cd9a | 33032 | ac_srcdir=. |
5213506e RW |
33033 | ac_top_srcdir=$ac_top_builddir_sub |
33034 | ac_abs_top_srcdir=$ac_pwd ;; | |
33035 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
6de9cd9a | 33036 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
33037 | ac_top_srcdir=$srcdir |
33038 | ac_abs_top_srcdir=$srcdir ;; | |
33039 | *) # Relative name. | |
33040 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
33041 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
33042 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
6de9cd9a | 33043 | esac |
5213506e | 33044 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
6de9cd9a | 33045 | |
6de9cd9a | 33046 | |
5213506e RW |
33047 | case $ac_mode in |
33048 | :F) | |
33049 | # | |
33050 | # CONFIG_FILE | |
33051 | # | |
6de9cd9a DN |
33052 | |
33053 | case $INSTALL in | |
33054 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e RW |
33055 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
33056 | esac | |
33057 | ac_MKDIR_P=$MKDIR_P | |
33058 | case $MKDIR_P in | |
33059 | [\\/$]* | ?:[\\/]* ) ;; | |
33060 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
6de9cd9a | 33061 | esac |
5213506e | 33062 | _ACEOF |
6de9cd9a | 33063 | |
5213506e RW |
33064 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
33065 | # If the template does not know about datarootdir, expand it. | |
33066 | # FIXME: This hack should be removed a few years after 2.60. | |
33067 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
33068 | ac_sed_dataroot=' | |
33069 | /datarootdir/ { | |
33070 | p | |
33071 | q | |
33072 | } | |
33073 | /@datadir@/p | |
33074 | /@docdir@/p | |
33075 | /@infodir@/p | |
33076 | /@localedir@/p | |
33077 | /@mandir@/p' | |
33078 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
33079 | *datarootdir*) ac_datarootdir_seen=yes;; | |
33080 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
33081 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
33082 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
33083 | _ACEOF | |
33084 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
33085 | ac_datarootdir_hack=' | |
33086 | s&@datadir@&$datadir&g | |
33087 | s&@docdir@&$docdir&g | |
33088 | s&@infodir@&$infodir&g | |
33089 | s&@localedir@&$localedir&g | |
33090 | s&@mandir@&$mandir&g | |
33091 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
33092 | esac | |
78511f8b | 33093 | _ACEOF |
5213506e RW |
33094 | |
33095 | # Neutralize VPATH when `$srcdir' = `.'. | |
33096 | # Shell code in configure.ac might set extrasub. | |
33097 | # FIXME: do we really want to maintain this feature? | |
33098 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
33099 | ac_sed_extra="$ac_vpsub | |
6de9cd9a DN |
33100 | $extrasub |
33101 | _ACEOF | |
5213506e | 33102 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6de9cd9a DN |
33103 | :t |
33104 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
33105 | s|@configure_input@|$ac_sed_conf_input|;t t |
33106 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
33107 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
33108 | s&@srcdir@&$ac_srcdir&;t t | |
33109 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
33110 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
33111 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
33112 | s&@builddir@&$ac_builddir&;t t | |
33113 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
33114 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
33115 | s&@INSTALL@&$ac_INSTALL&;t t | |
33116 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
33117 | $ac_datarootdir_hack | |
33118 | " | |
22e05272 JM |
33119 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
33120 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
33121 | |
33122 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
33123 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
33124 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
33125 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 33126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 33127 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 33128 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 33129 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 33130 | |
22e05272 | 33131 | rm -f "$ac_tmp/stdin" |
6de9cd9a | 33132 | case $ac_file in |
22e05272 JM |
33133 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
33134 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 33135 | esac \ |
22e05272 | 33136 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e RW |
33137 | ;; |
33138 | :H) | |
33139 | # | |
33140 | # CONFIG_HEADER | |
33141 | # | |
6de9cd9a | 33142 | if test x"$ac_file" != x-; then |
5213506e RW |
33143 | { |
33144 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
33145 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
33146 | } >"$ac_tmp/config.h" \ | |
33147 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
33148 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
5213506e RW |
33149 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
33150 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
6de9cd9a | 33151 | else |
5213506e | 33152 | rm -f "$ac_file" |
22e05272 JM |
33153 | mv "$ac_tmp/config.h" "$ac_file" \ |
33154 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6de9cd9a DN |
33155 | fi |
33156 | else | |
5213506e | 33157 | $as_echo "/* $configure_input */" \ |
22e05272 JM |
33158 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
33159 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
6de9cd9a | 33160 | fi |
5213506e RW |
33161 | # Compute "$ac_file"'s index in $config_headers. |
33162 | _am_arg="$ac_file" | |
6de9cd9a DN |
33163 | _am_stamp_count=1 |
33164 | for _am_header in $config_headers :; do | |
33165 | case $_am_header in | |
5213506e | 33166 | $_am_arg | $_am_arg:* ) |
6de9cd9a DN |
33167 | break ;; |
33168 | * ) | |
33169 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
33170 | esac | |
33171 | done | |
5213506e RW |
33172 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
33173 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
33174 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
33175 | X"$_am_arg" : 'X\(//\)$' \| \ | |
33176 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
33177 | $as_echo X"$_am_arg" | | |
33178 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
33179 | s//\1/ | |
33180 | q | |
33181 | } | |
33182 | /^X\(\/\/\)[^/].*/{ | |
33183 | s//\1/ | |
33184 | q | |
33185 | } | |
33186 | /^X\(\/\/\)$/{ | |
33187 | s//\1/ | |
33188 | q | |
33189 | } | |
33190 | /^X\(\/\).*/{ | |
33191 | s//\1/ | |
33192 | q | |
33193 | } | |
33194 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
33195 | ;; | |
38d24731 | 33196 | |
5213506e RW |
33197 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
33198 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
33199 | ;; | |
33200 | esac | |
6de9cd9a DN |
33201 | |
33202 | ||
5213506e RW |
33203 | case $ac_file$ac_mode in |
33204 | "default-1":C) | |
96b8a615 AJ |
33205 | # Only add multilib support code if we just rebuilt the top-level |
33206 | # Makefile. | |
33207 | case " $CONFIG_FILES " in | |
33208 | *" Makefile "*) | |
33209 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
33210 | ;; | |
33211 | esac ;; | |
5213506e | 33212 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
22e05272 | 33213 | # Older Autoconf quotes --file arguments for eval, but not when files |
5213506e RW |
33214 | # are listed without --file. Let's play safe and only enable the eval |
33215 | # if we detect the quoting. | |
33216 | case $CONFIG_FILES in | |
33217 | *\'*) eval set x "$CONFIG_FILES" ;; | |
33218 | *) set x $CONFIG_FILES ;; | |
33219 | esac | |
33220 | shift | |
33221 | for mf | |
33222 | do | |
33223 | # Strip MF so we end up with the name of the file. | |
33224 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
33225 | # Check whether this is an Automake generated Makefile or not. | |
22e05272 | 33226 | # We used to match only the files named 'Makefile.in', but |
5213506e RW |
33227 | # some people rename them; so instead we look at the file content. |
33228 | # Grep'ing the first line is not enough: some people post-process | |
33229 | # each Makefile.in and add a new line on top of each file to say so. | |
33230 | # Grep'ing the whole file is not good either: AIX grep has a line | |
33231 | # limit of 2048, but all sed's we know have understand at least 4000. | |
33232 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
33233 | dirpart=`$as_dirname -- "$mf" || | |
679c0f9a TT |
33234 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
33235 | X"$mf" : 'X\(//\)[^/]' \| \ | |
33236 | X"$mf" : 'X\(//\)$' \| \ | |
5213506e RW |
33237 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
33238 | $as_echo X"$mf" | | |
33239 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
33240 | s//\1/ | |
33241 | q | |
33242 | } | |
33243 | /^X\(\/\/\)[^/].*/{ | |
33244 | s//\1/ | |
33245 | q | |
33246 | } | |
33247 | /^X\(\/\/\)$/{ | |
33248 | s//\1/ | |
33249 | q | |
33250 | } | |
33251 | /^X\(\/\).*/{ | |
33252 | s//\1/ | |
33253 | q | |
33254 | } | |
33255 | s/.*/./; q'` | |
33256 | else | |
33257 | continue | |
33258 | fi | |
33259 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22e05272 | 33260 | # from the Makefile without running 'make'. |
5213506e RW |
33261 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
33262 | test -z "$DEPDIR" && continue | |
33263 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22e05272 | 33264 | test -z "$am__include" && continue |
5213506e | 33265 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
5213506e RW |
33266 | # Find all dependency output files, they are included files with |
33267 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
33268 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
33269 | # expansion. | |
33270 | for file in `sed -n " | |
33271 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22e05272 | 33272 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
5213506e RW |
33273 | # Make sure the directory exists. |
33274 | test -f "$dirpart/$file" && continue | |
33275 | fdir=`$as_dirname -- "$file" || | |
679c0f9a TT |
33276 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
33277 | X"$file" : 'X\(//\)[^/]' \| \ | |
33278 | X"$file" : 'X\(//\)$' \| \ | |
5213506e RW |
33279 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
33280 | $as_echo X"$file" | | |
33281 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
33282 | s//\1/ | |
33283 | q | |
33284 | } | |
33285 | /^X\(\/\/\)[^/].*/{ | |
33286 | s//\1/ | |
33287 | q | |
33288 | } | |
33289 | /^X\(\/\/\)$/{ | |
33290 | s//\1/ | |
33291 | q | |
33292 | } | |
33293 | /^X\(\/\).*/{ | |
33294 | s//\1/ | |
33295 | q | |
33296 | } | |
33297 | s/.*/./; q'` | |
33298 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
33299 | # echo "creating $dirpart/$file" | |
33300 | echo '# dummy' > "$dirpart/$file" | |
679c0f9a | 33301 | done |
679c0f9a | 33302 | done |
5213506e | 33303 | } |
1cf3d07d | 33304 | ;; |
5213506e | 33305 | "libtool":C) |
1cf3d07d SE |
33306 | |
33307 | # See if we are running on zsh, and set the options which allow our | |
33308 | # commands through without removal of \ escapes. | |
33309 | if test -n "${ZSH_VERSION+set}" ; then | |
33310 | setopt NO_GLOB_SUBST | |
33311 | fi | |
33312 | ||
33313 | cfgfile="${ofile}T" | |
33314 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
33315 | $RM "$cfgfile" | |
33316 | ||
33317 | cat <<_LT_EOF >> "$cfgfile" | |
33318 | #! $SHELL | |
33319 | ||
33320 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
d58dead8 | 33321 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
1cf3d07d SE |
33322 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
33323 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
33324 | # | |
d58dead8 | 33325 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
43e02a8a | 33326 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
d58dead8 | 33327 | # Written by Gordon Matzigkeit, 1996 |
1cf3d07d | 33328 | # |
d58dead8 | 33329 | # This file is part of GNU Libtool. |
1cf3d07d | 33330 | # |
d58dead8 PG |
33331 | # GNU Libtool is free software; you can redistribute it and/or |
33332 | # modify it under the terms of the GNU General Public License as | |
33333 | # published by the Free Software Foundation; either version 2 of | |
33334 | # the License, or (at your option) any later version. | |
1cf3d07d | 33335 | # |
d58dead8 PG |
33336 | # As a special exception to the GNU General Public License, |
33337 | # if you distribute this file as part of a program or library that | |
33338 | # is built using GNU Libtool, you may include this file under the | |
33339 | # same distribution terms that you use for the rest of that program. | |
1cf3d07d | 33340 | # |
d58dead8 PG |
33341 | # GNU Libtool is distributed in the hope that it will be useful, |
33342 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
33343 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
33344 | # GNU General Public License for more details. | |
1cf3d07d | 33345 | # |
d58dead8 PG |
33346 | # You should have received a copy of the GNU General Public License |
33347 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
33348 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
33349 | # obtained by writing to the Free Software Foundation, Inc., | |
33350 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
1cf3d07d SE |
33351 | |
33352 | ||
33353 | # The names of the tagged configurations supported by this script. | |
33354 | available_tags="FC " | |
33355 | ||
33356 | # ### BEGIN LIBTOOL CONFIG | |
33357 | ||
66dbcf2d RO |
33358 | # A sed program that does not truncate output. |
33359 | SED=$lt_SED | |
33360 | ||
33361 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
33362 | Xsed="\$SED -e 1s/^X//" | |
33363 | ||
33364 | # A grep program that handles long lines. | |
33365 | GREP=$lt_GREP | |
33366 | ||
33367 | # An ERE matcher. | |
33368 | EGREP=$lt_EGREP | |
33369 | ||
33370 | # A literal string matcher. | |
33371 | FGREP=$lt_FGREP | |
33372 | ||
33373 | # Shell to use when invoking shell scripts. | |
33374 | SHELL=$lt_SHELL | |
33375 | ||
33376 | # An echo program that protects backslashes. | |
33377 | ECHO=$lt_ECHO | |
33378 | ||
1cf3d07d SE |
33379 | # Which release of libtool.m4 was used? |
33380 | macro_version=$macro_version | |
33381 | macro_revision=$macro_revision | |
33382 | ||
33383 | # Whether or not to build shared libraries. | |
33384 | build_libtool_libs=$enable_shared | |
33385 | ||
33386 | # Whether or not to build static libraries. | |
33387 | build_old_libs=$enable_static | |
33388 | ||
33389 | # What type of objects to build. | |
33390 | pic_mode=$pic_mode | |
33391 | ||
33392 | # Whether or not to optimize for fast installation. | |
33393 | fast_install=$enable_fast_install | |
33394 | ||
33395 | # The host system. | |
33396 | host_alias=$host_alias | |
33397 | host=$host | |
33398 | host_os=$host_os | |
33399 | ||
33400 | # The build system. | |
33401 | build_alias=$build_alias | |
33402 | build=$build | |
33403 | build_os=$build_os | |
33404 | ||
1cf3d07d SE |
33405 | # A BSD- or MS-compatible name lister. |
33406 | NM=$lt_NM | |
33407 | ||
33408 | # Whether we need soft or hard links. | |
33409 | LN_S=$lt_LN_S | |
33410 | ||
33411 | # What is the maximum length of a command? | |
33412 | max_cmd_len=$max_cmd_len | |
33413 | ||
33414 | # Object file suffix (normally "o"). | |
33415 | objext=$ac_objext | |
33416 | ||
33417 | # Executable file suffix (normally ""). | |
33418 | exeext=$exeext | |
33419 | ||
33420 | # whether the shell understands "unset". | |
33421 | lt_unset=$lt_unset | |
33422 | ||
33423 | # turn spaces into newlines. | |
33424 | SP2NL=$lt_lt_SP2NL | |
33425 | ||
33426 | # turn newlines into spaces. | |
33427 | NL2SP=$lt_lt_NL2SP | |
33428 | ||
d58dead8 PG |
33429 | # An object symbol dumper. |
33430 | OBJDUMP=$lt_OBJDUMP | |
33431 | ||
1cf3d07d SE |
33432 | # Method to check whether dependent libraries are shared objects. |
33433 | deplibs_check_method=$lt_deplibs_check_method | |
33434 | ||
33435 | # Command to use when deplibs_check_method == "file_magic". | |
33436 | file_magic_cmd=$lt_file_magic_cmd | |
33437 | ||
33438 | # The archiver. | |
33439 | AR=$lt_AR | |
33440 | AR_FLAGS=$lt_AR_FLAGS | |
33441 | ||
33442 | # A symbol stripping program. | |
33443 | STRIP=$lt_STRIP | |
33444 | ||
33445 | # Commands used to install an old-style archive. | |
33446 | RANLIB=$lt_RANLIB | |
33447 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
33448 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
33449 | ||
43e02a8a RW |
33450 | # Whether to use a lock for old archive extraction. |
33451 | lock_old_archive_extraction=$lock_old_archive_extraction | |
33452 | ||
1cf3d07d SE |
33453 | # A C compiler. |
33454 | LTCC=$lt_CC | |
33455 | ||
33456 | # LTCC compiler flags. | |
33457 | LTCFLAGS=$lt_CFLAGS | |
33458 | ||
33459 | # Take the output of nm and produce a listing of raw symbols and C names. | |
33460 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
33461 | ||
33462 | # Transform the output of nm in a proper C declaration. | |
33463 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
33464 | ||
33465 | # Transform the output of nm in a C name address pair. | |
33466 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
33467 | ||
d58dead8 PG |
33468 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
33469 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
33470 | ||
1cf3d07d SE |
33471 | # The name of the directory that contains temporary libtool files. |
33472 | objdir=$objdir | |
33473 | ||
1cf3d07d SE |
33474 | # Used to examine libraries when file_magic_cmd begins with "file". |
33475 | MAGIC_CMD=$MAGIC_CMD | |
33476 | ||
33477 | # Must we lock files when doing compilation? | |
33478 | need_locks=$lt_need_locks | |
33479 | ||
d58dead8 PG |
33480 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
33481 | DSYMUTIL=$lt_DSYMUTIL | |
33482 | ||
33483 | # Tool to change global to local symbols on Mac OS X. | |
33484 | NMEDIT=$lt_NMEDIT | |
33485 | ||
33486 | # Tool to manipulate fat objects and archives on Mac OS X. | |
33487 | LIPO=$lt_LIPO | |
33488 | ||
33489 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
33490 | OTOOL=$lt_OTOOL | |
33491 | ||
33492 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
33493 | OTOOL64=$lt_OTOOL64 | |
33494 | ||
1cf3d07d SE |
33495 | # Old archive suffix (normally "a"). |
33496 | libext=$libext | |
33497 | ||
33498 | # Shared library suffix (normally ".so"). | |
33499 | shrext_cmds=$lt_shrext_cmds | |
33500 | ||
33501 | # The commands to extract the exported symbol list from a shared archive. | |
33502 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
33503 | ||
33504 | # Variables whose values should be saved in libtool wrapper scripts and | |
33505 | # restored at link time. | |
33506 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
33507 | ||
33508 | # Do we need the "lib" prefix for modules? | |
33509 | need_lib_prefix=$need_lib_prefix | |
33510 | ||
33511 | # Do we need a version for libraries? | |
33512 | need_version=$need_version | |
33513 | ||
33514 | # Library versioning type. | |
33515 | version_type=$version_type | |
33516 | ||
33517 | # Shared library runtime path variable. | |
33518 | runpath_var=$runpath_var | |
33519 | ||
33520 | # Shared library path variable. | |
33521 | shlibpath_var=$shlibpath_var | |
33522 | ||
33523 | # Is shlibpath searched before the hard-coded library search path? | |
33524 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
33525 | ||
33526 | # Format of library name prefix. | |
33527 | libname_spec=$lt_libname_spec | |
33528 | ||
33529 | # List of archive names. First name is the real one, the rest are links. | |
33530 | # The last name is the one that the linker finds with -lNAME | |
33531 | library_names_spec=$lt_library_names_spec | |
33532 | ||
33533 | # The coded name of the library, if different from the real name. | |
33534 | soname_spec=$lt_soname_spec | |
33535 | ||
43e02a8a RW |
33536 | # Permission mode override for installation of shared libraries. |
33537 | install_override_mode=$lt_install_override_mode | |
33538 | ||
1cf3d07d SE |
33539 | # Command to use after installation of a shared archive. |
33540 | postinstall_cmds=$lt_postinstall_cmds | |
33541 | ||
33542 | # Command to use after uninstallation of a shared archive. | |
33543 | postuninstall_cmds=$lt_postuninstall_cmds | |
33544 | ||
33545 | # Commands used to finish a libtool library installation in a directory. | |
33546 | finish_cmds=$lt_finish_cmds | |
33547 | ||
33548 | # As "finish_cmds", except a single script fragment to be evaled but | |
33549 | # not shown. | |
33550 | finish_eval=$lt_finish_eval | |
33551 | ||
33552 | # Whether we should hardcode library paths into libraries. | |
33553 | hardcode_into_libs=$hardcode_into_libs | |
33554 | ||
33555 | # Compile-time system search path for libraries. | |
33556 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
33557 | ||
33558 | # Run-time system search path for libraries. | |
33559 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
33560 | ||
33561 | # Whether dlopen is supported. | |
33562 | dlopen_support=$enable_dlopen | |
33563 | ||
33564 | # Whether dlopen of programs is supported. | |
33565 | dlopen_self=$enable_dlopen_self | |
33566 | ||
33567 | # Whether dlopen of statically linked programs is supported. | |
33568 | dlopen_self_static=$enable_dlopen_self_static | |
33569 | ||
33570 | # Commands to strip libraries. | |
33571 | old_striplib=$lt_old_striplib | |
33572 | striplib=$lt_striplib | |
33573 | ||
33574 | ||
33575 | # The linker used to build libraries. | |
33576 | LD=$lt_LD | |
33577 | ||
43e02a8a RW |
33578 | # How to create reloadable object files. |
33579 | reload_flag=$lt_reload_flag | |
33580 | reload_cmds=$lt_reload_cmds | |
33581 | ||
1cf3d07d SE |
33582 | # Commands used to build an old-style archive. |
33583 | old_archive_cmds=$lt_old_archive_cmds | |
33584 | ||
33585 | # A language specific compiler. | |
33586 | CC=$lt_compiler | |
33587 | ||
33588 | # Is the compiler the GNU compiler? | |
33589 | with_gcc=$GCC | |
33590 | ||
33591 | # Compiler flag to turn off builtin functions. | |
33592 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
33593 | ||
33594 | # How to pass a linker flag through the compiler. | |
33595 | wl=$lt_lt_prog_compiler_wl | |
33596 | ||
33597 | # Additional compiler flags for building library objects. | |
33598 | pic_flag=$lt_lt_prog_compiler_pic | |
33599 | ||
33600 | # Compiler flag to prevent dynamic linking. | |
33601 | link_static_flag=$lt_lt_prog_compiler_static | |
33602 | ||
33603 | # Does compiler simultaneously support -c and -o options? | |
33604 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
33605 | ||
33606 | # Whether or not to add -lc for building shared libraries. | |
33607 | build_libtool_need_lc=$archive_cmds_need_lc | |
33608 | ||
33609 | # Whether or not to disallow shared libs when runtime libs are static. | |
33610 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
33611 | ||
33612 | # Compiler flag to allow reflexive dlopens. | |
33613 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
33614 | ||
33615 | # Compiler flag to generate shared objects directly from archives. | |
33616 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
33617 | ||
33618 | # Whether the compiler copes with passing no objects directly. | |
33619 | compiler_needs_object=$lt_compiler_needs_object | |
33620 | ||
33621 | # Create an old-style archive from a shared archive. | |
33622 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
33623 | ||
33624 | # Create a temporary old-style archive to link instead of a shared archive. | |
33625 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
33626 | ||
33627 | # Commands used to build a shared archive. | |
33628 | archive_cmds=$lt_archive_cmds | |
33629 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
33630 | ||
33631 | # Commands used to build a loadable module if different from building | |
33632 | # a shared archive. | |
33633 | module_cmds=$lt_module_cmds | |
33634 | module_expsym_cmds=$lt_module_expsym_cmds | |
33635 | ||
33636 | # Whether we are building with GNU ld or not. | |
33637 | with_gnu_ld=$lt_with_gnu_ld | |
33638 | ||
33639 | # Flag that allows shared libraries with undefined symbols to be built. | |
33640 | allow_undefined_flag=$lt_allow_undefined_flag | |
33641 | ||
33642 | # Flag that enforces no undefined symbols. | |
33643 | no_undefined_flag=$lt_no_undefined_flag | |
33644 | ||
33645 | # Flag to hardcode \$libdir into a binary during linking. | |
33646 | # This must work even if \$libdir does not exist | |
33647 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
33648 | ||
33649 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
33650 | # during linking. This must work even if \$libdir does not exist. | |
33651 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
33652 | ||
33653 | # Whether we need a single "-rpath" flag with a separated argument. | |
33654 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
33655 | ||
33656 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
33657 | # DIR into the resulting binary. | |
33658 | hardcode_direct=$hardcode_direct | |
33659 | ||
33660 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
33661 | # DIR into the resulting binary and the resulting library dependency is | |
33662 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
33663 | # library is relocated. | |
33664 | hardcode_direct_absolute=$hardcode_direct_absolute | |
33665 | ||
33666 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
33667 | # into the resulting binary. | |
33668 | hardcode_minus_L=$hardcode_minus_L | |
33669 | ||
33670 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
33671 | # into the resulting binary. | |
33672 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
33673 | ||
33674 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
33675 | # into the library and all subsequent libraries and executables linked | |
33676 | # against it. | |
33677 | hardcode_automatic=$hardcode_automatic | |
33678 | ||
33679 | # Set to yes if linker adds runtime paths of dependent libraries | |
33680 | # to runtime path list. | |
33681 | inherit_rpath=$inherit_rpath | |
33682 | ||
33683 | # Whether libtool must link a program against all its dependency libraries. | |
33684 | link_all_deplibs=$link_all_deplibs | |
33685 | ||
33686 | # Fix the shell variable \$srcfile for the compiler. | |
33687 | fix_srcfile_path=$lt_fix_srcfile_path | |
33688 | ||
33689 | # Set to "yes" if exported symbols are required. | |
33690 | always_export_symbols=$always_export_symbols | |
33691 | ||
33692 | # The commands to list exported symbols. | |
33693 | export_symbols_cmds=$lt_export_symbols_cmds | |
33694 | ||
33695 | # Symbols that should not be listed in the preloaded symbols. | |
33696 | exclude_expsyms=$lt_exclude_expsyms | |
33697 | ||
33698 | # Symbols that must always be exported. | |
33699 | include_expsyms=$lt_include_expsyms | |
33700 | ||
33701 | # Commands necessary for linking programs (against libraries) with templates. | |
33702 | prelink_cmds=$lt_prelink_cmds | |
33703 | ||
33704 | # Specify filename containing input files. | |
33705 | file_list_spec=$lt_file_list_spec | |
33706 | ||
33707 | # How to hardcode a shared library path into an executable. | |
33708 | hardcode_action=$hardcode_action | |
33709 | ||
d58dead8 PG |
33710 | # The directories searched by this compiler when creating a shared library. |
33711 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
33712 | ||
1cf3d07d SE |
33713 | # Dependencies to place before and after the objects being linked to |
33714 | # create a shared library. | |
33715 | predep_objects=$lt_predep_objects | |
33716 | postdep_objects=$lt_postdep_objects | |
33717 | predeps=$lt_predeps | |
33718 | postdeps=$lt_postdeps | |
33719 | ||
33720 | # The library search path used internally by the compiler when linking | |
33721 | # a shared library. | |
33722 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
33723 | ||
33724 | # ### END LIBTOOL CONFIG | |
33725 | ||
33726 | _LT_EOF | |
33727 | ||
33728 | case $host_os in | |
33729 | aix3*) | |
33730 | cat <<\_LT_EOF >> "$cfgfile" | |
33731 | # AIX sometimes has problems with the GCC collect2 program. For some | |
33732 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
33733 | # vanish in a puff of smoke. | |
33734 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
33735 | COLLECT_NAMES= | |
33736 | export COLLECT_NAMES | |
33737 | fi | |
33738 | _LT_EOF | |
33739 | ;; | |
33740 | esac | |
33741 | ||
33742 | ||
33743 | ltmain="$ac_aux_dir/ltmain.sh" | |
33744 | ||
33745 | ||
33746 | # We use sed instead of cat because bash on DJGPP gets confused if | |
33747 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
33748 | # text mode, it properly converts lines to CR/LF. This bash problem | |
33749 | # is reportedly fixed, but why not run on old versions too? | |
33750 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
33751 | || (rm -f "$cfgfile"; exit 1) | |
33752 | ||
33753 | case $xsi_shell in | |
33754 | yes) | |
33755 | cat << \_LT_EOF >> "$cfgfile" | |
d58dead8 | 33756 | |
1cf3d07d SE |
33757 | # func_dirname file append nondir_replacement |
33758 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
33759 | # otherwise set result to NONDIR_REPLACEMENT. | |
33760 | func_dirname () | |
33761 | { | |
33762 | case ${1} in | |
33763 | */*) func_dirname_result="${1%/*}${2}" ;; | |
33764 | * ) func_dirname_result="${3}" ;; | |
33765 | esac | |
33766 | } | |
33767 | ||
33768 | # func_basename file | |
33769 | func_basename () | |
33770 | { | |
33771 | func_basename_result="${1##*/}" | |
33772 | } | |
33773 | ||
d58dead8 PG |
33774 | # func_dirname_and_basename file append nondir_replacement |
33775 | # perform func_basename and func_dirname in a single function | |
33776 | # call: | |
33777 | # dirname: Compute the dirname of FILE. If nonempty, | |
33778 | # add APPEND to the result, otherwise set result | |
33779 | # to NONDIR_REPLACEMENT. | |
33780 | # value returned in "$func_dirname_result" | |
33781 | # basename: Compute filename of FILE. | |
33782 | # value retuned in "$func_basename_result" | |
33783 | # Implementation must be kept synchronized with func_dirname | |
33784 | # and func_basename. For efficiency, we do not delegate to | |
33785 | # those functions but instead duplicate the functionality here. | |
33786 | func_dirname_and_basename () | |
33787 | { | |
33788 | case ${1} in | |
33789 | */*) func_dirname_result="${1%/*}${2}" ;; | |
33790 | * ) func_dirname_result="${3}" ;; | |
33791 | esac | |
33792 | func_basename_result="${1##*/}" | |
33793 | } | |
33794 | ||
1cf3d07d SE |
33795 | # func_stripname prefix suffix name |
33796 | # strip PREFIX and SUFFIX off of NAME. | |
33797 | # PREFIX and SUFFIX must not contain globbing or regex special | |
33798 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
33799 | # dot (in which case that matches only a dot). | |
33800 | func_stripname () | |
33801 | { | |
33802 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
33803 | # positional parameters, so assign one to ordinary parameter first. | |
33804 | func_stripname_result=${3} | |
33805 | func_stripname_result=${func_stripname_result#"${1}"} | |
33806 | func_stripname_result=${func_stripname_result%"${2}"} | |
33807 | } | |
33808 | ||
33809 | # func_opt_split | |
33810 | func_opt_split () | |
33811 | { | |
33812 | func_opt_split_opt=${1%%=*} | |
33813 | func_opt_split_arg=${1#*=} | |
33814 | } | |
33815 | ||
33816 | # func_lo2o object | |
33817 | func_lo2o () | |
33818 | { | |
33819 | case ${1} in | |
33820 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
33821 | *) func_lo2o_result=${1} ;; | |
33822 | esac | |
33823 | } | |
d58dead8 PG |
33824 | |
33825 | # func_xform libobj-or-source | |
33826 | func_xform () | |
33827 | { | |
33828 | func_xform_result=${1%.*}.lo | |
33829 | } | |
33830 | ||
33831 | # func_arith arithmetic-term... | |
33832 | func_arith () | |
33833 | { | |
33834 | func_arith_result=$(( $* )) | |
33835 | } | |
33836 | ||
33837 | # func_len string | |
33838 | # STRING may not start with a hyphen. | |
33839 | func_len () | |
33840 | { | |
33841 | func_len_result=${#1} | |
33842 | } | |
33843 | ||
1cf3d07d SE |
33844 | _LT_EOF |
33845 | ;; | |
33846 | *) # Bourne compatible functions. | |
33847 | cat << \_LT_EOF >> "$cfgfile" | |
d58dead8 | 33848 | |
1cf3d07d SE |
33849 | # func_dirname file append nondir_replacement |
33850 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
33851 | # otherwise set result to NONDIR_REPLACEMENT. | |
33852 | func_dirname () | |
33853 | { | |
33854 | # Extract subdirectory from the argument. | |
43e02a8a | 33855 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
1cf3d07d SE |
33856 | if test "X$func_dirname_result" = "X${1}"; then |
33857 | func_dirname_result="${3}" | |
33858 | else | |
33859 | func_dirname_result="$func_dirname_result${2}" | |
33860 | fi | |
33861 | } | |
33862 | ||
33863 | # func_basename file | |
33864 | func_basename () | |
33865 | { | |
43e02a8a | 33866 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
1cf3d07d SE |
33867 | } |
33868 | ||
d58dead8 | 33869 | |
1cf3d07d SE |
33870 | # func_stripname prefix suffix name |
33871 | # strip PREFIX and SUFFIX off of NAME. | |
33872 | # PREFIX and SUFFIX must not contain globbing or regex special | |
33873 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
33874 | # dot (in which case that matches only a dot). | |
33875 | # func_strip_suffix prefix name | |
33876 | func_stripname () | |
33877 | { | |
33878 | case ${2} in | |
43e02a8a RW |
33879 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
33880 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
1cf3d07d SE |
33881 | esac |
33882 | } | |
33883 | ||
33884 | # sed scripts: | |
33885 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
33886 | my_sed_long_arg='1s/^-[^=]*=//' | |
33887 | ||
33888 | # func_opt_split | |
33889 | func_opt_split () | |
33890 | { | |
43e02a8a RW |
33891 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
33892 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
1cf3d07d SE |
33893 | } |
33894 | ||
33895 | # func_lo2o object | |
33896 | func_lo2o () | |
33897 | { | |
43e02a8a | 33898 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
1cf3d07d | 33899 | } |
d58dead8 PG |
33900 | |
33901 | # func_xform libobj-or-source | |
33902 | func_xform () | |
33903 | { | |
43e02a8a | 33904 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
d58dead8 PG |
33905 | } |
33906 | ||
33907 | # func_arith arithmetic-term... | |
33908 | func_arith () | |
33909 | { | |
33910 | func_arith_result=`expr "$@"` | |
33911 | } | |
33912 | ||
33913 | # func_len string | |
33914 | # STRING may not start with a hyphen. | |
33915 | func_len () | |
33916 | { | |
33917 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
33918 | } | |
33919 | ||
1cf3d07d SE |
33920 | _LT_EOF |
33921 | esac | |
33922 | ||
33923 | case $lt_shell_append in | |
33924 | yes) | |
33925 | cat << \_LT_EOF >> "$cfgfile" | |
33926 | ||
33927 | # func_append var value | |
33928 | # Append VALUE to the end of shell variable VAR. | |
33929 | func_append () | |
33930 | { | |
33931 | eval "$1+=\$2" | |
33932 | } | |
33933 | _LT_EOF | |
33934 | ;; | |
33935 | *) | |
33936 | cat << \_LT_EOF >> "$cfgfile" | |
33937 | ||
33938 | # func_append var value | |
33939 | # Append VALUE to the end of shell variable VAR. | |
33940 | func_append () | |
33941 | { | |
33942 | eval "$1=\$$1\$2" | |
33943 | } | |
d58dead8 | 33944 | |
1cf3d07d SE |
33945 | _LT_EOF |
33946 | ;; | |
33947 | esac | |
33948 | ||
33949 | ||
33950 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
33951 | || (rm -f "$cfgfile"; exit 1) | |
33952 | ||
33953 | mv -f "$cfgfile" "$ofile" || | |
33954 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
33955 | chmod +x "$ofile" | |
33956 | ||
33957 | ||
33958 | cat <<_LT_EOF >> "$ofile" | |
33959 | ||
33960 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
33961 | ||
33962 | # The linker used to build libraries. | |
33963 | LD=$lt_LD_FC | |
33964 | ||
43e02a8a RW |
33965 | # How to create reloadable object files. |
33966 | reload_flag=$lt_reload_flag_FC | |
33967 | reload_cmds=$lt_reload_cmds_FC | |
33968 | ||
1cf3d07d SE |
33969 | # Commands used to build an old-style archive. |
33970 | old_archive_cmds=$lt_old_archive_cmds_FC | |
33971 | ||
33972 | # A language specific compiler. | |
33973 | CC=$lt_compiler_FC | |
33974 | ||
33975 | # Is the compiler the GNU compiler? | |
33976 | with_gcc=$GCC_FC | |
33977 | ||
33978 | # Compiler flag to turn off builtin functions. | |
33979 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
33980 | ||
33981 | # How to pass a linker flag through the compiler. | |
33982 | wl=$lt_lt_prog_compiler_wl_FC | |
33983 | ||
33984 | # Additional compiler flags for building library objects. | |
33985 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
33986 | ||
33987 | # Compiler flag to prevent dynamic linking. | |
33988 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
33989 | ||
33990 | # Does compiler simultaneously support -c and -o options? | |
33991 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
33992 | ||
33993 | # Whether or not to add -lc for building shared libraries. | |
33994 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
33995 | ||
33996 | # Whether or not to disallow shared libs when runtime libs are static. | |
33997 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
33998 | ||
33999 | # Compiler flag to allow reflexive dlopens. | |
34000 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
34001 | ||
34002 | # Compiler flag to generate shared objects directly from archives. | |
34003 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
34004 | ||
34005 | # Whether the compiler copes with passing no objects directly. | |
34006 | compiler_needs_object=$lt_compiler_needs_object_FC | |
34007 | ||
34008 | # Create an old-style archive from a shared archive. | |
34009 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
34010 | ||
34011 | # Create a temporary old-style archive to link instead of a shared archive. | |
34012 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
34013 | ||
34014 | # Commands used to build a shared archive. | |
34015 | archive_cmds=$lt_archive_cmds_FC | |
34016 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
34017 | ||
34018 | # Commands used to build a loadable module if different from building | |
34019 | # a shared archive. | |
34020 | module_cmds=$lt_module_cmds_FC | |
34021 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
34022 | ||
34023 | # Whether we are building with GNU ld or not. | |
34024 | with_gnu_ld=$lt_with_gnu_ld_FC | |
34025 | ||
34026 | # Flag that allows shared libraries with undefined symbols to be built. | |
34027 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
34028 | ||
34029 | # Flag that enforces no undefined symbols. | |
34030 | no_undefined_flag=$lt_no_undefined_flag_FC | |
34031 | ||
34032 | # Flag to hardcode \$libdir into a binary during linking. | |
34033 | # This must work even if \$libdir does not exist | |
34034 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
34035 | ||
34036 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
34037 | # during linking. This must work even if \$libdir does not exist. | |
34038 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
34039 | ||
34040 | # Whether we need a single "-rpath" flag with a separated argument. | |
34041 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
34042 | ||
34043 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
34044 | # DIR into the resulting binary. | |
34045 | hardcode_direct=$hardcode_direct_FC | |
34046 | ||
34047 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
34048 | # DIR into the resulting binary and the resulting library dependency is | |
34049 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
34050 | # library is relocated. | |
34051 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
34052 | ||
34053 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
34054 | # into the resulting binary. | |
34055 | hardcode_minus_L=$hardcode_minus_L_FC | |
34056 | ||
34057 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
34058 | # into the resulting binary. | |
34059 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
34060 | ||
34061 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
34062 | # into the library and all subsequent libraries and executables linked | |
34063 | # against it. | |
34064 | hardcode_automatic=$hardcode_automatic_FC | |
34065 | ||
34066 | # Set to yes if linker adds runtime paths of dependent libraries | |
34067 | # to runtime path list. | |
34068 | inherit_rpath=$inherit_rpath_FC | |
34069 | ||
34070 | # Whether libtool must link a program against all its dependency libraries. | |
34071 | link_all_deplibs=$link_all_deplibs_FC | |
34072 | ||
34073 | # Fix the shell variable \$srcfile for the compiler. | |
34074 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
34075 | ||
34076 | # Set to "yes" if exported symbols are required. | |
34077 | always_export_symbols=$always_export_symbols_FC | |
34078 | ||
34079 | # The commands to list exported symbols. | |
34080 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
34081 | ||
34082 | # Symbols that should not be listed in the preloaded symbols. | |
34083 | exclude_expsyms=$lt_exclude_expsyms_FC | |
34084 | ||
34085 | # Symbols that must always be exported. | |
34086 | include_expsyms=$lt_include_expsyms_FC | |
34087 | ||
34088 | # Commands necessary for linking programs (against libraries) with templates. | |
34089 | prelink_cmds=$lt_prelink_cmds_FC | |
34090 | ||
34091 | # Specify filename containing input files. | |
34092 | file_list_spec=$lt_file_list_spec_FC | |
34093 | ||
34094 | # How to hardcode a shared library path into an executable. | |
34095 | hardcode_action=$hardcode_action_FC | |
34096 | ||
d58dead8 PG |
34097 | # The directories searched by this compiler when creating a shared library. |
34098 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC | |
34099 | ||
1cf3d07d SE |
34100 | # Dependencies to place before and after the objects being linked to |
34101 | # create a shared library. | |
34102 | predep_objects=$lt_predep_objects_FC | |
34103 | postdep_objects=$lt_postdep_objects_FC | |
34104 | predeps=$lt_predeps_FC | |
34105 | postdeps=$lt_postdeps_FC | |
34106 | ||
34107 | # The library search path used internally by the compiler when linking | |
34108 | # a shared library. | |
34109 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
34110 | ||
34111 | # ### END LIBTOOL TAG CONFIG: FC | |
34112 | _LT_EOF | |
34113 | ||
679c0f9a | 34114 | ;; |
5213506e | 34115 | "gstdint.h":C) |
c13e029b PB |
34116 | if test "$GCC" = yes; then |
34117 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
34118 | else | |
34119 | echo "/* generated for $CC */" > tmp-stdint.h | |
34120 | fi | |
4c4b3eb0 | 34121 | |
c13e029b PB |
34122 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
34123 | ||
34124 | #ifndef GCC_GENERATED_STDINT_H | |
34125 | #define GCC_GENERATED_STDINT_H 1 | |
34126 | ||
34127 | #include <sys/types.h> | |
4c4b3eb0 | 34128 | EOF |
4c4b3eb0 | 34129 | |
c13e029b PB |
34130 | if test "$acx_cv_header_stdint" != stdint.h; then |
34131 | echo "#include <stddef.h>" >> tmp-stdint.h | |
34132 | fi | |
34133 | if test "$acx_cv_header_stdint" != stddef.h; then | |
34134 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
34135 | fi | |
34136 | ||
34137 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34138 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
34139 | #ifdef __int8_t_defined | |
34140 | #define _INT8_T | |
34141 | #define _INT16_T | |
34142 | #define _INT32_T | |
34143 | #endif | |
34144 | #ifdef __uint32_t_defined | |
34145 | #define _UINT32_T | |
34146 | #endif | |
34147 | ||
34148 | EOF | |
34149 | ||
34150 | # ----------------- done header, emit basic int types ------------- | |
34151 | if test "$acx_cv_header_stdint" = stddef.h; then | |
34152 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34153 | ||
34154 | #ifndef _UINT8_T | |
34155 | #define _UINT8_T | |
34156 | #ifndef __uint8_t_defined | |
34157 | #define __uint8_t_defined | |
b9497ab5 | 34158 | #ifndef uint8_t |
c13e029b PB |
34159 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
34160 | #endif | |
34161 | #endif | |
b9497ab5 | 34162 | #endif |
c13e029b PB |
34163 | |
34164 | #ifndef _UINT16_T | |
34165 | #define _UINT16_T | |
34166 | #ifndef __uint16_t_defined | |
34167 | #define __uint16_t_defined | |
b9497ab5 | 34168 | #ifndef uint16_t |
c13e029b PB |
34169 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
34170 | #endif | |
34171 | #endif | |
b9497ab5 | 34172 | #endif |
c13e029b PB |
34173 | |
34174 | #ifndef _UINT32_T | |
34175 | #define _UINT32_T | |
34176 | #ifndef __uint32_t_defined | |
34177 | #define __uint32_t_defined | |
b9497ab5 | 34178 | #ifndef uint32_t |
c13e029b PB |
34179 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
34180 | #endif | |
34181 | #endif | |
b9497ab5 | 34182 | #endif |
c13e029b PB |
34183 | |
34184 | #ifndef _INT8_T | |
34185 | #define _INT8_T | |
34186 | #ifndef __int8_t_defined | |
34187 | #define __int8_t_defined | |
b9497ab5 | 34188 | #ifndef int8_t |
c13e029b PB |
34189 | typedef $acx_cv_type_int8_t int8_t; |
34190 | #endif | |
34191 | #endif | |
b9497ab5 | 34192 | #endif |
c13e029b PB |
34193 | |
34194 | #ifndef _INT16_T | |
34195 | #define _INT16_T | |
34196 | #ifndef __int16_t_defined | |
34197 | #define __int16_t_defined | |
b9497ab5 | 34198 | #ifndef int16_t |
c13e029b PB |
34199 | typedef $acx_cv_type_int16_t int16_t; |
34200 | #endif | |
34201 | #endif | |
b9497ab5 | 34202 | #endif |
c13e029b PB |
34203 | |
34204 | #ifndef _INT32_T | |
34205 | #define _INT32_T | |
34206 | #ifndef __int32_t_defined | |
34207 | #define __int32_t_defined | |
b9497ab5 | 34208 | #ifndef int32_t |
c13e029b PB |
34209 | typedef $acx_cv_type_int32_t int32_t; |
34210 | #endif | |
34211 | #endif | |
b9497ab5 | 34212 | #endif |
c13e029b PB |
34213 | EOF |
34214 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
34215 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34216 | ||
34217 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
34218 | #ifndef _INT8_T | |
34219 | #define _INT8_T | |
34220 | #endif | |
34221 | #ifndef _INT16_T | |
34222 | #define _INT16_T | |
34223 | #endif | |
34224 | #ifndef _INT32_T | |
34225 | #define _INT32_T | |
34226 | #endif | |
34227 | ||
34228 | #ifndef _UINT8_T | |
34229 | #define _UINT8_T | |
34230 | #ifndef __uint8_t_defined | |
34231 | #define __uint8_t_defined | |
b9497ab5 | 34232 | #ifndef uint8_t |
c13e029b PB |
34233 | typedef u_int8_t uint8_t; |
34234 | #endif | |
34235 | #endif | |
b9497ab5 | 34236 | #endif |
c13e029b PB |
34237 | |
34238 | #ifndef _UINT16_T | |
34239 | #define _UINT16_T | |
34240 | #ifndef __uint16_t_defined | |
34241 | #define __uint16_t_defined | |
b9497ab5 | 34242 | #ifndef uint16_t |
c13e029b PB |
34243 | typedef u_int16_t uint16_t; |
34244 | #endif | |
34245 | #endif | |
b9497ab5 | 34246 | #endif |
c13e029b PB |
34247 | |
34248 | #ifndef _UINT32_T | |
34249 | #define _UINT32_T | |
34250 | #ifndef __uint32_t_defined | |
34251 | #define __uint32_t_defined | |
b9497ab5 | 34252 | #ifndef uint32_t |
c13e029b PB |
34253 | typedef u_int32_t uint32_t; |
34254 | #endif | |
34255 | #endif | |
b9497ab5 | 34256 | #endif |
c13e029b PB |
34257 | EOF |
34258 | else | |
34259 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34260 | ||
34261 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
34262 | #ifndef _INT8_T | |
34263 | #define _INT8_T | |
34264 | #endif | |
34265 | #ifndef _INT16_T | |
34266 | #define _INT16_T | |
34267 | #endif | |
34268 | #ifndef _INT32_T | |
34269 | #define _INT32_T | |
34270 | #endif | |
34271 | #ifndef _UINT8_T | |
34272 | #define _UINT8_T | |
34273 | #endif | |
34274 | #ifndef _UINT16_T | |
34275 | #define _UINT16_T | |
34276 | #endif | |
34277 | #ifndef _UINT32_T | |
34278 | #define _UINT32_T | |
34279 | #endif | |
34280 | EOF | |
34281 | fi | |
34282 | ||
34283 | # ------------- done basic int types, emit int64_t types ------------ | |
34284 | if test "$ac_cv_type_uint64_t" = yes; then | |
34285 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34286 | ||
34287 | /* system headers have good uint64_t and int64_t */ | |
34288 | #ifndef _INT64_T | |
34289 | #define _INT64_T | |
34290 | #endif | |
34291 | #ifndef _UINT64_T | |
34292 | #define _UINT64_T | |
34293 | #endif | |
34294 | EOF | |
34295 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
34296 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34297 | ||
34298 | /* system headers have an u_int64_t (and int64_t) */ | |
34299 | #ifndef _INT64_T | |
34300 | #define _INT64_T | |
34301 | #endif | |
34302 | #ifndef _UINT64_T | |
34303 | #define _UINT64_T | |
34304 | #ifndef __uint64_t_defined | |
34305 | #define __uint64_t_defined | |
b9497ab5 | 34306 | #ifndef uint64_t |
c13e029b PB |
34307 | typedef u_int64_t uint64_t; |
34308 | #endif | |
34309 | #endif | |
b9497ab5 | 34310 | #endif |
c13e029b PB |
34311 | EOF |
34312 | elif test -n "$acx_cv_type_int64_t"; then | |
34313 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34314 | ||
34315 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
34316 | #ifndef _INT64_T | |
34317 | #define _INT64_T | |
b9497ab5 | 34318 | #ifndef int64_t |
c13e029b PB |
34319 | typedef $acx_cv_type_int64_t int64_t; |
34320 | #endif | |
b9497ab5 | 34321 | #endif |
c13e029b PB |
34322 | #ifndef _UINT64_T |
34323 | #define _UINT64_T | |
34324 | #ifndef __uint64_t_defined | |
34325 | #define __uint64_t_defined | |
b9497ab5 | 34326 | #ifndef uint64_t |
c13e029b PB |
34327 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
34328 | #endif | |
34329 | #endif | |
b9497ab5 | 34330 | #endif |
c13e029b PB |
34331 | EOF |
34332 | else | |
34333 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34334 | ||
34335 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
34336 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
34337 | #ifndef _INT64_T | |
34338 | #define _INT64_T | |
34339 | #ifndef __int64_t_defined | |
b9497ab5 | 34340 | #ifndef int64_t |
c13e029b PB |
34341 | typedef long long int64_t; |
34342 | #endif | |
34343 | #endif | |
b9497ab5 | 34344 | #endif |
c13e029b PB |
34345 | #ifndef _UINT64_T |
34346 | #define _UINT64_T | |
b9497ab5 | 34347 | #ifndef uint64_t |
c13e029b PB |
34348 | typedef unsigned long long uint64_t; |
34349 | #endif | |
b9497ab5 | 34350 | #endif |
c13e029b PB |
34351 | |
34352 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
34353 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
34354 | does not implement __extension__. But that compiler doesn't define | |
34355 | __GNUC_MINOR__. */ | |
34356 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
34357 | # define __extension__ | |
34358 | # endif | |
34359 | ||
34360 | # ifndef _INT64_T | |
34361 | # define _INT64_T | |
b9497ab5 | 34362 | # ifndef int64_t |
c13e029b PB |
34363 | __extension__ typedef long long int64_t; |
34364 | # endif | |
b9497ab5 | 34365 | # endif |
c13e029b PB |
34366 | # ifndef _UINT64_T |
34367 | # define _UINT64_T | |
b9497ab5 | 34368 | # ifndef uint64_t |
c13e029b PB |
34369 | __extension__ typedef unsigned long long uint64_t; |
34370 | # endif | |
b9497ab5 | 34371 | # endif |
c13e029b PB |
34372 | |
34373 | #elif !defined __STRICT_ANSI__ | |
34374 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
34375 | ||
34376 | # ifndef _INT64_T | |
34377 | # define _INT64_T | |
b9497ab5 | 34378 | # ifndef int64_t |
c13e029b PB |
34379 | typedef __int64 int64_t; |
34380 | # endif | |
b9497ab5 | 34381 | # endif |
c13e029b PB |
34382 | # ifndef _UINT64_T |
34383 | # define _UINT64_T | |
b9497ab5 | 34384 | # ifndef uint64_t |
c13e029b PB |
34385 | typedef unsigned __int64 uint64_t; |
34386 | # endif | |
b9497ab5 | 34387 | # endif |
c13e029b PB |
34388 | # endif /* compiler */ |
34389 | ||
34390 | #endif /* ANSI version */ | |
34391 | EOF | |
34392 | fi | |
34393 | ||
34394 | # ------------- done int64_t types, emit intptr types ------------ | |
34395 | if test "$ac_cv_type_uintptr_t" != yes; then | |
34396 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34397 | ||
34398 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
34399 | #ifndef __uintptr_t_defined | |
b9497ab5 | 34400 | #ifndef uintptr_t |
c13e029b PB |
34401 | typedef u$acx_cv_type_intptr_t uintptr_t; |
34402 | #endif | |
b9497ab5 | 34403 | #endif |
c13e029b | 34404 | #ifndef __intptr_t_defined |
b9497ab5 | 34405 | #ifndef intptr_t |
c13e029b PB |
34406 | typedef $acx_cv_type_intptr_t intptr_t; |
34407 | #endif | |
b9497ab5 | 34408 | #endif |
c13e029b PB |
34409 | EOF |
34410 | fi | |
34411 | ||
34412 | # ------------- done intptr types, emit int_least types ------------ | |
4c4b3eb0 | 34413 | if test "$ac_cv_type_int_least32_t" != yes; then |
c13e029b | 34414 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
4c4b3eb0 PB |
34415 | |
34416 | /* Define int_least types */ | |
34417 | typedef int8_t int_least8_t; | |
34418 | typedef int16_t int_least16_t; | |
34419 | typedef int32_t int_least32_t; | |
c13e029b | 34420 | #ifdef _INT64_T |
4c4b3eb0 | 34421 | typedef int64_t int_least64_t; |
c13e029b | 34422 | #endif |
4c4b3eb0 PB |
34423 | |
34424 | typedef uint8_t uint_least8_t; | |
34425 | typedef uint16_t uint_least16_t; | |
34426 | typedef uint32_t uint_least32_t; | |
c13e029b | 34427 | #ifdef _UINT64_T |
4c4b3eb0 | 34428 | typedef uint64_t uint_least64_t; |
c13e029b | 34429 | #endif |
4c4b3eb0 PB |
34430 | EOF |
34431 | fi | |
34432 | ||
c13e029b | 34433 | # ------------- done intptr types, emit int_fast types ------------ |
4c4b3eb0 | 34434 | if test "$ac_cv_type_int_fast32_t" != yes; then |
c13e029b | 34435 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
4c4b3eb0 PB |
34436 | |
34437 | /* Define int_fast types. short is often slow */ | |
34438 | typedef int8_t int_fast8_t; | |
34439 | typedef int int_fast16_t; | |
34440 | typedef int32_t int_fast32_t; | |
c13e029b | 34441 | #ifdef _INT64_T |
4c4b3eb0 | 34442 | typedef int64_t int_fast64_t; |
c13e029b | 34443 | #endif |
4c4b3eb0 PB |
34444 | |
34445 | typedef uint8_t uint_fast8_t; | |
34446 | typedef unsigned int uint_fast16_t; | |
34447 | typedef uint32_t uint_fast32_t; | |
c13e029b | 34448 | #ifdef _UINT64_T |
4c4b3eb0 | 34449 | typedef uint64_t uint_fast64_t; |
c13e029b PB |
34450 | #endif |
34451 | EOF | |
34452 | fi | |
34453 | ||
34454 | if test "$ac_cv_type_uintmax_t" != yes; then | |
34455 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
34456 | ||
34457 | /* Define intmax based on what we found */ | |
b9497ab5 | 34458 | #ifndef intmax_t |
c13e029b PB |
34459 | #ifdef _INT64_T |
34460 | typedef int64_t intmax_t; | |
34461 | #else | |
34462 | typedef long intmax_t; | |
34463 | #endif | |
b9497ab5 RO |
34464 | #endif |
34465 | #ifndef uintmax_t | |
c13e029b PB |
34466 | #ifdef _UINT64_T |
34467 | typedef uint64_t uintmax_t; | |
34468 | #else | |
34469 | typedef unsigned long uintmax_t; | |
34470 | #endif | |
b9497ab5 | 34471 | #endif |
4c4b3eb0 PB |
34472 | EOF |
34473 | fi | |
34474 | ||
c13e029b PB |
34475 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
34476 | ||
34477 | #endif /* GCC_GENERATED_STDINT_H */ | |
34478 | EOF | |
4c4b3eb0 | 34479 | |
c13e029b PB |
34480 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then |
34481 | rm -f tmp-stdint.h | |
4c4b3eb0 | 34482 | else |
c13e029b | 34483 | mv -f tmp-stdint.h gstdint.h |
4c4b3eb0 PB |
34484 | fi |
34485 | ||
34486 | ;; | |
5213506e | 34487 | |
6de9cd9a | 34488 | esac |
5213506e | 34489 | done # for ac_tag |
6de9cd9a | 34490 | |
6de9cd9a | 34491 | |
5213506e | 34492 | as_fn_exit 0 |
6de9cd9a | 34493 | _ACEOF |
6de9cd9a DN |
34494 | ac_clean_files=$ac_clean_files_save |
34495 | ||
5213506e | 34496 | test $ac_write_fail = 0 || |
22e05272 | 34497 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 34498 | |
6de9cd9a DN |
34499 | |
34500 | # configure is writing to config.log, and then calls config.status. | |
34501 | # config.status does its own redirection, appending to config.log. | |
34502 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
34503 | # by configure, so config.status won't be able to write to it; its | |
34504 | # output is simply discarded. So we exec the FD to /dev/null, | |
34505 | # effectively closing config.log, so it can be properly (re)opened and | |
34506 | # appended to by config.status. When coming back to configure, we | |
34507 | # need to make the FD available again. | |
34508 | if test "$no_create" != yes; then | |
34509 | ac_cs_success=: | |
34510 | ac_config_status_args= | |
34511 | test "$silent" = yes && | |
34512 | ac_config_status_args="$ac_config_status_args --quiet" | |
34513 | exec 5>/dev/null | |
34514 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
34515 | exec 5>>config.log | |
34516 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
34517 | # would make configure fail if this is the last instruction. | |
22e05272 | 34518 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
34519 | fi |
34520 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
34521 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
34522 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
6de9cd9a DN |
34523 | fi |
34524 |